Skip to content

Ethereum security initiativeDraft proposal. Not submitted.

Demo · real code, illustrated review

A four-layer review, walked through on Aave V4.

The commits and functions below are real, read from Aave V4's public repository. The review drawn over them is an illustration: no researcher was assigned and no finding was filed.

FIG 1Aave V4 between two reviewed commits, with the four review layers drawn over the codesrc/spoke/ · src/hub/

Real codeSolid lines. Read from github.com/aave/aave-v4 by a committed script.

6959e32v0.5.6Earlier reviewed version
cdacec5v0.5.11Final reviewed version

176 functions added or changed, 53 removed

348 functions at cdacec5, in 24 files

src/spoke/src/hub/
  • Added or changed since 6959e32
  • Unchanged, calls or is called by changed code (demo computation)
  • Unchanged
IllustrationDashed lines. Who would own what, if this code were reviewed through Proof of Audits.

T4Function348 functions, one owner each

T3Contract24 contracts, one owner each

T2ConnectionsSpoke, Hub and the calls between them

src/spoke/
src/hub/

T1SystemThe protocol as a whole

FIG 1 — One tick per function at cdacec5, grouped by file; a file's width is its function count. Solid marks are read from the repository; dashed boxes are the review an assignment would create.

Both listed in ChainSecurity's Aave V4 report, 23 March 2026, version table (opens in a new tab).

How the code facts were produced
Repository
https://github.com/aave/aave-v4
Command
node scripts/initiative/extract-aave-inventory.mjs
SHA-256 of the scanned files
5749c9052a92703d433b7657ff90845d5a9b20c230114452c21217e746747fbd
Scope
src/spoke/**/*.sol, src/hub/**/*.sol

Aave is named because its code is public and its auditors published the reviewed commits. Aave is not a partner and has not reviewed this demo.

Start at step 1

Step 1 of 5

First, the code is split into units a person can own.

A review starts by reading the source and grouping it. Each unit has a clear boundary, so one researcher owns it at each layer and nothing falls between two people.

Aave V4 Spoke and Hub cluster

LiveFile and function counts are real.

Unit A: Spoke

Unit A: Spoke
FileFunctionsLines
AaveOracle.sol755
Spoke.sol62736
SpokeConfigurator.sol25238
SpokeStorage.sol016
TokenizationSpoke.sol43343
TreasurySpoke.sol865
instances/SpokeInstance.sol117
instances/TokenizationSpokeInstance.sol115
instances/TreasurySpokeInstance.sol112
libraries/EIP712Hash.sol6106
libraries/KeyValueList.sol1152
libraries/LiquidationLogic.sol12673
libraries/PositionStatusMap.sol18183
libraries/ReserveFlagsMap.sol1054
libraries/SpokeUtils.sol222
libraries/UserPositionUtils.sol7112

Unit B: Hub

Unit B: Hub
FileFunctionsLines
AssetInterestRateStrategy.sol894
Hub.sol78718
HubConfigurator.sol24268
HubStorage.sol011
instances/HubInstance.sol112
libraries/AssetLogic.sol18188
libraries/Premium.sol112
libraries/SharesMath.sol447

24 contracts, 348 functions, 4,049 lines of code (counted without blanks and comments)

Counted by the script at commit cdacec5. Dependencies excluded.

IllustrationThis grouping is an example. A real review runs the clustering engine on the locked commit.

Step 2 of 5

Then each layer gets its own question.

IllustrationExample scope. No researcher was assigned.

Does this one function do what it claims, for every input?

Example unit
Spoke.withdraw(uint256,uint256,address) · external
What the owner would check
  • Inputs at their limits.
  • Rounding.
  • What happens when the function is called twice in one transaction.
Checked by
T3 owner

The same function can appear at several layers. Each layer asks a different question about it.

Step 3 of 5

A finding is checked by the layer above, and disputes go to T0.

  1. 01Filed by T4 owner
  2. 02Checked by T3 owner
  3. 03Disputed
  4. 04Decided by T0
  5. 05Locked in the record
IllustrationIllustration: this is not a real issue and is not tied to any Aave code.
Claim
A rounding step lets a user withdraw slightly more than they deposited.
Layer
T4
Checked by T3
Rejected: the rounding favours the protocol.
Appeal
The T4 owner shows a sequence of two calls where it does not.
T0 decision
Valid. Severity set by T0. Credited to the T4 owner.
Record
Locked. Payment follows this record.

The person who filed a finding never decides it. The locked record, not a chat thread, decides who is paid.

Step 4 of 5

When the code changes, only the change goes back through review.

ChainSecurity's version table lists an earlier reviewed commit, 6959e32 (v0.5.6), and the final one, cdacec5 (v0.5.11). Compare the two and you get the scope a follow-up would need.

105 added, 71 changed, 53 removed, plus 102 unchanged functions that call or are called by a changed one.

Changed or added since the earlier reviewed commit (176)

  • AaveOracle._getSourcePrice(uint256)Changed since review
  • AaveOracle.decimals()Changed since review
  • AaveOracle.setReserveSource(uint256,address)Changed since review
  • AaveOracle.setSpoke(address)Changed since review
  • AssetInterestRateStrategy.calculateInterestRate(uint256,uint256,uint256,uint256,uint256)Changed since review
  • AssetInterestRateStrategy.getBaseDrawnRate(uint256)Changed since review
  • AssetInterestRateStrategy.getMaxDrawnRate(uint256)Changed since review
  • AssetInterestRateStrategy.getRateGrowthAfterOptimal(uint256)Changed since review
  • AssetInterestRateStrategy.getRateGrowthBeforeOptimal(uint256)Changed since review
  • AssetInterestRateStrategy.setInterestRateData(uint256,bytes)Changed since review
  • AssetLogic.getDrawnRate(IHub.Asset,uint256,uint256)Changed since review
  • AssetLogic.updateDrawnRate(IHub.Asset,uint256)Changed since review
  • EIP712Hash.hash(ISpoke.PositionManagerUpdate)Changed since review
  • EIP712Hash.hash(ISpoke.SetUserPositionManagers)Changed since review
  • EIP712Hash.hash(ITokenizationSpoke.TokenizedDeposit)Changed since review
  • EIP712Hash.hash(ITokenizationSpoke.TokenizedMint)Changed since review
  • EIP712Hash.hash(ITokenizationSpoke.TokenizedRedeem)Changed since review
  • EIP712Hash.hash(ITokenizationSpoke.TokenizedWithdraw)Changed since review
  • Hub._addFeeReceiver(uint256,address)Changed since review
  • Hub._updateSpokeConfig(uint256,address,SpokeConfig)Changed since review
  • Hub._validateAdd(Asset,SpokeData,uint256)Changed since review
  • Hub._validateDraw(Asset,SpokeData,uint256,address)Changed since review
  • Hub._validateEliminateDeficit(SpokeData,uint256)Changed since review
  • Hub._validatePayFeeShares(SpokeData,uint256)Changed since review
  • Hub._validateRemove(SpokeData,uint256,address)Changed since review
  • Hub._validateReportDeficit(Asset,SpokeData,uint256,uint256)Changed since review
  • Hub._validateRestore(Asset,SpokeData,uint256,uint256)Changed since review
  • Hub._validateTransferShares(Asset,SpokeData,SpokeData,uint256)Changed since review
  • Hub.addAsset(address,uint8,address,address,bytes)Changed since review
  • Hub.eliminateDeficit(uint256,uint256,address)Changed since review
  • Hub.getAssetDrawnRate(uint256)Changed since review
  • Hub.getAssetId(address)Changed since review
  • Hub.getSpokeConfig(uint256,address)Changed since review
  • Hub.initialize(address)Changed since review
  • Hub.isUnderlyingListed(address)Changed since review
  • Hub.mintFeeShares(uint256)Changed since review
  • Hub.payFeeShares(uint256,uint256)Changed since review
  • Hub.reclaim(uint256,uint256)Changed since review
  • Hub.reportDeficit(uint256,uint256,PremiumDelta)Changed since review
  • Hub.transferShares(uint256,uint256,address)Changed since review
  • Hub.updateAssetConfig(uint256,AssetConfig,bytes)Changed since review
  • HubConfigurator.addAssetWithDecimals(address,address,uint8,address,uint256,address,bytes)Changed since review
  • HubConfigurator.haltAsset(address,uint256)Changed since review
  • HubConfigurator.haltSpoke(address,address)Changed since review
  • HubConfigurator.resetAssetCaps(address,uint256)Changed since review
  • HubConfigurator.resetSpokeCaps(address,address)Changed since review
  • HubConfigurator.updateSpokeAddCap(address,uint256,address,uint256)Changed since review
  • HubConfigurator.updateSpokeHalted(address,uint256,address,bool)Changed since review
  • HubInstance.initialize(address)Changed since review
  • KeyValueList.add(List,uint256,uint256,uint256)Changed since review
  • KeyValueList.get(List,uint256)Changed since review
  • KeyValueList.pack(uint256,uint256)Changed since review
  • KeyValueList.sortByKey(List)Changed since review
  • KeyValueList.uncheckedAt(List,uint256)Changed since review
  • KeyValueList.unpack(uint256)Changed since review
  • KeyValueList.unpackKey(uint256)Changed since review
  • KeyValueList.unpackValue(uint256)Changed since review
  • LiquidationLogic._calculateCollateralToLiquidate(CalculateCollateralToLiquidateParams)Changed since review
  • LiquidationLogic._calculateDebtToLiquidate(CalculateDebtToLiquidateParams)Changed since review
  • LiquidationLogic._calculateDebtToTargetHealthFactor(CalculateDebtToTargetHealthFactorParams)Changed since review
  • LiquidationLogic._calculateLiquidationAmounts(CalculateLiquidationAmountsParams)Changed since review
  • LiquidationLogic._evaluateDeficit(bool,bool,uint256,uint256)Changed since review
  • LiquidationLogic._executeLiquidation(ISpoke.UserPosition,ISpoke.UserPosition,ISpoke.UserPosition,ISpoke.PositionStatus,ExecuteLiquidationParams)Changed since review
  • LiquidationLogic._liquidateCollateral(ISpoke.UserPosition,ISpoke.UserPosition,LiquidateCollateralParams)Changed since review
  • LiquidationLogic._liquidateDebt(ISpoke.UserPosition,ISpoke.PositionStatus,LiquidateDebtParams)Changed since review
  • LiquidationLogic._validateLiquidationCall(ValidateLiquidationCallParams)Changed since review
  • LiquidationLogic.liquidateUser(mapping(uint256,mapping(address,mapping(address,mapping(uint256,LiquidateUserParams)Changed since review
  • LiquidationLogic.notifyReportDeficit(mapping(uint256,mapping(address,mapping(address,uint256,address)Changed since review
  • PositionStatusMap.borrowCount(ISpoke.PositionStatus,uint256)Changed since review
  • ReserveFlagsMap.create(bool,bool,bool,bool)Changed since review
  • SharesMath.toAssetsDown(uint256,uint256,uint256)Changed since review
  • SharesMath.toAssetsUp(uint256,uint256,uint256)Changed since review
  • SharesMath.toSharesDown(uint256,uint256,uint256)Changed since review
  • SharesMath.toSharesUp(uint256,uint256,uint256)Changed since review
  • Spoke._isAssetIdListed(address,uint256,uint256)Changed since review
  • Spoke._notifyRiskPremiumUpdate(address,uint256)Changed since review
  • Spoke._processUserAccountData(address,bool)Changed since review
  • Spoke._setUserPositionManager(address,address,bool)Changed since review
  • Spoke._validateSetUsingAsCollateral(PositionStatus,ReserveFlags,bool)Changed since review
  • Spoke._validateUpdateDynamicReserveConfig(DynamicReserveConfig,DynamicReserveConfig)Changed since review
  • Spoke.addDynamicReserveConfig(uint256,DynamicReserveConfig)Changed since review
  • Spoke.addReserve(address,uint256,address,ReserveConfig,DynamicReserveConfig)Changed since review
  • Spoke.borrow(uint256,uint256,address)Changed since review
  • Spoke.getDynamicReserveConfig(uint256,uint32)Changed since review
  • Spoke.getLiquidationBonus(uint256,address,uint256)Changed since review
  • Spoke.getReserve(uint256)Changed since review
  • Spoke.getReserveConfig(uint256)Changed since review
  • Spoke.getReserveDebt(uint256)Changed since review
  • Spoke.getReserveId(address,uint256)Changed since review
  • Spoke.getReserveSuppliedAssets(uint256)Changed since review
  • Spoke.getReserveSuppliedShares(uint256)Changed since review
  • Spoke.getReserveTotalDebt(uint256)Changed since review
  • Spoke.getUserDebt(uint256,address)Changed since review
  • Spoke.getUserPosition(uint256,address)Changed since review
  • Spoke.getUserPremiumDebtRay(uint256,address)Changed since review
  • Spoke.getUserReserveStatus(uint256,address)Changed since review
  • Spoke.getUserSuppliedAssets(uint256,address)Changed since review
  • Spoke.getUserSuppliedShares(uint256,address)Changed since review
  • Spoke.getUserTotalDebt(uint256,address)Changed since review
  • Spoke.liquidationCall(uint256,uint256,address,uint256,bool)Changed since review
  • Spoke.repay(uint256,uint256,address)Changed since review
  • Spoke.setUserPositionManagersWithSig(SetUserPositionManagers,bytes)Changed since review
  • Spoke.setUsingAsCollateral(uint256,bool,address)Changed since review
  • Spoke.supply(uint256,uint256,address)Changed since review
  • Spoke.updateDynamicReserveConfig(uint256,uint32,DynamicReserveConfig)Changed since review
  • Spoke.updateReserveConfig(uint256,ReserveConfig)Changed since review
  • Spoke.withdraw(uint256,uint256,address)Changed since review
  • SpokeConfigurator.addReserve(address,address,uint256,address,ISpoke.ReserveConfig,ISpoke.DynamicReserveConfig)Changed since review
  • SpokeConfigurator.freezeReserve(address,uint256)Changed since review
  • SpokeConfigurator.pauseReserve(address,uint256)Changed since review
  • SpokeConfigurator.updateCollateralFactor(address,uint256,uint32,uint16)Changed since review
  • SpokeConfigurator.updateDynamicReserveConfig(address,uint256,uint32,ISpoke.DynamicReserveConfig)Changed since review
  • SpokeConfigurator.updateLiquidationFee(address,uint256,uint32,uint256)Changed since review
  • SpokeConfigurator.updateMaxLiquidationBonus(address,uint256,uint32,uint256)Changed since review
  • SpokeInstance.initialize(address)Changed since review
  • SpokeUtils.get(mapping(uint256,uint256)Changed since review
  • SpokeUtils.toValue(uint256,uint256,uint256)Changed since review
  • TokenizationSpoke.DOMAIN_SEPARATOR()Changed since review
  • TokenizationSpoke.__TokenizationSpoke_init(string,string)Changed since review
  • TokenizationSpoke._afterDeposit(uint256,uint256)Changed since review
  • TokenizationSpoke._beforeWithdraw(uint256,uint256)Changed since review
  • TokenizationSpoke._deposit(address,address,uint256,uint256)Changed since review
  • TokenizationSpoke._domainNameAndVersion()Changed since review
  • TokenizationSpoke._executeDeposit(address,address,uint256)Changed since review
  • TokenizationSpoke._executeMint(address,address,uint256)Changed since review
  • TokenizationSpoke._executeRedeem(address,address,address,uint256)Changed since review
  • TokenizationSpoke._executeWithdraw(address,address,address,uint256)Changed since review
  • TokenizationSpoke._maxRemovableAssets()Changed since review
  • TokenizationSpoke._pullAndDepositAssets(address,uint256)Changed since review
  • TokenizationSpoke._removeAndPushAssets(address,uint256)Changed since review
  • TokenizationSpoke._withdraw(address,address,address,uint256,uint256)Changed since review
  • TokenizationSpoke.asset()Changed since review
  • TokenizationSpoke.assetId()Changed since review
  • TokenizationSpoke.convertToAssets(uint256)Changed since review
  • TokenizationSpoke.convertToShares(uint256)Changed since review
  • TokenizationSpoke.decimals()Changed since review
  • TokenizationSpoke.deposit(uint256,address)Changed since review
  • TokenizationSpoke.depositWithPermit(uint256,address,uint256,uint8,bytes32,bytes32)Changed since review
  • TokenizationSpoke.depositWithSig(TokenizedDeposit,bytes)Changed since review
  • TokenizationSpoke.hub()Changed since review
  • TokenizationSpoke.initialize(string,string)Changed since review
  • TokenizationSpoke.maxDeposit(address)Changed since review
  • TokenizationSpoke.maxMint(address)Changed since review
  • TokenizationSpoke.maxRedeem(address)Changed since review
  • TokenizationSpoke.maxWithdraw(address)Changed since review
  • TokenizationSpoke.mint(uint256,address)Changed since review
  • TokenizationSpoke.mintWithSig(TokenizedMint,bytes)Changed since review
  • TokenizationSpoke.nonces(address)Changed since review
  • TokenizationSpoke.permit(address,address,uint256,uint256,uint8,bytes32,bytes32)Changed since review
  • TokenizationSpoke.previewDeposit(uint256)Changed since review
  • TokenizationSpoke.previewMint(uint256)Changed since review
  • TokenizationSpoke.previewRedeem(uint256)Changed since review
  • TokenizationSpoke.previewWithdraw(uint256)Changed since review
  • TokenizationSpoke.redeem(uint256,address,address)Changed since review
  • TokenizationSpoke.redeemWithSig(TokenizedRedeem,bytes)Changed since review
  • TokenizationSpoke.renounceAllowance(address)Changed since review
  • TokenizationSpoke.totalAssets()Changed since review
  • TokenizationSpoke.usePermitNonce()Changed since review
  • TokenizationSpoke.withdraw(uint256,address,address)Changed since review
  • TokenizationSpoke.withdrawWithSig(TokenizedWithdraw,bytes)Changed since review
  • TokenizationSpokeInstance.initialize(string,string)Changed since review
  • TreasurySpoke._supply(address,address,uint256,bool)Changed since review
  • TreasurySpoke.getSuppliedAssets(address,address)Changed since review
  • TreasurySpoke.getSuppliedShares(address,address)Changed since review
  • TreasurySpoke.initialize(address)Changed since review
  • TreasurySpoke.supply(address,address,uint256)Changed since review
  • TreasurySpoke.supplySkimmed(address,address,uint256)Changed since review
  • TreasurySpoke.withdraw(address,address,uint256)Changed since review
  • TreasurySpokeInstance.initialize(address)Changed since review
  • UserPositionUtils._calculatePremiumRay(ISpoke.UserPosition,uint256)Changed since review
  • UserPositionUtils.applyPremiumDelta(ISpoke.UserPosition,IHubBase.PremiumDelta)Changed since review
  • UserPositionUtils.calculatePremiumDelta(ISpoke.UserPosition,uint256,uint256,uint256,uint256)Changed since review
  • UserPositionUtils.calculateRestoreAmount(ISpoke.UserPosition,uint256,uint256)Changed since review
  • UserPositionUtils.getDebt(ISpoke.UserPosition,IHubBase,uint256)Changed since review
  • UserPositionUtils.getDebt(ISpoke.UserPosition,uint256)Changed since review
  • UserPositionUtils.getDebtComponents(ISpoke.UserPosition,IHubBase,uint256)Changed since review

Unchanged, but calls or is called by changed code (102)

  • AaveOracle.getReservePrice(uint256)
  • AaveOracle.getReservesPrices(uint256[])
  • AssetLogic.accrue(IHub.Asset)
  • AssetLogic.drawn(IHub.Asset,uint256)
  • AssetLogic.getDrawnIndex(IHub.Asset)
  • AssetLogic.toAddedAssetsDown(IHub.Asset,uint256)
  • AssetLogic.toAddedAssetsUp(IHub.Asset,uint256)
  • AssetLogic.toAddedSharesDown(IHub.Asset,uint256)
  • AssetLogic.toAddedSharesUp(IHub.Asset,uint256)
  • AssetLogic.toDrawnSharesDown(IHub.Asset,uint256)
  • Hub._addSpoke(uint256,address)
  • Hub._applyPremiumDelta(Asset,SpokeData,PremiumDelta)
  • Hub._getSpokeDrawn(Asset,SpokeData)
  • Hub._getSpokePremium(Asset,SpokeData)
  • Hub._getSpokePremiumRay(Asset,SpokeData)
  • Hub._mintFeeShares(Asset,uint256)
  • Hub._transferShares(SpokeData,SpokeData,uint256)
  • Hub._validateApplyPremiumDelta(uint256,uint256,int256,PremiumDelta)
  • Hub._validateReclaim(Asset,address,uint256)
  • Hub.add(uint256,uint256)
  • Hub.addSpoke(uint256,address,SpokeConfig)
  • Hub.draw(uint256,uint256,address)
  • Hub.getAssetCount()
  • Hub.getAssetDrawnIndex(uint256)
  • Hub.getAssetLiquidity(uint256)
  • Hub.getAssetUnderlyingAndDecimals(uint256)
  • Hub.getSpokeAddedAssets(uint256,address)
  • Hub.getSpokeAddedShares(uint256,address)
  • Hub.getSpokeAddress(uint256,uint256)
  • Hub.getSpokeCount(uint256)
  • Hub.getSpokeOwed(uint256,address)
  • Hub.getSpokeTotalOwed(uint256,address)
  • Hub.isSpokeListed(uint256,address)
  • Hub.previewAddByAssets(uint256,uint256)
  • Hub.previewAddByShares(uint256,uint256)
  • Hub.previewRemoveByAssets(uint256,uint256)
  • Hub.previewRemoveByShares(uint256,uint256)
  • Hub.refreshPremium(uint256,PremiumDelta)
  • Hub.remove(uint256,uint256,address)
  • Hub.restore(uint256,uint256,PremiumDelta)
  • Hub.setInterestRateData(uint256,bytes)
  • Hub.sweep(uint256,uint256)
  • Hub.updateSpokeConfig(uint256,address,SpokeConfig)
  • HubConfigurator._updateLiquidityFee(IHub,uint256,uint256)
  • HubConfigurator._updateSpokeCaps(IHub,uint256,address,uint256,uint256)
  • HubConfigurator.addAsset(address,address,address,uint256,address,bytes)
  • HubConfigurator.deactivateAsset(address,uint256)
  • HubConfigurator.deactivateSpoke(address,address)
  • HubConfigurator.updateFeeConfig(address,uint256,uint256,address)
  • HubConfigurator.updateFeeReceiver(address,uint256,address)
  • HubConfigurator.updateInterestRateData(address,uint256,bytes)
  • HubConfigurator.updateInterestRateStrategy(address,uint256,address,bytes)
  • HubConfigurator.updateReinvestmentController(address,uint256,address)
  • HubConfigurator.updateSpokeActive(address,uint256,address,bool)
  • HubConfigurator.updateSpokeDrawCap(address,uint256,address,uint256)
  • HubConfigurator.updateSpokeRiskPremiumThreshold(address,uint256,address,uint256)
  • KeyValueList.init(uint256)
  • KeyValueList.length(List)
  • LiquidationLogic.calculateLiquidationBonus(uint256,uint256,uint256,uint256)
  • PositionStatusMap.bucketId(uint256)
  • PositionStatusMap.collateralCount(ISpoke.PositionStatus,uint256)
  • PositionStatusMap.fromBitId(uint256,uint256)
  • PositionStatusMap.isBorrowing(ISpoke.PositionStatus,uint256)
  • PositionStatusMap.isUsingAsCollateral(ISpoke.PositionStatus,uint256)
  • PositionStatusMap.isolateBorrowing(uint256)
  • PositionStatusMap.isolateBorrowingUntil(uint256,uint256)
  • PositionStatusMap.next(ISpoke.PositionStatus,uint256)
  • PositionStatusMap.nextBorrowing(ISpoke.PositionStatus,uint256)
  • PositionStatusMap.setBorrowing(ISpoke.PositionStatus,uint256,bool)
  • PositionStatusMap.setUsingAsCollateral(ISpoke.PositionStatus,uint256,bool)
  • Premium.calculatePremiumRay(uint256,int256,uint256)
  • ReserveFlagsMap._setStatus(uint8,uint8,bool)
  • ReserveFlagsMap.borrowable(ReserveFlags)
  • ReserveFlagsMap.frozen(ReserveFlags)
  • ReserveFlagsMap.paused(ReserveFlags)
  • ReserveFlagsMap.receiveSharesEnabled(ReserveFlags)
  • Spoke._calculateUserAccountData(address)
  • Spoke._refreshAndValidateUserAccountData(address)
  • Spoke._refreshDynamicConfig(address,uint256)
  • Spoke._updateReservePriceSource(uint256,address)
  • Spoke._validateBorrow(ReserveFlags)
  • Spoke._validateDynamicReserveConfig(DynamicReserveConfig)
  • Spoke._validateRepay(ReserveFlags)
  • Spoke._validateReserveConfig(ReserveConfig)
  • Spoke._validateSupply(ReserveFlags)
  • Spoke._validateWithdraw(ReserveFlags)
  • Spoke.permitReserve(uint256,address,uint256,uint256,uint8,bytes32,bytes32)
  • Spoke.setUserPositionManager(address,bool)
  • Spoke.updateUserDynamicConfig(address)
  • Spoke.updateUserRiskPremium(address)
  • SpokeConfigurator._getReserveLastDynamicConfigKey(address,uint256)
  • SpokeConfigurator.addCollateralFactor(address,uint256,uint16)
  • SpokeConfigurator.addDynamicReserveConfig(address,uint256,ISpoke.DynamicReserveConfig)
  • SpokeConfigurator.addLiquidationFee(address,uint256,uint256)
  • SpokeConfigurator.addMaxLiquidationBonus(address,uint256,uint256)
  • SpokeConfigurator.freezeAllReserves(address)
  • SpokeConfigurator.pauseAllReserves(address)
  • SpokeConfigurator.updateBorrowable(address,uint256,bool)
  • SpokeConfigurator.updateCollateralRisk(address,uint256,uint256)
  • SpokeConfigurator.updateFrozen(address,uint256,bool)
  • SpokeConfigurator.updatePaused(address,uint256,bool)
  • SpokeConfigurator.updateReceiveSharesEnabled(address,uint256,bool)

Unchanged since the earlier reviewed commit: 70 functions not in scope

IllustrationFile and function changes are computed from the public repository at both commits. Which functions count as touched is a demo computation, not Proof of Audits' production coverage rules.

A follow-up reviews this change set through the same four layers. The earlier review stays on record for the code that did not change.

Step 5 of 5

A published record is what a wallet can check.

Once a review is released and the deployed code matches the reviewed commit, the Proof of Audits Snap can show it in the MetaMask confirmation for the exact function being called. Today, the public explorer has no released audits, so Aave V4 reads Not verified.

Aave V4 on the public explorer

Not verifiedNo released evidence yet

Source: public explorer, read now.

MetaMask install

Checking install status
See install options
IllustrationExample data. Not a real transaction or audit.

All ten protocols

Try it on ten deployed protocols

The function explorer lists every callable function of ten Ethereum mainnet protocols at one pinned block, with the proxy route, the source it can reach and the audit reports that name its files.

What this demo does not show

  • A real assignment. No researcher was paid or assigned for this page.
  • A real finding. The finding in Step 3 is invented and has no link to Aave's code.
  • A security opinion about Aave V4.
  • Production coverage rules. The gap-only scope here is computed by the demo.