> For the complete documentation index, see [llms.txt](https://barrif-on-berachain.gitbook.io/barrif-on-berachain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://barrif-on-berachain.gitbook.io/barrif-on-berachain/readme.md).

# Bariff— Onchain Wars

## &#x20;<a href="#overview" id="overview"></a>

<figure><img src="/files/rEfC4s3z9oDBRyn3PBqz" alt=""><figcaption></figcaption></figure>

## **Overview** <a href="#overview" id="overview"></a>

Since the beginning of the current cycle, memecoins have played a crucial role in the ecosystem. However, with a market characterized by short attention spans among both new and old participants, the focus has shifted, and memes without utility are showing clear **signs of exhaustion**. Naturally, users are looking for newer narratives. Hence, **Bariff.**

**Bariff** is an onchain protocol that simulates economic competition between two synthetic assets: **CHINA** and **USA.** Each token represents a geopolitical entity in a rules-based system driven by market dynamics and a tailor-made algorithm logic.

Users can deposit **BERA** to mint both tokens, which feature an elastic and mintable supply, collateralized by **BERA**. However, the tokens are designed to function interdependently: when the price of one token rises relative to the other, the protocol automatically adjusts minting and redemption fees to incentivize market participants to rebalance the system.

**Bariff** introduces a fair, algorithmically enforced mechanism to explore competitive monetary dynamics between two opposing forces in a permissionless environment. At its core, **Bariff** operates with a **tuple token system**: **CHINA** and **USA**, which are mutually correlated through a **mathematical equilibrium (K = x . y,** which resembles the classic bonding curve formula used in most AMM&#x73;**)**. These tokens are **minted and burned via a CDP-like mechanism**, where market conditions dictate optimal issuance strategies, using a novel dynamic loan-to-value algorithm.

The protocol is deployed on **Berachain,** leveraging its native token **BERA** as collateral, enabling deep liquidity and strategic onchain market-making opportunities.


---

# 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://barrif-on-berachain.gitbook.io/barrif-on-berachain/readme.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.
