Subscribe to wiki

Share wiki

Borrow Automated Market Maker (BAMM)

Borrow Automated Market Maker (BAMM)

Borrow Automated Market Maker (BAMM) is a decentralized lending and borrowing protocol that provides for exchanging two or more tokens with fixed maturity periods. Borrow AMM also enables liquidity providers to swap their tokens for other tokens, enhancing liquidity. BAMM aims to create a more versatile and efficient ecosystem for managing liquidity, earning interest, and accessing capital.

Overview

Unlike other AMMs, Borrow AMM allows lending and borrowing with fixed maturity periods, and pays fees and rewards to liquidity providers. BorrowAMM has emerged, combining the functionalities of a Money Market and an . The term ‘borrow AMM’ refers to the ability of traders to borrow concentrated liquidity positions from a public pool (the float pool) and utilize them in their own private pool (the Swapper) without requiring permission.[1]

Technical Background of BAMM

Borrow AMM is based on the idea of using a mathematical function to determine the prices and quantities of tokens in a . The function is called an exchange function, and it defines the relationship between the inputs (tokens) and the outputs (prices) of the . Different types of AMMs use different exchange functions, such as constant product, constant mean, constant sum, hybrid, or dynamic functions. The exchange function also determines the properties of the AMM, such as , , , and capital efficiency.

One of the main challenges of designing an exchange function is to balance the trade-off between liquidity and price impact. Liquidity refers to the ease of trading tokens in the AMM, and price impact refers to the change in price caused by a trade. Ideally, an AMM should have high liquidity and low price impact, but these two goals are often conflicting. For example, a constant product AMM has high liquidity but also a high price impact, while a constant sum AMM has low liquidity but also a low price impact. An appropriate exchange function should try to optimize both liquidity and price impact for different types of tokens and trades.

Another challenge in designing an exchange function is to account for the volatility and correlation of the tokens in the pool. Volatility refers to the degree of variation in the price of a token over time, and correlation refers to the degree of similarity in the price movements of two tokens. Volatility and correlation affect the risk and return of the liquidity providers, who supply tokens to the AMM and earn fees and rewards. An appropriate exchange function should try to minimize the risk and maximize the return of the liquidity providers, while also ensuring that the AMM is always solvent and arbitrage-free.

Difference between BAMM and other AMMs

The difference between Borrow AMM and other AMMs is as follows:

  • Borrow AMM allows lending and borrowing with fixed maturity periods. This means that liquidity providers can lend or borrow their tokens for a specific period of time. This way, can earn fees and rewards, and borrowers can use the tokens they want at a low cost. Other mostly provide liquidity indefinitely or have variable loan terms.
  • Borrow AMM enables liquidity providers to swap their tokens for other tokens. For example, if a liquidity provider participates in an and pool, they can swap ETH for USDT. This allows liquidity providers to adapt to the price fluctuations of the tokens and enhance liquidity. Other AMMs either prevent liquidity providers from changing the tokens they participate in the pool or charge additional fees.
  • Borrow AMM applies user-defined fees. This means that liquidity providers can set the fee rate they want. This allows liquidity providers to optimize their profits and increase their competitiveness. Other AMMs apply fixed fees or determine the fees at the protocol level.

Pros and Cons of Borrow AMM

Pros:

  • Borrow AMM can provide more capital efficiency and flexibility for both lenders and borrowers. Lenders can earn fees and rewards by lending their tokens for a fixed period of time, and borrowers can access the tokens they need at a low cost. Borrowers can also choose the maturity period and the fee rate that suits their needs.
  • Borrow AMM can reduce the risk of impermanent loss and interest rate volatility for lenders. is the loss of potential profit when the price of the tokens in the pool changes. Interest rate volatility is the fluctuation of the interest rate over time. Borrow AMM can mitigate these risks by locking in the interest rate and the exchange rate at the time of the loan initiation.[4]
  • Borrow AMM can create new opportunities and use cases for . Borrow AMM can enable fixed-term lending and borrowing, which can be useful for hedging, , , and speculation. Borrow AMM can also support non-fungible loans, which can allow users to borrow or lend unique assets, such as , domains, or identities.

Cons:

  • Borrow AMM can be more complex and risky than other AMMs. Borrow AMM involves more parameters and variables, such as maturity period, fee rate, ratio, and threshold. Borrow AMM also requires more coordination and synchronization among the participants, such as lenders, borrowers, liquidators, and arbitrageurs. Borrow AMM can expose users to various risks, such as default risk, liquidity risk, and smart contract risk.
  • Borrow AMM can face regulatory and legal challenges. Borrow AMM can be considered as a form of lending and borrowing, which can be subject to different laws and regulations in different jurisdictions. Borrow AMM can also raise issues of compliance, taxation, and consumer protection. Borrow AMM can encounter difficulties in enforcing contracts and resolving disputes, especially when dealing with cross-chain or cross-platform transactions.
  • Borrow AMM can face competition and compatibility issues. Borrow AMM can face competition from other DeFi protocols that offer similar or better services, such as , , or . Borrow AMM can also face compatibility issues with other DeFi protocols or standards, such as , , or EIP-1559. Borrow AMM can require more integration and interoperability efforts to achieve network effects and user adoption.[5]

Providers of BAMM

Borrow AMM is a relatively new concept in the 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.

  • Frax Finance: is a fractional-algorithmic protocol that aims to create a more capital-efficient and innovative stablecoin ecosystem. Frax Finance is planning and actively coding to launch Borrow AMM (BAMM) in 2023, which will be integrated with V2, a token that enables users to run validators in a decentralized and permissionless way. BAMM built by the core team of Frax Finance allows users to use leverage on any token without the need of oracles. By now adding the ability to borrow from an LP pool in a safe manner, BAMM is the first instance of a primitive that encompasses all parts of The Trinity in a truly decentralized manner that anyone can tap into. [1][2][3]
  • Timeswap: Timeswap is an AMM-based lending and borrowing protocol that operates on , , , and other networks. It offers fixed maturity and non-fungible loans, similar to Borrow AMM. Timeswap claims to be the first AMM to enable fixed-term lending and borrowing.
  • SushiSwap: is a popular AMM and decentralized exchange that operates on multiple . SushiSwap is developing a new feature called Kashi, which will allow users to create custom lending and borrowing markets with any pair of tokens. Kashi will use a novel AMM design called BentoBox, which will enable isolated risk, flexible fees, and leverage.
See something wrong?

Average Rating

No ratings yet, be the first to rate!

How was your experience?

Give this wiki a quick rating to let us know!

Edited By

Profile picture of Anonymous uservzbrv

Edited On

May 13, 2024

REFERENCES

[1]

LinkedIn - Borrow AMM : The future of Money Markets and Automated Market Makers

Dec 5, 2023

[2]

Flywheel - Frax in Review - Feb 6th, 2023

Dec 6, 2023

[3]

Medium - Frax Finance Monthly report #271 May 2023

Dec 6, 2023

[4]

Chainbulletin - Impermanent Loss explained with examples & math

Dec 6, 2023

[5]

BAMM Explained for Noobs: Leverage Any Crypto Token Without Getting Rekt

Dec 19, 2023