tx · CPJBNgiqCoi4X64H6kPiZV8k5jRgYMuRPHtNh9CMpnJ4

3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX:  -0.03600000 Waves

2022.11.24 23:10 [2331630] smart account 3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX > SELF 0.00000000 Waves

{ "type": 13, "id": "CPJBNgiqCoi4X64H6kPiZV8k5jRgYMuRPHtNh9CMpnJ4", "fee": 3600000, "feeAssetId": null, "timestamp": 1669320559477, "version": 2, "chainId": 84, "sender": "3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX", "senderPublicKey": "BjnLnkAMaJLYAK36vQqSepUNjGeMDHfZGfmdYwGcLbmg", "proofs": [ "22WLfVQrCioS7N68owkxKzVsyQQtfwoewZSV6zzT8yj7n6urGE36WNFjexDGMB6mffacTGAgxTkDWVjYpg8Vitt6", "49bzGPDiKvDxcRo8M6hGBhRT4ULncL3dAj4ma5VbbVfSwLM4zrwribEFX6QEf7HxJa6ZeXURjF1YKCQCHXqeiHsx" ], "script": "base64:BgJJCAISAwoBBBIECgIEARIGCgQBAQQBEgMKAQESBgoEAQgBARIECgIBARIDCgEBEgASABIAEgMKAQESBQoDBAEIEgASBAoCAQESAGsAB3ZlcnNpb24CBTIuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMACWtBc3NldElkQQIKQV9hc3NldF9pZAAJa0Fzc2V0SWRCAgpCX2Fzc2V0X2lkAAlrQmFsYW5jZUECD0FfYXNzZXRfYmFsYW5jZQAJa0JhbGFuY2VCAg9CX2Fzc2V0X2JhbGFuY2UADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3NldFN1cHBseQISc2hhcmVfYXNzZXRfc3VwcGx5AARrRmVlAgpjb21taXNzaW9uAAprSW52YXJpYW50AglpbnZhcmlhbnQABmtDYXVzZQIOc2h1d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ACCAUDaW52BGRBcHAFBHRoaXMJAAACCAUDaW52CGZ1bmN0aW9uAhl0YWtlSW50b0FjY291bnRFeHRyYUZ1bmRzBwQNc2lnbmVkQnlBZG1pbgMDAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkyBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkzBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAURYWRtaW5QdWJLZXlJbnZva2UDAwUTY2FsbFRha2VJbnRvQWNjb3VudAUNc2lnbmVkQnlBZG1pbgcGBRNtdWx0aVNpZ25lZEJ5QWRtaW5zBRNtdWx0aVNpZ25lZEJ5QWRtaW5zgzYhsQ==", "height": 2331630, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A39GaZW6jN363AdoaKKBJKb8j8a7gV5dGrA81BzYiNZE Next: AxEfEyEs8YwBVVDzHc6ehgNVkhK9mTwTX7Zx7cLsYXDg Diff:
OldNewDifferences
77
88 let c = "active"
99
10-let d = "A_asset_id"
10+let d = "active_all_contracts"
1111
12-let e = "B_asset_id"
12+let e = "A_asset_id"
1313
14-let f = "A_asset_balance"
14+let f = "B_asset_id"
1515
16-let g = "B_asset_balance"
16+let g = "A_asset_balance"
1717
18-let h = "share_asset_id"
18+let h = "B_asset_balance"
1919
20-let i = "share_asset_supply"
20+let i = "share_asset_id"
2121
22-let j = "commission"
22+let j = "share_asset_supply"
2323
24-let k = "invariant"
24+let k = "commission"
2525
26-let l = "shutdown_cause"
26+let l = "invariant"
2727
28-let m = "staking_usdnnsbt_address"
28+let m = "shutdown_cause"
2929
30-let n = "staking_eurn_address"
30+let n = "staking_usdnnsbt_address"
3131
32-let o = "discounts"
32+let o = "staking_eurn_address"
3333
34-let p = "discount_values"
34+let p = "discounts"
3535
36-let q = "_SWOP_amount"
36+let q = "discount_values"
3737
38-let r = "_GSwop_amount"
38+let r = "_SWOP_amount"
3939
40-let s = "first_harvest"
40+let s = "_GSwop_amount"
4141
42-let t = "first_harvest_height"
42+let t = "first_harvest"
4343
44-let u = "share_limit_on_first_harvest"
44+let u = "first_harvest_height"
4545
46-let v = "base_period"
46+let v = "share_limit_on_first_harvest"
4747
48-let w = "period_length"
48+let w = "base_period"
4949
50-let x = "start_height"
50+let x = "period_length"
5151
52-let y = "admin_pub_1"
52+let y = "start_height"
5353
54-let z = "admin_pub_2"
54+let z = "admin_pub_1"
5555
56-let A = "admin_pub_3"
56+let A = "admin_pub_2"
5757
58-let B = "admin_invoke_pub"
58+let B = "admin_pub_3"
5959
60-let C = "money_box_address"
60+let C = "admin_invoke_pub"
6161
62-let D = "governance_address"
62+let D = "money_box_address"
6363
64-let E = "farming_address"
64+let E = "governance_address"
6565
66-let F = "voting_address"
66+let F = "farming_address"
6767
68-let G = "usdn_asset_id"
68+let G = "voting_address"
6969
70-let H = "staking_assets"
70+let H = "usdn_asset_id"
7171
72-let I = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
72+let I = "staking_assets"
7373
74-func J (K) = {
75- let L = getString(I, K)
76- if ($isInstanceOf(L, "String"))
74+let J = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
75+
76+func K (L) = {
77+ let M = getString(J, L)
78+ if ($isInstanceOf(M, "String"))
7779 then {
78- let M = L
79- fromBase58String(M)
80+ let N = M
81+ fromBase58String(N)
8082 }
8183 else {
82- let N = L
83- throw((K + "is empty"))
84+ let O = M
85+ throw((L + "is empty"))
8486 }
8587 }
8688
8789
88-let O = J(y)
90+let P = K(z)
8991
90-let P = J(z)
92+let Q = K(A)
9193
92-let Q = J(A)
94+let R = K(B)
9395
94-let R = J(B)
96+let S = K(C)
9597
96-let S = Address(J(C))
98+let T = Address(K(D))
9799
98-let T = Address(J(D))
100+let U = Address(K(E))
99101
100-let U = Address(J(m))
102+let V = Address(K(n))
101103
102-let V = Address(J(F))
104+let W = Address(K(G))
103105
104-let W = Address(J(E))
106+let X = Address(K(F))
105107
106-let X = J(G)
108+let Y = K(H)
107109
108-let Y = getStringValue(I, H)
110+let Z = getStringValue(J, I)
109111
110-let Z = valueOrErrorMessage(getInteger(V, v), "Empty kBasePeriod")
112+let aa = valueOrErrorMessage(getInteger(W, w), "Empty kBasePeriod")
111113
112-let aa = valueOrErrorMessage(getInteger(V, x), "Empty kStartHeight")
114+let ab = valueOrErrorMessage(getInteger(W, y), "Empty kStartHeight")
113115
114-let ab = valueOrErrorMessage(getInteger(V, w), "Empty kPeriodLength")
116+let ac = valueOrErrorMessage(getInteger(W, x), "Empty kPeriodLength")
115117
116-let ac = ((Z + ((height - aa) / ab)) + 3)
118+let ad = ((aa + ((height - ab) / ac)) + 3)
117119
118-let ad = getBooleanValue(this, c)
120+let ae = getBooleanValue(this, c)
119121
120-let ae = getStringValue(this, d)
122+let af = valueOrElse(getBoolean(J, d), true)
121123
122-let af = getStringValue(this, e)
124+let ag = getStringValue(this, e)
123125
124-let ag = if ((ae == "WAVES"))
126+let ah = getStringValue(this, f)
127+
128+let ai = if ((ag == "WAVES"))
125129 then unit
126- else fromBase58String(ae)
130+ else fromBase58String(ag)
127131
128-let ah = if ((af == "WAVES"))
132+let aj = if ((ah == "WAVES"))
129133 then unit
130- else fromBase58String(af)
134+ else fromBase58String(ah)
131135
132-let ai = {
133- let L = ag
134- if ($isInstanceOf(L, "ByteVector"))
136+let ak = {
137+ let M = ai
138+ if ($isInstanceOf(M, "ByteVector"))
135139 then {
136- let aj = L
137- value(assetInfo(aj)).name
140+ let al = M
141+ value(assetInfo(al)).name
138142 }
139- else if ($isInstanceOf(L, "Unit"))
143+ else if ($isInstanceOf(M, "Unit"))
140144 then {
141- let ak = L
145+ let am = M
142146 "WAVES"
143147 }
144148 else throw("Match error")
145149 }
146150
147-let al = {
148- let L = ah
149- if ($isInstanceOf(L, "ByteVector"))
151+let an = {
152+ let M = aj
153+ if ($isInstanceOf(M, "ByteVector"))
150154 then {
151- let aj = L
152- value(assetInfo(aj)).name
155+ let al = M
156+ value(assetInfo(al)).name
153157 }
154- else if ($isInstanceOf(L, "Unit"))
158+ else if ($isInstanceOf(M, "Unit"))
155159 then {
156- let ak = L
160+ let am = M
157161 "WAVES"
158162 }
159163 else throw("Match error")
160164 }
161165
162-let am = getIntegerValue(this, f)
166+let ao = getIntegerValue(this, g)
163167
164-let an = getIntegerValue(this, g)
168+let ap = getIntegerValue(this, h)
165169
166-let ao = fromBase58String(getStringValue(this, h))
167-
168-let ap = getIntegerValue(this, i)
169-
170-let aq = getIntegerValue(this, k)
170+let aq = fromBase58String(getStringValue(this, i))
171171
172172 let ar = getIntegerValue(this, j)
173173
174-let as = fraction(ar, 40, 100)
174+let as = getIntegerValue(this, l)
175175
176-let at = 1000000
176+let at = getIntegerValue(this, k)
177177
178-let au = 1000
178+let au = fraction(at, 40, 100)
179179
180-let av = 100000000
180+let av = 1000000
181181
182-let aw = 10000000000000000
182+let aw = 1000
183183
184-let ax = 8
184+let ax = 100000000
185185
186-let ay = 50
186+let ay = 10000000000000000
187187
188-let az = 100
188+let az = 8
189189
190-let aA = 90000000
190+let aA = 50
191191
192-let aB = 110000000
192+let aB = 100
193193
194-let aC = 50
194+let aC = 90000000
195195
196-let aD = 2
196+let aD = 110000000
197197
198-let aE = 4600000000000000
198+let aE = 50
199199
200-func aF (aG) = {
201- let L = aG
202- if ($isInstanceOf(L, "ByteVector"))
200+let aF = 2
201+
202+let aG = 4600000000000000
203+
204+func aH (aI) = {
205+ let M = aI
206+ if ($isInstanceOf(M, "ByteVector"))
203207 then {
204- let aj = L
205- assetBalance(this, aj)
208+ let al = M
209+ assetBalance(this, al)
206210 }
207- else if ($isInstanceOf(L, "Unit"))
211+ else if ($isInstanceOf(M, "Unit"))
208212 then {
209- let ak = L
213+ let am = M
210214 wavesBalance(this).available
211215 }
212216 else throw("Match error")
213217 }
214218
215219
216-func aH (aG) = {
217- let aI = {
218- let L = aG
219- if ($isInstanceOf(L, "ByteVector"))
220+func aJ (aI) = {
221+ let aK = {
222+ let M = aI
223+ if ($isInstanceOf(M, "ByteVector"))
220224 then {
221- let aJ = L
222- if ((aJ == X))
223- then getInteger(U, ((("rpd_balance_" + toBase58String(aJ)) + "_") + toString(this)))
225+ let aL = M
226+ if ((aL == Y))
227+ then getInteger(V, ((("rpd_balance_" + toBase58String(aL)) + "_") + toString(this)))
224228 else 0
225229 }
226- else if ($isInstanceOf(L, "Unit"))
230+ else if ($isInstanceOf(M, "Unit"))
227231 then 0
228232 else throw("Match error")
229233 }
230- let L = aI
231- if ($isInstanceOf(L, "Int"))
234+ let M = aK
235+ if ($isInstanceOf(M, "Int"))
232236 then {
233- let aK = L
234- aK
237+ let aM = M
238+ aM
235239 }
236240 else 0
237241 }
238242
239243
240-let aL = aH(ag)
244+let aN = aJ(ai)
241245
242-let aM = aH(ah)
246+let aO = aJ(aj)
243247
244-let aN = (am - aL)
248+let aP = (ao - aN)
245249
246-let aO = (an - aM)
250+let aQ = (ap - aO)
247251
248-let aP = (aF(ag) + aL)
252+let aR = (aH(ai) + aN)
249253
250-let aQ = (aF(ah) + aM)
254+let aS = (aH(aj) + aO)
251255
252-let aR = if ((aP >= am))
253- then (aQ >= an)
256+let aT = if ((aR >= ao))
257+ then (aS >= ap)
254258 else false
255259
256-func aS (aT,aU) = ((fraction(aw, aT, aU) + fraction(aw, aU, aT)) / 2)
260+func aU (aV,aW) = ((fraction(ay, aV, aW) + fraction(ay, aW, aV)) / 2)
257261
258262
259-func aV (aT,aU) = {
260- let aW = aS(aT, aU)
261- (fraction((aT + aU), aw, pow(aW, ax, aC, aD, ax, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(aT), toBigInt(aU), toBigInt(av)), 0, toBigInt(5), 1, (ax / 2), DOWN)), pow((aW - aE), ax, aC, aD, ax, DOWN), av)))
263+func aX (aV,aW) = {
264+ let aY = aU(aV, aW)
265+ (fraction((aV + aW), ay, pow(aY, az, aE, aF, az, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(aV), toBigInt(aW), toBigInt(ax)), 0, toBigInt(5), 1, (az / 2), DOWN)), pow((aY - aG), az, aE, aF, az, DOWN), ax)))
262266 }
263267
264268
265-func aX (aY,aZ,ba,bb,bc,bd,be) = {
266- let bf = (aw - ((aw * 1) / 10000000))
267- let bg = (aY - aZ)
268- let aT = (bc + ba)
269- let aU = (bd + ba)
270- func bh (bi,bj) = if ((bi._1 == -1))
269+func aZ (ba,bb,bc,bd,be,bf,bg) = {
270+ let bh = (ay - ((ay * 1) / 10000000))
271+ let bi = (ba - bb)
272+ let aV = (be + bc)
273+ let aW = (bf + bc)
274+ func bj (bk,bl) = if ((bk._1 == -1))
271275 then {
272- let bk = (aY - (((bj * bg) / 3) / au))
273- let bl = if ((bb == ag))
274- then aV(aT, (bd - bk))
275- else aV((bc - bk), aU)
276- if ((bl > be))
277- then $Tuple2(bk, bl)
276+ let bm = (ba - (((bl * bi) / 3) / aw))
277+ let bn = if ((bd == ai))
278+ then aX(aV, (bf - bm))
279+ else aX((be - bm), aW)
280+ if ((bn > bg))
281+ then $Tuple2(bm, bn)
278282 else $Tuple2(-1, 0)
279283 }
280- else bi
284+ else bk
281285
282- let bm = bh($Tuple2(-1, 0), 3000)
283- if ((0 > bm._1))
286+ let bo = bj($Tuple2(-1, 0), 3000)
287+ if ((0 > bo._1))
284288 then throw("Price is worse than minReceived")
285289 else {
286- let bn = if ((bb == ag))
287- then aV(aT, (bd - aY))
288- else if ((bb == ah))
289- then aV((bc - aY), aU)
290+ let bp = if ((bd == ai))
291+ then aX(aV, (bf - ba))
292+ else if ((bd == aj))
293+ then aX((be - ba), aW)
290294 else throw("Wrong asset in payment")
291- if ((be > bn))
292- then if ((bf >= fraction(aw, be, bn)))
295+ if ((bg > bp))
296+ then if ((bh >= fraction(ay, bg, bp)))
293297 then throw("The requested price is too not profitable for user")
294298 else {
295- let bo = {
296- let bp = [25, 200, 500]
297- let bq = size(bp)
298- let br = $Tuple2(-1, 0)
299- func bs (bt,bu) = if ((bu >= bq))
300- then bt
301- else bh(bt, bp[bu])
299+ let bq = {
300+ let br = [25, 200, 500]
301+ let bs = size(br)
302+ let bt = $Tuple2(-1, 0)
303+ func bu (bv,bw) = if ((bw >= bs))
304+ then bv
305+ else bj(bv, br[bw])
302306
303- func bv (bt,bu) = if ((bu >= bq))
304- then bt
307+ func bx (bv,bw) = if ((bw >= bs))
308+ then bv
305309 else throw("List size exceeds 3")
306310
307- bv(bs(bs(bs(br, 0), 1), 2), 3)
311+ bx(bu(bu(bu(bt, 0), 1), 2), 3)
308312 }
309- if ((0 > bo._1))
310- then bm._1
311- else bo._1
313+ if ((0 > bq._1))
314+ then bo._1
315+ else bq._1
312316 }
313317 else {
314- let bo = {
315- let bp = [-500, -200, -25]
316- let bq = size(bp)
317- let br = $Tuple2(-1, 0)
318- func bs (bt,bu) = if ((bu >= bq))
319- then bt
320- else bh(bt, bp[bu])
318+ let bq = {
319+ let br = [-500, -200, -25]
320+ let bs = size(br)
321+ let bt = $Tuple2(-1, 0)
322+ func bu (bv,bw) = if ((bw >= bs))
323+ then bv
324+ else bj(bv, br[bw])
321325
322- func bv (bt,bu) = if ((bu >= bq))
323- then bt
326+ func bx (bv,bw) = if ((bw >= bs))
327+ then bv
324328 else throw("List size exceeds 3")
325329
326- bv(bs(bs(bs(br, 0), 1), 2), 3)
330+ bx(bu(bu(bu(bt, 0), 1), 2), 3)
327331 }
328- let bw = if ((0 > bo._1))
329- then $Tuple2(aY, bn)
330- else bo
331- if ((bf >= fraction(aw, be, bw._2)))
332+ let by = if ((0 > bq._1))
333+ then $Tuple2(ba, bp)
334+ else bq
335+ if ((bh >= fraction(ay, bg, by._2)))
332336 then throw("The requested price is too not profitable for user")
333- else bw._1
337+ else by._1
334338 }
335339 }
336340 }
337341
338342
339-func bx (aG) = {
340- let L = aG
341- if ($isInstanceOf(L, "ByteVector"))
343+func bz (aI) = {
344+ let M = aI
345+ if ($isInstanceOf(M, "ByteVector"))
342346 then {
343- let aj = L
344- let by = toBase58String(aj)
345- let bz = valueOrErrorMessage(assetInfo(aj), (("Asset " + by) + " doesn't exist"))
346- $Tuple3(by, bz.name, bz.decimals)
347+ let al = M
348+ let bA = toBase58String(al)
349+ let bB = valueOrErrorMessage(assetInfo(al), (("Asset " + bA) + " doesn't exist"))
350+ $Tuple3(bA, bB.name, bB.decimals)
347351 }
348- else if ($isInstanceOf(L, "Unit"))
352+ else if ($isInstanceOf(M, "Unit"))
349353 then {
350- let ak = L
354+ let am = M
351355 $Tuple3("WAVES", "WAVES", 8)
352356 }
353357 else throw("Match error")
354358 }
355359
356360
357-func bA (bB) = [BooleanEntry(c, false), StringEntry(l, bB)]
361+func bC (bD) = [BooleanEntry(c, false), StringEntry(m, bD)]
358362
359363
360-func bC () = throw("DApp is already active")
364+func bE () = throw("DApp is already active")
361365
362366
363-func bD () = if (ad)
367+func bF () = if (if (ae)
368+ then af
369+ else false)
364370 then unit
365371 else throw("DApp is inactive at this moment")
366372
367373
368-func bE (aK) = if (containsElement([O, P, Q], aK.callerPublicKey))
374+func bG (aM) = if (containsElement([P, Q, R], aM.callerPublicKey))
369375 then unit
370376 else throw("Only admin can call this function")
371377
372378
373-func bF (aK) = if ((this == aK.caller))
379+func bH (aM) = if ((this == aM.caller))
374380 then unit
375381 else throw("Only contract itself can call this function")
376382
377383
378-func bG () = throw(((("Incorrect assets attached. Expected: " + ae) + " and ") + af))
384+func bI () = throw(((("Incorrect assets attached. Expected: " + ag) + " and ") + ah))
379385
380386
381-func bH () = throw("One attached payment expected")
387+func bJ () = throw("One attached payment expected")
382388
383389
384-func bI (bJ,bK,bL) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(bJ)) + ": ") + toString(bK)) + " ") + ai) + ", ") + toString(bL)) + " ") + al))
390+func bK (bL,bM,bN) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(bL)) + ": ") + toString(bM)) + " ") + ak) + ", ") + toString(bN)) + " ") + an))
385391
386392
387-func bM () = bA(((((((((((((((("Suspicious state. Actual balances: " + toString(am)) + " ") + ai) + ", ") + toString(an)) + " ") + al) + ". State: ") + toString(aF(ag))) + " ") + ai) + ", ") + toString(aF(ah))) + " ") + al))
393+func bO () = bC(((((((((((((((("Suspicious state. Actual balances: " + toString(ao)) + " ") + ak) + ", ") + toString(ap)) + " ") + an) + ". State: ") + toString(aH(ai))) + " ") + ak) + ", ") + toString(aH(aj))) + " ") + an))
388394
389395
390-func bN (bO,aG) = if (bO)
391- then $Tuple2("lockNeutrino", U)
392- else $Tuple2("unlockNeutrino", U)
396+func bP (bQ,aI) = if (bQ)
397+ then $Tuple2("lockNeutrino", V)
398+ else $Tuple2("unlockNeutrino", V)
393399
394400
395-func bP (bO,bQ,aG) = if (bO)
401+func bR (bQ,bS,aI) = if (bQ)
396402 then {
397- let bR = bN(bO, aG)
398- let bS = bR._1
399- let bT = bR._2
400- $Tuple4(bS, bT, nil, [AttachedPayment(aG, bQ)])
403+ let bT = bP(bQ, aI)
404+ let bU = bT._1
405+ let bV = bT._2
406+ $Tuple4(bU, bV, nil, [AttachedPayment(aI, bS)])
401407 }
402408 else {
403- let bU = bN(bO, aG)
404- let bS = bU._1
405- let bT = bU._2
406- $Tuple4(bS, bT, [bQ, toBase58String(aG)], nil)
409+ let bW = bP(bQ, aI)
410+ let bU = bW._1
411+ let bV = bW._2
412+ $Tuple4(bU, bV, [bS, toBase58String(aI)], nil)
407413 }
408414
409415
410-func bV (bW) = {
411- let bX = valueOrElse(getInteger(T, (toString(bW) + q)), 0)
412- let bY = valueOrElse(getInteger(T, (toString(bW) + r)), 0)
413- let bZ = split(getStringValue(I, p), ",")
414- let ca = split(getStringValue(I, o), ",")
415- if (if ((bY >= parseIntValue(bZ[0])))
416- then (parseIntValue(bZ[1]) > bY)
416+func bX (bY) = {
417+ let bZ = valueOrElse(getInteger(U, (toString(bY) + r)), 0)
418+ let ca = valueOrElse(getInteger(U, (toString(bY) + s)), 0)
419+ let cb = split(getStringValue(J, q), ",")
420+ let cc = split(getStringValue(J, p), ",")
421+ if (if ((ca >= parseIntValue(cb[0])))
422+ then (parseIntValue(cb[1]) > ca)
417423 else false)
418- then (at - parseIntValue(ca[0]))
419- else if (if ((bY >= parseIntValue(bZ[1])))
420- then (parseIntValue(bZ[2]) > bY)
424+ then (av - parseIntValue(cc[0]))
425+ else if (if ((ca >= parseIntValue(cb[1])))
426+ then (parseIntValue(cb[2]) > ca)
421427 else false)
422- then (at - parseIntValue(ca[1]))
423- else if (if ((bY >= parseIntValue(bZ[2])))
424- then (parseIntValue(bZ[3]) > bY)
428+ then (av - parseIntValue(cc[1]))
429+ else if (if ((ca >= parseIntValue(cb[2])))
430+ then (parseIntValue(cb[3]) > ca)
425431 else false)
426- then (at - parseIntValue(ca[2]))
427- else if (if ((bY >= parseIntValue(bZ[3])))
428- then (parseIntValue(bZ[4]) > bY)
432+ then (av - parseIntValue(cc[2]))
433+ else if (if ((ca >= parseIntValue(cb[3])))
434+ then (parseIntValue(cb[4]) > ca)
429435 else false)
430- then (at - parseIntValue(ca[3]))
431- else if ((bY >= parseIntValue(bZ[4])))
432- then (at - parseIntValue(ca[4]))
433- else at
436+ then (av - parseIntValue(cc[3]))
437+ else if ((ca >= parseIntValue(cb[4])))
438+ then (av - parseIntValue(cc[4]))
439+ else av
434440 }
435441
436442
437-@Callable(aK)
438-func init (cb) = {
439- let cc = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId)
440- let cd = cc._1
441- let ce = cc._2
442- let cf = $Tuple2(aK.payments[1].amount, aK.payments[1].assetId)
443- let cg = cf._1
444- let ch = cf._2
445- let ci = bx(ce)
446- let cj = ci._1
447- let ck = ci._2
448- let cl = ci._3
449- let cm = bx(ch)
450- let cn = cm._1
451- let co = cm._2
452- let cp = cm._3
443+func cd (aM,ce,cf) = {
444+ let cg = aM.payments[0].assetId
445+ let ch = aM.payments[1].assetId
446+ let ci = fraction(ax, aM.payments[0].amount, ao)
447+ let cj = fraction(ax, aM.payments[1].amount, ap)
448+ let ck = bz(cg)
449+ let cl = ck._1
450+ let cm = ck._2
451+ let cn = ck._3
452+ let co = bz(ch)
453+ let cp = co._1
454+ let cq = co._2
455+ let cr = co._3
456+ let cs = if ((cj > ci))
457+ then {
458+ let ct = fraction(ap, ci, ax, CEILING)
459+ $Tuple5(aM.payments[0].amount, ct, (aM.payments[1].amount - ct), ch, ci)
460+ }
461+ else {
462+ let ct = fraction(ao, cj, ax, CEILING)
463+ $Tuple5(ct, aM.payments[1].amount, (aM.payments[0].amount - ct), cg, cj)
464+ }
465+ let cu = cs._1
466+ let cv = cs._2
467+ let cw = cs._3
468+ let cx = cs._4
469+ let cy = cs._5
470+ let cz = fraction(cy, ar, ax)
471+ if (if ((size(aM.payments) != 2))
472+ then (size(aM.payments) != 3)
473+ else false)
474+ then throw("Two or three payments expected")
475+ else if (if ((cg != ai))
476+ then true
477+ else (ch != aj))
478+ then bI()
479+ else if ((cz == 0))
480+ then throw("Too small amount to replenish")
481+ else if ((0 > cw))
482+ then throw("Change < 0")
483+ else if (!(aT))
484+ then ([ScriptTransfer(aM.caller, cu, cg), ScriptTransfer(aM.caller, cv, ch)] ++ bO())
485+ else {
486+ let cA = if (contains(Z, cl))
487+ then invoke(this, "stakeUnstake", [true, cu, cl], nil)
488+ else 0
489+ if ((cA == cA))
490+ then {
491+ let cB = if (contains(Z, cp))
492+ then invoke(this, "stakeUnstake", [true, cv, cp], nil)
493+ else 0
494+ if ((cB == cB))
495+ then {
496+ let cC = [IntegerEntry(g, (ao + cu)), IntegerEntry(h, (ap + cv)), IntegerEntry(j, (ar + cz)), IntegerEntry(l, aX((ao + cu), (ap + cv))), ScriptTransfer(aM.caller, cw, cx)]
497+ if (ce)
498+ then {
499+ let cD = ([AttachedPayment(aq, cz)] ++ (if ((size(aM.payments) == 3))
500+ then [AttachedPayment(if ((aM.payments[2].assetId == base58''))
501+ then unit
502+ else aM.payments[2].assetId, aM.payments[2].amount)]
503+ else nil))
504+ let cE = invoke(this, "reissueShare", [cz], nil)
505+ if ((cE == cE))
506+ then {
507+ let cF = invoke(X, "lockShareTokensFromPool", [aM.caller.bytes, toString(this), cf], cD)
508+ if ((cF == cF))
509+ then cC
510+ else throw("Strict value is not equal to itself.")
511+ }
512+ else throw("Strict value is not equal to itself.")
513+ }
514+ else (cC ++ [Reissue(aq, cz, true), ScriptTransfer(aM.caller, cz, aq)])
515+ }
516+ else throw("Strict value is not equal to itself.")
517+ }
518+ else throw("Strict value is not equal to itself.")
519+ }
520+ }
521+
522+
523+func cG (aM,cH,cI,ce,cf) = {
524+ let cJ = $Tuple2(aM.payments[0].amount, aM.payments[0].assetId)
525+ let cK = cJ._1
526+ let cL = cJ._2
527+ let cM = bz(cL)
528+ let cN = cM._1
529+ let cO = cM._2
530+ let cP = cM._3
531+ let cQ = 5000000
532+ let cR = 50000000
533+ let cS = if ((cR > cK))
534+ then 100000
535+ else 1
536+ let cT = (ax - ((ax * cS) / 10000000))
537+ let cU = (ax + ((ax * cS) / 10000000))
538+ let cV = (ax - ((ax * 1) / 10000000))
539+ if ((cQ > cK))
540+ then throw((((("Payment amount " + toString(cK)) + " does not exceed the minimum amount of ") + toString(cQ)) + " tokens"))
541+ else if (if ((size(aM.payments) != 1))
542+ then (size(aM.payments) != 2)
543+ else false)
544+ then throw("One or two payments expected")
545+ else if (!(aT))
546+ then ([ScriptTransfer(aM.caller, cK, cL)] ++ bO())
547+ else if (if ((cL != ai))
548+ then (cL != aj)
549+ else false)
550+ then bI()
551+ else {
552+ let cW = if ((cL == ai))
553+ then $Tuple6((cK - cH), cI, (ao + cH), (ap - cI), (ao + cK), ap)
554+ else $Tuple6(cI, (cK - cH), (ao - cI), (ap + cH), ao, (ap + cK))
555+ let cX = cW._1
556+ let cY = cW._2
557+ let cZ = cW._3
558+ let da = cW._4
559+ let db = cW._5
560+ let dc = cW._6
561+ let dd = aX(cZ, da)
562+ let de = (fraction(ay, cZ, da) / fraction(ax, cX, cY))
563+ let df = fraction((db + dc), aA, (2 * aB))
564+ if (if ((cV >= fraction(ax, as, dd)))
565+ then true
566+ else (as > dd))
567+ then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
568+ else if (if ((cT > de))
569+ then true
570+ else (de > cU))
571+ then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
572+ else if (if ((df > db))
573+ then true
574+ else (df > dc))
575+ then bK(df, db, dc)
576+ else {
577+ let ci = fraction(cX, ax, cZ)
578+ let cj = fraction(cY, ax, da)
579+ let cz = fraction(min([ci, cj]), ar, ax)
580+ let dg = fraction(cz, (av - (at / 2)), av)
581+ let dh = fraction(cz, (au / 2), av)
582+ let di = fraction(dh, ao, ar)
583+ let dj = fraction(dh, ap, ar)
584+ let dk = if ((cN == ag))
585+ then $Tuple3((cK - di), dj, ah)
586+ else $Tuple3((cK - dj), di, ag)
587+ let dl = dk._1
588+ let dm = dk._2
589+ let dn = dk._3
590+ let cA = if (contains(Z, cN))
591+ then invoke(this, "stakeUnstake", [true, dl, cN], nil)
592+ else 0
593+ if ((cA == cA))
594+ then {
595+ let cB = if (contains(Z, dn))
596+ then invoke(this, "stakeUnstake", [false, dm, dn], nil)
597+ else 0
598+ if ((cB == cB))
599+ then {
600+ let cC = [IntegerEntry(g, (db - di)), IntegerEntry(h, (dc - dj)), IntegerEntry(j, (ar + dg)), IntegerEntry(l, aX((db - di), (dc - dj))), ScriptTransfer(T, di, ai), ScriptTransfer(T, dj, aj)]
601+ if (ce)
602+ then {
603+ let cD = ([AttachedPayment(aq, dg)] ++ (if ((size(aM.payments) == 2))
604+ then [AttachedPayment(if ((aM.payments[1].assetId == base58''))
605+ then unit
606+ else aM.payments[1].assetId, aM.payments[1].amount)]
607+ else nil))
608+ let cE = invoke(this, "reissueShare", [dg], nil)
609+ if ((cE == cE))
610+ then {
611+ let cF = invoke(X, "lockShareTokensFromPool", [aM.caller.bytes, toString(this), cf], cD)
612+ if ((cF == cF))
613+ then cC
614+ else throw("Strict value is not equal to itself.")
615+ }
616+ else throw("Strict value is not equal to itself.")
617+ }
618+ else (cC ++ [Reissue(aq, dg, true), ScriptTransfer(aM.caller, dg, aq)])
619+ }
620+ else throw("Strict value is not equal to itself.")
621+ }
622+ else throw("Strict value is not equal to itself.")
623+ }
624+ }
625+ }
626+
627+
628+func do (aM,dp) = {
629+ let dq = if ((size(aM.payments) == 1))
630+ then if ((aM.payments[0].assetId != aq))
631+ then throw(("Incorrect asset attached. Expected: " + toBase58String(aq)))
632+ else $Tuple2(aM.payments[0].amount, aM.payments[0].assetId)
633+ else $Tuple2(0, aq)
634+ let cK = dq._1
635+ let cL = dq._2
636+ if (!(aT))
637+ then ([ScriptTransfer(aM.caller, cK, cL)] ++ bO())
638+ else {
639+ let dr = if ((dp > 0))
640+ then invoke(X, "withdrawShareTokensFromPool", [aM.caller.bytes, toString(this), dp], nil)
641+ else 0
642+ if ((dr == dr))
643+ then {
644+ let ds = (cK + dp)
645+ let dt = fraction(ds, ao, ar)
646+ let du = fraction(ds, ap, ar)
647+ let dv = aX((ao - dt), (ap - du))
648+ let cA = if (contains(Z, ag))
649+ then invoke(this, "stakeUnstake", [false, dt, ag], nil)
650+ else 0
651+ if ((cA == cA))
652+ then {
653+ let cB = if (contains(Z, ah))
654+ then invoke(this, "stakeUnstake", [false, du, ah], nil)
655+ else 0
656+ if ((cB == cB))
657+ then [IntegerEntry(g, (ao - dt)), IntegerEntry(h, (ap - du)), IntegerEntry(j, (ar - ds)), IntegerEntry(l, dv), Burn(aq, ds), ScriptTransfer(aM.caller, dt, ai), ScriptTransfer(aM.caller, du, aj)]
658+ else throw("Strict value is not equal to itself.")
659+ }
660+ else throw("Strict value is not equal to itself.")
661+ }
662+ else throw("Strict value is not equal to itself.")
663+ }
664+ }
665+
666+
667+@Callable(aM)
668+func init (dw) = {
669+ let dx = $Tuple2(aM.payments[0].amount, aM.payments[0].assetId)
670+ let cu = dx._1
671+ let cg = dx._2
672+ let dy = $Tuple2(aM.payments[1].amount, aM.payments[1].assetId)
673+ let cv = dy._1
674+ let ch = dy._2
675+ let dz = bz(cg)
676+ let cl = dz._1
677+ let cm = dz._2
678+ let cn = dz._3
679+ let dA = bz(ch)
680+ let cp = dA._1
681+ let cq = dA._2
682+ let cr = dA._3
453683 if (isDefined(getBoolean(this, c)))
454- then bC()
455- else if ((ce == ch))
684+ then bE()
685+ else if ((cg == ch))
456686 then throw("Assets must be different")
457687 else {
458- let cq = ((("s" + take(ck, 7)) + "_") + take(co, 7))
459- let cr = ((((("ShareToken of SwopFi protocol for " + ck) + " and ") + co) + " at address ") + toString(this))
460- let cs = ((cl + cp) / 2)
461- let ct = fraction(pow(cd, cl, 5, 1, cl, DOWN), pow(cg, cp, 5, 1, cp, DOWN), pow(10, 0, cs, 0, 0, DOWN))
462- let cu = Issue(cq, cr, ct, cs, true)
463- let cv = calculateAssetId(cu)
464- let cw = aV(cd, cg)
465- let cx = if (contains(Y, cj))
466- then invoke(this, "stakeUnstake", [true, cd, cj], nil)
688+ let dB = ((("s" + take(cm, 7)) + "_") + take(cq, 7))
689+ let dC = ((((("ShareToken of SwopFi protocol for " + cm) + " and ") + cq) + " at address ") + toString(this))
690+ let dD = ((cn + cr) / 2)
691+ let dE = fraction(pow(cu, cn, 5, 1, cn, DOWN), pow(cv, cr, 5, 1, cr, DOWN), pow(10, 0, dD, 0, 0, DOWN))
692+ let dF = Issue(dB, dC, dE, dD, true)
693+ let dG = calculateAssetId(dF)
694+ let dv = aX(cu, cv)
695+ let cA = if (contains(Z, cl))
696+ then invoke(this, "stakeUnstake", [true, cu, cl], nil)
467697 else 0
468- if ((cx == cx))
698+ if ((cA == cA))
469699 then {
470- let cy = if (contains(Y, cn))
471- then invoke(this, "stakeUnstake", [true, cg, cn], nil)
700+ let cB = if (contains(Z, cp))
701+ then invoke(this, "stakeUnstake", [true, cv, cp], nil)
472702 else 0
473- if ((cy == cy))
703+ if ((cB == cB))
474704 then {
475- let cz = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, cj), StringEntry(e, cn), IntegerEntry(f, cd), IntegerEntry(g, cg), IntegerEntry(k, cw), IntegerEntry(j, getIntegerValue(I, "base_fee_flat")), cu, StringEntry(h, toBase58String(cv)), IntegerEntry(i, ct), ScriptTransfer(aK.caller, ct, cv)]
476- if (cb)
477- then (cz ++ [BooleanEntry(s, cb), IntegerEntry(t, (aa + (ac * ab)))])
478- else cz
705+ let dH = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, cl), StringEntry(f, cp), IntegerEntry(g, cu), IntegerEntry(h, cv), IntegerEntry(l, dv), IntegerEntry(k, getIntegerValue(J, "base_fee_flat")), dF, StringEntry(i, toBase58String(dG)), IntegerEntry(j, dE), ScriptTransfer(aM.caller, dE, dG)]
706+ if (dw)
707+ then (dH ++ [BooleanEntry(t, dw), IntegerEntry(u, (ab + (ad * ac)))])
708+ else dH
479709 }
480710 else throw("Strict value is not equal to itself.")
481711 }
485715
486716
487717
488-@Callable(aK)
489-func replenishWithTwoTokens (cA,cB) = valueOrElse(bD(), {
490- let ce = aK.payments[0].assetId
491- let ch = aK.payments[1].assetId
492- let cC = fraction(av, aK.payments[0].amount, am)
493- let cD = fraction(av, aK.payments[1].amount, an)
494- let cE = bx(ce)
495- let cj = cE._1
496- let ck = cE._2
497- let cl = cE._3
498- let cF = bx(ch)
499- let cn = cF._1
500- let co = cF._2
501- let cp = cF._3
502- let cG = if ((cD > cC))
503- then {
504- let cH = fraction(an, cC, av, CEILING)
505- $Tuple5(aK.payments[0].amount, cH, (aK.payments[1].amount - cH), ch, cC)
506- }
507- else {
508- let cH = fraction(am, cD, av, CEILING)
509- $Tuple5(cH, aK.payments[1].amount, (aK.payments[0].amount - cH), ce, cD)
510- }
511- let cd = cG._1
512- let cg = cG._2
513- let cI = cG._3
514- let cJ = cG._4
515- let cK = cG._5
516- let cL = fraction(cK, ap, av)
517- if (if ((size(aK.payments) != 2))
518- then (size(aK.payments) != 3)
718+@Callable(aM)
719+func replenishWithTwoTokensV2 (ce,cf) = valueOrElse(bF(), cd(aM, ce, cf))
720+
721+
722+
723+@Callable(aM)
724+func replenishWithOneTokenV2 (cH,cI,ce,cf) = valueOrElse(bF(), cG(aM, cH, cI, ce, cf))
725+
726+
727+
728+@Callable(aM)
729+func withdrawV2 (dp) = valueOrElse(bF(), do(aM, dp))
730+
731+
732+
733+@Callable(aM)
734+func withdrawOneToken (dp,dI,dJ,dK) = valueOrElse(bF(), {
735+ let dL = if ((size(aM.payments) == 1))
736+ then if ((aM.payments[0].assetId != aq))
737+ then throw(("Incorrect asset attached. Expected: " + toBase58String(aq)))
738+ else $Tuple2(aM.payments[0].amount, aM.payments[0].assetId)
739+ else $Tuple2(0, aq)
740+ let cK = dL._1
741+ let cL = dL._2
742+ let ds = (cK + dp)
743+ if (if ((dI != ag))
744+ then (dI != ah)
519745 else false)
520- then throw("Two or three payments expected")
521- else if (if ((ce != ag))
522- then true
523- else (ch != ah))
524- then bG()
525- else if ((cL == 0))
526- then throw("Too small amount to replenish")
527- else if ((0 > cI))
528- then throw("Change < 0")
529- else if (!(aR))
530- then ([ScriptTransfer(aK.caller, cd, ce), ScriptTransfer(aK.caller, cg, ch)] ++ bM())
531- else {
532- let cx = if (contains(Y, cj))
533- then invoke(this, "stakeUnstake", [true, cd, cj], nil)
746+ then throw("Incorrect withdraw asset")
747+ else if ((0 >= ds))
748+ then throw("withdraw amount must be grater than 0")
749+ else if (!(aT))
750+ then ([ScriptTransfer(aM.caller, cK, cL)] ++ bO())
751+ else {
752+ let dr = if ((dp > 0))
753+ then invoke(X, "withdrawShareTokensFromPool", [aM.caller.bytes, toString(this), dp], nil)
754+ else 0
755+ if ((dr == dr))
756+ then {
757+ let dt = fraction(ds, ao, ar)
758+ let du = fraction(ds, ap, ar)
759+ let dM = (ao - dt)
760+ let dN = (ap - du)
761+ let dO = bX(aM.originCaller)
762+ let dP = if ((dI == ag))
763+ then aZ(dJ, dK, du, aj, dM, dN, aX(dM, dN))
764+ else aZ(dJ, dK, dt, ai, dM, dN, aX(dM, dN))
765+ let dQ = fraction(dP, fraction(au, dO, av, CEILING), av)
766+ let dR = fraction(dP, (av - fraction(at, dO, av, CEILING)), av)
767+ let dS = if ((dI == ag))
768+ then $Tuple3((dt + dR), (((ao - dt) - dR) - dQ), ap)
769+ else $Tuple3((du + dR), ao, (((ap - du) - dR) - dQ))
770+ let dT = dS._1
771+ let dU = dS._2
772+ let dV = dS._3
773+ let dv = aX(dU, dV)
774+ let cA = if (contains(Z, dI))
775+ then invoke(this, "stakeUnstake", [false, (dT + dQ), dI], nil)
534776 else 0
535- if ((cx == cx))
536- then {
537- let cy = if (contains(Y, cn))
538- then invoke(this, "stakeUnstake", [true, cg, cn], nil)
539- else 0
540- if ((cy == cy))
541- then {
542- let cM = [IntegerEntry(f, (am + cd)), IntegerEntry(g, (an + cg)), IntegerEntry(i, (ap + cL)), IntegerEntry(k, aV((am + cd), (an + cg))), ScriptTransfer(aK.caller, cI, cJ)]
543- if (cA)
544- then {
545- let cN = ([AttachedPayment(ao, cL)] ++ (if ((size(aK.payments) == 3))
546- then [AttachedPayment(aK.payments[2].assetId, aK.payments[2].amount)]
547- else nil))
548- let cO = invoke(this, "reissueShare", [cL], nil)
549- if ((cO == cO))
550- then {
551- let cP = invoke(W, "lockShareTokens", [toString(this), cB], cN)
552- if ((cP == cP))
553- then cM
554- else throw("Strict value is not equal to itself.")
555- }
556- else throw("Strict value is not equal to itself.")
557- }
558- else (cM ++ [Reissue(ao, cL, true), ScriptTransfer(aK.caller, cL, ao)])
559- }
560- else throw("Strict value is not equal to itself.")
561- }
777+ if ((cA == cA))
778+ then [IntegerEntry(g, dU), IntegerEntry(h, dV), IntegerEntry(j, (ar - ds)), IntegerEntry(l, dv), Burn(aq, ds), ScriptTransfer(aM.caller, dT, fromBase58String(dI)), ScriptTransfer(T, dQ, fromBase58String(dI))]
562779 else throw("Strict value is not equal to itself.")
563780 }
781+ else throw("Strict value is not equal to itself.")
782+ }
564783 })
565784
566785
567786
568-@Callable(aK)
569-func replenishWithOneToken (cQ,cR,cA,cB) = valueOrElse(bD(), {
570- let cS = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId)
571- let cT = cS._1
572- let cU = cS._2
573- let cV = bx(cU)
574- let cW = cV._1
575- let cX = cV._2
576- let cY = cV._3
577- let cZ = 5000000
578- let da = 50000000
579- let db = if ((da > cT))
580- then 100000
581- else 1
582- let dc = (av - ((av * db) / 10000000))
583- let dd = (av + ((av * db) / 10000000))
584- let de = (av - ((av * 1) / 10000000))
585- if ((cZ > cT))
586- then throw((((("Payment amount " + toString(cT)) + " does not exceed the minimum amount of ") + toString(cZ)) + " tokens"))
587- else if (if ((size(aK.payments) != 1))
588- then (size(aK.payments) != 2)
589- else false)
590- then throw("One or two payments expected")
591- else if (!(aR))
592- then ([ScriptTransfer(aK.caller, cT, cU)] ++ bM())
593- else if (if ((cU != ag))
594- then (cU != ah)
595- else false)
596- then bG()
597- else {
598- let df = if ((cU == ag))
599- then $Tuple6((cT - cQ), cR, (am + cQ), (an - cR), (am + cT), an)
600- else $Tuple6(cR, (cT - cQ), (am - cR), (an + cQ), am, (an + cT))
601- let dg = df._1
602- let dh = df._2
603- let di = df._3
604- let dj = df._4
605- let dk = df._5
606- let dl = df._6
607- let dm = aV(di, dj)
608- let dn = (fraction(aw, di, dj) / fraction(av, dg, dh))
609- let do = fraction((dk + dl), ay, (2 * az))
610- if (if ((de >= fraction(av, aq, dm)))
611- then true
612- else (aq > dm))
613- then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
614- else if (if ((dc > dn))
787+@Callable(aM)
788+func exchange (dJ,dK) = valueOrElse(bF(), {
789+ let dW = $Tuple2(aM.payments[0].amount, aM.payments[0].assetId)
790+ let cK = dW._1
791+ let cL = dW._2
792+ if ((0 >= dJ))
793+ then throw(("Estimated amount must be positive. Actual: " + toString(dJ)))
794+ else if ((dK > dJ))
795+ then throw("Minimal amount can't be greater than estimated.")
796+ else if ((size(aM.payments) != 1))
797+ then bJ()
798+ else if (!(aT))
799+ then ([ScriptTransfer(aM.caller, cK, cL)] ++ bO())
800+ else if (if ((cL != ai))
801+ then (cL != aj)
802+ else false)
803+ then bI()
804+ else if ((10000000 > cK))
805+ then throw("Only swap of 10.000000 or more tokens is allowed")
806+ else if (if ((aC > fraction(ax, dK, cK)))
615807 then true
616- else (dn > dd))
617- then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
618- else if (if ((do > dk))
619- then true
620- else (do > dl))
621- then bI(do, dk, dl)
622- else {
623- let cC = fraction(dg, av, di)
624- let cD = fraction(dh, av, dj)
625- let cL = fraction(min([cC, cD]), ap, av)
626- let dp = fraction(cL, (at - (ar / 2)), at)
627- let dq = fraction(cL, (as / 2), at)
628- let dr = fraction(dq, am, ap)
629- let ds = fraction(dq, an, ap)
630- let dt = if ((cW == ae))
631- then $Tuple3((cT - dr), ds, af)
632- else $Tuple3((cT - ds), dr, ae)
633- let du = dt._1
634- let dv = dt._2
635- let dw = dt._3
636- let cx = if (contains(Y, cW))
637- then invoke(this, "stakeUnstake", [true, du, cW], nil)
638- else 0
639- if ((cx == cx))
640- then {
641- let cy = if (contains(Y, dw))
642- then invoke(this, "stakeUnstake", [false, dv, dw], nil)
643- else 0
644- if ((cy == cy))
645- then {
646- let cM = [IntegerEntry(f, (dk - dr)), IntegerEntry(g, (dl - ds)), IntegerEntry(i, (ap + dp)), IntegerEntry(k, aV((dk - dr), (dl - ds))), ScriptTransfer(S, dr, ag), ScriptTransfer(S, ds, ah)]
647- if (cA)
648- then {
649- let cN = ([AttachedPayment(ao, dp)] ++ (if ((size(aK.payments) == 2))
650- then [AttachedPayment(aK.payments[1].assetId, aK.payments[1].amount)]
651- else nil))
652- let cO = invoke(this, "reissueShare", [dp], nil)
653- if ((cO == cO))
654- then {
655- let cP = invoke(W, "lockShareTokens", [toString(this), cB], cN)
656- if ((cP == cP))
657- then cM
658- else throw("Strict value is not equal to itself.")
659- }
660- else throw("Strict value is not equal to itself.")
661- }
662- else (cM ++ [Reissue(ao, dp, true), ScriptTransfer(aK.caller, dp, ao)])
663- }
664- else throw("Strict value is not equal to itself.")
665- }
666- else throw("Strict value is not equal to itself.")
667- }
668- }
669- })
670-
671-
672-
673-@Callable(aK)
674-func withdraw (dx) = valueOrElse(bD(), {
675- let dy = if ((size(aK.payments) == 1))
676- then if ((aK.payments[0].assetId != ao))
677- then throw(("Incorrect asset attached. Expected: " + toBase58String(ao)))
678- else $Tuple2(aK.payments[0].amount, aK.payments[0].assetId)
679- else $Tuple2(0, ao)
680- let cT = dy._1
681- let cU = dy._2
682- if (!(aR))
683- then ([ScriptTransfer(aK.caller, cT, cU)] ++ bM())
684- else {
685- let dz = if ((dx > 0))
686- then invoke(W, "withdrawShareTokens", [toString(this), dx], nil)
687- else 0
688- if ((dz == dz))
689- then {
690- let dA = (cT + dx)
691- let dB = fraction(dA, am, ap)
692- let dC = fraction(dA, an, ap)
693- let cw = aV((am - dB), (an - dC))
694- let cx = if (contains(Y, ae))
695- then invoke(this, "stakeUnstake", [false, dB, ae], nil)
696- else 0
697- if ((cx == cx))
698- then {
699- let cy = if (contains(Y, af))
700- then invoke(this, "stakeUnstake", [false, dC, af], nil)
701- else 0
702- if ((cy == cy))
703- then [IntegerEntry(f, (am - dB)), IntegerEntry(g, (an - dC)), IntegerEntry(i, (ap - dA)), IntegerEntry(k, cw), Burn(ao, dA), ScriptTransfer(aK.caller, dB, ag), ScriptTransfer(aK.caller, dC, ah)]
704- else throw("Strict value is not equal to itself.")
705- }
706- else throw("Strict value is not equal to itself.")
707- }
708- else throw("Strict value is not equal to itself.")
709- }
710- })
711-
712-
713-
714-@Callable(aK)
715-func withdrawOneToken (dx,dD,dE,dF) = {
716- let dG = if ((size(aK.payments) == 1))
717- then if ((aK.payments[0].assetId != ao))
718- then throw(("Incorrect asset attached. Expected: " + toBase58String(ao)))
719- else $Tuple2(aK.payments[0].amount, aK.payments[0].assetId)
720- else $Tuple2(0, ao)
721- let cT = dG._1
722- let cU = dG._2
723- if (if ((dD != ae))
724- then (dD != af)
725- else false)
726- then throw("Incorrect withdraw asset")
727- else if (!(aR))
728- then ([ScriptTransfer(aK.caller, cT, cU)] ++ bM())
729- else {
730- let dz = if ((dx > 0))
731- then invoke(W, "withdrawShareTokens", [toString(this), dx], nil)
732- else 0
733- if ((dz == dz))
734- then {
735- let dA = (cT + dx)
736- let dB = fraction(dA, am, ap)
737- let dC = fraction(dA, an, ap)
738- let dH = (am - dB)
739- let dI = (an - dC)
740- let dJ = bV(aK.originCaller)
741- let dK = if ((dD == ae))
742- then aX(dE, dF, dC, ah, dH, dI, aV(dH, dI))
743- else aX(dE, dF, dB, ag, dH, dI, aV(dH, dI))
744- let dL = fraction(dK, fraction(as, dJ, at, CEILING), at)
745- let dM = fraction(dK, (at - fraction(ar, dJ, at, CEILING)), at)
746- let dN = if ((dD == ae))
747- then $Tuple3((dB + dM), (((am - dB) - dM) - dL), an)
748- else $Tuple3((dC + dM), am, (((an - dC) - dM) - dL))
749- let dO = dN._1
750- let dP = dN._2
751- let dQ = dN._3
752- let cw = aV(dP, dQ)
753- let cx = if (contains(Y, dD))
754- then invoke(this, "stakeUnstake", [false, (dO + dL), dD], nil)
755- else 0
756- if ((cx == cx))
757- then [IntegerEntry(f, dP), IntegerEntry(g, dQ), IntegerEntry(i, (ap - dA)), IntegerEntry(k, cw), Burn(ao, dA), ScriptTransfer(aK.caller, dO, fromBase58String(dD)), ScriptTransfer(S, dL, fromBase58String(dD))]
758- else throw("Strict value is not equal to itself.")
759- }
760- else throw("Strict value is not equal to itself.")
761- }
762- }
763-
764-
765-
766-@Callable(aK)
767-func exchange (dE,dF) = valueOrElse(bD(), {
768- let dR = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId)
769- let cT = dR._1
770- let cU = dR._2
771- if ((0 >= dE))
772- then throw(("Estimated amount must be positive. Actual: " + toString(dE)))
773- else if ((dF > dE))
774- then throw("Minimal amount can't be greater than estimated.")
775- else if ((size(aK.payments) != 1))
776- then bH()
777- else if (!(aR))
778- then ([ScriptTransfer(aK.caller, cT, cU)] ++ bM())
779- else if (if ((cU != ag))
780- then (cU != ah)
781- else false)
782- then bG()
783- else if ((10000000 > cT))
784- then throw("Only swap of 10.000000 or more tokens is allowed")
785- else if (if ((aA > fraction(av, dF, cT)))
786- then true
787- else (fraction(av, dE, cT) > aB))
808+ else (fraction(ax, dJ, cK) > aD))
788809 then throw("Incorrect args and pmt ratio")
789810 else {
790- let dS = if ((cU == ag))
791- then ah
792- else ag
793- let bQ = aX(dE, dF, cT, cU, am, an, aq)
794- let dJ = bV(aK.originCaller)
795- let dT = fraction(bQ, fraction(as, dJ, at, CEILING), at)
796- let dU = fraction(bQ, (at - fraction(ar, dJ, at, CEILING)), at)
797- let dV = if ((cU == ag))
798- then $Tuple2((am + cT), ((an - dU) - dT))
799- else $Tuple2(((am - dU) - dT), (an + cT))
800- let dk = dV._1
801- let dl = dV._2
802- let do = fraction((dk + dl), ay, (2 * az))
803- if (if ((do > dk))
811+ let dX = if ((cL == ai))
812+ then aj
813+ else ai
814+ let bS = aZ(dJ, dK, cK, cL, ao, ap, as)
815+ let dO = bX(aM.originCaller)
816+ let dY = fraction(bS, fraction(au, dO, av, CEILING), av)
817+ let dZ = fraction(bS, (av - fraction(at, dO, av, CEILING)), av)
818+ let ea = if ((cL == ai))
819+ then $Tuple2((ao + cK), ((ap - dZ) - dY))
820+ else $Tuple2(((ao - dZ) - dY), (ap + cK))
821+ let db = ea._1
822+ let dc = ea._2
823+ let df = fraction((db + dc), aA, (2 * aB))
824+ if (if ((df > db))
804825 then true
805- else (do > dl))
806- then bI(do, dk, dl)
826+ else (df > dc))
827+ then bK(df, db, dc)
807828 else {
808- let dW = bx(cU)
809- let cW = dW._1
810- let cX = dW._2
811- let cY = dW._3
812- let dX = bx(dS)
813- let dY = dX._1
814- let dZ = dX._2
815- let ea = dX._3
816- let cx = if (contains(Y, cW))
817- then invoke(this, "stakeUnstake", [true, cT, cW], nil)
829+ let eb = bz(cL)
830+ let cN = eb._1
831+ let cO = eb._2
832+ let cP = eb._3
833+ let ec = bz(dX)
834+ let ed = ec._1
835+ let ee = ec._2
836+ let ef = ec._3
837+ let cA = if (contains(Z, cN))
838+ then invoke(this, "stakeUnstake", [true, cK, cN], nil)
818839 else 0
819- if ((cx == cx))
840+ if ((cA == cA))
820841 then {
821- let cy = if (contains(Y, dY))
822- then invoke(this, "stakeUnstake", [false, (dU + dT), dY], nil)
842+ let cB = if (contains(Z, ed))
843+ then invoke(this, "stakeUnstake", [false, (dZ + dY), ed], nil)
823844 else 0
824- if ((cy == cy))
825- then $Tuple2([IntegerEntry(f, dk), IntegerEntry(g, dl), IntegerEntry(k, aV(dk, dl)), ScriptTransfer(aK.caller, dU, dS), ScriptTransfer(S, dT, dS)], [dU, dS])
845+ if ((cB == cB))
846+ then $Tuple2([IntegerEntry(g, db), IntegerEntry(h, dc), IntegerEntry(l, aX(db, dc)), ScriptTransfer(aM.caller, dZ, dX), ScriptTransfer(T, dY, dX)], [dZ, dX])
826847 else throw("Strict value is not equal to itself.")
827848 }
828849 else throw("Strict value is not equal to itself.")
832853
833854
834855
835-@Callable(eb)
836-func reissueShare (bQ) = valueOrElse(bF(eb), [Reissue(ao, bQ, true)])
856+@Callable(eg)
857+func reissueShare (bS) = valueOrElse(bH(eg), [Reissue(aq, bS, true)])
837858
838859
839860
840-@Callable(aK)
841-func shutdown () = valueOrElse(bE(aK), if (!(ad))
842- then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified")))
843- else bA("Paused by admin"))
861+@Callable(aM)
862+func shutdown () = valueOrElse(bG(aM), if (!(ae))
863+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, m), "the cause wasn't specified")))
864+ else bC("Paused by admin"))
844865
845866
846867
847-@Callable(aK)
848-func activate () = valueOrElse(bE(aK), if (ad)
849- then bC()
850- else [BooleanEntry(c, true), DeleteEntry(l)])
868+@Callable(aM)
869+func activate () = valueOrElse(bG(aM), if (ae)
870+ then bE()
871+ else [BooleanEntry(c, true), DeleteEntry(m)])
851872
852873
853874
854-@Callable(aK)
855-func takeIntoAccountExtraFunds () = valueOrElse(bD(), {
856- let ec = (aP - am)
857- let ed = (aQ - an)
858- let dm = aV((am + ec), (an + ed))
859- if ((aK.caller != S))
875+@Callable(aM)
876+func takeIntoAccountExtraFunds () = valueOrElse(bF(), {
877+ let eh = (aR - ao)
878+ let ei = (aS - ap)
879+ let dd = aX((ao + eh), (ap + ei))
880+ if ((aM.caller != T))
860881 then throw("Only the money box can call this function")
861- else if (if ((0 > ec))
882+ else if (if ((0 > eh))
862883 then true
863- else (0 > ed))
864- then bA("Enroll amount negative")
865- else if (if ((ec == 0))
866- then (ed == 0)
884+ else (0 > ei))
885+ then bC("Enroll amount negative")
886+ else if (if ((eh == 0))
887+ then (ei == 0)
867888 else false)
868889 then throw("No money to take")
869890 else {
870- let cx = if (if (contains(Y, ae))
871- then (ec > 0)
891+ let cA = if (if (contains(Z, ag))
892+ then (eh > 0)
872893 else false)
873- then invoke(this, "stakeUnstake", [true, ec, ae], nil)
894+ then invoke(this, "stakeUnstake", [true, eh, ag], nil)
874895 else 0
875- if ((cx == cx))
896+ if ((cA == cA))
876897 then {
877- let cy = if (if (contains(Y, af))
878- then (ed > 0)
898+ let cB = if (if (contains(Z, ah))
899+ then (ei > 0)
879900 else false)
880- then invoke(this, "stakeUnstake", [true, ed, af], nil)
901+ then invoke(this, "stakeUnstake", [true, ei, ah], nil)
881902 else 0
882- if ((cy == cy))
883- then [IntegerEntry(k, dm), IntegerEntry(f, (am + ec)), IntegerEntry(g, (an + ed))]
903+ if ((cB == cB))
904+ then [IntegerEntry(l, dd), IntegerEntry(g, (ao + eh)), IntegerEntry(h, (ap + ei))]
884905 else throw("Strict value is not equal to itself.")
885906 }
886907 else throw("Strict value is not equal to itself.")
889910
890911
891912
892-@Callable(aK)
893-func keepLimitForFirstHarvest (ee) = valueOrElse(bD(), valueOrElse(bE(aK), [IntegerEntry(u, ee)]))
913+@Callable(aM)
914+func keepLimitForFirstHarvest (ej) = valueOrElse(bF(), valueOrElse(bG(aM), [IntegerEntry(v, ej)]))
894915
895916
896917
897-@Callable(aK)
898-func stakeUnstake (bO,bQ,ef) = if ((aK.caller != this))
918+@Callable(aM)
919+func stakeUnstake (bQ,bS,ek) = if ((aM.caller != this))
899920 then throw("Only contract itself can invoke this function")
900921 else {
901- let eg = bP(bO, bQ, fromBase58String(ef))
902- let bS = eg._1
903- let eh = eg._2
904- let ei = eg._3
905- let ej = eg._4
906- let ek = invoke(eh, bS, ei, ej)
907- if ((ek == ek))
922+ let el = bR(bQ, bS, fromBase58String(ek))
923+ let bU = el._1
924+ let em = el._2
925+ let en = el._3
926+ let eo = el._4
927+ let ep = invoke(em, bU, en, eo)
928+ if ((ep == ep))
908929 then nil
909930 else throw("Strict value is not equal to itself.")
910931 }
911932
912933
913-@Verifier(el)
914-func em () = {
915- let en = {
916- let eo = if (sigVerify(el.bodyBytes, el.proofs[0], O))
934+
935+@Callable(aM)
936+func replenishWithTwoTokens () = valueOrElse(bF(), cd(aM, false, 0))
937+
938+
939+
940+@Callable(aM)
941+func replenishWithOneToken (cH,cI) = valueOrElse(bF(), cG(aM, cH, cI, false, 0))
942+
943+
944+
945+@Callable(aM)
946+func withdraw () = valueOrElse(bF(), do(aM, 0))
947+
948+
949+@Verifier(eq)
950+func er () = {
951+ let es = {
952+ let et = if (sigVerify(eq.bodyBytes, eq.proofs[0], P))
917953 then 1
918954 else 0
919- let ep = if (sigVerify(el.bodyBytes, el.proofs[1], P))
955+ let eu = if (sigVerify(eq.bodyBytes, eq.proofs[1], Q))
920956 then 1
921957 else 0
922- let eq = if (sigVerify(el.bodyBytes, el.proofs[2], Q))
958+ let ev = if (sigVerify(eq.bodyBytes, eq.proofs[2], R))
923959 then 1
924960 else 0
925- (((eo + ep) + eq) >= 2)
961+ (((et + eu) + ev) >= 2)
926962 }
927- let L = el
928- if ($isInstanceOf(L, "InvokeScriptTransaction"))
963+ let M = eq
964+ if ($isInstanceOf(M, "InvokeScriptTransaction"))
929965 then {
930- let ek = L
931- let er = if ((ek.dApp == this))
932- then (ek.function == "takeIntoAccountExtraFunds")
966+ let ep = M
967+ let ew = if ((ep.dApp == this))
968+ then (ep.function == "takeIntoAccountExtraFunds")
933969 else false
934- let es = if (if (if (sigVerify(el.bodyBytes, el.proofs[0], O))
970+ let ex = if (if (if (sigVerify(eq.bodyBytes, eq.proofs[0], P))
935971 then true
936- else sigVerify(el.bodyBytes, el.proofs[0], P))
972+ else sigVerify(eq.bodyBytes, eq.proofs[0], Q))
937973 then true
938- else sigVerify(el.bodyBytes, el.proofs[0], Q))
974+ else sigVerify(eq.bodyBytes, eq.proofs[0], R))
939975 then true
940- else sigVerify(el.bodyBytes, el.proofs[0], R)
941- if (if (er)
942- then es
976+ else sigVerify(eq.bodyBytes, eq.proofs[0], S)
977+ if (if (ew)
978+ then ex
943979 else false)
944980 then true
945- else en
981+ else es
946982 }
947- else en
983+ else es
948984 }
949985
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "2.0.0"
55
66 let b = "version"
77
88 let c = "active"
99
10-let d = "A_asset_id"
10+let d = "active_all_contracts"
1111
12-let e = "B_asset_id"
12+let e = "A_asset_id"
1313
14-let f = "A_asset_balance"
14+let f = "B_asset_id"
1515
16-let g = "B_asset_balance"
16+let g = "A_asset_balance"
1717
18-let h = "share_asset_id"
18+let h = "B_asset_balance"
1919
20-let i = "share_asset_supply"
20+let i = "share_asset_id"
2121
22-let j = "commission"
22+let j = "share_asset_supply"
2323
24-let k = "invariant"
24+let k = "commission"
2525
26-let l = "shutdown_cause"
26+let l = "invariant"
2727
28-let m = "staking_usdnnsbt_address"
28+let m = "shutdown_cause"
2929
30-let n = "staking_eurn_address"
30+let n = "staking_usdnnsbt_address"
3131
32-let o = "discounts"
32+let o = "staking_eurn_address"
3333
34-let p = "discount_values"
34+let p = "discounts"
3535
36-let q = "_SWOP_amount"
36+let q = "discount_values"
3737
38-let r = "_GSwop_amount"
38+let r = "_SWOP_amount"
3939
40-let s = "first_harvest"
40+let s = "_GSwop_amount"
4141
42-let t = "first_harvest_height"
42+let t = "first_harvest"
4343
44-let u = "share_limit_on_first_harvest"
44+let u = "first_harvest_height"
4545
46-let v = "base_period"
46+let v = "share_limit_on_first_harvest"
4747
48-let w = "period_length"
48+let w = "base_period"
4949
50-let x = "start_height"
50+let x = "period_length"
5151
52-let y = "admin_pub_1"
52+let y = "start_height"
5353
54-let z = "admin_pub_2"
54+let z = "admin_pub_1"
5555
56-let A = "admin_pub_3"
56+let A = "admin_pub_2"
5757
58-let B = "admin_invoke_pub"
58+let B = "admin_pub_3"
5959
60-let C = "money_box_address"
60+let C = "admin_invoke_pub"
6161
62-let D = "governance_address"
62+let D = "money_box_address"
6363
64-let E = "farming_address"
64+let E = "governance_address"
6565
66-let F = "voting_address"
66+let F = "farming_address"
6767
68-let G = "usdn_asset_id"
68+let G = "voting_address"
6969
70-let H = "staking_assets"
70+let H = "usdn_asset_id"
7171
72-let I = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
72+let I = "staking_assets"
7373
74-func J (K) = {
75- let L = getString(I, K)
76- if ($isInstanceOf(L, "String"))
74+let J = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
75+
76+func K (L) = {
77+ let M = getString(J, L)
78+ if ($isInstanceOf(M, "String"))
7779 then {
78- let M = L
79- fromBase58String(M)
80+ let N = M
81+ fromBase58String(N)
8082 }
8183 else {
82- let N = L
83- throw((K + "is empty"))
84+ let O = M
85+ throw((L + "is empty"))
8486 }
8587 }
8688
8789
88-let O = J(y)
90+let P = K(z)
8991
90-let P = J(z)
92+let Q = K(A)
9193
92-let Q = J(A)
94+let R = K(B)
9395
94-let R = J(B)
96+let S = K(C)
9597
96-let S = Address(J(C))
98+let T = Address(K(D))
9799
98-let T = Address(J(D))
100+let U = Address(K(E))
99101
100-let U = Address(J(m))
102+let V = Address(K(n))
101103
102-let V = Address(J(F))
104+let W = Address(K(G))
103105
104-let W = Address(J(E))
106+let X = Address(K(F))
105107
106-let X = J(G)
108+let Y = K(H)
107109
108-let Y = getStringValue(I, H)
110+let Z = getStringValue(J, I)
109111
110-let Z = valueOrErrorMessage(getInteger(V, v), "Empty kBasePeriod")
112+let aa = valueOrErrorMessage(getInteger(W, w), "Empty kBasePeriod")
111113
112-let aa = valueOrErrorMessage(getInteger(V, x), "Empty kStartHeight")
114+let ab = valueOrErrorMessage(getInteger(W, y), "Empty kStartHeight")
113115
114-let ab = valueOrErrorMessage(getInteger(V, w), "Empty kPeriodLength")
116+let ac = valueOrErrorMessage(getInteger(W, x), "Empty kPeriodLength")
115117
116-let ac = ((Z + ((height - aa) / ab)) + 3)
118+let ad = ((aa + ((height - ab) / ac)) + 3)
117119
118-let ad = getBooleanValue(this, c)
120+let ae = getBooleanValue(this, c)
119121
120-let ae = getStringValue(this, d)
122+let af = valueOrElse(getBoolean(J, d), true)
121123
122-let af = getStringValue(this, e)
124+let ag = getStringValue(this, e)
123125
124-let ag = if ((ae == "WAVES"))
126+let ah = getStringValue(this, f)
127+
128+let ai = if ((ag == "WAVES"))
125129 then unit
126- else fromBase58String(ae)
130+ else fromBase58String(ag)
127131
128-let ah = if ((af == "WAVES"))
132+let aj = if ((ah == "WAVES"))
129133 then unit
130- else fromBase58String(af)
134+ else fromBase58String(ah)
131135
132-let ai = {
133- let L = ag
134- if ($isInstanceOf(L, "ByteVector"))
136+let ak = {
137+ let M = ai
138+ if ($isInstanceOf(M, "ByteVector"))
135139 then {
136- let aj = L
137- value(assetInfo(aj)).name
140+ let al = M
141+ value(assetInfo(al)).name
138142 }
139- else if ($isInstanceOf(L, "Unit"))
143+ else if ($isInstanceOf(M, "Unit"))
140144 then {
141- let ak = L
145+ let am = M
142146 "WAVES"
143147 }
144148 else throw("Match error")
145149 }
146150
147-let al = {
148- let L = ah
149- if ($isInstanceOf(L, "ByteVector"))
151+let an = {
152+ let M = aj
153+ if ($isInstanceOf(M, "ByteVector"))
150154 then {
151- let aj = L
152- value(assetInfo(aj)).name
155+ let al = M
156+ value(assetInfo(al)).name
153157 }
154- else if ($isInstanceOf(L, "Unit"))
158+ else if ($isInstanceOf(M, "Unit"))
155159 then {
156- let ak = L
160+ let am = M
157161 "WAVES"
158162 }
159163 else throw("Match error")
160164 }
161165
162-let am = getIntegerValue(this, f)
166+let ao = getIntegerValue(this, g)
163167
164-let an = getIntegerValue(this, g)
168+let ap = getIntegerValue(this, h)
165169
166-let ao = fromBase58String(getStringValue(this, h))
167-
168-let ap = getIntegerValue(this, i)
169-
170-let aq = getIntegerValue(this, k)
170+let aq = fromBase58String(getStringValue(this, i))
171171
172172 let ar = getIntegerValue(this, j)
173173
174-let as = fraction(ar, 40, 100)
174+let as = getIntegerValue(this, l)
175175
176-let at = 1000000
176+let at = getIntegerValue(this, k)
177177
178-let au = 1000
178+let au = fraction(at, 40, 100)
179179
180-let av = 100000000
180+let av = 1000000
181181
182-let aw = 10000000000000000
182+let aw = 1000
183183
184-let ax = 8
184+let ax = 100000000
185185
186-let ay = 50
186+let ay = 10000000000000000
187187
188-let az = 100
188+let az = 8
189189
190-let aA = 90000000
190+let aA = 50
191191
192-let aB = 110000000
192+let aB = 100
193193
194-let aC = 50
194+let aC = 90000000
195195
196-let aD = 2
196+let aD = 110000000
197197
198-let aE = 4600000000000000
198+let aE = 50
199199
200-func aF (aG) = {
201- let L = aG
202- if ($isInstanceOf(L, "ByteVector"))
200+let aF = 2
201+
202+let aG = 4600000000000000
203+
204+func aH (aI) = {
205+ let M = aI
206+ if ($isInstanceOf(M, "ByteVector"))
203207 then {
204- let aj = L
205- assetBalance(this, aj)
208+ let al = M
209+ assetBalance(this, al)
206210 }
207- else if ($isInstanceOf(L, "Unit"))
211+ else if ($isInstanceOf(M, "Unit"))
208212 then {
209- let ak = L
213+ let am = M
210214 wavesBalance(this).available
211215 }
212216 else throw("Match error")
213217 }
214218
215219
216-func aH (aG) = {
217- let aI = {
218- let L = aG
219- if ($isInstanceOf(L, "ByteVector"))
220+func aJ (aI) = {
221+ let aK = {
222+ let M = aI
223+ if ($isInstanceOf(M, "ByteVector"))
220224 then {
221- let aJ = L
222- if ((aJ == X))
223- then getInteger(U, ((("rpd_balance_" + toBase58String(aJ)) + "_") + toString(this)))
225+ let aL = M
226+ if ((aL == Y))
227+ then getInteger(V, ((("rpd_balance_" + toBase58String(aL)) + "_") + toString(this)))
224228 else 0
225229 }
226- else if ($isInstanceOf(L, "Unit"))
230+ else if ($isInstanceOf(M, "Unit"))
227231 then 0
228232 else throw("Match error")
229233 }
230- let L = aI
231- if ($isInstanceOf(L, "Int"))
234+ let M = aK
235+ if ($isInstanceOf(M, "Int"))
232236 then {
233- let aK = L
234- aK
237+ let aM = M
238+ aM
235239 }
236240 else 0
237241 }
238242
239243
240-let aL = aH(ag)
244+let aN = aJ(ai)
241245
242-let aM = aH(ah)
246+let aO = aJ(aj)
243247
244-let aN = (am - aL)
248+let aP = (ao - aN)
245249
246-let aO = (an - aM)
250+let aQ = (ap - aO)
247251
248-let aP = (aF(ag) + aL)
252+let aR = (aH(ai) + aN)
249253
250-let aQ = (aF(ah) + aM)
254+let aS = (aH(aj) + aO)
251255
252-let aR = if ((aP >= am))
253- then (aQ >= an)
256+let aT = if ((aR >= ao))
257+ then (aS >= ap)
254258 else false
255259
256-func aS (aT,aU) = ((fraction(aw, aT, aU) + fraction(aw, aU, aT)) / 2)
260+func aU (aV,aW) = ((fraction(ay, aV, aW) + fraction(ay, aW, aV)) / 2)
257261
258262
259-func aV (aT,aU) = {
260- let aW = aS(aT, aU)
261- (fraction((aT + aU), aw, pow(aW, ax, aC, aD, ax, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(aT), toBigInt(aU), toBigInt(av)), 0, toBigInt(5), 1, (ax / 2), DOWN)), pow((aW - aE), ax, aC, aD, ax, DOWN), av)))
263+func aX (aV,aW) = {
264+ let aY = aU(aV, aW)
265+ (fraction((aV + aW), ay, pow(aY, az, aE, aF, az, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(aV), toBigInt(aW), toBigInt(ax)), 0, toBigInt(5), 1, (az / 2), DOWN)), pow((aY - aG), az, aE, aF, az, DOWN), ax)))
262266 }
263267
264268
265-func aX (aY,aZ,ba,bb,bc,bd,be) = {
266- let bf = (aw - ((aw * 1) / 10000000))
267- let bg = (aY - aZ)
268- let aT = (bc + ba)
269- let aU = (bd + ba)
270- func bh (bi,bj) = if ((bi._1 == -1))
269+func aZ (ba,bb,bc,bd,be,bf,bg) = {
270+ let bh = (ay - ((ay * 1) / 10000000))
271+ let bi = (ba - bb)
272+ let aV = (be + bc)
273+ let aW = (bf + bc)
274+ func bj (bk,bl) = if ((bk._1 == -1))
271275 then {
272- let bk = (aY - (((bj * bg) / 3) / au))
273- let bl = if ((bb == ag))
274- then aV(aT, (bd - bk))
275- else aV((bc - bk), aU)
276- if ((bl > be))
277- then $Tuple2(bk, bl)
276+ let bm = (ba - (((bl * bi) / 3) / aw))
277+ let bn = if ((bd == ai))
278+ then aX(aV, (bf - bm))
279+ else aX((be - bm), aW)
280+ if ((bn > bg))
281+ then $Tuple2(bm, bn)
278282 else $Tuple2(-1, 0)
279283 }
280- else bi
284+ else bk
281285
282- let bm = bh($Tuple2(-1, 0), 3000)
283- if ((0 > bm._1))
286+ let bo = bj($Tuple2(-1, 0), 3000)
287+ if ((0 > bo._1))
284288 then throw("Price is worse than minReceived")
285289 else {
286- let bn = if ((bb == ag))
287- then aV(aT, (bd - aY))
288- else if ((bb == ah))
289- then aV((bc - aY), aU)
290+ let bp = if ((bd == ai))
291+ then aX(aV, (bf - ba))
292+ else if ((bd == aj))
293+ then aX((be - ba), aW)
290294 else throw("Wrong asset in payment")
291- if ((be > bn))
292- then if ((bf >= fraction(aw, be, bn)))
295+ if ((bg > bp))
296+ then if ((bh >= fraction(ay, bg, bp)))
293297 then throw("The requested price is too not profitable for user")
294298 else {
295- let bo = {
296- let bp = [25, 200, 500]
297- let bq = size(bp)
298- let br = $Tuple2(-1, 0)
299- func bs (bt,bu) = if ((bu >= bq))
300- then bt
301- else bh(bt, bp[bu])
299+ let bq = {
300+ let br = [25, 200, 500]
301+ let bs = size(br)
302+ let bt = $Tuple2(-1, 0)
303+ func bu (bv,bw) = if ((bw >= bs))
304+ then bv
305+ else bj(bv, br[bw])
302306
303- func bv (bt,bu) = if ((bu >= bq))
304- then bt
307+ func bx (bv,bw) = if ((bw >= bs))
308+ then bv
305309 else throw("List size exceeds 3")
306310
307- bv(bs(bs(bs(br, 0), 1), 2), 3)
311+ bx(bu(bu(bu(bt, 0), 1), 2), 3)
308312 }
309- if ((0 > bo._1))
310- then bm._1
311- else bo._1
313+ if ((0 > bq._1))
314+ then bo._1
315+ else bq._1
312316 }
313317 else {
314- let bo = {
315- let bp = [-500, -200, -25]
316- let bq = size(bp)
317- let br = $Tuple2(-1, 0)
318- func bs (bt,bu) = if ((bu >= bq))
319- then bt
320- else bh(bt, bp[bu])
318+ let bq = {
319+ let br = [-500, -200, -25]
320+ let bs = size(br)
321+ let bt = $Tuple2(-1, 0)
322+ func bu (bv,bw) = if ((bw >= bs))
323+ then bv
324+ else bj(bv, br[bw])
321325
322- func bv (bt,bu) = if ((bu >= bq))
323- then bt
326+ func bx (bv,bw) = if ((bw >= bs))
327+ then bv
324328 else throw("List size exceeds 3")
325329
326- bv(bs(bs(bs(br, 0), 1), 2), 3)
330+ bx(bu(bu(bu(bt, 0), 1), 2), 3)
327331 }
328- let bw = if ((0 > bo._1))
329- then $Tuple2(aY, bn)
330- else bo
331- if ((bf >= fraction(aw, be, bw._2)))
332+ let by = if ((0 > bq._1))
333+ then $Tuple2(ba, bp)
334+ else bq
335+ if ((bh >= fraction(ay, bg, by._2)))
332336 then throw("The requested price is too not profitable for user")
333- else bw._1
337+ else by._1
334338 }
335339 }
336340 }
337341
338342
339-func bx (aG) = {
340- let L = aG
341- if ($isInstanceOf(L, "ByteVector"))
343+func bz (aI) = {
344+ let M = aI
345+ if ($isInstanceOf(M, "ByteVector"))
342346 then {
343- let aj = L
344- let by = toBase58String(aj)
345- let bz = valueOrErrorMessage(assetInfo(aj), (("Asset " + by) + " doesn't exist"))
346- $Tuple3(by, bz.name, bz.decimals)
347+ let al = M
348+ let bA = toBase58String(al)
349+ let bB = valueOrErrorMessage(assetInfo(al), (("Asset " + bA) + " doesn't exist"))
350+ $Tuple3(bA, bB.name, bB.decimals)
347351 }
348- else if ($isInstanceOf(L, "Unit"))
352+ else if ($isInstanceOf(M, "Unit"))
349353 then {
350- let ak = L
354+ let am = M
351355 $Tuple3("WAVES", "WAVES", 8)
352356 }
353357 else throw("Match error")
354358 }
355359
356360
357-func bA (bB) = [BooleanEntry(c, false), StringEntry(l, bB)]
361+func bC (bD) = [BooleanEntry(c, false), StringEntry(m, bD)]
358362
359363
360-func bC () = throw("DApp is already active")
364+func bE () = throw("DApp is already active")
361365
362366
363-func bD () = if (ad)
367+func bF () = if (if (ae)
368+ then af
369+ else false)
364370 then unit
365371 else throw("DApp is inactive at this moment")
366372
367373
368-func bE (aK) = if (containsElement([O, P, Q], aK.callerPublicKey))
374+func bG (aM) = if (containsElement([P, Q, R], aM.callerPublicKey))
369375 then unit
370376 else throw("Only admin can call this function")
371377
372378
373-func bF (aK) = if ((this == aK.caller))
379+func bH (aM) = if ((this == aM.caller))
374380 then unit
375381 else throw("Only contract itself can call this function")
376382
377383
378-func bG () = throw(((("Incorrect assets attached. Expected: " + ae) + " and ") + af))
384+func bI () = throw(((("Incorrect assets attached. Expected: " + ag) + " and ") + ah))
379385
380386
381-func bH () = throw("One attached payment expected")
387+func bJ () = throw("One attached payment expected")
382388
383389
384-func bI (bJ,bK,bL) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(bJ)) + ": ") + toString(bK)) + " ") + ai) + ", ") + toString(bL)) + " ") + al))
390+func bK (bL,bM,bN) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(bL)) + ": ") + toString(bM)) + " ") + ak) + ", ") + toString(bN)) + " ") + an))
385391
386392
387-func bM () = bA(((((((((((((((("Suspicious state. Actual balances: " + toString(am)) + " ") + ai) + ", ") + toString(an)) + " ") + al) + ". State: ") + toString(aF(ag))) + " ") + ai) + ", ") + toString(aF(ah))) + " ") + al))
393+func bO () = bC(((((((((((((((("Suspicious state. Actual balances: " + toString(ao)) + " ") + ak) + ", ") + toString(ap)) + " ") + an) + ". State: ") + toString(aH(ai))) + " ") + ak) + ", ") + toString(aH(aj))) + " ") + an))
388394
389395
390-func bN (bO,aG) = if (bO)
391- then $Tuple2("lockNeutrino", U)
392- else $Tuple2("unlockNeutrino", U)
396+func bP (bQ,aI) = if (bQ)
397+ then $Tuple2("lockNeutrino", V)
398+ else $Tuple2("unlockNeutrino", V)
393399
394400
395-func bP (bO,bQ,aG) = if (bO)
401+func bR (bQ,bS,aI) = if (bQ)
396402 then {
397- let bR = bN(bO, aG)
398- let bS = bR._1
399- let bT = bR._2
400- $Tuple4(bS, bT, nil, [AttachedPayment(aG, bQ)])
403+ let bT = bP(bQ, aI)
404+ let bU = bT._1
405+ let bV = bT._2
406+ $Tuple4(bU, bV, nil, [AttachedPayment(aI, bS)])
401407 }
402408 else {
403- let bU = bN(bO, aG)
404- let bS = bU._1
405- let bT = bU._2
406- $Tuple4(bS, bT, [bQ, toBase58String(aG)], nil)
409+ let bW = bP(bQ, aI)
410+ let bU = bW._1
411+ let bV = bW._2
412+ $Tuple4(bU, bV, [bS, toBase58String(aI)], nil)
407413 }
408414
409415
410-func bV (bW) = {
411- let bX = valueOrElse(getInteger(T, (toString(bW) + q)), 0)
412- let bY = valueOrElse(getInteger(T, (toString(bW) + r)), 0)
413- let bZ = split(getStringValue(I, p), ",")
414- let ca = split(getStringValue(I, o), ",")
415- if (if ((bY >= parseIntValue(bZ[0])))
416- then (parseIntValue(bZ[1]) > bY)
416+func bX (bY) = {
417+ let bZ = valueOrElse(getInteger(U, (toString(bY) + r)), 0)
418+ let ca = valueOrElse(getInteger(U, (toString(bY) + s)), 0)
419+ let cb = split(getStringValue(J, q), ",")
420+ let cc = split(getStringValue(J, p), ",")
421+ if (if ((ca >= parseIntValue(cb[0])))
422+ then (parseIntValue(cb[1]) > ca)
417423 else false)
418- then (at - parseIntValue(ca[0]))
419- else if (if ((bY >= parseIntValue(bZ[1])))
420- then (parseIntValue(bZ[2]) > bY)
424+ then (av - parseIntValue(cc[0]))
425+ else if (if ((ca >= parseIntValue(cb[1])))
426+ then (parseIntValue(cb[2]) > ca)
421427 else false)
422- then (at - parseIntValue(ca[1]))
423- else if (if ((bY >= parseIntValue(bZ[2])))
424- then (parseIntValue(bZ[3]) > bY)
428+ then (av - parseIntValue(cc[1]))
429+ else if (if ((ca >= parseIntValue(cb[2])))
430+ then (parseIntValue(cb[3]) > ca)
425431 else false)
426- then (at - parseIntValue(ca[2]))
427- else if (if ((bY >= parseIntValue(bZ[3])))
428- then (parseIntValue(bZ[4]) > bY)
432+ then (av - parseIntValue(cc[2]))
433+ else if (if ((ca >= parseIntValue(cb[3])))
434+ then (parseIntValue(cb[4]) > ca)
429435 else false)
430- then (at - parseIntValue(ca[3]))
431- else if ((bY >= parseIntValue(bZ[4])))
432- then (at - parseIntValue(ca[4]))
433- else at
436+ then (av - parseIntValue(cc[3]))
437+ else if ((ca >= parseIntValue(cb[4])))
438+ then (av - parseIntValue(cc[4]))
439+ else av
434440 }
435441
436442
437-@Callable(aK)
438-func init (cb) = {
439- let cc = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId)
440- let cd = cc._1
441- let ce = cc._2
442- let cf = $Tuple2(aK.payments[1].amount, aK.payments[1].assetId)
443- let cg = cf._1
444- let ch = cf._2
445- let ci = bx(ce)
446- let cj = ci._1
447- let ck = ci._2
448- let cl = ci._3
449- let cm = bx(ch)
450- let cn = cm._1
451- let co = cm._2
452- let cp = cm._3
443+func cd (aM,ce,cf) = {
444+ let cg = aM.payments[0].assetId
445+ let ch = aM.payments[1].assetId
446+ let ci = fraction(ax, aM.payments[0].amount, ao)
447+ let cj = fraction(ax, aM.payments[1].amount, ap)
448+ let ck = bz(cg)
449+ let cl = ck._1
450+ let cm = ck._2
451+ let cn = ck._3
452+ let co = bz(ch)
453+ let cp = co._1
454+ let cq = co._2
455+ let cr = co._3
456+ let cs = if ((cj > ci))
457+ then {
458+ let ct = fraction(ap, ci, ax, CEILING)
459+ $Tuple5(aM.payments[0].amount, ct, (aM.payments[1].amount - ct), ch, ci)
460+ }
461+ else {
462+ let ct = fraction(ao, cj, ax, CEILING)
463+ $Tuple5(ct, aM.payments[1].amount, (aM.payments[0].amount - ct), cg, cj)
464+ }
465+ let cu = cs._1
466+ let cv = cs._2
467+ let cw = cs._3
468+ let cx = cs._4
469+ let cy = cs._5
470+ let cz = fraction(cy, ar, ax)
471+ if (if ((size(aM.payments) != 2))
472+ then (size(aM.payments) != 3)
473+ else false)
474+ then throw("Two or three payments expected")
475+ else if (if ((cg != ai))
476+ then true
477+ else (ch != aj))
478+ then bI()
479+ else if ((cz == 0))
480+ then throw("Too small amount to replenish")
481+ else if ((0 > cw))
482+ then throw("Change < 0")
483+ else if (!(aT))
484+ then ([ScriptTransfer(aM.caller, cu, cg), ScriptTransfer(aM.caller, cv, ch)] ++ bO())
485+ else {
486+ let cA = if (contains(Z, cl))
487+ then invoke(this, "stakeUnstake", [true, cu, cl], nil)
488+ else 0
489+ if ((cA == cA))
490+ then {
491+ let cB = if (contains(Z, cp))
492+ then invoke(this, "stakeUnstake", [true, cv, cp], nil)
493+ else 0
494+ if ((cB == cB))
495+ then {
496+ let cC = [IntegerEntry(g, (ao + cu)), IntegerEntry(h, (ap + cv)), IntegerEntry(j, (ar + cz)), IntegerEntry(l, aX((ao + cu), (ap + cv))), ScriptTransfer(aM.caller, cw, cx)]
497+ if (ce)
498+ then {
499+ let cD = ([AttachedPayment(aq, cz)] ++ (if ((size(aM.payments) == 3))
500+ then [AttachedPayment(if ((aM.payments[2].assetId == base58''))
501+ then unit
502+ else aM.payments[2].assetId, aM.payments[2].amount)]
503+ else nil))
504+ let cE = invoke(this, "reissueShare", [cz], nil)
505+ if ((cE == cE))
506+ then {
507+ let cF = invoke(X, "lockShareTokensFromPool", [aM.caller.bytes, toString(this), cf], cD)
508+ if ((cF == cF))
509+ then cC
510+ else throw("Strict value is not equal to itself.")
511+ }
512+ else throw("Strict value is not equal to itself.")
513+ }
514+ else (cC ++ [Reissue(aq, cz, true), ScriptTransfer(aM.caller, cz, aq)])
515+ }
516+ else throw("Strict value is not equal to itself.")
517+ }
518+ else throw("Strict value is not equal to itself.")
519+ }
520+ }
521+
522+
523+func cG (aM,cH,cI,ce,cf) = {
524+ let cJ = $Tuple2(aM.payments[0].amount, aM.payments[0].assetId)
525+ let cK = cJ._1
526+ let cL = cJ._2
527+ let cM = bz(cL)
528+ let cN = cM._1
529+ let cO = cM._2
530+ let cP = cM._3
531+ let cQ = 5000000
532+ let cR = 50000000
533+ let cS = if ((cR > cK))
534+ then 100000
535+ else 1
536+ let cT = (ax - ((ax * cS) / 10000000))
537+ let cU = (ax + ((ax * cS) / 10000000))
538+ let cV = (ax - ((ax * 1) / 10000000))
539+ if ((cQ > cK))
540+ then throw((((("Payment amount " + toString(cK)) + " does not exceed the minimum amount of ") + toString(cQ)) + " tokens"))
541+ else if (if ((size(aM.payments) != 1))
542+ then (size(aM.payments) != 2)
543+ else false)
544+ then throw("One or two payments expected")
545+ else if (!(aT))
546+ then ([ScriptTransfer(aM.caller, cK, cL)] ++ bO())
547+ else if (if ((cL != ai))
548+ then (cL != aj)
549+ else false)
550+ then bI()
551+ else {
552+ let cW = if ((cL == ai))
553+ then $Tuple6((cK - cH), cI, (ao + cH), (ap - cI), (ao + cK), ap)
554+ else $Tuple6(cI, (cK - cH), (ao - cI), (ap + cH), ao, (ap + cK))
555+ let cX = cW._1
556+ let cY = cW._2
557+ let cZ = cW._3
558+ let da = cW._4
559+ let db = cW._5
560+ let dc = cW._6
561+ let dd = aX(cZ, da)
562+ let de = (fraction(ay, cZ, da) / fraction(ax, cX, cY))
563+ let df = fraction((db + dc), aA, (2 * aB))
564+ if (if ((cV >= fraction(ax, as, dd)))
565+ then true
566+ else (as > dd))
567+ then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
568+ else if (if ((cT > de))
569+ then true
570+ else (de > cU))
571+ then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
572+ else if (if ((df > db))
573+ then true
574+ else (df > dc))
575+ then bK(df, db, dc)
576+ else {
577+ let ci = fraction(cX, ax, cZ)
578+ let cj = fraction(cY, ax, da)
579+ let cz = fraction(min([ci, cj]), ar, ax)
580+ let dg = fraction(cz, (av - (at / 2)), av)
581+ let dh = fraction(cz, (au / 2), av)
582+ let di = fraction(dh, ao, ar)
583+ let dj = fraction(dh, ap, ar)
584+ let dk = if ((cN == ag))
585+ then $Tuple3((cK - di), dj, ah)
586+ else $Tuple3((cK - dj), di, ag)
587+ let dl = dk._1
588+ let dm = dk._2
589+ let dn = dk._3
590+ let cA = if (contains(Z, cN))
591+ then invoke(this, "stakeUnstake", [true, dl, cN], nil)
592+ else 0
593+ if ((cA == cA))
594+ then {
595+ let cB = if (contains(Z, dn))
596+ then invoke(this, "stakeUnstake", [false, dm, dn], nil)
597+ else 0
598+ if ((cB == cB))
599+ then {
600+ let cC = [IntegerEntry(g, (db - di)), IntegerEntry(h, (dc - dj)), IntegerEntry(j, (ar + dg)), IntegerEntry(l, aX((db - di), (dc - dj))), ScriptTransfer(T, di, ai), ScriptTransfer(T, dj, aj)]
601+ if (ce)
602+ then {
603+ let cD = ([AttachedPayment(aq, dg)] ++ (if ((size(aM.payments) == 2))
604+ then [AttachedPayment(if ((aM.payments[1].assetId == base58''))
605+ then unit
606+ else aM.payments[1].assetId, aM.payments[1].amount)]
607+ else nil))
608+ let cE = invoke(this, "reissueShare", [dg], nil)
609+ if ((cE == cE))
610+ then {
611+ let cF = invoke(X, "lockShareTokensFromPool", [aM.caller.bytes, toString(this), cf], cD)
612+ if ((cF == cF))
613+ then cC
614+ else throw("Strict value is not equal to itself.")
615+ }
616+ else throw("Strict value is not equal to itself.")
617+ }
618+ else (cC ++ [Reissue(aq, dg, true), ScriptTransfer(aM.caller, dg, aq)])
619+ }
620+ else throw("Strict value is not equal to itself.")
621+ }
622+ else throw("Strict value is not equal to itself.")
623+ }
624+ }
625+ }
626+
627+
628+func do (aM,dp) = {
629+ let dq = if ((size(aM.payments) == 1))
630+ then if ((aM.payments[0].assetId != aq))
631+ then throw(("Incorrect asset attached. Expected: " + toBase58String(aq)))
632+ else $Tuple2(aM.payments[0].amount, aM.payments[0].assetId)
633+ else $Tuple2(0, aq)
634+ let cK = dq._1
635+ let cL = dq._2
636+ if (!(aT))
637+ then ([ScriptTransfer(aM.caller, cK, cL)] ++ bO())
638+ else {
639+ let dr = if ((dp > 0))
640+ then invoke(X, "withdrawShareTokensFromPool", [aM.caller.bytes, toString(this), dp], nil)
641+ else 0
642+ if ((dr == dr))
643+ then {
644+ let ds = (cK + dp)
645+ let dt = fraction(ds, ao, ar)
646+ let du = fraction(ds, ap, ar)
647+ let dv = aX((ao - dt), (ap - du))
648+ let cA = if (contains(Z, ag))
649+ then invoke(this, "stakeUnstake", [false, dt, ag], nil)
650+ else 0
651+ if ((cA == cA))
652+ then {
653+ let cB = if (contains(Z, ah))
654+ then invoke(this, "stakeUnstake", [false, du, ah], nil)
655+ else 0
656+ if ((cB == cB))
657+ then [IntegerEntry(g, (ao - dt)), IntegerEntry(h, (ap - du)), IntegerEntry(j, (ar - ds)), IntegerEntry(l, dv), Burn(aq, ds), ScriptTransfer(aM.caller, dt, ai), ScriptTransfer(aM.caller, du, aj)]
658+ else throw("Strict value is not equal to itself.")
659+ }
660+ else throw("Strict value is not equal to itself.")
661+ }
662+ else throw("Strict value is not equal to itself.")
663+ }
664+ }
665+
666+
667+@Callable(aM)
668+func init (dw) = {
669+ let dx = $Tuple2(aM.payments[0].amount, aM.payments[0].assetId)
670+ let cu = dx._1
671+ let cg = dx._2
672+ let dy = $Tuple2(aM.payments[1].amount, aM.payments[1].assetId)
673+ let cv = dy._1
674+ let ch = dy._2
675+ let dz = bz(cg)
676+ let cl = dz._1
677+ let cm = dz._2
678+ let cn = dz._3
679+ let dA = bz(ch)
680+ let cp = dA._1
681+ let cq = dA._2
682+ let cr = dA._3
453683 if (isDefined(getBoolean(this, c)))
454- then bC()
455- else if ((ce == ch))
684+ then bE()
685+ else if ((cg == ch))
456686 then throw("Assets must be different")
457687 else {
458- let cq = ((("s" + take(ck, 7)) + "_") + take(co, 7))
459- let cr = ((((("ShareToken of SwopFi protocol for " + ck) + " and ") + co) + " at address ") + toString(this))
460- let cs = ((cl + cp) / 2)
461- let ct = fraction(pow(cd, cl, 5, 1, cl, DOWN), pow(cg, cp, 5, 1, cp, DOWN), pow(10, 0, cs, 0, 0, DOWN))
462- let cu = Issue(cq, cr, ct, cs, true)
463- let cv = calculateAssetId(cu)
464- let cw = aV(cd, cg)
465- let cx = if (contains(Y, cj))
466- then invoke(this, "stakeUnstake", [true, cd, cj], nil)
688+ let dB = ((("s" + take(cm, 7)) + "_") + take(cq, 7))
689+ let dC = ((((("ShareToken of SwopFi protocol for " + cm) + " and ") + cq) + " at address ") + toString(this))
690+ let dD = ((cn + cr) / 2)
691+ let dE = fraction(pow(cu, cn, 5, 1, cn, DOWN), pow(cv, cr, 5, 1, cr, DOWN), pow(10, 0, dD, 0, 0, DOWN))
692+ let dF = Issue(dB, dC, dE, dD, true)
693+ let dG = calculateAssetId(dF)
694+ let dv = aX(cu, cv)
695+ let cA = if (contains(Z, cl))
696+ then invoke(this, "stakeUnstake", [true, cu, cl], nil)
467697 else 0
468- if ((cx == cx))
698+ if ((cA == cA))
469699 then {
470- let cy = if (contains(Y, cn))
471- then invoke(this, "stakeUnstake", [true, cg, cn], nil)
700+ let cB = if (contains(Z, cp))
701+ then invoke(this, "stakeUnstake", [true, cv, cp], nil)
472702 else 0
473- if ((cy == cy))
703+ if ((cB == cB))
474704 then {
475- let cz = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, cj), StringEntry(e, cn), IntegerEntry(f, cd), IntegerEntry(g, cg), IntegerEntry(k, cw), IntegerEntry(j, getIntegerValue(I, "base_fee_flat")), cu, StringEntry(h, toBase58String(cv)), IntegerEntry(i, ct), ScriptTransfer(aK.caller, ct, cv)]
476- if (cb)
477- then (cz ++ [BooleanEntry(s, cb), IntegerEntry(t, (aa + (ac * ab)))])
478- else cz
705+ let dH = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, cl), StringEntry(f, cp), IntegerEntry(g, cu), IntegerEntry(h, cv), IntegerEntry(l, dv), IntegerEntry(k, getIntegerValue(J, "base_fee_flat")), dF, StringEntry(i, toBase58String(dG)), IntegerEntry(j, dE), ScriptTransfer(aM.caller, dE, dG)]
706+ if (dw)
707+ then (dH ++ [BooleanEntry(t, dw), IntegerEntry(u, (ab + (ad * ac)))])
708+ else dH
479709 }
480710 else throw("Strict value is not equal to itself.")
481711 }
482712 else throw("Strict value is not equal to itself.")
483713 }
484714 }
485715
486716
487717
488-@Callable(aK)
489-func replenishWithTwoTokens (cA,cB) = valueOrElse(bD(), {
490- let ce = aK.payments[0].assetId
491- let ch = aK.payments[1].assetId
492- let cC = fraction(av, aK.payments[0].amount, am)
493- let cD = fraction(av, aK.payments[1].amount, an)
494- let cE = bx(ce)
495- let cj = cE._1
496- let ck = cE._2
497- let cl = cE._3
498- let cF = bx(ch)
499- let cn = cF._1
500- let co = cF._2
501- let cp = cF._3
502- let cG = if ((cD > cC))
503- then {
504- let cH = fraction(an, cC, av, CEILING)
505- $Tuple5(aK.payments[0].amount, cH, (aK.payments[1].amount - cH), ch, cC)
506- }
507- else {
508- let cH = fraction(am, cD, av, CEILING)
509- $Tuple5(cH, aK.payments[1].amount, (aK.payments[0].amount - cH), ce, cD)
510- }
511- let cd = cG._1
512- let cg = cG._2
513- let cI = cG._3
514- let cJ = cG._4
515- let cK = cG._5
516- let cL = fraction(cK, ap, av)
517- if (if ((size(aK.payments) != 2))
518- then (size(aK.payments) != 3)
718+@Callable(aM)
719+func replenishWithTwoTokensV2 (ce,cf) = valueOrElse(bF(), cd(aM, ce, cf))
720+
721+
722+
723+@Callable(aM)
724+func replenishWithOneTokenV2 (cH,cI,ce,cf) = valueOrElse(bF(), cG(aM, cH, cI, ce, cf))
725+
726+
727+
728+@Callable(aM)
729+func withdrawV2 (dp) = valueOrElse(bF(), do(aM, dp))
730+
731+
732+
733+@Callable(aM)
734+func withdrawOneToken (dp,dI,dJ,dK) = valueOrElse(bF(), {
735+ let dL = if ((size(aM.payments) == 1))
736+ then if ((aM.payments[0].assetId != aq))
737+ then throw(("Incorrect asset attached. Expected: " + toBase58String(aq)))
738+ else $Tuple2(aM.payments[0].amount, aM.payments[0].assetId)
739+ else $Tuple2(0, aq)
740+ let cK = dL._1
741+ let cL = dL._2
742+ let ds = (cK + dp)
743+ if (if ((dI != ag))
744+ then (dI != ah)
519745 else false)
520- then throw("Two or three payments expected")
521- else if (if ((ce != ag))
522- then true
523- else (ch != ah))
524- then bG()
525- else if ((cL == 0))
526- then throw("Too small amount to replenish")
527- else if ((0 > cI))
528- then throw("Change < 0")
529- else if (!(aR))
530- then ([ScriptTransfer(aK.caller, cd, ce), ScriptTransfer(aK.caller, cg, ch)] ++ bM())
531- else {
532- let cx = if (contains(Y, cj))
533- then invoke(this, "stakeUnstake", [true, cd, cj], nil)
746+ then throw("Incorrect withdraw asset")
747+ else if ((0 >= ds))
748+ then throw("withdraw amount must be grater than 0")
749+ else if (!(aT))
750+ then ([ScriptTransfer(aM.caller, cK, cL)] ++ bO())
751+ else {
752+ let dr = if ((dp > 0))
753+ then invoke(X, "withdrawShareTokensFromPool", [aM.caller.bytes, toString(this), dp], nil)
754+ else 0
755+ if ((dr == dr))
756+ then {
757+ let dt = fraction(ds, ao, ar)
758+ let du = fraction(ds, ap, ar)
759+ let dM = (ao - dt)
760+ let dN = (ap - du)
761+ let dO = bX(aM.originCaller)
762+ let dP = if ((dI == ag))
763+ then aZ(dJ, dK, du, aj, dM, dN, aX(dM, dN))
764+ else aZ(dJ, dK, dt, ai, dM, dN, aX(dM, dN))
765+ let dQ = fraction(dP, fraction(au, dO, av, CEILING), av)
766+ let dR = fraction(dP, (av - fraction(at, dO, av, CEILING)), av)
767+ let dS = if ((dI == ag))
768+ then $Tuple3((dt + dR), (((ao - dt) - dR) - dQ), ap)
769+ else $Tuple3((du + dR), ao, (((ap - du) - dR) - dQ))
770+ let dT = dS._1
771+ let dU = dS._2
772+ let dV = dS._3
773+ let dv = aX(dU, dV)
774+ let cA = if (contains(Z, dI))
775+ then invoke(this, "stakeUnstake", [false, (dT + dQ), dI], nil)
534776 else 0
535- if ((cx == cx))
536- then {
537- let cy = if (contains(Y, cn))
538- then invoke(this, "stakeUnstake", [true, cg, cn], nil)
539- else 0
540- if ((cy == cy))
541- then {
542- let cM = [IntegerEntry(f, (am + cd)), IntegerEntry(g, (an + cg)), IntegerEntry(i, (ap + cL)), IntegerEntry(k, aV((am + cd), (an + cg))), ScriptTransfer(aK.caller, cI, cJ)]
543- if (cA)
544- then {
545- let cN = ([AttachedPayment(ao, cL)] ++ (if ((size(aK.payments) == 3))
546- then [AttachedPayment(aK.payments[2].assetId, aK.payments[2].amount)]
547- else nil))
548- let cO = invoke(this, "reissueShare", [cL], nil)
549- if ((cO == cO))
550- then {
551- let cP = invoke(W, "lockShareTokens", [toString(this), cB], cN)
552- if ((cP == cP))
553- then cM
554- else throw("Strict value is not equal to itself.")
555- }
556- else throw("Strict value is not equal to itself.")
557- }
558- else (cM ++ [Reissue(ao, cL, true), ScriptTransfer(aK.caller, cL, ao)])
559- }
560- else throw("Strict value is not equal to itself.")
561- }
777+ if ((cA == cA))
778+ then [IntegerEntry(g, dU), IntegerEntry(h, dV), IntegerEntry(j, (ar - ds)), IntegerEntry(l, dv), Burn(aq, ds), ScriptTransfer(aM.caller, dT, fromBase58String(dI)), ScriptTransfer(T, dQ, fromBase58String(dI))]
562779 else throw("Strict value is not equal to itself.")
563780 }
781+ else throw("Strict value is not equal to itself.")
782+ }
564783 })
565784
566785
567786
568-@Callable(aK)
569-func replenishWithOneToken (cQ,cR,cA,cB) = valueOrElse(bD(), {
570- let cS = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId)
571- let cT = cS._1
572- let cU = cS._2
573- let cV = bx(cU)
574- let cW = cV._1
575- let cX = cV._2
576- let cY = cV._3
577- let cZ = 5000000
578- let da = 50000000
579- let db = if ((da > cT))
580- then 100000
581- else 1
582- let dc = (av - ((av * db) / 10000000))
583- let dd = (av + ((av * db) / 10000000))
584- let de = (av - ((av * 1) / 10000000))
585- if ((cZ > cT))
586- then throw((((("Payment amount " + toString(cT)) + " does not exceed the minimum amount of ") + toString(cZ)) + " tokens"))
587- else if (if ((size(aK.payments) != 1))
588- then (size(aK.payments) != 2)
589- else false)
590- then throw("One or two payments expected")
591- else if (!(aR))
592- then ([ScriptTransfer(aK.caller, cT, cU)] ++ bM())
593- else if (if ((cU != ag))
594- then (cU != ah)
595- else false)
596- then bG()
597- else {
598- let df = if ((cU == ag))
599- then $Tuple6((cT - cQ), cR, (am + cQ), (an - cR), (am + cT), an)
600- else $Tuple6(cR, (cT - cQ), (am - cR), (an + cQ), am, (an + cT))
601- let dg = df._1
602- let dh = df._2
603- let di = df._3
604- let dj = df._4
605- let dk = df._5
606- let dl = df._6
607- let dm = aV(di, dj)
608- let dn = (fraction(aw, di, dj) / fraction(av, dg, dh))
609- let do = fraction((dk + dl), ay, (2 * az))
610- if (if ((de >= fraction(av, aq, dm)))
611- then true
612- else (aq > dm))
613- then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
614- else if (if ((dc > dn))
787+@Callable(aM)
788+func exchange (dJ,dK) = valueOrElse(bF(), {
789+ let dW = $Tuple2(aM.payments[0].amount, aM.payments[0].assetId)
790+ let cK = dW._1
791+ let cL = dW._2
792+ if ((0 >= dJ))
793+ then throw(("Estimated amount must be positive. Actual: " + toString(dJ)))
794+ else if ((dK > dJ))
795+ then throw("Minimal amount can't be greater than estimated.")
796+ else if ((size(aM.payments) != 1))
797+ then bJ()
798+ else if (!(aT))
799+ then ([ScriptTransfer(aM.caller, cK, cL)] ++ bO())
800+ else if (if ((cL != ai))
801+ then (cL != aj)
802+ else false)
803+ then bI()
804+ else if ((10000000 > cK))
805+ then throw("Only swap of 10.000000 or more tokens is allowed")
806+ else if (if ((aC > fraction(ax, dK, cK)))
615807 then true
616- else (dn > dd))
617- then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
618- else if (if ((do > dk))
619- then true
620- else (do > dl))
621- then bI(do, dk, dl)
622- else {
623- let cC = fraction(dg, av, di)
624- let cD = fraction(dh, av, dj)
625- let cL = fraction(min([cC, cD]), ap, av)
626- let dp = fraction(cL, (at - (ar / 2)), at)
627- let dq = fraction(cL, (as / 2), at)
628- let dr = fraction(dq, am, ap)
629- let ds = fraction(dq, an, ap)
630- let dt = if ((cW == ae))
631- then $Tuple3((cT - dr), ds, af)
632- else $Tuple3((cT - ds), dr, ae)
633- let du = dt._1
634- let dv = dt._2
635- let dw = dt._3
636- let cx = if (contains(Y, cW))
637- then invoke(this, "stakeUnstake", [true, du, cW], nil)
638- else 0
639- if ((cx == cx))
640- then {
641- let cy = if (contains(Y, dw))
642- then invoke(this, "stakeUnstake", [false, dv, dw], nil)
643- else 0
644- if ((cy == cy))
645- then {
646- let cM = [IntegerEntry(f, (dk - dr)), IntegerEntry(g, (dl - ds)), IntegerEntry(i, (ap + dp)), IntegerEntry(k, aV((dk - dr), (dl - ds))), ScriptTransfer(S, dr, ag), ScriptTransfer(S, ds, ah)]
647- if (cA)
648- then {
649- let cN = ([AttachedPayment(ao, dp)] ++ (if ((size(aK.payments) == 2))
650- then [AttachedPayment(aK.payments[1].assetId, aK.payments[1].amount)]
651- else nil))
652- let cO = invoke(this, "reissueShare", [dp], nil)
653- if ((cO == cO))
654- then {
655- let cP = invoke(W, "lockShareTokens", [toString(this), cB], cN)
656- if ((cP == cP))
657- then cM
658- else throw("Strict value is not equal to itself.")
659- }
660- else throw("Strict value is not equal to itself.")
661- }
662- else (cM ++ [Reissue(ao, dp, true), ScriptTransfer(aK.caller, dp, ao)])
663- }
664- else throw("Strict value is not equal to itself.")
665- }
666- else throw("Strict value is not equal to itself.")
667- }
668- }
669- })
670-
671-
672-
673-@Callable(aK)
674-func withdraw (dx) = valueOrElse(bD(), {
675- let dy = if ((size(aK.payments) == 1))
676- then if ((aK.payments[0].assetId != ao))
677- then throw(("Incorrect asset attached. Expected: " + toBase58String(ao)))
678- else $Tuple2(aK.payments[0].amount, aK.payments[0].assetId)
679- else $Tuple2(0, ao)
680- let cT = dy._1
681- let cU = dy._2
682- if (!(aR))
683- then ([ScriptTransfer(aK.caller, cT, cU)] ++ bM())
684- else {
685- let dz = if ((dx > 0))
686- then invoke(W, "withdrawShareTokens", [toString(this), dx], nil)
687- else 0
688- if ((dz == dz))
689- then {
690- let dA = (cT + dx)
691- let dB = fraction(dA, am, ap)
692- let dC = fraction(dA, an, ap)
693- let cw = aV((am - dB), (an - dC))
694- let cx = if (contains(Y, ae))
695- then invoke(this, "stakeUnstake", [false, dB, ae], nil)
696- else 0
697- if ((cx == cx))
698- then {
699- let cy = if (contains(Y, af))
700- then invoke(this, "stakeUnstake", [false, dC, af], nil)
701- else 0
702- if ((cy == cy))
703- then [IntegerEntry(f, (am - dB)), IntegerEntry(g, (an - dC)), IntegerEntry(i, (ap - dA)), IntegerEntry(k, cw), Burn(ao, dA), ScriptTransfer(aK.caller, dB, ag), ScriptTransfer(aK.caller, dC, ah)]
704- else throw("Strict value is not equal to itself.")
705- }
706- else throw("Strict value is not equal to itself.")
707- }
708- else throw("Strict value is not equal to itself.")
709- }
710- })
711-
712-
713-
714-@Callable(aK)
715-func withdrawOneToken (dx,dD,dE,dF) = {
716- let dG = if ((size(aK.payments) == 1))
717- then if ((aK.payments[0].assetId != ao))
718- then throw(("Incorrect asset attached. Expected: " + toBase58String(ao)))
719- else $Tuple2(aK.payments[0].amount, aK.payments[0].assetId)
720- else $Tuple2(0, ao)
721- let cT = dG._1
722- let cU = dG._2
723- if (if ((dD != ae))
724- then (dD != af)
725- else false)
726- then throw("Incorrect withdraw asset")
727- else if (!(aR))
728- then ([ScriptTransfer(aK.caller, cT, cU)] ++ bM())
729- else {
730- let dz = if ((dx > 0))
731- then invoke(W, "withdrawShareTokens", [toString(this), dx], nil)
732- else 0
733- if ((dz == dz))
734- then {
735- let dA = (cT + dx)
736- let dB = fraction(dA, am, ap)
737- let dC = fraction(dA, an, ap)
738- let dH = (am - dB)
739- let dI = (an - dC)
740- let dJ = bV(aK.originCaller)
741- let dK = if ((dD == ae))
742- then aX(dE, dF, dC, ah, dH, dI, aV(dH, dI))
743- else aX(dE, dF, dB, ag, dH, dI, aV(dH, dI))
744- let dL = fraction(dK, fraction(as, dJ, at, CEILING), at)
745- let dM = fraction(dK, (at - fraction(ar, dJ, at, CEILING)), at)
746- let dN = if ((dD == ae))
747- then $Tuple3((dB + dM), (((am - dB) - dM) - dL), an)
748- else $Tuple3((dC + dM), am, (((an - dC) - dM) - dL))
749- let dO = dN._1
750- let dP = dN._2
751- let dQ = dN._3
752- let cw = aV(dP, dQ)
753- let cx = if (contains(Y, dD))
754- then invoke(this, "stakeUnstake", [false, (dO + dL), dD], nil)
755- else 0
756- if ((cx == cx))
757- then [IntegerEntry(f, dP), IntegerEntry(g, dQ), IntegerEntry(i, (ap - dA)), IntegerEntry(k, cw), Burn(ao, dA), ScriptTransfer(aK.caller, dO, fromBase58String(dD)), ScriptTransfer(S, dL, fromBase58String(dD))]
758- else throw("Strict value is not equal to itself.")
759- }
760- else throw("Strict value is not equal to itself.")
761- }
762- }
763-
764-
765-
766-@Callable(aK)
767-func exchange (dE,dF) = valueOrElse(bD(), {
768- let dR = $Tuple2(aK.payments[0].amount, aK.payments[0].assetId)
769- let cT = dR._1
770- let cU = dR._2
771- if ((0 >= dE))
772- then throw(("Estimated amount must be positive. Actual: " + toString(dE)))
773- else if ((dF > dE))
774- then throw("Minimal amount can't be greater than estimated.")
775- else if ((size(aK.payments) != 1))
776- then bH()
777- else if (!(aR))
778- then ([ScriptTransfer(aK.caller, cT, cU)] ++ bM())
779- else if (if ((cU != ag))
780- then (cU != ah)
781- else false)
782- then bG()
783- else if ((10000000 > cT))
784- then throw("Only swap of 10.000000 or more tokens is allowed")
785- else if (if ((aA > fraction(av, dF, cT)))
786- then true
787- else (fraction(av, dE, cT) > aB))
808+ else (fraction(ax, dJ, cK) > aD))
788809 then throw("Incorrect args and pmt ratio")
789810 else {
790- let dS = if ((cU == ag))
791- then ah
792- else ag
793- let bQ = aX(dE, dF, cT, cU, am, an, aq)
794- let dJ = bV(aK.originCaller)
795- let dT = fraction(bQ, fraction(as, dJ, at, CEILING), at)
796- let dU = fraction(bQ, (at - fraction(ar, dJ, at, CEILING)), at)
797- let dV = if ((cU == ag))
798- then $Tuple2((am + cT), ((an - dU) - dT))
799- else $Tuple2(((am - dU) - dT), (an + cT))
800- let dk = dV._1
801- let dl = dV._2
802- let do = fraction((dk + dl), ay, (2 * az))
803- if (if ((do > dk))
811+ let dX = if ((cL == ai))
812+ then aj
813+ else ai
814+ let bS = aZ(dJ, dK, cK, cL, ao, ap, as)
815+ let dO = bX(aM.originCaller)
816+ let dY = fraction(bS, fraction(au, dO, av, CEILING), av)
817+ let dZ = fraction(bS, (av - fraction(at, dO, av, CEILING)), av)
818+ let ea = if ((cL == ai))
819+ then $Tuple2((ao + cK), ((ap - dZ) - dY))
820+ else $Tuple2(((ao - dZ) - dY), (ap + cK))
821+ let db = ea._1
822+ let dc = ea._2
823+ let df = fraction((db + dc), aA, (2 * aB))
824+ if (if ((df > db))
804825 then true
805- else (do > dl))
806- then bI(do, dk, dl)
826+ else (df > dc))
827+ then bK(df, db, dc)
807828 else {
808- let dW = bx(cU)
809- let cW = dW._1
810- let cX = dW._2
811- let cY = dW._3
812- let dX = bx(dS)
813- let dY = dX._1
814- let dZ = dX._2
815- let ea = dX._3
816- let cx = if (contains(Y, cW))
817- then invoke(this, "stakeUnstake", [true, cT, cW], nil)
829+ let eb = bz(cL)
830+ let cN = eb._1
831+ let cO = eb._2
832+ let cP = eb._3
833+ let ec = bz(dX)
834+ let ed = ec._1
835+ let ee = ec._2
836+ let ef = ec._3
837+ let cA = if (contains(Z, cN))
838+ then invoke(this, "stakeUnstake", [true, cK, cN], nil)
818839 else 0
819- if ((cx == cx))
840+ if ((cA == cA))
820841 then {
821- let cy = if (contains(Y, dY))
822- then invoke(this, "stakeUnstake", [false, (dU + dT), dY], nil)
842+ let cB = if (contains(Z, ed))
843+ then invoke(this, "stakeUnstake", [false, (dZ + dY), ed], nil)
823844 else 0
824- if ((cy == cy))
825- then $Tuple2([IntegerEntry(f, dk), IntegerEntry(g, dl), IntegerEntry(k, aV(dk, dl)), ScriptTransfer(aK.caller, dU, dS), ScriptTransfer(S, dT, dS)], [dU, dS])
845+ if ((cB == cB))
846+ then $Tuple2([IntegerEntry(g, db), IntegerEntry(h, dc), IntegerEntry(l, aX(db, dc)), ScriptTransfer(aM.caller, dZ, dX), ScriptTransfer(T, dY, dX)], [dZ, dX])
826847 else throw("Strict value is not equal to itself.")
827848 }
828849 else throw("Strict value is not equal to itself.")
829850 }
830851 }
831852 })
832853
833854
834855
835-@Callable(eb)
836-func reissueShare (bQ) = valueOrElse(bF(eb), [Reissue(ao, bQ, true)])
856+@Callable(eg)
857+func reissueShare (bS) = valueOrElse(bH(eg), [Reissue(aq, bS, true)])
837858
838859
839860
840-@Callable(aK)
841-func shutdown () = valueOrElse(bE(aK), if (!(ad))
842- then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified")))
843- else bA("Paused by admin"))
861+@Callable(aM)
862+func shutdown () = valueOrElse(bG(aM), if (!(ae))
863+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, m), "the cause wasn't specified")))
864+ else bC("Paused by admin"))
844865
845866
846867
847-@Callable(aK)
848-func activate () = valueOrElse(bE(aK), if (ad)
849- then bC()
850- else [BooleanEntry(c, true), DeleteEntry(l)])
868+@Callable(aM)
869+func activate () = valueOrElse(bG(aM), if (ae)
870+ then bE()
871+ else [BooleanEntry(c, true), DeleteEntry(m)])
851872
852873
853874
854-@Callable(aK)
855-func takeIntoAccountExtraFunds () = valueOrElse(bD(), {
856- let ec = (aP - am)
857- let ed = (aQ - an)
858- let dm = aV((am + ec), (an + ed))
859- if ((aK.caller != S))
875+@Callable(aM)
876+func takeIntoAccountExtraFunds () = valueOrElse(bF(), {
877+ let eh = (aR - ao)
878+ let ei = (aS - ap)
879+ let dd = aX((ao + eh), (ap + ei))
880+ if ((aM.caller != T))
860881 then throw("Only the money box can call this function")
861- else if (if ((0 > ec))
882+ else if (if ((0 > eh))
862883 then true
863- else (0 > ed))
864- then bA("Enroll amount negative")
865- else if (if ((ec == 0))
866- then (ed == 0)
884+ else (0 > ei))
885+ then bC("Enroll amount negative")
886+ else if (if ((eh == 0))
887+ then (ei == 0)
867888 else false)
868889 then throw("No money to take")
869890 else {
870- let cx = if (if (contains(Y, ae))
871- then (ec > 0)
891+ let cA = if (if (contains(Z, ag))
892+ then (eh > 0)
872893 else false)
873- then invoke(this, "stakeUnstake", [true, ec, ae], nil)
894+ then invoke(this, "stakeUnstake", [true, eh, ag], nil)
874895 else 0
875- if ((cx == cx))
896+ if ((cA == cA))
876897 then {
877- let cy = if (if (contains(Y, af))
878- then (ed > 0)
898+ let cB = if (if (contains(Z, ah))
899+ then (ei > 0)
879900 else false)
880- then invoke(this, "stakeUnstake", [true, ed, af], nil)
901+ then invoke(this, "stakeUnstake", [true, ei, ah], nil)
881902 else 0
882- if ((cy == cy))
883- then [IntegerEntry(k, dm), IntegerEntry(f, (am + ec)), IntegerEntry(g, (an + ed))]
903+ if ((cB == cB))
904+ then [IntegerEntry(l, dd), IntegerEntry(g, (ao + eh)), IntegerEntry(h, (ap + ei))]
884905 else throw("Strict value is not equal to itself.")
885906 }
886907 else throw("Strict value is not equal to itself.")
887908 }
888909 })
889910
890911
891912
892-@Callable(aK)
893-func keepLimitForFirstHarvest (ee) = valueOrElse(bD(), valueOrElse(bE(aK), [IntegerEntry(u, ee)]))
913+@Callable(aM)
914+func keepLimitForFirstHarvest (ej) = valueOrElse(bF(), valueOrElse(bG(aM), [IntegerEntry(v, ej)]))
894915
895916
896917
897-@Callable(aK)
898-func stakeUnstake (bO,bQ,ef) = if ((aK.caller != this))
918+@Callable(aM)
919+func stakeUnstake (bQ,bS,ek) = if ((aM.caller != this))
899920 then throw("Only contract itself can invoke this function")
900921 else {
901- let eg = bP(bO, bQ, fromBase58String(ef))
902- let bS = eg._1
903- let eh = eg._2
904- let ei = eg._3
905- let ej = eg._4
906- let ek = invoke(eh, bS, ei, ej)
907- if ((ek == ek))
922+ let el = bR(bQ, bS, fromBase58String(ek))
923+ let bU = el._1
924+ let em = el._2
925+ let en = el._3
926+ let eo = el._4
927+ let ep = invoke(em, bU, en, eo)
928+ if ((ep == ep))
908929 then nil
909930 else throw("Strict value is not equal to itself.")
910931 }
911932
912933
913-@Verifier(el)
914-func em () = {
915- let en = {
916- let eo = if (sigVerify(el.bodyBytes, el.proofs[0], O))
934+
935+@Callable(aM)
936+func replenishWithTwoTokens () = valueOrElse(bF(), cd(aM, false, 0))
937+
938+
939+
940+@Callable(aM)
941+func replenishWithOneToken (cH,cI) = valueOrElse(bF(), cG(aM, cH, cI, false, 0))
942+
943+
944+
945+@Callable(aM)
946+func withdraw () = valueOrElse(bF(), do(aM, 0))
947+
948+
949+@Verifier(eq)
950+func er () = {
951+ let es = {
952+ let et = if (sigVerify(eq.bodyBytes, eq.proofs[0], P))
917953 then 1
918954 else 0
919- let ep = if (sigVerify(el.bodyBytes, el.proofs[1], P))
955+ let eu = if (sigVerify(eq.bodyBytes, eq.proofs[1], Q))
920956 then 1
921957 else 0
922- let eq = if (sigVerify(el.bodyBytes, el.proofs[2], Q))
958+ let ev = if (sigVerify(eq.bodyBytes, eq.proofs[2], R))
923959 then 1
924960 else 0
925- (((eo + ep) + eq) >= 2)
961+ (((et + eu) + ev) >= 2)
926962 }
927- let L = el
928- if ($isInstanceOf(L, "InvokeScriptTransaction"))
963+ let M = eq
964+ if ($isInstanceOf(M, "InvokeScriptTransaction"))
929965 then {
930- let ek = L
931- let er = if ((ek.dApp == this))
932- then (ek.function == "takeIntoAccountExtraFunds")
966+ let ep = M
967+ let ew = if ((ep.dApp == this))
968+ then (ep.function == "takeIntoAccountExtraFunds")
933969 else false
934- let es = if (if (if (sigVerify(el.bodyBytes, el.proofs[0], O))
970+ let ex = if (if (if (sigVerify(eq.bodyBytes, eq.proofs[0], P))
935971 then true
936- else sigVerify(el.bodyBytes, el.proofs[0], P))
972+ else sigVerify(eq.bodyBytes, eq.proofs[0], Q))
937973 then true
938- else sigVerify(el.bodyBytes, el.proofs[0], Q))
974+ else sigVerify(eq.bodyBytes, eq.proofs[0], R))
939975 then true
940- else sigVerify(el.bodyBytes, el.proofs[0], R)
941- if (if (er)
942- then es
976+ else sigVerify(eq.bodyBytes, eq.proofs[0], S)
977+ if (if (ew)
978+ then ex
943979 else false)
944980 then true
945- else en
981+ else es
946982 }
947- else en
983+ else es
948984 }
949985

github/deemru/w8io/026f985 
286.15 ms