Skip to content

FluidERC4626CappedRateL2 ​

Git Source

Inherits:FluidCappedRateL2

Stores gas optimized and safety up and/or down capped exchange rate for a ERC4626 source, e.g. SUSDE / USDE rate. for L2 with sequencer uptime feed.

Functions ​

constructor ​

solidity
constructor(FluidCappedRateL2.CappedRateConstructorParams memory params_, address sequencerUptimeFeed_)
    FluidCappedRateL2(params_, sequencerUptimeFeed_);

_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);