B.BlockAxis⌕ Search
Menu

E-mode, isolation and flash loans

Efficiency mode permits parameter arrangements for defined groups of correlated assets.

AdvancedContent revised · 21.09.20265 min reading · allow 5–10 more minutes for the workshopBlockAxis
← My learning journey
Workshop · 20 XP

Awarded once after a correct answer.

The question we will work through

Separate risk modes from transaction atomicity

Useful first : Collateral, LTV and liquidation thresholds · Aave health factor and liquidation · EVM and smart contract composability

Reading path · 4 / 18 · Advanced

Key takeaway

Efficiency mode permits parameter arrangements for defined groups of correlated assets.

The essentials

Efficiency mode permits parameter arrangements for defined groups of correlated assets. Its capital efficiency depends on the correlation assumption. A depeg can break that assumption. Isolation modes and caps constrain particular exposures under deployment-specific rules.

How it works

A flash loan provides funds without prior collateral on condition that principal and required fees are repaid within the same transaction. Otherwise the operation reverts. This can support arbitrage or position migration; it is not an unsecured balance that can be retained after the transaction.

What to watch

Flash liquidity can amplify an existing pricing or contract weakness, but does not create every vulnerability it exploits. Applications should be designed for adversaries with substantial temporary capital. Reverted transactions can still consume gas, so an unsuccessful attempt is not necessarily costless for the sender.

Build your analysis

Scope of the flash-loan example: it assumes same-transaction repayment, as with flashLoanSimple or flashLoan with no debt opening. Aave V3’s flashLoan can alternatively open an eligible variable-rate debt position backed by collateral or credit delegation. That option has its own requirements and is excluded from the workshop; it is not permission to retain an unsecured loan.

Understand the details

Efficiency modes can change collateral treatment for eligible categories, while isolation mechanisms limit how certain assets support borrowing. Eligibility and limits must be checked for the actual market. Similar price behavior is an assumption that can fail, particularly when an asset loses its intended peg.

Boundaries and common mistakes

A flash loan is different: funds are borrowed and repaid, with required fees, within one transaction or the operation reverts. Atomicity limits the lender’s exposure under the mechanism, but does not make every contract touched by the borrower safe. A profitable-looking sequence can fail because prices or execution conditions change.

The mechanism at a glance

SEE THE CONNECTIONS
Separate risk modes from transaction atomicityFour connected ideas
  1. 01Borrow within transaction
  2. 02Execute actions
  3. 03Repay principal and fee
  4. 04Otherwise revert

Read these as connected concepts, not necessarily consecutive steps.

Read the explanation

Efficiency modes can change collateral treatment for eligible categories, while isolation mechanisms limit how certain assets support borrowing. Eligibility and limits must be checked for the actual market. Similar price behavior is an assumption that can fail, particularly when an asset loses its intended peg.

The distinction that changes the analysis

01Atomic operation
02Economic safety

A flash-loan transaction must satisfy its repayment conditions within the transaction. This execution rule does not make the surrounding strategy profitable or free from contract risk. Separate “the transaction may execute” from “the strategy makes economic sense”.

Explain it yourself

Revisit the case above. Name what is established, what remains to be checked and the evidence needed to conclude. A strong answer addresses both sides of the diagram.

Applied workshop · work at your own pace

Apply the lesson to a case

Sketch a flash-loan transaction that borrows 1,000 units, performs two actions and must return 1,001 under a fictional fee rule. The second action leaves only 999. Track which state changes survive if repayment requirements fail.

Does the failed borrower keep the 1,000, and can gas still be spent?

Choose one answer.

Terms in this lesson
Gas
A measure of execution resources; gas units and the price per unit are separate quantities.
Prepare a correction note

Describe the passage and the proposed correction. This creates a local note for you to share; it sends nothing. Do not include personal or confidential information.

Sources and references

References for the mechanisms described. Numerical examples are hypothetical unless stated otherwise. Check the applicable version, network and jurisdiction.

References reviewed on 21 September 2026. All sources →