Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chainlink funding rate oracle #171

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

134dd3v
Copy link
Member

@134dd3v 134dd3v commented Jul 29, 2022

  • 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 134dd3v temporarily deployed to CI July 29, 2022 18:48 Inactive
@134dd3v 134dd3v temporarily deployed to CI July 29, 2022 18:48 Inactive
@134dd3v 134dd3v temporarily deployed to CI July 29, 2022 18:48 Inactive
@134dd3v 134dd3v temporarily deployed to CI August 1, 2022 12:22 Inactive
@134dd3v 134dd3v temporarily deployed to CI August 1, 2022 12:22 Inactive
@134dd3v 134dd3v temporarily deployed to CI August 1, 2022 12:22 Inactive
Does not expand memory, uses scratch space. Also does not copy entire
return data to memory, basically uses default static call's ret offset and
size to use scratch space only.
@134dd3v 134dd3v temporarily deployed to CI August 18, 2022 06:35 Inactive
@134dd3v 134dd3v temporarily deployed to CI August 18, 2022 06:35 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant