> For the complete documentation index, see [llms.txt](https://docs.nabla.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nabla.fi/developers/contract-interfaces/islippagecurve.md).

# ISlippageCurve

### psi

```solidity
function psi(uint256 _b, uint256 _l, uint8 _decimals) external view returns (uint256 _psi)
```

Calculates the output of the function Psi for input values b and l

#### **Parameters**

| Name       | Type    | Description                                                               |
| ---------- | ------- | ------------------------------------------------------------------------- |
| \_b        | uint256 | the input value `b`                                                       |
| \_l        | uint256 | the input value `l`                                                       |
| \_decimals | uint8   | the number of decimals used for \_b and \_l and also for the return value |

#### **Return Values**

| Name  | Type    | Description        |
| ----- | ------- | ------------------ |
| \_psi | uint256 | the value Psi(b,l) |

***

### inverseDiagonal

```solidity
function inverseDiagonal(uint256 _b, uint256 _l, uint256 _capitalB, uint8 _decimals) external view returns (uint256 _t)
```

Given b,l and B >= Psi(b, l), this function determines the unique t>=0 such that Psi(b+t, l+t) = B

#### **Parameters**

| Name       | Type    | Description                                                                        |
| ---------- | ------- | ---------------------------------------------------------------------------------- |
| \_b        | uint256 | the input value `b`                                                                |
| \_l        | uint256 | the input value `l`                                                                |
| \_capitalB | uint256 | the input value `B`                                                                |
| \_decimals | uint8   | the number of decimals used for \_b, \_l, \_capitalB and also for the return value |

#### **Return Values**

| Name | Type    | Description  |
| ---- | ------- | ------------ |
| \_t  | uint256 | the number t |

***

### inverseHorizontal

```solidity
function inverseHorizontal(uint256 _b, uint256 _l, uint256 _capitalB, uint8 _decimals) external view returns (uint256 _t)
```

Given b,l and B >= Psi(b, l), this function determines the unique t>=0 such that Psi(b+t, l) = B

#### **Parameters**

| Name       | Type    | Description                                                                        |
| ---------- | ------- | ---------------------------------------------------------------------------------- |
| \_b        | uint256 | the input value `b`                                                                |
| \_l        | uint256 | the input value `l`                                                                |
| \_capitalB | uint256 | the input value `B`                                                                |
| \_decimals | uint8   | the number of decimals used for \_b, \_l, \_capitalB and also for the return value |

#### **Return Values**

| Name | Type    | Description  |
| ---- | ------- | ------------ |
| \_t  | uint256 | the number t |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.nabla.fi/developers/contract-interfaces/islippagecurve.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
