OracleGlobalPPS

The OracleGlobalPPS contract is deployed as a single instance on the Arbitrum network. It provides up-to-date information on the current Price Per Share (PPS) for each token within the system. This contract is crucial for ensuring accurate pricing data across the MAAT protocol.

Key Functions

getPrevGlobalPPS

Returns the previous global Price Per Share for a specified token.

getPrevGlobalPPS(address token) external view returns (uint)

Parameters:

  • token: The address of the token for which to retrieve the previous PPS.

Returns:

  • uint: The previous Price Per Share for the specified token.

getGlobalPPS

Returns the current global Price Per Share for a specified token.

getGlobalPPS(address token) external view returns (uint)

Parameters:

  • token: The address of the token for which to retrieve the current PPS.

Returns:

  • uint: The current Price Per Share for the specified token.

decimals

Returns the decimals used in the PPS calculations.

decimals() external pure returns (uint)

Returns:

  • uint: The decimals.

Last updated