generated from transmissions11/foundry-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# ERC-4626 Reference Implementations • [![CI](https://github.com/transmissions11/foundry-template/actions/workflows/tests.yml/badge.svg)](https://github.com/transmissions11/foundry-template/actions/workflows/tests.yml) | ||
# ERC-7540 Reference Implementations • [![CI](https://github.com/transmissions11/foundry-template/actions/workflows/tests.yml/badge.svg)](https://github.com/transmissions11/foundry-template/actions/workflows/tests.yml) | ||
|
||
Reference implementations for [ERC-7540](https://eips.ethereum.org/EIPS/eip-7540). | ||
|
||
[**Controlled Async Deposits**](https://github.com/ERC4626-Alliance/ERC-7540-Reference/blob/main/src/ControlledAsyncDeposits.sol) reference: | ||
- yield for the underlying asset is assumed to be transferred directly into the vault by some arbitrary mechanism | ||
- async deposits are subject to approval by an owner account | ||
- users can only deposit the maximum amount. | ||
To allow partial claims, the deposit and mint functions would need to allow for pro rata claims. | ||
Conversions between claimable assets/shares should be checked for rounding safety. | ||
|
||
Includes sample reference implementations for [ERC-7540](https://ethereum-magicians.org/t/eip-7540-asynchronous-erc-4626-tokenized-vaults/16153) async deposit and withdraw for different use cases. |