We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dab831 commit 1c8aba8Copy full SHA for 1c8aba8
src/utils/common.js
@@ -67,7 +67,7 @@ export async function ensure_allowance(amounts, plain = false) {
67
if (cBN(allowances[i]).isLessThan(currentContract.max_allowance.div(cBN(2)))) {
68
if (allowances[i] > 0)
69
await approve(coins[i], 0, default_account, swap);
70
- await approve(coins[i], max_allowance, default_account, swap);
+ await approve(coins[i], currentContract.max_allowance, default_account, swap);
71
}
72
73
0 commit comments