swapper-toolkit icon indicating copy to clipboard operation
swapper-toolkit copied to clipboard

Pre-trade risk check before execution

Open likidodefi opened this issue 7 months ago • 0 comments

Swapper-toolkit gives agents great execution capabilities. But what prevents an agent from deploying 100% of capital into a single trade during a drawdown?

Built a risk governance API that could serve as a pre-execution check: before the agent calls swapper-toolkit to execute, it queries the risk layer to get max allowed position size and leverage for current market conditions.

https://github.com/likidodefi/riskstate-docs — deterministic policy engine, BTC+ETH, free during beta. Architecture: Agent proposes → RiskState permits → Swapper executes.

likidodefi avatar Apr 13 '26 20:04 likidodefi