Moonwell

Mint on Moonwell

Base
Base
Lending · Defi

Ready to run on Base

Moonwell is the lending market that grew up on Base: a pool for each asset where deposits earn from the block they land and borrowers draw against what they have supplied, run by its community and open to any wallet since the chain launched.

It keeps the model that made onchain lending legible. Supplying an asset mints mTokens, a receipt whose exchange rate only rises as borrowers pay interest, so a deposit grows without a single claim. Each market publishes its rate curve, its collateral factor, and its supply and borrow caps, and one comptroller values every account across every market it has entered at the same oracle price. A position is the sum of its markets, never a set of disconnected bets.

That shared account is also where the risk lives. A borrow taken against one asset is backed by everything entered as collateral, so a drop in any of them tightens all of it at once. The rate that climbs steeply once a market crosses its kink. The collateral factor governance trims while the position sleeps. The rewards accruing that nobody remembers to claim. Liquidation reads the account, not the intention behind it.

Every number Moonwell keeps is a step in a plug: each market's exchange rate and the rates on both sides of it, the cash it can still lend, an account's balance and borrow in every market, and the liquidity or shortfall the comptroller computes. Minting, redeeming, borrowing, repaying, entering and exiting markets, and claiming rewards run when a condition is met rather than when someone happens to be watching.

Debt repaid the moment the borrow rate crosses a line. Collateral topped up before the account's liquidity runs out, not after. Rewards claimed and supplied back on a cadence instead of a memory. A loop unwound in order the instant the market says it should be.

The accounts that last on a lending market are the ones that never depended on someone being awake, and on Base that has never been easier to arrange.

More plugs on Base

Earn yield on Base · 12 plugs

How to mint on Moonwell

  • Supplies an asset to its Moonwell market and receives mTokens for it.

    Reach for it to earn the supply rate on an idle asset, as the first step before entering the market and borrowing against it, or to put the proceeds of an earlier swap or claim to work in the same transaction.

  • Borrows an asset from its Moonwell market against the account's collateral.

    Reach for it after supplying and entering collateral, or to draw the asset a later swap or deposit needs, holding the account's liquidity above a floor with a read and a predicate.

  • Claims every reward the wallet has earned on Moonwell, in every market and on both sides.

    Reach for it as a harvest step, then swap the rewards into an asset and mint it back in the same transaction to compound.

  • Enters a Moonwell market as collateral for the sending account.

    Reach for it right after a mint so the new supply backs the borrow that follows.

  • Stops a Moonwell market's supply counting as collateral for the sending account.

    Reach for it after repaying the debt a market's supply backed, to keep that asset out of liquidation's reach.

  • Redeems an exact amount of mTokens from a Moonwell market for the asset behind them.

    Reach for it to exit a supply position by its share count, or to pull the asset a following swap, repay or transfer needs, coiling the received amount forward.

  • Redeems an exact amount of a supplied asset from its Moonwell market.

    Reach for it to take a precise amount of the asset back out, such as the exact figure a following repay or transfer needs.

  • Repays the wallet's debt in a Moonwell market from the socket's balance.

    Reach for it to clear debt before redeeming collateral, to restore the account's liquidity when a read says it is running out, or to settle the borrow after an earlier swap has produced the asset.

Posts · 1