tx · FQJkm5Aogrt7psbfx8LYFeSGcqsZKB9cxWY9bE2JPVe8

3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS:  -0.14000000 Waves

2022.11.14 15:49 [2316822] smart account 3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS > SELF 0.00000000 Waves

{ "type": 13, "id": "FQJkm5Aogrt7psbfx8LYFeSGcqsZKB9cxWY9bE2JPVe8", "fee": 14000000, "feeAssetId": null, "timestamp": 1668430189701, "version": 2, "chainId": 84, "sender": "3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS", "senderPublicKey": "C7xgcYqQ8qV8rmvzAjhQWq4cz82F6VJfXMNygvrTXsfW", "proofs": [ "32rW7Dt13UtgT1mZMqjKdNUXW5LUhspsBhCQ3eou7ze3TUoGarQZjtvKGaa1p88maNJSmP5QqZTLXDeJU63Va9Ln", "5AfjQ5iAtcuo7XNmBB85qfE87fyH2dVN4SmoqtraeZEiSe4aHToRk6EDbPmGoNAMUjuFyGFGEhpbUdzAYNTkyUDL" ], "script": "base64:BgJmCAISBAoCEQESBQoDCAEBEgUKAwEEARIECgIRCBIDCgEBEgYKBAgIAQgSBAoCCAESAwoBERIECgIRARIFCgMBCAgSBAoCCAESBQoDCAEBEgASABIECgIRBBIECgIBARIAEgASABIAWgAJUFJFQ0lTSU9OAMCEPQAFTUFYX0EAwIQ9AAxNQVhfQV9DSEFOR0UACgAIREVDSU1BTFMABgANTUlOX1JBTVBfVElNRQkAaQIAgKMFADwAB3ZlcnNpb24CBTMuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0Fzc2V0cwIJYXNzZXRfaWRzAA1rQXNzZXRCYWxhbmNlAghfYmFsYW5jZQAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMABmtDYXVzZQIOc2h1dGRvd25fY2F1c2UADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmV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BnByb29mcwABBQxhZG1pblB1YktleTIAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAIEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBANpbnYFByRtYXRjaDAEE2NhbGxUYWtlSW50b0FjY291bnQDCQAAAggFA2ludgRkQXBwBQR0aGlzCQAAAggFA2ludghmdW5jdGlvbgIZdGFrZUludG9BY2NvdW50RXh0cmFGdW5kcwcEDXNpZ25lZEJ5QWRtaW4DAwMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQYJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MgYJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MwYJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFEWFkbWluUHViS2V5SW52b2tlAwMFE2NhbGxUYWtlSW50b0FjY291bnQFDXNpZ25lZEJ5QWRtaW4HBgUTbXVsdGlTaWduZWRCeUFkbWlucwUTbXVsdGlTaWduZWRCeUFkbWlucwwR4h0=", "height": 2316822, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4q3Vp3qM3eNq4RPCGQm1hT9GtXi47KZS539WZp4kZnkL Next: 45hJedv3552NyZDqW11cbB7HkKbTgt8t2wQFCcLsa2p6 Diff:
OldNewDifferences
2121
2222 let j = "active"
2323
24-let k = "shutdown_cause"
24+let k = "active_all_contracts"
2525
26-let l = "share_asset_id"
26+let l = "shutdown_cause"
2727
28-let m = "share_asset_supply"
28+let m = "share_asset_id"
2929
30-let n = "commission"
30+let n = "share_asset_supply"
3131
32-let o = "dAppThresholdCoef"
32+let o = "commission"
3333
34-let p = "staking_usdnnsbt_address"
34+let p = "dAppThresholdCoef"
3535
36-let q = "discounts"
36+let q = "staking_usdnnsbt_address"
3737
38-let r = "discount_values"
38+let r = "discounts"
3939
40-let s = "_SWOP_amount"
40+let s = "discount_values"
4141
42-let t = "_GSwop_amount"
42+let t = "_SWOP_amount"
4343
44-let u = "admin_pub_1"
44+let u = "_GSwop_amount"
4545
46-let v = "admin_pub_2"
46+let v = "admin_pub_1"
4747
48-let w = "admin_pub_3"
48+let w = "admin_pub_2"
4949
50-let x = "admin_invoke_pub"
50+let x = "admin_pub_3"
5151
52-let y = "money_box_address"
52+let y = "admin_invoke_pub"
5353
54-let z = "governance_address"
54+let z = "money_box_address"
5555
56-let B = "voting_address"
56+let B = "governance_address"
5757
58-let C = "farming_address"
58+let C = "voting_address"
5959
60-let E = "lp_farming"
60+let E = "farming_address"
6161
62-let F = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
62+let F = "lp_farming"
6363
64-func G (H) = {
65- let I = getString(F, H)
66- if ($isInstanceOf(I, "String"))
64+let G = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
65+
66+func H (I) = {
67+ let J = getString(G, I)
68+ if ($isInstanceOf(J, "String"))
6769 then {
68- let J = I
69- fromBase58String(J)
70+ let K = J
71+ fromBase58String(K)
7072 }
7173 else {
72- let K = I
73- throw((H + "is empty"))
74+ let L = J
75+ throw((I + "is empty"))
7476 }
7577 }
7678
7779
78-let L = G(u)
80+let M = H(v)
7981
80-let M = G(v)
82+let N = H(w)
8183
82-let N = G(w)
84+let O = H(x)
8385
84-let O = G(x)
86+let P = H(y)
8587
86-let P = Address(G(y))
88+let Q = Address(H(z))
8789
88-let Q = Address(G(z))
90+let R = Address(H(B))
8991
90-let R = Address(G(p))
92+let S = Address(H(q))
9193
92-let S = Address(G(B))
94+let T = Address(H(C))
9395
94-let T = Address(G(C))
96+let U = Address(H(E))
9597
96-let U = Address(G(E))
98+let V = Address(H(F))
9799
98-let V = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
100+let W = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
99101
100-let W = [toBase58String(V)]
102+let X = [toBase58String(W)]
101103
102-let X = getBooleanValue(this, j)
104+let Y = getBooleanValue(this, j)
103105
104-let Y = fromBase58String(getStringValue(this, l))
106+let Z = valueOrElse(getBoolean(G, k), true)
105107
106-let Z = getIntegerValue(this, m)
107-
108-let aa = 1000000
108+let aa = fromBase58String(getStringValue(this, m))
109109
110110 let ab = getIntegerValue(this, n)
111111
112-let ac = fraction(40, aa, 100)
112+let ac = 1000000
113113
114-let ad = getIntegerValue(this, "initial_A")
114+let ad = getIntegerValue(this, o)
115115
116-let ae = getIntegerValue(this, "future_A")
116+let ae = fraction(40, ac, 100)
117117
118-let af = valueOrElse(getInteger(this, "initial_A_time"), 0)
118+let af = getIntegerValue(this, "initial_A")
119119
120-let ag = valueOrElse(getInteger(this, "future_A_time"), 0)
120+let ag = getIntegerValue(this, "future_A")
121121
122-let ah = split(getStringValue(this, h), ",")
122+let ah = valueOrElse(getInteger(this, "initial_A_time"), 0)
123123
124-let ai = size(ah)
124+let ai = valueOrElse(getInteger(this, "future_A_time"), 0)
125125
126-func aj (ak) = [BooleanEntry(j, false), StringEntry(k, ak)]
126+let aj = split(getStringValue(this, h), ",")
127+
128+let ak = size(aj)
129+
130+func al (am) = [BooleanEntry(j, false), StringEntry(l, am)]
127131
128132
129-func al () = throw("DApp is already active")
133+func an () = throw("DApp is already active")
130134
131135
132-func am () = if (X)
136+func ao () = if (if (Y)
137+ then Z
138+ else false)
133139 then unit
134140 else throw("DApp is inactive at this moment")
135141
136142
137-func an (ao) = if (containsElement([L, M, N], ao.callerPublicKey))
143+func ap (aq) = if (containsElement([M, N, O], aq.callerPublicKey))
138144 then unit
139145 else throw("Only admin can call this function")
140146
141147
142-func ap (ao) = if ((this == ao.caller))
148+func ar (aq) = if ((this == aq.caller))
143149 then unit
144150 else throw("Only contract itself can call this function")
145151
146152
147-let aq = toBigInt(2)
153+let as = toBigInt(2)
148154
149-let ar = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
155+let at = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
150156
151-let as = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
157+let au = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
152158
153-let at = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
159+let av = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
154160
155-let au = height
161+let aw = height
156162
157-func av (aw) = if (aw)
163+func ax (ay) = if (ay)
158164 then false
159165 else true
160166
161167
162-func ax (ay) = {
163- let az = {
164- let I = ay
165- if ($isInstanceOf(I, "Address"))
168+func az (aA) = {
169+ let aB = {
170+ let J = aA
171+ if ($isInstanceOf(J, "Address"))
166172 then {
167- let aA = I
168- toString(aA)
173+ let aC = J
174+ toString(aC)
169175 }
170- else if ($isInstanceOf(I, "String"))
176+ else if ($isInstanceOf(J, "String"))
171177 then {
172- let aA = I
173- aA
178+ let aC = J
179+ aC
174180 }
175181 else throw("Unknow type of user Addr")
176182 }
177- let aB = valueOrElse(getInteger(Q, (az + t)), 0)
178- let aC = valueOrElse(getInteger(Q, (az + t)), aB)
179- let aD = split(getStringValue(F, r), ",")
180- let aE = split(getStringValue(F, q), ",")
181- if (if ((aC >= parseIntValue(aD[0])))
182- then (parseIntValue(aD[1]) > aC)
183+ let aD = valueOrElse(getInteger(R, (aB + u)), 0)
184+ let aE = valueOrElse(getInteger(R, (aB + u)), aD)
185+ let aF = split(getStringValue(G, s), ",")
186+ let aG = split(getStringValue(G, r), ",")
187+ if (if ((aE >= parseIntValue(aF[0])))
188+ then (parseIntValue(aF[1]) > aE)
183189 else false)
184- then (aa - parseIntValue(aE[0]))
185- else if (if ((aC >= parseIntValue(aD[1])))
186- then (parseIntValue(aD[2]) > aC)
190+ then (ac - parseIntValue(aG[0]))
191+ else if (if ((aE >= parseIntValue(aF[1])))
192+ then (parseIntValue(aF[2]) > aE)
187193 else false)
188- then (aa - parseIntValue(aE[1]))
189- else if (if ((aC >= parseIntValue(aD[2])))
190- then (parseIntValue(aD[3]) > aC)
194+ then (ac - parseIntValue(aG[1]))
195+ else if (if ((aE >= parseIntValue(aF[2])))
196+ then (parseIntValue(aF[3]) > aE)
191197 else false)
192- then (aa - parseIntValue(aE[2]))
193- else if (if ((aC >= parseIntValue(aD[3])))
194- then (parseIntValue(aD[4]) > aC)
198+ then (ac - parseIntValue(aG[2]))
199+ else if (if ((aE >= parseIntValue(aF[3])))
200+ then (parseIntValue(aF[4]) > aE)
195201 else false)
196- then (aa - parseIntValue(aE[3]))
197- else if ((aC >= parseIntValue(aD[4])))
198- then (aa - parseIntValue(aE[4]))
199- else aa
202+ then (ac - parseIntValue(aG[3]))
203+ else if ((aE >= parseIntValue(aF[4])))
204+ then (ac - parseIntValue(aG[4]))
205+ else ac
200206 }
201207
202208
203-func aF () = {
204- let aG = ag
205- let aH = ae
206- if ((aG > au))
209+func aH () = {
210+ let aI = ai
211+ let aJ = ag
212+ if ((aI > aw))
207213 then {
208- let aI = ad
209- let aJ = af
210- if ((aH > aI))
211- then (aI + (((aH - aI) * (au - aJ)) / (aG - aJ)))
212- else (aI - (((aI - aH) * (au - aJ)) / (aG - aJ)))
214+ let aK = af
215+ let aL = ah
216+ if ((aJ > aK))
217+ then (aK + (((aJ - aK) * (aw - aL)) / (aI - aL)))
218+ else (aK - (((aK - aJ) * (aw - aL)) / (aI - aL)))
213219 }
214- else aH
220+ else aJ
215221 }
216222
217223
218-func aK () = {
219- func aL (aM,aN) = (aM :+ valueOrElse(getInteger(this, (aN + i)), 0))
224+func aM () = {
225+ func aN (aO,aP) = (aO :+ valueOrElse(getInteger(this, (aP + i)), 0))
220226
221- let aO = ah
222- let aP = size(aO)
223- let aQ = nil
224- func aR (aS,aT) = if ((aT >= aP))
225- then aS
226- else aL(aS, aO[aT])
227+ let aQ = aj
228+ let aR = size(aQ)
229+ let aS = nil
230+ func aT (aU,aV) = if ((aV >= aR))
231+ then aU
232+ else aN(aU, aQ[aV])
227233
228- func aU (aS,aT) = if ((aT >= aP))
229- then aS
234+ func aW (aU,aV) = if ((aV >= aR))
235+ then aU
230236 else throw("List size exceeds 10")
231237
232- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
238+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
233239 }
234240
235241
236-func aV (aW) = aW
242+func aX (aY) = aY
237243
238244
239-func aX (aM,aY) = (aM + aY)
245+func aZ (aO,ba) = (aO + ba)
240246
241247
242-func aZ (aW,ba) = {
243- let bb = invoke(this, "D", [aW, ba], nil)
244- if ($isInstanceOf(bb, "Int"))
245- then bb
246- else throw(($getType(bb) + " couldn't be cast to Int"))
248+func bb (aY,bc) = {
249+ let bd = invoke(this, "D", [aY, bc], nil)
250+ if ($isInstanceOf(bd, "Int"))
251+ then bd
252+ else throw(($getType(bd) + " couldn't be cast to Int"))
247253 }
248254
249255
250-func bc (aW,ba) = {
251- let bd = {
252- let aO = aW
253- let aP = size(aO)
254- let aQ = 0
255- func aR (aS,aT) = if ((aT >= aP))
256- then aS
257- else aX(aS, aO[aT])
256+func be (aY,bc) = {
257+ let bf = {
258+ let aQ = aY
259+ let aR = size(aQ)
260+ let aS = 0
261+ func aT (aU,aV) = if ((aV >= aR))
262+ then aU
263+ else aZ(aU, aQ[aV])
258264
259- func aU (aS,aT) = if ((aT >= aP))
260- then aS
265+ func aW (aU,aV) = if ((aV >= aR))
266+ then aU
261267 else throw("List size exceeds 10")
262268
263- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
269+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
264270 }
265- if ((bd == 0))
271+ if ((bf == 0))
266272 then 0
267273 else {
268- let be = (ba * ai)
269- let bf = (toBigInt(be) * toBigInt(bd))
270- let bg = toBigInt((be - 1))
271- func bh (aM,ao) = if ((aM._2 == true))
272- then aM
274+ let bg = (bc * ak)
275+ let bh = (toBigInt(bg) * toBigInt(bf))
276+ let bi = toBigInt((bg - 1))
277+ func bj (aO,aq) = if ((aO._2 == true))
278+ then aO
273279 else {
274- let bi = aM._1
275- func bj (bk,ao) = if ((ai > ao))
276- then ((bk * bi) / (toBigInt(aW[ao]) * toBigInt(ai)))
277- else bk
280+ let bk = aO._1
281+ func bl (bm,aq) = if ((ak > aq))
282+ then ((bm * bk) / (toBigInt(aY[aq]) * toBigInt(ak)))
283+ else bm
278284
279- let bk = {
280- let aO = ar
281- let aP = size(aO)
282- let aQ = bi
283- func bl (aS,aT) = if ((aT >= aP))
284- then aS
285- else bj(aS, aO[aT])
285+ let bm = {
286+ let aQ = at
287+ let aR = size(aQ)
288+ let aS = bk
289+ func bn (aU,aV) = if ((aV >= aR))
290+ then aU
291+ else bl(aU, aQ[aV])
286292
287- func bm (aS,aT) = if ((aT >= aP))
288- then aS
293+ func bo (aU,aV) = if ((aV >= aR))
294+ then aU
289295 else throw("List size exceeds 10")
290296
291- bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
297+ bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
292298 }
293- let bn = fraction((bf + (toBigInt(ai) * bk)), bi, ((bg * bi) + (toBigInt((ai + 1)) * bk)))
294- if ((bn > bi))
295- then if ((1 >= toInt((bn - bi))))
296- then $Tuple2(bn, true)
297- else $Tuple2(bn, false)
298- else if ((1 >= toInt((bi - bn))))
299- then $Tuple2(bn, true)
300- else $Tuple2(bn, false)
299+ let bp = fraction((bh + (toBigInt(ak) * bm)), bk, ((bi * bk) + (toBigInt((ak + 1)) * bm)))
300+ if ((bp > bk))
301+ then if ((1 >= toInt((bp - bk))))
302+ then $Tuple2(bp, true)
303+ else $Tuple2(bp, false)
304+ else if ((1 >= toInt((bk - bp))))
305+ then $Tuple2(bp, true)
306+ else $Tuple2(bp, false)
301307 }
302308
303- let bo = {
304- let aO = as
305- let aP = size(aO)
306- let aQ = $Tuple2(toBigInt(bd), false)
307- func bl (aS,aT) = if ((aT >= aP))
308- then aS
309- else bh(aS, aO[aT])
309+ let bq = {
310+ let aQ = au
311+ let aR = size(aQ)
312+ let aS = $Tuple2(toBigInt(bf), false)
313+ func bn (aU,aV) = if ((aV >= aR))
314+ then aU
315+ else bj(aU, aQ[aV])
310316
311- func bm (aS,aT) = if ((aT >= aP))
312- then aS
317+ func bo (aU,aV) = if ((aV >= aR))
318+ then aU
313319 else throw("List size exceeds 15")
314320
315- bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
321+ bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
316322 }
317- let bn = bo._1
318- let bp = bo._2
319- if ((bp == false))
320- then throw(("get_D() not finished with " + toString(bn)))
321- else toInt(bn)
323+ let bp = bq._1
324+ let br = bq._2
325+ if ((br == false))
326+ then throw(("get_D() not finished with " + toString(bp)))
327+ else toInt(bp)
322328 }
323329 }
324330
325331
326-func bq (aW,ba) = aZ(aV(aW), ba)
332+func bs (aY,bc) = bb(aX(aY), bc)
327333
328334
329-func br (bs,bt,bu,bv) = if (av((bs != bt)))
335+func bt (bu,bv,bw,bx) = if (ax((bu != bv)))
330336 then throw("same coin")
331- else if (av(if ((bt >= 0))
332- then (bs >= 0)
337+ else if (ax(if ((bv >= 0))
338+ then (bu >= 0)
333339 else false))
334340 then throw("below zero")
335- else if (av(if ((ai > bt))
336- then (ai > bs)
341+ else if (ax(if ((ak > bv))
342+ then (ak > bu)
337343 else false))
338344 then throw("above N_COINS")
339345 else {
340- let ba = aF()
341- let bn = aZ(bv, ba)
342- let be = (ba * ai)
343- func bw (aM,ao) = {
344- let bx = aM
345- let by = bx._1
346- let bz = bx._2
347- let bA = if ((bs == ao))
348- then bu
349- else bv[ao]
350- if (if ((ao != bt))
351- then (ai > ao)
346+ let bc = aH()
347+ let bp = bb(bx, bc)
348+ let bg = (bc * ak)
349+ func by (aO,aq) = {
350+ let bz = aO
351+ let bA = bz._1
352+ let bB = bz._2
353+ let bC = if ((bu == aq))
354+ then bw
355+ else bx[aq]
356+ if (if ((aq != bv))
357+ then (ak > aq)
352358 else false)
353- then $Tuple2((by + bA), fraction(bz, toBigInt(bn), toBigInt((bA * ai))))
354- else $Tuple2(by, bz)
359+ then $Tuple2((bA + bC), fraction(bB, toBigInt(bp), toBigInt((bC * ak))))
360+ else $Tuple2(bA, bB)
355361 }
356362
357- let bB = {
358- let aO = ar
359- let aP = size(aO)
360- let aQ = $Tuple2(0, toBigInt(bn))
361- func aR (aS,aT) = if ((aT >= aP))
362- then aS
363- else bw(aS, aO[aT])
363+ let bD = {
364+ let aQ = at
365+ let aR = size(aQ)
366+ let aS = $Tuple2(0, toBigInt(bp))
367+ func aT (aU,aV) = if ((aV >= aR))
368+ then aU
369+ else by(aU, aQ[aV])
364370
365- func aU (aS,aT) = if ((aT >= aP))
366- then aS
371+ func aW (aU,aV) = if ((aV >= aR))
372+ then aU
367373 else throw("List size exceeds 10")
368374
369- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
375+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
370376 }
371- let by = bB._1
372- let bC = bB._2
373- let bz = fraction(bC, toBigInt(bn), toBigInt((be * ai)))
374- let bD = toBigInt(((by + (bn / be)) - bn))
375- func bE (aM,bF) = if ((aM._2 == true))
376- then aM
377+ let bA = bD._1
378+ let bE = bD._2
379+ let bB = fraction(bE, toBigInt(bp), toBigInt((bg * ak)))
380+ let bF = toBigInt(((bA + (bp / bg)) - bp))
381+ func bG (aO,bH) = if ((aO._2 == true))
382+ then aO
377383 else {
378- let bG = aM._1
379- let bH = (((bG * bG) + bz) / ((aq * bG) + bD))
380- if ((bH > bG))
381- then if ((1 >= toInt((bH - bG))))
382- then $Tuple2(bH, true)
383- else $Tuple2(bH, false)
384- else if ((1 >= toInt((bG - bH))))
385- then $Tuple2(bH, true)
386- else $Tuple2(bH, false)
384+ let bI = aO._1
385+ let bJ = (((bI * bI) + bB) / ((as * bI) + bF))
386+ if ((bJ > bI))
387+ then if ((1 >= toInt((bJ - bI))))
388+ then $Tuple2(bJ, true)
389+ else $Tuple2(bJ, false)
390+ else if ((1 >= toInt((bI - bJ))))
391+ then $Tuple2(bJ, true)
392+ else $Tuple2(bJ, false)
387393 }
388394
389- let bI = {
390- let aO = at
391- let aP = size(aO)
392- let aQ = $Tuple2(toBigInt(bn), false)
393- func bl (aS,aT) = if ((aT >= aP))
394- then aS
395- else bE(aS, aO[aT])
395+ let bK = {
396+ let aQ = av
397+ let aR = size(aQ)
398+ let aS = $Tuple2(toBigInt(bp), false)
399+ func bn (aU,aV) = if ((aV >= aR))
400+ then aU
401+ else bG(aU, aQ[aV])
396402
397- func bm (aS,aT) = if ((aT >= aP))
398- then aS
403+ func bo (aU,aV) = if ((aV >= aR))
404+ then aU
399405 else throw("List size exceeds 16")
400406
401- bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
407+ bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
402408 }
403- let bH = bI._1
404- let bp = bI._2
405- if ((bp == false))
406- then throw(("getY() not finished with " + toString(bH)))
407- else toInt(bH)
409+ let bJ = bK._1
410+ let br = bK._2
411+ if ((br == false))
412+ then throw(("getY() not finished with " + toString(bJ)))
413+ else toInt(bJ)
408414 }
409415
410416
411-func bJ (bK,bs,aW,bn) = if (av((bs >= 0)))
417+func bL (bM,bu,aY,bp) = if (ax((bu >= 0)))
412418 then throw("i below zero")
413- else if (av((ai > bs)))
419+ else if (ax((ak > bu)))
414420 then throw("i above N_COINS")
415421 else {
416- let be = (bK * ai)
417- func bw (aM,ao) = {
418- let bL = aM
419- let by = bL._1
420- let bz = bL._2
421- let bA = if (if ((bs != ao))
422- then (ai > ao)
422+ let bg = (bM * ak)
423+ func by (aO,aq) = {
424+ let bN = aO
425+ let bA = bN._1
426+ let bB = bN._2
427+ let bC = if (if ((bu != aq))
428+ then (ak > aq)
423429 else false)
424- then aW[ao]
430+ then aY[aq]
425431 else 0
426- if (if ((ai > ao))
427- then (bs != ao)
432+ if (if ((ak > aq))
433+ then (bu != aq)
428434 else false)
429- then $Tuple2((by + bA), fraction(bz, toBigInt(bn), toBigInt((bA * ai))))
430- else $Tuple2(by, bz)
435+ then $Tuple2((bA + bC), fraction(bB, toBigInt(bp), toBigInt((bC * ak))))
436+ else $Tuple2(bA, bB)
431437 }
432438
433- let bM = {
434- let aO = ar
435- let aP = size(aO)
436- let aQ = $Tuple2(0, toBigInt(bn))
437- func aR (aS,aT) = if ((aT >= aP))
438- then aS
439- else bw(aS, aO[aT])
439+ let bO = {
440+ let aQ = at
441+ let aR = size(aQ)
442+ let aS = $Tuple2(0, toBigInt(bp))
443+ func aT (aU,aV) = if ((aV >= aR))
444+ then aU
445+ else by(aU, aQ[aV])
440446
441- func aU (aS,aT) = if ((aT >= aP))
442- then aS
447+ func aW (aU,aV) = if ((aV >= aR))
448+ then aU
443449 else throw("List size exceeds 10")
444450
445- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
451+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
446452 }
447- let by = bM._1
448- let bC = bM._2
449- let bz = fraction(bC, toBigInt(bn), toBigInt((be * ai)))
450- let bD = toBigInt(((by + (bn / be)) - bn))
451- func bN (aM,ao) = if ((aM._2 == true))
452- then aM
453+ let bA = bO._1
454+ let bE = bO._2
455+ let bB = fraction(bE, toBigInt(bp), toBigInt((bg * ak)))
456+ let bF = toBigInt(((bA + (bp / bg)) - bp))
457+ func bP (aO,aq) = if ((aO._2 == true))
458+ then aO
453459 else {
454- let bG = aM._1
455- let bH = (((bG * bG) + bz) / ((aq * bG) + bD))
456- if ((bH > bG))
457- then if ((1 >= toInt((bH - bG))))
458- then $Tuple2(bH, true)
459- else $Tuple2(bH, false)
460- else if ((1 >= toInt((bG - bH))))
461- then $Tuple2(bH, true)
462- else $Tuple2(bH, false)
460+ let bI = aO._1
461+ let bJ = (((bI * bI) + bB) / ((as * bI) + bF))
462+ if ((bJ > bI))
463+ then if ((1 >= toInt((bJ - bI))))
464+ then $Tuple2(bJ, true)
465+ else $Tuple2(bJ, false)
466+ else if ((1 >= toInt((bI - bJ))))
467+ then $Tuple2(bJ, true)
468+ else $Tuple2(bJ, false)
463469 }
464470
465- let bO = {
466- let aO = at
467- let aP = size(aO)
468- let aQ = $Tuple2(toBigInt(bn), false)
469- func bl (aS,aT) = if ((aT >= aP))
470- then aS
471- else bN(aS, aO[aT])
471+ let bQ = {
472+ let aQ = av
473+ let aR = size(aQ)
474+ let aS = $Tuple2(toBigInt(bp), false)
475+ func bn (aU,aV) = if ((aV >= aR))
476+ then aU
477+ else bP(aU, aQ[aV])
472478
473- func bm (aS,aT) = if ((aT >= aP))
474- then aS
479+ func bo (aU,aV) = if ((aV >= aR))
480+ then aU
475481 else throw("List size exceeds 16")
476482
477- bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
483+ bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
478484 }
479- let bH = bO._1
480- let bp = bO._2
481- if ((bp == false))
482- then throw(("get_y_D() not finished with " + toString(bH)))
483- else toInt(bH)
485+ let bJ = bQ._1
486+ let br = bQ._2
487+ if ((br == false))
488+ then throw(("get_y_D() not finished with " + toString(bJ)))
489+ else toInt(bJ)
484490 }
485491
486492
487-func bP (aW,bQ,ao,bR) = {
488- let bS = ax(bR)
489- let ba = aF()
490- let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1)))
491- let bU = Z
492- let bV = aZ(aW, ba)
493- let bW = (bV - fraction(bQ, bV, bU))
494- let bX = bJ(ba, ao, aW, bW)
495- let bY = (aW[ao] - bX)
496- func bZ (aM,ca) = {
497- let cb = aM
498- let cc = cb._1
499- let cd = cb._2
500- let ce = if ((cd == ao))
501- then (fraction(ca, bW, bV) - bX)
502- else (ca - fraction(ca, bW, bV))
503- $Tuple2((cc :+ (ca - fraction(bT, ce, aa))), (cd + 1))
493+func bR (aY,bS,aq,bT) = {
494+ let bU = az(bT)
495+ let bc = aH()
496+ let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1)))
497+ let bW = ab
498+ let bX = bb(aY, bc)
499+ let bY = (bX - fraction(bS, bX, bW))
500+ let bZ = bL(bc, aq, aY, bY)
501+ let ca = (aY[aq] - bZ)
502+ func cb (aO,cc) = {
503+ let cd = aO
504+ let ce = cd._1
505+ let cf = cd._2
506+ let cg = if ((cf == aq))
507+ then (fraction(cc, bY, bX) - bZ)
508+ else (cc - fraction(cc, bY, bX))
509+ $Tuple2((ce :+ (cc - fraction(bV, cg, ac))), (cf + 1))
504510 }
505511
506- let cf = {
507- let aO = aW
508- let aP = size(aO)
509- let aQ = $Tuple2(nil, 0)
510- func aR (aS,aT) = if ((aT >= aP))
511- then aS
512- else bZ(aS, aO[aT])
512+ let ch = {
513+ let aQ = aY
514+ let aR = size(aQ)
515+ let aS = $Tuple2(nil, 0)
516+ func aT (aU,aV) = if ((aV >= aR))
517+ then aU
518+ else cb(aU, aQ[aV])
513519
514- func aU (aS,aT) = if ((aT >= aP))
515- then aS
520+ func aW (aU,aV) = if ((aV >= aR))
521+ then aU
516522 else throw("List size exceeds 10")
517523
518- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
524+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
519525 }
520- let cc = cf._1
521- let cd = cf._2
522- let cg = cc[ao]
523- let ch = ((cg - bJ(ba, ao, cc, bW)) - 1)
524- $Tuple2(ch, (bY - ch))
526+ let ce = ch._1
527+ let cf = ch._2
528+ let ci = ce[aq]
529+ let cj = ((ci - bL(bc, aq, ce, bY)) - 1)
530+ $Tuple2(cj, (ca - cj))
525531 }
526532
527533
528-func ci (aN) = {
529- let I = aN
530- if ($isInstanceOf(I, "ByteVector"))
534+func ck (aP) = {
535+ let J = aP
536+ if ($isInstanceOf(J, "ByteVector"))
531537 then {
532- let cj = I
533- toBase58String(cj)
538+ let cl = J
539+ toBase58String(cl)
534540 }
535- else if ($isInstanceOf(I, "Unit"))
541+ else if ($isInstanceOf(J, "Unit"))
536542 then {
537- let ck = I
543+ let cm = J
538544 "WAVES"
539545 }
540546 else throw("Match error")
541547 }
542548
543549
544-func cl (cm,aN) = if (cm)
545- then $Tuple2("lockNeutrino", R)
546- else $Tuple2("unlockNeutrino", R)
550+func cn (co,aP) = if (co)
551+ then $Tuple2("lockNeutrino", S)
552+ else $Tuple2("unlockNeutrino", S)
547553
548554
549-func cn (cm,co,aN) = if (cm)
555+func cp (co,cq,aP) = if (co)
550556 then {
551- let cp = cl(cm, aN)
552- let cq = cp._1
553- let cr = cp._2
554- $Tuple4(cq, cr, nil, [AttachedPayment(aN, co)])
557+ let cr = cn(co, aP)
558+ let cs = cr._1
559+ let ct = cr._2
560+ $Tuple4(cs, ct, nil, [AttachedPayment(aP, cq)])
555561 }
556562 else {
557- let cs = cl(cm, aN)
558- let cq = cs._1
559- let cr = cs._2
560- $Tuple4(cq, cr, [co, toBase58String(aN)], nil)
563+ let cu = cn(co, aP)
564+ let cs = cu._1
565+ let ct = cu._2
566+ $Tuple4(cs, ct, [cq, toBase58String(aP)], nil)
561567 }
562568
563569
564-func cm (co,ct) = if (containsElement(W, ct))
570+func co (cq,cv) = if (containsElement(X, cv))
565571 then {
566- let cu = cn(true, co, fromBase58String(ct))
567- let cq = cu._1
568- let cv = cu._2
569- let cw = cu._3
570- let cx = cu._4
571- invoke(cv, cq, cw, cx)
572+ let cw = cp(true, cq, fromBase58String(cv))
573+ let cs = cw._1
574+ let cx = cw._2
575+ let cy = cw._3
576+ let cz = cw._4
577+ invoke(cx, cs, cy, cz)
572578 }
573579 else 0
574580
575581
576-func cy (co,ct) = if (containsElement(W, ct))
582+func cA (cq,cv) = if (containsElement(X, cv))
577583 then {
578- let cz = cn(false, co, fromBase58String(ct))
579- let cq = cz._1
580- let cv = cz._2
581- let cw = cz._3
582- let cx = cz._4
583- invoke(cv, cq, cw, cx)
584+ let cB = cp(false, cq, fromBase58String(cv))
585+ let cs = cB._1
586+ let cx = cB._2
587+ let cy = cB._3
588+ let cz = cB._4
589+ invoke(cx, cs, cy, cz)
584590 }
585591 else 0
586592
587593
588-func cA (aN) = {
589- let cB = {
590- let I = aN
591- if ($isInstanceOf(I, "ByteVector"))
594+func cC (aP) = {
595+ let cD = {
596+ let J = aP
597+ if ($isInstanceOf(J, "ByteVector"))
592598 then {
593- let cC = I
594- if ((cC == V))
595- then getInteger(R, ((("rpd_balance_" + toBase58String(cC)) + "_") + toString(this)))
599+ let cE = J
600+ if ((cE == W))
601+ then getInteger(S, ((("rpd_balance_" + toBase58String(cE)) + "_") + toString(this)))
596602 else 0
597603 }
598- else if ($isInstanceOf(I, "Unit"))
604+ else if ($isInstanceOf(J, "Unit"))
599605 then 0
600606 else throw("Match error")
601607 }
602- let I = cB
603- if ($isInstanceOf(I, "Int"))
608+ let J = cD
609+ if ($isInstanceOf(J, "Int"))
604610 then {
605- let ao = I
606- ao
611+ let aq = J
612+ aq
607613 }
608614 else 0
609615 }
610616
611617
612-func cD () = {
613- let cE = aK()
614- func cF (aM,aN) = {
615- let cG = aM
616- let cH = cG._1
617- let ao = cG._2
618- if (cH)
619- then $Tuple2(cH, ao)
618+func cF () = {
619+ let cG = aM()
620+ func cH (aO,aP) = {
621+ let cI = aO
622+ let cJ = cI._1
623+ let aq = cI._2
624+ if (cJ)
625+ then $Tuple2(cJ, aq)
620626 else {
621- let cI = (assetBalance(this, fromBase58String(aN)) + cA(fromBase58String(aN)))
622- if ((cE[ao] > cI))
623- then $Tuple2(true, ao)
624- else $Tuple2(false, (ao + 1))
627+ let cK = (assetBalance(this, fromBase58String(aP)) + cC(fromBase58String(aP)))
628+ if ((cG[aq] > cK))
629+ then $Tuple2(true, aq)
630+ else $Tuple2(false, (aq + 1))
625631 }
626632 }
627633
628- let aO = ah
629- let aP = size(aO)
630- let aQ = $Tuple2(false, 0)
631- func aR (aS,aT) = if ((aT >= aP))
632- then aS
633- else cF(aS, aO[aT])
634+ let aQ = aj
635+ let aR = size(aQ)
636+ let aS = $Tuple2(false, 0)
637+ func aT (aU,aV) = if ((aV >= aR))
638+ then aU
639+ else cH(aU, aQ[aV])
634640
635- func aU (aS,aT) = if ((aT >= aP))
636- then aS
641+ func aW (aU,aV) = if ((aV >= aR))
642+ then aU
637643 else throw("List size exceeds 10")
638644
639- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
645+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
640646 }
641647
642648
643-func cJ (ao) = aj(("Suspicious state with asset: " + ah[ao]))
649+func cL (aq) = al(("Suspicious state with asset: " + aj[aq]))
644650
645651
646-func cK (bR,cx) = {
647- func cL (aM,cM) = (aM :+ ScriptTransfer(bR, cM.amount, cM.assetId))
652+func cM (bT,cz) = {
653+ func cN (aO,cO) = (aO :+ ScriptTransfer(bT, cO.amount, cO.assetId))
648654
649- let aO = cx
650- let aP = size(aO)
651- let aQ = nil
652- func aR (aS,aT) = if ((aT >= aP))
653- then aS
654- else cL(aS, aO[aT])
655+ let aQ = cz
656+ let aR = size(aQ)
657+ let aS = nil
658+ func aT (aU,aV) = if ((aV >= aR))
659+ then aU
660+ else cN(aU, aQ[aV])
655661
656- func aU (aS,aT) = if ((aT >= aP))
657- then aS
662+ func aW (aU,aV) = if ((aV >= aR))
663+ then aU
658664 else throw("List size exceeds 10")
659665
660- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
666+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
661667 }
662668
663669
664-func cN (cO) = {
665- let cP = valueOrErrorMessage(getInteger(this, o), "No dAppThresholdCoef key")
666- let cQ = 10000
667- let cR = max(cO)
668- let cS = min(cO)
669- let cT = fraction(cR, cQ, cS)
670- if ((cT > (cP * cQ)))
670+func cP (cQ) = {
671+ let cR = valueOrErrorMessage(getInteger(this, p), "No dAppThresholdCoef key")
672+ let cS = 10000
673+ let cT = max(cQ)
674+ let cU = min(cQ)
675+ let cV = fraction(cT, cS, cU)
676+ if ((cV > (cR * cS)))
671677 then throw("New balance in assets of the DApp is less than threshold")
672678 else false
673679 }
674680
675681
676-func cU (ah) = {
677- let cV = split(ah, ",")
678- if ((size(cV) > 10))
682+func cW (aj) = {
683+ let cX = split(aj, ",")
684+ if ((size(cX) > 10))
679685 then throw("To many coins, max coins size 10")
680686 else {
681- func cW (cX,aN) = {
682- let cY = valueOrErrorMessage(fromBase58String(aN), ("fromBase58String: " + aN))
683- let cZ = valueOrErrorMessage(assetInfo(cY), ("assetInfo: " + aN)).decimals
684- if ((cZ != d))
687+ func cY (cZ,aP) = {
688+ let da = valueOrErrorMessage(fromBase58String(aP), ("fromBase58String: " + aP))
689+ let db = valueOrErrorMessage(assetInfo(da), ("assetInfo: " + aP)).decimals
690+ if ((db != d))
685691 then throw("wrong decimals")
686692 else false
687693 }
688694
689- let aO = cV
690- let aP = size(aO)
691- let aQ = false
692- func aR (aS,aT) = if ((aT >= aP))
693- then aS
694- else cW(aS, aO[aT])
695+ let aQ = cX
696+ let aR = size(aQ)
697+ let aS = false
698+ func aT (aU,aV) = if ((aV >= aR))
699+ then aU
700+ else cY(aU, aQ[aV])
695701
696- func aU (aS,aT) = if ((aT >= aP))
697- then aS
702+ func aW (aU,aV) = if ((aV >= aR))
703+ then aU
698704 else throw("List size exceeds 10")
699705
700- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
706+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
701707 }
702708 }
703709
704710
705-@Callable(da)
706-func D (aW,ba) = {
707- let bn = bc(aW, ba)
708- $Tuple2([IntegerEntry("D", bn)], bn)
711+@Callable(dc)
712+func D (aY,bc) = {
713+ let bp = be(aY, bc)
714+ $Tuple2([IntegerEntry("D", bp)], bp)
709715 }
710716
711717
712718
713-@Callable(da)
714-func init (ah,aF,db) = if (!(isDataStorageUntouched(this)))
719+@Callable(dc)
720+func init (aj,aH,dd) = if (!(isDataStorageUntouched(this)))
715721 then throw("Already initialized")
716- else if ((0 >= aF))
722+ else if ((0 >= aH))
717723 then throw("Amp must be must > 0")
718- else if ((0 >= db))
724+ else if ((0 >= dd))
719725 then throw("dApp Threshold Coef must be > 0")
720726 else {
721- let dc = "s_Multi_USD"
722- let dd = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this))
723- let de = Issue(dc, dd, 0, 6, true)
724- let df = calculateAssetId(de)
725- if (cU(ah))
727+ let de = "s_Multi_USD"
728+ let df = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this))
729+ let dg = Issue(de, df, 0, 6, true)
730+ let dh = calculateAssetId(dg)
731+ if (cW(aj))
726732 then throw()
727- else [StringEntry(g, f), StringEntry(h, ah), IntegerEntry("initial_A", aF), IntegerEntry("future_A", aF), IntegerEntry(n, getIntegerValue(F, "base_fee_flat")), StringEntry(l, toBase58String(df)), IntegerEntry(m, 0), IntegerEntry(o, db), BooleanEntry(j, true), de]
733+ else [StringEntry(g, f), StringEntry(h, aj), IntegerEntry("initial_A", aH), IntegerEntry("future_A", aH), IntegerEntry(o, getIntegerValue(G, "base_fee_flat")), StringEntry(m, toBase58String(dh)), IntegerEntry(n, 0), IntegerEntry(p, dd), BooleanEntry(j, true), dg]
728734 }
729735
730736
731737
732-@Callable(da)
733-func addLiquidity (dg,dh,di) = valueOrElse(am(), {
734- let ba = aF()
735- let aW = aK()
736- let bV = if ((Z == 0))
738+@Callable(dc)
739+func addLiquidity (di,dj,dk) = valueOrElse(ao(), {
740+ let bc = aH()
741+ let aY = aM()
742+ let bX = if ((ab == 0))
737743 then 0
738- else bq(aW, ba)
739- let dj = if (if ((di > 0))
740- then (da.payments[(size(da.payments) - 1)].assetId == unit)
744+ else bs(aY, bc)
745+ let dl = if (if ((dk > 0))
746+ then (dc.payments[(size(dc.payments) - 1)].assetId == unit)
741747 else false)
742- then $Tuple2(removeByIndex(da.payments, (size(da.payments) - 1)), [da.payments[(size(da.payments) - 1)]])
743- else $Tuple2(da.payments, nil)
744- let cx = dj._1
745- let dk = dj._2
746- let dl = size(cx)
747- func dm (dn) = if ((dl > ai))
748- then throw(("payments size > " + toString(ai)))
749- else if ((1 > dl))
748+ then $Tuple2(removeByIndex(dc.payments, (size(dc.payments) - 1)), [dc.payments[(size(dc.payments) - 1)]])
749+ else $Tuple2(dc.payments, nil)
750+ let cz = dl._1
751+ let dm = dl._2
752+ let dn = size(cz)
753+ func do (dp) = if ((dn > ak))
754+ then throw(("payments size > " + toString(ak)))
755+ else if ((1 > dn))
750756 then throw("payments size < 1")
751- else if (if ((Z == 0))
752- then (ai != dl)
757+ else if (if ((ab == 0))
758+ then (ak != dn)
753759 else false)
754760 then throw("initial deposit requires all coins")
755761 else {
756- func do (aM,cM) = if (containsElement(ah, ci(cM.assetId)))
762+ func dq (aO,cO) = if (containsElement(aj, ck(cO.assetId)))
757763 then true
758764 else throw("Invalid asset in payment")
759765
760- let aO = cx
761- let aP = size(aO)
762- let aQ = false
763- func aR (aS,aT) = if ((aT >= aP))
764- then aS
765- else do(aS, aO[aT])
766+ let aQ = cz
767+ let aR = size(aQ)
768+ let aS = false
769+ func aT (aU,aV) = if ((aV >= aR))
770+ then aU
771+ else dq(aU, aQ[aV])
766772
767- func aU (aS,aT) = if ((aT >= aP))
768- then aS
773+ func aW (aU,aV) = if ((aV >= aR))
774+ then aU
769775 else throw("List size exceeds 10")
770776
771- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
777+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
772778 }
773779
774- if (!(dm(dl)))
780+ if (!(do(dn)))
775781 then throw()
776782 else {
777- let cH = cD()
778- if (cH._1)
779- then (cJ(cH._2) ++ cK(da.caller, cx))
783+ let cJ = cF()
784+ if (cJ._1)
785+ then (cL(cJ._2) ++ cM(dc.caller, cz))
780786 else {
781- func cL (aM,aN) = {
782- let dp = aM
783- let cO = dp._1
784- let ao = dp._2
785- func dq (dr,cM) = if ((ci(cM.assetId) == aN))
786- then (dr + cM.amount)
787- else dr
787+ func cN (aO,aP) = {
788+ let dr = aO
789+ let cQ = dr._1
790+ let aq = dr._2
791+ func ds (dt,cO) = if ((ck(cO.assetId) == aP))
792+ then (dt + cO.amount)
793+ else dt
788794
789- let ds = {
790- let aO = cx
791- let aP = size(aO)
792- let aQ = aW[ao]
793- func aR (aS,aT) = if ((aT >= aP))
794- then aS
795- else dq(aS, aO[aT])
795+ let du = {
796+ let aQ = cz
797+ let aR = size(aQ)
798+ let aS = aY[aq]
799+ func aT (aU,aV) = if ((aV >= aR))
800+ then aU
801+ else ds(aU, aQ[aV])
796802
797- func aU (aS,aT) = if ((aT >= aP))
798- then aS
803+ func aW (aU,aV) = if ((aV >= aR))
804+ then aU
799805 else throw("List size exceeds 10")
800806
801- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
807+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
802808 }
803- $Tuple2((cO :+ ds), (ao + 1))
809+ $Tuple2((cQ :+ du), (aq + 1))
804810 }
805811
806- let dt = {
807- let aO = ah
808- let aP = size(aO)
809- let aQ = $Tuple2(nil, 0)
810- func aR (aS,aT) = if ((aT >= aP))
811- then aS
812- else cL(aS, aO[aT])
812+ let dv = {
813+ let aQ = aj
814+ let aR = size(aQ)
815+ let aS = $Tuple2(nil, 0)
816+ func aT (aU,aV) = if ((aV >= aR))
817+ then aU
818+ else cN(aU, aQ[aV])
813819
814- func aU (aS,aT) = if ((aT >= aP))
815- then aS
820+ func aW (aU,aV) = if ((aV >= aR))
821+ then aU
816822 else throw("List size exceeds 10")
817823
818- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
824+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
819825 }
820- let cO = dt._1
821- let du = dt._2
822- if (cN(cO))
826+ let cQ = dv._1
827+ let dw = dv._2
828+ if (cP(cQ))
823829 then throw()
824830 else {
825- let bW = bq(cO, ba)
826- if (av((bW > bV)))
831+ let bY = bs(cQ, bc)
832+ if (ax((bY > bX)))
827833 then throw("D1 > D0")
828834 else {
829- let bS = ax(da.caller)
830- func dv (aM,dr) = {
831- let dw = aM
832- let dx = dw._1
833- let dy = dw._2
834- let ao = dw._3
835- if ((Z > 0))
835+ let bU = az(dc.caller)
836+ func dx (aO,dt) = {
837+ let dy = aO
838+ let dz = dy._1
839+ let dA = dy._2
840+ let aq = dy._3
841+ if ((ab > 0))
836842 then {
837- let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1)))
838- let dz = {
839- let dA = fraction(bW, aW[ao], bV)
840- let dB = if ((dA > dr))
841- then (dA - dr)
842- else (dr - dA)
843- fraction(bT, dB, aa)
843+ let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1)))
844+ let dB = {
845+ let dC = fraction(bY, aY[aq], bX)
846+ let dD = if ((dC > dt))
847+ then (dC - dt)
848+ else (dt - dC)
849+ fraction(bV, dD, ac)
844850 }
845- let dC = fraction(dz, ac, aa)
846- let dD = (dr - dz)
847- let dE = (dr - dz)
848- let dF = (dr - aW[ao])
849- let dG = (dz - dC)
850- let dH = if ((dF > 0))
851- then cm((dF - dz), ah[ao])
852- else cy(dz, ah[ao])
853- if ((dH == dH))
851+ let dE = fraction(dB, ae, ac)
852+ let dF = (dt - dB)
853+ let dG = (dt - dB)
854+ let dH = (dt - aY[aq])
855+ let dI = (dB - dE)
856+ let dJ = if ((dH > 0))
857+ then co((dH - dB), aj[aq])
858+ else cA(dB, aj[aq])
859+ if ((dJ == dJ))
854860 then {
855- let dI = if ((dG > 0))
856- then invoke(U, "airDrop", nil, [AttachedPayment(fromBase58String(ah[ao]), dG)])
861+ let dK = if ((dI > 0))
862+ then invoke(V, "airDrop", nil, [AttachedPayment(fromBase58String(aj[aq]), dI)])
857863 else 0
858- if ((dI == dI))
859- then $Tuple3((dx :+ dE), (dy ++ [ScriptTransfer(P, dC, fromBase58String(ah[ao])), IntegerEntry((ah[ao] + i), dD)]), (ao + 1))
864+ if ((dK == dK))
865+ then $Tuple3((dz :+ dG), (dA ++ [ScriptTransfer(Q, dE, fromBase58String(aj[aq])), IntegerEntry((aj[aq] + i), dF)]), (aq + 1))
860866 else throw("Strict value is not equal to itself.")
861867 }
862868 else throw("Strict value is not equal to itself.")
863869 }
864870 else {
865- let dH = cm(dr, ah[ao])
866- if ((dH == dH))
867- then $Tuple3((dx :+ dr), (dy :+ IntegerEntry((ah[ao] + i), dr)), (ao + 1))
871+ let dJ = co(dt, aj[aq])
872+ if ((dJ == dJ))
873+ then $Tuple3((dz :+ dt), (dA :+ IntegerEntry((aj[aq] + i), dt)), (aq + 1))
868874 else throw("Strict value is not equal to itself.")
869875 }
870876 }
871877
872- let dJ = {
873- let aO = cO
874- let aP = size(aO)
875- let aQ = $Tuple3(nil, nil, 0)
876- func bl (aS,aT) = if ((aT >= aP))
877- then aS
878- else dv(aS, aO[aT])
878+ let dL = {
879+ let aQ = cQ
880+ let aR = size(aQ)
881+ let aS = $Tuple3(nil, nil, 0)
882+ func bn (aU,aV) = if ((aV >= aR))
883+ then aU
884+ else dx(aU, aQ[aV])
879885
880- func bm (aS,aT) = if ((aT >= aP))
881- then aS
886+ func bo (aU,aV) = if ((aV >= aR))
887+ then aU
882888 else throw("List size exceeds 10")
883889
884- bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
890+ bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
885891 }
886- let dx = dJ._1
887- let dy = dJ._2
888- let dK = bq(dx, ba)
889- let dL = if ((Z == 0))
890- then bW
891- else fraction(Z, (dK - bV), bV)
892- if (av((dL >= dg)))
892+ let dz = dL._1
893+ let dA = dL._2
894+ let dM = bs(dz, bc)
895+ let dN = if ((ab == 0))
896+ then bY
897+ else fraction(ab, (dM - bX), bX)
898+ if (ax((dN >= di)))
893899 then throw("Slippage screwed you")
894- else if (dh)
900+ else if (dj)
895901 then {
896- let dM = invoke(this, "reissueShare", [dL], nil)
897- if ((dM == dM))
902+ let dO = invoke(this, "reissueShare", [dN], nil)
903+ if ((dO == dO))
898904 then {
899- let dN = invoke(T, "lockShareTokens", [toString(this), di], ([AttachedPayment(Y, dL)] ++ dk))
900- if ((dN == dN))
901- then (dy :+ IntegerEntry(m, (Z + dL)))
905+ let dP = invoke(U, "lockShareTokensFromPool", [dc.caller.bytes, toString(this), dk], ([AttachedPayment(aa, dN)] ++ dm))
906+ if ((dP == dP))
907+ then (dA :+ IntegerEntry(n, (ab + dN)))
902908 else throw("Strict value is not equal to itself.")
903909 }
904910 else throw("Strict value is not equal to itself.")
905911 }
906- else (dy ++ [Reissue(Y, dL, true), ScriptTransfer(da.caller, dL, Y), IntegerEntry(m, (Z + dL))])
912+ else (dA ++ [Reissue(aa, dN, true), ScriptTransfer(dc.caller, dN, aa), IntegerEntry(n, (ab + dN))])
907913 }
908914 }
909915 }
912918
913919
914920
915-@Callable(da)
916-func calcMintAmount (cO,az) = {
917- let ba = aF()
918- let aW = aK()
919- let bW = bq(cO, ba)
920- if ((Z == 0))
921- then $Tuple2(nil, bW)
921+@Callable(dc)
922+func calcMintAmount (cQ,aB) = {
923+ let bc = aH()
924+ let aY = aM()
925+ let bY = bs(cQ, bc)
926+ if ((ab == 0))
927+ then $Tuple2(nil, bY)
922928 else {
923- let bV = bq(aW, ba)
924- let bS = ax(az)
925- func dO (aM,dr) = {
926- let dP = aM
927- let dx = dP._1
928- let ao = dP._2
929- let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1)))
930- let dz = {
931- let dA = fraction(bW, aW[ao], bV)
932- let dB = if ((dA > dr))
933- then (dA - dr)
934- else (dr - dA)
935- fraction(bT, dB, aa)
929+ let bX = bs(aY, bc)
930+ let bU = az(aB)
931+ func dQ (aO,dt) = {
932+ let dR = aO
933+ let dz = dR._1
934+ let aq = dR._2
935+ let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1)))
936+ let dB = {
937+ let dC = fraction(bY, aY[aq], bX)
938+ let dD = if ((dC > dt))
939+ then (dC - dt)
940+ else (dt - dC)
941+ fraction(bV, dD, ac)
936942 }
937- let dE = (dr - dz)
938- $Tuple2((dx :+ dE), (ao + 1))
943+ let dG = (dt - dB)
944+ $Tuple2((dz :+ dG), (aq + 1))
939945 }
940946
941- let dQ = {
942- let aO = cO
943- let aP = size(aO)
944- let aQ = $Tuple2(nil, 0)
945- func aR (aS,aT) = if ((aT >= aP))
946- then aS
947- else dO(aS, aO[aT])
947+ let dS = {
948+ let aQ = cQ
949+ let aR = size(aQ)
950+ let aS = $Tuple2(nil, 0)
951+ func aT (aU,aV) = if ((aV >= aR))
952+ then aU
953+ else dQ(aU, aQ[aV])
948954
949- func aU (aS,aT) = if ((aT >= aP))
950- then aS
955+ func aW (aU,aV) = if ((aV >= aR))
956+ then aU
951957 else throw("List size exceeds 10")
952958
953- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
959+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
954960 }
955- let dx = dQ._1
956- let du = dQ._2
957- let dK = bq(dx, ba)
958- let dR = fraction(Z, (dK - bV), bV)
959- $Tuple2(nil, dR)
961+ let dz = dS._1
962+ let dw = dS._2
963+ let dM = bs(dz, bc)
964+ let dT = fraction(ab, (dM - bX), bX)
965+ $Tuple2(nil, dT)
960966 }
961967 }
962968
963969
964970
965-@Callable(da)
966-func reissueShare (co) = valueOrElse(ap(da), [Reissue(Y, co, true)])
971+@Callable(dc)
972+func reissueShare (cq) = valueOrElse(ar(dc), [Reissue(aa, cq, true)])
967973
968974
969975
970-@Callable(da)
971-func getDy (dS,dT,dU,dV) = {
972- let aW = aK()
973- let dW = valueOrErrorMessage(indexOf(ah, dS), "unknown token in")
974- let dX = valueOrErrorMessage(indexOf(ah, dT), "unknown token out")
975- let bu = (aW[dW] + dU)
976- let bH = br(dW, dX, bu, aW)
977- let ch = ((aW[dX] - bH) - 1)
978- let bS = ax(Address(fromBase58String(dV)))
979- let bT = fraction(fraction(ab, bS, aa, CEILING), ch, aa)
980- $Tuple2(nil, $Tuple2((ch - bT), bT))
976+@Callable(dc)
977+func getDy (dU,dV,dW,dX) = {
978+ let aY = aM()
979+ let dY = valueOrErrorMessage(indexOf(aj, dU), "unknown token in")
980+ let dZ = valueOrErrorMessage(indexOf(aj, dV), "unknown token out")
981+ let bw = (aY[dY] + dW)
982+ let bJ = bt(dY, dZ, bw, aY)
983+ let cj = ((aY[dZ] - bJ) - 1)
984+ let bU = az(Address(fromBase58String(dX)))
985+ let bV = fraction(fraction(ad, bU, ac, CEILING), cj, ac)
986+ $Tuple2(nil, $Tuple2((cj - bV), bV))
981987 }
982988
983989
984990
985-@Callable(da)
986-func exchange (dY,dZ) = valueOrElse(am(), if ((size(da.payments) != 1))
991+@Callable(dc)
992+func exchange (ea,eb) = valueOrElse(ao(), if ((size(dc.payments) != 1))
987993 then throw("size(payments) != 1")
988994 else {
989- let cH = cD()
990- if (cH._1)
991- then (cJ(cH._2) ++ cK(da.caller, da.payments))
995+ let cJ = cF()
996+ if (cJ._1)
997+ then (cL(cJ._2) ++ cM(dc.caller, dc.payments))
992998 else {
993- let cM = da.payments[0]
994- let ea = ci(cM.assetId)
995- let eb = fromBase58String(dY)
996- let dU = cM.amount
997- let dW = valueOrErrorMessage(indexOf(ah, ea), "unknown token in")
998- let dX = valueOrErrorMessage(indexOf(ah, dY), "unknown token out")
999- let aW = aK()
1000- let bu = (aW[dW] + dU)
1001- let bH = br(dW, dX, bu, aW)
1002- let ec = ((aW[dX] - bH) - 1)
1003- let bS = ax(da.originCaller)
1004- let bT = fraction(ec, fraction(ab, bS, aa, CEILING), aa)
1005- let ch = (ec - bT)
1006- let dC = fraction(bT, ac, aa)
1007- if (av((ch >= dZ)))
999+ let cO = dc.payments[0]
1000+ let ec = ck(cO.assetId)
1001+ let ed = fromBase58String(ea)
1002+ let dW = cO.amount
1003+ let dY = valueOrErrorMessage(indexOf(aj, ec), "unknown token in")
1004+ let dZ = valueOrErrorMessage(indexOf(aj, ea), "unknown token out")
1005+ let aY = aM()
1006+ let bw = (aY[dY] + dW)
1007+ let bJ = bt(dY, dZ, bw, aY)
1008+ let ee = ((aY[dZ] - bJ) - 1)
1009+ let bU = az(dc.originCaller)
1010+ let bV = fraction(ee, fraction(ad, bU, ac, CEILING), ac)
1011+ let cj = (ee - bV)
1012+ let dE = fraction(bV, ae, ac)
1013+ if (ax((cj >= eb)))
10081014 then throw("Exchange resulted in fewer coins than expected")
10091015 else {
1010- func ed (aM,ee) = {
1011- let ef = aM
1012- let cO = ef._1
1013- let ao = ef._2
1014- if ((ao == dW))
1015- then $Tuple2((cO :+ (ee + dU)), (ao + 1))
1016- else if ((ao == dX))
1017- then $Tuple2((cO :+ (ee - ec)), (ao + 1))
1018- else $Tuple2((cO :+ ee), (ao + 1))
1016+ func ef (aO,eg) = {
1017+ let eh = aO
1018+ let cQ = eh._1
1019+ let aq = eh._2
1020+ if ((aq == dY))
1021+ then $Tuple2((cQ :+ (eg + dW)), (aq + 1))
1022+ else if ((aq == dZ))
1023+ then $Tuple2((cQ :+ (eg - ee)), (aq + 1))
1024+ else $Tuple2((cQ :+ eg), (aq + 1))
10191025 }
10201026
1021- let eg = {
1022- let aO = aW
1023- let aP = size(aO)
1024- let aQ = $Tuple2(nil, 0)
1025- func aR (aS,aT) = if ((aT >= aP))
1026- then aS
1027- else ed(aS, aO[aT])
1027+ let ei = {
1028+ let aQ = aY
1029+ let aR = size(aQ)
1030+ let aS = $Tuple2(nil, 0)
1031+ func aT (aU,aV) = if ((aV >= aR))
1032+ then aU
1033+ else ef(aU, aQ[aV])
10281034
1029- func aU (aS,aT) = if ((aT >= aP))
1030- then aS
1035+ func aW (aU,aV) = if ((aV >= aR))
1036+ then aU
10311037 else throw("List size exceeds 10")
10321038
1033- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1039+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
10341040 }
1035- let cO = eg._1
1036- let ao = eg._2
1037- if (cN(cO))
1041+ let cQ = ei._1
1042+ let aq = ei._2
1043+ if (cP(cQ))
10381044 then throw()
10391045 else {
1040- let dN = cm(cM.amount, ci(cM.assetId))
1041- if ((dN == dN))
1046+ let dP = co(cO.amount, ck(cO.assetId))
1047+ if ((dP == dP))
10421048 then {
1043- let eh = cy(ec, dY)
1044- if ((eh == eh))
1049+ let ej = cA(ee, ea)
1050+ if ((ej == ej))
10451051 then {
1046- let dG = (bT - dC)
1047- let dI = if ((dG > 0))
1048- then invoke(U, "airDrop", nil, [AttachedPayment(eb, dG)])
1052+ let dI = (bV - dE)
1053+ let dK = if ((dI > 0))
1054+ then invoke(V, "airDrop", nil, [AttachedPayment(ed, dI)])
10491055 else 0
1050- if ((dI == dI))
1051- then $Tuple2([IntegerEntry((ea + i), bu), IntegerEntry((dY + i), (aW[dX] - ec)), ScriptTransfer(da.caller, ch, eb), ScriptTransfer(P, dC, eb)], [ch, eb])
1056+ if ((dK == dK))
1057+ then $Tuple2([IntegerEntry((ec + i), bw), IntegerEntry((ea + i), (aY[dZ] - ee)), ScriptTransfer(dc.caller, cj, ed), ScriptTransfer(Q, dE, ed)], [cj, ed])
10521058 else throw("Strict value is not equal to itself.")
10531059 }
10541060 else throw("Strict value is not equal to itself.")
10611067
10621068
10631069
1064-@Callable(da)
1065-func withdraw (ei) = valueOrElse(am(), if ((size(da.payments) != 1))
1070+@Callable(dc)
1071+func withdraw (ek) = valueOrElse(ao(), if ((size(dc.payments) != 1))
10661072 then throw("size(payments) != 1")
10671073 else {
1068- let ej = da.payments[0].amount
1069- let ek = da.payments[0].assetId
1070- if ((Y != ek))
1074+ let el = dc.payments[0].amount
1075+ let em = dc.payments[0].assetId
1076+ if ((aa != em))
10711077 then throw("unknown payment token")
10721078 else {
1073- let cH = cD()
1074- if (cH._1)
1075- then (cJ(cH._2) ++ cK(da.originCaller, da.payments))
1079+ let cJ = cF()
1080+ if (cJ._1)
1081+ then (cL(cJ._2) ++ cM(dc.originCaller, dc.payments))
10761082 else {
1077- func dv (aM,el) = {
1078- let em = aM
1079- let dy = em._1
1080- let ao = em._2
1081- let en = fraction(el, ej, Z)
1082- if (av((en >= ei[ao])))
1083+ func dx (aO,en) = {
1084+ let eo = aO
1085+ let dA = eo._1
1086+ let aq = eo._2
1087+ let ep = fraction(en, el, ab)
1088+ if (ax((ep >= ek[aq])))
10831089 then throw("Withdrawal resulted in fewer coins than expected")
10841090 else {
1085- let eh = cy(en, ah[ao])
1086- if ((eh == eh))
1087- then $Tuple2((dy ++ [IntegerEntry((ah[ao] + i), (el - en)), ScriptTransfer(da.originCaller, en, fromBase58String(ah[ao]))]), (ao + 1))
1091+ let ej = cA(ep, aj[aq])
1092+ if ((ej == ej))
1093+ then $Tuple2((dA ++ [IntegerEntry((aj[aq] + i), (en - ep)), ScriptTransfer(dc.originCaller, ep, fromBase58String(aj[aq]))]), (aq + 1))
10881094 else throw("Strict value is not equal to itself.")
10891095 }
10901096 }
10911097
1092- let eo = {
1093- let aO = aK()
1094- let aP = size(aO)
1095- let aQ = $Tuple2(nil, 0)
1096- func aR (aS,aT) = if ((aT >= aP))
1097- then aS
1098- else dv(aS, aO[aT])
1098+ let eq = {
1099+ let aQ = aM()
1100+ let aR = size(aQ)
1101+ let aS = $Tuple2(nil, 0)
1102+ func aT (aU,aV) = if ((aV >= aR))
1103+ then aU
1104+ else dx(aU, aQ[aV])
10991105
1100- func aU (aS,aT) = if ((aT >= aP))
1101- then aS
1106+ func aW (aU,aV) = if ((aV >= aR))
1107+ then aU
11021108 else throw("List size exceeds 10")
11031109
1104- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1110+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
11051111 }
1106- let dy = eo._1
1107- let ao = eo._2
1108- (dy ++ [Burn(Y, ej), IntegerEntry(m, (Z - ej))])
1112+ let dA = eq._1
1113+ let aq = eq._2
1114+ (dA ++ [Burn(aa, el), IntegerEntry(n, (ab - el))])
11091115 }
11101116 }
11111117 })
11121118
11131119
11141120
1115-@Callable(da)
1116-func withdrawWithUnlock (ei,ep) = valueOrElse(am(), if ((0 >= ep))
1121+@Callable(dc)
1122+func withdrawWithUnlock (ek,er) = valueOrElse(ao(), if ((0 >= er))
11171123 then throw("Unlock amount must be positive")
11181124 else {
1119- let cH = cD()
1120- if (cH._1)
1121- then (cJ(cH._2) ++ cK(da.caller, da.payments))
1125+ let cJ = cF()
1126+ if (cJ._1)
1127+ then (cL(cJ._2) ++ cM(dc.caller, dc.payments))
11221128 else {
1123- let ej = if ((size(da.payments) > 0))
1124- then if ((size(da.payments) != 1))
1129+ let el = if ((size(dc.payments) > 0))
1130+ then if ((size(dc.payments) != 1))
11251131 then throw("size(payments) != 1")
11261132 else {
1127- let ek = da.payments[0].assetId
1128- if ((Y != ek))
1133+ let em = dc.payments[0].assetId
1134+ if ((aa != em))
11291135 then throw("unknown payment token")
1130- else da.payments[0].amount
1136+ else dc.payments[0].amount
11311137 }
11321138 else 0
1133- let eq = invoke(T, "withdrawShareTokens", [toString(this), ep], nil)
1134- if ((eq == eq))
1139+ let es = invoke(U, "withdrawShareTokensFromPool", [dc.caller.bytes, toString(this), er], nil)
1140+ if ((es == es))
11351141 then {
1136- let er = (ej + ep)
1137- let dH = invoke(this, "withdraw", [ei], [AttachedPayment(Y, er)])
1138- if ((dH == dH))
1142+ let et = (el + er)
1143+ let dJ = invoke(this, "withdraw", [ek], [AttachedPayment(aa, et)])
1144+ if ((dJ == dJ))
11391145 then nil
11401146 else throw("Strict value is not equal to itself.")
11411147 }
11451151
11461152
11471153
1148-@Callable(da)
1149-func calcWithdrawOneCoin (es,dY,az) = if ((0 >= es))
1154+@Callable(dc)
1155+func calcWithdrawOneCoin (eu,ea,aB) = if ((0 >= eu))
11501156 then throw("Amount must be positive")
11511157 else {
1152- let ao = valueOrErrorMessage(indexOf(ah, dY), "unknown token out")
1153- $Tuple2(nil, bP(aK(), es, ao, Address(fromBase58String(az)))._1)
1158+ let aq = valueOrErrorMessage(indexOf(aj, ea), "unknown token out")
1159+ $Tuple2(nil, bR(aM(), eu, aq, Address(fromBase58String(aB)))._1)
11541160 }
11551161
11561162
11571163
1158-@Callable(da)
1159-func withdrawOneCoin (dY,et) = valueOrElse(am(), if ((size(da.payments) != 1))
1164+@Callable(dc)
1165+func withdrawOneCoin (ea,ev) = valueOrElse(ao(), if ((size(dc.payments) != 1))
11601166 then throw("size(payments) != 1")
11611167 else {
1162- let cH = cD()
1163- if (cH._1)
1164- then (cJ(cH._2) ++ cK(da.originCaller, da.payments))
1168+ let cJ = cF()
1169+ if (cJ._1)
1170+ then (cL(cJ._2) ++ cM(dc.originCaller, dc.payments))
11651171 else {
1166- let ej = da.payments[0].amount
1167- let ek = da.payments[0].assetId
1168- if ((ek != Y))
1172+ let el = dc.payments[0].amount
1173+ let em = dc.payments[0].assetId
1174+ if ((em != aa))
11691175 then throw("unknown token")
11701176 else {
1171- let eu = valueOrErrorMessage(indexOf(ah, dY), "unknown token out")
1172- let eb = fromBase58String(dY)
1173- let aW = aK()
1174- let ev = bP(aW, ej, eu, da.originCaller)
1175- let ch = ev._1
1176- let ew = ev._2
1177- if (av((ch >= et)))
1177+ let ew = valueOrErrorMessage(indexOf(aj, ea), "unknown token out")
1178+ let ed = fromBase58String(ea)
1179+ let aY = aM()
1180+ let ex = bR(aY, el, ew, dc.originCaller)
1181+ let cj = ex._1
1182+ let ey = ex._2
1183+ if (ax((cj >= ev)))
11781184 then throw("Not enough coins removed")
11791185 else {
1180- let dC = fraction(ew, ac, aa)
1181- let ex = (ch + ew)
1182- func ed (aM,ee) = {
1183- let ey = aM
1184- let cO = ey._1
1185- let ao = ey._2
1186- if ((ao == eu))
1187- then $Tuple2((cO :+ (ee - ex)), (ao + 1))
1188- else $Tuple2((cO :+ ee), (ao + 1))
1186+ let dE = fraction(ey, ae, ac)
1187+ let ez = (cj + ey)
1188+ func ef (aO,eg) = {
1189+ let eA = aO
1190+ let cQ = eA._1
1191+ let aq = eA._2
1192+ if ((aq == ew))
1193+ then $Tuple2((cQ :+ (eg - ez)), (aq + 1))
1194+ else $Tuple2((cQ :+ eg), (aq + 1))
11891195 }
11901196
1191- let ez = {
1192- let aO = aW
1193- let aP = size(aO)
1194- let aQ = $Tuple2(nil, 0)
1195- func aR (aS,aT) = if ((aT >= aP))
1196- then aS
1197- else ed(aS, aO[aT])
1197+ let eB = {
1198+ let aQ = aY
1199+ let aR = size(aQ)
1200+ let aS = $Tuple2(nil, 0)
1201+ func aT (aU,aV) = if ((aV >= aR))
1202+ then aU
1203+ else ef(aU, aQ[aV])
11981204
1199- func aU (aS,aT) = if ((aT >= aP))
1200- then aS
1205+ func aW (aU,aV) = if ((aV >= aR))
1206+ then aU
12011207 else throw("List size exceeds 10")
12021208
1203- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1209+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
12041210 }
1205- let cO = ez._1
1206- let eA = ez._2
1207- if (cN(cO))
1211+ let cQ = eB._1
1212+ let eC = eB._2
1213+ if (cP(cQ))
12081214 then throw()
12091215 else {
1210- let eh = cy(ex, dY)
1211- if ((eh == eh))
1216+ let ej = cA(ez, ea)
1217+ if ((ej == ej))
12121218 then {
1213- let dG = (ew - dC)
1214- let dI = if ((dG > 0))
1215- then invoke(U, "airDrop", nil, [AttachedPayment(eb, dG)])
1219+ let dI = (ey - dE)
1220+ let dK = if ((dI > 0))
1221+ then invoke(V, "airDrop", nil, [AttachedPayment(ed, dI)])
12161222 else 0
1217- if ((dI == dI))
1218- then [ScriptTransfer(da.originCaller, ch, eb), IntegerEntry((ah[eu] + i), (aW[eu] - ex)), Burn(Y, ej), ScriptTransfer(P, dC, eb), IntegerEntry(m, (Z - ej))]
1223+ if ((dK == dK))
1224+ then [ScriptTransfer(dc.originCaller, cj, ed), IntegerEntry((aj[ew] + i), (aY[ew] - ez)), Burn(aa, el), ScriptTransfer(Q, dE, ed), IntegerEntry(n, (ab - el))]
12191225 else throw("Strict value is not equal to itself.")
12201226 }
12211227 else throw("Strict value is not equal to itself.")
12271233
12281234
12291235
1230-@Callable(da)
1231-func withdrawOneCoinWithUnlock (dY,et,ep) = valueOrElse(am(), if ((0 >= ep))
1236+@Callable(dc)
1237+func withdrawOneCoinWithUnlock (ea,ev,er) = valueOrElse(ao(), if ((0 >= er))
12321238 then throw("Unlock amount must be positive")
12331239 else {
1234- let cH = cD()
1235- if (cH._1)
1236- then (cJ(cH._2) ++ cK(da.caller, da.payments))
1240+ let cJ = cF()
1241+ if (cJ._1)
1242+ then (cL(cJ._2) ++ cM(dc.caller, dc.payments))
12371243 else {
1238- let ej = if ((size(da.payments) > 0))
1239- then if ((size(da.payments) != 1))
1244+ let el = if ((size(dc.payments) > 0))
1245+ then if ((size(dc.payments) != 1))
12401246 then throw("size(payments) != 1")
12411247 else {
1242- let ek = da.payments[0].assetId
1243- if ((Y != ek))
1248+ let em = dc.payments[0].assetId
1249+ if ((aa != em))
12441250 then throw("unknown payment token")
1245- else da.payments[0].amount
1251+ else dc.payments[0].amount
12461252 }
12471253 else 0
1248- let eq = invoke(T, "withdrawShareTokens", [toString(this), ep], nil)
1249- if ((eq == eq))
1254+ let es = invoke(U, "withdrawShareTokensFromPool", [dc.caller.bytes, toString(this), er], nil)
1255+ if ((es == es))
12501256 then {
1251- let er = (ej + ep)
1252- let dH = invoke(this, "withdrawOneCoin", [dY, et], [AttachedPayment(Y, er)])
1253- if ((dH == dH))
1257+ let et = (el + er)
1258+ let dJ = invoke(this, "withdrawOneCoin", [ea, ev], [AttachedPayment(aa, et)])
1259+ if ((dJ == dJ))
12541260 then nil
12551261 else throw("Strict value is not equal to itself.")
12561262 }
12601266
12611267
12621268
1263-@Callable(da)
1264-func A () = $Tuple2(nil, aF())
1269+@Callable(dc)
1270+func A () = $Tuple2(nil, aH())
12651271
12661272
12671273
1268-@Callable(da)
1274+@Callable(dc)
12691275 func getVirtualPrice () = {
1270- let bn = aZ(aK(), aF())
1271- $Tuple2(nil, fraction(bn, a, Z))
1276+ let bp = bb(aM(), aH())
1277+ $Tuple2(nil, fraction(bp, a, ab))
12721278 }
12731279
12741280
12751281
1276-@Callable(da)
1277-func calcTokenAmount (eB,eC) = {
1278- let ba = aF()
1279- let eD = aK()
1280- let bV = bq(eD, ba)
1281- func eE (aM,el) = {
1282- let eF = aM
1283- let cO = eF._1
1284- let ao = eF._2
1285- let dr = (el + (if (eC)
1286- then eB[ao]
1287- else -(eB[ao])))
1288- $Tuple2((cO :+ dr), (ao + 1))
1282+@Callable(dc)
1283+func calcTokenAmount (eD,eE) = {
1284+ let bc = aH()
1285+ let eF = aM()
1286+ let bX = bs(eF, bc)
1287+ func eG (aO,en) = {
1288+ let eH = aO
1289+ let cQ = eH._1
1290+ let aq = eH._2
1291+ let dt = (en + (if (eE)
1292+ then eD[aq]
1293+ else -(eD[aq])))
1294+ $Tuple2((cQ :+ dt), (aq + 1))
12891295 }
12901296
1291- let cO = ( let aO = eD
1292- let aP = size(aO)
1293- let aQ = $Tuple2(nil, 0)
1294- func aR (aS,aT) = if ((aT >= aP))
1295- then aS
1296- else eE(aS, aO[aT])
1297+ let cQ = ( let aQ = eF
1298+ let aR = size(aQ)
1299+ let aS = $Tuple2(nil, 0)
1300+ func aT (aU,aV) = if ((aV >= aR))
1301+ then aU
1302+ else eG(aU, aQ[aV])
12971303
1298- func aU (aS,aT) = if ((aT >= aP))
1299- then aS
1304+ func aW (aU,aV) = if ((aV >= aR))
1305+ then aU
13001306 else throw("List size exceeds 10")
13011307
1302- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1
1303- let bW = bq(cO, ba)
1304- let eG = if (eC)
1305- then (bW - bV)
1306- else (bV - bW)
1307- $Tuple2(nil, fraction(eG, Z, bV))
1308+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1
1309+ let bY = bs(cQ, bc)
1310+ let eI = if (eE)
1311+ then (bY - bX)
1312+ else (bX - bY)
1313+ $Tuple2(nil, fraction(eI, ab, bX))
13081314 }
13091315
13101316
13111317
1312-@Callable(da)
1313-func rampA (eH,eI) = valueOrElse(am(), valueOrElse(an(da), if (av((au >= (af + e))))
1318+@Callable(dc)
1319+func rampA (eJ,eK) = valueOrElse(ao(), valueOrElse(ap(dc), if (ax((aw >= (ah + e))))
13141320 then throw("too often")
1315- else if (av((eI >= (au + e))))
1321+ else if (ax((eK >= (aw + e))))
13161322 then throw("insufficient time")
13171323 else {
1318- let eJ = aF()
1319- if (av(if ((eH > 0))
1320- then (b > eH)
1324+ let eL = aH()
1325+ if (ax(if ((eJ > 0))
1326+ then (b > eJ)
13211327 else false))
13221328 then throw("out of base range")
1323- else if (av(if (if ((eH >= eJ))
1324- then ((eJ * c) >= eH)
1329+ else if (ax(if (if ((eJ >= eL))
1330+ then ((eL * c) >= eJ)
13251331 else false)
13261332 then true
1327- else if ((eJ > eH))
1328- then ((eH * c) >= eJ)
1333+ else if ((eL > eJ))
1334+ then ((eJ * c) >= eL)
13291335 else false))
13301336 then throw("out of range")
1331- else [IntegerEntry("initial_A", eJ), IntegerEntry("future_A", eH), IntegerEntry("initial_A_time", au), IntegerEntry("future_A_time", eI)]
1337+ else [IntegerEntry("initial_A", eL), IntegerEntry("future_A", eJ), IntegerEntry("initial_A_time", aw), IntegerEntry("future_A_time", eK)]
13321338 }))
13331339
13341340
13351341
1336-@Callable(da)
1337-func stopRampA () = valueOrElse(am(), valueOrElse(an(da), {
1338- let eK = aF()
1339-[IntegerEntry("initial_A", eK), IntegerEntry("future_A", eK), IntegerEntry("initial_A_time", au), IntegerEntry("future_A_time", au)]
1342+@Callable(dc)
1343+func stopRampA () = valueOrElse(ao(), valueOrElse(ap(dc), {
1344+ let eM = aH()
1345+[IntegerEntry("initial_A", eM), IntegerEntry("future_A", eM), IntegerEntry("initial_A_time", aw), IntegerEntry("future_A_time", aw)]
13401346 }))
13411347
13421348
13431349
1344-@Callable(da)
1345-func shutdown () = valueOrElse(an(da), if (!(X))
1346- then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, k), "the cause wasn't specified")))
1347- else aj("Paused by admin"))
1350+@Callable(dc)
1351+func shutdown () = valueOrElse(ap(dc), if (!(Y))
1352+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified")))
1353+ else al("Paused by admin"))
13481354
13491355
13501356
1351-@Callable(da)
1352-func activate () = valueOrElse(an(da), if (X)
1353- then al()
1354- else [BooleanEntry(j, true), DeleteEntry(k)])
1357+@Callable(dc)
1358+func activate () = valueOrElse(ap(dc), if (Y)
1359+ then an()
1360+ else [BooleanEntry(j, true), DeleteEntry(l)])
13551361
13561362
13571363
1358-@Callable(da)
1359-func takeIntoAccountExtraFunds () = valueOrElse(am(), if ((da.caller != P))
1364+@Callable(dc)
1365+func takeIntoAccountExtraFunds () = valueOrElse(ao(), if ((dc.caller != Q))
13601366 then throw("Only the wallet can call this function")
13611367 else {
1362- let eD = aK()
1363- func eL (aM,aN) = {
1364- let eM = aM
1365- let eN = eM._1
1366- let ao = eM._2
1367- let eO = fromBase58String(aN)
1368- let eP = (assetBalance(this, eO) + cA(eO))
1369- let eQ = (eP - eD[ao])
1370- if ((0 > eQ))
1371- then aj(("Enroll amount negative for asset" + aN))
1368+ let eF = aM()
1369+ func eN (aO,aP) = {
1370+ let eO = aO
1371+ let eP = eO._1
1372+ let aq = eO._2
1373+ let eQ = fromBase58String(aP)
1374+ let eR = (assetBalance(this, eQ) + cC(eQ))
1375+ let eS = (eR - eF[aq])
1376+ if ((0 > eS))
1377+ then al(("Enroll amount negative for asset" + aP))
13721378 else {
1373- let dI = if ((eQ > 0))
1374- then invoke(U, "airDrop", nil, [AttachedPayment(eO, eQ)])
1379+ let dK = if ((eS > 0))
1380+ then invoke(V, "airDrop", nil, [AttachedPayment(eQ, eS)])
13751381 else 0
1376- if ((dI == dI))
1377- then $Tuple2((eN + eQ), (ao + 1))
1382+ if ((dK == dK))
1383+ then $Tuple2((eP + eS), (aq + 1))
13781384 else throw("Strict value is not equal to itself.")
13791385 }
13801386 }
13811387
1382- let du = {
1383- let aO = ah
1384- let aP = size(aO)
1385- let aQ = $Tuple2(0, 0)
1386- func aR (aS,aT) = if ((aT >= aP))
1387- then aS
1388- else eL(aS, aO[aT])
1388+ let dw = {
1389+ let aQ = aj
1390+ let aR = size(aQ)
1391+ let aS = $Tuple2(0, 0)
1392+ func aT (aU,aV) = if ((aV >= aR))
1393+ then aU
1394+ else eN(aU, aQ[aV])
13891395
1390- func aU (aS,aT) = if ((aT >= aP))
1391- then aS
1396+ func aW (aU,aV) = if ((aV >= aR))
1397+ then aU
13921398 else throw("List size exceeds 10")
13931399
1394- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1400+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
13951401 }
1396- if ((du._1 == 0))
1402+ if ((dw._1 == 0))
13971403 then throw("No money to take")
13981404 else nil
13991405 })
14001406
14011407
1402-@Verifier(eR)
1403-func eS () = {
1404- let eT = {
1405- let eU = if (sigVerify(eR.bodyBytes, eR.proofs[0], L))
1408+@Verifier(eT)
1409+func eU () = {
1410+ let eV = {
1411+ let eW = if (sigVerify(eT.bodyBytes, eT.proofs[0], M))
14061412 then 1
14071413 else 0
1408- let eV = if (sigVerify(eR.bodyBytes, eR.proofs[1], M))
1414+ let eX = if (sigVerify(eT.bodyBytes, eT.proofs[1], N))
14091415 then 1
14101416 else 0
1411- let eW = if (sigVerify(eR.bodyBytes, eR.proofs[2], N))
1417+ let eY = if (sigVerify(eT.bodyBytes, eT.proofs[2], O))
14121418 then 1
14131419 else 0
1414- (((eU + eV) + eW) >= 2)
1420+ (((eW + eX) + eY) >= 2)
14151421 }
1416- let I = eR
1417- if ($isInstanceOf(I, "InvokeScriptTransaction"))
1422+ let J = eT
1423+ if ($isInstanceOf(J, "InvokeScriptTransaction"))
14181424 then {
1419- let dH = I
1420- let eX = if ((dH.dApp == this))
1421- then (dH.function == "takeIntoAccountExtraFunds")
1425+ let dJ = J
1426+ let eZ = if ((dJ.dApp == this))
1427+ then (dJ.function == "takeIntoAccountExtraFunds")
14221428 else false
1423- let eY = if (if (if (sigVerify(eR.bodyBytes, eR.proofs[0], L))
1429+ let fa = if (if (if (sigVerify(eT.bodyBytes, eT.proofs[0], M))
14241430 then true
1425- else sigVerify(eR.bodyBytes, eR.proofs[0], M))
1431+ else sigVerify(eT.bodyBytes, eT.proofs[0], N))
14261432 then true
1427- else sigVerify(eR.bodyBytes, eR.proofs[0], N))
1433+ else sigVerify(eT.bodyBytes, eT.proofs[0], O))
14281434 then true
1429- else sigVerify(eR.bodyBytes, eR.proofs[0], O)
1430- if (if (eX)
1431- then eY
1435+ else sigVerify(eT.bodyBytes, eT.proofs[0], P)
1436+ if (if (eZ)
1437+ then fa
14321438 else false)
14331439 then true
1434- else eT
1440+ else eV
14351441 }
1436- else eT
1442+ else eV
14371443 }
14381444
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1000000
55
66 let b = 1000000
77
88 let c = 10
99
1010 let d = 6
1111
1212 let e = (86400 / 60)
1313
1414 let f = "3.0.0"
1515
1616 let g = "version"
1717
1818 let h = "asset_ids"
1919
2020 let i = "_balance"
2121
2222 let j = "active"
2323
24-let k = "shutdown_cause"
24+let k = "active_all_contracts"
2525
26-let l = "share_asset_id"
26+let l = "shutdown_cause"
2727
28-let m = "share_asset_supply"
28+let m = "share_asset_id"
2929
30-let n = "commission"
30+let n = "share_asset_supply"
3131
32-let o = "dAppThresholdCoef"
32+let o = "commission"
3333
34-let p = "staking_usdnnsbt_address"
34+let p = "dAppThresholdCoef"
3535
36-let q = "discounts"
36+let q = "staking_usdnnsbt_address"
3737
38-let r = "discount_values"
38+let r = "discounts"
3939
40-let s = "_SWOP_amount"
40+let s = "discount_values"
4141
42-let t = "_GSwop_amount"
42+let t = "_SWOP_amount"
4343
44-let u = "admin_pub_1"
44+let u = "_GSwop_amount"
4545
46-let v = "admin_pub_2"
46+let v = "admin_pub_1"
4747
48-let w = "admin_pub_3"
48+let w = "admin_pub_2"
4949
50-let x = "admin_invoke_pub"
50+let x = "admin_pub_3"
5151
52-let y = "money_box_address"
52+let y = "admin_invoke_pub"
5353
54-let z = "governance_address"
54+let z = "money_box_address"
5555
56-let B = "voting_address"
56+let B = "governance_address"
5757
58-let C = "farming_address"
58+let C = "voting_address"
5959
60-let E = "lp_farming"
60+let E = "farming_address"
6161
62-let F = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
62+let F = "lp_farming"
6363
64-func G (H) = {
65- let I = getString(F, H)
66- if ($isInstanceOf(I, "String"))
64+let G = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
65+
66+func H (I) = {
67+ let J = getString(G, I)
68+ if ($isInstanceOf(J, "String"))
6769 then {
68- let J = I
69- fromBase58String(J)
70+ let K = J
71+ fromBase58String(K)
7072 }
7173 else {
72- let K = I
73- throw((H + "is empty"))
74+ let L = J
75+ throw((I + "is empty"))
7476 }
7577 }
7678
7779
78-let L = G(u)
80+let M = H(v)
7981
80-let M = G(v)
82+let N = H(w)
8183
82-let N = G(w)
84+let O = H(x)
8385
84-let O = G(x)
86+let P = H(y)
8587
86-let P = Address(G(y))
88+let Q = Address(H(z))
8789
88-let Q = Address(G(z))
90+let R = Address(H(B))
8991
90-let R = Address(G(p))
92+let S = Address(H(q))
9193
92-let S = Address(G(B))
94+let T = Address(H(C))
9395
94-let T = Address(G(C))
96+let U = Address(H(E))
9597
96-let U = Address(G(E))
98+let V = Address(H(F))
9799
98-let V = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
100+let W = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
99101
100-let W = [toBase58String(V)]
102+let X = [toBase58String(W)]
101103
102-let X = getBooleanValue(this, j)
104+let Y = getBooleanValue(this, j)
103105
104-let Y = fromBase58String(getStringValue(this, l))
106+let Z = valueOrElse(getBoolean(G, k), true)
105107
106-let Z = getIntegerValue(this, m)
107-
108-let aa = 1000000
108+let aa = fromBase58String(getStringValue(this, m))
109109
110110 let ab = getIntegerValue(this, n)
111111
112-let ac = fraction(40, aa, 100)
112+let ac = 1000000
113113
114-let ad = getIntegerValue(this, "initial_A")
114+let ad = getIntegerValue(this, o)
115115
116-let ae = getIntegerValue(this, "future_A")
116+let ae = fraction(40, ac, 100)
117117
118-let af = valueOrElse(getInteger(this, "initial_A_time"), 0)
118+let af = getIntegerValue(this, "initial_A")
119119
120-let ag = valueOrElse(getInteger(this, "future_A_time"), 0)
120+let ag = getIntegerValue(this, "future_A")
121121
122-let ah = split(getStringValue(this, h), ",")
122+let ah = valueOrElse(getInteger(this, "initial_A_time"), 0)
123123
124-let ai = size(ah)
124+let ai = valueOrElse(getInteger(this, "future_A_time"), 0)
125125
126-func aj (ak) = [BooleanEntry(j, false), StringEntry(k, ak)]
126+let aj = split(getStringValue(this, h), ",")
127+
128+let ak = size(aj)
129+
130+func al (am) = [BooleanEntry(j, false), StringEntry(l, am)]
127131
128132
129-func al () = throw("DApp is already active")
133+func an () = throw("DApp is already active")
130134
131135
132-func am () = if (X)
136+func ao () = if (if (Y)
137+ then Z
138+ else false)
133139 then unit
134140 else throw("DApp is inactive at this moment")
135141
136142
137-func an (ao) = if (containsElement([L, M, N], ao.callerPublicKey))
143+func ap (aq) = if (containsElement([M, N, O], aq.callerPublicKey))
138144 then unit
139145 else throw("Only admin can call this function")
140146
141147
142-func ap (ao) = if ((this == ao.caller))
148+func ar (aq) = if ((this == aq.caller))
143149 then unit
144150 else throw("Only contract itself can call this function")
145151
146152
147-let aq = toBigInt(2)
153+let as = toBigInt(2)
148154
149-let ar = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
155+let at = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
150156
151-let as = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
157+let au = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
152158
153-let at = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
159+let av = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
154160
155-let au = height
161+let aw = height
156162
157-func av (aw) = if (aw)
163+func ax (ay) = if (ay)
158164 then false
159165 else true
160166
161167
162-func ax (ay) = {
163- let az = {
164- let I = ay
165- if ($isInstanceOf(I, "Address"))
168+func az (aA) = {
169+ let aB = {
170+ let J = aA
171+ if ($isInstanceOf(J, "Address"))
166172 then {
167- let aA = I
168- toString(aA)
173+ let aC = J
174+ toString(aC)
169175 }
170- else if ($isInstanceOf(I, "String"))
176+ else if ($isInstanceOf(J, "String"))
171177 then {
172- let aA = I
173- aA
178+ let aC = J
179+ aC
174180 }
175181 else throw("Unknow type of user Addr")
176182 }
177- let aB = valueOrElse(getInteger(Q, (az + t)), 0)
178- let aC = valueOrElse(getInteger(Q, (az + t)), aB)
179- let aD = split(getStringValue(F, r), ",")
180- let aE = split(getStringValue(F, q), ",")
181- if (if ((aC >= parseIntValue(aD[0])))
182- then (parseIntValue(aD[1]) > aC)
183+ let aD = valueOrElse(getInteger(R, (aB + u)), 0)
184+ let aE = valueOrElse(getInteger(R, (aB + u)), aD)
185+ let aF = split(getStringValue(G, s), ",")
186+ let aG = split(getStringValue(G, r), ",")
187+ if (if ((aE >= parseIntValue(aF[0])))
188+ then (parseIntValue(aF[1]) > aE)
183189 else false)
184- then (aa - parseIntValue(aE[0]))
185- else if (if ((aC >= parseIntValue(aD[1])))
186- then (parseIntValue(aD[2]) > aC)
190+ then (ac - parseIntValue(aG[0]))
191+ else if (if ((aE >= parseIntValue(aF[1])))
192+ then (parseIntValue(aF[2]) > aE)
187193 else false)
188- then (aa - parseIntValue(aE[1]))
189- else if (if ((aC >= parseIntValue(aD[2])))
190- then (parseIntValue(aD[3]) > aC)
194+ then (ac - parseIntValue(aG[1]))
195+ else if (if ((aE >= parseIntValue(aF[2])))
196+ then (parseIntValue(aF[3]) > aE)
191197 else false)
192- then (aa - parseIntValue(aE[2]))
193- else if (if ((aC >= parseIntValue(aD[3])))
194- then (parseIntValue(aD[4]) > aC)
198+ then (ac - parseIntValue(aG[2]))
199+ else if (if ((aE >= parseIntValue(aF[3])))
200+ then (parseIntValue(aF[4]) > aE)
195201 else false)
196- then (aa - parseIntValue(aE[3]))
197- else if ((aC >= parseIntValue(aD[4])))
198- then (aa - parseIntValue(aE[4]))
199- else aa
202+ then (ac - parseIntValue(aG[3]))
203+ else if ((aE >= parseIntValue(aF[4])))
204+ then (ac - parseIntValue(aG[4]))
205+ else ac
200206 }
201207
202208
203-func aF () = {
204- let aG = ag
205- let aH = ae
206- if ((aG > au))
209+func aH () = {
210+ let aI = ai
211+ let aJ = ag
212+ if ((aI > aw))
207213 then {
208- let aI = ad
209- let aJ = af
210- if ((aH > aI))
211- then (aI + (((aH - aI) * (au - aJ)) / (aG - aJ)))
212- else (aI - (((aI - aH) * (au - aJ)) / (aG - aJ)))
214+ let aK = af
215+ let aL = ah
216+ if ((aJ > aK))
217+ then (aK + (((aJ - aK) * (aw - aL)) / (aI - aL)))
218+ else (aK - (((aK - aJ) * (aw - aL)) / (aI - aL)))
213219 }
214- else aH
220+ else aJ
215221 }
216222
217223
218-func aK () = {
219- func aL (aM,aN) = (aM :+ valueOrElse(getInteger(this, (aN + i)), 0))
224+func aM () = {
225+ func aN (aO,aP) = (aO :+ valueOrElse(getInteger(this, (aP + i)), 0))
220226
221- let aO = ah
222- let aP = size(aO)
223- let aQ = nil
224- func aR (aS,aT) = if ((aT >= aP))
225- then aS
226- else aL(aS, aO[aT])
227+ let aQ = aj
228+ let aR = size(aQ)
229+ let aS = nil
230+ func aT (aU,aV) = if ((aV >= aR))
231+ then aU
232+ else aN(aU, aQ[aV])
227233
228- func aU (aS,aT) = if ((aT >= aP))
229- then aS
234+ func aW (aU,aV) = if ((aV >= aR))
235+ then aU
230236 else throw("List size exceeds 10")
231237
232- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
238+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
233239 }
234240
235241
236-func aV (aW) = aW
242+func aX (aY) = aY
237243
238244
239-func aX (aM,aY) = (aM + aY)
245+func aZ (aO,ba) = (aO + ba)
240246
241247
242-func aZ (aW,ba) = {
243- let bb = invoke(this, "D", [aW, ba], nil)
244- if ($isInstanceOf(bb, "Int"))
245- then bb
246- else throw(($getType(bb) + " couldn't be cast to Int"))
248+func bb (aY,bc) = {
249+ let bd = invoke(this, "D", [aY, bc], nil)
250+ if ($isInstanceOf(bd, "Int"))
251+ then bd
252+ else throw(($getType(bd) + " couldn't be cast to Int"))
247253 }
248254
249255
250-func bc (aW,ba) = {
251- let bd = {
252- let aO = aW
253- let aP = size(aO)
254- let aQ = 0
255- func aR (aS,aT) = if ((aT >= aP))
256- then aS
257- else aX(aS, aO[aT])
256+func be (aY,bc) = {
257+ let bf = {
258+ let aQ = aY
259+ let aR = size(aQ)
260+ let aS = 0
261+ func aT (aU,aV) = if ((aV >= aR))
262+ then aU
263+ else aZ(aU, aQ[aV])
258264
259- func aU (aS,aT) = if ((aT >= aP))
260- then aS
265+ func aW (aU,aV) = if ((aV >= aR))
266+ then aU
261267 else throw("List size exceeds 10")
262268
263- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
269+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
264270 }
265- if ((bd == 0))
271+ if ((bf == 0))
266272 then 0
267273 else {
268- let be = (ba * ai)
269- let bf = (toBigInt(be) * toBigInt(bd))
270- let bg = toBigInt((be - 1))
271- func bh (aM,ao) = if ((aM._2 == true))
272- then aM
274+ let bg = (bc * ak)
275+ let bh = (toBigInt(bg) * toBigInt(bf))
276+ let bi = toBigInt((bg - 1))
277+ func bj (aO,aq) = if ((aO._2 == true))
278+ then aO
273279 else {
274- let bi = aM._1
275- func bj (bk,ao) = if ((ai > ao))
276- then ((bk * bi) / (toBigInt(aW[ao]) * toBigInt(ai)))
277- else bk
280+ let bk = aO._1
281+ func bl (bm,aq) = if ((ak > aq))
282+ then ((bm * bk) / (toBigInt(aY[aq]) * toBigInt(ak)))
283+ else bm
278284
279- let bk = {
280- let aO = ar
281- let aP = size(aO)
282- let aQ = bi
283- func bl (aS,aT) = if ((aT >= aP))
284- then aS
285- else bj(aS, aO[aT])
285+ let bm = {
286+ let aQ = at
287+ let aR = size(aQ)
288+ let aS = bk
289+ func bn (aU,aV) = if ((aV >= aR))
290+ then aU
291+ else bl(aU, aQ[aV])
286292
287- func bm (aS,aT) = if ((aT >= aP))
288- then aS
293+ func bo (aU,aV) = if ((aV >= aR))
294+ then aU
289295 else throw("List size exceeds 10")
290296
291- bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
297+ bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
292298 }
293- let bn = fraction((bf + (toBigInt(ai) * bk)), bi, ((bg * bi) + (toBigInt((ai + 1)) * bk)))
294- if ((bn > bi))
295- then if ((1 >= toInt((bn - bi))))
296- then $Tuple2(bn, true)
297- else $Tuple2(bn, false)
298- else if ((1 >= toInt((bi - bn))))
299- then $Tuple2(bn, true)
300- else $Tuple2(bn, false)
299+ let bp = fraction((bh + (toBigInt(ak) * bm)), bk, ((bi * bk) + (toBigInt((ak + 1)) * bm)))
300+ if ((bp > bk))
301+ then if ((1 >= toInt((bp - bk))))
302+ then $Tuple2(bp, true)
303+ else $Tuple2(bp, false)
304+ else if ((1 >= toInt((bk - bp))))
305+ then $Tuple2(bp, true)
306+ else $Tuple2(bp, false)
301307 }
302308
303- let bo = {
304- let aO = as
305- let aP = size(aO)
306- let aQ = $Tuple2(toBigInt(bd), false)
307- func bl (aS,aT) = if ((aT >= aP))
308- then aS
309- else bh(aS, aO[aT])
309+ let bq = {
310+ let aQ = au
311+ let aR = size(aQ)
312+ let aS = $Tuple2(toBigInt(bf), false)
313+ func bn (aU,aV) = if ((aV >= aR))
314+ then aU
315+ else bj(aU, aQ[aV])
310316
311- func bm (aS,aT) = if ((aT >= aP))
312- then aS
317+ func bo (aU,aV) = if ((aV >= aR))
318+ then aU
313319 else throw("List size exceeds 15")
314320
315- bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
321+ bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
316322 }
317- let bn = bo._1
318- let bp = bo._2
319- if ((bp == false))
320- then throw(("get_D() not finished with " + toString(bn)))
321- else toInt(bn)
323+ let bp = bq._1
324+ let br = bq._2
325+ if ((br == false))
326+ then throw(("get_D() not finished with " + toString(bp)))
327+ else toInt(bp)
322328 }
323329 }
324330
325331
326-func bq (aW,ba) = aZ(aV(aW), ba)
332+func bs (aY,bc) = bb(aX(aY), bc)
327333
328334
329-func br (bs,bt,bu,bv) = if (av((bs != bt)))
335+func bt (bu,bv,bw,bx) = if (ax((bu != bv)))
330336 then throw("same coin")
331- else if (av(if ((bt >= 0))
332- then (bs >= 0)
337+ else if (ax(if ((bv >= 0))
338+ then (bu >= 0)
333339 else false))
334340 then throw("below zero")
335- else if (av(if ((ai > bt))
336- then (ai > bs)
341+ else if (ax(if ((ak > bv))
342+ then (ak > bu)
337343 else false))
338344 then throw("above N_COINS")
339345 else {
340- let ba = aF()
341- let bn = aZ(bv, ba)
342- let be = (ba * ai)
343- func bw (aM,ao) = {
344- let bx = aM
345- let by = bx._1
346- let bz = bx._2
347- let bA = if ((bs == ao))
348- then bu
349- else bv[ao]
350- if (if ((ao != bt))
351- then (ai > ao)
346+ let bc = aH()
347+ let bp = bb(bx, bc)
348+ let bg = (bc * ak)
349+ func by (aO,aq) = {
350+ let bz = aO
351+ let bA = bz._1
352+ let bB = bz._2
353+ let bC = if ((bu == aq))
354+ then bw
355+ else bx[aq]
356+ if (if ((aq != bv))
357+ then (ak > aq)
352358 else false)
353- then $Tuple2((by + bA), fraction(bz, toBigInt(bn), toBigInt((bA * ai))))
354- else $Tuple2(by, bz)
359+ then $Tuple2((bA + bC), fraction(bB, toBigInt(bp), toBigInt((bC * ak))))
360+ else $Tuple2(bA, bB)
355361 }
356362
357- let bB = {
358- let aO = ar
359- let aP = size(aO)
360- let aQ = $Tuple2(0, toBigInt(bn))
361- func aR (aS,aT) = if ((aT >= aP))
362- then aS
363- else bw(aS, aO[aT])
363+ let bD = {
364+ let aQ = at
365+ let aR = size(aQ)
366+ let aS = $Tuple2(0, toBigInt(bp))
367+ func aT (aU,aV) = if ((aV >= aR))
368+ then aU
369+ else by(aU, aQ[aV])
364370
365- func aU (aS,aT) = if ((aT >= aP))
366- then aS
371+ func aW (aU,aV) = if ((aV >= aR))
372+ then aU
367373 else throw("List size exceeds 10")
368374
369- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
375+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
370376 }
371- let by = bB._1
372- let bC = bB._2
373- let bz = fraction(bC, toBigInt(bn), toBigInt((be * ai)))
374- let bD = toBigInt(((by + (bn / be)) - bn))
375- func bE (aM,bF) = if ((aM._2 == true))
376- then aM
377+ let bA = bD._1
378+ let bE = bD._2
379+ let bB = fraction(bE, toBigInt(bp), toBigInt((bg * ak)))
380+ let bF = toBigInt(((bA + (bp / bg)) - bp))
381+ func bG (aO,bH) = if ((aO._2 == true))
382+ then aO
377383 else {
378- let bG = aM._1
379- let bH = (((bG * bG) + bz) / ((aq * bG) + bD))
380- if ((bH > bG))
381- then if ((1 >= toInt((bH - bG))))
382- then $Tuple2(bH, true)
383- else $Tuple2(bH, false)
384- else if ((1 >= toInt((bG - bH))))
385- then $Tuple2(bH, true)
386- else $Tuple2(bH, false)
384+ let bI = aO._1
385+ let bJ = (((bI * bI) + bB) / ((as * bI) + bF))
386+ if ((bJ > bI))
387+ then if ((1 >= toInt((bJ - bI))))
388+ then $Tuple2(bJ, true)
389+ else $Tuple2(bJ, false)
390+ else if ((1 >= toInt((bI - bJ))))
391+ then $Tuple2(bJ, true)
392+ else $Tuple2(bJ, false)
387393 }
388394
389- let bI = {
390- let aO = at
391- let aP = size(aO)
392- let aQ = $Tuple2(toBigInt(bn), false)
393- func bl (aS,aT) = if ((aT >= aP))
394- then aS
395- else bE(aS, aO[aT])
395+ let bK = {
396+ let aQ = av
397+ let aR = size(aQ)
398+ let aS = $Tuple2(toBigInt(bp), false)
399+ func bn (aU,aV) = if ((aV >= aR))
400+ then aU
401+ else bG(aU, aQ[aV])
396402
397- func bm (aS,aT) = if ((aT >= aP))
398- then aS
403+ func bo (aU,aV) = if ((aV >= aR))
404+ then aU
399405 else throw("List size exceeds 16")
400406
401- bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
407+ bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
402408 }
403- let bH = bI._1
404- let bp = bI._2
405- if ((bp == false))
406- then throw(("getY() not finished with " + toString(bH)))
407- else toInt(bH)
409+ let bJ = bK._1
410+ let br = bK._2
411+ if ((br == false))
412+ then throw(("getY() not finished with " + toString(bJ)))
413+ else toInt(bJ)
408414 }
409415
410416
411-func bJ (bK,bs,aW,bn) = if (av((bs >= 0)))
417+func bL (bM,bu,aY,bp) = if (ax((bu >= 0)))
412418 then throw("i below zero")
413- else if (av((ai > bs)))
419+ else if (ax((ak > bu)))
414420 then throw("i above N_COINS")
415421 else {
416- let be = (bK * ai)
417- func bw (aM,ao) = {
418- let bL = aM
419- let by = bL._1
420- let bz = bL._2
421- let bA = if (if ((bs != ao))
422- then (ai > ao)
422+ let bg = (bM * ak)
423+ func by (aO,aq) = {
424+ let bN = aO
425+ let bA = bN._1
426+ let bB = bN._2
427+ let bC = if (if ((bu != aq))
428+ then (ak > aq)
423429 else false)
424- then aW[ao]
430+ then aY[aq]
425431 else 0
426- if (if ((ai > ao))
427- then (bs != ao)
432+ if (if ((ak > aq))
433+ then (bu != aq)
428434 else false)
429- then $Tuple2((by + bA), fraction(bz, toBigInt(bn), toBigInt((bA * ai))))
430- else $Tuple2(by, bz)
435+ then $Tuple2((bA + bC), fraction(bB, toBigInt(bp), toBigInt((bC * ak))))
436+ else $Tuple2(bA, bB)
431437 }
432438
433- let bM = {
434- let aO = ar
435- let aP = size(aO)
436- let aQ = $Tuple2(0, toBigInt(bn))
437- func aR (aS,aT) = if ((aT >= aP))
438- then aS
439- else bw(aS, aO[aT])
439+ let bO = {
440+ let aQ = at
441+ let aR = size(aQ)
442+ let aS = $Tuple2(0, toBigInt(bp))
443+ func aT (aU,aV) = if ((aV >= aR))
444+ then aU
445+ else by(aU, aQ[aV])
440446
441- func aU (aS,aT) = if ((aT >= aP))
442- then aS
447+ func aW (aU,aV) = if ((aV >= aR))
448+ then aU
443449 else throw("List size exceeds 10")
444450
445- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
451+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
446452 }
447- let by = bM._1
448- let bC = bM._2
449- let bz = fraction(bC, toBigInt(bn), toBigInt((be * ai)))
450- let bD = toBigInt(((by + (bn / be)) - bn))
451- func bN (aM,ao) = if ((aM._2 == true))
452- then aM
453+ let bA = bO._1
454+ let bE = bO._2
455+ let bB = fraction(bE, toBigInt(bp), toBigInt((bg * ak)))
456+ let bF = toBigInt(((bA + (bp / bg)) - bp))
457+ func bP (aO,aq) = if ((aO._2 == true))
458+ then aO
453459 else {
454- let bG = aM._1
455- let bH = (((bG * bG) + bz) / ((aq * bG) + bD))
456- if ((bH > bG))
457- then if ((1 >= toInt((bH - bG))))
458- then $Tuple2(bH, true)
459- else $Tuple2(bH, false)
460- else if ((1 >= toInt((bG - bH))))
461- then $Tuple2(bH, true)
462- else $Tuple2(bH, false)
460+ let bI = aO._1
461+ let bJ = (((bI * bI) + bB) / ((as * bI) + bF))
462+ if ((bJ > bI))
463+ then if ((1 >= toInt((bJ - bI))))
464+ then $Tuple2(bJ, true)
465+ else $Tuple2(bJ, false)
466+ else if ((1 >= toInt((bI - bJ))))
467+ then $Tuple2(bJ, true)
468+ else $Tuple2(bJ, false)
463469 }
464470
465- let bO = {
466- let aO = at
467- let aP = size(aO)
468- let aQ = $Tuple2(toBigInt(bn), false)
469- func bl (aS,aT) = if ((aT >= aP))
470- then aS
471- else bN(aS, aO[aT])
471+ let bQ = {
472+ let aQ = av
473+ let aR = size(aQ)
474+ let aS = $Tuple2(toBigInt(bp), false)
475+ func bn (aU,aV) = if ((aV >= aR))
476+ then aU
477+ else bP(aU, aQ[aV])
472478
473- func bm (aS,aT) = if ((aT >= aP))
474- then aS
479+ func bo (aU,aV) = if ((aV >= aR))
480+ then aU
475481 else throw("List size exceeds 16")
476482
477- bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
483+ bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
478484 }
479- let bH = bO._1
480- let bp = bO._2
481- if ((bp == false))
482- then throw(("get_y_D() not finished with " + toString(bH)))
483- else toInt(bH)
485+ let bJ = bQ._1
486+ let br = bQ._2
487+ if ((br == false))
488+ then throw(("get_y_D() not finished with " + toString(bJ)))
489+ else toInt(bJ)
484490 }
485491
486492
487-func bP (aW,bQ,ao,bR) = {
488- let bS = ax(bR)
489- let ba = aF()
490- let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1)))
491- let bU = Z
492- let bV = aZ(aW, ba)
493- let bW = (bV - fraction(bQ, bV, bU))
494- let bX = bJ(ba, ao, aW, bW)
495- let bY = (aW[ao] - bX)
496- func bZ (aM,ca) = {
497- let cb = aM
498- let cc = cb._1
499- let cd = cb._2
500- let ce = if ((cd == ao))
501- then (fraction(ca, bW, bV) - bX)
502- else (ca - fraction(ca, bW, bV))
503- $Tuple2((cc :+ (ca - fraction(bT, ce, aa))), (cd + 1))
493+func bR (aY,bS,aq,bT) = {
494+ let bU = az(bT)
495+ let bc = aH()
496+ let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1)))
497+ let bW = ab
498+ let bX = bb(aY, bc)
499+ let bY = (bX - fraction(bS, bX, bW))
500+ let bZ = bL(bc, aq, aY, bY)
501+ let ca = (aY[aq] - bZ)
502+ func cb (aO,cc) = {
503+ let cd = aO
504+ let ce = cd._1
505+ let cf = cd._2
506+ let cg = if ((cf == aq))
507+ then (fraction(cc, bY, bX) - bZ)
508+ else (cc - fraction(cc, bY, bX))
509+ $Tuple2((ce :+ (cc - fraction(bV, cg, ac))), (cf + 1))
504510 }
505511
506- let cf = {
507- let aO = aW
508- let aP = size(aO)
509- let aQ = $Tuple2(nil, 0)
510- func aR (aS,aT) = if ((aT >= aP))
511- then aS
512- else bZ(aS, aO[aT])
512+ let ch = {
513+ let aQ = aY
514+ let aR = size(aQ)
515+ let aS = $Tuple2(nil, 0)
516+ func aT (aU,aV) = if ((aV >= aR))
517+ then aU
518+ else cb(aU, aQ[aV])
513519
514- func aU (aS,aT) = if ((aT >= aP))
515- then aS
520+ func aW (aU,aV) = if ((aV >= aR))
521+ then aU
516522 else throw("List size exceeds 10")
517523
518- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
524+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
519525 }
520- let cc = cf._1
521- let cd = cf._2
522- let cg = cc[ao]
523- let ch = ((cg - bJ(ba, ao, cc, bW)) - 1)
524- $Tuple2(ch, (bY - ch))
526+ let ce = ch._1
527+ let cf = ch._2
528+ let ci = ce[aq]
529+ let cj = ((ci - bL(bc, aq, ce, bY)) - 1)
530+ $Tuple2(cj, (ca - cj))
525531 }
526532
527533
528-func ci (aN) = {
529- let I = aN
530- if ($isInstanceOf(I, "ByteVector"))
534+func ck (aP) = {
535+ let J = aP
536+ if ($isInstanceOf(J, "ByteVector"))
531537 then {
532- let cj = I
533- toBase58String(cj)
538+ let cl = J
539+ toBase58String(cl)
534540 }
535- else if ($isInstanceOf(I, "Unit"))
541+ else if ($isInstanceOf(J, "Unit"))
536542 then {
537- let ck = I
543+ let cm = J
538544 "WAVES"
539545 }
540546 else throw("Match error")
541547 }
542548
543549
544-func cl (cm,aN) = if (cm)
545- then $Tuple2("lockNeutrino", R)
546- else $Tuple2("unlockNeutrino", R)
550+func cn (co,aP) = if (co)
551+ then $Tuple2("lockNeutrino", S)
552+ else $Tuple2("unlockNeutrino", S)
547553
548554
549-func cn (cm,co,aN) = if (cm)
555+func cp (co,cq,aP) = if (co)
550556 then {
551- let cp = cl(cm, aN)
552- let cq = cp._1
553- let cr = cp._2
554- $Tuple4(cq, cr, nil, [AttachedPayment(aN, co)])
557+ let cr = cn(co, aP)
558+ let cs = cr._1
559+ let ct = cr._2
560+ $Tuple4(cs, ct, nil, [AttachedPayment(aP, cq)])
555561 }
556562 else {
557- let cs = cl(cm, aN)
558- let cq = cs._1
559- let cr = cs._2
560- $Tuple4(cq, cr, [co, toBase58String(aN)], nil)
563+ let cu = cn(co, aP)
564+ let cs = cu._1
565+ let ct = cu._2
566+ $Tuple4(cs, ct, [cq, toBase58String(aP)], nil)
561567 }
562568
563569
564-func cm (co,ct) = if (containsElement(W, ct))
570+func co (cq,cv) = if (containsElement(X, cv))
565571 then {
566- let cu = cn(true, co, fromBase58String(ct))
567- let cq = cu._1
568- let cv = cu._2
569- let cw = cu._3
570- let cx = cu._4
571- invoke(cv, cq, cw, cx)
572+ let cw = cp(true, cq, fromBase58String(cv))
573+ let cs = cw._1
574+ let cx = cw._2
575+ let cy = cw._3
576+ let cz = cw._4
577+ invoke(cx, cs, cy, cz)
572578 }
573579 else 0
574580
575581
576-func cy (co,ct) = if (containsElement(W, ct))
582+func cA (cq,cv) = if (containsElement(X, cv))
577583 then {
578- let cz = cn(false, co, fromBase58String(ct))
579- let cq = cz._1
580- let cv = cz._2
581- let cw = cz._3
582- let cx = cz._4
583- invoke(cv, cq, cw, cx)
584+ let cB = cp(false, cq, fromBase58String(cv))
585+ let cs = cB._1
586+ let cx = cB._2
587+ let cy = cB._3
588+ let cz = cB._4
589+ invoke(cx, cs, cy, cz)
584590 }
585591 else 0
586592
587593
588-func cA (aN) = {
589- let cB = {
590- let I = aN
591- if ($isInstanceOf(I, "ByteVector"))
594+func cC (aP) = {
595+ let cD = {
596+ let J = aP
597+ if ($isInstanceOf(J, "ByteVector"))
592598 then {
593- let cC = I
594- if ((cC == V))
595- then getInteger(R, ((("rpd_balance_" + toBase58String(cC)) + "_") + toString(this)))
599+ let cE = J
600+ if ((cE == W))
601+ then getInteger(S, ((("rpd_balance_" + toBase58String(cE)) + "_") + toString(this)))
596602 else 0
597603 }
598- else if ($isInstanceOf(I, "Unit"))
604+ else if ($isInstanceOf(J, "Unit"))
599605 then 0
600606 else throw("Match error")
601607 }
602- let I = cB
603- if ($isInstanceOf(I, "Int"))
608+ let J = cD
609+ if ($isInstanceOf(J, "Int"))
604610 then {
605- let ao = I
606- ao
611+ let aq = J
612+ aq
607613 }
608614 else 0
609615 }
610616
611617
612-func cD () = {
613- let cE = aK()
614- func cF (aM,aN) = {
615- let cG = aM
616- let cH = cG._1
617- let ao = cG._2
618- if (cH)
619- then $Tuple2(cH, ao)
618+func cF () = {
619+ let cG = aM()
620+ func cH (aO,aP) = {
621+ let cI = aO
622+ let cJ = cI._1
623+ let aq = cI._2
624+ if (cJ)
625+ then $Tuple2(cJ, aq)
620626 else {
621- let cI = (assetBalance(this, fromBase58String(aN)) + cA(fromBase58String(aN)))
622- if ((cE[ao] > cI))
623- then $Tuple2(true, ao)
624- else $Tuple2(false, (ao + 1))
627+ let cK = (assetBalance(this, fromBase58String(aP)) + cC(fromBase58String(aP)))
628+ if ((cG[aq] > cK))
629+ then $Tuple2(true, aq)
630+ else $Tuple2(false, (aq + 1))
625631 }
626632 }
627633
628- let aO = ah
629- let aP = size(aO)
630- let aQ = $Tuple2(false, 0)
631- func aR (aS,aT) = if ((aT >= aP))
632- then aS
633- else cF(aS, aO[aT])
634+ let aQ = aj
635+ let aR = size(aQ)
636+ let aS = $Tuple2(false, 0)
637+ func aT (aU,aV) = if ((aV >= aR))
638+ then aU
639+ else cH(aU, aQ[aV])
634640
635- func aU (aS,aT) = if ((aT >= aP))
636- then aS
641+ func aW (aU,aV) = if ((aV >= aR))
642+ then aU
637643 else throw("List size exceeds 10")
638644
639- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
645+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
640646 }
641647
642648
643-func cJ (ao) = aj(("Suspicious state with asset: " + ah[ao]))
649+func cL (aq) = al(("Suspicious state with asset: " + aj[aq]))
644650
645651
646-func cK (bR,cx) = {
647- func cL (aM,cM) = (aM :+ ScriptTransfer(bR, cM.amount, cM.assetId))
652+func cM (bT,cz) = {
653+ func cN (aO,cO) = (aO :+ ScriptTransfer(bT, cO.amount, cO.assetId))
648654
649- let aO = cx
650- let aP = size(aO)
651- let aQ = nil
652- func aR (aS,aT) = if ((aT >= aP))
653- then aS
654- else cL(aS, aO[aT])
655+ let aQ = cz
656+ let aR = size(aQ)
657+ let aS = nil
658+ func aT (aU,aV) = if ((aV >= aR))
659+ then aU
660+ else cN(aU, aQ[aV])
655661
656- func aU (aS,aT) = if ((aT >= aP))
657- then aS
662+ func aW (aU,aV) = if ((aV >= aR))
663+ then aU
658664 else throw("List size exceeds 10")
659665
660- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
666+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
661667 }
662668
663669
664-func cN (cO) = {
665- let cP = valueOrErrorMessage(getInteger(this, o), "No dAppThresholdCoef key")
666- let cQ = 10000
667- let cR = max(cO)
668- let cS = min(cO)
669- let cT = fraction(cR, cQ, cS)
670- if ((cT > (cP * cQ)))
670+func cP (cQ) = {
671+ let cR = valueOrErrorMessage(getInteger(this, p), "No dAppThresholdCoef key")
672+ let cS = 10000
673+ let cT = max(cQ)
674+ let cU = min(cQ)
675+ let cV = fraction(cT, cS, cU)
676+ if ((cV > (cR * cS)))
671677 then throw("New balance in assets of the DApp is less than threshold")
672678 else false
673679 }
674680
675681
676-func cU (ah) = {
677- let cV = split(ah, ",")
678- if ((size(cV) > 10))
682+func cW (aj) = {
683+ let cX = split(aj, ",")
684+ if ((size(cX) > 10))
679685 then throw("To many coins, max coins size 10")
680686 else {
681- func cW (cX,aN) = {
682- let cY = valueOrErrorMessage(fromBase58String(aN), ("fromBase58String: " + aN))
683- let cZ = valueOrErrorMessage(assetInfo(cY), ("assetInfo: " + aN)).decimals
684- if ((cZ != d))
687+ func cY (cZ,aP) = {
688+ let da = valueOrErrorMessage(fromBase58String(aP), ("fromBase58String: " + aP))
689+ let db = valueOrErrorMessage(assetInfo(da), ("assetInfo: " + aP)).decimals
690+ if ((db != d))
685691 then throw("wrong decimals")
686692 else false
687693 }
688694
689- let aO = cV
690- let aP = size(aO)
691- let aQ = false
692- func aR (aS,aT) = if ((aT >= aP))
693- then aS
694- else cW(aS, aO[aT])
695+ let aQ = cX
696+ let aR = size(aQ)
697+ let aS = false
698+ func aT (aU,aV) = if ((aV >= aR))
699+ then aU
700+ else cY(aU, aQ[aV])
695701
696- func aU (aS,aT) = if ((aT >= aP))
697- then aS
702+ func aW (aU,aV) = if ((aV >= aR))
703+ then aU
698704 else throw("List size exceeds 10")
699705
700- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
706+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
701707 }
702708 }
703709
704710
705-@Callable(da)
706-func D (aW,ba) = {
707- let bn = bc(aW, ba)
708- $Tuple2([IntegerEntry("D", bn)], bn)
711+@Callable(dc)
712+func D (aY,bc) = {
713+ let bp = be(aY, bc)
714+ $Tuple2([IntegerEntry("D", bp)], bp)
709715 }
710716
711717
712718
713-@Callable(da)
714-func init (ah,aF,db) = if (!(isDataStorageUntouched(this)))
719+@Callable(dc)
720+func init (aj,aH,dd) = if (!(isDataStorageUntouched(this)))
715721 then throw("Already initialized")
716- else if ((0 >= aF))
722+ else if ((0 >= aH))
717723 then throw("Amp must be must > 0")
718- else if ((0 >= db))
724+ else if ((0 >= dd))
719725 then throw("dApp Threshold Coef must be > 0")
720726 else {
721- let dc = "s_Multi_USD"
722- let dd = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this))
723- let de = Issue(dc, dd, 0, 6, true)
724- let df = calculateAssetId(de)
725- if (cU(ah))
727+ let de = "s_Multi_USD"
728+ let df = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this))
729+ let dg = Issue(de, df, 0, 6, true)
730+ let dh = calculateAssetId(dg)
731+ if (cW(aj))
726732 then throw()
727- else [StringEntry(g, f), StringEntry(h, ah), IntegerEntry("initial_A", aF), IntegerEntry("future_A", aF), IntegerEntry(n, getIntegerValue(F, "base_fee_flat")), StringEntry(l, toBase58String(df)), IntegerEntry(m, 0), IntegerEntry(o, db), BooleanEntry(j, true), de]
733+ else [StringEntry(g, f), StringEntry(h, aj), IntegerEntry("initial_A", aH), IntegerEntry("future_A", aH), IntegerEntry(o, getIntegerValue(G, "base_fee_flat")), StringEntry(m, toBase58String(dh)), IntegerEntry(n, 0), IntegerEntry(p, dd), BooleanEntry(j, true), dg]
728734 }
729735
730736
731737
732-@Callable(da)
733-func addLiquidity (dg,dh,di) = valueOrElse(am(), {
734- let ba = aF()
735- let aW = aK()
736- let bV = if ((Z == 0))
738+@Callable(dc)
739+func addLiquidity (di,dj,dk) = valueOrElse(ao(), {
740+ let bc = aH()
741+ let aY = aM()
742+ let bX = if ((ab == 0))
737743 then 0
738- else bq(aW, ba)
739- let dj = if (if ((di > 0))
740- then (da.payments[(size(da.payments) - 1)].assetId == unit)
744+ else bs(aY, bc)
745+ let dl = if (if ((dk > 0))
746+ then (dc.payments[(size(dc.payments) - 1)].assetId == unit)
741747 else false)
742- then $Tuple2(removeByIndex(da.payments, (size(da.payments) - 1)), [da.payments[(size(da.payments) - 1)]])
743- else $Tuple2(da.payments, nil)
744- let cx = dj._1
745- let dk = dj._2
746- let dl = size(cx)
747- func dm (dn) = if ((dl > ai))
748- then throw(("payments size > " + toString(ai)))
749- else if ((1 > dl))
748+ then $Tuple2(removeByIndex(dc.payments, (size(dc.payments) - 1)), [dc.payments[(size(dc.payments) - 1)]])
749+ else $Tuple2(dc.payments, nil)
750+ let cz = dl._1
751+ let dm = dl._2
752+ let dn = size(cz)
753+ func do (dp) = if ((dn > ak))
754+ then throw(("payments size > " + toString(ak)))
755+ else if ((1 > dn))
750756 then throw("payments size < 1")
751- else if (if ((Z == 0))
752- then (ai != dl)
757+ else if (if ((ab == 0))
758+ then (ak != dn)
753759 else false)
754760 then throw("initial deposit requires all coins")
755761 else {
756- func do (aM,cM) = if (containsElement(ah, ci(cM.assetId)))
762+ func dq (aO,cO) = if (containsElement(aj, ck(cO.assetId)))
757763 then true
758764 else throw("Invalid asset in payment")
759765
760- let aO = cx
761- let aP = size(aO)
762- let aQ = false
763- func aR (aS,aT) = if ((aT >= aP))
764- then aS
765- else do(aS, aO[aT])
766+ let aQ = cz
767+ let aR = size(aQ)
768+ let aS = false
769+ func aT (aU,aV) = if ((aV >= aR))
770+ then aU
771+ else dq(aU, aQ[aV])
766772
767- func aU (aS,aT) = if ((aT >= aP))
768- then aS
773+ func aW (aU,aV) = if ((aV >= aR))
774+ then aU
769775 else throw("List size exceeds 10")
770776
771- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
777+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
772778 }
773779
774- if (!(dm(dl)))
780+ if (!(do(dn)))
775781 then throw()
776782 else {
777- let cH = cD()
778- if (cH._1)
779- then (cJ(cH._2) ++ cK(da.caller, cx))
783+ let cJ = cF()
784+ if (cJ._1)
785+ then (cL(cJ._2) ++ cM(dc.caller, cz))
780786 else {
781- func cL (aM,aN) = {
782- let dp = aM
783- let cO = dp._1
784- let ao = dp._2
785- func dq (dr,cM) = if ((ci(cM.assetId) == aN))
786- then (dr + cM.amount)
787- else dr
787+ func cN (aO,aP) = {
788+ let dr = aO
789+ let cQ = dr._1
790+ let aq = dr._2
791+ func ds (dt,cO) = if ((ck(cO.assetId) == aP))
792+ then (dt + cO.amount)
793+ else dt
788794
789- let ds = {
790- let aO = cx
791- let aP = size(aO)
792- let aQ = aW[ao]
793- func aR (aS,aT) = if ((aT >= aP))
794- then aS
795- else dq(aS, aO[aT])
795+ let du = {
796+ let aQ = cz
797+ let aR = size(aQ)
798+ let aS = aY[aq]
799+ func aT (aU,aV) = if ((aV >= aR))
800+ then aU
801+ else ds(aU, aQ[aV])
796802
797- func aU (aS,aT) = if ((aT >= aP))
798- then aS
803+ func aW (aU,aV) = if ((aV >= aR))
804+ then aU
799805 else throw("List size exceeds 10")
800806
801- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
807+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
802808 }
803- $Tuple2((cO :+ ds), (ao + 1))
809+ $Tuple2((cQ :+ du), (aq + 1))
804810 }
805811
806- let dt = {
807- let aO = ah
808- let aP = size(aO)
809- let aQ = $Tuple2(nil, 0)
810- func aR (aS,aT) = if ((aT >= aP))
811- then aS
812- else cL(aS, aO[aT])
812+ let dv = {
813+ let aQ = aj
814+ let aR = size(aQ)
815+ let aS = $Tuple2(nil, 0)
816+ func aT (aU,aV) = if ((aV >= aR))
817+ then aU
818+ else cN(aU, aQ[aV])
813819
814- func aU (aS,aT) = if ((aT >= aP))
815- then aS
820+ func aW (aU,aV) = if ((aV >= aR))
821+ then aU
816822 else throw("List size exceeds 10")
817823
818- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
824+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
819825 }
820- let cO = dt._1
821- let du = dt._2
822- if (cN(cO))
826+ let cQ = dv._1
827+ let dw = dv._2
828+ if (cP(cQ))
823829 then throw()
824830 else {
825- let bW = bq(cO, ba)
826- if (av((bW > bV)))
831+ let bY = bs(cQ, bc)
832+ if (ax((bY > bX)))
827833 then throw("D1 > D0")
828834 else {
829- let bS = ax(da.caller)
830- func dv (aM,dr) = {
831- let dw = aM
832- let dx = dw._1
833- let dy = dw._2
834- let ao = dw._3
835- if ((Z > 0))
835+ let bU = az(dc.caller)
836+ func dx (aO,dt) = {
837+ let dy = aO
838+ let dz = dy._1
839+ let dA = dy._2
840+ let aq = dy._3
841+ if ((ab > 0))
836842 then {
837- let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1)))
838- let dz = {
839- let dA = fraction(bW, aW[ao], bV)
840- let dB = if ((dA > dr))
841- then (dA - dr)
842- else (dr - dA)
843- fraction(bT, dB, aa)
843+ let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1)))
844+ let dB = {
845+ let dC = fraction(bY, aY[aq], bX)
846+ let dD = if ((dC > dt))
847+ then (dC - dt)
848+ else (dt - dC)
849+ fraction(bV, dD, ac)
844850 }
845- let dC = fraction(dz, ac, aa)
846- let dD = (dr - dz)
847- let dE = (dr - dz)
848- let dF = (dr - aW[ao])
849- let dG = (dz - dC)
850- let dH = if ((dF > 0))
851- then cm((dF - dz), ah[ao])
852- else cy(dz, ah[ao])
853- if ((dH == dH))
851+ let dE = fraction(dB, ae, ac)
852+ let dF = (dt - dB)
853+ let dG = (dt - dB)
854+ let dH = (dt - aY[aq])
855+ let dI = (dB - dE)
856+ let dJ = if ((dH > 0))
857+ then co((dH - dB), aj[aq])
858+ else cA(dB, aj[aq])
859+ if ((dJ == dJ))
854860 then {
855- let dI = if ((dG > 0))
856- then invoke(U, "airDrop", nil, [AttachedPayment(fromBase58String(ah[ao]), dG)])
861+ let dK = if ((dI > 0))
862+ then invoke(V, "airDrop", nil, [AttachedPayment(fromBase58String(aj[aq]), dI)])
857863 else 0
858- if ((dI == dI))
859- then $Tuple3((dx :+ dE), (dy ++ [ScriptTransfer(P, dC, fromBase58String(ah[ao])), IntegerEntry((ah[ao] + i), dD)]), (ao + 1))
864+ if ((dK == dK))
865+ then $Tuple3((dz :+ dG), (dA ++ [ScriptTransfer(Q, dE, fromBase58String(aj[aq])), IntegerEntry((aj[aq] + i), dF)]), (aq + 1))
860866 else throw("Strict value is not equal to itself.")
861867 }
862868 else throw("Strict value is not equal to itself.")
863869 }
864870 else {
865- let dH = cm(dr, ah[ao])
866- if ((dH == dH))
867- then $Tuple3((dx :+ dr), (dy :+ IntegerEntry((ah[ao] + i), dr)), (ao + 1))
871+ let dJ = co(dt, aj[aq])
872+ if ((dJ == dJ))
873+ then $Tuple3((dz :+ dt), (dA :+ IntegerEntry((aj[aq] + i), dt)), (aq + 1))
868874 else throw("Strict value is not equal to itself.")
869875 }
870876 }
871877
872- let dJ = {
873- let aO = cO
874- let aP = size(aO)
875- let aQ = $Tuple3(nil, nil, 0)
876- func bl (aS,aT) = if ((aT >= aP))
877- then aS
878- else dv(aS, aO[aT])
878+ let dL = {
879+ let aQ = cQ
880+ let aR = size(aQ)
881+ let aS = $Tuple3(nil, nil, 0)
882+ func bn (aU,aV) = if ((aV >= aR))
883+ then aU
884+ else dx(aU, aQ[aV])
879885
880- func bm (aS,aT) = if ((aT >= aP))
881- then aS
886+ func bo (aU,aV) = if ((aV >= aR))
887+ then aU
882888 else throw("List size exceeds 10")
883889
884- bm(bl(bl(bl(bl(bl(bl(bl(bl(bl(bl(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
890+ bo(bn(bn(bn(bn(bn(bn(bn(bn(bn(bn(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
885891 }
886- let dx = dJ._1
887- let dy = dJ._2
888- let dK = bq(dx, ba)
889- let dL = if ((Z == 0))
890- then bW
891- else fraction(Z, (dK - bV), bV)
892- if (av((dL >= dg)))
892+ let dz = dL._1
893+ let dA = dL._2
894+ let dM = bs(dz, bc)
895+ let dN = if ((ab == 0))
896+ then bY
897+ else fraction(ab, (dM - bX), bX)
898+ if (ax((dN >= di)))
893899 then throw("Slippage screwed you")
894- else if (dh)
900+ else if (dj)
895901 then {
896- let dM = invoke(this, "reissueShare", [dL], nil)
897- if ((dM == dM))
902+ let dO = invoke(this, "reissueShare", [dN], nil)
903+ if ((dO == dO))
898904 then {
899- let dN = invoke(T, "lockShareTokens", [toString(this), di], ([AttachedPayment(Y, dL)] ++ dk))
900- if ((dN == dN))
901- then (dy :+ IntegerEntry(m, (Z + dL)))
905+ let dP = invoke(U, "lockShareTokensFromPool", [dc.caller.bytes, toString(this), dk], ([AttachedPayment(aa, dN)] ++ dm))
906+ if ((dP == dP))
907+ then (dA :+ IntegerEntry(n, (ab + dN)))
902908 else throw("Strict value is not equal to itself.")
903909 }
904910 else throw("Strict value is not equal to itself.")
905911 }
906- else (dy ++ [Reissue(Y, dL, true), ScriptTransfer(da.caller, dL, Y), IntegerEntry(m, (Z + dL))])
912+ else (dA ++ [Reissue(aa, dN, true), ScriptTransfer(dc.caller, dN, aa), IntegerEntry(n, (ab + dN))])
907913 }
908914 }
909915 }
910916 }
911917 })
912918
913919
914920
915-@Callable(da)
916-func calcMintAmount (cO,az) = {
917- let ba = aF()
918- let aW = aK()
919- let bW = bq(cO, ba)
920- if ((Z == 0))
921- then $Tuple2(nil, bW)
921+@Callable(dc)
922+func calcMintAmount (cQ,aB) = {
923+ let bc = aH()
924+ let aY = aM()
925+ let bY = bs(cQ, bc)
926+ if ((ab == 0))
927+ then $Tuple2(nil, bY)
922928 else {
923- let bV = bq(aW, ba)
924- let bS = ax(az)
925- func dO (aM,dr) = {
926- let dP = aM
927- let dx = dP._1
928- let ao = dP._2
929- let bT = ((fraction(ab, bS, aa, CEILING) * ai) / (4 * (ai - 1)))
930- let dz = {
931- let dA = fraction(bW, aW[ao], bV)
932- let dB = if ((dA > dr))
933- then (dA - dr)
934- else (dr - dA)
935- fraction(bT, dB, aa)
929+ let bX = bs(aY, bc)
930+ let bU = az(aB)
931+ func dQ (aO,dt) = {
932+ let dR = aO
933+ let dz = dR._1
934+ let aq = dR._2
935+ let bV = ((fraction(ad, bU, ac, CEILING) * ak) / (4 * (ak - 1)))
936+ let dB = {
937+ let dC = fraction(bY, aY[aq], bX)
938+ let dD = if ((dC > dt))
939+ then (dC - dt)
940+ else (dt - dC)
941+ fraction(bV, dD, ac)
936942 }
937- let dE = (dr - dz)
938- $Tuple2((dx :+ dE), (ao + 1))
943+ let dG = (dt - dB)
944+ $Tuple2((dz :+ dG), (aq + 1))
939945 }
940946
941- let dQ = {
942- let aO = cO
943- let aP = size(aO)
944- let aQ = $Tuple2(nil, 0)
945- func aR (aS,aT) = if ((aT >= aP))
946- then aS
947- else dO(aS, aO[aT])
947+ let dS = {
948+ let aQ = cQ
949+ let aR = size(aQ)
950+ let aS = $Tuple2(nil, 0)
951+ func aT (aU,aV) = if ((aV >= aR))
952+ then aU
953+ else dQ(aU, aQ[aV])
948954
949- func aU (aS,aT) = if ((aT >= aP))
950- then aS
955+ func aW (aU,aV) = if ((aV >= aR))
956+ then aU
951957 else throw("List size exceeds 10")
952958
953- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
959+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
954960 }
955- let dx = dQ._1
956- let du = dQ._2
957- let dK = bq(dx, ba)
958- let dR = fraction(Z, (dK - bV), bV)
959- $Tuple2(nil, dR)
961+ let dz = dS._1
962+ let dw = dS._2
963+ let dM = bs(dz, bc)
964+ let dT = fraction(ab, (dM - bX), bX)
965+ $Tuple2(nil, dT)
960966 }
961967 }
962968
963969
964970
965-@Callable(da)
966-func reissueShare (co) = valueOrElse(ap(da), [Reissue(Y, co, true)])
971+@Callable(dc)
972+func reissueShare (cq) = valueOrElse(ar(dc), [Reissue(aa, cq, true)])
967973
968974
969975
970-@Callable(da)
971-func getDy (dS,dT,dU,dV) = {
972- let aW = aK()
973- let dW = valueOrErrorMessage(indexOf(ah, dS), "unknown token in")
974- let dX = valueOrErrorMessage(indexOf(ah, dT), "unknown token out")
975- let bu = (aW[dW] + dU)
976- let bH = br(dW, dX, bu, aW)
977- let ch = ((aW[dX] - bH) - 1)
978- let bS = ax(Address(fromBase58String(dV)))
979- let bT = fraction(fraction(ab, bS, aa, CEILING), ch, aa)
980- $Tuple2(nil, $Tuple2((ch - bT), bT))
976+@Callable(dc)
977+func getDy (dU,dV,dW,dX) = {
978+ let aY = aM()
979+ let dY = valueOrErrorMessage(indexOf(aj, dU), "unknown token in")
980+ let dZ = valueOrErrorMessage(indexOf(aj, dV), "unknown token out")
981+ let bw = (aY[dY] + dW)
982+ let bJ = bt(dY, dZ, bw, aY)
983+ let cj = ((aY[dZ] - bJ) - 1)
984+ let bU = az(Address(fromBase58String(dX)))
985+ let bV = fraction(fraction(ad, bU, ac, CEILING), cj, ac)
986+ $Tuple2(nil, $Tuple2((cj - bV), bV))
981987 }
982988
983989
984990
985-@Callable(da)
986-func exchange (dY,dZ) = valueOrElse(am(), if ((size(da.payments) != 1))
991+@Callable(dc)
992+func exchange (ea,eb) = valueOrElse(ao(), if ((size(dc.payments) != 1))
987993 then throw("size(payments) != 1")
988994 else {
989- let cH = cD()
990- if (cH._1)
991- then (cJ(cH._2) ++ cK(da.caller, da.payments))
995+ let cJ = cF()
996+ if (cJ._1)
997+ then (cL(cJ._2) ++ cM(dc.caller, dc.payments))
992998 else {
993- let cM = da.payments[0]
994- let ea = ci(cM.assetId)
995- let eb = fromBase58String(dY)
996- let dU = cM.amount
997- let dW = valueOrErrorMessage(indexOf(ah, ea), "unknown token in")
998- let dX = valueOrErrorMessage(indexOf(ah, dY), "unknown token out")
999- let aW = aK()
1000- let bu = (aW[dW] + dU)
1001- let bH = br(dW, dX, bu, aW)
1002- let ec = ((aW[dX] - bH) - 1)
1003- let bS = ax(da.originCaller)
1004- let bT = fraction(ec, fraction(ab, bS, aa, CEILING), aa)
1005- let ch = (ec - bT)
1006- let dC = fraction(bT, ac, aa)
1007- if (av((ch >= dZ)))
999+ let cO = dc.payments[0]
1000+ let ec = ck(cO.assetId)
1001+ let ed = fromBase58String(ea)
1002+ let dW = cO.amount
1003+ let dY = valueOrErrorMessage(indexOf(aj, ec), "unknown token in")
1004+ let dZ = valueOrErrorMessage(indexOf(aj, ea), "unknown token out")
1005+ let aY = aM()
1006+ let bw = (aY[dY] + dW)
1007+ let bJ = bt(dY, dZ, bw, aY)
1008+ let ee = ((aY[dZ] - bJ) - 1)
1009+ let bU = az(dc.originCaller)
1010+ let bV = fraction(ee, fraction(ad, bU, ac, CEILING), ac)
1011+ let cj = (ee - bV)
1012+ let dE = fraction(bV, ae, ac)
1013+ if (ax((cj >= eb)))
10081014 then throw("Exchange resulted in fewer coins than expected")
10091015 else {
1010- func ed (aM,ee) = {
1011- let ef = aM
1012- let cO = ef._1
1013- let ao = ef._2
1014- if ((ao == dW))
1015- then $Tuple2((cO :+ (ee + dU)), (ao + 1))
1016- else if ((ao == dX))
1017- then $Tuple2((cO :+ (ee - ec)), (ao + 1))
1018- else $Tuple2((cO :+ ee), (ao + 1))
1016+ func ef (aO,eg) = {
1017+ let eh = aO
1018+ let cQ = eh._1
1019+ let aq = eh._2
1020+ if ((aq == dY))
1021+ then $Tuple2((cQ :+ (eg + dW)), (aq + 1))
1022+ else if ((aq == dZ))
1023+ then $Tuple2((cQ :+ (eg - ee)), (aq + 1))
1024+ else $Tuple2((cQ :+ eg), (aq + 1))
10191025 }
10201026
1021- let eg = {
1022- let aO = aW
1023- let aP = size(aO)
1024- let aQ = $Tuple2(nil, 0)
1025- func aR (aS,aT) = if ((aT >= aP))
1026- then aS
1027- else ed(aS, aO[aT])
1027+ let ei = {
1028+ let aQ = aY
1029+ let aR = size(aQ)
1030+ let aS = $Tuple2(nil, 0)
1031+ func aT (aU,aV) = if ((aV >= aR))
1032+ then aU
1033+ else ef(aU, aQ[aV])
10281034
1029- func aU (aS,aT) = if ((aT >= aP))
1030- then aS
1035+ func aW (aU,aV) = if ((aV >= aR))
1036+ then aU
10311037 else throw("List size exceeds 10")
10321038
1033- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1039+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
10341040 }
1035- let cO = eg._1
1036- let ao = eg._2
1037- if (cN(cO))
1041+ let cQ = ei._1
1042+ let aq = ei._2
1043+ if (cP(cQ))
10381044 then throw()
10391045 else {
1040- let dN = cm(cM.amount, ci(cM.assetId))
1041- if ((dN == dN))
1046+ let dP = co(cO.amount, ck(cO.assetId))
1047+ if ((dP == dP))
10421048 then {
1043- let eh = cy(ec, dY)
1044- if ((eh == eh))
1049+ let ej = cA(ee, ea)
1050+ if ((ej == ej))
10451051 then {
1046- let dG = (bT - dC)
1047- let dI = if ((dG > 0))
1048- then invoke(U, "airDrop", nil, [AttachedPayment(eb, dG)])
1052+ let dI = (bV - dE)
1053+ let dK = if ((dI > 0))
1054+ then invoke(V, "airDrop", nil, [AttachedPayment(ed, dI)])
10491055 else 0
1050- if ((dI == dI))
1051- then $Tuple2([IntegerEntry((ea + i), bu), IntegerEntry((dY + i), (aW[dX] - ec)), ScriptTransfer(da.caller, ch, eb), ScriptTransfer(P, dC, eb)], [ch, eb])
1056+ if ((dK == dK))
1057+ then $Tuple2([IntegerEntry((ec + i), bw), IntegerEntry((ea + i), (aY[dZ] - ee)), ScriptTransfer(dc.caller, cj, ed), ScriptTransfer(Q, dE, ed)], [cj, ed])
10521058 else throw("Strict value is not equal to itself.")
10531059 }
10541060 else throw("Strict value is not equal to itself.")
10551061 }
10561062 else throw("Strict value is not equal to itself.")
10571063 }
10581064 }
10591065 }
10601066 })
10611067
10621068
10631069
1064-@Callable(da)
1065-func withdraw (ei) = valueOrElse(am(), if ((size(da.payments) != 1))
1070+@Callable(dc)
1071+func withdraw (ek) = valueOrElse(ao(), if ((size(dc.payments) != 1))
10661072 then throw("size(payments) != 1")
10671073 else {
1068- let ej = da.payments[0].amount
1069- let ek = da.payments[0].assetId
1070- if ((Y != ek))
1074+ let el = dc.payments[0].amount
1075+ let em = dc.payments[0].assetId
1076+ if ((aa != em))
10711077 then throw("unknown payment token")
10721078 else {
1073- let cH = cD()
1074- if (cH._1)
1075- then (cJ(cH._2) ++ cK(da.originCaller, da.payments))
1079+ let cJ = cF()
1080+ if (cJ._1)
1081+ then (cL(cJ._2) ++ cM(dc.originCaller, dc.payments))
10761082 else {
1077- func dv (aM,el) = {
1078- let em = aM
1079- let dy = em._1
1080- let ao = em._2
1081- let en = fraction(el, ej, Z)
1082- if (av((en >= ei[ao])))
1083+ func dx (aO,en) = {
1084+ let eo = aO
1085+ let dA = eo._1
1086+ let aq = eo._2
1087+ let ep = fraction(en, el, ab)
1088+ if (ax((ep >= ek[aq])))
10831089 then throw("Withdrawal resulted in fewer coins than expected")
10841090 else {
1085- let eh = cy(en, ah[ao])
1086- if ((eh == eh))
1087- then $Tuple2((dy ++ [IntegerEntry((ah[ao] + i), (el - en)), ScriptTransfer(da.originCaller, en, fromBase58String(ah[ao]))]), (ao + 1))
1091+ let ej = cA(ep, aj[aq])
1092+ if ((ej == ej))
1093+ then $Tuple2((dA ++ [IntegerEntry((aj[aq] + i), (en - ep)), ScriptTransfer(dc.originCaller, ep, fromBase58String(aj[aq]))]), (aq + 1))
10881094 else throw("Strict value is not equal to itself.")
10891095 }
10901096 }
10911097
1092- let eo = {
1093- let aO = aK()
1094- let aP = size(aO)
1095- let aQ = $Tuple2(nil, 0)
1096- func aR (aS,aT) = if ((aT >= aP))
1097- then aS
1098- else dv(aS, aO[aT])
1098+ let eq = {
1099+ let aQ = aM()
1100+ let aR = size(aQ)
1101+ let aS = $Tuple2(nil, 0)
1102+ func aT (aU,aV) = if ((aV >= aR))
1103+ then aU
1104+ else dx(aU, aQ[aV])
10991105
1100- func aU (aS,aT) = if ((aT >= aP))
1101- then aS
1106+ func aW (aU,aV) = if ((aV >= aR))
1107+ then aU
11021108 else throw("List size exceeds 10")
11031109
1104- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1110+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
11051111 }
1106- let dy = eo._1
1107- let ao = eo._2
1108- (dy ++ [Burn(Y, ej), IntegerEntry(m, (Z - ej))])
1112+ let dA = eq._1
1113+ let aq = eq._2
1114+ (dA ++ [Burn(aa, el), IntegerEntry(n, (ab - el))])
11091115 }
11101116 }
11111117 })
11121118
11131119
11141120
1115-@Callable(da)
1116-func withdrawWithUnlock (ei,ep) = valueOrElse(am(), if ((0 >= ep))
1121+@Callable(dc)
1122+func withdrawWithUnlock (ek,er) = valueOrElse(ao(), if ((0 >= er))
11171123 then throw("Unlock amount must be positive")
11181124 else {
1119- let cH = cD()
1120- if (cH._1)
1121- then (cJ(cH._2) ++ cK(da.caller, da.payments))
1125+ let cJ = cF()
1126+ if (cJ._1)
1127+ then (cL(cJ._2) ++ cM(dc.caller, dc.payments))
11221128 else {
1123- let ej = if ((size(da.payments) > 0))
1124- then if ((size(da.payments) != 1))
1129+ let el = if ((size(dc.payments) > 0))
1130+ then if ((size(dc.payments) != 1))
11251131 then throw("size(payments) != 1")
11261132 else {
1127- let ek = da.payments[0].assetId
1128- if ((Y != ek))
1133+ let em = dc.payments[0].assetId
1134+ if ((aa != em))
11291135 then throw("unknown payment token")
1130- else da.payments[0].amount
1136+ else dc.payments[0].amount
11311137 }
11321138 else 0
1133- let eq = invoke(T, "withdrawShareTokens", [toString(this), ep], nil)
1134- if ((eq == eq))
1139+ let es = invoke(U, "withdrawShareTokensFromPool", [dc.caller.bytes, toString(this), er], nil)
1140+ if ((es == es))
11351141 then {
1136- let er = (ej + ep)
1137- let dH = invoke(this, "withdraw", [ei], [AttachedPayment(Y, er)])
1138- if ((dH == dH))
1142+ let et = (el + er)
1143+ let dJ = invoke(this, "withdraw", [ek], [AttachedPayment(aa, et)])
1144+ if ((dJ == dJ))
11391145 then nil
11401146 else throw("Strict value is not equal to itself.")
11411147 }
11421148 else throw("Strict value is not equal to itself.")
11431149 }
11441150 })
11451151
11461152
11471153
1148-@Callable(da)
1149-func calcWithdrawOneCoin (es,dY,az) = if ((0 >= es))
1154+@Callable(dc)
1155+func calcWithdrawOneCoin (eu,ea,aB) = if ((0 >= eu))
11501156 then throw("Amount must be positive")
11511157 else {
1152- let ao = valueOrErrorMessage(indexOf(ah, dY), "unknown token out")
1153- $Tuple2(nil, bP(aK(), es, ao, Address(fromBase58String(az)))._1)
1158+ let aq = valueOrErrorMessage(indexOf(aj, ea), "unknown token out")
1159+ $Tuple2(nil, bR(aM(), eu, aq, Address(fromBase58String(aB)))._1)
11541160 }
11551161
11561162
11571163
1158-@Callable(da)
1159-func withdrawOneCoin (dY,et) = valueOrElse(am(), if ((size(da.payments) != 1))
1164+@Callable(dc)
1165+func withdrawOneCoin (ea,ev) = valueOrElse(ao(), if ((size(dc.payments) != 1))
11601166 then throw("size(payments) != 1")
11611167 else {
1162- let cH = cD()
1163- if (cH._1)
1164- then (cJ(cH._2) ++ cK(da.originCaller, da.payments))
1168+ let cJ = cF()
1169+ if (cJ._1)
1170+ then (cL(cJ._2) ++ cM(dc.originCaller, dc.payments))
11651171 else {
1166- let ej = da.payments[0].amount
1167- let ek = da.payments[0].assetId
1168- if ((ek != Y))
1172+ let el = dc.payments[0].amount
1173+ let em = dc.payments[0].assetId
1174+ if ((em != aa))
11691175 then throw("unknown token")
11701176 else {
1171- let eu = valueOrErrorMessage(indexOf(ah, dY), "unknown token out")
1172- let eb = fromBase58String(dY)
1173- let aW = aK()
1174- let ev = bP(aW, ej, eu, da.originCaller)
1175- let ch = ev._1
1176- let ew = ev._2
1177- if (av((ch >= et)))
1177+ let ew = valueOrErrorMessage(indexOf(aj, ea), "unknown token out")
1178+ let ed = fromBase58String(ea)
1179+ let aY = aM()
1180+ let ex = bR(aY, el, ew, dc.originCaller)
1181+ let cj = ex._1
1182+ let ey = ex._2
1183+ if (ax((cj >= ev)))
11781184 then throw("Not enough coins removed")
11791185 else {
1180- let dC = fraction(ew, ac, aa)
1181- let ex = (ch + ew)
1182- func ed (aM,ee) = {
1183- let ey = aM
1184- let cO = ey._1
1185- let ao = ey._2
1186- if ((ao == eu))
1187- then $Tuple2((cO :+ (ee - ex)), (ao + 1))
1188- else $Tuple2((cO :+ ee), (ao + 1))
1186+ let dE = fraction(ey, ae, ac)
1187+ let ez = (cj + ey)
1188+ func ef (aO,eg) = {
1189+ let eA = aO
1190+ let cQ = eA._1
1191+ let aq = eA._2
1192+ if ((aq == ew))
1193+ then $Tuple2((cQ :+ (eg - ez)), (aq + 1))
1194+ else $Tuple2((cQ :+ eg), (aq + 1))
11891195 }
11901196
1191- let ez = {
1192- let aO = aW
1193- let aP = size(aO)
1194- let aQ = $Tuple2(nil, 0)
1195- func aR (aS,aT) = if ((aT >= aP))
1196- then aS
1197- else ed(aS, aO[aT])
1197+ let eB = {
1198+ let aQ = aY
1199+ let aR = size(aQ)
1200+ let aS = $Tuple2(nil, 0)
1201+ func aT (aU,aV) = if ((aV >= aR))
1202+ then aU
1203+ else ef(aU, aQ[aV])
11981204
1199- func aU (aS,aT) = if ((aT >= aP))
1200- then aS
1205+ func aW (aU,aV) = if ((aV >= aR))
1206+ then aU
12011207 else throw("List size exceeds 10")
12021208
1203- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1209+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
12041210 }
1205- let cO = ez._1
1206- let eA = ez._2
1207- if (cN(cO))
1211+ let cQ = eB._1
1212+ let eC = eB._2
1213+ if (cP(cQ))
12081214 then throw()
12091215 else {
1210- let eh = cy(ex, dY)
1211- if ((eh == eh))
1216+ let ej = cA(ez, ea)
1217+ if ((ej == ej))
12121218 then {
1213- let dG = (ew - dC)
1214- let dI = if ((dG > 0))
1215- then invoke(U, "airDrop", nil, [AttachedPayment(eb, dG)])
1219+ let dI = (ey - dE)
1220+ let dK = if ((dI > 0))
1221+ then invoke(V, "airDrop", nil, [AttachedPayment(ed, dI)])
12161222 else 0
1217- if ((dI == dI))
1218- then [ScriptTransfer(da.originCaller, ch, eb), IntegerEntry((ah[eu] + i), (aW[eu] - ex)), Burn(Y, ej), ScriptTransfer(P, dC, eb), IntegerEntry(m, (Z - ej))]
1223+ if ((dK == dK))
1224+ then [ScriptTransfer(dc.originCaller, cj, ed), IntegerEntry((aj[ew] + i), (aY[ew] - ez)), Burn(aa, el), ScriptTransfer(Q, dE, ed), IntegerEntry(n, (ab - el))]
12191225 else throw("Strict value is not equal to itself.")
12201226 }
12211227 else throw("Strict value is not equal to itself.")
12221228 }
12231229 }
12241230 }
12251231 }
12261232 })
12271233
12281234
12291235
1230-@Callable(da)
1231-func withdrawOneCoinWithUnlock (dY,et,ep) = valueOrElse(am(), if ((0 >= ep))
1236+@Callable(dc)
1237+func withdrawOneCoinWithUnlock (ea,ev,er) = valueOrElse(ao(), if ((0 >= er))
12321238 then throw("Unlock amount must be positive")
12331239 else {
1234- let cH = cD()
1235- if (cH._1)
1236- then (cJ(cH._2) ++ cK(da.caller, da.payments))
1240+ let cJ = cF()
1241+ if (cJ._1)
1242+ then (cL(cJ._2) ++ cM(dc.caller, dc.payments))
12371243 else {
1238- let ej = if ((size(da.payments) > 0))
1239- then if ((size(da.payments) != 1))
1244+ let el = if ((size(dc.payments) > 0))
1245+ then if ((size(dc.payments) != 1))
12401246 then throw("size(payments) != 1")
12411247 else {
1242- let ek = da.payments[0].assetId
1243- if ((Y != ek))
1248+ let em = dc.payments[0].assetId
1249+ if ((aa != em))
12441250 then throw("unknown payment token")
1245- else da.payments[0].amount
1251+ else dc.payments[0].amount
12461252 }
12471253 else 0
1248- let eq = invoke(T, "withdrawShareTokens", [toString(this), ep], nil)
1249- if ((eq == eq))
1254+ let es = invoke(U, "withdrawShareTokensFromPool", [dc.caller.bytes, toString(this), er], nil)
1255+ if ((es == es))
12501256 then {
1251- let er = (ej + ep)
1252- let dH = invoke(this, "withdrawOneCoin", [dY, et], [AttachedPayment(Y, er)])
1253- if ((dH == dH))
1257+ let et = (el + er)
1258+ let dJ = invoke(this, "withdrawOneCoin", [ea, ev], [AttachedPayment(aa, et)])
1259+ if ((dJ == dJ))
12541260 then nil
12551261 else throw("Strict value is not equal to itself.")
12561262 }
12571263 else throw("Strict value is not equal to itself.")
12581264 }
12591265 })
12601266
12611267
12621268
1263-@Callable(da)
1264-func A () = $Tuple2(nil, aF())
1269+@Callable(dc)
1270+func A () = $Tuple2(nil, aH())
12651271
12661272
12671273
1268-@Callable(da)
1274+@Callable(dc)
12691275 func getVirtualPrice () = {
1270- let bn = aZ(aK(), aF())
1271- $Tuple2(nil, fraction(bn, a, Z))
1276+ let bp = bb(aM(), aH())
1277+ $Tuple2(nil, fraction(bp, a, ab))
12721278 }
12731279
12741280
12751281
1276-@Callable(da)
1277-func calcTokenAmount (eB,eC) = {
1278- let ba = aF()
1279- let eD = aK()
1280- let bV = bq(eD, ba)
1281- func eE (aM,el) = {
1282- let eF = aM
1283- let cO = eF._1
1284- let ao = eF._2
1285- let dr = (el + (if (eC)
1286- then eB[ao]
1287- else -(eB[ao])))
1288- $Tuple2((cO :+ dr), (ao + 1))
1282+@Callable(dc)
1283+func calcTokenAmount (eD,eE) = {
1284+ let bc = aH()
1285+ let eF = aM()
1286+ let bX = bs(eF, bc)
1287+ func eG (aO,en) = {
1288+ let eH = aO
1289+ let cQ = eH._1
1290+ let aq = eH._2
1291+ let dt = (en + (if (eE)
1292+ then eD[aq]
1293+ else -(eD[aq])))
1294+ $Tuple2((cQ :+ dt), (aq + 1))
12891295 }
12901296
1291- let cO = ( let aO = eD
1292- let aP = size(aO)
1293- let aQ = $Tuple2(nil, 0)
1294- func aR (aS,aT) = if ((aT >= aP))
1295- then aS
1296- else eE(aS, aO[aT])
1297+ let cQ = ( let aQ = eF
1298+ let aR = size(aQ)
1299+ let aS = $Tuple2(nil, 0)
1300+ func aT (aU,aV) = if ((aV >= aR))
1301+ then aU
1302+ else eG(aU, aQ[aV])
12971303
1298- func aU (aS,aT) = if ((aT >= aP))
1299- then aS
1304+ func aW (aU,aV) = if ((aV >= aR))
1305+ then aU
13001306 else throw("List size exceeds 10")
13011307
1302- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1
1303- let bW = bq(cO, ba)
1304- let eG = if (eC)
1305- then (bW - bV)
1306- else (bV - bW)
1307- $Tuple2(nil, fraction(eG, Z, bV))
1308+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1
1309+ let bY = bs(cQ, bc)
1310+ let eI = if (eE)
1311+ then (bY - bX)
1312+ else (bX - bY)
1313+ $Tuple2(nil, fraction(eI, ab, bX))
13081314 }
13091315
13101316
13111317
1312-@Callable(da)
1313-func rampA (eH,eI) = valueOrElse(am(), valueOrElse(an(da), if (av((au >= (af + e))))
1318+@Callable(dc)
1319+func rampA (eJ,eK) = valueOrElse(ao(), valueOrElse(ap(dc), if (ax((aw >= (ah + e))))
13141320 then throw("too often")
1315- else if (av((eI >= (au + e))))
1321+ else if (ax((eK >= (aw + e))))
13161322 then throw("insufficient time")
13171323 else {
1318- let eJ = aF()
1319- if (av(if ((eH > 0))
1320- then (b > eH)
1324+ let eL = aH()
1325+ if (ax(if ((eJ > 0))
1326+ then (b > eJ)
13211327 else false))
13221328 then throw("out of base range")
1323- else if (av(if (if ((eH >= eJ))
1324- then ((eJ * c) >= eH)
1329+ else if (ax(if (if ((eJ >= eL))
1330+ then ((eL * c) >= eJ)
13251331 else false)
13261332 then true
1327- else if ((eJ > eH))
1328- then ((eH * c) >= eJ)
1333+ else if ((eL > eJ))
1334+ then ((eJ * c) >= eL)
13291335 else false))
13301336 then throw("out of range")
1331- else [IntegerEntry("initial_A", eJ), IntegerEntry("future_A", eH), IntegerEntry("initial_A_time", au), IntegerEntry("future_A_time", eI)]
1337+ else [IntegerEntry("initial_A", eL), IntegerEntry("future_A", eJ), IntegerEntry("initial_A_time", aw), IntegerEntry("future_A_time", eK)]
13321338 }))
13331339
13341340
13351341
1336-@Callable(da)
1337-func stopRampA () = valueOrElse(am(), valueOrElse(an(da), {
1338- let eK = aF()
1339-[IntegerEntry("initial_A", eK), IntegerEntry("future_A", eK), IntegerEntry("initial_A_time", au), IntegerEntry("future_A_time", au)]
1342+@Callable(dc)
1343+func stopRampA () = valueOrElse(ao(), valueOrElse(ap(dc), {
1344+ let eM = aH()
1345+[IntegerEntry("initial_A", eM), IntegerEntry("future_A", eM), IntegerEntry("initial_A_time", aw), IntegerEntry("future_A_time", aw)]
13401346 }))
13411347
13421348
13431349
1344-@Callable(da)
1345-func shutdown () = valueOrElse(an(da), if (!(X))
1346- then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, k), "the cause wasn't specified")))
1347- else aj("Paused by admin"))
1350+@Callable(dc)
1351+func shutdown () = valueOrElse(ap(dc), if (!(Y))
1352+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified")))
1353+ else al("Paused by admin"))
13481354
13491355
13501356
1351-@Callable(da)
1352-func activate () = valueOrElse(an(da), if (X)
1353- then al()
1354- else [BooleanEntry(j, true), DeleteEntry(k)])
1357+@Callable(dc)
1358+func activate () = valueOrElse(ap(dc), if (Y)
1359+ then an()
1360+ else [BooleanEntry(j, true), DeleteEntry(l)])
13551361
13561362
13571363
1358-@Callable(da)
1359-func takeIntoAccountExtraFunds () = valueOrElse(am(), if ((da.caller != P))
1364+@Callable(dc)
1365+func takeIntoAccountExtraFunds () = valueOrElse(ao(), if ((dc.caller != Q))
13601366 then throw("Only the wallet can call this function")
13611367 else {
1362- let eD = aK()
1363- func eL (aM,aN) = {
1364- let eM = aM
1365- let eN = eM._1
1366- let ao = eM._2
1367- let eO = fromBase58String(aN)
1368- let eP = (assetBalance(this, eO) + cA(eO))
1369- let eQ = (eP - eD[ao])
1370- if ((0 > eQ))
1371- then aj(("Enroll amount negative for asset" + aN))
1368+ let eF = aM()
1369+ func eN (aO,aP) = {
1370+ let eO = aO
1371+ let eP = eO._1
1372+ let aq = eO._2
1373+ let eQ = fromBase58String(aP)
1374+ let eR = (assetBalance(this, eQ) + cC(eQ))
1375+ let eS = (eR - eF[aq])
1376+ if ((0 > eS))
1377+ then al(("Enroll amount negative for asset" + aP))
13721378 else {
1373- let dI = if ((eQ > 0))
1374- then invoke(U, "airDrop", nil, [AttachedPayment(eO, eQ)])
1379+ let dK = if ((eS > 0))
1380+ then invoke(V, "airDrop", nil, [AttachedPayment(eQ, eS)])
13751381 else 0
1376- if ((dI == dI))
1377- then $Tuple2((eN + eQ), (ao + 1))
1382+ if ((dK == dK))
1383+ then $Tuple2((eP + eS), (aq + 1))
13781384 else throw("Strict value is not equal to itself.")
13791385 }
13801386 }
13811387
1382- let du = {
1383- let aO = ah
1384- let aP = size(aO)
1385- let aQ = $Tuple2(0, 0)
1386- func aR (aS,aT) = if ((aT >= aP))
1387- then aS
1388- else eL(aS, aO[aT])
1388+ let dw = {
1389+ let aQ = aj
1390+ let aR = size(aQ)
1391+ let aS = $Tuple2(0, 0)
1392+ func aT (aU,aV) = if ((aV >= aR))
1393+ then aU
1394+ else eN(aU, aQ[aV])
13891395
1390- func aU (aS,aT) = if ((aT >= aP))
1391- then aS
1396+ func aW (aU,aV) = if ((aV >= aR))
1397+ then aU
13921398 else throw("List size exceeds 10")
13931399
1394- aU(aR(aR(aR(aR(aR(aR(aR(aR(aR(aR(aQ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1400+ aW(aT(aT(aT(aT(aT(aT(aT(aT(aT(aT(aS, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
13951401 }
1396- if ((du._1 == 0))
1402+ if ((dw._1 == 0))
13971403 then throw("No money to take")
13981404 else nil
13991405 })
14001406
14011407
1402-@Verifier(eR)
1403-func eS () = {
1404- let eT = {
1405- let eU = if (sigVerify(eR.bodyBytes, eR.proofs[0], L))
1408+@Verifier(eT)
1409+func eU () = {
1410+ let eV = {
1411+ let eW = if (sigVerify(eT.bodyBytes, eT.proofs[0], M))
14061412 then 1
14071413 else 0
1408- let eV = if (sigVerify(eR.bodyBytes, eR.proofs[1], M))
1414+ let eX = if (sigVerify(eT.bodyBytes, eT.proofs[1], N))
14091415 then 1
14101416 else 0
1411- let eW = if (sigVerify(eR.bodyBytes, eR.proofs[2], N))
1417+ let eY = if (sigVerify(eT.bodyBytes, eT.proofs[2], O))
14121418 then 1
14131419 else 0
1414- (((eU + eV) + eW) >= 2)
1420+ (((eW + eX) + eY) >= 2)
14151421 }
1416- let I = eR
1417- if ($isInstanceOf(I, "InvokeScriptTransaction"))
1422+ let J = eT
1423+ if ($isInstanceOf(J, "InvokeScriptTransaction"))
14181424 then {
1419- let dH = I
1420- let eX = if ((dH.dApp == this))
1421- then (dH.function == "takeIntoAccountExtraFunds")
1425+ let dJ = J
1426+ let eZ = if ((dJ.dApp == this))
1427+ then (dJ.function == "takeIntoAccountExtraFunds")
14221428 else false
1423- let eY = if (if (if (sigVerify(eR.bodyBytes, eR.proofs[0], L))
1429+ let fa = if (if (if (sigVerify(eT.bodyBytes, eT.proofs[0], M))
14241430 then true
1425- else sigVerify(eR.bodyBytes, eR.proofs[0], M))
1431+ else sigVerify(eT.bodyBytes, eT.proofs[0], N))
14261432 then true
1427- else sigVerify(eR.bodyBytes, eR.proofs[0], N))
1433+ else sigVerify(eT.bodyBytes, eT.proofs[0], O))
14281434 then true
1429- else sigVerify(eR.bodyBytes, eR.proofs[0], O)
1430- if (if (eX)
1431- then eY
1435+ else sigVerify(eT.bodyBytes, eT.proofs[0], P)
1436+ if (if (eZ)
1437+ then fa
14321438 else false)
14331439 then true
1434- else eT
1440+ else eV
14351441 }
1436- else eT
1442+ else eV
14371443 }
14381444

github/deemru/w8io/026f985 
621.25 ms