Skip to content

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_SLOT

Unique 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

NameTypeDescription
lstruct PropsERC4626Storage.LayoutStorage layout struct with proper positioning Uses assembly to position the storage struct at the predetermined slot