Created on 13th February 2022
•
Today Ola and Uber have lots of user data and any data leak can lead to privacy concerns.
Privacy Issues : There have been many cases in the past where data got leaked and user's privacy was at risk.
Costly Payments due to Intermediaries : The service providers levy a 10-20 percent charge on the total fare. Consequently, it proves costly for a customer while the driver also gets the payment after a commission deduction.
3)Insufficient Transparency : No transparency in surge pricing done by these centralized ridesharing companies.
4)If Uber plans to stop it's services, then people would have lot of difficulty in travelling.
DUber tries to solve the above problems using blockchain based technology.
The major benefits of DUber are :-
1)Fast, Secure, and Efficient Transactions : Blockchain enables riders via the decentralized network to communicate directly with drivers. It minimizes the extra costs due to the presence of multiple intermediaries.
2)Transparent and Accurate Pricing Model
Due to blockchain’s potential to provide accountability, passengers can assess how a ride-sharing business operates. A smart contract integration ensures accurate pricing every time based on the basic parameters specified in it.
3)Strengthened Security and Privacy Standards : DUber only stores Metamask account number and no personal information. Also since blockchain is tamperproof, all transactions are secured.
4)Anyone can earn money with their vehicle using the approach of a decentralized car-sharing network. Due to no intermediaries, the market opportunities expand for those with a smartphone and a secure modern car.
The DUber app can be extended further to build a community of car owners and fleet managers that jointly operate a pool of cars, rented to passengers in a transparent and peer-to-peer (P2P) fashion based on time, route and distance without central intermediaries.
There were a lot of BUGS and HURDLES while building the project.
While testing the smart contract for correct transaction I was calculating prevBalance(rider) = newBalance(rider) + rideFee but I was getting Failed testcases over here and after 2-3 hrs it struck to me that GAS fee was also getting used and I had to check prevBalance(Driver)+rideFee=newBalance(Driver) to verify.
It was difficult to integrate Truffle environment having both ReactJS and Ethereum Smart contracts and I had to look into a lot of youtube videos and see documentation to get the correct implementation.
3)Different implementations of Truffle had the .abi files of contract at different places and I had to select the correct implementation to get my project working.
4)I was getting memory leaks when running the app and it took my nearly4-5 hrs to debug it. It was because I was using useEffect() and window.addEventListener() together and this was actually causing memory leaks.
5)It was difficult to integrate all async() functions and web3 components and it took me some time to understand what's happening. Also I passed a lot of props in the Route components and I had to console.log() at each event to check if everything worked well together.