Skip to content

Commit 9307147

Browse files
committedDec 17, 2024·
claim gas fee fix.
1 parent 7cc1f85 commit 9307147

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/containers/Home/ClaimDialog/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ const ClaimDialog = (props) => {
2424

2525
const handleClaimAll = () => {
2626
setInProgress(true);
27-
let gasValue = 1;
27+
let gasValue = 50000;
2828
if (props.rewards && props.rewards.length) {
29-
gasValue = props.rewards.length;
29+
gasValue = 50000 + ((props.rewards.length - 1) * 30000);
3030
}
3131

3232
const txs = {
3333
token: config.TOKEN_ADDRESS,
34-
feeAmount: new BigNumber(0.000010),
35-
gasLimit: new BigNumber(50000 * gasValue),
34+
feeAmount: new BigNumber(0.000001),
35+
gasLimit: new BigNumber(gasValue),
3636
chainId: config.CHAIN_ID,
3737
publicKey: props.details && props.details.publicKey,
3838
};

0 commit comments

Comments
 (0)
Please sign in to comment.