Open aghrist opened 1 month ago
Contract to govern taking rides.
startRide should record the starting station in the transaction. endRide should look at that starting station and from the end station, calculate the fare owed and deduct tokens from the user wallet accordingly.
Contract to govern taking rides.
startRide should record the starting station in the transaction. endRide should look at that starting station and from the end station, calculate the fare owed and deduct tokens from the user wallet accordingly.