core icon indicating copy to clipboard operation
core copied to clipboard

Chainlink funding rate oracle

Open 134dd3v opened this issue 2 years ago • 0 comments

  • Abstracts the funding rate override logic out of VPoolWrapper through FundingRateOverride library, exposing only set and get methods.
  • Adds ability to supply an address as funding rate override. This is to prevent breaking storage changes.
  • Adds absolute bound of 100% (annual) to the funding rate, it's added in the getFundingRateAndVirtualPrice method. This implies that funding rate will stay within ±100% (annualised), even if real and virtual prices are very apart, oracle gives weird values or funding rate override value is set ridiculously high.

134dd3v avatar Jul 29 '22 18:07 134dd3v