Skip to content

Commit

Permalink
claim gas fee fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
SrikanthSoparla committed Dec 17, 2024
1 parent 7cc1f85 commit 9307147
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/containers/Home/ClaimDialog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ const ClaimDialog = (props) => {

const handleClaimAll = () => {
setInProgress(true);
let gasValue = 1;
let gasValue = 50000;
if (props.rewards && props.rewards.length) {
gasValue = props.rewards.length;
gasValue = 50000 + ((props.rewards.length - 1) * 30000);
}

const txs = {
token: config.TOKEN_ADDRESS,
feeAmount: new BigNumber(0.000010),
gasLimit: new BigNumber(50000 * gasValue),
feeAmount: new BigNumber(0.000001),
gasLimit: new BigNumber(gasValue),
chainId: config.CHAIN_ID,
publicKey: props.details && props.details.publicKey,
};
Expand Down

0 comments on commit 9307147

Please sign in to comment.