IPriceRepository

Git Source

Functions

setTokenPriceAt

Set the price of token denominated in denomination at the given timestamp

function setTokenPriceAt(address token, address denomination, uint256 timestamp, UD60x18 price) external;

Parameters

NameTypeDescription
tokenaddressThe exchange token (ERC20 token)
denominationaddressThe Chainlink token denomination to quote against (ETH, BTC, or USD)
timestampuint256Reference timestamp (in seconds)
priceUD60x18The amount of token denominated in denomination (18 decimals)

Events

PriceUpdate

event PriceUpdate(address indexed token, address indexed denomination, uint256 timestamp, UD60x18 price);