# Smart Contracts

The hBTC protocol is organized into several smart contract domains covering governance, user interaction, trading, and accounting.&#x20;

Governance contracts manage permissions, configuration, and safety controls; user-facing contracts handle deposits, withdrawals, and the hBTC token; trading contracts interface with external protocols for strategy execution; and accounting contracts manage NAV updates and the reserve fund.&#x20;

All assets are held within a dedicated reserve contract, providing a single, auditable asset layer across the system.

<figure><img src="https://2201013687-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxp26OjT5H1o55M1QMDI4%2Fuploads%2F9Gx0D0xfINIUFUadKiQO%2FFrame%20316125620.png?alt=media&#x26;token=6044268f-2d1f-473c-827b-30d98fdf5553" alt=""><figcaption></figcaption></figure>

hBTC smart contracts are open-source and verifiable on-chain.

<details>

<summary>Smart Contracts</summary>

HQ: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.hq-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.hq-v1?chain=mainnet)

State: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.state-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.state-hbtc-v1?chain=mainnet)

Blacklist: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.blacklist-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.blacklist-v1?chain=mainnet)

Vault: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.vault-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.vault-hbtc-v1?chain=mainnet)

Token: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.token-hbtc](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.token-hbtc?chain=mainnet)

Reserve: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.reserve-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.reserve-hbtc-v1?chain=mainnet)

Trading: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.trading-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.trading-hbtc-v1?chain=mainnet)

Zest Interface: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.zest-interface-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.zest-interface-hbtc-v1?chain=mainnet)

Hermetica Interface: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.hermetica-interface-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.hermetica-interface-hbtc-v1?chain=mainnet)

Controller: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.controller-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.controller-hbtc-v1?chain=mainnet)

Reserve Fund: [SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.reserve-fund-hbtc-v1](https://explorer.hiro.so/txid/SP1S1HSFH0SQQGWKB69EYFNY0B1MHRMGXR3J1FH4D.reserve-fund-hbtc-v1?chain=mainnet)

</details>

{% hint style="success" %}
View the hBTC smart contracts [on Github](https://github.com/hermetica-fi/hermetica-contracts).
{% endhint %}
