Make Permit2 and TokenApprovalsManager implement it. This way in the RouternEncoder we can use either one (I'm not exactly sure what this would mean in the contract though) I'm not sure I like this generalisation. The TokenApprovalsManager was made with a different purpose: to approve token allowances for the pools (like balancer and curve) for our router
8 lines
121 B
Rust
8 lines
121 B
Rust
mod approvals;
|
|
mod models;
|
|
mod router_encoder;
|
|
mod strategy_encoder;
|
|
mod strategy_selector;
|
|
mod swap_encoder;
|
|
mod utils;
|