v3

latestOpenAPI 3.0.0raw.githubusercontent.com2025-07-244611.6 KB

Calculate diluted APY for a lending pool

Calculate the diluted Annual Percentage Yield (APY) for a lending pool considering the impact of a specific amount.

post/diluted-apy

Request body

OR

Example request

{
  "pool_address": "0x1234567890123456789012345678901234567890",
  "lp_token_address": "0x1234567890123456789012345678901234567890",
  "chain": "ethereum",
  "input_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "input_amount": 1000000000000000000
}

Response

Diluted APY calculation response

successboolean required

Example response

{
  "success": true,
  "diluted_yield": {
    "apy": 5.25,
    "network_id": "ethereum",
    "pool_address": "0x1234567890123456789012345678901234567890",
    "input_token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "input_amount": "1000000000000000000"
  }
}