tx · HrL59jhyMdywjxtmgBVmeBWdmnHgymd1FTZ8fC2SDATD

3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had:  -0.14000000 Waves

2022.10.18 11:52 [2277616] smart account 3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had > SELF 0.00000000 Waves

{ "type": 13, "id": "HrL59jhyMdywjxtmgBVmeBWdmnHgymd1FTZ8fC2SDATD", "fee": 14000000, "feeAssetId": null, "timestamp": 1666083173649, "version": 2, "chainId": 84, "sender": "3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had", "senderPublicKey": "EAmZF2D2BbfoPsrMGFAs2UCv8ScAXxhAZRzFpkveca8G", "proofs": [ "3Lr2AF5yQrZUttZ2XiwekxS9CmX1e2VzESA9sWjgyGnzw9eeZd13SVHwp73aQvs5maWBgLjkk2TVv8UduYBFtrDK" ], "script": "base64:BgICCAIRAAZvcmFjbGUJAQdBZGRyZXNzAQEaAVTpRaoekC86rvG6DuYumpJfGpiE4fNiswgBE2dldEJhc2U1OEZyb21PcmFjbGUBA2tleQQHJG1hdGNoMAkAnQgCBQZvcmFjbGUFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEBnN0cmluZwUHJG1hdGNoMAkA2QQBBQZzdHJpbmcEB25vdGhpbmcFByRtYXRjaDAJAAIBCQCsAgIFA2tleQIIaXMgZW1wdHkADWtBZG1pblB1YktleTECC2FkbWluX3B1Yl8xAA1rQWRtaW5QdWJLZXkyAgthZG1pbl9wdWJfMgANa0FkbWluUHViS2V5MwILYWRtaW5fcHViXzMAEmtBZG1pbkludm9rZVB1YktleQIQYWRtaW5faW52b2tlX3B1YgALa0dvdkFkZHJlc3MCEmdvdmVybmFuY2VfYWRkcmVzcwAMa0Zhcm1BZGRyZXNzAg9mYXJtaW5nX2FkZHJlc3MAD2tTdXJ2ZXlzQWRkcmVzcwIPc3VydmV5c19hZGRyZXNzAAxhZG1pblB1YktleTEJARNnZXRCYXNlNThGcm9tT3JhY2xlAQUN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AJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAKb8yRA", "height": 2277616, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CaEbTUc8A8wezb6bTgM4Uimws9MuA7LoFiukLhF1Bway Next: 2zadmMsuon6e28robCmJzR2pZJYo6wbuPnpGFkHJ4Ko5 Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
4+let a = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
55
66 func b (c) = {
77 let d = getString(a, c)
4848 let u = "pool_"
4949
5050
51+@Verifier(v)
52+func w () = {
53+ let d = v
54+ if ($isInstanceOf(d, "InvokeScriptTransaction"))
55+ then {
56+ let x = d
57+ let y = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
58+ then (x.function == "callFunction")
59+ else false)
60+ then (x.args[0] == "exchange")
61+ else false
62+ let z = if ((x.dApp == r))
63+ then (x.function == "airDrop")
64+ else false
65+ let A = if ((x.dApp == r))
66+ then (x.function == "updateWeights")
67+ else false
68+ let B = if ((x.dApp == s))
69+ then (x.function == "updatePoolInterest")
70+ else false
71+ let C = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
72+ then (x.function == "callFunction")
73+ else false)
74+ then (x.args[0] == "takeIntoAccountExtraFunds")
75+ else false
76+ let D = if ((x.dApp == t))
77+ then (x.function == "writeTotals")
78+ else false
79+ let E = sigVerify(v.bodyBytes, v.proofs[0], q)
80+ if (if (if (if (y)
81+ then true
82+ else z)
83+ then (size(x.payments) == 1)
84+ else false)
85+ then true
86+ else if (if (if (if (A)
87+ then true
88+ else B)
89+ then true
90+ else C)
91+ then true
92+ else D)
93+ then (size(x.payments) == 0)
94+ else false)
95+ then E
96+ else false
97+ }
98+ else {
99+ let F = if (sigVerify(v.bodyBytes, v.proofs[0], n))
100+ then 1
101+ else 0
102+ let G = if (sigVerify(v.bodyBytes, v.proofs[1], o))
103+ then 1
104+ else 0
105+ let H = if (sigVerify(v.bodyBytes, v.proofs[2], p))
106+ then 1
107+ else 0
108+ (((F + G) + H) >= 2)
109+ }
110+ }
111+
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
4+let a = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
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 = b(g)
3535
3636 let o = b(h)
3737
3838 let p = b(i)
3939
4040 let q = b(j)
4141
4242 let r = Address(b(k))
4343
4444 let s = Address(b(l))
4545
4646 let t = Address(b(m))
4747
4848 let u = "pool_"
4949
5050
51+@Verifier(v)
52+func w () = {
53+ let d = v
54+ if ($isInstanceOf(d, "InvokeScriptTransaction"))
55+ then {
56+ let x = d
57+ let y = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
58+ then (x.function == "callFunction")
59+ else false)
60+ then (x.args[0] == "exchange")
61+ else false
62+ let z = if ((x.dApp == r))
63+ then (x.function == "airDrop")
64+ else false
65+ let A = if ((x.dApp == r))
66+ then (x.function == "updateWeights")
67+ else false
68+ let B = if ((x.dApp == s))
69+ then (x.function == "updatePoolInterest")
70+ else false
71+ let C = if (if (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp))))))
72+ then (x.function == "callFunction")
73+ else false)
74+ then (x.args[0] == "takeIntoAccountExtraFunds")
75+ else false
76+ let D = if ((x.dApp == t))
77+ then (x.function == "writeTotals")
78+ else false
79+ let E = sigVerify(v.bodyBytes, v.proofs[0], q)
80+ if (if (if (if (y)
81+ then true
82+ else z)
83+ then (size(x.payments) == 1)
84+ else false)
85+ then true
86+ else if (if (if (if (A)
87+ then true
88+ else B)
89+ then true
90+ else C)
91+ then true
92+ else D)
93+ then (size(x.payments) == 0)
94+ else false)
95+ then E
96+ else false
97+ }
98+ else {
99+ let F = if (sigVerify(v.bodyBytes, v.proofs[0], n))
100+ then 1
101+ else 0
102+ let G = if (sigVerify(v.bodyBytes, v.proofs[1], o))
103+ then 1
104+ else 0
105+ let H = if (sigVerify(v.bodyBytes, v.proofs[2], p))
106+ then 1
107+ else 0
108+ (((F + G) + H) >= 2)
109+ }
110+ }
111+

github/deemru/w8io/169f3d6 
42.39 ms