fix: Remove exactOut from USV3 encoding
- We don't support exactOut atm
This commit is contained in:
@@ -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",
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user