tx · EKrJfYM3KNJPPPu5F4Lt9vZGZjbGXDcm8LzGvim2MJ69

3N7d3jPxKqSi3XVnAgg8oFsHLcrgctFWpVw:  -0.01000000 Waves

2019.10.22 00:06 [730357] smart account 3N7d3jPxKqSi3XVnAgg8oFsHLcrgctFWpVw > SELF 0.00000000 Waves

{ "type": 13, "id": "EKrJfYM3KNJPPPu5F4Lt9vZGZjbGXDcm8LzGvim2MJ69", "fee": 1000000, "feeAssetId": null, "timestamp": 1571692107763, "version": 1, "sender": "3N7d3jPxKqSi3XVnAgg8oFsHLcrgctFWpVw", "senderPublicKey": "GHnaLgezSnGCGe7LuhRy8j4JzCcySjwndqh6X9xHQNhz", "proofs": [ "4EaTsBxEdKeWirJr7xd8a4WEeZ65Xq8u862GL2FR3oS6SFXfu6H5GfGWmZUPet7p6g5x1WcPT1TY6tEqTbE5zaAH" ], "script": "base64:AAIDAAAAAAAAAA8IARIECgIBARIDCgEIEgAAAAA3AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAAGGdldFN0cmluZ0J5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAYZ2V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kABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAEmdldE9yZGVySGlzdG9yeUtleQAAAAEFAAAABmhlaWdodAUAAAAKb3JkZXJQcmljZQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAKb3JkZXJPd25lcgUAAAAMZmlsbGVkQW1vdW50BQAAAAtib25kQXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABBuZXV0cmlub0NvbnRyYWN0BQAAAAV0b3RhbAUAAAAPbmV1dHJpbm9Bc3NldElkBQAAAANuaWwAAAAAjAaP+Q==", "chainId": 84, "height": 730357, "spentComplexity": 0 } View: original | compacted Prev: none Next: 4gUdK8m5AW1i7V99LMhDzajkGG64k8UExbA9waGYMBBK 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 = getString(g, b)
28+ if ($isInstanceOf(c, "String"))
29+ then {
30+ let d = c
31+ d
32+ }
33+ else ""
34+ }
35+
36+
37+func h (g,b) = {
38+ let c = getInteger(g, b)
39+ if ($isInstanceOf(c, "Int"))
40+ then {
41+ let d = c
42+ d
43+ }
44+ else 0
45+ }
46+
47+
48+let i = 100000000
49+
50+let j = "_"
51+
52+let k = 100
53+
54+let l = "canceled"
55+
56+let m = "new"
57+
58+let n = "filled"
59+
60+let o = 1000
61+
62+let p = "orderbook"
63+
64+let q = "order_price_"
65+
66+let r = "order_total_"
67+
68+let s = "order_filled_total_"
69+
70+let t = "order_owner_"
71+
72+let u = "order_height_"
73+
74+let v = "order_status_"
75+
76+let w = "price"
77+
78+let x = "bond_asset_id"
79+
80+let y = "neutrino_asset_id"
81+
82+let z = "neutrino_contract"
83+
84+let A = "control_contract"
85+
86+let B = "order_history_"
87+
88+let C = "swap_locked_balance"
89+
90+func D (E) = (q + E)
91+
92+
93+func F (E) = (r + E)
94+
95+
96+func G (E) = (t + E)
97+
98+
99+func H (E) = (u + E)
100+
101+
102+func I (E) = (v + E)
103+
104+
105+func J (E) = (s + E)
106+
107+
108+func K (L) = (B + toString(L))
109+
110+
111+let M = addressFromStringValue(e(z))
112+
113+let N = addressFromStringValue(f(M, A))
114+
115+let O = h(N, w)
116+
117+func P (Q) = ((((Q * 100) / O) * i) / k)
118+
119+
120+func R (Q) = ((((Q * O) / 100) * k) / i)
121+
122+
123+func S (Q) = (Q / k)
124+
125+
126+func T (Q) = (Q * k)
127+
128+
129+func U (Q) = S(R(Q))
130+
131+
132+let V = h(M, C)
133+
134+let W = fromBase58String(f(M, y))
135+
136+let X = fromBase58String(f(M, x))
137+
138+let Y = e(p)
139+
140+let Z = (wavesBalance(this) - V)
141+
142+let aa = {
143+ let ab = extract(assetInfo(W))
144+ (ab.quantity - assetBalance(M, W))
145+ }
146+
147+let ac = (aa - R(Z))
148+
149+func ad (ae) = a(D(ae))
150+
151+
152+func af (ae) = a(F(ae))
153+
154+
155+func ag (ae) = e(G(ae))
156+
157+
158+func ah (ae) = e(I(ae))
159+
160+
161+func ai (ae) = a(J(ae))
162+
163+
164+func aj (ae) = (ae + j)
165+
166+
167+func ak (E,al) = {
168+ let am = split(Y, j)
169+ let an = aj(E)
170+ if ((al == 0))
171+ then (an + Y)
172+ else if ((al >= (size(am) - 1)))
173+ then (Y + an)
174+ else {
175+ let ao = split(Y, aj(am[al]))
176+ (((ao[0] + an) + aj(am[al])) + ao[1])
177+ }
178+ }
179+
180+
181+func ap (E) = {
182+ let ao = split(Y, aj(E))
183+ (ao[0] + ao[1])
184+ }
185+
186+
187+@Callable(aq)
188+func setOrder (ar,al) = {
189+ let as = extract(aq.payment)
190+ let at = toBase58String(keccak256((((toBytes(ar) + toBytes(as.amount)) + aq.caller.bytes) + toBytes(height))))
191+ if ((as.assetId != W))
192+ then throw("can use neutrino only")
193+ else if ((0 >= ar))
194+ then throw("price less zero")
195+ else if ((ag(at) != ""))
196+ then throw("order exists")
197+ else {
198+ let am = split(Y, j)
199+ let au = if ((al == 0))
200+ then ""
201+ else am[(al - 1)]
202+ let av = ad(au)
203+ let aw = if (if ((au != ""))
204+ then (ar > av)
205+ else false)
206+ then true
207+ else false
208+ let ax = am[al]
209+ let ay = ad(ax)
210+ let az = if ((ay >= ar))
211+ then true
212+ else false
213+ if (if (aw)
214+ then true
215+ else az)
216+ then throw(((("invalid order isPrevOrderError:" + toString(az)) + " isNextOrderError:") + toString(aw)))
217+ else WriteSet([DataEntry(p, ak(at, al)), DataEntry(D(at), ar), DataEntry(F(at), as.amount), DataEntry(G(at), toString(aq.caller)), DataEntry(H(at), height), DataEntry(I(at), m)])
218+ }
219+ }
220+
221+
222+
223+@Callable(aq)
224+func cancelOrder (E) = {
225+ let aA = ag(E)
226+ let Q = (af(E) - ai(E))
227+ if ((aA != toString(aq.caller)))
228+ then throw("permission denied")
229+ else if ((ah(E) != m))
230+ then throw("invalid order status")
231+ else ScriptResult(WriteSet([DataEntry(p, ap(E)), DataEntry(I(E), l)]), TransferSet([ScriptTransfer(aq.caller, Q, W)]))
232+ }
233+
234+
235+
236+@Callable(aq)
237+func executeOrder () = {
238+ let aB = assetBalance(this, X)
239+ let aC = if ((0 >= ac))
240+ then 0
241+ else ac
242+ let aD = if ((aC >= aB))
243+ then aB
244+ else aC
245+ let aE = if ((aC >= aB))
246+ then 0
247+ else (aB - aC)
248+ if (if ((aE == 0))
249+ then (aD == 0)
250+ else false)
251+ then throw("without deficit")
252+ else if ((aD == 0))
253+ then TransferSet([ScriptTransfer(M, aE, X)])
254+ else {
255+ let E = split(Y, j)[0]
256+ let aF = ai(E)
257+ let aG = af(E)
258+ let aH = ad(E)
259+ let aI = ag(E)
260+ let Q = S((((aG - aF) * 100) / aH))
261+ let aJ = if ((aD >= Q))
262+ then ap(E)
263+ else Y
264+ let aK = if ((aD >= Q))
265+ then Q
266+ else aD
267+ let aL = (((aK * aH) * k) / 100)
268+ let aM = if ((aD >= Q))
269+ then n
270+ else m
271+ if ((aL == 0))
272+ then throw("total equal zero")
273+ else ScriptResult(WriteSet([DataEntry(p, aJ), DataEntry(J(E), (aF + aL)), DataEntry(I(E), aM), DataEntry(K(height), aH)]), TransferSet([ScriptTransfer(addressFromStringValue(aI), aK, X), ScriptTransfer(M, aL, W)]))
274+ }
275+ }
276+
277+

github/deemru/w8io/169f3d6 
21.15 ms