-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat(frontend): add ATA creation fee to the Solana send flow #4358
feat(frontend): add ATA creation fee to the Solana send flow #4358
Conversation
}) | ||
); | ||
|
||
ataFee = showAtaFee ? await getSolCreateAccountFee(solNetwork) : undefined; |
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.
Now it can be just ataFee = await getSolCreateAccountFee(solNetwork)
🙂
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.
right!
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.
Please take a look at my latest comment, we can simplify one more thing.
LGTM, thanks.
Motivation
If a Solana address does not have a correspondent Associated Token Account (ATA) for the sending token, OISY will add the instructions to create one. However, this costs money, so it is useful to show it to the user.
Changes
SolFeeDisplay
to turn on or off the ATA fee.Tests
The complete flow is:
Screen.Recording.2025-01-20.at.23.29.33.mov