[ARFC] Dynamic Caps Oracle: Rate Limiter

Summary

LlamaRisk is building Aave’s Risk Layer: automated risk solutions that make expert risk judgment verifiable, with every parameter, bound and action checkable onchain. The Aave Risk Framework set this direction in June by making continuous risk oracles part of the protocol’s standing infrastructure. Governance and manual review can trail a fast-moving event by hours, and the evolution of AI capabilities keeps shortening the time between finding a weakness and exploiting it, so protection has to run continuously and at machine speed. LlamaGuard PT went live in September as the first of these solutions. We continue the rollout with LlamaGuard Caps as the next addition.

Aave’s greatest strength is its liquidity, deep enough to move capital instantly and at scale. Defending access to that liquidity programmatically protects Aave’s users, even when a failure elsewhere in DeFi puts compromised collateral or stolen assets in play. LlamaGuard Caps hardens Aave’s perimeter. Its first stage, a borrow rate limiter for Aave V3, gives each reserve a margin of borrowing room above its debt, sized to the reserve. That room refills automatically as organic demand uses it and is cut back when large repayments open up more than the reserve needs. Everyday borrowing keeps instant access to liquidity. A large draw, though, has to wait for each refill, giving the Protocol Guardian reasonable time to respond to illegitimate activity. Integrated institutional clients and other approved large borrowers will have a dedicated pathway that meets their capital demand quickly.

LlamaGuard Caps will run on the Risk Agents stack that Aave Governance already owns. Raises are computed on Chainlink CRE, on the same oracle network that delivers the price feeds Aave relies on, and every bound is enforced onchain. Aave’s core contracts and existing agents stay unchanged, and the new smart contract surface is small. Every lever stays with Aave governance: Risk Stewards and governance continue to set each cap’s maximum, and automation controls only how fast room opens beneath it. This proposal is the first stage of a gradual rollout. Later stages will set the ceiling itself from live liquidity conditions and extend dynamic protection to supply caps, Aave V4 and cross-market modules, each calibrated on live data from the stage before.

Threat model

Two external threats have proved the most consequential for Aave.

  1. An attacker deposits maliciously obtained collateral that is worth less than the oracle reports, and borrows against it.
  2. An attacker gains control of many different assets, deposits them as collateral and borrows assets that can’t be frozen, as fast as possible.

In both cases the damage starts outside Aave, with a compromised asset or a compromised holder. Aave is affected because its deep, instant liquidity is what the attacker needs to turn that position into assets that can leave. Aave can’t prevent these events. It can control how quickly its liquidity is drawn once one is under way, and so how much time the Protocol Guardian has to investigate and respond.

Exposure under static caps

Borrow caps on Aave are set by the Risk Stewards or through governance AIPs. Each change is generated programmatically but still needs human approval, through the Risk Steward multisig or a governance vote, and must wait out a minimum delay before the next one. A cap therefore has to hold enough room for the growth expected before its next revision. That headroom is open by design. Over the year from October 2025 to October 2026, standing borrow headroom averaged 41.1% of debt on Core WETH, 75.3% on Core USDT and 76.7% on Core USDC, and exceeded 100% on Plasma USDT0 and Arbitrum WETH. This headroom is available to any borrower at any time, including one holding stolen or unbacked collateral, so a static cap limits the total that can be borrowed but places no limit on the pace at which it is borrowed.

In the largest malicious draws of the period, tens of millions of dollars of WETH were borrowed on Ethereum Core within minutes, alongside a parallel draw on Arbitrum, and each draw completed at full size before an emergency response took effect.

Characteristics of organic demand

A rate limit is only viable if it accommodates legitimate demand, which on Aave varies widely in both size and timing.

Reserve sizes span three orders of magnitude, from about $2M of debt on Mantle USDT0 early in the year to several billion on the Core stablecoins. A buffer that leaves comfortable room on a $10M reserve would be negligible on a $3B one, while a buffer sized for Core would leave a small reserve effectively unconstrained, so the buffer has to scale with the reserve.

Organic demand also arrives in bursts. Measured as the largest amount borrowed within any 60-minute window of each day, Core USDT exceeded $25M on 84 days of the year and $50M on 32, Core USDC on 67 and 28 days, and Core WETH on 69 and 24, so refills on the largest reserves have to keep pace with bursts of this size.

Individual borrows can be very large as well. Over the year, Core USDT recorded 78 transactions borrowing $25M or more, Core WETH 68 and Core USDC 49, with the largest at $190M. A significant share of these comes from integrated institutional clients and large loopers, whose flows resemble an attack in size (not in intent) and who typically want to enter the market and position themselves without delay. Continuing to serve these users with minimal friction remains a priority, which requires a pathway that accommodates them without reopening the room that the rate limit closes for everyone else.

Goals

The first stage of LlamaGuard Caps is designed to bound how quickly debt on any reserve can grow, so that a toxic flow is limited both in size and in speed, while leaving normal borrowing and the growth of the protocol largely unaffected. Borrowing room is refilled automatically as organic demand uses it, and integrated institutional clients and other known large borrowers retain a safe and predictable pathway to borrow at the size they need.

The same rule is meant to serve every Aave V3 instance, from reserves with a few million dollars of debt to Core reserves with several billion, and to operate on every reserve at all times, so that protection does not depend on recognising an attack while it is under way. These properties are delivered on the Risk Agents stack that Aave Governance already owns, with computation on Chainlink CRE and every bound enforced onchain. This also means that the functionality of the system can be extended flexibly, adding additional safeguards and modules on top of the initial implementation.

Design

LlamaGuard Caps relies on two agents that act on the same borrow cap. The Raise agent adds borrowing room as organic demand uses it, and the Cut agent removes room that repayments and liquidations reopen beyond what the reserve needs. Each agent can move the cap in one direction only as enforced onchain, and both work toward the same target, a cap that sits one buffer above the current debt of the reserve.

Rules

The buffer L is a share \alpha of the reserve’s debt D, bounded by a floor L_{\min} and a ceiling L_{\max}, so that it grows with the reserve while the amount that can be drawn in a single step remains limited on the largest markets. Both agents target the same cap,

C = D + L, \qquad L(D) = \max\big(L_{\min},\ \min(L_{\max},\ \alpha D)\big),

and the cap written onchain never exceeds the hard maximum \bar C (set by the Risk Stewards or governance as enforced by existing risk methodologies), nor the current supply cap S,

C^{\text{eff}} = \min\big(C,\ \bar C,\ S\big).

A borrow of x succeeds if D + x \le C^{\text{eff}}. Otherwise, the borrower waits for the next top-up, splits the borrow or uses one of the pathways described below.

The Raise agent tops up the cap once borrowing has used most of the buffer. If the free headroom B = C - D was at or below a trigger share \theta of the buffer one delay \tau earlier, the cap is reset to D + L, and no two top-ups on a reserve are closer than \tau. The delay converts the cap from a limit on size into a limit on pace, since a borrower who exhausts the buffer must wait before further room opens. The Cut agent acts in the opposite case. When a repayment or liquidation leaves headroom more than a band \delta above the buffer, it returns the cap to D + L within one or two blocks, so that repaid room does not accumulate as open capacity, while smaller repayments leave the cap unchanged and the repaid amount available to borrow again.

Agent Condition Action Timing
Raise agent headroom one delay earlier was B \le \theta L C \leftarrow D + L(D) at least \tau after the previous top-up
Cut agent B > (1+\delta)L after a repayment or liquidation C \leftarrow D + L(D) within one or two blocks

Starting from a full buffer, the debt of one reserve can therefore rise by L at once and by one further L per top-up. Within T of the first borrow, after a period in which headroom stayed above \theta L, the most one reserve can grow is

(1+\delta)L + L\lfloor T/\tau \rfloor

If headroom was already at or below \theta L one delay before a draw, a top-up is due as the draw starts and the reserve can receive two buffers in quick succession. The bound then becomes (2+\delta)L + L\lfloor T/\tau \rfloor, which is also the worst case the on-chain checks allow should the raise workflow misbehave.

Pathways for large borrowers and institutional clients

The main trade-off of a rate limit falls on large and persistent borrowers who want to enter the market and position themselves immediately, with sizes well above the buffer that suits the median user. Sizing the buffer to their needs would leave the same room open to an attacker, so the buffer stays at the scale of typical demand, and known large borrowers, including integrated institutional clients, still keep dedicated pathways through which the Risk Stewards can open exactly the room a borrow needs in the transaction that uses it, without defeating the purpose of a rate limit.

  1. Split across top-ups. By default, a borrow larger than the buffer is split across top-ups with no action required from governance, so a borrow of three buffers is admitted as one buffer immediately and the remainder over the next two top-ups.
  2. Atomic batch. Known large borrowers that cannot wait, including integrated institutional clients, can be served through a batch executed by the Risk Stewards, in which the cap is raised by the exact amount of the borrow and the new room is consumed in the same transaction.
  3. Hold. For new onboardings and periods of genuine sustained demand, in which the cap itself would otherwise bind, the Risk Stewards can raise the cap together with a hold of limited duration, during which the Cut agent leaves the raised cap in place. Holds are scheduled only in these cases, since a hold leaves the raised room open to any user for its duration.

Flash loans repaid within the same transaction do not count against the borrow cap, so refinancing and collateral swaps that close within one transaction are unaffected. Atomic leverage loops continue to work as long as the debt opened in one transaction fits under the headroom, and known large loopers can use the atomic batch.

Large suppliers remain unaffected at this stage. Supply caps keep their current configuration and deposits of any size continue to enter as they do today, limited by the general risk exposure caps where applicable.

Architecture & roles

Both agents reuse the AaveBorrowCapAgent code on the Risk Agents stack that Aave Governance already owns, and Aave’s core contracts, AgentHub, the RiskOracle and the Router remain unchanged. The system adds four contracts, a Chainlink CRE workflow and a keeper. The audit will cover the four new contracts and the raise workflow. Each raise is delivered as a signed report through Chainlink’s forwarder and the Router to the RiskOracle, and AgentHub executes it through the Raise agent. A cut is computed onchain from live Aave state.

Component Status Role Bounded by
Raise workflow new CRE workflow computes and signs raises module rule, AgentHub \tau
Keeper planned offchain service triggers due cuts module rule; the only caller the Cut agent accepts
CapsRangeValidationModuleV3 new contract checks every agent raise and cut Executor-set limits
CapsReducerOracle new contract adminless view returning the cut the module accepts module re-check at execution
CapsParameterRegistry new contract trigger, margin (a deduction from D + L or S that absorbs small repayments), asset lists and switches read offchain only; module rule
CapsBorrowForwarder new contract atomic cap raise and borrow for the Risk Council Safe Risk Steward limits, \bar C
Raise agent, Cut agent existing AaveBorrowCapAgent code, one deployment per Pool, the only new holder of the Pool’s RISK_ADMIN role write caps through AgentHub; one registration raises, the other cuts module rule, AgentHub \tau
Aave core, AgentHub, RiskOracle, Router existing, no code change one raise route for this workflow, with Router step and delay limits disabled as the module bounds each raise, and two registrations unchanged

A raise from the Raise agent requires at least \tau since that agent’s previous raise on the reserve, a reserve neither frozen nor paused, and a new cap above the current one and at most \min(D + L,\ \bar C,\ S) in the executing block. The module does not check the trigger. Whatever the workflow signs, each raise stays within one buffer above live debt, at most once per \tau. AgentHub enforces \tau, and the AIP registers one Raise and one Cut agent per Pool with the Protocol Guardian as agent admin. Cuts are executed by the keeper, and the agent admin can add other callers later. The module computes each cut onchain from live Aave state and accepts it only within the band. A cut can only lower a cap, and low caps block only new borrows.

Both checks run in CapsRangeValidationModuleV3, which plugs into the unchanged agent and applies one rule to raises and cuts, evaluated against live Aave state in the executing block. With the standard module, which checks only step size, the offchain workflow would be trusted for the size of every raise. Here the workflow proposes a value and the module decides whether it may be written. A rejected update is skipped without reverting, so it cannot block other markets. Cuts continue during a freeze or pause.

Role Holder Can do
Owner Aave Executor lists assets, sets Risk Council limits
Risk Council Risk Council Safe (Aave Labs and LlamaRisk) tunes parameters within limits, holds off cuts, runs large-borrower batches
Agent admin Protocol Guardian disables agents, sets \tau, sets which callers can trigger cuts
Operator LlamaRisk Safe runs the workflow and Router, sets trigger and margin
Cut trigger Keeper, set by the agent admin executes due cuts

Manual cap changes by the Risk Stewards and governance still apply. A raise can undo a manual decrease unless \bar C falls with it, and a cut can undo a manual increase unless a hold is active.

Each part of the system can be switched off on its own. Disabling the Router route stops raise reports, the registry switch stops the workflow for a single asset, and the Protocol Guardian can disable either agent. Governance or the Risk Council Safe can retire an asset, which stops both agents and returns its cap entirely to the Risk Stewards and governance. A freeze or pause always takes precedence over raises. Switching off leaves each cap where it is, and if only one agent is disabled, the other keeps moving the cap in its own direction.

Parameters

The behaviour of both agents is governed by a small set of parameters, set per market and reserve, except \tau, which AgentHub enforces per Pool.

Symbol Meaning Enforced by
\alpha buffer as a share of debt module, onchain
L_{\min}, L_{\max} floor and ceiling on the buffer, in tokens module, onchain
\theta trigger, the share of the buffer still free below which a top-up becomes due raise workflow
\tau delay before a top-up, and minimum time between two top-ups on a reserve AgentHub onchain per Pool; the workflow can set a longer delay per reserve
\delta band above the buffer beyond which a repayment or liquidation leads to a cut module, onchain
\bar C hard maximum per market and asset, set by the Risk Stewards or an AIP module, onchain

The parameters can be recalibrated by governance and by the Risk Stewards within bounds that only governance can change, so that each value can follow live data once the system is in operation. The indicative values discussed below will be tuned to each market and shared with the community before deployment.

LlamaGuard Caps in Practice

The walkthrough follows both agents over two and a half hours on a reserve with $100M of debt, using indicative values of a buffer of 10% of debt, a trigger at a fifth of the buffer, a 30-minute delay and a 10% band. The right panel shows how the buffer scales with debt across eight large reserves at today’s debt.

  1. The reserve starts with a cap $10M above debt. A borrower draws $8.5M, leaving $1.5M of headroom against a buffer that is now $10.85M at the higher debt. That is less than a fifth of the buffer, so a top-up becomes due 30 minutes later.
  2. While it waits, another borrower submits a $5M borrow. The borrower can borrow $1.5M now and the remaining amount after the top up.
  3. At the top-up, the Raise agent resets the cap to one buffer above debt. Because debt has grown, the buffer is now $11M.
  4. A $1M repayment leaves headroom within 1.1 times the buffer. The cap remains unchanged, and the repaid amount can be borrowed again.
  5. A $12M repayment leaves headroom well above that band, and the Cut agent lowers the cap to one buffer above debt within one or two blocks.
  6. A known large borrower needs $25M at once. Through an atomic batch, the cap is raised and the borrow executed in the same transaction, so cap and debt rise together and the headroom is unchanged.
  7. Later borrowing depletes the headroom again. The next top-up would take the cap to $146.9M, but the hard maximum is $140M, so the cap holds there until governance raises the maximum.

Calibration

Each parameter balances protection against friction for organic users. The calibration rests on a minute-by-minute replay of the year from 15 October 2025 to 15 October 2026 across the V3 reserves. The indicative parameters used are (see parameter table above): a buffer as a fraction of debt, \alpha, of 10%, a floor and ceiling on the buffer of $1M and $25M, respectively, a trigger at 20% of the buffer, a 30-minute delay and a 10% band. These values are indicative and will be tuned to each market and reserve.

Length of the delay. The delay determines how many top-ups an attacker can collect before an emergency response takes effect. In the replayed draws of past incidents, a 30-minute delay would have admitted one or two top-ups before the response, and a 60-minute delay one fewer. A 60-minute delay would, however, more than double the hours in which a Core borrower had to wait, and a borrower splitting $100M into four borrows would reach the full amount after more than three hours instead of about one and a half. Where a response lands within about 30 minutes, neither delay admits a top-up, so the longer delay adds cost without additional protection. The indicative minimum interval is therefore 30 minutes, which can be extended on specific markets without a contract change.

Band for cuts. Cutting the cap on every repayment ensures the cap is never more than one buffer above debt, but would require between 39,000 and 89,000 cap writes a year on each Core reserve. Cutting only once headroom exceeds the buffer by more than \delta, at an indicative 10%, reduces writes to between 1,400 and 2,100 a year and blocked hours by 35% to 48%, at the cost of allowing up to $2.5M of repaid room on a $25M buffer to be borrowed again.

Size of each top-up. A refill that shrinks after heavy borrowing would slow a sustained draw further, but it would add heavy friction on small reserves, particularly around new listings, where borrowing grows quickly from a low base and repeatedly exhausts a buffer at its floor. Each top-up therefore restores one full buffer, and sustained draws are bounded by the delay and the hard maximum.

Friction for organic borrowers

The cost to borrowers concentrates on the three Core reserves, where an indicative $25M ceiling binds throughout the year. The figures below use the indicative values and the stricter variant that cuts on every repayment, so they overstate the cost of a band.

Reserve Avg L Hours blocked per year Longest queue Top-ups per year Avg headroom, LlamaGuard Caps Avg headroom, current caps
Core WETH 25.0M 162 6.7 h 642 0.44% 41.1%
Core USDT 25.0M 217 9.3 h 1,115 0.56% 75.3%
Core USDC 25.0M 137 4.3 h 891 0.61% 76.7%
Plasma USDT0 25.0M 57 4.1 h 300 1.65% 146.9%
Monad USDC 4.1M 19 2.1 h 99 6.43% 64.4%
Base USDC 20.1M 79 0.5 h 713 5.46% 58.1%
Mantle USDT0 11.8M 23 12.9 h 97 7.81% 83.0%
Arbitrum WETH 19.5M 3.1 1.6 h 51 4.84% 110.9%

Hours blocked measures the time at least one borrower would have been waiting in the queue. On Core, most of these hours come from bursts that exhaust the buffer and wait out the 30-minute delay, and a large part of that demand could be served through the pathways described above. On the smaller reserves the buffer tracks the size of the reserve, and waits were short and rare.

Containment of malicious draws

The same indicative values, applied to the largest malicious draws of the period and starting from a full $25M buffer, give the following.

Incident Reserve Draw Admitted within 30 minutes Admitted within 1 hour Full draw admitted after
rsETH, 18 April 2026 Core WETH $123M $25M $50M 2 h 2 min to 2 h 26 min, after four top-ups
rsETH, 18 April 2026 Arbitrum WETH $70M $25M $50M 1 h 1 min to 1 h 13 min, after two top-ups
Binance Exploit, 29 October 2026 Core WETH $44.6M $25M $44.6M 31 to 36 min, after one top-up

Larger draws take proportionally longer to complete, and organic borrowing earlier in the day would have reduced the buffer available to an attacker and extended these times further.

Staged rollout

Borrow caps on Aave V3 form the first stage, since borrowing is the surface through which value leaves the protocol in both attack vectors, making it the easiest pathway to narrow. The functional components of this first stage and their code have been aligned with Aave’s SPs and have entered audits. Further details will be shared with the community once the system is ready for deployment.

Later stages would extend dynamic protection to further surfaces of Aave, including supply caps, Aave V4 and further cross-market aware modules, reusing the contracts, workflow and reducer introduced here. Each stage will be sequenced and calibrated on the operational experience, and brought to the community when ready.

Next Steps

  1. Gather feedback from the community.
  2. If consensus is reached on this ARFC, escalate this proposal to the Snapshot stage.
  3. If the Snapshot outcome is YAE, escalate this proposal to the AIP stage.

Disclaimer

This proposal was independently prepared by LlamaRisk. LlamaRisk develops and operates LlamaGuard, the product family this proposal would deploy on Aave. LlamaRisk received no compensation from Aave or from any protocol named in it for preparing this document. LlamaRisk is a DeFi risk-advisory and risk-infrastructure provider. It is not a custodian, broker, dealer, exchange, investment manager, or auditor. The information provided should not be construed as an endorsement of the proposal or of LlamaRisk by Aave Governance, the Risk Stewards, Chainlink Labs, or Chainlink.

Nothing here is legal, financial, tax, regulatory, or investment advice. Nothing is a recommendation for any reader to supply to, borrow from, use, or avoid Aave or any other protocol or asset. The analysis addresses protocol design in general; it is not tailored to any reader’s circumstances. Readers should conduct their own research and consult qualified advisers before acting.

A rate limit reduces how quickly liquidity can leave a protocol. It does not prevent, detect, or fully contain an exploit, a drain, an oracle failure, or a governance attack. No configuration of borrow caps removes smart-contract, oracle, liquidity, depeg, or total-loss risk. References to audited code describe audits completed at a point in time against the versions reviewed. Audits reduce but do not eliminate risk.

To the maximum extent permitted by law, this document and the materials and outputs it describes are provided “AS IS” and “AS AVAILABLE”, without warranties of any kind, express or implied, including as to accuracy, completeness, timeliness, availability, security, or fitness for a particular purpose. No LlamaRisk party is liable, to the maximum extent permitted by law, for any loss or damage, direct or consequential, arising from use of or reliance on this document, any implementation of it, or any LlamaGuard output. LlamaRisk’s public LlamaGuard disclaimer at https://www.llamarisk.com/llamaguard governs the position of parties outside any signed services agreement. It prevails over anything inconsistent here.

4 Likes

Good to hear you are finally going for a rate limiting approach similar to the one I proposed in April ( [TEMP CHECK] Automated Supply Cap Updater – Restricting Short-Term Supply Increases in Aave V3 - #3 by gnarvaja ), without feedback…

Why do you operate only in the Borrow Cap?

Hi @LlamaRisk,

Aave Labs Support directed me to ask these questions directly in this thread.

I use Aave V3 on Polygon and have an existing position with WBTC debt and USDC/USDT0 supplied as collateral. Since these stablecoins were assigned 0% LTV, my borrowing power shows as 100% used and I am unable to perform a partial debt switch from WBTC to USDC or USDT0.

I am not trying to increase my total debt or withdraw any additional funds. I only want to replace part of my existing WBTC debt with stablecoin debt within the same transaction, so I can manage the price exposure of my existing position.

Aave Labs Support informed me that USDT, USDC and USDT0 will remain at 0% LTV until new risk/security measures are implemented, and referred me to this Dynamic Caps Oracle proposal.

Could you please clarify:

  1. Is deployment of this V3 borrow rate limiter a prerequisite for restoring the LTV of USDC, USDT and USDT0?
  2. Will Aave V3 Polygon be included in the initial deployment?
  3. After deployment, will restoring stablecoin LTV require a separate risk assessment, governance proposal or on-chain action?
  4. Is there an expected sequence or approximate timeline for restoring LTV across the different networks?
  5. Could an interim mechanism allow atomic debt switches when the destination debt directly replaces the source debt, without increasing the user’s total debt or reducing the health factor?

The proposal states that refinancing and collateral swaps that close within one transaction are unaffected by the borrow rate limiter. However, under the current 0% LTV configuration, the Aave interface still rejects my debt switch because it requires unused borrowing power to open the destination debt before closing the source debt.

Could you clarify whether this limitation is intentional and whether it could be addressed separately from the full restoration of stablecoin LTV?

Even if an exact ETA is not yet available, a target date for the next formal review or public update would be very helpful for affected users.

Thank you.

Thanks to the LlamaRisk team for putting together this proposal, and congrats on the successful Snapshot vote. The ARFC publishes its parameters, a walkthrough and an incident replay, which made it possible to test it independently. Ahead of the AIP, we’d like to share a replay that may help calibrate the parameters, and a proposal for a next stage of LlamaGuard Caps.

Summary

  • We rebuilt the limiter from the ARFC and reproduced its walkthrough and its Binance numbers.
  • In both recent attacks, what stood out was not size alone but very new collateral, supplied from addresses that had just arrived on Core.
  • As a next stage, a seasoning condition would have held Binance to $13.6M and rsETH to $15.8M before the freezes, delaying 0.49% of normal Core borrows.

Data. Aave V3 Ethereum Core, 29 Jul to 28 Oct 2026: 67,287 non-atomic borrows, extracted from an archive node (Pool events and historical account state). Recomputed health factors match getUserAccountData for 200 of 200 sampled borrows, and debt reconciles for all 335 reserve-months.

Limiter replay and calibration

We replayed the limiter on Core WETH with the ARFC’s indicative parameters (α 10%, L_min $1M, L_max $25M, θ 20%, τ 30 min, δ 10%). It reproduces walkthrough steps 1 to 5 exactly. Where the ARFC leaves details open (queue model, raise timing, hard caps), we followed its walkthrough; the choices are listed in the report.

From a full buffer (the ARFC’s set-up), it admits $23.9M within 30 minutes, against the ARFC’s $25M (the gap is other users’ WETH borrowing), and the full $44.6M at +31.8 min. With state carried over from the previous 92 days, the full draw comes at +39.2 min. WETH was frozen at +48 min.

This is consistent with the ARFC’s own framing: the limiter buys response time rather than stopping a draw. It notes that a response within about 30 minutes would hold the draw at the first buffer; in the Binance case the freeze came at +48 min, after the full draw. For rsETH, the ARFC’s table (from a full buffer) reports $50M admitted within the first hour and the full $123M only after two hours. From its refill timing we infer $50M to $75M by the freeze at +84 min; we have not replayed the rsETH limiter state ourselves. With the indicative parameters, the limiter would have partly contained rsETH but not Binance. Setting τ and the first buffer against observed response times (48 and 84 minutes in these two incidents) would let it hold back more.

Parameter sweep. On the same replay we varied L_max ($5M to $25M) and τ (30 to 90 min). α does not bind on Core WETH, since α·D exceeds every L_max. The efficient settings, with state carried over from the reference window:

L_max / τ Binance before freeze WETH borrows delayed (92 days)
$25M / 30 min (ARFC) $44.6M 53
$25M / 60 min $33.6M 68
$15M / 60 min $21.8M 213
$10M / 60 min $17.0M 347
$5M / 60 min $16.3M 920
  • τ matters more than L_max. $25M / 60 min lets through less than $15M / 30 min ($33.6M vs $36.8M) and delays fewer normal borrows (68 vs 127). The gain comes from having no top-up between the first borrow and the freeze.
  • No limiter setting in the grid holds Binance below $16M before the freeze. The lowest, $5M / 60 min, delays 920 WETH borrows. Seasoning (section 3) holds it to $13.6M with no WETH borrows delayed; this is not fully like for like, since that cost counts WETH borrows only.
  • τ 90 min is never efficient: it delays more borrows than 60 min for the same containment.

Over the previous 92 days the replay 53 of 6,738 non-atomic WETH borrows (median wait 21 minutes) and blocked 173 same-transaction atomic borrows, mostly from two loopers, which bears on sizing the atomic batch pathway.

What separates the attacks

To find which features distinguish the attacker borrows from normal borrowing, we tested 16 borrow-level features in six groups:

  • Size: borrow USD, share of available liquidity, share of borrow-cap headroom.
  • Account newness: wallet age, time since first Core interaction (tenure), prior borrows.
  • Collateral freshness: share of collateral supplied in the last 1, 10 and 60 minutes and 24 hours; time since last supply.
  • Leverage after the borrow: LTV, borrowing power used.
  • Use of proceeds: funds moved out within 60 minutes, re-supplied in the same transaction.
  • Collateral type: freezable collateral backing non-freezable debt.

Among borrows of $1M or more, the Binance borrows stood out on two things only: size (the larger borrow is in the top 0.5% by USD) and how new the account and its collateral were (wallet age 99.4th percentile, Core tenure 98th to 99th, collateral freshness about the 90th). Leverage was ordinary (LTV after the borrow around the median), and so was use of proceeds. The freezable-collateral flag separated Binance but not rsETH, whose collateral is not freezable, so it does not generalise.

Neither is enough alone: a size-only rule has to flag 2,430 reference borrows to stop 90% of both attacks. Size combined with time on Core is rare: only 64 of the 66,911 reference borrows with a liquidity figure came from an owner less than an hour after their first Core interaction and took more than 0.5% of available liquidity. Five of the seven attacker borrows fall in that box. The attackers had been on Core for 72 to 300 seconds.

Adding collateral supplied in the previous 10 minutes, five reference borrows are as extreme as the larger Binance borrow, and none as extreme as the largest rsETH borrow.

A next stage: seasoned-collateral budget

Of the features we tested, two separated the attackers most clearly: how recently the account and its collateral arrived, and the borrow’s size relative to available liquidity. Restricting newly deposited collateral has also come up in the community since the Binance exploit. Our data helps calibrate it. A seasoning period of about 2 hours is enough to outlast both freezes, while longer periods add cost for little gain: at 6 hours, 546 normal borrows are delayed against 329 at 2 hours, for about the same containment. A budget tied to each reserve’s liquidity also contains far more than one tied to protocol revenue: at roughly $90M or more an hour, a revenue-based cap would have admitted the full Binance draw.

Borrowing against collateral held for a while works exactly as today. Borrowing against collateral that just arrived draws on a small budget shared by everyone; the rest waits until the collateral seasons.

  • Seasoned balance: an account’s minimum aToken balance over the past T.
  • Budget: debt beyond what seasoned collateral supports draws on a per-reserve budget B, a share of the previous day’s median available liquidity. Once it is exhausted, further borrowing against unseasoned collateral is restricted until budget frees up or the collateral seasons, at most T. The replay assumes affected borrowers wait and retry, as does our limiter replay.
  • Allowance: fresh collateral up to k times an account’s seasoned balance counts as seasoned, so established users topping up are rarely affected.
  • Exemption: same-transaction atomic borrows, repaid to zero within the transaction.
  • Optional calibration. Fresh collateral in assets that are already liquid and unfreezable, such as WETH and wstETH, could be exempted from the budget, since routing them through Aave gains an attacker nothing. This mainly reduces cost: at T = 1 h, delayed borrows fall from 1,235 to 575 with the exemption, while the Binance draw before the freeze is the same ($6.8M in both). Our headline results use this exemption.

Seasoning also makes economic sense. For an attacker using stolen, freezable or unbacked collateral, waiting is a risk: the collateral may be frozen or lose its value first. Both attackers borrowed within minutes, and freezes followed within 48 and 84 minutes. Legitimate borrowers generally do not face that collateral risk while they wait, though time-sensitive borrowing can still carry a cost.

The key parameter is T. Before a freeze an attacker can draw roughly B; if governance reacts within T, the rest is never drawn. So T has to exceed the reaction time.

Results

Headline configuration: T = 2 h, k = 0.5, B = 2% of available liquidity.

  • Binance: $13.6M drawn before the freeze, of $44.6M (limiter: all $44.6M).
  • rsETH: $15.8M before the freeze, of $124.8M (limiter: $50M to $75M, inferred from the ARFC’s table).
  • Normal borrowing over three months: 329 of 67,261 non-atomic borrows on Core delayed (0.49%, all reserves), median wait 93 minutes, maximum 120. No WETH borrows delayed (mainly due to the asset weights) and no atomic borrows blocked.

The seasoning period sets the trade-off (k = 0.5, B = 2%; delayed borrows are non-atomic Core borrows across all reserves, about 67,200 in the window):

T Binance before freeze rsETH before freeze Core borrows delayed Median wait
1 h $16.0M $124.8M 266 48 min
2 h $13.6M $15.8M 329 93 min
3 h $13.6M $15.4M 385 126 min
6 h $12.9M $12.7M 546 192 min

How it fits LlamaGuard Caps

  • The limiter remains the aggregate backstop against any fast draw, including an attacker who already holds seasoned collateral on Core: a seasoned stake S still allows about LTV × (1 + k) × S at once.
  • Seasoning targets the pattern behind both incidents at low cost to normal users. As a later stage, the seasoning check would decide which borrows draw on a tight budget, and the limiter would cap the aggregate.

@gnarvaja, on your question about why only the borrow cap: our data points to the collateral side too, but more narrowly than limiting supply. Deposits still enter freely; only their use as backing for new debt waits until they season.

Limitations and open questions

  • The parameter sweep reflects one attack, one reserve and one response time. A longer τ helped here because no top-up fell before the freeze at +48 min; if a response takes longer than τ, that benefit disappears.
  • The evidence comes from two incidents. The rsETH limiter figure comes from the ARFC’s table, which starts from a full buffer; we replayed only Binance through the limiter on real state.
  • Market configuration is held fixed on the attack days, and borrower behaviour does not adapt.
  • An attacker who waits T before borrowing would get through. In both cases the real freezes came well before that.
  • Implementation is the main open question. V3 does not track per-account balance history, so this needs either an extension or a check run by an oracle, similar to the LlamaGuard Caps agents. Exempting atomic borrows also needs care: the Pool cannot know at borrow time that the debt will be repaid in the same transaction, so it would need a controlled pathway, similar to the ARFC’s atomic batch pathway. We have not verified feasibility against the code.

We’d be glad to replay the final AIP parameters on the same data, or run rsETH through the limiter on real state, if that’s useful. We’d also welcome views from LlamaRisk and Aave’s risk and protocol contributors on whether collateral age could fit as a later stage of LlamaGuard Caps.

The full research report, reproducible code and data behind every figure are available on request, and we plan to publish the code: research@ipak.systems

Disclosure

This is independent research, we are not engaged or paid by Aave DAO, Aave Labs, LlamaRisk or any other Aave service provider, and no one commissioned or funded this work.

When will the AIP vote take place? This is linked to the USD LTV.

Addendum: Arbitrum parameters ahead of the AIP

The ARFC committed to sharing the per-market values before deployment. Below are the values for Aave V3 Arbitrum, and one clarification to the Architecture & roles section. The activation AIP is under review at aave-dao/aave-proposals-v3#1267.

Parameters

Symbol Meaning Arbitrum value
α buffer as a share of debt 10%
L_max ceiling on the buffer $15M per reserve, in tokens
L_min floor on the buffer L_max / 25
τ minimum time between two top-ups on a reserve 30 minutes
δ band above the buffer beyond which a cut applies 10%
C̄ hard maximum each reserve’s borrow cap when the AIP executes

Stage 1 starts below the indicative $25M ceiling. The Risk Council Safe can raise it within the limits below as operational data comes in.

Risk Council limit Value
Maximum α 20%
Maximum δ 20%
Maximum raise of C̄ or L_max 50% per day
Hold on cuts up to 24 hours

Every Arbitrum reserve is listed. Six can be borrowed today: WBTC, WETH, USD₮0, USDC, wstETH and GHO. The first five use Aave oracle prices of November 15, 2026 for L_max, and GHO uses its $1 oracle price. The other reserves cannot be borrowed today. They are listed with a hard maximum of 1, so a reserve enabled later is rate limited from day one. Their L_max uses Aave oracle prices of November 26, 2026.

GHO’s borrow cap is also managed by the GHO Aave Steward, under the GHO Risk Council. The rate limiter treats those updates like any Risk Steward change, so the outcomes below apply to them too.

USDG is being listed in a separate AIP and also gets an entry here. If the listing executes first, this AIP opens a 21-day onboarding period, and the Cut agent leaves the listing cap alone until it ends.

What to expect

  • Once the Cut agent is live, the first cut brings the six borrowable caps down to debt plus one buffer. LlamaRisk estimates, from debt on December 1, 2026:
Reserve Borrow cap today Debt today Expected cap after the first cut
WBTC 250 118 ~130
WETH 65,000 56,788 ~62,500
USD₮0 52,400,000 38,811,874 ~42,700,000
USDC 180,000,000 145,162,623 ~159,700,000
wstETH 1,300 65 ~331
GHO 8,470,000 449,694 ~1,050,000
  • After execution, a Risk Steward raise above C̄ gets cut back. Lifting the ceiling then takes the Risk Council (up to 50% per day) or an AIP.
  • It works the other way too. A Risk Steward cut below debt plus one buffer gets raised back, unless C̄ is lowered with it.
  • Each part can be switched off on its own. The Protocol Guardian can disable either agent. It is also the Router’s guardian, so it can pause the Router, which stops both.

Holders of RISK_ADMIN

The Architecture & roles table lists the Raise and Cut agents as the only new holders of the Pool’s RISK_ADMIN role. The AIP also grants it to CapsBorrowForwarder, the contract behind the atomic batch pathway, because it writes the borrow cap the same way the agents do. Its scope is narrow:

  • only the Risk Council Safe can call it;
  • each call raises the cap by at most 12 buffers of the asset, at most once every 36 hours per asset, and never above C̄;
  • the debt sits on the borrower through credit delegation, and the borrowed tokens go straight to the borrower;
  • the Governance Executor owns it.

Contracts

All contracts are verified on Arbiscan and listed in the Aave Address Book under MiscArbitrum, added in aave-dao/aave-address-book#1717 and released in v4.79.0.

Address Book key Contract Address
LLAMARISK_CAPS_RAISE_AGENT Raise agent 0x996126C29374EbBA1A3AC91c2564C29D0E634765
LLAMARISK_CAPS_CUT_AGENT Cut agent 0x3Fe54E476007CB315B23284BC1064cCC01a1f666
LLAMARISK_CAPS_BORROW_FORWARDER CapsBorrowForwarder 0x6bDBAF2B3aCdA83391D1C30b58dD137C5767eAdd
LLAMARISK_CAPS_RANGE_VALIDATION_MODULE CapsRangeValidationModuleV3 0x039C0E59F728bA984dFAA96dFF977B977aA82Beb
LLAMARISK_CAPS_REDUCER_ORACLE CapsReducerOracle 0xC8D89bd6894C315Fb13bBD057357D1380771C181
LLAMARISK_CAPS_PARAMETER_REGISTRY CapsParameterRegistry 0x2662d3A9d07589DCAbAA10ea85F66572b51c260d
LLAMARISK_CAPS_RISK_ORACLE RiskOracle 0x556c75E6bbf0672bf3510b839Ad229450C474f23
LLAMARISK_CAPS_RISK_ORACLE_ROUTER Router 0x74d8dd6CfCC3BeED9C4Db3fd6c4e471aD721d9F0
LLAMARISK_RISK_ORACLE_ADMIN_SAFE LlamaRisk operator Safe 0x1a0267E9E5929a5914Ae9DbBf23Bc07B14365471