tx · B9zz9NAZtd4ALqXUbiGvVxQPXma7cwfxYepnERZbrGb8

3Mud6ktLyZpnYFf1knDQ2dHi6mmLTjg9KGu:  -0.01000000 Waves

2020.02.10 17:37 [893302] smart account 3Mud6ktLyZpnYFf1knDQ2dHi6mmLTjg9KGu > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
22.02 ms