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

KarpelesLab / libwallet / 28415222675
25%

Build:
DEFAULT BRANCH: master
Ran 30 Jun 2026 02:04AM 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

30 Jun 2026 02:01AM UTC coverage: 23.637%. Remained the same
28415222675

push

github

MagicalTux
wltswap/okx: send native-SOL identifier so OKX wraps SOL (fixes 0xb)

okxSolanaNativeSentinel was the wSOL mint (So111...112). OKX reads that as
"spend the user's existing wSOL SPL token" and builds a swap tx that does
NOT wrap native SOL — so the swap's source_token_account is uninitialized
for any wallet that doesn't already hold wSOL, and the tx reverts on-chain
(AnchorError AccountNotInitialized / custom program error 0xb), independent
of SOL balance or slippage. (A wallet that happened to hold wSOL — e.g. the
test whale — succeeded, which masked this.)

Switch the sentinel to OKX's native-SOL identifier
"11111111111111111111111111111111" (all-1s System Program address). Verified
by simulating real OKX txs against mainnet for an affected wallet: the
wSOL-mint form leaves source_token_account uninitialized, while the all-1s
form makes OKX include the SOL->wSOL wrap (before_source_balance funded) and
the wSOL->SOL unwrap on the output side.

The all-1s path then surfaces a separate OKX commission account-type error
(InconsistentFeeAccountTypes / 0x17c6) that is being fixed platform-side, so
this should be RELEASED together with that backend fix — re-simulate against
an affected wallet to confirm a clean land first.

Scope: only okxTokenAddrFor's OKX wire identifier changes. isNativeTokenAddress
and solanaNativeMintOrAddr still key off the host "NATIVE" sentinel and the
real on-chain wSOL mint respectively (unchanged). Adds a regression test
pinning the native identifier.

Part of unreleased 0.4.74.

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

4772 of 20189 relevant lines covered (23.64%)

95.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28415222675.1 30 Jun 2026 02:04AM UTC 131
23.64
GitHub Action Run
Source Files on build 28415222675
  • 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 #28415222675
  • bce9c702 on github
  • Prev Build on master (#28360829808)
  • Next Build on master (#28423505195)
  • 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