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