> For the complete documentation index, see [llms.txt](https://docs-v4.venus.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-v4.venus.io/technical-reference/reference-core-pool/comptroller/diamond/facets.md).

# Facets

Facets contain the BNB Core Pool Comptroller's application logic. They are reached through chained delegate calls from the Unitroller and Diamond.

At BNB Chain block `118,363,255`, the selector map installed by [VIP-640](https://venus.io/governance/proposal/640?chainId=56) was:

| Facet          | Responsibility                                                  | Live address                                 | Reference                                                                                     |
| -------------- | --------------------------------------------------------------- | -------------------------------------------- | --------------------------------------------------------------------------------------------- |
| MarketFacet    | Market membership, account delegation, liquidity and pool views | `0x21f8E1471b153f49BE1d645A008E4a57434eEd23` | [API](/technical-reference/reference-core-pool/comptroller/diamond/facets/market-facet.md)    |
| PolicyFacet    | vToken policy hooks and liquidity checks                        | `0x8930B02c69EDd37464B50991680D306Bb9B8FDBD` | [API](/technical-reference/reference-core-pool/comptroller/diamond/facets/policy-facet.md)    |
| RewardFacet    | XVS accrual, claim and seizure flows                            | `0x9e0CCD70b5E0030472D5013bbBd37B6E868d416f` | [API](/technical-reference/reference-core-pool/comptroller/diamond/facets/reward-facet.md)    |
| SetterFacet    | Risk, oracle, pause, cap, pool and feature configuration        | `0xbc4885e5A27050E321d094503597aC6734AB1871` | [API](/technical-reference/reference-core-pool/comptroller/diamond/facets/setter-facet.md)    |
| FlashLoanFacet | Multi-market flash-loan execution                               | `0xAC54A4D148690b7FDA22B1D29c4439aCBF668fb2` | [API](/technical-reference/reference-core-pool/comptroller/diamond/facets/flashloan-facet.md) |

`FacetBase` is inherited shared logic and storage, not a separate runtime facet. It defines `ComptrollerV19Storage` access helpers such as admin-only, admin-or-guardian, and signature-specific Access Control Manager checks.

{% hint style="danger" %}
Always call facet selectors through the Unitroller. Never send an application call directly to a facet address. Query `facetAddress(bytes4)` before relying on a selector, because governance can replace or remove individual assignments.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs-v4.venus.io/technical-reference/reference-core-pool/comptroller/diamond/facets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
