Skip to content

Commit

Permalink
Bump gas limit to allow transfer to multi-sig/vaults
Browse files Browse the repository at this point in the history
  • Loading branch information
kanewallmann committed Jun 3, 2024
1 parent 7161d1c commit 5746fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/contract/rewards/RocketMerkleDistributorMainnet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ contract RocketMerkleDistributorMainnet is RocketBase, RocketMerkleDistributorMa
if (totalAmountETH > 0) {
rocketVault.withdrawEther(totalAmountETH);
// Allow up to 2300 gas to send ETH to the withdrawal address
(bool result,) = withdrawalAddress.call{value: totalAmountETH, gas: 2300}("");
(bool result,) = withdrawalAddress.call{value: totalAmountETH, gas: 10000}("");
if (!result) {
// If the withdrawal address cannot accept the ETH with 2300 gas, add it to their balance to be claimed later at their own expense
// If the withdrawal address cannot accept the ETH with 10000 gas, add it to their balance to be claimed later at their own expense
bytes32 balanceKey = keccak256(abi.encodePacked('rewards.eth.balance', withdrawalAddress));
addUint(balanceKey, totalAmountETH);
// Return the ETH to the vault
Expand Down

0 comments on commit 5746fde

Please sign in to comment.