# BST Minting and bnUSD Redeeming

The BST token is backed by an increasing amount of [bnUSD](https://balanced.network/stablecoin/).&#x20;

* <mark style="background-color:purple;">All interactions in the Blobble Playground, Orphanage, Market and Finance place are designed to make the amount of bnUSD grow faster than the total supply of BST.</mark>

Minting and Redeeming BST incurs a 5% tax:

* 95% of minted or redeemed BST gets issued to the user
* 4% of minted or redeemed BST gets added to the bnUSD in the treasury
* 1% of minted or redeemed BST goes to the Blobble Foundation (team + marketing)

### BST MINT

<figure><img src="/files/xSP7GohcdcUZrwGWZbX8" alt=""><figcaption><p>This is what happens when you mint BST</p></figcaption></figure>

*NOTE: In favor of simplification, the above infographic does not contain the Blobble Foundation (team + marketing) allocation.*

`chunksize = 2000`\
`amountOfChunks = bnusdSend / chunksize`\
\
`for amountOfChunks {`\
&#x20;   `1. calucate the price based on bst supply & bnusd in contract`\
&#x20;   `2. get amount of bst to mint based on price - 5% and mint to user`\
&#x20;   `3. mint 1% of amount to team`\
&#x20;   `4. update the amount of bst supply and bnusd in contract`\
`}`\
\
`for remaining bnusd {`\
&#x20;   `1. calucate the price based on bst supply & bnusd in contract`\
&#x20;   `2. get amount of bst to mint based on price - 5% and mint to user`\
&#x20;   `3. mint 1% of amount to team`\
`}`

### **BST REDEEM**

<figure><img src="/files/ft4iPSmOh03d0wtJrYUW" alt=""><figcaption><p>this is what happens when you use BST to redeem bnusd</p></figcaption></figure>

*NOTE: In favor of simplification, the above infographic does not contain the Blobble Foundation (team + marketing) allocation.*

`chunksize = 2000 // <- bnusd-value`\
`price = bnusd-in-contract / total-supply-bst`\
`tokens = amount-of-tokens-send-by-user`\
\
`bnusdValue = tokens * price`\
\
`while bnusdValue > 2000 {`\
&#x20;   `// amount of bst to handle in this iteration`\
&#x20;   `bstAmount = chunksize / price`\
&#x20;   `bstAmountPostFee = bstAmount * 0.95`\
&#x20;   `bstTeamFee = (bstAmount - bstAmountPostFee) / 5`\
\
&#x20;   `1. burn bstAmount minus bstTeamFee`\
&#x20;   `2. send (bstAmountPostFee * price) in bnusd to user`\
&#x20;   `3. send team fee in bst to team`\
&#x20;   `4. updated price based on new bst supply and bnusd in contract`\
&#x20;   `5. set 'bnusdValue' with updated price`\
`}`\
\
`for remaining bst tokens {`\
&#x20;   `bstAmount = remaining-tokens / price`\
&#x20;   `bstAmountPostFee = bstAmount * 0.95`\
&#x20;   `bstTeamFee = (bstAmount - bstAmountPostFee) / 5`\
\
&#x20;   `1. burn bstAmount minus bstTeamFee`\
&#x20;   `2. send (bstAmountPostFee * price) in bnusd to user`\
&#x20;   `3. send team fee in bst to team`\
`}`


---

# 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://university.blobble.xyz/bst-token-information/token-mechanics/bst-minting-and-bnusd-redeeming.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.
