tx · 7V9d2tXZQ4Y46uGNbSJ4wJi6vVg1ZAgYHa9HU9Epfuj5

3MovkGrnmfcdTa6zakUxafYanewq633ZnZq:  -0.01400000 Waves

2021.07.19 18:54 [1620695] smart account 3MovkGrnmfcdTa6zakUxafYanewq633ZnZq > SELF 0.00000000 Waves

{ "type": 13, "id": "7V9d2tXZQ4Y46uGNbSJ4wJi6vVg1ZAgYHa9HU9Epfuj5", "fee": 1400000, "feeAssetId": null, "timestamp": 1626710064453, "version": 2, "chainId": 84, "sender": "3MovkGrnmfcdTa6zakUxafYanewq633ZnZq", "senderPublicKey": "c4si3qB7jQgmRK6JwBXpm4DqXeqttrkq5m6gmRtFppY", "proofs": [ "3YuDmqpjPMyVQYYtpUpAiGyDLH7busv3kqtPuPep6XG83TVHDYx3zSXQpB6Jg5vXUG3mj2eczHUszoC54eTZh9ox" ], "script": "base64:AAIFAAAAAAAAACoIAhIDCgEEEgcKBQEBCAgEEgMKAQESAwoBARIAEgMKAQESABIAEgMKAQEAAABLAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAC2tleUFzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAtrZXlBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAALa2V5QmFsYW5jZUECAAAAD0FfYXNzZXRfYmFsYW5jZQAAAAALa2V5QmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAAPa2V5QmFsYW5jZUluaXRBAgAAAAxBX2Fzc2V0X2luaXQAAAAAD2tleUJhbGFuY2VJbml0QgIAAAAMQl9hc3NldF9pbml0AAAAAA9rZXlTaGFyZUFzc2V0SWQCAAAADnNoYXJlX2Fzc2V0X2lkAAAAABNrZXlTaGFyZUFzc2V0U3VwcGx5AgAAABJzaGFyZV9hc3NldF9zdXBwbHkAAAAADWtleUNvbW1pc3Npb24CAAAACmN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AAAAAAAAAUAAAASYWRtaW5QdWJLZXlTdGFraW5nAwMDBQAAABNjYWxsVGFrZUludG9BY2NvdW50BgUAAAALY2FsbFN0YWtpbmcGBQAAAA9leGNoYW5nZVRvV2F2ZXMFAAAADXNpZ25lZEJ5QWRtaW4HBAAAABJhZG1pblB1YktleTFTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkxAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAAC2Roq5g==", "height": 1620695, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6Ms21Y48o9AgWtU1iYHR82L8v2eQDSyffYkkSaPHy6MC Next: none Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 4 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "1.0.0"
1515
1616 let g = "B_asset_balance"
1717
18-let h = "share_asset_id"
18+let h = "A_asset_init"
1919
20-let i = "share_asset_supply"
20+let i = "B_asset_init"
2121
22-let j = "commission"
22+let j = "share_asset_id"
2323
24-let k = "commission_scale_delimiter"
24+let k = "share_asset_supply"
2525
26-let l = "shutdown_cause"
26+let l = "commission"
2727
28-let m = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
28+let m = "commission_scale_delimiter"
2929
30-let n = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
30+let n = "shutdown_cause"
3131
32-let o = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
32+let o = "first_harvest"
3333
34-let p = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
34+let p = "first_harvest_height"
3535
36-let q = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
36+let q = "share_limit_on_first_harvest"
3737
38-let r = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
38+let r = "base_period"
3939
40-let s = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
40+let s = "period_length"
4141
42-let t = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
42+let t = "start_height"
4343
44-let u = (9 * value(value(assetInfo(t)).minSponsoredFee))
44+let u = "first_harvest_height"
4545
46-let v = getBooleanValue(this, c)
46+let v = "admin_pub_1"
4747
48-let w = getStringValue(this, d)
48+let w = "admin_pub_2"
4949
50-let x = getStringValue(this, e)
50+let x = "admin_pub_3"
5151
52-let y = if ((w == "WAVES"))
52+let y = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
53+
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+ }
66+
67+
68+let E = z(v)
69+
70+let F = z(w)
71+
72+let G = z(x)
73+
74+let H = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
75+
76+let I = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
77+
78+let J = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
79+
80+let K = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
81+
82+let L = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
83+
84+let M = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
85+
86+let N = valueOrErrorMessage(getInteger(K, r), "Empty kBasePeriod")
87+
88+let O = valueOrErrorMessage(getInteger(K, t), "Empty kStartHeight")
89+
90+let P = valueOrErrorMessage(getInteger(K, s), "Empty kPeriodLength")
91+
92+let Q = ((N + ((height - O) / P)) + 3)
93+
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"))
53105 then unit
54- else fromBase58String(w)
106+ else fromBase58String(U)
55107
56-let z = if ((x == "WAVES"))
108+let X = if ((V == "WAVES"))
57109 then unit
58- else fromBase58String(x)
110+ else fromBase58String(V)
59111
60-let A = {
61- let B = y
112+let Y = {
113+ let B = W
62114 if ($isInstanceOf(B, "ByteVector"))
63115 then {
64- let C = B
65- value(assetInfo(C)).name
116+ let Z = B
117+ value(assetInfo(Z)).name
66118 }
67119 else if ($isInstanceOf(B, "Unit"))
68120 then {
69- let D = B
121+ let aa = B
70122 "WAVES"
71123 }
72124 else throw("Match error")
73125 }
74126
75-let E = {
76- let B = z
127+let ab = {
128+ let B = X
77129 if ($isInstanceOf(B, "ByteVector"))
78130 then {
79- let C = B
80- value(assetInfo(C)).name
131+ let Z = B
132+ value(assetInfo(Z)).name
81133 }
82134 else if ($isInstanceOf(B, "Unit"))
83135 then {
84- let D = B
136+ let aa = B
85137 "WAVES"
86138 }
87139 else throw("Match error")
88140 }
89141
90-let F = getIntegerValue(this, f)
142+let ac = getIntegerValue(this, f)
91143
92-let G = getIntegerValue(this, g)
144+let ad = getIntegerValue(this, g)
93145
94-let H = fromBase58String(getStringValue(this, h))
146+let ae = fromBase58String(getStringValue(this, j))
95147
96-let I = getIntegerValue(this, i)
148+let af = getIntegerValue(this, k)
97149
98-let J = 3000
150+let ag = 3000
99151
100-let K = 1200
152+let ah = 1200
101153
102-let L = 1000000
154+let ai = 1000000
103155
104-let M = 1000
156+let aj = 1000
105157
106-let N = 100000000
158+let ak = 100000000
107159
108-let O = 1000
160+let al = 1000
109161
110-let P = 8
162+let am = 8
111163
112-func Q (R) = {
113- let B = R
164+func an (ao) = {
165+ let B = ao
114166 if ($isInstanceOf(B, "ByteVector"))
115167 then {
116- let C = B
117- assetBalance(this, C)
168+ let Z = B
169+ assetBalance(this, Z)
118170 }
119171 else if ($isInstanceOf(B, "Unit"))
120172 then {
121- let D = B
173+ let aa = B
122174 wavesBalance(this).available
123175 }
124176 else throw("Match error")
125177 }
126178
127179
128-let S = {
129- let B = getInteger(s, ((("rpd_balance_" + toBase58String(t)) + "_") + toString(this)))
180+let ap = {
181+ let B = getInteger(L, ((("rpd_balance_" + toBase58String(R)) + "_") + toString(this)))
130182 if ($isInstanceOf(B, "Int"))
131183 then {
132- let T = B
133- T
184+ let aq = B
185+ aq
134186 }
135187 else if ($isInstanceOf(B, "Unit"))
136188 then {
137- let U = B
189+ let D = B
138190 0
139191 }
140192 else throw("Match error")
141193 }
142194
143-let V = (F - (if ((y == t))
144- then S
195+let ar = getIntegerValue(this, h)
196+
197+let as = getIntegerValue(this, i)
198+
199+let at = (ac - (if ((W == R))
200+ then ap
145201 else 0))
146202
147-let W = (G - (if ((z == t))
148- then S
203+let au = (ad - (if ((X == R))
204+ then ap
149205 else 0))
150206
151-let X = (Q(y) + (if ((y == t))
152- then S
207+let av = (an(W) + (if ((W == R))
208+ then ap
153209 else 0))
154210
155-let Y = (Q(z) + (if ((z == t))
156- then S
211+let aw = (an(X) + (if ((X == R))
212+ then ap
157213 else 0))
158214
159-let Z = if ((X >= F))
160- then (Y >= G)
215+let ax = if ((av >= ac))
216+ then (aw >= ad)
161217 else false
162218
163-func aa (R) = {
164- let B = R
219+func ay (ao) = {
220+ let B = ao
165221 if ($isInstanceOf(B, "ByteVector"))
166222 then {
167- let C = B
168- let ab = toBase58String(C)
169- let ac = valueOrErrorMessage(assetInfo(C), (("Asset " + ab) + " doesn't exist"))
170- $Tuple3(ab, ac.name, ac.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)
171227 }
172228 else if ($isInstanceOf(B, "Unit"))
173229 then {
174- let D = B
230+ let aa = B
175231 $Tuple3("WAVES", "WAVES", 8)
176232 }
177233 else throw("Match error")
178234 }
179235
180236
181-func ad (ae) = [BooleanEntry(c, false), StringEntry(l, ae)]
237+func aB (aC) = if ((aC == "WAVES"))
238+ then $Tuple3("WAVES", "WAVES", 8)
239+ else {
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)
244+ }
182245
183246
184-func af (ag,R) = if ((R == t))
185- then {
186- let ah = (ag - u)
187- if ((0 >= ah))
188- then throw((((("Insufficient amount " + toString(ag)) + " to deduct staking fee ") + toString(u)) + " USD-N"))
189- else ah
190- }
191- else ag
247+func aD (aE) = [BooleanEntry(c, false), StringEntry(n, aE)]
192248
193249
194-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"))
250+func aF (aG,ao) = if ((ao == R))
251+ then {
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
256+ }
257+ else aG
195258
196259
197-func al (am,an) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(am)) + " ") + A) + " and ") + toString(an)) + " ") + E) + " due to staking. Available: ") + toString(V)) + " ") + A) + " and ") + toString(W)) + " ") + E) + ". 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"))
198261
199262
200-@Callable(ao)
201-func init () = {
202- let ap = $Tuple2(ao.payments[0].amount, ao.payments[0].assetId)
203- let aq = ap._1
204- let ar = ap._2
205- let as = $Tuple2(ao.payments[1].amount, ao.payments[1].assetId)
206- let at = as._1
207- let au = as._2
208- let av = aa(ar)
209- let aw = av._1
210- let ax = av._2
211- let ay = av._3
212- let az = aa(au)
213- let aA = az._1
214- let aB = az._2
215- let aC = az._3
216- if (isDefined(getBoolean(this, c)))
217- then throw("DApp is already active")
218- else if ((ar == au))
219- then throw("Assets must be different")
220- else {
221- let aD = ((("s" + take(ax, 7)) + "_") + take(aB, 7))
222- let aE = ((((("ShareToken of SwopFi protocol for " + ax) + " and ") + aB) + " at address ") + toString(this))
223- let aF = ((ay + aC) / 2)
224- let aG = fraction(pow(aq, ay, 5, 1, ay, HALFDOWN), pow(at, aC, 5, 1, aC, HALFDOWN), pow(10, 0, aF, 0, 0, HALFDOWN))
225- let aH = Issue(aD, aE, aG, aF, true)
226- let aI = calculateAssetId(aH)
227-[StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aw), StringEntry(e, aA), IntegerEntry(f, aq), IntegerEntry(g, at), IntegerEntry(j, J), IntegerEntry(k, L), aH, StringEntry(h, toBase58String(aI)), IntegerEntry(i, aG), ScriptTransfer(ao.caller, aG, aI)]
228- }
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"))
264+
265+
266+func aO () = aD(((((((((((((((("Suspicious state. Actual balances: " + toString(av)) + " ") + Y) + ", ") + toString(aw)) + " ") + ab) + ". State: ") + toString(ac)) + " ") + Y) + ", ") + toString(ad)) + " ") + ab))
267+
268+
269+@Callable(aP)
270+func init (aQ) = {
271+ let aR = $Tuple2(aP.payments[0].amount, aP.payments[0].assetId)
272+ let aS = aR._1
273+ let aT = aR._2
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)))
286+ then throw("Only admin can call this function")
287+ else if (isDefined(getBoolean(this, c)))
288+ then throw("DApp is already active")
289+ else if ((aT == aW))
290+ then throw("Assets must be different")
291+ else {
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
305+ }
229306 }
230307
231308
232309
233-@Callable(ao)
234-func replenishWithTwoTokens (aJ) = {
235- let ar = ao.payments[0].assetId
236- let au = ao.payments[1].assetId
237- let aq = af(ao.payments[0].amount, ar)
238- let at = af(ao.payments[1].amount, au)
239- let aK = fraction(fraction(F, N, aq), M, fraction(G, N, at))
240- let aL = fraction(aq, N, F)
241- let aM = fraction(at, N, G)
242- let aN = fraction(min([aL, aM]), I, N)
243- if (!(v))
244- then throw("DApp is inactive at this moment")
245- else if (if ((0 > aJ))
246- then true
247- else (aJ > O))
248- then throw(((("Slippage tolerance must be between 0 and " + toString(O)) + " inclusively. Actual: ") + toString(aJ)))
249- else if ((size(ao.payments) != 2))
250- then throw("Two attached assets expected")
251- else if (if ((ar != y))
252- then true
253- else (au != z))
254- then throw(((("Incorrect assets attached. Expected: " + w) + " and ") + x))
255- else if (if ((((M * (O - aJ)) / O) > aK))
256- then true
257- else (aK > ((M * (O + aJ)) / O)))
258- then throw("Incorrect assets amount: amounts must have the contract ratio")
259- else if ((aN == 0))
260- then throw("Too small amount to replenish")
261- else if (!(Z))
262- then ad(((((((((((((((("Suspicious state. Actual balances: " + toString(F)) + " ") + A) + ", ") + toString(G)) + " ") + E) + ". State: ") + toString(Q(y))) + " ") + A) + ", ") + toString(Q(z))) + " ") + E))
263- else [IntegerEntry(f, (F + aq)), IntegerEntry(g, (G + at)), IntegerEntry(i, (I + aN)), Reissue(H, aN, true), ScriptTransfer(ao.caller, aN, H)]
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)))
321+ then throw("Only admin can call this function")
322+ else if (isDefined(getBoolean(this, c)))
323+ then throw("DApp is already active")
324+ else if ((U == V))
325+ then throw("Assets must be different")
326+ else {
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
337+ }
264338 }
265339
266340
267341
268-@Callable(ao)
269-func withdraw () = {
270- let aO = $Tuple2(ao.payments[0].amount, ao.payments[0].assetId)
271- let aP = aO._1
272- let aQ = aO._2
273- let aR = af(fraction(aP, F, I), y)
274- let aS = af(fraction(aP, G, I), z)
275- if (!(v))
276- then throw("DApp is inactive at this moment")
277- else if ((size(ao.payments) != 1))
278- then throw("One attached payment expected")
279- else if ((aQ != H))
280- then throw(("Incorrect asset attached. Expected: " + toBase58String(H)))
281- else if (!(Z))
282- then ad(((((((((((((((("Suspicious state. Actual balances: " + toString(F)) + " ") + A) + ", ") + toString(G)) + " ") + E) + ". State: ") + toString(Q(y))) + " ") + A) + ", ") + toString(Q(z))) + " ") + E))
283- else if (if ((aR > V))
284- then true
285- else (aS > W))
286- then al(aR, aS)
287- else [IntegerEntry(f, (F - aR)), IntegerEntry(g, (G - aS)), IntegerEntry(i, (I - aP)), Burn(H, aP), ScriptTransfer(ao.caller, aR, y), ScriptTransfer(ao.caller, aS, z)]
342+@Callable(aP)
343+func keepLimitForFirstHarvest (bt) = if (!(T))
344+ then throw("DApp is inactive at this moment")
345+ else if (!(containsElement([E, F, G, I], aP.callerPublicKey)))
346+ then throw("Only admin can call this function")
347+ else [IntegerEntry(q, bt)]
348+
349+
350+
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)
359+ else false)
360+ then {
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))
371+ then throw("Assets must be different")
372+ else {
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))
376+ then throw("DApp is inactive at this moment")
377+ else if (if ((0 > bu))
378+ then true
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))
382+ then throw("Two attached assets expected")
383+ else if (if ((((aj * (al - bu)) / al) > bx))
384+ then true
385+ else (bx > ((aj * (al + bu)) / al)))
386+ then throw("Incorrect assets amount: amounts must have the contract ratio")
387+ else if (if ((aT != W))
388+ then true
389+ else (aW != X))
390+ then throw(((("Incorrect assets attached. Expected: " + U) + " and ") + V))
391+ else if ((bl == 0))
392+ then throw("Too small amount to replenish")
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)]
396+ }
397+ }
398+ else {
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))
404+ then throw("DApp is inactive at this moment")
405+ else if (if ((0 > bu))
406+ then true
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))
410+ then throw("Two attached assets expected")
411+ else if (if ((aT != W))
412+ then true
413+ else (aW != X))
414+ then throw(((("Incorrect assets attached. Expected: " + U) + " and ") + V))
415+ else if (if ((((aj * (al - bu)) / al) > bx))
416+ then true
417+ else (bx > ((aj * (al + bu)) / al)))
418+ then throw("Incorrect assets amount: amounts must have the contract ratio")
419+ else if ((bA == 0))
420+ then throw("Too small amount to replenish")
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)]
424+ }
288425 }
289426
290427
291428
292-@Callable(ao)
293-func exchange (aT) = {
294- let aU = $Tuple2(ao.payments[0].amount, ao.payments[0].assetId)
295- let aP = aU._1
296- let aQ = aU._2
297- func aV (aW,aX) = {
298- let aY = fraction(aX, aP, (aP + aW))
299- let aZ = fraction(aY, (L - J), L)
300- let ba = fraction(aY, K, L)
301- if ((aT > aZ))
302- then throw(((("Calculated amount to receive " + toString(aZ)) + " is less than specified minimum ") + toString(aT)))
303- else $Tuple3(aY, aZ, ba)
304- }
305-
306- if (!(v))
429+@Callable(aP)
430+func withdraw () = {
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))
307437 then throw("DApp is inactive at this moment")
308- else if ((0 >= aT))
309- then throw(("Minimal amount to receive must be positive. Actual: " + toString(aT)))
310- else if ((size(ao.payments) != 1))
311- then throw("One attached payment expected")
312- else if (!(Z))
313- then ad(((((((((((((((("Suspicious state. Actual balances: " + toString(F)) + " ") + A) + ", ") + toString(G)) + " ") + E) + ". State: ") + toString(Q(y))) + " ") + A) + ", ") + toString(Q(z))) + " ") + E))
314- else if ((aQ == y))
315- then {
316- let bb = z
317- let bc = aV(F, G)
318- let aY = bc._1
319- let aZ = bc._2
320- let ba = bc._3
321- let bd = (F + aP)
322- let be = ((G - aZ) - ba)
323- if (if (if ((y == t))
324- then (S >= bd)
325- else false)
326- then true
327- else if ((z == t))
328- then (S >= be)
329- else false)
330- then ai(aZ, W, E)
331- else [IntegerEntry(f, bd), IntegerEntry(g, be), ScriptTransfer(ao.caller, aZ, bb), ScriptTransfer(r, ba, bb)]
332- }
333- else if ((aQ == z))
334- then {
335- let bb = y
336- let bf = aV(G, F)
337- let aY = bf._1
338- let aZ = bf._2
339- let ba = bf._3
340- let bd = ((F - aZ) - ba)
341- let be = (G + aP)
342- if (if (if ((y == t))
343- then (S >= bd)
344- else false)
345- then true
346- else if ((z == t))
347- then (S >= be)
348- else false)
349- then ai(aZ, V, A)
350- else [IntegerEntry(f, bd), IntegerEntry(g, be), ScriptTransfer(ao.caller, aZ, bb), ScriptTransfer(r, ba, bb)]
351- }
352- else throw(((("Incorrect asset attached. Expected: " + w) + " or ") + x))
438+ else if ((size(aP.payments) != 1))
439+ then throw("One attached payment expected")
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))
445+ then true
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)]
353449 }
354450
355451
356452
357-@Callable(ao)
358-func shutdown () = if (!(v))
359- then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified")))
360- else if (!(containsElement([m, n, o, p], ao.callerPublicKey)))
361- then throw("Only admin can call this function")
362- else ad("Paused by admin")
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)
465+ }
466+
467+ if (!(T))
468+ then throw("DApp is inactive at this moment")
469+ else if (if ((ac == 0))
470+ then true
471+ else (ad == 0))
472+ then throw("Can't exchange with zero balance")
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))
476+ then throw("One attached payment expected")
477+ else if (!(ax))
478+ then ([ScriptTransfer(aP.caller, bC, bD)] ++ aO())
479+ else if ((bD == W))
480+ then {
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)
490+ else false)
491+ then true
492+ else if ((X == R))
493+ then (ap >= bR)
494+ else false)
495+ then aI(bM, au, ab)
496+ else [IntegerEntry(f, bQ), IntegerEntry(g, bR), ScriptTransfer(aP.caller, bM, bO), ScriptTransfer(J, bN, bO)]
497+ }
498+ else if ((bD == X))
499+ then {
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)
509+ else false)
510+ then true
511+ else if ((X == R))
512+ then (ap >= bR)
513+ else false)
514+ then aI(bM, at, Y)
515+ else [IntegerEntry(f, bQ), IntegerEntry(g, bR), ScriptTransfer(aP.caller, bM, bO), ScriptTransfer(J, bN, bO)]
516+ }
517+ else throw(((("Incorrect asset attached. Expected: " + U) + " or ") + V))
518+ }
363519
364520
365521
366-@Callable(ao)
367-func activate () = if (v)
368- then throw("DApp is already active")
369- else if (!(containsElement([m, n, o, p], ao.callerPublicKey)))
522+@Callable(aP)
523+func shutdown () = if (!(T))
524+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified")))
525+ else if (!(containsElement([E, F, G, H], aP.callerPublicKey)))
370526 then throw("Only admin can call this function")
371- else [BooleanEntry(c, true), DeleteEntry(l)]
527+ else aD("Paused by admin")
372528
373529
374530
375-@Callable(ao)
376-func takeIntoAccountExtraFunds (bg) = {
377- let bh = (X - F)
378- let bi = (Y - G)
379- let bj = (bh - (if ((y == t))
380- then bg
531+@Callable(aP)
532+func activate () = if (T)
533+ then throw("DApp is already active")
534+ else if (!(containsElement([E, F, G, H], aP.callerPublicKey)))
535+ then throw("Only admin can call this function")
536+ else [BooleanEntry(c, true), DeleteEntry(n)]
537+
538+
539+
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
381546 else 0))
382- let bk = (bi - (if ((z == t))
383- then bg
547+ let bX = (bV - (if ((X == unit))
548+ then bT
384549 else 0))
385- if (!(v))
550+ if (!(T))
386551 then throw("DApp is inactive at this moment")
387- else if ((ao.caller != this))
552+ else if ((aP.caller != this))
388553 then throw("Only the DApp itself can call this function")
389- else if ((0 > bg))
390- then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bg)))
391- else if (if ((0 > bh))
554+ else if ((0 > bT))
555+ then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bT)))
556+ else if (if ((0 > bU))
392557 then true
393- else (0 > bi))
394- then ad("Enroll amount negative")
395- else if (if ((0 > bj))
558+ else (0 > bV))
559+ then aD("Enroll amount negative")
560+ else if (if ((0 > bW))
396561 then true
397- else (0 > bk))
562+ else (0 > bX))
398563 then throw("Too large amountLeave")
399- else [IntegerEntry(f, (F + bj)), IntegerEntry(g, (G + bk)), IntegerEntry(("last_income_" + w), bj), IntegerEntry(("last_income_" + x), bk)]
564+ else [IntegerEntry(f, (ac + bW)), IntegerEntry(g, (ad + bX)), IntegerEntry(("last_income_" + U), bW), IntegerEntry(("last_income_" + V), bX)]
400565 }
401566
402567
403-@Verifier(bl)
404-func bm () = {
405- let B = bl
568+@Verifier(bY)
569+func bZ () = {
570+ let B = bY
406571 if ($isInstanceOf(B, "InvokeScriptTransaction"))
407572 then {
408- let bn = B
409- let bo = if ((bn.dApp == this))
410- then (bn.function == "takeIntoAccountExtraFunds")
573+ let ca = B
574+ let cb = if ((ca.dApp == this))
575+ then (ca.function == "takeIntoAccountExtraFunds")
411576 else false
412- let bp = if ((bn.dApp == s))
413- then if (if (if ((bn.function == "lockNeutrino"))
414- then (size(bn.payments) == 1)
577+ let cc = if ((ca.dApp == L))
578+ then if (if (if ((ca.function == "lockNeutrino"))
579+ then (size(ca.payments) == 1)
415580 else false)
416- then (bn.payments[0].assetId == t)
581+ then (ca.payments[0].assetId == R)
417582 else false)
418583 then true
419- else if ((bn.function == "unlockNeutrino"))
420- then (size(bn.payments) == 0)
584+ else if ((ca.function == "unlockNeutrino"))
585+ then (size(ca.payments) == 0)
421586 else false
422587 else false
423- let bq = if (if (if (sigVerify(bl.bodyBytes, bl.proofs[0], m))
588+ let cd = if (if (if ((ca.dApp == M))
589+ then (ca.function == "exchange")
590+ else false)
591+ then (W == R)
592+ else false)
424593 then true
425- else sigVerify(bl.bodyBytes, bl.proofs[0], n))
594+ else if ((X == R))
595+ then (ca.payments[0].assetId == R)
596+ else false
597+ let ce = if (if (if (sigVerify(bY.bodyBytes, bY.proofs[0], E))
426598 then true
427- else sigVerify(bl.bodyBytes, bl.proofs[0], o))
599+ else sigVerify(bY.bodyBytes, bY.proofs[0], F))
428600 then true
429- else sigVerify(bl.bodyBytes, bl.proofs[0], q)
430- if (bo)
601+ else sigVerify(bY.bodyBytes, bY.proofs[0], G))
431602 then true
432- else bp
603+ else sigVerify(bY.bodyBytes, bY.proofs[0], I)
604+ if (if (if (cb)
605+ then true
606+ else cc)
607+ then true
608+ else cd)
609+ then ce
610+ else false
433611 }
434- else sigVerify(bl.bodyBytes, bl.proofs[0], bl.senderPublicKey)
612+ else {
613+ let cf = if (sigVerify(bY.bodyBytes, bY.proofs[0], E))
614+ then 1
615+ else 0
616+ let cg = if (sigVerify(bY.bodyBytes, bY.proofs[1], F))
617+ then 1
618+ else 0
619+ let ch = if (sigVerify(bY.bodyBytes, bY.proofs[2], G))
620+ then 1
621+ else 0
622+ (((cf + cg) + ch) >= 2)
623+ }
435624 }
436625
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
18-let h = "share_asset_id"
18+let h = "A_asset_init"
1919
20-let i = "share_asset_supply"
20+let i = "B_asset_init"
2121
22-let j = "commission"
22+let j = "share_asset_id"
2323
24-let k = "commission_scale_delimiter"
24+let k = "share_asset_supply"
2525
26-let l = "shutdown_cause"
26+let l = "commission"
2727
28-let m = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
28+let m = "commission_scale_delimiter"
2929
30-let n = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
30+let n = "shutdown_cause"
3131
32-let o = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
32+let o = "first_harvest"
3333
34-let p = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
34+let p = "first_harvest_height"
3535
36-let q = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
36+let q = "share_limit_on_first_harvest"
3737
38-let r = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
38+let r = "base_period"
3939
40-let s = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
40+let s = "period_length"
4141
42-let t = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
42+let t = "start_height"
4343
44-let u = (9 * value(value(assetInfo(t)).minSponsoredFee))
44+let u = "first_harvest_height"
4545
46-let v = getBooleanValue(this, c)
46+let v = "admin_pub_1"
4747
48-let w = getStringValue(this, d)
48+let w = "admin_pub_2"
4949
50-let x = getStringValue(this, e)
50+let x = "admin_pub_3"
5151
52-let y = if ((w == "WAVES"))
52+let y = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
53+
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+ }
66+
67+
68+let E = z(v)
69+
70+let F = z(w)
71+
72+let G = z(x)
73+
74+let H = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
75+
76+let I = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
77+
78+let J = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
79+
80+let K = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
81+
82+let L = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg')
83+
84+let M = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
85+
86+let N = valueOrErrorMessage(getInteger(K, r), "Empty kBasePeriod")
87+
88+let O = valueOrErrorMessage(getInteger(K, t), "Empty kStartHeight")
89+
90+let P = valueOrErrorMessage(getInteger(K, s), "Empty kPeriodLength")
91+
92+let Q = ((N + ((height - O) / P)) + 3)
93+
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"))
53105 then unit
54- else fromBase58String(w)
106+ else fromBase58String(U)
55107
56-let z = if ((x == "WAVES"))
108+let X = if ((V == "WAVES"))
57109 then unit
58- else fromBase58String(x)
110+ else fromBase58String(V)
59111
60-let A = {
61- let B = y
112+let Y = {
113+ let B = W
62114 if ($isInstanceOf(B, "ByteVector"))
63115 then {
64- let C = B
65- value(assetInfo(C)).name
116+ let Z = B
117+ value(assetInfo(Z)).name
66118 }
67119 else if ($isInstanceOf(B, "Unit"))
68120 then {
69- let D = B
121+ let aa = B
70122 "WAVES"
71123 }
72124 else throw("Match error")
73125 }
74126
75-let E = {
76- let B = z
127+let ab = {
128+ let B = X
77129 if ($isInstanceOf(B, "ByteVector"))
78130 then {
79- let C = B
80- value(assetInfo(C)).name
131+ let Z = B
132+ value(assetInfo(Z)).name
81133 }
82134 else if ($isInstanceOf(B, "Unit"))
83135 then {
84- let D = B
136+ let aa = B
85137 "WAVES"
86138 }
87139 else throw("Match error")
88140 }
89141
90-let F = getIntegerValue(this, f)
142+let ac = getIntegerValue(this, f)
91143
92-let G = getIntegerValue(this, g)
144+let ad = getIntegerValue(this, g)
93145
94-let H = fromBase58String(getStringValue(this, h))
146+let ae = fromBase58String(getStringValue(this, j))
95147
96-let I = getIntegerValue(this, i)
148+let af = getIntegerValue(this, k)
97149
98-let J = 3000
150+let ag = 3000
99151
100-let K = 1200
152+let ah = 1200
101153
102-let L = 1000000
154+let ai = 1000000
103155
104-let M = 1000
156+let aj = 1000
105157
106-let N = 100000000
158+let ak = 100000000
107159
108-let O = 1000
160+let al = 1000
109161
110-let P = 8
162+let am = 8
111163
112-func Q (R) = {
113- let B = R
164+func an (ao) = {
165+ let B = ao
114166 if ($isInstanceOf(B, "ByteVector"))
115167 then {
116- let C = B
117- assetBalance(this, C)
168+ let Z = B
169+ assetBalance(this, Z)
118170 }
119171 else if ($isInstanceOf(B, "Unit"))
120172 then {
121- let D = B
173+ let aa = B
122174 wavesBalance(this).available
123175 }
124176 else throw("Match error")
125177 }
126178
127179
128-let S = {
129- let B = getInteger(s, ((("rpd_balance_" + toBase58String(t)) + "_") + toString(this)))
180+let ap = {
181+ let B = getInteger(L, ((("rpd_balance_" + toBase58String(R)) + "_") + toString(this)))
130182 if ($isInstanceOf(B, "Int"))
131183 then {
132- let T = B
133- T
184+ let aq = B
185+ aq
134186 }
135187 else if ($isInstanceOf(B, "Unit"))
136188 then {
137- let U = B
189+ let D = B
138190 0
139191 }
140192 else throw("Match error")
141193 }
142194
143-let V = (F - (if ((y == t))
144- then S
195+let ar = getIntegerValue(this, h)
196+
197+let as = getIntegerValue(this, i)
198+
199+let at = (ac - (if ((W == R))
200+ then ap
145201 else 0))
146202
147-let W = (G - (if ((z == t))
148- then S
203+let au = (ad - (if ((X == R))
204+ then ap
149205 else 0))
150206
151-let X = (Q(y) + (if ((y == t))
152- then S
207+let av = (an(W) + (if ((W == R))
208+ then ap
153209 else 0))
154210
155-let Y = (Q(z) + (if ((z == t))
156- then S
211+let aw = (an(X) + (if ((X == R))
212+ then ap
157213 else 0))
158214
159-let Z = if ((X >= F))
160- then (Y >= G)
215+let ax = if ((av >= ac))
216+ then (aw >= ad)
161217 else false
162218
163-func aa (R) = {
164- let B = R
219+func ay (ao) = {
220+ let B = ao
165221 if ($isInstanceOf(B, "ByteVector"))
166222 then {
167- let C = B
168- let ab = toBase58String(C)
169- let ac = valueOrErrorMessage(assetInfo(C), (("Asset " + ab) + " doesn't exist"))
170- $Tuple3(ab, ac.name, ac.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)
171227 }
172228 else if ($isInstanceOf(B, "Unit"))
173229 then {
174- let D = B
230+ let aa = B
175231 $Tuple3("WAVES", "WAVES", 8)
176232 }
177233 else throw("Match error")
178234 }
179235
180236
181-func ad (ae) = [BooleanEntry(c, false), StringEntry(l, ae)]
237+func aB (aC) = if ((aC == "WAVES"))
238+ then $Tuple3("WAVES", "WAVES", 8)
239+ else {
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)
244+ }
182245
183246
184-func af (ag,R) = if ((R == t))
185- then {
186- let ah = (ag - u)
187- if ((0 >= ah))
188- then throw((((("Insufficient amount " + toString(ag)) + " to deduct staking fee ") + toString(u)) + " USD-N"))
189- else ah
190- }
191- else ag
247+func aD (aE) = [BooleanEntry(c, false), StringEntry(n, aE)]
192248
193249
194-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"))
250+func aF (aG,ao) = if ((ao == R))
251+ then {
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
256+ }
257+ else aG
195258
196259
197-func al (am,an) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(am)) + " ") + A) + " and ") + toString(an)) + " ") + E) + " due to staking. Available: ") + toString(V)) + " ") + A) + " and ") + toString(W)) + " ") + E) + ". 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"))
198261
199262
200-@Callable(ao)
201-func init () = {
202- let ap = $Tuple2(ao.payments[0].amount, ao.payments[0].assetId)
203- let aq = ap._1
204- let ar = ap._2
205- let as = $Tuple2(ao.payments[1].amount, ao.payments[1].assetId)
206- let at = as._1
207- let au = as._2
208- let av = aa(ar)
209- let aw = av._1
210- let ax = av._2
211- let ay = av._3
212- let az = aa(au)
213- let aA = az._1
214- let aB = az._2
215- let aC = az._3
216- if (isDefined(getBoolean(this, c)))
217- then throw("DApp is already active")
218- else if ((ar == au))
219- then throw("Assets must be different")
220- else {
221- let aD = ((("s" + take(ax, 7)) + "_") + take(aB, 7))
222- let aE = ((((("ShareToken of SwopFi protocol for " + ax) + " and ") + aB) + " at address ") + toString(this))
223- let aF = ((ay + aC) / 2)
224- let aG = fraction(pow(aq, ay, 5, 1, ay, HALFDOWN), pow(at, aC, 5, 1, aC, HALFDOWN), pow(10, 0, aF, 0, 0, HALFDOWN))
225- let aH = Issue(aD, aE, aG, aF, true)
226- let aI = calculateAssetId(aH)
227-[StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, aw), StringEntry(e, aA), IntegerEntry(f, aq), IntegerEntry(g, at), IntegerEntry(j, J), IntegerEntry(k, L), aH, StringEntry(h, toBase58String(aI)), IntegerEntry(i, aG), ScriptTransfer(ao.caller, aG, aI)]
228- }
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"))
264+
265+
266+func aO () = aD(((((((((((((((("Suspicious state. Actual balances: " + toString(av)) + " ") + Y) + ", ") + toString(aw)) + " ") + ab) + ". State: ") + toString(ac)) + " ") + Y) + ", ") + toString(ad)) + " ") + ab))
267+
268+
269+@Callable(aP)
270+func init (aQ) = {
271+ let aR = $Tuple2(aP.payments[0].amount, aP.payments[0].assetId)
272+ let aS = aR._1
273+ let aT = aR._2
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)))
286+ then throw("Only admin can call this function")
287+ else if (isDefined(getBoolean(this, c)))
288+ then throw("DApp is already active")
289+ else if ((aT == aW))
290+ then throw("Assets must be different")
291+ else {
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
305+ }
229306 }
230307
231308
232309
233-@Callable(ao)
234-func replenishWithTwoTokens (aJ) = {
235- let ar = ao.payments[0].assetId
236- let au = ao.payments[1].assetId
237- let aq = af(ao.payments[0].amount, ar)
238- let at = af(ao.payments[1].amount, au)
239- let aK = fraction(fraction(F, N, aq), M, fraction(G, N, at))
240- let aL = fraction(aq, N, F)
241- let aM = fraction(at, N, G)
242- let aN = fraction(min([aL, aM]), I, N)
243- if (!(v))
244- then throw("DApp is inactive at this moment")
245- else if (if ((0 > aJ))
246- then true
247- else (aJ > O))
248- then throw(((("Slippage tolerance must be between 0 and " + toString(O)) + " inclusively. Actual: ") + toString(aJ)))
249- else if ((size(ao.payments) != 2))
250- then throw("Two attached assets expected")
251- else if (if ((ar != y))
252- then true
253- else (au != z))
254- then throw(((("Incorrect assets attached. Expected: " + w) + " and ") + x))
255- else if (if ((((M * (O - aJ)) / O) > aK))
256- then true
257- else (aK > ((M * (O + aJ)) / O)))
258- then throw("Incorrect assets amount: amounts must have the contract ratio")
259- else if ((aN == 0))
260- then throw("Too small amount to replenish")
261- else if (!(Z))
262- then ad(((((((((((((((("Suspicious state. Actual balances: " + toString(F)) + " ") + A) + ", ") + toString(G)) + " ") + E) + ". State: ") + toString(Q(y))) + " ") + A) + ", ") + toString(Q(z))) + " ") + E))
263- else [IntegerEntry(f, (F + aq)), IntegerEntry(g, (G + at)), IntegerEntry(i, (I + aN)), Reissue(H, aN, true), ScriptTransfer(ao.caller, aN, H)]
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)))
321+ then throw("Only admin can call this function")
322+ else if (isDefined(getBoolean(this, c)))
323+ then throw("DApp is already active")
324+ else if ((U == V))
325+ then throw("Assets must be different")
326+ else {
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
337+ }
264338 }
265339
266340
267341
268-@Callable(ao)
269-func withdraw () = {
270- let aO = $Tuple2(ao.payments[0].amount, ao.payments[0].assetId)
271- let aP = aO._1
272- let aQ = aO._2
273- let aR = af(fraction(aP, F, I), y)
274- let aS = af(fraction(aP, G, I), z)
275- if (!(v))
276- then throw("DApp is inactive at this moment")
277- else if ((size(ao.payments) != 1))
278- then throw("One attached payment expected")
279- else if ((aQ != H))
280- then throw(("Incorrect asset attached. Expected: " + toBase58String(H)))
281- else if (!(Z))
282- then ad(((((((((((((((("Suspicious state. Actual balances: " + toString(F)) + " ") + A) + ", ") + toString(G)) + " ") + E) + ". State: ") + toString(Q(y))) + " ") + A) + ", ") + toString(Q(z))) + " ") + E))
283- else if (if ((aR > V))
284- then true
285- else (aS > W))
286- then al(aR, aS)
287- else [IntegerEntry(f, (F - aR)), IntegerEntry(g, (G - aS)), IntegerEntry(i, (I - aP)), Burn(H, aP), ScriptTransfer(ao.caller, aR, y), ScriptTransfer(ao.caller, aS, z)]
342+@Callable(aP)
343+func keepLimitForFirstHarvest (bt) = if (!(T))
344+ then throw("DApp is inactive at this moment")
345+ else if (!(containsElement([E, F, G, I], aP.callerPublicKey)))
346+ then throw("Only admin can call this function")
347+ else [IntegerEntry(q, bt)]
348+
349+
350+
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)
359+ else false)
360+ then {
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))
371+ then throw("Assets must be different")
372+ else {
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))
376+ then throw("DApp is inactive at this moment")
377+ else if (if ((0 > bu))
378+ then true
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))
382+ then throw("Two attached assets expected")
383+ else if (if ((((aj * (al - bu)) / al) > bx))
384+ then true
385+ else (bx > ((aj * (al + bu)) / al)))
386+ then throw("Incorrect assets amount: amounts must have the contract ratio")
387+ else if (if ((aT != W))
388+ then true
389+ else (aW != X))
390+ then throw(((("Incorrect assets attached. Expected: " + U) + " and ") + V))
391+ else if ((bl == 0))
392+ then throw("Too small amount to replenish")
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)]
396+ }
397+ }
398+ else {
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))
404+ then throw("DApp is inactive at this moment")
405+ else if (if ((0 > bu))
406+ then true
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))
410+ then throw("Two attached assets expected")
411+ else if (if ((aT != W))
412+ then true
413+ else (aW != X))
414+ then throw(((("Incorrect assets attached. Expected: " + U) + " and ") + V))
415+ else if (if ((((aj * (al - bu)) / al) > bx))
416+ then true
417+ else (bx > ((aj * (al + bu)) / al)))
418+ then throw("Incorrect assets amount: amounts must have the contract ratio")
419+ else if ((bA == 0))
420+ then throw("Too small amount to replenish")
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)]
424+ }
288425 }
289426
290427
291428
292-@Callable(ao)
293-func exchange (aT) = {
294- let aU = $Tuple2(ao.payments[0].amount, ao.payments[0].assetId)
295- let aP = aU._1
296- let aQ = aU._2
297- func aV (aW,aX) = {
298- let aY = fraction(aX, aP, (aP + aW))
299- let aZ = fraction(aY, (L - J), L)
300- let ba = fraction(aY, K, L)
301- if ((aT > aZ))
302- then throw(((("Calculated amount to receive " + toString(aZ)) + " is less than specified minimum ") + toString(aT)))
303- else $Tuple3(aY, aZ, ba)
304- }
305-
306- if (!(v))
429+@Callable(aP)
430+func withdraw () = {
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))
307437 then throw("DApp is inactive at this moment")
308- else if ((0 >= aT))
309- then throw(("Minimal amount to receive must be positive. Actual: " + toString(aT)))
310- else if ((size(ao.payments) != 1))
311- then throw("One attached payment expected")
312- else if (!(Z))
313- then ad(((((((((((((((("Suspicious state. Actual balances: " + toString(F)) + " ") + A) + ", ") + toString(G)) + " ") + E) + ". State: ") + toString(Q(y))) + " ") + A) + ", ") + toString(Q(z))) + " ") + E))
314- else if ((aQ == y))
315- then {
316- let bb = z
317- let bc = aV(F, G)
318- let aY = bc._1
319- let aZ = bc._2
320- let ba = bc._3
321- let bd = (F + aP)
322- let be = ((G - aZ) - ba)
323- if (if (if ((y == t))
324- then (S >= bd)
325- else false)
326- then true
327- else if ((z == t))
328- then (S >= be)
329- else false)
330- then ai(aZ, W, E)
331- else [IntegerEntry(f, bd), IntegerEntry(g, be), ScriptTransfer(ao.caller, aZ, bb), ScriptTransfer(r, ba, bb)]
332- }
333- else if ((aQ == z))
334- then {
335- let bb = y
336- let bf = aV(G, F)
337- let aY = bf._1
338- let aZ = bf._2
339- let ba = bf._3
340- let bd = ((F - aZ) - ba)
341- let be = (G + aP)
342- if (if (if ((y == t))
343- then (S >= bd)
344- else false)
345- then true
346- else if ((z == t))
347- then (S >= be)
348- else false)
349- then ai(aZ, V, A)
350- else [IntegerEntry(f, bd), IntegerEntry(g, be), ScriptTransfer(ao.caller, aZ, bb), ScriptTransfer(r, ba, bb)]
351- }
352- else throw(((("Incorrect asset attached. Expected: " + w) + " or ") + x))
438+ else if ((size(aP.payments) != 1))
439+ then throw("One attached payment expected")
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))
445+ then true
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)]
353449 }
354450
355451
356452
357-@Callable(ao)
358-func shutdown () = if (!(v))
359- then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified")))
360- else if (!(containsElement([m, n, o, p], ao.callerPublicKey)))
361- then throw("Only admin can call this function")
362- else ad("Paused by admin")
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)
465+ }
466+
467+ if (!(T))
468+ then throw("DApp is inactive at this moment")
469+ else if (if ((ac == 0))
470+ then true
471+ else (ad == 0))
472+ then throw("Can't exchange with zero balance")
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))
476+ then throw("One attached payment expected")
477+ else if (!(ax))
478+ then ([ScriptTransfer(aP.caller, bC, bD)] ++ aO())
479+ else if ((bD == W))
480+ then {
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)
490+ else false)
491+ then true
492+ else if ((X == R))
493+ then (ap >= bR)
494+ else false)
495+ then aI(bM, au, ab)
496+ else [IntegerEntry(f, bQ), IntegerEntry(g, bR), ScriptTransfer(aP.caller, bM, bO), ScriptTransfer(J, bN, bO)]
497+ }
498+ else if ((bD == X))
499+ then {
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)
509+ else false)
510+ then true
511+ else if ((X == R))
512+ then (ap >= bR)
513+ else false)
514+ then aI(bM, at, Y)
515+ else [IntegerEntry(f, bQ), IntegerEntry(g, bR), ScriptTransfer(aP.caller, bM, bO), ScriptTransfer(J, bN, bO)]
516+ }
517+ else throw(((("Incorrect asset attached. Expected: " + U) + " or ") + V))
518+ }
363519
364520
365521
366-@Callable(ao)
367-func activate () = if (v)
368- then throw("DApp is already active")
369- else if (!(containsElement([m, n, o, p], ao.callerPublicKey)))
522+@Callable(aP)
523+func shutdown () = if (!(T))
524+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified")))
525+ else if (!(containsElement([E, F, G, H], aP.callerPublicKey)))
370526 then throw("Only admin can call this function")
371- else [BooleanEntry(c, true), DeleteEntry(l)]
527+ else aD("Paused by admin")
372528
373529
374530
375-@Callable(ao)
376-func takeIntoAccountExtraFunds (bg) = {
377- let bh = (X - F)
378- let bi = (Y - G)
379- let bj = (bh - (if ((y == t))
380- then bg
531+@Callable(aP)
532+func activate () = if (T)
533+ then throw("DApp is already active")
534+ else if (!(containsElement([E, F, G, H], aP.callerPublicKey)))
535+ then throw("Only admin can call this function")
536+ else [BooleanEntry(c, true), DeleteEntry(n)]
537+
538+
539+
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
381546 else 0))
382- let bk = (bi - (if ((z == t))
383- then bg
547+ let bX = (bV - (if ((X == unit))
548+ then bT
384549 else 0))
385- if (!(v))
550+ if (!(T))
386551 then throw("DApp is inactive at this moment")
387- else if ((ao.caller != this))
552+ else if ((aP.caller != this))
388553 then throw("Only the DApp itself can call this function")
389- else if ((0 > bg))
390- then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bg)))
391- else if (if ((0 > bh))
554+ else if ((0 > bT))
555+ then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(bT)))
556+ else if (if ((0 > bU))
392557 then true
393- else (0 > bi))
394- then ad("Enroll amount negative")
395- else if (if ((0 > bj))
558+ else (0 > bV))
559+ then aD("Enroll amount negative")
560+ else if (if ((0 > bW))
396561 then true
397- else (0 > bk))
562+ else (0 > bX))
398563 then throw("Too large amountLeave")
399- else [IntegerEntry(f, (F + bj)), IntegerEntry(g, (G + bk)), IntegerEntry(("last_income_" + w), bj), IntegerEntry(("last_income_" + x), bk)]
564+ else [IntegerEntry(f, (ac + bW)), IntegerEntry(g, (ad + bX)), IntegerEntry(("last_income_" + U), bW), IntegerEntry(("last_income_" + V), bX)]
400565 }
401566
402567
403-@Verifier(bl)
404-func bm () = {
405- let B = bl
568+@Verifier(bY)
569+func bZ () = {
570+ let B = bY
406571 if ($isInstanceOf(B, "InvokeScriptTransaction"))
407572 then {
408- let bn = B
409- let bo = if ((bn.dApp == this))
410- then (bn.function == "takeIntoAccountExtraFunds")
573+ let ca = B
574+ let cb = if ((ca.dApp == this))
575+ then (ca.function == "takeIntoAccountExtraFunds")
411576 else false
412- let bp = if ((bn.dApp == s))
413- then if (if (if ((bn.function == "lockNeutrino"))
414- then (size(bn.payments) == 1)
577+ let cc = if ((ca.dApp == L))
578+ then if (if (if ((ca.function == "lockNeutrino"))
579+ then (size(ca.payments) == 1)
415580 else false)
416- then (bn.payments[0].assetId == t)
581+ then (ca.payments[0].assetId == R)
417582 else false)
418583 then true
419- else if ((bn.function == "unlockNeutrino"))
420- then (size(bn.payments) == 0)
584+ else if ((ca.function == "unlockNeutrino"))
585+ then (size(ca.payments) == 0)
421586 else false
422587 else false
423- let bq = if (if (if (sigVerify(bl.bodyBytes, bl.proofs[0], m))
588+ let cd = if (if (if ((ca.dApp == M))
589+ then (ca.function == "exchange")
590+ else false)
591+ then (W == R)
592+ else false)
424593 then true
425- else sigVerify(bl.bodyBytes, bl.proofs[0], n))
594+ else if ((X == R))
595+ then (ca.payments[0].assetId == R)
596+ else false
597+ let ce = if (if (if (sigVerify(bY.bodyBytes, bY.proofs[0], E))
426598 then true
427- else sigVerify(bl.bodyBytes, bl.proofs[0], o))
599+ else sigVerify(bY.bodyBytes, bY.proofs[0], F))
428600 then true
429- else sigVerify(bl.bodyBytes, bl.proofs[0], q)
430- if (bo)
601+ else sigVerify(bY.bodyBytes, bY.proofs[0], G))
431602 then true
432- else bp
603+ else sigVerify(bY.bodyBytes, bY.proofs[0], I)
604+ if (if (if (cb)
605+ then true
606+ else cc)
607+ then true
608+ else cd)
609+ then ce
610+ else false
433611 }
434- else sigVerify(bl.bodyBytes, bl.proofs[0], bl.senderPublicKey)
612+ else {
613+ let cf = if (sigVerify(bY.bodyBytes, bY.proofs[0], E))
614+ then 1
615+ else 0
616+ let cg = if (sigVerify(bY.bodyBytes, bY.proofs[1], F))
617+ then 1
618+ else 0
619+ let ch = if (sigVerify(bY.bodyBytes, bY.proofs[2], G))
620+ then 1
621+ else 0
622+ (((cf + cg) + ch) >= 2)
623+ }
435624 }
436625

github/deemru/w8io/026f985 
118.13 ms