On-chain
Swaps, TRUSS AGG and dust
The app also has a swap screen and a dust sweep. Both run from your own wallet and never touch your vault.
Swap screen
The swap screen asks TRUSS AGG, TRUSS LP’s own aggregator, and the major aggregators on Base - KyberSwap, 1inch, FlyTrade, Sushi, LI.FI and Velora - plus direct Aero and Uniswap routes, for quotes. It shows them side by side and executes the one you pick. Use it to get the tokens for a vault, or simply as a swap.
- Quotes are fetched live and compared by the amount you receive.
- A minimum-output limit is set from the quote and your slippage setting. A swap that cannot meet it reverts rather than filling at a worse price.
- Before your wallet opens, the exact transaction is simulated from your wallet, so a swap that would fail is caught before you sign.
- The app only approves, or sends a swap to, a router on the dust sweeper’s on-chain allow-list - one list for the whole site. An approval covers that swap’s amount (plus 1% headroom), never an unlimited amount.
- You pay the network gas for swaps made from your wallet.
TRUSS AGG
TRUSS AGG finds a route - your amount split over one or more paths of pool hops - and its executor contract (0xF98B66F54CE0A29f23B5D67024695F45807C622D) carries it out in one transaction by calling the pools directly: Aero Slipstream and v2, Uniswap v3 and v4, PancakeSwap v3 and similar pools.
- It reverts unless you receive at least your minimum output.
- It holds nothing between transactions, and pays each pool only that hop’s exact amount.
- It was deployed with no fee. The contract caps any fee its owner could ever switch on at 0.50% of the output.
- It cannot be upgraded or paused.
Dust sweep
Small balances build up from airdrops, leftovers and reward tokens. The dust sweep lists them, quotes each sale and converts them all into one token of your choice, through the dust sweeper contract (0x65897F150389c94d9cC696fF6c65fC54dD5C6Ae1).
- The app lists the small token balances in your wallet.
- Each sale is quoted across TRUSS AGG, the aggregators and the direct routes.
- You choose the token to receive. The whole sweep is simulated from your wallet first; a sale that would fail is dropped before you approve anything.
- Approve, then sign the sweep. By default each token is approved once, ever, to Permit2 (0x000000000022D473030F116dDEE9F6B43aC78BA3), and every sweep after that is one signature and one transaction. You can instead approve the dust sweeper for exactly this sweep’s amounts, and a wallet that can bundle transactions does it all in one prompt.
- Up to 80 sales go in one transaction; a bigger sweep is split.
- Each sale approves its router for exactly its amount and resets the approval afterwards.
- A sale that fails or can’t meet its minimum is undone, and that token comes back to you. The others still go through.
- Everything bought comes back to your wallet in the same transaction; the contract keeps nothing and charges no fee.
- Its owner can only edit the router list and rescue tokens sent to it by mistake.
What swaps cannot do
Swaps from your wallet never touch your vault unless you deposit the proceeds. Swaps for a vault are made by the bot through the vault executor and its own checks. If a swap can’t fill within its minimum output, it fails and your tokens stay where they were. Every contract named here is listed on Contracts & custody.