Merge pull request #963 from ripple/calc-new-numbers

Updated Bitcoin numbers for the Carbon Calculator
This commit is contained in:
Rome Reginelli
2021-02-09 10:44:20 -08:00
committed by GitHub
2 changed files with 7 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
let calculator_data = {
'btc': {
'kWh': 487.3687578,
'tons': 0.0000002426743,
'gas': 38.77453
'kWh': 951.58,
'tons': 0.000000466,
'gas': 75.7
},
'eth': {
'kWh': 42.86334969,
@@ -87,6 +87,7 @@ function doCalculations(val){
// This is for the kWh comparison, it animates the transition/selection
if (data_comp === 'kWh' && kWhComp > .02){
if ( kWhComp > 1.1 ) { kWhComp = 1.03 };
let dot = document.getElementById(data_comp + '-' + data_type + '-dot');
dot.style.transition = "all .2s ease-in-out";
dot.style.transform = "scale(" + kWhComp * 100 + ")";

View File

@@ -282,9 +282,9 @@
<tbody>
<tr>
<td class="fs-5-5 bold"><div class="w48 mr-3 text-center d-inline-block"><img class="h36" src="assets/img/icons/bitcoin@2x.png"></div>Bitcoin</td>
<td class="fs-6 text-right">487.3688<span class="ratio"> kWh/tx</span></td>
<td class="fs-6 text-right">2.42<sup>-7</sup><span class="ratio"> Mt/tx</span></td>
<td class="fs-6 text-right">38.7745<span class="ratio"> gal/tx</span></td>
<td class="fs-6 text-right">951.58<span class="ratio"> kWh/tx</span></td>
<td class="fs-6 text-right">4.66<sup>-7</sup><span class="ratio"> Mt/tx</span></td>
<td class="fs-6 text-right">75.7<span class="ratio"> gal/tx</span></td>
</tr>
<tr>
<td class="fs-5-5 bold"><div class="w48 mr-3 text-center d-inline-block"><img class="h36" src="assets/img/icons/ethereum@2x.png"></div>Ethereum</td>