๐Ÿ““
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
  • Appendix
  1. Twitter Threads

fCash Valuation 1

PreviousAMM Overview and TradesNextLiquidity Fees

Last updated 2 years ago

Do you know what the most critical part behind the fixed-rate products offered by Notional Finance is? fCash! Correct

But how are they valued?

A ๐Ÿงต on how to value fCash as a Lender and as a Borrower

---

fCash is a digital representation of a bond that has both, an asset component (a claim on funds in the future) and a liability component (an obligation to repay principal + interest). Keep reading to know how exactly these fCash are valued across time.

Ref ๐Ÿงต for a quick refresher on fCash.

[Link to the thread]

---

Assume you are a lender and you wish to deposit 1000 DAI to get 5% APY in a span of 1 year. So, you should get 1051.27 DAI at the end of the year without considering fees.

Notional uses this future value to value the fDAI.

1 +ve fDAI = 1000 / 1051.27 = 0.9512 DAI

---

To lend, you deposit 1000 DAI in Notional and it would swap cDAI equivalent to 1000 DAI for +ve fCash at an exchange rate of 0.9512 DAI in the fDAI 1-Year liquidity pool.

After the trade, you would have 1051.27 +ve fDAI

Ref ๐Ÿงต for a quick refresher on fCash markets.

[Link to the thread]

---

After a year, we make the reverse computation i.e. discounting the future value to the present to value fDAI. Assuming the rates are still 5% and the duration has reduced to "0" as the bond is about to mature (you held the funds for a full year). On discounting, the PV of your 1051.27 +ve fDAI is 1051.27 DAI.

Therefore 1 +ve fDAI = 1 DAI

---

Notional account would swap your 1051.27 +ve fDAI for 1051.27 DAI worth of cDAI.

You can convert your assets to 1051.27 DAI or can earn the compound variable rates on your cDAI tokens.

But what happens if you want to exit before 1 year (3 months for example)?

---

Continuing our example where you had 1051.27 +ve fDAI, and you want to exit after 3 months.

To compute the value of your fDAI, let us assume the rates are still at 5% and the duration has reduced to "3/4". The Duration refers to the time left to maturity.

On discounting, the PV of your 1051.27 +ve fDAI is 1012.57 DAI.

---

The exchange rate turns out to be 0.963 (1012.57 / 1051.27) and on exiting, the Notional account would swap your 1051.27 +ve fDAI for 1012.57 DAI worth of cDAI.

One of the core assumptions in all the examples in the thread is the consideration of fees to be zero.

That's a wrap

---

[OPTIONAL]

We are bringing a series of threads to better understand a large and complex codebase (~12,000+ lines of Solidity!) most simplistically.

๐Ÿ‘€ What's upcoming?

๐Ÿ”น Fees at Notional for Lending & Borrowing trades

๐Ÿ”น fCash valuation tool for Lenders

---

Appendix

FutureValue=PresentValue(eRateโˆ—Duration)Future Value = PresentValue(e^{Rate*Duration})FutureValue=PresentValue(eRateโˆ—Duration)

1051.27=1000(e0.05โˆ—1)1051.27 = 1000(e^{0.05*1})1051.27=1000(e0.05โˆ—1)

---

PresentValue=FutureValue(eโˆ’Rateโˆ—Duration)PresentValue = FutureValue(e^{-Rate*Duration})PresentValue=FutureValue(eโˆ’Rateโˆ—Duration)

1051.27=1051.27(eโˆ’0.05โˆ—0)1051.27=1051.27(e^{-0.05*0})1051.27=1051.27(eโˆ’0.05โˆ—0)

---

LendDuration=0.25YearLendDuration=0.25YearLendDuration=0.25Year

Maturity=1YearMaturity = 1YearMaturity=1Year

TimeToMaturity=1โˆ’LendDuration=0.75TimeToMaturity=1-LendDuration=0.75TimeToMaturity=1โˆ’LendDuration=0.75

PresentValue=FutureValue(eโˆ’Rateโˆ—Duration)PresentValue = FutureValue(e^{-Rate*Duration})PresentValue=FutureValue(eโˆ’Rateโˆ—Duration)

1012.57=1051.27(eโˆ’0.05โˆ—0.75)1012.57=1051.27(e^{-0.05*0.75})1012.57=1051.27(eโˆ’0.05โˆ—0.75)

---

FutureValue=PresentValue(eRateโˆ—Duration)Future Value = PresentValue(e^{Rate*Duration})FutureValue=PresentValue(eRateโˆ—Duration)

1048.12=1000(e(0.05โˆ’0.003)โˆ—1)1048.12 = 1000(e^{(0.05-0.003)*1})1048.12=1000(e(0.05โˆ’0.003)โˆ—1)

๐Ÿงต