
Aave is the largest lending market onchain and the one the rest of DeFi prices itself against: deposit an asset and it earns from the block it lands, post it as collateral and the pool lends against it, borrow and the rate is set by the market every block, with no counterparty, no desk, and no hours.
It has held through every drawdown since 2020 while the venues around it broke, and it did that with rules that are public and mechanical. Every position is over-collateralized, every asset has a loan-to-value and a liquidation line the governance publishes ahead of time, and the oracle that prices your collateral is the same one that prices everyone else's. Nothing about it is discretionary, which is exactly why tens of billions of dollars sit in it. It is the market serious capital trusts.
Those same rules are the reason a position there is work. The health factor you check before bed. The liquidation at four in the morning because ETH moved eight percent while you were asleep. The leverage loop that is one idea and eight transactions. The borrow rate that was three percent when you opened and eleven when you next looked. The market is mechanical; the person holding the position is not, and the people who do well on Aave are the ones who never look away.
Every number Aave keeps about a position is a step in a plug: the price of every asset in it, the loan-to-value the pool assigns it, how much more it will lend, the liquidation line, the health factor, and any one of them can decide what happens next. Supply, borrow, repay, withdraw, flash loans, collateral and E-Mode switches run when a condition is met rather than when a person is awake. A plug holds a position the way the pool holds the market: by rule, every block.
Debt that repays itself the moment the health factor crosses the line you chose. Collateral topped up from a balance sitting idle somewhere else. Leverage entered, or unwound, in one atomic transaction. A borrow that closes when the rate stops making sense and reopens when it does. Yield swept into a position on a schedule you never have to remember.
The positions that survive on Aave are already run this way. A position that is managed and a position that is merely open look identical until the market moves at four in the morning, and by then it is not a decision you get to make.
Borrow on Base · 7 plugs
Earn yield on Base · 12 plugs



Supplies an asset to an Aave market, minting aTokens to the wallet.
Reach for it to earn yield on idle balance, to post collateral before a borrow, or as the second half of a loop where borrowed funds are swapped and supplied again in the same transaction. Follow it with the collateral status action when the deposit needs to back a borrow.



Borrows an asset from an Aave market against collateral you have supplied.
Reach for it after a supply in the same transaction to build leverage, to fund a swap or deposit elsewhere with borrowed capital, or inside a flash loan block to convert a temporary loan into lasting debt. Pair it with account data so a predicate holds the resulting health factor above your floor.



Repays borrowed assets to an Aave market from the socket's balance.
Reach for it to close or reduce a borrow before withdrawing collateral, to bring the health factor back above a floor when a predicate finds it has slipped, or to settle the debt leg after a swap has produced the repayment asset earlier in the transaction.



Withdraws a supplied asset from an Aave market back to the socket.
Reach for it to exit a lending position, to free collateral after a repay earlier in the transaction, or to pull funds that a following swap or deposit needs, coiling the withdrawn amount into the next step so the exact figure flows through.



Borrows an asset from an Aave market with no collateral, repaid inside this transaction.
Reach for it to refinance debt between markets without capital, to unwind a leveraged position by repaying before withdrawing collateral, or to fund an arbitrage across venues. Coil owed into a comparison so a predicate requires the balance covers it before the block closes.



Repays debt in an Aave market using your supplied aTokens instead of wallet funds.
The pool burns the aTokens and cancels the debt of whoever sends the call, and has no form that acts on another account's behalf, so the repay runs as a plug of its own that your wallet sends directly. Reach for it to deleverage a looped position in one step, or to close debt against a supply of the same asset without touching wallet balance, ahead of a withdraw that is then no longer constrained.



Enables or disables an asset you have supplied as collateral in an Aave market.
Reach for it right after a supply so the new deposit backs the borrow that follows, or to disable collateral on an asset you want kept out of liquidation reach once the debt it supported has been repaid earlier in the transaction.



Opts your position into an Aave E-Mode category, or leaves E-Mode with category zero.
Reach for it before a borrow of correlated assets, such as stablecoins against stablecoins or LSTs against ETH, to unlock the higher LTV, reading the E-Mode config first so the strategy sizes the borrow against the parameters that will actually apply.


















Posts · 34