tx · GovS7S95YvAwKdXn6q594We5zP4W72bXPSEMtXkGvfpJ

3N5qejBhCedYyTbK7Qgqxn2T6kubSeHt7pu:  -0.14000000 Waves

2021.10.26 22:04 [1763657] smart account 3N5qejBhCedYyTbK7Qgqxn2T6kubSeHt7pu > SELF 0.00000000 Waves

{ "type": 13, "id": "GovS7S95YvAwKdXn6q594We5zP4W72bXPSEMtXkGvfpJ", "fee": 14000000, "feeAssetId": null, "timestamp": 1635275151209, "version": 2, "chainId": 84, "sender": "3N5qejBhCedYyTbK7Qgqxn2T6kubSeHt7pu", "senderPublicKey": "Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8", "proofs": [ "2jGM7sam4KqctsDS21EiRyUYoVKyQjF75xFNrd9Begdy4qnjGmFRyPzwbkPyaGSWUGScDikrbAnXZ1mLSdYznwGQ", "4GrouGWs5D5WFi6hW1rtQqShbiuuVf6JGQtpwqvNMg9SSmodgn8FjEqG4MWQJ4GqaMa4rW16grznebjWoiiogN8h" ], "script": "base64:AAIFAAAAAAAAAA0IAhIAEgMKAQESABIAAAAADQAAAAAMYWRtaW5QdWJLZXkxAQAAACDOIOsfrF/B0g3/qNz0tul4UpbyfoMvXUKuDPJ3pNlvGwAAAAAMYWRtaW5QdWJLZXkyAQAAACDOIOsfrF/B0g3/qNz0tul4UpbyfoMvXUKuDPJ3pNlvGwAAAAAMYWRtaW5QdWJLZXkzAQAAACDOIOsfrF/B0g3/qNz0tul4UpbyfoMvXUKuDPJ3pNlvGwAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIM4g6x+sX8HSDf+o3PS26XhSlvJ+gy9dQq4M8nek2W8bAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAABFrZXlVc2VyRU5OT0xvY2tlZAIAAAAMX0VOTk9fYW1vdW50AAAAABJrZXlUb3RhbEVOTk9Mb2NrZWQCAAAAEXRvd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cwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBQAAAAxhZG1pblB1YktleTMAAAAAAAAAAAEAAAAAAAAAAAAJAABnAAAAAgkAAGQAAAACCQAAZAAAAAIFAAAAEmFkbWluUHViS2V5MVNpZ25lZAUAAAASYWRtaW5QdWJLZXkyU2lnbmVkBQAAABJhZG1pblB1YktleTNTaWduZWQAAAAAAAAAAAKyHciH", "height": 1763657, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 68KJ89KUQjqyGkLmfLqvM2ateQxDDg7FQb1w5rwNCyjF Next: 65uAJAgE1nZv99ThTtju3fSEyVyZ5HM9rtQMmF9XC4eg Diff:
OldNewDifferences
5858 else {
5959 let v = o()
6060 let t = m(p.caller)
61- let y = t
62- if ((x > y))
61+ if ((x > t))
6362 then throw("withdrawAmount > availableToUnstake")
6463 else {
6564 let w = (v - x)
66- let z = (t - x)
67-[IntegerEntry((toString(p.caller) + g), z), IntegerEntry(h, w), ScriptTransfer(p.caller, x, j)]
65+ let y = (t - x)
66+[IntegerEntry((toString(p.caller) + g), y), IntegerEntry(h, w), ScriptTransfer(p.caller, x, j)]
6867 }
6968 }
7069
8786 else [BooleanEntry(e, true), DeleteEntry(f)]
8887
8988
90-@Verifier(A)
91-func B () = {
92- let C = if (sigVerify(A.bodyBytes, A.proofs[0], a))
89+@Verifier(z)
90+func A () = {
91+ let B = if (sigVerify(z.bodyBytes, z.proofs[0], a))
9392 then 1
9493 else 0
95- let D = if (sigVerify(A.bodyBytes, A.proofs[1], b))
94+ let C = if (sigVerify(z.bodyBytes, z.proofs[1], b))
9695 then 1
9796 else 0
98- let E = if (sigVerify(A.bodyBytes, A.proofs[2], c))
97+ let D = if (sigVerify(z.bodyBytes, z.proofs[2], c))
9998 then 1
10099 else 0
101- (((C + D) + E) >= 2)
100+ (((B + C) + D) >= 2)
102101 }
103102
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8'
55
66 let b = base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8'
77
88 let c = base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8'
99
1010 let d = base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8'
1111
1212 let e = "active"
1313
1414 let f = "shutdown_cause"
1515
1616 let g = "_ENNO_amount"
1717
1818 let h = "total_ENNO_amount"
1919
2020 let i = valueOrElse(getBoolean(this, e), true)
2121
2222 let j = base58'2Tqhz5PWbkijnzYpdLxLDFfVDw5ALQWm2rmxQ79ooMRZ'
2323
2424 func k (l) = [BooleanEntry(e, false), StringEntry(f, l)]
2525
2626
2727 func m (n) = valueOrElse(getInteger(this, (toString(n) + g)), 0)
2828
2929
3030 func o () = valueOrElse(getInteger(this, h), 0)
3131
3232
3333 @Callable(p)
3434 func lockENNO () = if (!(i))
3535 then throw("DApp is inactive at this moment")
3636 else {
3737 let q = $Tuple2(p.payments[0].amount, p.payments[0].assetId)
3838 let r = q._1
3939 let s = q._2
4040 if ((s != j))
4141 then throw("Incorrect pmtAssetId")
4242 else {
4343 let t = m(p.caller)
4444 let u = (t + r)
4545 let v = o()
4646 let w = (v + r)
4747 [IntegerEntry((toString(p.caller) + g), u), IntegerEntry(h, w)]
4848 }
4949 }
5050
5151
5252
5353 @Callable(p)
5454 func withdrawENNO (x) = if (!(i))
5555 then throw("DApp is inactive at this moment")
5656 else if ((0 >= x))
5757 then throw("withdrawAmount <= 0")
5858 else {
5959 let v = o()
6060 let t = m(p.caller)
61- let y = t
62- if ((x > y))
61+ if ((x > t))
6362 then throw("withdrawAmount > availableToUnstake")
6463 else {
6564 let w = (v - x)
66- let z = (t - x)
67-[IntegerEntry((toString(p.caller) + g), z), IntegerEntry(h, w), ScriptTransfer(p.caller, x, j)]
65+ let y = (t - x)
66+[IntegerEntry((toString(p.caller) + g), y), IntegerEntry(h, w), ScriptTransfer(p.caller, x, j)]
6867 }
6968 }
7069
7170
7271
7372 @Callable(p)
7473 func shutdown () = if (!(i))
7574 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, f), "the cause wasn't specified")))
7675 else if (!(containsElement([a, b, c, d], p.callerPublicKey)))
7776 then throw("Only admin can call this function")
7877 else k("Paused by admin")
7978
8079
8180
8281 @Callable(p)
8382 func activate () = if (i)
8483 then throw("DApp is already active")
8584 else if (!(containsElement([a, b, c, d], p.callerPublicKey)))
8685 then throw("Only admin can call this function")
8786 else [BooleanEntry(e, true), DeleteEntry(f)]
8887
8988
90-@Verifier(A)
91-func B () = {
92- let C = if (sigVerify(A.bodyBytes, A.proofs[0], a))
89+@Verifier(z)
90+func A () = {
91+ let B = if (sigVerify(z.bodyBytes, z.proofs[0], a))
9392 then 1
9493 else 0
95- let D = if (sigVerify(A.bodyBytes, A.proofs[1], b))
94+ let C = if (sigVerify(z.bodyBytes, z.proofs[1], b))
9695 then 1
9796 else 0
98- let E = if (sigVerify(A.bodyBytes, A.proofs[2], c))
97+ let D = if (sigVerify(z.bodyBytes, z.proofs[2], c))
9998 then 1
10099 else 0
101- (((C + D) + E) >= 2)
100+ (((B + C) + D) >= 2)
102101 }
103102

github/deemru/w8io/169f3d6 
42.63 ms