tx · cnjgS154pFETMTS2p15gRPc4HpEWY1z3seEneB9D63g 3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp: -0.01400000 Waves 2021.03.13 15:25 [1435909] smart account 3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp > SELF 0.00000000 Waves
{ "type": 13, "id": "cnjgS154pFETMTS2p15gRPc4HpEWY1z3seEneB9D63g", "fee": 1400000, "feeAssetId": null, "timestamp": 1615638437617, "version": 1, "sender": "3N2wcNfEWihUVJV2S6jKwcw3QDupKgXPBnp", "senderPublicKey": "2Ek8QRiW2SC3s4ZC79pXUmvJbmqU6agaNsjN2wmnzmSs", "proofs": [ "3QQivAWFUujURuuZb1MD9LDmUNtHanWyXyAiumxgQjY9unoXsVakpdaqdfuuQG71F7N9Qhiq4oXTzw2Pzut9w21Q" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIYEQAAAAcAAAAAEWtVc2VyUG9vbFZvdGVTV09QAgAAAAVfdm90ZQAAAAASa1VzZXJUb3RhbFZvdGVTV09QAgAAABVfdXNlcl90b3RhbF9TV09QX3ZvdGUAAAAADWtQb29sVm90ZVNXT1ACAAAACl92b3RlX1NXT1AAAAAADmtUb3RhbFZvdGVTV09QAgAAAA90b3RhbF92b3RlX1NXT1AAAAAAB2dvdkFkZHIJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVRAR/HWw3DxHB4C9lwcyuInima35raJGzsBAAAAFGlzQ2FsbGVySW5Hb3Zlcm5hbmNlAAAAAQAAAAR1c2VyAwMJAABmAAAAAgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAdnb3ZBZGRyCQABLAAAAAIJAAQlAAAAAQUAAAAEdXNlcgIAAAAMX1NXT1BfYW1vdW50AAAAAAAAAAAAAAAAAAAAAAAABgkAAGYAAAACCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgkABCUAAAABBQAAAAR1c2VyBQAAABJrVXNl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=", "chainId": 84, "height": 1435909, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CGEX7wrP9sPkHo3ZUuBk1iTH3nGe4sWB3s5DSWfkJiHn Next: HFqCVY3kVGib5gm4JsSKBMGvGbFKKVLxB8jDHsodNUHg Diff:
Old | New | Differences | |
---|---|---|---|
33 | 33 | let q = valueOrElse(getInteger(this, (((toString(j.caller) + a) + "_") + i)), 0) | |
34 | 34 | let r = (p - q) | |
35 | 35 | if (true) | |
36 | - | then throw(toString( | |
36 | + | then throw(((toString(p) + " ") + toString(q))) | |
37 | 37 | else (n + r) | |
38 | 38 | } | |
39 | 39 | ||
87 | 87 | then H | |
88 | 88 | else { | |
89 | 89 | let I = m(H, A[5]) | |
90 | - | if ((B == 6)) | |
91 | - | then I | |
90 | + | throw("List size exceed 5") | |
91 | + | } | |
92 | + | } | |
93 | + | } | |
94 | + | } | |
95 | + | } | |
96 | + | } | |
97 | + | } | |
98 | + | let J = (x + z) | |
99 | + | let K = (w + z) | |
100 | + | if (true) | |
101 | + | then throw(((((toString(K) + " ") + toString(w)) + " ") + toString(z))) | |
102 | + | else { | |
103 | + | let L = { | |
104 | + | let M = k | |
105 | + | let N = size(M) | |
106 | + | let O = nil | |
107 | + | if ((N == 0)) | |
108 | + | then O | |
109 | + | else { | |
110 | + | let P = s(O, M[0]) | |
111 | + | if ((N == 1)) | |
112 | + | then P | |
113 | + | else { | |
114 | + | let Q = s(P, M[1]) | |
115 | + | if ((N == 2)) | |
116 | + | then Q | |
117 | + | else { | |
118 | + | let R = s(Q, M[2]) | |
119 | + | if ((N == 3)) | |
120 | + | then R | |
121 | + | else { | |
122 | + | let S = s(R, M[3]) | |
123 | + | if ((N == 4)) | |
124 | + | then S | |
125 | + | else { | |
126 | + | let T = s(S, M[4]) | |
127 | + | if ((N == 5)) | |
128 | + | then T | |
92 | 129 | else { | |
93 | - | let J = m(I, A[6]) | |
94 | - | if ((B == 7)) | |
95 | - | then J | |
96 | - | else { | |
97 | - | let K = m(J, A[7]) | |
98 | - | if ((B == 8)) | |
99 | - | then K | |
100 | - | else { | |
101 | - | let L = m(K, A[8]) | |
102 | - | throw("List size exceed 8") | |
103 | - | } | |
104 | - | } | |
130 | + | let U = s(T, M[5]) | |
131 | + | throw("List size exceed 5") | |
105 | 132 | } | |
106 | 133 | } | |
107 | 134 | } | |
109 | 136 | } | |
110 | 137 | } | |
111 | 138 | } | |
112 | - | } | |
113 | - | let M = (x + z) | |
114 | - | let N = (w + z) | |
115 | - | if (true) | |
116 | - | then throw(((((toString(N) + " ") + toString(w)) + " ") + toString(z))) | |
117 | - | else { | |
118 | - | let O = { | |
119 | - | let P = k | |
120 | - | let Q = size(P) | |
121 | - | let R = nil | |
122 | - | if ((Q == 0)) | |
123 | - | then R | |
139 | + | let V = { | |
140 | + | let W = k | |
141 | + | let X = size(W) | |
142 | + | let Y = nil | |
143 | + | if ((X == 0)) | |
144 | + | then Y | |
124 | 145 | else { | |
125 | - | let | |
126 | - | if (( | |
127 | - | then | |
146 | + | let Z = t(Y, W[0]) | |
147 | + | if ((X == 1)) | |
148 | + | then Z | |
128 | 149 | else { | |
129 | - | let | |
130 | - | if (( | |
131 | - | then | |
150 | + | let aa = t(Z, W[1]) | |
151 | + | if ((X == 2)) | |
152 | + | then aa | |
132 | 153 | else { | |
133 | - | let | |
134 | - | if (( | |
135 | - | then | |
154 | + | let ab = t(aa, W[2]) | |
155 | + | if ((X == 3)) | |
156 | + | then ab | |
136 | 157 | else { | |
137 | - | let | |
138 | - | if (( | |
139 | - | then | |
158 | + | let ac = t(ab, W[3]) | |
159 | + | if ((X == 4)) | |
160 | + | then ac | |
140 | 161 | else { | |
141 | - | let | |
142 | - | if (( | |
143 | - | then | |
162 | + | let ad = t(ac, W[4]) | |
163 | + | if ((X == 5)) | |
164 | + | then ad | |
144 | 165 | else { | |
145 | - | let X = s(W, P[5]) | |
146 | - | if ((Q == 6)) | |
147 | - | then X | |
148 | - | else { | |
149 | - | let Y = s(X, P[6]) | |
150 | - | if ((Q == 7)) | |
151 | - | then Y | |
152 | - | else { | |
153 | - | let Z = s(Y, P[7]) | |
154 | - | if ((Q == 8)) | |
155 | - | then Z | |
156 | - | else { | |
157 | - | let aa = s(Z, P[8]) | |
158 | - | throw("List size exceed 8") | |
159 | - | } | |
160 | - | } | |
161 | - | } | |
166 | + | let ae = t(ad, W[5]) | |
167 | + | throw("List size exceed 5") | |
162 | 168 | } | |
163 | 169 | } | |
164 | 170 | } | |
166 | 172 | } | |
167 | 173 | } | |
168 | 174 | } | |
169 | - | let ab = { | |
170 | - | let ac = k | |
171 | - | let ad = size(ac) | |
172 | - | let ae = nil | |
173 | - | if ((ad == 0)) | |
174 | - | then ae | |
175 | - | else { | |
176 | - | let af = t(ae, ac[0]) | |
177 | - | if ((ad == 1)) | |
178 | - | then af | |
179 | - | else { | |
180 | - | let ag = t(af, ac[1]) | |
181 | - | if ((ad == 2)) | |
182 | - | then ag | |
183 | - | else { | |
184 | - | let ah = t(ag, ac[2]) | |
185 | - | if ((ad == 3)) | |
186 | - | then ah | |
187 | - | else { | |
188 | - | let ai = t(ah, ac[3]) | |
189 | - | if ((ad == 4)) | |
190 | - | then ai | |
191 | - | else { | |
192 | - | let aj = t(ai, ac[4]) | |
193 | - | if ((ad == 5)) | |
194 | - | then aj | |
195 | - | else { | |
196 | - | let ak = t(aj, ac[5]) | |
197 | - | if ((ad == 6)) | |
198 | - | then ak | |
199 | - | else { | |
200 | - | let al = t(ak, ac[6]) | |
201 | - | if ((ad == 7)) | |
202 | - | then al | |
203 | - | else { | |
204 | - | let am = t(al, ac[7]) | |
205 | - | if ((ad == 8)) | |
206 | - | then am | |
207 | - | else { | |
208 | - | let an = t(am, ac[8]) | |
209 | - | throw("List size exceed 8") | |
210 | - | } | |
211 | - | } | |
212 | - | } | |
213 | - | } | |
214 | - | } | |
215 | - | } | |
216 | - | } | |
217 | - | } | |
218 | - | } | |
219 | - | } | |
220 | - | if ((y > M)) | |
221 | - | then throw(((((toString(this) + " has ") + toString(y)) + "SWOP in governance. New SWOP in voting ") + toString(M))) | |
222 | - | else ((O ++ ab) ++ [IntegerEntry((toString(j.caller) + b), M), IntegerEntry(d, N)]) | |
175 | + | if ((y > J)) | |
176 | + | then throw(((((toString(this) + " has ") + toString(y)) + "SWOP in governance. New SWOP in voting ") + toString(J))) | |
177 | + | else ((L ++ V) ++ [IntegerEntry((toString(j.caller) + b), J), IntegerEntry(d, K)]) | |
223 | 178 | } | |
224 | 179 | } | |
225 | 180 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "_vote" | |
5 | 5 | ||
6 | 6 | let b = "_user_total_SWOP_vote" | |
7 | 7 | ||
8 | 8 | let c = "_vote_SWOP" | |
9 | 9 | ||
10 | 10 | let d = "total_vote_SWOP" | |
11 | 11 | ||
12 | 12 | let e = Address(base58'3MumyD14hrRb2Vj3HAifsnCcUpsELAZWxAE') | |
13 | 13 | ||
14 | 14 | func f (g) = if (if ((valueOrElse(getInteger(e, (toString(g) + "_SWOP_amount")), 0) > 0)) | |
15 | 15 | then true | |
16 | 16 | else (valueOrElse(getInteger(this, (toString(g) + b)), 0) > 0)) | |
17 | 17 | then true | |
18 | 18 | else false | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func h (i) = if ((valueOrElse(getInteger(e, (i + "_current_pool_fraction_reward")), 0) > 0)) | |
22 | 22 | then true | |
23 | 23 | else false | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(j) | |
27 | 27 | func votePoolWeight (k,l) = { | |
28 | 28 | func m (n,i) = if (!(h(i))) | |
29 | 29 | then throw("This pool has no _current_pool_fraction_reward in Governance dApp") | |
30 | 30 | else { | |
31 | 31 | let o = value(indexOf(k, i)) | |
32 | 32 | let p = l[o] | |
33 | 33 | let q = valueOrElse(getInteger(this, (((toString(j.caller) + a) + "_") + i)), 0) | |
34 | 34 | let r = (p - q) | |
35 | 35 | if (true) | |
36 | - | then throw(toString( | |
36 | + | then throw(((toString(p) + " ") + toString(q))) | |
37 | 37 | else (n + r) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | func s (n,i) = { | |
41 | 41 | let o = value(indexOf(k, i)) | |
42 | 42 | let p = l[o] | |
43 | 43 | IntegerEntry((((toString(j.caller) + "_") + i) + a), p) :: n | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | func t (n,i) = { | |
47 | 47 | let o = value(indexOf(k, i)) | |
48 | 48 | let q = valueOrElse(getInteger(this, (((toString(j.caller) + "_") + i) + a)), 0) | |
49 | 49 | let p = l[o] | |
50 | 50 | let r = (p - q) | |
51 | 51 | let u = valueOrElse(getInteger(this, (i + c)), 0) | |
52 | 52 | let v = (u + r) | |
53 | 53 | IntegerEntry((i + c), v) :: n | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | if (!(f(j.caller))) | |
57 | 57 | then throw("This address has 0 SWOP in Governance dApp") | |
58 | 58 | else { | |
59 | 59 | let w = valueOrElse(getInteger(this, d), 0) | |
60 | 60 | let x = valueOrElse(getInteger(this, (toString(j.caller) + b)), 0) | |
61 | 61 | let y = getIntegerValue(e, (toString(j.caller) + "_SWOP_amount")) | |
62 | 62 | let z = { | |
63 | 63 | let A = k | |
64 | 64 | let B = size(A) | |
65 | 65 | let C = 0 | |
66 | 66 | if ((B == 0)) | |
67 | 67 | then C | |
68 | 68 | else { | |
69 | 69 | let D = m(C, A[0]) | |
70 | 70 | if ((B == 1)) | |
71 | 71 | then D | |
72 | 72 | else { | |
73 | 73 | let E = m(D, A[1]) | |
74 | 74 | if ((B == 2)) | |
75 | 75 | then E | |
76 | 76 | else { | |
77 | 77 | let F = m(E, A[2]) | |
78 | 78 | if ((B == 3)) | |
79 | 79 | then F | |
80 | 80 | else { | |
81 | 81 | let G = m(F, A[3]) | |
82 | 82 | if ((B == 4)) | |
83 | 83 | then G | |
84 | 84 | else { | |
85 | 85 | let H = m(G, A[4]) | |
86 | 86 | if ((B == 5)) | |
87 | 87 | then H | |
88 | 88 | else { | |
89 | 89 | let I = m(H, A[5]) | |
90 | - | if ((B == 6)) | |
91 | - | then I | |
90 | + | throw("List size exceed 5") | |
91 | + | } | |
92 | + | } | |
93 | + | } | |
94 | + | } | |
95 | + | } | |
96 | + | } | |
97 | + | } | |
98 | + | let J = (x + z) | |
99 | + | let K = (w + z) | |
100 | + | if (true) | |
101 | + | then throw(((((toString(K) + " ") + toString(w)) + " ") + toString(z))) | |
102 | + | else { | |
103 | + | let L = { | |
104 | + | let M = k | |
105 | + | let N = size(M) | |
106 | + | let O = nil | |
107 | + | if ((N == 0)) | |
108 | + | then O | |
109 | + | else { | |
110 | + | let P = s(O, M[0]) | |
111 | + | if ((N == 1)) | |
112 | + | then P | |
113 | + | else { | |
114 | + | let Q = s(P, M[1]) | |
115 | + | if ((N == 2)) | |
116 | + | then Q | |
117 | + | else { | |
118 | + | let R = s(Q, M[2]) | |
119 | + | if ((N == 3)) | |
120 | + | then R | |
121 | + | else { | |
122 | + | let S = s(R, M[3]) | |
123 | + | if ((N == 4)) | |
124 | + | then S | |
125 | + | else { | |
126 | + | let T = s(S, M[4]) | |
127 | + | if ((N == 5)) | |
128 | + | then T | |
92 | 129 | else { | |
93 | - | let J = m(I, A[6]) | |
94 | - | if ((B == 7)) | |
95 | - | then J | |
96 | - | else { | |
97 | - | let K = m(J, A[7]) | |
98 | - | if ((B == 8)) | |
99 | - | then K | |
100 | - | else { | |
101 | - | let L = m(K, A[8]) | |
102 | - | throw("List size exceed 8") | |
103 | - | } | |
104 | - | } | |
130 | + | let U = s(T, M[5]) | |
131 | + | throw("List size exceed 5") | |
105 | 132 | } | |
106 | 133 | } | |
107 | 134 | } | |
108 | 135 | } | |
109 | 136 | } | |
110 | 137 | } | |
111 | 138 | } | |
112 | - | } | |
113 | - | let M = (x + z) | |
114 | - | let N = (w + z) | |
115 | - | if (true) | |
116 | - | then throw(((((toString(N) + " ") + toString(w)) + " ") + toString(z))) | |
117 | - | else { | |
118 | - | let O = { | |
119 | - | let P = k | |
120 | - | let Q = size(P) | |
121 | - | let R = nil | |
122 | - | if ((Q == 0)) | |
123 | - | then R | |
139 | + | let V = { | |
140 | + | let W = k | |
141 | + | let X = size(W) | |
142 | + | let Y = nil | |
143 | + | if ((X == 0)) | |
144 | + | then Y | |
124 | 145 | else { | |
125 | - | let | |
126 | - | if (( | |
127 | - | then | |
146 | + | let Z = t(Y, W[0]) | |
147 | + | if ((X == 1)) | |
148 | + | then Z | |
128 | 149 | else { | |
129 | - | let | |
130 | - | if (( | |
131 | - | then | |
150 | + | let aa = t(Z, W[1]) | |
151 | + | if ((X == 2)) | |
152 | + | then aa | |
132 | 153 | else { | |
133 | - | let | |
134 | - | if (( | |
135 | - | then | |
154 | + | let ab = t(aa, W[2]) | |
155 | + | if ((X == 3)) | |
156 | + | then ab | |
136 | 157 | else { | |
137 | - | let | |
138 | - | if (( | |
139 | - | then | |
158 | + | let ac = t(ab, W[3]) | |
159 | + | if ((X == 4)) | |
160 | + | then ac | |
140 | 161 | else { | |
141 | - | let | |
142 | - | if (( | |
143 | - | then | |
162 | + | let ad = t(ac, W[4]) | |
163 | + | if ((X == 5)) | |
164 | + | then ad | |
144 | 165 | else { | |
145 | - | let X = s(W, P[5]) | |
146 | - | if ((Q == 6)) | |
147 | - | then X | |
148 | - | else { | |
149 | - | let Y = s(X, P[6]) | |
150 | - | if ((Q == 7)) | |
151 | - | then Y | |
152 | - | else { | |
153 | - | let Z = s(Y, P[7]) | |
154 | - | if ((Q == 8)) | |
155 | - | then Z | |
156 | - | else { | |
157 | - | let aa = s(Z, P[8]) | |
158 | - | throw("List size exceed 8") | |
159 | - | } | |
160 | - | } | |
161 | - | } | |
166 | + | let ae = t(ad, W[5]) | |
167 | + | throw("List size exceed 5") | |
162 | 168 | } | |
163 | 169 | } | |
164 | 170 | } | |
165 | 171 | } | |
166 | 172 | } | |
167 | 173 | } | |
168 | 174 | } | |
169 | - | let ab = { | |
170 | - | let ac = k | |
171 | - | let ad = size(ac) | |
172 | - | let ae = nil | |
173 | - | if ((ad == 0)) | |
174 | - | then ae | |
175 | - | else { | |
176 | - | let af = t(ae, ac[0]) | |
177 | - | if ((ad == 1)) | |
178 | - | then af | |
179 | - | else { | |
180 | - | let ag = t(af, ac[1]) | |
181 | - | if ((ad == 2)) | |
182 | - | then ag | |
183 | - | else { | |
184 | - | let ah = t(ag, ac[2]) | |
185 | - | if ((ad == 3)) | |
186 | - | then ah | |
187 | - | else { | |
188 | - | let ai = t(ah, ac[3]) | |
189 | - | if ((ad == 4)) | |
190 | - | then ai | |
191 | - | else { | |
192 | - | let aj = t(ai, ac[4]) | |
193 | - | if ((ad == 5)) | |
194 | - | then aj | |
195 | - | else { | |
196 | - | let ak = t(aj, ac[5]) | |
197 | - | if ((ad == 6)) | |
198 | - | then ak | |
199 | - | else { | |
200 | - | let al = t(ak, ac[6]) | |
201 | - | if ((ad == 7)) | |
202 | - | then al | |
203 | - | else { | |
204 | - | let am = t(al, ac[7]) | |
205 | - | if ((ad == 8)) | |
206 | - | then am | |
207 | - | else { | |
208 | - | let an = t(am, ac[8]) | |
209 | - | throw("List size exceed 8") | |
210 | - | } | |
211 | - | } | |
212 | - | } | |
213 | - | } | |
214 | - | } | |
215 | - | } | |
216 | - | } | |
217 | - | } | |
218 | - | } | |
219 | - | } | |
220 | - | if ((y > M)) | |
221 | - | then throw(((((toString(this) + " has ") + toString(y)) + "SWOP in governance. New SWOP in voting ") + toString(M))) | |
222 | - | else ((O ++ ab) ++ [IntegerEntry((toString(j.caller) + b), M), IntegerEntry(d, N)]) | |
175 | + | if ((y > J)) | |
176 | + | then throw(((((toString(this) + " has ") + toString(y)) + "SWOP in governance. New SWOP in voting ") + toString(J))) | |
177 | + | else ((L ++ V) ++ [IntegerEntry((toString(j.caller) + b), J), IntegerEntry(d, K)]) | |
223 | 178 | } | |
224 | 179 | } | |
225 | 180 | } | |
226 | 181 | ||
227 | 182 |
github/deemru/w8io/169f3d6 67.15 ms ◑