tx · 9Cvyt7LMYP1L3mKk9fnXu3PpPL53nWo5MiTmP4wtVJeD 3MpSmqMhKBgK7D3xFAYrQFuwYVgcB9PpgWL: -0.01000000 Waves 2019.11.16 00:01 [766734] smart account 3MpSmqMhKBgK7D3xFAYrQFuwYVgcB9PpgWL > SELF 0.00000000 Waves
{ "type": 13, "id": "9Cvyt7LMYP1L3mKk9fnXu3PpPL53nWo5MiTmP4wtVJeD", "fee": 1000000, "feeAssetId": null, "timestamp": 1573851679653, "version": 1, "sender": "3MpSmqMhKBgK7D3xFAYrQFuwYVgcB9PpgWL", "senderPublicKey": "F8w3Fx1bBR68fYWynD9hgM8w1ztdTAZhJhNyu3BmPXvq", "proofs": [ "3QBsgQcJfWrdTkD7XTfvwbFiGkNx9NnP1TgWSvTmPZaUBagXLoUrfWHJB4vSTxgfX6pqG91mbULWVy6GeArgSqsy" ], "script": "base64:AAIDAAAAAAAAAA4IARIDCgEBEgASAwoBCAAAAEEBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBwEAAAAYZ2V0TnVtYmVyQnlBZGRyZXNzQW5kS2V5AAAA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AABFJc1ByaWNlUGVuZGluZ0tleQcJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADElzQmxvY2tlZEtleQMJAABnAAAAAgUAAAAOYmxvY2tWb3RlQ291bnQFAAAAE2JmdENvZWZmaWNpZW50QWRtaW4GBwUAAAALcmVzZXRSZXN1bHQDCQAAZgAAAAIFAAAAEHVwZGF0ZVZvdGVzQ291bnQFAAAAE2JmdENvZWZmaWNpZW50QWRtaW4JAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAFFNjcmlwdFVwZGF0ZUJsb2NrS2V5AwkAAGYAAAACBQAAABB1cGRhdGVWb3Rlc0NvdW50BQAAABNiZnRDb2VmZmljaWVudEFkbWluCQAAZAAAAAIFAAAABmhlaWdodAUAAAAUc2NyaXB0VXBkYXRlSW50ZXJ2YWwFAAAAEXNjcmlwdFVwZGF0ZUJsb2NrBQAAAAtyZXNldFJlc3VsdAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASQmxvY2tFeHBpcmVWb3RlS2V5AwkAAGYAAAACBQAAAAZoZWlnaHQFAAAAD2Jsb2NrRXhwaXJlVm90ZQkAAGQAAAACBQAAAAZoZWlnaHQFAAAADHZvdGVJbnRlcnZhbAUAAAAPYmxvY2tFeHBpcmVWb3RlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAVZ2V0QWRtaW5Wb3RlQWN0aW9uS2V5AAAAAQUAAAAHYWNjb3VudAUAAAAGYWN0aW9uBQAAAANuaWwAAAAAwuWGFQ==", "chainId": 84, "height": 766734, "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 getNumberByKey (key) = match getInteger(this, key) { | |
5 | + | case a: Int => | |
6 | + | a | |
7 | + | case _ => | |
8 | + | 0 | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | func getStringByKey (key) = match getString(this, key) { | |
13 | + | case a: String => | |
14 | + | a | |
15 | + | case _ => | |
16 | + | "" | |
17 | + | } | |
18 | + | ||
19 | + | ||
20 | + | func getBoolByKey (key) = match getBoolean(this, key) { | |
21 | + | case a: Boolean => | |
22 | + | a | |
23 | + | case _ => | |
24 | + | false | |
25 | + | } | |
26 | + | ||
27 | + | ||
28 | + | func getNumberByAddressAndKey (address,key) = match getInteger(address, key) { | |
29 | + | case a: Int => | |
30 | + | a | |
31 | + | case _ => | |
32 | + | 0 | |
33 | + | } | |
34 | + | ||
35 | + | ||
36 | + | func getStringByAddressAndKey (address,key) = match getString(address, key) { | |
37 | + | case a: String => | |
38 | + | a | |
39 | + | case _ => | |
40 | + | "" | |
41 | + | } | |
42 | + | ||
43 | + | ||
44 | + | func dropElementInJsonArray (array,element) = { | |
45 | + | let splitedArray = split(array, element) | |
46 | + | if ((take(splitedArray[1], 1) == ",")) | |
47 | + | then (splitedArray[0] + drop(splitedArray[1], 1)) | |
48 | + | else (dropRight(splitedArray[0], 1) + splitedArray[1]) | |
49 | + | } | |
50 | + | ||
51 | + | ||
52 | + | func convertJsonArrayToList (jsonArray) = split(jsonArray, ",") | |
53 | + | ||
54 | + | ||
55 | + | let BLOCK = "block" | |
56 | + | ||
57 | + | let UNBLOCK = "unblock" | |
58 | + | ||
59 | + | let UPDATE = "update" | |
60 | + | ||
61 | + | let OraclesKey = "oracles" | |
62 | + | ||
63 | + | let AdminsKey = "admins" | |
64 | + | ||
65 | + | let VoteIntervalKey = "vote_interval" | |
66 | + | ||
67 | + | let CoefficientOracleKey = "coefficient_oracle" | |
68 | + | ||
69 | + | let CoefficientAdminKey = "coefficient_admin" | |
70 | + | ||
71 | + | let ScriptUpdateIntervalKey = "script_update_interval" | |
72 | + | ||
73 | + | let ProvidingIntervalKey = "providing_interval" | |
74 | + | ||
75 | + | let PriceKey = "price" | |
76 | + | ||
77 | + | let PriceOffsetKey = "price_offset" | |
78 | + | ||
79 | + | let IsPricePendingKey = "is_pending_price" | |
80 | + | ||
81 | + | let IsBlockedKey = "is_blocked" | |
82 | + | ||
83 | + | let OracleIsProvideKey = "oracle_is_provide_" | |
84 | + | ||
85 | + | let OracleProvidePriceKey = "oracle_price_provide_" | |
86 | + | ||
87 | + | let AdminVoteKey = "admin_vote_" | |
88 | + | ||
89 | + | let ActionKey = "action" | |
90 | + | ||
91 | + | let BlockExpireProvidingKey = "providing_expire_block" | |
92 | + | ||
93 | + | let BlackSwarmPriceKey = "black_swarm_price" | |
94 | + | ||
95 | + | let BlockExpireVoteKey = "vote_expire_block" | |
96 | + | ||
97 | + | let ScriptUpdateBlockKey = "script_update_block" | |
98 | + | ||
99 | + | let PriceIndexKey = "price_index" | |
100 | + | ||
101 | + | func getOracleIsProvideKey (owner) = (OracleIsProvideKey + owner) | |
102 | + | ||
103 | + | ||
104 | + | func getOracleProvidePriceKey (owner) = (OracleProvidePriceKey + owner) | |
105 | + | ||
106 | + | ||
107 | + | func getAdminVoteKey (owner) = (AdminVoteKey + owner) | |
108 | + | ||
109 | + | ||
110 | + | func getAdminVoteActionKey (owner) = ((getAdminVoteKey(owner) + "_") + ActionKey) | |
111 | + | ||
112 | + | ||
113 | + | func getBlackSwarmPriceKey (block) = ((BlackSwarmPriceKey + "_") + toString(block)) | |
114 | + | ||
115 | + | ||
116 | + | func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block)) | |
117 | + | ||
118 | + | ||
119 | + | func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index)) | |
120 | + | ||
121 | + | ||
122 | + | let price = getNumberByKey(PriceKey) | |
123 | + | ||
124 | + | let priceIndex = getNumberByKey(PriceIndexKey) | |
125 | + | ||
126 | + | let providingInterval = getNumberByKey(ProvidingIntervalKey) | |
127 | + | ||
128 | + | let blockExpireProviding = getNumberByKey(BlockExpireProvidingKey) | |
129 | + | ||
130 | + | let blockExpireVote = getNumberByKey(BlockExpireVoteKey) | |
131 | + | ||
132 | + | let scriptUpdateBlock = getNumberByKey(ScriptUpdateBlockKey) | |
133 | + | ||
134 | + | let scriptUpdateInterval = getNumberByKey(ScriptUpdateIntervalKey) | |
135 | + | ||
136 | + | let isPricePending = getBoolByKey(IsPricePendingKey) | |
137 | + | ||
138 | + | let isBlocked = getBoolByKey(IsBlockedKey) | |
139 | + | ||
140 | + | let bftCoefficientOracle = getNumberByKey(CoefficientOracleKey) | |
141 | + | ||
142 | + | let bftCoefficientAdmin = getNumberByKey(CoefficientAdminKey) | |
143 | + | ||
144 | + | let percentPriceOffset = getNumberByKey(PriceOffsetKey) | |
145 | + | ||
146 | + | let voteInterval = getNumberByKey(VoteIntervalKey) | |
147 | + | ||
148 | + | let oracles = getStringByKey(OraclesKey) | |
149 | + | ||
150 | + | let admins = getStringByKey(AdminsKey) | |
151 | + | ||
152 | + | let oraclesList = convertJsonArrayToList(oracles) | |
153 | + | ||
154 | + | let adminsList = convertJsonArrayToList(admins) | |
155 | + | ||
156 | + | func getAdminVoteAction (owner) = getStringByKey(getAdminVoteActionKey(owner)) | |
157 | + | ||
158 | + | ||
159 | + | func isOracleProvide (owner) = getBoolByKey(getOracleIsProvideKey(owner)) | |
160 | + | ||
161 | + | ||
162 | + | func isOracleProvideInt (owner) = if (isOracleProvide(owner)) | |
163 | + | then 1 | |
164 | + | else 0 | |
165 | + | ||
166 | + | ||
167 | + | func getOracleProvidePrice (owner) = getNumberByKey(getOracleProvidePriceKey(owner)) | |
168 | + | ||
169 | + | ||
170 | + | func isOracle (address) = isDefined(indexOf(oracles, address)) | |
171 | + | ||
172 | + | ||
173 | + | func isAdmin (address) = isDefined(indexOf(admins, address)) | |
174 | + | ||
175 | + | ||
176 | + | func sumOraclePrice (base,address) = (base + (getOracleProvidePrice(address) * isOracleProvideInt(address))) | |
177 | + | ||
178 | + | ||
179 | + | func filterAdminsVoteByAction (result,address,action) = address :: result | |
180 | + | ||
181 | + | ||
182 | + | func filterAdminsVoteByBlockAction (result,address) = filterAdminsVoteByAction(result, address, BLOCK) | |
183 | + | ||
184 | + | ||
185 | + | func filterAdminsVoteByUnblockAction (result,address) = filterAdminsVoteByAction(result, address, UNBLOCK) | |
186 | + | ||
187 | + | ||
188 | + | func filterAdminsVoteByUpdateAction (result,address) = filterAdminsVoteByAction(result, address, UPDATE) | |
189 | + | ||
190 | + | ||
191 | + | @Callable(i) | |
192 | + | func setCurrentPrice (newPrice) = { | |
193 | + | let account = toString(i.caller) | |
194 | + | let isOracleProvideList = [isOracleProvide(oraclesList[0]), isOracleProvide(oraclesList[1]), isOracleProvide(oraclesList[2]), isOracleProvide(oraclesList[3]), isOracleProvide(oraclesList[4])] | |
195 | + | let priceProvidingCount = ((((((if (isOracleProvideList[0]) | |
196 | + | then 1 | |
197 | + | else 0) + (if (isOracleProvideList[1]) | |
198 | + | then 1 | |
199 | + | else 0)) + (if (isOracleProvideList[2]) | |
200 | + | then 1 | |
201 | + | else 0)) + (if (isOracleProvideList[3]) | |
202 | + | then 1 | |
203 | + | else 0)) + (if (isOracleProvideList[4]) | |
204 | + | then 1 | |
205 | + | else 0)) + 1) | |
206 | + | if (isBlocked) | |
207 | + | then throw("contract is blocked") | |
208 | + | else if (!(isOracle(account))) | |
209 | + | then throw("permission denied") | |
210 | + | else if (if ((blockExpireProviding >= height)) | |
211 | + | then isOracleProvide(account) | |
212 | + | else false) | |
213 | + | then throw("price is already provided") | |
214 | + | else if (if ((height > blockExpireProviding)) | |
215 | + | then isPricePending | |
216 | + | else false) | |
217 | + | then throw("use finalizeCurrentPrice") | |
218 | + | else WriteSet([DataEntry(getOracleIsProvideKey(oraclesList[0]), if ((height > blockExpireProviding)) | |
219 | + | then false | |
220 | + | else isOracleProvideList[0]), DataEntry(getOracleIsProvideKey(oraclesList[1]), if ((height > blockExpireProviding)) | |
221 | + | then false | |
222 | + | else isOracleProvideList[1]), DataEntry(getOracleIsProvideKey(oraclesList[2]), if ((height > blockExpireProviding)) | |
223 | + | then false | |
224 | + | else isOracleProvideList[2]), DataEntry(getOracleIsProvideKey(oraclesList[3]), if ((height > blockExpireProviding)) | |
225 | + | then false | |
226 | + | else isOracleProvideList[3]), DataEntry(getOracleIsProvideKey(oraclesList[4]), if ((height > blockExpireProviding)) | |
227 | + | then false | |
228 | + | else isOracleProvideList[4]), DataEntry(getOracleIsProvideKey(account), true), DataEntry(getOracleProvidePriceKey(account), newPrice), DataEntry(BlockExpireProvidingKey, if ((height > blockExpireProviding)) | |
229 | + | then (height + providingInterval) | |
230 | + | else blockExpireProviding), DataEntry(IsPricePendingKey, if (if ((blockExpireProviding >= height)) | |
231 | + | then (priceProvidingCount >= bftCoefficientOracle) | |
232 | + | else false) | |
233 | + | then true | |
234 | + | else isPricePending)]) | |
235 | + | } | |
236 | + | ||
237 | + | ||
238 | + | ||
239 | + | @Callable(i) | |
240 | + | func finalizeCurrentPrice () = { | |
241 | + | let isOracleProvideList = [isOracleProvide(oraclesList[0]), isOracleProvide(oraclesList[1]), isOracleProvide(oraclesList[2]), isOracleProvide(oraclesList[3]), isOracleProvide(oraclesList[4])] | |
242 | + | let priceProvidingCount = (((((if (isOracleProvideList[0]) | |
243 | + | then 1 | |
244 | + | else 0) + (if (isOracleProvideList[1]) | |
245 | + | then 1 | |
246 | + | else 0)) + (if (isOracleProvideList[2]) | |
247 | + | then 1 | |
248 | + | else 0)) + (if (isOracleProvideList[3]) | |
249 | + | then 1 | |
250 | + | else 0)) + (if (isOracleProvideList[4]) | |
251 | + | then 1 | |
252 | + | else 0)) | |
253 | + | let priceSum = (((((getOracleProvidePrice(oraclesList[0]) * (if (isOracleProvideList[0]) | |
254 | + | then 1 | |
255 | + | else 0)) + (getOracleProvidePrice(oraclesList[1]) * (if (isOracleProvideList[1]) | |
256 | + | then 1 | |
257 | + | else 0))) + (getOracleProvidePrice(oraclesList[2]) * (if (isOracleProvideList[2]) | |
258 | + | then 1 | |
259 | + | else 0))) + (getOracleProvidePrice(oraclesList[3]) * (if (isOracleProvideList[3]) | |
260 | + | then 1 | |
261 | + | else 0))) + (getOracleProvidePrice(oraclesList[4]) * (if (isOracleProvideList[4]) | |
262 | + | then 1 | |
263 | + | else 0))) | |
264 | + | let newPrice = (priceSum / priceProvidingCount) | |
265 | + | if (isBlocked) | |
266 | + | then throw("contract is blocked") | |
267 | + | else if (if (!(isPricePending)) | |
268 | + | then true | |
269 | + | else (blockExpireProviding >= height)) | |
270 | + | then throw("wait for the end of the price providing") | |
271 | + | else if ((bftCoefficientOracle > priceProvidingCount)) | |
272 | + | then throw("3/5 oracles need to set a price") | |
273 | + | else if (if ((newPrice >= (price + ((price * percentPriceOffset) / 100)))) | |
274 | + | then true | |
275 | + | else ((price - ((price * percentPriceOffset) / 100)) >= newPrice)) | |
276 | + | then WriteSet([DataEntry(IsBlockedKey, true), DataEntry(getBlackSwarmPriceKey(height), newPrice)]) | |
277 | + | else { | |
278 | + | let newPriceIndex = (priceIndex + 1) | |
279 | + | WriteSet([DataEntry(PriceKey, newPrice), DataEntry(getPriceHistoryKey(height), newPrice), DataEntry(IsPricePendingKey, false), DataEntry(PriceIndexKey, newPriceIndex), DataEntry(getHeightPriceByIndexKey(newPriceIndex), height)]) | |
280 | + | } | |
281 | + | } | |
282 | + | ||
283 | + | ||
284 | + | ||
285 | + | @Callable(i) | |
286 | + | func vote (action) = { | |
287 | + | let account = toString(i.caller) | |
288 | + | let adminsListWithoutAccount = convertJsonArrayToList(dropElementInJsonArray(admins, account)) | |
289 | + | let lastAction = getAdminVoteAction(account) | |
290 | + | let blockVotes = { | |
291 | + | let $list98299897 = adminsListWithoutAccount | |
292 | + | let $size98299897 = size($list98299897) | |
293 | + | let $acc098299897 = nil | |
294 | + | if (($size98299897 == 0)) | |
295 | + | then $acc098299897 | |
296 | + | else { | |
297 | + | let $acc198299897 = filterAdminsVoteByBlockAction($acc098299897, $list98299897[0]) | |
298 | + | if (($size98299897 == 1)) | |
299 | + | then $acc198299897 | |
300 | + | else { | |
301 | + | let $acc298299897 = filterAdminsVoteByBlockAction($acc198299897, $list98299897[1]) | |
302 | + | if (($size98299897 == 2)) | |
303 | + | then $acc298299897 | |
304 | + | else { | |
305 | + | let $acc398299897 = filterAdminsVoteByBlockAction($acc298299897, $list98299897[2]) | |
306 | + | if (($size98299897 == 3)) | |
307 | + | then $acc398299897 | |
308 | + | else { | |
309 | + | let $acc498299897 = filterAdminsVoteByBlockAction($acc398299897, $list98299897[3]) | |
310 | + | if (($size98299897 == 4)) | |
311 | + | then $acc498299897 | |
312 | + | else { | |
313 | + | let $acc598299897 = filterAdminsVoteByBlockAction($acc498299897, $list98299897[4]) | |
314 | + | if (($size98299897 == 5)) | |
315 | + | then $acc598299897 | |
316 | + | else { | |
317 | + | let $acc698299897 = filterAdminsVoteByBlockAction($acc598299897, $list98299897[5]) | |
318 | + | throw("List size exceed 5") | |
319 | + | } | |
320 | + | } | |
321 | + | } | |
322 | + | } | |
323 | + | } | |
324 | + | } | |
325 | + | } | |
326 | + | let unblockVotes = { | |
327 | + | let $list99219991 = adminsListWithoutAccount | |
328 | + | let $size99219991 = size($list99219991) | |
329 | + | let $acc099219991 = nil | |
330 | + | if (($size99219991 == 0)) | |
331 | + | then $acc099219991 | |
332 | + | else { | |
333 | + | let $acc199219991 = filterAdminsVoteByUnblockAction($acc099219991, $list99219991[0]) | |
334 | + | if (($size99219991 == 1)) | |
335 | + | then $acc199219991 | |
336 | + | else { | |
337 | + | let $acc299219991 = filterAdminsVoteByUnblockAction($acc199219991, $list99219991[1]) | |
338 | + | if (($size99219991 == 2)) | |
339 | + | then $acc299219991 | |
340 | + | else { | |
341 | + | let $acc399219991 = filterAdminsVoteByUnblockAction($acc299219991, $list99219991[2]) | |
342 | + | if (($size99219991 == 3)) | |
343 | + | then $acc399219991 | |
344 | + | else { | |
345 | + | let $acc499219991 = filterAdminsVoteByUnblockAction($acc399219991, $list99219991[3]) | |
346 | + | if (($size99219991 == 4)) | |
347 | + | then $acc499219991 | |
348 | + | else { | |
349 | + | let $acc599219991 = filterAdminsVoteByUnblockAction($acc499219991, $list99219991[4]) | |
350 | + | if (($size99219991 == 5)) | |
351 | + | then $acc599219991 | |
352 | + | else { | |
353 | + | let $acc699219991 = filterAdminsVoteByUnblockAction($acc599219991, $list99219991[5]) | |
354 | + | throw("List size exceed 5") | |
355 | + | } | |
356 | + | } | |
357 | + | } | |
358 | + | } | |
359 | + | } | |
360 | + | } | |
361 | + | } | |
362 | + | let updateVotes = { | |
363 | + | let $list1001410083 = adminsListWithoutAccount | |
364 | + | let $size1001410083 = size($list1001410083) | |
365 | + | let $acc01001410083 = nil | |
366 | + | if (($size1001410083 == 0)) | |
367 | + | then $acc01001410083 | |
368 | + | else { | |
369 | + | let $acc11001410083 = filterAdminsVoteByUpdateAction($acc01001410083, $list1001410083[0]) | |
370 | + | if (($size1001410083 == 1)) | |
371 | + | then $acc11001410083 | |
372 | + | else { | |
373 | + | let $acc21001410083 = filterAdminsVoteByUpdateAction($acc11001410083, $list1001410083[1]) | |
374 | + | if (($size1001410083 == 2)) | |
375 | + | then $acc21001410083 | |
376 | + | else { | |
377 | + | let $acc31001410083 = filterAdminsVoteByUpdateAction($acc21001410083, $list1001410083[2]) | |
378 | + | if (($size1001410083 == 3)) | |
379 | + | then $acc31001410083 | |
380 | + | else { | |
381 | + | let $acc41001410083 = filterAdminsVoteByUpdateAction($acc31001410083, $list1001410083[3]) | |
382 | + | if (($size1001410083 == 4)) | |
383 | + | then $acc41001410083 | |
384 | + | else { | |
385 | + | let $acc51001410083 = filterAdminsVoteByUpdateAction($acc41001410083, $list1001410083[4]) | |
386 | + | if (($size1001410083 == 5)) | |
387 | + | then $acc51001410083 | |
388 | + | else { | |
389 | + | let $acc61001410083 = filterAdminsVoteByUpdateAction($acc51001410083, $list1001410083[5]) | |
390 | + | throw("List size exceed 5") | |
391 | + | } | |
392 | + | } | |
393 | + | } | |
394 | + | } | |
395 | + | } | |
396 | + | } | |
397 | + | } | |
398 | + | let blockVoteCount = (size(blockVotes) + (if ((action == BLOCK)) | |
399 | + | then 1 | |
400 | + | else 0)) | |
401 | + | let unblockVoteCount = (size(unblockVotes) + (if ((action == UNBLOCK)) | |
402 | + | then 1 | |
403 | + | else 0)) | |
404 | + | let updateVotesCount = (size(updateVotes) + (if ((action == UPDATE)) | |
405 | + | then 1 | |
406 | + | else 0)) | |
407 | + | let resetResult = [DataEntry(BlockExpireVoteKey, 0), DataEntry(BlockExpireProvidingKey, 0), DataEntry(getAdminVoteActionKey(adminsListWithoutAccount[0]), ""), DataEntry(getAdminVoteActionKey(adminsListWithoutAccount[1]), ""), DataEntry(getAdminVoteActionKey(adminsListWithoutAccount[2]), ""), DataEntry(getAdminVoteActionKey(adminsListWithoutAccount[3]), "")] | |
408 | + | if (if ((blockVoteCount >= bftCoefficientAdmin)) | |
409 | + | then true | |
410 | + | else (unblockVoteCount >= bftCoefficientAdmin)) | |
411 | + | then WriteSet([DataEntry(IsPricePendingKey, false), DataEntry(IsBlockedKey, if ((blockVoteCount >= bftCoefficientAdmin)) | |
412 | + | then true | |
413 | + | else false)] :: resetResult) | |
414 | + | else if ((updateVotesCount > bftCoefficientAdmin)) | |
415 | + | then WriteSet(DataEntry(ScriptUpdateBlockKey, if ((updateVotesCount > bftCoefficientAdmin)) | |
416 | + | then (height + scriptUpdateInterval) | |
417 | + | else scriptUpdateBlock) :: resetResult) | |
418 | + | else WriteSet([DataEntry(BlockExpireVoteKey, if ((height > blockExpireVote)) | |
419 | + | then (height + voteInterval) | |
420 | + | else blockExpireVote), DataEntry(getAdminVoteActionKey(account), action)]) | |
421 | + | } | |
422 | + | ||
423 | + |
github/deemru/w8io/026f985 38.60 ms ◑