tx · Dc5VPKxHcEQk2Q4p2aLwL57XayetHCxiceGCm6bKvBMz

3MxyAK73VtRLuGw8akjD29XGggSDUv27jnz:  -0.01000000 Waves

2020.03.04 15:19 [894219] smart account 3MxyAK73VtRLuGw8akjD29XGggSDUv27jnz > SELF 0.00000000 Waves

{ "type": 13, "id": "Dc5VPKxHcEQk2Q4p2aLwL57XayetHCxiceGCm6bKvBMz", "fee": 1000000, "feeAssetId": null, "timestamp": 1583324424807, "version": 1, "sender": "3MxyAK73VtRLuGw8akjD29XGggSDUv27jnz", "senderPublicKey": "Bh3rq6RyBJuiExqMwRKXWFDcXXqkmXFKfA3pC2akvS2G", "proofs": [ "3f8Zmp8sqhuL5zVwakWeJbjUNt4arqAM6TVVMLaLdoqLS49cGsUfSyFzHfCydABqVQPHzTJpmHvwuAzMCaBYHwcC" ], "script": "base64:AAIDAAAAAAAAABUIARIDCgEIEgwKCgECAQIBAgECAQIAAAAZAQAAABZjb252ZXJ0V2F2ZXNUb05ldXRyaW5vAAAAAgAAAAZhbW91bnQAAAAFcHJpY2UJAABrAAAAAwkAAGsAAAADBQAAAAZhbW91bnQFAAAABXByaWNlAAAAAAAAAABkAAAAAAAAD0JAAAAAAAAF9eEAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAAGGdldE51bWJlckJ5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAA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QkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAKaXNfYmxvY2tlZAYJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAABFibGFja19zd2FybV9wcmljZQIAAAABXwkAAaQAAAABBQAAAAZoZWlnaHQFAAAACG5ld1ByaWNlBQAAAANuaWwEAAAADW5ld1ByaWNlSW5kZXgJAABkAAAAAgUAAAAKcHJpY2VJbmRleAAAAAAAAAAAAQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAFcHJpY2UFAAAACG5ld1ByaWNlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAABnByaWNlXwkAAaQAAAABBQAAAAZoZWlnaHQFAAAACG5ld1ByaWNlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAtwcmljZV9pbmRleAUAAAANbmV3UHJpY2VJbmRleAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAxwcmljZV9pbmRleF8JAAGkAAAAAQUAAAANbmV3UHJpY2VJbmRleAUAAAAGaGVpZ2h0BQAAAANuaWwAAAAAPG+VUQ==", "chainId": 84, "height": 894219, "spentComplexity": 0 } View: original | compacted Prev: none Next: AFejYePKZKTVeyvdC2M8MXdHRTAzKZCgf3R3kdsqTznS Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, 100), 1000000, 100000000)
5+
6+
7+func getStringByKey (key) = match getString(this, key) {
8+ case a: String =>
9+ a
10+ case _ =>
11+ ""
12+}
13+
14+
15+func getNumberByAddressAndKey (address,key) = match getInteger(addressFromStringValue(address), key) {
16+ case a: Int =>
17+ a
18+ case _ =>
19+ 0
20+}
21+
22+
23+func getOracleProvideHeight (ownerPub,height) = match getInteger(addressFromPublicKey(ownerPub), ("price_" + toString(height))) {
24+ case a: Int =>
25+ a
26+ case _ =>
27+ 0
28+}
29+
30+
31+func getStringByAddressAndKey (address,key) = match getString(address, key) {
32+ case a: String =>
33+ a
34+ case _ =>
35+ ""
36+}
37+
38+
39+func dropElementInJsonArray (array,element) = {
40+ let splitedArray = split(array, element)
41+ if ((take(splitedArray[1], 1) == ","))
42+ then (splitedArray[0] + drop(splitedArray[1], 1))
43+ else (dropRight(splitedArray[0], 1) + splitedArray[1])
44+ }
45+
46+
47+func convertJsonArrayToList (jsonArray) = split(jsonArray, ",")
48+
49+
50+let BLOCK = "block"
51+
52+let UNBLOCK = "unblock"
53+
54+let UPDATE = "update"
55+
56+let SIGNPREFIX = "WAVESNEUTRINOPREFIX"
57+
58+let OraclesKey = "oracles"
59+
60+let PriceOffsetKey = "price_offset"
61+
62+let PriceKey = "price"
63+
64+let IsBlockedKey = "is_blocked"
65+
66+let PriceIndexKey = "price_index"
67+
68+let price = match getInteger(this, "price") {
69+ case a: Int =>
70+ a
71+ case _ =>
72+ 0
73+}
74+
75+let priceIndex = match getInteger(this, "price_index") {
76+ case a: Int =>
77+ a
78+ case _ =>
79+ 0
80+}
81+
82+let isBlocked = match getBoolean(this, "is_blocked") {
83+ case a: Boolean =>
84+ a
85+ case _ =>
86+ false
87+}
88+
89+let percentPriceOffset = 7
90+
91+let pubKeyOracles = getStringByKey(OraclesKey)
92+
93+let pubKeyOraclesList = convertJsonArrayToList(pubKeyOracles)
94+
95+let bftCoefficientOracle = 3
96+
97+func findPricesInRange (prices) = {
98+ let minPercentBound = 90
99+ let maxPercentBound = 110
100+ let p0 = prices[0]
101+ let check0 = if ((0 >= prices[0]))
102+ then [0]
103+ else {
104+ let p01 = ((prices[1] * 100) / p0)
105+ let p02 = ((prices[2] * 100) / p0)
106+ let p03 = ((prices[3] * 100) / p0)
107+ let p04 = ((prices[4] * 100) / p0)
108+ let array1 = if (if ((maxPercentBound > p01))
109+ then (p01 > minPercentBound)
110+ else false)
111+ then [1, 0]
112+ else [0]
113+ let array2 = if (if ((maxPercentBound > p02))
114+ then (p02 > minPercentBound)
115+ else false)
116+ then 2 :: array1
117+ else array1
118+ let array3 = if (if ((maxPercentBound > p03))
119+ then (p03 > minPercentBound)
120+ else false)
121+ then 3 :: array2
122+ else array2
123+ if (if ((maxPercentBound > p04))
124+ then (p04 > minPercentBound)
125+ else false)
126+ then 4 :: array3
127+ else array3
128+ }
129+ let check1 = if ((size(check0) >= 3))
130+ then check0
131+ else {
132+ let p1 = prices[1]
133+ if ((0 >= p1))
134+ then [1]
135+ else {
136+ let p10 = ((prices[0] * 100) / p1)
137+ let p12 = ((prices[2] * 100) / p1)
138+ let p13 = ((prices[3] * 100) / p1)
139+ let p14 = ((prices[4] * 100) / p1)
140+ let array1 = if (if ((maxPercentBound > p10))
141+ then (p10 > minPercentBound)
142+ else false)
143+ then [0, 1]
144+ else [1]
145+ let array2 = if (if ((maxPercentBound > p12))
146+ then (p12 > minPercentBound)
147+ else false)
148+ then 2 :: array1
149+ else array1
150+ let array3 = if (if ((maxPercentBound > p13))
151+ then (p13 > minPercentBound)
152+ else false)
153+ then 3 :: array2
154+ else array2
155+ if (if ((maxPercentBound > p14))
156+ then (p14 > minPercentBound)
157+ else false)
158+ then 4 :: array3
159+ else array3
160+ }
161+ }
162+ let check2 = if ((size(check1) >= 3))
163+ then check1
164+ else {
165+ let p2 = prices[2]
166+ if ((0 >= p2))
167+ then [2]
168+ else {
169+ let p20 = ((prices[0] * 100) / p2)
170+ let p21 = ((prices[1] * 100) / p2)
171+ let p23 = ((prices[3] * 100) / p2)
172+ let p24 = ((prices[4] * 100) / p2)
173+ let array1 = if (if ((maxPercentBound > p20))
174+ then (p20 > minPercentBound)
175+ else false)
176+ then [0, 2]
177+ else [2]
178+ let array2 = if (if ((maxPercentBound > p21))
179+ then (p21 > minPercentBound)
180+ else false)
181+ then 1 :: array1
182+ else array1
183+ let array3 = if (if ((maxPercentBound > p23))
184+ then (p23 > minPercentBound)
185+ else false)
186+ then 3 :: array2
187+ else array2
188+ if (if ((maxPercentBound > p24))
189+ then (p24 > minPercentBound)
190+ else false)
191+ then 4 :: array3
192+ else array3
193+ }
194+ }
195+ let check3 = if ((size(check2) >= 3))
196+ then check2
197+ else {
198+ let p3 = prices[3]
199+ if ((0 >= p3))
200+ then [3]
201+ else {
202+ let p30 = ((prices[0] * 100) / p3)
203+ let p31 = ((prices[1] * 100) / p3)
204+ let p32 = ((prices[2] * 100) / p3)
205+ let p34 = ((prices[4] * 100) / p3)
206+ let array1 = if (if ((maxPercentBound > p30))
207+ then (p30 > minPercentBound)
208+ else false)
209+ then [0, 3]
210+ else [3]
211+ let array2 = if (if ((maxPercentBound > p31))
212+ then (p31 > minPercentBound)
213+ else false)
214+ then 1 :: array1
215+ else array1
216+ let array3 = if (if ((maxPercentBound > p32))
217+ then (p32 > minPercentBound)
218+ else false)
219+ then 2 :: array2
220+ else array2
221+ if (if ((maxPercentBound > p34))
222+ then (p34 > minPercentBound)
223+ else false)
224+ then 4 :: array3
225+ else array3
226+ }
227+ }
228+ if ((size(check3) >= 3))
229+ then check3
230+ else {
231+ let p4 = prices[4]
232+ if ((0 >= p4))
233+ then [4]
234+ else {
235+ let p40 = ((prices[0] * 100) / p4)
236+ let p41 = ((prices[1] * 100) / p4)
237+ let p42 = ((prices[2] * 100) / p4)
238+ let p43 = ((prices[3] * 100) / p4)
239+ let array1 = if (if ((maxPercentBound > p40))
240+ then (p40 > minPercentBound)
241+ else false)
242+ then [0, 4]
243+ else [4]
244+ let array2 = if (if ((maxPercentBound > p41))
245+ then (p41 > minPercentBound)
246+ else false)
247+ then 1 :: array1
248+ else array1
249+ let array3 = if (if ((maxPercentBound > p42))
250+ then (p42 > minPercentBound)
251+ else false)
252+ then 2 :: array2
253+ else array2
254+ if (if ((maxPercentBound > p43))
255+ then (p43 > minPercentBound)
256+ else false)
257+ then 3 :: array3
258+ else array3
259+ }
260+ }
261+ }
262+
263+
264+func formattingPriceMsg (price,height) = toBytes(((((SIGNPREFIX + "_") + toString(height)) + "_") + toString(price)))
265+
266+
267+@Callable(i)
268+func callEmergencyShutdown (reason) = {
269+ let AutoEmergencyOracleAddress = "3P7ihFVxBNbHK237TNdPxT1xHEu8pHexXTr"
270+ let callerAddress = toString(i.caller)
271+ if ((AutoEmergencyOracleAddress != callerAddress))
272+ then throw("caller must be one an emergency oracle")
273+ else WriteSet([DataEntry("is_blocked", true), DataEntry("is_blocked_caller", callerAddress), DataEntry("is_blocked_reason", reason)])
274+ }
275+
276+
277+
278+@Callable(i)
279+func finalizeCurrentPrice (price1,sign1,price2,sign2,price3,sign3,price4,sign4,price5,sign5) = if (isBlocked)
280+ then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
281+ else if (( match getInteger(this, ("price_" + toString(height))) {
282+ case a: Int =>
283+ a
284+ case _ =>
285+ 0
286+ } != 0))
287+ then throw("wait next block")
288+ else {
289+ let prices = [if (sigVerify(formattingPriceMsg(price1, height), sign1, fromBase58String(pubKeyOraclesList[0])))
290+ then price1
291+ else 0, if (sigVerify(formattingPriceMsg(price2, height), sign2, fromBase58String(pubKeyOraclesList[1])))
292+ then price2
293+ else 0, if (sigVerify(formattingPriceMsg(price3, height), sign3, fromBase58String(pubKeyOraclesList[2])))
294+ then price3
295+ else 0, if (sigVerify(formattingPriceMsg(price4, height), sign4, fromBase58String(pubKeyOraclesList[3])))
296+ then price4
297+ else 0, if (sigVerify(formattingPriceMsg(price5, height), sign5, fromBase58String(pubKeyOraclesList[4])))
298+ then price5
299+ else 0]
300+ let pricesInRange = findPricesInRange(prices)
301+ let priceProvidingCount = size(pricesInRange)
302+ if ((3 > priceProvidingCount))
303+ then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + "
304+") + pubKeyOraclesList[0]) + "=") + toString(prices[0])) + "
305+") + pubKeyOraclesList[1]) + "=") + toString(prices[1])) + "
306+") + pubKeyOraclesList[2]) + "=") + toString(prices[2])) + "
307+") + pubKeyOraclesList[3]) + "=") + toString(prices[3])) + "
308+") + pubKeyOraclesList[4]) + "=") + toString(prices[4])))
309+ else {
310+ let sum1 = ((prices[pricesInRange[0]] + prices[pricesInRange[1]]) + prices[pricesInRange[2]])
311+ let sum2 = if ((priceProvidingCount >= 4))
312+ then (sum1 + prices[pricesInRange[3]])
313+ else sum1
314+ let priceSum = if ((priceProvidingCount >= 5))
315+ then (sum2 + prices[pricesInRange[4]])
316+ else sum2
317+ if ((priceProvidingCount >= 6))
318+ then throw("Invalid pricesInRange creation")
319+ else {
320+ let newPrice = (priceSum / priceProvidingCount)
321+ if (if ((newPrice >= (price + ((price * percentPriceOffset) / 100))))
322+ then true
323+ else ((price - ((price * percentPriceOffset) / 100)) >= newPrice))
324+ then WriteSet([DataEntry("is_blocked", true), DataEntry((("black_swarm_price" + "_") + toString(height)), newPrice)])
325+ else {
326+ let newPriceIndex = (priceIndex + 1)
327+ WriteSet([DataEntry("price", newPrice), DataEntry(("price_" + toString(height)), newPrice), DataEntry("price_index", newPriceIndex), DataEntry(("price_index_" + toString(newPriceIndex)), height)])
328+ }
329+ }
330+ }
331+ }
332+
333+

github/deemru/w8io/169f3d6 
50.65 ms