Offsetra / ethereum-emissions-calculator

JavaScript utility to calculate the CO2 emissions of an Ethereum wallet. Powered by the Etherscan.io API.
Other
55 stars 16 forks source link

Documentation of emissions methodology #1

Open kylemcdonald opened 3 years ago

kylemcdonald commented 3 years ago

Hello! I'm looking for more information about historical emissions estimates.

I can see that there is a TODO in the code right now, to host the emissions factor code: https://github.com/Offsetra/ethereum-emissions-calculator/blob/main/src/index.ts#L12

Right now I am able to estimate historical power usage based on data from Digiconomist, but presumably the energy sources of ethereum network change over time as well. Any tips would be helpful.

brendanmc6 commented 3 years ago

Thanks Kyle, sorry I still haven't got around to migrating over the methodology into code-- my colleagues do it all in Excel at the moment (they don't know javascript).

They have been maintaining a big writeup on the methodology, and they link to the tabular data in there as well. https://www.notion.so/offsetra/Carbon-FYI-Methodology-51e2d8c41d1c4963970a143b8629f5f9

Open to feedback or questions!

brendanmc6 commented 3 years ago

I will leave this issue open for others to find, and perhaps in the future we can gather some more devs willing to contribute a PR to automate this methodology. Otherwise it might be some time before I can get to it...

kylemcdonald commented 3 years ago

Thanks! I converted the spreadsheet to code, and now I can account for historical emissions more accurately. https://github.com/kylemcdonald/cryptoart-emissions/blob/main/ethereum_emissions.py

I did not automate the mining pool emissions intensity calculation, because I couldn't find the right source for it. I just went with the weighted average of 0.486 kgCO2/kWh.

I guess the bigger questions here are about Digiconomist's assumptions and Offsetra's 20% overhead.

kylemcdonald commented 3 years ago

@brendanmc6 Hi Brendan, Is there any chance we could have a longer discussion about this? I'm working on a project where the accuracy of these estimates are really important, and looking to partner with the right folks. My DMs are open at https://twitter.com/kcimc Thanks 🤗

brendanmc6 commented 3 years ago

@kylemcdonald Andrew and Alex (colleages at offsetra) have been doing more research work, Alex is also looking deeper into the common arguments that Miners use renewables at a rate higher than the average energy mix for a given region esp. In China. I can't comment too much on that but I'll try to put you in touch with them.

They did remove the 20% assumption from the total though and I committed that to the code a few days ago.

kylemcdonald commented 2 years ago

A lot has happened in the last year, and I wanted to drop links to some of my work for anyone who ends up in this thread: