MoCPriceProviderMock

View Source: contracts/mocks/MoCPriceProviderMock.sol

↗ Extends: PriceFeed, PriceProvider

MoCPriceProviderMock - version: 0.1.12

Contract Members

Constants & Variables

bytes32 internal mocPrice;

bool internal has;

Functions

Constructor

function (uint256 price) public nonpayable

Arguments

NameTypeDescription

price

uint256

MoC price for mock contract

peek

⤾ overrides PriceProvider.peek

function peek() external view
returns(bytes32, bool)

Arguments

poke

⤾ overrides PriceFeed.poke

function poke(uint128 val_, uint32 ) external nonpayable

Arguments

NameTypeDescription

val_

uint128

uint32

post

⤾ overrides PriceFeed.post

function post(uint128 val_, uint32 , address ) external nonpayable

Arguments

NameTypeDescription

val_

uint128

uint32

address

Last updated