tx · GyfXV9FxeaAcrbJEEYs6RTEeWs11oXnFKt7BDruDpqQd 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy: -0.02700000 Waves 2024.11.28 03:49 [3390590] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves
{ "type": 13, "id": "GyfXV9FxeaAcrbJEEYs6RTEeWs11oXnFKt7BDruDpqQd", "fee": 2700000, "feeAssetId": null, "timestamp": 1732755046525, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "5GqmBveCWZgmUGyqCgAEDQdUefg93NYg3XFsrUDJRn6MG5hMr825w7rS3kEq8qsvSL66JMpHc7mbD6A8vrdnUpEt" ], "script": "base64:BgJNCAISBgoECAgICBIDCgEIEgMKAQESBAoCCAESAwoBARIECgIIARIAEgMKAQgSAwoBARIDCgEBEgMKAQgSAwoBCBIDCgEBEgASBAoCCAGVAQADU0VQAgJfXwAFTVVMVDYAwIQ9AAVNVUxUOACAwtcvAA5NSU5TSE9QUEFZTUVOVACgjQYACkRBWV9NSUxMSVMAgLiZKQAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACkRBWV9CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAoAsDCQAAAgEBVAUHJG1hdGNoMAA8CQACAQINVW5rbm93biBjaGFpbgALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AClZSRl9PRkZTRVQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAAAMJAAACAQFUBQckbWF0Y2gwAJD5RQkAAgECDVVua25vd24gY2hhaW4AC3VzZHRBc3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vbGRQYXJ0aWNpcGFudHMJAQt2YWx1ZU9yRWxzZQIJAJ8IAQkBGGtleVRvdGFsV2Vla1BhcnRpY2lwYW50cwEFBHdlZWsAAAQSdXBkYXRlUGFydGljaXBhbnRzAwMJAAACBQpvbGRUaWNrZXRzAAAJAAACBQxkZWx0YVRpY2tldHMAAQcJAMwIAgkBDEludGVnZXJFbnRyeQIJARhrZXlUb3RhbFdlZWtQYXJ0aWNpcGFudHMBBQR3ZWVrCQBkAgUPb2xkUGFydGljaXBhbnRzAAEFA25pbAUDbmlsCQCUCgIJAM0IAgkAzQgCBRJ1cGRhdGVQYXJ0aWNpcGFudHMJAQxJbnRlZ2VyRW50cnkCBQp0aWNrZXRzS2V5CQBkAgUKb2xkVGlja2V0cwUMZGVsdGFUaWNrZXRzCQEMSW50ZWdlckVudHJ5AgkBE2tleVRvdGFsV2Vla1RpY2tldHMBBQR3ZWVrCQBkAgUPb2xkVG90YWxUaWNrZXRzBQxkZWx0YVRpY2tldHMFDGRlbHRhVGlja2V0cwCjhCfv", "height": 3390590, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FX8Qp3uNwbKYfwhC7DJLfiwrELQX9pkQMsFq3XPmDwks Next: B6tY7jQBcjiCQhjKLqgPBb4xFLdeFqtx8WyjCQ3xo2U Diff:
Old | New | Differences | |
---|---|---|---|
67 | 67 | else throw("Unknown chain") | |
68 | 68 | } | |
69 | 69 | ||
70 | - | let n = { | |
71 | - | let h = f | |
72 | - | if ((base58'2W' == h)) | |
73 | - | then false | |
74 | - | else if ((base58'2T' == h)) | |
75 | - | then true | |
76 | - | else throw("Unknown chain") | |
77 | - | } | |
78 | - | ||
79 | - | func o (p,q) = valueOrErrorMessage(getString(p, q), makeString(["mandatory ", toString(p), ".", q, " is not defined"], "")) | |
70 | + | func n (o,p) = valueOrErrorMessage(getString(o, p), makeString(["mandatory ", toString(o), ".", p, " is not defined"], "")) | |
80 | 71 | ||
81 | 72 | ||
82 | - | let | |
73 | + | let q = 1 | |
83 | 74 | ||
84 | - | let | |
75 | + | let r = 2 | |
85 | 76 | ||
86 | - | let | |
77 | + | let s = 4 | |
87 | 78 | ||
88 | - | let | |
79 | + | let t = 5 | |
89 | 80 | ||
90 | - | func | |
81 | + | func u () = "%s__restConfig" | |
91 | 82 | ||
92 | 83 | ||
93 | - | func | |
84 | + | func v () = "%s__rest2Addr" | |
94 | 85 | ||
95 | 86 | ||
96 | - | func | |
87 | + | func w () = "%s__restAddr" | |
97 | 88 | ||
98 | 89 | ||
99 | - | let | |
90 | + | let x = addressFromStringValue(valueOrElse(getString(this, w()), m)) | |
100 | 91 | ||
101 | - | func | |
92 | + | func y (z) = split_4C(n(z, u()), a) | |
102 | 93 | ||
103 | 94 | ||
104 | - | func | |
95 | + | func A (B,C) = valueOrErrorMessage(addressFromString(B[C]), ("Rest cfg doesn't contain address at index " + toString(C))) | |
105 | 96 | ||
106 | 97 | ||
107 | - | let | |
98 | + | let D = 1 | |
108 | 99 | ||
109 | - | let | |
100 | + | let E = 8 | |
110 | 101 | ||
111 | - | let | |
102 | + | let F = y(x) | |
112 | 103 | ||
113 | - | let | |
104 | + | let G = A(F, D) | |
114 | 105 | ||
115 | - | let | |
106 | + | let H = A(F, E) | |
116 | 107 | ||
117 | - | let | |
108 | + | let I = addressFromStringValue(valueOrElse(getString(this, v()), l)) | |
118 | 109 | ||
119 | - | let | |
110 | + | let B = y(I) | |
120 | 111 | ||
121 | - | let | |
112 | + | let J = A(B, q) | |
122 | 113 | ||
123 | - | let | |
114 | + | let K = A(B, r) | |
124 | 115 | ||
125 | - | let | |
116 | + | let L = A(B, s) | |
126 | 117 | ||
127 | - | let | |
118 | + | let M = A(B, t) | |
128 | 119 | ||
129 | - | func | |
120 | + | func N (O) = ("lastWeekTxIdByUser_" + O) | |
130 | 121 | ||
131 | 122 | ||
132 | - | let | |
123 | + | let P = "wlg_assetId" | |
133 | 124 | ||
134 | - | let | |
125 | + | let Q = valueOrErrorMessage(getBinary(K, P), "WLGOLD is not issued yet") | |
135 | 126 | ||
136 | - | func | |
127 | + | func R (O) = ("userBet_" + O) | |
137 | 128 | ||
138 | 129 | ||
139 | - | func | |
130 | + | func S (O,T) = ((("userWeekTickets_" + O) + "_") + toString(T)) | |
140 | 131 | ||
141 | 132 | ||
142 | - | func | |
133 | + | func U (T) = ("totalWeekTickets_" + toString(T)) | |
143 | 134 | ||
144 | 135 | ||
145 | - | func | |
136 | + | func V (T) = ("totalWeekParticipants_" + toString(T)) | |
146 | 137 | ||
147 | 138 | ||
148 | - | func | |
139 | + | func W (T) = ("numNFT2Draw_" + toString(T)) | |
149 | 140 | ||
150 | 141 | ||
151 | - | func | |
142 | + | func X (T) = ("numNFTDrawn_" + toString(T)) | |
152 | 143 | ||
153 | 144 | ||
154 | - | func | |
145 | + | func Y (T) = ("weekWinners_" + toString(T)) | |
155 | 146 | ||
156 | 147 | ||
157 | - | func | |
158 | - | let | |
159 | - | let | |
160 | - | then | |
161 | - | else ( | |
162 | - | (toInt(value(value(blockInfoByHeight( | |
148 | + | func Z (aa) = { | |
149 | + | let ab = (aa * g) | |
150 | + | let ac = if ((ab > j)) | |
151 | + | then ab | |
152 | + | else (ab + j) | |
153 | + | (toInt(value(value(blockInfoByHeight(ac)).vrf)) % 4) | |
163 | 154 | } | |
164 | 155 | ||
165 | 156 | ||
166 | - | let | |
157 | + | let ad = 0 | |
167 | 158 | ||
168 | - | let | |
159 | + | let ae = 1 | |
169 | 160 | ||
170 | - | let | |
161 | + | let af = 2 | |
171 | 162 | ||
172 | - | let | |
163 | + | let ag = 8 | |
173 | 164 | ||
174 | - | let | |
165 | + | let ah = 11 | |
175 | 166 | ||
176 | - | let | |
167 | + | let ai = 12 | |
177 | 168 | ||
178 | - | let | |
169 | + | let aj = 15 | |
179 | 170 | ||
180 | - | let | |
171 | + | let ak = 16 | |
181 | 172 | ||
182 | - | let | |
173 | + | let al = 19 | |
183 | 174 | ||
184 | - | let | |
175 | + | let am = 23 | |
185 | 176 | ||
186 | - | let | |
177 | + | let an = 24 | |
187 | 178 | ||
188 | - | let | |
179 | + | let ao = 25 | |
189 | 180 | ||
190 | - | let | |
181 | + | let ap = 26 | |
191 | 182 | ||
192 | - | let | |
183 | + | let aq = 27 | |
193 | 184 | ||
194 | - | let | |
185 | + | let ar = 28 | |
195 | 186 | ||
196 | - | let | |
187 | + | let as = 29 | |
197 | 188 | ||
198 | - | func | |
199 | - | let h = | |
189 | + | func at (au) = { | |
190 | + | let h = au | |
200 | 191 | if ($isInstanceOf(h, "Int")) | |
201 | 192 | then { | |
202 | - | let | |
203 | - | | |
193 | + | let av = h | |
194 | + | av | |
204 | 195 | } | |
205 | 196 | else throw("fail to cast into Int") | |
206 | 197 | } | |
207 | 198 | ||
208 | 199 | ||
209 | - | func | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | (((toString(( | |
200 | + | func aw (ax,ay) = { | |
201 | + | let az = pow(10, 0, ay, 0, 0, DOWN) | |
202 | + | let aA = toString((ax % az)) | |
203 | + | let aB = drop(toString(az), (1 + size(aA))) | |
204 | + | (((toString((ax / az)) + ".") + aB) + aA) | |
214 | 205 | } | |
215 | 206 | ||
216 | 207 | ||
217 | - | func | |
208 | + | func aC (aD,aE,aF) = if ((0 >= aD)) | |
218 | 209 | then throw("maxValue should be > 0") | |
219 | 210 | else { | |
220 | - | let | |
221 | - | (toInt( | |
211 | + | let aG = sha256_16Kb((aE + aF)) | |
212 | + | (toInt(aG) % aD) | |
222 | 213 | } | |
223 | 214 | ||
224 | 215 | ||
225 | - | let | |
216 | + | let aH = 100000000 | |
226 | 217 | ||
227 | - | let | |
218 | + | let aI = 3200 | |
228 | 219 | ||
229 | - | let | |
220 | + | let aJ = 4000 | |
230 | 221 | ||
231 | - | let | |
222 | + | let aK = 3 | |
232 | 223 | ||
233 | - | let | |
224 | + | let aL = 100000000000 | |
234 | 225 | ||
235 | - | func | |
226 | + | func aM (O) = ("userXP_" + O) | |
236 | 227 | ||
237 | 228 | ||
238 | - | func | |
229 | + | func aN (O) = ("userLevel_" + O) | |
239 | 230 | ||
240 | 231 | ||
241 | - | let | |
232 | + | let aO = 10000 | |
242 | 233 | ||
243 | - | func | |
234 | + | func aP (aQ) = fraction(aI, pow(aQ, 4, aJ, 4, 4, DOWN), aH) | |
244 | 235 | ||
245 | 236 | ||
246 | - | func | |
247 | - | let | |
248 | - | [ | |
237 | + | func aR (aS,aT) = { | |
238 | + | let aU = aP(aT) | |
239 | + | [aU, (aK * (aU - aS))] | |
249 | 240 | } | |
250 | 241 | ||
251 | 242 | ||
252 | - | let | |
243 | + | let aV = 100000000000000 | |
253 | 244 | ||
254 | - | let | |
245 | + | let aW = 400000 | |
255 | 246 | ||
256 | - | let | |
247 | + | let aX = 86400000 | |
257 | 248 | ||
258 | - | let | |
249 | + | let aY = "teamAddr" | |
259 | 250 | ||
260 | - | let | |
251 | + | let aZ = "lastClaimedTime_team" | |
261 | 252 | ||
262 | - | let | |
253 | + | let ba = "teamAmountLeft" | |
263 | 254 | ||
264 | - | let | |
255 | + | let bb = "lastClaimedTime_activities" | |
265 | 256 | ||
266 | - | let | |
257 | + | let bc = "activitiesAmountLeft" | |
267 | 258 | ||
268 | - | let | |
259 | + | let bd = "stakersAmountLeft" | |
269 | 260 | ||
270 | - | func | |
261 | + | func be (O) = ("lastArbTimeUser_" + O) | |
271 | 262 | ||
272 | 263 | ||
273 | - | func | |
264 | + | func bf (O) = ("lastWlgLimitUser_" + O) | |
274 | 265 | ||
275 | 266 | ||
276 | - | let | |
267 | + | let bg = "wlg_issueTime" | |
277 | 268 | ||
278 | - | let | |
269 | + | let bh = "wlg_issuedAmount" | |
279 | 270 | ||
280 | - | func | |
271 | + | func bi (O) = ("acresStakedAmountByUser_" + O) | |
281 | 272 | ||
282 | 273 | ||
283 | - | func | |
274 | + | func bj (O) = ("wlgStakedAmountByUser_" + O) | |
284 | 275 | ||
285 | 276 | ||
286 | - | let | |
277 | + | let bk = "wlgStakedAmountTotal" | |
287 | 278 | ||
288 | - | func | |
279 | + | func bl (O) = ("wlgStakedTimeByUser_" + O) | |
289 | 280 | ||
290 | 281 | ||
291 | - | let | |
282 | + | let bm = 1000000 | |
292 | 283 | ||
293 | - | let | |
284 | + | let bn = 100000000 | |
294 | 285 | ||
295 | - | let | |
286 | + | let bo = 200000 | |
296 | 287 | ||
297 | - | let | |
288 | + | let bp = 100000 | |
298 | 289 | ||
299 | - | let | |
290 | + | let bq = 400000 | |
300 | 291 | ||
301 | - | let | |
292 | + | let br = 31557600000 | |
302 | 293 | ||
303 | - | let | |
294 | + | let bs = 86400000 | |
304 | 295 | ||
305 | - | let | |
296 | + | let bt = 1000000000 | |
306 | 297 | ||
307 | - | let bv = 800000 | |
298 | + | let bu = 800000 | |
299 | + | ||
300 | + | let bv = 100000 | |
308 | 301 | ||
309 | 302 | let bw = 100000 | |
310 | 303 | ||
311 | - | let bx = | |
304 | + | let bx = 1731279600000 | |
312 | 305 | ||
313 | - | let by = | |
306 | + | let by = "marketingAddr" | |
314 | 307 | ||
315 | - | let bz = " | |
308 | + | let bz = "teamAddr" | |
316 | 309 | ||
317 | - | let bA = " | |
310 | + | let bA = "lastClaimedTime_team" | |
318 | 311 | ||
319 | - | let bB = " | |
312 | + | let bB = "teamAmountLeft" | |
320 | 313 | ||
321 | - | let bC = " | |
314 | + | let bC = "lastClaimedTime_activities" | |
322 | 315 | ||
323 | - | let bD = " | |
316 | + | let bD = "activitiesAmountLeft" | |
324 | 317 | ||
325 | - | let bE = " | |
318 | + | let bE = "stakersAmountLeft" | |
326 | 319 | ||
327 | - | let bF = "stakersAmountLeft" | |
328 | - | ||
329 | - | func bG (P) = ("lastClaimedTimeUser_" + P) | |
320 | + | func bF (O) = ("lastClaimedTimeUser_" + O) | |
330 | 321 | ||
331 | 322 | ||
332 | - | func | |
323 | + | func bG (bH,bI) = fraction(bH, (bq * (bI + 1)), (6 * bm)) | |
333 | 324 | ||
334 | 325 | ||
335 | - | let | |
326 | + | let bJ = "wlg_issue10Time" | |
336 | 327 | ||
337 | - | let | |
328 | + | let bK = "wlg_issueTime" | |
338 | 329 | ||
339 | - | let | |
330 | + | let bL = "wlg_issuedAmount" | |
340 | 331 | ||
341 | - | let | |
332 | + | let bM = "zbill_issuedAmount" | |
342 | 333 | ||
343 | - | func | |
334 | + | func bN (O) = ("acresStakedAmountByUser_" + O) | |
344 | 335 | ||
345 | 336 | ||
346 | - | let | |
337 | + | let bO = "acresStakedAmountTotal" | |
347 | 338 | ||
348 | - | let | |
339 | + | let bP = "totalFarmingPower" | |
349 | 340 | ||
350 | - | let | |
341 | + | let bQ = 0 | |
351 | 342 | ||
352 | - | let | |
343 | + | let bR = 1 | |
353 | 344 | ||
354 | - | let | |
345 | + | let bS = 2 | |
355 | 346 | ||
356 | - | let | |
347 | + | let bT = 3 | |
357 | 348 | ||
358 | - | let | |
349 | + | let bU = 4 | |
359 | 350 | ||
360 | - | let | |
351 | + | let bV = 1 | |
361 | 352 | ||
362 | - | let | |
353 | + | let bW = 5 | |
363 | 354 | ||
364 | - | let | |
355 | + | let bX = 100000000 | |
365 | 356 | ||
366 | - | let | |
357 | + | let bY = "nftTotalIssued" | |
367 | 358 | ||
368 | - | let | |
359 | + | let bZ = "nftTotalBurned" | |
369 | 360 | ||
370 | - | let | |
361 | + | let ca = "WlNftTotalStaked" | |
371 | 362 | ||
372 | - | func | |
363 | + | func cb (O) = ("userWlNftNumber_" + O) | |
373 | 364 | ||
374 | 365 | ||
375 | - | func | |
366 | + | func cc (O) = ("userFullBonus_" + O) | |
376 | 367 | ||
377 | 368 | ||
378 | - | let | |
369 | + | let cd = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
379 | 370 | ||
380 | - | func | |
381 | - | let | |
382 | - | func | |
383 | - | then | |
384 | - | else ( | |
371 | + | func ce (cf) = { | |
372 | + | let cg = ((cf + 99999999) / bn) | |
373 | + | func ch (ci,cj) = if ((cj >= cg)) | |
374 | + | then ci | |
375 | + | else (ci + 1) | |
385 | 376 | ||
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | func | |
390 | - | then | |
391 | - | else | |
377 | + | let ck = cd | |
378 | + | let cl = size(ck) | |
379 | + | let cm = 0 | |
380 | + | func cn (co,cp) = if ((cp >= cl)) | |
381 | + | then co | |
382 | + | else ch(co, ck[cp]) | |
392 | 383 | ||
393 | - | func | |
394 | - | then | |
384 | + | func cq (co,cp) = if ((cp >= cl)) | |
385 | + | then co | |
395 | 386 | else throw("List size exceeds 10") | |
396 | 387 | ||
397 | - | | |
388 | + | cq(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cm, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
398 | 389 | } | |
399 | 390 | ||
400 | 391 | ||
401 | - | func | |
392 | + | func cr (cf) = ((cf * 20) * (ce(cf) + 4)) | |
402 | 393 | ||
403 | 394 | ||
404 | - | func | |
405 | - | let | |
406 | - | $Tuple2(fraction( | |
395 | + | func cs (cf,ct) = { | |
396 | + | let cu = cr(cf) | |
397 | + | $Tuple2(fraction(cu, (bm + ct), bm), cu) | |
407 | 398 | } | |
408 | 399 | ||
409 | 400 | ||
410 | - | func | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | [ | |
401 | + | func cv (cw,J) = { | |
402 | + | let cx = valueOrElse(getInteger(J, bP), 0) | |
403 | + | let cy = valueOrElse(getInteger(J, bN(cw)), 0) | |
404 | + | let cz = valueOrElse(getInteger(J, cc(cw)), 0) | |
405 | + | let cA = cs(cy, cz) | |
406 | + | let cB = cA._1 | |
407 | + | let cC = cA._2 | |
408 | + | [cx, cB, cC, cz] | |
418 | 409 | } | |
419 | 410 | ||
420 | 411 | ||
421 | - | let | |
412 | + | let cD = 0 | |
422 | 413 | ||
423 | - | let | |
414 | + | let cE = 1 | |
424 | 415 | ||
425 | - | func | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | then | |
460 | - | else if (( | |
416 | + | func cF (cG,cH,cI,cJ) = { | |
417 | + | let bH = valueOrErrorMessage(getInteger(cH[bS], bL), "WLGOLD is not issued yet") | |
418 | + | let cK = assetBalance(cH[bQ], cI) | |
419 | + | let cL = (assetBalance(cH[bS], cI) - cJ) | |
420 | + | let cM = assetBalance(cH[bT], cI) | |
421 | + | let cN = assetBalance(cH[bR], cI) | |
422 | + | let cO = cH[bU] | |
423 | + | let cP = (assetBalance(cO, cI) + valueOrElse(getInteger(cO, bM), 0)) | |
424 | + | let cQ = ((cN + cL) + cP) | |
425 | + | let cR = valueOrErrorMessage(getBinary(cH[bS], "wlg_assetId"), "Not initialized yet") | |
426 | + | let cS = lastBlock.timestamp | |
427 | + | let cT = valueOrErrorMessage(getInteger(cH[bS], bK), "Not initialized") | |
428 | + | let cU = assetBalance(cH[bS], cR) | |
429 | + | let cV = fraction(bH, bo, bm) | |
430 | + | let cW = valueOrElse(getInteger(cH[bS], bB), cV) | |
431 | + | let cX = valueOrElse(getInteger(cH[bS], bA), cT) | |
432 | + | let cY = addressFromStringValue(value(getString(cH[bS], bz))) | |
433 | + | let cZ = min([fraction(cV, (cS - cX), (3 * br)), cW]) | |
434 | + | let da = assetBalance(cY, cR) | |
435 | + | let db = fraction(bH, bp, bm) | |
436 | + | let dc = valueOrElse(getInteger(cH[bS], bD), db) | |
437 | + | let dd = valueOrElse(getInteger(cH[bS], bC), cT) | |
438 | + | let de = min([fraction(db, (cS - dd), (3 * br)), dc]) | |
439 | + | let df = assetBalance(cH[bQ], cR) | |
440 | + | let dg = valueOrElse(getInteger(cH[bS], bF(cG)), cT) | |
441 | + | let dh = ((dg - cT) / br) | |
442 | + | let di = min([cS, (cT + (3 * br))]) | |
443 | + | let dj = min([((cS - cT) / br), 2]) | |
444 | + | let dk = cv(cG, cH[bR]) | |
445 | + | let dl = bG(bH, dj) | |
446 | + | let dm = (cT + (br * dj)) | |
447 | + | let dn = (cT + (br * (dj - 1))) | |
448 | + | let do = fraction(dl, (di - dg), br) | |
449 | + | let dp = if ((dh == dj)) | |
450 | + | then do | |
451 | + | else if ((dh == (dj - 1))) | |
461 | 452 | then { | |
462 | - | let | |
463 | - | ( | |
453 | + | let dq = fraction(bG(bH, (dj - 1)), (dm - dg), br) | |
454 | + | (dq + do) | |
464 | 455 | } | |
465 | 456 | else { | |
466 | - | let | |
467 | - | let | |
468 | - | (( | |
457 | + | let dr = fraction(bG(bH, (dj - 2)), (dn - dg), br) | |
458 | + | let dq = bG(bH, (dj - 1)) | |
459 | + | ((dr + dq) + do) | |
469 | 460 | } | |
470 | - | let | |
471 | - | let | |
472 | - | then fraction( | |
461 | + | let ds = valueOrElse(getInteger(cH[bS], bE), 0) | |
462 | + | let dt = if ((dk[cD] != 0)) | |
463 | + | then fraction(dp, dk[cE], dk[cD]) | |
473 | 464 | else 0 | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | then fraction(fraction(fraction( | |
465 | + | let du = valueOrElse(getInteger(cH[bS], bJ), bx) | |
466 | + | let dv = fraction(bt, max([(cS - du), 0]), bs) | |
467 | + | let dw = fraction(dv, bv, bm) | |
468 | + | let dx = fraction(dv, bw, bm) | |
469 | + | let dy = max([(cS - max([bx, dg])), 0]) | |
470 | + | let dz = if ((dk[cD] != 0)) | |
471 | + | then fraction(fraction(fraction(bt, dy, bs), dk[cE], dk[cD]), bu, bm) | |
481 | 472 | else 0 | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | [ | |
473 | + | let dA = max([bx, cS]) | |
474 | + | let dB = valueOrElse(getInteger(cH[bR], bO), 0) | |
475 | + | let dC = valueOrElse(getInteger(cH[bR], bY), 0) | |
476 | + | let dD = valueOrElse(getInteger(cH[bR], bZ), 0) | |
477 | + | let dE = valueOrElse(getInteger(cH[bR], ca), 0) | |
478 | + | let dF = valueOrElse(getInteger(cH[bR], cb(valueOrElse(cG, ""))), 0) | |
479 | + | [bH, cU, fraction(cQ, bn, bH), cQ, cK, cN, cL, cM, cT, cX, cV, cW, cZ, da, db, dc, de, df, dj, ds, dl, dg, cP, dt, di, dv, dw, dx, dz, dA, dk[cD], dB, dC, dD, dE, dF] | |
489 | 480 | } | |
490 | 481 | ||
491 | 482 | ||
492 | - | let | |
483 | + | let dG = "profitAddr" | |
493 | 484 | ||
494 | - | let | |
485 | + | let dH = "stakersAmountPaidTotal" | |
495 | 486 | ||
496 | - | func | |
487 | + | func dI (O) = ("stakersAmountPaidUser_" + O) | |
497 | 488 | ||
498 | 489 | ||
499 | - | func | |
490 | + | func dJ () = at(reentrantInvoke(J, "saveLastTx", nil, nil)) | |
500 | 491 | ||
501 | 492 | ||
502 | - | func | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | min([ | |
493 | + | func dK (O) = { | |
494 | + | let dL = valueOrElse(getInteger(be(O)), 0) | |
495 | + | let dM = valueOrElse(getInteger(J, bi(O)), 0) | |
496 | + | let dN = valueOrElse(getInteger(bf(O)), dM) | |
497 | + | let dO = (dN + fraction(dM, (lastBlock.timestamp - dL), e)) | |
498 | + | min([dO, dM]) | |
508 | 499 | } | |
509 | 500 | ||
510 | 501 | ||
511 | - | func | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | if (( | |
502 | + | func dP (O) = { | |
503 | + | let dQ = cF(O, [I, J, K, L, M], k, 0) | |
504 | + | let dR = bF(O) | |
505 | + | let dg = valueOrElse(getInteger(dR), 0) | |
506 | + | let dS = dQ[an] | |
507 | + | if ((dg == dS)) | |
517 | 508 | then $Tuple2(nil, 0) | |
518 | 509 | else { | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | then [ScriptTransfer(addressFromStringValue(value(getString( | |
510 | + | let cS = lastBlock.timestamp | |
511 | + | let cT = dQ[ag] | |
512 | + | let cW = dQ[ah] | |
513 | + | let dT = (dQ[ai] + dQ[aq]) | |
514 | + | let dU = if ((dT > 0)) | |
515 | + | then [ScriptTransfer(addressFromStringValue(value(getString(aY))), dT, Q)] | |
525 | 516 | else nil | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | then [ScriptTransfer( | |
517 | + | let dc = dQ[aj] | |
518 | + | let dV = dQ[ak] | |
519 | + | let dW = if ((dV > 0)) | |
520 | + | then [ScriptTransfer(x, dV, Q)] | |
530 | 521 | else nil | |
531 | - | let | |
532 | - | let | |
533 | - | then [ScriptTransfer(addressFromStringValue(value(getString( | |
522 | + | let dX = dQ[ap] | |
523 | + | let dY = if ((dX > 0)) | |
524 | + | then [ScriptTransfer(addressFromStringValue(value(getString(by))), dX, Q)] | |
534 | 525 | else nil | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | $Tuple2(((([Reissue( | |
526 | + | let dt = dQ[am] | |
527 | + | let dZ = dI(O) | |
528 | + | let ea = (dt + dQ[ar]) | |
529 | + | let eb = dQ[ao] | |
530 | + | $Tuple2(((([Reissue(Q, eb, true), IntegerEntry(bh, (dQ[ad] + eb)), IntegerEntry(bJ, dQ[as]), IntegerEntry(dZ, (valueOrElse(getInteger(dZ), 0) + dt)), IntegerEntry(dH, (valueOrElse(getInteger(dH), 0) + dt)), IntegerEntry(bd, (dQ[al] - dt)), IntegerEntry(ba, ((cW - dT) + dQ[aq])), IntegerEntry(aZ, cS), IntegerEntry(bc, (dc - dV)), IntegerEntry(bb, cS), IntegerEntry(dR, dS)] ++ dU) ++ dW) ++ dY), ea) | |
540 | 531 | } | |
541 | 532 | } | |
542 | 533 | ||
543 | 534 | ||
544 | - | func | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | $Tuple3([IntegerEntry( | |
535 | + | func ec (O,ed) = { | |
536 | + | let cS = lastBlock.timestamp | |
537 | + | let ee = bl(O) | |
538 | + | let ef = bj(O) | |
539 | + | let dL = valueOrElse(getInteger(ee), 0) | |
540 | + | let eg = valueOrElse(getInteger(ef), 0) | |
541 | + | let eh = valueOrElse(getInteger(bk), 0) | |
542 | + | let aQ = fraction(fraction(aO, eg, aL), (dL - cS), aX) | |
543 | + | $Tuple3([IntegerEntry(ee, cS), IntegerEntry(ef, (eg + ed)), IntegerEntry(bk, (eh + ed))], aQ, eg) | |
553 | 544 | } | |
554 | 545 | ||
555 | 546 | ||
556 | - | func | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | if ((0 >= | |
547 | + | func ei (O) = { | |
548 | + | let T = (height / i) | |
549 | + | let ej = (T - 1) | |
550 | + | let ek = valueOrElse(getInteger(W(ej)), bW) | |
551 | + | let el = valueOrElse(getInteger(X(ej)), 0) | |
552 | + | let em = valueOrElse(getInteger(S(O, ej)), 0) | |
553 | + | if ((0 >= em)) | |
563 | 554 | then $Tuple2(nil, unit) | |
564 | 555 | else { | |
565 | - | let | |
566 | - | if ((0 >= | |
567 | - | then $Tuple2([DeleteEntry( | |
556 | + | let en = valueOrElse(getInteger(U(ej)), 0) | |
557 | + | if ((0 >= en)) | |
558 | + | then $Tuple2([DeleteEntry(S(O, ej))], unit) | |
568 | 559 | else { | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | if ((( | |
560 | + | let aF = value(value(blockInfoByHeight((T * i))).vrf) | |
561 | + | let aE = fromBase58String(split(valueOrElse(getString(J, N(O)), "42_DEFAULT"), "_")[1]) | |
562 | + | let eo = aC(en, aE, aF) | |
563 | + | if (((em * ek) > eo)) | |
573 | 564 | then { | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | then ((value( | |
578 | - | else | |
579 | - | $Tuple2([IntegerEntry( | |
565 | + | let ep = invoke(J, "issueNFT", [O, bV], nil) | |
566 | + | let eq = getString(Y(ej)) | |
567 | + | let er = if (isDefined(eq)) | |
568 | + | then ((value(eq) + "_") + O) | |
569 | + | else O | |
570 | + | $Tuple2([IntegerEntry(X(ej), (el + 1)), DeleteEntry(S(O, ej)), StringEntry(Y(ej), er)], ep) | |
580 | 571 | } | |
581 | 572 | else { | |
582 | - | let | |
583 | - | let | |
584 | - | $Tuple2([DeleteEntry( | |
573 | + | let es = (aC(9, (base58'29' + aE), aF) + 1) | |
574 | + | let et = fraction(em, es, 10) | |
575 | + | $Tuple2([DeleteEntry(S(O, ej)), IntegerEntry(S(O, T), et)], et) | |
585 | 576 | } | |
586 | 577 | } | |
587 | 578 | } | |
588 | 579 | } | |
589 | 580 | ||
590 | 581 | ||
591 | - | func | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
582 | + | func eu (O,ev) = { | |
583 | + | let T = (height / i) | |
584 | + | let ew = S(O, T) | |
585 | + | let ex = split(ev, "_") | |
586 | + | let ey = valueOrElse(getInteger(U(T)), 0) | |
587 | + | let ez = valueOrElse(getInteger(ew), 0) | |
588 | + | let eA = if ((Z(parseIntValue(ex[0])) == parseIntValue(ex[1]))) | |
598 | 589 | then 1 | |
599 | 590 | else 0 | |
600 | - | let | |
601 | - | let | |
602 | - | then ( | |
591 | + | let eB = valueOrElse(getInteger(V(T)), 0) | |
592 | + | let eC = if (if ((ez == 0)) | |
593 | + | then (eA == 1) | |
603 | 594 | else false) | |
604 | - | then [IntegerEntry( | |
595 | + | then [IntegerEntry(V(T), (eB + 1))] | |
605 | 596 | else nil | |
606 | - | $Tuple2(if (( | |
597 | + | $Tuple2(if ((eA == 0)) | |
607 | 598 | then nil | |
608 | - | else (( | |
599 | + | else ((eC :+ IntegerEntry(ew, (ez + eA))) :+ IntegerEntry(U(T), (ey + eA))), eA) | |
609 | 600 | } | |
610 | 601 | ||
611 | 602 | ||
612 | - | @Callable( | |
613 | - | func constructorV1 (eF,eG | |
603 | + | @Callable(eD) | |
604 | + | func constructorV1 (eE,eF,cY,eG) = if ((eD.caller != this)) | |
614 | 605 | then throw("Permission denied") | |
615 | - | else if (isDefined(getBinary( | |
606 | + | else if (isDefined(getBinary(P))) | |
616 | 607 | then throw("Already initialized") | |
617 | 608 | else { | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | [ | |
609 | + | let bH = aV | |
610 | + | let eH = Issue("WLGOLD", "WavesLands Gold investment token", bH, 8, true, unit, 0) | |
611 | + | let eI = calculateAssetId(eH) | |
612 | + | [eH, IntegerEntry(bg, lastBlock.timestamp), IntegerEntry(bh, bH), IntegerEntry(dH, 0), IntegerEntry(bd, fraction(aV, aW, b)), BinaryEntry(P, eI), StringEntry(w(), eE), StringEntry(by, eF), StringEntry(aY, cY), StringEntry(dG, eG)] | |
622 | 613 | } | |
623 | 614 | ||
624 | 615 | ||
625 | 616 | ||
626 | - | @Callable( | |
627 | - | func constructorV2 ( | |
617 | + | @Callable(eD) | |
618 | + | func constructorV2 (eJ) = if ((eD.caller != this)) | |
628 | 619 | then throw("Permission denied") | |
629 | - | else [StringEntry( | |
620 | + | else [StringEntry(v(), eJ)] | |
630 | 621 | ||
631 | 622 | ||
632 | 623 | ||
633 | - | @Callable( | |
634 | - | func buyWlg ( | |
635 | - | let | |
636 | - | if (( | |
637 | - | then if ((size( | |
624 | + | @Callable(eD) | |
625 | + | func buyWlg (eK) = { | |
626 | + | let eL = dJ() | |
627 | + | if ((eL == eL)) | |
628 | + | then if ((size(eD.payments) != 1)) | |
638 | 629 | then throw("exactly 1 payment must be attached") | |
639 | 630 | else { | |
640 | - | let | |
641 | - | let | |
642 | - | if (if (!(isDefined( | |
631 | + | let eM = eD.payments[0] | |
632 | + | let eN = eM.amount | |
633 | + | if (if (!(isDefined(eM.assetId))) | |
643 | 634 | then true | |
644 | - | else (value( | |
635 | + | else (value(eM.assetId) != k)) | |
645 | 636 | then throw("USDT payments only!") | |
646 | 637 | else { | |
647 | - | let | |
648 | - | let | |
649 | - | if ((d > | |
650 | - | then throw((("You can trade min " + | |
638 | + | let eO = eD.caller | |
639 | + | let O = toString(eO) | |
640 | + | if ((d > eN)) | |
641 | + | then throw((("You can trade min " + aw(d, 6)) + " USDT")) | |
651 | 642 | else { | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | if (( | |
659 | - | then throw((("You can get max " + | |
660 | - | else if (( | |
643 | + | let dQ = cF("", [I, J, K, L, M], k, eN) | |
644 | + | let eP = dQ[ad] | |
645 | + | let eQ = dQ[af] | |
646 | + | let eR = fraction(eQ, 6, 5, CEILING) | |
647 | + | let eS = fraction(eN, c, eR) | |
648 | + | let eT = dK(O) | |
649 | + | if ((eS > eT)) | |
650 | + | then throw((("You can get max " + aw(eT, 8)) + " WLGOLD at the moment")) | |
651 | + | else if ((eK > eS)) | |
661 | 652 | then throw("Price changed during operation, please try again") | |
662 | 653 | else { | |
663 | - | let | |
664 | - | $Tuple2([Reissue( | |
654 | + | let eU = (eN / 6) | |
655 | + | $Tuple2([Reissue(Q, eS, true), IntegerEntry(bh, (eP + eS)), IntegerEntry(be(O), lastBlock.timestamp), IntegerEntry(bf(O), (eT - eS)), ScriptTransfer(addressFromStringValue(value(getString(dG))), eU, k), ScriptTransfer(eO, eS, Q)], eL) | |
665 | 656 | } | |
666 | 657 | } | |
667 | 658 | } | |
671 | 662 | ||
672 | 663 | ||
673 | 664 | ||
674 | - | @Callable( | |
675 | - | func buyWlgREADONLY ( | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | $Tuple2(nil, [ | |
665 | + | @Callable(eD) | |
666 | + | func buyWlgREADONLY (o,eN) = { | |
667 | + | let dQ = cF("", [I, J, K, L, M], k, eN) | |
668 | + | let eQ = dQ[af] | |
669 | + | let eR = fraction(eQ, 6, 5, CEILING) | |
670 | + | let eS = fraction(eN, c, eR) | |
671 | + | let eT = dK(o) | |
672 | + | let eV = fraction(eT, eR, c) | |
673 | + | let eU = (eN / 6) | |
674 | + | $Tuple2(nil, [eS, d, eV, eU]) | |
684 | 675 | } | |
685 | 676 | ||
686 | 677 | ||
687 | 678 | ||
688 | - | @Callable( | |
689 | - | func sellWlg ( | |
690 | - | let | |
691 | - | if (( | |
692 | - | then if ((size( | |
679 | + | @Callable(eD) | |
680 | + | func sellWlg (eW) = { | |
681 | + | let eL = dJ() | |
682 | + | if ((eL == eL)) | |
683 | + | then if ((size(eD.payments) != 1)) | |
693 | 684 | then throw("exactly 1 payment must be attached") | |
694 | 685 | else { | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | if (( | |
701 | - | then throw((("You can spend max " + | |
702 | - | else if (if (!(isDefined( | |
686 | + | let eM = eD.payments[0] | |
687 | + | let eX = eM.amount | |
688 | + | let eO = eD.caller | |
689 | + | let O = toString(eO) | |
690 | + | let eT = dK(O) | |
691 | + | if ((eX > eT)) | |
692 | + | then throw((("You can spend max " + aw(eT, 8)) + " WLGOLD at the moment")) | |
693 | + | else if (if (!(isDefined(eM.assetId))) | |
703 | 694 | then true | |
704 | - | else (value( | |
695 | + | else (value(eM.assetId) != Q)) | |
705 | 696 | then throw("WLGOLD payments only!") | |
706 | 697 | else { | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | if ((d > | |
712 | - | then throw((("You can trade min " + | |
713 | - | else if (( | |
698 | + | let dQ = cF("", [I, J, K, L, M], k, 0) | |
699 | + | let eP = dQ[ad] | |
700 | + | let eY = (dQ[af] / 2) | |
701 | + | let eN = fraction(eX, eY, c) | |
702 | + | if ((d > eN)) | |
703 | + | then throw((("You can trade min " + aw(d, 6)) + " USDT")) | |
704 | + | else if ((eW > eN)) | |
714 | 705 | then throw("Price changed during operation, please try again") | |
715 | 706 | else { | |
716 | - | let | |
717 | - | $Tuple2([Burn( | |
707 | + | let eU = (eN / 5) | |
708 | + | $Tuple2([Burn(Q, eX), IntegerEntry(bh, (eP - eX)), IntegerEntry(be(O), lastBlock.timestamp), IntegerEntry(bf(O), (eT - eX)), ScriptTransfer(addressFromStringValue(value(getString(dG))), eU, k), ScriptTransfer(eO, eN, k)], eL) | |
718 | 709 | } | |
719 | 710 | } | |
720 | 711 | } | |
723 | 714 | ||
724 | 715 | ||
725 | 716 | ||
726 | - | @Callable( | |
727 | - | func sellWlgREADONLY ( | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | $Tuple2(nil, [ | |
717 | + | @Callable(eD) | |
718 | + | func sellWlgREADONLY (o,eX) = { | |
719 | + | let eT = dK(o) | |
720 | + | let dQ = cF("", [I, J, K, L, M], k, 0) | |
721 | + | let eY = (dQ[af] / 2) | |
722 | + | let eN = fraction(eX, eY, c) | |
723 | + | let eZ = fraction(d, c, eY) | |
724 | + | let eU = (eN / 5) | |
725 | + | $Tuple2(nil, [eN, eZ, eT, eU]) | |
735 | 726 | } | |
736 | 727 | ||
737 | 728 | ||
738 | 729 | ||
739 | - | @Callable( | |
730 | + | @Callable(eD) | |
740 | 731 | func claim () = { | |
741 | - | let | |
742 | - | if (( | |
743 | - | then if ((size( | |
732 | + | let eL = dJ() | |
733 | + | if ((eL == eL)) | |
734 | + | then if ((size(eD.payments) != 0)) | |
744 | 735 | then throw("No payments required") | |
745 | 736 | else { | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | $Tuple2(( | |
737 | + | let fa = dP(toString(eD.caller)) | |
738 | + | let fb = fa._1 | |
739 | + | let fc = fa._2 | |
740 | + | $Tuple2((fb :+ ScriptTransfer(eD.caller, fc, Q)), eL) | |
750 | 741 | } | |
751 | 742 | else throw("Strict value is not equal to itself.") | |
752 | 743 | } | |
753 | 744 | ||
754 | 745 | ||
755 | 746 | ||
756 | - | @Callable( | |
757 | - | func onStakeUnstakeLand ( | |
758 | - | then ( | |
747 | + | @Callable(eD) | |
748 | + | func onStakeUnstakeLand (O) = if (if (if ((eD.caller != G)) | |
749 | + | then (eD.caller != H) | |
759 | 750 | else false) | |
760 | - | then ( | |
751 | + | then (eD.caller != J) | |
761 | 752 | else false) | |
762 | 753 | then throw("Permission denied") | |
763 | 754 | else { | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | $Tuple2(if (( | |
768 | - | then ( | |
769 | - | else | |
755 | + | let fd = dP(O) | |
756 | + | let fb = fd._1 | |
757 | + | let fc = fd._2 | |
758 | + | $Tuple2(if ((fc > 0)) | |
759 | + | then (fb :+ ScriptTransfer(addressFromStringValue(O), fc, Q)) | |
760 | + | else fb, fc) | |
770 | 761 | } | |
771 | 762 | ||
772 | 763 | ||
773 | 764 | ||
774 | - | @Callable( | |
775 | - | func burnWlgold ( | |
765 | + | @Callable(eD) | |
766 | + | func burnWlgold (eX) = if ((eD.caller != J)) | |
776 | 767 | then throw("Permission denied") | |
777 | 768 | else { | |
778 | - | let | |
779 | - | if (( | |
780 | - | then throw(((("Only " + | |
769 | + | let dQ = cF("", [I, J, K, L, M], k, 0) | |
770 | + | if ((eX > dQ[ae])) | |
771 | + | then throw(((("Only " + aw(dQ[ae], 8)) + " WLGOLD left on contract, can't burn ") + aw(eX, 8))) | |
781 | 772 | else { | |
782 | - | let | |
783 | - | $Tuple2([Burn( | |
773 | + | let fe = (dQ[ad] - eX) | |
774 | + | $Tuple2([Burn(Q, eX), IntegerEntry(bh, fe)], fe) | |
784 | 775 | } | |
785 | 776 | } | |
786 | 777 | ||
787 | 778 | ||
788 | 779 | ||
789 | - | @Callable( | |
790 | - | func betForTicket ( | |
791 | - | let | |
792 | - | if (( | |
793 | - | then if ((size( | |
780 | + | @Callable(eD) | |
781 | + | func betForTicket (ff) = { | |
782 | + | let eL = dJ() | |
783 | + | if ((eL == eL)) | |
784 | + | then if ((size(eD.payments) != 0)) | |
794 | 785 | then throw("No payments required") | |
795 | 786 | else { | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | if (if (( | |
801 | - | then ( | |
787 | + | let O = toString(eD.caller) | |
788 | + | let ej = ((height / i) - 1) | |
789 | + | let em = valueOrElse(getInteger(S(O, ej)), 0) | |
790 | + | let en = valueOrElse(getInteger(U(ej)), 0) | |
791 | + | if (if ((em > 0)) | |
792 | + | then (en > 0) | |
802 | 793 | else false) | |
803 | 794 | then throw("Please open the chest first") | |
804 | - | else if ((( | |
795 | + | else if (((ff / 4) != 0)) | |
805 | 796 | then throw("Invalid bet: should be 0..3") | |
806 | 797 | else { | |
807 | - | let | |
808 | - | if (( | |
809 | - | then throw((("Cannot bet: the day is almost ended, please wait " + toString((g - | |
798 | + | let fg = (height % g) | |
799 | + | if ((fg > (g - 3))) | |
800 | + | then throw((("Cannot bet: the day is almost ended, please wait " + toString((g - fg))) + " blocks")) | |
810 | 801 | else { | |
811 | - | let | |
812 | - | if (( | |
813 | - | then throw((("You need to stake at least " + | |
802 | + | let fh = valueOrElse(getInteger(J, bN(O)), 0) | |
803 | + | if ((bX > fh)) | |
804 | + | then throw((("You need to stake at least " + aw(bX, 8)) + " ACRES to bet")) | |
814 | 805 | else { | |
815 | - | let | |
816 | - | let | |
817 | - | let | |
818 | - | let | |
819 | - | if (isDefined( | |
806 | + | let fi = ((height / g) + 1) | |
807 | + | let fj = R(O) | |
808 | + | let fk = getString(fj) | |
809 | + | let fl = StringEntry(fj, ((toString(fi) + "_") + toString(ff))) | |
810 | + | if (isDefined(fk)) | |
820 | 811 | then { | |
821 | - | let | |
822 | - | if ((split( | |
812 | + | let fm = value(fk) | |
813 | + | if ((split(fm, "_")[0] == toString(fi))) | |
823 | 814 | then throw("You already bet for tomorrow") | |
824 | 815 | else { | |
825 | - | let | |
826 | - | $Tuple2(( | |
816 | + | let fn = eu(O, fm) | |
817 | + | $Tuple2((fn._1 :+ fl), fn._2) | |
827 | 818 | } | |
828 | 819 | } | |
829 | - | else $Tuple2([ | |
820 | + | else $Tuple2([fl], 0) | |
830 | 821 | } | |
831 | 822 | } | |
832 | 823 | } | |
836 | 827 | ||
837 | 828 | ||
838 | 829 | ||
839 | - | @Callable( | |
840 | - | func takeWlgXp ( | |
830 | + | @Callable(eD) | |
831 | + | func takeWlgXp (O) = if ((eD.caller != G)) | |
841 | 832 | then throw("Permission denied") | |
842 | 833 | else { | |
843 | - | let | |
844 | - | let | |
845 | - | let | |
846 | - | $Tuple2( | |
834 | + | let fo = ec(O, 0) | |
835 | + | let fb = fo._1 | |
836 | + | let aQ = fo._2 | |
837 | + | $Tuple2(fb, aQ) | |
847 | 838 | } | |
848 | 839 | ||
849 | 840 | ||
850 | 841 | ||
851 | - | @Callable( | |
852 | - | func checkWlgXpREADONLY ( | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | let | |
857 | - | let | |
858 | - | $Tuple2(nil, ( | |
842 | + | @Callable(eD) | |
843 | + | func checkWlgXpREADONLY (O) = { | |
844 | + | let fp = ec(O, 0) | |
845 | + | let fq = fp._1 | |
846 | + | let fr = fp._2 | |
847 | + | let aT = (valueOrElse(getInteger(G, aM(O)), 0) + fr) | |
848 | + | let fs = aR(valueOrElse(getInteger(G, aN(O)), 0), aT) | |
849 | + | $Tuple2(nil, (fs :+ aT)) | |
859 | 850 | } | |
860 | 851 | ||
861 | 852 | ||
862 | 853 | ||
863 | - | @Callable( | |
864 | - | func setNumPrizes ( | |
854 | + | @Callable(eD) | |
855 | + | func setNumPrizes (ek) = if ((eD.caller != this)) | |
865 | 856 | then throw("Permission denied") | |
866 | 857 | else { | |
867 | - | let | |
868 | - | $Tuple2([IntegerEntry( | |
858 | + | let T = (height / i) | |
859 | + | $Tuple2([IntegerEntry(W(T), ek)], ek) | |
869 | 860 | } | |
870 | 861 | ||
871 | 862 | ||
872 | 863 | ||
873 | - | @Callable(eE) | |
874 | - | func openChest () = if (!(n)) | |
875 | - | then throw("Temporarily disabled") | |
876 | - | else { | |
877 | - | let eM = dK() | |
878 | - | if ((eM == eM)) | |
879 | - | then if ((size(eE.payments) != 0)) | |
880 | - | then throw("No payments required") | |
881 | - | else { | |
882 | - | let ek = ((height / i) - 1) | |
883 | - | let P = toString(eE.caller) | |
884 | - | let en = valueOrElse(getInteger(T(P, ek)), 0) | |
885 | - | if ((0 >= en)) | |
886 | - | then throw("No gems to open the chest") | |
887 | - | else ej(P) | |
888 | - | } | |
889 | - | else throw("Strict value is not equal to itself.") | |
890 | - | } | |
864 | + | @Callable(eD) | |
865 | + | func openChest () = { | |
866 | + | let eL = dJ() | |
867 | + | if ((eL == eL)) | |
868 | + | then if ((size(eD.payments) != 0)) | |
869 | + | then throw("No payments required") | |
870 | + | else { | |
871 | + | let ej = ((height / i) - 1) | |
872 | + | let O = toString(eD.caller) | |
873 | + | let em = valueOrElse(getInteger(S(O, ej)), 0) | |
874 | + | if ((0 >= em)) | |
875 | + | then throw("No gems to open the chest") | |
876 | + | else ei(O) | |
877 | + | } | |
878 | + | else throw("Strict value is not equal to itself.") | |
879 | + | } | |
891 | 880 | ||
892 | 881 | ||
893 | 882 | ||
894 | - | @Callable( | |
895 | - | func addGemsFor ( | |
883 | + | @Callable(eD) | |
884 | + | func addGemsFor (O,eA) = if ((eD.caller != this)) | |
896 | 885 | then throw("Permission denied") | |
897 | 886 | else { | |
898 | - | let | |
899 | - | let | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | then ( | |
887 | + | let T = (height / i) | |
888 | + | let ew = S(O, T) | |
889 | + | let ey = valueOrElse(getInteger(U(T)), 0) | |
890 | + | let ez = valueOrElse(getInteger(ew), 0) | |
891 | + | let eB = valueOrElse(getInteger(V(T)), 0) | |
892 | + | let eC = if (if ((ez == 0)) | |
893 | + | then (eA == 1) | |
905 | 894 | else false) | |
906 | - | then [IntegerEntry( | |
895 | + | then [IntegerEntry(V(T), (eB + 1))] | |
907 | 896 | else nil | |
908 | - | $Tuple2((( | |
897 | + | $Tuple2(((eC :+ IntegerEntry(ew, (ez + eA))) :+ IntegerEntry(U(T), (ey + eA))), eA) | |
909 | 898 | } | |
910 | 899 | ||
911 | 900 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = 100000 | |
11 | 11 | ||
12 | 12 | let e = 86400000 | |
13 | 13 | ||
14 | 14 | let f = take(drop(this.bytes, 1), 1) | |
15 | 15 | ||
16 | 16 | let g = { | |
17 | 17 | let h = f | |
18 | 18 | if ((base58'2W' == h)) | |
19 | 19 | then 1440 | |
20 | 20 | else if ((base58'2T' == h)) | |
21 | 21 | then 60 | |
22 | 22 | else throw("Unknown chain") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | let i = { | |
26 | 26 | let h = f | |
27 | 27 | if ((base58'2W' == h)) | |
28 | 28 | then 10080 | |
29 | 29 | else if ((base58'2T' == h)) | |
30 | 30 | then 180 | |
31 | 31 | else throw("Unknown chain") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | let j = { | |
35 | 35 | let h = f | |
36 | 36 | if ((base58'2W' == h)) | |
37 | 37 | then 0 | |
38 | 38 | else if ((base58'2T' == h)) | |
39 | 39 | then 1146000 | |
40 | 40 | else throw("Unknown chain") | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | let k = { | |
44 | 44 | let h = f | |
45 | 45 | if ((base58'2W' == h)) | |
46 | 46 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
47 | 47 | else if ((base58'2T' == h)) | |
48 | 48 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
49 | 49 | else throw("Unknown chain") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | let l = { | |
53 | 53 | let h = f | |
54 | 54 | if ((base58'2W' == h)) | |
55 | 55 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
56 | 56 | else if ((base58'2T' == h)) | |
57 | 57 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
58 | 58 | else throw("Unknown chain") | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | let m = { | |
62 | 62 | let h = f | |
63 | 63 | if ((base58'2W' == h)) | |
64 | 64 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
65 | 65 | else if ((base58'2T' == h)) | |
66 | 66 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
67 | 67 | else throw("Unknown chain") | |
68 | 68 | } | |
69 | 69 | ||
70 | - | let n = { | |
71 | - | let h = f | |
72 | - | if ((base58'2W' == h)) | |
73 | - | then false | |
74 | - | else if ((base58'2T' == h)) | |
75 | - | then true | |
76 | - | else throw("Unknown chain") | |
77 | - | } | |
78 | - | ||
79 | - | func o (p,q) = valueOrErrorMessage(getString(p, q), makeString(["mandatory ", toString(p), ".", q, " is not defined"], "")) | |
70 | + | func n (o,p) = valueOrErrorMessage(getString(o, p), makeString(["mandatory ", toString(o), ".", p, " is not defined"], "")) | |
80 | 71 | ||
81 | 72 | ||
82 | - | let | |
73 | + | let q = 1 | |
83 | 74 | ||
84 | - | let | |
75 | + | let r = 2 | |
85 | 76 | ||
86 | - | let | |
77 | + | let s = 4 | |
87 | 78 | ||
88 | - | let | |
79 | + | let t = 5 | |
89 | 80 | ||
90 | - | func | |
81 | + | func u () = "%s__restConfig" | |
91 | 82 | ||
92 | 83 | ||
93 | - | func | |
84 | + | func v () = "%s__rest2Addr" | |
94 | 85 | ||
95 | 86 | ||
96 | - | func | |
87 | + | func w () = "%s__restAddr" | |
97 | 88 | ||
98 | 89 | ||
99 | - | let | |
90 | + | let x = addressFromStringValue(valueOrElse(getString(this, w()), m)) | |
100 | 91 | ||
101 | - | func | |
92 | + | func y (z) = split_4C(n(z, u()), a) | |
102 | 93 | ||
103 | 94 | ||
104 | - | func | |
95 | + | func A (B,C) = valueOrErrorMessage(addressFromString(B[C]), ("Rest cfg doesn't contain address at index " + toString(C))) | |
105 | 96 | ||
106 | 97 | ||
107 | - | let | |
98 | + | let D = 1 | |
108 | 99 | ||
109 | - | let | |
100 | + | let E = 8 | |
110 | 101 | ||
111 | - | let | |
102 | + | let F = y(x) | |
112 | 103 | ||
113 | - | let | |
104 | + | let G = A(F, D) | |
114 | 105 | ||
115 | - | let | |
106 | + | let H = A(F, E) | |
116 | 107 | ||
117 | - | let | |
108 | + | let I = addressFromStringValue(valueOrElse(getString(this, v()), l)) | |
118 | 109 | ||
119 | - | let | |
110 | + | let B = y(I) | |
120 | 111 | ||
121 | - | let | |
112 | + | let J = A(B, q) | |
122 | 113 | ||
123 | - | let | |
114 | + | let K = A(B, r) | |
124 | 115 | ||
125 | - | let | |
116 | + | let L = A(B, s) | |
126 | 117 | ||
127 | - | let | |
118 | + | let M = A(B, t) | |
128 | 119 | ||
129 | - | func | |
120 | + | func N (O) = ("lastWeekTxIdByUser_" + O) | |
130 | 121 | ||
131 | 122 | ||
132 | - | let | |
123 | + | let P = "wlg_assetId" | |
133 | 124 | ||
134 | - | let | |
125 | + | let Q = valueOrErrorMessage(getBinary(K, P), "WLGOLD is not issued yet") | |
135 | 126 | ||
136 | - | func | |
127 | + | func R (O) = ("userBet_" + O) | |
137 | 128 | ||
138 | 129 | ||
139 | - | func | |
130 | + | func S (O,T) = ((("userWeekTickets_" + O) + "_") + toString(T)) | |
140 | 131 | ||
141 | 132 | ||
142 | - | func | |
133 | + | func U (T) = ("totalWeekTickets_" + toString(T)) | |
143 | 134 | ||
144 | 135 | ||
145 | - | func | |
136 | + | func V (T) = ("totalWeekParticipants_" + toString(T)) | |
146 | 137 | ||
147 | 138 | ||
148 | - | func | |
139 | + | func W (T) = ("numNFT2Draw_" + toString(T)) | |
149 | 140 | ||
150 | 141 | ||
151 | - | func | |
142 | + | func X (T) = ("numNFTDrawn_" + toString(T)) | |
152 | 143 | ||
153 | 144 | ||
154 | - | func | |
145 | + | func Y (T) = ("weekWinners_" + toString(T)) | |
155 | 146 | ||
156 | 147 | ||
157 | - | func | |
158 | - | let | |
159 | - | let | |
160 | - | then | |
161 | - | else ( | |
162 | - | (toInt(value(value(blockInfoByHeight( | |
148 | + | func Z (aa) = { | |
149 | + | let ab = (aa * g) | |
150 | + | let ac = if ((ab > j)) | |
151 | + | then ab | |
152 | + | else (ab + j) | |
153 | + | (toInt(value(value(blockInfoByHeight(ac)).vrf)) % 4) | |
163 | 154 | } | |
164 | 155 | ||
165 | 156 | ||
166 | - | let | |
157 | + | let ad = 0 | |
167 | 158 | ||
168 | - | let | |
159 | + | let ae = 1 | |
169 | 160 | ||
170 | - | let | |
161 | + | let af = 2 | |
171 | 162 | ||
172 | - | let | |
163 | + | let ag = 8 | |
173 | 164 | ||
174 | - | let | |
165 | + | let ah = 11 | |
175 | 166 | ||
176 | - | let | |
167 | + | let ai = 12 | |
177 | 168 | ||
178 | - | let | |
169 | + | let aj = 15 | |
179 | 170 | ||
180 | - | let | |
171 | + | let ak = 16 | |
181 | 172 | ||
182 | - | let | |
173 | + | let al = 19 | |
183 | 174 | ||
184 | - | let | |
175 | + | let am = 23 | |
185 | 176 | ||
186 | - | let | |
177 | + | let an = 24 | |
187 | 178 | ||
188 | - | let | |
179 | + | let ao = 25 | |
189 | 180 | ||
190 | - | let | |
181 | + | let ap = 26 | |
191 | 182 | ||
192 | - | let | |
183 | + | let aq = 27 | |
193 | 184 | ||
194 | - | let | |
185 | + | let ar = 28 | |
195 | 186 | ||
196 | - | let | |
187 | + | let as = 29 | |
197 | 188 | ||
198 | - | func | |
199 | - | let h = | |
189 | + | func at (au) = { | |
190 | + | let h = au | |
200 | 191 | if ($isInstanceOf(h, "Int")) | |
201 | 192 | then { | |
202 | - | let | |
203 | - | | |
193 | + | let av = h | |
194 | + | av | |
204 | 195 | } | |
205 | 196 | else throw("fail to cast into Int") | |
206 | 197 | } | |
207 | 198 | ||
208 | 199 | ||
209 | - | func | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | (((toString(( | |
200 | + | func aw (ax,ay) = { | |
201 | + | let az = pow(10, 0, ay, 0, 0, DOWN) | |
202 | + | let aA = toString((ax % az)) | |
203 | + | let aB = drop(toString(az), (1 + size(aA))) | |
204 | + | (((toString((ax / az)) + ".") + aB) + aA) | |
214 | 205 | } | |
215 | 206 | ||
216 | 207 | ||
217 | - | func | |
208 | + | func aC (aD,aE,aF) = if ((0 >= aD)) | |
218 | 209 | then throw("maxValue should be > 0") | |
219 | 210 | else { | |
220 | - | let | |
221 | - | (toInt( | |
211 | + | let aG = sha256_16Kb((aE + aF)) | |
212 | + | (toInt(aG) % aD) | |
222 | 213 | } | |
223 | 214 | ||
224 | 215 | ||
225 | - | let | |
216 | + | let aH = 100000000 | |
226 | 217 | ||
227 | - | let | |
218 | + | let aI = 3200 | |
228 | 219 | ||
229 | - | let | |
220 | + | let aJ = 4000 | |
230 | 221 | ||
231 | - | let | |
222 | + | let aK = 3 | |
232 | 223 | ||
233 | - | let | |
224 | + | let aL = 100000000000 | |
234 | 225 | ||
235 | - | func | |
226 | + | func aM (O) = ("userXP_" + O) | |
236 | 227 | ||
237 | 228 | ||
238 | - | func | |
229 | + | func aN (O) = ("userLevel_" + O) | |
239 | 230 | ||
240 | 231 | ||
241 | - | let | |
232 | + | let aO = 10000 | |
242 | 233 | ||
243 | - | func | |
234 | + | func aP (aQ) = fraction(aI, pow(aQ, 4, aJ, 4, 4, DOWN), aH) | |
244 | 235 | ||
245 | 236 | ||
246 | - | func | |
247 | - | let | |
248 | - | [ | |
237 | + | func aR (aS,aT) = { | |
238 | + | let aU = aP(aT) | |
239 | + | [aU, (aK * (aU - aS))] | |
249 | 240 | } | |
250 | 241 | ||
251 | 242 | ||
252 | - | let | |
243 | + | let aV = 100000000000000 | |
253 | 244 | ||
254 | - | let | |
245 | + | let aW = 400000 | |
255 | 246 | ||
256 | - | let | |
247 | + | let aX = 86400000 | |
257 | 248 | ||
258 | - | let | |
249 | + | let aY = "teamAddr" | |
259 | 250 | ||
260 | - | let | |
251 | + | let aZ = "lastClaimedTime_team" | |
261 | 252 | ||
262 | - | let | |
253 | + | let ba = "teamAmountLeft" | |
263 | 254 | ||
264 | - | let | |
255 | + | let bb = "lastClaimedTime_activities" | |
265 | 256 | ||
266 | - | let | |
257 | + | let bc = "activitiesAmountLeft" | |
267 | 258 | ||
268 | - | let | |
259 | + | let bd = "stakersAmountLeft" | |
269 | 260 | ||
270 | - | func | |
261 | + | func be (O) = ("lastArbTimeUser_" + O) | |
271 | 262 | ||
272 | 263 | ||
273 | - | func | |
264 | + | func bf (O) = ("lastWlgLimitUser_" + O) | |
274 | 265 | ||
275 | 266 | ||
276 | - | let | |
267 | + | let bg = "wlg_issueTime" | |
277 | 268 | ||
278 | - | let | |
269 | + | let bh = "wlg_issuedAmount" | |
279 | 270 | ||
280 | - | func | |
271 | + | func bi (O) = ("acresStakedAmountByUser_" + O) | |
281 | 272 | ||
282 | 273 | ||
283 | - | func | |
274 | + | func bj (O) = ("wlgStakedAmountByUser_" + O) | |
284 | 275 | ||
285 | 276 | ||
286 | - | let | |
277 | + | let bk = "wlgStakedAmountTotal" | |
287 | 278 | ||
288 | - | func | |
279 | + | func bl (O) = ("wlgStakedTimeByUser_" + O) | |
289 | 280 | ||
290 | 281 | ||
291 | - | let | |
282 | + | let bm = 1000000 | |
292 | 283 | ||
293 | - | let | |
284 | + | let bn = 100000000 | |
294 | 285 | ||
295 | - | let | |
286 | + | let bo = 200000 | |
296 | 287 | ||
297 | - | let | |
288 | + | let bp = 100000 | |
298 | 289 | ||
299 | - | let | |
290 | + | let bq = 400000 | |
300 | 291 | ||
301 | - | let | |
292 | + | let br = 31557600000 | |
302 | 293 | ||
303 | - | let | |
294 | + | let bs = 86400000 | |
304 | 295 | ||
305 | - | let | |
296 | + | let bt = 1000000000 | |
306 | 297 | ||
307 | - | let bv = 800000 | |
298 | + | let bu = 800000 | |
299 | + | ||
300 | + | let bv = 100000 | |
308 | 301 | ||
309 | 302 | let bw = 100000 | |
310 | 303 | ||
311 | - | let bx = | |
304 | + | let bx = 1731279600000 | |
312 | 305 | ||
313 | - | let by = | |
306 | + | let by = "marketingAddr" | |
314 | 307 | ||
315 | - | let bz = " | |
308 | + | let bz = "teamAddr" | |
316 | 309 | ||
317 | - | let bA = " | |
310 | + | let bA = "lastClaimedTime_team" | |
318 | 311 | ||
319 | - | let bB = " | |
312 | + | let bB = "teamAmountLeft" | |
320 | 313 | ||
321 | - | let bC = " | |
314 | + | let bC = "lastClaimedTime_activities" | |
322 | 315 | ||
323 | - | let bD = " | |
316 | + | let bD = "activitiesAmountLeft" | |
324 | 317 | ||
325 | - | let bE = " | |
318 | + | let bE = "stakersAmountLeft" | |
326 | 319 | ||
327 | - | let bF = "stakersAmountLeft" | |
328 | - | ||
329 | - | func bG (P) = ("lastClaimedTimeUser_" + P) | |
320 | + | func bF (O) = ("lastClaimedTimeUser_" + O) | |
330 | 321 | ||
331 | 322 | ||
332 | - | func | |
323 | + | func bG (bH,bI) = fraction(bH, (bq * (bI + 1)), (6 * bm)) | |
333 | 324 | ||
334 | 325 | ||
335 | - | let | |
326 | + | let bJ = "wlg_issue10Time" | |
336 | 327 | ||
337 | - | let | |
328 | + | let bK = "wlg_issueTime" | |
338 | 329 | ||
339 | - | let | |
330 | + | let bL = "wlg_issuedAmount" | |
340 | 331 | ||
341 | - | let | |
332 | + | let bM = "zbill_issuedAmount" | |
342 | 333 | ||
343 | - | func | |
334 | + | func bN (O) = ("acresStakedAmountByUser_" + O) | |
344 | 335 | ||
345 | 336 | ||
346 | - | let | |
337 | + | let bO = "acresStakedAmountTotal" | |
347 | 338 | ||
348 | - | let | |
339 | + | let bP = "totalFarmingPower" | |
349 | 340 | ||
350 | - | let | |
341 | + | let bQ = 0 | |
351 | 342 | ||
352 | - | let | |
343 | + | let bR = 1 | |
353 | 344 | ||
354 | - | let | |
345 | + | let bS = 2 | |
355 | 346 | ||
356 | - | let | |
347 | + | let bT = 3 | |
357 | 348 | ||
358 | - | let | |
349 | + | let bU = 4 | |
359 | 350 | ||
360 | - | let | |
351 | + | let bV = 1 | |
361 | 352 | ||
362 | - | let | |
353 | + | let bW = 5 | |
363 | 354 | ||
364 | - | let | |
355 | + | let bX = 100000000 | |
365 | 356 | ||
366 | - | let | |
357 | + | let bY = "nftTotalIssued" | |
367 | 358 | ||
368 | - | let | |
359 | + | let bZ = "nftTotalBurned" | |
369 | 360 | ||
370 | - | let | |
361 | + | let ca = "WlNftTotalStaked" | |
371 | 362 | ||
372 | - | func | |
363 | + | func cb (O) = ("userWlNftNumber_" + O) | |
373 | 364 | ||
374 | 365 | ||
375 | - | func | |
366 | + | func cc (O) = ("userFullBonus_" + O) | |
376 | 367 | ||
377 | 368 | ||
378 | - | let | |
369 | + | let cd = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
379 | 370 | ||
380 | - | func | |
381 | - | let | |
382 | - | func | |
383 | - | then | |
384 | - | else ( | |
371 | + | func ce (cf) = { | |
372 | + | let cg = ((cf + 99999999) / bn) | |
373 | + | func ch (ci,cj) = if ((cj >= cg)) | |
374 | + | then ci | |
375 | + | else (ci + 1) | |
385 | 376 | ||
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | func | |
390 | - | then | |
391 | - | else | |
377 | + | let ck = cd | |
378 | + | let cl = size(ck) | |
379 | + | let cm = 0 | |
380 | + | func cn (co,cp) = if ((cp >= cl)) | |
381 | + | then co | |
382 | + | else ch(co, ck[cp]) | |
392 | 383 | ||
393 | - | func | |
394 | - | then | |
384 | + | func cq (co,cp) = if ((cp >= cl)) | |
385 | + | then co | |
395 | 386 | else throw("List size exceeds 10") | |
396 | 387 | ||
397 | - | | |
388 | + | cq(cn(cn(cn(cn(cn(cn(cn(cn(cn(cn(cm, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
398 | 389 | } | |
399 | 390 | ||
400 | 391 | ||
401 | - | func | |
392 | + | func cr (cf) = ((cf * 20) * (ce(cf) + 4)) | |
402 | 393 | ||
403 | 394 | ||
404 | - | func | |
405 | - | let | |
406 | - | $Tuple2(fraction( | |
395 | + | func cs (cf,ct) = { | |
396 | + | let cu = cr(cf) | |
397 | + | $Tuple2(fraction(cu, (bm + ct), bm), cu) | |
407 | 398 | } | |
408 | 399 | ||
409 | 400 | ||
410 | - | func | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | [ | |
401 | + | func cv (cw,J) = { | |
402 | + | let cx = valueOrElse(getInteger(J, bP), 0) | |
403 | + | let cy = valueOrElse(getInteger(J, bN(cw)), 0) | |
404 | + | let cz = valueOrElse(getInteger(J, cc(cw)), 0) | |
405 | + | let cA = cs(cy, cz) | |
406 | + | let cB = cA._1 | |
407 | + | let cC = cA._2 | |
408 | + | [cx, cB, cC, cz] | |
418 | 409 | } | |
419 | 410 | ||
420 | 411 | ||
421 | - | let | |
412 | + | let cD = 0 | |
422 | 413 | ||
423 | - | let | |
414 | + | let cE = 1 | |
424 | 415 | ||
425 | - | func | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | then | |
460 | - | else if (( | |
416 | + | func cF (cG,cH,cI,cJ) = { | |
417 | + | let bH = valueOrErrorMessage(getInteger(cH[bS], bL), "WLGOLD is not issued yet") | |
418 | + | let cK = assetBalance(cH[bQ], cI) | |
419 | + | let cL = (assetBalance(cH[bS], cI) - cJ) | |
420 | + | let cM = assetBalance(cH[bT], cI) | |
421 | + | let cN = assetBalance(cH[bR], cI) | |
422 | + | let cO = cH[bU] | |
423 | + | let cP = (assetBalance(cO, cI) + valueOrElse(getInteger(cO, bM), 0)) | |
424 | + | let cQ = ((cN + cL) + cP) | |
425 | + | let cR = valueOrErrorMessage(getBinary(cH[bS], "wlg_assetId"), "Not initialized yet") | |
426 | + | let cS = lastBlock.timestamp | |
427 | + | let cT = valueOrErrorMessage(getInteger(cH[bS], bK), "Not initialized") | |
428 | + | let cU = assetBalance(cH[bS], cR) | |
429 | + | let cV = fraction(bH, bo, bm) | |
430 | + | let cW = valueOrElse(getInteger(cH[bS], bB), cV) | |
431 | + | let cX = valueOrElse(getInteger(cH[bS], bA), cT) | |
432 | + | let cY = addressFromStringValue(value(getString(cH[bS], bz))) | |
433 | + | let cZ = min([fraction(cV, (cS - cX), (3 * br)), cW]) | |
434 | + | let da = assetBalance(cY, cR) | |
435 | + | let db = fraction(bH, bp, bm) | |
436 | + | let dc = valueOrElse(getInteger(cH[bS], bD), db) | |
437 | + | let dd = valueOrElse(getInteger(cH[bS], bC), cT) | |
438 | + | let de = min([fraction(db, (cS - dd), (3 * br)), dc]) | |
439 | + | let df = assetBalance(cH[bQ], cR) | |
440 | + | let dg = valueOrElse(getInteger(cH[bS], bF(cG)), cT) | |
441 | + | let dh = ((dg - cT) / br) | |
442 | + | let di = min([cS, (cT + (3 * br))]) | |
443 | + | let dj = min([((cS - cT) / br), 2]) | |
444 | + | let dk = cv(cG, cH[bR]) | |
445 | + | let dl = bG(bH, dj) | |
446 | + | let dm = (cT + (br * dj)) | |
447 | + | let dn = (cT + (br * (dj - 1))) | |
448 | + | let do = fraction(dl, (di - dg), br) | |
449 | + | let dp = if ((dh == dj)) | |
450 | + | then do | |
451 | + | else if ((dh == (dj - 1))) | |
461 | 452 | then { | |
462 | - | let | |
463 | - | ( | |
453 | + | let dq = fraction(bG(bH, (dj - 1)), (dm - dg), br) | |
454 | + | (dq + do) | |
464 | 455 | } | |
465 | 456 | else { | |
466 | - | let | |
467 | - | let | |
468 | - | (( | |
457 | + | let dr = fraction(bG(bH, (dj - 2)), (dn - dg), br) | |
458 | + | let dq = bG(bH, (dj - 1)) | |
459 | + | ((dr + dq) + do) | |
469 | 460 | } | |
470 | - | let | |
471 | - | let | |
472 | - | then fraction( | |
461 | + | let ds = valueOrElse(getInteger(cH[bS], bE), 0) | |
462 | + | let dt = if ((dk[cD] != 0)) | |
463 | + | then fraction(dp, dk[cE], dk[cD]) | |
473 | 464 | else 0 | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | then fraction(fraction(fraction( | |
465 | + | let du = valueOrElse(getInteger(cH[bS], bJ), bx) | |
466 | + | let dv = fraction(bt, max([(cS - du), 0]), bs) | |
467 | + | let dw = fraction(dv, bv, bm) | |
468 | + | let dx = fraction(dv, bw, bm) | |
469 | + | let dy = max([(cS - max([bx, dg])), 0]) | |
470 | + | let dz = if ((dk[cD] != 0)) | |
471 | + | then fraction(fraction(fraction(bt, dy, bs), dk[cE], dk[cD]), bu, bm) | |
481 | 472 | else 0 | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | [ | |
473 | + | let dA = max([bx, cS]) | |
474 | + | let dB = valueOrElse(getInteger(cH[bR], bO), 0) | |
475 | + | let dC = valueOrElse(getInteger(cH[bR], bY), 0) | |
476 | + | let dD = valueOrElse(getInteger(cH[bR], bZ), 0) | |
477 | + | let dE = valueOrElse(getInteger(cH[bR], ca), 0) | |
478 | + | let dF = valueOrElse(getInteger(cH[bR], cb(valueOrElse(cG, ""))), 0) | |
479 | + | [bH, cU, fraction(cQ, bn, bH), cQ, cK, cN, cL, cM, cT, cX, cV, cW, cZ, da, db, dc, de, df, dj, ds, dl, dg, cP, dt, di, dv, dw, dx, dz, dA, dk[cD], dB, dC, dD, dE, dF] | |
489 | 480 | } | |
490 | 481 | ||
491 | 482 | ||
492 | - | let | |
483 | + | let dG = "profitAddr" | |
493 | 484 | ||
494 | - | let | |
485 | + | let dH = "stakersAmountPaidTotal" | |
495 | 486 | ||
496 | - | func | |
487 | + | func dI (O) = ("stakersAmountPaidUser_" + O) | |
497 | 488 | ||
498 | 489 | ||
499 | - | func | |
490 | + | func dJ () = at(reentrantInvoke(J, "saveLastTx", nil, nil)) | |
500 | 491 | ||
501 | 492 | ||
502 | - | func | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | min([ | |
493 | + | func dK (O) = { | |
494 | + | let dL = valueOrElse(getInteger(be(O)), 0) | |
495 | + | let dM = valueOrElse(getInteger(J, bi(O)), 0) | |
496 | + | let dN = valueOrElse(getInteger(bf(O)), dM) | |
497 | + | let dO = (dN + fraction(dM, (lastBlock.timestamp - dL), e)) | |
498 | + | min([dO, dM]) | |
508 | 499 | } | |
509 | 500 | ||
510 | 501 | ||
511 | - | func | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | if (( | |
502 | + | func dP (O) = { | |
503 | + | let dQ = cF(O, [I, J, K, L, M], k, 0) | |
504 | + | let dR = bF(O) | |
505 | + | let dg = valueOrElse(getInteger(dR), 0) | |
506 | + | let dS = dQ[an] | |
507 | + | if ((dg == dS)) | |
517 | 508 | then $Tuple2(nil, 0) | |
518 | 509 | else { | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | then [ScriptTransfer(addressFromStringValue(value(getString( | |
510 | + | let cS = lastBlock.timestamp | |
511 | + | let cT = dQ[ag] | |
512 | + | let cW = dQ[ah] | |
513 | + | let dT = (dQ[ai] + dQ[aq]) | |
514 | + | let dU = if ((dT > 0)) | |
515 | + | then [ScriptTransfer(addressFromStringValue(value(getString(aY))), dT, Q)] | |
525 | 516 | else nil | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | then [ScriptTransfer( | |
517 | + | let dc = dQ[aj] | |
518 | + | let dV = dQ[ak] | |
519 | + | let dW = if ((dV > 0)) | |
520 | + | then [ScriptTransfer(x, dV, Q)] | |
530 | 521 | else nil | |
531 | - | let | |
532 | - | let | |
533 | - | then [ScriptTransfer(addressFromStringValue(value(getString( | |
522 | + | let dX = dQ[ap] | |
523 | + | let dY = if ((dX > 0)) | |
524 | + | then [ScriptTransfer(addressFromStringValue(value(getString(by))), dX, Q)] | |
534 | 525 | else nil | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | $Tuple2(((([Reissue( | |
526 | + | let dt = dQ[am] | |
527 | + | let dZ = dI(O) | |
528 | + | let ea = (dt + dQ[ar]) | |
529 | + | let eb = dQ[ao] | |
530 | + | $Tuple2(((([Reissue(Q, eb, true), IntegerEntry(bh, (dQ[ad] + eb)), IntegerEntry(bJ, dQ[as]), IntegerEntry(dZ, (valueOrElse(getInteger(dZ), 0) + dt)), IntegerEntry(dH, (valueOrElse(getInteger(dH), 0) + dt)), IntegerEntry(bd, (dQ[al] - dt)), IntegerEntry(ba, ((cW - dT) + dQ[aq])), IntegerEntry(aZ, cS), IntegerEntry(bc, (dc - dV)), IntegerEntry(bb, cS), IntegerEntry(dR, dS)] ++ dU) ++ dW) ++ dY), ea) | |
540 | 531 | } | |
541 | 532 | } | |
542 | 533 | ||
543 | 534 | ||
544 | - | func | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | $Tuple3([IntegerEntry( | |
535 | + | func ec (O,ed) = { | |
536 | + | let cS = lastBlock.timestamp | |
537 | + | let ee = bl(O) | |
538 | + | let ef = bj(O) | |
539 | + | let dL = valueOrElse(getInteger(ee), 0) | |
540 | + | let eg = valueOrElse(getInteger(ef), 0) | |
541 | + | let eh = valueOrElse(getInteger(bk), 0) | |
542 | + | let aQ = fraction(fraction(aO, eg, aL), (dL - cS), aX) | |
543 | + | $Tuple3([IntegerEntry(ee, cS), IntegerEntry(ef, (eg + ed)), IntegerEntry(bk, (eh + ed))], aQ, eg) | |
553 | 544 | } | |
554 | 545 | ||
555 | 546 | ||
556 | - | func | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | if ((0 >= | |
547 | + | func ei (O) = { | |
548 | + | let T = (height / i) | |
549 | + | let ej = (T - 1) | |
550 | + | let ek = valueOrElse(getInteger(W(ej)), bW) | |
551 | + | let el = valueOrElse(getInteger(X(ej)), 0) | |
552 | + | let em = valueOrElse(getInteger(S(O, ej)), 0) | |
553 | + | if ((0 >= em)) | |
563 | 554 | then $Tuple2(nil, unit) | |
564 | 555 | else { | |
565 | - | let | |
566 | - | if ((0 >= | |
567 | - | then $Tuple2([DeleteEntry( | |
556 | + | let en = valueOrElse(getInteger(U(ej)), 0) | |
557 | + | if ((0 >= en)) | |
558 | + | then $Tuple2([DeleteEntry(S(O, ej))], unit) | |
568 | 559 | else { | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | if ((( | |
560 | + | let aF = value(value(blockInfoByHeight((T * i))).vrf) | |
561 | + | let aE = fromBase58String(split(valueOrElse(getString(J, N(O)), "42_DEFAULT"), "_")[1]) | |
562 | + | let eo = aC(en, aE, aF) | |
563 | + | if (((em * ek) > eo)) | |
573 | 564 | then { | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | then ((value( | |
578 | - | else | |
579 | - | $Tuple2([IntegerEntry( | |
565 | + | let ep = invoke(J, "issueNFT", [O, bV], nil) | |
566 | + | let eq = getString(Y(ej)) | |
567 | + | let er = if (isDefined(eq)) | |
568 | + | then ((value(eq) + "_") + O) | |
569 | + | else O | |
570 | + | $Tuple2([IntegerEntry(X(ej), (el + 1)), DeleteEntry(S(O, ej)), StringEntry(Y(ej), er)], ep) | |
580 | 571 | } | |
581 | 572 | else { | |
582 | - | let | |
583 | - | let | |
584 | - | $Tuple2([DeleteEntry( | |
573 | + | let es = (aC(9, (base58'29' + aE), aF) + 1) | |
574 | + | let et = fraction(em, es, 10) | |
575 | + | $Tuple2([DeleteEntry(S(O, ej)), IntegerEntry(S(O, T), et)], et) | |
585 | 576 | } | |
586 | 577 | } | |
587 | 578 | } | |
588 | 579 | } | |
589 | 580 | ||
590 | 581 | ||
591 | - | func | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
582 | + | func eu (O,ev) = { | |
583 | + | let T = (height / i) | |
584 | + | let ew = S(O, T) | |
585 | + | let ex = split(ev, "_") | |
586 | + | let ey = valueOrElse(getInteger(U(T)), 0) | |
587 | + | let ez = valueOrElse(getInteger(ew), 0) | |
588 | + | let eA = if ((Z(parseIntValue(ex[0])) == parseIntValue(ex[1]))) | |
598 | 589 | then 1 | |
599 | 590 | else 0 | |
600 | - | let | |
601 | - | let | |
602 | - | then ( | |
591 | + | let eB = valueOrElse(getInteger(V(T)), 0) | |
592 | + | let eC = if (if ((ez == 0)) | |
593 | + | then (eA == 1) | |
603 | 594 | else false) | |
604 | - | then [IntegerEntry( | |
595 | + | then [IntegerEntry(V(T), (eB + 1))] | |
605 | 596 | else nil | |
606 | - | $Tuple2(if (( | |
597 | + | $Tuple2(if ((eA == 0)) | |
607 | 598 | then nil | |
608 | - | else (( | |
599 | + | else ((eC :+ IntegerEntry(ew, (ez + eA))) :+ IntegerEntry(U(T), (ey + eA))), eA) | |
609 | 600 | } | |
610 | 601 | ||
611 | 602 | ||
612 | - | @Callable( | |
613 | - | func constructorV1 (eF,eG | |
603 | + | @Callable(eD) | |
604 | + | func constructorV1 (eE,eF,cY,eG) = if ((eD.caller != this)) | |
614 | 605 | then throw("Permission denied") | |
615 | - | else if (isDefined(getBinary( | |
606 | + | else if (isDefined(getBinary(P))) | |
616 | 607 | then throw("Already initialized") | |
617 | 608 | else { | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | [ | |
609 | + | let bH = aV | |
610 | + | let eH = Issue("WLGOLD", "WavesLands Gold investment token", bH, 8, true, unit, 0) | |
611 | + | let eI = calculateAssetId(eH) | |
612 | + | [eH, IntegerEntry(bg, lastBlock.timestamp), IntegerEntry(bh, bH), IntegerEntry(dH, 0), IntegerEntry(bd, fraction(aV, aW, b)), BinaryEntry(P, eI), StringEntry(w(), eE), StringEntry(by, eF), StringEntry(aY, cY), StringEntry(dG, eG)] | |
622 | 613 | } | |
623 | 614 | ||
624 | 615 | ||
625 | 616 | ||
626 | - | @Callable( | |
627 | - | func constructorV2 ( | |
617 | + | @Callable(eD) | |
618 | + | func constructorV2 (eJ) = if ((eD.caller != this)) | |
628 | 619 | then throw("Permission denied") | |
629 | - | else [StringEntry( | |
620 | + | else [StringEntry(v(), eJ)] | |
630 | 621 | ||
631 | 622 | ||
632 | 623 | ||
633 | - | @Callable( | |
634 | - | func buyWlg ( | |
635 | - | let | |
636 | - | if (( | |
637 | - | then if ((size( | |
624 | + | @Callable(eD) | |
625 | + | func buyWlg (eK) = { | |
626 | + | let eL = dJ() | |
627 | + | if ((eL == eL)) | |
628 | + | then if ((size(eD.payments) != 1)) | |
638 | 629 | then throw("exactly 1 payment must be attached") | |
639 | 630 | else { | |
640 | - | let | |
641 | - | let | |
642 | - | if (if (!(isDefined( | |
631 | + | let eM = eD.payments[0] | |
632 | + | let eN = eM.amount | |
633 | + | if (if (!(isDefined(eM.assetId))) | |
643 | 634 | then true | |
644 | - | else (value( | |
635 | + | else (value(eM.assetId) != k)) | |
645 | 636 | then throw("USDT payments only!") | |
646 | 637 | else { | |
647 | - | let | |
648 | - | let | |
649 | - | if ((d > | |
650 | - | then throw((("You can trade min " + | |
638 | + | let eO = eD.caller | |
639 | + | let O = toString(eO) | |
640 | + | if ((d > eN)) | |
641 | + | then throw((("You can trade min " + aw(d, 6)) + " USDT")) | |
651 | 642 | else { | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | if (( | |
659 | - | then throw((("You can get max " + | |
660 | - | else if (( | |
643 | + | let dQ = cF("", [I, J, K, L, M], k, eN) | |
644 | + | let eP = dQ[ad] | |
645 | + | let eQ = dQ[af] | |
646 | + | let eR = fraction(eQ, 6, 5, CEILING) | |
647 | + | let eS = fraction(eN, c, eR) | |
648 | + | let eT = dK(O) | |
649 | + | if ((eS > eT)) | |
650 | + | then throw((("You can get max " + aw(eT, 8)) + " WLGOLD at the moment")) | |
651 | + | else if ((eK > eS)) | |
661 | 652 | then throw("Price changed during operation, please try again") | |
662 | 653 | else { | |
663 | - | let | |
664 | - | $Tuple2([Reissue( | |
654 | + | let eU = (eN / 6) | |
655 | + | $Tuple2([Reissue(Q, eS, true), IntegerEntry(bh, (eP + eS)), IntegerEntry(be(O), lastBlock.timestamp), IntegerEntry(bf(O), (eT - eS)), ScriptTransfer(addressFromStringValue(value(getString(dG))), eU, k), ScriptTransfer(eO, eS, Q)], eL) | |
665 | 656 | } | |
666 | 657 | } | |
667 | 658 | } | |
668 | 659 | } | |
669 | 660 | else throw("Strict value is not equal to itself.") | |
670 | 661 | } | |
671 | 662 | ||
672 | 663 | ||
673 | 664 | ||
674 | - | @Callable( | |
675 | - | func buyWlgREADONLY ( | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | $Tuple2(nil, [ | |
665 | + | @Callable(eD) | |
666 | + | func buyWlgREADONLY (o,eN) = { | |
667 | + | let dQ = cF("", [I, J, K, L, M], k, eN) | |
668 | + | let eQ = dQ[af] | |
669 | + | let eR = fraction(eQ, 6, 5, CEILING) | |
670 | + | let eS = fraction(eN, c, eR) | |
671 | + | let eT = dK(o) | |
672 | + | let eV = fraction(eT, eR, c) | |
673 | + | let eU = (eN / 6) | |
674 | + | $Tuple2(nil, [eS, d, eV, eU]) | |
684 | 675 | } | |
685 | 676 | ||
686 | 677 | ||
687 | 678 | ||
688 | - | @Callable( | |
689 | - | func sellWlg ( | |
690 | - | let | |
691 | - | if (( | |
692 | - | then if ((size( | |
679 | + | @Callable(eD) | |
680 | + | func sellWlg (eW) = { | |
681 | + | let eL = dJ() | |
682 | + | if ((eL == eL)) | |
683 | + | then if ((size(eD.payments) != 1)) | |
693 | 684 | then throw("exactly 1 payment must be attached") | |
694 | 685 | else { | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | if (( | |
701 | - | then throw((("You can spend max " + | |
702 | - | else if (if (!(isDefined( | |
686 | + | let eM = eD.payments[0] | |
687 | + | let eX = eM.amount | |
688 | + | let eO = eD.caller | |
689 | + | let O = toString(eO) | |
690 | + | let eT = dK(O) | |
691 | + | if ((eX > eT)) | |
692 | + | then throw((("You can spend max " + aw(eT, 8)) + " WLGOLD at the moment")) | |
693 | + | else if (if (!(isDefined(eM.assetId))) | |
703 | 694 | then true | |
704 | - | else (value( | |
695 | + | else (value(eM.assetId) != Q)) | |
705 | 696 | then throw("WLGOLD payments only!") | |
706 | 697 | else { | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | if ((d > | |
712 | - | then throw((("You can trade min " + | |
713 | - | else if (( | |
698 | + | let dQ = cF("", [I, J, K, L, M], k, 0) | |
699 | + | let eP = dQ[ad] | |
700 | + | let eY = (dQ[af] / 2) | |
701 | + | let eN = fraction(eX, eY, c) | |
702 | + | if ((d > eN)) | |
703 | + | then throw((("You can trade min " + aw(d, 6)) + " USDT")) | |
704 | + | else if ((eW > eN)) | |
714 | 705 | then throw("Price changed during operation, please try again") | |
715 | 706 | else { | |
716 | - | let | |
717 | - | $Tuple2([Burn( | |
707 | + | let eU = (eN / 5) | |
708 | + | $Tuple2([Burn(Q, eX), IntegerEntry(bh, (eP - eX)), IntegerEntry(be(O), lastBlock.timestamp), IntegerEntry(bf(O), (eT - eX)), ScriptTransfer(addressFromStringValue(value(getString(dG))), eU, k), ScriptTransfer(eO, eN, k)], eL) | |
718 | 709 | } | |
719 | 710 | } | |
720 | 711 | } | |
721 | 712 | else throw("Strict value is not equal to itself.") | |
722 | 713 | } | |
723 | 714 | ||
724 | 715 | ||
725 | 716 | ||
726 | - | @Callable( | |
727 | - | func sellWlgREADONLY ( | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | $Tuple2(nil, [ | |
717 | + | @Callable(eD) | |
718 | + | func sellWlgREADONLY (o,eX) = { | |
719 | + | let eT = dK(o) | |
720 | + | let dQ = cF("", [I, J, K, L, M], k, 0) | |
721 | + | let eY = (dQ[af] / 2) | |
722 | + | let eN = fraction(eX, eY, c) | |
723 | + | let eZ = fraction(d, c, eY) | |
724 | + | let eU = (eN / 5) | |
725 | + | $Tuple2(nil, [eN, eZ, eT, eU]) | |
735 | 726 | } | |
736 | 727 | ||
737 | 728 | ||
738 | 729 | ||
739 | - | @Callable( | |
730 | + | @Callable(eD) | |
740 | 731 | func claim () = { | |
741 | - | let | |
742 | - | if (( | |
743 | - | then if ((size( | |
732 | + | let eL = dJ() | |
733 | + | if ((eL == eL)) | |
734 | + | then if ((size(eD.payments) != 0)) | |
744 | 735 | then throw("No payments required") | |
745 | 736 | else { | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | $Tuple2(( | |
737 | + | let fa = dP(toString(eD.caller)) | |
738 | + | let fb = fa._1 | |
739 | + | let fc = fa._2 | |
740 | + | $Tuple2((fb :+ ScriptTransfer(eD.caller, fc, Q)), eL) | |
750 | 741 | } | |
751 | 742 | else throw("Strict value is not equal to itself.") | |
752 | 743 | } | |
753 | 744 | ||
754 | 745 | ||
755 | 746 | ||
756 | - | @Callable( | |
757 | - | func onStakeUnstakeLand ( | |
758 | - | then ( | |
747 | + | @Callable(eD) | |
748 | + | func onStakeUnstakeLand (O) = if (if (if ((eD.caller != G)) | |
749 | + | then (eD.caller != H) | |
759 | 750 | else false) | |
760 | - | then ( | |
751 | + | then (eD.caller != J) | |
761 | 752 | else false) | |
762 | 753 | then throw("Permission denied") | |
763 | 754 | else { | |
764 | - | let | |
765 | - | let | |
766 | - | let | |
767 | - | $Tuple2(if (( | |
768 | - | then ( | |
769 | - | else | |
755 | + | let fd = dP(O) | |
756 | + | let fb = fd._1 | |
757 | + | let fc = fd._2 | |
758 | + | $Tuple2(if ((fc > 0)) | |
759 | + | then (fb :+ ScriptTransfer(addressFromStringValue(O), fc, Q)) | |
760 | + | else fb, fc) | |
770 | 761 | } | |
771 | 762 | ||
772 | 763 | ||
773 | 764 | ||
774 | - | @Callable( | |
775 | - | func burnWlgold ( | |
765 | + | @Callable(eD) | |
766 | + | func burnWlgold (eX) = if ((eD.caller != J)) | |
776 | 767 | then throw("Permission denied") | |
777 | 768 | else { | |
778 | - | let | |
779 | - | if (( | |
780 | - | then throw(((("Only " + | |
769 | + | let dQ = cF("", [I, J, K, L, M], k, 0) | |
770 | + | if ((eX > dQ[ae])) | |
771 | + | then throw(((("Only " + aw(dQ[ae], 8)) + " WLGOLD left on contract, can't burn ") + aw(eX, 8))) | |
781 | 772 | else { | |
782 | - | let | |
783 | - | $Tuple2([Burn( | |
773 | + | let fe = (dQ[ad] - eX) | |
774 | + | $Tuple2([Burn(Q, eX), IntegerEntry(bh, fe)], fe) | |
784 | 775 | } | |
785 | 776 | } | |
786 | 777 | ||
787 | 778 | ||
788 | 779 | ||
789 | - | @Callable( | |
790 | - | func betForTicket ( | |
791 | - | let | |
792 | - | if (( | |
793 | - | then if ((size( | |
780 | + | @Callable(eD) | |
781 | + | func betForTicket (ff) = { | |
782 | + | let eL = dJ() | |
783 | + | if ((eL == eL)) | |
784 | + | then if ((size(eD.payments) != 0)) | |
794 | 785 | then throw("No payments required") | |
795 | 786 | else { | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | if (if (( | |
801 | - | then ( | |
787 | + | let O = toString(eD.caller) | |
788 | + | let ej = ((height / i) - 1) | |
789 | + | let em = valueOrElse(getInteger(S(O, ej)), 0) | |
790 | + | let en = valueOrElse(getInteger(U(ej)), 0) | |
791 | + | if (if ((em > 0)) | |
792 | + | then (en > 0) | |
802 | 793 | else false) | |
803 | 794 | then throw("Please open the chest first") | |
804 | - | else if ((( | |
795 | + | else if (((ff / 4) != 0)) | |
805 | 796 | then throw("Invalid bet: should be 0..3") | |
806 | 797 | else { | |
807 | - | let | |
808 | - | if (( | |
809 | - | then throw((("Cannot bet: the day is almost ended, please wait " + toString((g - | |
798 | + | let fg = (height % g) | |
799 | + | if ((fg > (g - 3))) | |
800 | + | then throw((("Cannot bet: the day is almost ended, please wait " + toString((g - fg))) + " blocks")) | |
810 | 801 | else { | |
811 | - | let | |
812 | - | if (( | |
813 | - | then throw((("You need to stake at least " + | |
802 | + | let fh = valueOrElse(getInteger(J, bN(O)), 0) | |
803 | + | if ((bX > fh)) | |
804 | + | then throw((("You need to stake at least " + aw(bX, 8)) + " ACRES to bet")) | |
814 | 805 | else { | |
815 | - | let | |
816 | - | let | |
817 | - | let | |
818 | - | let | |
819 | - | if (isDefined( | |
806 | + | let fi = ((height / g) + 1) | |
807 | + | let fj = R(O) | |
808 | + | let fk = getString(fj) | |
809 | + | let fl = StringEntry(fj, ((toString(fi) + "_") + toString(ff))) | |
810 | + | if (isDefined(fk)) | |
820 | 811 | then { | |
821 | - | let | |
822 | - | if ((split( | |
812 | + | let fm = value(fk) | |
813 | + | if ((split(fm, "_")[0] == toString(fi))) | |
823 | 814 | then throw("You already bet for tomorrow") | |
824 | 815 | else { | |
825 | - | let | |
826 | - | $Tuple2(( | |
816 | + | let fn = eu(O, fm) | |
817 | + | $Tuple2((fn._1 :+ fl), fn._2) | |
827 | 818 | } | |
828 | 819 | } | |
829 | - | else $Tuple2([ | |
820 | + | else $Tuple2([fl], 0) | |
830 | 821 | } | |
831 | 822 | } | |
832 | 823 | } | |
833 | 824 | } | |
834 | 825 | else throw("Strict value is not equal to itself.") | |
835 | 826 | } | |
836 | 827 | ||
837 | 828 | ||
838 | 829 | ||
839 | - | @Callable( | |
840 | - | func takeWlgXp ( | |
830 | + | @Callable(eD) | |
831 | + | func takeWlgXp (O) = if ((eD.caller != G)) | |
841 | 832 | then throw("Permission denied") | |
842 | 833 | else { | |
843 | - | let | |
844 | - | let | |
845 | - | let | |
846 | - | $Tuple2( | |
834 | + | let fo = ec(O, 0) | |
835 | + | let fb = fo._1 | |
836 | + | let aQ = fo._2 | |
837 | + | $Tuple2(fb, aQ) | |
847 | 838 | } | |
848 | 839 | ||
849 | 840 | ||
850 | 841 | ||
851 | - | @Callable( | |
852 | - | func checkWlgXpREADONLY ( | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | let | |
857 | - | let | |
858 | - | $Tuple2(nil, ( | |
842 | + | @Callable(eD) | |
843 | + | func checkWlgXpREADONLY (O) = { | |
844 | + | let fp = ec(O, 0) | |
845 | + | let fq = fp._1 | |
846 | + | let fr = fp._2 | |
847 | + | let aT = (valueOrElse(getInteger(G, aM(O)), 0) + fr) | |
848 | + | let fs = aR(valueOrElse(getInteger(G, aN(O)), 0), aT) | |
849 | + | $Tuple2(nil, (fs :+ aT)) | |
859 | 850 | } | |
860 | 851 | ||
861 | 852 | ||
862 | 853 | ||
863 | - | @Callable( | |
864 | - | func setNumPrizes ( | |
854 | + | @Callable(eD) | |
855 | + | func setNumPrizes (ek) = if ((eD.caller != this)) | |
865 | 856 | then throw("Permission denied") | |
866 | 857 | else { | |
867 | - | let | |
868 | - | $Tuple2([IntegerEntry( | |
858 | + | let T = (height / i) | |
859 | + | $Tuple2([IntegerEntry(W(T), ek)], ek) | |
869 | 860 | } | |
870 | 861 | ||
871 | 862 | ||
872 | 863 | ||
873 | - | @Callable(eE) | |
874 | - | func openChest () = if (!(n)) | |
875 | - | then throw("Temporarily disabled") | |
876 | - | else { | |
877 | - | let eM = dK() | |
878 | - | if ((eM == eM)) | |
879 | - | then if ((size(eE.payments) != 0)) | |
880 | - | then throw("No payments required") | |
881 | - | else { | |
882 | - | let ek = ((height / i) - 1) | |
883 | - | let P = toString(eE.caller) | |
884 | - | let en = valueOrElse(getInteger(T(P, ek)), 0) | |
885 | - | if ((0 >= en)) | |
886 | - | then throw("No gems to open the chest") | |
887 | - | else ej(P) | |
888 | - | } | |
889 | - | else throw("Strict value is not equal to itself.") | |
890 | - | } | |
864 | + | @Callable(eD) | |
865 | + | func openChest () = { | |
866 | + | let eL = dJ() | |
867 | + | if ((eL == eL)) | |
868 | + | then if ((size(eD.payments) != 0)) | |
869 | + | then throw("No payments required") | |
870 | + | else { | |
871 | + | let ej = ((height / i) - 1) | |
872 | + | let O = toString(eD.caller) | |
873 | + | let em = valueOrElse(getInteger(S(O, ej)), 0) | |
874 | + | if ((0 >= em)) | |
875 | + | then throw("No gems to open the chest") | |
876 | + | else ei(O) | |
877 | + | } | |
878 | + | else throw("Strict value is not equal to itself.") | |
879 | + | } | |
891 | 880 | ||
892 | 881 | ||
893 | 882 | ||
894 | - | @Callable( | |
895 | - | func addGemsFor ( | |
883 | + | @Callable(eD) | |
884 | + | func addGemsFor (O,eA) = if ((eD.caller != this)) | |
896 | 885 | then throw("Permission denied") | |
897 | 886 | else { | |
898 | - | let | |
899 | - | let | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | then ( | |
887 | + | let T = (height / i) | |
888 | + | let ew = S(O, T) | |
889 | + | let ey = valueOrElse(getInteger(U(T)), 0) | |
890 | + | let ez = valueOrElse(getInteger(ew), 0) | |
891 | + | let eB = valueOrElse(getInteger(V(T)), 0) | |
892 | + | let eC = if (if ((ez == 0)) | |
893 | + | then (eA == 1) | |
905 | 894 | else false) | |
906 | - | then [IntegerEntry( | |
895 | + | then [IntegerEntry(V(T), (eB + 1))] | |
907 | 896 | else nil | |
908 | - | $Tuple2((( | |
897 | + | $Tuple2(((eC :+ IntegerEntry(ew, (ez + eA))) :+ IntegerEntry(U(T), (ey + eA))), eA) | |
909 | 898 | } | |
910 | 899 | ||
911 | 900 |
github/deemru/w8io/026f985 336.35 ms ◑