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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more