89trust / 100

Exit Fee Curve

by api.onesource.io in Onchain & crypto

x402 APIPassing, checked 3 h ago

The Standard Reserve (TSR), an on-chain reserve protocol on Robinhood Chain. How the reserve's exit fee changes across a range of withdrawal sizes, checked two ways: a live contract read and this service's own formula. Fields ending in _raw are 18-decimal integers as strings. Divide by 1e18 to get token amounts.

GET https://api.onesource.io/standard/v1/exit/fee-curve

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
118 ms typical, 118 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.onesource.io/standard/v1/exit/fee-curve?gross=1000"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.onesource.io%2Fstandard%2Fv1%2Fexit%2Ffee-curve
const res = await pay("https://api.onesource.io/standard/v1/exit/fee-curve?gross=1000");
console.log(await res.json());

Example input

{
  "gross": 1000
}

Example output

{
  "as_of_block": 63824000,
  "chain_id": 4663,
  "fee_rate_now_formula_wad": "20084525840868683",
  "fee_rate_now_live_wad": "20084525840868683",
  "formula_version": "mainnet-exit-2026-10-02",
  "gross_raw": "1138197334814168222803789000000",
  "gross_source": "bank_total_pending_live",
  "gross_units": "whole STANDARD tokens; multiplied by 1e18 before use, matching previewResolutionFeeWad's own WAD scaling",
  "ladder": [
    {
      "fee_amount_raw": "229722069069351265",
      "fee_rate_formula_wad": "20185033241706914",
      "fee_rate_live_wad": "20185033241706914",
      "fraction_of_gross": "1%",
      "gross_raw": "11381973348141682228037890000",
      "marginal_fee_raw": null
    }
  ],
  "network": "robinhood"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402118 ms$0.02