interface
interface copied to clipboard
feat: add Add to wallet button, show USD amounts and fix small-number rounding, applied to SwitchLimitsOrders
General Changes
Closes ALE-11 : Improved the UX of SwitchTxSuccessView.tsx by adding USD values as a subheader.
Closes ALE-13 : Added an “Add to wallet” button to integrate the received token into the user’s wallet.
Closes ALE-12 : Now we don’t round small numbers. If the number is smaller than 4 decimals, we will show <0.00001.
- I fixed the Typescript errors and added those UX improvements to the SwitchLimitsOrders comp.
Developer Notes
Reviewer Checklist
Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.
- [ ] End-to-end tests are passing without any errors
- [ ] Code changes do not significantly increase the application bundle size
- [ ] If there are new 3rd-party packages, they do not introduce potential security threats
- [ ] If there are new environment variables being added, they have been added to the
.env.examplefile as well as the pertinant.github/actions/*files - [ ] There are no CI changes, or they have been approved by the DevOps and Engineering team(s)