fix: Remove exactOut from USV3 encoding

- We don't support exactOut atm
This commit is contained in:
TAMARA LIPOWSKI
2025-01-29 16:56:45 -05:00
parent e481ceb304
commit d8b44f623b
2 changed files with 1 additions and 3 deletions

View File

@@ -113,7 +113,6 @@ impl SwapEncoder for UniswapV3SwapEncoder {
bytes_to_address(&encoding_context.receiver)?,
component_id,
zero_to_one,
encoding_context.exact_out,
);
Ok(args.abi_encode_packed())
@@ -259,8 +258,6 @@ mod tests {
"88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
// zero for one
"00",
// exact out
"00",
))
);
}

View File

@@ -65,6 +65,7 @@ pub struct Transaction {
#[allow(dead_code)]
pub struct EncodingContext {
pub receiver: Bytes,
// TODO should we keep this?
pub exact_out: bool,
pub router_address: Bytes,
}