SushiLPAggregator

You can use this contract for lp token pricing oracle.

Functions:

Function constructor(address _pair, address _factory)

No description

Function latestRoundData() → uint80, int256, uint256, uint256, uint80

Get the latest round data. Should be the same format as chainlink aggregator.

Return Values:

  • roundId The round ID.

  • answer The price - the latest round data of a given sushi lp token (price decimal: 8)

  • startedAt Timestamp of when the round started.

  • updatedAt Timestamp of when the round was updated.

  • answeredInRound The round ID of the round in which the answer was computed.

Last updated