tx · AsNFd69NnkoKX7UCP1WttdkZHEEyPL5mxPdfpfSLzQP9

3MuTR6FqVriefgvXkJtNxj8CNh3nBbuqidJ:  -0.01400000 Waves

2019.09.27 22:50 [695272] smart account 3MuTR6FqVriefgvXkJtNxj8CNh3nBbuqidJ > SELF 0.00000000 Waves

{ "type": 13, "id": "AsNFd69NnkoKX7UCP1WttdkZHEEyPL5mxPdfpfSLzQP9", "fee": 1400000, "feeAssetId": null, "timestamp": 1569613842181, "version": 1, "sender": "3MuTR6FqVriefgvXkJtNxj8CNh3nBbuqidJ", "senderPublicKey": "7Egc9nr6FA2hbNNbo8H21n8htzQ5nYzsLc6eku6JU5pn", "proofs": [ "5RLfVZafWcK1VkssbgSNotx4iku9zmXR8AUy3mF7dVaA18sMNm2H8pbXAHt1tv7UzCuwHUhK6ywSjtarnteyUD6W" ], "script": "base64:AAIDAAAAAAAAAAAAAAAoAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAA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RhRW50cnkAAAACBQAAAAxPcmRlckJvb2tLZXkFAAAADG5ld09yZGVyYm9vawkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAFmdldE9yZGVyRmlsbGVkVG90YWxLZXkAAAABBQAAAAdvcmRlcklkCQAAZAAAAAIFAAAAC2ZpbGxlZFRvdGFsBQAAAAV0b3RhbAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAEWdldE9yZGVyU3RhdHVzS2V5AAAAAQUAAAAHb3JkZXJJZAUAAAAGc3RhdHVzBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAApvcmRlck93bmVyBQAAAAxmaWxsZWRBbW91bnQFAAAAC2JvbmRBc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAQbmV1dHJpbm9Db250cmFjdAUAAAAFdG90YWwFAAAAD25ldXRyaW5vQXNzZXRJZAUAAAADbmlsAAAAAAfET2o=", "chainId": 84, "height": 695272, "spentComplexity": 0 } View: original | compacted Prev: 4aR2GSKzTzxqfPHnUvYtoPuU9cSyhEh3SFAUYoXUNys6 Next: 6c2P7kdQjRgRKy34VFUuH5uycQUApwXfdyrsGBSAoiXq Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = ""
5-
6-func b (c,d) = {
7- let e = getInteger(addressFromStringValue(c), d)
8- if ($isInstanceOf(e, "Int"))
4+func a (b,c) = {
5+ let d = getInteger(addressFromStringValue(b), c)
6+ if ($isInstanceOf(d, "Int"))
97 then {
10- let f = e
11- f
8+ let e = d
9+ e
1210 }
1311 else 0
1412 }
1513
1614
17-func g (d) = {
18- let e = getInteger(this, d)
19- if ($isInstanceOf(e, "Int"))
15+func f (c) = {
16+ let d = getInteger(this, c)
17+ if ($isInstanceOf(d, "Int"))
2018 then {
21- let f = e
22- f
19+ let e = d
20+ e
2321 }
2422 else 0
2523 }
2624
2725
28-func h (d) = {
29- let e = getString(this, d)
30- if ($isInstanceOf(e, "String"))
26+func g (c) = {
27+ let d = getString(this, c)
28+ if ($isInstanceOf(d, "String"))
3129 then {
32- let f = e
33- f
30+ let e = d
31+ e
3432 }
35- else a
33+ else ""
3634 }
3735
3836
39-let i = "orderbook"
37+let h = "_"
4038
41-let j = "order_price_"
39+let i = 100000000
4240
43-let k = "order_total_"
41+let j = "canceled"
4442
45-let l = "order_filled_total_"
43+let k = "new"
4644
47-let m = "order_owner_"
45+let l = "filled"
4846
49-let n = "order_height_"
47+let m = "orderbook"
5048
51-let o = "order_status_"
49+let n = "order_price_"
5250
53-let p = "price"
51+let o = "order_total_"
5452
55-let q = "bond_asset_id"
53+let p = "order_filled_total_"
5654
57-let r = "neutrino_asset_id"
55+let q = "order_owner_"
5856
59-let s = "neutrino_contract"
57+let r = "order_height_"
6058
61-let t = h(i)
59+let s = "order_status_"
6260
63-func u (v) = g((j + v))
61+let t = "price"
62+
63+let u = "bond_asset_id"
64+
65+let v = "neutrino_asset_id"
66+
67+let w = "neutrino_contract"
68+
69+func x (y) = (n + y)
6470
6571
66-func w (v) = g((k + v))
72+func z (y) = (o + y)
6773
6874
69-func x (v) = h((m + v))
75+func A (y) = (q + y)
7076
7177
72-func y (v) = h((o + v))
78+func B (y) = (r + y)
7379
7480
75-func z (v) = g((l + v))
81+func C (y) = (s + y)
7682
7783
78-let A = fromBase58String(h(r))
84+func D (y) = (p + y)
7985
80-let B = h(s)
8186
82-let C = wavesBalance(addressFromStringValue(B))
87+let E = fromBase58String(g(v))
8388
84-let D = {
85- let E = extract(assetInfo(A))
86- (E.quantity - assetBalance(addressFromStringValue(B), A))
89+let F = fromBase58String(g(u))
90+
91+let G = g(w)
92+
93+let H = a(G, t)
94+
95+let I = g(m)
96+
97+let J = wavesBalance(addressFromStringValue(G))
98+
99+let K = {
100+ let L = extract(assetInfo(E))
101+ (L.quantity - assetBalance(addressFromStringValue(G), E))
87102 }
88103
89-let F = b(B, p)
104+func M (N) = f(x(N))
90105
91-let G = "_"
92106
93-let H = fromBase58String(h(q))
107+func O (N) = f(z(N))
94108
95-let I = 100000000
96109
97-let J = "canceled"
110+func P (N) = g(A(N))
98111
99-let K = "new"
100112
101-let L = "filled"
113+func Q (N) = g(C(N))
102114
103-func M (N,O) = {
104- let P = split(t, G)
105- let Q = (N + G)
106- if ((O == 0))
107- then (Q + t)
108- else if ((O >= (size(P) - 1)))
109- then (t + Q)
115+
116+func R (N) = f(D(N))
117+
118+
119+func S (N) = (N + h)
120+
121+
122+func T (y,U) = {
123+ let V = split(I, h)
124+ let W = S(y)
125+ if ((U == 0))
126+ then (W + I)
127+ else if ((U >= (size(V) - 1)))
128+ then (I + W)
110129 else {
111- let R = split(t, (P[O] + G))
112- (((R[0] + Q) + (P[O] + G)) + R[1])
130+ let X = split(I, S(V[U]))
131+ (((X[0] + W) + S(V[U])) + X[1])
113132 }
114133 }
115134
116135
117-@Callable(S)
118-func setOrder (F,O) = {
119- let T = extract(S.payment)
120- let U = toBase58String(keccak256((((toBytes(F) + toBytes(T.amount)) + S.caller.bytes) + toBytes(height))))
121- if ((T.assetId != A))
136+func Y (y) = {
137+ let X = split(I, S(y))
138+ (X[0] + X[1])
139+ }
140+
141+
142+@Callable(Z)
143+func setOrder (H,U) = {
144+ let aa = extract(Z.payment)
145+ let ab = toBase58String(keccak256((((toBytes(H) + toBytes(aa.amount)) + Z.caller.bytes) + toBytes(height))))
146+ if ((aa.assetId != E))
122147 then throw("can use neutrino only")
123- else if ((0 >= F))
148+ else if ((0 >= H))
124149 then throw("price less zero")
125- else if ((x(U) != a))
150+ else if ((P(ab) != ""))
126151 then throw("order exists")
127152 else {
128- let P = split(t, G)
129- let V = if ((O == 0))
153+ let V = split(I, h)
154+ let ac = if ((U == 0))
130155 then ""
131- else P[(O - 1)]
132- let W = u(V)
133- let X = if (if ((V != ""))
134- then (F > W)
156+ else V[(U - 1)]
157+ let ad = M(ac)
158+ let ae = if (if ((ac != ""))
159+ then (H > ad)
135160 else false)
136161 then true
137162 else false
138- let Y = P[O]
139- let Z = u(Y)
140- let aa = if ((Z >= F))
163+ let af = V[U]
164+ let ag = M(af)
165+ let ah = if ((ag >= H))
141166 then true
142167 else false
143- if (if (X)
168+ if (if (ae)
144169 then true
145- else aa)
146- then throw(((("invalid order isPrevOrderError:" + toString(aa)) + " isNextOrderError:") + toString(X)))
147- else WriteSet([DataEntry(i, M(U, O)), DataEntry((j + U), F), DataEntry((k + U), T.amount), DataEntry((m + U), toString(S.caller)), DataEntry((n + U), height), DataEntry((o + U), K)])
170+ else ah)
171+ then throw(((("invalid order isPrevOrderError:" + toString(ah)) + " isNextOrderError:") + toString(ae)))
172+ else WriteSet([DataEntry(m, T(ab, U)), DataEntry(x(ab), H), DataEntry(z(ab), aa.amount), DataEntry(A(ab), toString(Z.caller)), DataEntry(B(ab), height), DataEntry(C(ab), k)])
148173 }
149174 }
150175
151176
152177
153-@Callable(S)
154-func cancelOrder (N) = {
155- let ab = x(N)
156- let ac = (w(N) - z(N))
157- if ((ab != toString(S.caller)))
178+@Callable(Z)
179+func cancelOrder (y) = {
180+ let ai = P(y)
181+ let aj = (O(y) - R(y))
182+ if ((ai != toString(Z.caller)))
158183 then throw("permission denied")
159- else {
160- let R = split(t, (N + G))
161- ScriptResult(WriteSet([DataEntry(i, (R[0] + R[1])), DataEntry((o + N), J)]), TransferSet([ScriptTransfer(S.caller, ac, A)]))
162- }
184+ else ScriptResult(WriteSet([DataEntry(m, Y(y)), DataEntry(C(y), j)]), TransferSet([ScriptTransfer(Z.caller, aj, E)]))
163185 }
164186
165187
166188
167-@Callable(S)
189+@Callable(Z)
168190 func executeOrder () = {
169- let ad = assetBalance(this, H)
170- let ae = ((D - ((C * F) / 100)) / I)
171- let af = if ((0 >= ae))
191+ let ak = assetBalance(this, F)
192+ let al = ((K - ((J * H) / 100)) / i)
193+ let am = if ((0 >= al))
172194 then 0
173- else ae
174- let ag = if ((af >= ad))
175- then ad
176- else af
177- let ah = if ((af >= ad))
195+ else al
196+ let an = if ((am >= ak))
197+ then ak
198+ else am
199+ let ao = if ((am >= ak))
178200 then 0
179- else (ad - af)
180- if ((ag == 0))
181- then TransferSet([ScriptTransfer(addressFromStringValue(B), ah, H)])
201+ else (ak - am)
202+ if ((an == 0))
203+ then TransferSet([ScriptTransfer(addressFromStringValue(G), ao, F)])
182204 else {
183- let N = split(t, G)[0]
184- let ai = z(N)
185- let aj = w(N)
186- let ak = u(N)
187- let al = x(N)
188- let ac = ((((aj - ai) * 100) / ak) / I)
189- let am = if ((ag >= ac))
190- then split(t, (N + G))[1]
191- else t
192- let an = if ((ag >= ac))
193- then ac
194- else ag
195- let ao = (((an * ak) / 100) * I)
196- let ap = if ((ag >= ac))
197- then L
198- else K
199- ScriptResult(WriteSet([DataEntry(i, am), DataEntry((l + N), (ai + ao)), DataEntry((o + N), ap)]), TransferSet([ScriptTransfer(addressFromStringValue(al), an, H), ScriptTransfer(addressFromStringValue(B), ao, A), ScriptTransfer(addressFromStringValue(B), ah, H)]))
205+ let y = split(I, h)[0]
206+ let ap = R(y)
207+ let aq = O(y)
208+ let ar = M(y)
209+ let as = P(y)
210+ let aj = ((((aq - ap) * 100) / ar) / i)
211+ let at = if ((an >= aj))
212+ then Y(y)
213+ else I
214+ let au = if ((an >= aj))
215+ then aj
216+ else an
217+ let av = (((au * ar) / 100) * i)
218+ let aw = if ((an >= aj))
219+ then l
220+ else k
221+ ScriptResult(WriteSet([DataEntry(m, at), DataEntry(D(y), (ap + av)), DataEntry(C(y), aw)]), TransferSet([ScriptTransfer(addressFromStringValue(as), au, F), ScriptTransfer(addressFromStringValue(G), av, E)]))
200222 }
201223 }
202224
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = ""
5-
6-func b (c,d) = {
7- let e = getInteger(addressFromStringValue(c), d)
8- if ($isInstanceOf(e, "Int"))
4+func a (b,c) = {
5+ let d = getInteger(addressFromStringValue(b), c)
6+ if ($isInstanceOf(d, "Int"))
97 then {
10- let f = e
11- f
8+ let e = d
9+ e
1210 }
1311 else 0
1412 }
1513
1614
17-func g (d) = {
18- let e = getInteger(this, d)
19- if ($isInstanceOf(e, "Int"))
15+func f (c) = {
16+ let d = getInteger(this, c)
17+ if ($isInstanceOf(d, "Int"))
2018 then {
21- let f = e
22- f
19+ let e = d
20+ e
2321 }
2422 else 0
2523 }
2624
2725
28-func h (d) = {
29- let e = getString(this, d)
30- if ($isInstanceOf(e, "String"))
26+func g (c) = {
27+ let d = getString(this, c)
28+ if ($isInstanceOf(d, "String"))
3129 then {
32- let f = e
33- f
30+ let e = d
31+ e
3432 }
35- else a
33+ else ""
3634 }
3735
3836
39-let i = "orderbook"
37+let h = "_"
4038
41-let j = "order_price_"
39+let i = 100000000
4240
43-let k = "order_total_"
41+let j = "canceled"
4442
45-let l = "order_filled_total_"
43+let k = "new"
4644
47-let m = "order_owner_"
45+let l = "filled"
4846
49-let n = "order_height_"
47+let m = "orderbook"
5048
51-let o = "order_status_"
49+let n = "order_price_"
5250
53-let p = "price"
51+let o = "order_total_"
5452
55-let q = "bond_asset_id"
53+let p = "order_filled_total_"
5654
57-let r = "neutrino_asset_id"
55+let q = "order_owner_"
5856
59-let s = "neutrino_contract"
57+let r = "order_height_"
6058
61-let t = h(i)
59+let s = "order_status_"
6260
63-func u (v) = g((j + v))
61+let t = "price"
62+
63+let u = "bond_asset_id"
64+
65+let v = "neutrino_asset_id"
66+
67+let w = "neutrino_contract"
68+
69+func x (y) = (n + y)
6470
6571
66-func w (v) = g((k + v))
72+func z (y) = (o + y)
6773
6874
69-func x (v) = h((m + v))
75+func A (y) = (q + y)
7076
7177
72-func y (v) = h((o + v))
78+func B (y) = (r + y)
7379
7480
75-func z (v) = g((l + v))
81+func C (y) = (s + y)
7682
7783
78-let A = fromBase58String(h(r))
84+func D (y) = (p + y)
7985
80-let B = h(s)
8186
82-let C = wavesBalance(addressFromStringValue(B))
87+let E = fromBase58String(g(v))
8388
84-let D = {
85- let E = extract(assetInfo(A))
86- (E.quantity - assetBalance(addressFromStringValue(B), A))
89+let F = fromBase58String(g(u))
90+
91+let G = g(w)
92+
93+let H = a(G, t)
94+
95+let I = g(m)
96+
97+let J = wavesBalance(addressFromStringValue(G))
98+
99+let K = {
100+ let L = extract(assetInfo(E))
101+ (L.quantity - assetBalance(addressFromStringValue(G), E))
87102 }
88103
89-let F = b(B, p)
104+func M (N) = f(x(N))
90105
91-let G = "_"
92106
93-let H = fromBase58String(h(q))
107+func O (N) = f(z(N))
94108
95-let I = 100000000
96109
97-let J = "canceled"
110+func P (N) = g(A(N))
98111
99-let K = "new"
100112
101-let L = "filled"
113+func Q (N) = g(C(N))
102114
103-func M (N,O) = {
104- let P = split(t, G)
105- let Q = (N + G)
106- if ((O == 0))
107- then (Q + t)
108- else if ((O >= (size(P) - 1)))
109- then (t + Q)
115+
116+func R (N) = f(D(N))
117+
118+
119+func S (N) = (N + h)
120+
121+
122+func T (y,U) = {
123+ let V = split(I, h)
124+ let W = S(y)
125+ if ((U == 0))
126+ then (W + I)
127+ else if ((U >= (size(V) - 1)))
128+ then (I + W)
110129 else {
111- let R = split(t, (P[O] + G))
112- (((R[0] + Q) + (P[O] + G)) + R[1])
130+ let X = split(I, S(V[U]))
131+ (((X[0] + W) + S(V[U])) + X[1])
113132 }
114133 }
115134
116135
117-@Callable(S)
118-func setOrder (F,O) = {
119- let T = extract(S.payment)
120- let U = toBase58String(keccak256((((toBytes(F) + toBytes(T.amount)) + S.caller.bytes) + toBytes(height))))
121- if ((T.assetId != A))
136+func Y (y) = {
137+ let X = split(I, S(y))
138+ (X[0] + X[1])
139+ }
140+
141+
142+@Callable(Z)
143+func setOrder (H,U) = {
144+ let aa = extract(Z.payment)
145+ let ab = toBase58String(keccak256((((toBytes(H) + toBytes(aa.amount)) + Z.caller.bytes) + toBytes(height))))
146+ if ((aa.assetId != E))
122147 then throw("can use neutrino only")
123- else if ((0 >= F))
148+ else if ((0 >= H))
124149 then throw("price less zero")
125- else if ((x(U) != a))
150+ else if ((P(ab) != ""))
126151 then throw("order exists")
127152 else {
128- let P = split(t, G)
129- let V = if ((O == 0))
153+ let V = split(I, h)
154+ let ac = if ((U == 0))
130155 then ""
131- else P[(O - 1)]
132- let W = u(V)
133- let X = if (if ((V != ""))
134- then (F > W)
156+ else V[(U - 1)]
157+ let ad = M(ac)
158+ let ae = if (if ((ac != ""))
159+ then (H > ad)
135160 else false)
136161 then true
137162 else false
138- let Y = P[O]
139- let Z = u(Y)
140- let aa = if ((Z >= F))
163+ let af = V[U]
164+ let ag = M(af)
165+ let ah = if ((ag >= H))
141166 then true
142167 else false
143- if (if (X)
168+ if (if (ae)
144169 then true
145- else aa)
146- then throw(((("invalid order isPrevOrderError:" + toString(aa)) + " isNextOrderError:") + toString(X)))
147- else WriteSet([DataEntry(i, M(U, O)), DataEntry((j + U), F), DataEntry((k + U), T.amount), DataEntry((m + U), toString(S.caller)), DataEntry((n + U), height), DataEntry((o + U), K)])
170+ else ah)
171+ then throw(((("invalid order isPrevOrderError:" + toString(ah)) + " isNextOrderError:") + toString(ae)))
172+ else WriteSet([DataEntry(m, T(ab, U)), DataEntry(x(ab), H), DataEntry(z(ab), aa.amount), DataEntry(A(ab), toString(Z.caller)), DataEntry(B(ab), height), DataEntry(C(ab), k)])
148173 }
149174 }
150175
151176
152177
153-@Callable(S)
154-func cancelOrder (N) = {
155- let ab = x(N)
156- let ac = (w(N) - z(N))
157- if ((ab != toString(S.caller)))
178+@Callable(Z)
179+func cancelOrder (y) = {
180+ let ai = P(y)
181+ let aj = (O(y) - R(y))
182+ if ((ai != toString(Z.caller)))
158183 then throw("permission denied")
159- else {
160- let R = split(t, (N + G))
161- ScriptResult(WriteSet([DataEntry(i, (R[0] + R[1])), DataEntry((o + N), J)]), TransferSet([ScriptTransfer(S.caller, ac, A)]))
162- }
184+ else ScriptResult(WriteSet([DataEntry(m, Y(y)), DataEntry(C(y), j)]), TransferSet([ScriptTransfer(Z.caller, aj, E)]))
163185 }
164186
165187
166188
167-@Callable(S)
189+@Callable(Z)
168190 func executeOrder () = {
169- let ad = assetBalance(this, H)
170- let ae = ((D - ((C * F) / 100)) / I)
171- let af = if ((0 >= ae))
191+ let ak = assetBalance(this, F)
192+ let al = ((K - ((J * H) / 100)) / i)
193+ let am = if ((0 >= al))
172194 then 0
173- else ae
174- let ag = if ((af >= ad))
175- then ad
176- else af
177- let ah = if ((af >= ad))
195+ else al
196+ let an = if ((am >= ak))
197+ then ak
198+ else am
199+ let ao = if ((am >= ak))
178200 then 0
179- else (ad - af)
180- if ((ag == 0))
181- then TransferSet([ScriptTransfer(addressFromStringValue(B), ah, H)])
201+ else (ak - am)
202+ if ((an == 0))
203+ then TransferSet([ScriptTransfer(addressFromStringValue(G), ao, F)])
182204 else {
183- let N = split(t, G)[0]
184- let ai = z(N)
185- let aj = w(N)
186- let ak = u(N)
187- let al = x(N)
188- let ac = ((((aj - ai) * 100) / ak) / I)
189- let am = if ((ag >= ac))
190- then split(t, (N + G))[1]
191- else t
192- let an = if ((ag >= ac))
193- then ac
194- else ag
195- let ao = (((an * ak) / 100) * I)
196- let ap = if ((ag >= ac))
197- then L
198- else K
199- ScriptResult(WriteSet([DataEntry(i, am), DataEntry((l + N), (ai + ao)), DataEntry((o + N), ap)]), TransferSet([ScriptTransfer(addressFromStringValue(al), an, H), ScriptTransfer(addressFromStringValue(B), ao, A), ScriptTransfer(addressFromStringValue(B), ah, H)]))
205+ let y = split(I, h)[0]
206+ let ap = R(y)
207+ let aq = O(y)
208+ let ar = M(y)
209+ let as = P(y)
210+ let aj = ((((aq - ap) * 100) / ar) / i)
211+ let at = if ((an >= aj))
212+ then Y(y)
213+ else I
214+ let au = if ((an >= aj))
215+ then aj
216+ else an
217+ let av = (((au * ar) / 100) * i)
218+ let aw = if ((an >= aj))
219+ then l
220+ else k
221+ ScriptResult(WriteSet([DataEntry(m, at), DataEntry(D(y), (ap + av)), DataEntry(C(y), aw)]), TransferSet([ScriptTransfer(addressFromStringValue(as), au, F), ScriptTransfer(addressFromStringValue(G), av, E)]))
200222 }
201223 }
202224
203225

github/deemru/w8io/026f985 
83.66 ms