# TBC Examples

## 1. Examples using App token price

### Example 1.1

An applications wants to supply 10,000,000 app tokens to the TBC swap with curve parameters growing the price from 0.01 sRLY to 10 sRLY over the course of swapping 10,000,000 App tokens

Slope = 9.99 x 10^-16

{% hint style="info" %}
The slope was calculated by using [Method 1: Using App token price](https://wiki.rly.network/rly-protocol/get-started/tbc-on-solana/tbc-guides#method-1-using-app-token-price), then converted using the [Convert slope to numerator/denominator](https://wiki.rly.network/rly-protocol/get-started/tbc-on-solana/tbc-guides#converting-slope-to-slope_numerator-and-slope_denominator). &#x20;
{% endhint %}

```
token_b_liquidity = 10_000_000_000_000_000
slope_numerator = 999
slope_denominator = 1_000_000_000_000_000_000
init_price_a_numerator = 1
init_price_a_denominator = 100
```

![](https://71338788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmL4xEvo4qPP8d70X6kIq%2Fuploads%2FvQorMb8PnyHON3uGPNNc%2FScreen%20Shot%202022-03-28%20at%203.33.21%20PM.png?alt=media\&token=beec3015-1fd7-4230-a970-c9a6c4c7fec4)

### Example 1.2

An applications wants to supply 10,000,000 app tokens to the TBC swap with curve parameters growing the price from 0.25 sRLY to 5 sRLY over the course of swapping the first 5,000,000 App tokens

Slope = 9.5×10^−16

{% hint style="info" %}
The slope was calculated by using [Method 1: Using App token price](https://wiki.rly.network/rly-protocol/get-started/tbc-on-solana/tbc-guides#method-1-using-app-token-price), then converted using the [Convert slope to numerator/denominator](https://wiki.rly.network/rly-protocol/get-started/tbc-on-solana/tbc-guides#converting-slope-to-slope_numerator-and-slope_denominator). &#x20;
{% endhint %}

```
token_b_liquidity = 10_000_000_000_000_000
slope_numerator = 95
slope_denominator = 100_000_000_000_000_000
init_price_a_numerator = 25
init_price_a_denominator = 100
```

{% hint style="info" %}
The end point does not have to correspond to the total token\_b\_liquidity. Any two points can be used on the line to determine the slope and fund it with any amount of liquidity. The example below shows up to the first 5,000,000 app tokens even though the application wants to supply 10,000,000 app tokens.&#x20;
{% endhint %}

![](https://71338788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmL4xEvo4qPP8d70X6kIq%2Fuploads%2FexQMfg3VxwB73rs6KZIs%2FScreen%20Shot%202022-03-28%20at%203.36.34%20PM.png?alt=media\&token=fd86c18e-9dcd-4e77-8386-b04b91f7f91e)

## 2. Examples using TVL

### Example 2.1

An applications wants curve parameters growing the price from 0.25 sRLY to 5 sRLY over the course of 500,000 TVL in sRLY

Slope = 2.49375×10^−14

{% hint style="info" %}
The slope was calculated by using [Method 2: Using TVL](https://wiki.rly.network/rly-protocol/get-started/tbc-on-solana/tbc-guides#method-2-using-tvl), then converted using the [Convert slope to numerator/denominator](https://wiki.rly.network/rly-protocol/get-started/tbc-on-solana/tbc-guides#converting-slope-to-slope_numerator-and-slope_denominator). &#x20;
{% endhint %}

```
token_b_liquidity = 540_883_000_000_000
slope_numerator = 24375
slope_denominator = 1_000_000_000_000_000_000
init_price_a_numerator = 25
init_price_a_denominator = 100
```

![](https://71338788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmL4xEvo4qPP8d70X6kIq%2Fuploads%2FMnzw6xSRmVPF9ojzOCjv%2FScreen%20Shot%202022-03-29%20at%201.39.05%20PM.png?alt=media\&token=910dda81-c525-4464-b589-6483e33fc95f)


---

# 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://wiki.rly.network/rly-protocol/get-started/tbc-on-solana/step-2-initialize-token-bonding-curve-tbc/tbc-examples.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.
