yagi.erc4626
: contractsopenzeppelin
: OpenZeppelincairo-contracts
dependenciestests
: 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
solmate
license - Bring your own ERC20 token implementation (or use
openzeppelin
as seen in the mock contract)
How to reuse this code:
- Copy the
yagi
folder to your repository - Copy the
openzeppelin
folder from the latest openzeppelincairo-contracts
implementation - Copy the
ERC4626.cairo
contract 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