This repo holds the angular, react, vue uniswap integration packages. It also has the shared package they all use. This is powered by uniswap-simple-sdk. This is funded by unigrants.
Integrating uniswap within your dApp should be a simple thing but with all the complex stuff that goes into making it work, managing transaction status, calling the correct methods on the swap, maintaining the users balances, syncing the fiat prices, producing the token icons, handling all the UI making it work on every browser, i could keep going. On top of this you don't really want to pop a window for the user to swap using the uniswap widget, you want to keep the user experience consistent with your dApp. The idea of this library is to give you a really easy but fully flexible way you can integrate with uniswap with only a few lines of code. This has an angular package, vue package and react package so you can easily get running and create your own uniswap experience. You can customise mostly everything from what tokens you support to what colour you want it to be themed as!
🚀 Integrate it into your existing dApp with a few lines of code
🚀 Supports uniswap v2 and v3 prices together and returns the best price
🚀 Queries all the best routes and finds the best price for you
🚀 Reactive logic so when the price moves or your trade expiries it generates you a new one but alerts the user (queries new trades on every new block)
🚀 Reactive fiat price so users can see the amount the trade is in fiat, this updates as the price changes as well
🚀 Reactive balance syncing so the user can see their correct balance all the time (syncs on every new block)
🚀 Supports all major browsers
🚀 Is fully responsive
🚀 Fully customisable, style it as you want, support whatever tokens you want and much more
🚀 Uses the awesome simple-uniswap-sdk for all the uniswap on chain logic
🚀 Fully typescript supported with full generated typings
🚀 and much more!!
You can view a live demo here. You will need MetaMask installed. It only uses a few tokens just to show the demo working.
Full docs for the angular integration please go here
Full docs for the react integration please go here
Full docs for the vue integration please go here