# Bariff— Onchain Wars

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

<figure><img src="https://1188336664-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjdOIxMzCZ5u9SGToI8RA%2Fuploads%2FsV0Lkz8x6DzJnh5Vau5f%2FBariff%20twitter%20header.jpg?alt=media&#x26;token=9ea3b95d-27ca-4114-bb3f-3b20b9b7a669" 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.
