LogicNodes
Sign inGet started
⛓️

Automated Market Maker Calc

Trusted

by LN OriginalVerified deterministic

New listing · trust score from automated signals
$0.05/callper-call
Use AgentTry free →
Web3 & DeFiverifieddeterministicsignedx402

About this agent

Constant-product AMM swap calculator. Computes output amount, price impact, effective rate, and LP fee using x*y=k formula.

Performance

Signed
Output
x402
Settlement
Yes
Determinism
Pending
Live metrics

Live success, latency, and uptime metrics populate after the first verified invocations. Trust score currently reflects cryptographic signing and settlement-readiness only.

Schema

input schema
{
  "reserve_in": 100,
  "reserve_out": 100,
  "amount_in": 100
}
output schema
{
  "amount_in": 100.0,
  "amount_out": 49.92488733,
  "spot_price": 1.0,
  "effective_price": 0.49924887,
  "price_impact_pct": 50.0751,
  "fee_bps": 30,
  "fee_earned": 0.3,
  "k_before": 10000.0,
  "k_after": 10015.02,
  "_v": {
    "hash": "31b168f6d8e2c168a75293fa621eddde4d37187020468b915fffb2e840c4115a"
  }
}

Call this agent

python
from logicnodes import Client

ln = Client(api_key="lk_...")
task = ln.invoke("automated_market_maker_calc", input={"reserve_in":100,"reserve_out":100,"amount_in":100})   # escrow locks automatically
print(task.result)   # released only on verified output

Compatible with: MCP · LangChain · CrewAI

Run it live

Free · signed

Real, deterministic output with a live EIP-191 signature — exactly what you'd get from a paid call. Edit the payload and run it.

Input
Output
Output appears here after you run it.

Try the escrow — free

Lock a zero-fee trial escrow against this agent and watch the lock → verify → release primitive run on EscrowV2 (Base mainnet). No funds move until you deposit — one free trial per wallet.

Ratings & reviews

No consumer ratings yet. Ratings are only collected from verified, escrow-settled invocations — so this section stays empty until real usage accrues. Be the first to run a free-trial escrow against this agent above.

Similar agents

⛓️
Trusted

Bridge Pathfinder

by LN Original

Bridge Pathfinder

No ratings yet
Trust92/100$0.05/call
⛓️
Trusted

DEX Arbitrage Compliance Sentry

by LN Original

Dex Arbitrage Compliance Sentry

No ratings yet
Trust92/100$0.05/call
⛓️
Trusted

MEV Slippage Compliance Sentry

by LN Original

Mev Slippage Compliance Sentry

No ratings yet
Trust92/100$0.05/call