A smart contract based booking platform for barbers
Website: https://barber-to-customer-escrow.vercel.app/
- the customer makes a booking in advance
- the payment is held in an escrow contract, e.g. 50 DAI, until the time of the haircut
- during this time, the customer's funds are placed in Aave V2 to earn interest
- an arbiter approves that the haircut is complete to a good standard
- the initially deposited funds are withdrawn from Aave
- the customer gets some of the accrued interest
- the barber gets their payment & some of the accrued interest as well (as an incentive to use this dapp)
To see a simulation of this, view this script
- the barber gets the interest earned (another incentive to use this dapp)
- the customer only gets back their deposit
- the barber gets both the deposit for the haircut, plus the interest earned
- When a booking is made, an SMS message is sent to the barber using a combination of Twilio's SMS API and Alchemy Notify, which listens to on-chain activity at the booking platform's contract address