-
Notifications
You must be signed in to change notification settings - Fork 122
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
fix: fixing gas estimate on IBC transfers #1607
Conversation
@@ -132,14 +141,16 @@ export const TransferModule = ({ | |||
return undefined; | |||
} | |||
|
|||
if (!gasConfig || gasConfig.gasToken !== selectedAssetAddress) { |
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.
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.
Good catch!
@@ -118,7 +115,7 @@ export const ShieldAllPanel = ({ | |||
<Stack as="footer" gap={4}> | |||
<footer className="flex justify-between items-center"> | |||
<img src={ibcTransferImageBlack} className="w-20" /> | |||
{gasConfig && <TransactionFee gasConfig={gasConfig} />} | |||
{/*gasConfig && <TransactionFee gasConfig={gasConfig} />*/} |
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.
can we delete this and add a comment like // TODO add transaction fee
?
@@ -54,10 +54,12 @@ const useBuildGasOption = ({ | |||
...override, | |||
}; | |||
|
|||
const displayAmount = getDisplayGasFee(option); | |||
const displayGasFee = getDisplayGasFee(option, chainAssetsMap); |
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.
This PR fixes the unit displayed and used to calculate if user has funds to make an IBC transfer.