ERC4626 extension which allows for voting based on underlying asset in Compound style governance
Clone this repo.
forge install
forge build
forge test
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:
- OpenZeppelin/openzeppelin-contracts#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.
This project uses Foundry. See the book for instructions on how to install and use Foundry.