tx · 54QdXvgtsTD8B6bYANe3bRvJkE7CeJdjCNppja69xDtj 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx: -0.02000000 Waves 2023.02.24 14:20 [2463691] smart account 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx > SELF 0.00000000 Waves
{ "type": 13, "id": "54QdXvgtsTD8B6bYANe3bRvJkE7CeJdjCNppja69xDtj", "fee": 2000000, "feeAssetId": null, "timestamp": 1677237752890, "version": 2, "chainId": 84, "sender": "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx", "senderPublicKey": "NaY7sqttWGpnVrcb6uE8xPp2VnMjT7fhv3q1TKGL9ar", "proofs": [ "2xXLxUscSPCubdgZJTYnjBH6vuUiAb7McGmcRgwpKDZnqKgVp1VT8mQh1JJfJF1SnasYDTgnNS3JaC8LdNJJsdrY", "63Kv7GfXsM323ifbMJToqaMSji9daD5bjZc1d2YFnfo8NEnw9fHMwYQvXkYPRTYr81QT3PrZShxHht4S65eS4AM", "3ipLVo8TKwxNhE9BeFEh36HAkQ3J7zdWYQaALirmdGPEfU8cs8WB5kx8QcDx5mqf5BtzBJstrZBfEZaiepxJ47RM" ], "script": "base64:AAIEAAAAAAAAACcIAhIQCg4ICAgICAgICAgICAgICBIDCgEIEgwKCgECAQIBAgECAQIAAAAqAAAAAANTRVACAAAAAl9fAAAAABlJZHhDb250cm9sQ2ZnTmV1dHJpbm9EYXBwAAAAAAAAAAABAAAAABhJZHhDb250cm9sQ2ZnQXVjdGlvbkRhcHAAAAAAAAAAAAIAAAAAFElkeENvbnRyb2xDZmdScGREYXBwAAAAAAAAAAADAAAAABVJZHhDb250cm9sQ2ZnTWF0aERhcHAAAAAAAAAAAAQAAAAAHElkeENvbnRyb2xDZmdMaXF1aWRhdGlvbkRhcHAAAAAAAAAAAAUAAAAAFUlkeENvbnRyb2xDZmdSZXN0RGFwcAAAAAAAAAAABgAAAAAdSWR4Q29udHJvbENmZ05vZGVSZWdpc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taW5zTGlzdAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAQAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAgAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAADCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAwAAAAAAAAAAAgAAAAAAAAAAAAkAAGcAAAACBQAAAAVjb3VudAAAAAAAAAAAA34nfuU=", "height": 2463691, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4DWQTrypyU9kDNfS8vit8KxAAmTZA3Vnxi6YhkTvCp93 Next: GYbWdEekRCGbPh7ZiYTkigKdpq7LdxvRXPMjXmrMp6zF Diff:
Old | New | Differences | |
---|---|---|---|
268 | 268 | ||
269 | 269 | @Callable(i) | |
270 | 270 | func callEmergencyShutdown (reason) = { | |
271 | - | let AutoEmergencyOracleAddress = " | |
271 | + | let AutoEmergencyOracleAddress = "3N9mzk4p7jtCatFRRQWUNZXi7z9MHVSug8t" | |
272 | 272 | let callerAddress = toString(i.caller) | |
273 | 273 | if (if ((AutoEmergencyOracleAddress != callerAddress)) | |
274 | 274 | then (toString(governanceContract) != callerAddress) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let IdxControlCfgNeutrinoDapp = 1 | |
7 | 7 | ||
8 | 8 | let IdxControlCfgAuctionDapp = 2 | |
9 | 9 | ||
10 | 10 | let IdxControlCfgRpdDapp = 3 | |
11 | 11 | ||
12 | 12 | let IdxControlCfgMathDapp = 4 | |
13 | 13 | ||
14 | 14 | let IdxControlCfgLiquidationDapp = 5 | |
15 | 15 | ||
16 | 16 | let IdxControlCfgRestDapp = 6 | |
17 | 17 | ||
18 | 18 | let IdxControlCfgNodeRegistryDapp = 7 | |
19 | 19 | ||
20 | 20 | let IdxControlCfgNsbtStakingDapp = 8 | |
21 | 21 | ||
22 | 22 | let IdxControlCfgMediatorDapp = 9 | |
23 | 23 | ||
24 | 24 | let IdxControlCfgSurfStakingDapp = 10 | |
25 | 25 | ||
26 | 26 | let IdxControlCfgGnsbtControllerDapp = 11 | |
27 | 27 | ||
28 | 28 | let IdxControlCfgRestV2Dapp = 12 | |
29 | 29 | ||
30 | 30 | let IdxControlCfgGovernanceDapp = 13 | |
31 | 31 | ||
32 | 32 | let IdxControlCfgPegProviderDapp = 14 | |
33 | 33 | ||
34 | 34 | func keyControlConfig () = "%s__controlConfig" | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func dataControlCfg (neutrinoContract,auctionContract,rpdContract,mathContract,liquidationContract,restContract,nodeRegistryContract,nsbtStakingContract,mediatorContract,surfStakingContract,gnsbtControllerContract,restV2Contract,governanceContract,doraContract) = makeString(["%s%s%s%s%s%s%s%s%s%s%s%s%s%s", neutrinoContract, auctionContract, rpdContract, mathContract, liquidationContract, restContract, nodeRegistryContract, nsbtStakingContract, mediatorContract, surfStakingContract, gnsbtControllerContract, restV2Contract, governanceContract, doraContract], SEP) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, 1000000), 1000000, 100000000) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(addressFromStringValue(address), key), 0) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func getStringByAddressAndKey (address,key) = valueOrElse(getString(address, key), "") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func convertJsonArrayToList (jsonArray) = split(jsonArray, ",") | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | let price = valueOrElse(getInteger(this, "price"), 0) | |
53 | 53 | ||
54 | 54 | let priceIndex = valueOrElse(getInteger(this, "price_index"), 0) | |
55 | 55 | ||
56 | 56 | let isBlocked = valueOrElse(getBoolean(this, "is_blocked"), false) | |
57 | 57 | ||
58 | 58 | let percentPriceOffset = 1000 | |
59 | 59 | ||
60 | 60 | let pubKeyOracles = valueOrElse(getString(this, "oracles"), "") | |
61 | 61 | ||
62 | 62 | let pubKeyOraclesList = convertJsonArrayToList(pubKeyOracles) | |
63 | 63 | ||
64 | 64 | let neutrinoAddress = Address(base58'3N9be2mwrA52WJho6DiesZkk4351GvpnWuj') | |
65 | 65 | ||
66 | 66 | let liquidationAddress = Address(base58'3N24ZPUAMhFm76N3vbNiiDtFqfUnmBHTc5N') | |
67 | 67 | ||
68 | 68 | let neutrinoAsset = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
69 | 69 | ||
70 | 70 | let controlContract = this | |
71 | 71 | ||
72 | 72 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | let controlCfg = split(getStringOrFail(this, keyControlConfig()), SEP) | |
79 | 79 | ||
80 | 80 | let governanceContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp) | |
81 | 81 | ||
82 | 82 | let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoAddress, "balance_lock_neutrino"), 0) | |
83 | 83 | ||
84 | 84 | let wavesLockedBalance = valueOrElse(getInteger(neutrinoAddress, "balance_lock_waves"), 0) | |
85 | 85 | ||
86 | 86 | let reserve = (wavesBalance(neutrinoAddress).regular - wavesLockedBalance) | |
87 | 87 | ||
88 | 88 | let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAsset)).quantity) - assetBalance(neutrinoAddress, neutrinoAsset)) - assetBalance(liquidationAddress, neutrinoAsset)) | |
89 | 89 | ||
90 | 90 | let deficit = (neutrinoSupply - convertWavesToNeutrino(reserve, price)) | |
91 | 91 | ||
92 | 92 | func findPricesInRange (prices) = { | |
93 | 93 | let minPercentBound = 90 | |
94 | 94 | let maxPercentBound = 110 | |
95 | 95 | let p0 = prices[0] | |
96 | 96 | let check0 = if ((0 >= prices[0])) | |
97 | 97 | then [0] | |
98 | 98 | else { | |
99 | 99 | let p01 = ((prices[1] * 100) / p0) | |
100 | 100 | let p02 = ((prices[2] * 100) / p0) | |
101 | 101 | let p03 = ((prices[3] * 100) / p0) | |
102 | 102 | let p04 = ((prices[4] * 100) / p0) | |
103 | 103 | let array1 = if (if ((maxPercentBound > p01)) | |
104 | 104 | then (p01 > minPercentBound) | |
105 | 105 | else false) | |
106 | 106 | then [1, 0] | |
107 | 107 | else [0] | |
108 | 108 | let array2 = if (if ((maxPercentBound > p02)) | |
109 | 109 | then (p02 > minPercentBound) | |
110 | 110 | else false) | |
111 | 111 | then 2 :: array1 | |
112 | 112 | else array1 | |
113 | 113 | let array3 = if (if ((maxPercentBound > p03)) | |
114 | 114 | then (p03 > minPercentBound) | |
115 | 115 | else false) | |
116 | 116 | then 3 :: array2 | |
117 | 117 | else array2 | |
118 | 118 | if (if ((maxPercentBound > p04)) | |
119 | 119 | then (p04 > minPercentBound) | |
120 | 120 | else false) | |
121 | 121 | then 4 :: array3 | |
122 | 122 | else array3 | |
123 | 123 | } | |
124 | 124 | let check1 = if ((size(check0) >= 3)) | |
125 | 125 | then check0 | |
126 | 126 | else { | |
127 | 127 | let p1 = prices[1] | |
128 | 128 | if ((0 >= p1)) | |
129 | 129 | then [1] | |
130 | 130 | else { | |
131 | 131 | let p10 = ((prices[0] * 100) / p1) | |
132 | 132 | let p12 = ((prices[2] * 100) / p1) | |
133 | 133 | let p13 = ((prices[3] * 100) / p1) | |
134 | 134 | let p14 = ((prices[4] * 100) / p1) | |
135 | 135 | let array1 = if (if ((maxPercentBound > p10)) | |
136 | 136 | then (p10 > minPercentBound) | |
137 | 137 | else false) | |
138 | 138 | then [0, 1] | |
139 | 139 | else [1] | |
140 | 140 | let array2 = if (if ((maxPercentBound > p12)) | |
141 | 141 | then (p12 > minPercentBound) | |
142 | 142 | else false) | |
143 | 143 | then 2 :: array1 | |
144 | 144 | else array1 | |
145 | 145 | let array3 = if (if ((maxPercentBound > p13)) | |
146 | 146 | then (p13 > minPercentBound) | |
147 | 147 | else false) | |
148 | 148 | then 3 :: array2 | |
149 | 149 | else array2 | |
150 | 150 | if (if ((maxPercentBound > p14)) | |
151 | 151 | then (p14 > minPercentBound) | |
152 | 152 | else false) | |
153 | 153 | then 4 :: array3 | |
154 | 154 | else array3 | |
155 | 155 | } | |
156 | 156 | } | |
157 | 157 | let check2 = if ((size(check1) >= 3)) | |
158 | 158 | then check1 | |
159 | 159 | else { | |
160 | 160 | let p2 = prices[2] | |
161 | 161 | if ((0 >= p2)) | |
162 | 162 | then [2] | |
163 | 163 | else { | |
164 | 164 | let p20 = ((prices[0] * 100) / p2) | |
165 | 165 | let p21 = ((prices[1] * 100) / p2) | |
166 | 166 | let p23 = ((prices[3] * 100) / p2) | |
167 | 167 | let p24 = ((prices[4] * 100) / p2) | |
168 | 168 | let array1 = if (if ((maxPercentBound > p20)) | |
169 | 169 | then (p20 > minPercentBound) | |
170 | 170 | else false) | |
171 | 171 | then [0, 2] | |
172 | 172 | else [2] | |
173 | 173 | let array2 = if (if ((maxPercentBound > p21)) | |
174 | 174 | then (p21 > minPercentBound) | |
175 | 175 | else false) | |
176 | 176 | then 1 :: array1 | |
177 | 177 | else array1 | |
178 | 178 | let array3 = if (if ((maxPercentBound > p23)) | |
179 | 179 | then (p23 > minPercentBound) | |
180 | 180 | else false) | |
181 | 181 | then 3 :: array2 | |
182 | 182 | else array2 | |
183 | 183 | if (if ((maxPercentBound > p24)) | |
184 | 184 | then (p24 > minPercentBound) | |
185 | 185 | else false) | |
186 | 186 | then 4 :: array3 | |
187 | 187 | else array3 | |
188 | 188 | } | |
189 | 189 | } | |
190 | 190 | let check3 = if ((size(check2) >= 3)) | |
191 | 191 | then check2 | |
192 | 192 | else { | |
193 | 193 | let p3 = prices[3] | |
194 | 194 | if ((0 >= p3)) | |
195 | 195 | then [3] | |
196 | 196 | else { | |
197 | 197 | let p30 = ((prices[0] * 100) / p3) | |
198 | 198 | let p31 = ((prices[1] * 100) / p3) | |
199 | 199 | let p32 = ((prices[2] * 100) / p3) | |
200 | 200 | let p34 = ((prices[4] * 100) / p3) | |
201 | 201 | let array1 = if (if ((maxPercentBound > p30)) | |
202 | 202 | then (p30 > minPercentBound) | |
203 | 203 | else false) | |
204 | 204 | then [0, 3] | |
205 | 205 | else [3] | |
206 | 206 | let array2 = if (if ((maxPercentBound > p31)) | |
207 | 207 | then (p31 > minPercentBound) | |
208 | 208 | else false) | |
209 | 209 | then 1 :: array1 | |
210 | 210 | else array1 | |
211 | 211 | let array3 = if (if ((maxPercentBound > p32)) | |
212 | 212 | then (p32 > minPercentBound) | |
213 | 213 | else false) | |
214 | 214 | then 2 :: array2 | |
215 | 215 | else array2 | |
216 | 216 | if (if ((maxPercentBound > p34)) | |
217 | 217 | then (p34 > minPercentBound) | |
218 | 218 | else false) | |
219 | 219 | then 4 :: array3 | |
220 | 220 | else array3 | |
221 | 221 | } | |
222 | 222 | } | |
223 | 223 | if ((size(check3) >= 3)) | |
224 | 224 | then check3 | |
225 | 225 | else { | |
226 | 226 | let p4 = prices[4] | |
227 | 227 | if ((0 >= p4)) | |
228 | 228 | then [4] | |
229 | 229 | else { | |
230 | 230 | let p40 = ((prices[0] * 100) / p4) | |
231 | 231 | let p41 = ((prices[1] * 100) / p4) | |
232 | 232 | let p42 = ((prices[2] * 100) / p4) | |
233 | 233 | let p43 = ((prices[3] * 100) / p4) | |
234 | 234 | let array1 = if (if ((maxPercentBound > p40)) | |
235 | 235 | then (p40 > minPercentBound) | |
236 | 236 | else false) | |
237 | 237 | then [0, 4] | |
238 | 238 | else [4] | |
239 | 239 | let array2 = if (if ((maxPercentBound > p41)) | |
240 | 240 | then (p41 > minPercentBound) | |
241 | 241 | else false) | |
242 | 242 | then 1 :: array1 | |
243 | 243 | else array1 | |
244 | 244 | let array3 = if (if ((maxPercentBound > p42)) | |
245 | 245 | then (p42 > minPercentBound) | |
246 | 246 | else false) | |
247 | 247 | then 2 :: array2 | |
248 | 248 | else array2 | |
249 | 249 | if (if ((maxPercentBound > p43)) | |
250 | 250 | then (p43 > minPercentBound) | |
251 | 251 | else false) | |
252 | 252 | then 3 :: array3 | |
253 | 253 | else array3 | |
254 | 254 | } | |
255 | 255 | } | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func formattingPriceMsg (price) = toBytes((((("WAVESNEUTRINOPREFIX" + "_") + toString(height)) + "_") + toString(price))) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | @Callable(i) | |
263 | 263 | func constructorV1 (neutrinoContract,auctionContract,rpdContract,mathContract,liquidationContract,restContract,nodeRegistryContract,nsbtStakingContract,mediatorContract,surfStakingContract,gnsbtControllerContract,restV2Contract,governanceContract,doraContract) = if ((i.caller != this)) | |
264 | 264 | then throw("permissions denied") | |
265 | 265 | else [StringEntry(keyControlConfig(), dataControlCfg(neutrinoContract, auctionContract, rpdContract, mathContract, liquidationContract, restContract, nodeRegistryContract, nsbtStakingContract, mediatorContract, surfStakingContract, gnsbtControllerContract, restV2Contract, governanceContract, doraContract))] | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(i) | |
270 | 270 | func callEmergencyShutdown (reason) = { | |
271 | - | let AutoEmergencyOracleAddress = " | |
271 | + | let AutoEmergencyOracleAddress = "3N9mzk4p7jtCatFRRQWUNZXi7z9MHVSug8t" | |
272 | 272 | let callerAddress = toString(i.caller) | |
273 | 273 | if (if ((AutoEmergencyOracleAddress != callerAddress)) | |
274 | 274 | then (toString(governanceContract) != callerAddress) | |
275 | 275 | else false) | |
276 | 276 | then throw("caller must be one an emergency oracle or Governance contract") | |
277 | 277 | else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", callerAddress), StringEntry("is_blocked_reason", reason)] | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | ||
282 | 282 | @Callable(i) | |
283 | 283 | func finalizeCurrentPrice (price1,sign1,price2,sign2,price3,sign3,price4,sign4,price5,sign5) = if (isBlocked) | |
284 | 284 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
285 | 285 | else if ((valueOrElse(getInteger(this, ("price_" + toString(height))), 0) != 0)) | |
286 | 286 | then throw("wait next block") | |
287 | 287 | else if ((pubKeyOraclesList[(height % 5)] != toBase58String(i.callerPublicKey))) | |
288 | 288 | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + pubKeyOraclesList[(height % 5)])) | |
289 | 289 | else { | |
290 | 290 | let prices = [if (sigVerify_8Kb(formattingPriceMsg(price1), sign1, fromBase58String(pubKeyOraclesList[0]))) | |
291 | 291 | then price1 | |
292 | 292 | else 0, if (sigVerify_8Kb(formattingPriceMsg(price2), sign2, fromBase58String(pubKeyOraclesList[1]))) | |
293 | 293 | then price2 | |
294 | 294 | else 0, if (sigVerify_8Kb(formattingPriceMsg(price3), sign3, fromBase58String(pubKeyOraclesList[2]))) | |
295 | 295 | then price3 | |
296 | 296 | else 0, if (sigVerify_8Kb(formattingPriceMsg(price4), sign4, fromBase58String(pubKeyOraclesList[3]))) | |
297 | 297 | then price4 | |
298 | 298 | else 0, if (sigVerify_8Kb(formattingPriceMsg(price5), sign5, fromBase58String(pubKeyOraclesList[4]))) | |
299 | 299 | then price5 | |
300 | 300 | else 0] | |
301 | 301 | let zeroPriceCount = if ((prices[0] == 0)) | |
302 | 302 | then 1 | |
303 | 303 | else (0 + (if ((prices[1] == 0)) | |
304 | 304 | then 1 | |
305 | 305 | else (0 + (if ((prices[2] == 0)) | |
306 | 306 | then 1 | |
307 | 307 | else (0 + (if ((prices[3] == 0)) | |
308 | 308 | then 1 | |
309 | 309 | else (0 + (if ((prices[4] == 0)) | |
310 | 310 | then 1 | |
311 | 311 | else 0)))))))) | |
312 | 312 | if ((zeroPriceCount >= 3)) | |
313 | 313 | then throw("3 prices or more are equals to 0") | |
314 | 314 | else { | |
315 | 315 | let pricesInRange = findPricesInRange(prices) | |
316 | 316 | let priceProvidingCount = size(pricesInRange) | |
317 | 317 | if ((3 > priceProvidingCount)) | |
318 | 318 | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
319 | 319 | ") + pubKeyOraclesList[0]) + "=") + toString(prices[0])) + " | |
320 | 320 | ") + pubKeyOraclesList[1]) + "=") + toString(prices[1])) + " | |
321 | 321 | ") + pubKeyOraclesList[2]) + "=") + toString(prices[2])) + " | |
322 | 322 | ") + pubKeyOraclesList[3]) + "=") + toString(prices[3])) + " | |
323 | 323 | ") + pubKeyOraclesList[4]) + "=") + toString(prices[4]))) | |
324 | 324 | else { | |
325 | 325 | let sum1 = ((prices[pricesInRange[0]] + prices[pricesInRange[1]]) + prices[pricesInRange[2]]) | |
326 | 326 | let sum2 = if ((priceProvidingCount >= 4)) | |
327 | 327 | then (sum1 + prices[pricesInRange[3]]) | |
328 | 328 | else sum1 | |
329 | 329 | let priceSum = if ((priceProvidingCount >= 5)) | |
330 | 330 | then (sum2 + prices[pricesInRange[4]]) | |
331 | 331 | else sum2 | |
332 | 332 | if ((priceProvidingCount >= 6)) | |
333 | 333 | then throw("Invalid pricesInRange creation") | |
334 | 334 | else { | |
335 | 335 | let newPrice = (priceSum / priceProvidingCount) | |
336 | 336 | if (if ((newPrice >= (price + ((price * percentPriceOffset) / 100)))) | |
337 | 337 | then true | |
338 | 338 | else ((price - ((price * percentPriceOffset) / 100)) >= newPrice)) | |
339 | 339 | then { | |
340 | 340 | let reason = "automatic emergency shutdown because of large price variability" | |
341 | 341 | [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", toString(this)), StringEntry("is_blocked_reason", reason), IntegerEntry((("black_swarm_price" + "_") + toString(height)), newPrice)] | |
342 | 342 | } | |
343 | 343 | else { | |
344 | 344 | let newPriceIndex = (priceIndex + 1) | |
345 | 345 | [IntegerEntry("price", newPrice), IntegerEntry(("price_" + toString(height)), newPrice), IntegerEntry("price_index", newPriceIndex), IntegerEntry(("price_index_" + toString(newPriceIndex)), height), IntegerEntry(("deficit_" + toString(height)), deficit), IntegerEntry(("neutrinoSupply_" + toString(height)), neutrinoSupply), IntegerEntry(("deficit_percent_" + toString(height)), if ((neutrinoSupply != 0)) | |
346 | 346 | then ((deficit * 100) / neutrinoSupply) | |
347 | 347 | else 0)] | |
348 | 348 | } | |
349 | 349 | } | |
350 | 350 | } | |
351 | 351 | } | |
352 | 352 | } | |
353 | 353 | ||
354 | 354 | ||
355 | 355 | @Verifier(tx) | |
356 | 356 | func verify () = { | |
357 | 357 | let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP) | |
358 | 358 | let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP) | |
359 | 359 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
360 | 360 | then 1 | |
361 | 361 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
362 | 362 | then 1 | |
363 | 363 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
364 | 364 | then 1 | |
365 | 365 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
366 | 366 | then 2 | |
367 | 367 | else 0)) | |
368 | 368 | (count >= 3) | |
369 | 369 | } | |
370 | 370 |
github/deemru/w8io/169f3d6 46.02 ms ◑