Skip to content

FluidVedaCappedRate ​

Git Source

Inherits:IVedaAccountant, FluidCappedRate

Stores gas optimized and safety up and/or down capped exchange rate for a VedaAccountant, e.g. WEETHS / ETH or EBTC / BTC rate.

e.g. EBTC accountant contract; 0x1b293DC39F94157fA0D1D36d7e0090C8B8B8c13F

e.g. WEETHS accountant contract; 0xbe16605B22a7faCEf247363312121670DFe5afBE

Functions ​

constructor ​

solidity
constructor(FluidCappedRate.CappedRateConstructorParams memory params_) FluidCappedRate(params_);

_getNewRateRaw ​

solidity
function _getNewRateRaw() internal view virtual override returns (uint256 exchangeRate_);

vault ​

The BoringVault this accountant is working with. Used to determine share supply for fee calculation.

solidity
function vault() external view override returns (address);

getRate ​

Get this BoringVault's current rate in the base.

solidity
function getRate() external view override returns (uint256);

getRateSafe ​

Get this BoringVault's current rate in the base.

Revert if paused.

solidity
function getRateSafe() external view override returns (uint256);