refactor: remove effectiveTrader from calldata and always set it to trader's value

This commit is contained in:
adrian
2025-08-21 09:51:36 +02:00
committed by Adrian Benavides
parent 5c5678f291
commit 52c91a12b8
4 changed files with 15 additions and 29 deletions

View File

@@ -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(),