chore: Rename address_for_approvals -> router_address

When will this not be the router address that we use for approvals? It will always be the router address. address_for_approvals sounds to me very vague (which approvals?).
This commit is contained in:
TAMARA LIPOWSKI
2025-01-21 16:31:18 -05:00
parent 7b4bf0205d
commit cc979880e2
3 changed files with 4 additions and 5 deletions

View File

@@ -65,7 +65,7 @@ impl StrategyEncoder for StraightToPoolStrategyEncoder {
let encoding_context = EncodingContext {
receiver: solution.receiver,
exact_out: solution.exact_out,
address_for_approvals: router_address,
router_address,
};
let protocol_data = swap_encoder.encode_swap(swap.clone(), encoding_context)?;
// TODO: here we need to pass also the address of the executor to be used