๐Ÿ““
Notional Finance
  • ๐Ÿ—’๏ธTo-Do List [Notional]
  • ๐ŸงตTwitter Threads
    • fCash Overview
    • AMM Overview and Trades
    • fCash Valuation 1
    • Liquidity Fees
    • Lenders trade (fCash)
    • Lender Trade 2
    • Borrower trade (fCash)
    • What happens at maturity?
    • Page 2
  • Experiment
    • DUNE & Dashboard
    • Docs & Topics
      • Interest Rate Risk
      • Inverse Interest Rate Risk
      • AMM Curve Comparison
      • Understanding Risk adjusted TVL
      • How Notional stays solvent
      • Liquidation!?
      • Prime Cash
    • Excel & Numbers
      • Duration Risk
      • 200% CR rate comparison
    • Trades
  • Weekly Reproducible Vault
    • 29 May - 4 June
      • Activity
      • IR Compare
    • 5 June - 11 June
    • 12 June - 18 June
  • ๐Ÿ’ธfCash
    • What & Why fCash?
    • fCash Use-case
    • fCash maturity
  • โš—๏ธCounterparty liquidity pool
    • Liquidity pool
    • AMM
    • Liquidity pool interactions
      • Lending Trade
      • Borrow Trade
      • Liquidity provisioning trade
  • ๐Ÿ’นfCash Finances
    • Valuing fCash
    • Risks subject to the change in Rates
      • The upside of the change in Rates
  • ๐ŸšฐLiquidity providers
    • Liquidity provisioning
    • Liquidity provider's portfolio
      • Net Lending Position for an LP
      • Net Borrowing Position for an LP
    • Yield earning (v1)
    • Risks (v1)
  • ๐ŸฅBorrower Resources
    • Collateralization
    • Free Collateral Computations
  • ๐Ÿช™nTokens
    • Automated liquidity provisioning for LPs
    • Mechanics
      • Minting nTokens
      • Redeeming nTokens
    • fCash position for nToken holders
    • Yield earning (v2)
    • Risks (v2)
  • โŒ›Tenor Maturity
    • Maturity
    • fCash maturity
    • Quarterly Rolls
  • ๐Ÿ”Leverage vaults
    • Leveraged yield opportunities
    • Vault mechanics
      • Entering
      • Exiting
    • Collateralization & liquidations
    • Balancer/Aura wstETH/WETH Strategy
      • Entering in Bal/Aura wstETH/WETH strategy
      • Exiting from Bal/Aura wstETH/WETH strategy
  • ๐Ÿ›๏ธV3
    • Page 1
Powered by GitBook
On this page
  1. Twitter Threads

Borrower trade (fCash)

PreviousLender Trade 2NextWhat happens at maturity?

Last updated 1 year ago

Let us explore how a borrow trade work on @notionalfinance

Borrowing DAI with ETH Collateral: A Comprehensive Example โฌ‡๏ธ

---

๐Ÿ“ˆ Let's explore a scenario where a user wants to borrow DAI using their $2000 worth of ETH as collateral, with an LTV ratio of 0.5 (50%).

In this case, the user should receive nearly $1000 worth of DAI in return for their borrowing trade. Let's dive in! ๐Ÿ’ฐ

---

BTW

If you make the above trade right now, you would earn 2.27% APY after deducting the interest.

Here is the calc:

---

Back to the system-level explanation

For the system, the selected pool(1-year fDAI, 6-month fDAI, and 3-month fDAI) is essential for determining proportions and exchange rates.

---

Here is what the system-level computation looks like

Proportion (P) = fCash / (DAI + fCash)

Exchange rate = ((1 / Scalar) * (ln(P / (1-P)))) + ((Anchor * time)+1) + (liquidityFee * time)

Interest rate = (Exchange rate - 1) / time

---

Basically, it computes the interest rate based on the utilization of the selected liquidity pool.

To execute the borrowing trade, the user must provide collateral and mint fDAI pair (+ve fDAI and -ve fDAI). A swap between +ve fDAI and cDAI takes place.

---

๐Ÿ”Ž Now, let's focus on the exchange rate of fDAI.

The fDAI value for DAI is calculated to determine the quantity of fDAI to be minted.

For example, if 1043 1-Year fDAI, 1021.5 6-Month fDAI, and 1010.75 3-Month fDAI are worth 1000 DAI (Collateral value * LTV).

---

After swapping +fDAI for DAI, the user receives almost $1000.

It's important to note that the user's portfolio will include -fDAI (equivalent to the initially minted amount) and cDAI worth 1000 DAI (999.8 DAI in this case).

---

๐Ÿ”„ Proportion (P_n) = new fCash balance / (old DAI balance + old fCash balance)

Exchange rate = ((1 / Scalar) * (ln(P_n / (1-P_n)))) + ((Anchor * time)+1) + (liquidityFee * time) DAI received = fDAI minted / Exchange rate

Interest rate = (Exchange rate - 1) / Time

---

๐Ÿ” This trade affects the pool and rates, reshaping them for future transactions.

It's important to consider the dynamic nature of the liquidity pool and its impact on borrowing conditions.

Stay informed and make the most of your assets!

---

๐Ÿ’ผ Whether you're an investor or a borrower, understanding the intricacies of DeFi platforms like Notional is crucial.

Stay knowledgeable, explore opportunities, and make informed decisions.

Here is a better context to understand the reason behind the swap:

๐Ÿงต
https://twitter.com/diligentdeer/status/1649124825435361281?s=20