---
title: "Calculate diluted APY for a lending pool"
method: POST
path: "/diluted-apy"
---

# Calculate diluted APY for a lending pool

`POST /diluted-apy`

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

## Request body

- union
  - object
    - `pool_address` string, required — Address of the pool contract
    - `lp_token_address` string — Address of the LP token contract
    - `chain` string, required — Blockchain network identifier
    - `input_token` string — Address of the input token for APY calculation (auto-selected if not provided)
    - `input_amount` integer, required — Amount to consider for dilution calculation (in token's smallest unit)
  - object
    - `pool_address` string — Address of the pool contract
    - `lp_token_address` string, required — Address of the LP token contract
    - `chain` string, required — Blockchain network identifier
    - `input_token` string — Address of the input token for APY calculation (auto-selected if not provided)
    - `input_amount` integer, required — Amount to consider for dilution calculation (in token's smallest unit)

## Response `200`

Diluted APY calculation response

- object
  - `success` boolean, required
  - `diluted_yield` DilutedAPYResponse, required
    - `apy` number, required — Annual Percentage Yield
    - `network_id` string, required — Blockchain network identifier
    - `pool_address` string — Address of the pool contract
    - `input_token` string — Address of the input token used for APY calculation
    - `input_amount` string, required — Amount used for dilution calculation

---

[API](https://skmtc.net/gluexprotocol/apis/gluex-yield-api.md) · [All operations](https://skmtc.net/gluexprotocol/apis/gluex-yield-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gluexprotocol/gluex-yield-api/versions/fe660f40457e/schema)
