Skip to content
Open
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
5 changes: 4 additions & 1 deletion src/components/SignerPanel/SignerPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import {
isSignatureSuccess,
} from './signer-statuses'

const { chainId } = useWallet()
const PRIORITY_FEE_MULTIPLIER = chainId===137 ? 1.3 : 1 // need more agressive priorityFees on Polygon

const INITIAL_STATE = {
actionPaths: [],
directPath: false,
Expand Down Expand Up @@ -321,7 +324,7 @@ class SignerPanel extends React.PureComponent {
const estimatedPriorityFee = await getPriorityFeeEstimation(walletWeb3)
return {
...transaction,
maxPriorityFeePerGas: estimatedPriorityFee,
maxPriorityFeePerGas: estimatedPriorityFee * PRIORITY_FEE_MULTIPLIER,
}
}

Expand Down