Skip to content
/ uniswap Public

πŸ¦„πŸ¦„ Uniswap in Dart, the most complete kit with the current versions of the official SDK

License

Notifications You must be signed in to change notification settings

zagmi/uniswap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Uniswap πŸ¦„

This package contains all the features of the Uniswap smart contract and supports its use on other exchanges and other networks.

Features

You can do swaps on the most popular dexs of Ethereum and their subnets using this package, the 30 or 80 lines of code you needed before are now reduced to just a few.

This package has support so far with Ethereum, Binance Smart Chain and Polygon, if you want support with any other exchange or network open an issue and we will add it.

Supported functions

  • swapExactETHForTokens

  • swapExactTokensForETH

  • swapExactTokensForTokens

  • swapETHForExactTokens

  • swapTokensForExactETH

  • swapTokensForExactTokens

Getting started

Add the package to your pubspec.yaml file as shown below.

dependencies:

  uniswap: any

Usage

Below you will see some examples of how to implement each function.

final swapExactETHForTokens = await Uniswap().swapExactETHForTokens();

Additional information

Initially this package was created for personal use in order to avoid writing so much code rather perform swaps with just 5 to 10 lines.

You can check the code if you have doubts regarding security, any contribution or idea to improve is welcome!

Greetings and I hope you find it useful. ⚑

About

πŸ¦„πŸ¦„ Uniswap in Dart, the most complete kit with the current versions of the official SDK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages