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