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

MockExchangeRateProvider

Git Source

Inherits: IExchangeRateProvider

Mock exchange rate.

State Variables

rate

uint256 private rate;

decimals

uint256 private decimals;

Functions

constructor

constructor(uint256 _rate, uint256 _decimals);

newRate

function newRate(uint256 _rate) external;

exchangeRate

function exchangeRate() external view returns (uint256);

exchangeRateDecimals

function exchangeRateDecimals() external view returns (uint256);

setExchangeRate

function setExchangeRate(uint256 _rate) external;