Skip to content

Conversation

@RafaDev95
Copy link
Collaborator

@RafaDev95 RafaDev95 commented Sep 17, 2025

Description

Added a new method to estimate the fee cost of each transaction before users actually execute them.

OBS

We need a different loading animation/spinner to show while the request to estimate the fee is happening.

Summary

  • Created a new estimate method on marketplace sdk to estimate fee of: Execute, create, cancel and update order
  • Create a new estimateMint method to estimate the fee of mint process

Logic Explanation

  • To buy order/nft: We don't calculate the fee as soon as the user enter in the collection page; This validation/request is only trigged when user have the amount to buy the nft AND hover the nft card
  • To cancel an order: Theres a validation to verify if the user is the owner, and if it's true, and he hover the card, we execute the request
  • To list an order: the Amount input must be greater than 0 and we also have a debounce to not trigger the request in every keystroke.

Screenshots

image

Checklist

  • I reviewed my PR code before submitting
  • I ensured that the implementation is working correctly and did not impact other parts of the app
  • I implemented error handling for all actions/requests and verified how they will be displayed in the UI (or there was no error handling needed).
  • I mentioned the PR link in the task

@vercel
Copy link
Contributor

vercel bot commented Sep 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
bako-id-server Ready Ready Preview Comment Sep 17, 2025 5:48pm
bako-id-ui Ready Ready Preview Comment Sep 17, 2025 5:48pm

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

Successfully merging this pull request may close these issues.

2 participants