blockparty icon indicating copy to clipboard operation
blockparty copied to clipboard

Create user state function

Open makoto opened this issue 8 years ago • 1 comments

  1. 'not registered' if isRegistered(address) == false
  2. 'registered' if isRegistered(address) == true && isAttended(address) == false
  3. 'attended' if isAttended(address) == true && participants[address].payout == 0 isPaid(address) == false
  4. 'won' if isAttended(address) == true && participants[address].payout > 0 isPaid(address) == false
  5. 'earned' if isPaid(address) == true

makoto avatar Feb 18 '17 13:02 makoto

Maybe is better if this user state function remains on app side and don't put on smart contract high level functions

hacktar avatar Feb 18 '17 16:02 hacktar