tx · 4Jo2ENfW7ZBtadaNrgy8Eqf3VqUnN77e4RnuB6t1qQzy 3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa: -0.05000000 Waves 2019.10.27 21:55 [738916] smart account 3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa > SELF 0.00000000 Waves
{ "type": 13, "id": "4Jo2ENfW7ZBtadaNrgy8Eqf3VqUnN77e4RnuB6t1qQzy", "fee": 5000000, "feeAssetId": null, "timestamp": 1572202353714, "version": 1, "sender": "3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa", "senderPublicKey": "DdkgRd7YzZtSU3hXJc7sHsU7sM8nUSEwkzqZCaCTXKRe", "proofs": [ "4nFdjhRoNLDP1J1GPCwxbBa7TRxf214ZrBVVtseHFghfQJLoaJGpKMYDaRGJmx2VymJWxrFAAiUAivMJrq9wYHod" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIIARIECgIIAgAAACYAAAAACVJTQVBVQkxJQwkAAlsAAAABAgAAAY9iYXNlNjQ6TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFtT2xSQlRZRU8zSDdZOXJCbW9GUUZuNDM5MlB4MFF3MTNEc2RFaG56TUgyY2o2WTV5bVB1Q09MTU5lNXFyVXpRbDhvUkx6SUJ6RlZNWmx3VVlsMmJvc3JPSXhRYllGN1dWUVd2b1Z4RVQxWUlnRG0zTnp6T0xBNXVIN0NLTzBzbnNobU1GQ0RPWkVldzQxR2pLaDNQZ3grbmJBZ3VQOVpRUGZxU2FmRW1DM0NOLzR5RHNKcktyaVJuaVpKbzlqUy80TExzUkt3QjdIQVpIem9GOUxMN3RTWkgzaHRhTkd0YmRUa3haMVR6U1QzTWIyVlBTenNadlFEb2NYVVZPbUpPdTBvMjlhT1krR2tHL0c0UkNLMEZCV1FIRVV2QzUxVFJEUzVrOGphZDBPMU1vYmpRYzZiMThkK2Z1b1ZGZE5mWndHSCt1RnVkdFBHM1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AAA9HZW5lcmF0ZVJhbmRJbnQAAAACBQAAAAZnYW1lSWQFAAAABnJzYVNpZwQAAAAHcmFuZFN0cgkBAAAACVJhbmRUb1N0cgAAAAEFAAAABHJhbmQDCQEAAAAHZGljZVdpbgAAAAMFAAAACHJvbGxUeXBlBQAAAApwcmVkaWN0aW9uBQAAAARyYW5kBAAAAA5uZXdHYW1lRGF0YVN0cgkBAAAAEUZvcm1hdEdhbWVEYXRhU3RyAAAABgUAAAAIU1RBVEVXT04FAAAACnByZWRpY3Rpb24FAAAACHJvbGxUeXBlBQAAAA5wbGF5ZXJQdWJLZXk1OAUAAAAGd2luQW10BQAAAAdyYW5kU3RyCQEAAAAMV2luU2NyaXB0U2V0AAAABAUAAAAGZ2FtZUlkBQAAAA1wbGF5ZXJBZGRyZXNzBQAAAAZ3aW5BbXQFAAAADm5ld0dhbWVEYXRhU3RyBAAAAA5uZXdHYW1lRGF0YVN0cgkBAAAAEUZvcm1hdEdhbWVEYXRhU3RyAAAABgUAAAAJU1RBVEVMT1NUBQAAAApwcmVkaWN0aW9uBQAAAAhyb2xsVHlwZQUAAAAOcGxheWVyUHViS2V5NTgFAAAABndpbkFtdAUAAAAHcmFuZFN0cgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAA5uZXdHYW1lRGF0YVN0cgUAAAADbmlsAAAAADGIKKU=", "chainId": 84, "height": 738916, "spentComplexity": 0 } View: original | compacted Prev: 2vjcBi3enUk19jKpV2vnfhPXhWqxZ5pwjF3wLL7yzpvC Next: A8XAodu18dsXK2KtKevoyd28m9ipix69ywjsQPeKWwYg Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let RESERVATIONKEY = "$RESERVED_AMOUNT" | |
9 | 9 | ||
10 | - | let WBET = base58'23vgV9p9pD83A7CFbsDEc4zjanep7UeFo4ZRS6oGorhv' | |
11 | - | ||
12 | - | let WALLETWAVESBET = Address(base58'3N2tusqAtDctK8iSTXS6F9rimmftmSuwLUX') | |
13 | - | ||
14 | - | let WALLETMCAFFE = Address(base58'') | |
10 | + | let WBET = base58'4vPcbA5yiwpWBVPALPGXus6fNdGEuYTpe4hAeSxM9Kj4' | |
15 | 11 | ||
16 | 12 | let WAVELET = ((100 * 1000) * 1000) | |
17 | 13 | ||
31 | 27 | ||
32 | 28 | let BETMIN = (100 * WAVELET) | |
33 | 29 | ||
34 | - | let BETMAX = ( | |
30 | + | let BETMAX = (20000000 * WAVELET) | |
35 | 31 | ||
36 | - | let PREDICTIONMIN = | |
32 | + | let PREDICTIONMIN = 1 | |
37 | 33 | ||
38 | - | let PREDICTIONMAX = | |
34 | + | let PREDICTIONMAX = 99 | |
39 | 35 | ||
40 | 36 | let IdxGameState = 0 | |
41 | 37 | ||
42 | - | let | |
38 | + | let IdxPrediction = 1 | |
43 | 39 | ||
44 | 40 | let IdxType = 2 | |
45 | 41 | ||
72 | 68 | let newReservedAmount = (ExtractReservedAmt() + winAmt) | |
73 | 69 | let balance = assetBalance(this, WBET) | |
74 | 70 | if ((newReservedAmount > balance)) | |
75 | - | then throw("Insufficient funds on | |
71 | + | then throw("Insufficient funds on Wavesbet Dice account. Transaction was rejected for your safety.") | |
76 | 72 | else newReservedAmount | |
77 | 73 | } | |
78 | 74 | ||
89 | 85 | } | |
90 | 86 | ||
91 | 87 | ||
92 | - | func FormatGameDataStr (gameState, | |
93 | - | let fullStateStr = ((((((((FormatGameDataParam(gameState) + "_") + FormatGameDataParam( | |
88 | + | func FormatGameDataStr (gameState,prediction,typeRoll,playerPubKey58,winAmt,randOrEmpty) = { | |
89 | + | let fullStateStr = ((((((((FormatGameDataParam(gameState) + "_") + FormatGameDataParam(toString(prediction))) + "_") + FormatGameDataParam(typeRoll)) + "_") + FormatGameDataParam(playerPubKey58)) + "_") + FormatGameDataParam(toString(winAmt))) | |
94 | 90 | if ((randOrEmpty == "")) | |
95 | 91 | then fullStateStr | |
96 | 92 | else ((fullStateStr + "_") + FormatGameDataParam(randOrEmpty)) | |
118 | 114 | ||
119 | 115 | func ParseGameRawDataStr (rawStateStr) = { | |
120 | 116 | let gameState = ParseNextAttribute(rawStateStr) | |
121 | - | let | |
122 | - | let rollType = ParseNextAttribute( | |
117 | + | let prediction = ParseNextAttribute(gameState[1]) | |
118 | + | let rollType = ParseNextAttribute(prediction[1]) | |
123 | 119 | let playerPubKey58 = ParseNextAttribute(rollType[1]) | |
124 | 120 | let winAmt = ParseNextAttribute(playerPubKey58[1]) | |
125 | - | [gameState[0], | |
121 | + | [gameState[0], prediction[0], rollType[0], playerPubKey58[0], winAmt[0]] | |
126 | 122 | } | |
127 | 123 | ||
128 | 124 | ||
166 | 162 | ||
167 | 163 | ||
168 | 164 | func WinScriptSet (gameId,playerAddress,winAmt,newGameDataStr) = { | |
169 | - | let tSetCommonData = [ScriptTransfer(playerAddress, winAmt, | |
165 | + | let tSetCommonData = [ScriptTransfer(playerAddress, winAmt, WBET)] | |
170 | 166 | let writeDicePlay = WriteSet([DataEntry("Game Id", gameId), DataEntry("Player Address", toString(playerAddress))]) | |
171 | 167 | ScriptResult(writeDicePlay, TransferSet(tSetCommonData)) | |
172 | 168 | } | |
577 | 573 | func ValidateBetAndDefineWinAmt (amount,prediction,rollType) = if (if ((BETMIN > amount)) | |
578 | 574 | then true | |
579 | 575 | else (amount > BETMAX)) | |
580 | - | then throw(((("Bet amount is not in range: minBet=" + toString((BETMIN / | |
576 | + | then throw(((("Bet amount is not in range: minBet=" + toString((BETMIN / WAVELET))) + " maxBet=") + toString((BETMAX / WAVELET)))) | |
581 | 577 | else if (if ((rollType != ROLLUNDER)) | |
582 | 578 | then (rollType != ROLLOVER) | |
583 | 579 | else false) | |
585 | 581 | else if (if ((PREDICTIONMIN > prediction)) | |
586 | 582 | then true | |
587 | 583 | else (prediction > PREDICTIONMAX)) | |
588 | - | then throw(((("Prediction is out of the | |
584 | + | then throw(((("Prediction is out of the range: " + toString(PREDICTIONMIN)) + " <= prediction <= ") + toString(PREDICTIONMAX))) | |
589 | 585 | else { | |
590 | 586 | let multi = Multiplier(prediction, rollType) | |
591 | 587 | ((((amount * multi) / 100000) * (100 - (FEEWAVESBET + FEEMCAFEE))) / 100) | |
594 | 590 | ||
595 | 591 | @Callable(i) | |
596 | 592 | func playDice (rollType,prediction) = { | |
597 | - | let predInt = parseIntValue(prediction) | |
598 | 593 | let gameId = toBase58String(i.transactionId) | |
599 | 594 | let payment = extract(i.payment) | |
600 | 595 | let feeAssetId = isDefined(i.feeAssetId) | |
601 | - | let multi = Multiplier( | |
602 | - | let winAmt = ValidateBetAndDefineWinAmt(payment.amount, | |
596 | + | let multi = Multiplier(prediction, rollType) | |
597 | + | let winAmt = ValidateBetAndDefineWinAmt(payment.amount, prediction, rollType) | |
603 | 598 | let playerBalance = wavesBalance(i.caller) | |
604 | 599 | let gameIdUsed = isDefined(getString(this, gameId)) | |
605 | 600 | if ((payment.assetId != WBET)) | |
614 | 609 | let newGameNum = IncrementGameNum() | |
615 | 610 | let playerPubKey58 = toBase58String(i.callerPublicKey) | |
616 | 611 | let gameDataStr = FormatGameDataStr(STATESUBMITTED, prediction, rollType, playerPubKey58, winAmt, "") | |
617 | - | ScriptResult(WriteSet([DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(GAMESCOUNTERKEY, newGameNum), DataEntry(gameId, gameDataStr)]), TransferSet( | |
612 | + | ScriptResult(WriteSet([DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(GAMESCOUNTERKEY, newGameNum), DataEntry(gameId, gameDataStr)]), TransferSet(nil)) | |
618 | 613 | } | |
619 | 614 | } | |
620 | 615 | ||
624 | 619 | func withdraw (gameId,rsaSig) = { | |
625 | 620 | let gameDataList = ExtractGameDataList(gameId) | |
626 | 621 | let gameState = gameDataList[IdxGameState] | |
627 | - | let | |
622 | + | let prediction = parseIntValue(gameDataList[IdxPrediction]) | |
628 | 623 | let rollType = gameDataList[IdxType] | |
629 | 624 | let winAmt = parseIntValue(gameDataList[IdxWinAmt]) | |
630 | 625 | let playerPubKey58 = gameDataList[IdxPlayerPubKey58] | |
635 | 630 | else { | |
636 | 631 | let rand = GenerateRandInt(gameId, rsaSig) | |
637 | 632 | let randStr = RandToStr(rand) | |
638 | - | if (diceWin(rollType, | |
633 | + | if (diceWin(rollType, prediction, rand)) | |
639 | 634 | then { | |
640 | - | let newGameDataStr = FormatGameDataStr(STATEWON, | |
635 | + | let newGameDataStr = FormatGameDataStr(STATEWON, prediction, rollType, playerPubKey58, winAmt, randStr) | |
641 | 636 | WinScriptSet(gameId, playerAddress, winAmt, newGameDataStr) | |
642 | 637 | } | |
643 | 638 | else { | |
644 | - | let newGameDataStr = FormatGameDataStr(STATELOST, | |
639 | + | let newGameDataStr = FormatGameDataStr(STATELOST, prediction, rollType, playerPubKey58, winAmt, randStr) | |
645 | 640 | WriteSet([DataEntry(gameId, newGameDataStr)]) | |
646 | 641 | } | |
647 | 642 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmOlRBTYEO3H7Y9rBmoFQFn4392Px0Qw13DsdEhnzMH2cj6Y5ymPuCOLMNe5qrUzQl8oRLzIBzFVMZlwUYl2bosrOIxQbYF7WVQWvoVxET1YIgDm3NzzOLA5uH7CKO0snshmMFCDOZEew41GjKh3Pgx+nbAguP9ZQPfqSafEmC3CN/4yDsJrKriRniZJo9jS/4LLsRKwB7HAZHzoF9LL7tSZH3htaNGtbdTkxZ1TzST3Mb2VPSzsZvQDocXUVOmJOu0o29aOY+GkG/G4RCK0FBWQHEUvC51TRDS5k8jad0O1MobjQc6b18d+fuoVFdNfZwGH+uFudtPG3UJTf2mkzZQIDAQAB") | |
5 | 5 | ||
6 | 6 | let GAMESCOUNTERKEY = "$GAME_NUM" | |
7 | 7 | ||
8 | 8 | let RESERVATIONKEY = "$RESERVED_AMOUNT" | |
9 | 9 | ||
10 | - | let WBET = base58'23vgV9p9pD83A7CFbsDEc4zjanep7UeFo4ZRS6oGorhv' | |
11 | - | ||
12 | - | let WALLETWAVESBET = Address(base58'3N2tusqAtDctK8iSTXS6F9rimmftmSuwLUX') | |
13 | - | ||
14 | - | let WALLETMCAFFE = Address(base58'') | |
10 | + | let WBET = base58'4vPcbA5yiwpWBVPALPGXus6fNdGEuYTpe4hAeSxM9Kj4' | |
15 | 11 | ||
16 | 12 | let WAVELET = ((100 * 1000) * 1000) | |
17 | 13 | ||
18 | 14 | let FEEWAVESBET = 4 | |
19 | 15 | ||
20 | 16 | let FEEMCAFEE = 2 | |
21 | 17 | ||
22 | 18 | let STATESUBMITTED = "SUBMITTED" | |
23 | 19 | ||
24 | 20 | let STATEWON = "WON" | |
25 | 21 | ||
26 | 22 | let STATELOST = "LOST" | |
27 | 23 | ||
28 | 24 | let ROLLUNDER = "UNDER" | |
29 | 25 | ||
30 | 26 | let ROLLOVER = "OVER" | |
31 | 27 | ||
32 | 28 | let BETMIN = (100 * WAVELET) | |
33 | 29 | ||
34 | - | let BETMAX = ( | |
30 | + | let BETMAX = (20000000 * WAVELET) | |
35 | 31 | ||
36 | - | let PREDICTIONMIN = | |
32 | + | let PREDICTIONMIN = 1 | |
37 | 33 | ||
38 | - | let PREDICTIONMAX = | |
34 | + | let PREDICTIONMAX = 99 | |
39 | 35 | ||
40 | 36 | let IdxGameState = 0 | |
41 | 37 | ||
42 | - | let | |
38 | + | let IdxPrediction = 1 | |
43 | 39 | ||
44 | 40 | let IdxType = 2 | |
45 | 41 | ||
46 | 42 | let IdxPlayerPubKey58 = 3 | |
47 | 43 | ||
48 | 44 | let IdxWinAmt = 4 | |
49 | 45 | ||
50 | 46 | let IdxRandOrEmpty = 5 | |
51 | 47 | ||
52 | 48 | func IncrementGameNum () = { | |
53 | 49 | let gameNum = match getInteger(this, GAMESCOUNTERKEY) { | |
54 | 50 | case num: Int => | |
55 | 51 | num | |
56 | 52 | case _ => | |
57 | 53 | 0 | |
58 | 54 | } | |
59 | 55 | (gameNum + 1) | |
60 | 56 | } | |
61 | 57 | ||
62 | 58 | ||
63 | 59 | func ExtractReservedAmt () = match getInteger(this, RESERVATIONKEY) { | |
64 | 60 | case a: Int => | |
65 | 61 | a | |
66 | 62 | case _ => | |
67 | 63 | 0 | |
68 | 64 | } | |
69 | 65 | ||
70 | 66 | ||
71 | 67 | func ValidateAndIncreaseReservedAmt (winAmt) = { | |
72 | 68 | let newReservedAmount = (ExtractReservedAmt() + winAmt) | |
73 | 69 | let balance = assetBalance(this, WBET) | |
74 | 70 | if ((newReservedAmount > balance)) | |
75 | - | then throw("Insufficient funds on | |
71 | + | then throw("Insufficient funds on Wavesbet Dice account. Transaction was rejected for your safety.") | |
76 | 72 | else newReservedAmount | |
77 | 73 | } | |
78 | 74 | ||
79 | 75 | ||
80 | 76 | func FormatGameDataParam (p) = { | |
81 | 77 | let s = size(p) | |
82 | 78 | if ((s == 0)) | |
83 | 79 | then throw("Parameter size must be greater then 0") | |
84 | 80 | else if ((s > 99)) | |
85 | 81 | then throw("Parameter size must be less then 100") | |
86 | 82 | else if ((10 > s)) | |
87 | 83 | then (("0" + toString(s)) + p) | |
88 | 84 | else (toString(s) + p) | |
89 | 85 | } | |
90 | 86 | ||
91 | 87 | ||
92 | - | func FormatGameDataStr (gameState, | |
93 | - | let fullStateStr = ((((((((FormatGameDataParam(gameState) + "_") + FormatGameDataParam( | |
88 | + | func FormatGameDataStr (gameState,prediction,typeRoll,playerPubKey58,winAmt,randOrEmpty) = { | |
89 | + | let fullStateStr = ((((((((FormatGameDataParam(gameState) + "_") + FormatGameDataParam(toString(prediction))) + "_") + FormatGameDataParam(typeRoll)) + "_") + FormatGameDataParam(playerPubKey58)) + "_") + FormatGameDataParam(toString(winAmt))) | |
94 | 90 | if ((randOrEmpty == "")) | |
95 | 91 | then fullStateStr | |
96 | 92 | else ((fullStateStr + "_") + FormatGameDataParam(randOrEmpty)) | |
97 | 93 | } | |
98 | 94 | ||
99 | 95 | ||
100 | 96 | func RemoveUnderscoreIfPresent (remaining) = if ((size(remaining) > 0)) | |
101 | 97 | then drop(remaining, 1) | |
102 | 98 | else remaining | |
103 | 99 | ||
104 | 100 | ||
105 | 101 | func ParseNextAttribute (remaining) = { | |
106 | 102 | let s = size(remaining) | |
107 | 103 | if ((s > 0)) | |
108 | 104 | then { | |
109 | 105 | let nn = parseIntValue(take(remaining, 2)) | |
110 | 106 | let v = take(drop(remaining, 2), nn) | |
111 | 107 | let tmpRemaining = drop(remaining, (nn + 2)) | |
112 | 108 | let remainingState = RemoveUnderscoreIfPresent(tmpRemaining) | |
113 | 109 | [v, remainingState] | |
114 | 110 | } | |
115 | 111 | else throw("Empty string was passed into parseNextAttribute func") | |
116 | 112 | } | |
117 | 113 | ||
118 | 114 | ||
119 | 115 | func ParseGameRawDataStr (rawStateStr) = { | |
120 | 116 | let gameState = ParseNextAttribute(rawStateStr) | |
121 | - | let | |
122 | - | let rollType = ParseNextAttribute( | |
117 | + | let prediction = ParseNextAttribute(gameState[1]) | |
118 | + | let rollType = ParseNextAttribute(prediction[1]) | |
123 | 119 | let playerPubKey58 = ParseNextAttribute(rollType[1]) | |
124 | 120 | let winAmt = ParseNextAttribute(playerPubKey58[1]) | |
125 | - | [gameState[0], | |
121 | + | [gameState[0], prediction[0], rollType[0], playerPubKey58[0], winAmt[0]] | |
126 | 122 | } | |
127 | 123 | ||
128 | 124 | ||
129 | 125 | func ExtractGameDataList (gameId) = { | |
130 | 126 | let rawDataStr = match getString(this, gameId) { | |
131 | 127 | case str: String => | |
132 | 128 | str | |
133 | 129 | case _ => | |
134 | 130 | throw(("Couldn't find game by " + gameId)) | |
135 | 131 | } | |
136 | 132 | ParseGameRawDataStr(rawDataStr) | |
137 | 133 | } | |
138 | 134 | ||
139 | 135 | ||
140 | 136 | func DecreaseReservedAmt (gameId,winAmt) = { | |
141 | 137 | let newReservedAmount = (ExtractReservedAmt() - winAmt) | |
142 | 138 | if ((0 > newReservedAmount)) | |
143 | 139 | then throw("Invalid Dice Roller account state - reserved amount is less than 0") | |
144 | 140 | else DataEntry(RESERVATIONKEY, newReservedAmount) | |
145 | 141 | } | |
146 | 142 | ||
147 | 143 | ||
148 | 144 | func GenerateRandInt (gameId,rsaSign) = { | |
149 | 145 | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), rsaSign, RSAPUBLIC) | |
150 | 146 | if (rsaSigValid) | |
151 | 147 | then { | |
152 | 148 | let rand = (toInt(sha256(rsaSign)) % 100) | |
153 | 149 | if ((0 > rand)) | |
154 | 150 | then ((-1 * rand) + 1) | |
155 | 151 | else (rand + 1) | |
156 | 152 | } | |
157 | 153 | else throw("Invalid RSA signature") | |
158 | 154 | } | |
159 | 155 | ||
160 | 156 | ||
161 | 157 | func RandToStr (r) = if (if ((r >= 1)) | |
162 | 158 | then (100 >= r) | |
163 | 159 | else false) | |
164 | 160 | then toString(r) | |
165 | 161 | else throw(("Unsupported r parameter passed: expected=[1,...,100] actual=" + toString(r))) | |
166 | 162 | ||
167 | 163 | ||
168 | 164 | func WinScriptSet (gameId,playerAddress,winAmt,newGameDataStr) = { | |
169 | - | let tSetCommonData = [ScriptTransfer(playerAddress, winAmt, | |
165 | + | let tSetCommonData = [ScriptTransfer(playerAddress, winAmt, WBET)] | |
170 | 166 | let writeDicePlay = WriteSet([DataEntry("Game Id", gameId), DataEntry("Player Address", toString(playerAddress))]) | |
171 | 167 | ScriptResult(writeDicePlay, TransferSet(tSetCommonData)) | |
172 | 168 | } | |
173 | 169 | ||
174 | 170 | ||
175 | 171 | func Multiplier (prediction,rollType) = if ((rollType == ROLLUNDER)) | |
176 | 172 | then if ((prediction == 1)) | |
177 | 173 | then 9850000 | |
178 | 174 | else if ((prediction == 2)) | |
179 | 175 | then 4925000 | |
180 | 176 | else if ((prediction == 3)) | |
181 | 177 | then 3283330 | |
182 | 178 | else if ((prediction == 4)) | |
183 | 179 | then 2462500 | |
184 | 180 | else if ((prediction == 5)) | |
185 | 181 | then 1970000 | |
186 | 182 | else if ((prediction == 6)) | |
187 | 183 | then 1641660 | |
188 | 184 | else if ((prediction == 7)) | |
189 | 185 | then 1407140 | |
190 | 186 | else if ((prediction == 8)) | |
191 | 187 | then 1231250 | |
192 | 188 | else if ((prediction == 9)) | |
193 | 189 | then 1094440 | |
194 | 190 | else if ((prediction == 10)) | |
195 | 191 | then 985000 | |
196 | 192 | else if ((prediction == 11)) | |
197 | 193 | then 895450 | |
198 | 194 | else if ((prediction == 12)) | |
199 | 195 | then 820830 | |
200 | 196 | else if ((prediction == 13)) | |
201 | 197 | then 757690 | |
202 | 198 | else if ((prediction == 14)) | |
203 | 199 | then 703570 | |
204 | 200 | else if ((prediction == 15)) | |
205 | 201 | then 656660 | |
206 | 202 | else if ((prediction == 16)) | |
207 | 203 | then 615620 | |
208 | 204 | else if ((prediction == 17)) | |
209 | 205 | then 579410 | |
210 | 206 | else if ((prediction == 18)) | |
211 | 207 | then 547220 | |
212 | 208 | else if ((prediction == 19)) | |
213 | 209 | then 518420 | |
214 | 210 | else if ((prediction == 20)) | |
215 | 211 | then 492500 | |
216 | 212 | else if ((prediction == 21)) | |
217 | 213 | then 469040 | |
218 | 214 | else if ((prediction == 22)) | |
219 | 215 | then 447720 | |
220 | 216 | else if ((prediction == 23)) | |
221 | 217 | then 428260 | |
222 | 218 | else if ((prediction == 24)) | |
223 | 219 | then 410410 | |
224 | 220 | else if ((prediction == 25)) | |
225 | 221 | then 394000 | |
226 | 222 | else if ((prediction == 26)) | |
227 | 223 | then 378840 | |
228 | 224 | else if ((prediction == 27)) | |
229 | 225 | then 364810 | |
230 | 226 | else if ((prediction == 28)) | |
231 | 227 | then 351780 | |
232 | 228 | else if ((prediction == 29)) | |
233 | 229 | then 339650 | |
234 | 230 | else if ((prediction == 30)) | |
235 | 231 | then 328330 | |
236 | 232 | else if ((prediction == 31)) | |
237 | 233 | then 317740 | |
238 | 234 | else if ((prediction == 32)) | |
239 | 235 | then 307810 | |
240 | 236 | else if ((prediction == 33)) | |
241 | 237 | then 298480 | |
242 | 238 | else if ((prediction == 34)) | |
243 | 239 | then 289700 | |
244 | 240 | else if ((prediction == 35)) | |
245 | 241 | then 281420 | |
246 | 242 | else if ((prediction == 36)) | |
247 | 243 | then 273610 | |
248 | 244 | else if ((prediction == 37)) | |
249 | 245 | then 259210 | |
250 | 246 | else if ((prediction == 38)) | |
251 | 247 | then 259210 | |
252 | 248 | else if ((prediction == 39)) | |
253 | 249 | then 252560 | |
254 | 250 | else if ((prediction == 40)) | |
255 | 251 | then 246250 | |
256 | 252 | else if ((prediction == 41)) | |
257 | 253 | then 240240 | |
258 | 254 | else if ((prediction == 42)) | |
259 | 255 | then 234520 | |
260 | 256 | else if ((prediction == 43)) | |
261 | 257 | then 229060 | |
262 | 258 | else if ((prediction == 44)) | |
263 | 259 | then 223860 | |
264 | 260 | else if ((prediction == 45)) | |
265 | 261 | then 218880 | |
266 | 262 | else if ((prediction == 46)) | |
267 | 263 | then 214130 | |
268 | 264 | else if ((prediction == 47)) | |
269 | 265 | then 209570 | |
270 | 266 | else if ((prediction == 48)) | |
271 | 267 | then 205200 | |
272 | 268 | else if ((prediction == 49)) | |
273 | 269 | then 201020 | |
274 | 270 | else if ((prediction == 50)) | |
275 | 271 | then 197000 | |
276 | 272 | else if ((prediction == 51)) | |
277 | 273 | then 193130 | |
278 | 274 | else if ((prediction == 52)) | |
279 | 275 | then 189420 | |
280 | 276 | else if ((prediction == 53)) | |
281 | 277 | then 185840 | |
282 | 278 | else if ((prediction == 54)) | |
283 | 279 | then 182400 | |
284 | 280 | else if ((prediction == 55)) | |
285 | 281 | then 179090 | |
286 | 282 | else if ((prediction == 56)) | |
287 | 283 | then 175890 | |
288 | 284 | else if ((prediction == 57)) | |
289 | 285 | then 172800 | |
290 | 286 | else if ((prediction == 58)) | |
291 | 287 | then 169820 | |
292 | 288 | else if ((prediction == 59)) | |
293 | 289 | then 166940 | |
294 | 290 | else if ((prediction == 60)) | |
295 | 291 | then 164160 | |
296 | 292 | else if ((prediction == 61)) | |
297 | 293 | then 161470 | |
298 | 294 | else if ((prediction == 62)) | |
299 | 295 | then 158870 | |
300 | 296 | else if ((prediction == 63)) | |
301 | 297 | then 156340 | |
302 | 298 | else if ((prediction == 64)) | |
303 | 299 | then 153900 | |
304 | 300 | else if ((prediction == 65)) | |
305 | 301 | then 151530 | |
306 | 302 | else if ((prediction == 66)) | |
307 | 303 | then 149240 | |
308 | 304 | else if ((prediction == 67)) | |
309 | 305 | then 147010 | |
310 | 306 | else if ((prediction == 68)) | |
311 | 307 | then 144850 | |
312 | 308 | else if ((prediction == 69)) | |
313 | 309 | then 142750 | |
314 | 310 | else if ((prediction == 70)) | |
315 | 311 | then 140710 | |
316 | 312 | else if ((prediction == 71)) | |
317 | 313 | then 138730 | |
318 | 314 | else if ((prediction == 72)) | |
319 | 315 | then 136800 | |
320 | 316 | else if ((prediction == 73)) | |
321 | 317 | then 134930 | |
322 | 318 | else if ((prediction == 74)) | |
323 | 319 | then 133100 | |
324 | 320 | else if ((prediction == 75)) | |
325 | 321 | then 131330 | |
326 | 322 | else if ((prediction == 76)) | |
327 | 323 | then 129600 | |
328 | 324 | else if ((prediction == 77)) | |
329 | 325 | then 127920 | |
330 | 326 | else if ((prediction == 78)) | |
331 | 327 | then 126280 | |
332 | 328 | else if ((prediction == 79)) | |
333 | 329 | then 124680 | |
334 | 330 | else if ((prediction == 80)) | |
335 | 331 | then 123120 | |
336 | 332 | else if ((prediction == 81)) | |
337 | 333 | then 121600 | |
338 | 334 | else if ((prediction == 82)) | |
339 | 335 | then 120120 | |
340 | 336 | else if ((prediction == 83)) | |
341 | 337 | then 118670 | |
342 | 338 | else if ((prediction == 84)) | |
343 | 339 | then 117260 | |
344 | 340 | else if ((prediction == 85)) | |
345 | 341 | then 115880 | |
346 | 342 | else if ((prediction == 86)) | |
347 | 343 | then 114530 | |
348 | 344 | else if ((prediction == 87)) | |
349 | 345 | then 113210 | |
350 | 346 | else if ((prediction == 88)) | |
351 | 347 | then 111930 | |
352 | 348 | else if ((prediction == 89)) | |
353 | 349 | then 110670 | |
354 | 350 | else if ((prediction == 90)) | |
355 | 351 | then 109440 | |
356 | 352 | else if ((prediction == 91)) | |
357 | 353 | then 108240 | |
358 | 354 | else if ((prediction == 92)) | |
359 | 355 | then 107060 | |
360 | 356 | else if ((prediction == 93)) | |
361 | 357 | then 105910 | |
362 | 358 | else if ((prediction == 94)) | |
363 | 359 | then 104780 | |
364 | 360 | else if ((prediction == 95)) | |
365 | 361 | then 103680 | |
366 | 362 | else if ((prediction == 96)) | |
367 | 363 | then 103680 | |
368 | 364 | else 100000 | |
369 | 365 | else if ((rollType == ROLLOVER)) | |
370 | 366 | then if ((prediction == 4)) | |
371 | 367 | then 103680 | |
372 | 368 | else if ((prediction == 5)) | |
373 | 369 | then 103680 | |
374 | 370 | else if ((prediction == 6)) | |
375 | 371 | then 104780 | |
376 | 372 | else if ((prediction == 7)) | |
377 | 373 | then 105910 | |
378 | 374 | else if ((prediction == 8)) | |
379 | 375 | then 107060 | |
380 | 376 | else if ((prediction == 9)) | |
381 | 377 | then 108240 | |
382 | 378 | else if ((prediction == 10)) | |
383 | 379 | then 109440 | |
384 | 380 | else if ((prediction == 11)) | |
385 | 381 | then 110670 | |
386 | 382 | else if ((prediction == 12)) | |
387 | 383 | then 111930 | |
388 | 384 | else if ((prediction == 13)) | |
389 | 385 | then 113210 | |
390 | 386 | else if ((prediction == 14)) | |
391 | 387 | then 114530 | |
392 | 388 | else if ((prediction == 15)) | |
393 | 389 | then 115880 | |
394 | 390 | else if ((prediction == 16)) | |
395 | 391 | then 117260 | |
396 | 392 | else if ((prediction == 17)) | |
397 | 393 | then 118670 | |
398 | 394 | else if ((prediction == 18)) | |
399 | 395 | then 120120 | |
400 | 396 | else if ((prediction == 19)) | |
401 | 397 | then 121600 | |
402 | 398 | else if ((prediction == 20)) | |
403 | 399 | then 123120 | |
404 | 400 | else if ((prediction == 21)) | |
405 | 401 | then 124680 | |
406 | 402 | else if ((prediction == 22)) | |
407 | 403 | then 126280 | |
408 | 404 | else if ((prediction == 23)) | |
409 | 405 | then 127920 | |
410 | 406 | else if ((prediction == 24)) | |
411 | 407 | then 129600 | |
412 | 408 | else if ((prediction == 25)) | |
413 | 409 | then 131330 | |
414 | 410 | else if ((prediction == 26)) | |
415 | 411 | then 133100 | |
416 | 412 | else if ((prediction == 27)) | |
417 | 413 | then 134930 | |
418 | 414 | else if ((prediction == 28)) | |
419 | 415 | then 136800 | |
420 | 416 | else if ((prediction == 29)) | |
421 | 417 | then 138730 | |
422 | 418 | else if ((prediction == 30)) | |
423 | 419 | then 140710 | |
424 | 420 | else if ((prediction == 31)) | |
425 | 421 | then 142750 | |
426 | 422 | else if ((prediction == 32)) | |
427 | 423 | then 144850 | |
428 | 424 | else if ((prediction == 33)) | |
429 | 425 | then 147010 | |
430 | 426 | else if ((prediction == 34)) | |
431 | 427 | then 149240 | |
432 | 428 | else if ((prediction == 35)) | |
433 | 429 | then 151530 | |
434 | 430 | else if ((prediction == 36)) | |
435 | 431 | then 153900 | |
436 | 432 | else if ((prediction == 37)) | |
437 | 433 | then 156340 | |
438 | 434 | else if ((prediction == 38)) | |
439 | 435 | then 158870 | |
440 | 436 | else if ((prediction == 39)) | |
441 | 437 | then 161470 | |
442 | 438 | else if ((prediction == 40)) | |
443 | 439 | then 164160 | |
444 | 440 | else if ((prediction == 41)) | |
445 | 441 | then 166940 | |
446 | 442 | else if ((prediction == 42)) | |
447 | 443 | then 169820 | |
448 | 444 | else if ((prediction == 43)) | |
449 | 445 | then 172800 | |
450 | 446 | else if ((prediction == 44)) | |
451 | 447 | then 175890 | |
452 | 448 | else if ((prediction == 45)) | |
453 | 449 | then 179090 | |
454 | 450 | else if ((prediction == 46)) | |
455 | 451 | then 185840 | |
456 | 452 | else if ((prediction == 47)) | |
457 | 453 | then 185840 | |
458 | 454 | else if ((prediction == 48)) | |
459 | 455 | then 189420 | |
460 | 456 | else if ((prediction == 49)) | |
461 | 457 | then 193130 | |
462 | 458 | else if ((prediction == 50)) | |
463 | 459 | then 197000 | |
464 | 460 | else if ((prediction == 51)) | |
465 | 461 | then 201020 | |
466 | 462 | else if ((prediction == 52)) | |
467 | 463 | then 205200 | |
468 | 464 | else if ((prediction == 53)) | |
469 | 465 | then 209570 | |
470 | 466 | else if ((prediction == 54)) | |
471 | 467 | then 214130 | |
472 | 468 | else if ((prediction == 55)) | |
473 | 469 | then 218880 | |
474 | 470 | else if ((prediction == 56)) | |
475 | 471 | then 223860 | |
476 | 472 | else if ((prediction == 57)) | |
477 | 473 | then 229060 | |
478 | 474 | else if ((prediction == 58)) | |
479 | 475 | then 234520 | |
480 | 476 | else if ((prediction == 59)) | |
481 | 477 | then 240240 | |
482 | 478 | else if ((prediction == 60)) | |
483 | 479 | then 246250 | |
484 | 480 | else if ((prediction == 61)) | |
485 | 481 | then 252560 | |
486 | 482 | else if ((prediction == 62)) | |
487 | 483 | then 259210 | |
488 | 484 | else if ((prediction == 63)) | |
489 | 485 | then 259210 | |
490 | 486 | else if ((prediction == 64)) | |
491 | 487 | then 273610 | |
492 | 488 | else if ((prediction == 65)) | |
493 | 489 | then 281420 | |
494 | 490 | else if ((prediction == 66)) | |
495 | 491 | then 289700 | |
496 | 492 | else if ((prediction == 67)) | |
497 | 493 | then 298480 | |
498 | 494 | else if ((prediction == 68)) | |
499 | 495 | then 307810 | |
500 | 496 | else if ((prediction == 69)) | |
501 | 497 | then 317740 | |
502 | 498 | else if ((prediction == 70)) | |
503 | 499 | then 328330 | |
504 | 500 | else if ((prediction == 71)) | |
505 | 501 | then 339650 | |
506 | 502 | else if ((prediction == 72)) | |
507 | 503 | then 351780 | |
508 | 504 | else if ((prediction == 73)) | |
509 | 505 | then 364810 | |
510 | 506 | else if ((prediction == 74)) | |
511 | 507 | then 378840 | |
512 | 508 | else if ((prediction == 75)) | |
513 | 509 | then 394000 | |
514 | 510 | else if ((prediction == 76)) | |
515 | 511 | then 410410 | |
516 | 512 | else if ((prediction == 77)) | |
517 | 513 | then 428260 | |
518 | 514 | else if ((prediction == 78)) | |
519 | 515 | then 447720 | |
520 | 516 | else if ((prediction == 79)) | |
521 | 517 | then 469040 | |
522 | 518 | else if ((prediction == 80)) | |
523 | 519 | then 492500 | |
524 | 520 | else if ((prediction == 81)) | |
525 | 521 | then 518420 | |
526 | 522 | else if ((prediction == 82)) | |
527 | 523 | then 547220 | |
528 | 524 | else if ((prediction == 83)) | |
529 | 525 | then 579410 | |
530 | 526 | else if ((prediction == 84)) | |
531 | 527 | then 615620 | |
532 | 528 | else if ((prediction == 85)) | |
533 | 529 | then 656660 | |
534 | 530 | else if ((prediction == 86)) | |
535 | 531 | then 703570 | |
536 | 532 | else if ((prediction == 87)) | |
537 | 533 | then 757690 | |
538 | 534 | else if ((prediction == 88)) | |
539 | 535 | then 820830 | |
540 | 536 | else if ((prediction == 89)) | |
541 | 537 | then 895450 | |
542 | 538 | else if ((prediction == 90)) | |
543 | 539 | then 985000 | |
544 | 540 | else if ((prediction == 91)) | |
545 | 541 | then 1094440 | |
546 | 542 | else if ((prediction == 92)) | |
547 | 543 | then 1231250 | |
548 | 544 | else if ((prediction == 93)) | |
549 | 545 | then 1407140 | |
550 | 546 | else if ((prediction == 94)) | |
551 | 547 | then 1641660 | |
552 | 548 | else if ((prediction == 95)) | |
553 | 549 | then 1970000 | |
554 | 550 | else if ((prediction == 96)) | |
555 | 551 | then 2462500 | |
556 | 552 | else if ((prediction == 97)) | |
557 | 553 | then 3283330 | |
558 | 554 | else if ((prediction == 98)) | |
559 | 555 | then 4925000 | |
560 | 556 | else if ((prediction == 99)) | |
561 | 557 | then 9850000 | |
562 | 558 | else 100000 | |
563 | 559 | else 100000 | |
564 | 560 | ||
565 | 561 | ||
566 | 562 | func diceWin (type,prediction,number) = if ((type == ROLLUNDER)) | |
567 | 563 | then if ((prediction >= number)) | |
568 | 564 | then true | |
569 | 565 | else false | |
570 | 566 | else if ((type == ROLLOVER)) | |
571 | 567 | then if ((number >= prediction)) | |
572 | 568 | then true | |
573 | 569 | else false | |
574 | 570 | else false | |
575 | 571 | ||
576 | 572 | ||
577 | 573 | func ValidateBetAndDefineWinAmt (amount,prediction,rollType) = if (if ((BETMIN > amount)) | |
578 | 574 | then true | |
579 | 575 | else (amount > BETMAX)) | |
580 | - | then throw(((("Bet amount is not in range: minBet=" + toString((BETMIN / | |
576 | + | then throw(((("Bet amount is not in range: minBet=" + toString((BETMIN / WAVELET))) + " maxBet=") + toString((BETMAX / WAVELET)))) | |
581 | 577 | else if (if ((rollType != ROLLUNDER)) | |
582 | 578 | then (rollType != ROLLOVER) | |
583 | 579 | else false) | |
584 | 580 | then throw("Invalid Roll type, try with OVER or UNDER") | |
585 | 581 | else if (if ((PREDICTIONMIN > prediction)) | |
586 | 582 | then true | |
587 | 583 | else (prediction > PREDICTIONMAX)) | |
588 | - | then throw(((("Prediction is out of the | |
584 | + | then throw(((("Prediction is out of the range: " + toString(PREDICTIONMIN)) + " <= prediction <= ") + toString(PREDICTIONMAX))) | |
589 | 585 | else { | |
590 | 586 | let multi = Multiplier(prediction, rollType) | |
591 | 587 | ((((amount * multi) / 100000) * (100 - (FEEWAVESBET + FEEMCAFEE))) / 100) | |
592 | 588 | } | |
593 | 589 | ||
594 | 590 | ||
595 | 591 | @Callable(i) | |
596 | 592 | func playDice (rollType,prediction) = { | |
597 | - | let predInt = parseIntValue(prediction) | |
598 | 593 | let gameId = toBase58String(i.transactionId) | |
599 | 594 | let payment = extract(i.payment) | |
600 | 595 | let feeAssetId = isDefined(i.feeAssetId) | |
601 | - | let multi = Multiplier( | |
602 | - | let winAmt = ValidateBetAndDefineWinAmt(payment.amount, | |
596 | + | let multi = Multiplier(prediction, rollType) | |
597 | + | let winAmt = ValidateBetAndDefineWinAmt(payment.amount, prediction, rollType) | |
603 | 598 | let playerBalance = wavesBalance(i.caller) | |
604 | 599 | let gameIdUsed = isDefined(getString(this, gameId)) | |
605 | 600 | if ((payment.assetId != WBET)) | |
606 | 601 | then throw("Payment should be in Wavesbet") | |
607 | 602 | else if ((100000 > playerBalance)) | |
608 | 603 | then throw("There are not enough waves, it takes 0.01 Waves to bet. Game aborted.") | |
609 | 604 | else if (feeAssetId) | |
610 | 605 | then throw("Transaction's fee must be in Waves. Game aborted.") | |
611 | 606 | else if (gameIdUsed) | |
612 | 607 | then throw("Passed gameId had been used before. Game aborted.") | |
613 | 608 | else { | |
614 | 609 | let newGameNum = IncrementGameNum() | |
615 | 610 | let playerPubKey58 = toBase58String(i.callerPublicKey) | |
616 | 611 | let gameDataStr = FormatGameDataStr(STATESUBMITTED, prediction, rollType, playerPubKey58, winAmt, "") | |
617 | - | ScriptResult(WriteSet([DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(GAMESCOUNTERKEY, newGameNum), DataEntry(gameId, gameDataStr)]), TransferSet( | |
612 | + | ScriptResult(WriteSet([DataEntry(RESERVATIONKEY, ValidateAndIncreaseReservedAmt(winAmt)), DataEntry(GAMESCOUNTERKEY, newGameNum), DataEntry(gameId, gameDataStr)]), TransferSet(nil)) | |
618 | 613 | } | |
619 | 614 | } | |
620 | 615 | ||
621 | 616 | ||
622 | 617 | ||
623 | 618 | @Callable(i) | |
624 | 619 | func withdraw (gameId,rsaSig) = { | |
625 | 620 | let gameDataList = ExtractGameDataList(gameId) | |
626 | 621 | let gameState = gameDataList[IdxGameState] | |
627 | - | let | |
622 | + | let prediction = parseIntValue(gameDataList[IdxPrediction]) | |
628 | 623 | let rollType = gameDataList[IdxType] | |
629 | 624 | let winAmt = parseIntValue(gameDataList[IdxWinAmt]) | |
630 | 625 | let playerPubKey58 = gameDataList[IdxPlayerPubKey58] | |
631 | 626 | let playerAddress = addressFromPublicKey(fromBase58String(playerPubKey58)) | |
632 | 627 | let decreasedReserves = DecreaseReservedAmt(gameId, winAmt) | |
633 | 628 | if ((gameState != STATESUBMITTED)) | |
634 | 629 | then throw("Invalid game state for passed gameId") | |
635 | 630 | else { | |
636 | 631 | let rand = GenerateRandInt(gameId, rsaSig) | |
637 | 632 | let randStr = RandToStr(rand) | |
638 | - | if (diceWin(rollType, | |
633 | + | if (diceWin(rollType, prediction, rand)) | |
639 | 634 | then { | |
640 | - | let newGameDataStr = FormatGameDataStr(STATEWON, | |
635 | + | let newGameDataStr = FormatGameDataStr(STATEWON, prediction, rollType, playerPubKey58, winAmt, randStr) | |
641 | 636 | WinScriptSet(gameId, playerAddress, winAmt, newGameDataStr) | |
642 | 637 | } | |
643 | 638 | else { | |
644 | - | let newGameDataStr = FormatGameDataStr(STATELOST, | |
639 | + | let newGameDataStr = FormatGameDataStr(STATELOST, prediction, rollType, playerPubKey58, winAmt, randStr) | |
645 | 640 | WriteSet([DataEntry(gameId, newGameDataStr)]) | |
646 | 641 | } | |
647 | 642 | } | |
648 | 643 | } | |
649 | 644 | ||
650 | 645 |
github/deemru/w8io/169f3d6 204.74 ms ◑