Skip to content

feat: effective rate in rate card + funding in wallet analysis - #2079

Merged
Flotapponnier merged 1 commit into
devfrom
feat/fee-compare-effective-rate-funding
Aug 26, 2026
Merged

feat: effective rate in rate card + funding in wallet analysis#2079
Flotapponnier merged 1 commit into
devfrom
feat/fee-compare-effective-rate-funding

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Two fixes:

1. Rate card inconsistency
Rate card showed Gains global avg (5.31 bps) but simulation used BTC-specific rate (3.50 bps) → contradictory winner badge. Now: when wallet data exists, effectiveRateBps is computed from actual fills (per-coin weighted). Rate card uses it for winner logic, diff, and big number. Shows italic note "X.XX bps actual (your fills)" / "X.XX bps effective (your coins)".

2. Funding rate display
SimResult gets fundingUsd (HL net funding). SimBox shows "+ $X funding received/paid on {venue}" when non-negligible. Net cost tile subtitle changes from generic "after funding" to "fees $X + $Y rcvd" or "fees $X – $Y paid" breakdown.

Gains borrowing fees not included (would require separate GnsRolloverFeeCharged event scan).

@Flotapponnier
Flotapponnier merged commit de54457 into dev Aug 26, 2026
@Flotapponnier
Flotapponnier deleted the feat/fee-compare-effective-rate-funding branch August 26, 2026 16:09
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