Skip to content

Commit 5493f5c

Browse files
committed
fix: ftm gas issue
1 parent 96c0167 commit 5493f5c

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "app.deus.finance",
3-
"version": "0.2.110",
3+
"version": "0.2.111",
44
"private": true,
55
"dependencies": {
66
"@davatar/react": "^1.8.1",

src/hooks/useBridge.js

-13
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import useRefresh from "./useRefresh";
55
import { deposit, getClaimTokens } from "../helper/bridgeHelper";
66
import { SendWithToast } from "../helper/deiHelper";
77
import { fromWei } from "../helper/formatBalance";
8-
import BridgeABI from "../config/abi/NewBridgeABI.json";
98
import { BRIDGE_ADDRESS } from "../constant/contracts";
109
import { ChainId } from "../constant/web3";
1110
import { getBridgeContract } from "../helper/contractHelpers";
@@ -98,18 +97,6 @@ export const useClaim = (muon) => {
9897
// }
9998

10099
let amount = fromWei(claim.amount);
101-
let abi = [
102-
BridgeABI.find(
103-
({ name, type }) => name === "getTx" && type === "function"
104-
),
105-
];
106-
console.log({
107-
address: BRIDGE_ADDRESS[Number(claim.fromChain)],
108-
method: "getTx",
109-
params: [claim.txId],
110-
abi,
111-
network: claim.fromChain,
112-
});
113100

114101
try {
115102
const muonResponse = await muon

src/hooks/useDei.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ export const getGasData = async (web3, fn, chainId, account) => {
816816
).toFixed(0)
817817
if (chainId === ChainId.MATIC || chainId === ChainId.FTM) {
818818
payload.maxPriorityFeePerGas = Math.max(
819-
29000000000,
819+
1,
820820
Number(payload.maxFeePerGas) - payload.baseFeePerGas
821821
)
822822
}

0 commit comments

Comments
 (0)