getPrice

set(nat) -> list(op(Oracle(pairName, PriceFeed.receivePrice))

Entrypoint calls oracle about prices each of tokenId from input set(nat) and routes them to receivePrice. It the end prices sends to yToken.priceCallback entrypoint.

Usage

const tokenSet = [0, 1, 5]; // token ids to update
const proxy = await tezos.contract.at(proxyAddress);
const operation = await proxy.methods.getPrice(tokenSet).send();
await operation.confirmation();

Last updated