IVaultPriceFeed Interface
TheIVaultPriceFeed
interface defines the functions available in the VaultPriceFeed contract, which serves as the price oracle system for the Satoshi Perps protocol.
Price Retrieval
Price Feed Configuration
Price Adjustment Access
Price Feed Access
Price Calculation
Usage Notes
- The VaultPriceFeed serves as the central price oracle for the Satoshi Perps protocol.
- It prioritizes Chainlink oracles but can fall back to secondary sources.
- Price adjustments and spreads can be configured per token.
- The
_maximise
parameter determines whether to return the maximum or minimum price based on the spread.
Security Considerations
- Price data is critical for the protocol’s security, as it affects position sizing, liquidations, and swaps.
- Chainlink oracles are preferred for their reliability and decentralization.
- Adjustments should be used carefully as they directly affect pricing throughout the protocol.