# getApr

This method returns the current apr for a tranche based on `trancheAPRSplitRatio` and the provided AA (Senior) ratio.

### Function

```solidity
function getApr(
    address _tranche
) external view returns (uint256);
```

### Parameters

<table><thead><tr><th width="276">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>_tranche</code></td><td>AA or BB Tranche token address</td></tr></tbody></table>

### Return values

<table><thead><tr><th width="278">Value</th><th>Description</th></tr></thead><tbody><tr><td><code>_val</code></td><td>APR for the specific tranche</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.idle.finance/developers/yield-tranches/methods/getapr.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
