Flash loans · REAL · Base mainnet
Flash loans on Aave V3, executed from a contract you own.
A flash loan borrows and repays inside one transaction. If the strategy cannot repay, the whole transaction reverts and nothing moves. We write the contract around your strategy, simulate it on a fork, deploy it, and hand you the keys.
tools/gen-assets.py; not live.Cost estimator
Protocol fee and break-even edge, from stated inputs.
Premium source: last VERIFIED value (2026-09-04) · chain: Base (id 8453) · pool: 0xA238Dd80C259a72e81d7e4664a9801593F98d1c5
Formula: fee = notional × 5 / 10,000; break-even = fee + gas + other costs.
Not included: liquidity depth, slippage, MEV, route failure, or whether any strategy is profitable. This is an estimate, not an execution quote.
How the money moves inside one transaction
Request
Your contract calls the Pool for the asset and amount. The Pool transfers the asset in and calls back into your contract.
Strategy
Your logic runs inside the callback: a swap route, a liquidation, a collateral rotation, a refinance. This is the only part that differs per client.
Repay
Before the callback returns, the contract approves principal plus the Pool's premium back to the Pool. The premium is read from the Pool at execution time, not hard-coded.
Settle or revert
Repayment succeeds and any surplus stays in your contract, or the whole transaction reverts and no balance anywhere changes.
Quote against live liquidity
Reads the Pool's available liquidity and premium from a Base node through the API and refuses a quote when depth is under 1.5× the request. This is a read; nothing is signed or sent. The estimator above works even when the API is unreachable.
What you get, and what is not offered
Your own contract
One contract per client per strategy, deployed to Base mainnet, owner set to your address at handoff, source verified on the explorer.
Simulation before broadcast
Every strategy is simulated on a fork first. You get the trace, gas estimate, and revert reason if there is one. No mainnet transaction is sent from a strategy that has not passed simulation.
Not offered: multi-provider routing
Routing across Aave V3, Balancer V2, Uniswap V3, and MakerDAO exists as code in the repository, is not deployed to any public mainnet, and has no completed audit. It is not part of any engagement until both change.