VTokenInterfaces
This page follows VTokenInterfaces.sol in v4.4.0. The public fields and selectors are useful for integrations, but they are not a complete storage layout. For upgrades, resolve the live VToken beacon implementation and inspect the compiler layout for that exact build.
Deployment-version boundary
The v4.4.0 internalCash implementation was installed on the seven non-BNB mainnets by VIP-600. The BNB Chain VToken beacon still points to the VIP-524 implementation and therefore must not be assumed to have the v4.4.0 cash-tracking ABI. See the live beacon map.
Public state
underlying()
underlying ERC-20 address
name(), symbol(), decimals()
VToken ERC-20 metadata
comptroller()
this market's Comptroller proxy
interestRateModel()
current rate-model address
protocolShareReserve() / shortfall()
reserve destination and bad-debt recovery contract
reserveFactorMantissa()
share of borrower interest allocated to reserves
accrualBlockNumber()
last accrual slot; a block or timestamp despite the legacy name
borrowIndex()
global accumulated borrow index
totalBorrows(), totalReserves(), totalSupply(), badDebt()
market accounting totals
protocolSeizeShareMantissa()
share of seized collateral allocated to protocol reserves
reduceReservesBlockDelta() / reduceReservesBlockNumber()
reserve-transfer interval and last transfer slot, block or timestamp
internalCash()
v4.4.0 tracked cash; not part of the current BNB implementation
The current storage also includes _notEntered, initialExchangeRateMantissa, account token balances, transfer allowances, per-account borrow snapshots, inherited upgradeable state, and a uint256[47] gap. Do not derive slots from the order of the public-getter table.
Clock API
Legacy selectors such as borrowRatePerBlock, supplyRatePerBlock, and accrualBlockNumber retain their names on time-based deployments but return or store per-second/timestamp values.
User interface
Delegated redeem and borrow permissions come from Comptroller.updateDelegate, not from the VToken's ERC-20 allowance.
Accruing and stored reads
balanceOfUnderlying, borrowBalanceCurrent, totalBorrowsCurrent, exchangeRateCurrent, and accrueInterest can update state. Their stored counterparts (balanceOf, borrowBalanceStored, exchangeRateStored, and the total getters) do not accrue to the current slot.
The interface also exposes getAccountSnapshot, getCash, allowance, borrowRatePerBlock, supplyRatePerBlock, and isVToken.
Operational interface
Caller restrictions differ across these functions; use the VToken API page rather than treating this selector list as an authorization guide.
The implementation also exposes owner, pendingOwner, transferOwnership, acceptOwnership, renounceOwnership, accessControlManager, owner-only setAccessControlManager, and the NO_ERROR compatibility getter.
Last updated

