tx · 8z1mRHTvsEt2AzVUG8QDkdwCAdXGiZEaDJVzURqWkxV1

3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had:  -0.14000000 Waves

2022.12.15 13:07 [2361283] smart account 3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had > SELF 0.00000000 Waves

{ "type": 13, "id": "8z1mRHTvsEt2AzVUG8QDkdwCAdXGiZEaDJVzURqWkxV1", "fee": 14000000, "feeAssetId": null, "timestamp": 1671098837465, "version": 2, "chainId": 84, "sender": "3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had", "senderPublicKey": "EAmZF2D2BbfoPsrMGFAs2UCv8ScAXxhAZRzFpkveca8G", "proofs": [ "5CUVrEyTf9fP6sPjBbjfJFaUtsjuS5pYq1HEzoADX5bWod2oqgwuTBByaZEzDhsxbGsKdUiPLLPRSUB9Eg5FneCf", "5txvcgoE6L8WNxSasw5XdkvUVT7DKkLFoU9TPsjLdi6XBk5dc3rsdhrsvU3yVkAcmugHn1QtGkdQrEv4NtzVUBkH" ], "script": "base64:BgICCAITAAZvcmFjbGUJAQdBZGRyZXNzAQEaAVRIE5cMwNMzzCUygLYp96dkaICr48x7S5kBE2dldEJhc2U1OEZyb21PcmFjbGUBA2tleQQHJG1hdGNoMAkAnQgCBQZvcmFjbGUFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEBnN0cmluZwUHJG1hdGNoMAkA2QQBBQZzdHJpbmcEB25vdGhpbmcFByRtYXRjaDAJAAIBCQCsAgIFA2tleQIIaXMgZW1wdHkADWtBZG1pblB1YktleTECC2FkbWluX3B1Yl8xAA1rQWRtaW5QdWJLZXkyAgthZG1pbl9wdWJfMgANa0FkbWluUHViS2V5MwILYWRtaW5fcHViXzMAEmtBZG1pbkludm9rZVB1YktleQIQYWRtaW5faW52b2tlX3B1YgALa0dvdkFkZHJlc3MCEmdvdmVybmFuY2VfYWRkcmVzcwAMa0Zhcm1BZGRyZXNzAg9mYXJtaW5nX2FkZHJlc3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283, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4mQgv8gFZ6322cVh4C4QX1U7CPaf6irztSsMxkFHQPkd Next: EtgAuHSS2sxcWufC5n3kfXc4g4Ybh6WmDx5JRsAMArRb Diff:
OldNewDifferences
5454
5555 @Verifier(x)
5656 func y () = {
57+ let z = if (sigVerify(x.bodyBytes, x.proofs[0], o))
58+ then 1
59+ else 0
60+ let A = if (sigVerify(x.bodyBytes, x.proofs[1], p))
61+ then 1
62+ else 0
63+ let B = if (sigVerify(x.bodyBytes, x.proofs[2], q))
64+ then 1
65+ else 0
66+ let C = if (sigVerify(x.bodyBytes, x.proofs[2], r))
67+ then 1
68+ else 0
5769 let d = x
5870 if ($isInstanceOf(d, "InvokeScriptTransaction"))
5971 then {
60- let z = d
61- let A = if ((z.dApp == v))
62- then (z.function == "routingTrade")
72+ let D = d
73+ let E = if ((D.fee == 900000))
74+ then (D.feeAssetId == unit)
6375 else false
64- let B = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
65- then (z.function == "callFunction")
76+ let F = if ((D.dApp == v))
77+ then (D.function == "routingTrade")
78+ else false
79+ let G = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(D.dApp))))))
80+ then (D.function == "callFunction")
6681 else false)
67- then (z.args[0] == "exchange")
82+ then (D.args[0] == "exchange")
6883 else false
69- let C = if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
70- then (z.function == "exchange")
84+ let H = if (isDefined(getString(a, (w + toString(addressFromRecipient(D.dApp))))))
85+ then (D.function == "exchange")
7186 else false
72- let D = if ((z.dApp == s))
73- then (z.function == "airDrop")
87+ let I = if ((D.dApp == s))
88+ then (D.function == "airDrop")
7489 else false
75- let E = if ((z.dApp == s))
76- then (z.function == "updateWeights")
90+ let J = if ((D.dApp == s))
91+ then (D.function == "updateWeights")
7792 else false
78- let F = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
79- then (z.function == "callFunction")
93+ let K = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(D.dApp))))))
94+ then (D.function == "callFunction")
8095 else false)
81- then (z.args[0] == "takeIntoAccountExtraFunds")
96+ then (D.args[0] == "takeIntoAccountExtraFunds")
8297 else false
83- let G = if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
84- then (z.function == "takeIntoAccountExtraFunds")
98+ let L = if (isDefined(getString(a, (w + toString(addressFromRecipient(D.dApp))))))
99+ then (D.function == "takeIntoAccountExtraFunds")
85100 else false
86- let H = if ((z.dApp == u))
87- then (z.function == "writeTotals")
101+ let M = if ((D.dApp == u))
102+ then (D.function == "writeTotals")
88103 else false
89- let I = sigVerify(x.bodyBytes, x.proofs[0], r)
90- if (if (if (if (if (if (C)
104+ let N = ((((z + A) + B) + C) >= 1)
105+ if (if (if (if (if (if (if (H)
91106 then true
92- else B)
107+ else G)
93108 then true
94- else D)
109+ else I)
95110 then true
96- else A)
97- then (size(z.payments) == 1)
111+ else F)
112+ then (size(D.payments) == 1)
98113 else false)
99114 then true
100- else if (if (if (if (E)
115+ else if (if (if (if (J)
101116 then true
102- else G)
117+ else L)
103118 then true
104- else F)
119+ else K)
105120 then true
106- else H)
107- then (size(z.payments) == 0)
121+ else M)
122+ then (size(D.payments) == 0)
108123 else false)
109- then I
124+ then N
125+ else false)
126+ then E
110127 else false
111128 }
112- else {
113- let J = if (sigVerify(x.bodyBytes, x.proofs[0], o))
114- then 1
115- else 0
116- let K = if (sigVerify(x.bodyBytes, x.proofs[1], p))
117- then 1
118- else 0
119- let L = if (sigVerify(x.bodyBytes, x.proofs[2], q))
120- then 1
121- else 0
122- (((J + K) + L) >= 2)
123- }
129+ else (((z + A) + B) >= 2)
124130 }
125131
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
2626 let j = "admin_invoke_pub"
2727
2828 let k = "governance_address"
2929
3030 let l = "farming_address"
3131
3232 let m = "surveys_address"
3333
3434 let n = "routing_address"
3535
3636 let o = b(g)
3737
3838 let p = b(h)
3939
4040 let q = b(i)
4141
4242 let r = b(j)
4343
4444 let s = Address(b(k))
4545
4646 let t = Address(b(l))
4747
4848 let u = Address(b(m))
4949
5050 let v = Address(b(n))
5151
5252 let w = "pool_"
5353
5454
5555 @Verifier(x)
5656 func y () = {
57+ let z = if (sigVerify(x.bodyBytes, x.proofs[0], o))
58+ then 1
59+ else 0
60+ let A = if (sigVerify(x.bodyBytes, x.proofs[1], p))
61+ then 1
62+ else 0
63+ let B = if (sigVerify(x.bodyBytes, x.proofs[2], q))
64+ then 1
65+ else 0
66+ let C = if (sigVerify(x.bodyBytes, x.proofs[2], r))
67+ then 1
68+ else 0
5769 let d = x
5870 if ($isInstanceOf(d, "InvokeScriptTransaction"))
5971 then {
60- let z = d
61- let A = if ((z.dApp == v))
62- then (z.function == "routingTrade")
72+ let D = d
73+ let E = if ((D.fee == 900000))
74+ then (D.feeAssetId == unit)
6375 else false
64- let B = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
65- then (z.function == "callFunction")
76+ let F = if ((D.dApp == v))
77+ then (D.function == "routingTrade")
78+ else false
79+ let G = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(D.dApp))))))
80+ then (D.function == "callFunction")
6681 else false)
67- then (z.args[0] == "exchange")
82+ then (D.args[0] == "exchange")
6883 else false
69- let C = if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
70- then (z.function == "exchange")
84+ let H = if (isDefined(getString(a, (w + toString(addressFromRecipient(D.dApp))))))
85+ then (D.function == "exchange")
7186 else false
72- let D = if ((z.dApp == s))
73- then (z.function == "airDrop")
87+ let I = if ((D.dApp == s))
88+ then (D.function == "airDrop")
7489 else false
75- let E = if ((z.dApp == s))
76- then (z.function == "updateWeights")
90+ let J = if ((D.dApp == s))
91+ then (D.function == "updateWeights")
7792 else false
78- let F = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
79- then (z.function == "callFunction")
93+ let K = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(D.dApp))))))
94+ then (D.function == "callFunction")
8095 else false)
81- then (z.args[0] == "takeIntoAccountExtraFunds")
96+ then (D.args[0] == "takeIntoAccountExtraFunds")
8297 else false
83- let G = if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
84- then (z.function == "takeIntoAccountExtraFunds")
98+ let L = if (isDefined(getString(a, (w + toString(addressFromRecipient(D.dApp))))))
99+ then (D.function == "takeIntoAccountExtraFunds")
85100 else false
86- let H = if ((z.dApp == u))
87- then (z.function == "writeTotals")
101+ let M = if ((D.dApp == u))
102+ then (D.function == "writeTotals")
88103 else false
89- let I = sigVerify(x.bodyBytes, x.proofs[0], r)
90- if (if (if (if (if (if (C)
104+ let N = ((((z + A) + B) + C) >= 1)
105+ if (if (if (if (if (if (if (H)
91106 then true
92- else B)
107+ else G)
93108 then true
94- else D)
109+ else I)
95110 then true
96- else A)
97- then (size(z.payments) == 1)
111+ else F)
112+ then (size(D.payments) == 1)
98113 else false)
99114 then true
100- else if (if (if (if (E)
115+ else if (if (if (if (J)
101116 then true
102- else G)
117+ else L)
103118 then true
104- else F)
119+ else K)
105120 then true
106- else H)
107- then (size(z.payments) == 0)
121+ else M)
122+ then (size(D.payments) == 0)
108123 else false)
109- then I
124+ then N
125+ else false)
126+ then E
110127 else false
111128 }
112- else {
113- let J = if (sigVerify(x.bodyBytes, x.proofs[0], o))
114- then 1
115- else 0
116- let K = if (sigVerify(x.bodyBytes, x.proofs[1], p))
117- then 1
118- else 0
119- let L = if (sigVerify(x.bodyBytes, x.proofs[2], q))
120- then 1
121- else 0
122- (((J + K) + L) >= 2)
123- }
129+ else (((z + A) + B) >= 2)
124130 }
125131

github/deemru/w8io/169f3d6 
50.92 ms