mirror of
https://github.com/autistic-symposium/mev-toolkit.git
synced 2025-04-27 19:26:15 -04:00
Create ERC-4626.md
This commit is contained in:
parent
daa16bd4cc
commit
977086546d
20
defi_and_trading/vaults/ERC-4626.md
Normal file
20
defi_and_trading/vaults/ERC-4626.md
Normal file
@ -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`.
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
### 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/)
|
Loading…
x
Reference in New Issue
Block a user