This contract should be the controller for VATT token and:
car registers -> set up the cap of VATT with sum of all car registrations (their battery capacity) and this contract owns the token
car connects and charges -> user sends VATT token to this contract
car connects and allows discharging -> user receives VATT token from this contract
P.S. VATT token is a debt token meaning on charging you get debt in form of the tokens. As we associate the ethereum address to the car of the user in micro-service, even if the person loses their wallet, they will get charged at the end of the billing cycle. When they provide the electricity to the grid, they get their debt reduced.
This contract should be the controller for VATT token and:
P.S. VATT token is a debt token meaning on charging you get debt in form of the tokens. As we associate the ethereum address to the car of the user in micro-service, even if the person loses their wallet, they will get charged at the end of the billing cycle. When they provide the electricity to the grid, they get their debt reduced.