balance-io / balance-wallet

A mobile wallet for dapps & tokens.
https://balance.io
GNU General Public License v3.0
94 stars 38 forks source link

Add support for Uniswap transactions! #366

Open haydenadams opened 5 years ago

haydenadams commented 5 years ago

@jinchung here is one of each transaction type. Etherscan recognizes uniswap transactions and shows an easy breakdown of method id and parameters:

(you can ignore custom exchange stuff for now!)

NOTE: Since prices can fluctuate between when a transaction is signed and when it is mined, either the input or output must be estimated. Estimated values are shown with ~ symbol below.

ETH -> ERC20

Sell ETH for ~ERC20

https://etherscan.io/tx/0x8941583af506b43f6d961e105b67b6d536a88d9189054f98f311e40aac9ad73e

Sell ETH for ~ERC20 (and send to recipient)

https://etherscan.io/tx/0xb66adf9152ffb8b1d6fb0626d957b0e1b44acb7c6f5d719e8166b67d13a6b4f6

Buy ERC20 with ~ETH

https://etherscan.io/tx/0xa453b892c38ee8786a617ec4ed291908eff3cabbde349ef8fd2bf31a89394b91

Buy ERC20 with ~ETH (and send to recipient)

https://etherscan.io/tx/0x3620107de733b11d12b5d9c033dc7074c14e41f5f55350820258c485b1c0073b

ERC20 -> ETH

Sell ERC20 for ~ETH

https://etherscan.io/tx/0x631a8d92e107bf4cd5df6b138f8fbc88449327721246845c06d1c2a1a2d31a0f

Sell ERC20 for ~ETH (and send to recipient)

https://etherscan.io/tx/0x23e4eae76b144431edbd747ed54f780f9afd75b0eaed9193759bb70ffb1a40ff

Buy ETH with ~ERC20

https://etherscan.io/tx/0x48e03b72b1c310d3157814811045f273fd40613ff2d3ae151f445de86737deaa

Buy ETH with ~ERC20 (and send to recipient)

https://etherscan.io/tx/0x75dc93ec0b4f2a6f8e32afa46c43867ae469848220a0d8394a1713ec54605c0c

ERC20 -> ERC20

Sell ERC20a for ~ERC20b

https://etherscan.io/tx/0xff6180c65cd343ed7b77e30b6fd38c3fae85c8de2e0e28ae70a82eb06e74c561

Sell ERC20a for ~ERC20b (and send to recipient)

https://etherscan.io/tx/0x031d6147a817d9c5c6966fc794c9f6724a410bf29bb19918908bf43c788ab799

Buy ERC20b with ~ERC20a

https://etherscan.io/tx/0xc7a5fd01ed3e12e395598c00f125364671e9643a60e8ba2fe845acf623ebdb55

Buy ERC20b with ~ERC20a (and send to recipient)

https://etherscan.io/tx/0xa05eddbde696cd06716a09079b036cdb387ea796ca74ed1b8bd071fe65e65d83

Liquidity Providers

Add Liquidity:

https://etherscan.io/tx/0xfba6c60cd8e2dc0b7bb5c820ce0c447be9cf42a637a889bae8842cf94c039a08

Remove Liquidity:

https://etherscan.io/tx/0xeb7690445202f97578bf31a3d468205ce4c0e746a7dee63bb5e6bd528bbfb7cb

ERC20 -> ERC20 (alternate, for custom exchanges)

Sell ERC20a for ~ERC20b

Sell ERC20a for ~ERC20b (and send to recipient)

Buy ERC20b with ~ERC20a

Buy ERC20b with ~ERC20a (and send to recipient)