dsh-dex

DEX math for dsh - price impact you compute before you sign, not after you regret.
A plugin for the DeepSeek Harness (dsh).
Why
"What's the price impact?" deserves math, not hope. AMM formulas are deterministic - an agent can and should show its work.
What it does
- Constant-product and concentrated-liquidity pool math, formulas shown with inputs
- Price impact estimation before any swap decision
- LP position value and impermanent loss computed from your own numbers
- Routing sketches across pools, with assumptions stated
How it fits dsh
Pure math over pasted or workspace state; optional live reads compose with dsh-onchain.
Design principles
- Research tooling, not trading advice
- Every formula shown with its inputs - no black boxes
- No keys, no signing, no positions moved
Status
Name reserved, spec locked. Roadmap: 0.1 v2 math -> 0.2 concentrated liquidity -> 0.3 live state via dsh-onchain. The first release lands
when the 0.1 scope above is fully implemented and tested - not before.
License
MIT