Skip to content
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

AccountAssetCreate app components should get the estimation fees from API and not based on property #3720

Open
ioBanker opened this issue Aug 25, 2024 · 0 comments

Comments

@ioBanker
Copy link
Member

Problem:

Under account asset creation component; the user is expecting to see the asset creation estimation fee; the screen is showing a wrong estimation fees for the user while creating a sub asset.

Conclusion:

While the user is creating an assets using the user account page app/components/Account/AccountAssetCreate.jsx; the page will use the function estimateFee to calculate the estimation fees of the asset creation operation; this function is located under app/lib/common/trxHelper.js‎; the function is using static and outdated methods and formulas for calculating the currentFees.

Suggestion:

To use the core get_required_fees database API for the function estimateFee.

Easiest way perhaps would be replacing the entire function's code here

function estimateFee(op_type, options, globalObject, data = {}) {
to be base on get_required_fees database API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant