Guziec-Lobuziec / ECMarket

0 stars 1 forks source link

Agreement Manager - agreement A2.1 implementation (auction) #26

Open Guziec-Lobuziec opened 6 years ago

Guziec-Lobuziec commented 6 years ago

Scenario:

  1. S creates (sets starting price, ending condition and flag indicating if participants can become buyers without previous acceptance from seller)
  2. B1 joins and sends k1 (k1 > starting price)
  3. optional S accepts B1
  4. B2 joins and sends k2 (k2 > k1)
  5. optional S accepts B2
  6. B1 withdraws k1 5a. B1 sends b1 (k1+b1 > k2) [k3 = k1 + b1]
  7. B3 joins and sends k3 (k3 > k2 || k3>k1+b1) ... N. Bm sends kN (kN > k(N-1)) N+1. Auction ends N+2. S withdraws kN and concludes N+3. Bm concludes N+4. Other Bs withdraw what they sent Custom properties: ending condition, require acceptance flag, number of overbids