Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#denarius').keyup(function(ev){
- var total = $('#denarius').val() * 1;
- $('#total').html((total).toFixed(8));
- var denariusapr = 0.06;
- $('#denariusAPR').html((denariusapr).toFixed(2));
- var fortunastakepay = total * denariusapr * 0.33;
- $('#fortunastakePay').html((fortunastakepay).toFixed(8));
- var fortunastakepaydaily = (total * denariusapr * 0.33) / 365;
- $('#fortunastakePayDaily').html((fortunastakepaydaily).toFixed(8));
- var fortunastakepaymonthly = (total * denariusapr * 0.33) / 12;
- $('#fortunastakePayMonthly').html((fortunastakepaymonthly).toFixed(8));
- var stakingpay = total * denariusapr * 0.67;
- $('#stakingPay').html((stakingpay).toFixed(8));
- var stakingpaydaily = (total * denariusapr * 0.67) / 365;
- $('#stakingPayDaily').html((stakingpaydaily).toFixed(8));
- var stakingpaymonthly = (total * denariusapr * 0.67) / 12;
- $('#stakingPayMonthly').html((stakingpaymonthly).toFixed(8));
- var totalpaydaily = (total * denariusapr * 1) / 365;
- $('#totalPayDaily').html((totalpaydaily).toFixed(8));
- var totalpaymonthly = (total * denariusapr * 1) / 12;
- $('#totalPayMonthly').html((totalpaymonthly).toFixed(8));
- var totalpayyearly = (total * denariusapr * 1);
- $('#totalPayYearly').html((totalpayyearly).toFixed(8));
- });
- $('#fortunastake').keyup(function(ev){
- var totalfs = $('#fortunastake').val() * 1;
- $('#totalfs').html((totalfs).toFixed(0));
- var totalfsd = $('#fortunastake').val() * 5000;
- $('#totalfsd').html((totalfsd).toFixed(0));
- var dailyrewards = window.DAILYREWARD;
- $('#dailyrewards').html((dailyrewards).toFixed(8));
- var fortunastakedailypayout = totalfs * dailyrewards;
- $('#fortunastakeDailyPayout').html((fortunastakedailypayout).toFixed(8));
- var fortunastakemonthlypayout = fortunastakedailypayout * 30;
- $('#fortunastakeMonthlyPayout').html((fortunastakemonthlypayout).toFixed(8));
- var fortunastakeyearlypayout = fortunastakedailypayout * 365;
- $('#fortunastakeYearlyPayout').html((fortunastakeyearlypayout).toFixed(8));
- var denariusapr = 0.06;
- var fortunastake30days = ((totalfs * 5000 * denariusapr * 0.67) / 365) * 30;
- $('#fortunastake30days').html((fortunastake30days).toFixed(8));
- var fortunastake90days = ((totalfs * 5000 * denariusapr * 0.67) / 365) * 90;
- $('#fortunastake90days').html((fortunastake90days).toFixed(8));
- var fortunastake180days = ((totalfs * 5000 * denariusapr * 0.67) / 365) * 180;
- $('#fortunastake180days').html((fortunastake180days).toFixed(8));
- });
- fetch('height.txt')
- .then(function(response) {
- return response.json();
- })
- .then(function(data) {
- if (data)
- $('#height').html("");
- $("#height").append(data);
- window.blockheight = (data);
- })
- .catch(function(err) {
- console.log(err);
- });
- fetch('chaindataheight.txt')
- .then(function(response) {
- return response.json();
- })
- .then(function(data) {
- if (data)
- $('#chaindataheight').html("");
- $("#chaindataheight").append(data);
- window.haindataheight = (data);
- })
- .catch(function(err) {
- console.log(err);
- });
- fetch('md5.txt')
- .then(response => response.text())
- .then((data) => {
- $('#md5').html("");
- $("#md5").append(data);
- })
- fetch('fscount.txt', {mode: 'no-cors'})
- .then(function(response) {
- return response.json();
- })
- .then(function(data) {
- if (data)
- $('#fscount').html("");
- $("#fscount").append(data);
- window.fscounttotal = (data);
- })
- .catch(function(err) {
- console.log(err);
- });
- fetch('getinfo.json')
- .then(function(response) {
- return response.json();
- })
- .then(function(data) {
- if (data.version)
- window.VERSION = (data.version);
- $('#version').html("");
- $("#version").append(window.VERSION);
- if (data.protocolversion)
- window.PROTOCOLVERSION = (data.protocolversion);
- $('#protocolversion').html("");
- $("#protocolversion").append(window.PROTOCOLVERSION);
- if (data.blocks)
- window.DAEMONBLOCKS = (data.blocks);
- $('#daemonblocks').html("");
- $("#daemonblocks").append(window.DAEMONBLOCKS);
- if (data.connections)
- window.CONNECTIONS = (data.connections);
- $('#connections').html("");
- $("#connections").append(window.CONNECTIONS);
- if (data.moneysupply)
- window.MONEYSUPPLY = (data.moneysupply);
- var moneysupply = (window.MONEYSUPPLY);
- var locked = ((window.fscounttotal * 5000) / moneysupply) * 100;
- $('#lockeddenarius').html("");
- $('#lockeddenarius').html((locked).toFixed(2));
- $('#moneysupply').html("");
- $("#moneysupply").append(window.MONEYSUPPLY);
- if (data.difficulty['proof-of-work'])
- window.PROOFOFWORK = (data.difficulty['proof-of-work']);
- $('#daemonproofofwork').html("");
- $("#daemonproofofwork").append(window.PROOFOFWORK);
- if (data.difficulty['proof-of-stake'])
- window.PROOFOFSTAKE = (data.difficulty['proof-of-stake']);
- $('#daemonproofofstake').html("");
- $("#daemonproofofstake").append(window.PROOFOFSTAKE);
- })
- .catch(function(err) {
- console.log(err);
- });
- fetch('getmininginfo.json')
- .then(function(response) {
- return response.json();
- })
- .then(function(data) {
- if (data.netmhashps)
- window.DAEMONHASHRATE = parseFloat((data.netmhashps) / 1000).toFixed(2) + " Gh/s";
- $('#daemonhashrate').html("");
- $("#daemonhashrate").append(window.DAEMONHASHRATE).hide().fadeIn('slow');
- if (data.netstakeweight)
- window.DAEMONSTAKEWEIGHT = parseFloat((data.netstakeweight)).toFixed(2);
- $('#daemonstakeweight').html("");
- $("#daemonstakeweight").append(window.DAEMONSTAKEWEIGHT).hide().fadeIn('slow');
- })
- .catch(function(err) {
- console.log(err);
- });
- fetch('win.json')
- .then(function(response) {
- return response.json();
- })
- .then(function(data) {
- if (data.dailyreward)
- window.DAILYREWARD = parseFloat((data.dailyreward).toFixed(8));
- $('#windailyreward').html("");
- $("#windailyreward").append(window.DAILYREWARD);
- if (data.blocktime)
- window.WINBLOCKTIME = parseFloat((data.blocktime).toFixed(2));
- $('#winblocktime').html("");
- $("#winblocktime").append(window.WINBLOCKTIME).hide().fadeIn('slow');
- if (data.pos)
- window.WINPOS = parseFloat((data.pos) * 100).toFixed(2) + " %";
- $('#winpOs').html("");
- $("#winpOs").append(window.WINPOS);
- if (data.pow)
- window.WINPOW = parseFloat((data.pow) * 100).toFixed(2) + " %";
- $('#winpOw').html("");
- $("#winpOw").append(window.WINPOW);
- var emission = parseFloat((data.pow)).toFixed(2);
- var emissions = (2880 * 3 * emission);
- $('#emissions').html((emissions).toFixed(8));
- var hemission = window.WINBLOCKTIME;
- var houremissions = (2880 * (hemission / 60)) / 60;
- $('#houremissions').html((houremissions).toFixed(8));
- var hourlyemissions = (emissions / houremissions);
- $('#hourlyemissions').html((hourlyemissions).toFixed(8));
- var dailyemissions = (hourlyemissions * 24);
- $('#dailyemissions').html((dailyemissions).toFixed(8));
- var hourlyblocks = (60 * 60) / hemission;
- $('#hourlyblocks').html((hourlyblocks).toFixed(0));
- var dailyblocks = (hourlyblocks * 24);
- $('#dailyblocks').html((dailyblocks).toFixed(0));
- var bossratio = (dailyemissions / dailyblocks);
- $('#bossratio').html((bossratio).toFixed(2));
- var powrewardend = 3000000;
- var powblockrewardend = (powrewardend - window.blockheight);
- $('#powblockrewardend').html((powblockrewardend).toFixed(0));
- var totalpowleft = (powblockrewardend * bossratio);
- $('#totaldleft').html((totalpowleft).toFixed(2));
- var estimatedsupply = window.MONEYSUPPLY + totalpowleft;
- $('#totalsupplypowend').html((estimatedsupply).toFixed(2));
- var tenstakingestimate = (0.10 * estimatedsupply * 0.06) / 365;
- $('#tenstakingestimate').html((tenstakingestimate).toFixed(2));
- var quarterstakingestimate = (0.25 * estimatedsupply * 0.06) / 365;
- $('#quarterstakingestimate').html((quarterstakingestimate).toFixed(2));
- var fiftystakingestimate = (0.50 * estimatedsupply * 0.06) / 365;
- console.log("Denarius - Better than Bitcoin");
- console.log("Block 3mil Daily Emissions Estimates");
- console.log("50% Staking Estimate - " + fiftystakingestimate);
- $('#fiftystakingestimate').html((fiftystakingestimate).toFixed(2));
- var hundredstakingestimate = (1 * estimatedsupply * 0.06) / 365;
- console.log("100% Staking Estimate - " + hundredstakingestimate);
- $('#hundredstakingestimate').html((hundredstakingestimate).toFixed(2));
- })
- .catch(function(err) {
- console.log(err);
- });
Add Comment
Please, Sign In to add comment