Published
Edited
Nov 25, 2019
1 fork
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
currentMarketShare = tradingVolume / marketSize
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
collateral = synthsSupply.map(s => s * collateralRatio)
Insert cell
Insert cell
debtService = synthsSupply.map(supply => supply * costOfDebt)
Insert cell
netValueFlow = fees.map((fee,i) => fee - debtService[i])
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
leveredBeta = beta * (1+(debtPercentage))
Insert cell
equityCost = riskFreeRate + leveredBeta * 0.14
Insert cell
WACC = ((equityCost) * (1-debtPercentage)) + (debtPercentage * costOfDebt)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
discountedSOV = getNPV(aSOV)
Insert cell
Insert cell
Insert cell
Insert cell
discountedTerminalValue = terminalValue / ((1+discountRate)**(fees.length + 1))
Insert cell
Insert cell
netPresentValue = Math.round((discountedFees + discountedTerminalValue) * (1 - probabilityOfFailure))
Insert cell
netPresentSOV = Math.round((discountedSOV + discountedTerminalSOV) * (1 - probabilityOfFailure))
Insert cell
combinedNPV = netPresentValue + netPresentSOV
Insert cell
Insert cell
Insert cell
import {slider} from "@jashkenas/inputs"
Insert cell
import {createMilestones, createQualifers, createTokenModel, createDecentralization, calculateProbabilityFailure} from '@bgits/cryptonetwork-probability-of-failure'
Insert cell
Insert cell
getNPV = (aggregateDollarDemandPerYear) => Math.floor(NPVaggregate(discountRate, ...aggregateDollarDemandPerYear))
Insert cell
NPVaggregate = function (rate) {
var npv = arguments[1];
for (var i = 2; i < arguments.length; i++) {
npv +=(arguments[i] / Math.pow((1 + rate), i - 1));
}
return Math.round(npv * 100) / 100;
}
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