Will this borrow/leverage action breach Morpho liquidation thresholds? Simulate user posit
Will this borrow/leverage action breach Morpho liquidation thresholds? Simulate user position against declared LLTV, evaluate health factor buffer, and check oracle freshness before execution.
750000 (raw units)
price
3
calls / 30d
1
unique payers
2026-09-11
updated
Provider
www.tereno.xyz · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xfbF218ACCBb0D57fc4E8fc3E2A885C910c4C9e94",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "750000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"borrowAmountWei": "0",
"collateralToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"loanToken": "0x4200000000000000000000000000000000000006",
"marketId": "0x1111111111111111111111111111111111111111111111111111111111111111",
"userAddress": "0x2222222222222222222222222222222222222222"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"capabilityId": "morpho.collateral.guard",
"capabilityVersion": "1.0.0",
"invocationId": "uuid",
"pricing": {
"currency": "USDC",
"pricePaidUsd": 0.5
},
"receiptUrl": "/api/v1/receipts/uuid",
"result": {
"currentLtvBps": 6500,
"liquidationBufferBps": 2100,
"lltvBps": 8600,
"marketId": "0x1111111111111111111111111111111111111111111111111111111111111111",
"projectedLtvBps": 6500,
"reasonCodes": [
"SOLVENCY_BUFFER_HEALTHY"
],
"risks": [],
"solvencyStatus": "healthy",
"verdict": "allow"
},
"verdict": "allow"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"borrowAmountWei": {
"description": "Additional borrow amount in wei.",
"pattern": "^[0-9]+$",
"type": "string"
},
"collateralToken": {
"description": "Collateral asset address.",
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"loanToken": {
"description": "Borrow/loan asset address.",
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"marketId": {
"description": "Morpho market identifier (32 bytes hex).",
"pattern": "^0x[a-fA-F0-9]{64}$",
"type": "string"
},
"userAddress": {
"description": "Borrower wallet address.",
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
}
},
"required": [
"marketId",
"collateralToken",
"loanToken",
"userAddress"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"capabilityId": {
"const": "morpho.collateral.guard"
},
"invocationId": {
"type": "string"
},
"pricing": {
"type": "object"
},
"receiptUrl": {
"type": "string"
},
"result": {
"type": "object"
},
"verdict": {
"enum": [
"allow",
"review",
"block"
]
}
},
"required": [
"capabilityId",
"invocationId",
"verdict",
"result",
"pricing",
"receiptUrl"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"builder-code": {
"info": {
"a": "bc_8kag0yoi"
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"a": {
"description": "App builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"s": {
"description": "Service builder codes",
"items": {
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
},
"type": "array"
},
"w": {
"description": "Wallet builder code",
"pattern": "^[a-z0-9_]{1,32}$",
"type": "string"
}
},
"type": "object"
}
}
}Use it
curl
curl "https://www.tereno.xyz/api/v1/capabilities/morpho.collateral.guard/invoke" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://www.tereno.xyz/api/v1/capabilities/morpho.collateral.guard/invoke");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://www.tereno.xyz/api/v1/capabilities/morpho.collateral.guard/invoke")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/2467.json, and this resource appears in /discovery/resources and /discovery/search.