Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Aug 21, 2024
1 parent e8eede4 commit 3963e5c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

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.

### Controlled Async Deposits ([code](https://github.com/ERC4626-Alliance/ERC-7540-Reference/blob/main/src/ControlledAsyncDeposits.sol))
- Async deposits are subject to approval by an owner account
- Users can only deposit the maximum amount.

### Timelocked Async Withdrawals ([code](https://github.com/ERC4626-Alliance/ERC-7540-Reference/blob/main/src/TimelockedAsyncWithdrawals.sol))
- Async redemptions are subject to a 3 day delay
- New redemptions restart the 3 day delay even if the prior redemption is claimable.
- The redemption exchange rate is locked in immediately upon request.
- Users can only redeem the maximum amount.

0 comments on commit 3963e5c

Please sign in to comment.