Published
Edited
Dec 21, 2019
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`### Consider the Store of value (SOV) use cases for ETH`
Insert cell
viewof deFiValueLocked = slider({
min: 10000000,
max: 10000000000,
step: 1000000,
value: 400000000,
title: "ETH being used a collateral for DeFi",
description: "increments by 10 million"
})
Insert cell
viewof collateralGrowthRate = slider({
min: .01,
max: 3,
step: .1,
value: 1,
title: "Growth rate of collateral",
description: "percentages from 1% through 100%"
})
Insert cell
aSOV = {
let arr = [deFiValueLocked]
for(let i=1; i < 10; i++) {
let incremental = arr[i-1] * collateralGrowthRate;
arr[i] = incremental + arr[i-1];
}
return arr.map((d,i,a) => {
if (!i) return d;
return d - a[i-1]
})
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
discountedSOVV = getNPV(aSOV)
Insert cell
Insert cell
terminalSOV = {
let lastYearFees = aSOV.slice(-1)[0]
return lastYearFees / (discountRate - terminalGrowthRate)
}
Insert cell
discountedTerminalSOV = terminalSOV / ((1+discountRate)**11)
Insert cell
Insert cell
npvFees = discountedMonetaryValue + discountedTerminalValue + discountedSOVV + discountedTerminalValue
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more