adhurjaty / prediction-app

2 stars 0 forks source link

Hub and spoke bet #54

Closed wongway closed 2 years ago

wongway commented 3 years ago

This needs a better name for the bet type.

Updated flow:

  1. Hub submits bet to API with bet title and binary outcomes
  2. Commissioner sets up bet and adds group members
  3. Hub adds max amount they are willing to lose (payable action)
  4. Commissioner informs spokes of bet availability
  5. Spokes place bets against hub unless there aren't any funds left (payable action)

Old proposed flow for using this bet type:

  1. Hub submits bet to API without setting value parameters
  2. Commissioner sets up bet and adds group members
  3. Spokes see bet, are invited to propose an amount to bet
  4. Spoke proposes an amount to bet, no currency transferred yet
  5. Hub accepts or rejects proposal: acceptance triggers currency transfers from bettors to contract
sbwildflowers commented 3 years ago

A few thoughts &/ questions:

wongway commented 3 years ago
adhurjaty commented 3 years ago

I think we should make this the simplest usable betting scheme for now. Tony's proposal seems like the simplest way to do things. We can tweak things once we are able to reliably publish a smart contract. I really do like the idea of the hub setting a cap on the amount he's willing to lose and the idea of non-50/50 bets. I imagine those will be relatively straight-forward to implement, but it does add extra complexity

sbwildflowers commented 3 years ago

Apparently creating domain definitions doesn't not prevent one from misreading said domain definitions haha. I'm on the same page now.