Skip to content

RiskFundV2 storage (compatibility)

This page records the linearized storage layout compiled for the BNB Chain mainnet RiskFundV2 implementation 0x01BE9c56A0844040b2c1a684B1a72cE88489486a. It includes inherited OpenZeppelin and AccessControlled storage, active RiskFundV2 fields, deprecated legacy positions, and reserved gaps.

Source and compiler artifact: protocol-reserve@eaed4e3.

Slot or rangeFieldStatus and origin
0_initialized, _initializingOpenZeppelin Initializable; packed in one slot.
1–50__gap[50]ContextUpgradeable compatibility gap.
51_ownerActive OwnableUpgradeable owner.
52–100__gap[49]Ownable compatibility gap.
101_pendingOwnerActive Ownable2StepUpgradeable pending owner.
102–150__gap[49]Ownable2Step compatibility gap.
151_accessControlManagerActive AccessControlledV8 ACM address.
152–200__gap[49]AccessControlled compatibility gap.
201__deprecatedSlot1Former asset-reserve accounting slot; deprecated.
202__deprecatedSlotPoolAssetsFundsFormer per-pool fund ledger; deprecated in the VIP-620/VIP-621 migration.
203__deprecatedSlot2Former PoolRegistry slot; deprecated.
204__deprecatedSlot3Former status slot; deprecated.
205–250ReserveHelpersStorage.__gap[46]Reserved compatibility gap.
251maxLoopsLimitDeprecated value retained for storage compatibility.
252–300MaxLoopsLimitHelpersStorage.__gap[49]Reserved compatibility gap.
301convertibleBaseAssetActive base-asset address.
302shortfallActive configured Shortfall caller.
303pancakeSwapRouterFormer in-contract conversion setting; deprecated/private.
304minAmountToConvertFormer conversion threshold; deprecated/private.
305_statusActive ReentrancyGuardUpgradeable state.
306–354ReentrancyGuardUpgradeable.__gap[49]Reserved compatibility gap.
355__deprecatedSlotRiskFundConverterFormer converter callback address; deprecated after the callback path was removed.

Excluding the OpenZeppelin base contracts shown separately in the slot table, the RiskFund-specific storage inheritance is:

ReserveHelpersStorage ─────────┐
├─ RiskFundV1Storage ─ RiskFundV2Storage
MaxLoopsLimitHelpersStorage ───┘

Only convertibleBaseAsset and shortfall are active RiskFund-specific configuration fields in the current logic. maxLoopsLimit remains publicly readable but is no longer consumed by current RiskFundV2 functions. The old asset-reserve, per-pool, PoolRegistry, status, router, minimum-conversion, and converter-callback positions are deliberately retained as deprecated storage.

For callable behavior, see RiskFundV2. Do not use this page as a substitute for comparing storage layouts before a future proxy upgrade.