tx · CaEbTUc8A8wezb6bTgM4Uimws9MuA7LoFiukLhF1Bway 3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had: -0.14000000 Waves 2022.10.17 19:03 [2276590] smart account 3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had > SELF 0.00000000 Waves
{ "type": 13, "id": "CaEbTUc8A8wezb6bTgM4Uimws9MuA7LoFiukLhF1Bway", "fee": 14000000, "feeAssetId": null, "timestamp": 1666022623488, "version": 2, "chainId": 84, "sender": "3N2eueE5vLLKe8jXuBDbdbKcPaH36yG1Had", "senderPublicKey": "EAmZF2D2BbfoPsrMGFAs2UCv8ScAXxhAZRzFpkveca8G", "proofs": [ "2oxv71ms4FuMFuwRMcSYMdcM2bQo8LbSPfgfp4qRNhgpQiJKmQaBMGoSccc5X2BHcz8UYA2rGMHBAk7zSeNGN2ru", "3ANcsPQPCeL42ArsJrKZzAEFqscbgPjHg1vuRnEd6CWMi4CkmR3XXEnwqyudvhsVJmjBTQzbuneS3b3dAJ81zvod" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAABEAAAAABm9yYWNsZQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVEgTlwzA0zPMJTKAtin3p2RogKvjzHtLmQEAAAATZ2V0QmFzZTU4RnJvbU9yYWNsZQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABm9yYWNsZQUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAABnN0cmluZwUAAAAHJG1hdGNoMAkAAlkAAAABBQAAAAZzdHJpbmcEAAAAB25vdGhpbmcFAAAAByRtYXRjaDAJAAACAAAAAQkAASwAAAACBQAAAANrZXkCAAAACGlzIGVtcHR5AAAAAA1rQWRtaW5QdWJLZXkxAgAAAAthZG1pbl9wdWJfMQAAAAANa0FkbWluUHViS2V5MgIAAAALYWRtaW5fcHViXzIAAAAADWtBZG1pblB1YktleTMCAAAAC2FkbWluX3B1Yl8zAAAAABJrQWRtaW5JbnZva2VQdWJLZXkCAAAAEGFkbWluX2ludm9rZV9wdWIAAAAAC2tHb3ZBZGRyZXNzAgAAABJnb3Zlcm5hbmNlX2FkZHJlc3MAAAAADGtGYXJtQWRkcmVzcwIAAAAPZmFybWluZ19hZGRyZXNzAAAAAA9rU3VydmV5c0FkZHJlc3MCAAAAD3N1cnZleXNfYWRkcmVzcwAAAAAMYWRtaW5QdWJLZXkxCQEAAAATZ2V0QmFzZTU4RnJvbU9yYWNsZQAAAAEFAAAADWtBZG1pblB1YktleTEAAAAADGFkbWluUHViS2V5MgkBAAAAE2dldEJhc2U1OEZyb21PcmFjbGUAAAABBQAAAA1rQWRtaW5QdWJLZXkyAAAAAAxhZG1pblB1YktleTMJAQAAABNnZXRCYXNlNThGcm9tT3JhY2xlAAAAAQUAAAANa0FkbWluUHViS2V5MwAAAAALYWRtaW5JbnZva2UJAQAAABNnZXRCYXNlNThGcm9tT3JhY2xlAAAAAQUAAAASa0FkbWluSW52b2tlUHViS2V5AAAAABFnb3Zlcm5hbmNlQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABCQEAAAATZ2V0QmFzZTU4RnJvbU9yYWNsZQAAAAEFAAAAC2tHb3ZBZGRyZXNzAAAAAA5mYXJtaW5nQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABCQEAAAATZ2V0QmFzZTU4RnJvbU9yYWNsZQAAAAEFAAAADGtGYXJtQWRkcmVzcwAAAAAOc3VydmV5c0FkZHJlc3MJAQAAAAdBZGRyZXNzAAAAAQkBAAAAE2dldEJhc2U1OEZyb21PcmFjbGUAAAABBQAAAA9rU3VydmV5c0FkZHJlc3MAAAAAEWtleVByZWZpeFBvb2xOYW1lAgAAAAVwb29sXwAAAAAAAAAAkhIANg==", "height": 2276590, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6Jty8CeNV1gfDjamXt8d1QHkTcfENRZrq2FbUQYs7byh Next: HrL59jhyMdywjxtmgBVmeBWdmnHgymd1FTZ8fC2SDATD Diff:
Old | New | Differences | |
---|---|---|---|
48 | 48 | let u = "pool_" | |
49 | 49 | ||
50 | 50 | ||
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 (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) | |
58 | - | then (x.function == "exchange") | |
59 | - | else false | |
60 | - | let z = if ((x.dApp == r)) | |
61 | - | then (x.function == "airDrop") | |
62 | - | else false | |
63 | - | let A = if ((x.dApp == r)) | |
64 | - | then (x.function == "updateWeights") | |
65 | - | else false | |
66 | - | let B = if ((x.dApp == s)) | |
67 | - | then (x.function == "updatePoolInterest") | |
68 | - | else false | |
69 | - | let C = (x.function == "takeIntoAccountExtraFunds") | |
70 | - | let D = if ((x.dApp == t)) | |
71 | - | then (x.function == "writeTotals") | |
72 | - | else false | |
73 | - | let E = sigVerify(v.bodyBytes, v.proofs[0], q) | |
74 | - | if (if (if (if (y) | |
75 | - | then true | |
76 | - | else z) | |
77 | - | then (size(x.payments) == 1) | |
78 | - | else false) | |
79 | - | then true | |
80 | - | else if (if (if (if (A) | |
81 | - | then true | |
82 | - | else B) | |
83 | - | then true | |
84 | - | else D) | |
85 | - | then true | |
86 | - | else C) | |
87 | - | then (size(x.payments) == 0) | |
88 | - | else false) | |
89 | - | then E | |
90 | - | else false | |
91 | - | } | |
92 | - | else { | |
93 | - | let F = if (sigVerify(v.bodyBytes, v.proofs[0], n)) | |
94 | - | then 1 | |
95 | - | else 0 | |
96 | - | let G = if (sigVerify(v.bodyBytes, v.proofs[1], o)) | |
97 | - | then 1 | |
98 | - | else 0 | |
99 | - | let H = if (sigVerify(v.bodyBytes, v.proofs[2], p)) | |
100 | - | then 1 | |
101 | - | else 0 | |
102 | - | (((F + G) + H) >= 2) | |
103 | - | } | |
104 | - | } | |
105 | - |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
5 | 5 | ||
6 | 6 | func b (c) = { | |
7 | 7 | let d = getString(a, c) | |
8 | 8 | if ($isInstanceOf(d, "String")) | |
9 | 9 | then { | |
10 | 10 | let e = d | |
11 | 11 | fromBase58String(e) | |
12 | 12 | } | |
13 | 13 | else { | |
14 | 14 | let f = d | |
15 | 15 | throw((c + "is empty")) | |
16 | 16 | } | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | let g = "admin_pub_1" | |
21 | 21 | ||
22 | 22 | let h = "admin_pub_2" | |
23 | 23 | ||
24 | 24 | let i = "admin_pub_3" | |
25 | 25 | ||
26 | 26 | let j = "admin_invoke_pub" | |
27 | 27 | ||
28 | 28 | let k = "governance_address" | |
29 | 29 | ||
30 | 30 | let l = "farming_address" | |
31 | 31 | ||
32 | 32 | let m = "surveys_address" | |
33 | 33 | ||
34 | 34 | let n = b(g) | |
35 | 35 | ||
36 | 36 | let o = b(h) | |
37 | 37 | ||
38 | 38 | let p = b(i) | |
39 | 39 | ||
40 | 40 | let q = b(j) | |
41 | 41 | ||
42 | 42 | let r = Address(b(k)) | |
43 | 43 | ||
44 | 44 | let s = Address(b(l)) | |
45 | 45 | ||
46 | 46 | let t = Address(b(m)) | |
47 | 47 | ||
48 | 48 | let u = "pool_" | |
49 | 49 | ||
50 | 50 | ||
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 (isDefined(getString(a, (u + toString(addressFromRecipient(x.dApp)))))) | |
58 | - | then (x.function == "exchange") | |
59 | - | else false | |
60 | - | let z = if ((x.dApp == r)) | |
61 | - | then (x.function == "airDrop") | |
62 | - | else false | |
63 | - | let A = if ((x.dApp == r)) | |
64 | - | then (x.function == "updateWeights") | |
65 | - | else false | |
66 | - | let B = if ((x.dApp == s)) | |
67 | - | then (x.function == "updatePoolInterest") | |
68 | - | else false | |
69 | - | let C = (x.function == "takeIntoAccountExtraFunds") | |
70 | - | let D = if ((x.dApp == t)) | |
71 | - | then (x.function == "writeTotals") | |
72 | - | else false | |
73 | - | let E = sigVerify(v.bodyBytes, v.proofs[0], q) | |
74 | - | if (if (if (if (y) | |
75 | - | then true | |
76 | - | else z) | |
77 | - | then (size(x.payments) == 1) | |
78 | - | else false) | |
79 | - | then true | |
80 | - | else if (if (if (if (A) | |
81 | - | then true | |
82 | - | else B) | |
83 | - | then true | |
84 | - | else D) | |
85 | - | then true | |
86 | - | else C) | |
87 | - | then (size(x.payments) == 0) | |
88 | - | else false) | |
89 | - | then E | |
90 | - | else false | |
91 | - | } | |
92 | - | else { | |
93 | - | let F = if (sigVerify(v.bodyBytes, v.proofs[0], n)) | |
94 | - | then 1 | |
95 | - | else 0 | |
96 | - | let G = if (sigVerify(v.bodyBytes, v.proofs[1], o)) | |
97 | - | then 1 | |
98 | - | else 0 | |
99 | - | let H = if (sigVerify(v.bodyBytes, v.proofs[2], p)) | |
100 | - | then 1 | |
101 | - | else 0 | |
102 | - | (((F + G) + H) >= 2) | |
103 | - | } | |
104 | - | } | |
105 | - |
github/deemru/w8io/169f3d6 40.42 ms ◑