Removed custom recipent in swaps; tests added.#451
Conversation
Greptile SummaryThis PR removes the custom Confidence Score: 4/5Safe to merge for typical token amounts; the uint128/uint256 mismatch only becomes a problem for quantities above 2^128. No P0 or P1 findings. The remaining uint128 vs uint256 issue is P2 — byte-identical encoding for all realistic amounts. Test coverage gap is a quality concern only. All four swap methods in Important Files Changed
Sequence DiagramsequenceDiagram
participant Caller
participant Uniswap4
participant UniversalRouter
participant PoolManager
Caller->>Uniswap4: eth_to_token_swap_input(input, qty, qtycap, ...)
Note over Uniswap4: Build actions:<br/>SWAP_EXACT_IN_SINGLE / SETTLE_ALL / TAKE_ALL
Uniswap4->>Uniswap4: encode settle_all_params([address, uint128])
Uniswap4->>Uniswap4: encode take_all_params([address, uint128])
Uniswap4->>UniversalRouter: execute(V4_SWAP, inputs)
UniversalRouter->>PoolManager: swap(poolKey, params)
PoolManager-->>UniversalRouter: output tokens
UniversalRouter->>Caller: TAKE_ALL sends tokens to msg.sender
Reviews (2): Last reviewed commit: "quick fix" | Re-trigger Greptile |
No description provided.