tx · 3C1dHAxuvg6svsZc7FRUffUkNHaPNiZpYQphXR8sVS4A

3MuCdqDmAmkQvSaTerShifXYehJSQr5pGH8:  -0.01000000 Waves

2019.11.16 18:04 [767830] smart account 3MuCdqDmAmkQvSaTerShifXYehJSQr5pGH8 > SELF 0.00000000 Waves

{ "type": 13, "id": "3C1dHAxuvg6svsZc7FRUffUkNHaPNiZpYQphXR8sVS4A", "fee": 1000000, "feeAssetId": null, "timestamp": 1573916666946, "version": 1, "sender": "3MuCdqDmAmkQvSaTerShifXYehJSQr5pGH8", "senderPublicKey": "5CpuSKa9NrFVgL4mdgYwGdKZLRpfUT3uQj7puAPL8QMm", "proofs": [ "3gQori9GdmoWiavZxntqiFoXRqqFUyYVG87HnmuKnTWYdE17Bv1rGthb5wnRs2jroHefhtu5KfovsoTjtcNuQqVx" ], "script": "base64:AAIDAAAAAAAAAA4IARIDCgEBEgASAwoBCAAAAEEBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBwEAAAAYZ2V0TnVtYmVyQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZGRyZXNzAAAAA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AAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAARSXNQcmljZVBlbmRpbmdLZXkHCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAxJc0Jsb2NrZWRLZXkDCQAAZwAAAAIFAAAADmJsb2NrVm90ZUNvdW50BQAAABNiZnRDb2VmZmljaWVudEFkbWluBgcFAAAAC3Jlc2V0UmVzdWx0AwkAAGYAAAACBQAAABB1cGRhdGVWb3Rlc0NvdW50BQAAABNiZnRDb2VmZmljaWVudEFkbWluCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABRTY3JpcHRVcGRhdGVCbG9ja0tleQMJAABmAAAAAgUAAAAQdXBkYXRlVm90ZXNDb3VudAUAAAATYmZ0Q29lZmZpY2llbnRBZG1pbgkAAGQAAAACBQAAAAZoZWlnaHQFAAAAFHNjcmlwdFVwZGF0ZUludGVydmFsBQAAABFzY3JpcHRVcGRhdGVCbG9jawUAAAALcmVzZXRSZXN1bHQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEkJsb2NrRXhwaXJlVm90ZUtleQMJAABmAAAAAgUAAAAGaGVpZ2h0BQAAAA9ibG9ja0V4cGlyZVZvdGUJAABkAAAAAgUAAAAGaGVpZ2h0BQAAAAx2b3RlSW50ZXJ2YWwFAAAAD2Jsb2NrRXhwaXJlVm90ZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAFWdldEFkbWluVm90ZUFjdGlvbktleQAAAAEFAAAAB2FjY291bnQFAAAABmFjdGlvbgUAAAADbmlsAAAAAA0nbJ4=", "chainId": 84, "height": 767830, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
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 $list98799947 = adminsListWithoutAccount
292+ let $size98799947 = size($list98799947)
293+ let $acc098799947 = nil
294+ if (($size98799947 == 0))
295+ then $acc098799947
296+ else {
297+ let $acc198799947 = filterAdminsVoteByBlockAction($acc098799947, $list98799947[0])
298+ if (($size98799947 == 1))
299+ then $acc198799947
300+ else {
301+ let $acc298799947 = filterAdminsVoteByBlockAction($acc198799947, $list98799947[1])
302+ if (($size98799947 == 2))
303+ then $acc298799947
304+ else {
305+ let $acc398799947 = filterAdminsVoteByBlockAction($acc298799947, $list98799947[2])
306+ if (($size98799947 == 3))
307+ then $acc398799947
308+ else {
309+ let $acc498799947 = filterAdminsVoteByBlockAction($acc398799947, $list98799947[3])
310+ if (($size98799947 == 4))
311+ then $acc498799947
312+ else {
313+ let $acc598799947 = filterAdminsVoteByBlockAction($acc498799947, $list98799947[4])
314+ if (($size98799947 == 5))
315+ then $acc598799947
316+ else {
317+ let $acc698799947 = filterAdminsVoteByBlockAction($acc598799947, $list98799947[5])
318+ throw("List size exceed 5")
319+ }
320+ }
321+ }
322+ }
323+ }
324+ }
325+ }
326+ let unblockVotes = {
327+ let $list997110041 = adminsListWithoutAccount
328+ let $size997110041 = size($list997110041)
329+ let $acc0997110041 = nil
330+ if (($size997110041 == 0))
331+ then $acc0997110041
332+ else {
333+ let $acc1997110041 = filterAdminsVoteByUnblockAction($acc0997110041, $list997110041[0])
334+ if (($size997110041 == 1))
335+ then $acc1997110041
336+ else {
337+ let $acc2997110041 = filterAdminsVoteByUnblockAction($acc1997110041, $list997110041[1])
338+ if (($size997110041 == 2))
339+ then $acc2997110041
340+ else {
341+ let $acc3997110041 = filterAdminsVoteByUnblockAction($acc2997110041, $list997110041[2])
342+ if (($size997110041 == 3))
343+ then $acc3997110041
344+ else {
345+ let $acc4997110041 = filterAdminsVoteByUnblockAction($acc3997110041, $list997110041[3])
346+ if (($size997110041 == 4))
347+ then $acc4997110041
348+ else {
349+ let $acc5997110041 = filterAdminsVoteByUnblockAction($acc4997110041, $list997110041[4])
350+ if (($size997110041 == 5))
351+ then $acc5997110041
352+ else {
353+ let $acc6997110041 = filterAdminsVoteByUnblockAction($acc5997110041, $list997110041[5])
354+ throw("List size exceed 5")
355+ }
356+ }
357+ }
358+ }
359+ }
360+ }
361+ }
362+ let updateVotes = {
363+ let $list1006410133 = adminsListWithoutAccount
364+ let $size1006410133 = size($list1006410133)
365+ let $acc01006410133 = nil
366+ if (($size1006410133 == 0))
367+ then $acc01006410133
368+ else {
369+ let $acc11006410133 = filterAdminsVoteByUpdateAction($acc01006410133, $list1006410133[0])
370+ if (($size1006410133 == 1))
371+ then $acc11006410133
372+ else {
373+ let $acc21006410133 = filterAdminsVoteByUpdateAction($acc11006410133, $list1006410133[1])
374+ if (($size1006410133 == 2))
375+ then $acc21006410133
376+ else {
377+ let $acc31006410133 = filterAdminsVoteByUpdateAction($acc21006410133, $list1006410133[2])
378+ if (($size1006410133 == 3))
379+ then $acc31006410133
380+ else {
381+ let $acc41006410133 = filterAdminsVoteByUpdateAction($acc31006410133, $list1006410133[3])
382+ if (($size1006410133 == 4))
383+ then $acc41006410133
384+ else {
385+ let $acc51006410133 = filterAdminsVoteByUpdateAction($acc41006410133, $list1006410133[4])
386+ if (($size1006410133 == 5))
387+ then $acc51006410133
388+ else {
389+ let $acc61006410133 = filterAdminsVoteByUpdateAction($acc51006410133, $list1006410133[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 
30.04 ms