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