Split a treasury surplus

Calculate the available cash after commitments, then allocate the surplus by recipient weight.

Program steps

Result

Run the calculation to see the result.
Use this through REST or MCP

POST /api/v1/agent/operations/programs/sequence or call bitpont_operationsRunSequence with these inputs.

{
  "definition": "{\n  \"version\": 1,\n  \"steps\": [\n    {\n      \"key\": \"cash\",\n      \"tool\": \"treasuryReserveSweep\",\n      \"input\": {\n        \"balance\": \"920\",\n        \"reserve\": \"500\",\n        \"committed\": \"120\"\n      }\n    },\n    {\n      \"key\": \"split\",\n      \"tool\": \"treasuryWeightedPayout\",\n      \"input\": {\n        \"members\": [\n          {\n            \"id\": \"research\",\n            \"weight\": 2\n          },\n          {\n            \"id\": \"operations\",\n            \"weight\": 1\n          }\n        ]\n      },\n      \"bind\": {\n        \"amount\": \"cash.sweepable\"\n      }\n    }\n  ]\n}"
}

All Operations programs →