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

KarpelesLab / libwallet / 24554724114
25%

Build:
DEFAULT BRANCH: master
Ran 17 Apr 2026 08:13AM UTC
Jobs 1
Files 97
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

17 Apr 2026 08:04AM UTC coverage: 21.128% (+0.08%) from 21.053%
24554724114

push

github

MagicalTux
Swap: detect required approvals + add Swap:buildApproval with tight default

1inch quotes now read the router's current allowance via
eth_call on ERC-20 allowance() and populate SwapQuote.
requiresApproval / approvalSpender / currentAllowance /
neededAllowance. Native ETH inputs skip the check.

New Swap:buildApproval endpoint returns a validated
Transaction (Type=evm, approve(spender, amount) calldata) the
caller feeds into Transaction:signAndSend. The default
approval amount is exactly the quote's amountIn — a
compromised router can only drain what the user already
agreed to. Opt into 'max' for classic unlimited approve or a
custom decimal for a batch cap; in both cases the app should
surface the widened blast radius to the user.

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

41 of 166 new or added lines in 3 files covered. (24.7%)

2473 of 11705 relevant lines covered (21.13%)

68.41 hits per line

Uncovered Changes

Lines Coverage ∆ File
93
27.34
wltswap/approval.go
32
6.79
2.44% wltswap/oneinch.go
Jobs
ID Job ID Ran Files Coverage
1 24554724114.1 17 Apr 2026 08:13AM UTC 97
21.13
GitHub Action Run
Source Files on build 24554724114
  • Tree
  • List 97
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24554724114
  • 017313ce on github
  • Prev Build on master (#24554063128)
  • Next Build on master (#24555025066)
  • 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