> For the complete documentation index, see [llms.txt](https://ton-docs.theoldcastle.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ton-docs.theoldcastle.xyz/investors.md).

# Investors

Investors in The Old Castle Defense game are users who have not staked an NFT, but have staked $TON on either one or both factions during the game.

Investors in The Old Castle Defense game are users who have not staked an NFT, but have staked $TON on either one or both factions during the game. They can participate in deciding the outcome of the battle or siege by contributing to one or both factions, helping them achieve victory. If the investor wins, they receive a reward, and all invested $TON is returned to the winning team. The investors take 70% from the treasury, while NFT holders take 30% from the treasury.

Although Investors are not directly involved in the Battle, they can participate in deciding the outcome of the Battle or Siege at any time.&#x20;

Investors participate by contributing to one or both Factions, helping them achieve victory. Investors do not have to own an NFT from the Knight of the Kingdom or a Terrible Creature NFT collection.

Available actions for Investors:

* Buying a Faction Attack;
* Reviving fallen NFT characters for either Faction;
* Boosting any NFT LvL up.

### Faction Attack Boost

Investors can increase the Faction's attack power by spending **$TON**, but each subsequent Attack Boost becomes more expensive than the previous one.

Each Attack Boost will increase the attack power of a Faction. A number is chosen randomly, within range of the current boost level and added to the Faction's total Attack Power. Each increase in attack power increases an investor's stake, which means a greater share of the prize if the Faction is victorious.

When **$TON** is used to boost a Faction's attack, it is stored in that Faction's treasury. During each battle, both factions' treasuries also serve as the reward pool, from which the winning Faction is awarded.

Calculation of the range of attack probability and cost:

| Level Increase | Attack Power Increase | Cost ($TON) |
| -------------- | --------------------- | ----------- |
| 1              | 2-5                   | 10          |
| 2              | 3-6                   | 20          |
| 3              | 4-7                   | 30          |
| 4              | 5-8                   | 40          |
| 5              | 6-9                   | 50          |
| ...            | ...                   | ...         |
| 100            | 101-104               | 1000        |
| n              | (n+1)-(n+4)           | n \* 10     |

{% hint style="warning" %}
The price includes a service commission of 6%. After deducting the commission, the $**TON** deposited by the investors is collected in the treasury. All invested funds are returned to the winners as well as an additional reward.
{% endhint %}

### Revival

Investors can revive deceased NFT characters. The cost of each revival is calculated by the formula:

$$
RevCost = LVL + 1,
$$

where:

* **RevCost** is the cost of reviving in **$TON**;
* **LVL** is the level of NFT at the time of death.

{% hint style="info" %}
The character is reborn in the next block with full health.
{% endhint %}

{% hint style="warning" %}
The price includes a service commission of 6%. After deducting the commission, the $**TON** deposited by the investors is collected in the treasury. All invested funds are returned to the winners as well as an additional reward.
{% endhint %}

## Reward system

Investors can invest $**TON** in one Faction, or both at once. But only one Faction is victorious in each Battle. It should be noted that the Investor acts on his own and is rewarded depending on where, when, and how much $**TON** is invested.

The investor receives a reward depending on the amount of $**TON** invested in the winning Faction. With each Battle, the "weight" of investments decreases.

### Learn more about the weight of attachments

The weight of investments decreases with each battle, the invested $**TON** in the first battle will bring the Investor greater rewards than in the last battle.

The formula for calculating the weight of attachments (Wi):

$$
Wi = (Tr - Cr) / Tr \* Ia,
$$

where:

* Tr - total number of rounds;
* Cr - current round number;
* Ia - the number of **$TON** invested by the investor.

### Return of Invested $**TON**

All nested $**TON** is collected into a common pool for each Faction. If an Investor belongs to a winning faction, he will receive back his deposited $**TON**, but only investments made in the winning Faction.

### Rewards for winning

Investors receive 70% of the rewards from the winning Faction's reward pool. The distribution of rewards among investors will be carried out depending on the weight of their investments in the winning Faction.

The formula for calculating determining an investor's reward:

$$
InvRew = \frac{SumWi}{SumTotalWi}\*RewardForInvestors,
$$

where:

* SumWi - the sum of the investor's investment weights;
* SumTotalWi - the sum of the investment weights of **all** investors;
* RewardForInvestors - 70% of the rewards from the winning Faction's reward pool.

{% hint style="info" %}
Example of determining an investor's reward (assuming that the total number of rounds = 95 and the number of Investors = 2):

* Investor 1 invested 100 $**TON** in Faction "A" on its 3rd Battle (Wi = 96.842) and 1000 $**TON** in Faction "B" on its 10th Battle (Wi = 894.736)
* Investor 2 invested 10,000 $**TON** in Faction "B" on the 5th Battle (Wi = 9473.684)
* The "B" faction wins and receives 100,000 $**TON** (70% of which go to Investors (70,000 $**TON** )
* The sum of the weight of the invested $**TON** in the Winners' Faction, from all Investors = 894.736 + 9473.684 = 10368.42, is 100%
* The share of Investor 1, taking into account its investment weight, is 8.63%, which means the reward = 6041 $**TON**&#x20;
* The share of Investor 2, taking into account its investment weight, is 91.37%, which means the reward = 63959 $**TON**&#x20;
  {% endhint %}

{% hint style="warning" %}
Remember that the amount of investment increase with each round. The earlier $**TON** is deposited, the greater the reward.
{% endhint %}


---

# 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://ton-docs.theoldcastle.xyz/investors.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.
