DexStorageVars ​
Abstract contract providing view functions for DEX storage variables
Functions ​
getDexVariablesRaw ​
Get the raw DEX variables
solidity
function getDexVariablesRaw(address dex_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The raw DEX variables |
getDexVariables2Raw ​
Get the raw DEX variables2
solidity
function getDexVariables2Raw(address dex_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The raw DEX variables2 |
getTotalSupplyShares ​
Get the total supply shares of a DEX
solidity
function getTotalSupplyShares(address dex_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The total supply shares |
getUserSupplyDataRaw ​
Get the raw user supply data for a specific user and DEX
solidity
function getUserSupplyDataRaw(address dex_, address user_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
user_ | address | The address of the user |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The raw user supply data |
getTotalBorrowShares ​
Get the total borrow shares of a DEX
solidity
function getTotalBorrowShares(address dex_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The total borrow shares |
getUserBorrowDataRaw ​
Get the raw user borrow data for a specific user and DEX
solidity
function getUserBorrowDataRaw(address dex_, address user_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
user_ | address | The address of the user |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The raw user borrow data |
getOracleRaw ​
Get the raw oracle data for a specific DEX and index
solidity
function getOracleRaw(address dex_, uint256 index_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
index_ | uint256 | The index of the oracle data |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The raw oracle data |
getRangeShiftRaw ​
Get the raw range shift for a DEX
solidity
function getRangeShiftRaw(address dex_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The raw range shift |
getThresholdShiftRaw ​
Get the raw threshold shift for a DEX
solidity
function getThresholdShiftRaw(address dex_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The raw threshold shift |
getCenterPriceShiftRaw ​
Get the raw center price shift for a DEX
solidity
function getCenterPriceShiftRaw(address dex_) public view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
dex_ | address | The address of the DEX |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The raw center price shift |
_calculateStorageSlotUintMapping ​
Calculate the storage slot for a uint mapping
solidity
function _calculateStorageSlotUintMapping(uint256 slot_, uint256 key_) internal pure returns (bytes32);
Parameters
Name | Type | Description |
---|---|---|
slot_ | uint256 | The base slot of the mapping |
key_ | uint256 | The key of the mapping |
Returns
Name | Type | Description |
---|---|---|
<none> | bytes32 | The calculated storage slot |