Closed ezailWang closed 1 month ago
Enhanced Importing and Parameter Addition in ServiceSwap
Enhance feature set and improve user operation flexibility by adding new imports and parameters in ServiceSwap.ts
file.
Aborted Operation Handling Cancellation of fetching token details is implemented via introducing a new method and property. This enhances responsiveness and control over operations.
Fetch Token Detail Accommodation
Inclusion of direction
parameter in the fetchTokenDetail
method enables better categorization of details.
Expanded contractDuration
Feature
Addition of new constant and parameters improves its flexibility and utility in swap/actions.ts
.
Enhanced 'catch' Operation
Catch block is updated in contractDuration
method allowing efficient error handling.
Updated 'useSwapApproving' and 'useSwapQuote' Hooks Updated hooks to manage unsuccessful or cancelled swap transactions, improving error handling, resilience, and user experience.
In-app Notification Improvement
Inclusion of setInAppNotificationAtom
parameter enhances user communication and notifies users about app activities in a timely manner.
Review or Edit in CodeSandbox
Open the branch in Web Editor • VS Code • Insiders
Open Preview