Skip to content

Latest commit

 

History

History
246 lines (218 loc) · 7.1 KB

FakePriceOracle.md

File metadata and controls

246 lines (218 loc) · 7.1 KB

FakePriceOracle.sol

View Source: contracts/fakes/FakePriceOracle.sol

↗ Extends: IPriceOracle

FakePriceOracle

Contract Members

Constants & Variables

uint256 private _counter;

Functions

update

function update() external nonpayable

Arguments

Name Type Description
Source Code
function update() external override {
    _counter++;
  }

consult

function consult(address , uint256 amountIn) external pure
returns(uint256)

Arguments

Name Type Description
address
amountIn uint256
Source Code
function consult(address, uint256 amountIn) external pure override returns (uint256) {
    return amountIn * 2;
  }

consultPair

function consultPair(uint256 amountIn) external pure
returns(uint256)

Arguments

Name Type Description
amountIn uint256
Source Code
function consultPair(uint256 amountIn) external pure override returns (uint256) {
    return amountIn;
  }

Contracts