tx · 7npvjwSRh6LG5mXgESqSSetbVn28p92CmpgdhvJHSmFM 3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv: -0.02400000 Waves 2022.11.02 16:01 [2299525] smart account 3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv > SELF 0.00000000 Waves
{ "type": 13, "id": "7npvjwSRh6LG5mXgESqSSetbVn28p92CmpgdhvJHSmFM", "fee": 2400000, "feeAssetId": null, "timestamp": 1667394154737, "version": 1, "sender": "3MvZpvvbmovEt3pvdDZKvhKRjjQxdbUD6Tv", "senderPublicKey": "39YkRD2qWXTcdNBr4CbDnm8g8SAB2FKVaDeGYahcFHHx", "proofs": [ "5fKEDW1wrCFwTy4fDSCUTc9Rdk4wmM1cbFZ24etuqbmBSnUHbvSGmGChsdmbNTiDz1wRAYSV64LaK33q3AHsqUFi" ], "script": "base64:AAIFAAAAAAAADfwIAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIAIg9nZXRTdHJpbmdPckZhaWwiA2tleSIDU0VQIghCVUZTQ0FMRSIGc2NhbGU4Igh0aHJvd0VyciIDbXNnIh1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldCIQcHJpY2VBc3NldEFtb3VudCIOcHJpY2VBc3NldE1VTFQiBXByaWNlIglwcmljZU1VTFQiDGlkb0Fzc2V0TVVMVCIPYlByaWNlQXNzZXRNVUxUIg1iSWRvQXNzZXRNVUxUIg5iUHJpY2VBc3NldEJVRiIPYkFtb3VudEFzc2V0QlVGIg5JZHhDZmdJZG9TdGFydCIRSWR4Q2ZnSWRvRHVyYXRpb24iEElkeENmZ0NsYWltU3RhcnQiE0lkeENmZ0NsYWltRHVyYXRpb24iC0lkeENmZ1ByaWNlIg9JZHhDZmdQcmljZU11bHQiEElkeENmZ0lkb0Fzc2V0SWQiEklkeENmZ0lkb0Fzc2V0TXVsdCISSWR4Q2ZnUHJpY2VBc3NldElkIhRJZHhDZmdQcmljZUFz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c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJjSQEAAAACY0oAAAAABAAAAAJjSwQAAAACYm8JAQAAAAJiUwAAAAADCQAAAQAAAAIFAAAAAmJvAgAAAApCeXRlVmVjdG9yBAAAAAJiWQUAAAACYm8FAAAAAmJZAwkAAAEAAAACBQAAAAJibwIAAAAEVW5pdAgFAAAAAmNJAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACY0kAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJjSQAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmNLSHb+Gw==", "chainId": 84, "height": 2299525, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: jsupw7HNM16HghuxVRZ6ByGuFsj1qwanVSqxhtUgriZ Next: 3ZQ1FzYhuRtanVvCLvTZDi35rzHSoJHjvUjeH9Ruzexd Diff:
Old | New | Differences | |
---|---|---|---|
225 | 225 | then { | |
226 | 226 | let br = value(getInteger(as(K))) | |
227 | 227 | let bs = value(getInteger(au(K))) | |
228 | - | let bt = valueOrElse(getInteger(an()), 0) | |
229 | - | let bu = valueOrElse(getInteger(av(K, bt)), br) | |
230 | - | let bv = valueOrElse(getInteger(aw(K, bt, bc)), bs) | |
231 | - | let bw = min([bj, bu, bv]) | |
232 | - | let bx = value(getInteger(ar())) | |
233 | - | let by = e | |
234 | - | let bz = { | |
235 | - | let bA = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [by, bb], nil) | |
236 | - | if ($isInstanceOf(bA, "(Int, Int, Int)")) | |
237 | - | then bA | |
228 | + | let bt = value(getInteger(am())) | |
229 | + | let bu = valueOrElse(getInteger(an()), 0) | |
230 | + | let bv = if ((bu > 0)) | |
231 | + | then { | |
232 | + | let bw = value(getInteger(ao((bu - 1)))) | |
233 | + | let bx = value(getInteger(aq((bu - 1)))) | |
234 | + | let by = if ((height > bx)) | |
235 | + | then { | |
236 | + | let bz = (bu + 1) | |
237 | + | let bA = (bx + 1) | |
238 | + | let bB = ((bA + bt) - 1) | |
239 | + | $Tuple3(bz, bA, bB) | |
240 | + | } | |
241 | + | else $Tuple3(bu, bw, bx) | |
242 | + | let bz = by._1 | |
243 | + | let bA = by._2 | |
244 | + | let bB = by._3 | |
245 | + | $Tuple3(bz, bA, bB) | |
246 | + | } | |
247 | + | else $Tuple3(bu, valueOrElse(getInteger(ao(bu)), height), valueOrElse(getInteger(aq(bu)), ((height + bt) - 1))) | |
248 | + | let bz = bv._1 | |
249 | + | let bA = bv._2 | |
250 | + | let bB = bv._3 | |
251 | + | let bC = valueOrElse(getInteger(av(K, bz)), br) | |
252 | + | let bD = valueOrElse(getInteger(aw(K, bz, bc)), bs) | |
253 | + | let bE = min([bj, bC, bD]) | |
254 | + | let bF = value(getInteger(ar())) | |
255 | + | let bG = e | |
256 | + | let bH = { | |
257 | + | let bI = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bG, K], nil) | |
258 | + | if ($isInstanceOf(bI, "(Int, Int, Int)")) | |
259 | + | then bI | |
238 | 260 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
239 | 261 | } | |
240 | - | if (( | |
262 | + | if ((bH == bH)) | |
241 | 263 | then { | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | if ($isInstanceOf( | |
249 | - | then | |
264 | + | let bJ = bH._3 | |
265 | + | let bK = bH._2 | |
266 | + | let bL = bH._1 | |
267 | + | let bM = value(getString(ay())) | |
268 | + | let bN = { | |
269 | + | let bI = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bM, bL], nil) | |
270 | + | if ($isInstanceOf(bI, "(Int, Int)")) | |
271 | + | then bI | |
250 | 272 | else throw("Couldn't cast Any to (Int, Int)") | |
251 | 273 | } | |
252 | - | if (( | |
274 | + | if ((bN == bN)) | |
253 | 275 | then { | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
276 | + | let bO = bN._2 | |
277 | + | let bP = bN._1 | |
278 | + | let bQ = fraction(bP, bG, e) | |
279 | + | let bR = (bB - height) | |
258 | 280 | if ((aX == K)) | |
259 | - | then $Tuple6([0, -( | |
281 | + | then $Tuple6([0, -(bE), bE, 0], bE, bb, bd, bh, [bz, bA, bB, bj, bk, bE, bC, bF, bQ, bR]) | |
260 | 282 | else if ((aX == I)) | |
261 | - | then $Tuple6([0, -( | |
283 | + | then $Tuple6([0, -(bE), 0, bE], bk, ba, bd, bh, [bz, bA, bB, bj, bk, bE, bC, bF, bQ, bR]) | |
262 | 284 | else f(makeString(["unsupported assetId:", aX], " ")) | |
263 | 285 | } | |
264 | 286 | else throw("Strict value is not equal to itself.") | |
269 | 291 | } | |
270 | 292 | ||
271 | 293 | ||
272 | - | func | |
294 | + | func bS () = { | |
273 | 295 | let bo = getString(az()) | |
274 | 296 | if ($isInstanceOf(bo, "String")) | |
275 | 297 | then { | |
276 | - | let | |
277 | - | fromBase58String( | |
298 | + | let bT = bo | |
299 | + | fromBase58String(bT) | |
278 | 300 | } | |
279 | 301 | else if ($isInstanceOf(bo, "Unit")) | |
280 | 302 | then unit | |
282 | 304 | } | |
283 | 305 | ||
284 | 306 | ||
285 | - | func | |
307 | + | func bU () = { | |
286 | 308 | let bo = getString(aA()) | |
287 | 309 | if ($isInstanceOf(bo, "String")) | |
288 | 310 | then { | |
289 | - | let | |
290 | - | fromBase58String( | |
311 | + | let bT = bo | |
312 | + | fromBase58String(bT) | |
291 | 313 | } | |
292 | 314 | else if ($isInstanceOf(bo, "Unit")) | |
293 | 315 | then unit | |
295 | 317 | } | |
296 | 318 | ||
297 | 319 | ||
298 | - | func | |
299 | - | let | |
300 | - | let bo = | |
320 | + | func bV (bW) = { | |
321 | + | let bX = throw("Permission denied") | |
322 | + | let bo = bS() | |
301 | 323 | if ($isInstanceOf(bo, "ByteVector")) | |
302 | 324 | then { | |
303 | - | let | |
304 | - | if (( | |
325 | + | let bY = bo | |
326 | + | if ((bW.callerPublicKey == bY)) | |
305 | 327 | then true | |
306 | - | else | |
328 | + | else bX | |
307 | 329 | } | |
308 | 330 | else if ($isInstanceOf(bo, "Unit")) | |
309 | - | then if (( | |
331 | + | then if ((bW.caller == this)) | |
310 | 332 | then true | |
311 | - | else | |
333 | + | else bX | |
312 | 334 | else throw("Match error") | |
313 | 335 | } | |
314 | 336 | ||
315 | 337 | ||
316 | - | @Callable( | |
338 | + | @Callable(bW) | |
317 | 339 | func constructor (D,E,F,G,k,K,M) = { | |
318 | 340 | let H = ((100 * 1000) * 1000) | |
319 | - | let | |
341 | + | let bZ = (D + E) | |
320 | 342 | if (isDefined(getString(ad()))) | |
321 | 343 | then throw("already initialized") | |
322 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
344 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(bW.caller))) | |
323 | 345 | then throw("not authorized") | |
324 | - | else if ((size( | |
346 | + | else if ((size(bW.payments) != 1)) | |
325 | 347 | then throw("exactly 1 payment must be attached") | |
326 | - | else if (( | |
348 | + | else if ((bZ >= F)) | |
327 | 349 | then throw("claimStart must be greater than idoEnd") | |
328 | 350 | else { | |
329 | - | let | |
330 | - | let ba = value( | |
331 | - | let | |
351 | + | let ca = value(bW.payments[0]) | |
352 | + | let ba = value(ca.assetId) | |
353 | + | let cb = valueOrErrorMessage(assetInfo(ba), "fail to load ido asset info") | |
332 | 354 | let I = toBase58String(ba) | |
333 | - | let J = pow(10, 0, | |
355 | + | let J = pow(10, 0, cb.decimals, 0, 0, DOWN) | |
334 | 356 | let bb = fromBase58String(K) | |
335 | - | let | |
336 | - | let L = pow(10, 0, | |
337 | - | let | |
338 | - | let | |
339 | - | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, | |
357 | + | let cc = valueOrErrorMessage(assetInfo(bb), "fail to load price asset info") | |
358 | + | let L = pow(10, 0, cc.decimals, 0, 0, DOWN) | |
359 | + | let cd = aE() | |
360 | + | let ce = [0, 0, 0, 0] | |
361 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, ca.amount)), aL(ag(), cd, ce, F)] | |
340 | 362 | } | |
341 | 363 | } | |
342 | 364 | ||
343 | 365 | ||
344 | 366 | ||
345 | - | @Callable( | |
367 | + | @Callable(bW) | |
346 | 368 | func invest () = { | |
347 | 369 | let aY = aB() | |
348 | 370 | let D = parseIntValue(aY[r]) | |
349 | 371 | let E = parseIntValue(aY[s]) | |
350 | - | let | |
372 | + | let bZ = (D + E) | |
351 | 373 | let F = parseIntValue(aY[t]) | |
352 | 374 | let G = parseIntValue(aY[u]) | |
353 | 375 | let k = parseIntValue(aY[v]) | |
358 | 380 | let K = aY[z] | |
359 | 381 | let bb = fromBase58String(K) | |
360 | 382 | let L = parseIntValue(aY[A]) | |
361 | - | let | |
362 | - | let af = toString( | |
383 | + | let cf = parseIntValue(aY[B]) | |
384 | + | let af = toString(bW.caller) | |
363 | 385 | if ((D > height)) | |
364 | 386 | then throw("ido has not been started yet") | |
365 | - | else if ((height > | |
387 | + | else if ((height > bZ)) | |
366 | 388 | then throw("ido has been already ended") | |
367 | - | else if ((size( | |
389 | + | else if ((size(bW.payments) != 1)) | |
368 | 390 | then throw("exactly 1 payment is expected") | |
369 | 391 | else { | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | if (( | |
374 | - | then throw((("invalid payment asset id: " + toBase58String( | |
392 | + | let ca = value(bW.payments[0]) | |
393 | + | let cg = value(ca.assetId) | |
394 | + | let ch = ca.amount | |
395 | + | if ((cg != bb)) | |
396 | + | then throw((("invalid payment asset id: " + toBase58String(cg)) + " is expected")) | |
375 | 397 | else { | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | if (( | |
398 | + | let ci = aF(af) | |
399 | + | let cd = aE() | |
400 | + | let cj = (parseIntValue(cd[P]) + ch) | |
401 | + | let ck = (cj * 100) | |
402 | + | if ((ck > assetBalance(this, ba))) | |
381 | 403 | then throw("IDO asset has been - sold consider to use smaller payment") | |
382 | 404 | else { | |
383 | - | let | |
384 | - | [aL(ae(af), | |
405 | + | let ce = [ch, ch, 0, 0] | |
406 | + | [aL(ae(af), ci, ce, F), aL(ag(), cd, ce, F), aT(af, ch, 0, bW.transactionId)] | |
385 | 407 | } | |
386 | 408 | } | |
387 | 409 | } | |
389 | 411 | ||
390 | 412 | ||
391 | 413 | ||
392 | - | @Callable( | |
414 | + | @Callable(bW) | |
393 | 415 | func claim (aX,bc) = { | |
394 | - | let | |
395 | - | if ((bc != | |
416 | + | let cl = toString(bW.caller) | |
417 | + | if ((bc != cl)) | |
396 | 418 | then f("not authorized") | |
397 | 419 | else { | |
398 | - | let ce = aW(aX, bO.caller, bO.transactionId) | |
399 | - | let bW = ce._1 | |
400 | - | let cf = ce._2 | |
401 | - | let cg = ce._3 | |
402 | - | let bd = ce._4 | |
403 | - | let bh = ce._5 | |
404 | - | let ch = ce._6 | |
405 | - | let bj = ch[0] | |
406 | - | let ci = ch[1] | |
407 | - | let cj = ch[2] | |
408 | - | let ck = ch[3] | |
420 | + | let bb = aB()[z] | |
421 | + | let cm = aW(aX, bW.caller, bW.transactionId) | |
422 | + | let ce = cm._1 | |
423 | + | let cn = cm._2 | |
424 | + | let co = cm._3 | |
425 | + | let bd = cm._4 | |
426 | + | let bh = cm._5 | |
427 | + | let cp = cm._6 | |
428 | + | let bu = cp[0] | |
429 | + | let bA = cp[1] | |
430 | + | let bB = cp[2] | |
431 | + | let bj = cp[3] | |
432 | + | let cq = cp[4] | |
433 | + | let cr = cp[5] | |
434 | + | let cs = cp[6] | |
435 | + | let bF = cp[7] | |
436 | + | let ct = cp[8] | |
437 | + | let cu = cp[9] | |
409 | 438 | let bq = [if (if ((bj > 0)) | |
410 | 439 | then true | |
411 | - | else ( | |
440 | + | else (cq > 0)) | |
412 | 441 | then true | |
413 | - | else f("nothing to claim"), if (( | |
442 | + | else f("nothing to claim"), if ((cr > 0)) | |
414 | 443 | then true | |
415 | - | else f("unavailable to claim because user period allowance reached"), if (( | |
444 | + | else f("unavailable to claim because user period allowance reached"), if ((cs > 0)) | |
416 | 445 | then true | |
417 | 446 | else f("unavailable to claim because total period allowance reached")] | |
418 | 447 | if ((bq == bq)) | |
419 | 448 | then { | |
420 | - | let cl = bW[aJ] | |
421 | - | let cm = bW[aK] | |
422 | - | $Tuple2([ScriptTransfer(bO.caller, cf, cg), aL(ae(bc), bd, bW, bh), aL(ag(), aE(), bW, bh), aV(bc, cl, cm, bO.transactionId)], unit) | |
449 | + | let cv = ce[aJ] | |
450 | + | let cw = ce[aK] | |
451 | + | let cx = (cs - cv) | |
452 | + | let cy = (cr - cv) | |
453 | + | $Tuple2([ScriptTransfer(bW.caller, cn, co), aL(ae(bc), bd, ce, bh), aL(ag(), aE(), ce, bh), IntegerEntry(an(), bu), IntegerEntry(ao(bu), bA), IntegerEntry(aq(bu), bB), IntegerEntry(av(bb, bu), cx), IntegerEntry(aw(bb, bu, bc), cy), aV(bc, cv, cw, bW.transactionId)], unit) | |
423 | 454 | } | |
424 | 455 | else throw("Strict value is not equal to itself.") | |
425 | 456 | } | |
427 | 458 | ||
428 | 459 | ||
429 | 460 | ||
430 | - | @Callable( | |
461 | + | @Callable(bW) | |
431 | 462 | func claimREADONLY (aX,bc) = { | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let bd = | |
437 | - | let bh = | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | $Tuple2(nil, makeString(["%s%d%d", bc, toString( | |
463 | + | let cm = aW(aX, addressFromStringValue(bc), fromBase58String("")) | |
464 | + | let ce = cm._1 | |
465 | + | let cn = cm._2 | |
466 | + | let co = cm._3 | |
467 | + | let bd = cm._4 | |
468 | + | let bh = cm._5 | |
469 | + | let cp = cm._6 | |
470 | + | let cz = cp[4] | |
471 | + | let cA = cp[5] | |
472 | + | $Tuple2(nil, makeString(["%s%d%d", bc, toString(cA), toString(cz)], c)) | |
442 | 473 | } | |
443 | 474 | ||
444 | 475 | ||
445 | 476 | ||
446 | - | @Callable( | |
477 | + | @Callable(bW) | |
447 | 478 | func claimV2READONLY (aX,bc) = { | |
448 | - | let ce = aW(aX, addressFromStringValue(bc), fromBase58String("")) | |
449 | - | let bW = ce._1 | |
450 | - | let cf = ce._2 | |
451 | - | let cg = ce._3 | |
452 | - | let bd = ce._4 | |
453 | - | let bh = ce._5 | |
454 | - | let ch = ce._6 | |
455 | - | let bj = ch[0] | |
456 | - | let ci = ch[1] | |
457 | - | let cj = ch[2] | |
458 | - | let ck = ch[3] | |
459 | - | let bx = ch[4] | |
460 | - | let cp = ch[5] | |
461 | - | let cq = ch[6] | |
462 | - | let cr = makeString(["%d%d%d%d%d%d%d", toString(bj), toString(ci), toString(cj), toString(ck), toString(bx), toString(cp), toString(cq)], c) | |
463 | - | $Tuple2(nil, cr) | |
479 | + | let cm = aW(aX, addressFromStringValue(bc), fromBase58String("")) | |
480 | + | let ce = cm._1 | |
481 | + | let cn = cm._2 | |
482 | + | let co = cm._3 | |
483 | + | let bd = cm._4 | |
484 | + | let bh = cm._5 | |
485 | + | let cp = cm._6 | |
486 | + | let bu = cp[0] | |
487 | + | let bA = cp[1] | |
488 | + | let bB = cp[2] | |
489 | + | let bj = cp[3] | |
490 | + | let cq = cp[4] | |
491 | + | let cr = cp[5] | |
492 | + | let cs = cp[6] | |
493 | + | let bF = cp[7] | |
494 | + | let ct = cp[8] | |
495 | + | let cu = cp[9] | |
496 | + | let cB = makeString(["%d%d%d%d%d%d%d", toString(bj), toString(cq), toString(cr), toString(cs), toString(bF), toString(ct), toString(cu)], c) | |
497 | + | $Tuple2(nil, cB) | |
464 | 498 | } | |
465 | 499 | ||
466 | 500 | ||
467 | 501 | ||
468 | - | @Callable( | |
469 | - | func setManager ( | |
470 | - | let | |
471 | - | if (( | |
502 | + | @Callable(bW) | |
503 | + | func setManager (cC) = { | |
504 | + | let cD = bV(bW) | |
505 | + | if ((cD == cD)) | |
472 | 506 | then { | |
473 | - | let | |
474 | - | if (( | |
475 | - | then [StringEntry(aA(), | |
507 | + | let cE = fromBase58String(cC) | |
508 | + | if ((cE == cE)) | |
509 | + | then [StringEntry(aA(), cC)] | |
476 | 510 | else throw("Strict value is not equal to itself.") | |
477 | 511 | } | |
478 | 512 | else throw("Strict value is not equal to itself.") | |
480 | 514 | ||
481 | 515 | ||
482 | 516 | ||
483 | - | @Callable( | |
517 | + | @Callable(bW) | |
484 | 518 | func confirmManager () = { | |
485 | - | let | |
486 | - | let | |
519 | + | let cF = bU() | |
520 | + | let cG = if (isDefined(cF)) | |
487 | 521 | then true | |
488 | 522 | else throw("No pending manager") | |
489 | - | if (( | |
523 | + | if ((cG == cG)) | |
490 | 524 | then { | |
491 | - | let | |
525 | + | let cH = if ((bW.callerPublicKey == value(cF))) | |
492 | 526 | then true | |
493 | 527 | else throw("You are not pending manager") | |
494 | - | if (( | |
495 | - | then [StringEntry(az(), toBase58String(value( | |
528 | + | if ((cH == cH)) | |
529 | + | then [StringEntry(az(), toBase58String(value(cF))), DeleteEntry(aA())] | |
496 | 530 | else throw("Strict value is not equal to itself.") | |
497 | 531 | } | |
498 | 532 | else throw("Strict value is not equal to itself.") | |
499 | 533 | } | |
500 | 534 | ||
501 | 535 | ||
502 | - | @Verifier( | |
503 | - | func | |
504 | - | let | |
505 | - | let bo = | |
536 | + | @Verifier(cI) | |
537 | + | func cJ () = { | |
538 | + | let cK = { | |
539 | + | let bo = bS() | |
506 | 540 | if ($isInstanceOf(bo, "ByteVector")) | |
507 | 541 | then { | |
508 | - | let | |
509 | - | | |
542 | + | let bY = bo | |
543 | + | bY | |
510 | 544 | } | |
511 | 545 | else if ($isInstanceOf(bo, "Unit")) | |
512 | - | then | |
546 | + | then cI.senderPublicKey | |
513 | 547 | else throw("Match error") | |
514 | 548 | } | |
515 | - | sigVerify( | |
549 | + | sigVerify(cI.bodyBytes, cI.proofs[0], cK) | |
516 | 550 | } | |
517 | 551 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = valueOrErrorMessage(getString(b), (("mandatory this." + b) + " is not defined")) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let c = "__" | |
8 | 8 | ||
9 | 9 | let d = toBigInt(1000000000000000000) | |
10 | 10 | ||
11 | 11 | let e = 100000000 | |
12 | 12 | ||
13 | 13 | func f (g) = throw(makeString(["ido.ride:", g], " ")) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func h (i,j,k,l,m) = { | |
17 | 17 | let n = toBigInt(j) | |
18 | 18 | let o = toBigInt(m) | |
19 | 19 | let p = fraction(toBigInt(i), d, n) | |
20 | 20 | let q = fraction(p, toBigInt(l), toBigInt(k)) | |
21 | 21 | toInt(fraction(q, toBigInt(m), d)) | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | let r = 1 | |
26 | 26 | ||
27 | 27 | let s = 2 | |
28 | 28 | ||
29 | 29 | let t = 3 | |
30 | 30 | ||
31 | 31 | let u = 4 | |
32 | 32 | ||
33 | 33 | let v = 5 | |
34 | 34 | ||
35 | 35 | let w = 6 | |
36 | 36 | ||
37 | 37 | let x = 7 | |
38 | 38 | ||
39 | 39 | let y = 8 | |
40 | 40 | ||
41 | 41 | let z = 9 | |
42 | 42 | ||
43 | 43 | let A = 10 | |
44 | 44 | ||
45 | 45 | let B = 11 | |
46 | 46 | ||
47 | 47 | func C (D,E,F,G,k,H,I,J,K,L,M,N) = makeString(["%d%d%d%d%d%d%s%d%s%d%d%d", D, E, F, G, k, H, I, J, K, L, M, N], c) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func O (D,E,F,G,k,H,I,J,K,L,M,N) = C(toString(D), toString(E), toString(F), toString(G), toString(k), toString(H), I, toString(J), K, toString(L), toString(M), toString(N)) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | let P = 1 | |
54 | 54 | ||
55 | 55 | let Q = 2 | |
56 | 56 | ||
57 | 57 | let R = 3 | |
58 | 58 | ||
59 | 59 | let S = 4 | |
60 | 60 | ||
61 | 61 | let T = 5 | |
62 | 62 | ||
63 | 63 | func U (V,W,X,Y,Z) = makeString(["%d%d%d%d%d", V, W, X, Y, Z], c) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func aa (V,W,X,Y,Z) = U(toString(V), toString(W), toString(X), toString(Y), toString(Z)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func ab (i,ac) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(i), toString(ac)], c) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func ad () = "%s__config" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func ae (af) = ("%s__" + af) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func ag () = "%s__totals" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func ah (ai,af,aj) = makeString(["%s%s%s%s__history", ai, af, aj], c) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func ak () = "%s__usdnClaimDisabled" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func al () = "%s__usdnClaimEndHeight" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func am () = makeString(["%s", "periodLength"], c) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func an () = makeString(["%s", "currentPeriod"], c) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func ao (ap) = makeString(["%s%s", "periodStartHeight", toString(ap)], c) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func aq (ap) = makeString(["%s%s", "periodEndHeight", toString(ap)], c) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func ar () = makeString(["%s", "usdtPriceAssetAllowableRatio"], c) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func as (at) = makeString(["%s%s", "totalPeriodAllowance", at], c) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func au (at) = makeString(["%s%s", "userPeriodAllowance", at], c) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func av (at,ap) = makeString(["%s%s%s", "periodTotalAvailableToClaim", at, toString(ap)], c) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func aw (at,ap,af) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", at, toString(ap), af], c) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ax () = makeString(["%s", "usdtPriceAssetStablePool"], c) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ay () = makeString(["%s", "usdtAssetId"], c) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func az () = "%s__managerPublicKey" | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func aA () = "%s__pendingManagerPublicKey" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func aB () = split(a(ad()), c) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func aC (aD) = split(valueOrElse(getString(aD), U("0", "0", "0", "0", "0")), c) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func aE () = aC(ag()) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func aF (af) = aC(ae(af)) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func aG (af) = split(a(ae(af)), c) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | let aH = 0 | |
145 | 145 | ||
146 | 146 | let aI = 1 | |
147 | 147 | ||
148 | 148 | let aJ = 2 | |
149 | 149 | ||
150 | 150 | let aK = 3 | |
151 | 151 | ||
152 | 152 | func aL (b,aM,aN,aO) = { | |
153 | 153 | let V = parseIntValue(aM[P]) | |
154 | 154 | let W = parseIntValue(aM[Q]) | |
155 | 155 | let X = parseIntValue(aM[R]) | |
156 | 156 | let Y = parseIntValue(aM[S]) | |
157 | 157 | let Z = parseIntValue(aM[T]) | |
158 | 158 | let aP = (V + aN[aH]) | |
159 | 159 | let aQ = (W + aN[aI]) | |
160 | 160 | let aR = (X + aN[aJ]) | |
161 | 161 | let aS = (Y + aN[aK]) | |
162 | 162 | if ((0 > aQ)) | |
163 | 163 | then throw("invalid math") | |
164 | 164 | else StringEntry(b, aa(aP, aQ, aR, aS, aO)) | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func aT (af,i,ac,aU) = StringEntry(ah("invest", af, toBase58String(aU)), ab(i, ac)) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func aV (af,i,ac,aU) = StringEntry(ah("claim", af, toBase58String(aU)), ab(i, ac)) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aW (aX,af,aU) = { | |
175 | 175 | let aY = aB() | |
176 | 176 | let F = parseIntValue(aY[t]) | |
177 | 177 | let G = parseIntValue(aY[u]) | |
178 | 178 | let aZ = (F + G) | |
179 | 179 | let k = parseIntValue(aY[v]) | |
180 | 180 | let H = parseIntValue(aY[w]) | |
181 | 181 | let I = aY[x] | |
182 | 182 | let ba = fromBase58String(I) | |
183 | 183 | let J = parseIntValue(aY[y]) | |
184 | 184 | let K = aY[z] | |
185 | 185 | let bb = fromBase58String(K) | |
186 | 186 | let L = parseIntValue(aY[A]) | |
187 | 187 | let bc = toString(af) | |
188 | 188 | let bd = aG(bc) | |
189 | 189 | let be = parseIntValue(bd[P]) | |
190 | 190 | let bf = parseIntValue(bd[T]) | |
191 | 191 | let bg = if ((F >= bf)) | |
192 | 192 | then F | |
193 | 193 | else bf | |
194 | 194 | let bh = if ((height > aZ)) | |
195 | 195 | then aZ | |
196 | 196 | else if ((F > height)) | |
197 | 197 | then F | |
198 | 198 | else height | |
199 | 199 | let bi = (bh - bg) | |
200 | 200 | let bj = fraction(be, bi, G) | |
201 | 201 | let bk = h(bj, L, k, H, J) | |
202 | 202 | let bl = (aX == K) | |
203 | 203 | let bm = valueOrElse(getBoolean(ak()), false) | |
204 | 204 | let bn = { | |
205 | 205 | let bo = getInteger(al()) | |
206 | 206 | if ($isInstanceOf(bo, "Int")) | |
207 | 207 | then { | |
208 | 208 | let bp = bo | |
209 | 209 | (height > bp) | |
210 | 210 | } | |
211 | 211 | else if ($isInstanceOf(bo, "Unit")) | |
212 | 212 | then false | |
213 | 213 | else throw("Match error") | |
214 | 214 | } | |
215 | 215 | let bq = [if (!(if (bl) | |
216 | 216 | then bm | |
217 | 217 | else false)) | |
218 | 218 | then true | |
219 | 219 | else f("USDN claim is disabled"), if (!(if (bl) | |
220 | 220 | then bn | |
221 | 221 | else false)) | |
222 | 222 | then true | |
223 | 223 | else f("USDN claim is ended")] | |
224 | 224 | if ((bq == bq)) | |
225 | 225 | then { | |
226 | 226 | let br = value(getInteger(as(K))) | |
227 | 227 | let bs = value(getInteger(au(K))) | |
228 | - | let bt = valueOrElse(getInteger(an()), 0) | |
229 | - | let bu = valueOrElse(getInteger(av(K, bt)), br) | |
230 | - | let bv = valueOrElse(getInteger(aw(K, bt, bc)), bs) | |
231 | - | let bw = min([bj, bu, bv]) | |
232 | - | let bx = value(getInteger(ar())) | |
233 | - | let by = e | |
234 | - | let bz = { | |
235 | - | let bA = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [by, bb], nil) | |
236 | - | if ($isInstanceOf(bA, "(Int, Int, Int)")) | |
237 | - | then bA | |
228 | + | let bt = value(getInteger(am())) | |
229 | + | let bu = valueOrElse(getInteger(an()), 0) | |
230 | + | let bv = if ((bu > 0)) | |
231 | + | then { | |
232 | + | let bw = value(getInteger(ao((bu - 1)))) | |
233 | + | let bx = value(getInteger(aq((bu - 1)))) | |
234 | + | let by = if ((height > bx)) | |
235 | + | then { | |
236 | + | let bz = (bu + 1) | |
237 | + | let bA = (bx + 1) | |
238 | + | let bB = ((bA + bt) - 1) | |
239 | + | $Tuple3(bz, bA, bB) | |
240 | + | } | |
241 | + | else $Tuple3(bu, bw, bx) | |
242 | + | let bz = by._1 | |
243 | + | let bA = by._2 | |
244 | + | let bB = by._3 | |
245 | + | $Tuple3(bz, bA, bB) | |
246 | + | } | |
247 | + | else $Tuple3(bu, valueOrElse(getInteger(ao(bu)), height), valueOrElse(getInteger(aq(bu)), ((height + bt) - 1))) | |
248 | + | let bz = bv._1 | |
249 | + | let bA = bv._2 | |
250 | + | let bB = bv._3 | |
251 | + | let bC = valueOrElse(getInteger(av(K, bz)), br) | |
252 | + | let bD = valueOrElse(getInteger(aw(K, bz, bc)), bs) | |
253 | + | let bE = min([bj, bC, bD]) | |
254 | + | let bF = value(getInteger(ar())) | |
255 | + | let bG = e | |
256 | + | let bH = { | |
257 | + | let bI = invoke(addressFromStringValue(value(getString(ax()))), "putOneTknV2WithoutTakeFeeREADONLY", [bG, K], nil) | |
258 | + | if ($isInstanceOf(bI, "(Int, Int, Int)")) | |
259 | + | then bI | |
238 | 260 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
239 | 261 | } | |
240 | - | if (( | |
262 | + | if ((bH == bH)) | |
241 | 263 | then { | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | if ($isInstanceOf( | |
249 | - | then | |
264 | + | let bJ = bH._3 | |
265 | + | let bK = bH._2 | |
266 | + | let bL = bH._1 | |
267 | + | let bM = value(getString(ay())) | |
268 | + | let bN = { | |
269 | + | let bI = invoke(addressFromStringValue(value(getString(ax()))), "getOneTknV2READONLY", [bM, bL], nil) | |
270 | + | if ($isInstanceOf(bI, "(Int, Int)")) | |
271 | + | then bI | |
250 | 272 | else throw("Couldn't cast Any to (Int, Int)") | |
251 | 273 | } | |
252 | - | if (( | |
274 | + | if ((bN == bN)) | |
253 | 275 | then { | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
276 | + | let bO = bN._2 | |
277 | + | let bP = bN._1 | |
278 | + | let bQ = fraction(bP, bG, e) | |
279 | + | let bR = (bB - height) | |
258 | 280 | if ((aX == K)) | |
259 | - | then $Tuple6([0, -( | |
281 | + | then $Tuple6([0, -(bE), bE, 0], bE, bb, bd, bh, [bz, bA, bB, bj, bk, bE, bC, bF, bQ, bR]) | |
260 | 282 | else if ((aX == I)) | |
261 | - | then $Tuple6([0, -( | |
283 | + | then $Tuple6([0, -(bE), 0, bE], bk, ba, bd, bh, [bz, bA, bB, bj, bk, bE, bC, bF, bQ, bR]) | |
262 | 284 | else f(makeString(["unsupported assetId:", aX], " ")) | |
263 | 285 | } | |
264 | 286 | else throw("Strict value is not equal to itself.") | |
265 | 287 | } | |
266 | 288 | else throw("Strict value is not equal to itself.") | |
267 | 289 | } | |
268 | 290 | else throw("Strict value is not equal to itself.") | |
269 | 291 | } | |
270 | 292 | ||
271 | 293 | ||
272 | - | func | |
294 | + | func bS () = { | |
273 | 295 | let bo = getString(az()) | |
274 | 296 | if ($isInstanceOf(bo, "String")) | |
275 | 297 | then { | |
276 | - | let | |
277 | - | fromBase58String( | |
298 | + | let bT = bo | |
299 | + | fromBase58String(bT) | |
278 | 300 | } | |
279 | 301 | else if ($isInstanceOf(bo, "Unit")) | |
280 | 302 | then unit | |
281 | 303 | else throw("Match error") | |
282 | 304 | } | |
283 | 305 | ||
284 | 306 | ||
285 | - | func | |
307 | + | func bU () = { | |
286 | 308 | let bo = getString(aA()) | |
287 | 309 | if ($isInstanceOf(bo, "String")) | |
288 | 310 | then { | |
289 | - | let | |
290 | - | fromBase58String( | |
311 | + | let bT = bo | |
312 | + | fromBase58String(bT) | |
291 | 313 | } | |
292 | 314 | else if ($isInstanceOf(bo, "Unit")) | |
293 | 315 | then unit | |
294 | 316 | else throw("Match error") | |
295 | 317 | } | |
296 | 318 | ||
297 | 319 | ||
298 | - | func | |
299 | - | let | |
300 | - | let bo = | |
320 | + | func bV (bW) = { | |
321 | + | let bX = throw("Permission denied") | |
322 | + | let bo = bS() | |
301 | 323 | if ($isInstanceOf(bo, "ByteVector")) | |
302 | 324 | then { | |
303 | - | let | |
304 | - | if (( | |
325 | + | let bY = bo | |
326 | + | if ((bW.callerPublicKey == bY)) | |
305 | 327 | then true | |
306 | - | else | |
328 | + | else bX | |
307 | 329 | } | |
308 | 330 | else if ($isInstanceOf(bo, "Unit")) | |
309 | - | then if (( | |
331 | + | then if ((bW.caller == this)) | |
310 | 332 | then true | |
311 | - | else | |
333 | + | else bX | |
312 | 334 | else throw("Match error") | |
313 | 335 | } | |
314 | 336 | ||
315 | 337 | ||
316 | - | @Callable( | |
338 | + | @Callable(bW) | |
317 | 339 | func constructor (D,E,F,G,k,K,M) = { | |
318 | 340 | let H = ((100 * 1000) * 1000) | |
319 | - | let | |
341 | + | let bZ = (D + E) | |
320 | 342 | if (isDefined(getString(ad()))) | |
321 | 343 | then throw("already initialized") | |
322 | - | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString( | |
344 | + | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(bW.caller))) | |
323 | 345 | then throw("not authorized") | |
324 | - | else if ((size( | |
346 | + | else if ((size(bW.payments) != 1)) | |
325 | 347 | then throw("exactly 1 payment must be attached") | |
326 | - | else if (( | |
348 | + | else if ((bZ >= F)) | |
327 | 349 | then throw("claimStart must be greater than idoEnd") | |
328 | 350 | else { | |
329 | - | let | |
330 | - | let ba = value( | |
331 | - | let | |
351 | + | let ca = value(bW.payments[0]) | |
352 | + | let ba = value(ca.assetId) | |
353 | + | let cb = valueOrErrorMessage(assetInfo(ba), "fail to load ido asset info") | |
332 | 354 | let I = toBase58String(ba) | |
333 | - | let J = pow(10, 0, | |
355 | + | let J = pow(10, 0, cb.decimals, 0, 0, DOWN) | |
334 | 356 | let bb = fromBase58String(K) | |
335 | - | let | |
336 | - | let L = pow(10, 0, | |
337 | - | let | |
338 | - | let | |
339 | - | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, | |
357 | + | let cc = valueOrErrorMessage(assetInfo(bb), "fail to load price asset info") | |
358 | + | let L = pow(10, 0, cc.decimals, 0, 0, DOWN) | |
359 | + | let cd = aE() | |
360 | + | let ce = [0, 0, 0, 0] | |
361 | + | [StringEntry(ad(), O(D, E, F, G, k, H, I, J, K, L, M, ca.amount)), aL(ag(), cd, ce, F)] | |
340 | 362 | } | |
341 | 363 | } | |
342 | 364 | ||
343 | 365 | ||
344 | 366 | ||
345 | - | @Callable( | |
367 | + | @Callable(bW) | |
346 | 368 | func invest () = { | |
347 | 369 | let aY = aB() | |
348 | 370 | let D = parseIntValue(aY[r]) | |
349 | 371 | let E = parseIntValue(aY[s]) | |
350 | - | let | |
372 | + | let bZ = (D + E) | |
351 | 373 | let F = parseIntValue(aY[t]) | |
352 | 374 | let G = parseIntValue(aY[u]) | |
353 | 375 | let k = parseIntValue(aY[v]) | |
354 | 376 | let H = parseIntValue(aY[w]) | |
355 | 377 | let I = aY[x] | |
356 | 378 | let ba = fromBase58String(I) | |
357 | 379 | let J = parseIntValue(aY[y]) | |
358 | 380 | let K = aY[z] | |
359 | 381 | let bb = fromBase58String(K) | |
360 | 382 | let L = parseIntValue(aY[A]) | |
361 | - | let | |
362 | - | let af = toString( | |
383 | + | let cf = parseIntValue(aY[B]) | |
384 | + | let af = toString(bW.caller) | |
363 | 385 | if ((D > height)) | |
364 | 386 | then throw("ido has not been started yet") | |
365 | - | else if ((height > | |
387 | + | else if ((height > bZ)) | |
366 | 388 | then throw("ido has been already ended") | |
367 | - | else if ((size( | |
389 | + | else if ((size(bW.payments) != 1)) | |
368 | 390 | then throw("exactly 1 payment is expected") | |
369 | 391 | else { | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | if (( | |
374 | - | then throw((("invalid payment asset id: " + toBase58String( | |
392 | + | let ca = value(bW.payments[0]) | |
393 | + | let cg = value(ca.assetId) | |
394 | + | let ch = ca.amount | |
395 | + | if ((cg != bb)) | |
396 | + | then throw((("invalid payment asset id: " + toBase58String(cg)) + " is expected")) | |
375 | 397 | else { | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | if (( | |
398 | + | let ci = aF(af) | |
399 | + | let cd = aE() | |
400 | + | let cj = (parseIntValue(cd[P]) + ch) | |
401 | + | let ck = (cj * 100) | |
402 | + | if ((ck > assetBalance(this, ba))) | |
381 | 403 | then throw("IDO asset has been - sold consider to use smaller payment") | |
382 | 404 | else { | |
383 | - | let | |
384 | - | [aL(ae(af), | |
405 | + | let ce = [ch, ch, 0, 0] | |
406 | + | [aL(ae(af), ci, ce, F), aL(ag(), cd, ce, F), aT(af, ch, 0, bW.transactionId)] | |
385 | 407 | } | |
386 | 408 | } | |
387 | 409 | } | |
388 | 410 | } | |
389 | 411 | ||
390 | 412 | ||
391 | 413 | ||
392 | - | @Callable( | |
414 | + | @Callable(bW) | |
393 | 415 | func claim (aX,bc) = { | |
394 | - | let | |
395 | - | if ((bc != | |
416 | + | let cl = toString(bW.caller) | |
417 | + | if ((bc != cl)) | |
396 | 418 | then f("not authorized") | |
397 | 419 | else { | |
398 | - | let ce = aW(aX, bO.caller, bO.transactionId) | |
399 | - | let bW = ce._1 | |
400 | - | let cf = ce._2 | |
401 | - | let cg = ce._3 | |
402 | - | let bd = ce._4 | |
403 | - | let bh = ce._5 | |
404 | - | let ch = ce._6 | |
405 | - | let bj = ch[0] | |
406 | - | let ci = ch[1] | |
407 | - | let cj = ch[2] | |
408 | - | let ck = ch[3] | |
420 | + | let bb = aB()[z] | |
421 | + | let cm = aW(aX, bW.caller, bW.transactionId) | |
422 | + | let ce = cm._1 | |
423 | + | let cn = cm._2 | |
424 | + | let co = cm._3 | |
425 | + | let bd = cm._4 | |
426 | + | let bh = cm._5 | |
427 | + | let cp = cm._6 | |
428 | + | let bu = cp[0] | |
429 | + | let bA = cp[1] | |
430 | + | let bB = cp[2] | |
431 | + | let bj = cp[3] | |
432 | + | let cq = cp[4] | |
433 | + | let cr = cp[5] | |
434 | + | let cs = cp[6] | |
435 | + | let bF = cp[7] | |
436 | + | let ct = cp[8] | |
437 | + | let cu = cp[9] | |
409 | 438 | let bq = [if (if ((bj > 0)) | |
410 | 439 | then true | |
411 | - | else ( | |
440 | + | else (cq > 0)) | |
412 | 441 | then true | |
413 | - | else f("nothing to claim"), if (( | |
442 | + | else f("nothing to claim"), if ((cr > 0)) | |
414 | 443 | then true | |
415 | - | else f("unavailable to claim because user period allowance reached"), if (( | |
444 | + | else f("unavailable to claim because user period allowance reached"), if ((cs > 0)) | |
416 | 445 | then true | |
417 | 446 | else f("unavailable to claim because total period allowance reached")] | |
418 | 447 | if ((bq == bq)) | |
419 | 448 | then { | |
420 | - | let cl = bW[aJ] | |
421 | - | let cm = bW[aK] | |
422 | - | $Tuple2([ScriptTransfer(bO.caller, cf, cg), aL(ae(bc), bd, bW, bh), aL(ag(), aE(), bW, bh), aV(bc, cl, cm, bO.transactionId)], unit) | |
449 | + | let cv = ce[aJ] | |
450 | + | let cw = ce[aK] | |
451 | + | let cx = (cs - cv) | |
452 | + | let cy = (cr - cv) | |
453 | + | $Tuple2([ScriptTransfer(bW.caller, cn, co), aL(ae(bc), bd, ce, bh), aL(ag(), aE(), ce, bh), IntegerEntry(an(), bu), IntegerEntry(ao(bu), bA), IntegerEntry(aq(bu), bB), IntegerEntry(av(bb, bu), cx), IntegerEntry(aw(bb, bu, bc), cy), aV(bc, cv, cw, bW.transactionId)], unit) | |
423 | 454 | } | |
424 | 455 | else throw("Strict value is not equal to itself.") | |
425 | 456 | } | |
426 | 457 | } | |
427 | 458 | ||
428 | 459 | ||
429 | 460 | ||
430 | - | @Callable( | |
461 | + | @Callable(bW) | |
431 | 462 | func claimREADONLY (aX,bc) = { | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let bd = | |
437 | - | let bh = | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | $Tuple2(nil, makeString(["%s%d%d", bc, toString( | |
463 | + | let cm = aW(aX, addressFromStringValue(bc), fromBase58String("")) | |
464 | + | let ce = cm._1 | |
465 | + | let cn = cm._2 | |
466 | + | let co = cm._3 | |
467 | + | let bd = cm._4 | |
468 | + | let bh = cm._5 | |
469 | + | let cp = cm._6 | |
470 | + | let cz = cp[4] | |
471 | + | let cA = cp[5] | |
472 | + | $Tuple2(nil, makeString(["%s%d%d", bc, toString(cA), toString(cz)], c)) | |
442 | 473 | } | |
443 | 474 | ||
444 | 475 | ||
445 | 476 | ||
446 | - | @Callable( | |
477 | + | @Callable(bW) | |
447 | 478 | func claimV2READONLY (aX,bc) = { | |
448 | - | let ce = aW(aX, addressFromStringValue(bc), fromBase58String("")) | |
449 | - | let bW = ce._1 | |
450 | - | let cf = ce._2 | |
451 | - | let cg = ce._3 | |
452 | - | let bd = ce._4 | |
453 | - | let bh = ce._5 | |
454 | - | let ch = ce._6 | |
455 | - | let bj = ch[0] | |
456 | - | let ci = ch[1] | |
457 | - | let cj = ch[2] | |
458 | - | let ck = ch[3] | |
459 | - | let bx = ch[4] | |
460 | - | let cp = ch[5] | |
461 | - | let cq = ch[6] | |
462 | - | let cr = makeString(["%d%d%d%d%d%d%d", toString(bj), toString(ci), toString(cj), toString(ck), toString(bx), toString(cp), toString(cq)], c) | |
463 | - | $Tuple2(nil, cr) | |
479 | + | let cm = aW(aX, addressFromStringValue(bc), fromBase58String("")) | |
480 | + | let ce = cm._1 | |
481 | + | let cn = cm._2 | |
482 | + | let co = cm._3 | |
483 | + | let bd = cm._4 | |
484 | + | let bh = cm._5 | |
485 | + | let cp = cm._6 | |
486 | + | let bu = cp[0] | |
487 | + | let bA = cp[1] | |
488 | + | let bB = cp[2] | |
489 | + | let bj = cp[3] | |
490 | + | let cq = cp[4] | |
491 | + | let cr = cp[5] | |
492 | + | let cs = cp[6] | |
493 | + | let bF = cp[7] | |
494 | + | let ct = cp[8] | |
495 | + | let cu = cp[9] | |
496 | + | let cB = makeString(["%d%d%d%d%d%d%d", toString(bj), toString(cq), toString(cr), toString(cs), toString(bF), toString(ct), toString(cu)], c) | |
497 | + | $Tuple2(nil, cB) | |
464 | 498 | } | |
465 | 499 | ||
466 | 500 | ||
467 | 501 | ||
468 | - | @Callable( | |
469 | - | func setManager ( | |
470 | - | let | |
471 | - | if (( | |
502 | + | @Callable(bW) | |
503 | + | func setManager (cC) = { | |
504 | + | let cD = bV(bW) | |
505 | + | if ((cD == cD)) | |
472 | 506 | then { | |
473 | - | let | |
474 | - | if (( | |
475 | - | then [StringEntry(aA(), | |
507 | + | let cE = fromBase58String(cC) | |
508 | + | if ((cE == cE)) | |
509 | + | then [StringEntry(aA(), cC)] | |
476 | 510 | else throw("Strict value is not equal to itself.") | |
477 | 511 | } | |
478 | 512 | else throw("Strict value is not equal to itself.") | |
479 | 513 | } | |
480 | 514 | ||
481 | 515 | ||
482 | 516 | ||
483 | - | @Callable( | |
517 | + | @Callable(bW) | |
484 | 518 | func confirmManager () = { | |
485 | - | let | |
486 | - | let | |
519 | + | let cF = bU() | |
520 | + | let cG = if (isDefined(cF)) | |
487 | 521 | then true | |
488 | 522 | else throw("No pending manager") | |
489 | - | if (( | |
523 | + | if ((cG == cG)) | |
490 | 524 | then { | |
491 | - | let | |
525 | + | let cH = if ((bW.callerPublicKey == value(cF))) | |
492 | 526 | then true | |
493 | 527 | else throw("You are not pending manager") | |
494 | - | if (( | |
495 | - | then [StringEntry(az(), toBase58String(value( | |
528 | + | if ((cH == cH)) | |
529 | + | then [StringEntry(az(), toBase58String(value(cF))), DeleteEntry(aA())] | |
496 | 530 | else throw("Strict value is not equal to itself.") | |
497 | 531 | } | |
498 | 532 | else throw("Strict value is not equal to itself.") | |
499 | 533 | } | |
500 | 534 | ||
501 | 535 | ||
502 | - | @Verifier( | |
503 | - | func | |
504 | - | let | |
505 | - | let bo = | |
536 | + | @Verifier(cI) | |
537 | + | func cJ () = { | |
538 | + | let cK = { | |
539 | + | let bo = bS() | |
506 | 540 | if ($isInstanceOf(bo, "ByteVector")) | |
507 | 541 | then { | |
508 | - | let | |
509 | - | | |
542 | + | let bY = bo | |
543 | + | bY | |
510 | 544 | } | |
511 | 545 | else if ($isInstanceOf(bo, "Unit")) | |
512 | - | then | |
546 | + | then cI.senderPublicKey | |
513 | 547 | else throw("Match error") | |
514 | 548 | } | |
515 | - | sigVerify( | |
549 | + | sigVerify(cI.bodyBytes, cI.proofs[0], cK) | |
516 | 550 | } | |
517 | 551 |
github/deemru/w8io/026f985 104.88 ms ◑