AccidentalSwap

A simple dapp built on uniswap that preforms an exact input swap with a random output token.

AccidentalSwap

Created At

UniCode

Project Description

A simple dapp built on uniswap that preforms an exact input swap with a random output token. A user would come to this dapp when feeling indecisive or wanting to gamble on an unknown token. Right now only DAI to WETH swap is supported, but the intention is for a user to be able to select the input token, and for the output token to be selected from a list.

How it's Made

We started by following the uniswap v3 tutorial for simple swaps. The function we implemented swaps DAI for WETH given DAI amount as a parameter. A react front end was built and references the smart contract deployed to the ropsten testnet. We eventually intent to include chainlink oracles to randomly select an output token to replace WETH with.

background image mobile

Join the mailing list

Get the latest news and updates