Monetary Transactions
Cryptocurrency values are treated the same way as a very smart contracts, except they follow a very specific contract type that adheres to ERC20. In the code below, we will fund a user’s account, which we could do after a credit card transaction.
Note that Credenza Passport and Credenza Presence already have a mechanism to automate the workflow of a fiat to stored value transactions.
This code would transfer 100 tokens (you can decide what that means) from the treasury to the user. The smart contract could be modified so that the client can revoke fan tokens at any time, especially if there is theft abuse of the system. Contrary to popular belief, blockchain transactions can effectively be rolled back — it’s just a credit and a debit instead of the original incorrect transaction being deleted. The smart contract (even an ERC20) can be extended to offer the client this flexibility.