Skip to content

fix: gains funding fallback guard + GMX outlier filter - #2115

Merged
Flotapponnier merged 1 commit into
devfrom
feat/fee-compare-carry-v2
Aug 27, 2026
Merged

fix: gains funding fallback guard + GMX outlier filter#2115
Flotapponnier merged 1 commit into
devfrom
feat/fee-compare-carry-v2

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Two fixes:

  1. Gains funding fallback condition was < 0.01 which also fires when funding was received (negative). Changed to >= 0 && < 0.01 so received funding is never overwritten with a positive estimate.

  2. GMX subsquid has corrupted rows with impossible fee rates (1.1B USDC fee on a $6886 position). Added a >1% fee/notional guard in both the rate query and wallet fetch loop.

@Flotapponnier
Flotapponnier force-pushed the feat/fee-compare-carry-v2 branch from 2cfef52 to 40a5add Compare August 27, 2026 13:39
@Flotapponnier
Flotapponnier merged commit 76a569a into dev Aug 27, 2026
1 check failed
bakabhai993 pushed a commit to bakabhai993/OpenChainBench that referenced this pull request Sep 12, 2026
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