tx · DDvS8M4E879kMFRKsuKngHG2f7MvRzNqCVFo2BfgSdWD 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx: -0.02100000 Waves 2023.02.10 10:52 [2443254] smart account 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx > SELF 0.00000000 Waves
{ "type": 13, "id": "DDvS8M4E879kMFRKsuKngHG2f7MvRzNqCVFo2BfgSdWD", "fee": 2100000, "feeAssetId": null, "timestamp": 1676015646309, "version": 2, "chainId": 84, "sender": "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx", "senderPublicKey": "NaY7sqttWGpnVrcb6uE8xPp2VnMjT7fhv3q1TKGL9ar", "proofs": [ "aCNq1riKLbDiBbGRpSGLXnWZMyGcETLmtrKhTGsvjkcNPbkuyWwcmA8cnQZuW5Eeas27etW6s9xF5EdC7ouk6jQ", "2XUMw1hXxScusyw85f8dV2MMnqoktrinjp4pFqcsGhcqgGh65Xioo1hreuRbXpEePzBbckvHLau7aR4zirfBm2kc", "53EPQrBvibqe1SPDZEB5g47zi8SEkpsaRAbVcxmkzHj8YWm9XMs6jdE1d8SxpufDD8THJ4qJrngPrwQZSu6zEGvr" ], "script": "base64:AAIEAAAAAAAAACsIAhIQCg4ICAgICAgICAgICAgICBIDCgEIEgwKCgECAQIBAgECAQISABIAAAAAKgAAAAADU0VQAgAAAAJfXwAAAAAZSWR4Q29udHJvbENmZ05ldXRyaW5vRGFwcAAAAAAAAAAAAQAAAAAYSWR4Q29udHJvbENmZ0F1Y3Rpb25EYXBwAAAAAAAAAAACAAAAABRJZHhDb250cm9sQ2ZnUnBkRGFwcAAAAAAAAAAAAwAAAAAVSWR4Q29udHJvbENmZ01hdGhEYXBwAAAAAAAAAAAEAAAAABxJZHhDb250cm9sQ2ZnTGlxdWlkYXRpb25EYXBwAAAAAAAAAAAFAAAAABVJZHhDb250cm9sQ2ZnUmVzdERhcHAAAAAAAAAAAAYAAAAAHUlkeENvbnRyb2xDZmdO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A7qmkBc=", "height": 2443254, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8MMAPLgc1dx9wweySh4pAuwYek7XLArWYsFvws4y56t8 Next: AphZ2C6CffKoiMCNuHknyRgdEQnVcgvTaif8ukqbuAfS Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b,c) = fraction(fraction(b, c, 1000000), 1000000, 100000000) | |
4 | + | let a = "__" | |
5 | + | ||
6 | + | let b = 1 | |
7 | + | ||
8 | + | let c = 2 | |
9 | + | ||
10 | + | let d = 3 | |
11 | + | ||
12 | + | let e = 4 | |
13 | + | ||
14 | + | let f = 5 | |
15 | + | ||
16 | + | let g = 6 | |
17 | + | ||
18 | + | let h = 7 | |
19 | + | ||
20 | + | let i = 8 | |
21 | + | ||
22 | + | let j = 9 | |
23 | + | ||
24 | + | let k = 10 | |
25 | + | ||
26 | + | let l = 11 | |
27 | + | ||
28 | + | let m = 12 | |
29 | + | ||
30 | + | let n = 13 | |
31 | + | ||
32 | + | let o = 14 | |
33 | + | ||
34 | + | func p () = "%s__controlConfig" | |
5 | 35 | ||
6 | 36 | ||
7 | - | func | |
37 | + | func q (r,s,t,u,v,w,x,y,z,A,B,C,D,E) = makeString(["%s%s%s%s%s%s%s%s%s%s%s%s%s%s", r, s, t, u, v, w, x, y, z, A, B, C, D, E], a) | |
8 | 38 | ||
9 | 39 | ||
10 | - | func | |
40 | + | func F (G,H) = fraction(fraction(G, H, 1000000), 1000000, 100000000) | |
11 | 41 | ||
12 | 42 | ||
13 | - | func | |
43 | + | func I (J,K) = valueOrElse(getInteger(addressFromStringValue(J), K), 0) | |
14 | 44 | ||
15 | 45 | ||
16 | - | ||
46 | + | func L (J,K) = valueOrElse(getString(J, K), "") | |
17 | 47 | ||
18 | - | let j = valueOrElse(getInteger(this, "price_index"), 0) | |
19 | 48 | ||
20 | - | ||
49 | + | func M (N) = split(N, ",") | |
21 | 50 | ||
22 | - | let l = 25 | |
23 | 51 | ||
24 | - | let | |
52 | + | let H = valueOrElse(getInteger(this, "price"), 0) | |
25 | 53 | ||
26 | - | let | |
54 | + | let O = valueOrElse(getInteger(this, "price_index"), 0) | |
27 | 55 | ||
28 | - | let | |
56 | + | let P = valueOrElse(getBoolean(this, "is_blocked"), false) | |
29 | 57 | ||
30 | - | let | |
58 | + | let Q = 1000 | |
31 | 59 | ||
32 | - | let | |
60 | + | let R = valueOrElse(getString(this, "oracles"), "") | |
33 | 61 | ||
34 | - | let | |
62 | + | let S = M(R) | |
35 | 63 | ||
36 | - | let | |
64 | + | let T = Address(base58'3N9be2mwrA52WJho6DiesZkk4351GvpnWuj') | |
37 | 65 | ||
38 | - | let | |
66 | + | let U = Address(base58'3N24ZPUAMhFm76N3vbNiiDtFqfUnmBHTc5N') | |
39 | 67 | ||
40 | - | let | |
68 | + | let V = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
41 | 69 | ||
42 | - | let | |
70 | + | let W = this | |
43 | 71 | ||
44 | - | func w (x) = { | |
45 | - | let y = 90 | |
46 | - | let z = 110 | |
47 | - | let A = x[0] | |
48 | - | let B = if ((0 >= x[0])) | |
72 | + | func X (J,K) = valueOrErrorMessage(getString(J, K), makeString(["mandatory ", toString(J), ".", K, " is not defined"], "")) | |
73 | + | ||
74 | + | ||
75 | + | func Y (Z,aa) = valueOrErrorMessage(addressFromString(Z[aa]), ("Control cfg doesn't contain address at index " + toString(aa))) | |
76 | + | ||
77 | + | ||
78 | + | let Z = split(X(this, p()), a) | |
79 | + | ||
80 | + | let D = Y(Z, n) | |
81 | + | ||
82 | + | let ab = valueOrElse(getInteger(T, "balance_lock_neutrino"), 0) | |
83 | + | ||
84 | + | let ac = valueOrElse(getInteger(T, "balance_lock_waves"), 0) | |
85 | + | ||
86 | + | let ad = (wavesBalance(T).regular - ac) | |
87 | + | ||
88 | + | let ae = (((ab + value(assetInfo(V)).quantity) - assetBalance(T, V)) - assetBalance(U, V)) | |
89 | + | ||
90 | + | let af = (ae - F(ad, H)) | |
91 | + | ||
92 | + | func ag (ah) = { | |
93 | + | let ai = 90 | |
94 | + | let aj = 110 | |
95 | + | let ak = ah[0] | |
96 | + | let al = if ((0 >= ah[0])) | |
49 | 97 | then [0] | |
50 | 98 | else { | |
51 | - | let | |
52 | - | let | |
53 | - | let | |
54 | - | let | |
55 | - | let | |
56 | - | then ( | |
99 | + | let am = ((ah[1] * 100) / ak) | |
100 | + | let an = ((ah[2] * 100) / ak) | |
101 | + | let ao = ((ah[3] * 100) / ak) | |
102 | + | let ap = ((ah[4] * 100) / ak) | |
103 | + | let aq = if (if ((aj > am)) | |
104 | + | then (am > ai) | |
57 | 105 | else false) | |
58 | 106 | then [1, 0] | |
59 | 107 | else [0] | |
60 | - | let | |
61 | - | then ( | |
108 | + | let ar = if (if ((aj > an)) | |
109 | + | then (an > ai) | |
62 | 110 | else false) | |
63 | - | then 2 :: | |
64 | - | else | |
65 | - | let | |
66 | - | then ( | |
111 | + | then 2 :: aq | |
112 | + | else aq | |
113 | + | let as = if (if ((aj > ao)) | |
114 | + | then (ao > ai) | |
67 | 115 | else false) | |
68 | - | then 3 :: | |
69 | - | else | |
70 | - | if (if (( | |
71 | - | then ( | |
116 | + | then 3 :: ar | |
117 | + | else ar | |
118 | + | if (if ((aj > ap)) | |
119 | + | then (ap > ai) | |
72 | 120 | else false) | |
73 | - | then 4 :: | |
74 | - | else | |
121 | + | then 4 :: as | |
122 | + | else as | |
75 | 123 | } | |
76 | - | let | |
77 | - | then | |
124 | + | let at = if ((size(al) >= 3)) | |
125 | + | then al | |
78 | 126 | else { | |
79 | - | let | |
80 | - | if ((0 >= | |
127 | + | let au = ah[1] | |
128 | + | if ((0 >= au)) | |
81 | 129 | then [1] | |
82 | 130 | else { | |
83 | - | let | |
84 | - | let | |
85 | - | let | |
86 | - | let | |
87 | - | let | |
88 | - | then ( | |
131 | + | let av = ((ah[0] * 100) / au) | |
132 | + | let aw = ((ah[2] * 100) / au) | |
133 | + | let ax = ((ah[3] * 100) / au) | |
134 | + | let ay = ((ah[4] * 100) / au) | |
135 | + | let aq = if (if ((aj > av)) | |
136 | + | then (av > ai) | |
89 | 137 | else false) | |
90 | 138 | then [0, 1] | |
91 | 139 | else [1] | |
92 | - | let | |
93 | - | then ( | |
140 | + | let ar = if (if ((aj > aw)) | |
141 | + | then (aw > ai) | |
94 | 142 | else false) | |
95 | - | then 2 :: | |
96 | - | else | |
97 | - | let | |
98 | - | then ( | |
143 | + | then 2 :: aq | |
144 | + | else aq | |
145 | + | let as = if (if ((aj > ax)) | |
146 | + | then (ax > ai) | |
99 | 147 | else false) | |
100 | - | then 3 :: | |
101 | - | else | |
102 | - | if (if (( | |
103 | - | then ( | |
148 | + | then 3 :: ar | |
149 | + | else ar | |
150 | + | if (if ((aj > ay)) | |
151 | + | then (ay > ai) | |
104 | 152 | else false) | |
105 | - | then 4 :: | |
106 | - | else | |
153 | + | then 4 :: as | |
154 | + | else as | |
107 | 155 | } | |
108 | 156 | } | |
109 | - | let | |
110 | - | then | |
157 | + | let az = if ((size(at) >= 3)) | |
158 | + | then at | |
111 | 159 | else { | |
112 | - | let | |
113 | - | if ((0 >= | |
160 | + | let aA = ah[2] | |
161 | + | if ((0 >= aA)) | |
114 | 162 | then [2] | |
115 | 163 | else { | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | let | |
120 | - | let | |
121 | - | then ( | |
164 | + | let aB = ((ah[0] * 100) / aA) | |
165 | + | let aC = ((ah[1] * 100) / aA) | |
166 | + | let aD = ((ah[3] * 100) / aA) | |
167 | + | let aE = ((ah[4] * 100) / aA) | |
168 | + | let aq = if (if ((aj > aB)) | |
169 | + | then (aB > ai) | |
122 | 170 | else false) | |
123 | 171 | then [0, 2] | |
124 | 172 | else [2] | |
125 | - | let | |
126 | - | then ( | |
173 | + | let ar = if (if ((aj > aC)) | |
174 | + | then (aC > ai) | |
127 | 175 | else false) | |
128 | - | then 1 :: | |
129 | - | else | |
130 | - | let | |
131 | - | then ( | |
176 | + | then 1 :: aq | |
177 | + | else aq | |
178 | + | let as = if (if ((aj > aD)) | |
179 | + | then (aD > ai) | |
132 | 180 | else false) | |
133 | - | then 3 :: | |
134 | - | else | |
135 | - | if (if (( | |
136 | - | then ( | |
181 | + | then 3 :: ar | |
182 | + | else ar | |
183 | + | if (if ((aj > aE)) | |
184 | + | then (aE > ai) | |
137 | 185 | else false) | |
138 | - | then 4 :: | |
139 | - | else | |
186 | + | then 4 :: as | |
187 | + | else as | |
140 | 188 | } | |
141 | 189 | } | |
142 | - | let | |
143 | - | then | |
190 | + | let aF = if ((size(az) >= 3)) | |
191 | + | then az | |
144 | 192 | else { | |
145 | - | let | |
146 | - | if ((0 >= | |
193 | + | let aG = ah[3] | |
194 | + | if ((0 >= aG)) | |
147 | 195 | then [3] | |
148 | 196 | else { | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | then ( | |
197 | + | let aH = ((ah[0] * 100) / aG) | |
198 | + | let aI = ((ah[1] * 100) / aG) | |
199 | + | let aJ = ((ah[2] * 100) / aG) | |
200 | + | let aK = ((ah[4] * 100) / aG) | |
201 | + | let aq = if (if ((aj > aH)) | |
202 | + | then (aH > ai) | |
155 | 203 | else false) | |
156 | 204 | then [0, 3] | |
157 | 205 | else [3] | |
158 | - | let | |
159 | - | then ( | |
206 | + | let ar = if (if ((aj > aI)) | |
207 | + | then (aI > ai) | |
160 | 208 | else false) | |
161 | - | then 1 :: | |
162 | - | else | |
163 | - | let | |
164 | - | then ( | |
209 | + | then 1 :: aq | |
210 | + | else aq | |
211 | + | let as = if (if ((aj > aJ)) | |
212 | + | then (aJ > ai) | |
165 | 213 | else false) | |
166 | - | then 2 :: | |
167 | - | else | |
168 | - | if (if (( | |
169 | - | then ( | |
214 | + | then 2 :: ar | |
215 | + | else ar | |
216 | + | if (if ((aj > aK)) | |
217 | + | then (aK > ai) | |
170 | 218 | else false) | |
171 | - | then 4 :: | |
172 | - | else | |
219 | + | then 4 :: as | |
220 | + | else as | |
173 | 221 | } | |
174 | 222 | } | |
175 | - | if ((size( | |
176 | - | then | |
223 | + | if ((size(aF) >= 3)) | |
224 | + | then aF | |
177 | 225 | else { | |
178 | - | let | |
179 | - | if ((0 >= | |
226 | + | let aL = ah[4] | |
227 | + | if ((0 >= aL)) | |
180 | 228 | then [4] | |
181 | 229 | else { | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | then ( | |
230 | + | let aM = ((ah[0] * 100) / aL) | |
231 | + | let aN = ((ah[1] * 100) / aL) | |
232 | + | let aO = ((ah[2] * 100) / aL) | |
233 | + | let aP = ((ah[3] * 100) / aL) | |
234 | + | let aq = if (if ((aj > aM)) | |
235 | + | then (aM > ai) | |
188 | 236 | else false) | |
189 | 237 | then [0, 4] | |
190 | 238 | else [4] | |
191 | - | let | |
192 | - | then ( | |
239 | + | let ar = if (if ((aj > aN)) | |
240 | + | then (aN > ai) | |
193 | 241 | else false) | |
194 | - | then 1 :: | |
195 | - | else | |
196 | - | let | |
197 | - | then ( | |
242 | + | then 1 :: aq | |
243 | + | else aq | |
244 | + | let as = if (if ((aj > aO)) | |
245 | + | then (aO > ai) | |
198 | 246 | else false) | |
199 | - | then 2 :: | |
200 | - | else | |
201 | - | if (if (( | |
202 | - | then ( | |
247 | + | then 2 :: ar | |
248 | + | else ar | |
249 | + | if (if ((aj > aP)) | |
250 | + | then (aP > ai) | |
203 | 251 | else false) | |
204 | - | then 3 :: | |
205 | - | else | |
252 | + | then 3 :: as | |
253 | + | else as | |
206 | 254 | } | |
207 | 255 | } | |
208 | 256 | } | |
209 | 257 | ||
210 | 258 | ||
211 | - | func | |
259 | + | func aQ (H) = toBytes((((("WAVESNEUTRINOPREFIX" + "_") + toString(height)) + "_") + toString(H))) | |
212 | 260 | ||
213 | 261 | ||
214 | - | @Callable(ah) | |
215 | - | func callEmergencyShutdown (ai) = { | |
216 | - | let aj = "3N65UDbSkK72XdSgH3NhvJ8HaH57x8VmoW3" | |
217 | - | let ak = toString(ah.caller) | |
218 | - | if ((aj != ak)) | |
219 | - | then throw("caller must be one an emergency oracle") | |
220 | - | else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", ak), StringEntry("is_blocked_reason", ai)] | |
262 | + | @Callable(aR) | |
263 | + | func constructorV1 (r,s,t,u,v,w,x,y,z,A,B,C,D,E) = if ((aR.caller != this)) | |
264 | + | then throw("permissions denied") | |
265 | + | else [StringEntry(p(), q(r, s, t, u, v, w, x, y, z, A, B, C, D, E))] | |
266 | + | ||
267 | + | ||
268 | + | ||
269 | + | @Callable(aR) | |
270 | + | func callEmergencyShutdown (aS) = { | |
271 | + | let aT = "3MtJykN7kE16Y3oh6foo2BZvHY7hCpnMsVu" | |
272 | + | let aU = toString(aR.caller) | |
273 | + | if (if ((aT != aU)) | |
274 | + | then (toString(D) != aU) | |
275 | + | else false) | |
276 | + | then throw("caller must be one an emergency oracle or Governance contract") | |
277 | + | else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", aU), StringEntry("is_blocked_reason", aS)] | |
221 | 278 | } | |
222 | 279 | ||
223 | 280 | ||
224 | 281 | ||
225 | - | @Callable( | |
226 | - | func finalizeCurrentPrice ( | |
282 | + | @Callable(aR) | |
283 | + | func finalizeCurrentPrice (aV,aW,aX,aY,aZ,ba,bb,bc,bd,be) = if (P) | |
227 | 284 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
228 | 285 | else if ((valueOrElse(getInteger(this, ("price_" + toString(height))), 0) != 0)) | |
229 | 286 | then throw("wait next block") | |
230 | - | else if (( | |
231 | - | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + | |
287 | + | else if ((S[(height % 5)] != toBase58String(aR.callerPublicKey))) | |
288 | + | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + S[(height % 5)])) | |
232 | 289 | else { | |
233 | - | let | |
234 | - | then | |
235 | - | else 0, if (sigVerify_8Kb( | |
236 | - | then | |
237 | - | else 0, if (sigVerify_8Kb( | |
238 | - | then | |
239 | - | else 0, if (sigVerify_8Kb( | |
240 | - | then | |
241 | - | else 0, if (sigVerify_8Kb( | |
242 | - | then | |
290 | + | let ah = [if (sigVerify_8Kb(aQ(aV), aW, fromBase58String(S[0]))) | |
291 | + | then aV | |
292 | + | else 0, if (sigVerify_8Kb(aQ(aX), aY, fromBase58String(S[1]))) | |
293 | + | then aX | |
294 | + | else 0, if (sigVerify_8Kb(aQ(aZ), ba, fromBase58String(S[2]))) | |
295 | + | then aZ | |
296 | + | else 0, if (sigVerify_8Kb(aQ(bb), bc, fromBase58String(S[3]))) | |
297 | + | then bb | |
298 | + | else 0, if (sigVerify_8Kb(aQ(bd), be, fromBase58String(S[4]))) | |
299 | + | then bd | |
243 | 300 | else 0] | |
244 | - | let | |
301 | + | let bf = if ((ah[0] == 0)) | |
245 | 302 | then 1 | |
246 | - | else (0 + (if (( | |
303 | + | else (0 + (if ((ah[1] == 0)) | |
247 | 304 | then 1 | |
248 | - | else (0 + (if (( | |
305 | + | else (0 + (if ((ah[2] == 0)) | |
249 | 306 | then 1 | |
250 | - | else (0 + (if (( | |
307 | + | else (0 + (if ((ah[3] == 0)) | |
251 | 308 | then 1 | |
252 | - | else (0 + (if (( | |
309 | + | else (0 + (if ((ah[4] == 0)) | |
253 | 310 | then 1 | |
254 | 311 | else 0)))))))) | |
255 | - | if (( | |
312 | + | if ((bf >= 3)) | |
256 | 313 | then throw("3 prices or more are equals to 0") | |
257 | 314 | else { | |
258 | - | let | |
259 | - | let | |
260 | - | if ((3 > | |
315 | + | let bg = ag(ah) | |
316 | + | let bh = size(bg) | |
317 | + | if ((3 > bh)) | |
261 | 318 | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
262 | - | ") + | |
263 | - | ") + | |
264 | - | ") + | |
265 | - | ") + | |
266 | - | ") + | |
319 | + | ") + S[0]) + "=") + toString(ah[0])) + " | |
320 | + | ") + S[1]) + "=") + toString(ah[1])) + " | |
321 | + | ") + S[2]) + "=") + toString(ah[2])) + " | |
322 | + | ") + S[3]) + "=") + toString(ah[3])) + " | |
323 | + | ") + S[4]) + "=") + toString(ah[4]))) | |
267 | 324 | else { | |
268 | - | let | |
269 | - | let | |
270 | - | then ( | |
271 | - | else | |
272 | - | let | |
273 | - | then ( | |
274 | - | else | |
275 | - | if (( | |
325 | + | let bi = ((ah[bg[0]] + ah[bg[1]]) + ah[bg[2]]) | |
326 | + | let bj = if ((bh >= 4)) | |
327 | + | then (bi + ah[bg[3]]) | |
328 | + | else bi | |
329 | + | let bk = if ((bh >= 5)) | |
330 | + | then (bj + ah[bg[4]]) | |
331 | + | else bj | |
332 | + | if ((bh >= 6)) | |
276 | 333 | then throw("Invalid pricesInRange creation") | |
277 | 334 | else { | |
278 | - | let | |
279 | - | if (if (( | |
335 | + | let bl = (bk / bh) | |
336 | + | if (if ((bl >= (H + ((H * Q) / 100)))) | |
280 | 337 | then true | |
281 | - | else (( | |
338 | + | else ((H - ((H * Q) / 100)) >= bl)) | |
282 | 339 | then { | |
283 | - | let | |
284 | - | [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", toString(this)), StringEntry("is_blocked_reason", | |
340 | + | let aS = "automatic emergency shutdown because of large price variability" | |
341 | + | [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", toString(this)), StringEntry("is_blocked_reason", aS), IntegerEntry((("black_swarm_price" + "_") + toString(height)), bl)] | |
285 | 342 | } | |
286 | 343 | else { | |
287 | - | let | |
288 | - | [IntegerEntry("price", | |
289 | - | then (( | |
344 | + | let bm = (O + 1) | |
345 | + | [IntegerEntry("price", bl), IntegerEntry(("price_" + toString(height)), bl), IntegerEntry("price_index", bm), IntegerEntry(("price_index_" + toString(bm)), height), IntegerEntry(("deficit_" + toString(height)), af), IntegerEntry(("neutrinoSupply_" + toString(height)), ae), IntegerEntry(("deficit_percent_" + toString(height)), if ((ae != 0)) | |
346 | + | then ((af * 100) / ae) | |
290 | 347 | else 0)] | |
291 | 348 | } | |
292 | 349 | } | |
295 | 352 | } | |
296 | 353 | ||
297 | 354 | ||
298 | - | @Verifier(aD) | |
299 | - | func aE () = { | |
300 | - | let aF = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
301 | - | let aG = ((((if (sigVerify(aD.bodyBytes, aD.proofs[0], fromBase58String(aF[0]))) | |
355 | + | ||
356 | + | @Callable(aR) | |
357 | + | func updateReservesAndNeutrinoSupply () = { | |
358 | + | func bn (K) = { | |
359 | + | let bo = getInteger(this, K) | |
360 | + | if ($isInstanceOf(bo, "Int")) | |
361 | + | then { | |
362 | + | let bp = bo | |
363 | + | bp | |
364 | + | } | |
365 | + | else 0 | |
366 | + | } | |
367 | + | ||
368 | + | let aa = bn("updateReservesAndNeutrinoSupplyIdx") | |
369 | + | let bq = (aa + 1) | |
370 | + | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", bq), IntegerEntry("reserve", ad), IntegerEntry("neutrinoSupply", ae), IntegerEntry("reservesInUsdn", F(ad, H)), IntegerEntry("deficit", af)] | |
371 | + | } | |
372 | + | ||
373 | + | ||
374 | + | ||
375 | + | @Callable(aR) | |
376 | + | func wavesBalancesVsPayment () = { | |
377 | + | let br = wavesBalance(this) | |
378 | + | [IntegerEntry("wavesBalance_available", br.available), IntegerEntry("wavesBalance_regular", br.regular), IntegerEntry("wavesBalance_generating", br.generating), IntegerEntry("wavesBalance_effective", br.effective), IntegerEntry("waves_payment", value(aR.payments[0]).amount)] | |
379 | + | } | |
380 | + | ||
381 | + | ||
382 | + | @Verifier(bs) | |
383 | + | func bt () = { | |
384 | + | let bu = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], a) | |
385 | + | let bv = split(valueOrElse(getString(W, "%s__multisig"), bu), a) | |
386 | + | let bw = ((((if (sigVerify(bs.bodyBytes, bs.proofs[0], fromBase58String(bv[0]))) | |
302 | 387 | then 1 | |
303 | - | else 0) + (if (sigVerify( | |
388 | + | else 0) + (if (sigVerify(bs.bodyBytes, bs.proofs[1], fromBase58String(bv[1]))) | |
304 | 389 | then 1 | |
305 | - | else 0)) + (if (sigVerify( | |
390 | + | else 0)) + (if (sigVerify(bs.bodyBytes, bs.proofs[2], fromBase58String(bv[2]))) | |
306 | 391 | then 1 | |
307 | - | else 0)) + (if (sigVerify( | |
392 | + | else 0)) + (if (sigVerify(bs.bodyBytes, bs.proofs[3], fromBase58String(bv[3]))) | |
308 | 393 | then 2 | |
309 | 394 | else 0)) | |
310 | - | ( | |
395 | + | (bw >= 3) | |
311 | 396 | } | |
312 | 397 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b,c) = fraction(fraction(b, c, 1000000), 1000000, 100000000) | |
4 | + | let a = "__" | |
5 | + | ||
6 | + | let b = 1 | |
7 | + | ||
8 | + | let c = 2 | |
9 | + | ||
10 | + | let d = 3 | |
11 | + | ||
12 | + | let e = 4 | |
13 | + | ||
14 | + | let f = 5 | |
15 | + | ||
16 | + | let g = 6 | |
17 | + | ||
18 | + | let h = 7 | |
19 | + | ||
20 | + | let i = 8 | |
21 | + | ||
22 | + | let j = 9 | |
23 | + | ||
24 | + | let k = 10 | |
25 | + | ||
26 | + | let l = 11 | |
27 | + | ||
28 | + | let m = 12 | |
29 | + | ||
30 | + | let n = 13 | |
31 | + | ||
32 | + | let o = 14 | |
33 | + | ||
34 | + | func p () = "%s__controlConfig" | |
5 | 35 | ||
6 | 36 | ||
7 | - | func | |
37 | + | func q (r,s,t,u,v,w,x,y,z,A,B,C,D,E) = makeString(["%s%s%s%s%s%s%s%s%s%s%s%s%s%s", r, s, t, u, v, w, x, y, z, A, B, C, D, E], a) | |
8 | 38 | ||
9 | 39 | ||
10 | - | func | |
40 | + | func F (G,H) = fraction(fraction(G, H, 1000000), 1000000, 100000000) | |
11 | 41 | ||
12 | 42 | ||
13 | - | func | |
43 | + | func I (J,K) = valueOrElse(getInteger(addressFromStringValue(J), K), 0) | |
14 | 44 | ||
15 | 45 | ||
16 | - | ||
46 | + | func L (J,K) = valueOrElse(getString(J, K), "") | |
17 | 47 | ||
18 | - | let j = valueOrElse(getInteger(this, "price_index"), 0) | |
19 | 48 | ||
20 | - | ||
49 | + | func M (N) = split(N, ",") | |
21 | 50 | ||
22 | - | let l = 25 | |
23 | 51 | ||
24 | - | let | |
52 | + | let H = valueOrElse(getInteger(this, "price"), 0) | |
25 | 53 | ||
26 | - | let | |
54 | + | let O = valueOrElse(getInteger(this, "price_index"), 0) | |
27 | 55 | ||
28 | - | let | |
56 | + | let P = valueOrElse(getBoolean(this, "is_blocked"), false) | |
29 | 57 | ||
30 | - | let | |
58 | + | let Q = 1000 | |
31 | 59 | ||
32 | - | let | |
60 | + | let R = valueOrElse(getString(this, "oracles"), "") | |
33 | 61 | ||
34 | - | let | |
62 | + | let S = M(R) | |
35 | 63 | ||
36 | - | let | |
64 | + | let T = Address(base58'3N9be2mwrA52WJho6DiesZkk4351GvpnWuj') | |
37 | 65 | ||
38 | - | let | |
66 | + | let U = Address(base58'3N24ZPUAMhFm76N3vbNiiDtFqfUnmBHTc5N') | |
39 | 67 | ||
40 | - | let | |
68 | + | let V = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
41 | 69 | ||
42 | - | let | |
70 | + | let W = this | |
43 | 71 | ||
44 | - | func w (x) = { | |
45 | - | let y = 90 | |
46 | - | let z = 110 | |
47 | - | let A = x[0] | |
48 | - | let B = if ((0 >= x[0])) | |
72 | + | func X (J,K) = valueOrErrorMessage(getString(J, K), makeString(["mandatory ", toString(J), ".", K, " is not defined"], "")) | |
73 | + | ||
74 | + | ||
75 | + | func Y (Z,aa) = valueOrErrorMessage(addressFromString(Z[aa]), ("Control cfg doesn't contain address at index " + toString(aa))) | |
76 | + | ||
77 | + | ||
78 | + | let Z = split(X(this, p()), a) | |
79 | + | ||
80 | + | let D = Y(Z, n) | |
81 | + | ||
82 | + | let ab = valueOrElse(getInteger(T, "balance_lock_neutrino"), 0) | |
83 | + | ||
84 | + | let ac = valueOrElse(getInteger(T, "balance_lock_waves"), 0) | |
85 | + | ||
86 | + | let ad = (wavesBalance(T).regular - ac) | |
87 | + | ||
88 | + | let ae = (((ab + value(assetInfo(V)).quantity) - assetBalance(T, V)) - assetBalance(U, V)) | |
89 | + | ||
90 | + | let af = (ae - F(ad, H)) | |
91 | + | ||
92 | + | func ag (ah) = { | |
93 | + | let ai = 90 | |
94 | + | let aj = 110 | |
95 | + | let ak = ah[0] | |
96 | + | let al = if ((0 >= ah[0])) | |
49 | 97 | then [0] | |
50 | 98 | else { | |
51 | - | let | |
52 | - | let | |
53 | - | let | |
54 | - | let | |
55 | - | let | |
56 | - | then ( | |
99 | + | let am = ((ah[1] * 100) / ak) | |
100 | + | let an = ((ah[2] * 100) / ak) | |
101 | + | let ao = ((ah[3] * 100) / ak) | |
102 | + | let ap = ((ah[4] * 100) / ak) | |
103 | + | let aq = if (if ((aj > am)) | |
104 | + | then (am > ai) | |
57 | 105 | else false) | |
58 | 106 | then [1, 0] | |
59 | 107 | else [0] | |
60 | - | let | |
61 | - | then ( | |
108 | + | let ar = if (if ((aj > an)) | |
109 | + | then (an > ai) | |
62 | 110 | else false) | |
63 | - | then 2 :: | |
64 | - | else | |
65 | - | let | |
66 | - | then ( | |
111 | + | then 2 :: aq | |
112 | + | else aq | |
113 | + | let as = if (if ((aj > ao)) | |
114 | + | then (ao > ai) | |
67 | 115 | else false) | |
68 | - | then 3 :: | |
69 | - | else | |
70 | - | if (if (( | |
71 | - | then ( | |
116 | + | then 3 :: ar | |
117 | + | else ar | |
118 | + | if (if ((aj > ap)) | |
119 | + | then (ap > ai) | |
72 | 120 | else false) | |
73 | - | then 4 :: | |
74 | - | else | |
121 | + | then 4 :: as | |
122 | + | else as | |
75 | 123 | } | |
76 | - | let | |
77 | - | then | |
124 | + | let at = if ((size(al) >= 3)) | |
125 | + | then al | |
78 | 126 | else { | |
79 | - | let | |
80 | - | if ((0 >= | |
127 | + | let au = ah[1] | |
128 | + | if ((0 >= au)) | |
81 | 129 | then [1] | |
82 | 130 | else { | |
83 | - | let | |
84 | - | let | |
85 | - | let | |
86 | - | let | |
87 | - | let | |
88 | - | then ( | |
131 | + | let av = ((ah[0] * 100) / au) | |
132 | + | let aw = ((ah[2] * 100) / au) | |
133 | + | let ax = ((ah[3] * 100) / au) | |
134 | + | let ay = ((ah[4] * 100) / au) | |
135 | + | let aq = if (if ((aj > av)) | |
136 | + | then (av > ai) | |
89 | 137 | else false) | |
90 | 138 | then [0, 1] | |
91 | 139 | else [1] | |
92 | - | let | |
93 | - | then ( | |
140 | + | let ar = if (if ((aj > aw)) | |
141 | + | then (aw > ai) | |
94 | 142 | else false) | |
95 | - | then 2 :: | |
96 | - | else | |
97 | - | let | |
98 | - | then ( | |
143 | + | then 2 :: aq | |
144 | + | else aq | |
145 | + | let as = if (if ((aj > ax)) | |
146 | + | then (ax > ai) | |
99 | 147 | else false) | |
100 | - | then 3 :: | |
101 | - | else | |
102 | - | if (if (( | |
103 | - | then ( | |
148 | + | then 3 :: ar | |
149 | + | else ar | |
150 | + | if (if ((aj > ay)) | |
151 | + | then (ay > ai) | |
104 | 152 | else false) | |
105 | - | then 4 :: | |
106 | - | else | |
153 | + | then 4 :: as | |
154 | + | else as | |
107 | 155 | } | |
108 | 156 | } | |
109 | - | let | |
110 | - | then | |
157 | + | let az = if ((size(at) >= 3)) | |
158 | + | then at | |
111 | 159 | else { | |
112 | - | let | |
113 | - | if ((0 >= | |
160 | + | let aA = ah[2] | |
161 | + | if ((0 >= aA)) | |
114 | 162 | then [2] | |
115 | 163 | else { | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | let | |
120 | - | let | |
121 | - | then ( | |
164 | + | let aB = ((ah[0] * 100) / aA) | |
165 | + | let aC = ((ah[1] * 100) / aA) | |
166 | + | let aD = ((ah[3] * 100) / aA) | |
167 | + | let aE = ((ah[4] * 100) / aA) | |
168 | + | let aq = if (if ((aj > aB)) | |
169 | + | then (aB > ai) | |
122 | 170 | else false) | |
123 | 171 | then [0, 2] | |
124 | 172 | else [2] | |
125 | - | let | |
126 | - | then ( | |
173 | + | let ar = if (if ((aj > aC)) | |
174 | + | then (aC > ai) | |
127 | 175 | else false) | |
128 | - | then 1 :: | |
129 | - | else | |
130 | - | let | |
131 | - | then ( | |
176 | + | then 1 :: aq | |
177 | + | else aq | |
178 | + | let as = if (if ((aj > aD)) | |
179 | + | then (aD > ai) | |
132 | 180 | else false) | |
133 | - | then 3 :: | |
134 | - | else | |
135 | - | if (if (( | |
136 | - | then ( | |
181 | + | then 3 :: ar | |
182 | + | else ar | |
183 | + | if (if ((aj > aE)) | |
184 | + | then (aE > ai) | |
137 | 185 | else false) | |
138 | - | then 4 :: | |
139 | - | else | |
186 | + | then 4 :: as | |
187 | + | else as | |
140 | 188 | } | |
141 | 189 | } | |
142 | - | let | |
143 | - | then | |
190 | + | let aF = if ((size(az) >= 3)) | |
191 | + | then az | |
144 | 192 | else { | |
145 | - | let | |
146 | - | if ((0 >= | |
193 | + | let aG = ah[3] | |
194 | + | if ((0 >= aG)) | |
147 | 195 | then [3] | |
148 | 196 | else { | |
149 | - | let | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | then ( | |
197 | + | let aH = ((ah[0] * 100) / aG) | |
198 | + | let aI = ((ah[1] * 100) / aG) | |
199 | + | let aJ = ((ah[2] * 100) / aG) | |
200 | + | let aK = ((ah[4] * 100) / aG) | |
201 | + | let aq = if (if ((aj > aH)) | |
202 | + | then (aH > ai) | |
155 | 203 | else false) | |
156 | 204 | then [0, 3] | |
157 | 205 | else [3] | |
158 | - | let | |
159 | - | then ( | |
206 | + | let ar = if (if ((aj > aI)) | |
207 | + | then (aI > ai) | |
160 | 208 | else false) | |
161 | - | then 1 :: | |
162 | - | else | |
163 | - | let | |
164 | - | then ( | |
209 | + | then 1 :: aq | |
210 | + | else aq | |
211 | + | let as = if (if ((aj > aJ)) | |
212 | + | then (aJ > ai) | |
165 | 213 | else false) | |
166 | - | then 2 :: | |
167 | - | else | |
168 | - | if (if (( | |
169 | - | then ( | |
214 | + | then 2 :: ar | |
215 | + | else ar | |
216 | + | if (if ((aj > aK)) | |
217 | + | then (aK > ai) | |
170 | 218 | else false) | |
171 | - | then 4 :: | |
172 | - | else | |
219 | + | then 4 :: as | |
220 | + | else as | |
173 | 221 | } | |
174 | 222 | } | |
175 | - | if ((size( | |
176 | - | then | |
223 | + | if ((size(aF) >= 3)) | |
224 | + | then aF | |
177 | 225 | else { | |
178 | - | let | |
179 | - | if ((0 >= | |
226 | + | let aL = ah[4] | |
227 | + | if ((0 >= aL)) | |
180 | 228 | then [4] | |
181 | 229 | else { | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | then ( | |
230 | + | let aM = ((ah[0] * 100) / aL) | |
231 | + | let aN = ((ah[1] * 100) / aL) | |
232 | + | let aO = ((ah[2] * 100) / aL) | |
233 | + | let aP = ((ah[3] * 100) / aL) | |
234 | + | let aq = if (if ((aj > aM)) | |
235 | + | then (aM > ai) | |
188 | 236 | else false) | |
189 | 237 | then [0, 4] | |
190 | 238 | else [4] | |
191 | - | let | |
192 | - | then ( | |
239 | + | let ar = if (if ((aj > aN)) | |
240 | + | then (aN > ai) | |
193 | 241 | else false) | |
194 | - | then 1 :: | |
195 | - | else | |
196 | - | let | |
197 | - | then ( | |
242 | + | then 1 :: aq | |
243 | + | else aq | |
244 | + | let as = if (if ((aj > aO)) | |
245 | + | then (aO > ai) | |
198 | 246 | else false) | |
199 | - | then 2 :: | |
200 | - | else | |
201 | - | if (if (( | |
202 | - | then ( | |
247 | + | then 2 :: ar | |
248 | + | else ar | |
249 | + | if (if ((aj > aP)) | |
250 | + | then (aP > ai) | |
203 | 251 | else false) | |
204 | - | then 3 :: | |
205 | - | else | |
252 | + | then 3 :: as | |
253 | + | else as | |
206 | 254 | } | |
207 | 255 | } | |
208 | 256 | } | |
209 | 257 | ||
210 | 258 | ||
211 | - | func | |
259 | + | func aQ (H) = toBytes((((("WAVESNEUTRINOPREFIX" + "_") + toString(height)) + "_") + toString(H))) | |
212 | 260 | ||
213 | 261 | ||
214 | - | @Callable(ah) | |
215 | - | func callEmergencyShutdown (ai) = { | |
216 | - | let aj = "3N65UDbSkK72XdSgH3NhvJ8HaH57x8VmoW3" | |
217 | - | let ak = toString(ah.caller) | |
218 | - | if ((aj != ak)) | |
219 | - | then throw("caller must be one an emergency oracle") | |
220 | - | else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", ak), StringEntry("is_blocked_reason", ai)] | |
262 | + | @Callable(aR) | |
263 | + | func constructorV1 (r,s,t,u,v,w,x,y,z,A,B,C,D,E) = if ((aR.caller != this)) | |
264 | + | then throw("permissions denied") | |
265 | + | else [StringEntry(p(), q(r, s, t, u, v, w, x, y, z, A, B, C, D, E))] | |
266 | + | ||
267 | + | ||
268 | + | ||
269 | + | @Callable(aR) | |
270 | + | func callEmergencyShutdown (aS) = { | |
271 | + | let aT = "3MtJykN7kE16Y3oh6foo2BZvHY7hCpnMsVu" | |
272 | + | let aU = toString(aR.caller) | |
273 | + | if (if ((aT != aU)) | |
274 | + | then (toString(D) != aU) | |
275 | + | else false) | |
276 | + | then throw("caller must be one an emergency oracle or Governance contract") | |
277 | + | else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", aU), StringEntry("is_blocked_reason", aS)] | |
221 | 278 | } | |
222 | 279 | ||
223 | 280 | ||
224 | 281 | ||
225 | - | @Callable( | |
226 | - | func finalizeCurrentPrice ( | |
282 | + | @Callable(aR) | |
283 | + | func finalizeCurrentPrice (aV,aW,aX,aY,aZ,ba,bb,bc,bd,be) = if (P) | |
227 | 284 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
228 | 285 | else if ((valueOrElse(getInteger(this, ("price_" + toString(height))), 0) != 0)) | |
229 | 286 | then throw("wait next block") | |
230 | - | else if (( | |
231 | - | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + | |
287 | + | else if ((S[(height % 5)] != toBase58String(aR.callerPublicKey))) | |
288 | + | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + S[(height % 5)])) | |
232 | 289 | else { | |
233 | - | let | |
234 | - | then | |
235 | - | else 0, if (sigVerify_8Kb( | |
236 | - | then | |
237 | - | else 0, if (sigVerify_8Kb( | |
238 | - | then | |
239 | - | else 0, if (sigVerify_8Kb( | |
240 | - | then | |
241 | - | else 0, if (sigVerify_8Kb( | |
242 | - | then | |
290 | + | let ah = [if (sigVerify_8Kb(aQ(aV), aW, fromBase58String(S[0]))) | |
291 | + | then aV | |
292 | + | else 0, if (sigVerify_8Kb(aQ(aX), aY, fromBase58String(S[1]))) | |
293 | + | then aX | |
294 | + | else 0, if (sigVerify_8Kb(aQ(aZ), ba, fromBase58String(S[2]))) | |
295 | + | then aZ | |
296 | + | else 0, if (sigVerify_8Kb(aQ(bb), bc, fromBase58String(S[3]))) | |
297 | + | then bb | |
298 | + | else 0, if (sigVerify_8Kb(aQ(bd), be, fromBase58String(S[4]))) | |
299 | + | then bd | |
243 | 300 | else 0] | |
244 | - | let | |
301 | + | let bf = if ((ah[0] == 0)) | |
245 | 302 | then 1 | |
246 | - | else (0 + (if (( | |
303 | + | else (0 + (if ((ah[1] == 0)) | |
247 | 304 | then 1 | |
248 | - | else (0 + (if (( | |
305 | + | else (0 + (if ((ah[2] == 0)) | |
249 | 306 | then 1 | |
250 | - | else (0 + (if (( | |
307 | + | else (0 + (if ((ah[3] == 0)) | |
251 | 308 | then 1 | |
252 | - | else (0 + (if (( | |
309 | + | else (0 + (if ((ah[4] == 0)) | |
253 | 310 | then 1 | |
254 | 311 | else 0)))))))) | |
255 | - | if (( | |
312 | + | if ((bf >= 3)) | |
256 | 313 | then throw("3 prices or more are equals to 0") | |
257 | 314 | else { | |
258 | - | let | |
259 | - | let | |
260 | - | if ((3 > | |
315 | + | let bg = ag(ah) | |
316 | + | let bh = size(bg) | |
317 | + | if ((3 > bh)) | |
261 | 318 | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
262 | - | ") + | |
263 | - | ") + | |
264 | - | ") + | |
265 | - | ") + | |
266 | - | ") + | |
319 | + | ") + S[0]) + "=") + toString(ah[0])) + " | |
320 | + | ") + S[1]) + "=") + toString(ah[1])) + " | |
321 | + | ") + S[2]) + "=") + toString(ah[2])) + " | |
322 | + | ") + S[3]) + "=") + toString(ah[3])) + " | |
323 | + | ") + S[4]) + "=") + toString(ah[4]))) | |
267 | 324 | else { | |
268 | - | let | |
269 | - | let | |
270 | - | then ( | |
271 | - | else | |
272 | - | let | |
273 | - | then ( | |
274 | - | else | |
275 | - | if (( | |
325 | + | let bi = ((ah[bg[0]] + ah[bg[1]]) + ah[bg[2]]) | |
326 | + | let bj = if ((bh >= 4)) | |
327 | + | then (bi + ah[bg[3]]) | |
328 | + | else bi | |
329 | + | let bk = if ((bh >= 5)) | |
330 | + | then (bj + ah[bg[4]]) | |
331 | + | else bj | |
332 | + | if ((bh >= 6)) | |
276 | 333 | then throw("Invalid pricesInRange creation") | |
277 | 334 | else { | |
278 | - | let | |
279 | - | if (if (( | |
335 | + | let bl = (bk / bh) | |
336 | + | if (if ((bl >= (H + ((H * Q) / 100)))) | |
280 | 337 | then true | |
281 | - | else (( | |
338 | + | else ((H - ((H * Q) / 100)) >= bl)) | |
282 | 339 | then { | |
283 | - | let | |
284 | - | [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", toString(this)), StringEntry("is_blocked_reason", | |
340 | + | let aS = "automatic emergency shutdown because of large price variability" | |
341 | + | [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", toString(this)), StringEntry("is_blocked_reason", aS), IntegerEntry((("black_swarm_price" + "_") + toString(height)), bl)] | |
285 | 342 | } | |
286 | 343 | else { | |
287 | - | let | |
288 | - | [IntegerEntry("price", | |
289 | - | then (( | |
344 | + | let bm = (O + 1) | |
345 | + | [IntegerEntry("price", bl), IntegerEntry(("price_" + toString(height)), bl), IntegerEntry("price_index", bm), IntegerEntry(("price_index_" + toString(bm)), height), IntegerEntry(("deficit_" + toString(height)), af), IntegerEntry(("neutrinoSupply_" + toString(height)), ae), IntegerEntry(("deficit_percent_" + toString(height)), if ((ae != 0)) | |
346 | + | then ((af * 100) / ae) | |
290 | 347 | else 0)] | |
291 | 348 | } | |
292 | 349 | } | |
293 | 350 | } | |
294 | 351 | } | |
295 | 352 | } | |
296 | 353 | ||
297 | 354 | ||
298 | - | @Verifier(aD) | |
299 | - | func aE () = { | |
300 | - | let aF = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
301 | - | let aG = ((((if (sigVerify(aD.bodyBytes, aD.proofs[0], fromBase58String(aF[0]))) | |
355 | + | ||
356 | + | @Callable(aR) | |
357 | + | func updateReservesAndNeutrinoSupply () = { | |
358 | + | func bn (K) = { | |
359 | + | let bo = getInteger(this, K) | |
360 | + | if ($isInstanceOf(bo, "Int")) | |
361 | + | then { | |
362 | + | let bp = bo | |
363 | + | bp | |
364 | + | } | |
365 | + | else 0 | |
366 | + | } | |
367 | + | ||
368 | + | let aa = bn("updateReservesAndNeutrinoSupplyIdx") | |
369 | + | let bq = (aa + 1) | |
370 | + | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", bq), IntegerEntry("reserve", ad), IntegerEntry("neutrinoSupply", ae), IntegerEntry("reservesInUsdn", F(ad, H)), IntegerEntry("deficit", af)] | |
371 | + | } | |
372 | + | ||
373 | + | ||
374 | + | ||
375 | + | @Callable(aR) | |
376 | + | func wavesBalancesVsPayment () = { | |
377 | + | let br = wavesBalance(this) | |
378 | + | [IntegerEntry("wavesBalance_available", br.available), IntegerEntry("wavesBalance_regular", br.regular), IntegerEntry("wavesBalance_generating", br.generating), IntegerEntry("wavesBalance_effective", br.effective), IntegerEntry("waves_payment", value(aR.payments[0]).amount)] | |
379 | + | } | |
380 | + | ||
381 | + | ||
382 | + | @Verifier(bs) | |
383 | + | func bt () = { | |
384 | + | let bu = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], a) | |
385 | + | let bv = split(valueOrElse(getString(W, "%s__multisig"), bu), a) | |
386 | + | let bw = ((((if (sigVerify(bs.bodyBytes, bs.proofs[0], fromBase58String(bv[0]))) | |
302 | 387 | then 1 | |
303 | - | else 0) + (if (sigVerify( | |
388 | + | else 0) + (if (sigVerify(bs.bodyBytes, bs.proofs[1], fromBase58String(bv[1]))) | |
304 | 389 | then 1 | |
305 | - | else 0)) + (if (sigVerify( | |
390 | + | else 0)) + (if (sigVerify(bs.bodyBytes, bs.proofs[2], fromBase58String(bv[2]))) | |
306 | 391 | then 1 | |
307 | - | else 0)) + (if (sigVerify( | |
392 | + | else 0)) + (if (sigVerify(bs.bodyBytes, bs.proofs[3], fromBase58String(bv[3]))) | |
308 | 393 | then 2 | |
309 | 394 | else 0)) | |
310 | - | ( | |
395 | + | (bw >= 3) | |
311 | 396 | } | |
312 | 397 |
github/deemru/w8io/026f985 165.18 ms ◑