diff --git a/defi_and_trading/vaults/ERC-4626.md b/defi_and_trading/vaults/ERC-4626.md new file mode 100644 index 0000000..d887dcd --- /dev/null +++ b/defi_and_trading/vaults/ERC-4626.md @@ -0,0 +1,20 @@ +## Notes on ERC-4626 + + +### tl; dr + +* standard to optimize and unify the technical parameters of yield bearing vaults, i.e. vaults that represent shares of a single ERC20 token. +* it offers a API for depositing, withdrawing tokens, and reading balances: + * methods: `asset`, `totalAsset`, `convertToShares`, `convertToAssets`, `maxDeposit`, `previewDeposit`, `deposit`, `maxMint`, `previewMint`, `mint`, `maxWithdraw`, `previewWithdraw`, `withdraw`, `maxRedeem`, `previewRedeem`, `redeem`, `totalSupply`, `balanceOf`. + * events: `Deposit`, `Withdraw`. + + +
+ +--- + +### resources + +* [EIP-4626: Tokenized Vaults](https://eips.ethereum.org/EIPS/eip-4626) +* [code on solmate](https://github.com/transmissions11/solmate/blob/main/src/mixins/ERC4626.sol) +* [ethereum.org on erc-4626](https://ethereum.org/en/developers/docs/standards/tokens/erc-4626/)