yagi.erc4626: contractsopenzeppelin: OpenZeppelincairo-contractsdependenciestests: protostar tests folder
This code is entirely experimental, changing frequently and un-audited. Please do not use it in production!
- This code preserves the original
solmatelicense - Bring your own ERC20 token implementation (or use
openzeppelinas seen in the mock contract)
How to reuse this code:
- Copy the
yagifolder to your repository - Copy the
openzeppelinfolder from the latest openzeppelincairo-contractsimplementation - Copy the
ERC4626.cairocontract into your own implementation - Use your favorite ERC20 implementation with the contract
- Fill in the hook functions
Or feel free to get in touch with us on Twitter.
Dependencies:
poetry(Python package manager)- Basic cairo system dependencies (see Setting up the environment)
- Protostar (see Protostar installation)
Installation:
poetry install
- t11s and solmate contributors for the solmate ERC4626 implementation and math
- OpenZeppelin team for the excellent cairo-contracts
- Zorro team for the testing patterns in zorro
- Please check out Milan Cermak's repository which is also porting the solmate implementation cairo-4626