tx · 6uEZG5YiuwUzHjiQkEj16Xdqa5WoHdmjsmQ13JDQnqT3

3MqpghDrn9X96AXTro1agBNF4bjPGjTFqQG:  -0.14000000 Waves

2022.06.01 11:16 [2077031] smart account 3MqpghDrn9X96AXTro1agBNF4bjPGjTFqQG > SELF 0.00000000 Waves

{ "type": 13, "id": "6uEZG5YiuwUzHjiQkEj16Xdqa5WoHdmjsmQ13JDQnqT3", "fee": 14000000, "feeAssetId": null, "timestamp": 1654071364631, "version": 2, "chainId": 84, "sender": "3MqpghDrn9X96AXTro1agBNF4bjPGjTFqQG", "senderPublicKey": "H7cLyENG3Lny5pE9EtuvpW7mUc8Ds92sQshADBVP4Zm6", "proofs": [ "3ZKK7ntefKsNy5PgX5K3oZcf6GxoqZzm7MoogXv2nYMeJ7LyCUNWHkxR2neyaDPGLVWbwzd2Ztds8N7qh41krrGk", "2TNQU3anE3DZq6oB1a1Do1DzeHMMC1b1VrDEsq47zYepVWpy3ELwVQmfhJo5MRmihR4ZprGrtk13xpfL9QhQkFPe" ], "script": "base64:AAIFAAAAAAAAADAIAhIDCgEEEgcKBQEBCAgEEgMKAQESAwoBARIAEgMKAQESABIAEgASBQoDBAEIEgAAAABaAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAIa1ZlcnNpb24CAAAAB3ZlcnNpb24AAAAAB2tBY3RpdmUCAAAABmFjdGl2ZQAAAAAJa0Fzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAlrQXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAACWtCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAlrQmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAANa0JhbGFuY2VJbml0QQIAAAAMQV9hc3NldF9pbml0AAAAAA1rQmFsYW5jZUluaXRCAgAAAAxCX2Fzc2V0X2luaXQAAAAADWtTaGFyZUFzc2V0SWQCAAAADnNoYXJlX2Fzc2V0X2lkAAAAABFrU2hhc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cwcEAAAADXNpZ25lZEJ5QWRtaW4DAwMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTEGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkyBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MwYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABFhZG1pbkludm9rZVB1YktleQMDBQAAABNjYWxsVGFrZUludG9BY2NvdW50BQAAAA1zaWduZWRCeUFkbWluBwYFAAAAE211bHRpU2lnbmVkQnlBZG1pbnMFAAAAE211bHRpU2lnbmVkQnlBZG1pbnM3Gx4f", "height": 2077031, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BWrPjpKXpNiZtncGchV9mryyd8BKpaPr1cqvaQZSjy1p Next: 9MrgxPGKEDVFiGHeeS3mt8pPQUAtHFSHLVPSmKkwa3bB Diff:
OldNewDifferences
4949
5050 let x = "leasing_id"
5151
52-let y = "admin_pub_1"
52+let y = "discounts"
5353
54-let z = "admin_pub_2"
54+let z = "discount_values"
5555
56-let A = "admin_pub_3"
56+let A = "_SWOP_amount"
5757
58-let B = "admin_invoke_pub"
58+let B = "admin_pub_1"
5959
60-let C = "money_box_address"
60+let C = "admin_pub_2"
6161
62-let D = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
62+let D = "admin_pub_3"
6363
64-func E (F) = {
65- let G = getString(D, F)
66- if ($isInstanceOf(G, "String"))
64+let E = "admin_invoke_pub"
65+
66+let F = "money_box_address"
67+
68+let G = "governance_address"
69+
70+let H = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
71+
72+func I (J) = {
73+ let K = getString(H, J)
74+ if ($isInstanceOf(K, "String"))
6775 then {
68- let H = G
69- fromBase58String(H)
76+ let L = K
77+ fromBase58String(L)
7078 }
7179 else {
72- let I = G
73- throw((F + "is empty"))
80+ let M = K
81+ throw((J + "is empty"))
7482 }
7583 }
7684
7785
78-let J = E(y)
86+let N = I(B)
7987
80-let K = E(z)
88+let O = I(C)
8189
82-let L = E(A)
90+let P = I(D)
8391
84-let M = E(B)
92+let Q = I(E)
8593
86-let N = Address(E(C))
94+let R = Address(I(F))
8795
88-let O = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
96+let S = Address(I(G))
8997
90-let P = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
98+let T = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
9199
92-let Q = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
100+let U = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
93101
94-let R = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
102+let V = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
95103
96-let S = ["WAVES", toBase58String(P), toBase58String(R)]
104+let W = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
97105
98-let T = Address(E(t))
106+let X = ["WAVES", toBase58String(U), toBase58String(W)]
99107
100-let U = Address(E(u))
108+let Y = Address(I(t))
101109
102-let V = valueOrErrorMessage(getInteger(O, q), "Empty kBasePeriod")
110+let Z = Address(I(u))
103111
104-let W = valueOrErrorMessage(getInteger(O, s), "Empty kStartHeight")
112+let aa = valueOrErrorMessage(getInteger(T, q), "Empty kBasePeriod")
105113
106-let X = valueOrErrorMessage(getInteger(O, r), "Empty kPeriodLength")
114+let ab = valueOrErrorMessage(getInteger(T, s), "Empty kStartHeight")
107115
108-let Y = ((V + ((height - W) / X)) + 3)
116+let ac = valueOrErrorMessage(getInteger(T, r), "Empty kPeriodLength")
109117
110-let Z = getBooleanValue(this, c)
118+let ad = ((aa + ((height - ab) / ac)) + 3)
111119
112-let aa = getStringValue(this, d)
120+let ae = getBooleanValue(this, c)
113121
114-let ab = getStringValue(this, e)
122+let af = getStringValue(this, d)
115123
116-let ac = if ((aa == "WAVES"))
124+let ag = getStringValue(this, e)
125+
126+let ah = if ((af == "WAVES"))
117127 then unit
118- else fromBase58String(aa)
128+ else fromBase58String(af)
119129
120-let ad = if ((ab == "WAVES"))
130+let ai = if ((ag == "WAVES"))
121131 then unit
122- else fromBase58String(ab)
132+ else fromBase58String(ag)
123133
124-let ae = {
125- let G = ac
126- if ($isInstanceOf(G, "ByteVector"))
134+let aj = {
135+ let K = ah
136+ if ($isInstanceOf(K, "ByteVector"))
127137 then {
128- let af = G
129- value(assetInfo(af)).name
138+ let ak = K
139+ value(assetInfo(ak)).name
130140 }
131- else if ($isInstanceOf(G, "Unit"))
141+ else if ($isInstanceOf(K, "Unit"))
132142 then {
133- let ag = G
143+ let al = K
134144 "WAVES"
135145 }
136146 else throw("Match error")
137147 }
138148
139-let ah = {
140- let G = ad
141- if ($isInstanceOf(G, "ByteVector"))
149+let am = {
150+ let K = ai
151+ if ($isInstanceOf(K, "ByteVector"))
142152 then {
143- let af = G
144- value(assetInfo(af)).name
153+ let ak = K
154+ value(assetInfo(ak)).name
145155 }
146- else if ($isInstanceOf(G, "Unit"))
156+ else if ($isInstanceOf(K, "Unit"))
147157 then {
148- let ag = G
158+ let al = K
149159 "WAVES"
150160 }
151161 else throw("Match error")
152162 }
153163
154-let ai = getIntegerValue(this, f)
164+let an = getIntegerValue(this, f)
155165
156-let aj = getIntegerValue(this, g)
166+let ao = getIntegerValue(this, g)
157167
158-let ak = fromBase58String(getStringValue(this, j))
168+let ap = fromBase58String(getStringValue(this, j))
159169
160-let al = getIntegerValue(this, k)
170+let aq = getIntegerValue(this, k)
161171
162-let am = getIntegerValue(this, l)
172+let ar = getIntegerValue(this, l)
163173
164-let an = fraction(am, 40, 100)
174+let as = fraction(ar, 40, 100)
165175
166-let ao = 1000000
176+let at = 1000000
167177
168-let ap = 1000
178+let au = 1000
169179
170-let aq = 100000000
180+let av = 100000000
171181
172-let ar = 1000
182+let aw = 1000
173183
174-let as = 8
184+let ax = 8
175185
176-func at (au) = {
177- let G = au
178- if ($isInstanceOf(G, "ByteVector"))
186+func ay (az) = {
187+ let K = az
188+ if ($isInstanceOf(K, "ByteVector"))
179189 then {
180- let af = G
181- assetBalance(this, af)
190+ let ak = K
191+ assetBalance(this, ak)
182192 }
183- else if ($isInstanceOf(G, "Unit"))
193+ else if ($isInstanceOf(K, "Unit"))
184194 then {
185- let ag = G
195+ let al = K
186196 wavesBalance(this).available
187197 }
188198 else throw("Match error")
189199 }
190200
191201
192-func av (au) = {
193- let aw = {
194- let G = au
195- if ($isInstanceOf(G, "ByteVector"))
202+func aA (az) = {
203+ let aB = {
204+ let K = az
205+ if ($isInstanceOf(K, "ByteVector"))
196206 then {
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)))
207+ let aC = K
208+ if ((aC == U))
209+ then getInteger(Y, ((("rpd_balance_" + toBase58String(aC)) + "_") + toString(this)))
210+ else if ((aC == W))
211+ then getInteger(Z, ((("%s%s%s__stakingBalance__" + toBase58String(aC)) + "__") + toString(this)))
202212 else 0
203213 }
204- else if ($isInstanceOf(G, "Unit"))
214+ else if ($isInstanceOf(K, "Unit"))
205215 then valueOrElse(getInteger(this, w), 0)
206216 else throw("Match error")
207217 }
208- let G = aw
209- if ($isInstanceOf(G, "Int"))
218+ let K = aB
219+ if ($isInstanceOf(K, "Int"))
210220 then {
211- let ay = G
212- ay
221+ let aD = K
222+ aD
213223 }
214224 else 0
215225 }
216226
217227
218-let az = av(ac)
228+let aE = aA(ah)
219229
220-let aA = av(ad)
230+let aF = aA(ai)
221231
222-let aB = getIntegerValue(this, h)
232+let aG = getIntegerValue(this, h)
223233
224-let aC = getIntegerValue(this, i)
234+let aH = getIntegerValue(this, i)
225235
226-let aD = (ai - az)
236+let aI = (an - aE)
227237
228-let aE = (aj - aA)
238+let aJ = (ao - aF)
229239
230-let aF = (at(ac) + az)
240+let aK = (ay(ah) + aE)
231241
232-let aG = (at(ad) + aA)
242+let aL = (ay(ai) + aF)
233243
234-let aH = if ((aF >= ai))
235- then (aG >= aj)
244+let aM = if ((aK >= an))
245+ then (aL >= ao)
236246 else false
237247
238-func aI (au) = {
239- let G = au
240- if ($isInstanceOf(G, "ByteVector"))
248+func aN (az) = {
249+ let K = az
250+ if ($isInstanceOf(K, "ByteVector"))
241251 then {
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)
252+ let ak = K
253+ let aO = toBase58String(ak)
254+ let aP = valueOrErrorMessage(assetInfo(ak), (("Asset " + aO) + " doesn't exist"))
255+ $Tuple3(aO, aP.name, aP.decimals)
246256 }
247- else if ($isInstanceOf(G, "Unit"))
257+ else if ($isInstanceOf(K, "Unit"))
248258 then {
249- let ag = G
259+ let al = K
250260 $Tuple3("WAVES", "WAVES", 8)
251261 }
252262 else throw("Match error")
253263 }
254264
255265
256-func aL (aM) = if ((aM == "WAVES"))
266+func aQ (aR) = if ((aR == "WAVES"))
257267 then $Tuple3("WAVES", "WAVES", 8)
258268 else {
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)
269+ let aO = aR
270+ let ak = fromBase58String(aR)
271+ let aP = valueOrErrorMessage(assetInfo(ak), (("Asset " + aO) + " doesn't exist"))
272+ $Tuple3(aO, aP.name, aP.decimals)
263273 }
264274
265275
266-func aN (aO) = [BooleanEntry(c, false), StringEntry(m, aO)]
276+func aS (aT) = [BooleanEntry(c, false), StringEntry(m, aT)]
267277
268278
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)
279+func aU (aV,az) = if (aV)
280+ then if ((az == U))
281+ then $Tuple2("lockNeutrino", Y)
282+ else $Tuple2("startStaking", Z)
283+ else if ((az == U))
284+ then $Tuple2("unlockNeutrino", Y)
285+ else $Tuple2("stopStaking", Z)
276286
277287
278-func aR (aQ,aS,au) = if (aQ)
288+func aW (aV,aX,az) = if (aV)
279289 then {
280- let aT = aP(aQ, au)
281- let aU = aT._1
282- let aV = aT._2
283- $Tuple4(aU, aV, nil, [AttachedPayment(au, aS)])
290+ let aY = aU(aV, az)
291+ let aZ = aY._1
292+ let ba = aY._2
293+ $Tuple4(aZ, ba, nil, [AttachedPayment(az, aX)])
284294 }
285295 else {
286- let aW = aP(aQ, au)
287- let aU = aW._1
288- let aV = aW._2
289- $Tuple4(aU, aV, [aS, toBase58String(au)], nil)
296+ let bb = aU(aV, az)
297+ let aZ = bb._1
298+ let ba = bb._2
299+ $Tuple4(aZ, ba, [aX, toBase58String(az)], nil)
290300 }
291301
292302
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)
303+func bc (bd) = {
304+ let be = valueOrElse(getInteger(S, (toString(bd) + A)), 0)
305+ let bf = split(getStringValue(H, z), ",")
306+ let bg = split(getStringValue(H, y), ",")
307+ if (if ((be >= parseIntValue(bf[0])))
308+ then (parseIntValue(bf[1]) > be)
309+ else false)
310+ then (100 - parseIntValue(bg[0]))
311+ else if (if ((be >= parseIntValue(bf[1])))
312+ then (parseIntValue(bf[2]) > be)
313+ else false)
314+ then (100 - parseIntValue(bg[1]))
315+ else if (if ((be >= parseIntValue(bf[2])))
316+ then (parseIntValue(bf[3]) > be)
317+ else false)
318+ then (100 - parseIntValue(bg[2]))
319+ else if (if ((be >= parseIntValue(bf[3])))
320+ then (parseIntValue(bf[4]) > be)
321+ else false)
322+ then (100 - parseIntValue(bg[3]))
323+ else if ((be >= parseIntValue(bf[4])))
324+ then (100 - parseIntValue(bg[4]))
325+ else 100
300326 }
301327
302328
303-func bf () = aN(((((((((((((((("Suspicious state. Actual balances: " + toString(aF)) + " ") + ae) + ", ") + toString(aG)) + " ") + ah) + ". State: ") + toString(ai)) + " ") + ae) + ", ") + toString(aj)) + " ") + ah))
329+func bh (bi,bj,bk,bl,bm) = {
330+ let bn = fraction(bl, bi, (bi + bk))
331+ let bo = bc(bm)
332+ let bp = fraction(bn, (at - fraction(ar, bo, 100, CEILING)), at)
333+ let bq = fraction(bn, fraction(as, bo, 100, CEILING), at)
334+ if ((bj > bp))
335+ then throw(((("Calculated amount to receive " + toString(bp)) + " is less than specified minimum ") + toString(bj)))
336+ else $Tuple3(bn, bp, bq)
337+ }
304338
305339
306-func bg () = if (Z)
340+func br () = aS(((((((((((((((("Suspicious state. Actual balances: " + toString(aK)) + " ") + aj) + ", ") + toString(aL)) + " ") + am) + ". State: ") + toString(an)) + " ") + aj) + ", ") + toString(ao)) + " ") + am))
341+
342+
343+func bs () = if (ae)
307344 then unit
308345 else throw("DApp is inactive at this moment")
309346
310347
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)))
348+@Callable(aD)
349+func init (bt) = {
350+ let bu = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId)
351+ let bv = bu._1
352+ let bw = bu._2
353+ let bx = $Tuple2(aD.payments[1].amount, aD.payments[1].assetId)
354+ let by = bx._1
355+ let bz = bx._2
356+ let bA = aN(bw)
357+ let bB = bA._1
358+ let bC = bA._2
359+ let bD = bA._3
360+ let bE = aN(bz)
361+ let bF = bE._1
362+ let bG = bE._2
363+ let bH = bE._3
364+ if (!(containsElement([N, O, P, Q], aD.callerPublicKey)))
328365 then throw("Only admin can call this function")
329366 else if (isDefined(getBoolean(this, c)))
330367 then throw("DApp is already active")
331- else if ((bk == bn))
368+ else if ((bw == bz))
332369 then throw("Assets must be different")
333370 else {
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)
371+ let bI = ((("s" + take(bC, 7)) + "_") + take(bG, 7))
372+ let bJ = ((((("ShareToken of SwopFi protocol for " + bC) + " and ") + bG) + " at address ") + toString(this))
373+ let bK = ((bD + bH) / 2)
374+ let bL = pow(bv, bD, 5, 1, bD, DOWN)
375+ let bM = pow(by, bH, 5, 1, bH, DOWN)
376+ let bN = pow(10, 0, bK, 0, 0, DOWN)
377+ let bO = fraction(bL, bM, bN)
378+ let bP = Issue(bI, bJ, bO, bK, true)
379+ let bQ = calculateAssetId(bP)
380+ let bR = if (containsElement(X, bB))
381+ then invoke(this, "stakeUnstake", [true, bv, bB], nil)
345382 else 0
346- if ((bF == bF))
383+ if ((bR == bR))
347384 then {
348- let bG = if (containsElement(S, bt))
349- then invoke(this, "stakeUnstake", [true, bm, bt], nil)
385+ let bS = if (containsElement(X, bF))
386+ then invoke(this, "stakeUnstake", [true, by, bF], nil)
350387 else 0
351- if ((bG == bG))
388+ if ((bS == bS))
352389 then {
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
390+ let bT = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bB), StringEntry(e, bF), IntegerEntry(f, bv), IntegerEntry(g, by), IntegerEntry(l, getIntegerValue(H, "base_fee_cpmm")), bP, StringEntry(j, toBase58String(bQ)), IntegerEntry(k, bO), ScriptTransfer(aD.caller, bO, bQ)]
391+ if (bt)
392+ then (bT ++ [BooleanEntry(n, bt), IntegerEntry(o, (ab + (ad * ac)))])
393+ else bT
357394 }
358395 else throw("Strict value is not equal to itself.")
359396 }
363400
364401
365402
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)))
403+@Callable(aD)
404+func initWithInitRatio (bU,bV,af,ag,bt) = {
405+ let bW = aQ(af)
406+ let bB = bW._1
407+ let bC = bW._2
408+ let bD = bW._3
409+ let bX = aQ(ag)
410+ let bF = bX._1
411+ let bG = bX._2
412+ let bH = bX._3
413+ if (!(containsElement([N, O, P, Q], aD.callerPublicKey)))
377414 then throw("Only admin can call this function")
378415 else if (isDefined(getBoolean(this, c)))
379416 then throw("DApp is already active")
380- else if ((aa == ab))
417+ else if ((af == ag))
381418 then throw("Assets must be different")
382419 else {
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
420+ let bI = ((("s" + take(bC, 7)) + "_") + take(bG, 7))
421+ let bJ = ((((("ShareToken of SwopFi protocol for " + bC) + " and ") + bG) + " at address ") + toString(this))
422+ let bK = ((bD + bH) / 2)
423+ let bO = 0
424+ let bP = Issue(bI, bJ, bO, bK, true)
425+ let bQ = calculateAssetId(bP)
426+ let bT = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bB), StringEntry(e, bF), IntegerEntry(h, bU), IntegerEntry(i, bV), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, getIntegerValue(H, "base_fee_cpmm")), bP, StringEntry(j, toBase58String(bQ)), IntegerEntry(k, bO)]
427+ if (bt)
428+ then (bT ++ [BooleanEntry(n, bt), IntegerEntry(o, (ab + (ad * ac)))])
429+ else bT
393430 }
394431 }
395432
396433
397434
398-@Callable(ay)
399-func keepLimitForFirstHarvest (bM) = valueOrElse(bg(), if (!(containsElement([J, K, L, M], ay.callerPublicKey)))
435+@Callable(aD)
436+func keepLimitForFirstHarvest (bY) = valueOrElse(bs(), if (!(containsElement([N, O, P, Q], aD.callerPublicKey)))
400437 then throw("Only admin can call this function")
401- else [IntegerEntry(p, bM)])
438+ else [IntegerEntry(p, bY)])
402439
403440
404441
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)
442+@Callable(aD)
443+func replenishWithTwoTokens (bZ) = valueOrElse(bs(), {
444+ let bw = aD.payments[0].assetId
445+ let bz = aD.payments[1].assetId
446+ let bv = aD.payments[0].amount
447+ let by = aD.payments[1].amount
448+ let ca = aN(bw)
449+ let bB = ca._1
450+ let bC = ca._2
451+ let bD = ca._3
452+ let cb = aN(bz)
453+ let bF = cb._1
454+ let bG = cb._2
455+ let bH = cb._3
456+ let cc = if (if ((an == 0))
457+ then (ao == 0)
421458 else false)
422459 then true
423460 else false
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))
461+ let cd = if (cc)
462+ then fraction(fraction(aG, av, bv), au, fraction(aH, av, by))
463+ else fraction(fraction(an, av, bv), au, fraction(ao, av, by))
464+ let bK = ((bD + bH) / 2)
465+ let ce = if (cc)
466+ then fraction(pow(bv, bD, 5, 1, bD, DOWN), pow(by, bH, 5, 1, bH, DOWN), pow(10, 0, bK, 0, 0, DOWN))
467+ else fraction(min([fraction(bv, av, an), fraction(by, av, ao)]), aq, av)
468+ if (if ((0 > bZ))
432469 then true
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))
470+ else (bZ > aw))
471+ then throw(((("Slippage tolerance must be between 0 and " + toString(aw)) + " inclusively. Actual: ") + toString(bZ)))
472+ else if ((size(aD.payments) != 2))
436473 then throw("Two attached assets expected")
437- else if (if ((bk != ac))
474+ else if (if ((bw != ah))
438475 then true
439- else (bn != ad))
440- then throw(((("Incorrect assets attached. Expected: " + aa) + " and ") + ab))
441- else if (if ((((ap * (ar - bN)) / ar) > bR))
476+ else (bz != ai))
477+ then throw(((("Incorrect assets attached. Expected: " + af) + " and ") + ag))
478+ else if (if ((((au * (aw - bZ)) / aw) > cd))
442479 then true
443- else (bR > ((ap * (ar + bN)) / ar)))
480+ else (cd > ((au * (aw + bZ)) / aw)))
444481 then throw("Incorrect assets amount: amounts must have the contract ratio")
445- else if ((bS == 0))
482+ else if ((ce == 0))
446483 then throw("Too small amount to replenish")
447- else if (!(aH))
448- then ([ScriptTransfer(ay.caller, bj, bk), ScriptTransfer(ay.caller, bm, bn)] ++ bf())
484+ else if (!(aM))
485+ then ([ScriptTransfer(aD.caller, bv, bw), ScriptTransfer(aD.caller, by, bz)] ++ br())
449486 else {
450- let bF = if (containsElement(S, bp))
451- then invoke(this, "stakeUnstake", [true, bj, bp], nil)
487+ let bR = if (containsElement(X, bB))
488+ then invoke(this, "stakeUnstake", [true, bv, bB], nil)
452489 else 0
453- if ((bF == bF))
490+ if ((bR == bR))
454491 then {
455- let bG = if (containsElement(S, bt))
456- then invoke(this, "stakeUnstake", [true, bm, bt], nil)
492+ let bS = if (containsElement(X, bF))
493+ then invoke(this, "stakeUnstake", [true, by, bF], nil)
457494 else 0
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)]
495+ if ((bS == bS))
496+ then [Reissue(ap, ce, true), IntegerEntry(f, (an + bv)), IntegerEntry(g, (ao + by)), IntegerEntry(k, (aq + ce)), ScriptTransfer(aD.caller, ce, ap)]
460497 else throw("Strict value is not equal to itself.")
461498 }
462499 else throw("Strict value is not equal to itself.")
465502
466503
467504
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))
505+@Callable(aD)
506+func withdraw () = valueOrElse(bs(), {
507+ let cf = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId)
508+ let bi = cf._1
509+ let cg = cf._2
510+ let ch = fraction(bi, an, aq)
511+ let ci = fraction(bi, ao, aq)
512+ if ((size(aD.payments) != 1))
476513 then throw("One attached payment expected")
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())
514+ else if ((cg != ap))
515+ then throw(("Incorrect asset attached. Expected: " + toBase58String(ap)))
516+ else if (!(aM))
517+ then ([ScriptTransfer(aD.caller, bi, cg)] ++ br())
481518 else {
482- let bF = if (containsElement(S, aa))
483- then invoke(this, "stakeUnstake", [false, bV, aa], nil)
519+ let bR = if (containsElement(X, af))
520+ then invoke(this, "stakeUnstake", [false, ch, af], nil)
484521 else 0
485- if ((bF == bF))
522+ if ((bR == bR))
486523 then {
487- let bG = if (containsElement(S, ab))
488- then invoke(this, "stakeUnstake", [false, bW, ab], nil)
524+ let bS = if (containsElement(X, ag))
525+ then invoke(this, "stakeUnstake", [false, ci, ag], nil)
489526 else 0
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)]
527+ if ((bS == bS))
528+ then [IntegerEntry(f, (an - ch)), IntegerEntry(g, (ao - ci)), IntegerEntry(k, (aq - bi)), Burn(ap, bi), ScriptTransfer(aD.caller, ch, ah), ScriptTransfer(aD.caller, ci, ai)]
492529 else throw("Strict value is not equal to itself.")
493530 }
494531 else throw("Strict value is not equal to itself.")
497534
498535
499536
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))
537+@Callable(aD)
538+func exchange (bj) = valueOrElse(bs(), {
539+ let cj = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId)
540+ let bi = cj._1
541+ let cg = cj._2
542+ if (if ((an == 0))
506543 then true
507- else (aj == 0))
544+ else (ao == 0))
508545 then throw("Can't exchange with zero balance")
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))
546+ else if ((0 >= bj))
547+ then throw(("Minimal amount to receive must be positive. Actual: " + toString(bj)))
548+ else if ((size(aD.payments) != 1))
512549 then throw("One attached payment expected")
513- else if (!(aH))
514- then ([ScriptTransfer(ay.caller, aY, bU)] ++ bf())
515- else if ((bU == ac))
550+ else if (!(aM))
551+ then ([ScriptTransfer(aD.caller, bi, cg)] ++ br())
552+ else if ((cg == ah))
516553 then {
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)
554+ let ck = ai
555+ let cl = bh(bi, bj, an, ao, aD.caller)
556+ let bn = cl._1
557+ let bp = cl._2
558+ let bq = cl._3
559+ let cm = (an + bi)
560+ let cn = ((ao - bp) - bq)
561+ let bR = if (containsElement(X, af))
562+ then invoke(this, "stakeUnstake", [true, bi, af], nil)
526563 else 0
527- if ((bF == bF))
564+ if ((bR == bR))
528565 then {
529- let bG = if (containsElement(S, ab))
530- then invoke(this, "stakeUnstake", [false, (bd + be), ab], nil)
566+ let bS = if (containsElement(X, ag))
567+ then invoke(this, "stakeUnstake", [false, (bp + bq), ag], nil)
531568 else 0
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))
569+ if ((bS == bS))
570+ then $Tuple2([IntegerEntry(f, cm), IntegerEntry(g, cn), ScriptTransfer(aD.caller, bp, ck), ScriptTransfer(R, bq, ck)], $Tuple2(bp, ck))
534571 else throw("Strict value is not equal to itself.")
535572 }
536573 else throw("Strict value is not equal to itself.")
537574 }
538- else if ((bU == ad))
575+ else if ((cg == ai))
539576 then {
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)
577+ let ck = ah
578+ let co = bh(bi, bj, ao, an, aD.caller)
579+ let bn = co._1
580+ let bp = co._2
581+ let bq = co._3
582+ let cm = ((an - bp) - bq)
583+ let cn = (ao + bi)
584+ let bR = if (containsElement(X, af))
585+ then invoke(this, "stakeUnstake", [false, (bp + bq), af], nil)
549586 else 0
550- if ((bF == bF))
587+ if ((bR == bR))
551588 then {
552- let bG = if (containsElement(S, ab))
553- then invoke(this, "stakeUnstake", [true, aY, ab], nil)
589+ let bS = if (containsElement(X, ag))
590+ then invoke(this, "stakeUnstake", [true, bi, ag], nil)
554591 else 0
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))
592+ if ((bS == bS))
593+ then $Tuple2([IntegerEntry(f, cm), IntegerEntry(g, cn), ScriptTransfer(aD.caller, bp, ck), ScriptTransfer(R, bq, ck)], $Tuple2(bp, ck))
557594 else throw("Strict value is not equal to itself.")
558595 }
559596 else throw("Strict value is not equal to itself.")
560597 }
561- else throw(((("Incorrect asset attached. Expected: " + aa) + " or ") + ab))
598+ else throw(((("Incorrect asset attached. Expected: " + af) + " or ") + ag))
562599 })
563600
564601
565602
566-@Callable(ay)
567-func shutdown () = if (!(Z))
603+@Callable(aD)
604+func shutdown () = if (!(ae))
568605 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)))
606+ else if (!(containsElement([N, O, P], aD.callerPublicKey)))
570607 then throw("Only admin can call this function")
571- else aN("Paused by admin")
608+ else aS("Paused by admin")
572609
573610
574611
575-@Callable(ay)
576-func activate () = if (Z)
612+@Callable(aD)
613+func activate () = if (ae)
577614 then throw("DApp is already active")
578- else if (!(containsElement([J, K, L], ay.callerPublicKey)))
615+ else if (!(containsElement([N, O, P], aD.callerPublicKey)))
579616 then throw("Only admin can call this function")
580617 else [BooleanEntry(c, true), DeleteEntry(m)]
581618
582619
583620
584-@Callable(ay)
585-func takeIntoAccountExtraFunds () = valueOrElse(bg(), {
586- let cd = (aF - ai)
587- let ce = (aG - aj)
588- if ((ay.caller != N))
621+@Callable(aD)
622+func takeIntoAccountExtraFunds () = valueOrElse(bs(), {
623+ let cp = (aK - an)
624+ let cq = (aL - ao)
625+ if ((aD.caller != R))
589626 then throw("Only the wallet can call this function")
590- else if (if ((0 > cd))
627+ else if (if ((0 > cp))
591628 then true
592- else (0 > ce))
593- then aN("Enroll amount negative")
594- else if (if ((cd == 0))
595- then (ce == 0)
629+ else (0 > cq))
630+ then aS("Enroll amount negative")
631+ else if (if ((cp == 0))
632+ then (cq == 0)
596633 else false)
597634 then throw("No money to take")
598635 else {
599- let bF = if (containsElement(S, aa))
600- then invoke(this, "stakeUnstake", [true, cd, aa], nil)
636+ let bR = if (containsElement(X, af))
637+ then invoke(this, "stakeUnstake", [true, cp, af], nil)
601638 else 0
602- if ((bF == bF))
639+ if ((bR == bR))
603640 then {
604- let bG = if (containsElement(S, ab))
605- then invoke(this, "stakeUnstake", [true, ce, ab], nil)
641+ let bS = if (containsElement(X, ag))
642+ then invoke(this, "stakeUnstake", [true, cq, ag], nil)
606643 else 0
607- if ((bG == bG))
608- then [IntegerEntry(f, (ai + cd)), IntegerEntry(g, (aj + ce)), IntegerEntry(("last_income_" + aa), cd), IntegerEntry(("last_income_" + ab), ce)]
644+ if ((bS == bS))
645+ then [IntegerEntry(f, (an + cp)), IntegerEntry(g, (ao + cq)), IntegerEntry(("last_income_" + af), cp), IntegerEntry(("last_income_" + ag), cq)]
609646 else throw("Strict value is not equal to itself.")
610647 }
611648 else throw("Strict value is not equal to itself.")
614651
615652
616653
617-@Callable(ay)
618-func stakeUnstake (aQ,aS,cf) = if ((ay.caller != this))
654+@Callable(aD)
655+func stakeUnstake (aV,aX,cr) = if ((aD.caller != this))
619656 then throw("Only contract itself can invoke this function")
620- else if ((cf == "WAVES"))
657+ else if ((cr == "WAVES"))
621658 then {
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
632- if ($isInstanceOf(G, "ByteVector"))
659+ let cs = addressFromStringValue(valueOrErrorMessage(getString(H, v), "No leasing pool in oracle"))
660+ let ct = getBinary(this, x)
661+ let cu = valueOrElse(getInteger(this, w), 0)
662+ let cv = if (aV)
663+ then (cu + aX)
664+ else (cu - aX)
665+ let cw = Lease(cs, cv)
666+ let cx = calculateLeaseId(cw)
667+ let cy = [cw, BinaryEntry(x, cx), IntegerEntry(w, cv)]
668+ let K = ct
669+ if ($isInstanceOf(K, "ByteVector"))
633670 then {
634- let cn = G
635- ([LeaseCancel(cn)] ++ cm)
671+ let cz = K
672+ ([LeaseCancel(cz)] ++ cy)
636673 }
637- else cm
674+ else cy
638675 }
639676 else {
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))
677+ let cA = aW(aV, aX, fromBase58String(cr))
678+ let aZ = cA._1
679+ let cB = cA._2
680+ let cC = cA._3
681+ let cD = cA._4
682+ let cE = invoke(cB, aZ, cC, cD)
683+ if ((cE == cE))
647684 then nil
648685 else throw("Strict value is not equal to itself.")
649686 }
650687
651688
652689
653-@Callable(ay)
654-func stakeAll () = valueOrElse(bg(), if (!(containsElement([J, K, L], ay.callerPublicKey)))
690+@Callable(aD)
691+func stakeAll () = valueOrElse(bs(), if (!(containsElement([N, O, P], aD.callerPublicKey)))
655692 then throw("Only admin can call this function")
656693 else {
657- let bF = if (containsElement(S, aa))
694+ let bR = if (containsElement(X, af))
658695 then {
659- let ct = (ai - az)
660- if ((ct > 0))
661- then invoke(this, "stakeUnstake", [true, ct, aa], nil)
696+ let cF = (an - aE)
697+ if ((cF > 0))
698+ then invoke(this, "stakeUnstake", [true, cF, af], nil)
662699 else 0
663700 }
664701 else 0
665- if ((bF == bF))
702+ if ((bR == bR))
666703 then {
667- let bG = if (containsElement(S, ab))
704+ let bS = if (containsElement(X, ag))
668705 then {
669- let cu = (aj - aA)
670- if ((cu > 0))
671- then invoke(this, "stakeUnstake", [true, cu, ab], nil)
706+ let cG = (ao - aF)
707+ if ((cG > 0))
708+ then invoke(this, "stakeUnstake", [true, cG, ag], nil)
672709 else 0
673710 }
674711 else 0
675- if ((bG == bG))
712+ if ((bS == bS))
676713 then nil
677714 else throw("Strict value is not equal to itself.")
678715 }
680717 })
681718
682719
683-@Verifier(cv)
684-func cw () = {
685- let cx = {
686- let cy = if (sigVerify(cv.bodyBytes, cv.proofs[0], J))
720+@Verifier(cH)
721+func cI () = {
722+ let cJ = {
723+ let cK = if (sigVerify(cH.bodyBytes, cH.proofs[0], N))
687724 then 1
688725 else 0
689- let cz = if (sigVerify(cv.bodyBytes, cv.proofs[1], K))
726+ let cL = if (sigVerify(cH.bodyBytes, cH.proofs[1], O))
690727 then 1
691728 else 0
692- let cA = if (sigVerify(cv.bodyBytes, cv.proofs[2], L))
729+ let cM = if (sigVerify(cH.bodyBytes, cH.proofs[2], P))
693730 then 1
694731 else 0
695- (((cy + cz) + cA) >= 2)
732+ (((cK + cL) + cM) >= 2)
696733 }
697- let G = cv
698- if ($isInstanceOf(G, "InvokeScriptTransaction"))
734+ let K = cH
735+ if ($isInstanceOf(K, "InvokeScriptTransaction"))
699736 then {
700- let cs = G
701- let cB = if ((cs.dApp == this))
702- then (cs.function == "takeIntoAccountExtraFunds")
737+ let cE = K
738+ let cN = if ((cE.dApp == this))
739+ then (cE.function == "takeIntoAccountExtraFunds")
703740 else false
704- let cC = if (if (if (sigVerify(cv.bodyBytes, cv.proofs[0], J))
741+ let cO = if (if (if (sigVerify(cH.bodyBytes, cH.proofs[0], N))
705742 then true
706- else sigVerify(cv.bodyBytes, cv.proofs[0], K))
743+ else sigVerify(cH.bodyBytes, cH.proofs[0], O))
707744 then true
708- else sigVerify(cv.bodyBytes, cv.proofs[0], L))
745+ else sigVerify(cH.bodyBytes, cH.proofs[0], P))
709746 then true
710- else sigVerify(cv.bodyBytes, cv.proofs[0], M)
711- if (if (cB)
712- then cC
747+ else sigVerify(cH.bodyBytes, cH.proofs[0], Q)
748+ if (if (cN)
749+ then cO
713750 else false)
714751 then true
715- else cx
752+ else cJ
716753 }
717- else cx
754+ else cJ
718755 }
719756
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
2828 let m = "shutdown_cause"
2929
3030 let n = "first_harvest"
3131
3232 let o = "first_harvest_height"
3333
3434 let p = "share_limit_on_first_harvest"
3535
3636 let q = "base_period"
3737
3838 let r = "period_length"
3939
4040 let s = "start_height"
4141
4242 let t = "staking_usdnnsbt_address"
4343
4444 let u = "staking_eurn_address"
4545
4646 let v = "leasing_address"
4747
4848 let w = "leasing_amount"
4949
5050 let x = "leasing_id"
5151
52-let y = "admin_pub_1"
52+let y = "discounts"
5353
54-let z = "admin_pub_2"
54+let z = "discount_values"
5555
56-let A = "admin_pub_3"
56+let A = "_SWOP_amount"
5757
58-let B = "admin_invoke_pub"
58+let B = "admin_pub_1"
5959
60-let C = "money_box_address"
60+let C = "admin_pub_2"
6161
62-let D = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
62+let D = "admin_pub_3"
6363
64-func E (F) = {
65- let G = getString(D, F)
66- if ($isInstanceOf(G, "String"))
64+let E = "admin_invoke_pub"
65+
66+let F = "money_box_address"
67+
68+let G = "governance_address"
69+
70+let H = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
71+
72+func I (J) = {
73+ let K = getString(H, J)
74+ if ($isInstanceOf(K, "String"))
6775 then {
68- let H = G
69- fromBase58String(H)
76+ let L = K
77+ fromBase58String(L)
7078 }
7179 else {
72- let I = G
73- throw((F + "is empty"))
80+ let M = K
81+ throw((J + "is empty"))
7482 }
7583 }
7684
7785
78-let J = E(y)
86+let N = I(B)
7987
80-let K = E(z)
88+let O = I(C)
8189
82-let L = E(A)
90+let P = I(D)
8391
84-let M = E(B)
92+let Q = I(E)
8593
86-let N = Address(E(C))
94+let R = Address(I(F))
8795
88-let O = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
96+let S = Address(I(G))
8997
90-let P = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
98+let T = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
9199
92-let Q = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
100+let U = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
93101
94-let R = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
102+let V = base58'2HAJrwa8q4SxBx9cHYaBTQdBjdk5wwqdof7ccpAx2uhZ'
95103
96-let S = ["WAVES", toBase58String(P), toBase58String(R)]
104+let W = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
97105
98-let T = Address(E(t))
106+let X = ["WAVES", toBase58String(U), toBase58String(W)]
99107
100-let U = Address(E(u))
108+let Y = Address(I(t))
101109
102-let V = valueOrErrorMessage(getInteger(O, q), "Empty kBasePeriod")
110+let Z = Address(I(u))
103111
104-let W = valueOrErrorMessage(getInteger(O, s), "Empty kStartHeight")
112+let aa = valueOrErrorMessage(getInteger(T, q), "Empty kBasePeriod")
105113
106-let X = valueOrErrorMessage(getInteger(O, r), "Empty kPeriodLength")
114+let ab = valueOrErrorMessage(getInteger(T, s), "Empty kStartHeight")
107115
108-let Y = ((V + ((height - W) / X)) + 3)
116+let ac = valueOrErrorMessage(getInteger(T, r), "Empty kPeriodLength")
109117
110-let Z = getBooleanValue(this, c)
118+let ad = ((aa + ((height - ab) / ac)) + 3)
111119
112-let aa = getStringValue(this, d)
120+let ae = getBooleanValue(this, c)
113121
114-let ab = getStringValue(this, e)
122+let af = getStringValue(this, d)
115123
116-let ac = if ((aa == "WAVES"))
124+let ag = getStringValue(this, e)
125+
126+let ah = if ((af == "WAVES"))
117127 then unit
118- else fromBase58String(aa)
128+ else fromBase58String(af)
119129
120-let ad = if ((ab == "WAVES"))
130+let ai = if ((ag == "WAVES"))
121131 then unit
122- else fromBase58String(ab)
132+ else fromBase58String(ag)
123133
124-let ae = {
125- let G = ac
126- if ($isInstanceOf(G, "ByteVector"))
134+let aj = {
135+ let K = ah
136+ if ($isInstanceOf(K, "ByteVector"))
127137 then {
128- let af = G
129- value(assetInfo(af)).name
138+ let ak = K
139+ value(assetInfo(ak)).name
130140 }
131- else if ($isInstanceOf(G, "Unit"))
141+ else if ($isInstanceOf(K, "Unit"))
132142 then {
133- let ag = G
143+ let al = K
134144 "WAVES"
135145 }
136146 else throw("Match error")
137147 }
138148
139-let ah = {
140- let G = ad
141- if ($isInstanceOf(G, "ByteVector"))
149+let am = {
150+ let K = ai
151+ if ($isInstanceOf(K, "ByteVector"))
142152 then {
143- let af = G
144- value(assetInfo(af)).name
153+ let ak = K
154+ value(assetInfo(ak)).name
145155 }
146- else if ($isInstanceOf(G, "Unit"))
156+ else if ($isInstanceOf(K, "Unit"))
147157 then {
148- let ag = G
158+ let al = K
149159 "WAVES"
150160 }
151161 else throw("Match error")
152162 }
153163
154-let ai = getIntegerValue(this, f)
164+let an = getIntegerValue(this, f)
155165
156-let aj = getIntegerValue(this, g)
166+let ao = getIntegerValue(this, g)
157167
158-let ak = fromBase58String(getStringValue(this, j))
168+let ap = fromBase58String(getStringValue(this, j))
159169
160-let al = getIntegerValue(this, k)
170+let aq = getIntegerValue(this, k)
161171
162-let am = getIntegerValue(this, l)
172+let ar = getIntegerValue(this, l)
163173
164-let an = fraction(am, 40, 100)
174+let as = fraction(ar, 40, 100)
165175
166-let ao = 1000000
176+let at = 1000000
167177
168-let ap = 1000
178+let au = 1000
169179
170-let aq = 100000000
180+let av = 100000000
171181
172-let ar = 1000
182+let aw = 1000
173183
174-let as = 8
184+let ax = 8
175185
176-func at (au) = {
177- let G = au
178- if ($isInstanceOf(G, "ByteVector"))
186+func ay (az) = {
187+ let K = az
188+ if ($isInstanceOf(K, "ByteVector"))
179189 then {
180- let af = G
181- assetBalance(this, af)
190+ let ak = K
191+ assetBalance(this, ak)
182192 }
183- else if ($isInstanceOf(G, "Unit"))
193+ else if ($isInstanceOf(K, "Unit"))
184194 then {
185- let ag = G
195+ let al = K
186196 wavesBalance(this).available
187197 }
188198 else throw("Match error")
189199 }
190200
191201
192-func av (au) = {
193- let aw = {
194- let G = au
195- if ($isInstanceOf(G, "ByteVector"))
202+func aA (az) = {
203+ let aB = {
204+ let K = az
205+ if ($isInstanceOf(K, "ByteVector"))
196206 then {
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)))
207+ let aC = K
208+ if ((aC == U))
209+ then getInteger(Y, ((("rpd_balance_" + toBase58String(aC)) + "_") + toString(this)))
210+ else if ((aC == W))
211+ then getInteger(Z, ((("%s%s%s__stakingBalance__" + toBase58String(aC)) + "__") + toString(this)))
202212 else 0
203213 }
204- else if ($isInstanceOf(G, "Unit"))
214+ else if ($isInstanceOf(K, "Unit"))
205215 then valueOrElse(getInteger(this, w), 0)
206216 else throw("Match error")
207217 }
208- let G = aw
209- if ($isInstanceOf(G, "Int"))
218+ let K = aB
219+ if ($isInstanceOf(K, "Int"))
210220 then {
211- let ay = G
212- ay
221+ let aD = K
222+ aD
213223 }
214224 else 0
215225 }
216226
217227
218-let az = av(ac)
228+let aE = aA(ah)
219229
220-let aA = av(ad)
230+let aF = aA(ai)
221231
222-let aB = getIntegerValue(this, h)
232+let aG = getIntegerValue(this, h)
223233
224-let aC = getIntegerValue(this, i)
234+let aH = getIntegerValue(this, i)
225235
226-let aD = (ai - az)
236+let aI = (an - aE)
227237
228-let aE = (aj - aA)
238+let aJ = (ao - aF)
229239
230-let aF = (at(ac) + az)
240+let aK = (ay(ah) + aE)
231241
232-let aG = (at(ad) + aA)
242+let aL = (ay(ai) + aF)
233243
234-let aH = if ((aF >= ai))
235- then (aG >= aj)
244+let aM = if ((aK >= an))
245+ then (aL >= ao)
236246 else false
237247
238-func aI (au) = {
239- let G = au
240- if ($isInstanceOf(G, "ByteVector"))
248+func aN (az) = {
249+ let K = az
250+ if ($isInstanceOf(K, "ByteVector"))
241251 then {
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)
252+ let ak = K
253+ let aO = toBase58String(ak)
254+ let aP = valueOrErrorMessage(assetInfo(ak), (("Asset " + aO) + " doesn't exist"))
255+ $Tuple3(aO, aP.name, aP.decimals)
246256 }
247- else if ($isInstanceOf(G, "Unit"))
257+ else if ($isInstanceOf(K, "Unit"))
248258 then {
249- let ag = G
259+ let al = K
250260 $Tuple3("WAVES", "WAVES", 8)
251261 }
252262 else throw("Match error")
253263 }
254264
255265
256-func aL (aM) = if ((aM == "WAVES"))
266+func aQ (aR) = if ((aR == "WAVES"))
257267 then $Tuple3("WAVES", "WAVES", 8)
258268 else {
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)
269+ let aO = aR
270+ let ak = fromBase58String(aR)
271+ let aP = valueOrErrorMessage(assetInfo(ak), (("Asset " + aO) + " doesn't exist"))
272+ $Tuple3(aO, aP.name, aP.decimals)
263273 }
264274
265275
266-func aN (aO) = [BooleanEntry(c, false), StringEntry(m, aO)]
276+func aS (aT) = [BooleanEntry(c, false), StringEntry(m, aT)]
267277
268278
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)
279+func aU (aV,az) = if (aV)
280+ then if ((az == U))
281+ then $Tuple2("lockNeutrino", Y)
282+ else $Tuple2("startStaking", Z)
283+ else if ((az == U))
284+ then $Tuple2("unlockNeutrino", Y)
285+ else $Tuple2("stopStaking", Z)
276286
277287
278-func aR (aQ,aS,au) = if (aQ)
288+func aW (aV,aX,az) = if (aV)
279289 then {
280- let aT = aP(aQ, au)
281- let aU = aT._1
282- let aV = aT._2
283- $Tuple4(aU, aV, nil, [AttachedPayment(au, aS)])
290+ let aY = aU(aV, az)
291+ let aZ = aY._1
292+ let ba = aY._2
293+ $Tuple4(aZ, ba, nil, [AttachedPayment(az, aX)])
284294 }
285295 else {
286- let aW = aP(aQ, au)
287- let aU = aW._1
288- let aV = aW._2
289- $Tuple4(aU, aV, [aS, toBase58String(au)], nil)
296+ let bb = aU(aV, az)
297+ let aZ = bb._1
298+ let ba = bb._2
299+ $Tuple4(aZ, ba, [aX, toBase58String(az)], nil)
290300 }
291301
292302
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)
303+func bc (bd) = {
304+ let be = valueOrElse(getInteger(S, (toString(bd) + A)), 0)
305+ let bf = split(getStringValue(H, z), ",")
306+ let bg = split(getStringValue(H, y), ",")
307+ if (if ((be >= parseIntValue(bf[0])))
308+ then (parseIntValue(bf[1]) > be)
309+ else false)
310+ then (100 - parseIntValue(bg[0]))
311+ else if (if ((be >= parseIntValue(bf[1])))
312+ then (parseIntValue(bf[2]) > be)
313+ else false)
314+ then (100 - parseIntValue(bg[1]))
315+ else if (if ((be >= parseIntValue(bf[2])))
316+ then (parseIntValue(bf[3]) > be)
317+ else false)
318+ then (100 - parseIntValue(bg[2]))
319+ else if (if ((be >= parseIntValue(bf[3])))
320+ then (parseIntValue(bf[4]) > be)
321+ else false)
322+ then (100 - parseIntValue(bg[3]))
323+ else if ((be >= parseIntValue(bf[4])))
324+ then (100 - parseIntValue(bg[4]))
325+ else 100
300326 }
301327
302328
303-func bf () = aN(((((((((((((((("Suspicious state. Actual balances: " + toString(aF)) + " ") + ae) + ", ") + toString(aG)) + " ") + ah) + ". State: ") + toString(ai)) + " ") + ae) + ", ") + toString(aj)) + " ") + ah))
329+func bh (bi,bj,bk,bl,bm) = {
330+ let bn = fraction(bl, bi, (bi + bk))
331+ let bo = bc(bm)
332+ let bp = fraction(bn, (at - fraction(ar, bo, 100, CEILING)), at)
333+ let bq = fraction(bn, fraction(as, bo, 100, CEILING), at)
334+ if ((bj > bp))
335+ then throw(((("Calculated amount to receive " + toString(bp)) + " is less than specified minimum ") + toString(bj)))
336+ else $Tuple3(bn, bp, bq)
337+ }
304338
305339
306-func bg () = if (Z)
340+func br () = aS(((((((((((((((("Suspicious state. Actual balances: " + toString(aK)) + " ") + aj) + ", ") + toString(aL)) + " ") + am) + ". State: ") + toString(an)) + " ") + aj) + ", ") + toString(ao)) + " ") + am))
341+
342+
343+func bs () = if (ae)
307344 then unit
308345 else throw("DApp is inactive at this moment")
309346
310347
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)))
348+@Callable(aD)
349+func init (bt) = {
350+ let bu = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId)
351+ let bv = bu._1
352+ let bw = bu._2
353+ let bx = $Tuple2(aD.payments[1].amount, aD.payments[1].assetId)
354+ let by = bx._1
355+ let bz = bx._2
356+ let bA = aN(bw)
357+ let bB = bA._1
358+ let bC = bA._2
359+ let bD = bA._3
360+ let bE = aN(bz)
361+ let bF = bE._1
362+ let bG = bE._2
363+ let bH = bE._3
364+ if (!(containsElement([N, O, P, Q], aD.callerPublicKey)))
328365 then throw("Only admin can call this function")
329366 else if (isDefined(getBoolean(this, c)))
330367 then throw("DApp is already active")
331- else if ((bk == bn))
368+ else if ((bw == bz))
332369 then throw("Assets must be different")
333370 else {
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)
371+ let bI = ((("s" + take(bC, 7)) + "_") + take(bG, 7))
372+ let bJ = ((((("ShareToken of SwopFi protocol for " + bC) + " and ") + bG) + " at address ") + toString(this))
373+ let bK = ((bD + bH) / 2)
374+ let bL = pow(bv, bD, 5, 1, bD, DOWN)
375+ let bM = pow(by, bH, 5, 1, bH, DOWN)
376+ let bN = pow(10, 0, bK, 0, 0, DOWN)
377+ let bO = fraction(bL, bM, bN)
378+ let bP = Issue(bI, bJ, bO, bK, true)
379+ let bQ = calculateAssetId(bP)
380+ let bR = if (containsElement(X, bB))
381+ then invoke(this, "stakeUnstake", [true, bv, bB], nil)
345382 else 0
346- if ((bF == bF))
383+ if ((bR == bR))
347384 then {
348- let bG = if (containsElement(S, bt))
349- then invoke(this, "stakeUnstake", [true, bm, bt], nil)
385+ let bS = if (containsElement(X, bF))
386+ then invoke(this, "stakeUnstake", [true, by, bF], nil)
350387 else 0
351- if ((bG == bG))
388+ if ((bS == bS))
352389 then {
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
390+ let bT = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bB), StringEntry(e, bF), IntegerEntry(f, bv), IntegerEntry(g, by), IntegerEntry(l, getIntegerValue(H, "base_fee_cpmm")), bP, StringEntry(j, toBase58String(bQ)), IntegerEntry(k, bO), ScriptTransfer(aD.caller, bO, bQ)]
391+ if (bt)
392+ then (bT ++ [BooleanEntry(n, bt), IntegerEntry(o, (ab + (ad * ac)))])
393+ else bT
357394 }
358395 else throw("Strict value is not equal to itself.")
359396 }
360397 else throw("Strict value is not equal to itself.")
361398 }
362399 }
363400
364401
365402
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)))
403+@Callable(aD)
404+func initWithInitRatio (bU,bV,af,ag,bt) = {
405+ let bW = aQ(af)
406+ let bB = bW._1
407+ let bC = bW._2
408+ let bD = bW._3
409+ let bX = aQ(ag)
410+ let bF = bX._1
411+ let bG = bX._2
412+ let bH = bX._3
413+ if (!(containsElement([N, O, P, Q], aD.callerPublicKey)))
377414 then throw("Only admin can call this function")
378415 else if (isDefined(getBoolean(this, c)))
379416 then throw("DApp is already active")
380- else if ((aa == ab))
417+ else if ((af == ag))
381418 then throw("Assets must be different")
382419 else {
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
420+ let bI = ((("s" + take(bC, 7)) + "_") + take(bG, 7))
421+ let bJ = ((((("ShareToken of SwopFi protocol for " + bC) + " and ") + bG) + " at address ") + toString(this))
422+ let bK = ((bD + bH) / 2)
423+ let bO = 0
424+ let bP = Issue(bI, bJ, bO, bK, true)
425+ let bQ = calculateAssetId(bP)
426+ let bT = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bB), StringEntry(e, bF), IntegerEntry(h, bU), IntegerEntry(i, bV), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, getIntegerValue(H, "base_fee_cpmm")), bP, StringEntry(j, toBase58String(bQ)), IntegerEntry(k, bO)]
427+ if (bt)
428+ then (bT ++ [BooleanEntry(n, bt), IntegerEntry(o, (ab + (ad * ac)))])
429+ else bT
393430 }
394431 }
395432
396433
397434
398-@Callable(ay)
399-func keepLimitForFirstHarvest (bM) = valueOrElse(bg(), if (!(containsElement([J, K, L, M], ay.callerPublicKey)))
435+@Callable(aD)
436+func keepLimitForFirstHarvest (bY) = valueOrElse(bs(), if (!(containsElement([N, O, P, Q], aD.callerPublicKey)))
400437 then throw("Only admin can call this function")
401- else [IntegerEntry(p, bM)])
438+ else [IntegerEntry(p, bY)])
402439
403440
404441
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)
442+@Callable(aD)
443+func replenishWithTwoTokens (bZ) = valueOrElse(bs(), {
444+ let bw = aD.payments[0].assetId
445+ let bz = aD.payments[1].assetId
446+ let bv = aD.payments[0].amount
447+ let by = aD.payments[1].amount
448+ let ca = aN(bw)
449+ let bB = ca._1
450+ let bC = ca._2
451+ let bD = ca._3
452+ let cb = aN(bz)
453+ let bF = cb._1
454+ let bG = cb._2
455+ let bH = cb._3
456+ let cc = if (if ((an == 0))
457+ then (ao == 0)
421458 else false)
422459 then true
423460 else false
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))
461+ let cd = if (cc)
462+ then fraction(fraction(aG, av, bv), au, fraction(aH, av, by))
463+ else fraction(fraction(an, av, bv), au, fraction(ao, av, by))
464+ let bK = ((bD + bH) / 2)
465+ let ce = if (cc)
466+ then fraction(pow(bv, bD, 5, 1, bD, DOWN), pow(by, bH, 5, 1, bH, DOWN), pow(10, 0, bK, 0, 0, DOWN))
467+ else fraction(min([fraction(bv, av, an), fraction(by, av, ao)]), aq, av)
468+ if (if ((0 > bZ))
432469 then true
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))
470+ else (bZ > aw))
471+ then throw(((("Slippage tolerance must be between 0 and " + toString(aw)) + " inclusively. Actual: ") + toString(bZ)))
472+ else if ((size(aD.payments) != 2))
436473 then throw("Two attached assets expected")
437- else if (if ((bk != ac))
474+ else if (if ((bw != ah))
438475 then true
439- else (bn != ad))
440- then throw(((("Incorrect assets attached. Expected: " + aa) + " and ") + ab))
441- else if (if ((((ap * (ar - bN)) / ar) > bR))
476+ else (bz != ai))
477+ then throw(((("Incorrect assets attached. Expected: " + af) + " and ") + ag))
478+ else if (if ((((au * (aw - bZ)) / aw) > cd))
442479 then true
443- else (bR > ((ap * (ar + bN)) / ar)))
480+ else (cd > ((au * (aw + bZ)) / aw)))
444481 then throw("Incorrect assets amount: amounts must have the contract ratio")
445- else if ((bS == 0))
482+ else if ((ce == 0))
446483 then throw("Too small amount to replenish")
447- else if (!(aH))
448- then ([ScriptTransfer(ay.caller, bj, bk), ScriptTransfer(ay.caller, bm, bn)] ++ bf())
484+ else if (!(aM))
485+ then ([ScriptTransfer(aD.caller, bv, bw), ScriptTransfer(aD.caller, by, bz)] ++ br())
449486 else {
450- let bF = if (containsElement(S, bp))
451- then invoke(this, "stakeUnstake", [true, bj, bp], nil)
487+ let bR = if (containsElement(X, bB))
488+ then invoke(this, "stakeUnstake", [true, bv, bB], nil)
452489 else 0
453- if ((bF == bF))
490+ if ((bR == bR))
454491 then {
455- let bG = if (containsElement(S, bt))
456- then invoke(this, "stakeUnstake", [true, bm, bt], nil)
492+ let bS = if (containsElement(X, bF))
493+ then invoke(this, "stakeUnstake", [true, by, bF], nil)
457494 else 0
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)]
495+ if ((bS == bS))
496+ then [Reissue(ap, ce, true), IntegerEntry(f, (an + bv)), IntegerEntry(g, (ao + by)), IntegerEntry(k, (aq + ce)), ScriptTransfer(aD.caller, ce, ap)]
460497 else throw("Strict value is not equal to itself.")
461498 }
462499 else throw("Strict value is not equal to itself.")
463500 }
464501 })
465502
466503
467504
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))
505+@Callable(aD)
506+func withdraw () = valueOrElse(bs(), {
507+ let cf = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId)
508+ let bi = cf._1
509+ let cg = cf._2
510+ let ch = fraction(bi, an, aq)
511+ let ci = fraction(bi, ao, aq)
512+ if ((size(aD.payments) != 1))
476513 then throw("One attached payment expected")
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())
514+ else if ((cg != ap))
515+ then throw(("Incorrect asset attached. Expected: " + toBase58String(ap)))
516+ else if (!(aM))
517+ then ([ScriptTransfer(aD.caller, bi, cg)] ++ br())
481518 else {
482- let bF = if (containsElement(S, aa))
483- then invoke(this, "stakeUnstake", [false, bV, aa], nil)
519+ let bR = if (containsElement(X, af))
520+ then invoke(this, "stakeUnstake", [false, ch, af], nil)
484521 else 0
485- if ((bF == bF))
522+ if ((bR == bR))
486523 then {
487- let bG = if (containsElement(S, ab))
488- then invoke(this, "stakeUnstake", [false, bW, ab], nil)
524+ let bS = if (containsElement(X, ag))
525+ then invoke(this, "stakeUnstake", [false, ci, ag], nil)
489526 else 0
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)]
527+ if ((bS == bS))
528+ then [IntegerEntry(f, (an - ch)), IntegerEntry(g, (ao - ci)), IntegerEntry(k, (aq - bi)), Burn(ap, bi), ScriptTransfer(aD.caller, ch, ah), ScriptTransfer(aD.caller, ci, ai)]
492529 else throw("Strict value is not equal to itself.")
493530 }
494531 else throw("Strict value is not equal to itself.")
495532 }
496533 })
497534
498535
499536
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))
537+@Callable(aD)
538+func exchange (bj) = valueOrElse(bs(), {
539+ let cj = $Tuple2(aD.payments[0].amount, aD.payments[0].assetId)
540+ let bi = cj._1
541+ let cg = cj._2
542+ if (if ((an == 0))
506543 then true
507- else (aj == 0))
544+ else (ao == 0))
508545 then throw("Can't exchange with zero balance")
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))
546+ else if ((0 >= bj))
547+ then throw(("Minimal amount to receive must be positive. Actual: " + toString(bj)))
548+ else if ((size(aD.payments) != 1))
512549 then throw("One attached payment expected")
513- else if (!(aH))
514- then ([ScriptTransfer(ay.caller, aY, bU)] ++ bf())
515- else if ((bU == ac))
550+ else if (!(aM))
551+ then ([ScriptTransfer(aD.caller, bi, cg)] ++ br())
552+ else if ((cg == ah))
516553 then {
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)
554+ let ck = ai
555+ let cl = bh(bi, bj, an, ao, aD.caller)
556+ let bn = cl._1
557+ let bp = cl._2
558+ let bq = cl._3
559+ let cm = (an + bi)
560+ let cn = ((ao - bp) - bq)
561+ let bR = if (containsElement(X, af))
562+ then invoke(this, "stakeUnstake", [true, bi, af], nil)
526563 else 0
527- if ((bF == bF))
564+ if ((bR == bR))
528565 then {
529- let bG = if (containsElement(S, ab))
530- then invoke(this, "stakeUnstake", [false, (bd + be), ab], nil)
566+ let bS = if (containsElement(X, ag))
567+ then invoke(this, "stakeUnstake", [false, (bp + bq), ag], nil)
531568 else 0
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))
569+ if ((bS == bS))
570+ then $Tuple2([IntegerEntry(f, cm), IntegerEntry(g, cn), ScriptTransfer(aD.caller, bp, ck), ScriptTransfer(R, bq, ck)], $Tuple2(bp, ck))
534571 else throw("Strict value is not equal to itself.")
535572 }
536573 else throw("Strict value is not equal to itself.")
537574 }
538- else if ((bU == ad))
575+ else if ((cg == ai))
539576 then {
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)
577+ let ck = ah
578+ let co = bh(bi, bj, ao, an, aD.caller)
579+ let bn = co._1
580+ let bp = co._2
581+ let bq = co._3
582+ let cm = ((an - bp) - bq)
583+ let cn = (ao + bi)
584+ let bR = if (containsElement(X, af))
585+ then invoke(this, "stakeUnstake", [false, (bp + bq), af], nil)
549586 else 0
550- if ((bF == bF))
587+ if ((bR == bR))
551588 then {
552- let bG = if (containsElement(S, ab))
553- then invoke(this, "stakeUnstake", [true, aY, ab], nil)
589+ let bS = if (containsElement(X, ag))
590+ then invoke(this, "stakeUnstake", [true, bi, ag], nil)
554591 else 0
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))
592+ if ((bS == bS))
593+ then $Tuple2([IntegerEntry(f, cm), IntegerEntry(g, cn), ScriptTransfer(aD.caller, bp, ck), ScriptTransfer(R, bq, ck)], $Tuple2(bp, ck))
557594 else throw("Strict value is not equal to itself.")
558595 }
559596 else throw("Strict value is not equal to itself.")
560597 }
561- else throw(((("Incorrect asset attached. Expected: " + aa) + " or ") + ab))
598+ else throw(((("Incorrect asset attached. Expected: " + af) + " or ") + ag))
562599 })
563600
564601
565602
566-@Callable(ay)
567-func shutdown () = if (!(Z))
603+@Callable(aD)
604+func shutdown () = if (!(ae))
568605 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)))
606+ else if (!(containsElement([N, O, P], aD.callerPublicKey)))
570607 then throw("Only admin can call this function")
571- else aN("Paused by admin")
608+ else aS("Paused by admin")
572609
573610
574611
575-@Callable(ay)
576-func activate () = if (Z)
612+@Callable(aD)
613+func activate () = if (ae)
577614 then throw("DApp is already active")
578- else if (!(containsElement([J, K, L], ay.callerPublicKey)))
615+ else if (!(containsElement([N, O, P], aD.callerPublicKey)))
579616 then throw("Only admin can call this function")
580617 else [BooleanEntry(c, true), DeleteEntry(m)]
581618
582619
583620
584-@Callable(ay)
585-func takeIntoAccountExtraFunds () = valueOrElse(bg(), {
586- let cd = (aF - ai)
587- let ce = (aG - aj)
588- if ((ay.caller != N))
621+@Callable(aD)
622+func takeIntoAccountExtraFunds () = valueOrElse(bs(), {
623+ let cp = (aK - an)
624+ let cq = (aL - ao)
625+ if ((aD.caller != R))
589626 then throw("Only the wallet can call this function")
590- else if (if ((0 > cd))
627+ else if (if ((0 > cp))
591628 then true
592- else (0 > ce))
593- then aN("Enroll amount negative")
594- else if (if ((cd == 0))
595- then (ce == 0)
629+ else (0 > cq))
630+ then aS("Enroll amount negative")
631+ else if (if ((cp == 0))
632+ then (cq == 0)
596633 else false)
597634 then throw("No money to take")
598635 else {
599- let bF = if (containsElement(S, aa))
600- then invoke(this, "stakeUnstake", [true, cd, aa], nil)
636+ let bR = if (containsElement(X, af))
637+ then invoke(this, "stakeUnstake", [true, cp, af], nil)
601638 else 0
602- if ((bF == bF))
639+ if ((bR == bR))
603640 then {
604- let bG = if (containsElement(S, ab))
605- then invoke(this, "stakeUnstake", [true, ce, ab], nil)
641+ let bS = if (containsElement(X, ag))
642+ then invoke(this, "stakeUnstake", [true, cq, ag], nil)
606643 else 0
607- if ((bG == bG))
608- then [IntegerEntry(f, (ai + cd)), IntegerEntry(g, (aj + ce)), IntegerEntry(("last_income_" + aa), cd), IntegerEntry(("last_income_" + ab), ce)]
644+ if ((bS == bS))
645+ then [IntegerEntry(f, (an + cp)), IntegerEntry(g, (ao + cq)), IntegerEntry(("last_income_" + af), cp), IntegerEntry(("last_income_" + ag), cq)]
609646 else throw("Strict value is not equal to itself.")
610647 }
611648 else throw("Strict value is not equal to itself.")
612649 }
613650 })
614651
615652
616653
617-@Callable(ay)
618-func stakeUnstake (aQ,aS,cf) = if ((ay.caller != this))
654+@Callable(aD)
655+func stakeUnstake (aV,aX,cr) = if ((aD.caller != this))
619656 then throw("Only contract itself can invoke this function")
620- else if ((cf == "WAVES"))
657+ else if ((cr == "WAVES"))
621658 then {
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
632- if ($isInstanceOf(G, "ByteVector"))
659+ let cs = addressFromStringValue(valueOrErrorMessage(getString(H, v), "No leasing pool in oracle"))
660+ let ct = getBinary(this, x)
661+ let cu = valueOrElse(getInteger(this, w), 0)
662+ let cv = if (aV)
663+ then (cu + aX)
664+ else (cu - aX)
665+ let cw = Lease(cs, cv)
666+ let cx = calculateLeaseId(cw)
667+ let cy = [cw, BinaryEntry(x, cx), IntegerEntry(w, cv)]
668+ let K = ct
669+ if ($isInstanceOf(K, "ByteVector"))
633670 then {
634- let cn = G
635- ([LeaseCancel(cn)] ++ cm)
671+ let cz = K
672+ ([LeaseCancel(cz)] ++ cy)
636673 }
637- else cm
674+ else cy
638675 }
639676 else {
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))
677+ let cA = aW(aV, aX, fromBase58String(cr))
678+ let aZ = cA._1
679+ let cB = cA._2
680+ let cC = cA._3
681+ let cD = cA._4
682+ let cE = invoke(cB, aZ, cC, cD)
683+ if ((cE == cE))
647684 then nil
648685 else throw("Strict value is not equal to itself.")
649686 }
650687
651688
652689
653-@Callable(ay)
654-func stakeAll () = valueOrElse(bg(), if (!(containsElement([J, K, L], ay.callerPublicKey)))
690+@Callable(aD)
691+func stakeAll () = valueOrElse(bs(), if (!(containsElement([N, O, P], aD.callerPublicKey)))
655692 then throw("Only admin can call this function")
656693 else {
657- let bF = if (containsElement(S, aa))
694+ let bR = if (containsElement(X, af))
658695 then {
659- let ct = (ai - az)
660- if ((ct > 0))
661- then invoke(this, "stakeUnstake", [true, ct, aa], nil)
696+ let cF = (an - aE)
697+ if ((cF > 0))
698+ then invoke(this, "stakeUnstake", [true, cF, af], nil)
662699 else 0
663700 }
664701 else 0
665- if ((bF == bF))
702+ if ((bR == bR))
666703 then {
667- let bG = if (containsElement(S, ab))
704+ let bS = if (containsElement(X, ag))
668705 then {
669- let cu = (aj - aA)
670- if ((cu > 0))
671- then invoke(this, "stakeUnstake", [true, cu, ab], nil)
706+ let cG = (ao - aF)
707+ if ((cG > 0))
708+ then invoke(this, "stakeUnstake", [true, cG, ag], nil)
672709 else 0
673710 }
674711 else 0
675- if ((bG == bG))
712+ if ((bS == bS))
676713 then nil
677714 else throw("Strict value is not equal to itself.")
678715 }
679716 else throw("Strict value is not equal to itself.")
680717 })
681718
682719
683-@Verifier(cv)
684-func cw () = {
685- let cx = {
686- let cy = if (sigVerify(cv.bodyBytes, cv.proofs[0], J))
720+@Verifier(cH)
721+func cI () = {
722+ let cJ = {
723+ let cK = if (sigVerify(cH.bodyBytes, cH.proofs[0], N))
687724 then 1
688725 else 0
689- let cz = if (sigVerify(cv.bodyBytes, cv.proofs[1], K))
726+ let cL = if (sigVerify(cH.bodyBytes, cH.proofs[1], O))
690727 then 1
691728 else 0
692- let cA = if (sigVerify(cv.bodyBytes, cv.proofs[2], L))
729+ let cM = if (sigVerify(cH.bodyBytes, cH.proofs[2], P))
693730 then 1
694731 else 0
695- (((cy + cz) + cA) >= 2)
732+ (((cK + cL) + cM) >= 2)
696733 }
697- let G = cv
698- if ($isInstanceOf(G, "InvokeScriptTransaction"))
734+ let K = cH
735+ if ($isInstanceOf(K, "InvokeScriptTransaction"))
699736 then {
700- let cs = G
701- let cB = if ((cs.dApp == this))
702- then (cs.function == "takeIntoAccountExtraFunds")
737+ let cE = K
738+ let cN = if ((cE.dApp == this))
739+ then (cE.function == "takeIntoAccountExtraFunds")
703740 else false
704- let cC = if (if (if (sigVerify(cv.bodyBytes, cv.proofs[0], J))
741+ let cO = if (if (if (sigVerify(cH.bodyBytes, cH.proofs[0], N))
705742 then true
706- else sigVerify(cv.bodyBytes, cv.proofs[0], K))
743+ else sigVerify(cH.bodyBytes, cH.proofs[0], O))
707744 then true
708- else sigVerify(cv.bodyBytes, cv.proofs[0], L))
745+ else sigVerify(cH.bodyBytes, cH.proofs[0], P))
709746 then true
710- else sigVerify(cv.bodyBytes, cv.proofs[0], M)
711- if (if (cB)
712- then cC
747+ else sigVerify(cH.bodyBytes, cH.proofs[0], Q)
748+ if (if (cN)
749+ then cO
713750 else false)
714751 then true
715- else cx
752+ else cJ
716753 }
717- else cx
754+ else cJ
718755 }
719756

github/deemru/w8io/026f985 
252.03 ms