receivePrice

(string * (timestamp * nat)) -> op(YToken.priceCallback(price))

This entrypoint is a part of the getPrice call.

Receives data (string * (timestamp * nat)) from oracle as (pairName, timestamp, oraclePrice) parses from oraclePrice normalized price and send it as a callback to yToken.priceCallback entrypoint.

This entrypoint is configured to process calls only from oracle contract address from its storage, so no one else could call this method.

Last updated