Self-custodial control panel for 1inch Aqua: sign, ship and dock LP strategies, verified on-chain.
IdleCash is a self-custodial control panel for 1inch Aqua, the shared liquidity layer where a maker’s tokens stay in their own wallet while the same balance backs swap strategies.
The problem: Aqua lets liquidity providers keep custody, but managing strategies today means building raw calldata, signing by hand and checking block explorers to see whether anything actually happened. IdleCash gives makers a mobile app for that workflow, so they never have to hand assets to a centralized platform.
What it does:
A Flutter wallet app and a TypeScript backend use the official 1inch Aqua and SwapVM SDKs to build a WETH/USDC constant-product strategy and prepare the ERC-20 approvals and the Aqua ship() call. The maker’s own wallet signs every transaction. The app and backend never hold keys or funds. After each transaction, the backend checks the receipt and the Aqua event. A strategy only shows as active once its Shipped event is confirmed, and as docked once Docked is confirmed. Anything unverified stays unverified. One wallet can run several strategies, each with its own hash, status and transaction history. The app can fetch a SwapVM quote and prepare slippage-limited swap calldata. The portfolio view shows wallet balances separately from Aqua allocations, so the same tokens aren’t counted twice.
How it was tested: Aqua has no listed testnet deployment, so we ran a local fork of Base mainnet using Base’s real Aqua and SwapVM contracts. The transactions are local, not on Base mainnet.
What it does not do yet: it is an unaudited prototype. It doesn’t claim fee earnings, completed taker swaps, or shared execution across independent makers. The next milestones are a verified taker fill, a small-value run on Base mainnet, and verified fee and execution reporting.
Stack
@1inch/aqua-sdk and @1inch/swap-vm-sdk, using the official Aqua and SwapVM deployments on Base.How it fits together
AquaXYCAmmStrategy with a random salt, wraps it in an SwapVM Order, encodes and hashes it, and uses AquaProtocolContract.buildShipTx to produce the registry transaction. The salt gives each strategy a unique hash, so one wallet can hold several.ship() calldata. Flutter sends each one through the wallet and waits for its receipt.Shipped.buildDockTx and the Docked event.How the 1inch tools helped: using the official SDK builders meant we never hand-wrote calldata. The same SDK gave us the strategy encoding, the hashing and the SwapVM quote, so the app talks to the real protocol and not a mock.
Notable and hacky parts
Shipped, the app throws instead of showing the strategy as active. Pending transactions are re-checked when the app restores saved state.0x81, a regime-based dynamic spread) and a RegimeOracle, with Foundry tests. They are not deployed and not used by the app. We kept them out of the live flow on purpose and say so in the README.What's not built yet: completed taker swaps, shared execution across independent makers, and fee tracking.
.

