Just developed a dapp base on Stacks, the contract is written with Clarity and everyone can read and verify. Visit vs.btc.us and let’s make a bet!
Very cool!
Does this mean that betting on 3 basically has double odds since I’ll win whether the random number is 3 or 24?
Unfortunately I just got this error when trying to place a bet. Are you getting the same?
Error: Unable to get origin for request: eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJzZW5kVG9TaWduSW4iOmZhbHNlLCJhcHBEZXRhaWxzIjp7Im5hbWUiOiJ2cyIsImljb24iOiJodHRwczovL2kucG9zdGltZy5jYy9uTFNiV2dGcy9sb2dvLnBuZyJ9LCJjb25uZWN0VmVyc2lvbiI6IjYuMC4wIiwianRpIjoiMjdjNWY3ZjUtYzkyYS00YmY5LTk3NmUtYzI4NDFhN2E4Nzk3IiwiaWF0IjoxNjI4NTA2NzA5LCJleHAiOjE2Mjg1MTAzMDksImlzcyI6ImRpZDpidGMtYWRkcjoxNVA4RDZNd01YMjY0UlpvQmpNOXJWWGFwN0hhcDFYd1V5IiwicHVibGljX2tleXMiOlsiMDIzMjMxNDQxM2NkYmFjMWYzNWRiNzIxYjE1NzQzYzA1MmVmMTQxYTRkNDU1YjUzZGIyODgyMGVlMzNjN2ViMDk1Il0sImRvbWFpbl9uYW1lIjoiaHR0cHM6Ly92c2J0Y3VzLmJpdGJ1Y2tldC5pbyIsIm1hbmlmZXN0X3VyaSI6Imh0dHBzOi8vdnNidGN1cy5iaXRidWNrZXQuaW91bmRlZmluZWQiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL3ZzYnRjdXMuYml0YnVja2V0LmlvLyIsInZlcnNpb24iOiIxLjMuMSIsImRvX25vdF9pbmNsdWRlX3Byb2ZpbGUiOnRydWUsInN1cHBvcnRzX2h1Yl91cmwiOnRydWUsInNjb3BlcyI6WyJzdG9yZV93cml0ZSIsInB1Ymxpc2hfZGF0YSJdfQ.zTex9AOaiASrkjejsK-m7UmGlpwZ8hAHSPsFQ-Vz6hBeay2mpXBy3BVPoDtgY8WYDfFfIjMtyTgWRY8Un7wK8A
at getRequestOrigin (chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/index.js:47774:11)
at chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/index.js:46284:93
at chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/index.js:46314:7
at fk (chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/index.js:135807:359)
at exports.unstable_runWithPriority (chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/index.js:143860:343)
at gg (chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/index.js:135667:325)
at Oj (chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/index.js:135806:308)
at Lj (chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/index.js:135788:50)
at chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/index.js:135668:115
at exports.unstable_runWithPriority (chrome-extension://ldinpeekobnhjjdofggfgjlcehhmanlj/index.js:143860:343)
I’ve reported here in case it’s a wallet issue: Fix "Unable to get origin for request" error when signing transaction · Issue #1545 · blockstack/stacks-wallet-web · GitHub
Yes. If the random number is 24, it will change to 3. So:
If bet 3, award shares = 1000000/(3-3+10) = 100000
If bet 4, award shares = 1000000/(4-3+10) = 90909
If bet 20, award shares = 1000000/(20-3+10) = 37037