Skip to content

ImmutableVariables ​

Git Source

Inherits:ConstantVariables, Structs, Error

State Variables ​

DEX_ID ​

solidity
uint256 public immutable DEX_ID;

TOKEN_0 ​

Address of token 0

solidity
address internal immutable TOKEN_0;

TOKEN_1 ​

Address of token 1

solidity
address internal immutable TOKEN_1;

THIS_CONTRACT ​

solidity
address internal immutable THIS_CONTRACT;

TOKEN_0_NUMERATOR_PRECISION ​

solidity
uint256 internal immutable TOKEN_0_NUMERATOR_PRECISION;

TOKEN_0_DENOMINATOR_PRECISION ​

solidity
uint256 internal immutable TOKEN_0_DENOMINATOR_PRECISION;

TOKEN_1_NUMERATOR_PRECISION ​

solidity
uint256 internal immutable TOKEN_1_NUMERATOR_PRECISION;

TOKEN_1_DENOMINATOR_PRECISION ​

solidity
uint256 internal immutable TOKEN_1_DENOMINATOR_PRECISION;

LIQUIDITY ​

Address of liquidity contract

solidity
IFluidLiquidity internal immutable LIQUIDITY;

DEX_FACTORY ​

Address of DEX factory contract

solidity
IFluidDexFactory internal immutable DEX_FACTORY;

SHIFT_IMPLEMENTATION ​

Address of Shift implementation

solidity
address internal immutable SHIFT_IMPLEMENTATION;

ADMIN_IMPLEMENTATION ​

Address of Admin implementation

solidity
address internal immutable ADMIN_IMPLEMENTATION;

COL_OPERATIONS_IMPLEMENTATION ​

Address of Col Operations implementation

solidity
address internal immutable COL_OPERATIONS_IMPLEMENTATION;

DEBT_OPERATIONS_IMPLEMENTATION ​

Address of Debt Operations implementation

solidity
address internal immutable DEBT_OPERATIONS_IMPLEMENTATION;

PERFECT_OPERATIONS_AND_SWAP_OUT_IMPLEMENTATION ​

Address of Perfect Operations and Swap Out implementation

solidity
address internal immutable PERFECT_OPERATIONS_AND_SWAP_OUT_IMPLEMENTATION;

DEPLOYER_CONTRACT ​

Address of contract used for deploying center price & hook related contract

solidity
address internal immutable DEPLOYER_CONTRACT;

SUPPLY_TOKEN_0_SLOT ​

Liquidity layer slots

solidity
bytes32 internal immutable SUPPLY_TOKEN_0_SLOT;

BORROW_TOKEN_0_SLOT ​

solidity
bytes32 internal immutable BORROW_TOKEN_0_SLOT;

SUPPLY_TOKEN_1_SLOT ​

solidity
bytes32 internal immutable SUPPLY_TOKEN_1_SLOT;

BORROW_TOKEN_1_SLOT ​

solidity
bytes32 internal immutable BORROW_TOKEN_1_SLOT;

EXCHANGE_PRICE_TOKEN_0_SLOT ​

solidity
bytes32 internal immutable EXCHANGE_PRICE_TOKEN_0_SLOT;

EXCHANGE_PRICE_TOKEN_1_SLOT ​

solidity
bytes32 internal immutable EXCHANGE_PRICE_TOKEN_1_SLOT;

TOTAL_ORACLE_MAPPING ​

solidity
uint256 internal immutable TOTAL_ORACLE_MAPPING;

Functions ​

_calcNumeratorAndDenominator ​

solidity
function _calcNumeratorAndDenominator(address token_) private view returns (uint256 numerator_, uint256 denominator_);

constructor ​

solidity
constructor(ConstantViews memory constants_);