• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / libwallet / 25898429022
24%

Build:
DEFAULT BRANCH: master
Ran 15 May 2026 03:30AM UTC
Jobs 1
Files 118
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 May 2026 03:22AM UTC coverage: 21.864% (+0.2%) from 21.657%
25898429022

push

github

MagicalTux
wltswap/jupiter: retry without referralFee on "Failed to get quotes"

Confirmed via cURL that small Solana swaps fail at the Jupiter Ultra
/order endpoint specifically because of the 50bps referralFee we
stack on top. Same request without referralFee returns a successful
quote via JupiterZ RFQ (which even subsidizes gas, gasless: true).

Reproducer (curl):
  with    referralFee=50 → HTTP 400 "Failed to get quotes"
  without referralFee    → HTTP 200, populated transaction

Adds jupiterFetchOrderWithRetry: first attempt with the platform
fee, retry once without it on the specific no-route signature
(both the HTTP 400 wrapped via httpRun's ProviderBadRequest path
and the HTTP 200 empty-Transaction path with "Failed to get quotes"
in the body). Other failure modes — Insufficient funds, transport
errors, decode failures — don't retry; surface the original error
so the user sees the actionable message.

When the retry succeeds, Quote.FeeBps and Quote.ReferralFee are
zero so the approval sheet correctly shows "no platform fee on
this swap" rather than a fee we didn't actually collect.

Tests cover all four matrix cells:
- first-call success (no retry, fee collected)
- first-call no-route + retry success (feeWaived=true)
- first-call non-route error (no retry, original error surfaced)
- both attempts fail (returned as no_liquidity)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

43 of 77 new or added lines in 1 file covered. (55.84%)

2 existing lines in 1 file now uncovered.

3608 of 16502 relevant lines covered (21.86%)

113.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
34
26.52
22.95% wltswap/jupiter.go

Coverage Regressions

Lines Coverage ∆ File
2
26.52
22.95% wltswap/jupiter.go
Jobs
ID Job ID Ran Files Coverage
1 25898429022.1 15 May 2026 03:30AM UTC 118
21.86
GitHub Action Run
Source Files on build 25898429022
  • Tree
  • List 118
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25898429022
  • baf9dce3 on github
  • Prev Build on master (#25864401376)
  • Next Build on master (#25898741810)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc