Skip to content

Commit

Permalink
SOV-2140: bump gaslimit for claiming RBTC fees (#2511)
Browse files Browse the repository at this point in the history
feat: bump gaslimit for claiming RBTC fees
  • Loading branch information
soulBit authored Mar 28, 2023
1 parent 5132af9 commit f9b1ecd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export const FeesEarnedClaimRow: React.FC<IFeesEarnedClaimRowProps> = ({
if (asset === Asset.RBTC) {
withdrawRBTC(
[0, address],
{ from: address, gas: gasLimit[TxType.STAKING_REWARDS_CLAIM] },
{ type: TxType.STAKING_REWARDS_CLAIM },
{ from: address, gas: gasLimit[TxType.STAKING_REWARDS_CLAIM_RBTC] },
{ type: TxType.STAKING_REWARDS_CLAIM_RBTC },
);
} else {
send(
Expand Down
1 change: 1 addition & 0 deletions src/store/global/transactions-store/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export enum TxType {
VESTING_DELEGATE = 'vesting-delegate',
STAKING_INCREASE_STAKE = 'staking',
STAKING_REWARDS_CLAIM = 'staking_rewards_claim',
STAKING_REWARDS_CLAIM_RBTC = 'staking_rewards_claim_rbtc',
STAKING_LIQUID_SOV_CLAIM = 'staking_liquid_sov_claim',
NONE = 'none',
APPROVE = 'approve',
Expand Down
1 change: 1 addition & 0 deletions src/utils/classifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export const gasLimit = {
[TxType.STAKING_EXTEND]: 450000,
[TxType.STAKING_WITHDRAW]: 650000,
[TxType.STAKING_REWARDS_CLAIM]: 3250000, //limit should be reduced once contract issue with claiming 0 values is resolved
[TxType.STAKING_REWARDS_CLAIM_RBTC]: 6500000, //temporary high limit to cover all checkpoints
[TxType.DEPOSIT_COLLATERAL]: 250000,
[TxType.STAKING_LIQUID_SOV_CLAIM]: 3500000,
[TxType.DEPOSIT_COLLATERAL]: 250000,
Expand Down

0 comments on commit f9b1ecd

Please sign in to comment.