tx · AtfGtTHi9aaqg2CKM11VaAinGnnHWtqfupyHA3kMD8mQ 3N1xMZuhBESXRLRkDdNhuaFbhVwCR7xipHM: -0.01000000 Waves 2019.12.24 17:24 [823202] smart account 3N1xMZuhBESXRLRkDdNhuaFbhVwCR7xipHM > SELF 0.00000000 Waves
{ "type": 13, "id": "AtfGtTHi9aaqg2CKM11VaAinGnnHWtqfupyHA3kMD8mQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1577197461554, "version": 1, "sender": "3N1xMZuhBESXRLRkDdNhuaFbhVwCR7xipHM", "senderPublicKey": "AGSxrxNsSqDSP86bEHZjiGFm1e8VDYpfvgHLJTkmyyJY", "proofs": [ "3LeGx2aQ8qPJ1ZrCJabAYaiX2JbhiNvvUiNTnGzoPpEyXFj9k9FR7cZKZSHHBefL2b2kXYQyDYrrhDsbdKYvw4P1" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAALwEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAAAxnZXRCb29sQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAA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lEYXRhRW50cnkAAAACBQAAAA1QcmljZUluZGV4S2V5BQAAAA1uZXdQcmljZUluZGV4CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAYZ2V0SGVpZ2h0UHJpY2VCeUluZGV4S2V5AAAAAQUAAAANbmV3UHJpY2VJbmRleAUAAAAGaGVpZ2h0BQAAAANuaWwAAAAAwbtcww==", "chainId": 84, "height": 823202, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = { | |
5 | + | let c = getInteger(this, b) | |
6 | + | if ($isInstanceOf(c, "Int")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else 0 | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | func e (b) = { | |
16 | + | let c = getString(this, b) | |
17 | + | if ($isInstanceOf(c, "String")) | |
18 | + | then { | |
19 | + | let d = c | |
20 | + | d | |
21 | + | } | |
22 | + | else "" | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | func f (b) = { | |
27 | + | let c = getBoolean(this, b) | |
28 | + | if ($isInstanceOf(c, "Boolean")) | |
29 | + | then { | |
30 | + | let d = c | |
31 | + | d | |
32 | + | } | |
33 | + | else false | |
34 | + | } | |
35 | + | ||
36 | + | ||
37 | + | func g (h,b) = { | |
38 | + | let c = getInteger(h, b) | |
39 | + | if ($isInstanceOf(c, "Int")) | |
40 | + | then { | |
41 | + | let d = c | |
42 | + | d | |
43 | + | } | |
44 | + | else 0 | |
45 | + | } | |
46 | + | ||
47 | + | ||
48 | + | func i (h,b) = { | |
49 | + | let c = getString(h, b) | |
50 | + | if ($isInstanceOf(c, "String")) | |
51 | + | then { | |
52 | + | let d = c | |
53 | + | d | |
54 | + | } | |
55 | + | else "" | |
56 | + | } | |
57 | + | ||
58 | + | ||
59 | + | func j (k,l) = { | |
60 | + | let m = split(k, l) | |
61 | + | if ((take(m[1], 1) == ",")) | |
62 | + | then (m[0] + drop(m[1], 1)) | |
63 | + | else (dropRight(m[0], 1) + m[1]) | |
64 | + | } | |
65 | + | ||
66 | + | ||
67 | + | func n (o) = split(o, ",") | |
68 | + | ||
69 | + | ||
70 | + | let p = "block" | |
71 | + | ||
72 | + | let q = "confirm_tx" | |
73 | + | ||
74 | + | let r = "none" | |
75 | + | ||
76 | + | let s = "oracles" | |
77 | + | ||
78 | + | let t = "admins" | |
79 | + | ||
80 | + | let u = "vote_interval" | |
81 | + | ||
82 | + | let v = "coefficient_oracle" | |
83 | + | ||
84 | + | let w = "coefficient_admin" | |
85 | + | ||
86 | + | let x = "price_offset" | |
87 | + | ||
88 | + | let y = "price" | |
89 | + | ||
90 | + | let z = "is_blocked" | |
91 | + | ||
92 | + | let A = "vote_expire_block" | |
93 | + | ||
94 | + | let B = "price_index" | |
95 | + | ||
96 | + | let C = "last_confirm_tx" | |
97 | + | ||
98 | + | func D (E) = ("admin_vote_" + E) | |
99 | + | ||
100 | + | ||
101 | + | func F (E) = (("vote_action_" + E) + "_arguments") | |
102 | + | ||
103 | + | ||
104 | + | func G (H) = (("black_swarm_price" + "_") + toString(H)) | |
105 | + | ||
106 | + | ||
107 | + | func I (H) = ((y + "_") + toString(H)) | |
108 | + | ||
109 | + | ||
110 | + | func J (K) = ((B + "_") + toString(K)) | |
111 | + | ||
112 | + | ||
113 | + | func L (M) = ("price_" + toString(M)) | |
114 | + | ||
115 | + | ||
116 | + | let N = a(y) | |
117 | + | ||
118 | + | let O = a(B) | |
119 | + | ||
120 | + | let P = f(z) | |
121 | + | ||
122 | + | let Q = a(v) | |
123 | + | ||
124 | + | let R = a(w) | |
125 | + | ||
126 | + | let S = a(x) | |
127 | + | ||
128 | + | let T = a(u) | |
129 | + | ||
130 | + | let U = a(A) | |
131 | + | ||
132 | + | let V = e(s) | |
133 | + | ||
134 | + | let W = n(V) | |
135 | + | ||
136 | + | func X (E) = e(D(E)) | |
137 | + | ||
138 | + | ||
139 | + | func Y (E) = e(F(E)) | |
140 | + | ||
141 | + | ||
142 | + | func Z (E,M) = g(addressFromStringValue(E), L(M)) | |
143 | + | ||
144 | + | ||
145 | + | func aa (M) = a(I(M)) | |
146 | + | ||
147 | + | ||
148 | + | func ab (h) = isDefined(indexOf(V, h)) | |
149 | + | ||
150 | + | ||
151 | + | func ac (ad,h,ae) = if ((X(h) == ae)) | |
152 | + | then 1 | |
153 | + | else 0 | |
154 | + | ||
155 | + | ||
156 | + | func af (ad,h) = (ad + ac(ad, h, p)) | |
157 | + | ||
158 | + | ||
159 | + | func ag (ad,h) = (ad + ac(ad, h, q)) | |
160 | + | ||
161 | + | ||
162 | + | func ah (ai,ae) = if ((ae == p)) | |
163 | + | then { | |
164 | + | let aj = ai | |
165 | + | let ak = size(aj) | |
166 | + | let al = 0 | |
167 | + | if ((ak == 0)) | |
168 | + | then al | |
169 | + | else { | |
170 | + | let am = af(al, aj[0]) | |
171 | + | if ((ak == 1)) | |
172 | + | then am | |
173 | + | else { | |
174 | + | let an = af(am, aj[1]) | |
175 | + | if ((ak == 2)) | |
176 | + | then an | |
177 | + | else { | |
178 | + | let ao = af(an, aj[2]) | |
179 | + | if ((ak == 3)) | |
180 | + | then ao | |
181 | + | else { | |
182 | + | let ap = af(ao, aj[3]) | |
183 | + | if ((ak == 4)) | |
184 | + | then ap | |
185 | + | else { | |
186 | + | let aq = af(ap, aj[4]) | |
187 | + | if ((ak == 5)) | |
188 | + | then aq | |
189 | + | else { | |
190 | + | let ar = af(aq, aj[5]) | |
191 | + | throw("List size exceed 5") | |
192 | + | } | |
193 | + | } | |
194 | + | } | |
195 | + | } | |
196 | + | } | |
197 | + | } | |
198 | + | } | |
199 | + | else if ((ae == q)) | |
200 | + | then { | |
201 | + | let as = ai | |
202 | + | let at = size(as) | |
203 | + | let au = 0 | |
204 | + | if ((at == 0)) | |
205 | + | then au | |
206 | + | else { | |
207 | + | let av = ag(au, as[0]) | |
208 | + | if ((at == 1)) | |
209 | + | then av | |
210 | + | else { | |
211 | + | let aw = ag(av, as[1]) | |
212 | + | if ((at == 2)) | |
213 | + | then aw | |
214 | + | else { | |
215 | + | let ax = ag(aw, as[2]) | |
216 | + | if ((at == 3)) | |
217 | + | then ax | |
218 | + | else { | |
219 | + | let ay = ag(ax, as[3]) | |
220 | + | if ((at == 4)) | |
221 | + | then ay | |
222 | + | else { | |
223 | + | let az = ag(ay, as[4]) | |
224 | + | if ((at == 5)) | |
225 | + | then az | |
226 | + | else { | |
227 | + | let aA = ag(az, as[5]) | |
228 | + | throw("List size exceed 5") | |
229 | + | } | |
230 | + | } | |
231 | + | } | |
232 | + | } | |
233 | + | } | |
234 | + | } | |
235 | + | } | |
236 | + | else throw("action not found") | |
237 | + | ||
238 | + | ||
239 | + | func aB (ai,aC) = (((((if ((Y(ai[0]) == aC)) | |
240 | + | then 1 | |
241 | + | else 0) + (if ((Y(ai[1]) == aC)) | |
242 | + | then 1 | |
243 | + | else 0)) + (if ((Y(ai[2]) == aC)) | |
244 | + | then 1 | |
245 | + | else 0)) + (if ((Y(ai[3]) == aC)) | |
246 | + | then 1 | |
247 | + | else 0)) + (if ((Y(ai[4]) == aC)) | |
248 | + | then 1 | |
249 | + | else 0)) | |
250 | + | ||
251 | + | ||
252 | + | @Callable(aD) | |
253 | + | func finalizeCurrentPrice () = { | |
254 | + | let aE = [Z(W[0], height), Z(W[1], height), Z(W[2], height), Z(W[3], height), Z(W[4], height)] | |
255 | + | let aF = (((((if ((aE[0] != 0)) | |
256 | + | then 1 | |
257 | + | else 0) + (if ((aE[1] != 0)) | |
258 | + | then 1 | |
259 | + | else 0)) + (if ((aE[2] != 0)) | |
260 | + | then 1 | |
261 | + | else 0)) + (if ((aE[3] != 0)) | |
262 | + | then 1 | |
263 | + | else 0)) + (if ((aE[4] != 0)) | |
264 | + | then 1 | |
265 | + | else 0)) | |
266 | + | let aG = ((((aE[0] + aE[1]) + aE[2]) + aE[3]) + aE[4]) | |
267 | + | let aH = (aG / aF) | |
268 | + | if (P) | |
269 | + | then throw("contract is blocked") | |
270 | + | else if ((aa(height) != 0)) | |
271 | + | then throw("wait next block") | |
272 | + | else if ((Q > aF)) | |
273 | + | then throw((((toString(Q) + "/5 oracles need to set a price (") + toString(aF)) + ")")) | |
274 | + | else if (if ((aH >= (N + ((N * S) / 100)))) | |
275 | + | then true | |
276 | + | else ((N - ((N * S) / 100)) >= aH)) | |
277 | + | then WriteSet([DataEntry(z, true), DataEntry(G(height), aH)]) | |
278 | + | else { | |
279 | + | let aI = (O + 1) | |
280 | + | WriteSet([DataEntry(y, aH), DataEntry(I(height), aH), DataEntry(B, aI), DataEntry(J(aI), height)]) | |
281 | + | } | |
282 | + | } | |
283 | + | ||
284 | + |
github/deemru/w8io/169f3d6 25.40 ms ◑