๐ค Taker Bots: Jump to how to integrate ๐๐๐
Summary
DustSweeper (๐งน,๐งน) allows users to swap small balance tokens (โdustโ) for ETH without expensive gas transactions. Users just have to approve()
the tokens theyโd like to sell, and โmarket takerโ bots execute the swap.
Dustsweeper is primarily used through the dustsweeper.xyz app today but may be added to wallets in the future.
In DustSweeper v2, we have...
- ๐ Added support for many more Tokens
- V1 just supported tokens with a ChainLink feed. Weโve now introduced the TrustUs oracle system allowing sweeps for any token with a Coingecko or Etherscan price. This will expand token support from ~80 to ~5,000 tokens. ๐คฏ
- The TrustUs oracle system will require a RESTful API call to return signed token prices before calling sweepDust().
- The TrustUs oracle system is the secret sauce that allows us to get accurate pricing on a massive amount of tokens without having to query 10+ DEXes and rely on spot market prices that can be manipulated.
- โฝ Gas optimizations
- Weโve decreased the gas needed on sweepDust() by 20% allowing Taker Bots to make even more competitive swaps.
- A 114,647 gwei swap in V1 will be a 90,938 gwei swap in V2.
- โ๏ธ Dynamic Taker Discounts per Token
- The taker discount can now be set per token allowing the DAO to offer more incentives to swap tokens (like $AAVE which has costly gas for a transfer) or run promotions to cheaply swap a specific token.
- For Taker Bots, the fees might not be 25% for all tokens now. They may be higher or lower based on which token is being swept. The default is now 60%.
- ๐ค Allow destination wallets to be set
- Makerโs can now set a destination address if they want to receive ETH to a different wallet. This feature doesnโt affect Taker Bots.
๐ค How to Integrate
DustSweeper.sol