tx · 3gheT5Mo9ByFriByEeXCzrD3Z8nQsPWFkoMM6fbbbydC

3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37:  -0.02400000 Waves

2024.05.17 09:03 [3109630] smart account 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37 > SELF 0.00000000 Waves

{ "type": 13, "id": "3gheT5Mo9ByFriByEeXCzrD3Z8nQsPWFkoMM6fbbbydC", "fee": 2400000, "feeAssetId": null, "timestamp": 1715925899159, "version": 2, "chainId": 84, "sender": "3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37", "senderPublicKey": "vmMXxwQAMUAoisvL193ptPiTtaWQqL5YNu2zs1ouTbY", "proofs": [ "4sHEpkRsGHaP6Nr6XYThaW9tX5SRrbzDb2SQkVnVy8DCZa8puJ7UaKGFr7XrqL3tiiBuUyDwMsoqSZZrk6Z4JVeQ" ], "script": "base64:BwI9CAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGFcACXNlcGFyYXRvcgICX18AB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRXAQFXABBjb250cmFjdEZpbGVuYW1lAhdmdXR1cmVzX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAMbXVsdDE4QmlnSW50CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAAt3YXZlc1N0cmluZwIFV0FWRVMADXF1ZXVlSXRlbVNpemUAIAAEYmlnMAkAtgIBAAAACWtNdWx0aXNpZwIMJXNfX211bHRpc2lnAQdrU3RhdHVzAgRkYXBwBHR4SWQJALkJAgkAzAgCAgolc19fc3RhdHVzCQDMCAIFBGRhcHAJAMwIAgUEdHhJZAUDbmlsBQlzZXBhcmF0b3IACWtTaHV0ZG93bgIMJXNfX3NodXRkb3duAAtrUHVibGljS2V5cwIOJXNfX3B1YmxpY0tleXMAEWtNYXRjaGVy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AJ0IAgUOZmFjdG9yeUFkZHJlc3MFCWtNdWx0aXNpZwMJAAECBQckbWF0Y2gwAgZTdHJpbmcECG11bHRpc2lnBQckbWF0Y2gwBAlzdGF0dXNLZXkJAQdrU3RhdHVzAgkApQgBBQR0aGlzCQDYBAEIBQJ0eAJpZAQGc3RhdHVzCQELdmFsdWVPckVsc2UCCQCbCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCG11bHRpc2lnBQlzdGF0dXNLZXkHBQZzdGF0dXMHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5dqDqVg==", "height": 3109630, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FhPupu9dM9Ji8BuNPnHRUqyhJyUeybwSfyqvoxskUjNq Next: 2Nf3iCgG9ABAJCYB6DfZVcUTgkXfHGfM3BuT8GonDx8a Diff:
OldNewDifferences
291291
292292 func bE (an) = {
293293 let az = fromBase58String(valueOrErrorMessage(getString(R, aF(an)), A("invalid account address: request id is undefined")))
294+ az
295+ }
296+
297+
298+func bF (an) = {
299+ let az = bE(an)
294300 let aO = F(valueOrErrorMessage(getString(R, aC(az)), A("invalid amount asset id")))
295301 let aP = F(valueOrErrorMessage(getString(R, aD(az)), A("invalid amount price id")))
296302 $Tuple2(aO, aP)
297303 }
298304
299305
300-func bF (an) = {
301- let az = fromBase58String(valueOrErrorMessage(getString(R, aF(an)), A("invalid account address: request id is undefined")))
302- let bG = valueOrErrorMessage(getBinary(R, aB(az)), A("invalid amount asset id"))
303- bG
306+func bG (an) = {
307+ let az = bE(an)
308+ let bH = valueOrErrorMessage(getBinary(R, aB(az)), A("invalid amount asset id"))
309+ bH
304310 }
305311
306312
307-@Callable(bH)
308-func init (bI) = {
309- let bJ = Z(bH.caller)
310- if ((bJ == bJ))
311- then $Tuple2([StringEntry(P, bI)], unit)
313+@Callable(bI)
314+func init (bJ) = {
315+ let bK = Z(bI.caller)
316+ if ((bK == bK))
317+ then $Tuple2([StringEntry(P, bJ)], unit)
312318 else throw("Strict value is not equal to itself.")
313319 }
314320
315321
316322
317-@Callable(bH)
318-func requestAccount (ac,bK) = {
319- let bL = [if (!(W))
323+@Callable(bI)
324+func requestAccount (ac,bL) = {
325+ let bM = [if (!(W))
320326 then true
321- else C("not allowed"), aa(bH.caller)]
322- if ((bL == bL))
327+ else C("not allowed"), aa(bI.caller)]
328+ if ((bM == bM))
323329 then {
324- let bM = bK[0]
325- let bN = bK[1]
326- let bO = addressFromPublicKey(ac)
327- let az = sha256(((bO.bytes + fromBase58String(bM)) + fromBase58String(bN)))
328- let aO = F(bM)
329- let aP = F(bN)
330- let bP = (size(aK(bO)) / j)
331- let bQ = [if ((size(bH.payments) == 1))
330+ let bN = bL[0]
331+ let bO = bL[1]
332+ let bP = addressFromPublicKey(ac)
333+ let az = sha256(((bP.bytes + fromBase58String(bN)) + fromBase58String(bO)))
334+ let aO = F(bN)
335+ let aP = F(bO)
336+ let bQ = (size(aK(bP)) / j)
337+ let bR = [if ((size(bI.payments) == 1))
332338 then true
333- else C("1 payment is required"), if ((bH.payments[0].assetId == unit))
339+ else C("1 payment is required"), if ((bI.payments[0].assetId == unit))
334340 then true
335- else C("invalid asset"), if ((bH.payments[0].amount == ai()))
341+ else C("invalid asset"), if ((bI.payments[0].amount == ai()))
336342 then true
337343 else C("invalid amount"), if (aQ(aO, aP))
338344 then true
339345 else C("pair is not allowed"), if ((getInteger(R, ay(az)) == unit))
340346 then true
341- else C("account is already exists"), if ((al() > bP))
347+ else C("account is already exists"), if ((al() > bQ))
342348 then true
343349 else C(("accounts limit is " + toString(al())))]
344- if ((bQ == bQ))
350+ if ((bR == bR))
345351 then {
346- let bR = if ((size(aJ()) == 0))
352+ let bS = if ((size(aJ()) == 0))
347353 then $Tuple2([ScriptTransfer(R, ai(), unit)], [invoke(R, "integerEntry", [ay(az), aw], nil), invoke(R, "binaryEntry", [aG(), (aH() + az)], nil)])
348354 else {
349- let bS = take(aJ(), j)
350- let an = addressFromPublicKey(bS)
351- let bT = addressFromPublicKey(valueOrErrorMessage(getBinary(R, aA(an)), A("invalid creator public key")))
352- $Tuple2([ScriptTransfer(bT, ai(), unit)], [invoke(R, "binaryEntry", [aI(), drop(aJ(), j)], nil), invoke(R, "integerEntry", [ay(az), ax], nil), invoke(R, "binaryEntry", [aE(az), bS], nil), invoke(R, "stringEntry", [aF(an), toBase58String(az)], nil)])
355+ let bT = take(aJ(), j)
356+ let an = addressFromPublicKey(bT)
357+ let bU = addressFromPublicKey(valueOrErrorMessage(getBinary(R, aA(an)), A("invalid creator public key")))
358+ $Tuple2([ScriptTransfer(bU, ai(), unit)], [invoke(R, "binaryEntry", [aI(), drop(aJ(), j)], nil), invoke(R, "integerEntry", [ay(az), ax], nil), invoke(R, "binaryEntry", [aE(az), bT], nil), invoke(R, "stringEntry", [aF(an), toBase58String(az)], nil)])
353359 }
354- let bU = bR._1
355- let bV = bR._2
356- $Tuple2(bU, (bV ++ [invoke(R, "binaryEntry", [aB(az), ac], nil), invoke(R, "binaryEntry", [aK(bO), (aM(bO) + az)], nil), invoke(R, "stringEntry", [aC(az), bM], nil), invoke(R, "stringEntry", [aD(az), bN], nil)]))
360+ let bV = bS._1
361+ let bW = bS._2
362+ $Tuple2(bV, (bW ++ [invoke(R, "binaryEntry", [aB(az), ac], nil), invoke(R, "binaryEntry", [aK(bP), (aM(bP) + az)], nil), invoke(R, "stringEntry", [aC(az), bN], nil), invoke(R, "stringEntry", [aD(az), bO], nil)]))
357363 }
358364 else throw("Strict value is not equal to itself.")
359365 }
362368
363369
364370
365-@Callable(bH)
366-func addAccount (ac,bK) = {
367- let bL = [if (!(W))
371+@Callable(bI)
372+func addAccount (ac,bL) = {
373+ let bM = [if (!(W))
368374 then true
369- else C("not allowed"), aa(bH.caller)]
370- if ((bL == bL))
375+ else C("not allowed"), aa(bI.caller)]
376+ if ((bM == bM))
371377 then {
372- let bW = fromBase58String(bK[0])
373- let bS = ac
378+ let bX = fromBase58String(bL[0])
379+ let bT = ac
374380 let an = addressFromPublicKey(ac)
375- let bT = addressFromPublicKey(bW)
376- let bQ = [if ((getBinary(R, aA(an)) == unit))
381+ let bU = addressFromPublicKey(bX)
382+ let bR = [if ((getBinary(R, aA(an)) == unit))
377383 then true
378384 else C("account is already exists"), if ({
379385 let L = scriptHash(an)
380386 if ($isInstanceOf(L, "ByteVector"))
381387 then {
382- let bX = L
383- (bX == blake2b256_32Kb(ag()))
388+ let bY = L
389+ (bY == blake2b256_32Kb(ag()))
384390 }
385391 else false
386392 })
387393 then true
388394 else C("invalid script")]
389- if ((bQ == bQ))
395+ if ((bR == bR))
390396 then {
391- let bY = if ((size(aH()) == 0))
392- then $Tuple2(nil, [invoke(R, "binaryEntry", [aI(), (aJ() + bS)], nil)])
397+ let bZ = if ((size(aH()) == 0))
398+ then $Tuple2(nil, [invoke(R, "binaryEntry", [aI(), (aJ() + bT)], nil)])
393399 else {
394400 let az = take(aH(), j)
395- $Tuple2(nil, [invoke(R, "integerEntry", [ay(az), ax], nil), invoke(R, "binaryEntry", [aE(az), bS], nil), invoke(R, "binaryEntry", [aG(), drop(aH(), j)], nil), invoke(R, "stringEntry", [aF(an), toBase58String(az)], nil), invoke(R, "transferWaves", [bT.bytes, ai()], nil)])
401+ $Tuple2(nil, [invoke(R, "integerEntry", [ay(az), ax], nil), invoke(R, "binaryEntry", [aE(az), bT], nil), invoke(R, "binaryEntry", [aG(), drop(aH(), j)], nil), invoke(R, "stringEntry", [aF(an), toBase58String(az)], nil), invoke(R, "transferWaves", [bU.bytes, ai()], nil)])
396402 }
397- let bU = bY._1
398- let bV = bY._2
399- $Tuple2(bU, (bV ++ [invoke(R, "binaryEntry", [aA(an), bW], nil)]))
403+ let bV = bZ._1
404+ let bW = bZ._2
405+ $Tuple2(bV, (bW ++ [invoke(R, "binaryEntry", [aA(an), bX], nil)]))
400406 }
401407 else throw("Strict value is not equal to itself.")
402408 }
405411
406412
407413
408-@Callable(bH)
409-func deposit (ac,bK) = {
410- let bZ = bH.payments[0]
411- let bL = [if (!(W))
414+@Callable(bI)
415+func deposit (ac,bL) = {
416+ let ca = bI.payments[0]
417+ let an = valueOrErrorMessage(addressFromString(bL[0]), A("invalid account address"))
418+ let bM = [if (!(W))
412419 then true
413- else C("not allowed"), aa(bH.caller), if ((size(bH.payments) == 1))
420+ else C("not allowed"), aa(bI.caller), if ((size(bI.payments) == 1))
414421 then true
415- else C("1 payment is required"), if ((bZ.assetId == U))
422+ else C("1 payment is required"), if ((ca.assetId == U))
416423 then true
417- else C("invalid asset")]
418- if ((bL == bL))
424+ else C("invalid asset"), if ((getInteger(R, ay(bE(an))) == ax))
425+ then true
426+ else C("account is not ready")]
427+ if ((bM == bM))
419428 then {
420- let an = valueOrErrorMessage(addressFromString(bK[0]), A("invalid account address"))
421- let bU = [ScriptTransfer(an, bZ.amount, bZ.assetId)]
422- let bV = [invoke(R, "integerEntry", [am(an), (valueOrElse(ao(an), 0) + bZ.amount)], nil)]
423- $Tuple2(bU, bV)
429+ let bV = [ScriptTransfer(an, ca.amount, ca.assetId)]
430+ let bW = [invoke(R, "integerEntry", [am(an), (valueOrElse(ao(an), 0) + ca.amount)], nil)]
431+ $Tuple2(bV, bW)
424432 }
425433 else throw("Strict value is not equal to itself.")
426434 }
427435
428436
429437
430-@Callable(bH)
431-func withdraw (ac,bK) = {
432- let bL = [if (!(W))
438+@Callable(bI)
439+func withdraw (ac,bL) = {
440+ let bM = [if (!(W))
433441 then true
434- else C("not allowed"), aa(bH.caller)]
435- if ((bL == bL))
442+ else C("not allowed"), aa(bI.caller)]
443+ if ((bM == bM))
436444 then {
437- let bO = addressFromPublicKey(ac)
438- let an = valueOrErrorMessage(addressFromString(bK[0]), A("invalid account address"))
439- let ca = valueOrErrorMessage(parseInt(bK[1]), A("invalid amount"))
440- let J = F(bK[2])
441- let cb = [invoke(an, "transferAsset", [bO.bytes, ca, J], nil)]
442- $Tuple2(nil, cb)
445+ let bP = addressFromPublicKey(ac)
446+ let an = valueOrErrorMessage(addressFromString(bL[0]), A("invalid account address"))
447+ let cb = valueOrErrorMessage(parseInt(bL[1]), A("invalid amount"))
448+ let J = F(bL[2])
449+ let cc = [invoke(an, "transferAsset", [bP.bytes, cb, J], nil)]
450+ $Tuple2(nil, cc)
443451 }
444452 else throw("Strict value is not equal to itself.")
445453 }
446454
447455
448456
449-@Callable(bH)
450-func borrow (ac,bK) = {
451- let an = valueOrErrorMessage(addressFromString(bK[0]), A("invalid account address"))
452- let cc = F(bK[1])
453- let cd = D(valueOrErrorMessage(parseInt(bK[2]), A("invalid requested amount")), "requested amount")
454- let ce = bF(an)
455- let bO = addressFromPublicKey(ac)
456- let bL = [if (!(W))
457+@Callable(bI)
458+func borrow (ac,bL) = {
459+ let an = valueOrErrorMessage(addressFromString(bL[0]), A("invalid account address"))
460+ let cd = F(bL[1])
461+ let ce = D(valueOrErrorMessage(parseInt(bL[2]), A("invalid requested amount")), "requested amount")
462+ let cf = bG(an)
463+ let bP = addressFromPublicKey(ac)
464+ let bM = [if (!(W))
457465 then true
458- else C("not allowed"), aa(bH.caller), if ((ac == ce))
466+ else C("not allowed"), aa(bI.caller), if ((ac == cf))
459467 then true
460468 else C("can be called by account owner only")]
461- if ((bL == bL))
469+ if ((bM == bM))
462470 then {
463- let aO = bE(an)._1
464- let cf = s(valueOrElse(ao(an), 0), O(U))
471+ let aO = bF(an)._1
472+ let cg = s(valueOrElse(ao(an), 0), O(U))
465473 let aZ = s(aS(aO), O(U))
466474 let aX = s(valueOrElse(getInteger(R, ap(an, aO)), 0), O(aO))
467475 let aY = s(valueOrElse(getInteger(R, ap(an, U)), 0), O(U))
468476 let bf = aW(aX, aY, aZ)
469- let cg = 3
470- let bi = s(valueOrElse(getInteger(R, ar(an)), cg), 1)
471- let ch = bg(cf, bi, bf)
472- let ci = if ((cc == aO))
473- then v(fraction(ch, f, aZ), O(aO))
474- else if ((cc == U))
475- then v(ch, O(U))
477+ let ch = 3
478+ let bi = s(valueOrElse(getInteger(R, ar(an)), ch), 1)
479+ let ci = bg(cg, bi, bf)
480+ let cj = if ((cd == aO))
481+ then v(fraction(ci, f, aZ), O(aO))
482+ else if ((cd == U))
483+ then v(ci, O(U))
476484 else C("invalid requested asset id")
477- let av = F(valueOrErrorMessage(getString(R, as(cc)), A("synthetic asset for requested asset is undefined")))
478- let cj = if ((ci >= cd))
479- then cd
480- else C(("credit available = " + toString(ci)))
481- let bV = [invoke(R, "integerEntry", [ap(an, cc), (valueOrElse(aq(an, cc), 0) + cj)], nil), invoke(R, "transferAsset", [bO.bytes, cj, av], nil)]
482- $Tuple2(nil, [bV, ci])
485+ let av = F(valueOrErrorMessage(getString(R, as(cd)), A("synthetic asset for requested asset is undefined")))
486+ let ck = if ((cj >= ce))
487+ then ce
488+ else C(("credit available = " + toString(cj)))
489+ let bW = [invoke(R, "integerEntry", [ap(an, cd), (valueOrElse(aq(an, cd), 0) + ck)], nil), invoke(R, "transferAsset", [bP.bytes, ck, av], nil)]
490+ $Tuple2(nil, [bW, cj])
483491 }
484492 else throw("Strict value is not equal to itself.")
485493 }
486494
487495
488496
489-@Callable(bH)
490-func repay (ac,bK) = {
491- let bL = [if (!(W))
497+@Callable(bI)
498+func repay (ac,bL) = {
499+ let bM = [if (!(W))
492500 then true
493- else C("not allowed"), aa(bH.caller)]
494- if ((bL == bL))
501+ else C("not allowed"), aa(bI.caller)]
502+ if ((bM == bM))
495503 then $Tuple2(nil, unit)
496504 else throw("Strict value is not equal to itself.")
497505 }
498506
499507
500508
501-@Callable(bH)
502-func setPairAllowance (ac,bK) = {
503- let bL = [if (!(W))
509+@Callable(bI)
510+func setPairAllowance (ac,bL) = {
511+ let bM = [if (!(W))
504512 then true
505- else C("not allowed"), aa(bH.caller), ab(ac)]
506- if ((bL == bL))
513+ else C("not allowed"), aa(bI.caller), ab(ac)]
514+ if ((bM == bM))
507515 then {
508- let bM = bK[0]
509- let bN = bK[1]
510- let ck = bK[2]
511- let aO = F(bM)
512- let aP = F(bN)
513- let cl = (ck == "true")
514- let cb = [invoke(R, "booleanEntry", [aN(aO, aP), cl], nil)]
515- $Tuple2(nil, cb)
516+ let bN = bL[0]
517+ let bO = bL[1]
518+ let cl = bL[2]
519+ let aO = F(bN)
520+ let aP = F(bO)
521+ let cm = (cl == "true")
522+ let cc = [invoke(R, "booleanEntry", [aN(aO, aP), cm], nil)]
523+ $Tuple2(nil, cc)
516524 }
517525 else throw("Strict value is not equal to itself.")
518526 }
519527
520528
521529
522-@Callable(bH)
523-func addSyntheticAsset (ac,bK) = {
524- let at = F(bK[0])
525- let av = F(bK[1])
526- let bL = [if (!(W))
530+@Callable(bI)
531+func addSyntheticAsset (ac,bL) = {
532+ let at = F(bL[0])
533+ let av = F(bL[1])
534+ let bM = [if (!(W))
527535 then true
528- else C("not allowed"), aa(bH.caller), if ((getString(R, as(at)) == unit))
536+ else C("not allowed"), aa(bI.caller), ab(ac), if ((getString(R, as(at)) == unit))
529537 then true
530538 else C("invalid base asset"), if ((getString(R, au(av)) == unit))
531539 then true
532540 else C("invalid synthetic asset")]
533- if ((bL == bL))
541+ if ((bM == bM))
534542 then {
535- let cb = [invoke(R, "stringEntry", [as(at), H(av)], nil), invoke(R, "stringEntry", [au(av), H(at)], nil)]
536- $Tuple2(nil, cb)
543+ let cc = [invoke(R, "stringEntry", [as(at), H(av)], nil), invoke(R, "stringEntry", [au(av), H(at)], nil)]
544+ $Tuple2(nil, cc)
537545 }
538546 else throw("Strict value is not equal to itself.")
539547 }
540548
541549
542550
543-@Callable(bH)
544-func doShutdown (ac,bK) = {
545- let bQ = [aa(bH.caller), ab(ac)]
546- if ((bQ == bQ))
551+@Callable(bI)
552+func doShutdown (ac,bL) = {
553+ let bR = [aa(bI.caller), ab(ac)]
554+ if ((bR == bR))
547555 then {
548- let cb = [invoke(R, "booleanEntry", [p, true], nil)]
549- $Tuple2(nil, cb)
556+ let cc = [invoke(R, "booleanEntry", [p, true], nil)]
557+ $Tuple2(nil, cc)
550558 }
551559 else throw("Strict value is not equal to itself.")
552560 }
553561
554562
555-@Verifier(cm)
556-func cn () = if (if (isDefined(Q))
563+@Verifier(cn)
564+func co () = if (if (isDefined(Q))
557565 then isDefined(getString(R, l))
558566 else false)
559567 then {
561569 if ($isInstanceOf(L, "String"))
562570 then {
563571 let ad = L
564- let co = m(toString(this), toBase58String(cm.id))
565- let cp = valueOrElse(getBoolean(addressFromStringValue(ad), co), false)
566- cp
572+ let cp = m(toString(this), toBase58String(cn.id))
573+ let cq = valueOrElse(getBoolean(addressFromStringValue(ad), cp), false)
574+ cq
567575 }
568576 else false
569577 }
570- else sigVerify(cm.bodyBytes, cm.proofs[0], cm.senderPublicKey)
578+ else sigVerify(cn.bodyBytes, cn.proofs[0], cn.senderPublicKey)
571579
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = take(drop(this.bytes, 1), 1)
77
88 let c = base58'2W'
99
1010 let d = "futures_calculator.ride"
1111
1212 let e = 100000000
1313
1414 let f = toBigInt(1000000000000000000)
1515
1616 let g = 8
1717
1818 let h = 6
1919
2020 let i = "WAVES"
2121
2222 let j = 32
2323
2424 let k = toBigInt(0)
2525
2626 let l = "%s__multisig"
2727
2828 func m (n,o) = makeString(["%s__status", n, o], a)
2929
3030
3131 let p = "%s__shutdown"
3232
3333 let q = "%s__publicKeys"
3434
3535 let r = "%s__matcherPublicKey"
3636
3737 func s (t,u) = fraction(toBigInt(t), f, toBigInt(u))
3838
3939
4040 func v (w,x) = toInt(fraction(w, toBigInt(x), f))
4141
4242
4343 func y (z) = isDefined(addressFromString(z))
4444
4545
4646 func A (B) = ((d + ": ") + B)
4747
4848
4949 func C (B) = throw(A(B))
5050
5151
5252 func D (E,B) = if ((E >= 0))
5353 then E
5454 else C((B + " value should be positive"))
5555
5656
5757 func F (G) = if ((G == i))
5858 then unit
5959 else fromBase58String(G)
6060
6161
6262 func H (G) = if ((G == unit))
6363 then i
6464 else toBase58String(value(G))
6565
6666
6767 func I (J) = valueOrErrorMessage(assetInfo(J), A("invalid asset info"))
6868
6969
7070 func K (J) = {
7171 let L = J
7272 if ($isInstanceOf(L, "Unit"))
7373 then g
7474 else if ($isInstanceOf(L, "ByteVector"))
7575 then {
7676 let J = L
7777 I(J).decimals
7878 }
7979 else throw("Match error")
8080 }
8181
8282
8383 func M (N) = pow(10, 0, N, 0, 0, DOWN)
8484
8585
8686 func O (J) = M(K(J))
8787
8888
8989 let P = "%s__factoryAddress"
9090
9191 let Q = {
9292 let L = getString(this, P)
9393 if ($isInstanceOf(L, "String"))
9494 then {
9595 let B = L
9696 addressFromString(B)
9797 }
9898 else if ($isInstanceOf(L, "Unit"))
9999 then unit
100100 else throw("Match error")
101101 }
102102
103103 let R = valueOrErrorMessage(Q, A("invalid factory address"))
104104
105105 let S = "%s__usdtAssetId"
106106
107107 let T = {
108108 let L = getString(R, S)
109109 if ($isInstanceOf(L, "String"))
110110 then {
111111 let B = L
112112 F(B)
113113 }
114114 else if ($isInstanceOf(L, "Unit"))
115115 then unit
116116 else throw("Match error")
117117 }
118118
119119 let U = valueOrErrorMessage(T, A("invalid usdt asset id"))
120120
121121 let V = "%s__calculatorAddress"
122122
123123 let W = valueOrElse(getBoolean(R, p), false)
124124
125125 func X (Y,z) = if ((Y == z))
126126 then true
127127 else C("permission denied")
128128
129129
130130 func Z (Y) = X(Y, this)
131131
132132
133133 func aa (Y) = X(Y, R)
134134
135135
136136 func ab (ac) = {
137137 let ad = addressFromStringValue(getStringValue(R, l))
138138 let ae = split(getStringValue(ad, q), a)
139139 if (containsElement(ae, toBase58String(ac)))
140140 then true
141141 else C("not allowed")
142142 }
143143
144144
145145 let af = "%s__accountScript"
146146
147147 func ag () = valueOrErrorMessage(getBinary(R, af), A("account script is not set"))
148148
149149
150150 let ah = "%s__rewardAmount"
151151
152152 func ai () = valueOrErrorMessage(getInteger(R, ah), A("reward amount is not set"))
153153
154154
155155 let aj = "%s__accountsLimit"
156156
157157 let ak = 20
158158
159159 func al () = valueOrElse(getInteger(R, aj), ak)
160160
161161
162162 func am (an) = makeString(["%s%s", "deposited", toString(an)], a)
163163
164164
165165 func ao (an) = getInteger(R, am(an))
166166
167167
168168 func ap (an,J) = makeString(["%s%s%s", "credit", toString(an), H(J)], a)
169169
170170
171171 func aq (an,J) = getInteger(R, ap(an, J))
172172
173173
174174 func ar (an) = makeString(["%s%s", "leverage", toString(an)], a)
175175
176176
177177 func as (at) = makeString(["%s%s", "syntheticAssetId", H(at)], a)
178178
179179
180180 func au (av) = makeString(["%s%s", "baseAssetId", H(av)], a)
181181
182182
183183 let aw = 0
184184
185185 let ax = 1
186186
187187 func ay (az) = makeString(["%s%s", toBase58String(az), "status"], a)
188188
189189
190190 func aA (an) = makeString(["%s%s", toString(an), "creatorPublicKey"], a)
191191
192192
193193 func aB (az) = makeString(["%s%s", toBase58String(az), "ownerPublicKey"], a)
194194
195195
196196 func aC (az) = makeString(["%s%s", toBase58String(az), "amountAssetId"], a)
197197
198198
199199 func aD (az) = makeString(["%s%s", toBase58String(az), "priceAssetId"], a)
200200
201201
202202 func aE (az) = makeString(["%s%s", toBase58String(az), "requestIdToAccountPublicKey"], a)
203203
204204
205205 func aF (an) = makeString(["%s%s", toString(an), "accountAddressToRequestId"], a)
206206
207207
208208 func aG () = makeString(["%s", "requestsQueue"], a)
209209
210210
211211 func aH () = valueOrElse(getBinary(R, aG()), base58'')
212212
213213
214214 func aI () = makeString(["%s", "accountsQueue"], a)
215215
216216
217217 func aJ () = valueOrElse(getBinary(R, aI()), base58'')
218218
219219
220220 func aK (aL) = makeString(["%s%s", "requests", toString(aL)], a)
221221
222222
223223 func aM (aL) = valueOrElse(getBinary(R, aK(aL)), base58'')
224224
225225
226226 func aN (aO,aP) = makeString(["%s%s%s", H(aO), H(aP), "pairAllowed"], a)
227227
228228
229229 func aQ (aO,aP) = valueOrElse(getBoolean(R, aN(aO, aP)), false)
230230
231231
232232 func aR (J) = makeString(["%s", H(J)], a)
233233
234234
235235 func aS (J) = {
236236 let aT = fromBase58String(valueOrErrorMessage(getString(R, r), A("invalid matcher public key")))
237237 let aU = addressFromPublicKey(aT)
238238 let aV = valueOrErrorMessage(getInteger(aU, aR(J)), A(("invalid price, assetId = " + H(J))))
239239 aV
240240 }
241241
242242
243243 func aW (aX,aY,aZ) = (fraction(aX, aZ, f) + aY)
244244
245245
246246 func ba (bb,bc,aZ) = (fraction(bb, aZ, f) + bc)
247247
248248
249249 func bd (be,bf) = (be - bf)
250250
251251
252252 func bg (bh,bi,bf) = (fraction(bh, bi, f) - bf)
253253
254254
255255 func bj (bk,bl) = if ((bk > k))
256256 then (bk - bl)
257257 else k
258258
259259
260260 func bm (bk,bl) = if ((bk > k))
261261 then (bl - bk)
262262 else k
263263
264264
265265 func bn (bo,bp) = if ((bp > k))
266266 then max([k, fraction(bo, f, bp)])
267267 else k
268268
269269
270270 func bq (bo,bp) = if ((bp > k))
271271 then max([k, fraction(bp, f, bo)])
272272 else k
273273
274274
275275 func br (bs,bt,aZ,bu) = fraction((fraction(bs, aZ, f) + bt), bu, f)
276276
277277
278278 func bv (bw,bu,bx) = fraction(bw, bx, bu)
279279
280280
281281 func by (bh,bz,bs,bt,bA,bB) = {
282282 let bC = if ((bs > k))
283283 then (((bh - bz) / bs) + bA)
284284 else k
285285 let bD = if ((bt > k))
286286 then (bB - ((bh - bz) / (bs / bB)))
287287 else k
288288 (bC + bD)
289289 }
290290
291291
292292 func bE (an) = {
293293 let az = fromBase58String(valueOrErrorMessage(getString(R, aF(an)), A("invalid account address: request id is undefined")))
294+ az
295+ }
296+
297+
298+func bF (an) = {
299+ let az = bE(an)
294300 let aO = F(valueOrErrorMessage(getString(R, aC(az)), A("invalid amount asset id")))
295301 let aP = F(valueOrErrorMessage(getString(R, aD(az)), A("invalid amount price id")))
296302 $Tuple2(aO, aP)
297303 }
298304
299305
300-func bF (an) = {
301- let az = fromBase58String(valueOrErrorMessage(getString(R, aF(an)), A("invalid account address: request id is undefined")))
302- let bG = valueOrErrorMessage(getBinary(R, aB(az)), A("invalid amount asset id"))
303- bG
306+func bG (an) = {
307+ let az = bE(an)
308+ let bH = valueOrErrorMessage(getBinary(R, aB(az)), A("invalid amount asset id"))
309+ bH
304310 }
305311
306312
307-@Callable(bH)
308-func init (bI) = {
309- let bJ = Z(bH.caller)
310- if ((bJ == bJ))
311- then $Tuple2([StringEntry(P, bI)], unit)
313+@Callable(bI)
314+func init (bJ) = {
315+ let bK = Z(bI.caller)
316+ if ((bK == bK))
317+ then $Tuple2([StringEntry(P, bJ)], unit)
312318 else throw("Strict value is not equal to itself.")
313319 }
314320
315321
316322
317-@Callable(bH)
318-func requestAccount (ac,bK) = {
319- let bL = [if (!(W))
323+@Callable(bI)
324+func requestAccount (ac,bL) = {
325+ let bM = [if (!(W))
320326 then true
321- else C("not allowed"), aa(bH.caller)]
322- if ((bL == bL))
327+ else C("not allowed"), aa(bI.caller)]
328+ if ((bM == bM))
323329 then {
324- let bM = bK[0]
325- let bN = bK[1]
326- let bO = addressFromPublicKey(ac)
327- let az = sha256(((bO.bytes + fromBase58String(bM)) + fromBase58String(bN)))
328- let aO = F(bM)
329- let aP = F(bN)
330- let bP = (size(aK(bO)) / j)
331- let bQ = [if ((size(bH.payments) == 1))
330+ let bN = bL[0]
331+ let bO = bL[1]
332+ let bP = addressFromPublicKey(ac)
333+ let az = sha256(((bP.bytes + fromBase58String(bN)) + fromBase58String(bO)))
334+ let aO = F(bN)
335+ let aP = F(bO)
336+ let bQ = (size(aK(bP)) / j)
337+ let bR = [if ((size(bI.payments) == 1))
332338 then true
333- else C("1 payment is required"), if ((bH.payments[0].assetId == unit))
339+ else C("1 payment is required"), if ((bI.payments[0].assetId == unit))
334340 then true
335- else C("invalid asset"), if ((bH.payments[0].amount == ai()))
341+ else C("invalid asset"), if ((bI.payments[0].amount == ai()))
336342 then true
337343 else C("invalid amount"), if (aQ(aO, aP))
338344 then true
339345 else C("pair is not allowed"), if ((getInteger(R, ay(az)) == unit))
340346 then true
341- else C("account is already exists"), if ((al() > bP))
347+ else C("account is already exists"), if ((al() > bQ))
342348 then true
343349 else C(("accounts limit is " + toString(al())))]
344- if ((bQ == bQ))
350+ if ((bR == bR))
345351 then {
346- let bR = if ((size(aJ()) == 0))
352+ let bS = if ((size(aJ()) == 0))
347353 then $Tuple2([ScriptTransfer(R, ai(), unit)], [invoke(R, "integerEntry", [ay(az), aw], nil), invoke(R, "binaryEntry", [aG(), (aH() + az)], nil)])
348354 else {
349- let bS = take(aJ(), j)
350- let an = addressFromPublicKey(bS)
351- let bT = addressFromPublicKey(valueOrErrorMessage(getBinary(R, aA(an)), A("invalid creator public key")))
352- $Tuple2([ScriptTransfer(bT, ai(), unit)], [invoke(R, "binaryEntry", [aI(), drop(aJ(), j)], nil), invoke(R, "integerEntry", [ay(az), ax], nil), invoke(R, "binaryEntry", [aE(az), bS], nil), invoke(R, "stringEntry", [aF(an), toBase58String(az)], nil)])
355+ let bT = take(aJ(), j)
356+ let an = addressFromPublicKey(bT)
357+ let bU = addressFromPublicKey(valueOrErrorMessage(getBinary(R, aA(an)), A("invalid creator public key")))
358+ $Tuple2([ScriptTransfer(bU, ai(), unit)], [invoke(R, "binaryEntry", [aI(), drop(aJ(), j)], nil), invoke(R, "integerEntry", [ay(az), ax], nil), invoke(R, "binaryEntry", [aE(az), bT], nil), invoke(R, "stringEntry", [aF(an), toBase58String(az)], nil)])
353359 }
354- let bU = bR._1
355- let bV = bR._2
356- $Tuple2(bU, (bV ++ [invoke(R, "binaryEntry", [aB(az), ac], nil), invoke(R, "binaryEntry", [aK(bO), (aM(bO) + az)], nil), invoke(R, "stringEntry", [aC(az), bM], nil), invoke(R, "stringEntry", [aD(az), bN], nil)]))
360+ let bV = bS._1
361+ let bW = bS._2
362+ $Tuple2(bV, (bW ++ [invoke(R, "binaryEntry", [aB(az), ac], nil), invoke(R, "binaryEntry", [aK(bP), (aM(bP) + az)], nil), invoke(R, "stringEntry", [aC(az), bN], nil), invoke(R, "stringEntry", [aD(az), bO], nil)]))
357363 }
358364 else throw("Strict value is not equal to itself.")
359365 }
360366 else throw("Strict value is not equal to itself.")
361367 }
362368
363369
364370
365-@Callable(bH)
366-func addAccount (ac,bK) = {
367- let bL = [if (!(W))
371+@Callable(bI)
372+func addAccount (ac,bL) = {
373+ let bM = [if (!(W))
368374 then true
369- else C("not allowed"), aa(bH.caller)]
370- if ((bL == bL))
375+ else C("not allowed"), aa(bI.caller)]
376+ if ((bM == bM))
371377 then {
372- let bW = fromBase58String(bK[0])
373- let bS = ac
378+ let bX = fromBase58String(bL[0])
379+ let bT = ac
374380 let an = addressFromPublicKey(ac)
375- let bT = addressFromPublicKey(bW)
376- let bQ = [if ((getBinary(R, aA(an)) == unit))
381+ let bU = addressFromPublicKey(bX)
382+ let bR = [if ((getBinary(R, aA(an)) == unit))
377383 then true
378384 else C("account is already exists"), if ({
379385 let L = scriptHash(an)
380386 if ($isInstanceOf(L, "ByteVector"))
381387 then {
382- let bX = L
383- (bX == blake2b256_32Kb(ag()))
388+ let bY = L
389+ (bY == blake2b256_32Kb(ag()))
384390 }
385391 else false
386392 })
387393 then true
388394 else C("invalid script")]
389- if ((bQ == bQ))
395+ if ((bR == bR))
390396 then {
391- let bY = if ((size(aH()) == 0))
392- then $Tuple2(nil, [invoke(R, "binaryEntry", [aI(), (aJ() + bS)], nil)])
397+ let bZ = if ((size(aH()) == 0))
398+ then $Tuple2(nil, [invoke(R, "binaryEntry", [aI(), (aJ() + bT)], nil)])
393399 else {
394400 let az = take(aH(), j)
395- $Tuple2(nil, [invoke(R, "integerEntry", [ay(az), ax], nil), invoke(R, "binaryEntry", [aE(az), bS], nil), invoke(R, "binaryEntry", [aG(), drop(aH(), j)], nil), invoke(R, "stringEntry", [aF(an), toBase58String(az)], nil), invoke(R, "transferWaves", [bT.bytes, ai()], nil)])
401+ $Tuple2(nil, [invoke(R, "integerEntry", [ay(az), ax], nil), invoke(R, "binaryEntry", [aE(az), bT], nil), invoke(R, "binaryEntry", [aG(), drop(aH(), j)], nil), invoke(R, "stringEntry", [aF(an), toBase58String(az)], nil), invoke(R, "transferWaves", [bU.bytes, ai()], nil)])
396402 }
397- let bU = bY._1
398- let bV = bY._2
399- $Tuple2(bU, (bV ++ [invoke(R, "binaryEntry", [aA(an), bW], nil)]))
403+ let bV = bZ._1
404+ let bW = bZ._2
405+ $Tuple2(bV, (bW ++ [invoke(R, "binaryEntry", [aA(an), bX], nil)]))
400406 }
401407 else throw("Strict value is not equal to itself.")
402408 }
403409 else throw("Strict value is not equal to itself.")
404410 }
405411
406412
407413
408-@Callable(bH)
409-func deposit (ac,bK) = {
410- let bZ = bH.payments[0]
411- let bL = [if (!(W))
414+@Callable(bI)
415+func deposit (ac,bL) = {
416+ let ca = bI.payments[0]
417+ let an = valueOrErrorMessage(addressFromString(bL[0]), A("invalid account address"))
418+ let bM = [if (!(W))
412419 then true
413- else C("not allowed"), aa(bH.caller), if ((size(bH.payments) == 1))
420+ else C("not allowed"), aa(bI.caller), if ((size(bI.payments) == 1))
414421 then true
415- else C("1 payment is required"), if ((bZ.assetId == U))
422+ else C("1 payment is required"), if ((ca.assetId == U))
416423 then true
417- else C("invalid asset")]
418- if ((bL == bL))
424+ else C("invalid asset"), if ((getInteger(R, ay(bE(an))) == ax))
425+ then true
426+ else C("account is not ready")]
427+ if ((bM == bM))
419428 then {
420- let an = valueOrErrorMessage(addressFromString(bK[0]), A("invalid account address"))
421- let bU = [ScriptTransfer(an, bZ.amount, bZ.assetId)]
422- let bV = [invoke(R, "integerEntry", [am(an), (valueOrElse(ao(an), 0) + bZ.amount)], nil)]
423- $Tuple2(bU, bV)
429+ let bV = [ScriptTransfer(an, ca.amount, ca.assetId)]
430+ let bW = [invoke(R, "integerEntry", [am(an), (valueOrElse(ao(an), 0) + ca.amount)], nil)]
431+ $Tuple2(bV, bW)
424432 }
425433 else throw("Strict value is not equal to itself.")
426434 }
427435
428436
429437
430-@Callable(bH)
431-func withdraw (ac,bK) = {
432- let bL = [if (!(W))
438+@Callable(bI)
439+func withdraw (ac,bL) = {
440+ let bM = [if (!(W))
433441 then true
434- else C("not allowed"), aa(bH.caller)]
435- if ((bL == bL))
442+ else C("not allowed"), aa(bI.caller)]
443+ if ((bM == bM))
436444 then {
437- let bO = addressFromPublicKey(ac)
438- let an = valueOrErrorMessage(addressFromString(bK[0]), A("invalid account address"))
439- let ca = valueOrErrorMessage(parseInt(bK[1]), A("invalid amount"))
440- let J = F(bK[2])
441- let cb = [invoke(an, "transferAsset", [bO.bytes, ca, J], nil)]
442- $Tuple2(nil, cb)
445+ let bP = addressFromPublicKey(ac)
446+ let an = valueOrErrorMessage(addressFromString(bL[0]), A("invalid account address"))
447+ let cb = valueOrErrorMessage(parseInt(bL[1]), A("invalid amount"))
448+ let J = F(bL[2])
449+ let cc = [invoke(an, "transferAsset", [bP.bytes, cb, J], nil)]
450+ $Tuple2(nil, cc)
443451 }
444452 else throw("Strict value is not equal to itself.")
445453 }
446454
447455
448456
449-@Callable(bH)
450-func borrow (ac,bK) = {
451- let an = valueOrErrorMessage(addressFromString(bK[0]), A("invalid account address"))
452- let cc = F(bK[1])
453- let cd = D(valueOrErrorMessage(parseInt(bK[2]), A("invalid requested amount")), "requested amount")
454- let ce = bF(an)
455- let bO = addressFromPublicKey(ac)
456- let bL = [if (!(W))
457+@Callable(bI)
458+func borrow (ac,bL) = {
459+ let an = valueOrErrorMessage(addressFromString(bL[0]), A("invalid account address"))
460+ let cd = F(bL[1])
461+ let ce = D(valueOrErrorMessage(parseInt(bL[2]), A("invalid requested amount")), "requested amount")
462+ let cf = bG(an)
463+ let bP = addressFromPublicKey(ac)
464+ let bM = [if (!(W))
457465 then true
458- else C("not allowed"), aa(bH.caller), if ((ac == ce))
466+ else C("not allowed"), aa(bI.caller), if ((ac == cf))
459467 then true
460468 else C("can be called by account owner only")]
461- if ((bL == bL))
469+ if ((bM == bM))
462470 then {
463- let aO = bE(an)._1
464- let cf = s(valueOrElse(ao(an), 0), O(U))
471+ let aO = bF(an)._1
472+ let cg = s(valueOrElse(ao(an), 0), O(U))
465473 let aZ = s(aS(aO), O(U))
466474 let aX = s(valueOrElse(getInteger(R, ap(an, aO)), 0), O(aO))
467475 let aY = s(valueOrElse(getInteger(R, ap(an, U)), 0), O(U))
468476 let bf = aW(aX, aY, aZ)
469- let cg = 3
470- let bi = s(valueOrElse(getInteger(R, ar(an)), cg), 1)
471- let ch = bg(cf, bi, bf)
472- let ci = if ((cc == aO))
473- then v(fraction(ch, f, aZ), O(aO))
474- else if ((cc == U))
475- then v(ch, O(U))
477+ let ch = 3
478+ let bi = s(valueOrElse(getInteger(R, ar(an)), ch), 1)
479+ let ci = bg(cg, bi, bf)
480+ let cj = if ((cd == aO))
481+ then v(fraction(ci, f, aZ), O(aO))
482+ else if ((cd == U))
483+ then v(ci, O(U))
476484 else C("invalid requested asset id")
477- let av = F(valueOrErrorMessage(getString(R, as(cc)), A("synthetic asset for requested asset is undefined")))
478- let cj = if ((ci >= cd))
479- then cd
480- else C(("credit available = " + toString(ci)))
481- let bV = [invoke(R, "integerEntry", [ap(an, cc), (valueOrElse(aq(an, cc), 0) + cj)], nil), invoke(R, "transferAsset", [bO.bytes, cj, av], nil)]
482- $Tuple2(nil, [bV, ci])
485+ let av = F(valueOrErrorMessage(getString(R, as(cd)), A("synthetic asset for requested asset is undefined")))
486+ let ck = if ((cj >= ce))
487+ then ce
488+ else C(("credit available = " + toString(cj)))
489+ let bW = [invoke(R, "integerEntry", [ap(an, cd), (valueOrElse(aq(an, cd), 0) + ck)], nil), invoke(R, "transferAsset", [bP.bytes, ck, av], nil)]
490+ $Tuple2(nil, [bW, cj])
483491 }
484492 else throw("Strict value is not equal to itself.")
485493 }
486494
487495
488496
489-@Callable(bH)
490-func repay (ac,bK) = {
491- let bL = [if (!(W))
497+@Callable(bI)
498+func repay (ac,bL) = {
499+ let bM = [if (!(W))
492500 then true
493- else C("not allowed"), aa(bH.caller)]
494- if ((bL == bL))
501+ else C("not allowed"), aa(bI.caller)]
502+ if ((bM == bM))
495503 then $Tuple2(nil, unit)
496504 else throw("Strict value is not equal to itself.")
497505 }
498506
499507
500508
501-@Callable(bH)
502-func setPairAllowance (ac,bK) = {
503- let bL = [if (!(W))
509+@Callable(bI)
510+func setPairAllowance (ac,bL) = {
511+ let bM = [if (!(W))
504512 then true
505- else C("not allowed"), aa(bH.caller), ab(ac)]
506- if ((bL == bL))
513+ else C("not allowed"), aa(bI.caller), ab(ac)]
514+ if ((bM == bM))
507515 then {
508- let bM = bK[0]
509- let bN = bK[1]
510- let ck = bK[2]
511- let aO = F(bM)
512- let aP = F(bN)
513- let cl = (ck == "true")
514- let cb = [invoke(R, "booleanEntry", [aN(aO, aP), cl], nil)]
515- $Tuple2(nil, cb)
516+ let bN = bL[0]
517+ let bO = bL[1]
518+ let cl = bL[2]
519+ let aO = F(bN)
520+ let aP = F(bO)
521+ let cm = (cl == "true")
522+ let cc = [invoke(R, "booleanEntry", [aN(aO, aP), cm], nil)]
523+ $Tuple2(nil, cc)
516524 }
517525 else throw("Strict value is not equal to itself.")
518526 }
519527
520528
521529
522-@Callable(bH)
523-func addSyntheticAsset (ac,bK) = {
524- let at = F(bK[0])
525- let av = F(bK[1])
526- let bL = [if (!(W))
530+@Callable(bI)
531+func addSyntheticAsset (ac,bL) = {
532+ let at = F(bL[0])
533+ let av = F(bL[1])
534+ let bM = [if (!(W))
527535 then true
528- else C("not allowed"), aa(bH.caller), if ((getString(R, as(at)) == unit))
536+ else C("not allowed"), aa(bI.caller), ab(ac), if ((getString(R, as(at)) == unit))
529537 then true
530538 else C("invalid base asset"), if ((getString(R, au(av)) == unit))
531539 then true
532540 else C("invalid synthetic asset")]
533- if ((bL == bL))
541+ if ((bM == bM))
534542 then {
535- let cb = [invoke(R, "stringEntry", [as(at), H(av)], nil), invoke(R, "stringEntry", [au(av), H(at)], nil)]
536- $Tuple2(nil, cb)
543+ let cc = [invoke(R, "stringEntry", [as(at), H(av)], nil), invoke(R, "stringEntry", [au(av), H(at)], nil)]
544+ $Tuple2(nil, cc)
537545 }
538546 else throw("Strict value is not equal to itself.")
539547 }
540548
541549
542550
543-@Callable(bH)
544-func doShutdown (ac,bK) = {
545- let bQ = [aa(bH.caller), ab(ac)]
546- if ((bQ == bQ))
551+@Callable(bI)
552+func doShutdown (ac,bL) = {
553+ let bR = [aa(bI.caller), ab(ac)]
554+ if ((bR == bR))
547555 then {
548- let cb = [invoke(R, "booleanEntry", [p, true], nil)]
549- $Tuple2(nil, cb)
556+ let cc = [invoke(R, "booleanEntry", [p, true], nil)]
557+ $Tuple2(nil, cc)
550558 }
551559 else throw("Strict value is not equal to itself.")
552560 }
553561
554562
555-@Verifier(cm)
556-func cn () = if (if (isDefined(Q))
563+@Verifier(cn)
564+func co () = if (if (isDefined(Q))
557565 then isDefined(getString(R, l))
558566 else false)
559567 then {
560568 let L = getString(R, l)
561569 if ($isInstanceOf(L, "String"))
562570 then {
563571 let ad = L
564- let co = m(toString(this), toBase58String(cm.id))
565- let cp = valueOrElse(getBoolean(addressFromStringValue(ad), co), false)
566- cp
572+ let cp = m(toString(this), toBase58String(cn.id))
573+ let cq = valueOrElse(getBoolean(addressFromStringValue(ad), cp), false)
574+ cq
567575 }
568576 else false
569577 }
570- else sigVerify(cm.bodyBytes, cm.proofs[0], cm.senderPublicKey)
578+ else sigVerify(cn.bodyBytes, cn.proofs[0], cn.senderPublicKey)
571579

github/deemru/w8io/169f3d6 
127.35 ms