DexSlotsLink ​
library that helps in reading / working with storage slot data of Fluid Dex.
as all data for Fluid Dex is internal, any data must be fetched directly through manual slot reading through this library or, if gas usage is less important, through the FluidDexResolver.
DEX_VARIABLES_SLOT ​
uint256 DEX_VARIABLES_SLOT
storage slot for variables at Dex
DEX_VARIABLES2_SLOT ​
uint256 DEX_VARIABLES2_SLOT
storage slot for variables2 at Dex
DEX_TOTAL_SUPPLY_SHARES_SLOT ​
uint256 DEX_TOTAL_SUPPLY_SHARES_SLOT
storage slot for total supply shares at Dex
DEX_USER_SUPPLY_MAPPING_SLOT ​
uint256 DEX_USER_SUPPLY_MAPPING_SLOT
storage slot for user supply mapping at Dex
DEX_TOTAL_BORROW_SHARES_SLOT ​
uint256 DEX_TOTAL_BORROW_SHARES_SLOT
storage slot for total borrow shares at Dex
DEX_USER_BORROW_MAPPING_SLOT ​
uint256 DEX_USER_BORROW_MAPPING_SLOT
storage slot for user borrow mapping at Dex
DEX_ORACLE_MAPPING_SLOT ​
uint256 DEX_ORACLE_MAPPING_SLOT
storage slot for oracle mapping at Dex
DEX_RANGE_THRESHOLD_SHIFTS_SLOT ​
uint256 DEX_RANGE_THRESHOLD_SHIFTS_SLOT
storage slot for range and threshold shifts at Dex
DEX_CENTER_PRICE_SHIFT_SLOT ​
uint256 DEX_CENTER_PRICE_SHIFT_SLOT
storage slot for center price shift at Dex
BITS_USER_SUPPLY_ALLOWED ​
uint256 BITS_USER_SUPPLY_ALLOWED
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_BORROW_ALLOWED ​
uint256 BITS_USER_BORROW_ALLOWED
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
calculateMappingStorageSlot ​
function calculateMappingStorageSlot(uint256 slot_, address key_) internal pure returns (bytes32)
Calculating the slot ID for Dex 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 Dex contract for double mapping at slot_
for key1_
and key2_