refactor: remove effectiveTrader from calldata and always set it to trader's value
This commit is contained in:
@@ -948,7 +948,6 @@ impl SwapEncoder for HashflowSwapEncoder {
|
||||
"pool",
|
||||
"external_account",
|
||||
"trader",
|
||||
"effective_trader",
|
||||
"base_token",
|
||||
"quote_token",
|
||||
"base_token_amount",
|
||||
@@ -2258,11 +2257,6 @@ mod tests {
|
||||
"trader".to_string(),
|
||||
Bytes::from_str("0xcd09f75e2bf2a4d11f3ab23f1389fcc1621c0cc2").unwrap(),
|
||||
),
|
||||
(
|
||||
// Passing the tycho router address here has no effect
|
||||
"effective_trader".to_string(),
|
||||
Bytes::from_str("0xcd09f75e2bf2a4d11f3ab23f1389fcc1621c0cc2").unwrap(),
|
||||
),
|
||||
(
|
||||
"base_token".to_string(),
|
||||
Bytes::from_str("0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48").unwrap(),
|
||||
|
||||
Reference in New Issue
Block a user