michael-spengler / klopapier.exchange

The Klopapier Game
https://klopapier.exchange
3 stars 2 forks source link

Smart Contract(s) Development #10

Open michael-spengler opened 3 years ago

michael-spengler commented 3 years ago

As we understood that this plan: https://github.com/michael-spengler/klopapier.exchange/issues/7 was not too cool (no mintable tokens ...) I created this new issue with a promising game plan :)

  1. A user pays the people working at a central bank for printing CBWP (e.g. paying 0.02 Ether to receive 2.000.000 CBWP)
  2. User always bets CBWP
michael-spengler commented 3 years ago

Key words in brainstorming mode: 100 % of our wipepaper always equals to 1 ETH

if we can't pay a potential winner we just print more CBWP

we check the total balance of CBWP ...

we always print 10 % more than before...

30 seconds betting time per bet

The Wipepaper is needed for the bet --> user can swap eth to wipepaper (see step 1) ---> bet --> if user lost we would burn the CBWP otherwise the user would get the double amount and could swap it back to eth or bet again.

Question: Could we have graph which displays the two piles compare to https://www.googlefight.com/fabian-vs-michael.php ... WipePaper vs. Ether

Question: Can we swap ETH for our CBWP?

fabianriewe commented 3 years ago

@michael-spengler does the new contract match your expectations ?

michael-spengler commented 3 years ago

@fabianriewe Troy and I will try using it - we are currently in pair programming mode on that.

michael-spengler commented 3 years ago

If I get things correctly we could also promote the smart contract encouraging other dapp UI developers to leverage it within their UI...

https://docs.metamask.io/guide/initializing-dapps.html#the-contract-abi ...

michael-spengler commented 3 years ago

From my first impression this looks pretty cool: https://github.com/michael-spengler/klopapier.exchange/blob/main/Token.sol

tests ongoing...