-
Notifications
You must be signed in to change notification settings - Fork 24
Spender
- Contract Name: Spender.sol
- Type/Category: Treasury/Governance
- Contract Source: https://github.com/element-fi/council/blob/main/contracts/features/Spender.sol
The spender contract is designed to leverage the variable quorum requirements of the core voting contract to enable a very small-scale grant program.
Key Functionalities:
- Spend a number of tokens up to a high, medium, or low threshold via separate functions for high, medium, and low spends. Allow the owner to remove the tokens from this contract.
State:
- High, medium, and low spending thresholds
- Tracking the block by historical block spending ensures that a threshold is violated in no block.
The contract contains some tokens and then allows an owner address to spend tokens from this contract. The owner of the contract will be the core voting contract. In the core voting contract, each of the spending functions should be given its own quorum. In this setup, this contract enables small and correspondingly low-security grants to fund non-contentious community-driven projects which are low expenditure.
The expenditure in each block is tracked in aggregate, so if a low spend is successful, a following high spend in the same block can only spend up to (high spend bound - low spend bound).
In the case of contract failure, the owner should remove funds from the contract.
Council Wiki
Technical Guides
- Getting Started
- Council Deployment Guide
- Reference UI Deployment Guide (GitHub Pages)
- How to Create Your Own Voting Vault with Council
- SDK Guide: Using Typescript to interact with Council Contracts
- Contributors Guide
Video Tutorials
- Council UI Overview
- Deploying the Council UI to Github Pages
- Get Started with the Council SDK
- Extending the SDK
Governance Proposal Framework
- Governance Proposal Framework Template
- DAO (Social) Proposal Template
- Protocol (Executable) Proposal Template
Smart Contract Documentation
- Overview
- Core Voting
- Voting Vaults Overview
- Voting Vault Example: Locking Vault
- Voting Vault Example: Vesting Vault
- Voting Vault Example: Governance Steering Council (GSC)
- Possible Voting Vaults Examples
- Timelock
- Treasury
- Spender
- Optimistic Grants
- Optimistic Rewards
- Simple Proxy
Glossaries
Security and Audits