IPerpsV2ExchangeRate¶
Description¶
Source: contracts/interfaces/IPerpsV2ExchangeRate.sol
Views¶
offchainOracle
¶
Details
Signature
offchainOracle() view returns (contract IPyth)
Visibility
external
State Mutability
view
offchainPriceFeedId
¶
Details
Signature
offchainPriceFeedId(bytes32 assetId) view returns (bytes32)
Visibility
external
State Mutability
view
resolveAndGetLatestPrice
¶
Details
Signature
resolveAndGetLatestPrice(bytes32 assetId) view returns (uint256 price, uint256 publishTime)
Visibility
external
State Mutability
view
resolveAndGetPrice
¶
Details
Signature
resolveAndGetPrice(bytes32 assetId, uint256 maxAge) view returns (uint256 price, uint256 publishTime)
Visibility
external
State Mutability
view
External Functions¶
setOffchainOracle
¶
Details
Signature
setOffchainOracle(contract IPyth _offchainOracle)
Visibility
external
State Mutability
``
setOffchainPriceFeedId
¶
Details
Signature
setOffchainPriceFeedId(bytes32 assetId, bytes32 priceFeedId)
Visibility
external
State Mutability
``
updatePythPrice
¶
Details
Signature
updatePythPrice(address sender, bytes[] priceUpdateData) payable
Visibility
external
State Mutability
payable