-
Notifications
You must be signed in to change notification settings - Fork 124
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
Updated slot subscriber provider #798
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #798 +/- ##
=======================================
Coverage 74.65% 74.65%
=======================================
Files 128 128
Lines 29772 29772
=======================================
+ Hits 22225 22226 +1
+ Misses 7547 7546 -1
|
calculate(samples: { slot: number; prioritizationFee: number }[]): number { | ||
if (samples.length === 0) { | ||
return 0; | ||
} | ||
const stopSlot = samples[0].slot - this.lookbackSlots; | ||
let runningSumFees = 0; | ||
let countFees = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is countFees
still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah look down a few lines
Slightly changed slot subscriber logic: