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

KarpelesLab / libwallet / 24949587801
24%

Build:
DEFAULT BRANCH: master
Ran 26 Apr 2026 06:04AM UTC
Jobs 1
Files 111
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

26 Apr 2026 05:08AM UTC coverage: 20.191% (-0.2%) from 20.388%
24949587801

push

github

MagicalTux
wltswap: Swap:maxSpendable + "MAX" sentinel on Swap:quote

Two equivalent paths to "swap the full balance":

- POST Swap:maxSpendable with the same shape as Swap:quote minus
  amountIn — returns the same SwapQuote, with quote.amountIn
  populated from the resolved max so the frontend can render
  "MAX → 1.234 SOL" before the user commits.
- POST Swap:quote with amountIn:"MAX" — same end result, lighter
  on typed-client surface area.

Resolution shares wlttx.MaxSendable so native and token paths get
the same fee/rent reservations they get for plain transfers.
Native input reserves the network fee + (Solana) rent-exempt
minimums; token input returns the full balance because gas is
paid in native currency.

Quote provider call + auto-fallback + cache wiring is factored
into runQuote() so swapQuote and swapMaxSpendable share it.

Dart client adds tokens.swap.maxSpendable() with matching docs;
swap.quote() docs document the MAX sentinel; transactions.
maxSendable() doc updated to reflect the new token support.

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

1 of 53 new or added lines in 2 files covered. (1.89%)

231 existing lines in 1 file now uncovered.

2982 of 14769 relevant lines covered (20.19%)

128.12 hits per line

Uncovered Changes

Lines Coverage ∆ File
52
19.39
-6.82% wltswap/swap.go

Coverage Regressions

Lines Coverage ∆ File
231
13.76
-3.84% wlttx/maxsendable.go
Jobs
ID Job ID Ran Files Coverage
1 24949587801.1 26 Apr 2026 06:04AM UTC 111
20.19
GitHub Action Run
Source Files on build 24949587801
  • Tree
  • List 111
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24949587801
  • 025cf3b0 on github
  • Prev Build on master (#24923249329)
  • Next Build on master (#24950265921)
  • 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