finops.halowerk.com/v1/two-reserve-lp-command-ledger
Original initialized two-token reserves and three LP balances plus ordered raw Add(op0), exact-input token0/1 Swap(op1/2) and LP Burn(op3) commands derive every reserve/supply/owner-share/tokenflow state and conservation witness. Supplied initial total includes1000permanently locked shares. Own conditional Uniswap-v2-inspired mathematics: protocolfeeTo-off,0.3%swapfee; full unbalanced rawmint depo
POST
https://finops.halowerk.com/v1/two-reserve-lp-command-ledgerUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://finops.halowerk.com/v1/two-reserve-lp-command-ledger", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"commands":[],"initial_owner_shares":[99000,0,0],"initial_reserve0":100000,"initial_reserve1_domain":[100000],"report":{"amount0_delta":[],"amount1_delta":[],"burned":[],"final_owner_flow":[[{"d":"1","n":"0"},{"d":"1","n":"0"}],[{"d":"1","n":"0"},{"d":"1","n":"0"}],[{"d":"1","n":"0"},{"d":"1","n":"0"}]],"final_owner_shares":[{"d":"1","n":"99000"},{"d":"1","n":"0"},{"d":"1","n":"0"}],"final_reserv),
});
console.log(await res.json());Example input
{"commands":[],"initial_owner_shares":[99000,0,0],"initial_reserve0":100000,"initial_reserve1_domain":[100000],"report":{"amount0_delta":[],"amount1_delta":[],"burned":[],"final_owner_flow":[[{"d":"1","n":"0"},{"d":"1","n":"0"}],[{"d":"1","n":"0"},{"d":"1","n":"0"}],[{"d":"1","n":"0"},{"d":"1","n":"0"}]],"final_owner_shares":[{"d":"1","n":"99000"},{"d":"1","n":"0"},{"d":"1","n":"0"}],"final_reserv