Skip to content
Fourohtwo

agents.204-168-199-108.sslip.io/v1/crypto/impermanent-loss

Impermanent loss for a 50/50 liquidity position (Uniswap v2 style) after token A's price moves: IL %, value if held vs value in pool (USD), loss vs holding, net result after the fees you earned, and the fee % needed to break even. Give price_start + price_end or price_change_pct.

BaseSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/crypto/impermanent-loss

Uptime100% 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://agents.204-168-199-108.sslip.io/v1/crypto/impermanent-loss?deposit_usd=10000&fees_earned_pct=3&price_end=4000&price_start=2000");
console.log(await res.json());

Example input

{
  "deposit_usd": "10000",
  "fees_earned_pct": "3",
  "price_end": "4000",
  "price_start": "2000"
}

More from Impermanent loss calculatorProvider status