feat: Simplify StrategyEncoders and RouterEncoder
No more SingleSwapStrategyEncoder or SequentialStrategyEncoder No more batch routing (so no need for batch permits as well). If multiple solutions are found, return multiple Transactions --- don't change below this line --- ENG-4076 <#DTT#>
This commit is contained in:
@@ -30,11 +30,11 @@ impl Permit2 {
|
||||
}
|
||||
}
|
||||
impl UserApprovalsManager for Permit2 {
|
||||
fn encode_approvals(&self, _approvals: Vec<Approval>) -> Vec<u8> {
|
||||
fn encode_approvals(&self, _approvals: Vec<Approval>) -> Vec<Vec<u8>> {
|
||||
// calls get_allowance_data to get nonce
|
||||
// checks if we are not permitted already
|
||||
// puts data into a permitSingle struct if there is only 1 PermitDetails, if there are
|
||||
// several, use PermitBatch adds the nonce and the expiration (uniswap recommends
|
||||
// puts data into a list of PermitSingles
|
||||
// adds the nonce and the expiration (uniswap recommends
|
||||
// 30 days for expiration) signs data
|
||||
// returns encoded data
|
||||
todo!()
|
||||
|
||||
Reference in New Issue
Block a user