-
Notifications
You must be signed in to change notification settings - Fork 218
feat: show banner for ETH deposits and bump gas #2578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,9 +180,9 @@ export class EthDepositStarter extends BridgeTransferStarter { | |
destinationAddress: destinationAddress ?? address, | ||
overrides: parentChainOverrides, | ||
retryableGasOverrides: { | ||
// the gas limit may vary by about 20k due to SSTORE (zero vs nonzero) | ||
// the 30% gas limit increase should cover the difference | ||
gasLimit: { percentIncrease: BigNumber.from(30) } | ||
gasLimit: { | ||
percentIncrease: BigNumber.from(DEFAULT_GAS_PRICE_PERCENT_INCREASE) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is supposed to be used on gas price, not gas limit, so this ain't right. Looks like we already do the same gas price increase in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Checking if |
||
} | ||
} | ||
}) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just simplify this and show it at all times, and maybe alter the message to include something like "If you have pending deposits..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this, because we already have information overload with different banners in transaction history. I think we should only display them to the relevant users.