Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ contract BatchConversionPayments is BatchNoConversionPayments {
}

require(address(this).balance >= batchFeeToPay, 'Not enough funds for batch conversion fees');
feeAddress.transfer(batchFeeToPay);
if (batchFeeToPay > 0) {
(bool feePaymentSuccess, ) = payable(feeAddress).call{value: batchFeeToPay}('');
require(feePaymentSuccess, 'Could not pay fees');
}
Comment thread
yomarion marked this conversation as resolved.

// Batch contract transfers the remaining native tokens to the payer
(bool sendBackSuccess, ) = payable(msg.sender).call{value: address(this).balance}('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ contract BatchNoConversionPayments is Ownable {
// Check that batch contract has enough funds to pay batch fee
require(address(this).balance >= amount, 'Not enough funds for batch fee');
// Batch pays batch fee
feeAddress.transfer(amount);
if (amount > 0) {
(bool feePaymentSuccess, ) = payable(feeAddress).call{value: amount}('');
require(feePaymentSuccess, 'Could not pay fees');
}
Comment thread
yomarion marked this conversation as resolved.

// Batch contract transfers the remaining Native tokens to the payer
if (transferBackRemainingNativeTokens && address(this).balance > 0) {
Expand Down
Loading