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

KarpelesLab / libwallet / 28360024165
25%

Build:
DEFAULT BRANCH: master
Ran 29 Jun 2026 08:52AM UTC
Jobs 1
Files 131
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

29 Jun 2026 08:49AM UTC coverage: 23.637% (+0.004%) from 23.633%
28360024165

push

github

MagicalTux
wltswap: reserve wSOL input-wrap rent on max native-SOL swaps

A native-SOL → SPL swap creates, funds (with amount_in), and closes a
temporary wSOL wrap account; the wallet must front its rent (~2.04M lamports)
mid-tx even though it's recovered at close. resolveMaxAmountIn reserved the
OUTPUT token ATA rent but NOT this input wrap rent, so Swap:maxSpendable for
SOL over-stated by ~2.04M lamports — a max/near-max SOL swap then couldn't
fund the wrap and reverted on-chain at the swap instruction (the
field-reported "custom program error: 0xb").

Confirmed by simulating a real OKX SOL->USDC tx against mainnet: it succeeds
for a funded wallet that already holds wSOL (price impact 0.07%, so NOT
slippage and NOT a structural/our-code issue), and the only unreserved peak
cost is the input wSOL wrap rent. Renamed solanaOutputAtaReservation ->
solanaSwapSolReservation and have it reserve BOTH the input wSOL wrap (unless
the user already holds a wSOL account) and the output ATA (unless it exists).

Part of unreleased 0.4.73.

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

0 of 19 new or added lines in 1 file covered. (0.0%)

4772 of 20189 relevant lines covered (23.64%)

94.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
19
25.78
0.19% wltswap/swap.go
Jobs
ID Job ID Ran Files Coverage
1 28360024165.1 29 Jun 2026 08:52AM UTC 131
23.64
GitHub Action Run
Source Files on build 28360024165
  • Tree
  • List 131
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28360024165
  • 03ad446e on github
  • Prev Build on master (#28357719060)
  • Next Build on master (#28360829808)
  • 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