Skip to content

Commit

Permalink
Merge pull request #108 from lum-network/improvement/lum-798
Browse files Browse the repository at this point in the history
[LUM-798] Increase gas for getAllRewards
  • Loading branch information
ThibaultJRD committed Aug 14, 2023
2 parents d786e12 + a6f5622 commit 2e9002f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ class WalletClient {
// Define fees
const fee = {
amount: [{ denom: LumConstants.MicroLumDenom, amount: '25000' }],
gas: '140000',
gas: '200000',
};

// Fetch account number and sequence and chain id
Expand Down Expand Up @@ -693,12 +693,12 @@ class WalletClient {

const messages = [];
const limit = fromWallet.isNanoS ? 6 : undefined;
let gas = 140000;
let gas = 200000;

for (const [index, valAdd] of validatorsAddresses.entries()) {
messages.push(LumMessages.BuildMsgWithdrawDelegatorReward(fromWallet.getAddress(), valAdd));
if (index > 0) {
gas += 80000;
gas += 100000;
}
if (limit && index + 1 === limit) break;
}
Expand Down

0 comments on commit 2e9002f

Please sign in to comment.