IndexPilot documentation
Executing on SoDEX
SoDEX is the native decentralized exchange for the ValueChain ecosystem. It is where IndexPilot rebalance trades are routed — today via a manual hand-off, soon via a direct API integration.
The current flow
IndexPilot generates the rebalance plan. You copy the orders and execute them on SoDEX yourself. The dashboard provides the numbers, the order, and a deep link — you provide the signature.
- On the dashboard, review the orders in the Rebalance plan panel. Each row shows side (buy or sell), token, amount in token units, and USD equivalent.
- Press Execute on SoDEX. A new tab opens to the SoDEX app.
- In SoDEX, select the first order's trading pair, enter the amount, and place the trade.
- Repeat for each order in the plan. The plan is already sorted — sells first, then buys — so proceeds fund subsequent purchases.
- Back in IndexPilot, the activity log records the plan you acted on. Once your wallet balances reflect the trades, the dashboard will settle to the new allocation on its next price tick.
Why it is manual right now
Direct execution requires a SoDEX API key and a signed approval for IndexPilot to submit orders on your behalf. That approval flow is live in Wave 2 of the roadmap — the client-side typings in lib/sodex.ts are already in place, waiting for the API handshake to land.
Coming in Wave 2
- One-click execution. Press a single button and IndexPilot submits every order in the plan to SoDEX in sequence, surfacing transaction hashes and fills as they return.
- Slippage controls. Set a maximum slippage per order, and abort the remainder of the plan if any single leg breaches it.
- Partial fills and retries. If a leg fills partially, the planner adjusts downstream orders so the final portfolio still lands on target.
Until Wave 2 ships, the manual hand-off is the full flow — and because every number on the rebalance panel is deterministic, the manual path produces exactly the same end state as the automated one will.