# Architecture

MintDeals was built on the Tron blockchain, leveraging smart contracts to automate credit management and deal creation. We integrated with JustLendDAO to enable the shared credit facility and use Wink price oracle for fetching the value of BTC. The core contract components include:

**MintDealsNFT:** For minting and redemption of deals. Integrates with the ClubDealRegistry.

**ClubDealRegistry:** For creating and managing clubs, deals and splitting of received payments to Credit Facility and Credit Manager.

**CreditManager:** A contract account integrated with the CreditFacility, managing BTC, shared credit access, handles repayments and manages credit scoring that affects club owners' borrowing capacity.

**CreditFacility:** Manages individual credit access and collective funds as sub accounts and integrates directly into JustLendDAO for accessing supplying, lending, borrowing, repayment and yield claiming capabilities.

<figure><img src="/files/jCUOhSljTCT1K45PutU2" alt=""><figcaption><p>MintDeals High Level Technical Architecture</p></figcaption></figure>


---

# 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://paracosmlabs.gitbook.io/mintdeals/developers/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.
