FluidERC46262xCappedRate ​
Inherits:ERC46262xCappedRateVariables, FluidCappedRate
Stores gas optimized and safety up and/or down capped exchange rate for 2 ERC4626 sources, e.g. CSUSDL / USDL rate
e.g. CSUSDL 0xbEeFc011e94f43b8B7b455eBaB290C7Ab4E216f1 + WUSDL 0x7751e2f4b8ae93ef6b79d86419d42fe3295a4559
Functions ​
constructor ​
solidity
constructor(FluidCappedRate.CappedRateConstructorParams memory params_, address rateSource2_)
validAddress(rateSource2_)
ERC46262xCappedRateVariables(rateSource2_)
FluidCappedRate(params_);
_getNewRateRaw ​
solidity
function _getNewRateRaw() internal view virtual override returns (uint256 exchangeRate_);
convertToShares ​
Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal scenario where all the conditions are met. see IERC4626
solidity
function convertToShares(uint256 assets) external view returns (uint256 shares);
convertToAssets ​
Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal scenario where all the conditions are met. see IERC4626
solidity
function convertToAssets(uint256 shares) external view returns (uint256 assets);