Drinkers
The local dive bar goer, the fist pumping clubber, the high class fancy rooftop lounger, or the occasional casual drinker, this is the DAO for you.
function startHOUR(uint _PDEid, uint _accessCode) public payable {
uint validPDE;
for (uint i = 0; i < pdes.length; i++) {
if (pdes[i]._PDEid == _PDEid && pdes[i]._accessCode == _accessCode) {
validPDE = 1;
} else {
validPDE = 0;
}
}
require(validPDE == 1);
require(msg.value == happyHourFee, "Invalid Happy Hour Fee.");
givePoolDrinkingId();
drinkingIDtoPDEid[drinkingID[msg.sender]] = _PDEid;
happyHourFeePool += 1;
timeIN = block.timestamp;
}Last updated