Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions contracts/token/ERC20/extensions/ERC7540AdminDeposit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import {ERC7540} from "./ERC7540.sol";
*
* Production equivalents include
* https://github.com/usdai-foundation/usdai-contracts/blob/main/src/StakedUSDai.sol[USDai],
* https://github.com/plumenetwork/nest-protocol/blob/main/contracts/NestVaultCore.sol[Nest (Plume)],
* https://github.com/turingcapitalgroup/metaVault/blob/main/src/MetaVault.sol[MetaVault], and
* https://github.com/plumenetwork/nest-protocol/blob/main/contracts/NestVaultCore.sol[Nest (Plume)], and
* https://github.com/centrifuge/protocol/blob/main/src/vaults/AsyncVault.sol[Centrifuge].
*
* All requests share `requestId = 0` (per-controller accounting only).
Expand Down
3 changes: 1 addition & 2 deletions contracts/token/ERC20/extensions/ERC7540AdminRedeem.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ import {ERC7540} from "./ERC7540.sol";
*
* Production equivalents include
* https://github.com/usdai-foundation/usdai-contracts/blob/main/src/StakedUSDai.sol[USDai],
* https://github.com/plumenetwork/nest-protocol/blob/main/contracts/NestVaultCore.sol[Nest (Plume)],
* https://github.com/turingcapitalgroup/metaVault/blob/main/src/MetaVault.sol[MetaVault], and
* https://github.com/plumenetwork/nest-protocol/blob/main/contracts/NestVaultCore.sol[Nest (Plume)], and
* https://github.com/centrifuge/protocol/blob/main/src/vaults/AsyncVault.sol[Centrifuge].
*
* All requests share `requestId = 0` (per-controller accounting only).
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC20/extensions/ERC7540EpochDeposit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {ERC7540} from "./ERC7540.sol";
* Production equivalents:
* https://github.com/Storm-Labs-Inc/cove-contracts-core/blob/master/src/BasketToken.sol[Cove],
* https://github.com/AmphorProtocol/asynchronous-vault/tree/main[Amphor],
* https://github.com/hopperlabsxyz/lagoon-v0/blob/main/src/v0.5.0/ERC7540.sol[Lagoon].
* https://github.com/hopperlabsxyz/lagoon-v0/blob/v0.5.0/src/v0.5.0/ERC7540.sol[Lagoon].
*
* The `requestId` returned by {requestDeposit} is the epoch ID. By default, epochs are weekly
* and start on Mondays (`(block.timestamp + 3 days) / 1 weeks`); override {currentDepositEpoch} to change
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC20/extensions/ERC7540EpochRedeem.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {ERC7540} from "./ERC7540.sol";
* Production equivalents:
* https://github.com/Storm-Labs-Inc/cove-contracts-core/blob/master/src/BasketToken.sol[Cove],
* https://github.com/AmphorProtocol/asynchronous-vault/tree/main[Amphor],
* https://github.com/hopperlabsxyz/lagoon-v0/blob/main/src/v0.5.0/ERC7540.sol[Lagoon].
* https://github.com/hopperlabsxyz/lagoon-v0/blob/v0.5.0/src/v0.5.0/ERC7540.sol[Lagoon].
*
* The `requestId` returned by {requestRedeem} is the epoch ID. By default, epochs are weekly
* and start on Mondays (`(block.timestamp + 3 days) / 1 weeks`); override {currentRedeemEpoch} to change
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/erc7540.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ TIP: The delay can be customized per controller by overriding `depositDelay(addr

The epoch strategy batches all requests submitted in the same time window — an _epoch_ — and settles them together at a single locked exchange rate when the admin closes the epoch. Every controller in a fulfilled epoch receives the same pro-rata conversion.

This suits use cases where settlement is naturally periodic: weekly rebalances, NAV-driven funds, basket tokens, or vaults that aggregate inflows and outflows and process them in batches. Production equivalents include https://github.com/Storm-Labs-Inc/cove-contracts-core/blob/master/src/BasketToken.sol[Cove], https://github.com/AmphorProtocol/asynchronous-vault[Amphor], and https://github.com/hopperlabsxyz/lagoon-v0/blob/main/src/v0.5.0/ERC7540.sol[Lagoon].
This suits use cases where settlement is naturally periodic: weekly rebalances, NAV-driven funds, basket tokens, or vaults that aggregate inflows and outflows and process them in batches. Production equivalents include https://github.com/Storm-Labs-Inc/cove-contracts-core/blob/master/src/BasketToken.sol[Cove], https://github.com/AmphorProtocol/asynchronous-vault[Amphor], and https://github.com/hopperlabsxyz/lagoon-v0/blob/v0.5.0/src/v0.5.0/ERC7540.sol[Lagoon].

Unlike the admin strategy (per-request fulfillment), every controller in the same epoch shares a single locked rate, and a single `_fulfillDeposit(epochId, totalShares)` / `_fulfillRedeem(epochId, totalAssets)` call settles all of them at once:

Expand Down
Loading