Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ERC4626ExchangeRate

Git Source

Inherits: IExchangeRateProvider

ERC4626 exchange rate.

State Variables

token

ERC4626 token

IERC4626 public token;

Functions

constructor

Initialize the contract

constructor(IERC4626 _token);

exchangeRate

Get the exchange rate

function exchangeRate() external view returns (uint256);

exchangeRateDecimals

Get the exchange rate decimals

function exchangeRateDecimals() external view returns (uint256);