# Processing

<figure><img src="https://2111160599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffggipod3jU8OdLSacyrb%2Fuploads%2FI7rlDrJ3nLdwoWwX3gvZ%2FloreText-PROCESSING.png?alt=media&#x26;token=e9c4db1d-2fa2-4506-bcd4-aea5697770f2" alt=""><figcaption></figcaption></figure>

To **Process** and then reveal the hidden Alloy Part, the **Unprocessed Part** is staked for a random (and undisclosed) 1-4 hour period of time.

Across this period of time, an amount of token (based on the value of the underlying Part) is being generated. The token continues to generate at a per-second pace until one of the following takes place:

1. Processing Success
2. Processing Failure

### Processing Success

When the *unknown* stake time expires, processing is completed and a new **Alloy Part** NFT is revealed. You may then sell the part for Alloy token, or collect the NFT.

### **Processing Failure**

If there are no [**Thread Upgrades**](https://alloy-space.gitbook.io/alloy-space/upgrade-parts/atm-upgrades) equipped during processing, there is a 20% chance that part processing will fail. When processing fails, the amount of token generated up to the point of failure is claimed as a *recycle value*.

Additionally, when claiming the recycled token there is a tax of the unrealised $NIOZ value portion that is sent to the Smelter inside the [**Foundry**](https://alloy-space.gitbook.io/alloy-space/liquidity-provision/the-foundry), which smelts for 3 days and is extracted as a reward to liquidity providers.

![An Unprocessed Part being Processed](https://2111160599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffggipod3jU8OdLSacyrb%2Fuploads%2F8MSxM4vt2doOzeVhalDH%2FScreenshot%20\(151\).png?alt=media\&token=60be371f-d354-44d2-92f1-7b5c805f9ed2)

### Processing Emissions

This is how token emits during processing. If the **Echo-9** Offer Price is $$P$$ (unknown until processing completes), and the total processing time is $$T$$ and failure time is $$F < T$$ then the following amount of token will be emitted at *failure* time:

**Emitted Alloy Token** =$$\frac{F}{T}P$$

**Foundry Tax** = $$\frac{T-F}{T}P$$

{% hint style="info" %}
The amount of token generated per second is determined by the **Alloy Value** of the hidden part. The **Alloy Value** is calculated by looking at the **Part Complexity** and **Part Purity** of the part, which are random values from within a range determined by the specs of the ARC-Forge on which the part was built.
{% endhint %}
