# How it Works

## Overview

Essentially, PIKA stablecoins are backed by long positions’ loss at the time of the underlying token depreciation. At the time of the underlying token appreciation, the long positions’ profit are generated from both short positions’ loss and PIKA stablecoins' collateral token appreciation.

## Example

Let’s assume the current price of ETH is $2000 and Bob deposits 1ETH to Pika Protocol to mint 2000 PIKA stablecoins. This effectively opens a 1x short position of ETHUSD in the inverse perpetual swap margined in ETH.&#x20;

Assume the total value of all the long and short positions in the exchange are both $10000 (5 ETH), meaning there are $10000(5 ETH) values of long position and other $8000(4 ETH) of short position in the exchange. When Bob uses the 2000 PIKA to claim back their ETH at a later point, there could be three scenarios:

**ETH price remains the same:**&#x20;

Since both the longs and shorts positions of the exchange have 0 profit or loss, Bob can deposit 2000 PIKA to claim back their 1 ETH, with $2000 worth.

**ETH price goes up:**&#x20;

* Assume the price goes up to $4000.
* Net profit of longs: 10000 \* (1/2000 - 1/4000) = 2.5 ETH
* Net loss of shorts: 2.5 ETH
* Net loss of Bob’s position: 0.5 ETH
* As a result, Bob’s current collateral is 0.5 ETH(1 - 0.5). If Bob burns the 2000 PIKA stablecoins to claim back ETH now, it is still worth $2000.&#x20;

**ETH price goes down:**&#x20;

* Assume the price goes down to $1600.
* Net loss of longs: 10000 \* (1/1600 - 1/2000) = 1.25 ETH
* Net profit of shorts: 1.25 ETH
* Net profit of Bob’s position: 0.25 ETH
* As a result, Bob’s current collateral is 1.25 ETH(1 + 0.25). If Bob burns the 2000 PIKA stablecoins to claim back ETH now, it is still worth $2000.

<br>


---

# 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.pikaprotocol.com/archived/pika-protocol-v1/pika-stablecoin/how-it-works.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.
