Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ yalc.lock
.continueignore
analice.html
e2e.log
codex-resume
codex-resume
.bounties
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@
},
"dependencies": {
"@babel/runtime": "^7.18.9",
"@gooddollar/good-design": "0.4.40",
"@gooddollar/good-design": "^0.4.42",
"@gooddollar/goodprotocol": "2.2.1",
"@gooddollar/web3sdk": "0.1.58",
"@gooddollar/web3sdk-v2": "0.4.35",
"@gooddollar/web3sdk-v2": "^0.4.36",
"@headlessui/react": "1.5.0",
"@lingui/format-json": "^4.0.0",
"@lingui/macro": "^4.0.0",
Expand All @@ -223,8 +223,6 @@
"@uniswap/sdk-core": "^4.0.9",
"@uniswap/widgets": "^2.59.0",
"@usedapp/core": "^1.2.16",
"@web3-onboard/core": "^2.23.0",
"@web3-onboard/react": "^2.10.0",
"amplitude-js": "^8.21.2",
"dotenv": "^16.3.1",
"ethers": "^5.7.2",
Expand Down
13 changes: 2 additions & 11 deletions src/hooks/useWeb3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ type RpcCacheEntry = {
}

const gasSettings = {
42220: {
maxFeePerGas: BigNumber.from(25.001e9).toHexString(),
maxPriorityFeePerGas: BigNumber.from(2.5e9).toHexString(),
},
122: { maxFeePerGas: BigNumber.from(11e9).toHexString() },
// 50: { maxFeePerGas: BigNumber.from(12.5e9).toHexString() }, // eip-1559 is only supported on XDC testnet. Last checked 15 november 2025.
}
Expand Down Expand Up @@ -304,13 +300,8 @@ export function Web3ContextProvider({ children }: { children: ReactNode | ReactN
if (method === 'eth_sendTransaction' && !isMiniPayWallet && chainId && chainId in gasSettings) {
const gasSettingsForChain = gasSettings[Number(chainId)]
if (gasSettingsForChain) {
if (!params[0].maxFeePerGas && Number(chainId) !== 50) {
// params[0].gasPrice = gasPriceSettings[chainId].maxFeePerGas
delete params[0].gasPrice
params[0] = { ...params[0], ...gasSettingsForChain }
} else {
params[0] = { ...params[0], ...gasSettingsForChain }
}
delete params[0].gasPrice
params[0] = { ...params[0], ...gasSettingsForChain }
}
}
return webprovider.jsonRpcFetchFunc(method, params)
Expand Down
Loading
Loading