tx · 6XCSoHMEw1PqHASMEo4uHaDKufucMyGek4y9iJGpzNA

3MyCUjugUE6yBLnbq4KD3pcYwGvUiYptbzq:  -0.01400000 Waves

2020.10.27 23:02 [1239478] smart account 3MyCUjugUE6yBLnbq4KD3pcYwGvUiYptbzq > SELF 0.00000000 Waves

{ "type": 13, "id": "6XCSoHMEw1PqHASMEo4uHaDKufucMyGek4y9iJGpzNA", "fee": 1400000, "feeAssetId": null, "timestamp": 1603829025850, "version": 1, "sender": "3MyCUjugUE6yBLnbq4KD3pcYwGvUiYptbzq", "senderPublicKey": "74f9QkKR4W4G8X38P7nfgsZTSnoA3NvHnUKpk55MiGiu", "proofs": [ "23HTTQTm44tcukfFsd4r8TPBhZHY6wN8QsoKtz586x7jdaW5qcWxHmBHku5reQoQExM69S8VXKxTm1SUwNWBbuFy" ], "script": "base64:AAIEAAAAAAAAABQIAhIAEgASBAoCAQESABIECgIBAQAAACEAAAAAEWdvdmVybmFuY2VBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFTEGD9WeF2fOxrGFzNlM5RF0HdkHwbkAeKAAAAAAhJZFRva2VuQQkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAANYXNzZXRJZFRva2VuQQAAAAAISWRUb2tlbkIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAADWFzc2V0SWRUb2tlbkIAAAAADElkVG9rZW5TaGFyZQkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAOc2hhcmVfdG9rZW5faWQAAAAAEWRBcHBUb2tlbnNBbW91bnRBCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAxhbW91bnRUb2tlbkEAAAAAEWRBcHBUb2tlbnNBbW91bnRCCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAxhbW91bnRUb2tlbk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50BQAAAA9uZXdBbW91bnRUb2tlbkEGCQAAZgAAAAIFAAAAE2RBcHBUaHJlc2hvbGRBbW91bnQFAAAAD25ld0Ftb3VudFRva2VuQgkAAAIAAAABAgAAAENiYWxhbmNlIGVycm9yOiBuZXcgZEFwcCB0b2tlbnMgYW1vdW50IGxlc3MgdGhhbiBkQXBwVGhyZXNob2xkQW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAxhbW91bnRUb2tlbkEFAAAAD25ld0Ftb3VudFRva2VuQQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAMYW1vdW50VG9rZW5CBQAAAA9uZXdBbW91bnRUb2tlbkIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACWludmFyaWFudAkBAAAADWludmFyaWFudENhbGMAAAACCQAAZAAAAAIFAAAADGFtb3VudFRva2VuQQUAAAASdG9rZW5SZWNlaXZlQW1vdW50CQAAZQAAAAIJAABlAAAAAgUAAAAMYW1vdW50VG9rZW5CBQAAABZ0b2tlblNlbmRBbW91bnRXaXRoRmVlBQAAABN0b2tlblNlbmRHb3Zlcm5hbmNlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgUAAAAWdG9rZW5TZW5kQW1vdW50V2l0aEZlZQUAAAALYXNzZXRJZFNlbmQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAARZ292ZXJuYW5jZUFkZHJlc3MFAAAAE3Rva2VuU2VuZEdvdmVybmFuY2UFAAAAC2Fzc2V0SWRTZW5kBQAAAANuaWwJAAACAAAAAQIAAAAUQXNzZXQgaXMgbm90IGFsbG93ZWQAAAAAiEXTXw==", "chainId": 84, "height": 1239478, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9UcyYWDmLPo5ithqED5vrpnyob2rQNPQDpax4k5PRY4s Next: GnfUfbZDbTWXaEirvibXDzZ6s7viGQjM2BLa7jHMb76d Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = Address(base58'3MSNMcqyweiM9cWpvf4Fn8GAWeuPstxj2hK')
4+let a = Address(base58'3MS55nqhYKLbLZmRExmUN3H6RSWkr9c2VC5')
55
66 let b = getStringValue(this, "assetIdTokenA")
77
2929
3030 let n = getIntegerValue(this, "invariant")
3131
32-let o = 100000000
32+let o = 1000
3333
34-let p = 8
34+let p = 100000000
3535
36-let q = 1000000000000
36+let q = 8
3737
38-let r = 100000000
38+let r = 1000000000000
3939
40-let s = 99999000
40+let s = 12
4141
42-let t = 50
42+let t = 100000000
4343
44-let u = 2
44+let u = 99999000
4545
46-let v = 46000000
46+let v = 50
4747
48-let w = 8
48+let w = 2
4949
50-func x (y) = if ((y == "WAVES"))
50+let x = 46000000
51+
52+let y = 8
53+
54+func z (A) = if ((A == "WAVES"))
5155 then unit
52- else fromBase58String(y)
56+ else fromBase58String(A)
5357
5458
55-let z = x(b)
59+let B = z(b)
5660
57-let A = x(c)
61+let C = z(c)
5862
59-let B = fromBase58String(d)
63+let D = fromBase58String(d)
6064
61-func C (D,E) = (((fraction(q, D, E) + fraction(q, E, D)) / 2) / 10000)
65+func E (F,G) = (((fraction(r, F, G) + fraction(r, G, F)) / 2) / 10000)
6266
6367
64-func F (D,E) = {
65- let G = C(D, E)
66- (fraction((D + E), o, pow(G, p, t, u, 8, UP)) + (2 * fraction(fraction(pow(D, 0, 5, 1, p, DOWN), pow(E, 0, 5, 1, p, DOWN), (o * o)), pow((G - v), p, t, u, p, DOWN), o)))
68+func H (F,G) = {
69+ let I = E(F, G)
70+ (fraction((F + G), p, pow(I, q, v, w, 8, UP)) + (2 * fraction(pow(fraction(F, G, p), 0, 5, 1, (q / 2), DOWN), pow((I - x), q, v, w, q, DOWN), p)))
6771 }
6872
6973
70-func H (I,J,K,L,M) = {
71- let N = (o - ((o * 1) / 10000000))
72- let O = fraction(n, o, F((K - I), (L + M)))
73- if (if ((O > N))
74- then (o > O)
75- else false)
76- then I
74+func J (K,L,M,N,O) = {
75+ let P = (p - ((p * 1) / 10000000))
76+ let Q = (K - L)
77+ let R = (K - ((1 * Q) / 5))
78+ let S = (K - ((2 * Q) / 5))
79+ let T = (K - ((3 * Q) / 5))
80+ let U = (K - ((4 * Q) / 5))
81+ let V = (K - ((5 * Q) / 5))
82+ if ((0 > (H((M - V), (N + O)) - n)))
83+ then throw("minTokenRecieveAmount too large.err1")
7784 else {
78- let P = (I - J)
79- let Q = (I - ((1 * P) / 5))
80- let R = (I - ((2 * P) / 5))
81- let S = (I - ((3 * P) / 5))
82- let T = (I - ((4 * P) / 5))
83- let U = (I - ((5 * P) / 5))
84- if ((0 > (F((K - U), (L + M)) - n)))
85- then throw("minTokenRecieveAmount too large. err1")
86- else if (((F((K - Q), (L + M)) - n) > 0))
87- then ((Q * (l - j)) / l)
88- else if (((F((K - R), (L + M)) - n) > 0))
89- then ((R * (l - j)) / l)
90- else if (((F((K - S), (L + M)) - n) > 0))
91- then ((S * (l - j)) / l)
92- else if (((F((K - T), (L + M)) - n) > 0))
93- then ((T * (l - j)) / l)
94- else if (((F((K - U), (L + M)) - n) > 0))
95- then ((U * (l - j)) / l)
85+ let W = fraction(n, p, H((M - K), (N + O)))
86+ if (if ((W > P))
87+ then (p > W)
88+ else false)
89+ then K
90+ else if (((H((M - R), (N + O)) - n) > 0))
91+ then ((R * (l - j)) / l)
92+ else if (((H((M - S), (N + O)) - n) > 0))
93+ then ((S * (l - j)) / l)
94+ else if (((H((M - T), (N + O)) - n) > 0))
95+ then ((T * (l - j)) / l)
96+ else if (((H((M - U), (N + O)) - n) > 0))
97+ then ((U * (l - j)) / l)
98+ else if (((H((M - V), (N + O)) - n) > 0))
99+ then ((V * (l - j)) / l)
96100 else throw("price has changed dramatically. err2")
97101 }
98102 }
99103
100104
101-func V (I,J,K,L,M) = {
102- let N = (o - ((o * 1) / 10000000))
103- let O = fraction(n, o, F((K + M), (L - I)))
104- if (if ((O > N))
105- then (o > O)
105+func X (K,L,M,N,O) = {
106+ let P = (p - ((p * 1) / 10000000))
107+ let Q = (K - L)
108+ let R = (K - ((1 * Q) / 5))
109+ let S = (K - ((2 * Q) / 5))
110+ let T = (K - ((3 * Q) / 5))
111+ let U = (K - ((4 * Q) / 5))
112+ let V = (K - ((5 * Q) / 5))
113+ let W = fraction(n, p, H((M + O), (N - K)))
114+ if (if ((W > P))
115+ then (p > W)
106116 else false)
107- then I
108- else {
109- let P = (I - J)
110- let Q = (I - ((1 * P) / 5))
111- let R = (I - ((2 * P) / 5))
112- let S = (I - ((3 * P) / 5))
113- let T = (I - ((4 * P) / 5))
114- let U = (I - ((5 * P) / 5))
115- if ((0 > (F((K + M), (L - U)) - n)))
116- then throw("price has changed dramatically. err1")
117- else if (((F((K + M), (L - Q)) - n) > 0))
118- then ((Q * (l - j)) / l)
119- else if (((F((K + M), (L - R)) - n) > 0))
120- then ((R * (l - j)) / l)
121- else if (((F((K + M), (L - S)) - n) > 0))
122- then ((S * (l - j)) / l)
123- else if (((F((K + M), (L - T)) - n) > 0))
124- then ((T * (l - j)) / l)
125- else if (((F((K + M), (L - U)) - n) > 0))
126- then ((U * (l - j)) / l)
127- else throw("price has changed dramatically. err2")
128- }
117+ then K
118+ else if (((H((M + O), (N - R)) - n) > 0))
119+ then ((R * (l - j)) / l)
120+ else if (((H((M + O), (N - S)) - n) > 0))
121+ then ((S * (l - j)) / l)
122+ else if (((H((M + O), (N - T)) - n) > 0))
123+ then ((T * (l - j)) / l)
124+ else if (((H((M + O), (N - U)) - n) > 0))
125+ then ((U * (l - j)) / l)
126+ else if (((H((M + O), (N - V)) - n) > 0))
127+ then ((V * (l - j)) / l)
128+ else throw("price has changed dramatically. err2")
129129 }
130130
131131
132-@Callable(W)
132+@Callable(Y)
133133 func fund () = {
134- let X = value(W.payments[0])
135- let Y = value(W.payments[1])
136- let Z = X.assetId
137- let aa = X.amount
138- let ab = Y.assetId
139- let ac = Y.amount
140- let ad = {
141- let ae = Z
142- if ($isInstanceOf(ae, "Unit"))
134+ let Z = value(Y.payments[0])
135+ let aa = value(Y.payments[1])
136+ let ab = Z.assetId
137+ let ac = Z.amount
138+ let ad = aa.assetId
139+ let ae = aa.amount
140+ let af = {
141+ let ag = ab
142+ if ($isInstanceOf(ag, "Unit"))
143143 then {
144- let af = ae
144+ let ah = ag
145145 8
146146 }
147- else if ($isInstanceOf(ae, "ByteVector"))
147+ else if ($isInstanceOf(ag, "ByteVector"))
148148 then {
149- let af = ae
150- value(assetInfo(af)).decimals
149+ let ah = ag
150+ value(assetInfo(ah)).decimals
151151 }
152152 else throw("Match error")
153153 }
154- let ag = {
155- let ae = ab
156- if ($isInstanceOf(ae, "Unit"))
154+ let ai = {
155+ let ag = ad
156+ if ($isInstanceOf(ag, "Unit"))
157157 then {
158- let af = ae
158+ let ah = ag
159159 8
160160 }
161- else if ($isInstanceOf(ae, "ByteVector"))
161+ else if ($isInstanceOf(ag, "ByteVector"))
162162 then {
163- let af = ae
164- value(assetInfo(af)).decimals
163+ let ah = ag
164+ value(assetInfo(ah)).decimals
165165 }
166166 else throw("Match error")
167167 }
168168 if (isDefined(getBoolean(this, "status")))
169169 then throw("already active")
170170 else {
171- let ah = ("ShareT_" + takeRight(toString(this), 5))
172- let ai = ((ad + ag) / 2)
173- let aj = fraction(pow(aa, ad, 5, 1, ad, HALFDOWN), pow(ac, ag, 5, 1, ag, HALFDOWN), pow(10, 0, ai, 0, 0, HALFDOWN))
174- let ak = calculateAssetId(Issue(ah, ah, aj, ai, true))
175- let al = {
176- let ae = Z
177- if ($isInstanceOf(ae, "Unit"))
171+ let aj = ("ShareT_" + takeRight(toString(this), 5))
172+ let ak = ((af + ai) / 2)
173+ let al = fraction(pow(ac, af, 5, 1, af, HALFDOWN), pow(ae, ai, 5, 1, ai, HALFDOWN), pow(10, 0, ak, 0, 0, HALFDOWN))
174+ let am = calculateAssetId(Issue(aj, aj, al, ak, true))
175+ let an = {
176+ let ag = ab
177+ if ($isInstanceOf(ag, "Unit"))
178178 then {
179- let am = ae
179+ let ao = ag
180180 "WAVES"
181181 }
182- else if ($isInstanceOf(ae, "ByteVector"))
182+ else if ($isInstanceOf(ag, "ByteVector"))
183183 then {
184- let am = ae
185- toBase58String(value(Z))
186- }
187- else throw("Match error")
188- }
189- let an = {
190- let ae = ab
191- if ($isInstanceOf(ae, "Unit"))
192- then {
193- let am = ae
194- "WAVES"
195- }
196- else if ($isInstanceOf(ae, "ByteVector"))
197- then {
198- let am = ae
184+ let ao = ag
199185 toBase58String(value(ab))
200186 }
201187 else throw("Match error")
202188 }
203- let ao = F(aa, ac)
204-[IntegerEntry("amountTokenA", aa), IntegerEntry("amountTokenB", ac), StringEntry("assetIdTokenA", al), StringEntry("assetIdTokenB", an), IntegerEntry("invariant", ao), BooleanEntry("status", true), IntegerEntry("comission", j), IntegerEntry("comissionScaleDelimiter", l), StringEntry("version", m), Issue(ah, ah, aj, ai, true), ScriptTransfer(W.caller, aj, ak), StringEntry("share_token_id", toBase58String(ak)), IntegerEntry("share_token_supply", aj)]
189+ let ap = {
190+ let ag = ad
191+ if ($isInstanceOf(ag, "Unit"))
192+ then {
193+ let ao = ag
194+ "WAVES"
195+ }
196+ else if ($isInstanceOf(ag, "ByteVector"))
197+ then {
198+ let ao = ag
199+ toBase58String(value(ad))
200+ }
201+ else throw("Match error")
202+ }
203+ let aq = H(ac, ae)
204+[IntegerEntry("amountTokenA", ac), IntegerEntry("amountTokenB", ae), StringEntry("assetIdTokenA", an), StringEntry("assetIdTokenB", ap), IntegerEntry("invariant", aq), BooleanEntry("status", true), IntegerEntry("comission", j), IntegerEntry("comissionScaleDelimiter", l), StringEntry("version", m), Issue(aj, aj, al, ak, true), ScriptTransfer(Y.caller, al, am), StringEntry("share_token_id", toBase58String(am)), IntegerEntry("share_token_supply", al)]
205205 }
206206 }
207207
208208
209209
210-@Callable(W)
210+@Callable(Y)
211211 func replenishmentWithTwoToken () = {
212- let X = value(W.payments[0])
213- let Y = value(W.payments[1])
214- let Z = X.assetId
215- let aa = X.amount
216- let ab = Y.assetId
217- let ac = Y.amount
218- let ao = F((e + aa), (f + ac))
219- if (if ((Z != z))
212+ let Z = value(Y.payments[0])
213+ let aa = value(Y.payments[1])
214+ let ab = Z.assetId
215+ let ac = Z.amount
216+ let ad = aa.assetId
217+ let ae = aa.amount
218+ let aq = H((e + ac), (f + ae))
219+ if (if ((ab != B))
220220 then true
221- else (ab != A))
221+ else (ad != C))
222222 then throw("incorrect assets")
223223 else {
224- let ap = (fraction(aa, o, e) / fraction(f, 1, ac))
225- if (!((ap == o)))
224+ let ar = (fraction(e, (1000000000000 * o), ac) / fraction(f, 1000000000000, ae))
225+ if (!((ar == o)))
226226 then throw("incorrect assets amount: amounts must have the contract ratio")
227227 else {
228- let aq = fraction(aa, g, e)
229- if ((aq == 0))
228+ let as = fraction(ac, g, e)
229+ if ((as == 0))
230230 then throw("you try replansish with very small amount")
231- else [Reissue(B, aq, true), ScriptTransfer(W.caller, aq, B), IntegerEntry("share_token_supply", (g + aq)), IntegerEntry("amountTokenA", (e + aa)), IntegerEntry("amountTokenB", (f + ac)), IntegerEntry("invariant", ao)]
231+ else [Reissue(D, as, true), ScriptTransfer(Y.caller, as, D), IntegerEntry("share_token_supply", (g + as)), IntegerEntry("amountTokenA", (e + ac)), IntegerEntry("amountTokenB", (f + ae)), IntegerEntry("invariant", aq)]
232232 }
233233 }
234234 }
235235
236236
237237
238-@Callable(W)
239-func replanishmentWithOneToken (ar,as) = {
240- let at = value(W.payments[0])
241- let au = at.assetId
242- let M = at.amount
243- if ((au == z))
238+@Callable(Y)
239+func replanishmentWithOneToken (at,au) = {
240+ let av = value(Y.payments[0])
241+ let aw = av.assetId
242+ let O = av.amount
243+ if ((aw == B))
244244 then {
245- let av = (e + M)
246- let aw = F(av, f)
247- let ax = fraction(av, o, f)
248- let ay = fraction(as, ax, ar)
249- if (if ((ay > r))
245+ let ax = (e + O)
246+ let ay = H(ax, f)
247+ let az = fraction(ax, p, f)
248+ let aA = fraction(au, az, at)
249+ if (if ((aA > t))
250250 then true
251- else (s > ay))
251+ else (u > aA))
252252 then throw("incorrect function args: price")
253253 else {
254- let az = F(ar, as)
255- let aA = fraction(az, o, n)
256- if (if ((aA > r))
254+ let aB = H(at, au)
255+ let aC = fraction(aB, p, n)
256+ if (if ((aC > t))
257257 then true
258- else (s > aA))
258+ else (u > aC))
259259 then throw("incorrect function args: invariant")
260260 else {
261- let aB = fraction(as, g, f)
262- let aq = (aB - g)
263-[Reissue(B, aq, true), ScriptTransfer(W.caller, aq, B), IntegerEntry("share_token_supply", (g + aq)), IntegerEntry("amountTokenA", av), IntegerEntry("invariant", aw)]
261+ let aD = fraction(au, g, f)
262+ let as = (aD - g)
263+[Reissue(D, as, true), ScriptTransfer(Y.caller, as, D), IntegerEntry("share_token_supply", (g + as)), IntegerEntry("amountTokenA", ax), IntegerEntry("invariant", ay)]
264264 }
265265 }
266266 }
267- else if ((au == A))
267+ else if ((aw == C))
268268 then {
269- let aC = (f + M)
270- let aw = F(e, aC)
271- let ax = fraction(e, o, aC)
272- let ay = fraction(as, ax, ar)
273- if (if ((ay > r))
269+ let aE = (f + O)
270+ let ay = H(e, aE)
271+ let az = fraction(e, p, aE)
272+ let aA = fraction(au, az, at)
273+ if (if ((aA > t))
274274 then true
275- else (s > ay))
275+ else (u > aA))
276276 then throw("incorrect function args: price")
277277 else {
278- let az = F(ar, as)
279- let aA = fraction(az, o, n)
280- if (if ((aA > r))
278+ let aB = H(at, au)
279+ let aC = fraction(aB, p, n)
280+ if (if ((aC > t))
281281 then true
282- else (s > aA))
282+ else (u > aC))
283283 then throw("incorrect function args: invariant")
284284 else {
285- let aB = fraction(as, g, f)
286- let aq = (aB - g)
287-[Reissue(B, aq, true), ScriptTransfer(W.caller, aq, B), IntegerEntry("share_token_supply", (g + aq)), IntegerEntry("amountTokenB", aC), IntegerEntry("invariant", aw)]
285+ let aD = fraction(au, g, f)
286+ let as = (aD - g)
287+[Reissue(D, as, true), ScriptTransfer(Y.caller, as, D), IntegerEntry("share_token_supply", (g + as)), IntegerEntry("amountTokenB", aE), IntegerEntry("invariant", ay)]
288288 }
289289 }
290290 }
293293
294294
295295
296-@Callable(W)
296+@Callable(Y)
297297 func withdraw () = {
298- let at = value(W.payments[0])
299- let au = at.assetId
300- let M = at.amount
301- let aD = fraction(M, e, g)
302- let aE = fraction(M, f, g)
303- let ao = F((e - aD), (f - aE))
298+ let av = value(Y.payments[0])
299+ let aw = av.assetId
300+ let O = av.amount
301+ let aF = fraction(O, e, g)
302+ let aG = fraction(O, f, g)
303+ let aq = H((e - aF), (f - aG))
304304 if ((getBooleanValue(this, "status") != true))
305305 then throw("status: Unactive")
306- else [IntegerEntry("amountTokenA", (e - aD)), IntegerEntry("amountTokenB", (f - aE)), IntegerEntry("share_token_supply", (g - M)), ScriptTransfer(W.caller, aD, z), ScriptTransfer(W.caller, aE, A), Burn(B, M), IntegerEntry("invariant", ao)]
306+ else [IntegerEntry("amountTokenA", (e - aF)), IntegerEntry("amountTokenB", (f - aG)), IntegerEntry("share_token_supply", (g - O)), ScriptTransfer(Y.caller, aF, B), ScriptTransfer(Y.caller, aG, C), Burn(D, O), IntegerEntry("invariant", aq)]
307307 }
308308
309309
310310
311-@Callable(W)
312-func exchanger (I,J) = {
313- let L = getIntegerValue(this, "amountTokenB")
314- let K = getIntegerValue(this, "amountTokenA")
315- let at = value(W.payments[0])
316- let au = at.assetId
317- let M = at.amount
311+@Callable(Y)
312+func exchanger (K,L) = {
313+ let N = getIntegerValue(this, "amountTokenB")
314+ let M = getIntegerValue(this, "amountTokenA")
315+ let av = value(Y.payments[0])
316+ let aw = av.assetId
317+ let O = av.amount
318318 if ((getBooleanValue(this, "status") != true))
319319 then throw("status: Unactive")
320- else if ((au == A))
320+ else if ((aw == C))
321321 then {
322- let aF = H(I, J, K, L, M)
323- let aG = fraction(aF, (l - j), l)
324- let aH = fraction(aF, k, l)
325- let aI = z
326- let av = ((K - aG) - aH)
327- let aC = (L + M)
328- if (if ((h > av))
322+ let aH = J(K, L, M, N, O)
323+ let aI = fraction(aH, (l - j), l)
324+ let aJ = fraction(aH, k, l)
325+ let aK = B
326+ let ax = ((M - aI) - aJ)
327+ let aE = (N + O)
328+ let aL = fraction((e + f), h, (2 * i))
329+ if (if ((aL > ax))
329330 then true
330- else (h > aC))
331+ else (aL > aE))
331332 then throw("balance error: new dApp tokens amount less than dAppThresholdAmount")
332- else [IntegerEntry("amountTokenA", av), IntegerEntry("amountTokenB", aC), IntegerEntry("invariant", F(((K - aG) - aH), (L + M))), ScriptTransfer(W.caller, aG, aI), ScriptTransfer(a, aH, aI)]
333+ else [IntegerEntry("amountTokenA", ax), IntegerEntry("amountTokenB", aE), IntegerEntry("invariant", H(((M - aI) - aJ), (N + O))), ScriptTransfer(Y.caller, aI, aK), ScriptTransfer(a, aJ, aK)]
333334 }
334- else if ((au == z))
335+ else if ((aw == B))
335336 then {
336- let aF = V(I, J, K, L, M)
337- let aG = fraction(aF, (l - j), l)
338- let aH = fraction(aF, k, l)
339- let aI = A
340- let av = (K + M)
341- let aC = ((L - aG) - aH)
342- if (if ((h > av))
337+ let aH = X(K, L, M, N, O)
338+ let aI = fraction(aH, (l - j), l)
339+ let aJ = fraction(aH, k, l)
340+ let aK = C
341+ let ax = (M + O)
342+ let aE = ((N - aI) - aJ)
343+ let aL = fraction((e + f), h, (2 * i))
344+ if (if ((aL > ax))
343345 then true
344- else (h > aC))
346+ else (aL > aE))
345347 then throw("balance error: new dApp tokens amount less than dAppThresholdAmount")
346- else [IntegerEntry("amountTokenA", av), IntegerEntry("amountTokenB", aC), IntegerEntry("invariant", F((K + M), ((L - aG) - aH))), ScriptTransfer(W.caller, aG, aI), ScriptTransfer(a, aH, aI)]
348+ else [IntegerEntry("amountTokenA", ax), IntegerEntry("amountTokenB", aE), IntegerEntry("invariant", H((M + O), ((N - aI) - aJ))), ScriptTransfer(Y.caller, aI, aK), ScriptTransfer(a, aJ, aK)]
347349 }
348350 else throw("Asset is not allowed")
349351 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = Address(base58'3MSNMcqyweiM9cWpvf4Fn8GAWeuPstxj2hK')
4+let a = Address(base58'3MS55nqhYKLbLZmRExmUN3H6RSWkr9c2VC5')
55
66 let b = getStringValue(this, "assetIdTokenA")
77
88 let c = getStringValue(this, "assetIdTokenB")
99
1010 let d = getStringValue(this, "share_token_id")
1111
1212 let e = getIntegerValue(this, "amountTokenA")
1313
1414 let f = getIntegerValue(this, "amountTokenB")
1515
1616 let g = getIntegerValue(this, "share_token_supply")
1717
1818 let h = 80
1919
2020 let i = 100
2121
2222 let j = 500
2323
2424 let k = 200
2525
2626 let l = 1000000
2727
2828 let m = "2.0.0"
2929
3030 let n = getIntegerValue(this, "invariant")
3131
32-let o = 100000000
32+let o = 1000
3333
34-let p = 8
34+let p = 100000000
3535
36-let q = 1000000000000
36+let q = 8
3737
38-let r = 100000000
38+let r = 1000000000000
3939
40-let s = 99999000
40+let s = 12
4141
42-let t = 50
42+let t = 100000000
4343
44-let u = 2
44+let u = 99999000
4545
46-let v = 46000000
46+let v = 50
4747
48-let w = 8
48+let w = 2
4949
50-func x (y) = if ((y == "WAVES"))
50+let x = 46000000
51+
52+let y = 8
53+
54+func z (A) = if ((A == "WAVES"))
5155 then unit
52- else fromBase58String(y)
56+ else fromBase58String(A)
5357
5458
55-let z = x(b)
59+let B = z(b)
5660
57-let A = x(c)
61+let C = z(c)
5862
59-let B = fromBase58String(d)
63+let D = fromBase58String(d)
6064
61-func C (D,E) = (((fraction(q, D, E) + fraction(q, E, D)) / 2) / 10000)
65+func E (F,G) = (((fraction(r, F, G) + fraction(r, G, F)) / 2) / 10000)
6266
6367
64-func F (D,E) = {
65- let G = C(D, E)
66- (fraction((D + E), o, pow(G, p, t, u, 8, UP)) + (2 * fraction(fraction(pow(D, 0, 5, 1, p, DOWN), pow(E, 0, 5, 1, p, DOWN), (o * o)), pow((G - v), p, t, u, p, DOWN), o)))
68+func H (F,G) = {
69+ let I = E(F, G)
70+ (fraction((F + G), p, pow(I, q, v, w, 8, UP)) + (2 * fraction(pow(fraction(F, G, p), 0, 5, 1, (q / 2), DOWN), pow((I - x), q, v, w, q, DOWN), p)))
6771 }
6872
6973
70-func H (I,J,K,L,M) = {
71- let N = (o - ((o * 1) / 10000000))
72- let O = fraction(n, o, F((K - I), (L + M)))
73- if (if ((O > N))
74- then (o > O)
75- else false)
76- then I
74+func J (K,L,M,N,O) = {
75+ let P = (p - ((p * 1) / 10000000))
76+ let Q = (K - L)
77+ let R = (K - ((1 * Q) / 5))
78+ let S = (K - ((2 * Q) / 5))
79+ let T = (K - ((3 * Q) / 5))
80+ let U = (K - ((4 * Q) / 5))
81+ let V = (K - ((5 * Q) / 5))
82+ if ((0 > (H((M - V), (N + O)) - n)))
83+ then throw("minTokenRecieveAmount too large.err1")
7784 else {
78- let P = (I - J)
79- let Q = (I - ((1 * P) / 5))
80- let R = (I - ((2 * P) / 5))
81- let S = (I - ((3 * P) / 5))
82- let T = (I - ((4 * P) / 5))
83- let U = (I - ((5 * P) / 5))
84- if ((0 > (F((K - U), (L + M)) - n)))
85- then throw("minTokenRecieveAmount too large. err1")
86- else if (((F((K - Q), (L + M)) - n) > 0))
87- then ((Q * (l - j)) / l)
88- else if (((F((K - R), (L + M)) - n) > 0))
89- then ((R * (l - j)) / l)
90- else if (((F((K - S), (L + M)) - n) > 0))
91- then ((S * (l - j)) / l)
92- else if (((F((K - T), (L + M)) - n) > 0))
93- then ((T * (l - j)) / l)
94- else if (((F((K - U), (L + M)) - n) > 0))
95- then ((U * (l - j)) / l)
85+ let W = fraction(n, p, H((M - K), (N + O)))
86+ if (if ((W > P))
87+ then (p > W)
88+ else false)
89+ then K
90+ else if (((H((M - R), (N + O)) - n) > 0))
91+ then ((R * (l - j)) / l)
92+ else if (((H((M - S), (N + O)) - n) > 0))
93+ then ((S * (l - j)) / l)
94+ else if (((H((M - T), (N + O)) - n) > 0))
95+ then ((T * (l - j)) / l)
96+ else if (((H((M - U), (N + O)) - n) > 0))
97+ then ((U * (l - j)) / l)
98+ else if (((H((M - V), (N + O)) - n) > 0))
99+ then ((V * (l - j)) / l)
96100 else throw("price has changed dramatically. err2")
97101 }
98102 }
99103
100104
101-func V (I,J,K,L,M) = {
102- let N = (o - ((o * 1) / 10000000))
103- let O = fraction(n, o, F((K + M), (L - I)))
104- if (if ((O > N))
105- then (o > O)
105+func X (K,L,M,N,O) = {
106+ let P = (p - ((p * 1) / 10000000))
107+ let Q = (K - L)
108+ let R = (K - ((1 * Q) / 5))
109+ let S = (K - ((2 * Q) / 5))
110+ let T = (K - ((3 * Q) / 5))
111+ let U = (K - ((4 * Q) / 5))
112+ let V = (K - ((5 * Q) / 5))
113+ let W = fraction(n, p, H((M + O), (N - K)))
114+ if (if ((W > P))
115+ then (p > W)
106116 else false)
107- then I
108- else {
109- let P = (I - J)
110- let Q = (I - ((1 * P) / 5))
111- let R = (I - ((2 * P) / 5))
112- let S = (I - ((3 * P) / 5))
113- let T = (I - ((4 * P) / 5))
114- let U = (I - ((5 * P) / 5))
115- if ((0 > (F((K + M), (L - U)) - n)))
116- then throw("price has changed dramatically. err1")
117- else if (((F((K + M), (L - Q)) - n) > 0))
118- then ((Q * (l - j)) / l)
119- else if (((F((K + M), (L - R)) - n) > 0))
120- then ((R * (l - j)) / l)
121- else if (((F((K + M), (L - S)) - n) > 0))
122- then ((S * (l - j)) / l)
123- else if (((F((K + M), (L - T)) - n) > 0))
124- then ((T * (l - j)) / l)
125- else if (((F((K + M), (L - U)) - n) > 0))
126- then ((U * (l - j)) / l)
127- else throw("price has changed dramatically. err2")
128- }
117+ then K
118+ else if (((H((M + O), (N - R)) - n) > 0))
119+ then ((R * (l - j)) / l)
120+ else if (((H((M + O), (N - S)) - n) > 0))
121+ then ((S * (l - j)) / l)
122+ else if (((H((M + O), (N - T)) - n) > 0))
123+ then ((T * (l - j)) / l)
124+ else if (((H((M + O), (N - U)) - n) > 0))
125+ then ((U * (l - j)) / l)
126+ else if (((H((M + O), (N - V)) - n) > 0))
127+ then ((V * (l - j)) / l)
128+ else throw("price has changed dramatically. err2")
129129 }
130130
131131
132-@Callable(W)
132+@Callable(Y)
133133 func fund () = {
134- let X = value(W.payments[0])
135- let Y = value(W.payments[1])
136- let Z = X.assetId
137- let aa = X.amount
138- let ab = Y.assetId
139- let ac = Y.amount
140- let ad = {
141- let ae = Z
142- if ($isInstanceOf(ae, "Unit"))
134+ let Z = value(Y.payments[0])
135+ let aa = value(Y.payments[1])
136+ let ab = Z.assetId
137+ let ac = Z.amount
138+ let ad = aa.assetId
139+ let ae = aa.amount
140+ let af = {
141+ let ag = ab
142+ if ($isInstanceOf(ag, "Unit"))
143143 then {
144- let af = ae
144+ let ah = ag
145145 8
146146 }
147- else if ($isInstanceOf(ae, "ByteVector"))
147+ else if ($isInstanceOf(ag, "ByteVector"))
148148 then {
149- let af = ae
150- value(assetInfo(af)).decimals
149+ let ah = ag
150+ value(assetInfo(ah)).decimals
151151 }
152152 else throw("Match error")
153153 }
154- let ag = {
155- let ae = ab
156- if ($isInstanceOf(ae, "Unit"))
154+ let ai = {
155+ let ag = ad
156+ if ($isInstanceOf(ag, "Unit"))
157157 then {
158- let af = ae
158+ let ah = ag
159159 8
160160 }
161- else if ($isInstanceOf(ae, "ByteVector"))
161+ else if ($isInstanceOf(ag, "ByteVector"))
162162 then {
163- let af = ae
164- value(assetInfo(af)).decimals
163+ let ah = ag
164+ value(assetInfo(ah)).decimals
165165 }
166166 else throw("Match error")
167167 }
168168 if (isDefined(getBoolean(this, "status")))
169169 then throw("already active")
170170 else {
171- let ah = ("ShareT_" + takeRight(toString(this), 5))
172- let ai = ((ad + ag) / 2)
173- let aj = fraction(pow(aa, ad, 5, 1, ad, HALFDOWN), pow(ac, ag, 5, 1, ag, HALFDOWN), pow(10, 0, ai, 0, 0, HALFDOWN))
174- let ak = calculateAssetId(Issue(ah, ah, aj, ai, true))
175- let al = {
176- let ae = Z
177- if ($isInstanceOf(ae, "Unit"))
171+ let aj = ("ShareT_" + takeRight(toString(this), 5))
172+ let ak = ((af + ai) / 2)
173+ let al = fraction(pow(ac, af, 5, 1, af, HALFDOWN), pow(ae, ai, 5, 1, ai, HALFDOWN), pow(10, 0, ak, 0, 0, HALFDOWN))
174+ let am = calculateAssetId(Issue(aj, aj, al, ak, true))
175+ let an = {
176+ let ag = ab
177+ if ($isInstanceOf(ag, "Unit"))
178178 then {
179- let am = ae
179+ let ao = ag
180180 "WAVES"
181181 }
182- else if ($isInstanceOf(ae, "ByteVector"))
182+ else if ($isInstanceOf(ag, "ByteVector"))
183183 then {
184- let am = ae
185- toBase58String(value(Z))
186- }
187- else throw("Match error")
188- }
189- let an = {
190- let ae = ab
191- if ($isInstanceOf(ae, "Unit"))
192- then {
193- let am = ae
194- "WAVES"
195- }
196- else if ($isInstanceOf(ae, "ByteVector"))
197- then {
198- let am = ae
184+ let ao = ag
199185 toBase58String(value(ab))
200186 }
201187 else throw("Match error")
202188 }
203- let ao = F(aa, ac)
204-[IntegerEntry("amountTokenA", aa), IntegerEntry("amountTokenB", ac), StringEntry("assetIdTokenA", al), StringEntry("assetIdTokenB", an), IntegerEntry("invariant", ao), BooleanEntry("status", true), IntegerEntry("comission", j), IntegerEntry("comissionScaleDelimiter", l), StringEntry("version", m), Issue(ah, ah, aj, ai, true), ScriptTransfer(W.caller, aj, ak), StringEntry("share_token_id", toBase58String(ak)), IntegerEntry("share_token_supply", aj)]
189+ let ap = {
190+ let ag = ad
191+ if ($isInstanceOf(ag, "Unit"))
192+ then {
193+ let ao = ag
194+ "WAVES"
195+ }
196+ else if ($isInstanceOf(ag, "ByteVector"))
197+ then {
198+ let ao = ag
199+ toBase58String(value(ad))
200+ }
201+ else throw("Match error")
202+ }
203+ let aq = H(ac, ae)
204+[IntegerEntry("amountTokenA", ac), IntegerEntry("amountTokenB", ae), StringEntry("assetIdTokenA", an), StringEntry("assetIdTokenB", ap), IntegerEntry("invariant", aq), BooleanEntry("status", true), IntegerEntry("comission", j), IntegerEntry("comissionScaleDelimiter", l), StringEntry("version", m), Issue(aj, aj, al, ak, true), ScriptTransfer(Y.caller, al, am), StringEntry("share_token_id", toBase58String(am)), IntegerEntry("share_token_supply", al)]
205205 }
206206 }
207207
208208
209209
210-@Callable(W)
210+@Callable(Y)
211211 func replenishmentWithTwoToken () = {
212- let X = value(W.payments[0])
213- let Y = value(W.payments[1])
214- let Z = X.assetId
215- let aa = X.amount
216- let ab = Y.assetId
217- let ac = Y.amount
218- let ao = F((e + aa), (f + ac))
219- if (if ((Z != z))
212+ let Z = value(Y.payments[0])
213+ let aa = value(Y.payments[1])
214+ let ab = Z.assetId
215+ let ac = Z.amount
216+ let ad = aa.assetId
217+ let ae = aa.amount
218+ let aq = H((e + ac), (f + ae))
219+ if (if ((ab != B))
220220 then true
221- else (ab != A))
221+ else (ad != C))
222222 then throw("incorrect assets")
223223 else {
224- let ap = (fraction(aa, o, e) / fraction(f, 1, ac))
225- if (!((ap == o)))
224+ let ar = (fraction(e, (1000000000000 * o), ac) / fraction(f, 1000000000000, ae))
225+ if (!((ar == o)))
226226 then throw("incorrect assets amount: amounts must have the contract ratio")
227227 else {
228- let aq = fraction(aa, g, e)
229- if ((aq == 0))
228+ let as = fraction(ac, g, e)
229+ if ((as == 0))
230230 then throw("you try replansish with very small amount")
231- else [Reissue(B, aq, true), ScriptTransfer(W.caller, aq, B), IntegerEntry("share_token_supply", (g + aq)), IntegerEntry("amountTokenA", (e + aa)), IntegerEntry("amountTokenB", (f + ac)), IntegerEntry("invariant", ao)]
231+ else [Reissue(D, as, true), ScriptTransfer(Y.caller, as, D), IntegerEntry("share_token_supply", (g + as)), IntegerEntry("amountTokenA", (e + ac)), IntegerEntry("amountTokenB", (f + ae)), IntegerEntry("invariant", aq)]
232232 }
233233 }
234234 }
235235
236236
237237
238-@Callable(W)
239-func replanishmentWithOneToken (ar,as) = {
240- let at = value(W.payments[0])
241- let au = at.assetId
242- let M = at.amount
243- if ((au == z))
238+@Callable(Y)
239+func replanishmentWithOneToken (at,au) = {
240+ let av = value(Y.payments[0])
241+ let aw = av.assetId
242+ let O = av.amount
243+ if ((aw == B))
244244 then {
245- let av = (e + M)
246- let aw = F(av, f)
247- let ax = fraction(av, o, f)
248- let ay = fraction(as, ax, ar)
249- if (if ((ay > r))
245+ let ax = (e + O)
246+ let ay = H(ax, f)
247+ let az = fraction(ax, p, f)
248+ let aA = fraction(au, az, at)
249+ if (if ((aA > t))
250250 then true
251- else (s > ay))
251+ else (u > aA))
252252 then throw("incorrect function args: price")
253253 else {
254- let az = F(ar, as)
255- let aA = fraction(az, o, n)
256- if (if ((aA > r))
254+ let aB = H(at, au)
255+ let aC = fraction(aB, p, n)
256+ if (if ((aC > t))
257257 then true
258- else (s > aA))
258+ else (u > aC))
259259 then throw("incorrect function args: invariant")
260260 else {
261- let aB = fraction(as, g, f)
262- let aq = (aB - g)
263-[Reissue(B, aq, true), ScriptTransfer(W.caller, aq, B), IntegerEntry("share_token_supply", (g + aq)), IntegerEntry("amountTokenA", av), IntegerEntry("invariant", aw)]
261+ let aD = fraction(au, g, f)
262+ let as = (aD - g)
263+[Reissue(D, as, true), ScriptTransfer(Y.caller, as, D), IntegerEntry("share_token_supply", (g + as)), IntegerEntry("amountTokenA", ax), IntegerEntry("invariant", ay)]
264264 }
265265 }
266266 }
267- else if ((au == A))
267+ else if ((aw == C))
268268 then {
269- let aC = (f + M)
270- let aw = F(e, aC)
271- let ax = fraction(e, o, aC)
272- let ay = fraction(as, ax, ar)
273- if (if ((ay > r))
269+ let aE = (f + O)
270+ let ay = H(e, aE)
271+ let az = fraction(e, p, aE)
272+ let aA = fraction(au, az, at)
273+ if (if ((aA > t))
274274 then true
275- else (s > ay))
275+ else (u > aA))
276276 then throw("incorrect function args: price")
277277 else {
278- let az = F(ar, as)
279- let aA = fraction(az, o, n)
280- if (if ((aA > r))
278+ let aB = H(at, au)
279+ let aC = fraction(aB, p, n)
280+ if (if ((aC > t))
281281 then true
282- else (s > aA))
282+ else (u > aC))
283283 then throw("incorrect function args: invariant")
284284 else {
285- let aB = fraction(as, g, f)
286- let aq = (aB - g)
287-[Reissue(B, aq, true), ScriptTransfer(W.caller, aq, B), IntegerEntry("share_token_supply", (g + aq)), IntegerEntry("amountTokenB", aC), IntegerEntry("invariant", aw)]
285+ let aD = fraction(au, g, f)
286+ let as = (aD - g)
287+[Reissue(D, as, true), ScriptTransfer(Y.caller, as, D), IntegerEntry("share_token_supply", (g + as)), IntegerEntry("amountTokenB", aE), IntegerEntry("invariant", ay)]
288288 }
289289 }
290290 }
291291 else throw("incorrect assets in payment")
292292 }
293293
294294
295295
296-@Callable(W)
296+@Callable(Y)
297297 func withdraw () = {
298- let at = value(W.payments[0])
299- let au = at.assetId
300- let M = at.amount
301- let aD = fraction(M, e, g)
302- let aE = fraction(M, f, g)
303- let ao = F((e - aD), (f - aE))
298+ let av = value(Y.payments[0])
299+ let aw = av.assetId
300+ let O = av.amount
301+ let aF = fraction(O, e, g)
302+ let aG = fraction(O, f, g)
303+ let aq = H((e - aF), (f - aG))
304304 if ((getBooleanValue(this, "status") != true))
305305 then throw("status: Unactive")
306- else [IntegerEntry("amountTokenA", (e - aD)), IntegerEntry("amountTokenB", (f - aE)), IntegerEntry("share_token_supply", (g - M)), ScriptTransfer(W.caller, aD, z), ScriptTransfer(W.caller, aE, A), Burn(B, M), IntegerEntry("invariant", ao)]
306+ else [IntegerEntry("amountTokenA", (e - aF)), IntegerEntry("amountTokenB", (f - aG)), IntegerEntry("share_token_supply", (g - O)), ScriptTransfer(Y.caller, aF, B), ScriptTransfer(Y.caller, aG, C), Burn(D, O), IntegerEntry("invariant", aq)]
307307 }
308308
309309
310310
311-@Callable(W)
312-func exchanger (I,J) = {
313- let L = getIntegerValue(this, "amountTokenB")
314- let K = getIntegerValue(this, "amountTokenA")
315- let at = value(W.payments[0])
316- let au = at.assetId
317- let M = at.amount
311+@Callable(Y)
312+func exchanger (K,L) = {
313+ let N = getIntegerValue(this, "amountTokenB")
314+ let M = getIntegerValue(this, "amountTokenA")
315+ let av = value(Y.payments[0])
316+ let aw = av.assetId
317+ let O = av.amount
318318 if ((getBooleanValue(this, "status") != true))
319319 then throw("status: Unactive")
320- else if ((au == A))
320+ else if ((aw == C))
321321 then {
322- let aF = H(I, J, K, L, M)
323- let aG = fraction(aF, (l - j), l)
324- let aH = fraction(aF, k, l)
325- let aI = z
326- let av = ((K - aG) - aH)
327- let aC = (L + M)
328- if (if ((h > av))
322+ let aH = J(K, L, M, N, O)
323+ let aI = fraction(aH, (l - j), l)
324+ let aJ = fraction(aH, k, l)
325+ let aK = B
326+ let ax = ((M - aI) - aJ)
327+ let aE = (N + O)
328+ let aL = fraction((e + f), h, (2 * i))
329+ if (if ((aL > ax))
329330 then true
330- else (h > aC))
331+ else (aL > aE))
331332 then throw("balance error: new dApp tokens amount less than dAppThresholdAmount")
332- else [IntegerEntry("amountTokenA", av), IntegerEntry("amountTokenB", aC), IntegerEntry("invariant", F(((K - aG) - aH), (L + M))), ScriptTransfer(W.caller, aG, aI), ScriptTransfer(a, aH, aI)]
333+ else [IntegerEntry("amountTokenA", ax), IntegerEntry("amountTokenB", aE), IntegerEntry("invariant", H(((M - aI) - aJ), (N + O))), ScriptTransfer(Y.caller, aI, aK), ScriptTransfer(a, aJ, aK)]
333334 }
334- else if ((au == z))
335+ else if ((aw == B))
335336 then {
336- let aF = V(I, J, K, L, M)
337- let aG = fraction(aF, (l - j), l)
338- let aH = fraction(aF, k, l)
339- let aI = A
340- let av = (K + M)
341- let aC = ((L - aG) - aH)
342- if (if ((h > av))
337+ let aH = X(K, L, M, N, O)
338+ let aI = fraction(aH, (l - j), l)
339+ let aJ = fraction(aH, k, l)
340+ let aK = C
341+ let ax = (M + O)
342+ let aE = ((N - aI) - aJ)
343+ let aL = fraction((e + f), h, (2 * i))
344+ if (if ((aL > ax))
343345 then true
344- else (h > aC))
346+ else (aL > aE))
345347 then throw("balance error: new dApp tokens amount less than dAppThresholdAmount")
346- else [IntegerEntry("amountTokenA", av), IntegerEntry("amountTokenB", aC), IntegerEntry("invariant", F((K + M), ((L - aG) - aH))), ScriptTransfer(W.caller, aG, aI), ScriptTransfer(a, aH, aI)]
348+ else [IntegerEntry("amountTokenA", ax), IntegerEntry("amountTokenB", aE), IntegerEntry("invariant", H((M + O), ((N - aI) - aJ))), ScriptTransfer(Y.caller, aI, aK), ScriptTransfer(a, aJ, aK)]
347349 }
348350 else throw("Asset is not allowed")
349351 }
350352
351353

github/deemru/w8io/026f985 
106.35 ms