Skip to content

FluidCappedRateInvertCenterPrice ​

Git Source

Inherits:FluidCenterPrice

used when there are 2 dexes for the same token where it is once token0 and for the other dex token1 e.g. when both LBTC / CBBTC and WBTC / LBTC dexes exist, the center price must once be BTC per LBTC and once it must be LBTC per BTC.

State Variables ​

FLUID_CAPPED_RATE ​

external exchange rate source contract FluidCappedRate

solidity
address public immutable FLUID_CAPPED_RATE;

Functions ​

constructor ​

solidity
constructor(string memory infoName_, address fluidCappedRate_) FluidCenterPrice(infoName_);

centerPrice ​

solidity
function centerPrice() external override returns (uint256 price_);