Appearance
Solidity API
PropsERC4626Storage
Defines the storage layout for the core PropsERC4626 token functionality Uses the diamond storage pattern to avoid storage collisions in upgradeable contracts
Layout
solidity
struct Layout {
contract IERC20 _asset;
uint8 _underlyingDecimals;
uint256 _treasuryAssetBalance;
uint256 _treasuryTokenBalance;
bool _graduated;
}STORAGE_SLOT
solidity
bytes32 STORAGE_SLOTUnique storage slot for PropsERC4626 storage Generated using the contract's full path to ensure uniqueness Used in diamond storage pattern to prevent storage collision with other facets
layout
solidity
function layout() internal pure returns (struct PropsERC4626Storage.Layout l)Provides access to the storage layout
Return Values
| Name | Type | Description |
|---|---|---|
| l | struct PropsERC4626Storage.Layout | Storage layout struct with proper positioning Uses assembly to position the storage struct at the predetermined slot |