Sweep

Sweep

Sweep multiple tokens at once using Coinbase Smart Wallet!

The problem Sweep solves

Tokens are frequently airdropped to users, with some being valuable and others potentially scammy. Depending on the wallet extension they use, users often struggle to keep track of all the tokens they hold, especially obscure ones with minuscule amounts (also known as "dust").

For example, on Metamask, users only see tokens they have imported manually. On Rabby, these tokens may appear under the "low value assets" section, but selling them is cumbersome, especially if they have many.

Sweep solves this problem by allowing users to "sweep" their dust tokens all at once using the power of Coinbase Smart Wallet. Once connected, Sweep displays the full list of tokens the user has, along with their balances and more importantly, how much they are worth, sorted accordingly. Users can then select the tokens and amounts they would like to sweep. By default, Sweep uses the full balance amount once a token is selected, but users can adjust it if they do not wish to sweep all of it. Currently, Sweep supports sweeping to ETH, with plans to add more tokens such as USDC based on user feedback.

Challenges I ran into

I tried incorporating daisyUI to make designing components easier, but it broke my entire application for some reason. I did not realise this at first - after connecting my wallet, the application would crash entirely if I tried to copy my wallet address using the modal provided by RainbowKit. After some debugging, I found out that daisyUI did not work too well with RainbowKit, and decided to remove it.

Another challenge was figuring out the best way to get the swap routes for each token. In the end, I settled on KyberSwap, a DEX aggregator, but even KyberSwap doesn't have support for some of the tokens that I had. This is an issue that I plan to fix in order to allow users to truly sweep all the tokens that they have - such as by looking for alternatives like Uniswap as a fail-safe if a particular token is not supported on KyberSwap.

Tracks Applied (2)

Coinbase Smart Wallet

In order to enjoy batch transactions, a smart wallet needs to be used, and for Sweep, we allow users to connect via thei...Read More

Trading Track

Although Sweep does not use Aerodrome and Synthetix, I believe that it qualifies under the "personal finance" applicatio...Read More

TRADING with Aerodrome and Synthetix

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion