The Smart Contract-Based Footprint Calculator is a decentralized tool designed to estimate the carbon footprint associated with pete consumption. This smart contract operates on a blockchain platform and provides a straightforward way to calculate and retrieve carbon emission data from the blockchain.
Users can calculate the carbon footprint from the set Beef carbon emission factor. This public function returns an estimate of the carbon footprint associated with the weight of the Beef.
Overview:
- This function calculates the carbon footprint according to annual consumption of imported beef.
Parameter:
- consumption(kg/year): "consumption" is the annual consumption value of imported beef.
Example:
- consumption: 1000(kg/year)
1. Scale by 10000
2. calculateCO2ByImportedBeef(10000000)
3. 3020000000000000000000 (in UI it should be divided by 18 decimals 3020)
Overview:
- This function calculates the carbon footprint according to annual consumption of domestic beef.
Parameter:
- consumption: "consumption" is the annual consumption value of domestic beef.
Example:
- 1000kg/year(consumption)
1. Scale by 10000
2. calculateCO2ByDomesticBeef(10000000)
3. 2850000000000000000000 (in UI it should be divided by 18 decimals 2850)
The Smart Contract-Based Carbon Footprint Calculator has been deployed on the Gesia Chain. Below are the deployment details:
Contract Address: 0x6eBC3598057416d1F25AeE5D5F180002A13f9344
Transaction Hash: 0x8d9d58b6892b512ecbfc015c4ce265b24b25b5cc1bb2f68595d66a2401402fd9
You can verify the deployment of the Calculator Contract by checking the contract address and transaction hash on Gesia Explorer. Here are the links for your convenience:
The carbon emissions are calculated based on the emission factors and calculation methods referenced from Prediction of the Carbon Dioxide Emission Change Resulting from the Changes in Bovine Meat Consumption Behavior in Korea
The following formula is the essential formula of Carbon Footprint Calculator.
# emission factor of imported beef: 3.02
# emission factor of domestic beef: 2.85
annual beef consumption(kg/yr) x emission factor of beef(kgCO2/kg)
Please refer to the Link for more detailed info.
This project is licensed under the MIT License.