tx · 77P66cZjLaVTy76TH3CFQzBu6trprVKrpnZQndRXpCQG 3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa: -0.05000000 Waves 2019.10.25 21:00 [735969] smart account 3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa > SELF 0.00000000 Waves
{ "type": 13, "id": "77P66cZjLaVTy76TH3CFQzBu6trprVKrpnZQndRXpCQG", "fee": 5000000, "feeAssetId": null, "timestamp": 1572026351231, "version": 1, "sender": "3NCs4motPXw3h6vyT7o6PAKmbo3e2jk8kHa", "senderPublicKey": "DdkgRd7YzZtSU3hXJc7sHsU7sM8nUSEwkzqZCaCTXKRe", "proofs": [ "28KzGHzzETyATkB5MqKrrEYZyNHmag9oPKgHh3LyNxv6GtXUfaR5YN679nC3aVzAF1b4ztaMjcrrBAtVo5JQGhVe" ], "script": "base64:AAIDAAAAAAAAAA4IARIECgIIARIECgIIAgAAACgAAAAACVJTQVBVQkxJQwkAAlsAAAABAgAAAN9iYXNlNjQ6TFMwdExTMUNSVWRKVGlCU1UwRWdVRlZDVEVsRElFdEZXUzB0TFMwdENrMUZaME5SVVVOVWRXaEhNaXQzTjBzelMyaDJjMjg0VVVOT1R5OUZWMU50TUdOblFWZHRPVmRTYmtkTE1qQXhiV1ZhUldGMFpqZG1VbUpEUkZBeFQzSUtiM0U1V1ZnMU5XRlhlbGhGUjJKRFkzVndPRTltWVdSMFdWRm5Sa0ZuVFVKQlFVVTlDaTB0TFMwdFJVNUVJRkpUUVNCUVZVSk1TVU1nUzBWWkxTMHRMUzA9AAAAAA9HQU1FU0NPVU5URVJLRVkCAAAACSRHQU1FX05VTQAAAAAOUkVTRVJWQVRJT05LRVkCAAAAECRSRVNFUlZFRF9BTU9VTlQAAAAABFdCRVQBAAAAIA+bi6xab2gnOR9SbfiMgOxiQKrNdZOH+I5+YI04ouDJAAAAAA5XQUxMRVRXQVZFU0JFVAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVI5g9Ot7MZAQi0oorIsD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ZVdpbgAAAAMFAAAACHJvbGxUeXBlBQAAAAlwcmVkY3Rpb24FAAAABHJhbmQEAAAADm5ld0dhbWVEYXRhU3RyCQEAAAARRm9ybWF0R2FtZURhdGFTdHIAAAAGBQAAAAhTVEFURVdPTgUAAAAJcHJlZGN0aW9uBQAAAAhyb2xsVHlwZQUAAAAOcGxheWVyUHViS2V5NTgFAAAABndpbkFtdAUAAAAHcmFuZFN0cgkBAAAADFdpblNjcmlwdFNldAAAAAQFAAAABmdhbWVJZAUAAAANcGxheWVyQWRkcmVzcwUAAAAGd2luQW10BQAAAA5uZXdHYW1lRGF0YVN0cgQAAAAObmV3R2FtZURhdGFTdHIJAQAAABFGb3JtYXRHYW1lRGF0YVN0cgAAAAYFAAAACVNUQVRFTE9TVAUAAAAJcHJlZGN0aW9uBQAAAAhyb2xsVHlwZQUAAAAOcGxheWVyUHViS2V5NTgFAAAABndpbkFtdAUAAAAHcmFuZFN0cgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGZ2FtZUlkBQAAAA5uZXdHYW1lRGF0YVN0cgUAAAADbmlsAAAAAP+tAug=", "chainId": 84, "height": 735969, "spentComplexity": 0 } View: original | compacted Prev: 2uC2ShcKoLnKVrfNQCt16HDNfmCcgJQgpg4kbzaV51Xw Next: EpmHXpZLTz7FB8mXjPBQx96iLRb98NhwsxAEfEn2mg7F Diff:
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:LS0tLS1CRUdJTiBSU0EgUFVCTElDIEtFWS0tLS0tCk1FZ0NRUUNUdWhHMit3N0szS2h2c284UUNOTy9FV1NtMGNnQVdtOVdSbkdLMjAxbWVaRWF0ZjdmUmJDRFAxT3IKb3E5WVg1NWFXelhFR2JDY3VwOE9mYWR0WVFnRkFnTUJBQUU9Ci0tLS0tRU5EIFJTQSBQVUJMSUMgS0VZLS0tLS0=") | |
5 | 5 | ||
6 | 6 | let GAMESCOUNTERKEY = "$GAME_NUM" | |
7 | 7 | ||
146 | 146 | ||
147 | 147 | ||
148 | 148 | func GenerateRandInt (gameId,rsaSign) = { | |
149 | - | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), | |
149 | + | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), rsaSign, RSAPUBLIC) | |
150 | 150 | if (rsaSigValid) | |
151 | 151 | then { | |
152 | - | let rand = (toInt(sha256( | |
152 | + | let rand = (toInt(sha256(rsaSign)) % 100) | |
153 | 153 | if ((0 > rand)) | |
154 | 154 | then ((-1 * rand) + 1) | |
155 | 155 | else (rand + 1) |
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:LS0tLS1CRUdJTiBSU0EgUFVCTElDIEtFWS0tLS0tCk1FZ0NRUUNUdWhHMit3N0szS2h2c284UUNOTy9FV1NtMGNnQVdtOVdSbkdLMjAxbWVaRWF0ZjdmUmJDRFAxT3IKb3E5WVg1NWFXelhFR2JDY3VwOE9mYWR0WVFnRkFnTUJBQUU9Ci0tLS0tRU5EIFJTQSBQVUJMSUMgS0VZLS0tLS0=") | |
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 | - | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), | |
149 | + | let rsaSigValid = rsaVerify(SHA256, toBytes(gameId), rsaSign, RSAPUBLIC) | |
150 | 150 | if (rsaSigValid) | |
151 | 151 | then { | |
152 | - | let rand = (toInt(sha256( | |
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 99.18 ms ◑