tx · 91JUGXmES8EWKB4QEFhDqsuCEbJKsBMJUxYCLT2krad1

3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5:  -0.14000000 Waves

2023.01.19 16:04 [2411850] smart account 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5 > SELF 0.00000000 Waves

{ "type": 13, "id": "91JUGXmES8EWKB4QEFhDqsuCEbJKsBMJUxYCLT2krad1", "fee": 14000000, "feeAssetId": null, "timestamp": 1674133533289, "version": 2, "chainId": 84, "sender": "3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5", "senderPublicKey": "FEnkfXnQZkk1FmjhH6QZqyK2taN6ngnZBexevKxouLUM", "proofs": [ "2ctY1JTAvWqiKZFLE8B7axSqEQQrKS6aqeEg9firNMu6iHHrFeqCkNUbVpzNxoiVhJoLdAqzAnz7yUEm8hcskdKp", "2pQNpnmUZPXSoE9y4FLWF3ZGe1aovfMbzinVr4otns24hG4NkLBfkxcAejw4bPpUczqjKau5JpS1RhDbTbKg9Dbz" ], "script": "base64:BgJKCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERJOAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQALa0RlcHJlY2F0ZWQCC2RlcHJlY2F0ZWRfAAlrQXNzZXRJZEECCkFfYXNzZXRfaWQACWtBc3NldElkQgIKQl9hc3NldF9pZAAJa0JhbGFuY2VBAg9BX2Fzc2V0X2JhbGFuY2UACWtCYWxhbmNlQgIPQl9hc3NldF9iYWxhbmNlAA1rQmFsYW5jZUluaXRBAgxBX2Fzc2V0X2luaXQADWtCYWxhbmNlSW5pdEICDEJfYXNzZXRfaW5pdAANa1NoYXJlQXNzZXRJZAIOc2hhcmVfYXNzZXRfaWQAEWtTaGFyZUFzc2V0U3VwcGx5AhJzaGFyZV9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wAAAMJAAACBQZzdGFrZTIFBnN0YWtlMgkAlAoCBQNuaWwJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgUJa0JhbGFuY2VBCQBkAgUIYmFsYW5jZUEFDWFtb3VudEVucm9sbEEJAMwIAgkBDEludGVnZXJFbnRyeQIFCWtCYWxhbmNlQgkAZAIFCGJhbGFuY2VCBQ1hbW91bnRFbnJvbGxCBQNuaWwFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEE211bHRpU2lnbmVkQnlBZG1pbnMEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFDGFkbWluUHViS2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAgUTbXVsdGlTaWduZWRCeUFkbWluc+hU+uA=", "height": 2411850, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5QhYqJ8q8Mh2ZoW6hBmMHTxoAAUXpkZk1o9jkKeXTzGm Next: Gsf5XiGstXo92tXDKVhEMD7f8rpo3adZQ4ZCdYs65PYY Diff:
OldNewDifferences
77
88 let c = "active"
99
10-let d = "A_asset_id"
10+let d = "deprecated_"
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 = "A_asset_init"
18+let h = "B_asset_balance"
1919
20-let i = "B_asset_init"
20+let i = "A_asset_init"
2121
22-let j = "share_asset_id"
22+let j = "B_asset_init"
2323
24-let k = "share_asset_supply"
24+let k = "share_asset_id"
2525
26-let l = "commission"
26+let l = "share_asset_supply"
2727
28-let m = "shutdown_cause"
28+let m = "commission"
2929
30-let n = "first_harvest"
30+let n = "shutdown_cause"
3131
32-let o = "first_harvest_height"
32+let o = "first_harvest"
3333
34-let p = "share_limit_on_first_harvest"
34+let p = "first_harvest_height"
3535
36-let q = "base_period"
36+let q = "share_limit_on_first_harvest"
3737
38-let r = "period_length"
38+let r = "base_period"
3939
40-let s = "start_height"
40+let s = "period_length"
4141
42-let t = "staking_usdnnsbt_address"
42+let t = "start_height"
4343
44-let u = "staking_eurn_address"
44+let u = "staking_usdnnsbt_address"
4545
46-let v = "leasing_amount"
46+let v = "staking_eurn_address"
4747
48-let w = "usdn_asset_id"
48+let w = "leasing_amount"
4949
50-let x = "eurn_asset_id"
50+let x = "usdn_asset_id"
5151
52-let y = "staking_assets"
52+let y = "eurn_asset_id"
5353
54-let z = "active_all_contracts"
54+let z = "staking_assets"
5555
56-let A = "discounts"
56+let A = "active_all_contracts"
5757
58-let B = "discount_values"
58+let B = "discounts"
5959
60-let C = "_GSwop_amount"
60+let C = "discount_values"
6161
62-let D = "_SWOP_amount"
62+let D = "_GSwop_amount"
6363
64-let E = "pool_"
64+let E = "_SWOP_amount"
6565
66-let F = "admin_pub_1"
66+let F = "pool_"
6767
68-let G = "admin_pub_2"
68+let G = "admin_pub_1"
6969
70-let H = "admin_pub_3"
70+let H = "admin_pub_2"
7171
72-let I = "admin_invoke_pub"
72+let I = "admin_pub_3"
7373
74-let J = "money_box_address"
74+let J = "admin_invoke_pub"
7575
76-let K = "voting_address"
76+let K = "money_box_address"
7777
78-let L = "governance_address"
78+let L = "voting_address"
7979
80-let M = "farming_address"
80+let M = "governance_address"
8181
82-let N = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
82+let N = "farming_address"
8383
84-func O (P) = {
85- let Q = getString(N, P)
86- if ($isInstanceOf(Q, "String"))
84+let O = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
85+
86+func P (Q) = {
87+ let R = getString(O, Q)
88+ if ($isInstanceOf(R, "String"))
8789 then {
88- let R = Q
89- fromBase58String(R)
90+ let S = R
91+ fromBase58String(S)
9092 }
9193 else {
92- let S = Q
93- throw((P + "is empty"))
94+ let T = R
95+ throw((Q + "is empty"))
9496 }
9597 }
9698
9799
98-let T = O(F)
100+let U = P(G)
99101
100-let U = O(G)
102+let V = P(H)
101103
102-let V = O(H)
104+let W = P(I)
103105
104-let W = O(I)
106+let X = P(J)
105107
106-let X = Address(O(J))
108+let Y = Address(P(K))
107109
108-let Y = Address(O(K))
110+let Z = Address(P(L))
109111
110-let Z = Address(O(L))
112+let aa = Address(P(M))
111113
112-let aa = Address(O(M))
114+let ab = Address(P(N))
113115
114-let ab = O(w)
116+let ac = P(x)
115117
116-let ac = O(x)
118+let ad = P(y)
117119
118-let ad = getStringValue(N, y)
120+let ae = getStringValue(O, z)
119121
120-let ae = Address(O(t))
122+let af = Address(P(u))
121123
122-let af = Address(O(u))
124+let ag = Address(P(v))
123125
124-let ag = valueOrErrorMessage(getInteger(Y, q), "Empty kBasePeriod")
126+let ah = valueOrErrorMessage(getInteger(Z, r), "Empty kBasePeriod")
125127
126-let ah = valueOrErrorMessage(getInteger(Y, s), "Empty kStartHeight")
128+let ai = valueOrErrorMessage(getInteger(Z, t), "Empty kStartHeight")
127129
128-let ai = valueOrErrorMessage(getInteger(Y, r), "Empty kPeriodLength")
130+let aj = valueOrErrorMessage(getInteger(Z, s), "Empty kPeriodLength")
129131
130-let aj = ((ag + ((height - ah) / ai)) + 3)
132+let ak = ((ah + ((height - ai) / aj)) + 3)
131133
132-let ak = getBooleanValue(N, z)
134+let al = getBooleanValue(O, A)
133135
134-let al = 1000000
136+let am = 1000000
135137
136-let am = 100000000
138+let an = 100000000
137139
138-let an = toBigInt(10000000000000000)
140+let ao = toBigInt(10000000000000000)
139141
140-func ao (ap,aq) = {
141- let Q = ap
142- if ($isInstanceOf(Q, "ByteVector"))
142+func ap (aq,ar) = {
143+ let R = aq
144+ if ($isInstanceOf(R, "ByteVector"))
143145 then {
144- let ar = Q
145- assetBalance(aq, ar)
146+ let as = R
147+ assetBalance(ar, as)
146148 }
147- else if ($isInstanceOf(Q, "Unit"))
149+ else if ($isInstanceOf(R, "Unit"))
148150 then {
149- let as = Q
150- wavesBalance(aq).available
151+ let at = R
152+ wavesBalance(ar).available
151153 }
152154 else throw("Match error")
153155 }
154156
155157
156-func at (ap,aq) = {
157- let au = {
158- let Q = ap
159- if ($isInstanceOf(Q, "ByteVector"))
158+func au (aq,ar) = {
159+ let av = {
160+ let R = aq
161+ if ($isInstanceOf(R, "ByteVector"))
160162 then {
161- let av = Q
162- if ((av == ab))
163- then getInteger(ae, ((("rpd_balance_" + toBase58String(av)) + "_") + toString(aq)))
164- else if ((av == ac))
165- then getInteger(af, ((("%s%s%s__stakingBalance__" + toBase58String(av)) + "__") + toString(aq)))
163+ let aw = R
164+ if ((aw == ac))
165+ then getInteger(af, ((("rpd_balance_" + toBase58String(aw)) + "_") + toString(ar)))
166+ else if ((aw == ad))
167+ then getInteger(ag, ((("%s%s%s__stakingBalance__" + toBase58String(aw)) + "__") + toString(ar)))
166168 else 0
167169 }
168- else if ($isInstanceOf(Q, "Unit"))
169- then valueOrElse(getInteger(aq, v), 0)
170+ else if ($isInstanceOf(R, "Unit"))
171+ then valueOrElse(getInteger(ar, w), 0)
170172 else throw("Match error")
171173 }
172- let Q = au
173- if ($isInstanceOf(Q, "Int"))
174+ let R = av
175+ if ($isInstanceOf(R, "Int"))
174176 then {
175- let aw = Q
176- aw
177+ let ax = R
178+ ax
177179 }
178180 else 0
179181 }
180182
181183
182-func ax (ap) = {
183- let Q = ap
184- if (if ($isInstanceOf(Q, "String"))
184+func ay (aq) = {
185+ let R = aq
186+ if (if ($isInstanceOf(R, "String"))
185187 then true
186- else $isInstanceOf(Q, "ByteVector"))
188+ else $isInstanceOf(R, "ByteVector"))
187189 then {
188- let ar = Q
189- let ay = {
190- let az = ar
191- if ($isInstanceOf(az, "ByteVector"))
190+ let as = R
191+ let az = {
192+ let aA = as
193+ if ($isInstanceOf(aA, "ByteVector"))
192194 then {
193- let av = az
194- $Tuple2(toBase58String(av), av)
195+ let aw = aA
196+ $Tuple2(toBase58String(aw), aw)
195197 }
196- else if ($isInstanceOf(az, "String"))
198+ else if ($isInstanceOf(aA, "String"))
197199 then {
198- let av = az
199- $Tuple2(av, fromBase58String(av))
200+ let aw = aA
201+ $Tuple2(aw, fromBase58String(aw))
200202 }
201203 else throw("Match error")
202204 }
203- let aA = ay._1
204- let aB = ay._2
205- let aC = valueOrErrorMessage(assetInfo(aB), (("Asset " + aA) + " doesn't exist"))
206- $Tuple3(aA, aC.name, aC.decimals)
205+ let aB = az._1
206+ let aC = az._2
207+ let aD = valueOrErrorMessage(assetInfo(aC), (("Asset " + aB) + " doesn't exist"))
208+ $Tuple3(aB, aD.name, aD.decimals)
207209 }
208- else if ($isInstanceOf(Q, "Unit"))
210+ else if ($isInstanceOf(R, "Unit"))
209211 then {
210- let as = Q
212+ let at = R
211213 $Tuple3("WAVES", "WAVES", 8)
212214 }
213215 else throw("Match error")
214216 }
215217
216218
217-func aD (aE) = [BooleanEntry(c, false), StringEntry(m, aE)]
219+func aE (aF) = [BooleanEntry(c, false), StringEntry(n, aF)]
218220
219221
220-func aF (aG) = {
221- let aH = valueOrElse(getInteger(Z, (toString(aG) + D)), 0)
222- let aI = valueOrElse(getInteger(Z, (toString(aG) + C)), aH)
223- let aJ = split(getStringValue(N, B), ",")
224- let aK = split(getStringValue(N, A), ",")
225- if (if ((aI >= parseIntValue(aJ[0])))
226- then (parseIntValue(aJ[1]) > aI)
222+func aG (aH) = {
223+ let aI = valueOrElse(getInteger(aa, (toString(aH) + E)), 0)
224+ let aJ = valueOrElse(getInteger(aa, (toString(aH) + D)), aI)
225+ let aK = split(getStringValue(O, C), ",")
226+ let aL = split(getStringValue(O, B), ",")
227+ if (if ((aJ >= parseIntValue(aK[0])))
228+ then (parseIntValue(aK[1]) > aJ)
227229 else false)
228- then (al - parseIntValue(aK[0]))
229- else if (if ((aI >= parseIntValue(aJ[1])))
230- then (parseIntValue(aJ[2]) > aI)
230+ then (am - parseIntValue(aL[0]))
231+ else if (if ((aJ >= parseIntValue(aK[1])))
232+ then (parseIntValue(aK[2]) > aJ)
231233 else false)
232- then (al - parseIntValue(aK[1]))
233- else if (if ((aI >= parseIntValue(aJ[2])))
234- then (parseIntValue(aJ[3]) > aI)
234+ then (am - parseIntValue(aL[1]))
235+ else if (if ((aJ >= parseIntValue(aK[2])))
236+ then (parseIntValue(aK[3]) > aJ)
235237 else false)
236- then (al - parseIntValue(aK[2]))
237- else if (if ((aI >= parseIntValue(aJ[3])))
238- then (parseIntValue(aJ[4]) > aI)
238+ then (am - parseIntValue(aL[2]))
239+ else if (if ((aJ >= parseIntValue(aK[3])))
240+ then (parseIntValue(aK[4]) > aJ)
239241 else false)
240- then (al - parseIntValue(aK[3]))
241- else if ((aI >= parseIntValue(aJ[4])))
242- then (al - parseIntValue(aK[4]))
243- else al
242+ then (am - parseIntValue(aL[3]))
243+ else if ((aJ >= parseIntValue(aK[4])))
244+ then (am - parseIntValue(aL[4]))
245+ else am
244246 }
245247
246248
247-func aL (aM,aN,aO,aP,aQ,aR) = {
248- let aS = fraction(aP, aM, (aM + aO))
249- let aT = fraction(aS, (al - aQ), al)
250- let aU = fraction(aS, aR, al)
251- if ((aN > aT))
252- then throw(((("Calculated amount to receive " + toString(aT)) + " is less than specified minimum ") + toString(aN)))
253- else $Tuple3(aS, aT, aU)
249+func aM (aN,aO,aP,aQ,aR,aS) = {
250+ let aT = fraction(aQ, aN, (aN + aP))
251+ let aU = fraction(aT, (am - aR), am)
252+ let aV = fraction(aT, aS, am)
253+ if ((aO > aU))
254+ then throw(((("Calculated amount to receive " + toString(aU)) + " is less than specified minimum ") + toString(aO)))
255+ else $Tuple3(aT, aU, aV)
254256 }
255257
256258
257-func aV (aM,aW,aQ) = {
258- let aX = (al - aQ)
259- let aY = fraction(aQ, 60, 100)
260- let aZ = (am + fraction((aX * aY), am, (al * al)))
261- let ba = ((((aW + fraction(aW, aX, al)) + fraction(aM, aX, al)) - aM) - fraction(aM, (aX * aY), (al * al)))
262- let bb = (-(toBigInt(aW)) * toBigInt(aM))
263- let bc = ((toBigInt(ba) * toBigInt(ba)) - fraction((toBigInt(4) * bb), toBigInt(aZ), toBigInt(am)))
264- toInt(fraction((-(toBigInt(ba)) + sqrtBigInt(bc, 0, 0, DOWN)), toBigInt(am), toBigInt((2 * aZ))))
259+func aW (aN,aX,aR) = {
260+ let aY = (am - aR)
261+ let aZ = fraction(aR, 60, 100)
262+ let ba = (an + fraction((aY * aZ), an, (am * am)))
263+ let bb = ((((aX + fraction(aX, aY, am)) + fraction(aN, aY, am)) - aN) - fraction(aN, (aY * aZ), (am * am)))
264+ let bc = (-(toBigInt(aX)) * toBigInt(aN))
265+ let bd = ((toBigInt(bb) * toBigInt(bb)) - fraction((toBigInt(4) * bc), toBigInt(ba), toBigInt(an)))
266+ toInt(fraction((-(toBigInt(bb)) + sqrtBigInt(bd, 0, 0, DOWN)), toBigInt(an), toBigInt((2 * ba))))
265267 }
266268
267269
268-func bd (ap) = if ((ap == base58''))
270+func be (aq) = if ((aq == base58''))
269271 then unit
270- else ap
272+ else aq
271273
272274
273-func be (bf,bg,bh,bi,bj,bk) = aD(((((((((((((((("Suspicious state. Actual balances: " + toString(bf)) + " ") + bj) + ", ") + toString(bg)) + " ") + bk) + ". State: ") + toString(bh)) + " ") + bj) + ", ") + toString(bi)) + " ") + bk))
275+func bf (bg,bh,bi,bj,bk,bl) = aE(((((((((((((((("Suspicious state. Actual balances: " + toString(bg)) + " ") + bk) + ", ") + toString(bh)) + " ") + bl) + ". State: ") + toString(bi)) + " ") + bk) + ", ") + toString(bj)) + " ") + bl))
274276
275277
276-func bl () = if (ak)
278+func bm () = if (al)
277279 then unit
278280 else throw("DApp is inactive at this moment")
279281
280282
281-func bm (bn) = if (isDefined(getString(N, (E + bn))))
283+func bn (bo) = if (isDefined(getString(O, (F + bo))))
282284 then unit
283285 else throw("DApp is not registered pool")
284286
285287
286-func bo (aq,bj,bk) = {
287- let bh = getIntegerValue(aq, f)
288- let bi = getIntegerValue(aq, g)
289- let bp = at(bj, aq)
290- let bq = at(bk, aq)
291- let bf = (ao(bj, aq) + bp)
292- let bg = (ao(bk, aq) + bq)
293- let br = getIntegerValue(aq, k)
294- $Tuple5(bh, bi, bf, bg, br)
288+func bp (bo) = if (!(valueOrElse(getBoolean(O, (d + bo)), false)))
289+ then unit
290+ else throw("Pool is deprecated. Only withdraw action allowed.")
291+
292+
293+func bq (ar,bk,bl) = {
294+ let bi = getIntegerValue(ar, g)
295+ let bj = getIntegerValue(ar, h)
296+ let br = au(bk, ar)
297+ let bs = au(bl, ar)
298+ let bg = (ap(bk, ar) + br)
299+ let bh = (ap(bl, ar) + bs)
300+ let bt = getIntegerValue(ar, l)
301+ $Tuple5(bi, bj, bg, bh, bt)
295302 }
296303
297304
298-func bs (aq) = {
299- let bt = getStringValue(aq, d)
300- let bu = getStringValue(aq, e)
301- let bj = if ((bt == "WAVES"))
305+func bu (ar) = {
306+ let bv = getStringValue(ar, e)
307+ let bw = getStringValue(ar, f)
308+ let bk = if ((bv == "WAVES"))
302309 then unit
303- else fromBase58String(bt)
304- let bk = if ((bu == "WAVES"))
310+ else fromBase58String(bv)
311+ let bl = if ((bw == "WAVES"))
305312 then unit
306- else fromBase58String(bu)
307- let bv = fromBase58String(getStringValue(aq, j))
308- $Tuple5(bt, bu, bj, bk, bv)
313+ else fromBase58String(bw)
314+ let bx = fromBase58String(getStringValue(ar, k))
315+ $Tuple5(bv, bw, bk, bl, bx)
309316 }
310317
311318
312-func bw (aq,bx) = {
313- let by = aF(bx)
314- let aQ = fraction(getIntegerValue(aq, l), by, al, CEILING)
315- let bz = fraction(aQ, 40, 100)
316- $Tuple2(aQ, bz)
319+func by (ar,bz) = {
320+ let bA = aG(bz)
321+ let aR = fraction(getIntegerValue(ar, m), bA, am, CEILING)
322+ let bB = fraction(aR, 40, 100)
323+ $Tuple2(aR, bB)
317324 }
318325
319326
320-@Callable(aw)
321-func init (bA,bB,bC,bD) = {
322- let bx = Address(bA)
323- let bE = $Tuple2(bC[0], bd(bD[0]))
324- let bF = bE._1
325- let bG = bE._2
326- let bH = $Tuple2(bC[1], bd(bD[1]))
327- let bI = bH._1
328- let bJ = bH._2
329- if (!(containsElement([T, U, V, W], aw.originCallerPublicKey)))
327+@Callable(ax)
328+func init (bC,bD,bE,bF) = {
329+ let bz = Address(bC)
330+ let bG = $Tuple2(bE[0], be(bF[0]))
331+ let bH = bG._1
332+ let bI = bG._2
333+ let bJ = $Tuple2(bE[1], be(bF[1]))
334+ let bK = bJ._1
335+ let bL = bJ._2
336+ if (!(containsElement([U, V, W, X], ax.originCallerPublicKey)))
330337 then throw("Only admin can call this function")
331- else if ((size(bB) != 1))
338+ else if ((size(bD) != 1))
332339 then throw("Wrong args size")
333- else if (isDefined(getBoolean(bx, c)))
340+ else if (isDefined(getBoolean(bz, c)))
334341 then throw("DApp is already active")
335- else if ((bG == bJ))
342+ else if ((bI == bL))
336343 then throw("Assets must be different")
337344 else {
338- let bK = ax(bG)
339- let bL = bK._1
340- let bM = bK._2
341- let bN = bK._3
342- let bO = ax(bJ)
343- let bP = bO._1
344- let bQ = bO._2
345- let bR = bO._3
346- let bS = (bB[0] == "true")
347- let bT = ((("s" + take(bM, 7)) + "_") + take(bQ, 7))
348- let bU = ((((("ShareToken of SwopFi protocol for " + bM) + " and ") + bQ) + " at address ") + toString(this))
349- let bV = ((bN + bR) / 2)
350- let bW = pow(bF, bN, 5, 1, bN, DOWN)
351- let bX = pow(bI, bR, 5, 1, bR, DOWN)
352- let bY = pow(10, 0, bV, 0, 0, DOWN)
353- let bZ = fraction(bW, bX, bY)
354- let ca = Issue(bT, bU, bZ, bV, true)
355- let cb = calculateAssetId(ca)
356- let cc = if (contains(ad, bL))
357- then invoke(aw.caller, "stakeUnstake", [true, bF, bL], nil)
345+ let bM = ay(bI)
346+ let bN = bM._1
347+ let bO = bM._2
348+ let bP = bM._3
349+ let bQ = ay(bL)
350+ let bR = bQ._1
351+ let bS = bQ._2
352+ let bT = bQ._3
353+ let bU = (bD[0] == "true")
354+ let bV = ((("s" + take(bO, 7)) + "_") + take(bS, 7))
355+ let bW = ((((("ShareToken of SwopFi protocol for " + bO) + " and ") + bS) + " at address ") + toString(this))
356+ let bX = ((bP + bT) / 2)
357+ let bY = pow(bH, bP, 5, 1, bP, DOWN)
358+ let bZ = pow(bK, bT, 5, 1, bT, DOWN)
359+ let ca = pow(10, 0, bX, 0, 0, DOWN)
360+ let cb = fraction(bY, bZ, ca)
361+ let cc = Issue(bV, bW, cb, bX, true)
362+ let cd = calculateAssetId(cc)
363+ let ce = if (contains(ae, bN))
364+ then invoke(ax.caller, "stakeUnstake", [true, bH, bN], nil)
358365 else 0
359- if ((cc == cc))
366+ if ((ce == ce))
360367 then {
361- let cd = if (contains(ad, bP))
362- then invoke(aw.caller, "stakeUnstake", [true, bI, bP], nil)
368+ let cf = if (contains(ae, bR))
369+ then invoke(ax.caller, "stakeUnstake", [true, bK, bR], nil)
363370 else 0
364- if ((cd == cd))
371+ if ((cf == cf))
365372 then {
366- let ce = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bL), StringEntry(e, bP), IntegerEntry(f, bF), IntegerEntry(g, bI), IntegerEntry(l, getIntegerValue(N, "base_fee_cpmm")), ca, StringEntry(j, toBase58String(cb)), IntegerEntry(k, bZ), ScriptTransfer(bx, bZ, cb)]
367- if (bS)
368- then $Tuple2(nil, $Tuple2((ce ++ [BooleanEntry(n, bS), IntegerEntry(o, (ah + (aj * ai)))]), nil))
369- else $Tuple2(nil, $Tuple2(ce, nil))
373+ let cg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, bN), StringEntry(f, bR), IntegerEntry(g, bH), IntegerEntry(h, bK), IntegerEntry(m, getIntegerValue(O, "base_fee_cpmm")), cc, StringEntry(k, toBase58String(cd)), IntegerEntry(l, cb), ScriptTransfer(bz, cb, cd)]
374+ if (bU)
375+ then $Tuple2(nil, $Tuple2((cg ++ [BooleanEntry(o, bU), IntegerEntry(p, (ai + (ak * aj)))]), nil))
376+ else $Tuple2(nil, $Tuple2(cg, nil))
370377 }
371378 else throw("Strict value is not equal to itself.")
372379 }
376383
377384
378385
379-@Callable(aw)
380-func initWithInitRatio (bA,bB,bC,bD) = {
381- let bx = Address(bA)
382- let cf = $Tuple5(parseIntValue(bB[0]), parseIntValue(bB[1]), bB[2], bB[3], (bB[4] == "true"))
383- let cg = cf._1
384- let ch = cf._2
385- let ci = cf._3
386- let cj = cf._4
387- let bS = cf._5
388- if (!(containsElement([T, U, V, W], aw.originCallerPublicKey)))
386+@Callable(ax)
387+func initWithInitRatio (bC,bD,bE,bF) = {
388+ let bz = Address(bC)
389+ let ch = $Tuple5(parseIntValue(bD[0]), parseIntValue(bD[1]), bD[2], bD[3], (bD[4] == "true"))
390+ let ci = ch._1
391+ let cj = ch._2
392+ let ck = ch._3
393+ let cl = ch._4
394+ let bU = ch._5
395+ if (!(containsElement([U, V, W, X], ax.originCallerPublicKey)))
389396 then throw("Only admin can call this function")
390- else if ((size(bB) != 5))
397+ else if ((size(bD) != 5))
391398 then throw("Wrong args size")
392- else if (isDefined(getBoolean(bx, c)))
399+ else if (isDefined(getBoolean(bz, c)))
393400 then throw("DApp is already active")
394- else if ((ci == cj))
401+ else if ((ck == cl))
395402 then throw("Assets must be different")
396403 else {
397- let ck = ax(ci)
398- let bL = ck._1
399- let bM = ck._2
400- let bN = ck._3
401- let cl = ax(cj)
402- let bP = cl._1
403- let bQ = cl._2
404- let bR = cl._3
405- let bT = ((("s" + take(bM, 7)) + "_") + take(bQ, 7))
406- let bU = ((((("ShareToken of SwopFi protocol for " + bM) + " and ") + bQ) + " at address ") + toString(this))
407- let bV = ((bN + bR) / 2)
408- let bZ = 0
409- let ca = Issue(bT, bU, bZ, bV, true)
410- let cb = calculateAssetId(ca)
411- let ce = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bL), StringEntry(e, bP), IntegerEntry(h, cg), IntegerEntry(i, ch), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, getIntegerValue(N, "base_fee_cpmm")), ca, StringEntry(j, toBase58String(cb)), IntegerEntry(k, bZ)]
412- if (bS)
413- then $Tuple2(nil, $Tuple2((ce ++ [BooleanEntry(n, bS), IntegerEntry(o, (ah + (aj * ai)))]), nil))
414- else $Tuple2(nil, $Tuple2(ce, nil))
404+ let cm = ay(ck)
405+ let bN = cm._1
406+ let bO = cm._2
407+ let bP = cm._3
408+ let cn = ay(cl)
409+ let bR = cn._1
410+ let bS = cn._2
411+ let bT = cn._3
412+ let bV = ((("s" + take(bO, 7)) + "_") + take(bS, 7))
413+ let bW = ((((("ShareToken of SwopFi protocol for " + bO) + " and ") + bS) + " at address ") + toString(this))
414+ let bX = ((bP + bT) / 2)
415+ let cb = 0
416+ let cc = Issue(bV, bW, cb, bX, true)
417+ let cd = calculateAssetId(cc)
418+ let cg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, bN), StringEntry(f, bR), IntegerEntry(i, ci), IntegerEntry(j, cj), IntegerEntry(g, 0), IntegerEntry(h, 0), IntegerEntry(m, getIntegerValue(O, "base_fee_cpmm")), cc, StringEntry(k, toBase58String(cd)), IntegerEntry(l, cb)]
419+ if (bU)
420+ then $Tuple2(nil, $Tuple2((cg ++ [BooleanEntry(o, bU), IntegerEntry(p, (ai + (ak * aj)))]), nil))
421+ else $Tuple2(nil, $Tuple2(cg, nil))
415422 }
416423 }
417424
418425
419426
420-@Callable(aw)
421-func keepLimitForFirstHarvest (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), if (!(containsElement([T, U, V, W], aw.originCallerPublicKey)))
427+@Callable(ax)
428+func keepLimitForFirstHarvest (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), if (!(containsElement([U, V, W, X], ax.originCallerPublicKey)))
422429 then throw("Only admin can call this function")
423- else if ((size(bB) != 1))
430+ else if ((size(bD) != 1))
424431 then throw("Wrong args size")
425432 else {
426- let cm = parseIntValue(bB[0])
427- $Tuple2(nil, $Tuple2([IntegerEntry(p, cm)], nil))
433+ let co = parseIntValue(bD[0])
434+ $Tuple2(nil, $Tuple2([IntegerEntry(q, co)], nil))
428435 }))
429436
430437
431438
432-@Callable(aw)
433-func exchange (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
434- let bx = Address(bA)
435- let cn = $Tuple2(bC[0], bd(bD[0]))
436- let aM = cn._1
437- let co = cn._2
438- let aN = parseIntValue(bB[0])
439- let cp = bs(aw.caller)
440- let bt = cp._1
441- let bu = cp._2
442- let bj = cp._3
443- let bk = cp._4
444- let cq = bo(aw.caller, bj, bk)
445- let bh = cq._1
446- let bi = cq._2
447- let bf = cq._3
448- let bg = cq._4
449- if ((size(bB) != 1))
439+@Callable(ax)
440+func exchange (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), {
441+ let bz = Address(bC)
442+ let cp = $Tuple2(bE[0], be(bF[0]))
443+ let aN = cp._1
444+ let cq = cp._2
445+ let aO = parseIntValue(bD[0])
446+ let cr = bu(ax.caller)
447+ let bv = cr._1
448+ let bw = cr._2
449+ let bk = cr._3
450+ let bl = cr._4
451+ let cs = bq(ax.caller, bk, bl)
452+ let bi = cs._1
453+ let bj = cs._2
454+ let bg = cs._3
455+ let bh = cs._4
456+ if ((size(bD) != 1))
450457 then throw("Wrong args size")
451- else if (if ((bh == 0))
458+ else if (if ((bi == 0))
452459 then true
453- else (bi == 0))
460+ else (bj == 0))
454461 then throw("Can't exchange with zero balance")
455- else if ((0 >= aN))
456- then throw(("Minimal amount to receive must be positive. Actual: " + toString(aN)))
457- else if ((size(bC) != 1))
462+ else if ((0 >= aO))
463+ then throw(("Minimal amount to receive must be positive. Actual: " + toString(aO)))
464+ else if ((size(bE) != 1))
458465 then throw("One attached payment expected")
459- else if (!(containsElement([bj, bk], co)))
460- then throw(((("Incorrect asset attached. Expected: " + bt) + " or ") + bu))
461- else if (if ((bh > bf))
466+ else if (!(containsElement([bk, bl], cq)))
467+ then throw(((("Incorrect asset attached. Expected: " + bv) + " or ") + bw))
468+ else if (if ((bi > bg))
462469 then true
463- else (bi > bg))
464- then $Tuple2(nil, ([ScriptTransfer(bx, aM, co)] ++ be(bf, bg, bh, bi, bt, bu)))
470+ else (bj > bh))
471+ then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw)))
465472 else {
466- let cr = bw(aw.caller, aw.originCaller)
467- let aQ = cr._1
468- let bz = cr._2
469- let cs = if ((co == bj))
470- then aL(aM, aN, bh, bi, aQ, bz)
471- else aL(aM, aN, bi, bh, aQ, bz)
472- let aS = cs._1
473- let aT = cs._2
474- let aU = cs._3
475- let ct = if ((co == bj))
476- then $Tuple3((bh + aM), ((bi - aT) - aU), bk)
477- else $Tuple3(((bh - aT) - aU), (bi + aM), bj)
478- let cu = ct._1
479- let cv = ct._2
480- let cw = ct._3
481- let cx = if ((co == bj))
482- then $Tuple2(aM, (aT + aU))
483- else $Tuple2((aT + aU), aM)
484- let cy = cx._1
485- let cz = cx._2
486- let cc = if (contains(ad, bt))
487- then invoke(aw.caller, "stakeUnstake", [(co == bj), cy, bt], nil)
473+ let ct = by(ax.caller, ax.originCaller)
474+ let aR = ct._1
475+ let bB = ct._2
476+ let cu = if ((cq == bk))
477+ then aM(aN, aO, bi, bj, aR, bB)
478+ else aM(aN, aO, bj, bi, aR, bB)
479+ let aT = cu._1
480+ let aU = cu._2
481+ let aV = cu._3
482+ let cv = if ((cq == bk))
483+ then $Tuple3((bi + aN), ((bj - aU) - aV), bl)
484+ else $Tuple3(((bi - aU) - aV), (bj + aN), bk)
485+ let cw = cv._1
486+ let cx = cv._2
487+ let cy = cv._3
488+ let cz = if ((cq == bk))
489+ then $Tuple2(aN, (aU + aV))
490+ else $Tuple2((aU + aV), aN)
491+ let cA = cz._1
492+ let cB = cz._2
493+ let ce = if (contains(ae, bv))
494+ then invoke(ax.caller, "stakeUnstake", [(cq == bk), cA, bv], nil)
488495 else 0
489- if ((cc == cc))
496+ if ((ce == ce))
490497 then {
491- let cd = if (contains(ad, bu))
492- then invoke(aw.caller, "stakeUnstake", [(co == bk), cz, bu], nil)
498+ let cf = if (contains(ae, bw))
499+ then invoke(ax.caller, "stakeUnstake", [(cq == bl), cB, bw], nil)
493500 else 0
494- if ((cd == cd))
495- then $Tuple2(nil, $Tuple2([IntegerEntry(f, cu), IntegerEntry(g, cv), ScriptTransfer(bx, aT, cw), ScriptTransfer(X, aU, cw)], [aT, cw]))
501+ if ((cf == cf))
502+ then $Tuple2(nil, $Tuple2([IntegerEntry(g, cw), IntegerEntry(h, cx), ScriptTransfer(bz, aU, cy), ScriptTransfer(Y, aV, cy)], [aU, cy]))
496503 else throw("Strict value is not equal to itself.")
497504 }
498505 else throw("Strict value is not equal to itself.")
499506 }
500- }))
507+ })))
501508
502509
503510
504-@Callable(aw)
505-func replenishWithTwoTokens (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
506- let bx = Address(bA)
507- let bG = bd(bD[0])
508- let bJ = bd(bD[1])
509- let cA = (bB[0] == "true")
510- let cB = parseIntValue(bB[1])
511- let cC = bs(aw.caller)
512- let bt = cC._1
513- let bu = cC._2
514- let bj = cC._3
515- let bk = cC._4
516- let bv = cC._5
517- let cD = bo(aw.caller, bj, bk)
518- let bh = cD._1
519- let bi = cD._2
520- let bf = cD._3
521- let bg = cD._4
522- let cE = cD._5
523- if ((size(bB) != 2))
511+@Callable(ax)
512+func replenishWithTwoTokens (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), {
513+ let bz = Address(bC)
514+ let bI = be(bF[0])
515+ let bL = be(bF[1])
516+ let cC = (bD[0] == "true")
517+ let cD = parseIntValue(bD[1])
518+ let cE = bu(ax.caller)
519+ let bv = cE._1
520+ let bw = cE._2
521+ let bk = cE._3
522+ let bl = cE._4
523+ let bx = cE._5
524+ let cF = bq(ax.caller, bk, bl)
525+ let bi = cF._1
526+ let bj = cF._2
527+ let bg = cF._3
528+ let bh = cF._4
529+ let cG = cF._5
530+ if ((size(bD) != 2))
524531 then throw("Wrong args size")
525- else if (if ((size(bC) != 2))
526- then (size(bC) != 3)
532+ else if (if ((size(bE) != 2))
533+ then (size(bE) != 3)
527534 else false)
528535 then throw("Two or three payments expected")
529- else if (if ((bG != bj))
536+ else if (if ((bI != bk))
530537 then true
531- else (bJ != bk))
532- then throw(((("Incorrect assets attached. Expected: " + bt) + " and ") + bu))
533- else if (if ((bh > bf))
538+ else (bL != bl))
539+ then throw(((("Incorrect assets attached. Expected: " + bv) + " and ") + bw))
540+ else if (if ((bi > bg))
534541 then true
535- else (bi > bg))
536- then $Tuple2(nil, ([ScriptTransfer(bx, bC[0], bG), ScriptTransfer(bx, bC[1], bJ)] ++ (if ((size(bC) == 3))
537- then [AttachedPayment(if ((bD[2] == base58''))
542+ else (bj > bh))
543+ then $Tuple2(nil, ([ScriptTransfer(bz, bE[0], bI), ScriptTransfer(bz, bE[1], bL)] ++ (if ((size(bE) == 3))
544+ then [AttachedPayment(if ((bF[2] == base58''))
538545 then unit
539- else bD[2], bC[2])]
540- else (nil ++ be(bf, bg, bh, bi, bt, bu)))))
546+ else bF[2], bE[2])]
547+ else (nil ++ bf(bg, bh, bi, bj, bv, bw)))))
541548 else {
542- let cF = ax(bG)
543- let bL = cF._1
544- let bM = cF._2
545- let bN = cF._3
546- let cG = ax(bJ)
547- let bP = cG._1
548- let bQ = cG._2
549- let bR = cG._3
550- let cH = ((bh + bi) == 0)
551- let cI = if (cH)
552- then $Tuple5(bC[0], bC[1], 0, bG, toBigInt(1))
549+ let cH = ay(bI)
550+ let bN = cH._1
551+ let bO = cH._2
552+ let bP = cH._3
553+ let cI = ay(bL)
554+ let bR = cI._1
555+ let bS = cI._2
556+ let bT = cI._3
557+ let cJ = ((bi + bj) == 0)
558+ let cK = if (cJ)
559+ then $Tuple5(bE[0], bE[1], 0, bI, toBigInt(1))
553560 else {
554- let cJ = fraction(an, toBigInt(bC[0]), toBigInt(bh))
555- let cK = fraction(an, toBigInt(bC[1]), toBigInt(bi))
556- if ((cK > cJ))
561+ let cL = fraction(ao, toBigInt(bE[0]), toBigInt(bi))
562+ let cM = fraction(ao, toBigInt(bE[1]), toBigInt(bj))
563+ if ((cM > cL))
557564 then {
558- let cL = fraction(bC[0], bi, bh)
559- $Tuple5(bC[0], cL, (bC[1] - cL), bJ, cJ)
565+ let cN = fraction(bE[0], bj, bi)
566+ $Tuple5(bE[0], cN, (bE[1] - cN), bL, cL)
560567 }
561568 else {
562- let cL = fraction(bC[1], bh, bi)
563- $Tuple5(cL, bC[1], (bC[0] - cL), bG, cK)
569+ let cN = fraction(bE[1], bi, bj)
570+ $Tuple5(cN, bE[1], (bE[0] - cN), bI, cM)
564571 }
565572 }
566- let bF = cI._1
567- let bI = cI._2
568- let cM = cI._3
569- let cN = cI._4
570- let cO = cI._5
571- let cP = if (cH)
573+ let bH = cK._1
574+ let bK = cK._2
575+ let cO = cK._3
576+ let cP = cK._4
577+ let cQ = cK._5
578+ let cR = if (cJ)
572579 then {
573- let bV = ((bN + bR) / 2)
574- fraction(pow(bF, bN, 5, 1, bN, DOWN), pow(bI, bR, 5, 1, bR, DOWN), pow(10, 0, bV, 0, 0, DOWN))
580+ let bX = ((bP + bT) / 2)
581+ fraction(pow(bH, bP, 5, 1, bP, DOWN), pow(bK, bT, 5, 1, bT, DOWN), pow(10, 0, bX, 0, 0, DOWN))
575582 }
576- else toInt(fraction(cO, toBigInt(cE), an))
577- if ((cP == 0))
583+ else toInt(fraction(cQ, toBigInt(cG), ao))
584+ if ((cR == 0))
578585 then throw("Too small amount to replenish")
579- else if ((0 > cM))
586+ else if ((0 > cO))
580587 then throw("Change < 0")
581588 else {
582- let cc = if (contains(ad, bL))
583- then invoke(aw.caller, "stakeUnstake", [true, bF, bL], nil)
589+ let ce = if (contains(ae, bN))
590+ then invoke(ax.caller, "stakeUnstake", [true, bH, bN], nil)
584591 else 0
585- if ((cc == cc))
592+ if ((ce == ce))
586593 then {
587- let cd = if (contains(ad, bP))
588- then invoke(aw.caller, "stakeUnstake", [true, bI, bP], nil)
594+ let cf = if (contains(ae, bR))
595+ then invoke(ax.caller, "stakeUnstake", [true, bK, bR], nil)
589596 else 0
590- if ((cd == cd))
597+ if ((cf == cf))
591598 then {
592- let cQ = if (cA)
599+ let cS = if (cC)
593600 then {
594- let cR = ([AttachedPayment(bv, cP)] ++ (if ((size(bC) == 3))
595- then [AttachedPayment(if ((bD[2] == base58''))
601+ let cT = ([AttachedPayment(bx, cR)] ++ (if ((size(bE) == 3))
602+ then [AttachedPayment(if ((bF[2] == base58''))
596603 then unit
597- else bD[2], bC[2])]
604+ else bF[2], bE[2])]
598605 else nil))
599- let cS = invoke(aw.caller, "reissueShareToken", [cP], nil)
600- if ((cS == cS))
606+ let cU = invoke(ax.caller, "reissueShareToken", [cR], nil)
607+ if ((cU == cU))
601608 then {
602- let cT = invoke(aa, "lockShareTokensFromPool", [bA, toString(aw.caller), cB], cR)
603- if ((cT == cT))
609+ let cV = invoke(ab, "lockShareTokensFromPool", [bC, toString(ax.caller), cD], cT)
610+ if ((cV == cV))
604611 then nil
605612 else throw("Strict value is not equal to itself.")
606613 }
607614 else throw("Strict value is not equal to itself.")
608615 }
609- else [Reissue(bv, cP, true), ScriptTransfer(bx, cP, bv)]
610- $Tuple2(nil, $Tuple2(([IntegerEntry(f, (bh + bF)), IntegerEntry(g, (bi + bI)), IntegerEntry(k, (cE + cP)), ScriptTransfer(bx, cM, cN)] ++ cQ), nil))
616+ else [Reissue(bx, cR, true), ScriptTransfer(bz, cR, bx)]
617+ $Tuple2(nil, $Tuple2(([IntegerEntry(g, (bi + bH)), IntegerEntry(h, (bj + bK)), IntegerEntry(l, (cG + cR)), ScriptTransfer(bz, cO, cP)] ++ cS), nil))
611618 }
612619 else throw("Strict value is not equal to itself.")
613620 }
614621 else throw("Strict value is not equal to itself.")
615622 }
616623 }
617- }))
624+ })))
618625
619626
620627
621-@Callable(aw)
622-func replenishWithOneToken (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
623- let bx = Address(bA)
624- let co = bd(bD[0])
625- let aM = bC[0]
626- let cU = parseIntValue(bB[0])
627- let cA = (bB[1] == "true")
628- let cB = parseIntValue(bB[2])
629- let cV = bs(aw.caller)
630- let bt = cV._1
631- let bu = cV._2
632- let bj = cV._3
633- let bk = cV._4
634- let bv = cV._5
635- let cW = bo(aw.caller, bj, bk)
636- let bh = cW._1
637- let bi = cW._2
638- let bf = cW._3
639- let bg = cW._4
640- let cE = cW._5
641- let cH = ((bh + bi) == 0)
642- if ((size(bB) != 3))
628+@Callable(ax)
629+func replenishWithOneToken (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), {
630+ let bz = Address(bC)
631+ let cq = be(bF[0])
632+ let aN = bE[0]
633+ let cW = parseIntValue(bD[0])
634+ let cC = (bD[1] == "true")
635+ let cD = parseIntValue(bD[2])
636+ let cX = bu(ax.caller)
637+ let bv = cX._1
638+ let bw = cX._2
639+ let bk = cX._3
640+ let bl = cX._4
641+ let bx = cX._5
642+ let cY = bq(ax.caller, bk, bl)
643+ let bi = cY._1
644+ let bj = cY._2
645+ let bg = cY._3
646+ let bh = cY._4
647+ let cG = cY._5
648+ let cJ = ((bi + bj) == 0)
649+ if ((size(bD) != 3))
643650 then throw("Wrong args size")
644- else if (if ((size(bC) != 1))
645- then (size(bC) != 2)
651+ else if (if ((size(bE) != 1))
652+ then (size(bE) != 2)
646653 else false)
647654 then throw("Two or one attached assets expected")
648- else if (if ((co != bj))
649- then (co != bk)
655+ else if (if ((cq != bk))
656+ then (cq != bl)
650657 else false)
651- then throw(((("Incorrect asset attached. Expected: " + bt) + " or ") + bu))
652- else if (cH)
658+ then throw(((("Incorrect asset attached. Expected: " + bv) + " or ") + bw))
659+ else if (cJ)
653660 then throw("For initial exchanger you need to use two tokens")
654- else if (if ((bh > bf))
661+ else if (if ((bi > bg))
655662 then true
656- else (bi > bg))
657- then $Tuple2(nil, ([ScriptTransfer(bx, aM, co)] ++ (if ((size(bC) == 2))
658- then [AttachedPayment(if ((bD[2] == base58''))
663+ else (bj > bh))
664+ then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ (if ((size(bE) == 2))
665+ then [AttachedPayment(if ((bF[2] == base58''))
659666 then unit
660- else bD[2], bC[2])]
661- else (nil ++ be(bf, bg, bh, bi, bt, bu)))))
667+ else bF[2], bE[2])]
668+ else (nil ++ bf(bg, bh, bi, bj, bv, bw)))))
662669 else {
663- let cX = bw(aw.caller, aw.originCaller)
664- let aQ = cX._1
665- let bz = cX._2
666- let cY = if ((co == bj))
670+ let cZ = by(ax.caller, ax.originCaller)
671+ let aR = cZ._1
672+ let bB = cZ._2
673+ let da = if ((cq == bk))
667674 then {
668- let cZ = aV(aM, bh, aQ)
669- let da = aL(cZ, cU, bh, bi, aQ, bz)
670- let aS = da._1
671- let aT = da._2
672- let aU = da._3
673- let db = (bh + cZ)
674- let dc = ((bi + aS) - aU)
675- let cu = (bh + aM)
676- let cv = (bi - aU)
677- let cJ = fraction(toBigInt((aM - cZ)), an, toBigInt(db))
678- let cK = fraction(toBigInt(aT), an, toBigInt(dc))
679- let cP = toInt(fraction(min([cJ, cK]), toBigInt(cE), an))
680- $Tuple7(cu, cv, cP, aU, bk, bu, bt)
675+ let db = aW(aN, bi, aR)
676+ let dc = aM(db, cW, bi, bj, aR, bB)
677+ let aT = dc._1
678+ let aU = dc._2
679+ let aV = dc._3
680+ let dd = (bi + db)
681+ let de = ((bj + aT) - aV)
682+ let cw = (bi + aN)
683+ let cx = (bj - aV)
684+ let cL = fraction(toBigInt((aN - db)), ao, toBigInt(dd))
685+ let cM = fraction(toBigInt(aU), ao, toBigInt(de))
686+ let cR = toInt(fraction(min([cL, cM]), toBigInt(cG), ao))
687+ $Tuple7(cw, cx, cR, aV, bl, bw, bv)
681688 }
682689 else {
683- let cZ = aV(aM, bi, aQ)
684- let dd = aL(cZ, cU, bi, bh, aQ, bz)
685- let aS = dd._1
686- let aT = dd._2
687- let aU = dd._3
688- let db = ((bh + aS) - aU)
689- let dc = (bi + cZ)
690- let cu = (bh - aU)
691- let cv = (bi + aM)
692- let cJ = fraction(toBigInt(aT), an, toBigInt(db))
693- let cK = fraction(toBigInt((aM - cZ)), an, toBigInt(dc))
694- let cP = toInt(fraction(min([cJ, cK]), toBigInt(cE), an))
695- $Tuple7(cu, cv, cP, aU, bj, bt, bu)
690+ let db = aW(aN, bj, aR)
691+ let df = aM(db, cW, bj, bi, aR, bB)
692+ let aT = df._1
693+ let aU = df._2
694+ let aV = df._3
695+ let dd = ((bi + aT) - aV)
696+ let de = (bj + db)
697+ let cw = (bi - aV)
698+ let cx = (bj + aN)
699+ let cL = fraction(toBigInt(aU), ao, toBigInt(dd))
700+ let cM = fraction(toBigInt((aN - db)), ao, toBigInt(de))
701+ let cR = toInt(fraction(min([cL, cM]), toBigInt(cG), ao))
702+ $Tuple7(cw, cx, cR, aV, bk, bv, bw)
696703 }
697- let cu = cY._1
698- let cv = cY._2
699- let cP = cY._3
700- let de = cY._4
701- let df = cY._5
702- let dg = cY._6
703- let dh = cY._7
704- if ((cP == 0))
704+ let cw = da._1
705+ let cx = da._2
706+ let cR = da._3
707+ let dg = da._4
708+ let dh = da._5
709+ let di = da._6
710+ let dj = da._7
711+ if ((cR == 0))
705712 then throw("Too small amount to replenish")
706713 else {
707- let cc = if (contains(ad, dh))
708- then invoke(aw.caller, "stakeUnstake", [true, aM, dh], nil)
714+ let ce = if (contains(ae, dj))
715+ then invoke(ax.caller, "stakeUnstake", [true, aN, dj], nil)
709716 else 0
710- if ((cc == cc))
717+ if ((ce == ce))
711718 then {
712- let cd = if (contains(ad, dg))
713- then invoke(aw.caller, "stakeUnstake", [false, de, dg], nil)
719+ let cf = if (contains(ae, di))
720+ then invoke(ax.caller, "stakeUnstake", [false, dg, di], nil)
714721 else 0
715- if ((cd == cd))
722+ if ((cf == cf))
716723 then {
717- let cQ = if (cA)
724+ let cS = if (cC)
718725 then {
719- let cR = ([AttachedPayment(bv, cP)] ++ (if ((size(bC) == 2))
720- then [AttachedPayment(if ((bD[1] == base58''))
726+ let cT = ([AttachedPayment(bx, cR)] ++ (if ((size(bE) == 2))
727+ then [AttachedPayment(if ((bF[1] == base58''))
721728 then unit
722- else bD[1], bC[1])]
729+ else bF[1], bE[1])]
723730 else nil))
724- let cS = invoke(aw.caller, "reissueShareToken", [cP], nil)
725- if ((cS == cS))
731+ let cU = invoke(ax.caller, "reissueShareToken", [cR], nil)
732+ if ((cU == cU))
726733 then {
727- let cT = invoke(aa, "lockShareTokensFromPool", [bA, toString(aw.caller), cB], cR)
728- if ((cT == cT))
734+ let cV = invoke(ab, "lockShareTokensFromPool", [bC, toString(ax.caller), cD], cT)
735+ if ((cV == cV))
729736 then nil
730737 else throw("Strict value is not equal to itself.")
731738 }
732739 else throw("Strict value is not equal to itself.")
733740 }
734- else [Reissue(bv, cP, true), ScriptTransfer(bx, cP, bv)]
735- $Tuple2(nil, $Tuple2(([IntegerEntry(f, cu), IntegerEntry(g, cv), IntegerEntry(k, (cE + cP)), ScriptTransfer(X, de, df)] ++ cQ), nil))
741+ else [Reissue(bx, cR, true), ScriptTransfer(bz, cR, bx)]
742+ $Tuple2(nil, $Tuple2(([IntegerEntry(g, cw), IntegerEntry(h, cx), IntegerEntry(l, (cG + cR)), ScriptTransfer(Y, dg, dh)] ++ cS), nil))
736743 }
737744 else throw("Strict value is not equal to itself.")
738745 }
739746 else throw("Strict value is not equal to itself.")
740747 }
741748 }
742- }))
749+ })))
743750
744751
745752
746-@Callable(aw)
747-func withdraw (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
748- let di = lastBlock.timestamp
749- let bx = Address(bA)
750- let dj = bs(aw.caller)
751- let bt = dj._1
752- let bu = dj._2
753- let bj = dj._3
754- let bk = dj._4
755- let bv = dj._5
756- let dk = bo(aw.caller, bj, bk)
757- let bh = dk._1
758- let bi = dk._2
759- let bf = dk._3
760- let bg = dk._4
761- let cE = dk._5
762- let dl = if ((size(bC) == 1))
753+@Callable(ax)
754+func withdraw (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), {
755+ let dk = lastBlock.timestamp
756+ let bz = Address(bC)
757+ let dl = bu(ax.caller)
758+ let bv = dl._1
759+ let bw = dl._2
760+ let bk = dl._3
761+ let bl = dl._4
762+ let bx = dl._5
763+ let dm = bq(ax.caller, bk, bl)
764+ let bi = dm._1
765+ let bj = dm._2
766+ let bg = dm._3
767+ let bh = dm._4
768+ let cG = dm._5
769+ let dn = if ((size(bE) == 1))
763770 then {
764- let dm = bd(bD[0])
765- if ((dm != bv))
766- then throw(("Incorrect asset attached. Expected: " + toBase58String(bv)))
767- else $Tuple2(bC[0], dm)
771+ let do = be(bF[0])
772+ if ((do != bx))
773+ then throw(("Incorrect asset attached. Expected: " + toBase58String(bx)))
774+ else $Tuple2(bE[0], do)
768775 }
769- else $Tuple2(0, bv)
770- let aM = dl._1
771- let co = dl._2
772- if ((size(bB) != 1))
776+ else $Tuple2(0, bx)
777+ let aN = dn._1
778+ let cq = dn._2
779+ if ((size(bD) != 1))
773780 then throw("Wrong args size")
774- else if ((size(bC) > 1))
781+ else if ((size(bE) > 1))
775782 then throw("One attached payment expected")
776- else if (if ((bh > bf))
783+ else if (if ((bi > bg))
777784 then true
778- else (bi > bg))
779- then $Tuple2(nil, ([ScriptTransfer(bx, aM, co)] ++ be(bf, bg, bh, bi, bt, bu)))
785+ else (bj > bh))
786+ then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw)))
780787 else {
781- let dn = parseIntValue(valueOrElse(bB[0], "0"))
782- let do = if ((dn > 0))
783- then invoke(aa, "withdrawShareTokensFromPool", [bA, toString(aw.caller), dn], nil)
788+ let dp = parseIntValue(valueOrElse(bD[0], "0"))
789+ let dq = if ((dp > 0))
790+ then invoke(ab, "withdrawShareTokensFromPool", [bC, toString(ax.caller), dp], nil)
784791 else 0
785- if ((do == do))
792+ if ((dq == dq))
786793 then {
787- let dp = (aM + dn)
788- let dq = fraction(dp, bh, cE)
789- let dr = fraction(dp, bi, cE)
790- let cc = if (contains(ad, bt))
791- then invoke(aw.caller, "stakeUnstake", [false, dq, bt], nil)
794+ let dr = (aN + dp)
795+ let ds = fraction(dr, bi, cG)
796+ let dt = fraction(dr, bj, cG)
797+ let ce = if (contains(ae, bv))
798+ then invoke(ax.caller, "stakeUnstake", [false, ds, bv], nil)
792799 else 0
793- if ((cc == cc))
800+ if ((ce == ce))
794801 then {
795- let cd = if (contains(ad, bu))
796- then invoke(aw.caller, "stakeUnstake", [false, dr, bu], nil)
802+ let cf = if (contains(ae, bw))
803+ then invoke(ax.caller, "stakeUnstake", [false, dt, bw], nil)
797804 else 0
798- if ((cd == cd))
799- then $Tuple2([ScriptTransfer(aw.caller, dn, bv)], $Tuple2([IntegerEntry(f, (bh - dq)), IntegerEntry(g, (bi - dr)), IntegerEntry(k, (cE - dp)), Burn(bv, dp), ScriptTransfer(bx, dq, bj), ScriptTransfer(bx, dr, bk)], nil))
805+ if ((cf == cf))
806+ then $Tuple2([ScriptTransfer(ax.caller, dp, bx)], $Tuple2([IntegerEntry(g, (bi - ds)), IntegerEntry(h, (bj - dt)), IntegerEntry(l, (cG - dr)), Burn(bx, dr), ScriptTransfer(bz, ds, bk), ScriptTransfer(bz, dt, bl)], nil))
800807 else throw("Strict value is not equal to itself.")
801808 }
802809 else throw("Strict value is not equal to itself.")
807814
808815
809816
810-@Callable(aw)
811-func withdrawOneToken (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
812- let bx = Address(bA)
813- let ds = if ((bB[0] == ""))
817+@Callable(ax)
818+func withdrawOneToken (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), {
819+ let bz = Address(bC)
820+ let du = if ((bD[0] == ""))
814821 then unit
815- else fromBase58String(bB[0])
816- let dt = bs(aw.caller)
817- let bt = dt._1
818- let bu = dt._2
819- let bj = dt._3
820- let bk = dt._4
821- let bv = dt._5
822- let du = bo(aw.caller, bj, bk)
823- let bh = du._1
824- let bi = du._2
825- let bf = du._3
826- let bg = du._4
827- let cE = du._5
828- let dv = if ((size(bC) == 1))
822+ else fromBase58String(bD[0])
823+ let dv = bu(ax.caller)
824+ let bv = dv._1
825+ let bw = dv._2
826+ let bk = dv._3
827+ let bl = dv._4
828+ let bx = dv._5
829+ let dw = bq(ax.caller, bk, bl)
830+ let bi = dw._1
831+ let bj = dw._2
832+ let bg = dw._3
833+ let bh = dw._4
834+ let cG = dw._5
835+ let dx = if ((size(bE) == 1))
829836 then {
830- let dm = bd(bD[0])
831- if ((dm != bv))
832- then throw(("Incorrect asset attached. Expected: " + toBase58String(bv)))
833- else $Tuple2(bC[0], dm)
837+ let do = be(bF[0])
838+ if ((do != bx))
839+ then throw(("Incorrect asset attached. Expected: " + toBase58String(bx)))
840+ else $Tuple2(bE[0], do)
834841 }
835- else $Tuple2(0, bv)
836- let aM = dv._1
837- let co = dv._2
838- let dw = parseIntValue(bB[1])
839- if ((size(bB) != 3))
842+ else $Tuple2(0, bx)
843+ let aN = dx._1
844+ let cq = dx._2
845+ let dy = parseIntValue(bD[1])
846+ if ((size(bD) != 3))
840847 then throw("Wrong args size")
841- else if ((size(bC) > 1))
848+ else if ((size(bE) > 1))
842849 then throw("One attached payment expected")
843- else if ((co != bv))
844- then throw(("Incorrect asset attached. Expected: " + toBase58String(bv)))
845- else if (!(containsElement([bj, bk], ds)))
850+ else if ((cq != bx))
851+ then throw(("Incorrect asset attached. Expected: " + toBase58String(bx)))
852+ else if (!(containsElement([bk, bl], du)))
846853 then throw("Incorrect withdraw asset.")
847- else if (if ((bh > bf))
854+ else if (if ((bi > bg))
848855 then true
849- else (bi > bg))
850- then $Tuple2(nil, ([ScriptTransfer(bx, aM, co)] ++ be(bf, bg, bh, bi, bt, bu)))
856+ else (bj > bh))
857+ then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw)))
851858 else {
852- let dn = parseIntValue(valueOrElse(bB[2], "0"))
853- let do = if ((dn > 0))
854- then invoke(aa, "withdrawShareTokensFromPool", [bA, toString(aw.caller), dn], nil)
859+ let dp = parseIntValue(valueOrElse(bD[2], "0"))
860+ let dq = if ((dp > 0))
861+ then invoke(ab, "withdrawShareTokensFromPool", [bC, toString(ax.caller), dp], nil)
855862 else 0
856- if ((do == do))
863+ if ((dq == dq))
857864 then {
858- let dp = (aM + dn)
859- let dq = fraction(dp, bh, cE)
860- let dr = fraction(dp, bi, cE)
861- let dx = bw(aw.caller, aw.originCaller)
862- let aQ = dx._1
863- let bz = dx._2
864- let dy = if ((ds == bj))
865- then aL(dr, dw, (bi - dr), (bh - dq), aQ, bz)
866- else aL(dq, dw, (bh - dq), (bi - dr), aQ, bz)
867- let aS = dy._1
868- let aT = dy._2
869- let aU = dy._3
870- let dz = if ((ds == bj))
865+ let dr = (aN + dp)
866+ let ds = fraction(dr, bi, cG)
867+ let dt = fraction(dr, bj, cG)
868+ let dz = by(ax.caller, ax.originCaller)
869+ let aR = dz._1
870+ let bB = dz._2
871+ let dA = if ((du == bk))
872+ then aM(dt, dy, (bj - dt), (bi - ds), aR, bB)
873+ else aM(ds, dy, (bi - ds), (bj - dt), aR, bB)
874+ let aT = dA._1
875+ let aU = dA._2
876+ let aV = dA._3
877+ let dB = if ((du == bk))
871878 then {
872- let dA = if (contains(ad, bt))
873- then invoke(aw.caller, "stakeUnstake", [false, ((dq + aT) + aU), bt], nil)
879+ let dC = if (contains(ae, bv))
880+ then invoke(ax.caller, "stakeUnstake", [false, ((ds + aU) + aV), bv], nil)
874881 else 0
875- if ((dA == dA))
876- then $Tuple4((((bh - dq) - aT) - aU), bi, bj, [ScriptTransfer(bx, (dq + aT), bj)])
882+ if ((dC == dC))
883+ then $Tuple4((((bi - ds) - aU) - aV), bj, bk, [ScriptTransfer(bz, (ds + aU), bk)])
877884 else throw("Strict value is not equal to itself.")
878885 }
879886 else {
880- let dA = if (contains(ad, bu))
881- then invoke(aw.caller, "stakeUnstake", [false, ((dr + aT) + aU), bu], nil)
887+ let dC = if (contains(ae, bw))
888+ then invoke(ax.caller, "stakeUnstake", [false, ((dt + aU) + aV), bw], nil)
882889 else 0
883- if ((dA == dA))
884- then $Tuple4(bh, (((bi - dr) - aT) - aU), bk, [ScriptTransfer(bx, (dr + aT), bk)])
890+ if ((dC == dC))
891+ then $Tuple4(bi, (((bj - dt) - aU) - aV), bl, [ScriptTransfer(bz, (dt + aU), bl)])
885892 else throw("Strict value is not equal to itself.")
886893 }
887- let cu = dz._1
888- let cv = dz._2
889- let dB = dz._3
890- let dC = dz._4
891- $Tuple2([ScriptTransfer(aw.caller, dn, bv)], $Tuple2(([IntegerEntry(f, cu), IntegerEntry(g, cv), IntegerEntry(k, (cE - dp)), Burn(bv, dp), ScriptTransfer(X, aU, dB)] ++ dC), nil))
894+ let cw = dB._1
895+ let cx = dB._2
896+ let dD = dB._3
897+ let dE = dB._4
898+ $Tuple2([ScriptTransfer(ax.caller, dp, bx)], $Tuple2(([IntegerEntry(g, cw), IntegerEntry(h, cx), IntegerEntry(l, (cG - dr)), Burn(bx, dr), ScriptTransfer(Y, aV, dD)] ++ dE), nil))
892899 }
893900 else throw("Strict value is not equal to itself.")
894901 }
902+ })))
903+
904+
905+
906+@Callable(ax)
907+func takeIntoAccountExtraFunds (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), {
908+ let dF = bu(ax.caller)
909+ let bv = dF._1
910+ let bw = dF._2
911+ let bk = dF._3
912+ let bl = dF._4
913+ let dG = if (if ((bk == ac))
914+ then true
915+ else (bl == ac))
916+ then invoke(ax.caller, "claimNetrinoRewards", nil, nil)
917+ else 0
918+ if ((dG == dG))
919+ then {
920+ let dH = bq(ax.caller, bk, bl)
921+ let bi = dH._1
922+ let bj = dH._2
923+ let bg = dH._3
924+ let bh = dH._4
925+ let dI = (bg - bi)
926+ let dJ = (bh - bj)
927+ if ((size(bD) != 0))
928+ then throw("Wrong args size")
929+ else if ((Y != ax.originCaller))
930+ then throw("Only the wallet can call this function")
931+ else if (if ((0 > dI))
932+ then true
933+ else (0 > dJ))
934+ then aE("Enroll amount negative")
935+ else if (if ((dI == 0))
936+ then (dJ == 0)
937+ else false)
938+ then throw("No money to take")
939+ else {
940+ let ce = if (if (contains(ae, bv))
941+ then (dI > 0)
942+ else false)
943+ then invoke(ax.caller, "stakeUnstake", [true, dI, bv], nil)
944+ else 0
945+ if ((ce == ce))
946+ then {
947+ let cf = if (if (contains(ae, bw))
948+ then (dJ > 0)
949+ else false)
950+ then invoke(ax.caller, "stakeUnstake", [true, dJ, bw], nil)
951+ else 0
952+ if ((cf == cf))
953+ then $Tuple2(nil, $Tuple2([IntegerEntry(g, (bi + dI)), IntegerEntry(h, (bj + dJ))], nil))
954+ else throw("Strict value is not equal to itself.")
955+ }
956+ else throw("Strict value is not equal to itself.")
957+ }
958+ }
959+ else throw("Strict value is not equal to itself.")
895960 }))
896961
897962
898-
899-@Callable(aw)
900-func takeIntoAccountExtraFunds (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
901- let dD = bs(aw.caller)
902- let bt = dD._1
903- let bu = dD._2
904- let bj = dD._3
905- let bk = dD._4
906- let dE = bo(aw.caller, bj, bk)
907- let bh = dE._1
908- let bi = dE._2
909- let bf = dE._3
910- let bg = dE._4
911- let dF = (bf - bh)
912- let dG = (bg - bi)
913- if ((size(bB) != 0))
914- then throw("Wrong args size")
915- else if ((X != aw.originCaller))
916- then throw("Only the wallet can call this function")
917- else if (if ((0 > dF))
918- then true
919- else (0 > dG))
920- then aD("Enroll amount negative")
921- else if (if ((dF == 0))
922- then (dG == 0)
923- else false)
924- then throw("No money to take")
925- else {
926- let cc = if (if (contains(ad, bt))
927- then (dF > 0)
928- else false)
929- then invoke(aw.caller, "stakeUnstake", [true, dF, bt], nil)
930- else 0
931- if ((cc == cc))
932- then {
933- let cd = if (if (contains(ad, bu))
934- then (dG > 0)
935- else false)
936- then invoke(aw.caller, "stakeUnstake", [true, dG, bu], nil)
937- else 0
938- if ((cd == cd))
939- then $Tuple2(nil, $Tuple2([IntegerEntry(f, (bh + dF)), IntegerEntry(g, (bi + dG))], nil))
940- else throw("Strict value is not equal to itself.")
941- }
942- else throw("Strict value is not equal to itself.")
943- }
944- }))
945-
946-
947-@Verifier(dH)
948-func dI () = {
949- let dJ = {
950- let dK = if (sigVerify(dH.bodyBytes, dH.proofs[0], T))
963+@Verifier(dK)
964+func dL () = {
965+ let dM = {
966+ let dN = if (sigVerify(dK.bodyBytes, dK.proofs[0], U))
951967 then 1
952968 else 0
953- let dL = if (sigVerify(dH.bodyBytes, dH.proofs[1], U))
969+ let dO = if (sigVerify(dK.bodyBytes, dK.proofs[1], V))
954970 then 1
955971 else 0
956- let dM = if (sigVerify(dH.bodyBytes, dH.proofs[2], V))
972+ let dP = if (sigVerify(dK.bodyBytes, dK.proofs[2], W))
957973 then 1
958974 else 0
959- (((dK + dL) + dM) >= 2)
975+ (((dN + dO) + dP) >= 2)
960976 }
961- dJ
977+ dM
962978 }
963979
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "1.0.0"
55
66 let b = "version"
77
88 let c = "active"
99
10-let d = "A_asset_id"
10+let d = "deprecated_"
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 = "A_asset_init"
18+let h = "B_asset_balance"
1919
20-let i = "B_asset_init"
20+let i = "A_asset_init"
2121
22-let j = "share_asset_id"
22+let j = "B_asset_init"
2323
24-let k = "share_asset_supply"
24+let k = "share_asset_id"
2525
26-let l = "commission"
26+let l = "share_asset_supply"
2727
28-let m = "shutdown_cause"
28+let m = "commission"
2929
30-let n = "first_harvest"
30+let n = "shutdown_cause"
3131
32-let o = "first_harvest_height"
32+let o = "first_harvest"
3333
34-let p = "share_limit_on_first_harvest"
34+let p = "first_harvest_height"
3535
36-let q = "base_period"
36+let q = "share_limit_on_first_harvest"
3737
38-let r = "period_length"
38+let r = "base_period"
3939
40-let s = "start_height"
40+let s = "period_length"
4141
42-let t = "staking_usdnnsbt_address"
42+let t = "start_height"
4343
44-let u = "staking_eurn_address"
44+let u = "staking_usdnnsbt_address"
4545
46-let v = "leasing_amount"
46+let v = "staking_eurn_address"
4747
48-let w = "usdn_asset_id"
48+let w = "leasing_amount"
4949
50-let x = "eurn_asset_id"
50+let x = "usdn_asset_id"
5151
52-let y = "staking_assets"
52+let y = "eurn_asset_id"
5353
54-let z = "active_all_contracts"
54+let z = "staking_assets"
5555
56-let A = "discounts"
56+let A = "active_all_contracts"
5757
58-let B = "discount_values"
58+let B = "discounts"
5959
60-let C = "_GSwop_amount"
60+let C = "discount_values"
6161
62-let D = "_SWOP_amount"
62+let D = "_GSwop_amount"
6363
64-let E = "pool_"
64+let E = "_SWOP_amount"
6565
66-let F = "admin_pub_1"
66+let F = "pool_"
6767
68-let G = "admin_pub_2"
68+let G = "admin_pub_1"
6969
70-let H = "admin_pub_3"
70+let H = "admin_pub_2"
7171
72-let I = "admin_invoke_pub"
72+let I = "admin_pub_3"
7373
74-let J = "money_box_address"
74+let J = "admin_invoke_pub"
7575
76-let K = "voting_address"
76+let K = "money_box_address"
7777
78-let L = "governance_address"
78+let L = "voting_address"
7979
80-let M = "farming_address"
80+let M = "governance_address"
8181
82-let N = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
82+let N = "farming_address"
8383
84-func O (P) = {
85- let Q = getString(N, P)
86- if ($isInstanceOf(Q, "String"))
84+let O = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
85+
86+func P (Q) = {
87+ let R = getString(O, Q)
88+ if ($isInstanceOf(R, "String"))
8789 then {
88- let R = Q
89- fromBase58String(R)
90+ let S = R
91+ fromBase58String(S)
9092 }
9193 else {
92- let S = Q
93- throw((P + "is empty"))
94+ let T = R
95+ throw((Q + "is empty"))
9496 }
9597 }
9698
9799
98-let T = O(F)
100+let U = P(G)
99101
100-let U = O(G)
102+let V = P(H)
101103
102-let V = O(H)
104+let W = P(I)
103105
104-let W = O(I)
106+let X = P(J)
105107
106-let X = Address(O(J))
108+let Y = Address(P(K))
107109
108-let Y = Address(O(K))
110+let Z = Address(P(L))
109111
110-let Z = Address(O(L))
112+let aa = Address(P(M))
111113
112-let aa = Address(O(M))
114+let ab = Address(P(N))
113115
114-let ab = O(w)
116+let ac = P(x)
115117
116-let ac = O(x)
118+let ad = P(y)
117119
118-let ad = getStringValue(N, y)
120+let ae = getStringValue(O, z)
119121
120-let ae = Address(O(t))
122+let af = Address(P(u))
121123
122-let af = Address(O(u))
124+let ag = Address(P(v))
123125
124-let ag = valueOrErrorMessage(getInteger(Y, q), "Empty kBasePeriod")
126+let ah = valueOrErrorMessage(getInteger(Z, r), "Empty kBasePeriod")
125127
126-let ah = valueOrErrorMessage(getInteger(Y, s), "Empty kStartHeight")
128+let ai = valueOrErrorMessage(getInteger(Z, t), "Empty kStartHeight")
127129
128-let ai = valueOrErrorMessage(getInteger(Y, r), "Empty kPeriodLength")
130+let aj = valueOrErrorMessage(getInteger(Z, s), "Empty kPeriodLength")
129131
130-let aj = ((ag + ((height - ah) / ai)) + 3)
132+let ak = ((ah + ((height - ai) / aj)) + 3)
131133
132-let ak = getBooleanValue(N, z)
134+let al = getBooleanValue(O, A)
133135
134-let al = 1000000
136+let am = 1000000
135137
136-let am = 100000000
138+let an = 100000000
137139
138-let an = toBigInt(10000000000000000)
140+let ao = toBigInt(10000000000000000)
139141
140-func ao (ap,aq) = {
141- let Q = ap
142- if ($isInstanceOf(Q, "ByteVector"))
142+func ap (aq,ar) = {
143+ let R = aq
144+ if ($isInstanceOf(R, "ByteVector"))
143145 then {
144- let ar = Q
145- assetBalance(aq, ar)
146+ let as = R
147+ assetBalance(ar, as)
146148 }
147- else if ($isInstanceOf(Q, "Unit"))
149+ else if ($isInstanceOf(R, "Unit"))
148150 then {
149- let as = Q
150- wavesBalance(aq).available
151+ let at = R
152+ wavesBalance(ar).available
151153 }
152154 else throw("Match error")
153155 }
154156
155157
156-func at (ap,aq) = {
157- let au = {
158- let Q = ap
159- if ($isInstanceOf(Q, "ByteVector"))
158+func au (aq,ar) = {
159+ let av = {
160+ let R = aq
161+ if ($isInstanceOf(R, "ByteVector"))
160162 then {
161- let av = Q
162- if ((av == ab))
163- then getInteger(ae, ((("rpd_balance_" + toBase58String(av)) + "_") + toString(aq)))
164- else if ((av == ac))
165- then getInteger(af, ((("%s%s%s__stakingBalance__" + toBase58String(av)) + "__") + toString(aq)))
163+ let aw = R
164+ if ((aw == ac))
165+ then getInteger(af, ((("rpd_balance_" + toBase58String(aw)) + "_") + toString(ar)))
166+ else if ((aw == ad))
167+ then getInteger(ag, ((("%s%s%s__stakingBalance__" + toBase58String(aw)) + "__") + toString(ar)))
166168 else 0
167169 }
168- else if ($isInstanceOf(Q, "Unit"))
169- then valueOrElse(getInteger(aq, v), 0)
170+ else if ($isInstanceOf(R, "Unit"))
171+ then valueOrElse(getInteger(ar, w), 0)
170172 else throw("Match error")
171173 }
172- let Q = au
173- if ($isInstanceOf(Q, "Int"))
174+ let R = av
175+ if ($isInstanceOf(R, "Int"))
174176 then {
175- let aw = Q
176- aw
177+ let ax = R
178+ ax
177179 }
178180 else 0
179181 }
180182
181183
182-func ax (ap) = {
183- let Q = ap
184- if (if ($isInstanceOf(Q, "String"))
184+func ay (aq) = {
185+ let R = aq
186+ if (if ($isInstanceOf(R, "String"))
185187 then true
186- else $isInstanceOf(Q, "ByteVector"))
188+ else $isInstanceOf(R, "ByteVector"))
187189 then {
188- let ar = Q
189- let ay = {
190- let az = ar
191- if ($isInstanceOf(az, "ByteVector"))
190+ let as = R
191+ let az = {
192+ let aA = as
193+ if ($isInstanceOf(aA, "ByteVector"))
192194 then {
193- let av = az
194- $Tuple2(toBase58String(av), av)
195+ let aw = aA
196+ $Tuple2(toBase58String(aw), aw)
195197 }
196- else if ($isInstanceOf(az, "String"))
198+ else if ($isInstanceOf(aA, "String"))
197199 then {
198- let av = az
199- $Tuple2(av, fromBase58String(av))
200+ let aw = aA
201+ $Tuple2(aw, fromBase58String(aw))
200202 }
201203 else throw("Match error")
202204 }
203- let aA = ay._1
204- let aB = ay._2
205- let aC = valueOrErrorMessage(assetInfo(aB), (("Asset " + aA) + " doesn't exist"))
206- $Tuple3(aA, aC.name, aC.decimals)
205+ let aB = az._1
206+ let aC = az._2
207+ let aD = valueOrErrorMessage(assetInfo(aC), (("Asset " + aB) + " doesn't exist"))
208+ $Tuple3(aB, aD.name, aD.decimals)
207209 }
208- else if ($isInstanceOf(Q, "Unit"))
210+ else if ($isInstanceOf(R, "Unit"))
209211 then {
210- let as = Q
212+ let at = R
211213 $Tuple3("WAVES", "WAVES", 8)
212214 }
213215 else throw("Match error")
214216 }
215217
216218
217-func aD (aE) = [BooleanEntry(c, false), StringEntry(m, aE)]
219+func aE (aF) = [BooleanEntry(c, false), StringEntry(n, aF)]
218220
219221
220-func aF (aG) = {
221- let aH = valueOrElse(getInteger(Z, (toString(aG) + D)), 0)
222- let aI = valueOrElse(getInteger(Z, (toString(aG) + C)), aH)
223- let aJ = split(getStringValue(N, B), ",")
224- let aK = split(getStringValue(N, A), ",")
225- if (if ((aI >= parseIntValue(aJ[0])))
226- then (parseIntValue(aJ[1]) > aI)
222+func aG (aH) = {
223+ let aI = valueOrElse(getInteger(aa, (toString(aH) + E)), 0)
224+ let aJ = valueOrElse(getInteger(aa, (toString(aH) + D)), aI)
225+ let aK = split(getStringValue(O, C), ",")
226+ let aL = split(getStringValue(O, B), ",")
227+ if (if ((aJ >= parseIntValue(aK[0])))
228+ then (parseIntValue(aK[1]) > aJ)
227229 else false)
228- then (al - parseIntValue(aK[0]))
229- else if (if ((aI >= parseIntValue(aJ[1])))
230- then (parseIntValue(aJ[2]) > aI)
230+ then (am - parseIntValue(aL[0]))
231+ else if (if ((aJ >= parseIntValue(aK[1])))
232+ then (parseIntValue(aK[2]) > aJ)
231233 else false)
232- then (al - parseIntValue(aK[1]))
233- else if (if ((aI >= parseIntValue(aJ[2])))
234- then (parseIntValue(aJ[3]) > aI)
234+ then (am - parseIntValue(aL[1]))
235+ else if (if ((aJ >= parseIntValue(aK[2])))
236+ then (parseIntValue(aK[3]) > aJ)
235237 else false)
236- then (al - parseIntValue(aK[2]))
237- else if (if ((aI >= parseIntValue(aJ[3])))
238- then (parseIntValue(aJ[4]) > aI)
238+ then (am - parseIntValue(aL[2]))
239+ else if (if ((aJ >= parseIntValue(aK[3])))
240+ then (parseIntValue(aK[4]) > aJ)
239241 else false)
240- then (al - parseIntValue(aK[3]))
241- else if ((aI >= parseIntValue(aJ[4])))
242- then (al - parseIntValue(aK[4]))
243- else al
242+ then (am - parseIntValue(aL[3]))
243+ else if ((aJ >= parseIntValue(aK[4])))
244+ then (am - parseIntValue(aL[4]))
245+ else am
244246 }
245247
246248
247-func aL (aM,aN,aO,aP,aQ,aR) = {
248- let aS = fraction(aP, aM, (aM + aO))
249- let aT = fraction(aS, (al - aQ), al)
250- let aU = fraction(aS, aR, al)
251- if ((aN > aT))
252- then throw(((("Calculated amount to receive " + toString(aT)) + " is less than specified minimum ") + toString(aN)))
253- else $Tuple3(aS, aT, aU)
249+func aM (aN,aO,aP,aQ,aR,aS) = {
250+ let aT = fraction(aQ, aN, (aN + aP))
251+ let aU = fraction(aT, (am - aR), am)
252+ let aV = fraction(aT, aS, am)
253+ if ((aO > aU))
254+ then throw(((("Calculated amount to receive " + toString(aU)) + " is less than specified minimum ") + toString(aO)))
255+ else $Tuple3(aT, aU, aV)
254256 }
255257
256258
257-func aV (aM,aW,aQ) = {
258- let aX = (al - aQ)
259- let aY = fraction(aQ, 60, 100)
260- let aZ = (am + fraction((aX * aY), am, (al * al)))
261- let ba = ((((aW + fraction(aW, aX, al)) + fraction(aM, aX, al)) - aM) - fraction(aM, (aX * aY), (al * al)))
262- let bb = (-(toBigInt(aW)) * toBigInt(aM))
263- let bc = ((toBigInt(ba) * toBigInt(ba)) - fraction((toBigInt(4) * bb), toBigInt(aZ), toBigInt(am)))
264- toInt(fraction((-(toBigInt(ba)) + sqrtBigInt(bc, 0, 0, DOWN)), toBigInt(am), toBigInt((2 * aZ))))
259+func aW (aN,aX,aR) = {
260+ let aY = (am - aR)
261+ let aZ = fraction(aR, 60, 100)
262+ let ba = (an + fraction((aY * aZ), an, (am * am)))
263+ let bb = ((((aX + fraction(aX, aY, am)) + fraction(aN, aY, am)) - aN) - fraction(aN, (aY * aZ), (am * am)))
264+ let bc = (-(toBigInt(aX)) * toBigInt(aN))
265+ let bd = ((toBigInt(bb) * toBigInt(bb)) - fraction((toBigInt(4) * bc), toBigInt(ba), toBigInt(an)))
266+ toInt(fraction((-(toBigInt(bb)) + sqrtBigInt(bd, 0, 0, DOWN)), toBigInt(an), toBigInt((2 * ba))))
265267 }
266268
267269
268-func bd (ap) = if ((ap == base58''))
270+func be (aq) = if ((aq == base58''))
269271 then unit
270- else ap
272+ else aq
271273
272274
273-func be (bf,bg,bh,bi,bj,bk) = aD(((((((((((((((("Suspicious state. Actual balances: " + toString(bf)) + " ") + bj) + ", ") + toString(bg)) + " ") + bk) + ". State: ") + toString(bh)) + " ") + bj) + ", ") + toString(bi)) + " ") + bk))
275+func bf (bg,bh,bi,bj,bk,bl) = aE(((((((((((((((("Suspicious state. Actual balances: " + toString(bg)) + " ") + bk) + ", ") + toString(bh)) + " ") + bl) + ". State: ") + toString(bi)) + " ") + bk) + ", ") + toString(bj)) + " ") + bl))
274276
275277
276-func bl () = if (ak)
278+func bm () = if (al)
277279 then unit
278280 else throw("DApp is inactive at this moment")
279281
280282
281-func bm (bn) = if (isDefined(getString(N, (E + bn))))
283+func bn (bo) = if (isDefined(getString(O, (F + bo))))
282284 then unit
283285 else throw("DApp is not registered pool")
284286
285287
286-func bo (aq,bj,bk) = {
287- let bh = getIntegerValue(aq, f)
288- let bi = getIntegerValue(aq, g)
289- let bp = at(bj, aq)
290- let bq = at(bk, aq)
291- let bf = (ao(bj, aq) + bp)
292- let bg = (ao(bk, aq) + bq)
293- let br = getIntegerValue(aq, k)
294- $Tuple5(bh, bi, bf, bg, br)
288+func bp (bo) = if (!(valueOrElse(getBoolean(O, (d + bo)), false)))
289+ then unit
290+ else throw("Pool is deprecated. Only withdraw action allowed.")
291+
292+
293+func bq (ar,bk,bl) = {
294+ let bi = getIntegerValue(ar, g)
295+ let bj = getIntegerValue(ar, h)
296+ let br = au(bk, ar)
297+ let bs = au(bl, ar)
298+ let bg = (ap(bk, ar) + br)
299+ let bh = (ap(bl, ar) + bs)
300+ let bt = getIntegerValue(ar, l)
301+ $Tuple5(bi, bj, bg, bh, bt)
295302 }
296303
297304
298-func bs (aq) = {
299- let bt = getStringValue(aq, d)
300- let bu = getStringValue(aq, e)
301- let bj = if ((bt == "WAVES"))
305+func bu (ar) = {
306+ let bv = getStringValue(ar, e)
307+ let bw = getStringValue(ar, f)
308+ let bk = if ((bv == "WAVES"))
302309 then unit
303- else fromBase58String(bt)
304- let bk = if ((bu == "WAVES"))
310+ else fromBase58String(bv)
311+ let bl = if ((bw == "WAVES"))
305312 then unit
306- else fromBase58String(bu)
307- let bv = fromBase58String(getStringValue(aq, j))
308- $Tuple5(bt, bu, bj, bk, bv)
313+ else fromBase58String(bw)
314+ let bx = fromBase58String(getStringValue(ar, k))
315+ $Tuple5(bv, bw, bk, bl, bx)
309316 }
310317
311318
312-func bw (aq,bx) = {
313- let by = aF(bx)
314- let aQ = fraction(getIntegerValue(aq, l), by, al, CEILING)
315- let bz = fraction(aQ, 40, 100)
316- $Tuple2(aQ, bz)
319+func by (ar,bz) = {
320+ let bA = aG(bz)
321+ let aR = fraction(getIntegerValue(ar, m), bA, am, CEILING)
322+ let bB = fraction(aR, 40, 100)
323+ $Tuple2(aR, bB)
317324 }
318325
319326
320-@Callable(aw)
321-func init (bA,bB,bC,bD) = {
322- let bx = Address(bA)
323- let bE = $Tuple2(bC[0], bd(bD[0]))
324- let bF = bE._1
325- let bG = bE._2
326- let bH = $Tuple2(bC[1], bd(bD[1]))
327- let bI = bH._1
328- let bJ = bH._2
329- if (!(containsElement([T, U, V, W], aw.originCallerPublicKey)))
327+@Callable(ax)
328+func init (bC,bD,bE,bF) = {
329+ let bz = Address(bC)
330+ let bG = $Tuple2(bE[0], be(bF[0]))
331+ let bH = bG._1
332+ let bI = bG._2
333+ let bJ = $Tuple2(bE[1], be(bF[1]))
334+ let bK = bJ._1
335+ let bL = bJ._2
336+ if (!(containsElement([U, V, W, X], ax.originCallerPublicKey)))
330337 then throw("Only admin can call this function")
331- else if ((size(bB) != 1))
338+ else if ((size(bD) != 1))
332339 then throw("Wrong args size")
333- else if (isDefined(getBoolean(bx, c)))
340+ else if (isDefined(getBoolean(bz, c)))
334341 then throw("DApp is already active")
335- else if ((bG == bJ))
342+ else if ((bI == bL))
336343 then throw("Assets must be different")
337344 else {
338- let bK = ax(bG)
339- let bL = bK._1
340- let bM = bK._2
341- let bN = bK._3
342- let bO = ax(bJ)
343- let bP = bO._1
344- let bQ = bO._2
345- let bR = bO._3
346- let bS = (bB[0] == "true")
347- let bT = ((("s" + take(bM, 7)) + "_") + take(bQ, 7))
348- let bU = ((((("ShareToken of SwopFi protocol for " + bM) + " and ") + bQ) + " at address ") + toString(this))
349- let bV = ((bN + bR) / 2)
350- let bW = pow(bF, bN, 5, 1, bN, DOWN)
351- let bX = pow(bI, bR, 5, 1, bR, DOWN)
352- let bY = pow(10, 0, bV, 0, 0, DOWN)
353- let bZ = fraction(bW, bX, bY)
354- let ca = Issue(bT, bU, bZ, bV, true)
355- let cb = calculateAssetId(ca)
356- let cc = if (contains(ad, bL))
357- then invoke(aw.caller, "stakeUnstake", [true, bF, bL], nil)
345+ let bM = ay(bI)
346+ let bN = bM._1
347+ let bO = bM._2
348+ let bP = bM._3
349+ let bQ = ay(bL)
350+ let bR = bQ._1
351+ let bS = bQ._2
352+ let bT = bQ._3
353+ let bU = (bD[0] == "true")
354+ let bV = ((("s" + take(bO, 7)) + "_") + take(bS, 7))
355+ let bW = ((((("ShareToken of SwopFi protocol for " + bO) + " and ") + bS) + " at address ") + toString(this))
356+ let bX = ((bP + bT) / 2)
357+ let bY = pow(bH, bP, 5, 1, bP, DOWN)
358+ let bZ = pow(bK, bT, 5, 1, bT, DOWN)
359+ let ca = pow(10, 0, bX, 0, 0, DOWN)
360+ let cb = fraction(bY, bZ, ca)
361+ let cc = Issue(bV, bW, cb, bX, true)
362+ let cd = calculateAssetId(cc)
363+ let ce = if (contains(ae, bN))
364+ then invoke(ax.caller, "stakeUnstake", [true, bH, bN], nil)
358365 else 0
359- if ((cc == cc))
366+ if ((ce == ce))
360367 then {
361- let cd = if (contains(ad, bP))
362- then invoke(aw.caller, "stakeUnstake", [true, bI, bP], nil)
368+ let cf = if (contains(ae, bR))
369+ then invoke(ax.caller, "stakeUnstake", [true, bK, bR], nil)
363370 else 0
364- if ((cd == cd))
371+ if ((cf == cf))
365372 then {
366- let ce = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bL), StringEntry(e, bP), IntegerEntry(f, bF), IntegerEntry(g, bI), IntegerEntry(l, getIntegerValue(N, "base_fee_cpmm")), ca, StringEntry(j, toBase58String(cb)), IntegerEntry(k, bZ), ScriptTransfer(bx, bZ, cb)]
367- if (bS)
368- then $Tuple2(nil, $Tuple2((ce ++ [BooleanEntry(n, bS), IntegerEntry(o, (ah + (aj * ai)))]), nil))
369- else $Tuple2(nil, $Tuple2(ce, nil))
373+ let cg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, bN), StringEntry(f, bR), IntegerEntry(g, bH), IntegerEntry(h, bK), IntegerEntry(m, getIntegerValue(O, "base_fee_cpmm")), cc, StringEntry(k, toBase58String(cd)), IntegerEntry(l, cb), ScriptTransfer(bz, cb, cd)]
374+ if (bU)
375+ then $Tuple2(nil, $Tuple2((cg ++ [BooleanEntry(o, bU), IntegerEntry(p, (ai + (ak * aj)))]), nil))
376+ else $Tuple2(nil, $Tuple2(cg, nil))
370377 }
371378 else throw("Strict value is not equal to itself.")
372379 }
373380 else throw("Strict value is not equal to itself.")
374381 }
375382 }
376383
377384
378385
379-@Callable(aw)
380-func initWithInitRatio (bA,bB,bC,bD) = {
381- let bx = Address(bA)
382- let cf = $Tuple5(parseIntValue(bB[0]), parseIntValue(bB[1]), bB[2], bB[3], (bB[4] == "true"))
383- let cg = cf._1
384- let ch = cf._2
385- let ci = cf._3
386- let cj = cf._4
387- let bS = cf._5
388- if (!(containsElement([T, U, V, W], aw.originCallerPublicKey)))
386+@Callable(ax)
387+func initWithInitRatio (bC,bD,bE,bF) = {
388+ let bz = Address(bC)
389+ let ch = $Tuple5(parseIntValue(bD[0]), parseIntValue(bD[1]), bD[2], bD[3], (bD[4] == "true"))
390+ let ci = ch._1
391+ let cj = ch._2
392+ let ck = ch._3
393+ let cl = ch._4
394+ let bU = ch._5
395+ if (!(containsElement([U, V, W, X], ax.originCallerPublicKey)))
389396 then throw("Only admin can call this function")
390- else if ((size(bB) != 5))
397+ else if ((size(bD) != 5))
391398 then throw("Wrong args size")
392- else if (isDefined(getBoolean(bx, c)))
399+ else if (isDefined(getBoolean(bz, c)))
393400 then throw("DApp is already active")
394- else if ((ci == cj))
401+ else if ((ck == cl))
395402 then throw("Assets must be different")
396403 else {
397- let ck = ax(ci)
398- let bL = ck._1
399- let bM = ck._2
400- let bN = ck._3
401- let cl = ax(cj)
402- let bP = cl._1
403- let bQ = cl._2
404- let bR = cl._3
405- let bT = ((("s" + take(bM, 7)) + "_") + take(bQ, 7))
406- let bU = ((((("ShareToken of SwopFi protocol for " + bM) + " and ") + bQ) + " at address ") + toString(this))
407- let bV = ((bN + bR) / 2)
408- let bZ = 0
409- let ca = Issue(bT, bU, bZ, bV, true)
410- let cb = calculateAssetId(ca)
411- let ce = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bL), StringEntry(e, bP), IntegerEntry(h, cg), IntegerEntry(i, ch), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, getIntegerValue(N, "base_fee_cpmm")), ca, StringEntry(j, toBase58String(cb)), IntegerEntry(k, bZ)]
412- if (bS)
413- then $Tuple2(nil, $Tuple2((ce ++ [BooleanEntry(n, bS), IntegerEntry(o, (ah + (aj * ai)))]), nil))
414- else $Tuple2(nil, $Tuple2(ce, nil))
404+ let cm = ay(ck)
405+ let bN = cm._1
406+ let bO = cm._2
407+ let bP = cm._3
408+ let cn = ay(cl)
409+ let bR = cn._1
410+ let bS = cn._2
411+ let bT = cn._3
412+ let bV = ((("s" + take(bO, 7)) + "_") + take(bS, 7))
413+ let bW = ((((("ShareToken of SwopFi protocol for " + bO) + " and ") + bS) + " at address ") + toString(this))
414+ let bX = ((bP + bT) / 2)
415+ let cb = 0
416+ let cc = Issue(bV, bW, cb, bX, true)
417+ let cd = calculateAssetId(cc)
418+ let cg = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, bN), StringEntry(f, bR), IntegerEntry(i, ci), IntegerEntry(j, cj), IntegerEntry(g, 0), IntegerEntry(h, 0), IntegerEntry(m, getIntegerValue(O, "base_fee_cpmm")), cc, StringEntry(k, toBase58String(cd)), IntegerEntry(l, cb)]
419+ if (bU)
420+ then $Tuple2(nil, $Tuple2((cg ++ [BooleanEntry(o, bU), IntegerEntry(p, (ai + (ak * aj)))]), nil))
421+ else $Tuple2(nil, $Tuple2(cg, nil))
415422 }
416423 }
417424
418425
419426
420-@Callable(aw)
421-func keepLimitForFirstHarvest (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), if (!(containsElement([T, U, V, W], aw.originCallerPublicKey)))
427+@Callable(ax)
428+func keepLimitForFirstHarvest (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), if (!(containsElement([U, V, W, X], ax.originCallerPublicKey)))
422429 then throw("Only admin can call this function")
423- else if ((size(bB) != 1))
430+ else if ((size(bD) != 1))
424431 then throw("Wrong args size")
425432 else {
426- let cm = parseIntValue(bB[0])
427- $Tuple2(nil, $Tuple2([IntegerEntry(p, cm)], nil))
433+ let co = parseIntValue(bD[0])
434+ $Tuple2(nil, $Tuple2([IntegerEntry(q, co)], nil))
428435 }))
429436
430437
431438
432-@Callable(aw)
433-func exchange (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
434- let bx = Address(bA)
435- let cn = $Tuple2(bC[0], bd(bD[0]))
436- let aM = cn._1
437- let co = cn._2
438- let aN = parseIntValue(bB[0])
439- let cp = bs(aw.caller)
440- let bt = cp._1
441- let bu = cp._2
442- let bj = cp._3
443- let bk = cp._4
444- let cq = bo(aw.caller, bj, bk)
445- let bh = cq._1
446- let bi = cq._2
447- let bf = cq._3
448- let bg = cq._4
449- if ((size(bB) != 1))
439+@Callable(ax)
440+func exchange (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), {
441+ let bz = Address(bC)
442+ let cp = $Tuple2(bE[0], be(bF[0]))
443+ let aN = cp._1
444+ let cq = cp._2
445+ let aO = parseIntValue(bD[0])
446+ let cr = bu(ax.caller)
447+ let bv = cr._1
448+ let bw = cr._2
449+ let bk = cr._3
450+ let bl = cr._4
451+ let cs = bq(ax.caller, bk, bl)
452+ let bi = cs._1
453+ let bj = cs._2
454+ let bg = cs._3
455+ let bh = cs._4
456+ if ((size(bD) != 1))
450457 then throw("Wrong args size")
451- else if (if ((bh == 0))
458+ else if (if ((bi == 0))
452459 then true
453- else (bi == 0))
460+ else (bj == 0))
454461 then throw("Can't exchange with zero balance")
455- else if ((0 >= aN))
456- then throw(("Minimal amount to receive must be positive. Actual: " + toString(aN)))
457- else if ((size(bC) != 1))
462+ else if ((0 >= aO))
463+ then throw(("Minimal amount to receive must be positive. Actual: " + toString(aO)))
464+ else if ((size(bE) != 1))
458465 then throw("One attached payment expected")
459- else if (!(containsElement([bj, bk], co)))
460- then throw(((("Incorrect asset attached. Expected: " + bt) + " or ") + bu))
461- else if (if ((bh > bf))
466+ else if (!(containsElement([bk, bl], cq)))
467+ then throw(((("Incorrect asset attached. Expected: " + bv) + " or ") + bw))
468+ else if (if ((bi > bg))
462469 then true
463- else (bi > bg))
464- then $Tuple2(nil, ([ScriptTransfer(bx, aM, co)] ++ be(bf, bg, bh, bi, bt, bu)))
470+ else (bj > bh))
471+ then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw)))
465472 else {
466- let cr = bw(aw.caller, aw.originCaller)
467- let aQ = cr._1
468- let bz = cr._2
469- let cs = if ((co == bj))
470- then aL(aM, aN, bh, bi, aQ, bz)
471- else aL(aM, aN, bi, bh, aQ, bz)
472- let aS = cs._1
473- let aT = cs._2
474- let aU = cs._3
475- let ct = if ((co == bj))
476- then $Tuple3((bh + aM), ((bi - aT) - aU), bk)
477- else $Tuple3(((bh - aT) - aU), (bi + aM), bj)
478- let cu = ct._1
479- let cv = ct._2
480- let cw = ct._3
481- let cx = if ((co == bj))
482- then $Tuple2(aM, (aT + aU))
483- else $Tuple2((aT + aU), aM)
484- let cy = cx._1
485- let cz = cx._2
486- let cc = if (contains(ad, bt))
487- then invoke(aw.caller, "stakeUnstake", [(co == bj), cy, bt], nil)
473+ let ct = by(ax.caller, ax.originCaller)
474+ let aR = ct._1
475+ let bB = ct._2
476+ let cu = if ((cq == bk))
477+ then aM(aN, aO, bi, bj, aR, bB)
478+ else aM(aN, aO, bj, bi, aR, bB)
479+ let aT = cu._1
480+ let aU = cu._2
481+ let aV = cu._3
482+ let cv = if ((cq == bk))
483+ then $Tuple3((bi + aN), ((bj - aU) - aV), bl)
484+ else $Tuple3(((bi - aU) - aV), (bj + aN), bk)
485+ let cw = cv._1
486+ let cx = cv._2
487+ let cy = cv._3
488+ let cz = if ((cq == bk))
489+ then $Tuple2(aN, (aU + aV))
490+ else $Tuple2((aU + aV), aN)
491+ let cA = cz._1
492+ let cB = cz._2
493+ let ce = if (contains(ae, bv))
494+ then invoke(ax.caller, "stakeUnstake", [(cq == bk), cA, bv], nil)
488495 else 0
489- if ((cc == cc))
496+ if ((ce == ce))
490497 then {
491- let cd = if (contains(ad, bu))
492- then invoke(aw.caller, "stakeUnstake", [(co == bk), cz, bu], nil)
498+ let cf = if (contains(ae, bw))
499+ then invoke(ax.caller, "stakeUnstake", [(cq == bl), cB, bw], nil)
493500 else 0
494- if ((cd == cd))
495- then $Tuple2(nil, $Tuple2([IntegerEntry(f, cu), IntegerEntry(g, cv), ScriptTransfer(bx, aT, cw), ScriptTransfer(X, aU, cw)], [aT, cw]))
501+ if ((cf == cf))
502+ then $Tuple2(nil, $Tuple2([IntegerEntry(g, cw), IntegerEntry(h, cx), ScriptTransfer(bz, aU, cy), ScriptTransfer(Y, aV, cy)], [aU, cy]))
496503 else throw("Strict value is not equal to itself.")
497504 }
498505 else throw("Strict value is not equal to itself.")
499506 }
500- }))
507+ })))
501508
502509
503510
504-@Callable(aw)
505-func replenishWithTwoTokens (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
506- let bx = Address(bA)
507- let bG = bd(bD[0])
508- let bJ = bd(bD[1])
509- let cA = (bB[0] == "true")
510- let cB = parseIntValue(bB[1])
511- let cC = bs(aw.caller)
512- let bt = cC._1
513- let bu = cC._2
514- let bj = cC._3
515- let bk = cC._4
516- let bv = cC._5
517- let cD = bo(aw.caller, bj, bk)
518- let bh = cD._1
519- let bi = cD._2
520- let bf = cD._3
521- let bg = cD._4
522- let cE = cD._5
523- if ((size(bB) != 2))
511+@Callable(ax)
512+func replenishWithTwoTokens (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), {
513+ let bz = Address(bC)
514+ let bI = be(bF[0])
515+ let bL = be(bF[1])
516+ let cC = (bD[0] == "true")
517+ let cD = parseIntValue(bD[1])
518+ let cE = bu(ax.caller)
519+ let bv = cE._1
520+ let bw = cE._2
521+ let bk = cE._3
522+ let bl = cE._4
523+ let bx = cE._5
524+ let cF = bq(ax.caller, bk, bl)
525+ let bi = cF._1
526+ let bj = cF._2
527+ let bg = cF._3
528+ let bh = cF._4
529+ let cG = cF._5
530+ if ((size(bD) != 2))
524531 then throw("Wrong args size")
525- else if (if ((size(bC) != 2))
526- then (size(bC) != 3)
532+ else if (if ((size(bE) != 2))
533+ then (size(bE) != 3)
527534 else false)
528535 then throw("Two or three payments expected")
529- else if (if ((bG != bj))
536+ else if (if ((bI != bk))
530537 then true
531- else (bJ != bk))
532- then throw(((("Incorrect assets attached. Expected: " + bt) + " and ") + bu))
533- else if (if ((bh > bf))
538+ else (bL != bl))
539+ then throw(((("Incorrect assets attached. Expected: " + bv) + " and ") + bw))
540+ else if (if ((bi > bg))
534541 then true
535- else (bi > bg))
536- then $Tuple2(nil, ([ScriptTransfer(bx, bC[0], bG), ScriptTransfer(bx, bC[1], bJ)] ++ (if ((size(bC) == 3))
537- then [AttachedPayment(if ((bD[2] == base58''))
542+ else (bj > bh))
543+ then $Tuple2(nil, ([ScriptTransfer(bz, bE[0], bI), ScriptTransfer(bz, bE[1], bL)] ++ (if ((size(bE) == 3))
544+ then [AttachedPayment(if ((bF[2] == base58''))
538545 then unit
539- else bD[2], bC[2])]
540- else (nil ++ be(bf, bg, bh, bi, bt, bu)))))
546+ else bF[2], bE[2])]
547+ else (nil ++ bf(bg, bh, bi, bj, bv, bw)))))
541548 else {
542- let cF = ax(bG)
543- let bL = cF._1
544- let bM = cF._2
545- let bN = cF._3
546- let cG = ax(bJ)
547- let bP = cG._1
548- let bQ = cG._2
549- let bR = cG._3
550- let cH = ((bh + bi) == 0)
551- let cI = if (cH)
552- then $Tuple5(bC[0], bC[1], 0, bG, toBigInt(1))
549+ let cH = ay(bI)
550+ let bN = cH._1
551+ let bO = cH._2
552+ let bP = cH._3
553+ let cI = ay(bL)
554+ let bR = cI._1
555+ let bS = cI._2
556+ let bT = cI._3
557+ let cJ = ((bi + bj) == 0)
558+ let cK = if (cJ)
559+ then $Tuple5(bE[0], bE[1], 0, bI, toBigInt(1))
553560 else {
554- let cJ = fraction(an, toBigInt(bC[0]), toBigInt(bh))
555- let cK = fraction(an, toBigInt(bC[1]), toBigInt(bi))
556- if ((cK > cJ))
561+ let cL = fraction(ao, toBigInt(bE[0]), toBigInt(bi))
562+ let cM = fraction(ao, toBigInt(bE[1]), toBigInt(bj))
563+ if ((cM > cL))
557564 then {
558- let cL = fraction(bC[0], bi, bh)
559- $Tuple5(bC[0], cL, (bC[1] - cL), bJ, cJ)
565+ let cN = fraction(bE[0], bj, bi)
566+ $Tuple5(bE[0], cN, (bE[1] - cN), bL, cL)
560567 }
561568 else {
562- let cL = fraction(bC[1], bh, bi)
563- $Tuple5(cL, bC[1], (bC[0] - cL), bG, cK)
569+ let cN = fraction(bE[1], bi, bj)
570+ $Tuple5(cN, bE[1], (bE[0] - cN), bI, cM)
564571 }
565572 }
566- let bF = cI._1
567- let bI = cI._2
568- let cM = cI._3
569- let cN = cI._4
570- let cO = cI._5
571- let cP = if (cH)
573+ let bH = cK._1
574+ let bK = cK._2
575+ let cO = cK._3
576+ let cP = cK._4
577+ let cQ = cK._5
578+ let cR = if (cJ)
572579 then {
573- let bV = ((bN + bR) / 2)
574- fraction(pow(bF, bN, 5, 1, bN, DOWN), pow(bI, bR, 5, 1, bR, DOWN), pow(10, 0, bV, 0, 0, DOWN))
580+ let bX = ((bP + bT) / 2)
581+ fraction(pow(bH, bP, 5, 1, bP, DOWN), pow(bK, bT, 5, 1, bT, DOWN), pow(10, 0, bX, 0, 0, DOWN))
575582 }
576- else toInt(fraction(cO, toBigInt(cE), an))
577- if ((cP == 0))
583+ else toInt(fraction(cQ, toBigInt(cG), ao))
584+ if ((cR == 0))
578585 then throw("Too small amount to replenish")
579- else if ((0 > cM))
586+ else if ((0 > cO))
580587 then throw("Change < 0")
581588 else {
582- let cc = if (contains(ad, bL))
583- then invoke(aw.caller, "stakeUnstake", [true, bF, bL], nil)
589+ let ce = if (contains(ae, bN))
590+ then invoke(ax.caller, "stakeUnstake", [true, bH, bN], nil)
584591 else 0
585- if ((cc == cc))
592+ if ((ce == ce))
586593 then {
587- let cd = if (contains(ad, bP))
588- then invoke(aw.caller, "stakeUnstake", [true, bI, bP], nil)
594+ let cf = if (contains(ae, bR))
595+ then invoke(ax.caller, "stakeUnstake", [true, bK, bR], nil)
589596 else 0
590- if ((cd == cd))
597+ if ((cf == cf))
591598 then {
592- let cQ = if (cA)
599+ let cS = if (cC)
593600 then {
594- let cR = ([AttachedPayment(bv, cP)] ++ (if ((size(bC) == 3))
595- then [AttachedPayment(if ((bD[2] == base58''))
601+ let cT = ([AttachedPayment(bx, cR)] ++ (if ((size(bE) == 3))
602+ then [AttachedPayment(if ((bF[2] == base58''))
596603 then unit
597- else bD[2], bC[2])]
604+ else bF[2], bE[2])]
598605 else nil))
599- let cS = invoke(aw.caller, "reissueShareToken", [cP], nil)
600- if ((cS == cS))
606+ let cU = invoke(ax.caller, "reissueShareToken", [cR], nil)
607+ if ((cU == cU))
601608 then {
602- let cT = invoke(aa, "lockShareTokensFromPool", [bA, toString(aw.caller), cB], cR)
603- if ((cT == cT))
609+ let cV = invoke(ab, "lockShareTokensFromPool", [bC, toString(ax.caller), cD], cT)
610+ if ((cV == cV))
604611 then nil
605612 else throw("Strict value is not equal to itself.")
606613 }
607614 else throw("Strict value is not equal to itself.")
608615 }
609- else [Reissue(bv, cP, true), ScriptTransfer(bx, cP, bv)]
610- $Tuple2(nil, $Tuple2(([IntegerEntry(f, (bh + bF)), IntegerEntry(g, (bi + bI)), IntegerEntry(k, (cE + cP)), ScriptTransfer(bx, cM, cN)] ++ cQ), nil))
616+ else [Reissue(bx, cR, true), ScriptTransfer(bz, cR, bx)]
617+ $Tuple2(nil, $Tuple2(([IntegerEntry(g, (bi + bH)), IntegerEntry(h, (bj + bK)), IntegerEntry(l, (cG + cR)), ScriptTransfer(bz, cO, cP)] ++ cS), nil))
611618 }
612619 else throw("Strict value is not equal to itself.")
613620 }
614621 else throw("Strict value is not equal to itself.")
615622 }
616623 }
617- }))
624+ })))
618625
619626
620627
621-@Callable(aw)
622-func replenishWithOneToken (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
623- let bx = Address(bA)
624- let co = bd(bD[0])
625- let aM = bC[0]
626- let cU = parseIntValue(bB[0])
627- let cA = (bB[1] == "true")
628- let cB = parseIntValue(bB[2])
629- let cV = bs(aw.caller)
630- let bt = cV._1
631- let bu = cV._2
632- let bj = cV._3
633- let bk = cV._4
634- let bv = cV._5
635- let cW = bo(aw.caller, bj, bk)
636- let bh = cW._1
637- let bi = cW._2
638- let bf = cW._3
639- let bg = cW._4
640- let cE = cW._5
641- let cH = ((bh + bi) == 0)
642- if ((size(bB) != 3))
628+@Callable(ax)
629+func replenishWithOneToken (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), {
630+ let bz = Address(bC)
631+ let cq = be(bF[0])
632+ let aN = bE[0]
633+ let cW = parseIntValue(bD[0])
634+ let cC = (bD[1] == "true")
635+ let cD = parseIntValue(bD[2])
636+ let cX = bu(ax.caller)
637+ let bv = cX._1
638+ let bw = cX._2
639+ let bk = cX._3
640+ let bl = cX._4
641+ let bx = cX._5
642+ let cY = bq(ax.caller, bk, bl)
643+ let bi = cY._1
644+ let bj = cY._2
645+ let bg = cY._3
646+ let bh = cY._4
647+ let cG = cY._5
648+ let cJ = ((bi + bj) == 0)
649+ if ((size(bD) != 3))
643650 then throw("Wrong args size")
644- else if (if ((size(bC) != 1))
645- then (size(bC) != 2)
651+ else if (if ((size(bE) != 1))
652+ then (size(bE) != 2)
646653 else false)
647654 then throw("Two or one attached assets expected")
648- else if (if ((co != bj))
649- then (co != bk)
655+ else if (if ((cq != bk))
656+ then (cq != bl)
650657 else false)
651- then throw(((("Incorrect asset attached. Expected: " + bt) + " or ") + bu))
652- else if (cH)
658+ then throw(((("Incorrect asset attached. Expected: " + bv) + " or ") + bw))
659+ else if (cJ)
653660 then throw("For initial exchanger you need to use two tokens")
654- else if (if ((bh > bf))
661+ else if (if ((bi > bg))
655662 then true
656- else (bi > bg))
657- then $Tuple2(nil, ([ScriptTransfer(bx, aM, co)] ++ (if ((size(bC) == 2))
658- then [AttachedPayment(if ((bD[2] == base58''))
663+ else (bj > bh))
664+ then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ (if ((size(bE) == 2))
665+ then [AttachedPayment(if ((bF[2] == base58''))
659666 then unit
660- else bD[2], bC[2])]
661- else (nil ++ be(bf, bg, bh, bi, bt, bu)))))
667+ else bF[2], bE[2])]
668+ else (nil ++ bf(bg, bh, bi, bj, bv, bw)))))
662669 else {
663- let cX = bw(aw.caller, aw.originCaller)
664- let aQ = cX._1
665- let bz = cX._2
666- let cY = if ((co == bj))
670+ let cZ = by(ax.caller, ax.originCaller)
671+ let aR = cZ._1
672+ let bB = cZ._2
673+ let da = if ((cq == bk))
667674 then {
668- let cZ = aV(aM, bh, aQ)
669- let da = aL(cZ, cU, bh, bi, aQ, bz)
670- let aS = da._1
671- let aT = da._2
672- let aU = da._3
673- let db = (bh + cZ)
674- let dc = ((bi + aS) - aU)
675- let cu = (bh + aM)
676- let cv = (bi - aU)
677- let cJ = fraction(toBigInt((aM - cZ)), an, toBigInt(db))
678- let cK = fraction(toBigInt(aT), an, toBigInt(dc))
679- let cP = toInt(fraction(min([cJ, cK]), toBigInt(cE), an))
680- $Tuple7(cu, cv, cP, aU, bk, bu, bt)
675+ let db = aW(aN, bi, aR)
676+ let dc = aM(db, cW, bi, bj, aR, bB)
677+ let aT = dc._1
678+ let aU = dc._2
679+ let aV = dc._3
680+ let dd = (bi + db)
681+ let de = ((bj + aT) - aV)
682+ let cw = (bi + aN)
683+ let cx = (bj - aV)
684+ let cL = fraction(toBigInt((aN - db)), ao, toBigInt(dd))
685+ let cM = fraction(toBigInt(aU), ao, toBigInt(de))
686+ let cR = toInt(fraction(min([cL, cM]), toBigInt(cG), ao))
687+ $Tuple7(cw, cx, cR, aV, bl, bw, bv)
681688 }
682689 else {
683- let cZ = aV(aM, bi, aQ)
684- let dd = aL(cZ, cU, bi, bh, aQ, bz)
685- let aS = dd._1
686- let aT = dd._2
687- let aU = dd._3
688- let db = ((bh + aS) - aU)
689- let dc = (bi + cZ)
690- let cu = (bh - aU)
691- let cv = (bi + aM)
692- let cJ = fraction(toBigInt(aT), an, toBigInt(db))
693- let cK = fraction(toBigInt((aM - cZ)), an, toBigInt(dc))
694- let cP = toInt(fraction(min([cJ, cK]), toBigInt(cE), an))
695- $Tuple7(cu, cv, cP, aU, bj, bt, bu)
690+ let db = aW(aN, bj, aR)
691+ let df = aM(db, cW, bj, bi, aR, bB)
692+ let aT = df._1
693+ let aU = df._2
694+ let aV = df._3
695+ let dd = ((bi + aT) - aV)
696+ let de = (bj + db)
697+ let cw = (bi - aV)
698+ let cx = (bj + aN)
699+ let cL = fraction(toBigInt(aU), ao, toBigInt(dd))
700+ let cM = fraction(toBigInt((aN - db)), ao, toBigInt(de))
701+ let cR = toInt(fraction(min([cL, cM]), toBigInt(cG), ao))
702+ $Tuple7(cw, cx, cR, aV, bk, bv, bw)
696703 }
697- let cu = cY._1
698- let cv = cY._2
699- let cP = cY._3
700- let de = cY._4
701- let df = cY._5
702- let dg = cY._6
703- let dh = cY._7
704- if ((cP == 0))
704+ let cw = da._1
705+ let cx = da._2
706+ let cR = da._3
707+ let dg = da._4
708+ let dh = da._5
709+ let di = da._6
710+ let dj = da._7
711+ if ((cR == 0))
705712 then throw("Too small amount to replenish")
706713 else {
707- let cc = if (contains(ad, dh))
708- then invoke(aw.caller, "stakeUnstake", [true, aM, dh], nil)
714+ let ce = if (contains(ae, dj))
715+ then invoke(ax.caller, "stakeUnstake", [true, aN, dj], nil)
709716 else 0
710- if ((cc == cc))
717+ if ((ce == ce))
711718 then {
712- let cd = if (contains(ad, dg))
713- then invoke(aw.caller, "stakeUnstake", [false, de, dg], nil)
719+ let cf = if (contains(ae, di))
720+ then invoke(ax.caller, "stakeUnstake", [false, dg, di], nil)
714721 else 0
715- if ((cd == cd))
722+ if ((cf == cf))
716723 then {
717- let cQ = if (cA)
724+ let cS = if (cC)
718725 then {
719- let cR = ([AttachedPayment(bv, cP)] ++ (if ((size(bC) == 2))
720- then [AttachedPayment(if ((bD[1] == base58''))
726+ let cT = ([AttachedPayment(bx, cR)] ++ (if ((size(bE) == 2))
727+ then [AttachedPayment(if ((bF[1] == base58''))
721728 then unit
722- else bD[1], bC[1])]
729+ else bF[1], bE[1])]
723730 else nil))
724- let cS = invoke(aw.caller, "reissueShareToken", [cP], nil)
725- if ((cS == cS))
731+ let cU = invoke(ax.caller, "reissueShareToken", [cR], nil)
732+ if ((cU == cU))
726733 then {
727- let cT = invoke(aa, "lockShareTokensFromPool", [bA, toString(aw.caller), cB], cR)
728- if ((cT == cT))
734+ let cV = invoke(ab, "lockShareTokensFromPool", [bC, toString(ax.caller), cD], cT)
735+ if ((cV == cV))
729736 then nil
730737 else throw("Strict value is not equal to itself.")
731738 }
732739 else throw("Strict value is not equal to itself.")
733740 }
734- else [Reissue(bv, cP, true), ScriptTransfer(bx, cP, bv)]
735- $Tuple2(nil, $Tuple2(([IntegerEntry(f, cu), IntegerEntry(g, cv), IntegerEntry(k, (cE + cP)), ScriptTransfer(X, de, df)] ++ cQ), nil))
741+ else [Reissue(bx, cR, true), ScriptTransfer(bz, cR, bx)]
742+ $Tuple2(nil, $Tuple2(([IntegerEntry(g, cw), IntegerEntry(h, cx), IntegerEntry(l, (cG + cR)), ScriptTransfer(Y, dg, dh)] ++ cS), nil))
736743 }
737744 else throw("Strict value is not equal to itself.")
738745 }
739746 else throw("Strict value is not equal to itself.")
740747 }
741748 }
742- }))
749+ })))
743750
744751
745752
746-@Callable(aw)
747-func withdraw (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
748- let di = lastBlock.timestamp
749- let bx = Address(bA)
750- let dj = bs(aw.caller)
751- let bt = dj._1
752- let bu = dj._2
753- let bj = dj._3
754- let bk = dj._4
755- let bv = dj._5
756- let dk = bo(aw.caller, bj, bk)
757- let bh = dk._1
758- let bi = dk._2
759- let bf = dk._3
760- let bg = dk._4
761- let cE = dk._5
762- let dl = if ((size(bC) == 1))
753+@Callable(ax)
754+func withdraw (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), {
755+ let dk = lastBlock.timestamp
756+ let bz = Address(bC)
757+ let dl = bu(ax.caller)
758+ let bv = dl._1
759+ let bw = dl._2
760+ let bk = dl._3
761+ let bl = dl._4
762+ let bx = dl._5
763+ let dm = bq(ax.caller, bk, bl)
764+ let bi = dm._1
765+ let bj = dm._2
766+ let bg = dm._3
767+ let bh = dm._4
768+ let cG = dm._5
769+ let dn = if ((size(bE) == 1))
763770 then {
764- let dm = bd(bD[0])
765- if ((dm != bv))
766- then throw(("Incorrect asset attached. Expected: " + toBase58String(bv)))
767- else $Tuple2(bC[0], dm)
771+ let do = be(bF[0])
772+ if ((do != bx))
773+ then throw(("Incorrect asset attached. Expected: " + toBase58String(bx)))
774+ else $Tuple2(bE[0], do)
768775 }
769- else $Tuple2(0, bv)
770- let aM = dl._1
771- let co = dl._2
772- if ((size(bB) != 1))
776+ else $Tuple2(0, bx)
777+ let aN = dn._1
778+ let cq = dn._2
779+ if ((size(bD) != 1))
773780 then throw("Wrong args size")
774- else if ((size(bC) > 1))
781+ else if ((size(bE) > 1))
775782 then throw("One attached payment expected")
776- else if (if ((bh > bf))
783+ else if (if ((bi > bg))
777784 then true
778- else (bi > bg))
779- then $Tuple2(nil, ([ScriptTransfer(bx, aM, co)] ++ be(bf, bg, bh, bi, bt, bu)))
785+ else (bj > bh))
786+ then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw)))
780787 else {
781- let dn = parseIntValue(valueOrElse(bB[0], "0"))
782- let do = if ((dn > 0))
783- then invoke(aa, "withdrawShareTokensFromPool", [bA, toString(aw.caller), dn], nil)
788+ let dp = parseIntValue(valueOrElse(bD[0], "0"))
789+ let dq = if ((dp > 0))
790+ then invoke(ab, "withdrawShareTokensFromPool", [bC, toString(ax.caller), dp], nil)
784791 else 0
785- if ((do == do))
792+ if ((dq == dq))
786793 then {
787- let dp = (aM + dn)
788- let dq = fraction(dp, bh, cE)
789- let dr = fraction(dp, bi, cE)
790- let cc = if (contains(ad, bt))
791- then invoke(aw.caller, "stakeUnstake", [false, dq, bt], nil)
794+ let dr = (aN + dp)
795+ let ds = fraction(dr, bi, cG)
796+ let dt = fraction(dr, bj, cG)
797+ let ce = if (contains(ae, bv))
798+ then invoke(ax.caller, "stakeUnstake", [false, ds, bv], nil)
792799 else 0
793- if ((cc == cc))
800+ if ((ce == ce))
794801 then {
795- let cd = if (contains(ad, bu))
796- then invoke(aw.caller, "stakeUnstake", [false, dr, bu], nil)
802+ let cf = if (contains(ae, bw))
803+ then invoke(ax.caller, "stakeUnstake", [false, dt, bw], nil)
797804 else 0
798- if ((cd == cd))
799- then $Tuple2([ScriptTransfer(aw.caller, dn, bv)], $Tuple2([IntegerEntry(f, (bh - dq)), IntegerEntry(g, (bi - dr)), IntegerEntry(k, (cE - dp)), Burn(bv, dp), ScriptTransfer(bx, dq, bj), ScriptTransfer(bx, dr, bk)], nil))
805+ if ((cf == cf))
806+ then $Tuple2([ScriptTransfer(ax.caller, dp, bx)], $Tuple2([IntegerEntry(g, (bi - ds)), IntegerEntry(h, (bj - dt)), IntegerEntry(l, (cG - dr)), Burn(bx, dr), ScriptTransfer(bz, ds, bk), ScriptTransfer(bz, dt, bl)], nil))
800807 else throw("Strict value is not equal to itself.")
801808 }
802809 else throw("Strict value is not equal to itself.")
803810 }
804811 else throw("Strict value is not equal to itself.")
805812 }
806813 }))
807814
808815
809816
810-@Callable(aw)
811-func withdrawOneToken (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
812- let bx = Address(bA)
813- let ds = if ((bB[0] == ""))
817+@Callable(ax)
818+func withdrawOneToken (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bp(toString(ax.caller)), valueOrElse(bm(), {
819+ let bz = Address(bC)
820+ let du = if ((bD[0] == ""))
814821 then unit
815- else fromBase58String(bB[0])
816- let dt = bs(aw.caller)
817- let bt = dt._1
818- let bu = dt._2
819- let bj = dt._3
820- let bk = dt._4
821- let bv = dt._5
822- let du = bo(aw.caller, bj, bk)
823- let bh = du._1
824- let bi = du._2
825- let bf = du._3
826- let bg = du._4
827- let cE = du._5
828- let dv = if ((size(bC) == 1))
822+ else fromBase58String(bD[0])
823+ let dv = bu(ax.caller)
824+ let bv = dv._1
825+ let bw = dv._2
826+ let bk = dv._3
827+ let bl = dv._4
828+ let bx = dv._5
829+ let dw = bq(ax.caller, bk, bl)
830+ let bi = dw._1
831+ let bj = dw._2
832+ let bg = dw._3
833+ let bh = dw._4
834+ let cG = dw._5
835+ let dx = if ((size(bE) == 1))
829836 then {
830- let dm = bd(bD[0])
831- if ((dm != bv))
832- then throw(("Incorrect asset attached. Expected: " + toBase58String(bv)))
833- else $Tuple2(bC[0], dm)
837+ let do = be(bF[0])
838+ if ((do != bx))
839+ then throw(("Incorrect asset attached. Expected: " + toBase58String(bx)))
840+ else $Tuple2(bE[0], do)
834841 }
835- else $Tuple2(0, bv)
836- let aM = dv._1
837- let co = dv._2
838- let dw = parseIntValue(bB[1])
839- if ((size(bB) != 3))
842+ else $Tuple2(0, bx)
843+ let aN = dx._1
844+ let cq = dx._2
845+ let dy = parseIntValue(bD[1])
846+ if ((size(bD) != 3))
840847 then throw("Wrong args size")
841- else if ((size(bC) > 1))
848+ else if ((size(bE) > 1))
842849 then throw("One attached payment expected")
843- else if ((co != bv))
844- then throw(("Incorrect asset attached. Expected: " + toBase58String(bv)))
845- else if (!(containsElement([bj, bk], ds)))
850+ else if ((cq != bx))
851+ then throw(("Incorrect asset attached. Expected: " + toBase58String(bx)))
852+ else if (!(containsElement([bk, bl], du)))
846853 then throw("Incorrect withdraw asset.")
847- else if (if ((bh > bf))
854+ else if (if ((bi > bg))
848855 then true
849- else (bi > bg))
850- then $Tuple2(nil, ([ScriptTransfer(bx, aM, co)] ++ be(bf, bg, bh, bi, bt, bu)))
856+ else (bj > bh))
857+ then $Tuple2(nil, ([ScriptTransfer(bz, aN, cq)] ++ bf(bg, bh, bi, bj, bv, bw)))
851858 else {
852- let dn = parseIntValue(valueOrElse(bB[2], "0"))
853- let do = if ((dn > 0))
854- then invoke(aa, "withdrawShareTokensFromPool", [bA, toString(aw.caller), dn], nil)
859+ let dp = parseIntValue(valueOrElse(bD[2], "0"))
860+ let dq = if ((dp > 0))
861+ then invoke(ab, "withdrawShareTokensFromPool", [bC, toString(ax.caller), dp], nil)
855862 else 0
856- if ((do == do))
863+ if ((dq == dq))
857864 then {
858- let dp = (aM + dn)
859- let dq = fraction(dp, bh, cE)
860- let dr = fraction(dp, bi, cE)
861- let dx = bw(aw.caller, aw.originCaller)
862- let aQ = dx._1
863- let bz = dx._2
864- let dy = if ((ds == bj))
865- then aL(dr, dw, (bi - dr), (bh - dq), aQ, bz)
866- else aL(dq, dw, (bh - dq), (bi - dr), aQ, bz)
867- let aS = dy._1
868- let aT = dy._2
869- let aU = dy._3
870- let dz = if ((ds == bj))
865+ let dr = (aN + dp)
866+ let ds = fraction(dr, bi, cG)
867+ let dt = fraction(dr, bj, cG)
868+ let dz = by(ax.caller, ax.originCaller)
869+ let aR = dz._1
870+ let bB = dz._2
871+ let dA = if ((du == bk))
872+ then aM(dt, dy, (bj - dt), (bi - ds), aR, bB)
873+ else aM(ds, dy, (bi - ds), (bj - dt), aR, bB)
874+ let aT = dA._1
875+ let aU = dA._2
876+ let aV = dA._3
877+ let dB = if ((du == bk))
871878 then {
872- let dA = if (contains(ad, bt))
873- then invoke(aw.caller, "stakeUnstake", [false, ((dq + aT) + aU), bt], nil)
879+ let dC = if (contains(ae, bv))
880+ then invoke(ax.caller, "stakeUnstake", [false, ((ds + aU) + aV), bv], nil)
874881 else 0
875- if ((dA == dA))
876- then $Tuple4((((bh - dq) - aT) - aU), bi, bj, [ScriptTransfer(bx, (dq + aT), bj)])
882+ if ((dC == dC))
883+ then $Tuple4((((bi - ds) - aU) - aV), bj, bk, [ScriptTransfer(bz, (ds + aU), bk)])
877884 else throw("Strict value is not equal to itself.")
878885 }
879886 else {
880- let dA = if (contains(ad, bu))
881- then invoke(aw.caller, "stakeUnstake", [false, ((dr + aT) + aU), bu], nil)
887+ let dC = if (contains(ae, bw))
888+ then invoke(ax.caller, "stakeUnstake", [false, ((dt + aU) + aV), bw], nil)
882889 else 0
883- if ((dA == dA))
884- then $Tuple4(bh, (((bi - dr) - aT) - aU), bk, [ScriptTransfer(bx, (dr + aT), bk)])
890+ if ((dC == dC))
891+ then $Tuple4(bi, (((bj - dt) - aU) - aV), bl, [ScriptTransfer(bz, (dt + aU), bl)])
885892 else throw("Strict value is not equal to itself.")
886893 }
887- let cu = dz._1
888- let cv = dz._2
889- let dB = dz._3
890- let dC = dz._4
891- $Tuple2([ScriptTransfer(aw.caller, dn, bv)], $Tuple2(([IntegerEntry(f, cu), IntegerEntry(g, cv), IntegerEntry(k, (cE - dp)), Burn(bv, dp), ScriptTransfer(X, aU, dB)] ++ dC), nil))
894+ let cw = dB._1
895+ let cx = dB._2
896+ let dD = dB._3
897+ let dE = dB._4
898+ $Tuple2([ScriptTransfer(ax.caller, dp, bx)], $Tuple2(([IntegerEntry(g, cw), IntegerEntry(h, cx), IntegerEntry(l, (cG - dr)), Burn(bx, dr), ScriptTransfer(Y, aV, dD)] ++ dE), nil))
892899 }
893900 else throw("Strict value is not equal to itself.")
894901 }
902+ })))
903+
904+
905+
906+@Callable(ax)
907+func takeIntoAccountExtraFunds (bC,bD,bE,bF) = valueOrElse(bn(toString(ax.caller)), valueOrElse(bm(), {
908+ let dF = bu(ax.caller)
909+ let bv = dF._1
910+ let bw = dF._2
911+ let bk = dF._3
912+ let bl = dF._4
913+ let dG = if (if ((bk == ac))
914+ then true
915+ else (bl == ac))
916+ then invoke(ax.caller, "claimNetrinoRewards", nil, nil)
917+ else 0
918+ if ((dG == dG))
919+ then {
920+ let dH = bq(ax.caller, bk, bl)
921+ let bi = dH._1
922+ let bj = dH._2
923+ let bg = dH._3
924+ let bh = dH._4
925+ let dI = (bg - bi)
926+ let dJ = (bh - bj)
927+ if ((size(bD) != 0))
928+ then throw("Wrong args size")
929+ else if ((Y != ax.originCaller))
930+ then throw("Only the wallet can call this function")
931+ else if (if ((0 > dI))
932+ then true
933+ else (0 > dJ))
934+ then aE("Enroll amount negative")
935+ else if (if ((dI == 0))
936+ then (dJ == 0)
937+ else false)
938+ then throw("No money to take")
939+ else {
940+ let ce = if (if (contains(ae, bv))
941+ then (dI > 0)
942+ else false)
943+ then invoke(ax.caller, "stakeUnstake", [true, dI, bv], nil)
944+ else 0
945+ if ((ce == ce))
946+ then {
947+ let cf = if (if (contains(ae, bw))
948+ then (dJ > 0)
949+ else false)
950+ then invoke(ax.caller, "stakeUnstake", [true, dJ, bw], nil)
951+ else 0
952+ if ((cf == cf))
953+ then $Tuple2(nil, $Tuple2([IntegerEntry(g, (bi + dI)), IntegerEntry(h, (bj + dJ))], nil))
954+ else throw("Strict value is not equal to itself.")
955+ }
956+ else throw("Strict value is not equal to itself.")
957+ }
958+ }
959+ else throw("Strict value is not equal to itself.")
895960 }))
896961
897962
898-
899-@Callable(aw)
900-func takeIntoAccountExtraFunds (bA,bB,bC,bD) = valueOrElse(bm(toString(aw.caller)), valueOrElse(bl(), {
901- let dD = bs(aw.caller)
902- let bt = dD._1
903- let bu = dD._2
904- let bj = dD._3
905- let bk = dD._4
906- let dE = bo(aw.caller, bj, bk)
907- let bh = dE._1
908- let bi = dE._2
909- let bf = dE._3
910- let bg = dE._4
911- let dF = (bf - bh)
912- let dG = (bg - bi)
913- if ((size(bB) != 0))
914- then throw("Wrong args size")
915- else if ((X != aw.originCaller))
916- then throw("Only the wallet can call this function")
917- else if (if ((0 > dF))
918- then true
919- else (0 > dG))
920- then aD("Enroll amount negative")
921- else if (if ((dF == 0))
922- then (dG == 0)
923- else false)
924- then throw("No money to take")
925- else {
926- let cc = if (if (contains(ad, bt))
927- then (dF > 0)
928- else false)
929- then invoke(aw.caller, "stakeUnstake", [true, dF, bt], nil)
930- else 0
931- if ((cc == cc))
932- then {
933- let cd = if (if (contains(ad, bu))
934- then (dG > 0)
935- else false)
936- then invoke(aw.caller, "stakeUnstake", [true, dG, bu], nil)
937- else 0
938- if ((cd == cd))
939- then $Tuple2(nil, $Tuple2([IntegerEntry(f, (bh + dF)), IntegerEntry(g, (bi + dG))], nil))
940- else throw("Strict value is not equal to itself.")
941- }
942- else throw("Strict value is not equal to itself.")
943- }
944- }))
945-
946-
947-@Verifier(dH)
948-func dI () = {
949- let dJ = {
950- let dK = if (sigVerify(dH.bodyBytes, dH.proofs[0], T))
963+@Verifier(dK)
964+func dL () = {
965+ let dM = {
966+ let dN = if (sigVerify(dK.bodyBytes, dK.proofs[0], U))
951967 then 1
952968 else 0
953- let dL = if (sigVerify(dH.bodyBytes, dH.proofs[1], U))
969+ let dO = if (sigVerify(dK.bodyBytes, dK.proofs[1], V))
954970 then 1
955971 else 0
956- let dM = if (sigVerify(dH.bodyBytes, dH.proofs[2], V))
972+ let dP = if (sigVerify(dK.bodyBytes, dK.proofs[2], W))
957973 then 1
958974 else 0
959- (((dK + dL) + dM) >= 2)
975+ (((dN + dO) + dP) >= 2)
960976 }
961- dJ
977+ dM
962978 }
963979

github/deemru/w8io/169f3d6 
658.79 ms