tx · 6dTMKXHrBZVXcD91DkV44XSr7zN8HHZtTsgbv1G5tG5Y

3N3v2zVJyynhzc39qG5wrE244prmxQ4bgV4:  -0.14000000 Waves

2023.03.22 16:22 [2501276] smart account 3N3v2zVJyynhzc39qG5wrE244prmxQ4bgV4 > SELF 0.00000000 Waves

{ "type": 13, "id": "6dTMKXHrBZVXcD91DkV44XSr7zN8HHZtTsgbv1G5tG5Y", "fee": 14000000, "feeAssetId": null, "timestamp": 1679491297515, "version": 2, "chainId": 84, "sender": "3N3v2zVJyynhzc39qG5wrE244prmxQ4bgV4", "senderPublicKey": "B9tjfxvdWuoHAvWusCmsxYMGHa4o2uzQmod3uHjLmF5G", "proofs": [ "2bKtoDGKmneNwG3z2uPVGW7BCA9nLnU2GjFStVjjxzscgmCohKVXTCDcJgBYDhrfQfd6bTnnk7CFkhh99mthd59f", "2PwZ1FrBsUYEL8d7Ew6SQuDFdBvHJV4mye7B4dhiznPaA4ihyuAjK4HPg7VEX9oU93rVWNpbGsAnYDU3S2sDRT9H" ], "script": "base64:BgICCAINAAZvcmFjbGUJAQdBZGRyZXNzAQEaAVRIE5cMwNMzzCUygLYp96dkaICr48x7S5kBE2dldEJhc2U1OEZyb21PcmFjbGUBA2tleQQHJG1hdGNoMAkAnQgCBQZvcmFjbGUFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEBnN0cmluZwUHJG1hdGNoMAkA2QQBBQZzdHJpbmcEB25vdGhpbmcFByRtYXRjaDAJAAIBCQCsAgIFA2tleQIIaXMgZW1wdHkADWtBZG1pblB1YktleTECC2FkbWluX3B1Yl8xAA1rQWRtaW5QdWJLZXkyAgthZG1pbl9wdWJfMgANa0FkbWluUHViS2V5MwILYWRtaW5fcHViXzMAEmtBZG1pbkludm9rZVB1YktleQIQYWRtaW5faW52b2tlX3B1YgAMa1JvdXRpbmdBZGRyAg9yb3V0aW5nX2FkZHJlc3MADGFkbWluUHViS2V5MQkBE2dldEJhc2U1OEZyb21PcmFjbGUBBQ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AkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAniM00o=", "height": 2501276, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FK1mseFSZGYNv7aNaDDWh9sMDem5s66bMp7BeSREj4yV Next: 2MGWf8kASDBFKUQTMB7KUktLecyYePGwJ8nffCZj8Qin Diff:
OldNewDifferences
2323
2424 let i = "admin_pub_3"
2525
26-let j = "routing_address"
26+let j = "admin_invoke_pub"
2727
28-let k = b(g)
28+let k = "routing_address"
2929
30-let l = b(h)
30+let l = b(g)
3131
32-let m = b(i)
32+let m = b(h)
3333
34-let n = Address(b(j))
34+let n = b(i)
3535
36-let o = "pool_"
36+let o = b(j)
37+
38+let p = Address(b(k))
39+
40+let q = "pool_"
3741
3842
39-@Verifier(p)
40-func q () = {
41- let d = p
43+@Verifier(r)
44+func s () = {
45+ let d = r
4246 if ($isInstanceOf(d, "InvokeScriptTransaction"))
4347 then {
44- let r = d
45- let s = if ((r.fee == 900000))
46- then (r.feeAssetId == unit)
48+ let t = d
49+ let u = if ((t.fee == 900000))
50+ then (t.feeAssetId == unit)
4751 else false
48- let t = if ((r.dApp == n))
49- then (r.function == "routingTrade")
52+ let v = if ((t.dApp == p))
53+ then (t.function == "routingTrade")
5054 else false
51- let u = if (if (isDefined(getString(a, (o + toString(addressFromRecipient(r.dApp))))))
52- then (r.function == "callFunction")
55+ let w = if (if (isDefined(getString(a, (q + toString(addressFromRecipient(t.dApp))))))
56+ then (t.function == "callFunction")
5357 else false)
54- then (r.args[0] == "exchange")
58+ then (t.args[0] == "exchange")
5559 else false
56- let v = if (isDefined(getString(a, (o + toString(addressFromRecipient(r.dApp))))))
57- then (r.function == "exchange")
60+ let x = if (isDefined(getString(a, (q + toString(addressFromRecipient(t.dApp))))))
61+ then (t.function == "exchange")
5862 else false
59- if (if (if (if (if (v)
63+ let y = if (sigVerify(r.bodyBytes, r.proofs[0], l))
64+ then 1
65+ else 0
66+ let z = if (sigVerify(r.bodyBytes, r.proofs[0], m))
67+ then 1
68+ else 0
69+ let A = if (sigVerify(r.bodyBytes, r.proofs[0], n))
70+ then 1
71+ else 0
72+ let B = if (sigVerify(r.bodyBytes, r.proofs[0], o))
73+ then 1
74+ else 0
75+ let C = ((((y + z) + A) + B) >= 1)
76+ if (if (if (if (if (if (x)
6077 then true
61- else u)
78+ else w)
6279 then true
63- else t)
64- then (size(r.payments) == 1)
80+ else v)
81+ then (size(t.payments) == 1)
6582 else false)
66- then sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
83+ then sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
6784 else false)
68- then s
85+ then u
86+ else false)
87+ then C
6988 else false
7089 }
7190 else {
72- let w = if (sigVerify(p.bodyBytes, p.proofs[0], k))
91+ let y = if (sigVerify(r.bodyBytes, r.proofs[0], l))
7392 then 1
7493 else 0
75- let x = if (sigVerify(p.bodyBytes, p.proofs[1], l))
94+ let z = if (sigVerify(r.bodyBytes, r.proofs[1], m))
7695 then 1
7796 else 0
78- let y = if (sigVerify(p.bodyBytes, p.proofs[2], m))
97+ let A = if (sigVerify(r.bodyBytes, r.proofs[2], n))
7998 then 1
8099 else 0
81- (((w + x) + y) >= 2)
100+ (((y + z) + A) >= 2)
82101 }
83102 }
84103
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
55
66 func b (c) = {
77 let d = getString(a, c)
88 if ($isInstanceOf(d, "String"))
99 then {
1010 let e = d
1111 fromBase58String(e)
1212 }
1313 else {
1414 let f = d
1515 throw((c + "is empty"))
1616 }
1717 }
1818
1919
2020 let g = "admin_pub_1"
2121
2222 let h = "admin_pub_2"
2323
2424 let i = "admin_pub_3"
2525
26-let j = "routing_address"
26+let j = "admin_invoke_pub"
2727
28-let k = b(g)
28+let k = "routing_address"
2929
30-let l = b(h)
30+let l = b(g)
3131
32-let m = b(i)
32+let m = b(h)
3333
34-let n = Address(b(j))
34+let n = b(i)
3535
36-let o = "pool_"
36+let o = b(j)
37+
38+let p = Address(b(k))
39+
40+let q = "pool_"
3741
3842
39-@Verifier(p)
40-func q () = {
41- let d = p
43+@Verifier(r)
44+func s () = {
45+ let d = r
4246 if ($isInstanceOf(d, "InvokeScriptTransaction"))
4347 then {
44- let r = d
45- let s = if ((r.fee == 900000))
46- then (r.feeAssetId == unit)
48+ let t = d
49+ let u = if ((t.fee == 900000))
50+ then (t.feeAssetId == unit)
4751 else false
48- let t = if ((r.dApp == n))
49- then (r.function == "routingTrade")
52+ let v = if ((t.dApp == p))
53+ then (t.function == "routingTrade")
5054 else false
51- let u = if (if (isDefined(getString(a, (o + toString(addressFromRecipient(r.dApp))))))
52- then (r.function == "callFunction")
55+ let w = if (if (isDefined(getString(a, (q + toString(addressFromRecipient(t.dApp))))))
56+ then (t.function == "callFunction")
5357 else false)
54- then (r.args[0] == "exchange")
58+ then (t.args[0] == "exchange")
5559 else false
56- let v = if (isDefined(getString(a, (o + toString(addressFromRecipient(r.dApp))))))
57- then (r.function == "exchange")
60+ let x = if (isDefined(getString(a, (q + toString(addressFromRecipient(t.dApp))))))
61+ then (t.function == "exchange")
5862 else false
59- if (if (if (if (if (v)
63+ let y = if (sigVerify(r.bodyBytes, r.proofs[0], l))
64+ then 1
65+ else 0
66+ let z = if (sigVerify(r.bodyBytes, r.proofs[0], m))
67+ then 1
68+ else 0
69+ let A = if (sigVerify(r.bodyBytes, r.proofs[0], n))
70+ then 1
71+ else 0
72+ let B = if (sigVerify(r.bodyBytes, r.proofs[0], o))
73+ then 1
74+ else 0
75+ let C = ((((y + z) + A) + B) >= 1)
76+ if (if (if (if (if (if (x)
6077 then true
61- else u)
78+ else w)
6279 then true
63- else t)
64- then (size(r.payments) == 1)
80+ else v)
81+ then (size(t.payments) == 1)
6582 else false)
66- then sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
83+ then sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
6784 else false)
68- then s
85+ then u
86+ else false)
87+ then C
6988 else false
7089 }
7190 else {
72- let w = if (sigVerify(p.bodyBytes, p.proofs[0], k))
91+ let y = if (sigVerify(r.bodyBytes, r.proofs[0], l))
7392 then 1
7493 else 0
75- let x = if (sigVerify(p.bodyBytes, p.proofs[1], l))
94+ let z = if (sigVerify(r.bodyBytes, r.proofs[1], m))
7695 then 1
7796 else 0
78- let y = if (sigVerify(p.bodyBytes, p.proofs[2], m))
97+ let A = if (sigVerify(r.bodyBytes, r.proofs[2], n))
7998 then 1
8099 else 0
81- (((w + x) + y) >= 2)
100+ (((y + z) + A) >= 2)
82101 }
83102 }
84103

github/deemru/w8io/026f985 
37.12 ms