tx · 7xoHNgrj1RJf62vf6kYsDGcHc8dwP9iJftRnL4kWpaeb

3N6niAdk9Crd8a9vmPpP3NPSaFhFnifJDHH:  -0.01400000 Waves

2022.04.06 12:48 [1996545] smart account 3N6niAdk9Crd8a9vmPpP3NPSaFhFnifJDHH > SELF 0.00000000 Waves

{ "type": 13, "id": "7xoHNgrj1RJf62vf6kYsDGcHc8dwP9iJftRnL4kWpaeb", "fee": 1400000, "feeAssetId": null, "timestamp": 1649238480408, "version": 2, "chainId": 84, "sender": "3N6niAdk9Crd8a9vmPpP3NPSaFhFnifJDHH", "senderPublicKey": "4Y2j7j36bbSpVNivRG9YnbmgvEju8M3JrFsUhk2vMWdi", "proofs": [ "4KvZ5UJab4UuaXMW8636ghJAkZDNikH1b9uwgMwEjRNCc1JS9xYRoFJVtYScinGfiaMbCvvRkLaNHDw18n2bLzEY", "2S3M4oGqb7S6R4czWHVGwQCKkd9iTu38ieyBQp7bYWmC3u2UMBoufXVaDTZLBxRnYbFQ1qXG1kMgsHSQk7bTRr3A" ], "script": "base64:AAIFAAAAAAAAADAIAhIDCgEEEgcKBQEBCAgEEgMKAQESAwoBARIAEgMKAQESABIAEgASBQoDBAEIEgAAAABUAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAIa1ZlcnNpb24CAAAAB3ZlcnNpb24AAAAAB2tBY3RpdmUCAAAABmFjdGl2ZQAAAAAJa0Fzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAlrQXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAACWtCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAlrQmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAANa0JhbGFuY2VJbml0QQIAAAAMQV9hc3NldF9pbml0AAAAAA1rQmFsYW5jZUluaXRCAgAAAAxCX2Fzc2V0X2luaXQAAAAADWtTaGFyZUFzc2V0SWQCAAAADnNoYXJlX2Fzc2V0X2lkAAAAABFrU2h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MYWRtaW5QdWJLZXkzBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAEWFkbWluSW52b2tlUHViS2V5AwMFAAAAE2NhbGxUYWtlSW50b0FjY291bnQFAAAADXNpZ25lZEJ5QWRtaW4HBgUAAAATbXVsdGlTaWduZWRCeUFkbWlucwUAAAATbXVsdGlTaWduZWRCeUFkbWluc8B0yYM=", "height": 1996545, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CRgXTYVzaYMVixPqvu84xVeu8J2WxdXAGaboEvpRTqQs Next: none Diff:
OldNewDifferences
2525
2626 let l = "commission"
2727
28-let m = "commission_scale_delimiter"
28+let m = "shutdown_cause"
2929
30-let n = "shutdown_cause"
30+let n = "first_harvest"
3131
32-let o = "first_harvest"
32+let o = "first_harvest_height"
3333
34-let p = "first_harvest_height"
34+let p = "share_limit_on_first_harvest"
3535
36-let q = "share_limit_on_first_harvest"
36+let q = "base_period"
3737
38-let r = "base_period"
38+let r = "period_length"
3939
40-let s = "period_length"
40+let s = "start_height"
4141
42-let t = "start_height"
42+let t = "staking_usdnnsbt_address"
4343
44-let u = "first_harvest_height"
44+let u = "staking_eurn_address"
4545
46-let v = "staking_usdnnsbt_address"
46+let v = "leasing_address"
4747
48-let w = "staking_eurn_address"
48+let w = "leasing_amount"
4949
50-let x = "leasing_address"
50+let x = "leasing_id"
5151
52-let y = "leasing_amount"
52+let y = "admin_pub_1"
5353
54-let z = "leasing_id"
54+let z = "admin_pub_2"
5555
56-let A = "admin_pub_1"
56+let A = "admin_pub_3"
5757
58-let B = "admin_pub_2"
58+let B = "admin_invoke_pub"
5959
60-let C = "admin_pub_3"
60+let C = "money_box_address"
6161
6262 let D = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
6363
7070 }
7171 else {
7272 let I = G
73- throw("Admin public key is empty")
73+ throw((F + "is empty"))
7474 }
7575 }
7676
7777
78-let J = E(A)
78+let J = E(y)
7979
80-let K = E(B)
80+let K = E(z)
8181
82-let L = E(C)
82+let L = E(A)
8383
84-let M = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
84+let M = E(B)
8585
86-let N = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
86+let N = Address(E(C))
8787
88-let O = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
88+let O = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
8989
90-let P = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
90+let P = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
9191
92-let Q = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
92+let Q = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
9393
94-let R = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
94+let R = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
9595
96-let S = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
96+let S = ["WAVES", toBase58String(P), toBase58String(R)]
9797
98-let T = ["WAVES", toBase58String(Q), toBase58String(S)]
98+let T = Address(E(t))
9999
100-let U = Address(fromBase58String(valueOrErrorMessage(getString(D, v), "no usdn staking address")))
100+let U = Address(E(u))
101101
102-let V = Address(fromBase58String(valueOrErrorMessage(getString(D, w), "no eurn staking address")))
102+let V = valueOrErrorMessage(getInteger(O, q), "Empty kBasePeriod")
103103
104-let W = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
104+let W = valueOrErrorMessage(getInteger(O, s), "Empty kStartHeight")
105105
106-let X = valueOrErrorMessage(getInteger(P, r), "Empty kBasePeriod")
106+let X = valueOrErrorMessage(getInteger(O, r), "Empty kPeriodLength")
107107
108-let Y = valueOrErrorMessage(getInteger(P, t), "Empty kStartHeight")
108+let Y = ((V + ((height - W) / X)) + 3)
109109
110-let Z = valueOrErrorMessage(getInteger(P, s), "Empty kPeriodLength")
110+let Z = getBooleanValue(this, c)
111111
112-let aa = ((X + ((height - Y) / Z)) + 3)
112+let aa = getStringValue(this, d)
113113
114-let ab = getBooleanValue(this, c)
114+let ab = getStringValue(this, e)
115115
116-let ac = getStringValue(this, d)
116+let ac = if ((aa == "WAVES"))
117+ then unit
118+ else fromBase58String(aa)
117119
118-let ad = getStringValue(this, e)
120+let ad = if ((ab == "WAVES"))
121+ then unit
122+ else fromBase58String(ab)
119123
120-let ae = if ((ac == "WAVES"))
121- then unit
122- else fromBase58String(ac)
123-
124-let af = if ((ad == "WAVES"))
125- then unit
126- else fromBase58String(ad)
127-
128-let ag = {
129- let G = ae
124+let ae = {
125+ let G = ac
130126 if ($isInstanceOf(G, "ByteVector"))
131127 then {
132- let ah = G
133- value(assetInfo(ah)).name
128+ let af = G
129+ value(assetInfo(af)).name
134130 }
135131 else if ($isInstanceOf(G, "Unit"))
136132 then {
137- let ai = G
133+ let ag = G
138134 "WAVES"
139135 }
140136 else throw("Match error")
141137 }
142138
143-let aj = {
144- let G = af
139+let ah = {
140+ let G = ad
145141 if ($isInstanceOf(G, "ByteVector"))
146142 then {
147- let ah = G
148- value(assetInfo(ah)).name
143+ let af = G
144+ value(assetInfo(af)).name
149145 }
150146 else if ($isInstanceOf(G, "Unit"))
151147 then {
152- let ai = G
148+ let ag = G
153149 "WAVES"
154150 }
155151 else throw("Match error")
156152 }
157153
158-let ak = getIntegerValue(this, f)
154+let ai = getIntegerValue(this, f)
159155
160-let al = getIntegerValue(this, g)
156+let aj = getIntegerValue(this, g)
161157
162-let am = fromBase58String(getStringValue(this, j))
158+let ak = fromBase58String(getStringValue(this, j))
163159
164-let an = getIntegerValue(this, k)
160+let al = getIntegerValue(this, k)
165161
166-let ao = 3000
162+let am = getIntegerValue(this, l)
167163
168-let ap = 1200
164+let an = fraction(am, 40, 100)
169165
170-let aq = 1000000
166+let ao = 1000000
167+
168+let ap = 1000
169+
170+let aq = 100000000
171171
172172 let ar = 1000
173173
174-let as = 100000000
174+let as = 8
175175
176-let at = 1000
177-
178-let au = 8
179-
180-func av (aw) = {
181- let G = aw
176+func at (au) = {
177+ let G = au
182178 if ($isInstanceOf(G, "ByteVector"))
183179 then {
184- let ah = G
185- assetBalance(this, ah)
180+ let af = G
181+ assetBalance(this, af)
186182 }
187183 else if ($isInstanceOf(G, "Unit"))
188184 then {
189- let ai = G
185+ let ag = G
190186 wavesBalance(this).available
191187 }
192188 else throw("Match error")
193189 }
194190
195191
196-func ax (aw) = {
197- let ay = {
198- let G = aw
192+func av (au) = {
193+ let aw = {
194+ let G = au
199195 if ($isInstanceOf(G, "ByteVector"))
200196 then {
201- let az = G
202- if ((az == Q))
203- then getInteger(U, ((("rpd_balance_" + toBase58String(az)) + "_") + toString(this)))
204- else if ((az == S))
205- then getInteger(V, ((("%s%s%s__stakingBalance__" + toBase58String(az)) + "__") + toString(this)))
197+ let ax = G
198+ if ((ax == P))
199+ then getInteger(T, ((("rpd_balance_" + toBase58String(ax)) + "_") + toString(this)))
200+ else if ((ax == R))
201+ then getInteger(U, ((("%s%s%s__stakingBalance__" + toBase58String(ax)) + "__") + toString(this)))
206202 else 0
207203 }
208204 else if ($isInstanceOf(G, "Unit"))
209- then valueOrElse(getInteger(this, y), 0)
205+ then valueOrElse(getInteger(this, w), 0)
210206 else throw("Match error")
211207 }
212- let G = ay
208+ let G = aw
213209 if ($isInstanceOf(G, "Int"))
214210 then {
215- let aA = G
216- aA
211+ let ay = G
212+ ay
217213 }
218214 else 0
219215 }
220216
221217
222-let aB = ax(ae)
218+let az = av(ac)
223219
224-let aC = ax(af)
220+let aA = av(ad)
225221
226-let aD = getIntegerValue(this, h)
222+let aB = getIntegerValue(this, h)
227223
228-let aE = getIntegerValue(this, i)
224+let aC = getIntegerValue(this, i)
229225
230-let aF = (ak - aB)
226+let aD = (ai - az)
231227
232-let aG = (al - aC)
228+let aE = (aj - aA)
233229
234-let aH = (av(ae) + aB)
230+let aF = (at(ac) + az)
235231
236-let aI = (av(af) + aC)
232+let aG = (at(ad) + aA)
237233
238-let aJ = if ((aH >= ak))
239- then (aI >= al)
234+let aH = if ((aF >= ai))
235+ then (aG >= aj)
240236 else false
241237
242-func aK (aw) = {
243- let G = aw
238+func aI (au) = {
239+ let G = au
244240 if ($isInstanceOf(G, "ByteVector"))
245241 then {
246- let ah = G
247- let aL = toBase58String(ah)
248- let aM = valueOrErrorMessage(assetInfo(ah), (("Asset " + aL) + " doesn't exist"))
249- $Tuple3(aL, aM.name, aM.decimals)
242+ let af = G
243+ let aJ = toBase58String(af)
244+ let aK = valueOrErrorMessage(assetInfo(af), (("Asset " + aJ) + " doesn't exist"))
245+ $Tuple3(aJ, aK.name, aK.decimals)
250246 }
251247 else if ($isInstanceOf(G, "Unit"))
252248 then {
253- let ai = G
249+ let ag = G
254250 $Tuple3("WAVES", "WAVES", 8)
255251 }
256252 else throw("Match error")
257253 }
258254
259255
260-func aN (aO) = if ((aO == "WAVES"))
256+func aL (aM) = if ((aM == "WAVES"))
261257 then $Tuple3("WAVES", "WAVES", 8)
262258 else {
263- let aL = aO
264- let ah = fromBase58String(aO)
265- let aM = valueOrErrorMessage(assetInfo(ah), (("Asset " + aL) + " doesn't exist"))
266- $Tuple3(aL, aM.name, aM.decimals)
259+ let aJ = aM
260+ let af = fromBase58String(aM)
261+ let aK = valueOrErrorMessage(assetInfo(af), (("Asset " + aJ) + " doesn't exist"))
262+ $Tuple3(aJ, aK.name, aK.decimals)
267263 }
268264
269265
270-func aP (aQ) = [BooleanEntry(c, false), StringEntry(n, aQ)]
266+func aN (aO) = [BooleanEntry(c, false), StringEntry(m, aO)]
271267
272268
273-func aR (aS,aw) = if (aS)
274- then if ((aw == Q))
275- then $Tuple2("lockNeutrino", U)
276- else $Tuple2("startStaking", V)
277- else if ((aw == Q))
278- then $Tuple2("unlockNeutrino", U)
279- else $Tuple2("stopStaking", V)
269+func aP (aQ,au) = if (aQ)
270+ then if ((au == P))
271+ then $Tuple2("lockNeutrino", T)
272+ else $Tuple2("startStaking", U)
273+ else if ((au == P))
274+ then $Tuple2("unlockNeutrino", T)
275+ else $Tuple2("stopStaking", U)
280276
281277
282-func aT (aS,aU,aw) = if (aS)
278+func aR (aQ,aS,au) = if (aQ)
283279 then {
284- let aV = aR(aS, aw)
285- let aW = aV._1
286- let aX = aV._2
287- $Tuple4(aW, aX, nil, [AttachedPayment(aw, aU)])
280+ let aT = aP(aQ, au)
281+ let aU = aT._1
282+ let aV = aT._2
283+ $Tuple4(aU, aV, nil, [AttachedPayment(au, aS)])
288284 }
289285 else {
290- let aY = aR(aS, aw)
291- let aW = aY._1
292- let aX = aY._2
293- $Tuple4(aW, aX, [aU, toBase58String(aw)], nil)
286+ let aW = aP(aQ, au)
287+ let aU = aW._1
288+ let aV = aW._2
289+ $Tuple4(aU, aV, [aS, toBase58String(au)], nil)
294290 }
295291
296292
297-func aZ (ba,bb,bc,bd) = {
298- let be = fraction(bd, ba, (ba + bc))
299- let bf = fraction(be, (aq - ao), aq)
300- let bg = fraction(be, ap, aq)
301- if ((bb > bf))
302- then throw(((("Calculated amount to receive " + toString(bf)) + " is less than specified minimum ") + toString(bb)))
303- else $Tuple3(be, bf, bg)
293+func aX (aY,aZ,ba,bb) = {
294+ let bc = fraction(bb, aY, (aY + ba))
295+ let bd = fraction(bc, (ao - am), ao)
296+ let be = fraction(bc, an, ao)
297+ if ((aZ > bd))
298+ then throw(((("Calculated amount to receive " + toString(bd)) + " is less than specified minimum ") + toString(aZ)))
299+ else $Tuple3(bc, bd, be)
304300 }
305301
306302
307-func bh () = aP(((((((((((((((("Suspicious state. Actual balances: " + toString(aH)) + " ") + ag) + ", ") + toString(aI)) + " ") + aj) + ". State: ") + toString(ak)) + " ") + ag) + ", ") + toString(al)) + " ") + aj))
303+func bf () = aN(((((((((((((((("Suspicious state. Actual balances: " + toString(aF)) + " ") + ae) + ", ") + toString(aG)) + " ") + ah) + ". State: ") + toString(ai)) + " ") + ae) + ", ") + toString(aj)) + " ") + ah))
308304
309305
310-func bi () = if (ab)
306+func bg () = if (Z)
311307 then unit
312308 else throw("DApp is inactive at this moment")
313309
314310
315-@Callable(aA)
316-func init (bj) = {
317- let bk = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId)
318- let bl = bk._1
319- let bm = bk._2
320- let bn = $Tuple2(aA.payments[1].amount, aA.payments[1].assetId)
321- let bo = bn._1
322- let bp = bn._2
323- let bq = aK(bm)
324- let br = bq._1
325- let bs = bq._2
326- let bt = bq._3
327- let bu = aK(bp)
328- let bv = bu._1
329- let bw = bu._2
330- let bx = bu._3
331- if (!(containsElement([J, K, L, N], aA.callerPublicKey)))
311+@Callable(ay)
312+func init (bh) = {
313+ let bi = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId)
314+ let bj = bi._1
315+ let bk = bi._2
316+ let bl = $Tuple2(ay.payments[1].amount, ay.payments[1].assetId)
317+ let bm = bl._1
318+ let bn = bl._2
319+ let bo = aI(bk)
320+ let bp = bo._1
321+ let bq = bo._2
322+ let br = bo._3
323+ let bs = aI(bn)
324+ let bt = bs._1
325+ let bu = bs._2
326+ let bv = bs._3
327+ if (!(containsElement([J, K, L, M], ay.callerPublicKey)))
332328 then throw("Only admin can call this function")
333329 else if (isDefined(getBoolean(this, c)))
334330 then throw("DApp is already active")
335- else if ((bm == bp))
331+ else if ((bk == bn))
336332 then throw("Assets must be different")
337333 else {
338- let by = ((("s" + take(bs, 7)) + "_") + take(bw, 7))
339- let bz = ((((("ShareToken of SwopFi protocol for " + bs) + " and ") + bw) + " at address ") + toString(this))
340- let bA = ((bt + bx) / 2)
341- let bB = pow(bl, bt, 5, 1, bt, DOWN)
342- let bC = pow(bo, bx, 5, 1, bx, DOWN)
343- let bD = pow(10, 0, bA, 0, 0, DOWN)
344- let bE = fraction(bB, bC, bD)
345- let bF = Issue(by, bz, bE, bA, true)
346- let bG = calculateAssetId(bF)
347- let bH = if (containsElement(T, br))
348- then invoke(this, "stakeUnstake", [true, bl, br], nil)
334+ let bw = ((("s" + take(bq, 7)) + "_") + take(bu, 7))
335+ let bx = ((((("ShareToken of SwopFi protocol for " + bq) + " and ") + bu) + " at address ") + toString(this))
336+ let by = ((br + bv) / 2)
337+ let bz = pow(bj, br, 5, 1, br, DOWN)
338+ let bA = pow(bm, bv, 5, 1, bv, DOWN)
339+ let bB = pow(10, 0, by, 0, 0, DOWN)
340+ let bC = fraction(bz, bA, bB)
341+ let bD = Issue(bw, bx, bC, by, true)
342+ let bE = calculateAssetId(bD)
343+ let bF = if (containsElement(S, bp))
344+ then invoke(this, "stakeUnstake", [true, bj, bp], nil)
349345 else 0
350- if ((bH == bH))
346+ if ((bF == bF))
351347 then {
352- let bI = if (containsElement(T, bv))
353- then invoke(this, "stakeUnstake", [true, bo, bv], nil)
348+ let bG = if (containsElement(S, bt))
349+ then invoke(this, "stakeUnstake", [true, bm, bt], nil)
354350 else 0
355- if ((bI == bI))
351+ if ((bG == bG))
356352 then {
357- let bJ = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, br), StringEntry(e, bv), IntegerEntry(f, bl), IntegerEntry(g, bo), IntegerEntry(l, ao), IntegerEntry(m, aq), bF, StringEntry(j, toBase58String(bG)), IntegerEntry(k, bE), ScriptTransfer(aA.caller, bE, bG)]
358- if (bj)
359- then (bJ ++ [BooleanEntry(o, bj), IntegerEntry(p, (Y + (aa * Z)))])
360- else bJ
353+ let bH = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bp), StringEntry(e, bt), IntegerEntry(f, bj), IntegerEntry(g, bm), IntegerEntry(l, getIntegerValue(D, "base_fee_cpmm")), bD, StringEntry(j, toBase58String(bE)), IntegerEntry(k, bC), ScriptTransfer(ay.caller, bC, bE)]
354+ if (bh)
355+ then (bH ++ [BooleanEntry(n, bh), IntegerEntry(o, (W + (Y * X)))])
356+ else bH
361357 }
362358 else throw("Strict value is not equal to itself.")
363359 }
367363
368364
369365
370-@Callable(aA)
371-func initWithInitRatio (bK,bL,ac,ad,bj) = {
372- let bM = aN(ac)
373- let br = bM._1
374- let bs = bM._2
375- let bt = bM._3
376- let bN = aN(ad)
377- let bv = bN._1
378- let bw = bN._2
379- let bx = bN._3
380- if (!(containsElement([J, K, L, N], aA.callerPublicKey)))
366+@Callable(ay)
367+func initWithInitRatio (bI,bJ,aa,ab,bh) = {
368+ let bK = aL(aa)
369+ let bp = bK._1
370+ let bq = bK._2
371+ let br = bK._3
372+ let bL = aL(ab)
373+ let bt = bL._1
374+ let bu = bL._2
375+ let bv = bL._3
376+ if (!(containsElement([J, K, L, M], ay.callerPublicKey)))
381377 then throw("Only admin can call this function")
382378 else if (isDefined(getBoolean(this, c)))
383379 then throw("DApp is already active")
384- else if ((ac == ad))
380+ else if ((aa == ab))
385381 then throw("Assets must be different")
386382 else {
387- let by = ((("s" + take(bs, 7)) + "_") + take(bw, 7))
388- let bz = ((((("ShareToken of SwopFi protocol for " + bs) + " and ") + bw) + " at address ") + toString(this))
389- let bA = ((bt + bx) / 2)
390- let bE = 0
391- let bF = Issue(by, bz, bE, bA, true)
392- let bG = calculateAssetId(bF)
393- let bJ = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, br), StringEntry(e, bv), IntegerEntry(h, bK), IntegerEntry(i, bL), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, ao), IntegerEntry(m, aq), bF, StringEntry(j, toBase58String(bG)), IntegerEntry(k, bE)]
394- if (bj)
395- then (bJ ++ [BooleanEntry(o, bj), IntegerEntry(p, (Y + (aa * Z)))])
396- else bJ
383+ let bw = ((("s" + take(bq, 7)) + "_") + take(bu, 7))
384+ let bx = ((((("ShareToken of SwopFi protocol for " + bq) + " and ") + bu) + " at address ") + toString(this))
385+ let by = ((br + bv) / 2)
386+ let bC = 0
387+ let bD = Issue(bw, bx, bC, by, true)
388+ let bE = calculateAssetId(bD)
389+ let bH = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bp), StringEntry(e, bt), IntegerEntry(h, bI), IntegerEntry(i, bJ), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, getIntegerValue(D, "base_fee_cpmm")), bD, StringEntry(j, toBase58String(bE)), IntegerEntry(k, bC)]
390+ if (bh)
391+ then (bH ++ [BooleanEntry(n, bh), IntegerEntry(o, (W + (Y * X)))])
392+ else bH
397393 }
398394 }
399395
400396
401397
402-@Callable(aA)
403-func keepLimitForFirstHarvest (bO) = valueOrElse(bi(), if (!(containsElement([J, K, L, N], aA.callerPublicKey)))
398+@Callable(ay)
399+func keepLimitForFirstHarvest (bM) = valueOrElse(bg(), if (!(containsElement([J, K, L, M], ay.callerPublicKey)))
404400 then throw("Only admin can call this function")
405- else [IntegerEntry(q, bO)])
401+ else [IntegerEntry(p, bM)])
406402
407403
408404
409-@Callable(aA)
410-func replenishWithTwoTokens (bP) = valueOrElse(bi(), {
411- let bm = aA.payments[0].assetId
412- let bp = aA.payments[1].assetId
413- let bl = aA.payments[0].amount
414- let bo = aA.payments[1].amount
415- let bQ = aK(bm)
416- let br = bQ._1
417- let bs = bQ._2
418- let bt = bQ._3
419- let bR = aK(bp)
420- let bv = bR._1
421- let bw = bR._2
422- let bx = bR._3
423- let bS = if (if ((ak == 0))
424- then (al == 0)
405+@Callable(ay)
406+func replenishWithTwoTokens (bN) = valueOrElse(bg(), {
407+ let bk = ay.payments[0].assetId
408+ let bn = ay.payments[1].assetId
409+ let bj = ay.payments[0].amount
410+ let bm = ay.payments[1].amount
411+ let bO = aI(bk)
412+ let bp = bO._1
413+ let bq = bO._2
414+ let br = bO._3
415+ let bP = aI(bn)
416+ let bt = bP._1
417+ let bu = bP._2
418+ let bv = bP._3
419+ let bQ = if (if ((ai == 0))
420+ then (aj == 0)
425421 else false)
426422 then true
427423 else false
428- let bT = if (bS)
429- then fraction(fraction(aD, as, bl), ar, fraction(aE, as, bo))
430- else fraction(fraction(ak, as, bl), ar, fraction(al, as, bo))
431- let bA = ((bt + bx) / 2)
432- let bU = if (bS)
433- then fraction(pow(bl, bt, 5, 1, bt, DOWN), pow(bo, bx, 5, 1, bx, DOWN), pow(10, 0, bA, 0, 0, DOWN))
434- else fraction(min([fraction(bl, as, ak), fraction(bo, as, al)]), an, as)
435- if (if ((0 > bP))
424+ let bR = if (bQ)
425+ then fraction(fraction(aB, aq, bj), ap, fraction(aC, aq, bm))
426+ else fraction(fraction(ai, aq, bj), ap, fraction(aj, aq, bm))
427+ let by = ((br + bv) / 2)
428+ let bS = if (bQ)
429+ then fraction(pow(bj, br, 5, 1, br, DOWN), pow(bm, bv, 5, 1, bv, DOWN), pow(10, 0, by, 0, 0, DOWN))
430+ else fraction(min([fraction(bj, aq, ai), fraction(bm, aq, aj)]), al, aq)
431+ if (if ((0 > bN))
436432 then true
437- else (bP > at))
438- then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString(bP)))
439- else if ((size(aA.payments) != 2))
433+ else (bN > ar))
434+ then throw(((("Slippage tolerance must be between 0 and " + toString(ar)) + " inclusively. Actual: ") + toString(bN)))
435+ else if ((size(ay.payments) != 2))
440436 then throw("Two attached assets expected")
441- else if (if ((bm != ae))
437+ else if (if ((bk != ac))
442438 then true
443- else (bp != af))
444- then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad))
445- else if (if ((((ar * (at - bP)) / at) > bT))
439+ else (bn != ad))
440+ then throw(((("Incorrect assets attached. Expected: " + aa) + " and ") + ab))
441+ else if (if ((((ap * (ar - bN)) / ar) > bR))
446442 then true
447- else (bT > ((ar * (at + bP)) / at)))
443+ else (bR > ((ap * (ar + bN)) / ar)))
448444 then throw("Incorrect assets amount: amounts must have the contract ratio")
449- else if ((bU == 0))
445+ else if ((bS == 0))
450446 then throw("Too small amount to replenish")
451- else if (!(aJ))
452- then ([ScriptTransfer(aA.caller, bl, bm), ScriptTransfer(aA.caller, bo, bp)] ++ bh())
447+ else if (!(aH))
448+ then ([ScriptTransfer(ay.caller, bj, bk), ScriptTransfer(ay.caller, bm, bn)] ++ bf())
453449 else {
454- let bH = if (containsElement(T, br))
455- then invoke(this, "stakeUnstake", [true, bl, br], nil)
450+ let bF = if (containsElement(S, bp))
451+ then invoke(this, "stakeUnstake", [true, bj, bp], nil)
456452 else 0
457- if ((bH == bH))
453+ if ((bF == bF))
458454 then {
459- let bI = if (containsElement(T, bv))
460- then invoke(this, "stakeUnstake", [true, bo, bv], nil)
455+ let bG = if (containsElement(S, bt))
456+ then invoke(this, "stakeUnstake", [true, bm, bt], nil)
461457 else 0
462- if ((bI == bI))
463- then [Reissue(am, bU, true), IntegerEntry(f, (ak + bl)), IntegerEntry(g, (al + bo)), IntegerEntry(k, (an + bU)), ScriptTransfer(aA.caller, bU, am)]
458+ if ((bG == bG))
459+ then [Reissue(ak, bS, true), IntegerEntry(f, (ai + bj)), IntegerEntry(g, (aj + bm)), IntegerEntry(k, (al + bS)), ScriptTransfer(ay.caller, bS, ak)]
464460 else throw("Strict value is not equal to itself.")
465461 }
466462 else throw("Strict value is not equal to itself.")
469465
470466
471467
472-@Callable(aA)
473-func withdraw () = valueOrElse(bi(), {
474- let bV = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId)
475- let ba = bV._1
476- let bW = bV._2
477- let bX = fraction(ba, ak, an)
478- let bY = fraction(ba, al, an)
479- if ((size(aA.payments) != 1))
468+@Callable(ay)
469+func withdraw () = valueOrElse(bg(), {
470+ let bT = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId)
471+ let aY = bT._1
472+ let bU = bT._2
473+ let bV = fraction(aY, ai, al)
474+ let bW = fraction(aY, aj, al)
475+ if ((size(ay.payments) != 1))
480476 then throw("One attached payment expected")
481- else if ((bW != am))
482- then throw(("Incorrect asset attached. Expected: " + toBase58String(am)))
483- else if (!(aJ))
484- then ([ScriptTransfer(aA.caller, ba, bW)] ++ bh())
477+ else if ((bU != ak))
478+ then throw(("Incorrect asset attached. Expected: " + toBase58String(ak)))
479+ else if (!(aH))
480+ then ([ScriptTransfer(ay.caller, aY, bU)] ++ bf())
485481 else {
486- let bH = if (containsElement(T, ac))
487- then invoke(this, "stakeUnstake", [false, bX, ac], nil)
482+ let bF = if (containsElement(S, aa))
483+ then invoke(this, "stakeUnstake", [false, bV, aa], nil)
488484 else 0
489- if ((bH == bH))
485+ if ((bF == bF))
490486 then {
491- let bI = if (containsElement(T, ad))
492- then invoke(this, "stakeUnstake", [false, bY, ad], nil)
487+ let bG = if (containsElement(S, ab))
488+ then invoke(this, "stakeUnstake", [false, bW, ab], nil)
493489 else 0
494- if ((bI == bI))
495- then [IntegerEntry(f, (ak - bX)), IntegerEntry(g, (al - bY)), IntegerEntry(k, (an - ba)), Burn(am, ba), ScriptTransfer(aA.caller, bX, ae), ScriptTransfer(aA.caller, bY, af)]
490+ if ((bG == bG))
491+ then [IntegerEntry(f, (ai - bV)), IntegerEntry(g, (aj - bW)), IntegerEntry(k, (al - aY)), Burn(ak, aY), ScriptTransfer(ay.caller, bV, ac), ScriptTransfer(ay.caller, bW, ad)]
496492 else throw("Strict value is not equal to itself.")
497493 }
498494 else throw("Strict value is not equal to itself.")
501497
502498
503499
504-@Callable(aA)
505-func exchange (bb) = valueOrElse(bi(), {
506- let bZ = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId)
507- let ba = bZ._1
508- let bW = bZ._2
509- if (if ((ak == 0))
500+@Callable(ay)
501+func exchange (aZ) = valueOrElse(bg(), {
502+ let bX = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId)
503+ let aY = bX._1
504+ let bU = bX._2
505+ if (if ((ai == 0))
510506 then true
511- else (al == 0))
507+ else (aj == 0))
512508 then throw("Can't exchange with zero balance")
513- else if ((0 >= bb))
514- then throw(("Minimal amount to receive must be positive. Actual: " + toString(bb)))
515- else if ((size(aA.payments) != 1))
509+ else if ((0 >= aZ))
510+ then throw(("Minimal amount to receive must be positive. Actual: " + toString(aZ)))
511+ else if ((size(ay.payments) != 1))
516512 then throw("One attached payment expected")
517- else if (!(aJ))
518- then ([ScriptTransfer(aA.caller, ba, bW)] ++ bh())
519- else if ((bW == ae))
513+ else if (!(aH))
514+ then ([ScriptTransfer(ay.caller, aY, bU)] ++ bf())
515+ else if ((bU == ac))
520516 then {
521- let ca = af
522- let cb = aZ(ba, bb, ak, al)
523- let be = cb._1
524- let bf = cb._2
525- let bg = cb._3
526- let cc = (ak + ba)
527- let cd = ((al - bf) - bg)
528- let bH = if (containsElement(T, ac))
529- then invoke(this, "stakeUnstake", [true, ba, ac], nil)
517+ let bY = ad
518+ let bZ = aX(aY, aZ, ai, aj)
519+ let bc = bZ._1
520+ let bd = bZ._2
521+ let be = bZ._3
522+ let ca = (ai + aY)
523+ let cb = ((aj - bd) - be)
524+ let bF = if (containsElement(S, aa))
525+ then invoke(this, "stakeUnstake", [true, aY, aa], nil)
530526 else 0
531- if ((bH == bH))
527+ if ((bF == bF))
532528 then {
533- let bI = if (containsElement(T, ad))
534- then invoke(this, "stakeUnstake", [false, (bf + bg), ad], nil)
529+ let bG = if (containsElement(S, ab))
530+ then invoke(this, "stakeUnstake", [false, (bd + be), ab], nil)
535531 else 0
536- if ((bI == bI))
537- then [IntegerEntry(f, cc), IntegerEntry(g, cd), ScriptTransfer(aA.caller, bf, ca), ScriptTransfer(O, bg, ca)]
532+ if ((bG == bG))
533+ then $Tuple2([IntegerEntry(f, ca), IntegerEntry(g, cb), ScriptTransfer(ay.caller, bd, bY), ScriptTransfer(N, be, bY)], $Tuple2(bd, bY))
538534 else throw("Strict value is not equal to itself.")
539535 }
540536 else throw("Strict value is not equal to itself.")
541537 }
542- else if ((bW == af))
538+ else if ((bU == ad))
543539 then {
544- let ca = ae
545- let ce = aZ(ba, bb, al, ak)
546- let be = ce._1
547- let bf = ce._2
548- let bg = ce._3
549- let cc = ((ak - bf) - bg)
550- let cd = (al + ba)
551- let bH = if (containsElement(T, ac))
552- then invoke(this, "stakeUnstake", [false, (bf + bg), ac], nil)
540+ let bY = ac
541+ let cc = aX(aY, aZ, aj, ai)
542+ let bc = cc._1
543+ let bd = cc._2
544+ let be = cc._3
545+ let ca = ((ai - bd) - be)
546+ let cb = (aj + aY)
547+ let bF = if (containsElement(S, aa))
548+ then invoke(this, "stakeUnstake", [false, (bd + be), aa], nil)
553549 else 0
554- if ((bH == bH))
550+ if ((bF == bF))
555551 then {
556- let bI = if (containsElement(T, ad))
557- then invoke(this, "stakeUnstake", [true, ba, ad], nil)
552+ let bG = if (containsElement(S, ab))
553+ then invoke(this, "stakeUnstake", [true, aY, ab], nil)
558554 else 0
559- if ((bI == bI))
560- then [IntegerEntry(f, cc), IntegerEntry(g, cd), ScriptTransfer(aA.caller, bf, ca), ScriptTransfer(O, bg, ca)]
555+ if ((bG == bG))
556+ then $Tuple2([IntegerEntry(f, ca), IntegerEntry(g, cb), ScriptTransfer(ay.caller, bd, bY), ScriptTransfer(N, be, bY)], $Tuple2(bd, bY))
561557 else throw("Strict value is not equal to itself.")
562558 }
563559 else throw("Strict value is not equal to itself.")
564560 }
565- else throw(((("Incorrect asset attached. Expected: " + ac) + " or ") + ad))
561+ else throw(((("Incorrect asset attached. Expected: " + aa) + " or ") + ab))
566562 })
567563
568564
569565
570-@Callable(aA)
571-func shutdown () = if (!(ab))
572- then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified")))
573- else if (!(containsElement([J, K, L, M], aA.callerPublicKey)))
566+@Callable(ay)
567+func shutdown () = if (!(Z))
568+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, m), "the cause wasn't specified")))
569+ else if (!(containsElement([J, K, L], ay.callerPublicKey)))
574570 then throw("Only admin can call this function")
575- else aP("Paused by admin")
571+ else aN("Paused by admin")
576572
577573
578574
579-@Callable(aA)
580-func activate () = if (ab)
575+@Callable(ay)
576+func activate () = if (Z)
581577 then throw("DApp is already active")
582- else if (!(containsElement([J, K, L, M], aA.callerPublicKey)))
578+ else if (!(containsElement([J, K, L], ay.callerPublicKey)))
583579 then throw("Only admin can call this function")
584- else [BooleanEntry(c, true), DeleteEntry(n)]
580+ else [BooleanEntry(c, true), DeleteEntry(m)]
585581
586582
587583
588-@Callable(aA)
589-func takeIntoAccountExtraFunds () = valueOrElse(bi(), {
590- let cf = (aH - ak)
591- let cg = (aI - al)
592- if ((aA.caller != O))
584+@Callable(ay)
585+func takeIntoAccountExtraFunds () = valueOrElse(bg(), {
586+ let cd = (aF - ai)
587+ let ce = (aG - aj)
588+ if ((ay.caller != N))
593589 then throw("Only the wallet can call this function")
594- else if (if ((0 > cf))
590+ else if (if ((0 > cd))
595591 then true
596- else (0 > cg))
597- then aP("Enroll amount negative")
598- else if (if ((cf == 0))
599- then (cg == 0)
592+ else (0 > ce))
593+ then aN("Enroll amount negative")
594+ else if (if ((cd == 0))
595+ then (ce == 0)
600596 else false)
601597 then throw("No money to take")
602598 else {
603- let bH = if (containsElement(T, ac))
604- then invoke(this, "stakeUnstake", [true, cf, ac], nil)
599+ let bF = if (containsElement(S, aa))
600+ then invoke(this, "stakeUnstake", [true, cd, aa], nil)
605601 else 0
606- if ((bH == bH))
602+ if ((bF == bF))
607603 then {
608- let bI = if (containsElement(T, ad))
609- then invoke(this, "stakeUnstake", [true, cg, ad], nil)
604+ let bG = if (containsElement(S, ab))
605+ then invoke(this, "stakeUnstake", [true, ce, ab], nil)
610606 else 0
611- if ((bI == bI))
612- then [IntegerEntry(f, (ak + cf)), IntegerEntry(g, (al + cg)), IntegerEntry(("last_income_" + ac), cf), IntegerEntry(("last_income_" + ad), cg)]
607+ if ((bG == bG))
608+ then [IntegerEntry(f, (ai + cd)), IntegerEntry(g, (aj + ce)), IntegerEntry(("last_income_" + aa), cd), IntegerEntry(("last_income_" + ab), ce)]
613609 else throw("Strict value is not equal to itself.")
614610 }
615611 else throw("Strict value is not equal to itself.")
618614
619615
620616
621-@Callable(aA)
622-func stakeUnstake (aS,aU,ch) = if ((aA.caller != this))
617+@Callable(ay)
618+func stakeUnstake (aQ,aS,cf) = if ((ay.caller != this))
623619 then throw("Only contract itself can invoke this function")
624- else if ((ch == "WAVES"))
620+ else if ((cf == "WAVES"))
625621 then {
626- let ci = addressFromStringValue(valueOrErrorMessage(getString(D, x), "No leasing pool in oracle"))
627- let cj = getBinary(this, z)
628- let ck = valueOrElse(getInteger(this, y), 0)
629- let cl = if (aS)
630- then (ck + aU)
631- else (ck - aU)
632- let cm = Lease(ci, cl)
633- let cn = calculateLeaseId(cm)
634- let co = [cm, BinaryEntry(z, cn), IntegerEntry(y, cl)]
635- let G = cj
622+ let cg = addressFromStringValue(valueOrErrorMessage(getString(D, v), "No leasing pool in oracle"))
623+ let ch = getBinary(this, x)
624+ let ci = valueOrElse(getInteger(this, w), 0)
625+ let cj = if (aQ)
626+ then (ci + aS)
627+ else (ci - aS)
628+ let ck = Lease(cg, cj)
629+ let cl = calculateLeaseId(ck)
630+ let cm = [ck, BinaryEntry(x, cl), IntegerEntry(w, cj)]
631+ let G = ch
636632 if ($isInstanceOf(G, "ByteVector"))
637633 then {
638- let cp = G
639- ([LeaseCancel(cp)] ++ co)
634+ let cn = G
635+ ([LeaseCancel(cn)] ++ cm)
640636 }
641- else co
637+ else cm
642638 }
643639 else {
644- let cq = aT(aS, aU, fromBase58String(ch))
645- let aW = cq._1
646- let cr = cq._2
647- let cs = cq._3
648- let ct = cq._4
649- let cu = invoke(cr, aW, cs, ct)
650- if ((cu == cu))
640+ let co = aR(aQ, aS, fromBase58String(cf))
641+ let aU = co._1
642+ let cp = co._2
643+ let cq = co._3
644+ let cr = co._4
645+ let cs = invoke(cp, aU, cq, cr)
646+ if ((cs == cs))
651647 then nil
652648 else throw("Strict value is not equal to itself.")
653649 }
654650
655651
656652
657-@Callable(aA)
658-func stakeAll () = valueOrElse(bi(), if (!(containsElement([J, K, L, M], aA.callerPublicKey)))
653+@Callable(ay)
654+func stakeAll () = valueOrElse(bg(), if (!(containsElement([J, K, L], ay.callerPublicKey)))
659655 then throw("Only admin can call this function")
660656 else {
661- let bH = if (containsElement(T, ac))
657+ let bF = if (containsElement(S, aa))
662658 then {
663- let cv = (ak - aB)
664- if ((cv > 0))
665- then invoke(this, "stakeUnstake", [true, cv, ac], nil)
659+ let ct = (ai - az)
660+ if ((ct > 0))
661+ then invoke(this, "stakeUnstake", [true, ct, aa], nil)
666662 else 0
667663 }
668664 else 0
669- if ((bH == bH))
665+ if ((bF == bF))
670666 then {
671- let bI = if (containsElement(T, ad))
667+ let bG = if (containsElement(S, ab))
672668 then {
673- let cw = (al - aC)
674- if ((cw > 0))
675- then invoke(this, "stakeUnstake", [true, cw, ad], nil)
669+ let cu = (aj - aA)
670+ if ((cu > 0))
671+ then invoke(this, "stakeUnstake", [true, cu, ab], nil)
676672 else 0
677673 }
678674 else 0
679- if ((bI == bI))
675+ if ((bG == bG))
680676 then nil
681677 else throw("Strict value is not equal to itself.")
682678 }
684680 })
685681
686682
687-@Verifier(cx)
688-func cy () = {
689- let cz = {
690- let cA = if (sigVerify(cx.bodyBytes, cx.proofs[0], J))
683+@Verifier(cv)
684+func cw () = {
685+ let cx = {
686+ let cy = if (sigVerify(cv.bodyBytes, cv.proofs[0], J))
691687 then 1
692688 else 0
693- let cB = if (sigVerify(cx.bodyBytes, cx.proofs[1], K))
689+ let cz = if (sigVerify(cv.bodyBytes, cv.proofs[1], K))
694690 then 1
695691 else 0
696- let cC = if (sigVerify(cx.bodyBytes, cx.proofs[2], L))
692+ let cA = if (sigVerify(cv.bodyBytes, cv.proofs[2], L))
697693 then 1
698694 else 0
699- (((cA + cB) + cC) >= 2)
695+ (((cy + cz) + cA) >= 2)
700696 }
701- let G = cx
697+ let G = cv
702698 if ($isInstanceOf(G, "InvokeScriptTransaction"))
703699 then {
704- let cu = G
705- let cD = if ((cu.dApp == this))
706- then (cu.function == "takeIntoAccountExtraFunds")
700+ let cs = G
701+ let cB = if ((cs.dApp == this))
702+ then (cs.function == "takeIntoAccountExtraFunds")
707703 else false
708- let cE = if (if (if ((cu.dApp == W))
709- then (cu.function == "exchange")
710- else false)
711- then (size(cu.payments) == 1)
712- else false)
713- then if ((cu.payments[0].assetId == Q))
714- then true
715- else (cu.payments[0].assetId == unit)
716- else false
717- let cF = if (if (if (sigVerify(cx.bodyBytes, cx.proofs[0], J))
704+ let cC = if (if (if (sigVerify(cv.bodyBytes, cv.proofs[0], J))
718705 then true
719- else sigVerify(cx.bodyBytes, cx.proofs[0], K))
706+ else sigVerify(cv.bodyBytes, cv.proofs[0], K))
720707 then true
721- else sigVerify(cx.bodyBytes, cx.proofs[0], L))
708+ else sigVerify(cv.bodyBytes, cv.proofs[0], L))
722709 then true
723- else sigVerify(cx.bodyBytes, cx.proofs[0], N)
724- if (if (if (cD)
725- then true
726- else cE)
727- then cF
710+ else sigVerify(cv.bodyBytes, cv.proofs[0], M)
711+ if (if (cB)
712+ then cC
728713 else false)
729714 then true
730- else cz
715+ else cx
731716 }
732- else cz
717+ else cx
733718 }
734719
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
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
1010 let d = "A_asset_id"
1111
1212 let e = "B_asset_id"
1313
1414 let f = "A_asset_balance"
1515
1616 let g = "B_asset_balance"
1717
1818 let h = "A_asset_init"
1919
2020 let i = "B_asset_init"
2121
2222 let j = "share_asset_id"
2323
2424 let k = "share_asset_supply"
2525
2626 let l = "commission"
2727
28-let m = "commission_scale_delimiter"
28+let m = "shutdown_cause"
2929
30-let n = "shutdown_cause"
30+let n = "first_harvest"
3131
32-let o = "first_harvest"
32+let o = "first_harvest_height"
3333
34-let p = "first_harvest_height"
34+let p = "share_limit_on_first_harvest"
3535
36-let q = "share_limit_on_first_harvest"
36+let q = "base_period"
3737
38-let r = "base_period"
38+let r = "period_length"
3939
40-let s = "period_length"
40+let s = "start_height"
4141
42-let t = "start_height"
42+let t = "staking_usdnnsbt_address"
4343
44-let u = "first_harvest_height"
44+let u = "staking_eurn_address"
4545
46-let v = "staking_usdnnsbt_address"
46+let v = "leasing_address"
4747
48-let w = "staking_eurn_address"
48+let w = "leasing_amount"
4949
50-let x = "leasing_address"
50+let x = "leasing_id"
5151
52-let y = "leasing_amount"
52+let y = "admin_pub_1"
5353
54-let z = "leasing_id"
54+let z = "admin_pub_2"
5555
56-let A = "admin_pub_1"
56+let A = "admin_pub_3"
5757
58-let B = "admin_pub_2"
58+let B = "admin_invoke_pub"
5959
60-let C = "admin_pub_3"
60+let C = "money_box_address"
6161
6262 let D = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
6363
6464 func E (F) = {
6565 let G = getString(D, F)
6666 if ($isInstanceOf(G, "String"))
6767 then {
6868 let H = G
6969 fromBase58String(H)
7070 }
7171 else {
7272 let I = G
73- throw("Admin public key is empty")
73+ throw((F + "is empty"))
7474 }
7575 }
7676
7777
78-let J = E(A)
78+let J = E(y)
7979
80-let K = E(B)
80+let K = E(z)
8181
82-let L = E(C)
82+let L = E(A)
8383
84-let M = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
84+let M = E(B)
8585
86-let N = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
86+let N = Address(E(C))
8787
88-let O = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
88+let O = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
8989
90-let P = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
90+let P = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
9191
92-let Q = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
92+let Q = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
9393
94-let R = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
94+let R = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
9595
96-let S = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
96+let S = ["WAVES", toBase58String(P), toBase58String(R)]
9797
98-let T = ["WAVES", toBase58String(Q), toBase58String(S)]
98+let T = Address(E(t))
9999
100-let U = Address(fromBase58String(valueOrErrorMessage(getString(D, v), "no usdn staking address")))
100+let U = Address(E(u))
101101
102-let V = Address(fromBase58String(valueOrErrorMessage(getString(D, w), "no eurn staking address")))
102+let V = valueOrErrorMessage(getInteger(O, q), "Empty kBasePeriod")
103103
104-let W = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
104+let W = valueOrErrorMessage(getInteger(O, s), "Empty kStartHeight")
105105
106-let X = valueOrErrorMessage(getInteger(P, r), "Empty kBasePeriod")
106+let X = valueOrErrorMessage(getInteger(O, r), "Empty kPeriodLength")
107107
108-let Y = valueOrErrorMessage(getInteger(P, t), "Empty kStartHeight")
108+let Y = ((V + ((height - W) / X)) + 3)
109109
110-let Z = valueOrErrorMessage(getInteger(P, s), "Empty kPeriodLength")
110+let Z = getBooleanValue(this, c)
111111
112-let aa = ((X + ((height - Y) / Z)) + 3)
112+let aa = getStringValue(this, d)
113113
114-let ab = getBooleanValue(this, c)
114+let ab = getStringValue(this, e)
115115
116-let ac = getStringValue(this, d)
116+let ac = if ((aa == "WAVES"))
117+ then unit
118+ else fromBase58String(aa)
117119
118-let ad = getStringValue(this, e)
120+let ad = if ((ab == "WAVES"))
121+ then unit
122+ else fromBase58String(ab)
119123
120-let ae = if ((ac == "WAVES"))
121- then unit
122- else fromBase58String(ac)
123-
124-let af = if ((ad == "WAVES"))
125- then unit
126- else fromBase58String(ad)
127-
128-let ag = {
129- let G = ae
124+let ae = {
125+ let G = ac
130126 if ($isInstanceOf(G, "ByteVector"))
131127 then {
132- let ah = G
133- value(assetInfo(ah)).name
128+ let af = G
129+ value(assetInfo(af)).name
134130 }
135131 else if ($isInstanceOf(G, "Unit"))
136132 then {
137- let ai = G
133+ let ag = G
138134 "WAVES"
139135 }
140136 else throw("Match error")
141137 }
142138
143-let aj = {
144- let G = af
139+let ah = {
140+ let G = ad
145141 if ($isInstanceOf(G, "ByteVector"))
146142 then {
147- let ah = G
148- value(assetInfo(ah)).name
143+ let af = G
144+ value(assetInfo(af)).name
149145 }
150146 else if ($isInstanceOf(G, "Unit"))
151147 then {
152- let ai = G
148+ let ag = G
153149 "WAVES"
154150 }
155151 else throw("Match error")
156152 }
157153
158-let ak = getIntegerValue(this, f)
154+let ai = getIntegerValue(this, f)
159155
160-let al = getIntegerValue(this, g)
156+let aj = getIntegerValue(this, g)
161157
162-let am = fromBase58String(getStringValue(this, j))
158+let ak = fromBase58String(getStringValue(this, j))
163159
164-let an = getIntegerValue(this, k)
160+let al = getIntegerValue(this, k)
165161
166-let ao = 3000
162+let am = getIntegerValue(this, l)
167163
168-let ap = 1200
164+let an = fraction(am, 40, 100)
169165
170-let aq = 1000000
166+let ao = 1000000
167+
168+let ap = 1000
169+
170+let aq = 100000000
171171
172172 let ar = 1000
173173
174-let as = 100000000
174+let as = 8
175175
176-let at = 1000
177-
178-let au = 8
179-
180-func av (aw) = {
181- let G = aw
176+func at (au) = {
177+ let G = au
182178 if ($isInstanceOf(G, "ByteVector"))
183179 then {
184- let ah = G
185- assetBalance(this, ah)
180+ let af = G
181+ assetBalance(this, af)
186182 }
187183 else if ($isInstanceOf(G, "Unit"))
188184 then {
189- let ai = G
185+ let ag = G
190186 wavesBalance(this).available
191187 }
192188 else throw("Match error")
193189 }
194190
195191
196-func ax (aw) = {
197- let ay = {
198- let G = aw
192+func av (au) = {
193+ let aw = {
194+ let G = au
199195 if ($isInstanceOf(G, "ByteVector"))
200196 then {
201- let az = G
202- if ((az == Q))
203- then getInteger(U, ((("rpd_balance_" + toBase58String(az)) + "_") + toString(this)))
204- else if ((az == S))
205- then getInteger(V, ((("%s%s%s__stakingBalance__" + toBase58String(az)) + "__") + toString(this)))
197+ let ax = G
198+ if ((ax == P))
199+ then getInteger(T, ((("rpd_balance_" + toBase58String(ax)) + "_") + toString(this)))
200+ else if ((ax == R))
201+ then getInteger(U, ((("%s%s%s__stakingBalance__" + toBase58String(ax)) + "__") + toString(this)))
206202 else 0
207203 }
208204 else if ($isInstanceOf(G, "Unit"))
209- then valueOrElse(getInteger(this, y), 0)
205+ then valueOrElse(getInteger(this, w), 0)
210206 else throw("Match error")
211207 }
212- let G = ay
208+ let G = aw
213209 if ($isInstanceOf(G, "Int"))
214210 then {
215- let aA = G
216- aA
211+ let ay = G
212+ ay
217213 }
218214 else 0
219215 }
220216
221217
222-let aB = ax(ae)
218+let az = av(ac)
223219
224-let aC = ax(af)
220+let aA = av(ad)
225221
226-let aD = getIntegerValue(this, h)
222+let aB = getIntegerValue(this, h)
227223
228-let aE = getIntegerValue(this, i)
224+let aC = getIntegerValue(this, i)
229225
230-let aF = (ak - aB)
226+let aD = (ai - az)
231227
232-let aG = (al - aC)
228+let aE = (aj - aA)
233229
234-let aH = (av(ae) + aB)
230+let aF = (at(ac) + az)
235231
236-let aI = (av(af) + aC)
232+let aG = (at(ad) + aA)
237233
238-let aJ = if ((aH >= ak))
239- then (aI >= al)
234+let aH = if ((aF >= ai))
235+ then (aG >= aj)
240236 else false
241237
242-func aK (aw) = {
243- let G = aw
238+func aI (au) = {
239+ let G = au
244240 if ($isInstanceOf(G, "ByteVector"))
245241 then {
246- let ah = G
247- let aL = toBase58String(ah)
248- let aM = valueOrErrorMessage(assetInfo(ah), (("Asset " + aL) + " doesn't exist"))
249- $Tuple3(aL, aM.name, aM.decimals)
242+ let af = G
243+ let aJ = toBase58String(af)
244+ let aK = valueOrErrorMessage(assetInfo(af), (("Asset " + aJ) + " doesn't exist"))
245+ $Tuple3(aJ, aK.name, aK.decimals)
250246 }
251247 else if ($isInstanceOf(G, "Unit"))
252248 then {
253- let ai = G
249+ let ag = G
254250 $Tuple3("WAVES", "WAVES", 8)
255251 }
256252 else throw("Match error")
257253 }
258254
259255
260-func aN (aO) = if ((aO == "WAVES"))
256+func aL (aM) = if ((aM == "WAVES"))
261257 then $Tuple3("WAVES", "WAVES", 8)
262258 else {
263- let aL = aO
264- let ah = fromBase58String(aO)
265- let aM = valueOrErrorMessage(assetInfo(ah), (("Asset " + aL) + " doesn't exist"))
266- $Tuple3(aL, aM.name, aM.decimals)
259+ let aJ = aM
260+ let af = fromBase58String(aM)
261+ let aK = valueOrErrorMessage(assetInfo(af), (("Asset " + aJ) + " doesn't exist"))
262+ $Tuple3(aJ, aK.name, aK.decimals)
267263 }
268264
269265
270-func aP (aQ) = [BooleanEntry(c, false), StringEntry(n, aQ)]
266+func aN (aO) = [BooleanEntry(c, false), StringEntry(m, aO)]
271267
272268
273-func aR (aS,aw) = if (aS)
274- then if ((aw == Q))
275- then $Tuple2("lockNeutrino", U)
276- else $Tuple2("startStaking", V)
277- else if ((aw == Q))
278- then $Tuple2("unlockNeutrino", U)
279- else $Tuple2("stopStaking", V)
269+func aP (aQ,au) = if (aQ)
270+ then if ((au == P))
271+ then $Tuple2("lockNeutrino", T)
272+ else $Tuple2("startStaking", U)
273+ else if ((au == P))
274+ then $Tuple2("unlockNeutrino", T)
275+ else $Tuple2("stopStaking", U)
280276
281277
282-func aT (aS,aU,aw) = if (aS)
278+func aR (aQ,aS,au) = if (aQ)
283279 then {
284- let aV = aR(aS, aw)
285- let aW = aV._1
286- let aX = aV._2
287- $Tuple4(aW, aX, nil, [AttachedPayment(aw, aU)])
280+ let aT = aP(aQ, au)
281+ let aU = aT._1
282+ let aV = aT._2
283+ $Tuple4(aU, aV, nil, [AttachedPayment(au, aS)])
288284 }
289285 else {
290- let aY = aR(aS, aw)
291- let aW = aY._1
292- let aX = aY._2
293- $Tuple4(aW, aX, [aU, toBase58String(aw)], nil)
286+ let aW = aP(aQ, au)
287+ let aU = aW._1
288+ let aV = aW._2
289+ $Tuple4(aU, aV, [aS, toBase58String(au)], nil)
294290 }
295291
296292
297-func aZ (ba,bb,bc,bd) = {
298- let be = fraction(bd, ba, (ba + bc))
299- let bf = fraction(be, (aq - ao), aq)
300- let bg = fraction(be, ap, aq)
301- if ((bb > bf))
302- then throw(((("Calculated amount to receive " + toString(bf)) + " is less than specified minimum ") + toString(bb)))
303- else $Tuple3(be, bf, bg)
293+func aX (aY,aZ,ba,bb) = {
294+ let bc = fraction(bb, aY, (aY + ba))
295+ let bd = fraction(bc, (ao - am), ao)
296+ let be = fraction(bc, an, ao)
297+ if ((aZ > bd))
298+ then throw(((("Calculated amount to receive " + toString(bd)) + " is less than specified minimum ") + toString(aZ)))
299+ else $Tuple3(bc, bd, be)
304300 }
305301
306302
307-func bh () = aP(((((((((((((((("Suspicious state. Actual balances: " + toString(aH)) + " ") + ag) + ", ") + toString(aI)) + " ") + aj) + ". State: ") + toString(ak)) + " ") + ag) + ", ") + toString(al)) + " ") + aj))
303+func bf () = aN(((((((((((((((("Suspicious state. Actual balances: " + toString(aF)) + " ") + ae) + ", ") + toString(aG)) + " ") + ah) + ". State: ") + toString(ai)) + " ") + ae) + ", ") + toString(aj)) + " ") + ah))
308304
309305
310-func bi () = if (ab)
306+func bg () = if (Z)
311307 then unit
312308 else throw("DApp is inactive at this moment")
313309
314310
315-@Callable(aA)
316-func init (bj) = {
317- let bk = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId)
318- let bl = bk._1
319- let bm = bk._2
320- let bn = $Tuple2(aA.payments[1].amount, aA.payments[1].assetId)
321- let bo = bn._1
322- let bp = bn._2
323- let bq = aK(bm)
324- let br = bq._1
325- let bs = bq._2
326- let bt = bq._3
327- let bu = aK(bp)
328- let bv = bu._1
329- let bw = bu._2
330- let bx = bu._3
331- if (!(containsElement([J, K, L, N], aA.callerPublicKey)))
311+@Callable(ay)
312+func init (bh) = {
313+ let bi = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId)
314+ let bj = bi._1
315+ let bk = bi._2
316+ let bl = $Tuple2(ay.payments[1].amount, ay.payments[1].assetId)
317+ let bm = bl._1
318+ let bn = bl._2
319+ let bo = aI(bk)
320+ let bp = bo._1
321+ let bq = bo._2
322+ let br = bo._3
323+ let bs = aI(bn)
324+ let bt = bs._1
325+ let bu = bs._2
326+ let bv = bs._3
327+ if (!(containsElement([J, K, L, M], ay.callerPublicKey)))
332328 then throw("Only admin can call this function")
333329 else if (isDefined(getBoolean(this, c)))
334330 then throw("DApp is already active")
335- else if ((bm == bp))
331+ else if ((bk == bn))
336332 then throw("Assets must be different")
337333 else {
338- let by = ((("s" + take(bs, 7)) + "_") + take(bw, 7))
339- let bz = ((((("ShareToken of SwopFi protocol for " + bs) + " and ") + bw) + " at address ") + toString(this))
340- let bA = ((bt + bx) / 2)
341- let bB = pow(bl, bt, 5, 1, bt, DOWN)
342- let bC = pow(bo, bx, 5, 1, bx, DOWN)
343- let bD = pow(10, 0, bA, 0, 0, DOWN)
344- let bE = fraction(bB, bC, bD)
345- let bF = Issue(by, bz, bE, bA, true)
346- let bG = calculateAssetId(bF)
347- let bH = if (containsElement(T, br))
348- then invoke(this, "stakeUnstake", [true, bl, br], nil)
334+ let bw = ((("s" + take(bq, 7)) + "_") + take(bu, 7))
335+ let bx = ((((("ShareToken of SwopFi protocol for " + bq) + " and ") + bu) + " at address ") + toString(this))
336+ let by = ((br + bv) / 2)
337+ let bz = pow(bj, br, 5, 1, br, DOWN)
338+ let bA = pow(bm, bv, 5, 1, bv, DOWN)
339+ let bB = pow(10, 0, by, 0, 0, DOWN)
340+ let bC = fraction(bz, bA, bB)
341+ let bD = Issue(bw, bx, bC, by, true)
342+ let bE = calculateAssetId(bD)
343+ let bF = if (containsElement(S, bp))
344+ then invoke(this, "stakeUnstake", [true, bj, bp], nil)
349345 else 0
350- if ((bH == bH))
346+ if ((bF == bF))
351347 then {
352- let bI = if (containsElement(T, bv))
353- then invoke(this, "stakeUnstake", [true, bo, bv], nil)
348+ let bG = if (containsElement(S, bt))
349+ then invoke(this, "stakeUnstake", [true, bm, bt], nil)
354350 else 0
355- if ((bI == bI))
351+ if ((bG == bG))
356352 then {
357- let bJ = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, br), StringEntry(e, bv), IntegerEntry(f, bl), IntegerEntry(g, bo), IntegerEntry(l, ao), IntegerEntry(m, aq), bF, StringEntry(j, toBase58String(bG)), IntegerEntry(k, bE), ScriptTransfer(aA.caller, bE, bG)]
358- if (bj)
359- then (bJ ++ [BooleanEntry(o, bj), IntegerEntry(p, (Y + (aa * Z)))])
360- else bJ
353+ let bH = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bp), StringEntry(e, bt), IntegerEntry(f, bj), IntegerEntry(g, bm), IntegerEntry(l, getIntegerValue(D, "base_fee_cpmm")), bD, StringEntry(j, toBase58String(bE)), IntegerEntry(k, bC), ScriptTransfer(ay.caller, bC, bE)]
354+ if (bh)
355+ then (bH ++ [BooleanEntry(n, bh), IntegerEntry(o, (W + (Y * X)))])
356+ else bH
361357 }
362358 else throw("Strict value is not equal to itself.")
363359 }
364360 else throw("Strict value is not equal to itself.")
365361 }
366362 }
367363
368364
369365
370-@Callable(aA)
371-func initWithInitRatio (bK,bL,ac,ad,bj) = {
372- let bM = aN(ac)
373- let br = bM._1
374- let bs = bM._2
375- let bt = bM._3
376- let bN = aN(ad)
377- let bv = bN._1
378- let bw = bN._2
379- let bx = bN._3
380- if (!(containsElement([J, K, L, N], aA.callerPublicKey)))
366+@Callable(ay)
367+func initWithInitRatio (bI,bJ,aa,ab,bh) = {
368+ let bK = aL(aa)
369+ let bp = bK._1
370+ let bq = bK._2
371+ let br = bK._3
372+ let bL = aL(ab)
373+ let bt = bL._1
374+ let bu = bL._2
375+ let bv = bL._3
376+ if (!(containsElement([J, K, L, M], ay.callerPublicKey)))
381377 then throw("Only admin can call this function")
382378 else if (isDefined(getBoolean(this, c)))
383379 then throw("DApp is already active")
384- else if ((ac == ad))
380+ else if ((aa == ab))
385381 then throw("Assets must be different")
386382 else {
387- let by = ((("s" + take(bs, 7)) + "_") + take(bw, 7))
388- let bz = ((((("ShareToken of SwopFi protocol for " + bs) + " and ") + bw) + " at address ") + toString(this))
389- let bA = ((bt + bx) / 2)
390- let bE = 0
391- let bF = Issue(by, bz, bE, bA, true)
392- let bG = calculateAssetId(bF)
393- let bJ = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, br), StringEntry(e, bv), IntegerEntry(h, bK), IntegerEntry(i, bL), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, ao), IntegerEntry(m, aq), bF, StringEntry(j, toBase58String(bG)), IntegerEntry(k, bE)]
394- if (bj)
395- then (bJ ++ [BooleanEntry(o, bj), IntegerEntry(p, (Y + (aa * Z)))])
396- else bJ
383+ let bw = ((("s" + take(bq, 7)) + "_") + take(bu, 7))
384+ let bx = ((((("ShareToken of SwopFi protocol for " + bq) + " and ") + bu) + " at address ") + toString(this))
385+ let by = ((br + bv) / 2)
386+ let bC = 0
387+ let bD = Issue(bw, bx, bC, by, true)
388+ let bE = calculateAssetId(bD)
389+ let bH = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bp), StringEntry(e, bt), IntegerEntry(h, bI), IntegerEntry(i, bJ), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, getIntegerValue(D, "base_fee_cpmm")), bD, StringEntry(j, toBase58String(bE)), IntegerEntry(k, bC)]
390+ if (bh)
391+ then (bH ++ [BooleanEntry(n, bh), IntegerEntry(o, (W + (Y * X)))])
392+ else bH
397393 }
398394 }
399395
400396
401397
402-@Callable(aA)
403-func keepLimitForFirstHarvest (bO) = valueOrElse(bi(), if (!(containsElement([J, K, L, N], aA.callerPublicKey)))
398+@Callable(ay)
399+func keepLimitForFirstHarvest (bM) = valueOrElse(bg(), if (!(containsElement([J, K, L, M], ay.callerPublicKey)))
404400 then throw("Only admin can call this function")
405- else [IntegerEntry(q, bO)])
401+ else [IntegerEntry(p, bM)])
406402
407403
408404
409-@Callable(aA)
410-func replenishWithTwoTokens (bP) = valueOrElse(bi(), {
411- let bm = aA.payments[0].assetId
412- let bp = aA.payments[1].assetId
413- let bl = aA.payments[0].amount
414- let bo = aA.payments[1].amount
415- let bQ = aK(bm)
416- let br = bQ._1
417- let bs = bQ._2
418- let bt = bQ._3
419- let bR = aK(bp)
420- let bv = bR._1
421- let bw = bR._2
422- let bx = bR._3
423- let bS = if (if ((ak == 0))
424- then (al == 0)
405+@Callable(ay)
406+func replenishWithTwoTokens (bN) = valueOrElse(bg(), {
407+ let bk = ay.payments[0].assetId
408+ let bn = ay.payments[1].assetId
409+ let bj = ay.payments[0].amount
410+ let bm = ay.payments[1].amount
411+ let bO = aI(bk)
412+ let bp = bO._1
413+ let bq = bO._2
414+ let br = bO._3
415+ let bP = aI(bn)
416+ let bt = bP._1
417+ let bu = bP._2
418+ let bv = bP._3
419+ let bQ = if (if ((ai == 0))
420+ then (aj == 0)
425421 else false)
426422 then true
427423 else false
428- let bT = if (bS)
429- then fraction(fraction(aD, as, bl), ar, fraction(aE, as, bo))
430- else fraction(fraction(ak, as, bl), ar, fraction(al, as, bo))
431- let bA = ((bt + bx) / 2)
432- let bU = if (bS)
433- then fraction(pow(bl, bt, 5, 1, bt, DOWN), pow(bo, bx, 5, 1, bx, DOWN), pow(10, 0, bA, 0, 0, DOWN))
434- else fraction(min([fraction(bl, as, ak), fraction(bo, as, al)]), an, as)
435- if (if ((0 > bP))
424+ let bR = if (bQ)
425+ then fraction(fraction(aB, aq, bj), ap, fraction(aC, aq, bm))
426+ else fraction(fraction(ai, aq, bj), ap, fraction(aj, aq, bm))
427+ let by = ((br + bv) / 2)
428+ let bS = if (bQ)
429+ then fraction(pow(bj, br, 5, 1, br, DOWN), pow(bm, bv, 5, 1, bv, DOWN), pow(10, 0, by, 0, 0, DOWN))
430+ else fraction(min([fraction(bj, aq, ai), fraction(bm, aq, aj)]), al, aq)
431+ if (if ((0 > bN))
436432 then true
437- else (bP > at))
438- then throw(((("Slippage tolerance must be between 0 and " + toString(at)) + " inclusively. Actual: ") + toString(bP)))
439- else if ((size(aA.payments) != 2))
433+ else (bN > ar))
434+ then throw(((("Slippage tolerance must be between 0 and " + toString(ar)) + " inclusively. Actual: ") + toString(bN)))
435+ else if ((size(ay.payments) != 2))
440436 then throw("Two attached assets expected")
441- else if (if ((bm != ae))
437+ else if (if ((bk != ac))
442438 then true
443- else (bp != af))
444- then throw(((("Incorrect assets attached. Expected: " + ac) + " and ") + ad))
445- else if (if ((((ar * (at - bP)) / at) > bT))
439+ else (bn != ad))
440+ then throw(((("Incorrect assets attached. Expected: " + aa) + " and ") + ab))
441+ else if (if ((((ap * (ar - bN)) / ar) > bR))
446442 then true
447- else (bT > ((ar * (at + bP)) / at)))
443+ else (bR > ((ap * (ar + bN)) / ar)))
448444 then throw("Incorrect assets amount: amounts must have the contract ratio")
449- else if ((bU == 0))
445+ else if ((bS == 0))
450446 then throw("Too small amount to replenish")
451- else if (!(aJ))
452- then ([ScriptTransfer(aA.caller, bl, bm), ScriptTransfer(aA.caller, bo, bp)] ++ bh())
447+ else if (!(aH))
448+ then ([ScriptTransfer(ay.caller, bj, bk), ScriptTransfer(ay.caller, bm, bn)] ++ bf())
453449 else {
454- let bH = if (containsElement(T, br))
455- then invoke(this, "stakeUnstake", [true, bl, br], nil)
450+ let bF = if (containsElement(S, bp))
451+ then invoke(this, "stakeUnstake", [true, bj, bp], nil)
456452 else 0
457- if ((bH == bH))
453+ if ((bF == bF))
458454 then {
459- let bI = if (containsElement(T, bv))
460- then invoke(this, "stakeUnstake", [true, bo, bv], nil)
455+ let bG = if (containsElement(S, bt))
456+ then invoke(this, "stakeUnstake", [true, bm, bt], nil)
461457 else 0
462- if ((bI == bI))
463- then [Reissue(am, bU, true), IntegerEntry(f, (ak + bl)), IntegerEntry(g, (al + bo)), IntegerEntry(k, (an + bU)), ScriptTransfer(aA.caller, bU, am)]
458+ if ((bG == bG))
459+ then [Reissue(ak, bS, true), IntegerEntry(f, (ai + bj)), IntegerEntry(g, (aj + bm)), IntegerEntry(k, (al + bS)), ScriptTransfer(ay.caller, bS, ak)]
464460 else throw("Strict value is not equal to itself.")
465461 }
466462 else throw("Strict value is not equal to itself.")
467463 }
468464 })
469465
470466
471467
472-@Callable(aA)
473-func withdraw () = valueOrElse(bi(), {
474- let bV = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId)
475- let ba = bV._1
476- let bW = bV._2
477- let bX = fraction(ba, ak, an)
478- let bY = fraction(ba, al, an)
479- if ((size(aA.payments) != 1))
468+@Callable(ay)
469+func withdraw () = valueOrElse(bg(), {
470+ let bT = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId)
471+ let aY = bT._1
472+ let bU = bT._2
473+ let bV = fraction(aY, ai, al)
474+ let bW = fraction(aY, aj, al)
475+ if ((size(ay.payments) != 1))
480476 then throw("One attached payment expected")
481- else if ((bW != am))
482- then throw(("Incorrect asset attached. Expected: " + toBase58String(am)))
483- else if (!(aJ))
484- then ([ScriptTransfer(aA.caller, ba, bW)] ++ bh())
477+ else if ((bU != ak))
478+ then throw(("Incorrect asset attached. Expected: " + toBase58String(ak)))
479+ else if (!(aH))
480+ then ([ScriptTransfer(ay.caller, aY, bU)] ++ bf())
485481 else {
486- let bH = if (containsElement(T, ac))
487- then invoke(this, "stakeUnstake", [false, bX, ac], nil)
482+ let bF = if (containsElement(S, aa))
483+ then invoke(this, "stakeUnstake", [false, bV, aa], nil)
488484 else 0
489- if ((bH == bH))
485+ if ((bF == bF))
490486 then {
491- let bI = if (containsElement(T, ad))
492- then invoke(this, "stakeUnstake", [false, bY, ad], nil)
487+ let bG = if (containsElement(S, ab))
488+ then invoke(this, "stakeUnstake", [false, bW, ab], nil)
493489 else 0
494- if ((bI == bI))
495- then [IntegerEntry(f, (ak - bX)), IntegerEntry(g, (al - bY)), IntegerEntry(k, (an - ba)), Burn(am, ba), ScriptTransfer(aA.caller, bX, ae), ScriptTransfer(aA.caller, bY, af)]
490+ if ((bG == bG))
491+ then [IntegerEntry(f, (ai - bV)), IntegerEntry(g, (aj - bW)), IntegerEntry(k, (al - aY)), Burn(ak, aY), ScriptTransfer(ay.caller, bV, ac), ScriptTransfer(ay.caller, bW, ad)]
496492 else throw("Strict value is not equal to itself.")
497493 }
498494 else throw("Strict value is not equal to itself.")
499495 }
500496 })
501497
502498
503499
504-@Callable(aA)
505-func exchange (bb) = valueOrElse(bi(), {
506- let bZ = $Tuple2(aA.payments[0].amount, aA.payments[0].assetId)
507- let ba = bZ._1
508- let bW = bZ._2
509- if (if ((ak == 0))
500+@Callable(ay)
501+func exchange (aZ) = valueOrElse(bg(), {
502+ let bX = $Tuple2(ay.payments[0].amount, ay.payments[0].assetId)
503+ let aY = bX._1
504+ let bU = bX._2
505+ if (if ((ai == 0))
510506 then true
511- else (al == 0))
507+ else (aj == 0))
512508 then throw("Can't exchange with zero balance")
513- else if ((0 >= bb))
514- then throw(("Minimal amount to receive must be positive. Actual: " + toString(bb)))
515- else if ((size(aA.payments) != 1))
509+ else if ((0 >= aZ))
510+ then throw(("Minimal amount to receive must be positive. Actual: " + toString(aZ)))
511+ else if ((size(ay.payments) != 1))
516512 then throw("One attached payment expected")
517- else if (!(aJ))
518- then ([ScriptTransfer(aA.caller, ba, bW)] ++ bh())
519- else if ((bW == ae))
513+ else if (!(aH))
514+ then ([ScriptTransfer(ay.caller, aY, bU)] ++ bf())
515+ else if ((bU == ac))
520516 then {
521- let ca = af
522- let cb = aZ(ba, bb, ak, al)
523- let be = cb._1
524- let bf = cb._2
525- let bg = cb._3
526- let cc = (ak + ba)
527- let cd = ((al - bf) - bg)
528- let bH = if (containsElement(T, ac))
529- then invoke(this, "stakeUnstake", [true, ba, ac], nil)
517+ let bY = ad
518+ let bZ = aX(aY, aZ, ai, aj)
519+ let bc = bZ._1
520+ let bd = bZ._2
521+ let be = bZ._3
522+ let ca = (ai + aY)
523+ let cb = ((aj - bd) - be)
524+ let bF = if (containsElement(S, aa))
525+ then invoke(this, "stakeUnstake", [true, aY, aa], nil)
530526 else 0
531- if ((bH == bH))
527+ if ((bF == bF))
532528 then {
533- let bI = if (containsElement(T, ad))
534- then invoke(this, "stakeUnstake", [false, (bf + bg), ad], nil)
529+ let bG = if (containsElement(S, ab))
530+ then invoke(this, "stakeUnstake", [false, (bd + be), ab], nil)
535531 else 0
536- if ((bI == bI))
537- then [IntegerEntry(f, cc), IntegerEntry(g, cd), ScriptTransfer(aA.caller, bf, ca), ScriptTransfer(O, bg, ca)]
532+ if ((bG == bG))
533+ then $Tuple2([IntegerEntry(f, ca), IntegerEntry(g, cb), ScriptTransfer(ay.caller, bd, bY), ScriptTransfer(N, be, bY)], $Tuple2(bd, bY))
538534 else throw("Strict value is not equal to itself.")
539535 }
540536 else throw("Strict value is not equal to itself.")
541537 }
542- else if ((bW == af))
538+ else if ((bU == ad))
543539 then {
544- let ca = ae
545- let ce = aZ(ba, bb, al, ak)
546- let be = ce._1
547- let bf = ce._2
548- let bg = ce._3
549- let cc = ((ak - bf) - bg)
550- let cd = (al + ba)
551- let bH = if (containsElement(T, ac))
552- then invoke(this, "stakeUnstake", [false, (bf + bg), ac], nil)
540+ let bY = ac
541+ let cc = aX(aY, aZ, aj, ai)
542+ let bc = cc._1
543+ let bd = cc._2
544+ let be = cc._3
545+ let ca = ((ai - bd) - be)
546+ let cb = (aj + aY)
547+ let bF = if (containsElement(S, aa))
548+ then invoke(this, "stakeUnstake", [false, (bd + be), aa], nil)
553549 else 0
554- if ((bH == bH))
550+ if ((bF == bF))
555551 then {
556- let bI = if (containsElement(T, ad))
557- then invoke(this, "stakeUnstake", [true, ba, ad], nil)
552+ let bG = if (containsElement(S, ab))
553+ then invoke(this, "stakeUnstake", [true, aY, ab], nil)
558554 else 0
559- if ((bI == bI))
560- then [IntegerEntry(f, cc), IntegerEntry(g, cd), ScriptTransfer(aA.caller, bf, ca), ScriptTransfer(O, bg, ca)]
555+ if ((bG == bG))
556+ then $Tuple2([IntegerEntry(f, ca), IntegerEntry(g, cb), ScriptTransfer(ay.caller, bd, bY), ScriptTransfer(N, be, bY)], $Tuple2(bd, bY))
561557 else throw("Strict value is not equal to itself.")
562558 }
563559 else throw("Strict value is not equal to itself.")
564560 }
565- else throw(((("Incorrect asset attached. Expected: " + ac) + " or ") + ad))
561+ else throw(((("Incorrect asset attached. Expected: " + aa) + " or ") + ab))
566562 })
567563
568564
569565
570-@Callable(aA)
571-func shutdown () = if (!(ab))
572- then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified")))
573- else if (!(containsElement([J, K, L, M], aA.callerPublicKey)))
566+@Callable(ay)
567+func shutdown () = if (!(Z))
568+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, m), "the cause wasn't specified")))
569+ else if (!(containsElement([J, K, L], ay.callerPublicKey)))
574570 then throw("Only admin can call this function")
575- else aP("Paused by admin")
571+ else aN("Paused by admin")
576572
577573
578574
579-@Callable(aA)
580-func activate () = if (ab)
575+@Callable(ay)
576+func activate () = if (Z)
581577 then throw("DApp is already active")
582- else if (!(containsElement([J, K, L, M], aA.callerPublicKey)))
578+ else if (!(containsElement([J, K, L], ay.callerPublicKey)))
583579 then throw("Only admin can call this function")
584- else [BooleanEntry(c, true), DeleteEntry(n)]
580+ else [BooleanEntry(c, true), DeleteEntry(m)]
585581
586582
587583
588-@Callable(aA)
589-func takeIntoAccountExtraFunds () = valueOrElse(bi(), {
590- let cf = (aH - ak)
591- let cg = (aI - al)
592- if ((aA.caller != O))
584+@Callable(ay)
585+func takeIntoAccountExtraFunds () = valueOrElse(bg(), {
586+ let cd = (aF - ai)
587+ let ce = (aG - aj)
588+ if ((ay.caller != N))
593589 then throw("Only the wallet can call this function")
594- else if (if ((0 > cf))
590+ else if (if ((0 > cd))
595591 then true
596- else (0 > cg))
597- then aP("Enroll amount negative")
598- else if (if ((cf == 0))
599- then (cg == 0)
592+ else (0 > ce))
593+ then aN("Enroll amount negative")
594+ else if (if ((cd == 0))
595+ then (ce == 0)
600596 else false)
601597 then throw("No money to take")
602598 else {
603- let bH = if (containsElement(T, ac))
604- then invoke(this, "stakeUnstake", [true, cf, ac], nil)
599+ let bF = if (containsElement(S, aa))
600+ then invoke(this, "stakeUnstake", [true, cd, aa], nil)
605601 else 0
606- if ((bH == bH))
602+ if ((bF == bF))
607603 then {
608- let bI = if (containsElement(T, ad))
609- then invoke(this, "stakeUnstake", [true, cg, ad], nil)
604+ let bG = if (containsElement(S, ab))
605+ then invoke(this, "stakeUnstake", [true, ce, ab], nil)
610606 else 0
611- if ((bI == bI))
612- then [IntegerEntry(f, (ak + cf)), IntegerEntry(g, (al + cg)), IntegerEntry(("last_income_" + ac), cf), IntegerEntry(("last_income_" + ad), cg)]
607+ if ((bG == bG))
608+ then [IntegerEntry(f, (ai + cd)), IntegerEntry(g, (aj + ce)), IntegerEntry(("last_income_" + aa), cd), IntegerEntry(("last_income_" + ab), ce)]
613609 else throw("Strict value is not equal to itself.")
614610 }
615611 else throw("Strict value is not equal to itself.")
616612 }
617613 })
618614
619615
620616
621-@Callable(aA)
622-func stakeUnstake (aS,aU,ch) = if ((aA.caller != this))
617+@Callable(ay)
618+func stakeUnstake (aQ,aS,cf) = if ((ay.caller != this))
623619 then throw("Only contract itself can invoke this function")
624- else if ((ch == "WAVES"))
620+ else if ((cf == "WAVES"))
625621 then {
626- let ci = addressFromStringValue(valueOrErrorMessage(getString(D, x), "No leasing pool in oracle"))
627- let cj = getBinary(this, z)
628- let ck = valueOrElse(getInteger(this, y), 0)
629- let cl = if (aS)
630- then (ck + aU)
631- else (ck - aU)
632- let cm = Lease(ci, cl)
633- let cn = calculateLeaseId(cm)
634- let co = [cm, BinaryEntry(z, cn), IntegerEntry(y, cl)]
635- let G = cj
622+ let cg = addressFromStringValue(valueOrErrorMessage(getString(D, v), "No leasing pool in oracle"))
623+ let ch = getBinary(this, x)
624+ let ci = valueOrElse(getInteger(this, w), 0)
625+ let cj = if (aQ)
626+ then (ci + aS)
627+ else (ci - aS)
628+ let ck = Lease(cg, cj)
629+ let cl = calculateLeaseId(ck)
630+ let cm = [ck, BinaryEntry(x, cl), IntegerEntry(w, cj)]
631+ let G = ch
636632 if ($isInstanceOf(G, "ByteVector"))
637633 then {
638- let cp = G
639- ([LeaseCancel(cp)] ++ co)
634+ let cn = G
635+ ([LeaseCancel(cn)] ++ cm)
640636 }
641- else co
637+ else cm
642638 }
643639 else {
644- let cq = aT(aS, aU, fromBase58String(ch))
645- let aW = cq._1
646- let cr = cq._2
647- let cs = cq._3
648- let ct = cq._4
649- let cu = invoke(cr, aW, cs, ct)
650- if ((cu == cu))
640+ let co = aR(aQ, aS, fromBase58String(cf))
641+ let aU = co._1
642+ let cp = co._2
643+ let cq = co._3
644+ let cr = co._4
645+ let cs = invoke(cp, aU, cq, cr)
646+ if ((cs == cs))
651647 then nil
652648 else throw("Strict value is not equal to itself.")
653649 }
654650
655651
656652
657-@Callable(aA)
658-func stakeAll () = valueOrElse(bi(), if (!(containsElement([J, K, L, M], aA.callerPublicKey)))
653+@Callable(ay)
654+func stakeAll () = valueOrElse(bg(), if (!(containsElement([J, K, L], ay.callerPublicKey)))
659655 then throw("Only admin can call this function")
660656 else {
661- let bH = if (containsElement(T, ac))
657+ let bF = if (containsElement(S, aa))
662658 then {
663- let cv = (ak - aB)
664- if ((cv > 0))
665- then invoke(this, "stakeUnstake", [true, cv, ac], nil)
659+ let ct = (ai - az)
660+ if ((ct > 0))
661+ then invoke(this, "stakeUnstake", [true, ct, aa], nil)
666662 else 0
667663 }
668664 else 0
669- if ((bH == bH))
665+ if ((bF == bF))
670666 then {
671- let bI = if (containsElement(T, ad))
667+ let bG = if (containsElement(S, ab))
672668 then {
673- let cw = (al - aC)
674- if ((cw > 0))
675- then invoke(this, "stakeUnstake", [true, cw, ad], nil)
669+ let cu = (aj - aA)
670+ if ((cu > 0))
671+ then invoke(this, "stakeUnstake", [true, cu, ab], nil)
676672 else 0
677673 }
678674 else 0
679- if ((bI == bI))
675+ if ((bG == bG))
680676 then nil
681677 else throw("Strict value is not equal to itself.")
682678 }
683679 else throw("Strict value is not equal to itself.")
684680 })
685681
686682
687-@Verifier(cx)
688-func cy () = {
689- let cz = {
690- let cA = if (sigVerify(cx.bodyBytes, cx.proofs[0], J))
683+@Verifier(cv)
684+func cw () = {
685+ let cx = {
686+ let cy = if (sigVerify(cv.bodyBytes, cv.proofs[0], J))
691687 then 1
692688 else 0
693- let cB = if (sigVerify(cx.bodyBytes, cx.proofs[1], K))
689+ let cz = if (sigVerify(cv.bodyBytes, cv.proofs[1], K))
694690 then 1
695691 else 0
696- let cC = if (sigVerify(cx.bodyBytes, cx.proofs[2], L))
692+ let cA = if (sigVerify(cv.bodyBytes, cv.proofs[2], L))
697693 then 1
698694 else 0
699- (((cA + cB) + cC) >= 2)
695+ (((cy + cz) + cA) >= 2)
700696 }
701- let G = cx
697+ let G = cv
702698 if ($isInstanceOf(G, "InvokeScriptTransaction"))
703699 then {
704- let cu = G
705- let cD = if ((cu.dApp == this))
706- then (cu.function == "takeIntoAccountExtraFunds")
700+ let cs = G
701+ let cB = if ((cs.dApp == this))
702+ then (cs.function == "takeIntoAccountExtraFunds")
707703 else false
708- let cE = if (if (if ((cu.dApp == W))
709- then (cu.function == "exchange")
710- else false)
711- then (size(cu.payments) == 1)
712- else false)
713- then if ((cu.payments[0].assetId == Q))
714- then true
715- else (cu.payments[0].assetId == unit)
716- else false
717- let cF = if (if (if (sigVerify(cx.bodyBytes, cx.proofs[0], J))
704+ let cC = if (if (if (sigVerify(cv.bodyBytes, cv.proofs[0], J))
718705 then true
719- else sigVerify(cx.bodyBytes, cx.proofs[0], K))
706+ else sigVerify(cv.bodyBytes, cv.proofs[0], K))
720707 then true
721- else sigVerify(cx.bodyBytes, cx.proofs[0], L))
708+ else sigVerify(cv.bodyBytes, cv.proofs[0], L))
722709 then true
723- else sigVerify(cx.bodyBytes, cx.proofs[0], N)
724- if (if (if (cD)
725- then true
726- else cE)
727- then cF
710+ else sigVerify(cv.bodyBytes, cv.proofs[0], M)
711+ if (if (cB)
712+ then cC
728713 else false)
729714 then true
730- else cz
715+ else cx
731716 }
732- else cz
717+ else cx
733718 }
734719

github/deemru/w8io/169f3d6 
405.07 ms