Libraries
IPriceAggregatorUtils
Interface for GNSPriceAggregator facet (inherits types and also contains functions, events, and custom errors)
Initializes price aggregator facet
Updates LINK/USD chainlink price feed
Updates collateral/USD chainlink price feed
Updates collateral/GNS liquidity pool
Updates TWAP interval
Updates minimum answers count
Adds an oracle
Replaces an oracle
Removes an oracle
Updates market job id
Updates lookback job id
Requests price from oracles
Fulfills price request, called by chainlink oracles
Claims back LINK tokens, called by gov fund
Returns LINK fee for price request
Returns collateral/USD price
Returns USD normalized value from collateral value
Returns collateral value (collateral precision) from USD normalized value
Returns GNS/USD price based on GNS/collateral price
Returns GNS/USD price based on GNS/collateral price
Returns GNS/collateral price
Returns GNS/collateral price
Returns the link/usd price feed address
Returns the twap interval in seconds
Returns the minimum answers to execute an order and take the median
Returns the market job id
Returns the limit job id
Returns a specific oracle
Returns all oracles
Returns collateral/gns liquidity pool info
Returns collateral/usd chainlink price feed
Returns order data
Returns order data
Returns chainlink token address
Returns requestCount (used by ChainlinkClientUtils)
Returns pendingRequests mapping entry (used by ChainlinkClientUtils)
Emitted when LINK/USD price feed is updated
Emitted when collateral/USD price feed is updated
Emitted when collateral/GNS Uniswap V3 pool is updated
Emitted when TWAP interval is updated
Emitted when minimum answers count is updated
Emitted when an oracle is added
Emitted when an oracle is replaced
Emitted when an oracle is removed
Emitted when market job id is updated
Emitted when a chainlink request is created
Emitted when a price is requested to the oracles
Emitted when a trading callback is called from the price aggregator
Emitted when a price is received from the oracles
Emitted when LINK tokens are claimed back by gov fund
