tx · 3DZ8YCVXx2CaFBKKhRL9NwqtQKm1gsmKyb92UfNmGmLv

3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37:  -0.01400000 Waves

2021.07.20 10:49 [1621662] smart account 3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37 > SELF 0.00000000 Waves

{ "type": 13, "id": "3DZ8YCVXx2CaFBKKhRL9NwqtQKm1gsmKyb92UfNmGmLv", "fee": 1400000, "feeAssetId": null, "timestamp": 1626767398944, "version": 2, "chainId": 84, "sender": "3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37", "senderPublicKey": "4bwUHdA4vTBJ1k43dYKiPYTDqm3QqiZXNGXoQstGAD1k", "proofs": [ "5M4bAFLEecK4nyRGkwXTMA2srFEXve5SF9qhZLL8msGkiQrVxDL3VzTsYwBk2hEp941Aan5KW5nUH7Ab8ukPLQjM", "1whiGkfzW3CEg4B4Gh5811AFxhKYJ4kZyQEK29hZRw4pXJEvMhKtpFUWWqfJvpPCxviNVPKcEapwFbxc3srdTJS" ], "script": "base64:AAIFAAAAAAAAACoIAhIDCgEEEgcKBQEBCAgEEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQEAAABLAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAC2tleUFzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAtrZXlBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAALa2V5QmFsYW5jZUECAAAAD0FfYXNzZXRfYmFsYW5jZQAAAAALa2V5QmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAAPa2V5QmFsYW5jZUluaXRBAgAAAAxBX2Fzc2V0X2luaXQAAAAAD2tleUJhbGFuY2VJbml0QgIAAAAMQl9hc3NldF9pbml0AAAAAA9rZXlTaGFyZUFzc2V0SWQCAAAADnNoYXJlX2Fzc2V0X2l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hZG1pblB1YktleTMGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAASYWRtaW5QdWJLZXlTdGFraW5nAwMDBQAAABNjYWxsVGFrZUludG9BY2NvdW50BgUAAAALY2FsbFN0YWtpbmcGBQAAAA9leGNoYW5nZVRvV2F2ZXMFAAAADXNpZ25lZEJ5QWRtaW4HBAAAABJhZG1pblB1YktleTFTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkxAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAAC2Roq5g==", "height": 1621662, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BsevwUmPdsc8bQu2pecN9f1BC1H1VpLiSuoWcVnX3o4L Next: EoR32oMRz2gZQHeZ4Fkvjp7nQZZzRoQzAhKwJNtbAW99 Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 4 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "1.0.0"
4343
4444 let u = "first_harvest_height"
4545
46-let v = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
46+let v = "admin_pub_1"
4747
48-let w = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
48+let w = "admin_pub_2"
4949
50-let x = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
50+let x = "admin_pub_3"
5151
52-let y = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
52+let y = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
5353
54-let z = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
54+func z (A) = {
55+ let B = getString(y, A)
56+ if ($isInstanceOf(B, "String"))
57+ then {
58+ let C = B
59+ fromBase58String(C)
60+ }
61+ else {
62+ let D = B
63+ throw("Admin public key is empty")
64+ }
65+ }
5566
56-let A = base58'5CqqMkmtXXt35KRH9LdWA3ap6TffPvTT5SHQzYrVFbBw'
5767
58-let B = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
68+let E = z(v)
5969
60-let C = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
70+let F = z(w)
6171
62-let D = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
72+let G = z(x)
6373
64-let E = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
74+let H = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
6575
66-let F = valueOrErrorMessage(getInteger(C, r), "Empty kBasePeriod")
76+let I = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
6777
68-let G = valueOrErrorMessage(getInteger(C, t), "Empty kStartHeight")
78+let J = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6979
70-let H = valueOrErrorMessage(getInteger(C, s), "Empty kPeriodLength")
80+let K = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
7181
72-let I = ((F + ((height - G) / H)) + 3)
82+let L = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
7383
74-let J = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
84+let M = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
7585
76-let K = 270000
86+let N = valueOrErrorMessage(getInteger(K, r), "Empty kBasePeriod")
7787
78-let L = getBooleanValue(this, c)
88+let O = valueOrErrorMessage(getInteger(K, t), "Empty kStartHeight")
7989
80-let M = getStringValue(this, d)
90+let P = valueOrErrorMessage(getInteger(K, s), "Empty kPeriodLength")
8191
82-let N = getStringValue(this, e)
92+let Q = ((N + ((height - O) / P)) + 3)
8393
84-let O = if ((M == "WAVES"))
94+let R = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
95+
96+let S = 270000
97+
98+let T = getBooleanValue(this, c)
99+
100+let U = getStringValue(this, d)
101+
102+let V = getStringValue(this, e)
103+
104+let W = if ((U == "WAVES"))
85105 then unit
86- else fromBase58String(M)
106+ else fromBase58String(U)
87107
88-let P = if ((N == "WAVES"))
108+let X = if ((V == "WAVES"))
89109 then unit
90- else fromBase58String(N)
110+ else fromBase58String(V)
91111
92-let Q = {
93- let R = O
94- if ($isInstanceOf(R, "ByteVector"))
112+let Y = {
113+ let B = W
114+ if ($isInstanceOf(B, "ByteVector"))
95115 then {
96- let S = R
97- value(assetInfo(S)).name
116+ let Z = B
117+ value(assetInfo(Z)).name
98118 }
99- else if ($isInstanceOf(R, "Unit"))
119+ else if ($isInstanceOf(B, "Unit"))
100120 then {
101- let T = R
121+ let aa = B
102122 "WAVES"
103123 }
104124 else throw("Match error")
105125 }
106126
107-let U = {
108- let R = P
109- if ($isInstanceOf(R, "ByteVector"))
127+let ab = {
128+ let B = X
129+ if ($isInstanceOf(B, "ByteVector"))
110130 then {
111- let S = R
112- value(assetInfo(S)).name
131+ let Z = B
132+ value(assetInfo(Z)).name
113133 }
114- else if ($isInstanceOf(R, "Unit"))
134+ else if ($isInstanceOf(B, "Unit"))
115135 then {
116- let T = R
136+ let aa = B
117137 "WAVES"
118138 }
119139 else throw("Match error")
120140 }
121141
122-let V = getIntegerValue(this, f)
142+let ac = getIntegerValue(this, f)
123143
124-let W = getIntegerValue(this, g)
144+let ad = getIntegerValue(this, g)
125145
126-let X = fromBase58String(getStringValue(this, j))
146+let ae = fromBase58String(getStringValue(this, j))
127147
128-let Y = getIntegerValue(this, k)
148+let af = getIntegerValue(this, k)
129149
130-let Z = 3000
150+let ag = 3000
131151
132-let aa = 1200
152+let ah = 1200
133153
134-let ab = 1000000
154+let ai = 1000000
135155
136-let ac = 1000
156+let aj = 1000
137157
138-let ad = 100000000
158+let ak = 100000000
139159
140-let ae = 1000
160+let al = 1000
141161
142-let af = 8
162+let am = 8
143163
144-func ag (ah) = {
145- let R = ah
146- if ($isInstanceOf(R, "ByteVector"))
164+func an (ao) = {
165+ let B = ao
166+ if ($isInstanceOf(B, "ByteVector"))
147167 then {
148- let S = R
149- assetBalance(this, S)
168+ let Z = B
169+ assetBalance(this, Z)
150170 }
151- else if ($isInstanceOf(R, "Unit"))
171+ else if ($isInstanceOf(B, "Unit"))
152172 then {
153- let T = R
173+ let aa = B
154174 wavesBalance(this).available
155175 }
156176 else throw("Match error")
157177 }
158178
159179
160-let ai = {
161- let R = getInteger(D, ((("rpd_balance_" + toBase58String(J)) + "_") + toString(this)))
162- if ($isInstanceOf(R, "Int"))
180+let ap = {
181+ let B = getInteger(L, ((("rpd_balance_" + toBase58String(R)) + "_") + toString(this)))
182+ if ($isInstanceOf(B, "Int"))
163183 then {
164- let aj = R
165- aj
184+ let aq = B
185+ aq
166186 }
167- else if ($isInstanceOf(R, "Unit"))
187+ else if ($isInstanceOf(B, "Unit"))
168188 then {
169- let ak = R
189+ let D = B
170190 0
171191 }
172192 else throw("Match error")
173193 }
174194
175-let al = getIntegerValue(this, h)
195+let ar = getIntegerValue(this, h)
176196
177-let am = getIntegerValue(this, i)
197+let as = getIntegerValue(this, i)
178198
179-let an = (V - (if ((O == J))
180- then ai
199+let at = (ac - (if ((W == R))
200+ then ap
181201 else 0))
182202
183-let ao = (W - (if ((P == J))
184- then ai
203+let au = (ad - (if ((X == R))
204+ then ap
185205 else 0))
186206
187-let ap = (ag(O) + (if ((O == J))
188- then ai
207+let av = (an(W) + (if ((W == R))
208+ then ap
189209 else 0))
190210
191-let aq = (ag(P) + (if ((P == J))
192- then ai
211+let aw = (an(X) + (if ((X == R))
212+ then ap
193213 else 0))
194214
195-let ar = if ((ap >= V))
196- then (aq >= W)
215+let ax = if ((av >= ac))
216+ then (aw >= ad)
197217 else false
198218
199-func as (ah) = {
200- let R = ah
201- if ($isInstanceOf(R, "ByteVector"))
219+func ay (ao) = {
220+ let B = ao
221+ if ($isInstanceOf(B, "ByteVector"))
202222 then {
203- let S = R
204- let at = toBase58String(S)
205- let au = valueOrErrorMessage(assetInfo(S), (("Asset " + at) + " doesn't exist"))
206- $Tuple3(at, au.name, au.decimals)
223+ let Z = B
224+ let az = toBase58String(Z)
225+ let aA = valueOrErrorMessage(assetInfo(Z), (("Asset " + az) + " doesn't exist"))
226+ $Tuple3(az, aA.name, aA.decimals)
207227 }
208- else if ($isInstanceOf(R, "Unit"))
228+ else if ($isInstanceOf(B, "Unit"))
209229 then {
210- let T = R
230+ let aa = B
211231 $Tuple3("WAVES", "WAVES", 8)
212232 }
213233 else throw("Match error")
214234 }
215235
216236
217-func av (aw) = if ((aw == "WAVES"))
237+func aB (aC) = if ((aC == "WAVES"))
218238 then $Tuple3("WAVES", "WAVES", 8)
219239 else {
220- let at = aw
221- let S = fromBase58String(aw)
222- let au = valueOrErrorMessage(assetInfo(S), (("Asset " + at) + " doesn't exist"))
223- $Tuple3(at, au.name, au.decimals)
240+ let az = aC
241+ let Z = fromBase58String(aC)
242+ let aA = valueOrErrorMessage(assetInfo(Z), (("Asset " + az) + " doesn't exist"))
243+ $Tuple3(az, aA.name, aA.decimals)
224244 }
225245
226246
227-func ax (ay) = [BooleanEntry(c, false), StringEntry(n, ay)]
247+func aD (aE) = [BooleanEntry(c, false), StringEntry(n, aE)]
228248
229249
230-func az (aA,ah) = if ((ah == J))
250+func aF (aG,ao) = if ((ao == R))
231251 then {
232- let aB = (aA - K)
233- if ((0 >= aB))
234- then throw((((("Insufficient amount " + toString(aA)) + " to deduct staking fee ") + toString(K)) + " USD-N"))
235- else aB
252+ let aH = (aG - S)
253+ if ((0 >= aH))
254+ then throw((((("Insufficient amount " + toString(aG)) + " to deduct staking fee ") + toString(S)) + " USD-N"))
255+ else aH
236256 }
237- else aA
257+ else aG
238258
239259
240-func aC (aA,aD,aE) = throw((((((((("Insufficient DApp balance to pay " + toString(aA)) + " ") + aE) + " due to staking. Available: ") + toString(aD)) + " ") + aE) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
260+func aI (aG,aJ,aK) = throw((((((((("Insufficient DApp balance to pay " + toString(aG)) + " ") + aK) + " due to staking. Available: ") + toString(aJ)) + " ") + aK) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
241261
242262
243-func aF (aG,aH) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(aG)) + " ") + Q) + " and ") + toString(aH)) + " ") + U) + " due to staking. Available: ") + toString(an)) + " ") + Q) + " and ") + toString(ao)) + " ") + U) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
263+func aL (aM,aN) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(aM)) + " ") + Y) + " and ") + toString(aN)) + " ") + ab) + " due to staking. Available: ") + toString(at)) + " ") + Y) + " and ") + toString(au)) + " ") + ab) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
244264
245265
246-func aI () = ax(((((((((((((((("Suspicious state. Actual balances: " + toString(ap)) + " ") + Q) + ", ") + toString(aq)) + " ") + U) + ". State: ") + toString(V)) + " ") + Q) + ", ") + toString(W)) + " ") + U))
266+func aO () = aD(((((((((((((((("Suspicious state. Actual balances: " + toString(av)) + " ") + Y) + ", ") + toString(aw)) + " ") + ab) + ". State: ") + toString(ac)) + " ") + Y) + ", ") + toString(ad)) + " ") + ab))
247267
248268
249-@Callable(aJ)
250-func init (aK) = {
251- let aL = $Tuple2(aJ.payments[0].amount, aJ.payments[0].assetId)
252- let aM = aL._1
253- let aN = aL._2
254- let aO = $Tuple2(aJ.payments[1].amount, aJ.payments[1].assetId)
255- let aP = aO._1
256- let aQ = aO._2
257- let aR = as(aN)
269+@Callable(aP)
270+func init (aQ) = {
271+ let aR = $Tuple2(aP.payments[0].amount, aP.payments[0].assetId)
258272 let aS = aR._1
259273 let aT = aR._2
260- let aU = aR._3
261- let aV = as(aQ)
262- let aW = aV._1
263- let aX = aV._2
264- let aY = aV._3
265- if (!(containsElement([v, w, x, z], aJ.callerPublicKey)))
274+ let aU = $Tuple2(aP.payments[1].amount, aP.payments[1].assetId)
275+ let aV = aU._1
276+ let aW = aU._2
277+ let aX = ay(aT)
278+ let aY = aX._1
279+ let aZ = aX._2
280+ let ba = aX._3
281+ let bb = ay(aW)
282+ let bc = bb._1
283+ let bd = bb._2
284+ let be = bb._3
285+ if (!(containsElement([E, F, G, I], aP.callerPublicKey)))
266286 then throw("Only admin can call this function")
267287 else if (isDefined(getBoolean(this, c)))
268288 then throw("DApp is already active")
269- else if ((aN == aQ))
289+ else if ((aT == aW))
270290 then throw("Assets must be different")
271291 else {
272- let aZ = ((("s" + take(aT, 7)) + "_") + take(aX, 7))
273- let ba = ((((("ShareToken of SwopFi protocol for " + aT) + " and ") + aX) + " at address ") + toString(this))
274- let bb = ((aU + aY) / 2)
275- let bc = fraction(pow(aM, aU, 5, 1, aU, HALFDOWN), pow(aP, aY, 5, 1, aY, HALFDOWN), pow(10, 0, bb, 0, 0, HALFDOWN))
276- let bd = Issue(aZ, ba, bc, bb, true)
277- let be = calculateAssetId(bd)
278- let bf = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aS), StringEntry(e, aW), IntegerEntry(f, aM), IntegerEntry(g, aP), IntegerEntry(l, Z), IntegerEntry(m, ab), bd, StringEntry(j, toBase58String(be)), IntegerEntry(k, bc), ScriptTransfer(aJ.caller, bc, be)]
279- if (aK)
280- then (bf ++ [BooleanEntry(o, aK), IntegerEntry(p, (G + (I * H)))])
281- else bf
292+ let bf = ((("s" + take(aZ, 7)) + "_") + take(bd, 7))
293+ let bg = ((((("ShareToken of SwopFi protocol for " + aZ) + " and ") + bd) + " at address ") + toString(this))
294+ let bh = ((ba + be) / 2)
295+ let bi = pow(aS, ba, 5, 1, ba, DOWN)
296+ let bj = pow(aV, be, 5, 1, be, DOWN)
297+ let bk = pow(10, 0, bh, 0, 0, DOWN)
298+ let bl = fraction(bi, bj, bk)
299+ let bm = Issue(bf, bg, bl, bh, true)
300+ let bn = calculateAssetId(bm)
301+ let bo = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aY), StringEntry(e, bc), IntegerEntry(f, aS), IntegerEntry(g, aV), IntegerEntry(l, ag), IntegerEntry(m, ai), bm, StringEntry(j, toBase58String(bn)), IntegerEntry(k, bl), ScriptTransfer(aP.caller, bl, bn)]
302+ if (aQ)
303+ then (bo ++ [BooleanEntry(o, aQ), IntegerEntry(p, (O + (Q * P)))])
304+ else bo
282305 }
283306 }
284307
285308
286309
287-@Callable(aJ)
288-func initWithInitRatio (bg,bh,M,N,aK) = {
289- let bi = av(M)
290- let aS = bi._1
291- let aT = bi._2
292- let aU = bi._3
293- let bj = av(N)
294- let aW = bj._1
295- let aX = bj._2
296- let aY = bj._3
297- if (!(containsElement([v, w, x, z], aJ.callerPublicKey)))
310+@Callable(aP)
311+func initWithInitRatio (bp,bq,U,V,aQ) = {
312+ let br = aB(U)
313+ let aY = br._1
314+ let aZ = br._2
315+ let ba = br._3
316+ let bs = aB(V)
317+ let bc = bs._1
318+ let bd = bs._2
319+ let be = bs._3
320+ if (!(containsElement([E, F, G, I], aP.callerPublicKey)))
298321 then throw("Only admin can call this function")
299322 else if (isDefined(getBoolean(this, c)))
300323 then throw("DApp is already active")
301- else if ((M == N))
324+ else if ((U == V))
302325 then throw("Assets must be different")
303326 else {
304- let aZ = ((("s" + take(aT, 7)) + "_") + take(aX, 7))
305- let ba = ((((("ShareToken of SwopFi protocol for " + aT) + " and ") + aX) + " at address ") + toString(this))
306- let bb = ((aU + aY) / 2)
307- let bc = 0
308- let bd = Issue(aZ, ba, bc, bb, true)
309- let be = calculateAssetId(bd)
310- let bf = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aS), StringEntry(e, aW), IntegerEntry(h, bg), IntegerEntry(i, bh), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, Z), IntegerEntry(m, ab), bd, StringEntry(j, toBase58String(be)), IntegerEntry(k, bc)]
311- if (aK)
312- then (bf ++ [BooleanEntry(o, aK), IntegerEntry(p, (G + (I * H)))])
313- else bf
327+ let bf = ((("s" + take(aZ, 7)) + "_") + take(bd, 7))
328+ let bg = ((((("ShareToken of SwopFi protocol for " + aZ) + " and ") + bd) + " at address ") + toString(this))
329+ let bh = ((ba + be) / 2)
330+ let bl = 0
331+ let bm = Issue(bf, bg, bl, bh, true)
332+ let bn = calculateAssetId(bm)
333+ let bo = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aY), StringEntry(e, bc), IntegerEntry(h, bp), IntegerEntry(i, bq), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, ag), IntegerEntry(m, ai), bm, StringEntry(j, toBase58String(bn)), IntegerEntry(k, bl)]
334+ if (aQ)
335+ then (bo ++ [BooleanEntry(o, aQ), IntegerEntry(p, (O + (Q * P)))])
336+ else bo
314337 }
315338 }
316339
317340
318341
319-@Callable(aJ)
320-func keepLimitForFirstHarvest (bk) = if (!(L))
342+@Callable(aP)
343+func keepLimitForFirstHarvest (bt) = if (!(T))
321344 then throw("DApp is inactive at this moment")
322- else if (!(containsElement([v, w, x, z], aJ.callerPublicKey)))
345+ else if (!(containsElement([E, F, G, I], aP.callerPublicKey)))
323346 then throw("Only admin can call this function")
324- else [IntegerEntry(q, bk)]
347+ else [IntegerEntry(q, bt)]
325348
326349
327350
328-@Callable(aJ)
329-func replenishWithTwoTokens (bl) = {
330- let aN = aJ.payments[0].assetId
331- let aQ = aJ.payments[1].assetId
332- let aM = az(aJ.payments[0].amount, aN)
333- let aP = az(aJ.payments[1].amount, aQ)
334- if (if ((V == 0))
335- then (W == 0)
351+@Callable(aP)
352+func replenishWithTwoTokens (bu) = {
353+ let aT = aP.payments[0].assetId
354+ let aW = aP.payments[1].assetId
355+ let aS = aF(aP.payments[0].amount, aT)
356+ let aV = aF(aP.payments[1].amount, aW)
357+ if (if ((ac == 0))
358+ then (ad == 0)
336359 else false)
337360 then {
338- let bm = as(aN)
339- let aS = bm._1
340- let aT = bm._2
341- let aU = bm._3
342- let bn = as(aQ)
343- let aW = bn._1
344- let aX = bn._2
345- let aY = bn._3
346- let bo = fraction(fraction(al, ad, aM), ac, fraction(am, ad, aP))
347- if ((aN == aQ))
361+ let bv = ay(aT)
362+ let aY = bv._1
363+ let aZ = bv._2
364+ let ba = bv._3
365+ let bw = ay(aW)
366+ let bc = bw._1
367+ let bd = bw._2
368+ let be = bw._3
369+ let bx = fraction(fraction(ar, ak, aS), aj, fraction(as, ak, aV))
370+ if ((aT == aW))
348371 then throw("Assets must be different")
349372 else {
350- let bb = ((aU + aY) / 2)
351- let bc = fraction(pow(aM, aU, 5, 1, aU, HALFDOWN), pow(aP, aY, 5, 1, aY, HALFDOWN), pow(10, 0, bb, 0, 0, HALFDOWN))
352- if (!(L))
373+ let bh = ((ba + be) / 2)
374+ let bl = fraction(pow(aS, ba, 5, 1, ba, DOWN), pow(aV, be, 5, 1, be, DOWN), pow(10, 0, bh, 0, 0, DOWN))
375+ if (!(T))
353376 then throw("DApp is inactive at this moment")
354- else if (if ((0 > bl))
377+ else if (if ((0 > bu))
355378 then true
356- else (bl > ae))
357- then throw(((("Slippage tolerance must be between 0 and " + toString(ae)) + " inclusively. Actual: ") + toString(bl)))
358- else if ((size(aJ.payments) != 2))
379+ else (bu > al))
380+ then throw(((("Slippage tolerance must be between 0 and " + toString(al)) + " inclusively. Actual: ") + toString(bu)))
381+ else if ((size(aP.payments) != 2))
359382 then throw("Two attached assets expected")
360- else if (if ((((ac * (ae - bl)) / ae) > bo))
383+ else if (if ((((aj * (al - bu)) / al) > bx))
361384 then true
362- else (bo > ((ac * (ae + bl)) / ae)))
385+ else (bx > ((aj * (al + bu)) / al)))
363386 then throw("Incorrect assets amount: amounts must have the contract ratio")
364- else if (if ((aN != O))
387+ else if (if ((aT != W))
365388 then true
366- else (aQ != P))
367- then throw(((("Incorrect assets attached. Expected: " + M) + " and ") + N))
368- else if ((bc == 0))
389+ else (aW != X))
390+ then throw(((("Incorrect assets attached. Expected: " + U) + " and ") + V))
391+ else if ((bl == 0))
369392 then throw("Too small amount to replenish")
370- else if (!(ar))
371- then ([ScriptTransfer(aJ.caller, aM, aN), ScriptTransfer(aJ.caller, aP, aQ)] ++ aI())
372- else [Reissue(X, bc, true), IntegerEntry(f, aM), IntegerEntry(g, aP), IntegerEntry(k, bc), ScriptTransfer(aJ.caller, bc, X)]
393+ else if (!(ax))
394+ then ([ScriptTransfer(aP.caller, aS, aT), ScriptTransfer(aP.caller, aV, aW)] ++ aO())
395+ else [Reissue(ae, bl, true), IntegerEntry(f, aS), IntegerEntry(g, aV), IntegerEntry(k, bl), ScriptTransfer(aP.caller, bl, ae)]
373396 }
374397 }
375398 else {
376- let bo = fraction(fraction(V, ad, aM), ac, fraction(W, ad, aP))
377- let bp = fraction(aM, ad, V)
378- let bq = fraction(aP, ad, W)
379- let br = fraction(min([bp, bq]), Y, ad)
380- if (!(L))
399+ let bx = fraction(fraction(ac, ak, aS), aj, fraction(ad, ak, aV))
400+ let by = fraction(aS, ak, ac)
401+ let bz = fraction(aV, ak, ad)
402+ let bA = fraction(min([by, bz]), af, ak)
403+ if (!(T))
381404 then throw("DApp is inactive at this moment")
382- else if (if ((0 > bl))
405+ else if (if ((0 > bu))
383406 then true
384- else (bl > ae))
385- then throw(((("Slippage tolerance must be between 0 and " + toString(ae)) + " inclusively. Actual: ") + toString(bl)))
386- else if ((size(aJ.payments) != 2))
407+ else (bu > al))
408+ then throw(((("Slippage tolerance must be between 0 and " + toString(al)) + " inclusively. Actual: ") + toString(bu)))
409+ else if ((size(aP.payments) != 2))
387410 then throw("Two attached assets expected")
388- else if (if ((aN != O))
411+ else if (if ((aT != W))
389412 then true
390- else (aQ != P))
391- then throw(((("Incorrect assets attached. Expected: " + M) + " and ") + N))
392- else if (if ((((ac * (ae - bl)) / ae) > bo))
413+ else (aW != X))
414+ then throw(((("Incorrect assets attached. Expected: " + U) + " and ") + V))
415+ else if (if ((((aj * (al - bu)) / al) > bx))
393416 then true
394- else (bo > ((ac * (ae + bl)) / ae)))
417+ else (bx > ((aj * (al + bu)) / al)))
395418 then throw("Incorrect assets amount: amounts must have the contract ratio")
396- else if ((br == 0))
419+ else if ((bA == 0))
397420 then throw("Too small amount to replenish")
398- else if (!(ar))
399- then ([ScriptTransfer(aJ.caller, aM, aN), ScriptTransfer(aJ.caller, aP, aQ)] ++ aI())
400- else [IntegerEntry(f, (V + aM)), IntegerEntry(g, (W + aP)), IntegerEntry(k, (Y + br)), Reissue(X, br, true), ScriptTransfer(aJ.caller, br, X)]
421+ else if (!(ax))
422+ then ([ScriptTransfer(aP.caller, aS, aT), ScriptTransfer(aP.caller, aV, aW)] ++ aO())
423+ else [IntegerEntry(f, (ac + aS)), IntegerEntry(g, (ad + aV)), IntegerEntry(k, (af + bA)), Reissue(ae, bA, true), ScriptTransfer(aP.caller, bA, ae)]
401424 }
402425 }
403426
404427
405428
406-@Callable(aJ)
429+@Callable(aP)
407430 func withdraw () = {
408- let bs = $Tuple2(aJ.payments[0].amount, aJ.payments[0].assetId)
409- let bt = bs._1
410- let bu = bs._2
411- let bv = az(fraction(bt, V, Y), O)
412- let bw = az(fraction(bt, W, Y), P)
413- if (!(L))
431+ let bB = $Tuple2(aP.payments[0].amount, aP.payments[0].assetId)
432+ let bC = bB._1
433+ let bD = bB._2
434+ let bE = aF(fraction(bC, ac, af), W)
435+ let bF = aF(fraction(bC, ad, af), X)
436+ if (!(T))
414437 then throw("DApp is inactive at this moment")
415- else if ((size(aJ.payments) != 1))
438+ else if ((size(aP.payments) != 1))
416439 then throw("One attached payment expected")
417- else if ((bu != X))
418- then throw(("Incorrect asset attached. Expected: " + toBase58String(X)))
419- else if (!(ar))
420- then ([ScriptTransfer(aJ.caller, bt, bu)] ++ aI())
421- else if (if ((bv > an))
440+ else if ((bD != ae))
441+ then throw(("Incorrect asset attached. Expected: " + toBase58String(ae)))
442+ else if (!(ax))
443+ then ([ScriptTransfer(aP.caller, bC, bD)] ++ aO())
444+ else if (if ((bE > at))
422445 then true
423- else (bw > ao))
424- then aF(bv, bw)
425- else [IntegerEntry(f, (V - bv)), IntegerEntry(g, (W - bw)), IntegerEntry(k, (Y - bt)), Burn(X, bt), ScriptTransfer(aJ.caller, bv, O), ScriptTransfer(aJ.caller, bw, P)]
446+ else (bF > au))
447+ then aL(bE, bF)
448+ else [IntegerEntry(f, (ac - bE)), IntegerEntry(g, (ad - bF)), IntegerEntry(k, (af - bC)), Burn(ae, bC), ScriptTransfer(aP.caller, bE, W), ScriptTransfer(aP.caller, bF, X)]
426449 }
427450
428451
429452
430-@Callable(aJ)
431-func exchange (bx) = {
432- let by = $Tuple2(aJ.payments[0].amount, aJ.payments[0].assetId)
433- let bt = by._1
434- let bu = by._2
435- func bz (bA,bB) = {
436- let bC = fraction(bB, bt, (bt + bA))
437- let bD = fraction(bC, (ab - Z), ab)
438- let bE = fraction(bC, aa, ab)
439- if ((bx > bD))
440- then throw(((("Calculated amount to receive " + toString(bD)) + " is less than specified minimum ") + toString(bx)))
441- else $Tuple3(bC, bD, bE)
453+@Callable(aP)
454+func exchange (bG) = {
455+ let bH = $Tuple2(aP.payments[0].amount, aP.payments[0].assetId)
456+ let bC = bH._1
457+ let bD = bH._2
458+ func bI (bJ,bK) = {
459+ let bL = fraction(bK, bC, (bC + bJ))
460+ let bM = fraction(bL, (ai - ag), ai)
461+ let bN = fraction(bL, ah, ai)
462+ if ((bG > bM))
463+ then throw(((("Calculated amount to receive " + toString(bM)) + " is less than specified minimum ") + toString(bG)))
464+ else $Tuple3(bL, bM, bN)
442465 }
443466
444- if (!(L))
467+ if (!(T))
445468 then throw("DApp is inactive at this moment")
446- else if (if ((V == 0))
469+ else if (if ((ac == 0))
447470 then true
448- else (W == 0))
471+ else (ad == 0))
449472 then throw("Can't exchange with zero balance")
450- else if ((0 >= bx))
451- then throw(("Minimal amount to receive must be positive. Actual: " + toString(bx)))
452- else if ((size(aJ.payments) != 1))
473+ else if ((0 >= bG))
474+ then throw(("Minimal amount to receive must be positive. Actual: " + toString(bG)))
475+ else if ((size(aP.payments) != 1))
453476 then throw("One attached payment expected")
454- else if (!(ar))
455- then ([ScriptTransfer(aJ.caller, bt, bu)] ++ aI())
456- else if ((bu == O))
477+ else if (!(ax))
478+ then ([ScriptTransfer(aP.caller, bC, bD)] ++ aO())
479+ else if ((bD == W))
457480 then {
458- let bF = P
459- let bG = bz(V, W)
460- let bC = bG._1
461- let bD = bG._2
462- let bE = bG._3
463- let bH = (V + bt)
464- let bI = ((W - bD) - bE)
465- if (if (if ((O == J))
466- then (ai >= bH)
481+ let bO = X
482+ let bP = bI(ac, ad)
483+ let bL = bP._1
484+ let bM = bP._2
485+ let bN = bP._3
486+ let bQ = (ac + bC)
487+ let bR = ((ad - bM) - bN)
488+ if (if (if ((W == R))
489+ then (ap >= bQ)
467490 else false)
468491 then true
469- else if ((P == J))
470- then (ai >= bI)
492+ else if ((X == R))
493+ then (ap >= bR)
471494 else false)
472- then aC(bD, ao, U)
473- else [IntegerEntry(f, bH), IntegerEntry(g, bI), ScriptTransfer(aJ.caller, bD, bF), ScriptTransfer(B, bE, bF)]
495+ then aI(bM, au, ab)
496+ else [IntegerEntry(f, bQ), IntegerEntry(g, bR), ScriptTransfer(aP.caller, bM, bO), ScriptTransfer(J, bN, bO)]
474497 }
475- else if ((bu == P))
498+ else if ((bD == X))
476499 then {
477- let bF = O
478- let bJ = bz(W, V)
479- let bC = bJ._1
480- let bD = bJ._2
481- let bE = bJ._3
482- let bH = ((V - bD) - bE)
483- let bI = (W + bt)
484- if (if (if ((O == J))
485- then (ai >= bH)
500+ let bO = W
501+ let bS = bI(ad, ac)
502+ let bL = bS._1
503+ let bM = bS._2
504+ let bN = bS._3
505+ let bQ = ((ac - bM) - bN)
506+ let bR = (ad + bC)
507+ if (if (if ((W == R))
508+ then (ap >= bQ)
486509 else false)
487510 then true
488- else if ((P == J))
489- then (ai >= bI)
511+ else if ((X == R))
512+ then (ap >= bR)
490513 else false)
491- then aC(bD, an, Q)
492- else [IntegerEntry(f, bH), IntegerEntry(g, bI), ScriptTransfer(aJ.caller, bD, bF), ScriptTransfer(B, bE, bF)]
514+ then aI(bM, at, Y)
515+ else [IntegerEntry(f, bQ), IntegerEntry(g, bR), ScriptTransfer(aP.caller, bM, bO), ScriptTransfer(J, bN, bO)]
493516 }
494- else throw(((("Incorrect asset attached. Expected: " + M) + " or ") + N))
517+ else throw(((("Incorrect asset attached. Expected: " + U) + " or ") + V))
495518 }
496519
497520
498521
499-@Callable(aJ)
500-func shutdown () = if (!(L))
522+@Callable(aP)
523+func shutdown () = if (!(T))
501524 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified")))
502- else if (!(containsElement([v, w, x, y], aJ.callerPublicKey)))
525+ else if (!(containsElement([E, F, G, H], aP.callerPublicKey)))
503526 then throw("Only admin can call this function")
504- else ax("Paused by admin")
527+ else aD("Paused by admin")
505528
506529
507530
508-@Callable(aJ)
509-func activate () = if (L)
531+@Callable(aP)
532+func activate () = if (T)
510533 then throw("DApp is already active")
511- else if (!(containsElement([v, w, x, y], aJ.callerPublicKey)))
534+ else if (!(containsElement([E, F, G, H], aP.callerPublicKey)))
512535 then throw("Only admin can call this function")
513536 else [BooleanEntry(c, true), DeleteEntry(n)]
514537
515538
516539
517-@Callable(aJ)
518-func takeIntoAccountExtraFunds (bK) = {
519- let bL = (ap - V)
520- let bM = (aq - W)
521- let bN = (bL - (if ((O == unit))
522- then bK
540+@Callable(aP)
541+func takeIntoAccountExtraFunds (bT) = {
542+ let bU = (av - ac)
543+ let bV = (aw - ad)
544+ let bW = (bU - (if ((W == unit))
545+ then bT
523546 else 0))
524- let bO = (bM - (if ((P == unit))
525- then bK
547+ let bX = (bV - (if ((X == unit))
548+ then bT
526549 else 0))
527- if (!(L))
550+ if (!(T))
528551 then throw("DApp is inactive at this moment")
529- else if ((aJ.caller != this))
552+ else if ((aP.caller != this))
530553 then throw("Only the DApp itself can call this function")
531- else if ((0 > bK))
532- then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bK)))
533- else if (if ((0 > bL))
554+ else if ((0 > bT))
555+ then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bT)))
556+ else if (if ((0 > bU))
534557 then true
535- else (0 > bM))
536- then ax("Enroll amount negative")
537- else if (if ((0 > bN))
558+ else (0 > bV))
559+ then aD("Enroll amount negative")
560+ else if (if ((0 > bW))
538561 then true
539- else (0 > bO))
562+ else (0 > bX))
540563 then throw("Too large amountLeave")
541- else [IntegerEntry(f, (V + bN)), IntegerEntry(g, (W + bO)), IntegerEntry(("last_income_" + M), bN), IntegerEntry(("last_income_" + N), bO)]
564+ else [IntegerEntry(f, (ac + bW)), IntegerEntry(g, (ad + bX)), IntegerEntry(("last_income_" + U), bW), IntegerEntry(("last_income_" + V), bX)]
542565 }
543566
544567
545-@Verifier(bP)
546-func bQ () = {
547- let R = bP
548- if ($isInstanceOf(R, "InvokeScriptTransaction"))
568+@Verifier(bY)
569+func bZ () = {
570+ let B = bY
571+ if ($isInstanceOf(B, "InvokeScriptTransaction"))
549572 then {
550- let bR = R
551- let bS = if ((bR.dApp == this))
552- then (bR.function == "takeIntoAccountExtraFunds")
573+ let ca = B
574+ let cb = if ((ca.dApp == this))
575+ then (ca.function == "takeIntoAccountExtraFunds")
553576 else false
554- let bT = if ((bR.dApp == D))
555- then if (if (if ((bR.function == "lockNeutrino"))
556- then (size(bR.payments) == 1)
577+ let cc = if ((ca.dApp == L))
578+ then if (if (if ((ca.function == "lockNeutrino"))
579+ then (size(ca.payments) == 1)
557580 else false)
558- then (bR.payments[0].assetId == J)
581+ then (ca.payments[0].assetId == R)
559582 else false)
560583 then true
561- else if ((bR.function == "unlockNeutrino"))
562- then (size(bR.payments) == 0)
584+ else if ((ca.function == "unlockNeutrino"))
585+ then (size(ca.payments) == 0)
563586 else false
564587 else false
565- let bU = if (if (if ((bR.dApp == E))
566- then (bR.function == "exchange")
588+ let cd = if (if (if ((ca.dApp == M))
589+ then (ca.function == "exchange")
567590 else false)
568- then (O == J)
591+ then (W == R)
569592 else false)
570593 then true
571- else if ((P == J))
572- then (bR.payments[0].assetId == J)
594+ else if ((X == R))
595+ then (ca.payments[0].assetId == R)
573596 else false
574- let bV = if (if (if (sigVerify(bP.bodyBytes, bP.proofs[0], v))
597+ let ce = if (if (if (sigVerify(bY.bodyBytes, bY.proofs[0], E))
575598 then true
576- else sigVerify(bP.bodyBytes, bP.proofs[0], w))
599+ else sigVerify(bY.bodyBytes, bY.proofs[0], F))
577600 then true
578- else sigVerify(bP.bodyBytes, bP.proofs[0], x))
601+ else sigVerify(bY.bodyBytes, bY.proofs[0], G))
579602 then true
580- else sigVerify(bP.bodyBytes, bP.proofs[0], z)
581- if (if (if (bS)
603+ else sigVerify(bY.bodyBytes, bY.proofs[0], I)
604+ if (if (if (cb)
582605 then true
583- else bT)
606+ else cc)
584607 then true
585- else bU)
586- then bV
608+ else cd)
609+ then ce
587610 else false
588611 }
589612 else {
590- let bW = if (sigVerify(bP.bodyBytes, bP.proofs[0], v))
613+ let cf = if (sigVerify(bY.bodyBytes, bY.proofs[0], E))
591614 then 1
592615 else 0
593- let bX = if (sigVerify(bP.bodyBytes, bP.proofs[1], w))
616+ let cg = if (sigVerify(bY.bodyBytes, bY.proofs[1], F))
594617 then 1
595618 else 0
596- let bY = if (sigVerify(bP.bodyBytes, bP.proofs[2], x))
619+ let ch = if (sigVerify(bY.bodyBytes, bY.proofs[2], G))
597620 then 1
598621 else 0
599- (((bW + bX) + bY) >= 2)
622+ (((cf + cg) + ch) >= 2)
600623 }
601624 }
602625
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 4 #-}
1+{-# 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 = "commission_scale_delimiter"
2929
3030 let n = "shutdown_cause"
3131
3232 let o = "first_harvest"
3333
3434 let p = "first_harvest_height"
3535
3636 let q = "share_limit_on_first_harvest"
3737
3838 let r = "base_period"
3939
4040 let s = "period_length"
4141
4242 let t = "start_height"
4343
4444 let u = "first_harvest_height"
4545
46-let v = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
46+let v = "admin_pub_1"
4747
48-let w = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
48+let w = "admin_pub_2"
4949
50-let x = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
50+let x = "admin_pub_3"
5151
52-let y = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
52+let y = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
5353
54-let z = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
54+func z (A) = {
55+ let B = getString(y, A)
56+ if ($isInstanceOf(B, "String"))
57+ then {
58+ let C = B
59+ fromBase58String(C)
60+ }
61+ else {
62+ let D = B
63+ throw("Admin public key is empty")
64+ }
65+ }
5566
56-let A = base58'5CqqMkmtXXt35KRH9LdWA3ap6TffPvTT5SHQzYrVFbBw'
5767
58-let B = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
68+let E = z(v)
5969
60-let C = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
70+let F = z(w)
6171
62-let D = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
72+let G = z(x)
6373
64-let E = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
74+let H = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
6575
66-let F = valueOrErrorMessage(getInteger(C, r), "Empty kBasePeriod")
76+let I = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
6777
68-let G = valueOrErrorMessage(getInteger(C, t), "Empty kStartHeight")
78+let J = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6979
70-let H = valueOrErrorMessage(getInteger(C, s), "Empty kPeriodLength")
80+let K = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
7181
72-let I = ((F + ((height - G) / H)) + 3)
82+let L = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
7383
74-let J = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
84+let M = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
7585
76-let K = 270000
86+let N = valueOrErrorMessage(getInteger(K, r), "Empty kBasePeriod")
7787
78-let L = getBooleanValue(this, c)
88+let O = valueOrErrorMessage(getInteger(K, t), "Empty kStartHeight")
7989
80-let M = getStringValue(this, d)
90+let P = valueOrErrorMessage(getInteger(K, s), "Empty kPeriodLength")
8191
82-let N = getStringValue(this, e)
92+let Q = ((N + ((height - O) / P)) + 3)
8393
84-let O = if ((M == "WAVES"))
94+let R = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
95+
96+let S = 270000
97+
98+let T = getBooleanValue(this, c)
99+
100+let U = getStringValue(this, d)
101+
102+let V = getStringValue(this, e)
103+
104+let W = if ((U == "WAVES"))
85105 then unit
86- else fromBase58String(M)
106+ else fromBase58String(U)
87107
88-let P = if ((N == "WAVES"))
108+let X = if ((V == "WAVES"))
89109 then unit
90- else fromBase58String(N)
110+ else fromBase58String(V)
91111
92-let Q = {
93- let R = O
94- if ($isInstanceOf(R, "ByteVector"))
112+let Y = {
113+ let B = W
114+ if ($isInstanceOf(B, "ByteVector"))
95115 then {
96- let S = R
97- value(assetInfo(S)).name
116+ let Z = B
117+ value(assetInfo(Z)).name
98118 }
99- else if ($isInstanceOf(R, "Unit"))
119+ else if ($isInstanceOf(B, "Unit"))
100120 then {
101- let T = R
121+ let aa = B
102122 "WAVES"
103123 }
104124 else throw("Match error")
105125 }
106126
107-let U = {
108- let R = P
109- if ($isInstanceOf(R, "ByteVector"))
127+let ab = {
128+ let B = X
129+ if ($isInstanceOf(B, "ByteVector"))
110130 then {
111- let S = R
112- value(assetInfo(S)).name
131+ let Z = B
132+ value(assetInfo(Z)).name
113133 }
114- else if ($isInstanceOf(R, "Unit"))
134+ else if ($isInstanceOf(B, "Unit"))
115135 then {
116- let T = R
136+ let aa = B
117137 "WAVES"
118138 }
119139 else throw("Match error")
120140 }
121141
122-let V = getIntegerValue(this, f)
142+let ac = getIntegerValue(this, f)
123143
124-let W = getIntegerValue(this, g)
144+let ad = getIntegerValue(this, g)
125145
126-let X = fromBase58String(getStringValue(this, j))
146+let ae = fromBase58String(getStringValue(this, j))
127147
128-let Y = getIntegerValue(this, k)
148+let af = getIntegerValue(this, k)
129149
130-let Z = 3000
150+let ag = 3000
131151
132-let aa = 1200
152+let ah = 1200
133153
134-let ab = 1000000
154+let ai = 1000000
135155
136-let ac = 1000
156+let aj = 1000
137157
138-let ad = 100000000
158+let ak = 100000000
139159
140-let ae = 1000
160+let al = 1000
141161
142-let af = 8
162+let am = 8
143163
144-func ag (ah) = {
145- let R = ah
146- if ($isInstanceOf(R, "ByteVector"))
164+func an (ao) = {
165+ let B = ao
166+ if ($isInstanceOf(B, "ByteVector"))
147167 then {
148- let S = R
149- assetBalance(this, S)
168+ let Z = B
169+ assetBalance(this, Z)
150170 }
151- else if ($isInstanceOf(R, "Unit"))
171+ else if ($isInstanceOf(B, "Unit"))
152172 then {
153- let T = R
173+ let aa = B
154174 wavesBalance(this).available
155175 }
156176 else throw("Match error")
157177 }
158178
159179
160-let ai = {
161- let R = getInteger(D, ((("rpd_balance_" + toBase58String(J)) + "_") + toString(this)))
162- if ($isInstanceOf(R, "Int"))
180+let ap = {
181+ let B = getInteger(L, ((("rpd_balance_" + toBase58String(R)) + "_") + toString(this)))
182+ if ($isInstanceOf(B, "Int"))
163183 then {
164- let aj = R
165- aj
184+ let aq = B
185+ aq
166186 }
167- else if ($isInstanceOf(R, "Unit"))
187+ else if ($isInstanceOf(B, "Unit"))
168188 then {
169- let ak = R
189+ let D = B
170190 0
171191 }
172192 else throw("Match error")
173193 }
174194
175-let al = getIntegerValue(this, h)
195+let ar = getIntegerValue(this, h)
176196
177-let am = getIntegerValue(this, i)
197+let as = getIntegerValue(this, i)
178198
179-let an = (V - (if ((O == J))
180- then ai
199+let at = (ac - (if ((W == R))
200+ then ap
181201 else 0))
182202
183-let ao = (W - (if ((P == J))
184- then ai
203+let au = (ad - (if ((X == R))
204+ then ap
185205 else 0))
186206
187-let ap = (ag(O) + (if ((O == J))
188- then ai
207+let av = (an(W) + (if ((W == R))
208+ then ap
189209 else 0))
190210
191-let aq = (ag(P) + (if ((P == J))
192- then ai
211+let aw = (an(X) + (if ((X == R))
212+ then ap
193213 else 0))
194214
195-let ar = if ((ap >= V))
196- then (aq >= W)
215+let ax = if ((av >= ac))
216+ then (aw >= ad)
197217 else false
198218
199-func as (ah) = {
200- let R = ah
201- if ($isInstanceOf(R, "ByteVector"))
219+func ay (ao) = {
220+ let B = ao
221+ if ($isInstanceOf(B, "ByteVector"))
202222 then {
203- let S = R
204- let at = toBase58String(S)
205- let au = valueOrErrorMessage(assetInfo(S), (("Asset " + at) + " doesn't exist"))
206- $Tuple3(at, au.name, au.decimals)
223+ let Z = B
224+ let az = toBase58String(Z)
225+ let aA = valueOrErrorMessage(assetInfo(Z), (("Asset " + az) + " doesn't exist"))
226+ $Tuple3(az, aA.name, aA.decimals)
207227 }
208- else if ($isInstanceOf(R, "Unit"))
228+ else if ($isInstanceOf(B, "Unit"))
209229 then {
210- let T = R
230+ let aa = B
211231 $Tuple3("WAVES", "WAVES", 8)
212232 }
213233 else throw("Match error")
214234 }
215235
216236
217-func av (aw) = if ((aw == "WAVES"))
237+func aB (aC) = if ((aC == "WAVES"))
218238 then $Tuple3("WAVES", "WAVES", 8)
219239 else {
220- let at = aw
221- let S = fromBase58String(aw)
222- let au = valueOrErrorMessage(assetInfo(S), (("Asset " + at) + " doesn't exist"))
223- $Tuple3(at, au.name, au.decimals)
240+ let az = aC
241+ let Z = fromBase58String(aC)
242+ let aA = valueOrErrorMessage(assetInfo(Z), (("Asset " + az) + " doesn't exist"))
243+ $Tuple3(az, aA.name, aA.decimals)
224244 }
225245
226246
227-func ax (ay) = [BooleanEntry(c, false), StringEntry(n, ay)]
247+func aD (aE) = [BooleanEntry(c, false), StringEntry(n, aE)]
228248
229249
230-func az (aA,ah) = if ((ah == J))
250+func aF (aG,ao) = if ((ao == R))
231251 then {
232- let aB = (aA - K)
233- if ((0 >= aB))
234- then throw((((("Insufficient amount " + toString(aA)) + " to deduct staking fee ") + toString(K)) + " USD-N"))
235- else aB
252+ let aH = (aG - S)
253+ if ((0 >= aH))
254+ then throw((((("Insufficient amount " + toString(aG)) + " to deduct staking fee ") + toString(S)) + " USD-N"))
255+ else aH
236256 }
237- else aA
257+ else aG
238258
239259
240-func aC (aA,aD,aE) = throw((((((((("Insufficient DApp balance to pay " + toString(aA)) + " ") + aE) + " due to staking. Available: ") + toString(aD)) + " ") + aE) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
260+func aI (aG,aJ,aK) = throw((((((((("Insufficient DApp balance to pay " + toString(aG)) + " ") + aK) + " due to staking. Available: ") + toString(aJ)) + " ") + aK) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
241261
242262
243-func aF (aG,aH) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(aG)) + " ") + Q) + " and ") + toString(aH)) + " ") + U) + " due to staking. Available: ") + toString(an)) + " ") + Q) + " and ") + toString(ao)) + " ") + U) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
263+func aL (aM,aN) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(aM)) + " ") + Y) + " and ") + toString(aN)) + " ") + ab) + " due to staking. Available: ") + toString(at)) + " ") + Y) + " and ") + toString(au)) + " ") + ab) + ". Please contact support in Telegram: https://t.me/swopfisupport"))
244264
245265
246-func aI () = ax(((((((((((((((("Suspicious state. Actual balances: " + toString(ap)) + " ") + Q) + ", ") + toString(aq)) + " ") + U) + ". State: ") + toString(V)) + " ") + Q) + ", ") + toString(W)) + " ") + U))
266+func aO () = aD(((((((((((((((("Suspicious state. Actual balances: " + toString(av)) + " ") + Y) + ", ") + toString(aw)) + " ") + ab) + ". State: ") + toString(ac)) + " ") + Y) + ", ") + toString(ad)) + " ") + ab))
247267
248268
249-@Callable(aJ)
250-func init (aK) = {
251- let aL = $Tuple2(aJ.payments[0].amount, aJ.payments[0].assetId)
252- let aM = aL._1
253- let aN = aL._2
254- let aO = $Tuple2(aJ.payments[1].amount, aJ.payments[1].assetId)
255- let aP = aO._1
256- let aQ = aO._2
257- let aR = as(aN)
269+@Callable(aP)
270+func init (aQ) = {
271+ let aR = $Tuple2(aP.payments[0].amount, aP.payments[0].assetId)
258272 let aS = aR._1
259273 let aT = aR._2
260- let aU = aR._3
261- let aV = as(aQ)
262- let aW = aV._1
263- let aX = aV._2
264- let aY = aV._3
265- if (!(containsElement([v, w, x, z], aJ.callerPublicKey)))
274+ let aU = $Tuple2(aP.payments[1].amount, aP.payments[1].assetId)
275+ let aV = aU._1
276+ let aW = aU._2
277+ let aX = ay(aT)
278+ let aY = aX._1
279+ let aZ = aX._2
280+ let ba = aX._3
281+ let bb = ay(aW)
282+ let bc = bb._1
283+ let bd = bb._2
284+ let be = bb._3
285+ if (!(containsElement([E, F, G, I], aP.callerPublicKey)))
266286 then throw("Only admin can call this function")
267287 else if (isDefined(getBoolean(this, c)))
268288 then throw("DApp is already active")
269- else if ((aN == aQ))
289+ else if ((aT == aW))
270290 then throw("Assets must be different")
271291 else {
272- let aZ = ((("s" + take(aT, 7)) + "_") + take(aX, 7))
273- let ba = ((((("ShareToken of SwopFi protocol for " + aT) + " and ") + aX) + " at address ") + toString(this))
274- let bb = ((aU + aY) / 2)
275- let bc = fraction(pow(aM, aU, 5, 1, aU, HALFDOWN), pow(aP, aY, 5, 1, aY, HALFDOWN), pow(10, 0, bb, 0, 0, HALFDOWN))
276- let bd = Issue(aZ, ba, bc, bb, true)
277- let be = calculateAssetId(bd)
278- let bf = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aS), StringEntry(e, aW), IntegerEntry(f, aM), IntegerEntry(g, aP), IntegerEntry(l, Z), IntegerEntry(m, ab), bd, StringEntry(j, toBase58String(be)), IntegerEntry(k, bc), ScriptTransfer(aJ.caller, bc, be)]
279- if (aK)
280- then (bf ++ [BooleanEntry(o, aK), IntegerEntry(p, (G + (I * H)))])
281- else bf
292+ let bf = ((("s" + take(aZ, 7)) + "_") + take(bd, 7))
293+ let bg = ((((("ShareToken of SwopFi protocol for " + aZ) + " and ") + bd) + " at address ") + toString(this))
294+ let bh = ((ba + be) / 2)
295+ let bi = pow(aS, ba, 5, 1, ba, DOWN)
296+ let bj = pow(aV, be, 5, 1, be, DOWN)
297+ let bk = pow(10, 0, bh, 0, 0, DOWN)
298+ let bl = fraction(bi, bj, bk)
299+ let bm = Issue(bf, bg, bl, bh, true)
300+ let bn = calculateAssetId(bm)
301+ let bo = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aY), StringEntry(e, bc), IntegerEntry(f, aS), IntegerEntry(g, aV), IntegerEntry(l, ag), IntegerEntry(m, ai), bm, StringEntry(j, toBase58String(bn)), IntegerEntry(k, bl), ScriptTransfer(aP.caller, bl, bn)]
302+ if (aQ)
303+ then (bo ++ [BooleanEntry(o, aQ), IntegerEntry(p, (O + (Q * P)))])
304+ else bo
282305 }
283306 }
284307
285308
286309
287-@Callable(aJ)
288-func initWithInitRatio (bg,bh,M,N,aK) = {
289- let bi = av(M)
290- let aS = bi._1
291- let aT = bi._2
292- let aU = bi._3
293- let bj = av(N)
294- let aW = bj._1
295- let aX = bj._2
296- let aY = bj._3
297- if (!(containsElement([v, w, x, z], aJ.callerPublicKey)))
310+@Callable(aP)
311+func initWithInitRatio (bp,bq,U,V,aQ) = {
312+ let br = aB(U)
313+ let aY = br._1
314+ let aZ = br._2
315+ let ba = br._3
316+ let bs = aB(V)
317+ let bc = bs._1
318+ let bd = bs._2
319+ let be = bs._3
320+ if (!(containsElement([E, F, G, I], aP.callerPublicKey)))
298321 then throw("Only admin can call this function")
299322 else if (isDefined(getBoolean(this, c)))
300323 then throw("DApp is already active")
301- else if ((M == N))
324+ else if ((U == V))
302325 then throw("Assets must be different")
303326 else {
304- let aZ = ((("s" + take(aT, 7)) + "_") + take(aX, 7))
305- let ba = ((((("ShareToken of SwopFi protocol for " + aT) + " and ") + aX) + " at address ") + toString(this))
306- let bb = ((aU + aY) / 2)
307- let bc = 0
308- let bd = Issue(aZ, ba, bc, bb, true)
309- let be = calculateAssetId(bd)
310- let bf = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aS), StringEntry(e, aW), IntegerEntry(h, bg), IntegerEntry(i, bh), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, Z), IntegerEntry(m, ab), bd, StringEntry(j, toBase58String(be)), IntegerEntry(k, bc)]
311- if (aK)
312- then (bf ++ [BooleanEntry(o, aK), IntegerEntry(p, (G + (I * H)))])
313- else bf
327+ let bf = ((("s" + take(aZ, 7)) + "_") + take(bd, 7))
328+ let bg = ((((("ShareToken of SwopFi protocol for " + aZ) + " and ") + bd) + " at address ") + toString(this))
329+ let bh = ((ba + be) / 2)
330+ let bl = 0
331+ let bm = Issue(bf, bg, bl, bh, true)
332+ let bn = calculateAssetId(bm)
333+ let bo = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aY), StringEntry(e, bc), IntegerEntry(h, bp), IntegerEntry(i, bq), IntegerEntry(f, 0), IntegerEntry(g, 0), IntegerEntry(l, ag), IntegerEntry(m, ai), bm, StringEntry(j, toBase58String(bn)), IntegerEntry(k, bl)]
334+ if (aQ)
335+ then (bo ++ [BooleanEntry(o, aQ), IntegerEntry(p, (O + (Q * P)))])
336+ else bo
314337 }
315338 }
316339
317340
318341
319-@Callable(aJ)
320-func keepLimitForFirstHarvest (bk) = if (!(L))
342+@Callable(aP)
343+func keepLimitForFirstHarvest (bt) = if (!(T))
321344 then throw("DApp is inactive at this moment")
322- else if (!(containsElement([v, w, x, z], aJ.callerPublicKey)))
345+ else if (!(containsElement([E, F, G, I], aP.callerPublicKey)))
323346 then throw("Only admin can call this function")
324- else [IntegerEntry(q, bk)]
347+ else [IntegerEntry(q, bt)]
325348
326349
327350
328-@Callable(aJ)
329-func replenishWithTwoTokens (bl) = {
330- let aN = aJ.payments[0].assetId
331- let aQ = aJ.payments[1].assetId
332- let aM = az(aJ.payments[0].amount, aN)
333- let aP = az(aJ.payments[1].amount, aQ)
334- if (if ((V == 0))
335- then (W == 0)
351+@Callable(aP)
352+func replenishWithTwoTokens (bu) = {
353+ let aT = aP.payments[0].assetId
354+ let aW = aP.payments[1].assetId
355+ let aS = aF(aP.payments[0].amount, aT)
356+ let aV = aF(aP.payments[1].amount, aW)
357+ if (if ((ac == 0))
358+ then (ad == 0)
336359 else false)
337360 then {
338- let bm = as(aN)
339- let aS = bm._1
340- let aT = bm._2
341- let aU = bm._3
342- let bn = as(aQ)
343- let aW = bn._1
344- let aX = bn._2
345- let aY = bn._3
346- let bo = fraction(fraction(al, ad, aM), ac, fraction(am, ad, aP))
347- if ((aN == aQ))
361+ let bv = ay(aT)
362+ let aY = bv._1
363+ let aZ = bv._2
364+ let ba = bv._3
365+ let bw = ay(aW)
366+ let bc = bw._1
367+ let bd = bw._2
368+ let be = bw._3
369+ let bx = fraction(fraction(ar, ak, aS), aj, fraction(as, ak, aV))
370+ if ((aT == aW))
348371 then throw("Assets must be different")
349372 else {
350- let bb = ((aU + aY) / 2)
351- let bc = fraction(pow(aM, aU, 5, 1, aU, HALFDOWN), pow(aP, aY, 5, 1, aY, HALFDOWN), pow(10, 0, bb, 0, 0, HALFDOWN))
352- if (!(L))
373+ let bh = ((ba + be) / 2)
374+ let bl = fraction(pow(aS, ba, 5, 1, ba, DOWN), pow(aV, be, 5, 1, be, DOWN), pow(10, 0, bh, 0, 0, DOWN))
375+ if (!(T))
353376 then throw("DApp is inactive at this moment")
354- else if (if ((0 > bl))
377+ else if (if ((0 > bu))
355378 then true
356- else (bl > ae))
357- then throw(((("Slippage tolerance must be between 0 and " + toString(ae)) + " inclusively. Actual: ") + toString(bl)))
358- else if ((size(aJ.payments) != 2))
379+ else (bu > al))
380+ then throw(((("Slippage tolerance must be between 0 and " + toString(al)) + " inclusively. Actual: ") + toString(bu)))
381+ else if ((size(aP.payments) != 2))
359382 then throw("Two attached assets expected")
360- else if (if ((((ac * (ae - bl)) / ae) > bo))
383+ else if (if ((((aj * (al - bu)) / al) > bx))
361384 then true
362- else (bo > ((ac * (ae + bl)) / ae)))
385+ else (bx > ((aj * (al + bu)) / al)))
363386 then throw("Incorrect assets amount: amounts must have the contract ratio")
364- else if (if ((aN != O))
387+ else if (if ((aT != W))
365388 then true
366- else (aQ != P))
367- then throw(((("Incorrect assets attached. Expected: " + M) + " and ") + N))
368- else if ((bc == 0))
389+ else (aW != X))
390+ then throw(((("Incorrect assets attached. Expected: " + U) + " and ") + V))
391+ else if ((bl == 0))
369392 then throw("Too small amount to replenish")
370- else if (!(ar))
371- then ([ScriptTransfer(aJ.caller, aM, aN), ScriptTransfer(aJ.caller, aP, aQ)] ++ aI())
372- else [Reissue(X, bc, true), IntegerEntry(f, aM), IntegerEntry(g, aP), IntegerEntry(k, bc), ScriptTransfer(aJ.caller, bc, X)]
393+ else if (!(ax))
394+ then ([ScriptTransfer(aP.caller, aS, aT), ScriptTransfer(aP.caller, aV, aW)] ++ aO())
395+ else [Reissue(ae, bl, true), IntegerEntry(f, aS), IntegerEntry(g, aV), IntegerEntry(k, bl), ScriptTransfer(aP.caller, bl, ae)]
373396 }
374397 }
375398 else {
376- let bo = fraction(fraction(V, ad, aM), ac, fraction(W, ad, aP))
377- let bp = fraction(aM, ad, V)
378- let bq = fraction(aP, ad, W)
379- let br = fraction(min([bp, bq]), Y, ad)
380- if (!(L))
399+ let bx = fraction(fraction(ac, ak, aS), aj, fraction(ad, ak, aV))
400+ let by = fraction(aS, ak, ac)
401+ let bz = fraction(aV, ak, ad)
402+ let bA = fraction(min([by, bz]), af, ak)
403+ if (!(T))
381404 then throw("DApp is inactive at this moment")
382- else if (if ((0 > bl))
405+ else if (if ((0 > bu))
383406 then true
384- else (bl > ae))
385- then throw(((("Slippage tolerance must be between 0 and " + toString(ae)) + " inclusively. Actual: ") + toString(bl)))
386- else if ((size(aJ.payments) != 2))
407+ else (bu > al))
408+ then throw(((("Slippage tolerance must be between 0 and " + toString(al)) + " inclusively. Actual: ") + toString(bu)))
409+ else if ((size(aP.payments) != 2))
387410 then throw("Two attached assets expected")
388- else if (if ((aN != O))
411+ else if (if ((aT != W))
389412 then true
390- else (aQ != P))
391- then throw(((("Incorrect assets attached. Expected: " + M) + " and ") + N))
392- else if (if ((((ac * (ae - bl)) / ae) > bo))
413+ else (aW != X))
414+ then throw(((("Incorrect assets attached. Expected: " + U) + " and ") + V))
415+ else if (if ((((aj * (al - bu)) / al) > bx))
393416 then true
394- else (bo > ((ac * (ae + bl)) / ae)))
417+ else (bx > ((aj * (al + bu)) / al)))
395418 then throw("Incorrect assets amount: amounts must have the contract ratio")
396- else if ((br == 0))
419+ else if ((bA == 0))
397420 then throw("Too small amount to replenish")
398- else if (!(ar))
399- then ([ScriptTransfer(aJ.caller, aM, aN), ScriptTransfer(aJ.caller, aP, aQ)] ++ aI())
400- else [IntegerEntry(f, (V + aM)), IntegerEntry(g, (W + aP)), IntegerEntry(k, (Y + br)), Reissue(X, br, true), ScriptTransfer(aJ.caller, br, X)]
421+ else if (!(ax))
422+ then ([ScriptTransfer(aP.caller, aS, aT), ScriptTransfer(aP.caller, aV, aW)] ++ aO())
423+ else [IntegerEntry(f, (ac + aS)), IntegerEntry(g, (ad + aV)), IntegerEntry(k, (af + bA)), Reissue(ae, bA, true), ScriptTransfer(aP.caller, bA, ae)]
401424 }
402425 }
403426
404427
405428
406-@Callable(aJ)
429+@Callable(aP)
407430 func withdraw () = {
408- let bs = $Tuple2(aJ.payments[0].amount, aJ.payments[0].assetId)
409- let bt = bs._1
410- let bu = bs._2
411- let bv = az(fraction(bt, V, Y), O)
412- let bw = az(fraction(bt, W, Y), P)
413- if (!(L))
431+ let bB = $Tuple2(aP.payments[0].amount, aP.payments[0].assetId)
432+ let bC = bB._1
433+ let bD = bB._2
434+ let bE = aF(fraction(bC, ac, af), W)
435+ let bF = aF(fraction(bC, ad, af), X)
436+ if (!(T))
414437 then throw("DApp is inactive at this moment")
415- else if ((size(aJ.payments) != 1))
438+ else if ((size(aP.payments) != 1))
416439 then throw("One attached payment expected")
417- else if ((bu != X))
418- then throw(("Incorrect asset attached. Expected: " + toBase58String(X)))
419- else if (!(ar))
420- then ([ScriptTransfer(aJ.caller, bt, bu)] ++ aI())
421- else if (if ((bv > an))
440+ else if ((bD != ae))
441+ then throw(("Incorrect asset attached. Expected: " + toBase58String(ae)))
442+ else if (!(ax))
443+ then ([ScriptTransfer(aP.caller, bC, bD)] ++ aO())
444+ else if (if ((bE > at))
422445 then true
423- else (bw > ao))
424- then aF(bv, bw)
425- else [IntegerEntry(f, (V - bv)), IntegerEntry(g, (W - bw)), IntegerEntry(k, (Y - bt)), Burn(X, bt), ScriptTransfer(aJ.caller, bv, O), ScriptTransfer(aJ.caller, bw, P)]
446+ else (bF > au))
447+ then aL(bE, bF)
448+ else [IntegerEntry(f, (ac - bE)), IntegerEntry(g, (ad - bF)), IntegerEntry(k, (af - bC)), Burn(ae, bC), ScriptTransfer(aP.caller, bE, W), ScriptTransfer(aP.caller, bF, X)]
426449 }
427450
428451
429452
430-@Callable(aJ)
431-func exchange (bx) = {
432- let by = $Tuple2(aJ.payments[0].amount, aJ.payments[0].assetId)
433- let bt = by._1
434- let bu = by._2
435- func bz (bA,bB) = {
436- let bC = fraction(bB, bt, (bt + bA))
437- let bD = fraction(bC, (ab - Z), ab)
438- let bE = fraction(bC, aa, ab)
439- if ((bx > bD))
440- then throw(((("Calculated amount to receive " + toString(bD)) + " is less than specified minimum ") + toString(bx)))
441- else $Tuple3(bC, bD, bE)
453+@Callable(aP)
454+func exchange (bG) = {
455+ let bH = $Tuple2(aP.payments[0].amount, aP.payments[0].assetId)
456+ let bC = bH._1
457+ let bD = bH._2
458+ func bI (bJ,bK) = {
459+ let bL = fraction(bK, bC, (bC + bJ))
460+ let bM = fraction(bL, (ai - ag), ai)
461+ let bN = fraction(bL, ah, ai)
462+ if ((bG > bM))
463+ then throw(((("Calculated amount to receive " + toString(bM)) + " is less than specified minimum ") + toString(bG)))
464+ else $Tuple3(bL, bM, bN)
442465 }
443466
444- if (!(L))
467+ if (!(T))
445468 then throw("DApp is inactive at this moment")
446- else if (if ((V == 0))
469+ else if (if ((ac == 0))
447470 then true
448- else (W == 0))
471+ else (ad == 0))
449472 then throw("Can't exchange with zero balance")
450- else if ((0 >= bx))
451- then throw(("Minimal amount to receive must be positive. Actual: " + toString(bx)))
452- else if ((size(aJ.payments) != 1))
473+ else if ((0 >= bG))
474+ then throw(("Minimal amount to receive must be positive. Actual: " + toString(bG)))
475+ else if ((size(aP.payments) != 1))
453476 then throw("One attached payment expected")
454- else if (!(ar))
455- then ([ScriptTransfer(aJ.caller, bt, bu)] ++ aI())
456- else if ((bu == O))
477+ else if (!(ax))
478+ then ([ScriptTransfer(aP.caller, bC, bD)] ++ aO())
479+ else if ((bD == W))
457480 then {
458- let bF = P
459- let bG = bz(V, W)
460- let bC = bG._1
461- let bD = bG._2
462- let bE = bG._3
463- let bH = (V + bt)
464- let bI = ((W - bD) - bE)
465- if (if (if ((O == J))
466- then (ai >= bH)
481+ let bO = X
482+ let bP = bI(ac, ad)
483+ let bL = bP._1
484+ let bM = bP._2
485+ let bN = bP._3
486+ let bQ = (ac + bC)
487+ let bR = ((ad - bM) - bN)
488+ if (if (if ((W == R))
489+ then (ap >= bQ)
467490 else false)
468491 then true
469- else if ((P == J))
470- then (ai >= bI)
492+ else if ((X == R))
493+ then (ap >= bR)
471494 else false)
472- then aC(bD, ao, U)
473- else [IntegerEntry(f, bH), IntegerEntry(g, bI), ScriptTransfer(aJ.caller, bD, bF), ScriptTransfer(B, bE, bF)]
495+ then aI(bM, au, ab)
496+ else [IntegerEntry(f, bQ), IntegerEntry(g, bR), ScriptTransfer(aP.caller, bM, bO), ScriptTransfer(J, bN, bO)]
474497 }
475- else if ((bu == P))
498+ else if ((bD == X))
476499 then {
477- let bF = O
478- let bJ = bz(W, V)
479- let bC = bJ._1
480- let bD = bJ._2
481- let bE = bJ._3
482- let bH = ((V - bD) - bE)
483- let bI = (W + bt)
484- if (if (if ((O == J))
485- then (ai >= bH)
500+ let bO = W
501+ let bS = bI(ad, ac)
502+ let bL = bS._1
503+ let bM = bS._2
504+ let bN = bS._3
505+ let bQ = ((ac - bM) - bN)
506+ let bR = (ad + bC)
507+ if (if (if ((W == R))
508+ then (ap >= bQ)
486509 else false)
487510 then true
488- else if ((P == J))
489- then (ai >= bI)
511+ else if ((X == R))
512+ then (ap >= bR)
490513 else false)
491- then aC(bD, an, Q)
492- else [IntegerEntry(f, bH), IntegerEntry(g, bI), ScriptTransfer(aJ.caller, bD, bF), ScriptTransfer(B, bE, bF)]
514+ then aI(bM, at, Y)
515+ else [IntegerEntry(f, bQ), IntegerEntry(g, bR), ScriptTransfer(aP.caller, bM, bO), ScriptTransfer(J, bN, bO)]
493516 }
494- else throw(((("Incorrect asset attached. Expected: " + M) + " or ") + N))
517+ else throw(((("Incorrect asset attached. Expected: " + U) + " or ") + V))
495518 }
496519
497520
498521
499-@Callable(aJ)
500-func shutdown () = if (!(L))
522+@Callable(aP)
523+func shutdown () = if (!(T))
501524 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified")))
502- else if (!(containsElement([v, w, x, y], aJ.callerPublicKey)))
525+ else if (!(containsElement([E, F, G, H], aP.callerPublicKey)))
503526 then throw("Only admin can call this function")
504- else ax("Paused by admin")
527+ else aD("Paused by admin")
505528
506529
507530
508-@Callable(aJ)
509-func activate () = if (L)
531+@Callable(aP)
532+func activate () = if (T)
510533 then throw("DApp is already active")
511- else if (!(containsElement([v, w, x, y], aJ.callerPublicKey)))
534+ else if (!(containsElement([E, F, G, H], aP.callerPublicKey)))
512535 then throw("Only admin can call this function")
513536 else [BooleanEntry(c, true), DeleteEntry(n)]
514537
515538
516539
517-@Callable(aJ)
518-func takeIntoAccountExtraFunds (bK) = {
519- let bL = (ap - V)
520- let bM = (aq - W)
521- let bN = (bL - (if ((O == unit))
522- then bK
540+@Callable(aP)
541+func takeIntoAccountExtraFunds (bT) = {
542+ let bU = (av - ac)
543+ let bV = (aw - ad)
544+ let bW = (bU - (if ((W == unit))
545+ then bT
523546 else 0))
524- let bO = (bM - (if ((P == unit))
525- then bK
547+ let bX = (bV - (if ((X == unit))
548+ then bT
526549 else 0))
527- if (!(L))
550+ if (!(T))
528551 then throw("DApp is inactive at this moment")
529- else if ((aJ.caller != this))
552+ else if ((aP.caller != this))
530553 then throw("Only the DApp itself can call this function")
531- else if ((0 > bK))
532- then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bK)))
533- else if (if ((0 > bL))
554+ else if ((0 > bT))
555+ then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bT)))
556+ else if (if ((0 > bU))
534557 then true
535- else (0 > bM))
536- then ax("Enroll amount negative")
537- else if (if ((0 > bN))
558+ else (0 > bV))
559+ then aD("Enroll amount negative")
560+ else if (if ((0 > bW))
538561 then true
539- else (0 > bO))
562+ else (0 > bX))
540563 then throw("Too large amountLeave")
541- else [IntegerEntry(f, (V + bN)), IntegerEntry(g, (W + bO)), IntegerEntry(("last_income_" + M), bN), IntegerEntry(("last_income_" + N), bO)]
564+ else [IntegerEntry(f, (ac + bW)), IntegerEntry(g, (ad + bX)), IntegerEntry(("last_income_" + U), bW), IntegerEntry(("last_income_" + V), bX)]
542565 }
543566
544567
545-@Verifier(bP)
546-func bQ () = {
547- let R = bP
548- if ($isInstanceOf(R, "InvokeScriptTransaction"))
568+@Verifier(bY)
569+func bZ () = {
570+ let B = bY
571+ if ($isInstanceOf(B, "InvokeScriptTransaction"))
549572 then {
550- let bR = R
551- let bS = if ((bR.dApp == this))
552- then (bR.function == "takeIntoAccountExtraFunds")
573+ let ca = B
574+ let cb = if ((ca.dApp == this))
575+ then (ca.function == "takeIntoAccountExtraFunds")
553576 else false
554- let bT = if ((bR.dApp == D))
555- then if (if (if ((bR.function == "lockNeutrino"))
556- then (size(bR.payments) == 1)
577+ let cc = if ((ca.dApp == L))
578+ then if (if (if ((ca.function == "lockNeutrino"))
579+ then (size(ca.payments) == 1)
557580 else false)
558- then (bR.payments[0].assetId == J)
581+ then (ca.payments[0].assetId == R)
559582 else false)
560583 then true
561- else if ((bR.function == "unlockNeutrino"))
562- then (size(bR.payments) == 0)
584+ else if ((ca.function == "unlockNeutrino"))
585+ then (size(ca.payments) == 0)
563586 else false
564587 else false
565- let bU = if (if (if ((bR.dApp == E))
566- then (bR.function == "exchange")
588+ let cd = if (if (if ((ca.dApp == M))
589+ then (ca.function == "exchange")
567590 else false)
568- then (O == J)
591+ then (W == R)
569592 else false)
570593 then true
571- else if ((P == J))
572- then (bR.payments[0].assetId == J)
594+ else if ((X == R))
595+ then (ca.payments[0].assetId == R)
573596 else false
574- let bV = if (if (if (sigVerify(bP.bodyBytes, bP.proofs[0], v))
597+ let ce = if (if (if (sigVerify(bY.bodyBytes, bY.proofs[0], E))
575598 then true
576- else sigVerify(bP.bodyBytes, bP.proofs[0], w))
599+ else sigVerify(bY.bodyBytes, bY.proofs[0], F))
577600 then true
578- else sigVerify(bP.bodyBytes, bP.proofs[0], x))
601+ else sigVerify(bY.bodyBytes, bY.proofs[0], G))
579602 then true
580- else sigVerify(bP.bodyBytes, bP.proofs[0], z)
581- if (if (if (bS)
603+ else sigVerify(bY.bodyBytes, bY.proofs[0], I)
604+ if (if (if (cb)
582605 then true
583- else bT)
606+ else cc)
584607 then true
585- else bU)
586- then bV
608+ else cd)
609+ then ce
587610 else false
588611 }
589612 else {
590- let bW = if (sigVerify(bP.bodyBytes, bP.proofs[0], v))
613+ let cf = if (sigVerify(bY.bodyBytes, bY.proofs[0], E))
591614 then 1
592615 else 0
593- let bX = if (sigVerify(bP.bodyBytes, bP.proofs[1], w))
616+ let cg = if (sigVerify(bY.bodyBytes, bY.proofs[1], F))
594617 then 1
595618 else 0
596- let bY = if (sigVerify(bP.bodyBytes, bP.proofs[2], x))
619+ let ch = if (sigVerify(bY.bodyBytes, bY.proofs[2], G))
597620 then 1
598621 else 0
599- (((bW + bX) + bY) >= 2)
622+ (((cf + cg) + ch) >= 2)
600623 }
601624 }
602625

github/deemru/w8io/026f985 
214.11 ms