Skip to content

Commit

Permalink
remove the token reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmkm committed May 19, 2022
1 parent 05e1eba commit ab58187
Showing 1 changed file with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -787,28 +787,17 @@ export default function useWithdrawMath(
}
}

let result = await balancer.swaps.queryBatchSwapWithSor({
const result = await balancer.swaps.queryBatchSwapWithSor({
tokensIn: tokensIn,
//tokensOut,
tokensOut: [tokensOut[2], tokensOut[1], tokensOut[0]],
tokensOut,
swapType,
//amounts: batchSwapAmounts,
amounts: [batchSwapAmounts[2], batchSwapAmounts[1], batchSwapAmounts[0]],
amounts: batchSwapAmounts,
fetchPools: {
fetchPools,
fetchOnChain: false
}
});

result = {
...result,
returnAmounts: [
result.returnAmounts[2],
result.returnAmounts[1],
result.returnAmounts[0]
]
};

batchSwapLoading.value = false;
return result;
}
Expand Down

0 comments on commit ab58187

Please sign in to comment.