fix: an allowance to another spender leaves no Amount figure for its token and no Min. received (closes #658) #666

Merged
clawbot merged 1 commits from issue-658-allowance-to-another-spender into next 2026-10-21 06:24:52 +02:00
1 Commits
Author SHA1 Message Date
sneak b17376b00b fix: an allowance to another spender leaves no Amount figure for its token and no Min. received (closes #658)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
Code that a step runs, such as a V4 pool's hook, can call a spender other
than the router, which can then take up to its allowance from the user's
wallet before the transaction ends. The Amount figure and Min. received took
no account of it.

In decode(), an allowance of Token In to a spender other than the router
now leaves no Amount line, as an unread permit already did, so the swap
steps' own takes get lines of their own. Any allowance to another spender,
or a permit or batch the decoder cannot read, makes the minimum read
Min. paid out. Permits to the router read as before.

Model: opus-5-5
2026-10-21 03:24:45 +00:00