BAMM is here, and it’s changing DeFi lending forever.

No price oracles. No sudden liquidations. Just pure on-chain borrowing inside an AMM. Frax just rewrote the lending playbook, and we broke it all down.

How BAMM works, the math behind oracle-free lending, and why this changes everything for LPs and borrowers.

Read the full deep dive now

BAMM is here, and it’s changing DeFi lending forever.

No price oracles. No sudden liquidations. Just pure on-chain borrowing inside an AMM. Frax just rewrote the lending playbook, and we broke it all down.

How BAMM works, the math behind oracle-free lending, and why this changes everything for LPs and borrowers.

Read the full deep dive now
leviathannews.substack
Revision history

3 recorded changes

Want your article here?

Promote with Leviathan News

Frax Finance has introduced BAMM (Borrow AMM), a lending module built directly on top of its Fraxswap constant‑product AMM, so that every Fraxswap liquidity pool can function simultaneously as a spot DEX and a lending market. Instead of using external price oracles and separate money markets like Aave or Compound, BAMM prices debt and solvency using the invariant of the AMM itself ( \(K = x \times y\)), allowing users to borrow one token against another directly inside the pool. Because the system measures collateral and debt in terms of the AMM’s mathematical reserve relationship (via \(\sqrt{x\times y}\)), borrowers are designed not to be liquidated suddenly by price moves alone, as long as they remain within conservative borrowing limits. In BAMM, lenders deposit full‑range Fraxswap LP tokens into a BAMM pool, earning both normal swap fees and an additional interest rate paid by borrowers who “rent” liquidity from the pool. Each borrower receives an isolated vault, deposits collateral, and rents a portion of the pool’s liquidity; the rented LP tokens are burned and the underlying assets sit in the vault as collateral, with solvency determined by comparing the rented amount to a threshold based on \(\sqrt{x\times y}\) of the vault’s assets. Because debt is effectively denominated in the AMM invariant and shares the same liquidity that powers trading, the design aims to avoid under‑collateralized “bad debt” scenarios common in traditional oracle‑based lending protocols, while giving LPs a potentially higher‑yield venue and enabling borrowers to take leveraged long or short exposure to either side of any Fraxswap pair. This makes BAMM notable in DeFi as an attempt to fuse AMM liquidity and credit markets into a single on‑chain primitive, particularly for tokens that lack robust external price oracles or deep external liquidity.

AI-generated background, compiled from web sources — not editorial content.

More coverage

Explore the topic

More on $FRAX

Comments