# Architecture

### Locking Process

Users can lock their BTC, DOGEB, or BTCB tokens on the GoatNetwork, receiving corresponding liquid tokens (such as artBTC, artDOGEB, or artBTCB) at an exchange rate determined at the time of locking. Artemis aggregates these tokens and any accrued rewards, batching them for further processing within the GoatNetwork ecosystem.

Once the tokens are locked, Artemis coordinates with the Entangled Rollup mechanism to ensure secure and efficient management of user assets. The protocol leverages GoatNetwork’s decentralized sequencer to maintain transaction order and network integrity. Locking rewards are distributed to users, compounding over time to optimize overall returns.

### Redeeming Process

When users wish to redeem, they initiate the process by burning their liquid tokens (artBTC, artDOGEB, or artBTCB). The Artemis contract records the redemption request and synchronizes it with the GoatNetwork’s Entangled Rollup system.

Redemption requests are processed in batches, utilizing the decentralized sequencer for secure and fair execution. After the required unbonding period (as defined by GoatNetwork protocol parameters), the unlocked tokens become available for withdrawal.

Users can then withdraw their BTC, DOGEB, or BTCB tokens from GoatNetwork, following a “First Come First Get” rule to ensure fairness and transparency.

This architecture leverages GoatNetwork’s native support for Bitcoin assets and its Entangled Rollup technology, providing users with a secure, scalable, and efficient staking and redemption experience.


---

# 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.artemisfinance.io/mechanism/goatnetwork/architecture.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.
