tx · 9GxMSG2hRetPdPLPmeSLQYWKGRk66DDMX2qQ1cjA7UKN

3N1cxT1vyTpS1F3puP2DV33JZFu7harstXm:  -0.01000000 Waves

2019.11.28 14:19 [785085] smart account 3N1cxT1vyTpS1F3puP2DV33JZFu7harstXm > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
24.77 ms