mirror of
https://github.com/luxfi/graph.git
synced 2026-09-24 00:26:07 +00:00
Every argument in a call is one word wide and position is the only thing that says which argument is which. An amount above 2^256-1 rendered 65 hex characters instead of 64, shifting every argument after it — the call stayed well-formed and meant something else: a different recipient, a different bound. The bound belongs at parseWei, where an amount enters, so the quote, the swap and the approval all get it from one place rather than three. Inflating an exact-output bound could carry a value that fits past what fits, so it stops at the width instead. A bound wider than the type can express is not a wider bound. Co-authored-by: Hanzo Dev <[email protected]>