tx · 7bbfKv3JTFn5HijQm1fbxYeLecvXjXVeo6yWLbjzY3kX 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx: -0.02100000 Waves 2023.02.23 12:27 [2462121] smart account 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx > SELF 0.00000000 Waves
{ "type": 13, "id": "7bbfKv3JTFn5HijQm1fbxYeLecvXjXVeo6yWLbjzY3kX", "fee": 2100000, "feeAssetId": null, "timestamp": 1677144466960, "version": 2, "chainId": 84, "sender": "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx", "senderPublicKey": "NaY7sqttWGpnVrcb6uE8xPp2VnMjT7fhv3q1TKGL9ar", "proofs": [ "3qCAfobbwZThDiSVMX1cDcbE6Dneed33JCk22BFBcRkzQAke17aBMt7SckdD72vpwQkuz7uevwWVUnuXz5p56jKX", "hkYbrnNT6Hgp2E18ycow1Uu1XfCq9RmCgieW2vnBVxDmu2xFFaB7aZw5QP4n5dc5w7HkuyUwWMMwBPuVzwMU695", "3JFDcqoT39gJRxHevr4TjSDNwSZLfFywuKLQZmXJRPFGJWHHjoJz9iZzXZXeitnMikSJNo2YLW6PjPPmkaxR2kWX" ], "script": "base64:AAIEAAAAAAAAACsIAhIQCg4ICAgICAgICAgICAgICBIDCgEIEgwKCgECAQIBAgECAQISABIAAAAAKgAAAAADU0VQAgAAAAJfXwAAAAAZSWR4Q29udHJvbENmZ05ldXRyaW5vRGFwcAAAAAAAAAAAAQAAAAAYSWR4Q29udHJvbENmZ0F1Y3Rpb25EYXBwAAAAAAAAAAACAAAAABRJZHhDb250cm9sQ2ZnUnBkRGFwcAAAAAAAAAAAAwAAAAAVSWR4Q29udHJvbENmZ01hdGhEYXBwAAAAAAAAAAAEAAAAABxJZHhDb250cm9sQ2ZnTGlxdWlkYXRpb25EYXBwAAAAAAAAAAAFAAAAABVJZHhDb250cm9sQ2ZnUmVzdERhcHAAAAAAAAAAAAYAAAAAHUlkeENvbnRyb2xDZ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AAAz2OWqc=", "height": 2462121, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6SRZ6ZPJwtj3Lt5gdJAzbmKe2XWwCGqjJv6YJqHYydN1 Next: AW9nL2mMwUUtgyAgfqmViJmJETEnnkuCigbzsFM3uVRh Diff:
Old | New | Differences | |
---|---|---|---|
268 | 268 | ||
269 | 269 | @Callable(i) | |
270 | 270 | func callEmergencyShutdown (reason) = { | |
271 | - | let AutoEmergencyOracleAddress = " | |
271 | + | let AutoEmergencyOracleAddress = "3MvjNutKphGxPNvmkPd8AQ8ctngyBuzJHmc" | |
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 = "3MvjNutKphGxPNvmkPd8AQ8ctngyBuzJHmc" | |
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 | ||
356 | 356 | @Callable(i) | |
357 | 357 | func updateReservesAndNeutrinoSupply () = { | |
358 | 358 | func getNumberByKeyInternal (key) = match getInteger(this, key) { | |
359 | 359 | case a: Int => | |
360 | 360 | a | |
361 | 361 | case _ => | |
362 | 362 | 0 | |
363 | 363 | } | |
364 | 364 | ||
365 | 365 | let idx = getNumberByKeyInternal("updateReservesAndNeutrinoSupplyIdx") | |
366 | 366 | let newIdx = (idx + 1) | |
367 | 367 | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", newIdx), IntegerEntry("reserve", reserve), IntegerEntry("neutrinoSupply", neutrinoSupply), IntegerEntry("reservesInUsdn", convertWavesToNeutrino(reserve, price)), IntegerEntry("deficit", deficit)] | |
368 | 368 | } | |
369 | 369 | ||
370 | 370 | ||
371 | 371 | ||
372 | 372 | @Callable(i) | |
373 | 373 | func wavesBalancesVsPayment () = { | |
374 | 374 | let b = wavesBalance(this) | |
375 | 375 | [IntegerEntry("wavesBalance_available", b.available), IntegerEntry("wavesBalance_regular", b.regular), IntegerEntry("wavesBalance_generating", b.generating), IntegerEntry("wavesBalance_effective", b.effective), IntegerEntry("waves_payment", value(i.payments[0]).amount)] | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | @Verifier(tx) | |
380 | 380 | func verify () = { | |
381 | 381 | let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP) | |
382 | 382 | let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP) | |
383 | 383 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
384 | 384 | then 1 | |
385 | 385 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
386 | 386 | then 1 | |
387 | 387 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
388 | 388 | then 1 | |
389 | 389 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
390 | 390 | then 2 | |
391 | 391 | else 0)) | |
392 | 392 | (count >= 3) | |
393 | 393 | } | |
394 | 394 |
github/deemru/w8io/026f985 61.22 ms ◑