tx · E3oRWCRcZLtcdUeKkBt8NiYqEeVrApkNY9xxTKqpcuBi

3MyiJb9yZnpyXJADhdEoNk3MT3FHKmbYRJX:  -0.10000000 Waves

2020.03.31 10:06 [933297] smart account 3MyiJb9yZnpyXJADhdEoNk3MT3FHKmbYRJX > SELF 0.00000000 Waves

{ "type": 13, "id": "E3oRWCRcZLtcdUeKkBt8NiYqEeVrApkNY9xxTKqpcuBi", "fee": 10000000, "feeAssetId": null, "timestamp": 1585638288750, "version": 1, "sender": "3MyiJb9yZnpyXJADhdEoNk3MT3FHKmbYRJX", "senderPublicKey": "HDqeggkNi96GMzyGv4AQMQms43nwSrvgMjTDznyivt8R", "proofs": [ "5cJazHD8BPkLFGpzAxX3GCw8wfiApA3qm5Mp8zRTokLJuN4jN7J4UBy3kE8X6L7M3D9XMkKSNFEeX52vvw4wGR7v" ], "script": "base64:AAIDAAAAAAAAAAsIARIAEgMKAQgSAAAAADgBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAWZ2V0Qm9vbEJ5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBwEAAAAYZ2V0U3RyaW5nQnlBZG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QEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAACm9yZGVyT3duZXIFAAAAE2ZpbGxhYmxlT3JkZXJBbW91bnQFAAAAD25ldXRyaW5vQXNzZXRJZAUAAAADbmlsAAAAAJ2G/Pk=", "chainId": 84, "height": 933297, "spentComplexity": 0 } View: original | compacted Prev: none Next: 9u6QN8bi6cTkE6EZSvwLXGhTvS9PW9U6BjVszUdgAbLL Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a (b) = {
5+ let c = getInteger(this, b)
6+ if ($isInstanceOf(c, "Int"))
7+ then {
8+ let d = c
9+ d
10+ }
11+ else 0
12+ }
13+
14+
15+func e (b) = {
16+ let c = getString(this, b)
17+ if ($isInstanceOf(c, "String"))
18+ then {
19+ let d = c
20+ d
21+ }
22+ else ""
23+ }
24+
25+
26+func f (g,b) = {
27+ let c = getBoolean(g, b)
28+ if ($isInstanceOf(c, "Boolean"))
29+ then {
30+ let d = c
31+ d
32+ }
33+ else false
34+ }
35+
36+
37+func h (g,b) = {
38+ let c = getString(g, b)
39+ if ($isInstanceOf(c, "String"))
40+ then {
41+ let d = c
42+ d
43+ }
44+ else ""
45+ }
46+
47+
48+func i (g,b) = {
49+ let c = getInteger(g, b)
50+ if ($isInstanceOf(c, "Int"))
51+ then {
52+ let d = c
53+ d
54+ }
55+ else 0
56+ }
57+
58+
59+let j = 100000000
60+
61+let k = "_"
62+
63+let l = 1000000
64+
65+let m = 1000
66+
67+let n = 50
68+
69+let o = "canceled"
70+
71+let p = "new"
72+
73+let q = "filled"
74+
75+let r = "neutrino_contract"
76+
77+let s = "price"
78+
79+let t = "bond_asset_id"
80+
81+let u = "neutrino_asset_id"
82+
83+let v = "control_contract"
84+
85+let w = "balance_lock_"
86+
87+let x = (w + "waves")
88+
89+let y = (w + "neutrino")
90+
91+let z = "order_first"
92+
93+let A = "order_last"
94+
95+func B (C) = ("order_prev_" + C)
96+
97+
98+func D (C) = ("order_next_" + C)
99+
100+
101+func E (C) = ("order_total_" + C)
102+
103+
104+func F (C) = ("order_owner_" + C)
105+
106+
107+func G (C) = ("order_height_" + C)
108+
109+
110+func H (C) = ("order_status_" + C)
111+
112+
113+func I (C) = ("order_filled_total_" + C)
114+
115+
116+func J (K) = ("last_order_owner_" + K)
117+
118+
119+func L (M,N) = fraction(fraction(M, 100, N), j, l)
120+
121+
122+func O (M,N) = fraction(fraction(M, N, 100), l, j)
123+
124+
125+func P (M,N) = O(M, N)
126+
127+
128+let Q = addressFromStringValue(e(r))
129+
130+let R = addressFromStringValue(h(Q, v))
131+
132+let S = this
133+
134+let T = fromBase58String(h(Q, u))
135+
136+let U = fromBase58String("Qh28HvUAcFboD1GsAcyURQjNW6mdpuGvXVgFS9e3CzC")
137+
138+let V = e(z)
139+
140+let W = e(A)
141+
142+let X = f(R, "is_blocked")
143+
144+let Y = i(R, s)
145+
146+let Z = i(Q, y)
147+
148+let aa = i(Q, x)
149+
150+let ab = (wavesBalance(Q) - aa)
151+
152+let ac = (((Z + extract(assetInfo(T)).quantity) - assetBalance(Q, T)) - assetBalance(S, T))
153+
154+let ad = (O(ab, Y) - ac)
155+
156+func ae (af) = a(E(af))
157+
158+
159+func ag (af) = e(F(af))
160+
161+
162+func ah (af) = e(H(af))
163+
164+
165+func ai (af) = a(I(af))
166+
167+
168+func aj (af) = e(B(af))
169+
170+
171+func ak (af) = e(D(af))
172+
173+
174+func al (af) = a(G(af))
175+
176+
177+func am (K) = e(J(K))
178+
179+
180+@Callable(an)
181+func addLiquidationOrder () = {
182+ let ao = extract(an.payment)
183+ let ap = toBase58String(keccak256((((toBytes(ao.amount) + an.caller.bytes) + toBytes(height)) + an.transactionId)))
184+ let aq = ak(W)
185+ let ar = ah(W)
186+ let K = toString(an.caller)
187+ if (X)
188+ then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
189+ else if ((ao.assetId != U))
190+ then throw("can use appropriate neutrino bonds tokens only")
191+ else if ((ag(ap) != ""))
192+ then throw("an order is already exists")
193+ else if ((aq != ""))
194+ then throw(("nextOrder is not last. Info:" + aq))
195+ else if (if ((V != ""))
196+ then (W == "")
197+ else false)
198+ then throw("invalid last order")
199+ else if (if ((V != ""))
200+ then (ar != p)
201+ else false)
202+ then throw("last order status is not new")
203+ else if ((l > ao.amount))
204+ then throw("order amount must be higher than 1 NSBT")
205+ else WriteSet([DataEntry(J(K), ap), DataEntry(B(ap), W), DataEntry(D(W), if ((W == ""))
206+ then ""
207+ else ap), DataEntry(z, if ((V == ""))
208+ then ap
209+ else V), DataEntry(A, ap), DataEntry(E(ap), ao.amount), DataEntry(F(ap), K), DataEntry(G(ap), height), DataEntry(H(ap), p)])
210+ }
211+
212+
213+
214+@Callable(an)
215+func cancelOrder (C) = {
216+ let K = ag(C)
217+ let M = (ae(C) - ai(C))
218+ let aq = ak(C)
219+ let as = aj(C)
220+ if (X)
221+ then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
222+ else if ((K != toString(an.caller)))
223+ then throw("permission denied")
224+ else if ((ah(C) != p))
225+ then throw("invalid order status")
226+ else ScriptResult(WriteSet([DataEntry(z, if ((V == C))
227+ then aq
228+ else V), DataEntry(A, if ((W == C))
229+ then as
230+ else W), DataEntry(D(as), aq), DataEntry(B(aq), as), DataEntry(H(C), o)]), TransferSet([ScriptTransfer(an.caller, M, U)]))
231+ }
232+
233+
234+
235+@Callable(an)
236+func liquidateBond () = {
237+ let at = if ((0 >= ad))
238+ then 0
239+ else ad
240+ let au = assetBalance(this, T)
241+ let av = if ((at >= au))
242+ then 0
243+ else (au - at)
244+ let aw = at
245+ if (X)
246+ then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
247+ else if (if ((av == 0))
248+ then (au == 0)
249+ else false)
250+ then throw("cannot liquidate order without neutrino on the smart contract")
251+ else if ((av > 0))
252+ then TransferSet([ScriptTransfer(Q, av, T)])
253+ else if ((0 >= aw))
254+ then throw("there is no proficit on the smart contract now")
255+ else if ((V == ""))
256+ then throw("empty orderbook")
257+ else {
258+ let aq = ak(V)
259+ let ax = ae(V)
260+ let ay = ag(V)
261+ let az = ai(V)
262+ let M = (ax - az)
263+ let aA = if ((aw >= M))
264+ then q
265+ else p
266+ let aB = if ((aw >= M))
267+ then M
268+ else aw
269+ ScriptResult(WriteSet([DataEntry(B(aq), if ((aA == q))
270+ then ""
271+ else V), DataEntry(z, if ((aA == q))
272+ then aq
273+ else V), DataEntry(A, if (if ((aA == q))
274+ then (V == W)
275+ else false)
276+ then ""
277+ else W), DataEntry(I(V), (az + aB)), DataEntry(H(V), aA)]), TransferSet([ScriptTransfer(addressFromStringValue(ay), aB, T)]))
278+ }
279+ }
280+
281+

github/deemru/w8io/169f3d6 
30.48 ms