ERC4626Votes
ERC4626Votes copied to clipboard
Allow voting on governance by ERC20 and ERC4626 holders
trafficstars
ERC4626Votes
ERC4626 extension which allows for voting based on underlying asset in Compound style governance
Getting Started
Clone this repo.
forge install
forge build
forge test
Notes
OpenZeppelin Draft ERC4626
This repo uses the draft ERC4626 OZ implementation as a submodule. It is not currently in any release. For this reason, you must run forge install rather than forge update. More details on this WIP ERC4626 below:
- https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3171
- https://github.com/Amxx/openzeppelin-contracts/tree/feature/ERC4626
¿Porque no Solmate?
All my friends ❤️ Solmate. However, here we needed to quickly integrate an ERC4626 token into governance contracts. OZ provides a really easy way to extend their contracts / interfaces to achieve that, especially because they also have all of the governance pieces needed.
Development
This project uses Foundry. See the book for instructions on how to install and use Foundry.