Assessment reports>Programmable Derivatives>Threat Model>latestRoundData

Function: latestRoundData()

This function is used to get the latest round data.

Branches and code coverage

Intended branches

  • Get token prices from the oracle.

  • Calculate the fair price of the pool in USD.

Negative behavior

  • Revert if the price is too large for int conversion.

Zellic © 2025Back to top ↑