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