library that helps in reading / working with storage slot data of Fluid Liquidity.

as all data for Fluid Liquidity is internal, any data must be fetched directly through manual slot reading through this library or, if gas usage is less important, through the FluidLiquidityResolver.

LIQUIDITY_STATUS_SLOT

uint256 LIQUIDITY_STATUS_SLOT

storage slot for status at Liquidity

LIQUIDITY_AUTHS_MAPPING_SLOT

uint256 LIQUIDITY_AUTHS_MAPPING_SLOT

storage slot for auths mapping at Liquidity

LIQUIDITY_GUARDIANS_MAPPING_SLOT

uint256 LIQUIDITY_GUARDIANS_MAPPING_SLOT

storage slot for guardians mapping at Liquidity

LIQUIDITY_USER_CLASS_MAPPING_SLOT

uint256 LIQUIDITY_USER_CLASS_MAPPING_SLOT

storage slot for user class mapping at Liquidity

LIQUIDITY_EXCHANGE_PRICES_MAPPING_SLOT

uint256 LIQUIDITY_EXCHANGE_PRICES_MAPPING_SLOT

storage slot for exchangePricesAndConfig mapping at Liquidity

LIQUIDITY_RATE_DATA_MAPPING_SLOT

uint256 LIQUIDITY_RATE_DATA_MAPPING_SLOT

storage slot for rateData mapping at Liquidity

LIQUIDITY_TOTAL_AMOUNTS_MAPPING_SLOT

uint256 LIQUIDITY_TOTAL_AMOUNTS_MAPPING_SLOT

storage slot for totalAmounts mapping at Liquidity

LIQUIDITY_USER_SUPPLY_DOUBLE_MAPPING_SLOT

uint256 LIQUIDITY_USER_SUPPLY_DOUBLE_MAPPING_SLOT

storage slot for user supply double mapping at Liquidity

LIQUIDITY_USER_BORROW_DOUBLE_MAPPING_SLOT

uint256 LIQUIDITY_USER_BORROW_DOUBLE_MAPPING_SLOT

storage slot for user borrow double mapping at Liquidity

LIQUIDITY_LISTED_TOKENS_ARRAY_SLOT

uint256 LIQUIDITY_LISTED_TOKENS_ARRAY_SLOT

storage slot for listed tokens array at Liquidity

LIQUIDITY_CONFIGS2_MAPPING_SLOT

uint256 LIQUIDITY_CONFIGS2_MAPPING_SLOT

storage slot for listed tokens array at Liquidity

BITS_EXCHANGE_PRICES_BORROW_RATE

uint256 BITS_EXCHANGE_PRICES_BORROW_RATE

BITS_EXCHANGE_PRICES_FEE

uint256 BITS_EXCHANGE_PRICES_FEE

BITS_EXCHANGE_PRICES_UTILIZATION

uint256 BITS_EXCHANGE_PRICES_UTILIZATION

BITS_EXCHANGE_PRICES_UPDATE_THRESHOLD

uint256 BITS_EXCHANGE_PRICES_UPDATE_THRESHOLD

BITS_EXCHANGE_PRICES_LAST_TIMESTAMP

uint256 BITS_EXCHANGE_PRICES_LAST_TIMESTAMP

BITS_EXCHANGE_PRICES_SUPPLY_EXCHANGE_PRICE

uint256 BITS_EXCHANGE_PRICES_SUPPLY_EXCHANGE_PRICE

BITS_EXCHANGE_PRICES_BORROW_EXCHANGE_PRICE

uint256 BITS_EXCHANGE_PRICES_BORROW_EXCHANGE_PRICE

BITS_EXCHANGE_PRICES_SUPPLY_RATIO

uint256 BITS_EXCHANGE_PRICES_SUPPLY_RATIO

BITS_EXCHANGE_PRICES_BORROW_RATIO

uint256 BITS_EXCHANGE_PRICES_BORROW_RATIO

BITS_EXCHANGE_PRICES_USES_CONFIGS2

uint256 BITS_EXCHANGE_PRICES_USES_CONFIGS2

BITS_RATE_DATA_VERSION

uint256 BITS_RATE_DATA_VERSION

BITS_RATE_DATA_V1_RATE_AT_UTILIZATION_ZERO

uint256 BITS_RATE_DATA_V1_RATE_AT_UTILIZATION_ZERO

BITS_RATE_DATA_V1_UTILIZATION_AT_KINK

uint256 BITS_RATE_DATA_V1_UTILIZATION_AT_KINK

BITS_RATE_DATA_V1_RATE_AT_UTILIZATION_KINK

uint256 BITS_RATE_DATA_V1_RATE_AT_UTILIZATION_KINK

BITS_RATE_DATA_V1_RATE_AT_UTILIZATION_MAX

uint256 BITS_RATE_DATA_V1_RATE_AT_UTILIZATION_MAX

BITS_RATE_DATA_V2_RATE_AT_UTILIZATION_ZERO

uint256 BITS_RATE_DATA_V2_RATE_AT_UTILIZATION_ZERO

BITS_RATE_DATA_V2_UTILIZATION_AT_KINK1

uint256 BITS_RATE_DATA_V2_UTILIZATION_AT_KINK1

BITS_RATE_DATA_V2_RATE_AT_UTILIZATION_KINK1

uint256 BITS_RATE_DATA_V2_RATE_AT_UTILIZATION_KINK1

BITS_RATE_DATA_V2_UTILIZATION_AT_KINK2

uint256 BITS_RATE_DATA_V2_UTILIZATION_AT_KINK2

BITS_RATE_DATA_V2_RATE_AT_UTILIZATION_KINK2

uint256 BITS_RATE_DATA_V2_RATE_AT_UTILIZATION_KINK2

BITS_RATE_DATA_V2_RATE_AT_UTILIZATION_MAX

uint256 BITS_RATE_DATA_V2_RATE_AT_UTILIZATION_MAX

BITS_TOTAL_AMOUNTS_SUPPLY_WITH_INTEREST

uint256 BITS_TOTAL_AMOUNTS_SUPPLY_WITH_INTEREST

BITS_TOTAL_AMOUNTS_SUPPLY_INTEREST_FREE

uint256 BITS_TOTAL_AMOUNTS_SUPPLY_INTEREST_FREE

BITS_TOTAL_AMOUNTS_BORROW_WITH_INTEREST

uint256 BITS_TOTAL_AMOUNTS_BORROW_WITH_INTEREST

BITS_TOTAL_AMOUNTS_BORROW_INTEREST_FREE

uint256 BITS_TOTAL_AMOUNTS_BORROW_INTEREST_FREE

BITS_USER_SUPPLY_MODE

uint256 BITS_USER_SUPPLY_MODE

BITS_USER_SUPPLY_AMOUNT

uint256 BITS_USER_SUPPLY_AMOUNT

BITS_USER_SUPPLY_PREVIOUS_WITHDRAWAL_LIMIT

uint256 BITS_USER_SUPPLY_PREVIOUS_WITHDRAWAL_LIMIT

BITS_USER_SUPPLY_LAST_UPDATE_TIMESTAMP

uint256 BITS_USER_SUPPLY_LAST_UPDATE_TIMESTAMP

BITS_USER_SUPPLY_EXPAND_PERCENT

uint256 BITS_USER_SUPPLY_EXPAND_PERCENT

BITS_USER_SUPPLY_EXPAND_DURATION

uint256 BITS_USER_SUPPLY_EXPAND_DURATION

BITS_USER_SUPPLY_BASE_WITHDRAWAL_LIMIT

uint256 BITS_USER_SUPPLY_BASE_WITHDRAWAL_LIMIT

BITS_USER_SUPPLY_IS_PAUSED

uint256 BITS_USER_SUPPLY_IS_PAUSED

BITS_USER_BORROW_MODE

uint256 BITS_USER_BORROW_MODE

BITS_USER_BORROW_AMOUNT

uint256 BITS_USER_BORROW_AMOUNT

BITS_USER_BORROW_PREVIOUS_BORROW_LIMIT

uint256 BITS_USER_BORROW_PREVIOUS_BORROW_LIMIT

BITS_USER_BORROW_LAST_UPDATE_TIMESTAMP

uint256 BITS_USER_BORROW_LAST_UPDATE_TIMESTAMP

BITS_USER_BORROW_EXPAND_PERCENT

uint256 BITS_USER_BORROW_EXPAND_PERCENT

BITS_USER_BORROW_EXPAND_DURATION

uint256 BITS_USER_BORROW_EXPAND_DURATION

BITS_USER_BORROW_BASE_BORROW_LIMIT

uint256 BITS_USER_BORROW_BASE_BORROW_LIMIT

BITS_USER_BORROW_MAX_BORROW_LIMIT

uint256 BITS_USER_BORROW_MAX_BORROW_LIMIT

BITS_USER_BORROW_IS_PAUSED

uint256 BITS_USER_BORROW_IS_PAUSED

BITS_CONFIGS2_MAX_UTILIZATION

uint256 BITS_CONFIGS2_MAX_UTILIZATION

calculateMappingStorageSlot

function calculateMappingStorageSlot(uint256 slot_, address key_) internal pure returns (bytes32)

Calculating the slot ID for Liquidity contract for single mapping at slot_ for key_

calculateDoubleMappingStorageSlot

function calculateDoubleMappingStorageSlot(uint256 slot_, address key1_, address key2_) internal pure returns (bytes32)

Calculating the slot ID for Liquidity contract for double mapping at slot_ for key1_ and key2_