Integrate expert-curated crypto & blockchain knowledge into your app with the upcoming IQ.wiki API.
The BAMM is a borrowing/lending module built on top of Fraxswap. Unlike other borrowing lending modules, the BAMM does not need an outside oracle or external liquidity to function safely. [1] [6]
With the BAMM, borrowing lending services can be created for pairs that were previously impossible, because they did not have a solid oracles or sufficient liquidity.
Borrowers rent liquidity provided by lenders to automatically leverage up and down, such that they can stay solvent even in the case of high volatility. This means borrowers can not experience sudden liquidations, so there is also no need to pay high liquidation fees to liquidators, creating a better deal for both borrowers and lenders.
Each BAMM pool is build on top of a single Fraxswap pool that holds two tokens. Borrowers can safely long and short each token without fear of sudden liquidation. [6]
Lenders lend their full range liquidity LP tokens from Fraxswap to the BAMM lending pool. The amount lend is calculated used the following formula: sqrt(X×Y). Where X and Y are the number of the two tokens in the pool. Lenders earn trading fees from Fraxswap and interest rate from borrowers that rent their liquidity. [6]
Each borrower has its own vault where they put in their collateral, rent liquidity from the liquidity pool and withdraw tokens. Rented liquidity LP tokens are burned when rented and the underlying tokens are put in the users vault to act as collateral.
The user can also withdraw tokens from their vault, but they must remain solvent. A user is solvent when the rented liquidity amount is less than 98% of the sqrt(X×Y) of their vault. Note that for both the amount of the rented LP and the assets in the vault, the sqrt(X×Y) is used to calculate solvency. These values are unchanged when there are price movements, so the borrower can not get insolvent when prices change. The borrowers debt slowly increases over time due to interest rate payments, so borrowers should periodically check their position to avoid liquidation. The interest rate for the rented liquidity is calculated using a dynamic interest rate model that is used in Fraxlend as well. [6]
The difference between Borrow AMM and other AMMs is as follows:
Borrow AMM is a relatively new concept in the DeFi space, and there are not many crypto finances or companies that provide it. Notable players like Frax Finance, GammaSwapLabs, infinitypool, Timeswap, SushiSwap, and Panoptic_xyz are already making strides in this space.
On June 18, 2026. 14:09 UTC
Edit summary:
Expanded BAMM summary to include non-liquidatable borrowing details