tx · 8bNHCHF7acgxdBkCPDJwbEZB9HQETXUdBgwQLC67119p

3NAkAohdf8uoZPHTPz9bWBzM9QxhmtG6Atw:  -0.01000000 Waves

2020.12.09 03:23 [1300396] smart account 3NAkAohdf8uoZPHTPz9bWBzM9QxhmtG6Atw > SELF 0.00000000 Waves

{ "type": 13, "id": "8bNHCHF7acgxdBkCPDJwbEZB9HQETXUdBgwQLC67119p", "fee": 1000000, "feeAssetId": null, "timestamp": 1607473389943, "version": 2, "chainId": 84, "sender": "3NAkAohdf8uoZPHTPz9bWBzM9QxhmtG6Atw", "senderPublicKey": "FJ1vnBKqEmRyAovyjYpzoBxpnwPR83zDp9i7RzMQrdnw", "proofs": [ "4NK4ZRzaCREtW5YEf3WTybLxx6uaLZcmHi58Y8X8Y4T1f3yRgqZBYyhcPvThA6wCvzatrm4koLnMXqR7FLLrVXw4" ], "script": "base64:AAIEAAAAAAAAAA4IAhIAEgASBAoCCAESAAAAAFMBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQIAAAAAAQAAAAxnZXRCb29sQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBsAAAACBQAAAAR0aGlzBQAAAANrZXkHAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAB2FkZHJlc3MFAAAAA2tleQAAAAAAAAAAAAEAAAAYZ2V0U3RyaW5nQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZG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GlvbiBieSBlbWVyZ2VuY3kgb3JhY2xlcwMJAABmAAAAAgUAAAAPYXVjdGlvbk5CQW1vdW50CQAAaAAAAAIAAAAAAAAAAAEFAAAABVBBVUxJCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAD2F1Y3Rpb25Db250cmFjdAUAAAAPYXVjdGlvbk5CQW1vdW50BQAAAAtib25kQXNzZXRJZAUAAAADbmlsAwkAAGcAAAACBQAAABZzdXJwbHVzV2l0aExpcXVpZGF0aW9uCQAAaAAAAAIAAAAAAAAAAAEFAAAABVBBVUxJCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAE2xpcXVpZGF0aW9uQ29udHJhY3QFAAAAFnN1cnBsdXNXaXRoTGlxdWlkYXRpb24FAAAAD25ldXRyaW5vQXNzZXRJZAUAAAADbmlsCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAvYm9uZCB3ZXJlIGdlbmVyYXRlZCBvciBkbyBub3QgbmVlZCBpdC4gRGVmaWNpdDoJAAGkAAAAAQUAAAAPYXVjdGlvbk5CQW1vdW50AgAAAAF8CQABpAAAAAEAAAAAAAAAAAACAAAACi4gU3VycGx1czoJAAGkAAAAAQUAAAAWc3VycGx1c1dpdGhMaXF1aWRhdGlvbgIAAAABfAkAAaQAAAABBQAAAAdzdXJwbHVzAAAAAIOR5DI=", "height": 1300396, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a (b) = valueOrElse(getInteger(this, b), 0)
5+
6+
7+func c (b) = valueOrElse(getString(this, b), "")
8+
9+
10+func d (b) = valueOrElse(getBoolean(this, b), false)
11+
12+
13+func e (f,b) = valueOrElse(getInteger(addressFromStringValue(f), b), 0)
14+
15+
16+func g (f,b) = valueOrElse(getString(addressFromStringValue(f), b), "")
17+
18+
19+func h (f,b) = valueOrElse(getBoolean(addressFromStringValue(f), b), false)
20+
21+
22+let i = ["FJ1vnBKqEmRyAovyjYpzoBxpnwPR83zDp9i7RzMQrdnw", "FJ1vnBKqEmRyAovyjYpzoBxpnwPR83zDp9i7RzMQrdnw", "FJ1vnBKqEmRyAovyjYpzoBxpnwPR83zDp9i7RzMQrdnw", "FJ1vnBKqEmRyAovyjYpzoBxpnwPR83zDp9i7RzMQrdnw"]
23+
24+let j = 30
25+
26+let k = "_"
27+
28+let l = "+"
29+
30+let m = 100000000
31+
32+let n = 1000000
33+
34+let o = 1000000
35+
36+let p = 20000
37+
38+let q = 0
39+
40+let r = 1
41+
42+let s = "neutrino_asset_id"
43+
44+let t = "bond_asset_id"
45+
46+let u = "auction_contract"
47+
48+let v = "liquidation_contract"
49+
50+let w = "rpd_contract"
51+
52+let x = "control_contract"
53+
54+let y = "balance_waves_lock_interval"
55+
56+let z = "balance_neutrino_lock_interval"
57+
58+let A = "min_waves_swap_amount"
59+
60+let B = "min_neutrino_swap_amount"
61+
62+let C = "node_oracle_provider"
63+
64+let D = "neutrinoOut_swap_feePart"
65+
66+let E = "wavesOut_swap_feePart"
67+
68+let F = "fees_manager_address"
69+
70+let G = "rpd_balance"
71+
72+func H (I) = ((G + "_") + toBase58String(I))
73+
74+
75+let J = "price"
76+
77+let K = "price_index"
78+
79+let L = "is_blocked"
80+
81+func M (N) = ((J + "_") + toString(N))
82+
83+
84+func O (P) = ((K + "_") + toString(P))
85+
86+
87+let Q = "balance_lock_"
88+
89+let R = (Q + "waves")
90+
91+let S = (Q + "neutrino")
92+
93+func T (U,I) = ((((G + "_") + toBase58String(I)) + "_") + toString(U))
94+
95+
96+func V (W) = (("cancel_lease_tx_reserve_fee" + "_") + W)
97+
98+
99+func X (Y) = ((R + "_") + Y)
100+
101+
102+func Z (Y) = ((S + "_") + Y)
103+
104+
105+func aa (Y) = ("balance_unlock_block_" + Y)
106+
107+
108+func ab (U) = (("rpd_profit" + "_") + toString(U))
109+
110+
111+func ac (ad,ae) = fraction(fraction(ad, o, ae), m, n)
112+
113+
114+func af (ad,ae) = fraction(fraction(ad, ae, o), n, m)
115+
116+
117+func ag (ad,ae) = af(ad, ae)
118+
119+
120+func ah (ai) = split(ai, ",")
121+
122+
123+let aj = c(v)
124+
125+let ak = c(s)
126+
127+let al = fromBase58String(ak)
128+
129+let am = c(u)
130+
131+let an = c(w)
132+
133+let ao = c(x)
134+
135+let ap = e(ao, K)
136+
137+let aq = h(ao, L)
138+
139+let ar = fromBase58String(c(C))
140+
141+let as = a(y)
142+
143+let at = a(z)
144+
145+let au = a(A)
146+
147+let av = a(B)
148+
149+let aw = fromBase58String("6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g")
150+
151+let ax = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF")
152+
153+let ay = this
154+
155+let az = e(ao, J)
156+
157+let aA = a(S)
158+
159+let aB = a(R)
160+
161+let aC = (wavesBalance(ay).regular - aB)
162+
163+let aD = (((aA + value(assetInfo(al)).quantity) - assetBalance(ay, al)) - assetBalance(addressFromStringValue(aj), al))
164+
165+let aE = (af(aC, az) - aD)
166+
167+let aF = (aD - af(aC, az))
168+
169+func aG (aH) = {
170+ let aI = 100000
171+ let aJ = 1000
172+ let aK = af(aI, az)
173+ let aL = (aK * 2)
174+ let aM = fraction(aK, aJ, 100)
175+ let aN = value(aH.minSponsoredAssetFee)
176+ if (if ((aN >= aL))
177+ then (aM >= aN)
178+ else false)
179+ then (aH.assetId == al)
180+ else false
181+ }
182+
183+
184+func aO (I) = e(an, H(I))
185+
186+
187+func aP (N) = e(ao, M(N))
188+
189+
190+func aQ (P) = e(ao, O(P))
191+
192+
193+func aR (W) = a(V(W))
194+
195+
196+func aS (Y) = a(X(Y))
197+
198+
199+func aT (Y) = a(Z(Y))
200+
201+
202+func aU (Y) = a(aa(Y))
203+
204+
205+func aV (U) = a(ab(U))
206+
207+
208+func aW (aX,aY) = {
209+ let aZ = fraction(aX, aY, n)
210+[(aX - aZ), aZ]
211+ }
212+
213+
214+@Callable(ba)
215+func swapWavesToNeutrino () = {
216+ let bb = value(ba.payments[0])
217+ let bc = toString(ba.caller)
218+ if ((au > bb.amount))
219+ then throw((("The specified Waves amount is less than the required minimum of " + toString(au)) + " wavelets."))
220+ else if (isDefined(bb.assetId))
221+ then throw("Only Waves token is allowed for swapping.")
222+ else if (aq)
223+ then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
224+ else if ((aU(bc) > height))
225+ then throw((("await " + toString((aU(bc) - height))) + " blocks"))
226+ else if (if ((aT(bc) != 0))
227+ then true
228+ else (aS(bc) != 0))
229+ then throw("please withdraw locked funds first")
230+ else [IntegerEntry(X(bc), bb.amount), IntegerEntry(aa(bc), (height + as)), IntegerEntry(R, (aB + bb.amount))]
231+ }
232+
233+
234+
235+@Callable(ba)
236+func swapNeutrinoToWaves () = {
237+ let bb = value(ba.payments[0])
238+ let bc = toString(ba.caller)
239+ if ((av > bb.amount))
240+ then throw((("The specified Neutrino amount is less than the required minimum of " + toString(av)) + " Neutrino cents."))
241+ else if (aq)
242+ then throw("The contract is blocked by EMERGENCY SHUTDOWN. Please wait for reactivation by emergency oracles.")
243+ else if ((bb.assetId != al))
244+ then throw("Only appropriate Neutrino tokens are allowed for swapping.")
245+ else if ((aU(bc) > height))
246+ then throw((("await " + toString((aU(bc) - height))) + " blocks"))
247+ else if (if ((aT(bc) != 0))
248+ then true
249+ else (aS(bc) != 0))
250+ then throw("please withdraw locked funds first")
251+ else [IntegerEntry(Z(bc), bb.amount), IntegerEntry(aa(bc), (height + at)), IntegerEntry(S, (aA + bb.amount))]
252+ }
253+
254+
255+
256+@Callable(ba)
257+func withdraw (bc,P) = {
258+ let bd = addressFromStringValue(bc)
259+ let be = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, F), (F + " is not specified"))), (F + " invalid address format"))
260+ let bf = aU(bc)
261+ let bg = aS(bc)
262+ let bh = aT(bc)
263+ let bi = aQ(P)
264+ let bj = aQ((P - 1))
265+ let bk = aP(bi)
266+ let bl = af(bg, bk)
267+ let bm = ac(bh, bk)
268+ let bn = valueOrElse(getInteger(this, D), p)
269+ let bo = valueOrElse(getInteger(this, E), p)
270+ let bp = aW(bl, bn)
271+ let bq = aW(bm, bo)
272+ if (aq)
273+ then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
274+ else if ((bf > height))
275+ then throw((("please wait for: " + toString(bf)) + " block height to withdraw WAVES funds"))
276+ else if (if (if ((P > ap))
277+ then true
278+ else (bf > bi))
279+ then true
280+ else if ((bj != 0))
281+ then (bj >= bf)
282+ else false)
283+ then throw(((((((((("invalid price history index: index=" + toString(P)) + " priceIndex=") + toString(ap)) + " indexHeight=") + toString(bi)) + " unlockHeight=") + toString(bf)) + " prevIndexHeight=") + toString(bj)))
284+ else if (if ((0 >= bl))
285+ then (0 >= bm)
286+ else false)
287+ then throw("balance equals zero")
288+ else if (if (if (if ((0 > bn))
289+ then true
290+ else (bn >= n))
291+ then true
292+ else (0 > bo))
293+ then true
294+ else (bo >= n))
295+ then throw(((("invalid fees data: neutrinoOutFeePart=" + toString(bn)) + " wavesOutFeePart=") + toString(bo)))
296+ else [IntegerEntry(X(bc), 0), IntegerEntry(Z(bc), 0), IntegerEntry(R, (aB - bg)), IntegerEntry(S, (aA - bh)), ScriptTransfer(bd, bq[q], unit), ScriptTransfer(be, bq[r], unit), ScriptTransfer(bd, bp[q], al), ScriptTransfer(be, bp[r], al)]
297+ }
298+
299+
300+
301+@Callable(ba)
302+func transferToAuction () = {
303+ let br = (aD - assetBalance(addressFromStringValue(am), aw))
304+ let bs = (aE - assetBalance(addressFromStringValue(aj), al))
305+ if (aq)
306+ then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
307+ else if ((br > (1 * n)))
308+ then [ScriptTransfer(addressFromStringValue(am), br, aw)]
309+ else if ((bs >= (1 * n)))
310+ then [ScriptTransfer(addressFromStringValue(aj), bs, al)]
311+ else throw(((((((("bond were generated or do not need it. Deficit:" + toString(br)) + "|") + toString(0)) + ". Surplus:") + toString(bs)) + "|") + toString(aE)))
312+ }
313+
314+

github/deemru/w8io/169f3d6 
29.59 ms