FluidERC4626CappedRate ​
Inherits:FluidCappedRate
Stores gas optimized and safety up and/or down capped exchange rate for a ERC4626 source, e.g. SUSDE / USDE rate.
e.g. SUSDE contract; on mainnet 0x9D39A5DE30e57443BfF2A8307A4256c8797A3497
e.g. SUSDS contract; on mainnet 0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD
Functions ​
constructor ​
solidity
constructor(FluidCappedRate.CappedRateConstructorParams memory params_) 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);