tx · CGFVXtKMtfaVtUDrytrDBEfPjcvyTazp1nAyZ4YodnRG 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy: -0.01800000 Waves 2024.09.13 05:39 [3281265] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves
{ "type": 13, "id": "CGFVXtKMtfaVtUDrytrDBEfPjcvyTazp1nAyZ4YodnRG", "fee": 1800000, "feeAssetId": null, "timestamp": 1726195184569, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "aP4cTfNWJcsSFCpCza4BQRdth2Xy3BYYtJx8mmT9fosycAXEQj2BU7XKm9mVMu9wEWhWoFTSwTruWkyawHhBNgi" ], "script": "base64:BgIsCAISBgoECAgICBIDCgEIEgMKAQESAwoBARIAEgMKAQgSABIDCgEIEgMKAQhyAApEQVlfTUlMTElTAIC4mSkABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAt1c2R0QXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kDCQAAAgEBVAUHJG1hdGNoMAEgVbHYn3KHgu/l41uNrAWrZd6aQ6EvFrsF8xq3h6XxxRgJAAIBAg1Vbmtub3duIGNoYWluABVkZWZhdWx0UmVzdEFkZHJlc3NTdHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDACIzNQUUN1dkZidmg0TGtQVW5yblUxejNqbmJBMXA5bTNXTmh2AwkAAAIBAVQFByRtYXRjaDACIzNNdW1rR0d6dENLQVhwV0RxeGtkZG9mcVhTVWJxUWt2U0p5CQACAQINVW5rbm93biBjaGFpbgAQYWNyZXMyQWRkcmVzc1N0cgQHJG1hdGNoMAUFY2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1vdW50TGVmdAUDbmlsBQ13bGdBbW91bnRMZWZ0AWkBCXRha2VXbGdYcAEEYWRkcgMJAQIhPQIIBQFpBmNhbGxlcgUPc3Rha2luZ0NvbnRyYWN0CQACAQIRUGVybWlzc2lvbiBkZW5pZWQEDSR0MDEzMzA2MTMzNDkJAQ50YWtlWHBJbnRlcm5hbAIFBGFkZHIAAAQHYWN0aW9ucwgFDSR0MDEzMzA2MTMzNDkCXzEEAnhwCAUNJHQwMTMzMDYxMzM0OQJfMgkAlAoCBQdhY3Rpb25zBQJ4cAFpARJjaGVja1dsZ1hwUkVBRE9OTFkBBGFkZHIEDSR0MDEzNDI2MTM0NzQJAQ50YWtlWHBJbnRlcm5hbAIFBGFkZHIAAAQHaWdub3JlZAgFDSR0MDEzNDI2MTM0NzQCXzEEB2RlbHRhWFAIBQ0kdDAxMzQyNjEzNDc0Al8yBAVuZXdYUAkAZAIJAQt2YWx1ZU9yRWxzZQIJAJoIAgUPc3Rha2luZ0NvbnRyYWN0CQEJa2V5VXNlclhQAQUEYWRkcgAABQdkZWx0YVhQBAlsdmxQb2ludHMJAQdsZXZlbFVwAgkBC3ZhbHVlT3JFbHNlAgkAmggCBQ9zdGFraW5nQ29udHJhY3QJAQxrZXlVc2VyTGV2ZWwBBQRhZGRyAAAFBW5ld1hQCQCUCgIFA25pbAkAzQgCBQlsdmxQb2ludHMFBW5ld1hQALWhdkE=", "height": 3281265, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3LBWi3NoargvPCRarwy2edDaabb4VzLkFCrKvpwZqpwA Next: 9sW4poLPS2SUg3hUuqhsvvUkWTCuEyL86tfGieGt26xR Diff:
Old | New | Differences | |
---|---|---|---|
159 | 159 | ||
160 | 160 | let ap = "stakersAmountLeft" | |
161 | 161 | ||
162 | - | func aq (Y) = (" | |
162 | + | func aq (Y) = ("lastArbTimeUser_" + Y) | |
163 | 163 | ||
164 | 164 | ||
165 | - | func ar (Y) = ("lastArbTimeUser_" + Y) | |
165 | + | let ar = "wlg_issueTime" | |
166 | + | ||
167 | + | let as = "wlg_issuedAmount" | |
168 | + | ||
169 | + | func at (Y) = ("acresStakedAmountByUser_" + Y) | |
166 | 170 | ||
167 | 171 | ||
168 | - | let as = "wlg_issueTime" | |
169 | - | ||
170 | - | let at = "wlg_issuedAmount" | |
171 | - | ||
172 | - | func au (Y) = ("acresStakedAmountByUser_" + Y) | |
172 | + | func au (Y) = ("wlgStakedAmountByUser_" + Y) | |
173 | 173 | ||
174 | 174 | ||
175 | - | func av (Y) = ("wlgStakedAmountByUser_" + Y) | |
175 | + | let av = "wlgStakedAmountTotal" | |
176 | + | ||
177 | + | func aw (Y) = ("wlgStakedTimeByUser_" + Y) | |
176 | 178 | ||
177 | 179 | ||
178 | - | let | |
180 | + | let ax = 1000000 | |
179 | 181 | ||
180 | - | ||
182 | + | let ay = 100000000 | |
181 | 183 | ||
184 | + | let az = 100000000000000 | |
182 | 185 | ||
183 | - | let | |
186 | + | let aA = 200000 | |
184 | 187 | ||
185 | - | let | |
188 | + | let aB = 100000 | |
186 | 189 | ||
187 | - | let | |
190 | + | let aC = 400000 | |
188 | 191 | ||
189 | - | let | |
192 | + | let aD = 31557600000 | |
190 | 193 | ||
191 | - | let | |
194 | + | let aE = take(drop(this.bytes, 1), 1) | |
192 | 195 | ||
193 | - | let aD = 400000 | |
194 | - | ||
195 | - | let aE = 31557600000 | |
196 | - | ||
197 | - | let aF = take(drop(this.bytes, 1), 1) | |
198 | - | ||
199 | - | let aG = { | |
200 | - | let d = aF | |
196 | + | let aF = { | |
197 | + | let d = aE | |
201 | 198 | if ((base58'2W' == d)) | |
202 | 199 | then 1208630000 | |
203 | 200 | else if ((base58'2T' == d)) | |
205 | 202 | else throw("Unknown chain") | |
206 | 203 | } | |
207 | 204 | ||
208 | - | let | |
205 | + | let aG = "teamAddr" | |
209 | 206 | ||
210 | - | let | |
207 | + | let aH = "lastClaimedTime_team" | |
211 | 208 | ||
212 | - | let | |
209 | + | let aI = "teamAmountLeft" | |
213 | 210 | ||
214 | - | let | |
211 | + | let aJ = "lastClaimedTime_activities" | |
215 | 212 | ||
216 | - | let | |
213 | + | let aK = "activitiesAmountLeft" | |
217 | 214 | ||
218 | - | let | |
215 | + | let aL = "stakersAmountLeft" | |
219 | 216 | ||
220 | - | func | |
217 | + | func aM (Y) = ("lastClaimedTimeUser_" + Y) | |
221 | 218 | ||
222 | 219 | ||
223 | - | func | |
220 | + | func aN (aO) = fraction(az, (aC * (aO + 1)), (6 * ax)) | |
224 | 221 | ||
225 | 222 | ||
226 | - | let | |
223 | + | let aP = "wlg_issueTime" | |
227 | 224 | ||
228 | - | let | |
225 | + | let aQ = "wlg_issuedAmount" | |
229 | 226 | ||
230 | - | let | |
227 | + | let aR = "zbill_issuedAmount" | |
231 | 228 | ||
232 | - | func | |
229 | + | func aS (Y) = ("acresStakedAmountByUser_" + Y) | |
233 | 230 | ||
234 | 231 | ||
235 | - | let | |
232 | + | let aT = "acresStakedAmountTotal" | |
236 | 233 | ||
237 | - | let | |
234 | + | let aU = 0 | |
238 | 235 | ||
239 | - | let | |
236 | + | let aV = 1 | |
240 | 237 | ||
241 | - | let | |
238 | + | let aW = 2 | |
242 | 239 | ||
243 | - | let | |
240 | + | let aX = 3 | |
244 | 241 | ||
245 | - | let | |
242 | + | let aY = 4 | |
246 | 243 | ||
247 | - | let | |
244 | + | let aZ = [10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
248 | 245 | ||
249 | - | func | |
250 | - | let | |
251 | - | func | |
252 | - | then | |
253 | - | else ( | |
246 | + | func ba (bb) = { | |
247 | + | let bc = (bb / ay) | |
248 | + | func bd (be,bf) = if ((bf > bc)) | |
249 | + | then be | |
250 | + | else (be + 1) | |
254 | 251 | ||
255 | 252 | let A = { | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | func | |
260 | - | then | |
261 | - | else | |
253 | + | let bg = aZ | |
254 | + | let bh = size(bg) | |
255 | + | let bi = 0 | |
256 | + | func bj (bk,bl) = if ((bl >= bh)) | |
257 | + | then bk | |
258 | + | else bd(bk, bg[bl]) | |
262 | 259 | ||
263 | - | func | |
264 | - | then | |
260 | + | func bm (bk,bl) = if ((bl >= bh)) | |
261 | + | then bk | |
265 | 262 | else throw("List size exceeds 10") | |
266 | 263 | ||
267 | - | | |
264 | + | bm(bj(bj(bj(bj(bj(bj(bj(bj(bj(bj(bi, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
268 | 265 | } | |
269 | 266 | (A + 1) | |
270 | 267 | } | |
271 | 268 | ||
272 | 269 | ||
273 | - | func | |
270 | + | func bn (bb) = ((bb * 20) * (ba(bb) + 4)) | |
274 | 271 | ||
275 | 272 | ||
276 | - | func | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | [ | |
273 | + | func bo (bp,C) = { | |
274 | + | let bq = valueOrElse(getInteger(C, aT), 0) | |
275 | + | let br = bn(bq) | |
276 | + | let bs = valueOrElse(getInteger(C, aS(bp)), 0) | |
277 | + | let bt = bn(bs) | |
278 | + | [br, bt] | |
282 | 279 | } | |
283 | 280 | ||
284 | 281 | ||
285 | - | let | |
282 | + | let bu = 0 | |
286 | 283 | ||
287 | - | let | |
284 | + | let bv = 1 | |
288 | 285 | ||
289 | - | let | |
286 | + | let bw = 0 | |
290 | 287 | ||
291 | - | let | |
288 | + | let bx = 1 | |
292 | 289 | ||
293 | - | let | |
290 | + | let by = 2 | |
294 | 291 | ||
295 | - | let | |
292 | + | let bz = 6 | |
296 | 293 | ||
297 | - | let | |
294 | + | let bA = 9 | |
298 | 295 | ||
299 | - | let | |
296 | + | let bB = 10 | |
300 | 297 | ||
301 | - | let | |
298 | + | let bC = 13 | |
302 | 299 | ||
303 | - | let | |
300 | + | let bD = 14 | |
304 | 301 | ||
305 | - | let | |
302 | + | let bE = 17 | |
306 | 303 | ||
307 | - | let | |
304 | + | let bF = 21 | |
308 | 305 | ||
309 | - | let | |
306 | + | let bG = 22 | |
310 | 307 | ||
311 | - | func | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
308 | + | func bH (bI,bJ,bK,bL) = { | |
309 | + | let bM = valueOrErrorMessage(getInteger(bJ[aW], aQ), "WLGOLD is not issued yet") | |
310 | + | let bN = assetBalance(bJ[aU], bK) | |
311 | + | let bO = (assetBalance(bJ[aW], bK) - bL) | |
312 | + | let bP = assetBalance(bJ[aX], bK) | |
313 | + | let bQ = bJ[aY] | |
314 | + | let bR = (assetBalance(bQ, bK) + valueOrElse(getInteger(bQ, aR), 0)) | |
315 | + | let bS = (bO + bR) | |
316 | + | let bT = valueOrErrorMessage(getBinary(bJ[aW], "wlg_assetId"), "Not initialized yet") | |
317 | + | let bU = lastBlock.timestamp | |
318 | + | let bV = valueOrErrorMessage(getInteger(bJ[aW], aP), "Not initialized") | |
319 | + | let bW = fraction(az, aA, ax) | |
320 | + | let bX = valueOrElse(getInteger(bJ[aW], aI), bW) | |
321 | + | let bY = valueOrElse(getInteger(bJ[aW], aH), bV) | |
322 | + | let bZ = addressFromStringValue(value(getString(bJ[aW], aG))) | |
323 | + | let ca = min([fraction(bW, (bU - bY), (3 * aD)), bX]) | |
324 | + | let cb = assetBalance(bZ, bT) | |
325 | + | let cc = fraction(az, aB, ax) | |
326 | + | let cd = valueOrElse(getInteger(bJ[aW], aK), cc) | |
327 | + | let ce = valueOrElse(getInteger(bJ[aW], aJ), bV) | |
328 | + | let cf = min([fraction(cc, (bU - ce), (3 * aD)), cd]) | |
329 | + | let cg = assetBalance(bJ[aU], bT) | |
330 | + | let ch = valueOrElse(getInteger(bJ[aW], aM(bI)), bV) | |
331 | + | let ci = ((ch - bV) / aD) | |
332 | + | let cj = min([bU, (bV + (3 * aD))]) | |
333 | + | let ck = min([((bU - bV) / aD), 2]) | |
334 | + | let cl = bo(bI, bJ[aV]) | |
335 | + | let cm = aN(ck) | |
336 | + | let cn = if ((ci == ck)) | |
340 | 337 | then { | |
341 | - | let | |
342 | - | let | |
343 | - | $Tuple2( | |
338 | + | let co = fraction(cm, (cj - ch), aD) | |
339 | + | let cp = cj | |
340 | + | $Tuple2(co, cp) | |
344 | 341 | } | |
345 | - | else if (( | |
342 | + | else if ((ci == (ck - 1))) | |
346 | 343 | then { | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | then ( | |
352 | - | else (( | |
353 | - | $Tuple2( | |
344 | + | let cq = fraction(aN((ck - 1)), ((bV + (aD * ck)) - ch), aD) | |
345 | + | let co = fraction(cm, (cj - (bV + (aD * ck))), aD) | |
346 | + | let cr = (cq + co) | |
347 | + | let cp = if ((cq >= cr)) | |
348 | + | then (ch + fraction(aD, cr, aN((ck - 1)))) | |
349 | + | else ((bV + (aD * ck)) + fraction(aD, (cr - cq), cm)) | |
350 | + | $Tuple2(cr, cp) | |
354 | 351 | } | |
355 | 352 | else { | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | then ( | |
362 | - | else if ((( | |
363 | - | then (( | |
364 | - | else (( | |
365 | - | $Tuple2( | |
353 | + | let cs = fraction(aN((ck - 2)), ((bV + (aD * (ck - 1))) - ch), aD) | |
354 | + | let cq = aN((ck - 1)) | |
355 | + | let co = fraction(cm, (cj - (bV + (aD * ck))), aD) | |
356 | + | let cr = ((cs + cq) + co) | |
357 | + | let cp = if ((cs >= cr)) | |
358 | + | then (ch + fraction(aD, cr, aN((ck - 2)))) | |
359 | + | else if (((cs + cq) >= cr)) | |
360 | + | then ((bV + (aD * (ck - 1))) + fraction(aD, (cr - cs), aN((ck - 1)))) | |
361 | + | else ((bV + (aD * ck)) + fraction(aD, ((cr - cs) - cq), cm)) | |
362 | + | $Tuple2(cr, cp) | |
366 | 363 | } | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | then fraction( | |
364 | + | let ct = cn._1 | |
365 | + | let cu = cn._2 | |
366 | + | let cv = valueOrElse(getInteger(bJ[aW], aL), 0) | |
367 | + | let cw = if ((cl[bu] != 0)) | |
368 | + | then fraction(ct, cl[bv], cl[bu]) | |
372 | 369 | else 0 | |
373 | - | [ | |
370 | + | [bM, fraction((bS - aF), ay, bM), bS, bN, bO, bP, bV, bY, bW, bX, ca, cb, cc, cd, cf, cg, ck, cv, cm, ch, bR, cw, cu] | |
374 | 371 | } | |
375 | 372 | ||
376 | 373 | ||
377 | - | let | |
374 | + | let cx = take(drop(this.bytes, 1), 1) | |
378 | 375 | ||
379 | - | let | |
380 | - | let d = | |
376 | + | let cy = { | |
377 | + | let d = cx | |
381 | 378 | if ((base58'2W' == d)) | |
382 | 379 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
383 | 380 | else if ((base58'2T' == d)) | |
385 | 382 | else throw("Unknown chain") | |
386 | 383 | } | |
387 | 384 | ||
388 | - | let | |
385 | + | let cz = "profitAddr" | |
389 | 386 | ||
390 | - | let | |
387 | + | let cA = "stakersAmountPaidTotal" | |
391 | 388 | ||
392 | - | func | |
389 | + | func cB (Y) = ("stakersAmountPaidUser_" + Y) | |
393 | 390 | ||
394 | 391 | ||
395 | - | let | |
392 | + | let cC = addressFromStringValue(valueOrElse(getString(this, v()), cy)) | |
396 | 393 | ||
397 | - | let | |
394 | + | let cD = addressFromStringValue(f) | |
398 | 395 | ||
399 | - | func | |
396 | + | func cE () = J(reentrantInvoke(cD, "saveLastTx", nil, nil)) | |
400 | 397 | ||
401 | 398 | ||
402 | - | func | |
403 | - | let | |
404 | - | let | |
405 | - | if ((g > ( | |
399 | + | func cF (Y) = { | |
400 | + | let cG = valueOrElse(getInteger(aq(Y)), 0) | |
401 | + | let bU = lastBlock.timestamp | |
402 | + | if ((g > (bU - cG))) | |
406 | 403 | then throw((("Arbitrages are possible once a " + toString((g / 60000))) + "min")) | |
407 | - | else valueOrElse(getInteger( | |
404 | + | else valueOrElse(getInteger(cD, at(Y)), 0) | |
408 | 405 | } | |
409 | 406 | ||
410 | 407 | ||
411 | - | func cI (Y) = { | |
412 | - | let cJ = addressFromStringValue(Y) | |
413 | - | let cK = bI(Y, [cD, cE, D, E, F], c, 0) | |
414 | - | let bV = lastBlock.timestamp | |
415 | - | let bW = cK[bA] | |
416 | - | let bY = cK[bB] | |
417 | - | let cL = cK[bC] | |
418 | - | let ce = cK[bD] | |
419 | - | let cM = cK[bE] | |
420 | - | let cN = cK[bG] | |
421 | - | let cO = cC(Y) | |
422 | - | let cP = cK[bG] | |
423 | - | let cQ = cK[bH] | |
424 | - | $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(ak))), cL, I), ScriptTransfer(B, cM, I), IntegerEntry(cO, (valueOrElse(getInteger(cO), 0) + cN)), IntegerEntry(cB, (valueOrElse(getInteger(cB), 0) + cP)), IntegerEntry(ap, (cK[bF] - cP)), IntegerEntry(am, (bY - cL)), IntegerEntry(al, bV), IntegerEntry(ao, (ce - cM)), IntegerEntry(an, bV), IntegerEntry(aq(Y), cQ)], cN) | |
408 | + | func cH (Y) = { | |
409 | + | let cI = addressFromStringValue(Y) | |
410 | + | let cJ = bH(Y, [cC, cD, D, E, F], c, 0) | |
411 | + | let cK = aM(Y) | |
412 | + | let ch = valueOrElse(getInteger(cK), 0) | |
413 | + | let cL = cJ[bG] | |
414 | + | if ((ch == cL)) | |
415 | + | then $Tuple2(nil, 0) | |
416 | + | else { | |
417 | + | let bU = lastBlock.timestamp | |
418 | + | let bV = cJ[bz] | |
419 | + | let bX = cJ[bA] | |
420 | + | let cM = cJ[bB] | |
421 | + | let cd = cJ[bC] | |
422 | + | let cN = cJ[bD] | |
423 | + | let cO = cJ[bF] | |
424 | + | let cP = cB(Y) | |
425 | + | let cQ = cJ[bF] | |
426 | + | $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(ak))), cM, I), ScriptTransfer(B, cN, I), IntegerEntry(cP, (valueOrElse(getInteger(cP), 0) + cO)), IntegerEntry(cA, (valueOrElse(getInteger(cA), 0) + cQ)), IntegerEntry(ap, (cJ[bE] - cQ)), IntegerEntry(am, (bX - cM)), IntegerEntry(al, bU), IntegerEntry(ao, (cd - cN)), IntegerEntry(an, bU), IntegerEntry(cK, cL)], cO) | |
427 | + | } | |
425 | 428 | } | |
426 | 429 | ||
427 | 430 | ||
428 | 431 | func cR (Y,cS) = { | |
429 | - | let | |
430 | - | let cT = | |
431 | - | let cU = | |
432 | - | let | |
432 | + | let bU = lastBlock.timestamp | |
433 | + | let cT = aw(Y) | |
434 | + | let cU = au(Y) | |
435 | + | let cG = valueOrElse(getInteger(cT), 0) | |
433 | 436 | let cV = valueOrElse(getInteger(cU), 0) | |
434 | - | let cW = valueOrElse(getInteger( | |
435 | - | let ac = fraction(fraction(aa, cV, W), ( | |
436 | - | $Tuple3([IntegerEntry(cT, | |
437 | + | let cW = valueOrElse(getInteger(av), 0) | |
438 | + | let ac = fraction(fraction(aa, cV, W), (cG - bU), aj) | |
439 | + | $Tuple3([IntegerEntry(cT, bU), IntegerEntry(cU, (cV + cS)), IntegerEntry(av, (cW + cS))], ac, cV) | |
437 | 440 | } | |
438 | 441 | ||
439 | 442 | ||
440 | 443 | @Callable(cX) | |
441 | - | func constructorV1 (cY,cZ, | |
444 | + | func constructorV1 (cY,cZ,bZ,da) = if ((cX.caller != this)) | |
442 | 445 | then throw("Permission denied") | |
443 | 446 | else if (isDefined(getBinary(H))) | |
444 | 447 | then throw("Already initialized") | |
445 | 448 | else { | |
446 | - | let | |
447 | - | let db = Issue("WLGOLD", "WavesLands Gold investment token", | |
449 | + | let bM = ah | |
450 | + | let db = Issue("WLGOLD", "WavesLands Gold investment token", bM, 8, true, unit, 0) | |
448 | 451 | let dc = calculateAssetId(db) | |
449 | - | [db, IntegerEntry( | |
452 | + | [db, IntegerEntry(ar, lastBlock.timestamp), IntegerEntry(as, bM), IntegerEntry(cA, 0), IntegerEntry(ap, fraction(ah, ai, i)), BinaryEntry(H, dc), StringEntry(u(), cY), StringEntry(ak, bZ), StringEntry(cz, da)] | |
450 | 453 | } | |
451 | 454 | ||
452 | 455 | ||
460 | 463 | ||
461 | 464 | @Callable(cX) | |
462 | 465 | func buyWlg (de) = { | |
463 | - | let df = | |
466 | + | let df = cE() | |
464 | 467 | if ((df == df)) | |
465 | 468 | then if ((size(cX.payments) != 1)) | |
466 | 469 | then throw("exactly 1 payment must be attached") | |
472 | 475 | else (value(dg.assetId) != c)) | |
473 | 476 | then throw("USDT payments only!") | |
474 | 477 | else { | |
475 | - | let | |
476 | - | let Y = toString( | |
478 | + | let cI = cX.caller | |
479 | + | let Y = toString(cI) | |
477 | 480 | if ((k > dh)) | |
478 | 481 | then throw((("You can trade min " + M(k, 6)) + " USDT")) | |
479 | 482 | else { | |
480 | - | let | |
481 | - | let di = | |
482 | - | let dj = | |
483 | + | let cJ = bH("", [cC, cD, D, E, F], c, dh) | |
484 | + | let di = cJ[bw] | |
485 | + | let dj = cJ[by] | |
483 | 486 | let dk = fraction(dj, j, di) | |
484 | 487 | let dl = fraction(dk, 6, 5) | |
485 | 488 | let dm = fraction(dh, j, dl) | |
486 | - | let dn = | |
489 | + | let dn = cF(Y) | |
487 | 490 | if ((dm > dn)) | |
488 | 491 | then throw((("You can get max " + M(dn, 8)) + " WLGOLD")) | |
489 | 492 | else if ((de > dm)) | |
492 | 495 | let do = (dh / 6) | |
493 | 496 | let dp = (dh - do) | |
494 | 497 | let dq = fraction(di, dp, dj) | |
495 | - | $Tuple2([Reissue(I, dq, true), IntegerEntry( | |
498 | + | $Tuple2([Reissue(I, dq, true), IntegerEntry(as, (di + dq)), IntegerEntry(aq(Y), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(cz))), do, c), ScriptTransfer(cI, dm, I)], df) | |
496 | 499 | } | |
497 | 500 | } | |
498 | 501 | } | |
504 | 507 | ||
505 | 508 | @Callable(cX) | |
506 | 509 | func sellWlg (de) = { | |
507 | - | let df = | |
510 | + | let df = cE() | |
508 | 511 | if ((df == df)) | |
509 | 512 | then if ((size(cX.payments) != 1)) | |
510 | 513 | then throw("exactly 1 payment must be attached") | |
511 | 514 | else { | |
512 | 515 | let dg = cX.payments[0] | |
513 | 516 | let dr = dg.amount | |
514 | - | let | |
515 | - | let Y = toString( | |
516 | - | let dn = | |
517 | + | let cI = cX.caller | |
518 | + | let Y = toString(cI) | |
519 | + | let dn = cF(Y) | |
517 | 520 | if ((dr > dn)) | |
518 | 521 | then throw((("You can spend max " + M(dn, 8)) + " WLGOLD")) | |
519 | 522 | else if (if (!(isDefined(dg.assetId))) | |
521 | 524 | else (value(dg.assetId) != I)) | |
522 | 525 | then throw("WLGOLD payments only!") | |
523 | 526 | else { | |
524 | - | let | |
525 | - | let di = | |
526 | - | let ds = fraction( | |
527 | + | let cJ = bH("", [cC, cD, D, E, F], c, 0) | |
528 | + | let di = cJ[bw] | |
529 | + | let ds = fraction(cJ[bx], 4, 5) | |
527 | 530 | let dh = fraction(dr, ds, j) | |
528 | 531 | if ((k > dh)) | |
529 | 532 | then throw((("You can trade min " + M(k, 6)) + " USDT")) | |
531 | 534 | then throw("Price changed during operation, please try again") | |
532 | 535 | else { | |
533 | 536 | let do = (dh / 4) | |
534 | - | $Tuple2([Burn(I, dr), IntegerEntry( | |
537 | + | $Tuple2([Burn(I, dr), IntegerEntry(as, (di - dr)), IntegerEntry(aq(Y), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(cz))), do, c), ScriptTransfer(cI, dh, c)], df) | |
535 | 538 | } | |
536 | 539 | } | |
537 | 540 | } | |
542 | 545 | ||
543 | 546 | @Callable(cX) | |
544 | 547 | func claim () = { | |
545 | - | let df = | |
548 | + | let df = cE() | |
546 | 549 | if ((df == df)) | |
547 | 550 | then if ((size(cX.payments) != 0)) | |
548 | 551 | then throw("No payments required") | |
549 | 552 | else { | |
550 | - | let dt = | |
553 | + | let dt = cH(toString(cX.caller)) | |
551 | 554 | let du = dt._1 | |
552 | 555 | $Tuple2((du :+ ScriptTransfer(cX.caller, dt._2, I)), df) | |
553 | 556 | } | |
560 | 563 | func onStakeUnstakeLand (Y) = if (if (if ((cX.caller != C)) | |
561 | 564 | then (cX.caller != G) | |
562 | 565 | else false) | |
563 | - | then (cX.caller != | |
566 | + | then (cX.caller != cD) | |
564 | 567 | else false) | |
565 | 568 | then throw("Permission denied") | |
566 | 569 | else { | |
567 | - | let dv = | |
570 | + | let dv = cH(Y) | |
568 | 571 | let du = dv._1 | |
569 | 572 | let dw = dv._2 | |
570 | 573 | $Tuple2((du :+ ScriptTransfer(addressFromStringValue(Y), dw, I)), dw) | |
573 | 576 | ||
574 | 577 | ||
575 | 578 | @Callable(cX) | |
576 | - | func burnWlgold () = if ((cX.caller != | |
579 | + | func burnWlgold () = if ((cX.caller != cD)) | |
577 | 580 | then throw("Permission denied") | |
578 | 581 | else { | |
579 | 582 | let dr = cX.payments[0].amount | |
580 | - | let | |
581 | - | let dx = ( | |
582 | - | $Tuple2([Burn(I, dr), IntegerEntry( | |
583 | + | let cJ = bH("", [cC, cD, D, E, F], c, 0) | |
584 | + | let dx = (cJ[bw] - dr) | |
585 | + | $Tuple2([Burn(I, dr), IntegerEntry(as, dx)], dx) | |
583 | 586 | } | |
584 | 587 | ||
585 | 588 |
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 | 35 | let g = { | |
36 | 36 | let d = b | |
37 | 37 | if ((base58'2W' == d)) | |
38 | 38 | then a | |
39 | 39 | else if ((base58'2T' == d)) | |
40 | 40 | then 60000 | |
41 | 41 | else throw("Unknown chain") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let h = "__" | |
45 | 45 | ||
46 | 46 | let i = 1000000 | |
47 | 47 | ||
48 | 48 | let j = 100000000 | |
49 | 49 | ||
50 | 50 | let k = 100000 | |
51 | 51 | ||
52 | 52 | func l (m,n) = valueOrErrorMessage(getString(m, n), makeString(["mandatory ", toString(m), ".", n, " is not defined"], "")) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | let o = 1 | |
56 | 56 | ||
57 | 57 | let p = 4 | |
58 | 58 | ||
59 | 59 | let q = 5 | |
60 | 60 | ||
61 | 61 | let r = 6 | |
62 | 62 | ||
63 | 63 | let s = 8 | |
64 | 64 | ||
65 | 65 | func t () = "%s__restConfig" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func u () = "%s__restAddr" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func v () = "%s__rest2Addr" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func w (x) = split_4C(l(x, t()), h) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func y (z,A) = valueOrErrorMessage(addressFromString(z[A]), ("Rest cfg doesn't contain address at index " + toString(A))) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | let B = addressFromStringValue(valueOrElse(getString(this, u()), e)) | |
81 | 81 | ||
82 | 82 | let z = w(B) | |
83 | 83 | ||
84 | 84 | let C = y(z, o) | |
85 | 85 | ||
86 | 86 | let D = y(z, p) | |
87 | 87 | ||
88 | 88 | let E = y(z, q) | |
89 | 89 | ||
90 | 90 | let F = y(z, r) | |
91 | 91 | ||
92 | 92 | let G = y(z, s) | |
93 | 93 | ||
94 | 94 | let H = "wlg_assetId" | |
95 | 95 | ||
96 | 96 | let I = valueOrErrorMessage(getBinary(D, H), "WLGOLD is not issued yet") | |
97 | 97 | ||
98 | 98 | func J (K) = { | |
99 | 99 | let d = K | |
100 | 100 | if ($isInstanceOf(d, "Int")) | |
101 | 101 | then { | |
102 | 102 | let L = d | |
103 | 103 | L | |
104 | 104 | } | |
105 | 105 | else throw("fail to cast into Int") | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func M (N,O) = { | |
110 | 110 | let P = pow(10, 0, O, 0, 0, DOWN) | |
111 | 111 | let Q = toString((N % P)) | |
112 | 112 | let R = drop(toString(P), (1 + size(Q))) | |
113 | 113 | (((toString((N / P)) + ".") + R) + Q) | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | let S = 100000000 | |
118 | 118 | ||
119 | 119 | let T = 3200 | |
120 | 120 | ||
121 | 121 | let U = 4000 | |
122 | 122 | ||
123 | 123 | let V = 3 | |
124 | 124 | ||
125 | 125 | let W = 100000000000 | |
126 | 126 | ||
127 | 127 | func X (Y) = ("userXP_" + Y) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func Z (Y) = ("userLevel_" + Y) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | let aa = 10000 | |
134 | 134 | ||
135 | 135 | func ab (ac) = fraction(T, pow(ac, 4, U, 4, 4, DOWN), S) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ad (ae,af) = { | |
139 | 139 | let ag = ab(af) | |
140 | 140 | [ag, (V * (ag - ae))] | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | let ah = 100000000000000 | |
145 | 145 | ||
146 | 146 | let ai = 400000 | |
147 | 147 | ||
148 | 148 | let aj = 86400000 | |
149 | 149 | ||
150 | 150 | let ak = "teamAddr" | |
151 | 151 | ||
152 | 152 | let al = "lastClaimedTime_team" | |
153 | 153 | ||
154 | 154 | let am = "teamAmountLeft" | |
155 | 155 | ||
156 | 156 | let an = "lastClaimedTime_activities" | |
157 | 157 | ||
158 | 158 | let ao = "activitiesAmountLeft" | |
159 | 159 | ||
160 | 160 | let ap = "stakersAmountLeft" | |
161 | 161 | ||
162 | - | func aq (Y) = (" | |
162 | + | func aq (Y) = ("lastArbTimeUser_" + Y) | |
163 | 163 | ||
164 | 164 | ||
165 | - | func ar (Y) = ("lastArbTimeUser_" + Y) | |
165 | + | let ar = "wlg_issueTime" | |
166 | + | ||
167 | + | let as = "wlg_issuedAmount" | |
168 | + | ||
169 | + | func at (Y) = ("acresStakedAmountByUser_" + Y) | |
166 | 170 | ||
167 | 171 | ||
168 | - | let as = "wlg_issueTime" | |
169 | - | ||
170 | - | let at = "wlg_issuedAmount" | |
171 | - | ||
172 | - | func au (Y) = ("acresStakedAmountByUser_" + Y) | |
172 | + | func au (Y) = ("wlgStakedAmountByUser_" + Y) | |
173 | 173 | ||
174 | 174 | ||
175 | - | func av (Y) = ("wlgStakedAmountByUser_" + Y) | |
175 | + | let av = "wlgStakedAmountTotal" | |
176 | + | ||
177 | + | func aw (Y) = ("wlgStakedTimeByUser_" + Y) | |
176 | 178 | ||
177 | 179 | ||
178 | - | let | |
180 | + | let ax = 1000000 | |
179 | 181 | ||
180 | - | ||
182 | + | let ay = 100000000 | |
181 | 183 | ||
184 | + | let az = 100000000000000 | |
182 | 185 | ||
183 | - | let | |
186 | + | let aA = 200000 | |
184 | 187 | ||
185 | - | let | |
188 | + | let aB = 100000 | |
186 | 189 | ||
187 | - | let | |
190 | + | let aC = 400000 | |
188 | 191 | ||
189 | - | let | |
192 | + | let aD = 31557600000 | |
190 | 193 | ||
191 | - | let | |
194 | + | let aE = take(drop(this.bytes, 1), 1) | |
192 | 195 | ||
193 | - | let aD = 400000 | |
194 | - | ||
195 | - | let aE = 31557600000 | |
196 | - | ||
197 | - | let aF = take(drop(this.bytes, 1), 1) | |
198 | - | ||
199 | - | let aG = { | |
200 | - | let d = aF | |
196 | + | let aF = { | |
197 | + | let d = aE | |
201 | 198 | if ((base58'2W' == d)) | |
202 | 199 | then 1208630000 | |
203 | 200 | else if ((base58'2T' == d)) | |
204 | 201 | then 0 | |
205 | 202 | else throw("Unknown chain") | |
206 | 203 | } | |
207 | 204 | ||
208 | - | let | |
205 | + | let aG = "teamAddr" | |
209 | 206 | ||
210 | - | let | |
207 | + | let aH = "lastClaimedTime_team" | |
211 | 208 | ||
212 | - | let | |
209 | + | let aI = "teamAmountLeft" | |
213 | 210 | ||
214 | - | let | |
211 | + | let aJ = "lastClaimedTime_activities" | |
215 | 212 | ||
216 | - | let | |
213 | + | let aK = "activitiesAmountLeft" | |
217 | 214 | ||
218 | - | let | |
215 | + | let aL = "stakersAmountLeft" | |
219 | 216 | ||
220 | - | func | |
217 | + | func aM (Y) = ("lastClaimedTimeUser_" + Y) | |
221 | 218 | ||
222 | 219 | ||
223 | - | func | |
220 | + | func aN (aO) = fraction(az, (aC * (aO + 1)), (6 * ax)) | |
224 | 221 | ||
225 | 222 | ||
226 | - | let | |
223 | + | let aP = "wlg_issueTime" | |
227 | 224 | ||
228 | - | let | |
225 | + | let aQ = "wlg_issuedAmount" | |
229 | 226 | ||
230 | - | let | |
227 | + | let aR = "zbill_issuedAmount" | |
231 | 228 | ||
232 | - | func | |
229 | + | func aS (Y) = ("acresStakedAmountByUser_" + Y) | |
233 | 230 | ||
234 | 231 | ||
235 | - | let | |
232 | + | let aT = "acresStakedAmountTotal" | |
236 | 233 | ||
237 | - | let | |
234 | + | let aU = 0 | |
238 | 235 | ||
239 | - | let | |
236 | + | let aV = 1 | |
240 | 237 | ||
241 | - | let | |
238 | + | let aW = 2 | |
242 | 239 | ||
243 | - | let | |
240 | + | let aX = 3 | |
244 | 241 | ||
245 | - | let | |
242 | + | let aY = 4 | |
246 | 243 | ||
247 | - | let | |
244 | + | let aZ = [10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
248 | 245 | ||
249 | - | func | |
250 | - | let | |
251 | - | func | |
252 | - | then | |
253 | - | else ( | |
246 | + | func ba (bb) = { | |
247 | + | let bc = (bb / ay) | |
248 | + | func bd (be,bf) = if ((bf > bc)) | |
249 | + | then be | |
250 | + | else (be + 1) | |
254 | 251 | ||
255 | 252 | let A = { | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | func | |
260 | - | then | |
261 | - | else | |
253 | + | let bg = aZ | |
254 | + | let bh = size(bg) | |
255 | + | let bi = 0 | |
256 | + | func bj (bk,bl) = if ((bl >= bh)) | |
257 | + | then bk | |
258 | + | else bd(bk, bg[bl]) | |
262 | 259 | ||
263 | - | func | |
264 | - | then | |
260 | + | func bm (bk,bl) = if ((bl >= bh)) | |
261 | + | then bk | |
265 | 262 | else throw("List size exceeds 10") | |
266 | 263 | ||
267 | - | | |
264 | + | bm(bj(bj(bj(bj(bj(bj(bj(bj(bj(bj(bi, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
268 | 265 | } | |
269 | 266 | (A + 1) | |
270 | 267 | } | |
271 | 268 | ||
272 | 269 | ||
273 | - | func | |
270 | + | func bn (bb) = ((bb * 20) * (ba(bb) + 4)) | |
274 | 271 | ||
275 | 272 | ||
276 | - | func | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | [ | |
273 | + | func bo (bp,C) = { | |
274 | + | let bq = valueOrElse(getInteger(C, aT), 0) | |
275 | + | let br = bn(bq) | |
276 | + | let bs = valueOrElse(getInteger(C, aS(bp)), 0) | |
277 | + | let bt = bn(bs) | |
278 | + | [br, bt] | |
282 | 279 | } | |
283 | 280 | ||
284 | 281 | ||
285 | - | let | |
282 | + | let bu = 0 | |
286 | 283 | ||
287 | - | let | |
284 | + | let bv = 1 | |
288 | 285 | ||
289 | - | let | |
286 | + | let bw = 0 | |
290 | 287 | ||
291 | - | let | |
288 | + | let bx = 1 | |
292 | 289 | ||
293 | - | let | |
290 | + | let by = 2 | |
294 | 291 | ||
295 | - | let | |
292 | + | let bz = 6 | |
296 | 293 | ||
297 | - | let | |
294 | + | let bA = 9 | |
298 | 295 | ||
299 | - | let | |
296 | + | let bB = 10 | |
300 | 297 | ||
301 | - | let | |
298 | + | let bC = 13 | |
302 | 299 | ||
303 | - | let | |
300 | + | let bD = 14 | |
304 | 301 | ||
305 | - | let | |
302 | + | let bE = 17 | |
306 | 303 | ||
307 | - | let | |
304 | + | let bF = 21 | |
308 | 305 | ||
309 | - | let | |
306 | + | let bG = 22 | |
310 | 307 | ||
311 | - | func | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
308 | + | func bH (bI,bJ,bK,bL) = { | |
309 | + | let bM = valueOrErrorMessage(getInteger(bJ[aW], aQ), "WLGOLD is not issued yet") | |
310 | + | let bN = assetBalance(bJ[aU], bK) | |
311 | + | let bO = (assetBalance(bJ[aW], bK) - bL) | |
312 | + | let bP = assetBalance(bJ[aX], bK) | |
313 | + | let bQ = bJ[aY] | |
314 | + | let bR = (assetBalance(bQ, bK) + valueOrElse(getInteger(bQ, aR), 0)) | |
315 | + | let bS = (bO + bR) | |
316 | + | let bT = valueOrErrorMessage(getBinary(bJ[aW], "wlg_assetId"), "Not initialized yet") | |
317 | + | let bU = lastBlock.timestamp | |
318 | + | let bV = valueOrErrorMessage(getInteger(bJ[aW], aP), "Not initialized") | |
319 | + | let bW = fraction(az, aA, ax) | |
320 | + | let bX = valueOrElse(getInteger(bJ[aW], aI), bW) | |
321 | + | let bY = valueOrElse(getInteger(bJ[aW], aH), bV) | |
322 | + | let bZ = addressFromStringValue(value(getString(bJ[aW], aG))) | |
323 | + | let ca = min([fraction(bW, (bU - bY), (3 * aD)), bX]) | |
324 | + | let cb = assetBalance(bZ, bT) | |
325 | + | let cc = fraction(az, aB, ax) | |
326 | + | let cd = valueOrElse(getInteger(bJ[aW], aK), cc) | |
327 | + | let ce = valueOrElse(getInteger(bJ[aW], aJ), bV) | |
328 | + | let cf = min([fraction(cc, (bU - ce), (3 * aD)), cd]) | |
329 | + | let cg = assetBalance(bJ[aU], bT) | |
330 | + | let ch = valueOrElse(getInteger(bJ[aW], aM(bI)), bV) | |
331 | + | let ci = ((ch - bV) / aD) | |
332 | + | let cj = min([bU, (bV + (3 * aD))]) | |
333 | + | let ck = min([((bU - bV) / aD), 2]) | |
334 | + | let cl = bo(bI, bJ[aV]) | |
335 | + | let cm = aN(ck) | |
336 | + | let cn = if ((ci == ck)) | |
340 | 337 | then { | |
341 | - | let | |
342 | - | let | |
343 | - | $Tuple2( | |
338 | + | let co = fraction(cm, (cj - ch), aD) | |
339 | + | let cp = cj | |
340 | + | $Tuple2(co, cp) | |
344 | 341 | } | |
345 | - | else if (( | |
342 | + | else if ((ci == (ck - 1))) | |
346 | 343 | then { | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | then ( | |
352 | - | else (( | |
353 | - | $Tuple2( | |
344 | + | let cq = fraction(aN((ck - 1)), ((bV + (aD * ck)) - ch), aD) | |
345 | + | let co = fraction(cm, (cj - (bV + (aD * ck))), aD) | |
346 | + | let cr = (cq + co) | |
347 | + | let cp = if ((cq >= cr)) | |
348 | + | then (ch + fraction(aD, cr, aN((ck - 1)))) | |
349 | + | else ((bV + (aD * ck)) + fraction(aD, (cr - cq), cm)) | |
350 | + | $Tuple2(cr, cp) | |
354 | 351 | } | |
355 | 352 | else { | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | then ( | |
362 | - | else if ((( | |
363 | - | then (( | |
364 | - | else (( | |
365 | - | $Tuple2( | |
353 | + | let cs = fraction(aN((ck - 2)), ((bV + (aD * (ck - 1))) - ch), aD) | |
354 | + | let cq = aN((ck - 1)) | |
355 | + | let co = fraction(cm, (cj - (bV + (aD * ck))), aD) | |
356 | + | let cr = ((cs + cq) + co) | |
357 | + | let cp = if ((cs >= cr)) | |
358 | + | then (ch + fraction(aD, cr, aN((ck - 2)))) | |
359 | + | else if (((cs + cq) >= cr)) | |
360 | + | then ((bV + (aD * (ck - 1))) + fraction(aD, (cr - cs), aN((ck - 1)))) | |
361 | + | else ((bV + (aD * ck)) + fraction(aD, ((cr - cs) - cq), cm)) | |
362 | + | $Tuple2(cr, cp) | |
366 | 363 | } | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | then fraction( | |
364 | + | let ct = cn._1 | |
365 | + | let cu = cn._2 | |
366 | + | let cv = valueOrElse(getInteger(bJ[aW], aL), 0) | |
367 | + | let cw = if ((cl[bu] != 0)) | |
368 | + | then fraction(ct, cl[bv], cl[bu]) | |
372 | 369 | else 0 | |
373 | - | [ | |
370 | + | [bM, fraction((bS - aF), ay, bM), bS, bN, bO, bP, bV, bY, bW, bX, ca, cb, cc, cd, cf, cg, ck, cv, cm, ch, bR, cw, cu] | |
374 | 371 | } | |
375 | 372 | ||
376 | 373 | ||
377 | - | let | |
374 | + | let cx = take(drop(this.bytes, 1), 1) | |
378 | 375 | ||
379 | - | let | |
380 | - | let d = | |
376 | + | let cy = { | |
377 | + | let d = cx | |
381 | 378 | if ((base58'2W' == d)) | |
382 | 379 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
383 | 380 | else if ((base58'2T' == d)) | |
384 | 381 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
385 | 382 | else throw("Unknown chain") | |
386 | 383 | } | |
387 | 384 | ||
388 | - | let | |
385 | + | let cz = "profitAddr" | |
389 | 386 | ||
390 | - | let | |
387 | + | let cA = "stakersAmountPaidTotal" | |
391 | 388 | ||
392 | - | func | |
389 | + | func cB (Y) = ("stakersAmountPaidUser_" + Y) | |
393 | 390 | ||
394 | 391 | ||
395 | - | let | |
392 | + | let cC = addressFromStringValue(valueOrElse(getString(this, v()), cy)) | |
396 | 393 | ||
397 | - | let | |
394 | + | let cD = addressFromStringValue(f) | |
398 | 395 | ||
399 | - | func | |
396 | + | func cE () = J(reentrantInvoke(cD, "saveLastTx", nil, nil)) | |
400 | 397 | ||
401 | 398 | ||
402 | - | func | |
403 | - | let | |
404 | - | let | |
405 | - | if ((g > ( | |
399 | + | func cF (Y) = { | |
400 | + | let cG = valueOrElse(getInteger(aq(Y)), 0) | |
401 | + | let bU = lastBlock.timestamp | |
402 | + | if ((g > (bU - cG))) | |
406 | 403 | then throw((("Arbitrages are possible once a " + toString((g / 60000))) + "min")) | |
407 | - | else valueOrElse(getInteger( | |
404 | + | else valueOrElse(getInteger(cD, at(Y)), 0) | |
408 | 405 | } | |
409 | 406 | ||
410 | 407 | ||
411 | - | func cI (Y) = { | |
412 | - | let cJ = addressFromStringValue(Y) | |
413 | - | let cK = bI(Y, [cD, cE, D, E, F], c, 0) | |
414 | - | let bV = lastBlock.timestamp | |
415 | - | let bW = cK[bA] | |
416 | - | let bY = cK[bB] | |
417 | - | let cL = cK[bC] | |
418 | - | let ce = cK[bD] | |
419 | - | let cM = cK[bE] | |
420 | - | let cN = cK[bG] | |
421 | - | let cO = cC(Y) | |
422 | - | let cP = cK[bG] | |
423 | - | let cQ = cK[bH] | |
424 | - | $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(ak))), cL, I), ScriptTransfer(B, cM, I), IntegerEntry(cO, (valueOrElse(getInteger(cO), 0) + cN)), IntegerEntry(cB, (valueOrElse(getInteger(cB), 0) + cP)), IntegerEntry(ap, (cK[bF] - cP)), IntegerEntry(am, (bY - cL)), IntegerEntry(al, bV), IntegerEntry(ao, (ce - cM)), IntegerEntry(an, bV), IntegerEntry(aq(Y), cQ)], cN) | |
408 | + | func cH (Y) = { | |
409 | + | let cI = addressFromStringValue(Y) | |
410 | + | let cJ = bH(Y, [cC, cD, D, E, F], c, 0) | |
411 | + | let cK = aM(Y) | |
412 | + | let ch = valueOrElse(getInteger(cK), 0) | |
413 | + | let cL = cJ[bG] | |
414 | + | if ((ch == cL)) | |
415 | + | then $Tuple2(nil, 0) | |
416 | + | else { | |
417 | + | let bU = lastBlock.timestamp | |
418 | + | let bV = cJ[bz] | |
419 | + | let bX = cJ[bA] | |
420 | + | let cM = cJ[bB] | |
421 | + | let cd = cJ[bC] | |
422 | + | let cN = cJ[bD] | |
423 | + | let cO = cJ[bF] | |
424 | + | let cP = cB(Y) | |
425 | + | let cQ = cJ[bF] | |
426 | + | $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(ak))), cM, I), ScriptTransfer(B, cN, I), IntegerEntry(cP, (valueOrElse(getInteger(cP), 0) + cO)), IntegerEntry(cA, (valueOrElse(getInteger(cA), 0) + cQ)), IntegerEntry(ap, (cJ[bE] - cQ)), IntegerEntry(am, (bX - cM)), IntegerEntry(al, bU), IntegerEntry(ao, (cd - cN)), IntegerEntry(an, bU), IntegerEntry(cK, cL)], cO) | |
427 | + | } | |
425 | 428 | } | |
426 | 429 | ||
427 | 430 | ||
428 | 431 | func cR (Y,cS) = { | |
429 | - | let | |
430 | - | let cT = | |
431 | - | let cU = | |
432 | - | let | |
432 | + | let bU = lastBlock.timestamp | |
433 | + | let cT = aw(Y) | |
434 | + | let cU = au(Y) | |
435 | + | let cG = valueOrElse(getInteger(cT), 0) | |
433 | 436 | let cV = valueOrElse(getInteger(cU), 0) | |
434 | - | let cW = valueOrElse(getInteger( | |
435 | - | let ac = fraction(fraction(aa, cV, W), ( | |
436 | - | $Tuple3([IntegerEntry(cT, | |
437 | + | let cW = valueOrElse(getInteger(av), 0) | |
438 | + | let ac = fraction(fraction(aa, cV, W), (cG - bU), aj) | |
439 | + | $Tuple3([IntegerEntry(cT, bU), IntegerEntry(cU, (cV + cS)), IntegerEntry(av, (cW + cS))], ac, cV) | |
437 | 440 | } | |
438 | 441 | ||
439 | 442 | ||
440 | 443 | @Callable(cX) | |
441 | - | func constructorV1 (cY,cZ, | |
444 | + | func constructorV1 (cY,cZ,bZ,da) = if ((cX.caller != this)) | |
442 | 445 | then throw("Permission denied") | |
443 | 446 | else if (isDefined(getBinary(H))) | |
444 | 447 | then throw("Already initialized") | |
445 | 448 | else { | |
446 | - | let | |
447 | - | let db = Issue("WLGOLD", "WavesLands Gold investment token", | |
449 | + | let bM = ah | |
450 | + | let db = Issue("WLGOLD", "WavesLands Gold investment token", bM, 8, true, unit, 0) | |
448 | 451 | let dc = calculateAssetId(db) | |
449 | - | [db, IntegerEntry( | |
452 | + | [db, IntegerEntry(ar, lastBlock.timestamp), IntegerEntry(as, bM), IntegerEntry(cA, 0), IntegerEntry(ap, fraction(ah, ai, i)), BinaryEntry(H, dc), StringEntry(u(), cY), StringEntry(ak, bZ), StringEntry(cz, da)] | |
450 | 453 | } | |
451 | 454 | ||
452 | 455 | ||
453 | 456 | ||
454 | 457 | @Callable(cX) | |
455 | 458 | func constructorV2 (dd) = if ((cX.caller != this)) | |
456 | 459 | then throw("Permission denied") | |
457 | 460 | else [StringEntry(v(), dd)] | |
458 | 461 | ||
459 | 462 | ||
460 | 463 | ||
461 | 464 | @Callable(cX) | |
462 | 465 | func buyWlg (de) = { | |
463 | - | let df = | |
466 | + | let df = cE() | |
464 | 467 | if ((df == df)) | |
465 | 468 | then if ((size(cX.payments) != 1)) | |
466 | 469 | then throw("exactly 1 payment must be attached") | |
467 | 470 | else { | |
468 | 471 | let dg = cX.payments[0] | |
469 | 472 | let dh = dg.amount | |
470 | 473 | if (if (!(isDefined(dg.assetId))) | |
471 | 474 | then true | |
472 | 475 | else (value(dg.assetId) != c)) | |
473 | 476 | then throw("USDT payments only!") | |
474 | 477 | else { | |
475 | - | let | |
476 | - | let Y = toString( | |
478 | + | let cI = cX.caller | |
479 | + | let Y = toString(cI) | |
477 | 480 | if ((k > dh)) | |
478 | 481 | then throw((("You can trade min " + M(k, 6)) + " USDT")) | |
479 | 482 | else { | |
480 | - | let | |
481 | - | let di = | |
482 | - | let dj = | |
483 | + | let cJ = bH("", [cC, cD, D, E, F], c, dh) | |
484 | + | let di = cJ[bw] | |
485 | + | let dj = cJ[by] | |
483 | 486 | let dk = fraction(dj, j, di) | |
484 | 487 | let dl = fraction(dk, 6, 5) | |
485 | 488 | let dm = fraction(dh, j, dl) | |
486 | - | let dn = | |
489 | + | let dn = cF(Y) | |
487 | 490 | if ((dm > dn)) | |
488 | 491 | then throw((("You can get max " + M(dn, 8)) + " WLGOLD")) | |
489 | 492 | else if ((de > dm)) | |
490 | 493 | then throw("Price changed during operation, please try again") | |
491 | 494 | else { | |
492 | 495 | let do = (dh / 6) | |
493 | 496 | let dp = (dh - do) | |
494 | 497 | let dq = fraction(di, dp, dj) | |
495 | - | $Tuple2([Reissue(I, dq, true), IntegerEntry( | |
498 | + | $Tuple2([Reissue(I, dq, true), IntegerEntry(as, (di + dq)), IntegerEntry(aq(Y), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(cz))), do, c), ScriptTransfer(cI, dm, I)], df) | |
496 | 499 | } | |
497 | 500 | } | |
498 | 501 | } | |
499 | 502 | } | |
500 | 503 | else throw("Strict value is not equal to itself.") | |
501 | 504 | } | |
502 | 505 | ||
503 | 506 | ||
504 | 507 | ||
505 | 508 | @Callable(cX) | |
506 | 509 | func sellWlg (de) = { | |
507 | - | let df = | |
510 | + | let df = cE() | |
508 | 511 | if ((df == df)) | |
509 | 512 | then if ((size(cX.payments) != 1)) | |
510 | 513 | then throw("exactly 1 payment must be attached") | |
511 | 514 | else { | |
512 | 515 | let dg = cX.payments[0] | |
513 | 516 | let dr = dg.amount | |
514 | - | let | |
515 | - | let Y = toString( | |
516 | - | let dn = | |
517 | + | let cI = cX.caller | |
518 | + | let Y = toString(cI) | |
519 | + | let dn = cF(Y) | |
517 | 520 | if ((dr > dn)) | |
518 | 521 | then throw((("You can spend max " + M(dn, 8)) + " WLGOLD")) | |
519 | 522 | else if (if (!(isDefined(dg.assetId))) | |
520 | 523 | then true | |
521 | 524 | else (value(dg.assetId) != I)) | |
522 | 525 | then throw("WLGOLD payments only!") | |
523 | 526 | else { | |
524 | - | let | |
525 | - | let di = | |
526 | - | let ds = fraction( | |
527 | + | let cJ = bH("", [cC, cD, D, E, F], c, 0) | |
528 | + | let di = cJ[bw] | |
529 | + | let ds = fraction(cJ[bx], 4, 5) | |
527 | 530 | let dh = fraction(dr, ds, j) | |
528 | 531 | if ((k > dh)) | |
529 | 532 | then throw((("You can trade min " + M(k, 6)) + " USDT")) | |
530 | 533 | else if ((de > dh)) | |
531 | 534 | then throw("Price changed during operation, please try again") | |
532 | 535 | else { | |
533 | 536 | let do = (dh / 4) | |
534 | - | $Tuple2([Burn(I, dr), IntegerEntry( | |
537 | + | $Tuple2([Burn(I, dr), IntegerEntry(as, (di - dr)), IntegerEntry(aq(Y), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(cz))), do, c), ScriptTransfer(cI, dh, c)], df) | |
535 | 538 | } | |
536 | 539 | } | |
537 | 540 | } | |
538 | 541 | else throw("Strict value is not equal to itself.") | |
539 | 542 | } | |
540 | 543 | ||
541 | 544 | ||
542 | 545 | ||
543 | 546 | @Callable(cX) | |
544 | 547 | func claim () = { | |
545 | - | let df = | |
548 | + | let df = cE() | |
546 | 549 | if ((df == df)) | |
547 | 550 | then if ((size(cX.payments) != 0)) | |
548 | 551 | then throw("No payments required") | |
549 | 552 | else { | |
550 | - | let dt = | |
553 | + | let dt = cH(toString(cX.caller)) | |
551 | 554 | let du = dt._1 | |
552 | 555 | $Tuple2((du :+ ScriptTransfer(cX.caller, dt._2, I)), df) | |
553 | 556 | } | |
554 | 557 | else throw("Strict value is not equal to itself.") | |
555 | 558 | } | |
556 | 559 | ||
557 | 560 | ||
558 | 561 | ||
559 | 562 | @Callable(cX) | |
560 | 563 | func onStakeUnstakeLand (Y) = if (if (if ((cX.caller != C)) | |
561 | 564 | then (cX.caller != G) | |
562 | 565 | else false) | |
563 | - | then (cX.caller != | |
566 | + | then (cX.caller != cD) | |
564 | 567 | else false) | |
565 | 568 | then throw("Permission denied") | |
566 | 569 | else { | |
567 | - | let dv = | |
570 | + | let dv = cH(Y) | |
568 | 571 | let du = dv._1 | |
569 | 572 | let dw = dv._2 | |
570 | 573 | $Tuple2((du :+ ScriptTransfer(addressFromStringValue(Y), dw, I)), dw) | |
571 | 574 | } | |
572 | 575 | ||
573 | 576 | ||
574 | 577 | ||
575 | 578 | @Callable(cX) | |
576 | - | func burnWlgold () = if ((cX.caller != | |
579 | + | func burnWlgold () = if ((cX.caller != cD)) | |
577 | 580 | then throw("Permission denied") | |
578 | 581 | else { | |
579 | 582 | let dr = cX.payments[0].amount | |
580 | - | let | |
581 | - | let dx = ( | |
582 | - | $Tuple2([Burn(I, dr), IntegerEntry( | |
583 | + | let cJ = bH("", [cC, cD, D, E, F], c, 0) | |
584 | + | let dx = (cJ[bw] - dr) | |
585 | + | $Tuple2([Burn(I, dr), IntegerEntry(as, dx)], dx) | |
583 | 586 | } | |
584 | 587 | ||
585 | 588 | ||
586 | 589 | ||
587 | 590 | @Callable(cX) | |
588 | 591 | func takeWlgXp (Y) = if ((cX.caller != C)) | |
589 | 592 | then throw("Permission denied") | |
590 | 593 | else { | |
591 | 594 | let dy = cR(Y, 0) | |
592 | 595 | let du = dy._1 | |
593 | 596 | let ac = dy._2 | |
594 | 597 | $Tuple2(du, ac) | |
595 | 598 | } | |
596 | 599 | ||
597 | 600 | ||
598 | 601 | ||
599 | 602 | @Callable(cX) | |
600 | 603 | func checkWlgXpREADONLY (Y) = { | |
601 | 604 | let dz = cR(Y, 0) | |
602 | 605 | let dA = dz._1 | |
603 | 606 | let dB = dz._2 | |
604 | 607 | let af = (valueOrElse(getInteger(C, X(Y)), 0) + dB) | |
605 | 608 | let dC = ad(valueOrElse(getInteger(C, Z(Y)), 0), af) | |
606 | 609 | $Tuple2(nil, (dC :+ af)) | |
607 | 610 | } | |
608 | 611 | ||
609 | 612 |
github/deemru/w8io/169f3d6 193.96 ms ◑