Minimal EIP 4626 implementation in Cairo lang for StarkNet.
The contract is based on OpenZeppelin's ERC20 implementation. It is heavily inspired by Solmate's ERC4626.sol.
To compile the contract, you'll need to set the module import path (CAIRO_PATH
) to point to the contracts/lib
directory:
CAIRO_PATH=`pwd`/contracts/lib nile compile
Following OpenZeppelin's StarkNet extensibility pattern, all modifications regarding your EIP4626 business logic should go in the contracts/erc4626/library.cairo
file.