All Projects → compound-developers → compound-governance-examples

compound-developers / compound-governance-examples

Licence: MIT license
Examples for building on Compound Protocol Community Governance.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
solidity
1140 projects

Projects that are alternatives of or similar to compound-governance-examples

compound-borrow-examples
Code examples for borrowing Ethereum assets from the Compound Protocol.
Stars: ✭ 76 (+46.15%)
Mutual labels:  defi, decentralized-finance, compound-finance, compound-protocol
compound-supply-examples
Code examples for supplying Ethereum assets to the Compound Protocol.
Stars: ✭ 119 (+128.85%)
Mutual labels:  defi, decentralized-finance, compound-finance, compound-protocol
visor-core
The DeFi protocol for Active Liquidity Management. Building on Uniswap v3.
Stars: ✭ 50 (-3.85%)
Mutual labels:  defi, decentralized-finance
prb-math
Solidity library for advanced fixed-point math
Stars: ✭ 404 (+676.92%)
Mutual labels:  defi, decentralized-finance
DeFi-Map
List of decentralized finance projects on Ethereum.
Stars: ✭ 49 (-5.77%)
Mutual labels:  defi, decentralized-finance
octofi-app-aquafarm
OctoFi - Track your DeFi portfolio, find new investment opportunities, buy and sell directly, and wrap your tentacles around a sea of gains. Hosted on Github Pages.
Stars: ✭ 36 (-30.77%)
Mutual labels:  defi, decentralized-finance
governance-crosschain-bridges
This repo contains the crosschain governance bridges used for the aave markets deployed across different networks
Stars: ✭ 116 (+123.08%)
Mutual labels:  governance, defi
go-compound
Golang client for compound.finace api and smart contracts
Stars: ✭ 23 (-55.77%)
Mutual labels:  defi, compound-finance
alice-v2-monorepo
Alice 2.0 protocol - the newest version of Alice that combines impact investments and outcome payments. Built using Impact Delivery Agreement smart contracts and a new token standard ('Fluid balance tokens'). Also comes with a reference dApp. Built on Ethereum.
Stars: ✭ 19 (-63.46%)
Mutual labels:  defi
rari-dApp
Rari Capital's Web3 Portal.
Stars: ✭ 145 (+178.85%)
Mutual labels:  defi
ergo-sdk-js
Ergo JS SDK
Stars: ✭ 15 (-71.15%)
Mutual labels:  defi
About moja global
About moja global and How We Work
Stars: ✭ 33 (-36.54%)
Mutual labels:  governance
aws-firewall-factory
Deploy, update, and stage your WAFs while managing them centrally via FMS.
Stars: ✭ 72 (+38.46%)
Mutual labels:  governance
digital-copyright
Stamp your code with a trackable digital copyright
Stars: ✭ 17 (-67.31%)
Mutual labels:  defi
PancakeSwapPredictionBot
PancakeSwap V2 Prediction Bot With Machine Learning | Automated Strategy, Auto Betting, Auto Claim
Stars: ✭ 21 (-59.62%)
Mutual labels:  defi
sommelier
Sommelier Chain
Stars: ✭ 64 (+23.08%)
Mutual labels:  defi
yam-www
Yam website.
Stars: ✭ 41 (-21.15%)
Mutual labels:  defi
MultiDexArbBot
This is an arbitrage bot that uses existing price aggregators such as 1inch, Paraswap, dex.ag, matcha and more to get the best exchange rates across different decentralized exchanges on different blockchains and ecosystems.
Stars: ✭ 67 (+28.85%)
Mutual labels:  defi
SNIPs
Secret Network Improvement Proposals (SNIPs) ✂️
Stars: ✭ 42 (-19.23%)
Mutual labels:  governance
aws-cost-report
Generate Sheets (Google, Excel and CSV) with useful information about your AWS spendings.
Stars: ✭ 79 (+51.92%)
Mutual labels:  governance

Quick Start: Compound Governance

Code examples for building your own interface for Compound Protocol Governance. The COMP & Governance smart contracts are live on the Ethereum Main and Ropsten test networks.

Full Quick Start Tutorial on the Compound Medium Blog

What is Compound?

Compound is an open-source, autonomous protocol built for developers, to unlock a universe of new financial applications. Interest and borrowing, for the open financial system. Learn more on the website:

Compound Finance

What is Compound Protocol Governance?

The Compound protocol is upgraded and configured in a decentralized fashion. All changes (from supported assets, to system parameters) are decided by COMP token-holders using the voting system.

Community members can create proposals or vote on proposals to modify the protocol. This is made possible by the Compound Governance smart contract.

In order to participate in governance, users do not need to hold any COMP token in their Ethereum wallet. However, users need to have COMP delegated to their address. Delegation is a utility function in the COMP ERC-20 token contract.

Learn more in the Compound Protocol Governance Documentation.

Examples

The following code examples can be used in a Web3-enabled website.

There are examples for querying the Ethereum blockchain directly as well as examples that use the Compound REST API. Operations that get can be done using either implementation. However set operations must be performed by writing to the blockchain with Web3, which requires ETH to be spent on gas fees.

For latest contract addresses and ABIs, see the networks page in the docs.

Get All COMP Token Holders

Get All Delegates

Get All Proposals (All States)

Get All Ballots for a Proposal

Delegate Your Voting Rights

Cast Your Vote for an Active Proposal

Signature Examples

Running

Clone this repository. Use a Web3 enabled browser (like Brave, or install the MetaMask browser extension). Serve the files from an HTTP server; The HTML files will not work if you open them directly in your browser. The following command line commands includes an HTTP server, which is installed with Node.js and npm.

git clone [email protected]:compound-developers/compound-governance-examples.git
cd compound-governance-examples/
npm install -g http-server
http-server -p 8080

Then go to http://localhost:8080/api-examples/get_proposals in your web browser.

Compound Governance Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].