Skip to content

Commit 59a1485

Browse files
committed
batch erc20 functions tested
1 parent 1510142 commit 59a1485

File tree

3 files changed

+452
-322
lines changed

3 files changed

+452
-322
lines changed

packages/smart-contracts/src/contracts/BatchNoConversionPayments.sol

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,9 @@ contract BatchNoConversionPayments is Ownable {
222222
require(requestedToken.balanceOf(msg.sender) >= amount, 'not enough funds for the batch fee');
223223

224224
// Payer pays batch fee amount
225-
uint256 batchFeeToPay = amount;
226-
227-
(batchFeeToPay, batchFeeAmountUSD) = calculateBatchFeeToPay(
228-
batchFeeToPay,
225+
// amount that represents batchFeeToPay updated if needed
226+
(amount, batchFeeAmountUSD) = calculateBatchFeeToPay(
227+
amount,
229228
conversionDetails[0].path[0],
230229
batchFeeAmountUSD,
231230
pathsToUSD

0 commit comments

Comments
 (0)