Skip to content
Trading screens with price charts in a dark room

Aave Flash Loans and the Costs That Can Erase a Trade

A trade can appear profitable on a screen and still cost money once it reaches the blockchain. For anyone studying aave flash loans, the question is whether a transaction can repay its obligations and leave a net gain. A quoted price difference is only a starting point. We examine transaction costs and execution risk for technical readers, without offering personal loans or promising returns.

What has to happen within one transaction

Aave V3 offers two flash-loan functions with different implications. Under flashLoanSimple(), a receiver contract temporarily receives one asset, performs its programmed operations and must make the borrowed amount plus the applicable premium available for repayment before the transaction completes. The pool checks the repayment condition; insufficient balance or approval can cause a revert. The mechanism depends on atomic execution and flash loans: the intended state changes stand together or fail together.

The more flexible flashLoan() function supports multiple assets and can, depending on the selected interest-rate mode and conditions, open a collateralised or credit-delegated debt position instead of requiring immediate repayment for a given reserve. Those paths should not be conflated. We separate this mechanism from ordinary crypto-lending models, which may involve collateral and repayment over time.

Build the cost equation before the trade

An attractive spread becomes meaningful only after costs are expressed in the same unit and measured at comparable execution assumptions. A basic worksheet starts with the estimated gross benefit and subtracts the flash-loan premium, swap or trading fees, price slippage and network gas. Specify whether price impact is included and how token values are converted to a common currency.

The flash-loan premium is a protocol parameter, not an interest rate to assume indefinitely. Aave V3 documentation describes an initial premium and a governance mechanism for changing it; the current value should be read from the relevant deployed market before any calculation. Gas and slippage depend on execution conditions. Unjustified zero entries inflate the expected result.

For an illustrative calculation, use: estimated net outcome = gross benefit − flash-loan premium − trading fees − slippage − network gas. This is an accounting identity for a proposed route, not evidence that a particular arbitrage opportunity exists.

Hand pointing at a price chart on a trading monitor

Why a transaction can revert

A receiver may finish its swaps without retaining enough of the borrowed asset to repay principal and premium. It may lack the correct token allowance, encounter insufficient pool liquidity, hit a minimum-output limit or call a contract that rejects the operation. Prices can also change between a simulation and inclusion in a block. A slippage limit can protect against accepting a poor execution, but it can also make the transaction fail when the allowed conditions are no longer met.

A reverted EVM transaction ordinarily unwinds the attempted on-chain state changes; it does not mean that executing the failed attempt was free. Ethereum’s explanation of gas charges on failed transactions distinguishes gas used by included execution from transactions rejected before inclusion. Budget for gas even when the trade fails. Reverted proceeds do not remain available.

A transparent hypothetical

Consider a wholly hypothetical route involving a $100,000-equivalent flash borrowing amount. These invented figures are not live market quotes. Both columns assume the same borrowing size; the difference lies in the observed trading benefit, slippage and execution cost. All amounts are illustrative USD equivalents.

Cost lineFavourable executionUnfavourable execution
Gross trading benefit$410$260
Flash-loan premium$80$80
Swap and trading fees$75$75
Slippage / price impact$95$150
Network gas$35$40
Estimated net result+$125−$85

In the first case, $410 − $80 − $75 − $95 − $35 leaves $125. In the second, $260 − $80 − $75 − $150 − $40 produces a loss of $85 despite the apparent positive spread. If the second route instead reverts on a slippage safeguard, the model changes: executed trade proceeds and fees do not settle in the usual way, but consumed gas may remain an actual loss. A successful transaction and a profitable transaction are separate tests.

A pre-execution risk checklist

Before modelling a trade as viable, we would record the particular Aave market, contract function, borrowed asset and intended repayment mode. Review the receiver contract and every external call; confirm the correct allowances; read the live premium parameter; and map each swap route and its minimum acceptable output. Include expected gas, a plausible worst-case gas loss and the conditions under which the transaction would revert.

Next, repeat the calculation against more than one price and liquidity assumption. A private simulation can reveal mistakes but cannot guarantee the block state, transaction ordering or competitor activity encountered later. Consider maximal extractable value (MEV) and adverse price movement; neither risk can be ruled out.

Finally, retain the assumptions, simulation block reference, contract version and results alongside the estimated return. This makes the analysis reviewable when the apparent opportunity disappears. Our risk assessment stops where the evidence stops: a spread quoted before execution does not establish a realisable profit.

This material is for general educational purposes only and is not investment or trading advice.

Constrained Capital LLC
Constrained Capital LLC

Important Information

Investors should consider the investment objectives, risks, charges and expenses carefully before investing. To view this and other information about the Fund, click to read the prospectus or the summary prospectus. Read the prospectus or summary prospectus carefully before investing.


Investing in ETFs involves risk and there is no guarantee of principal.

Because the Fund is an ETF (rather than a mutual fund), shares are bought and sold at market price (not NAV), may trade at a discount or premium to NAV and are not individually redeemable. Owners of shares may acquire those shares from the Fund and tender those shares for redemption to the Fund in Creation Unit aggregations only. Brokerage commissions will reduce returns.

Diversification in an individual’s investment portfolio does not assure a profit.

American Depositary Receipt Risk (ADR). ADRs involve risks like those associated with investments in foreign securities, including changes in political or economic conditions of other countries and changes in the exchange rates of foreign currencies. ADRs listed on U.S. exchanges are issued by banks or trust companies and entitle the holder to all dividends and capital gains paid out on the underlying foreign shares. Investing in ADRs as a substitute for an investment directly in the foreign company shares, exposes the Fund to the risk that the ADRs may not provide a return that corresponds precisely with that of the foreign company’s shares. Concentration Risk. Because the Fund’s investments will be concentrated in a group of industries, to the extent the Index is concentrated, the value of its shares may rise and fall more than the value of shares in a fund invested in a broader range of industries. ESG Orphan Risk. A strategy or emphasis on environmental, social and governance factors (“ESG”) orphaned industries, such as fossil fuel energy, nuclear power, tobacco, weapons/firearms, alcohol and/or gambling, may limit the investment opportunities available to a portfolio. Therefore, the portfolio may underperform or perform differently than other portfolios that do not have an ESG Orphaned industry focus or limitation. New Fund Risk. The Fund is recently organized with no operating history and managed by an Adviser that has not previously managed a registered fund. As such, the Fund has no track record on which to base investment decisions. Non-Diversification Risk. Because the Fund is “non-diversified,” it may invest a greater percentage of its assets in securities of a single issuer or fewer issuers than a diversified fund, which may expose the Fund to the risks associated with the developments affecting the issuers in which the Fund invests. Passive Management Risk. The Fund is passively managed and attempts to mirror the composition and performance of the ESG Orphans Index. The Fund’s returns may not match due to expenses incurred by the Fund or lack of precise correlation with the index.

The Solactive Capital ESG Orphans Index is a representation of companies that have business operations in one of the following industries: alcohol, fossil fuel energy, gaming, nuclear power, tobacco and weapons/firearms. The Index is calculated, administered, and published by Solactive AG, the Index’s administrator.

Constrained Capital, LLC is the owner of the ESG Orphans Index and the sponsor of the Fund.

Toroso Investments, LLC (Toroso) serves as investment adviser to the Fund.

Tidal ETF Services, LLC, a subsidiary of Toroso, serves as the Fund’s launch and structure partner.

The fund is distributed by Foreside Fund Services, LLC