Skip to content

Solidity API

BondingStorage

Defines the storage layout for the core BondingPair token functionality Uses the diamond storage pattern to avoid storage collisions in upgradeable contracts

K

solidity
uint256 K

Layout

solidity
struct Layout {
  struct IBondingPool.Pool pool;
  address asset0;
  address asset1;
}

STORAGE_SLOT

solidity
bytes32 STORAGE_SLOT

Unique storage slot for BondingPair 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 BondingStorage.Layout l)

Provides access to the storage layout

Return Values

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