-
Notifications
You must be signed in to change notification settings - Fork 135
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
feat(default-funding): Add default funding to nextFunding
calculation
#2696
Conversation
Caution Review failedThe pull request is closed. WalkthroughThis pull request integrates a new optional property, Changes
Sequence Diagram(s)sequenceDiagram
participant MU as Market Updater
participant RF as NextFundingCache.getNextFunding
participant TS as Test Suite
MU->>RF: Call with [(ticker, defaultFundingRate1H)]
RF->>RF: Compute average from funding samples
RF->>RF: Add defaultFundingRate1H to computed average
RF-->>MU: Return updated funding rates
TS->>RF: Verify returned funding rate with expectNextFundingRate()
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (7)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
ca96470
to
0e2e39b
Compare
0e2e39b
to
24f12c7
Compare
Changelist
Follow-up to #2674. Now that default funding is stored, add it to
nextFunding
calculation.Test Plan
Unit test
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit
New Features
Refactor
Tests