Skip to content

IPerpsV2ExchangeRate

Description

Source: contracts/interfaces/IPerpsV2ExchangeRate.sol

Views

offchainOracle

Source

Details

Signature

offchainOracle() view returns (contract IPyth)

Visibility

external

State Mutability

view

offchainPriceFeedId

Source

Details

Signature

offchainPriceFeedId(bytes32 assetId) view returns (bytes32)

Visibility

external

State Mutability

view

resolveAndGetLatestPrice

Source

Details

Signature

resolveAndGetLatestPrice(bytes32 assetId) view returns (uint256 price, uint256 publishTime)

Visibility

external

State Mutability

view

resolveAndGetPrice

Source

Details

Signature

resolveAndGetPrice(bytes32 assetId, uint256 maxAge) view returns (uint256 price, uint256 publishTime)

Visibility

external

State Mutability

view

External Functions

setOffchainOracle

Source

Details

Signature

setOffchainOracle(contract IPyth _offchainOracle)

Visibility

external

State Mutability

``

setOffchainPriceFeedId

Source

Details

Signature

setOffchainPriceFeedId(bytes32 assetId, bytes32 priceFeedId)

Visibility

external

State Mutability

``

updatePythPrice

Source

Details

Signature

updatePythPrice(address sender, bytes[] priceUpdateData) payable

Visibility

external

State Mutability

payable