Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Traits

ImmutableConfigConstants expected to be defined at the contract level which configure virtual assets and shares. UNDERLYING_DECIMALS should match the underlying asset’s decimals. The default value is 18 ….
FeeConfigTraitThe logic for calculating entry and exit fees is expected to be defined at the contract level. Defaults to no entry or exit fees….
LimitConfigTraitSets limits to the target exchange type and is expected to be defined at the contract level. It’s important to note that these limits correspond directly to the max_<OPERATION> i.e. deposit_limit
ERC4626HooksTraitAllows contracts to hook logic into deposit and withdraw transactions. This is where contracts can transfer fees. NOTE: ERC4626 preview methods must be inclusive of any entry or exit fees….
AssetsManagementTraitDefines how the ERC4626 vault manages its underlying assets. This trait provides the core asset management functionality for the vault, abstracting the actual storage and transfer mechanisms….
HasComponent
InternalTrait
UnsafeNewContractStateTraitForERC4626Impl
UnsafeNewContractStateTraitForERC4626MetadataImpl