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