Rule builder
Typed conditions and bounded actions. Export JSON; nothing is deployed from here.
working · dry-run only
Policy check
Policy valid · every action has a % share and a hard USD cap
Dry-run against a market state
- Weekly buybackfires · $4,446≥ 24h since last run → true · treasury > $60000 → true
- Defend liquidityfires · $3,705liquidity < $80000 → true
- High-volatility reservefires · $5,187volatility > 80% → true
Dry-run only. Nothing is signed or sent; on-chain execution would re-check every limit.
Policy JSON
{
"version": 1,
"reserveFloorUsd": 50000,
"maxSlippagePct": 0.5,
"rules": [
{
"id": "r1",
"name": "Weekly buyback",
"when": [
{
"type": "interval_elapsed",
"value": 24
},
{
"type": "treasury_gt",
"value": 60000
}
],
"then": {
"type": "buyback",
"pctOfNet": 30,
"maxUsd": 5000
}
},
{
"id": "r2",
"name": "Defend liquidity",
"when": [
{
"type": "liquidity_lt",
"value": 80000
}
],
"then": {
"type": "add_liquidity",
"pctOfNet": 25,
"maxUsd": 4000
}
},
{
"id": "r3",
"name": "High-volatility reserve",
"when": [
{
"type": "volatility_gt",
"value": 80
}
],
"then": {
"type": "allocate_treasury",
"pctOfNet": 35,
"maxUsd": 10000
}
}
]
}