Skip to content

Conversation

@Ho3einWave
Copy link
Member

This pull request includes several changes to improve the functionality and code quality of the Swap component and related stores. The most important changes include adding support for a new liquidity provider, improving the asset filtering logic, and updating various code formatting and imports.

Support for new liquidity provider:

  • lib/store/events.store.ts: Added 'tonco' as a new value for the dex type in the onSwap event.
  • lib/store/options.store.ts: Added 'tonco' and 'omniston' as new values for the liquidity_provider type in SwapOptions. Updated the default liquidity_provider to 'mytonswap' and added logic to initialize the MyTonSwapClient with the specified liquidity provider. [1] [2] [3]
  • lib/store/swap.store.ts and lib/store/wallet.store.ts: Updated the initialization of MyTonSwapClient to remove the baseUrl parameter and set headers with the widget-version. [1] [2]
  • lib/utils/swap.ts: Removed the baseUrl parameter from the MyTonSwapClient initialization and set headers with the widget-version.

Asset filtering improvements:

Code formatting and imports:

  • lib/store/events.store.ts and lib/store/options.store.ts: Updated import statements to use single quotes for consistency. [1] [2]
  • lib/store/events.store.ts: Updated console log statements to use single quotes.

Additional story for Swap component:

Styling improvements:

@Ho3einWave Ho3einWave merged commit 2ea36b5 into main Jan 7, 2025
1 check passed
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