/ERC4626Votes

Allow voting on governance by ERC20 and ERC4626 holders

Primary LanguageSolidityMIT LicenseMIT

ERC4626Votes

ERC4626 extension which allows for voting based on underlying asset in Compound style governance

Github Actions

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:

¿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.