tx · 4mQgv8gFZ6322cVh4C4QX1U7CPaf6irztSsMxkFHQPkd

3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had:  -0.14000000 Waves

2022.12.06 12:16 [2348292] smart account 3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had > SELF 0.00000000 Waves

{ "type": 13, "id": "4mQgv8gFZ6322cVh4C4QX1U7CPaf6irztSsMxkFHQPkd", "fee": 14000000, "feeAssetId": null, "timestamp": 1670318162397, "version": 2, "chainId": 84, "sender": "3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had", "senderPublicKey": "EAmZF2D2BbfoPsrMGFAs2UCv8ScAXxhAZRzFpkveca8G", "proofs": [ "Qj7eyY5As6HkHQyG8dBBUkEFMg3Ntkas7VwdBpLx5PS2FFNBsNKijZFxLs6CBbZYFmoNTie59csReENB84tFjtG", "4SNReuPgjp6m6TskUMXSzNfUcWhTGa1sZ1NUBJvS2Kj9cmDM4FYFPFr481BE2TNZuTPx3Bq9sDY8BLJDaZRX3XU8" ], "script": "base64:BgICCAITAAZvcmFjbGUJAQdBZGRyZXNzAQEaAVRIE5cMwNMzzCUygLYp96dkaICr48x7S5kBE2dldEJhc2U1OEZyb21PcmFjbGUBA2tleQQHJG1hdGNoMAkAnQgCBQZvcmFjbGUFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEBnN0cmluZwUHJG1hdGNoMAkA2QQBBQZzdHJpbmcEB25vdGhpbmcFByRtYXRjaDAJAAIBCQCsAgIFA2tleQIIaXMgZW1wdHkADWtBZG1pblB1YktleTECC2FkbWluX3B1Yl8xAA1rQWRtaW5QdWJLZXkyAgthZG1pbl9wdWJfMgANa0FkbWluUHViS2V5MwILYWRtaW5fcHViXzMAEmtBZG1pbkludm9rZVB1YktleQIQYWRtaW5faW52b2tlX3B1YgALa0dvdkFkZHJlc3MCEmdvdmVybmFuY2VfYWRkcmVzcwAMa0Zhcm1BZGRyZXNzAg9mYXJtaW5nX2FkZHJlc3MAD2tTd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ZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFC2FkbWluSW52b2tlAwMDAwMDBQ5pc0V4Y2hhbmdlQ2FsbAYFEmlzRXhjaGFuZ2VDYWxsQ1BNTQYFDWlzQWlyZHJvcENhbGwGBQ1pc1JvdXRpbmdDYWxsCQAAAgkAkAMBCAUDaW52CHBheW1lbnRzAAEHBgMDAwMFE2lzVXBkYXRlV2VpZ2h0c0NhbGwGBRJpc1Rha2VuSW50b0FjY291bnQGBRZpc1Rha2VuSW50b0FjY291bnRDUE1NBgUMaXNXcml0ZVRvdGFsCQAAAgkAkAMBCAUDaW52CHBheW1lbnRzAAAHBQ1zaWduZWRCeUFkbWluBwQSYWRtaW5QdWJLZXkxU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxAAEAAAQSYWRtaW5QdWJLZXkyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUMYWRtaW5QdWJLZXkyAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUMYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAAC/nBvoQ==", "height": 2348292, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BkSbowoKDG625JsvrEkE8g9ZnPMwNWSDjN59dTTsjP6w Next: 8z1mRHTvsEt2AzVUG8QDkdwCAdXGiZEaDJVzURqWkxV1 Diff:
OldNewDifferences
3131
3232 let m = "surveys_address"
3333
34-let n = b(g)
34+let n = "routing_address"
3535
36-let o = b(h)
36+let o = b(g)
3737
38-let p = b(i)
38+let p = b(h)
3939
40-let q = b(j)
40+let q = b(i)
4141
42-let r = Address(b(k))
42+let r = b(j)
4343
44-let s = Address(b(l))
44+let s = Address(b(k))
4545
46-let t = Address(b(m))
46+let t = Address(b(l))
4747
48-let u = "pool_"
48+let u = Address(b(m))
49+
50+let v = Address(b(n))
51+
52+let w = "pool_"
4953
5054
51-@Verifier(v)
52-func w () = {
53- let d = v
55+@Verifier(x)
56+func y () = {
57+ let d = x
5458 if ($isInstanceOf(d, "InvokeScriptTransaction"))
5559 then {
56- let x = d
57- let y = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
58- then (x.function == "callFunction")
60+ let z = d
61+ let A = if ((z.dApp == v))
62+ then (z.function == "routingTrade")
63+ else false
64+ let B = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
65+ then (z.function == "callFunction")
5966 else false)
60- then (x.args[0] == "exchange")
67+ then (z.args[0] == "exchange")
6168 else false
62- let z = if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
63- then (x.function == "exchange")
69+ let C = if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
70+ then (z.function == "exchange")
6471 else false
65- let A = if ((x.dApp == r))
66- then (x.function == "airDrop")
72+ let D = if ((z.dApp == s))
73+ then (z.function == "airDrop")
6774 else false
68- let B = if ((x.dApp == r))
69- then (x.function == "updateWeights")
75+ let E = if ((z.dApp == s))
76+ then (z.function == "updateWeights")
7077 else false
71- let C = if ((x.dApp == s))
72- then (x.function == "updatePoolInterest")
78+ let F = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
79+ then (z.function == "callFunction")
80+ else false)
81+ then (z.args[0] == "takeIntoAccountExtraFunds")
7382 else false
74- let D = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
75- then (x.function == "callFunction")
76- else false)
77- then (x.args[0] == "takeIntoAccountExtraFunds")
83+ let G = if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
84+ then (z.function == "takeIntoAccountExtraFunds")
7885 else false
79- let E = if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
80- then (x.function == "takeIntoAccountExtraFunds")
86+ let H = if ((z.dApp == u))
87+ then (z.function == "writeTotals")
8188 else false
82- let F = if ((x.dApp == t))
83- then (x.function == "writeTotals")
84- else false
85- let G = sigVerify(v.bodyBytes, v.proofs[0], q)
86- if (if (if (if (if (z)
89+ let I = sigVerify(x.bodyBytes, x.proofs[0], r)
90+ if (if (if (if (if (if (C)
8791 then true
88- else y)
92+ else B)
93+ then true
94+ else D)
8995 then true
9096 else A)
91- then (size(x.payments) == 1)
97+ then (size(z.payments) == 1)
9298 else false)
9399 then true
94- else if (if (if (if (if (B)
100+ else if (if (if (if (E)
95101 then true
96- else C)
97- then true
98- else E)
99- then true
100- else D)
102+ else G)
101103 then true
102104 else F)
103- then (size(x.payments) == 0)
105+ then true
106+ else H)
107+ then (size(z.payments) == 0)
104108 else false)
105- then G
109+ then I
106110 else false
107111 }
108112 else {
109- let H = if (sigVerify(v.bodyBytes, v.proofs[0], n))
113+ let J = if (sigVerify(x.bodyBytes, x.proofs[0], o))
110114 then 1
111115 else 0
112- let I = if (sigVerify(v.bodyBytes, v.proofs[1], o))
116+ let K = if (sigVerify(x.bodyBytes, x.proofs[1], p))
113117 then 1
114118 else 0
115- let J = if (sigVerify(v.bodyBytes, v.proofs[2], p))
119+ let L = if (sigVerify(x.bodyBytes, x.proofs[2], q))
116120 then 1
117121 else 0
118- (((H + I) + J) >= 2)
122+ (((J + K) + L) >= 2)
119123 }
120124 }
121125
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
34-let n = b(g)
34+let n = "routing_address"
3535
36-let o = b(h)
36+let o = b(g)
3737
38-let p = b(i)
38+let p = b(h)
3939
40-let q = b(j)
40+let q = b(i)
4141
42-let r = Address(b(k))
42+let r = b(j)
4343
44-let s = Address(b(l))
44+let s = Address(b(k))
4545
46-let t = Address(b(m))
46+let t = Address(b(l))
4747
48-let u = "pool_"
48+let u = Address(b(m))
49+
50+let v = Address(b(n))
51+
52+let w = "pool_"
4953
5054
51-@Verifier(v)
52-func w () = {
53- let d = v
55+@Verifier(x)
56+func y () = {
57+ let d = x
5458 if ($isInstanceOf(d, "InvokeScriptTransaction"))
5559 then {
56- let x = d
57- let y = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
58- then (x.function == "callFunction")
60+ let z = d
61+ let A = if ((z.dApp == v))
62+ then (z.function == "routingTrade")
63+ else false
64+ let B = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
65+ then (z.function == "callFunction")
5966 else false)
60- then (x.args[0] == "exchange")
67+ then (z.args[0] == "exchange")
6168 else false
62- let z = if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
63- then (x.function == "exchange")
69+ let C = if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
70+ then (z.function == "exchange")
6471 else false
65- let A = if ((x.dApp == r))
66- then (x.function == "airDrop")
72+ let D = if ((z.dApp == s))
73+ then (z.function == "airDrop")
6774 else false
68- let B = if ((x.dApp == r))
69- then (x.function == "updateWeights")
75+ let E = if ((z.dApp == s))
76+ then (z.function == "updateWeights")
7077 else false
71- let C = if ((x.dApp == s))
72- then (x.function == "updatePoolInterest")
78+ let F = if (if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
79+ then (z.function == "callFunction")
80+ else false)
81+ then (z.args[0] == "takeIntoAccountExtraFunds")
7382 else false
74- let D = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
75- then (x.function == "callFunction")
76- else false)
77- then (x.args[0] == "takeIntoAccountExtraFunds")
83+ let G = if (isDefined(getString(a, (w + toString(addressFromRecipient(z.dApp))))))
84+ then (z.function == "takeIntoAccountExtraFunds")
7885 else false
79- let E = if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
80- then (x.function == "takeIntoAccountExtraFunds")
86+ let H = if ((z.dApp == u))
87+ then (z.function == "writeTotals")
8188 else false
82- let F = if ((x.dApp == t))
83- then (x.function == "writeTotals")
84- else false
85- let G = sigVerify(v.bodyBytes, v.proofs[0], q)
86- if (if (if (if (if (z)
89+ let I = sigVerify(x.bodyBytes, x.proofs[0], r)
90+ if (if (if (if (if (if (C)
8791 then true
88- else y)
92+ else B)
93+ then true
94+ else D)
8995 then true
9096 else A)
91- then (size(x.payments) == 1)
97+ then (size(z.payments) == 1)
9298 else false)
9399 then true
94- else if (if (if (if (if (B)
100+ else if (if (if (if (E)
95101 then true
96- else C)
97- then true
98- else E)
99- then true
100- else D)
102+ else G)
101103 then true
102104 else F)
103- then (size(x.payments) == 0)
105+ then true
106+ else H)
107+ then (size(z.payments) == 0)
104108 else false)
105- then G
109+ then I
106110 else false
107111 }
108112 else {
109- let H = if (sigVerify(v.bodyBytes, v.proofs[0], n))
113+ let J = if (sigVerify(x.bodyBytes, x.proofs[0], o))
110114 then 1
111115 else 0
112- let I = if (sigVerify(v.bodyBytes, v.proofs[1], o))
116+ let K = if (sigVerify(x.bodyBytes, x.proofs[1], p))
113117 then 1
114118 else 0
115- let J = if (sigVerify(v.bodyBytes, v.proofs[2], p))
119+ let L = if (sigVerify(x.bodyBytes, x.proofs[2], q))
116120 then 1
117121 else 0
118- (((H + I) + J) >= 2)
122+ (((J + K) + L) >= 2)
119123 }
120124 }
121125

github/deemru/w8io/169f3d6 
42.40 ms