# fCash Valuation 1

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.

<figure><img src="https://1148337737-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVd4z5s2l5q7DqJhx3Eqg%2Fuploads%2FcjqgQTKmnFYYwomL99MZ%2Fimage.png?alt=media&#x26;token=51761f7d-a70c-46b9-a2d8-8fe8396cab62" alt=""><figcaption></figcaption></figure>

Notional uses this future value to value the fDAI.&#x20;

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&#x20;

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

<figure><img src="https://1148337737-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVd4z5s2l5q7DqJhx3Eqg%2Fuploads%2FhltTHCX3Qhd2mc1OxtWN%2Fimage.png?alt=media&#x26;token=5359d31d-d2f8-4772-a953-01c698fd2e97" alt=""><figcaption></figcaption></figure>

\---

Notional account would swap your 1051.27 +ve fDAI for 1051.27 DAI worth of cDAI.&#x20;

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.

<figure><img src="https://1148337737-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVd4z5s2l5q7DqJhx3Eqg%2Fuploads%2FwQIsKo3yuArR6ONCX5fs%2Fimage.png?alt=media&#x26;token=8677d842-f6fa-42dd-81f7-900f55db561b" alt=""><figcaption></figcaption></figure>

On discounting, the PV of your 1051.27 +ve fDAI is 1012.57 DAI.&#x20;

\---

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.&#x20;

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

## $$Future Value = PresentValue(e^{Rate\*Duration})$$

## $$1051.27 = 1000(e^{0.05\*1})$$

\---

## $$PresentValue = FutureValue(e^{-Rate\*Duration})$$

## $$1051.27=1051.27(e^{-0.05\*0})$$

\---

## $$LendDuration=0.25Year$$

## $$Maturity = 1Year$$

## $$TimeToMaturity=1-LendDuration=0.75$$

## $$PresentValue = FutureValue(e^{-Rate\*Duration})$$

## $$1012.57=1051.27(e^{-0.05\*0.75})$$

\---

## $$Future Value = PresentValue(e^{Rate\*Duration})$$

## $$1048.12 = 1000(e^{(0.05-0.003)\*1})$$

##

##

\
\ <br>

\ <br>
