Skip to content

Comptroller

This section applies only to the BNB Chain Core Pool Comptroller. The entry point is the Unitroller at 0xfD36E2c2a6789Db23113685031d7F16329158384.

Calls follow this path:

caller → Unitroller → Diamond implementation → facet selected by msg.sig

State remains in the Unitroller context throughout the chained delegate calls. Integrations call the Unitroller address, not the Diamond or facet addresses.

At BNB Chain block 132,749,058, the Unitroller reported:

ComponentAddress
Unitroller entry point0xfD36E2c2a6789Db23113685031d7F16329158384
Diamond implementation0xA66B2b5D50ce68A125bBad6B2265b637868c6E66
ComptrollerLens0x989DaAa33b9557EacB2AF9885d7f3cd28eD52749
Admin0x939bD8d64c0A9583A7Dcea9933f7b21697ab6396

The live Diamond selector map contained five facets:

FacetAddress
MarketFacet0x935905A58E91a406eead60cd9AAbC7a64EDAe264
PolicyFacet0x8930B02c69EDd37464B50991680D306Bb9B8FDBD
RewardFacet0x9e0CCD70b5E0030472D5013bbBd37B6E868d416f
SetterFacet0xbc4885e5A27050E321d094503597aC6734AB1871
FlashLoanFacet0xAC54A4D148690b7FDA22B1D29c4439aCBF668fb2

The Diamond implementation and the PolicyFacet, RewardFacet, SetterFacet and FlashLoanFacet were installed by VIP-640; their matching stable repository release is venus-protocol v10.3.0, which uses ComptrollerV19Storage. VIP-672 replaced the MarketFacet, adding enterMarketForAccount(address,address), and the ComptrollerLens, which now computes liquidation seize amounts with a single division. The first stable release containing the new MarketFacet code is venus-protocol v10.4.0.

Use the Unitroller admin ABI for proxy administration and the ABI of the facet currently assigned to each application selector. DiamondConsolidated is a build-time ABI aggregate; it is not deployed and does not prove live selector availability.

The Diamond reference documents selector inspection and the current facet families. FacetBase supplies shared storage and checks to facets; it is not a separate call target.

Core Pools on other networks use a different Comptroller architecture. Start with the Core Pool architecture map before choosing an ABI.