PegOracle ​
This contract is used to get the exchange rate between pegged assets like sUSDE / USDC or USDE / USDC. Price is adjusted for token decimals and optionally a IERC4626 source feed can be set (e.g. for sUSDE or sUSDS).
constructor ​
solidity
constructor(string infoName_, uint8 colTokenDecimals_, uint8 debtTokenDecimals_, contract IERC4626 erc4626Feed_) public
getExchangeRateOperate ​
solidity
function getExchangeRateOperate() public view returns (uint256 exchangeRate_)
Get the exchangeRate_
between the underlying asset and the peg asset in 1e27 for operates
getExchangeRateLiquidate ​
solidity
function getExchangeRateLiquidate() external view returns (uint256 exchangeRate_)
Get the exchangeRate_
between the underlying asset and the peg asset in 1e27 for liquidations
getExchangeRate ​
solidity
function getExchangeRate() external view returns (uint256 exchangeRate_)
Deprecated. Use getExchangeRateOperate()
and getExchangeRateLiquidate()
instead. Only implemented for backwards compatibility.