diff --git a/packages/sdk-v2/src/sdk/base/hooks/useGasFees.ts b/packages/sdk-v2/src/sdk/base/hooks/useGasFees.ts index e081b961..48af2cc3 100644 --- a/packages/sdk-v2/src/sdk/base/hooks/useGasFees.ts +++ b/packages/sdk-v2/src/sdk/base/hooks/useGasFees.ts @@ -17,7 +17,7 @@ export const useGasFees = () => { //force gas price for celo and ethereum switch (chainId) { case 122: - return BigNumber.from(10e9); + return BigNumber.from(20e9); case 42220: return BigNumber.from(5e9); } diff --git a/packages/sdk/src/contracts/FuseUniswapContract.ts b/packages/sdk/src/contracts/FuseUniswapContract.ts index bdabe138..4cee5fe8 100644 --- a/packages/sdk/src/contracts/FuseUniswapContract.ts +++ b/packages/sdk/src/contracts/FuseUniswapContract.ts @@ -114,7 +114,7 @@ export async function swap( const { methodName, args, value } = parameters; const req = contract.methods[methodName](...args).send({ - ...{ gasPrice: "10000000000" }, + ...{ gasPrice: 20e9 }, ...(value && !isZero(value) ? { value, from: account } : { from: account }) }); diff --git a/packages/sdk/src/core/staking.ts b/packages/sdk/src/core/staking.ts index 993b984c..41088b9a 100644 --- a/packages/sdk/src/core/staking.ts +++ b/packages/sdk/src/core/staking.ts @@ -802,9 +802,7 @@ export async function approveStake( const req = ERC20Contract(web3, token.address) .methods.approve(spender, MaxApproveValue.toString()) .send({ - ...(protocol !== LIQUIDITY_PROTOCOL.GOODDAO - ? { from: account, type: "0x2" } - : { from: account, gasPrice: "10000000000" }) + ...(protocol !== LIQUIDITY_PROTOCOL.GOODDAO ? { from: account, type: "0x2" } : { from: account, gasPrice: 20e9 }) }); if (onSent) req.on("transactionHash", onSent); @@ -834,7 +832,7 @@ export async function stakeGov( const account = await getAccount(web3); const tokenAmount = amount.toBigNumber(token.decimals); - const req = contract.methods.stake(tokenAmount).send({ from: account, gasPrice: "10000000000" }); + const req = contract.methods.stake(tokenAmount).send({ from: account, gasPrice: 20e9 }); if (onSent) req.on("transactionHash", (hash: string) => onSent(hash, account)); @@ -908,7 +906,7 @@ export async function withdraw( let req; if (stake.protocol === LIQUIDITY_PROTOCOL.GOODDAO) { - req = contract.methods.withdrawStake(toWithdraw).send({ from: account, gasPrice: "10000000000" }); + req = contract.methods.withdrawStake(toWithdraw).send({ from: account, gasPrice: 20e9 }); } else req = contract.methods.withdrawStake(toWithdraw, withdrawIntoInterestToken).send({ from: account, @@ -963,7 +961,7 @@ export async function claimGoodRewards( const transactions: any[] = []; if (chainId === SupportedChainId.FUSE) { const contract = governanceStakingContract(web3); - transactions.push(contract.methods.withdrawRewards().send({ from: account, gasPrice: "10000000000" })); + transactions.push(contract.methods.withdrawRewards().send({ from: account, gasPrice: 20e9 })); } else { const stakersDistribution = await stakersDistributionContract(web3); const simpleStakingReleases = await getSimpleStakingContractAddressesV3(web3); @@ -1006,7 +1004,7 @@ export async function claimGoodReward( const transactions: any[] = []; if (chainId === SupportedChainId.FUSE) { const contract = governanceStakingContract(web3); - transactions.push(contract.methods.withdrawRewards().send({ from: account, gasPrice: "10000000000" })); + transactions.push(contract.methods.withdrawRewards().send({ from: account, gasPrice: 20e9 })); } else { const stakersDistribution = await stakersDistributionContract(web3); diff --git a/packages/sdk/src/core/ubi.ts b/packages/sdk/src/core/ubi.ts index 890f6dff..9dc9cfb0 100644 --- a/packages/sdk/src/core/ubi.ts +++ b/packages/sdk/src/core/ubi.ts @@ -42,7 +42,7 @@ export async function claim(web3: Web3, account: string): Promise { await validateChainId(web3); const contract = await ubiSchemeContract(web3); - return contract.methods.claim().send({ from: account, gasPrice: "10000000000" }); + return contract.methods.claim().send({ from: account, gasPrice: 20e9 }); } /**