Donate 1 matic to charity to receive 1 karma coin. Donate 100 matic to receive 100 karma and so on. Interaction with smart contract via front-end which where we send matic. The smart contract will send matic to charity address. The smart contract will also mint 1 karma per matic and give it to the doner.

Karma Coin showcase

How it's made

Front-end is in basic html/css. Backend uses solidity, hardhat, truffle and polygon testnet. User selects a charity of this choice and deposits matic into the smart contract which is deployed on polygon testnet. The smart contract sends matic to the charity address. Smart contract also mints 1 karma token per matic and sends it back to the user who deposited matic.