tx · EKSesAnP68WHkuQ7YVvgEicae27p2jtHiVbgJ3s3rZkg 3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX: -0.14000000 Waves 2022.12.13 12:25 [2358366] smart account 3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX > SELF 0.00000000 Waves
{ "type": 13, "id": "EKSesAnP68WHkuQ7YVvgEicae27p2jtHiVbgJ3s3rZkg", "fee": 14000000, "feeAssetId": null, "timestamp": 1670923532203, "version": 2, "chainId": 84, "sender": "3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX", "senderPublicKey": "BjnLnkAMaJLYAK36vQqSepUNjGeMDHfZGfmdYwGcLbmg", "proofs": [ "2aZSTB5GeXBzBFJex6dD3bAz3pKHY9pviiCoAJBMVF6pHxavp7XNug23UaCP4rLfvhV77p3V7ZqkzoThps2CkNss", "q5ftxmMeZjGyeLBNr6ruSF1ys6TGZj1i6KFfmXYC4ub62e7T5eeGjKpAYBujkqrYgVVSunguGcyMwsMSDYksF3u" ], "script": "base64:BgJJCAISAwoBBBIECgIEARIGCgQBAQQBEgMKAQESBgoEAQgBARIECgIBARIDCgEBEgASABIAEgMKAQESBQoDBAEIEgASBAoCAQESAGoAB3ZlcnNpb24CBTIuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMACWtBc3NldElkQQIKQV9hc3NldF9pZAAJa0Fzc2V0SWRCAgpCX2Fzc2V0X2lkAAlrQmFsYW5jZUECD0FfYXNzZXRfYmFsYW5jZQAJa0JhbGFuY2VCAg9CX2Fzc2V0X2JhbGFuY2UADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3NldFN1cHBseQISc2hhcmVfYXNzZXRfc3VwcGx5AARrRmVlAgpjb21taXNzaW9uAAprSW52YXJpYW50AglpbnZhcmlhbnQABmtDYXVzZQIOc2h1dGRvd25fY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WRtaW5zBRNtdWx0aVNpZ25lZEJ5QWRtaW5zgc0IzQ==", "height": 2358366, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AxEfEyEs8YwBVVDzHc6ehgNVkhK9mTwTX7Zx7cLsYXDg Next: 9NADwe7v2BerZDrNXTSVe7Fry5p5QAm4eFJLgmrV3XCt Diff:
Old | New | Differences | |
---|---|---|---|
51 | 51 | ||
52 | 52 | let y = "start_height" | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "dApp_threshold" | |
55 | 55 | ||
56 | - | let A = "admin_pub_ | |
56 | + | let A = "admin_pub_1" | |
57 | 57 | ||
58 | - | let B = "admin_pub_ | |
58 | + | let B = "admin_pub_2" | |
59 | 59 | ||
60 | - | let C = "admin_ | |
60 | + | let C = "admin_pub_3" | |
61 | 61 | ||
62 | - | let D = " | |
62 | + | let D = "admin_invoke_pub" | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "money_box_address" | |
65 | 65 | ||
66 | - | let F = " | |
66 | + | let F = "governance_address" | |
67 | 67 | ||
68 | - | let G = " | |
68 | + | let G = "farming_address" | |
69 | 69 | ||
70 | - | let H = " | |
70 | + | let H = "voting_address" | |
71 | 71 | ||
72 | - | let I = " | |
72 | + | let I = "usdn_asset_id" | |
73 | 73 | ||
74 | - | let J = | |
74 | + | let J = "staking_assets" | |
75 | 75 | ||
76 | - | func K (L) = { | |
77 | - | let M = getString(J, L) | |
78 | - | if ($isInstanceOf(M, "String")) | |
76 | + | let K = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
77 | + | ||
78 | + | func L (M) = { | |
79 | + | let N = getString(K, M) | |
80 | + | if ($isInstanceOf(N, "String")) | |
79 | 81 | then { | |
80 | - | let | |
81 | - | fromBase58String( | |
82 | + | let O = N | |
83 | + | fromBase58String(O) | |
82 | 84 | } | |
83 | 85 | else { | |
84 | - | let | |
85 | - | throw(( | |
86 | + | let P = N | |
87 | + | throw((M + "is empty")) | |
86 | 88 | } | |
87 | 89 | } | |
88 | 90 | ||
89 | 91 | ||
90 | - | let | |
92 | + | let Q = L(A) | |
91 | 93 | ||
92 | - | let | |
94 | + | let R = L(B) | |
93 | 95 | ||
94 | - | let | |
96 | + | let S = L(C) | |
95 | 97 | ||
96 | - | let | |
98 | + | let T = L(D) | |
97 | 99 | ||
98 | - | let | |
100 | + | let U = Address(L(E)) | |
99 | 101 | ||
100 | - | let | |
102 | + | let V = Address(L(F)) | |
101 | 103 | ||
102 | - | let | |
104 | + | let W = Address(L(n)) | |
103 | 105 | ||
104 | - | let | |
106 | + | let X = Address(L(H)) | |
105 | 107 | ||
106 | - | let | |
108 | + | let Y = Address(L(G)) | |
107 | 109 | ||
108 | - | let | |
110 | + | let Z = L(I) | |
109 | 111 | ||
110 | - | let | |
112 | + | let aa = getStringValue(K, J) | |
111 | 113 | ||
112 | - | let | |
114 | + | let ab = valueOrErrorMessage(getInteger(X, w), "Empty kBasePeriod") | |
113 | 115 | ||
114 | - | let | |
116 | + | let ac = valueOrErrorMessage(getInteger(X, y), "Empty kStartHeight") | |
115 | 117 | ||
116 | - | let | |
118 | + | let ad = valueOrErrorMessage(getInteger(X, x), "Empty kPeriodLength") | |
117 | 119 | ||
118 | - | let | |
120 | + | let ae = ((ab + ((height - ac) / ad)) + 3) | |
119 | 121 | ||
120 | - | let | |
122 | + | let af = getBooleanValue(this, c) | |
121 | 123 | ||
122 | - | let | |
124 | + | let ag = valueOrElse(getBoolean(K, d), true) | |
123 | 125 | ||
124 | - | let | |
126 | + | let ah = getStringValue(this, e) | |
125 | 127 | ||
126 | - | let ah = getStringValue(this, f) | |
127 | - | ||
128 | - | let ai = if ((ag == "WAVES")) | |
129 | - | then unit | |
130 | - | else fromBase58String(ag) | |
128 | + | let ai = getStringValue(this, f) | |
131 | 129 | ||
132 | 130 | let aj = if ((ah == "WAVES")) | |
133 | 131 | then unit | |
134 | 132 | else fromBase58String(ah) | |
135 | 133 | ||
136 | - | let ak = { | |
137 | - | let M = ai | |
138 | - | if ($isInstanceOf(M, "ByteVector")) | |
134 | + | let ak = if ((ai == "WAVES")) | |
135 | + | then unit | |
136 | + | else fromBase58String(ai) | |
137 | + | ||
138 | + | let al = { | |
139 | + | let N = aj | |
140 | + | if ($isInstanceOf(N, "ByteVector")) | |
139 | 141 | then { | |
140 | - | let | |
141 | - | value(assetInfo( | |
142 | + | let am = N | |
143 | + | value(assetInfo(am)).name | |
142 | 144 | } | |
143 | - | else if ($isInstanceOf( | |
145 | + | else if ($isInstanceOf(N, "Unit")) | |
144 | 146 | then { | |
145 | - | let | |
147 | + | let an = N | |
146 | 148 | "WAVES" | |
147 | 149 | } | |
148 | 150 | else throw("Match error") | |
149 | 151 | } | |
150 | 152 | ||
151 | - | let | |
152 | - | let | |
153 | - | if ($isInstanceOf( | |
153 | + | let ao = { | |
154 | + | let N = ak | |
155 | + | if ($isInstanceOf(N, "ByteVector")) | |
154 | 156 | then { | |
155 | - | let | |
156 | - | value(assetInfo( | |
157 | + | let am = N | |
158 | + | value(assetInfo(am)).name | |
157 | 159 | } | |
158 | - | else if ($isInstanceOf( | |
160 | + | else if ($isInstanceOf(N, "Unit")) | |
159 | 161 | then { | |
160 | - | let | |
162 | + | let an = N | |
161 | 163 | "WAVES" | |
162 | 164 | } | |
163 | 165 | else throw("Match error") | |
164 | 166 | } | |
165 | 167 | ||
166 | - | let | |
168 | + | let ap = getIntegerValue(this, g) | |
167 | 169 | ||
168 | - | let | |
170 | + | let aq = getIntegerValue(this, h) | |
169 | 171 | ||
170 | - | let | |
172 | + | let ar = fromBase58String(getStringValue(this, i)) | |
171 | 173 | ||
172 | - | let | |
174 | + | let as = getIntegerValue(this, j) | |
173 | 175 | ||
174 | - | let | |
176 | + | let at = getIntegerValue(this, l) | |
175 | 177 | ||
176 | - | let | |
178 | + | let au = getIntegerValue(this, k) | |
177 | 179 | ||
178 | - | let | |
180 | + | let av = fraction(au, 40, 100) | |
179 | 181 | ||
180 | - | let | |
182 | + | let aw = 1000000 | |
181 | 183 | ||
182 | - | let | |
184 | + | let ax = 1000 | |
183 | 185 | ||
184 | - | let | |
186 | + | let ay = 100000000 | |
185 | 187 | ||
186 | - | let | |
188 | + | let az = 10000000000000000 | |
187 | 189 | ||
188 | - | let | |
190 | + | let aA = 8 | |
189 | 191 | ||
190 | - | let | |
192 | + | let aB = 80000000 | |
191 | 193 | ||
192 | - | let | |
194 | + | let aC = 120000000 | |
193 | 195 | ||
194 | - | let | |
196 | + | let aD = 50 | |
195 | 197 | ||
196 | - | let | |
198 | + | let aE = 2 | |
197 | 199 | ||
198 | - | let | |
200 | + | let aF = 4600000000000000 | |
199 | 201 | ||
200 | - | let aF = 2 | |
201 | - | ||
202 | - | let aG = 4600000000000000 | |
203 | - | ||
204 | - | func aH (aI) = { | |
205 | - | let M = aI | |
206 | - | if ($isInstanceOf(M, "ByteVector")) | |
202 | + | func aG (aH) = { | |
203 | + | let N = aH | |
204 | + | if ($isInstanceOf(N, "ByteVector")) | |
207 | 205 | then { | |
208 | - | let | |
209 | - | assetBalance(this, | |
206 | + | let am = N | |
207 | + | assetBalance(this, am) | |
210 | 208 | } | |
211 | - | else if ($isInstanceOf( | |
209 | + | else if ($isInstanceOf(N, "Unit")) | |
212 | 210 | then { | |
213 | - | let | |
211 | + | let an = N | |
214 | 212 | wavesBalance(this).available | |
215 | 213 | } | |
216 | 214 | else throw("Match error") | |
217 | 215 | } | |
218 | 216 | ||
219 | 217 | ||
220 | - | func | |
221 | - | let | |
222 | - | let | |
223 | - | if ($isInstanceOf( | |
218 | + | func aI (aH) = { | |
219 | + | let aJ = { | |
220 | + | let N = aH | |
221 | + | if ($isInstanceOf(N, "ByteVector")) | |
224 | 222 | then { | |
225 | - | let | |
226 | - | if (( | |
227 | - | then getInteger( | |
223 | + | let aK = N | |
224 | + | if ((aK == Z)) | |
225 | + | then getInteger(W, ((("rpd_balance_" + toBase58String(aK)) + "_") + toString(this))) | |
228 | 226 | else 0 | |
229 | 227 | } | |
230 | - | else if ($isInstanceOf( | |
228 | + | else if ($isInstanceOf(N, "Unit")) | |
231 | 229 | then 0 | |
232 | 230 | else throw("Match error") | |
233 | 231 | } | |
234 | - | let | |
235 | - | if ($isInstanceOf( | |
232 | + | let N = aJ | |
233 | + | if ($isInstanceOf(N, "Int")) | |
236 | 234 | then { | |
237 | - | let | |
238 | - | | |
235 | + | let aL = N | |
236 | + | aL | |
239 | 237 | } | |
240 | 238 | else 0 | |
241 | 239 | } | |
242 | 240 | ||
243 | 241 | ||
244 | - | let | |
242 | + | let aM = aI(aj) | |
245 | 243 | ||
246 | - | let | |
244 | + | let aN = aI(ak) | |
247 | 245 | ||
248 | - | let | |
246 | + | let aO = (ap - aM) | |
249 | 247 | ||
250 | - | let | |
248 | + | let aP = (aq - aN) | |
251 | 249 | ||
252 | - | let | |
250 | + | let aQ = (aG(aj) + aM) | |
253 | 251 | ||
254 | - | let | |
252 | + | let aR = (aG(ak) + aN) | |
255 | 253 | ||
256 | - | let | |
257 | - | then ( | |
254 | + | let aS = if ((aQ >= ap)) | |
255 | + | then (aR >= aq) | |
258 | 256 | else false | |
259 | 257 | ||
260 | - | func | |
258 | + | func aT (aU,aV) = ((fraction(az, aU, aV) + fraction(az, aV, aU)) / 2) | |
261 | 259 | ||
262 | 260 | ||
263 | - | func | |
264 | - | let | |
265 | - | (fraction(( | |
261 | + | func aW (aU,aV) = { | |
262 | + | let aX = aT(aU, aV) | |
263 | + | (fraction((aU + aV), az, pow(aX, aA, aD, aE, aA, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(aU), toBigInt(aV), toBigInt(ay)), 0, toBigInt(5), 1, (aA / 2), DOWN)), pow((aX - aF), aA, aD, aE, aA, DOWN), ay))) | |
266 | 264 | } | |
267 | 265 | ||
268 | 266 | ||
269 | - | func | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | func | |
267 | + | func aY (aZ,ba,bb,bc,bd,be,bf) = { | |
268 | + | let bg = (az - ((az * 1) / 10000000)) | |
269 | + | let bh = (aZ - ba) | |
270 | + | let aU = (bd + bb) | |
271 | + | let aV = (be + bb) | |
272 | + | func bi (bj,bk) = if ((bj._1 == -1)) | |
275 | 273 | then { | |
276 | - | let | |
277 | - | let | |
278 | - | then | |
279 | - | else | |
280 | - | if (( | |
281 | - | then $Tuple2( | |
274 | + | let bl = (aZ - (((bk * bh) / 3) / ax)) | |
275 | + | let bm = if ((bc == aj)) | |
276 | + | then aW(aU, (be - bl)) | |
277 | + | else aW((bd - bl), aV) | |
278 | + | if ((bm > bf)) | |
279 | + | then $Tuple2(bl, bm) | |
282 | 280 | else $Tuple2(-1, 0) | |
283 | 281 | } | |
284 | - | else | |
282 | + | else bj | |
285 | 283 | ||
286 | - | let | |
287 | - | if ((0 > | |
284 | + | let bn = bi($Tuple2(-1, 0), 3000) | |
285 | + | if ((0 > bn._1)) | |
288 | 286 | then throw("Price is worse than minReceived") | |
289 | 287 | else { | |
290 | - | let | |
291 | - | then | |
292 | - | else if (( | |
293 | - | then | |
288 | + | let bo = if ((bc == aj)) | |
289 | + | then aW(aU, (be - aZ)) | |
290 | + | else if ((bc == ak)) | |
291 | + | then aW((bd - aZ), aV) | |
294 | 292 | else throw("Wrong asset in payment") | |
295 | - | if (( | |
296 | - | then if (( | |
293 | + | if ((bf > bo)) | |
294 | + | then if ((bg >= fraction(az, bf, bo))) | |
297 | 295 | then throw("The requested price is too not profitable for user") | |
298 | 296 | else { | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | func | |
304 | - | then | |
305 | - | else | |
297 | + | let bp = { | |
298 | + | let bq = [25, 200, 500] | |
299 | + | let br = size(bq) | |
300 | + | let bs = $Tuple2(-1, 0) | |
301 | + | func bt (bu,bv) = if ((bv >= br)) | |
302 | + | then bu | |
303 | + | else bi(bu, bq[bv]) | |
306 | 304 | ||
307 | - | func | |
308 | - | then | |
305 | + | func bw (bu,bv) = if ((bv >= br)) | |
306 | + | then bu | |
309 | 307 | else throw("List size exceeds 3") | |
310 | 308 | ||
311 | - | | |
309 | + | bw(bt(bt(bt(bs, 0), 1), 2), 3) | |
312 | 310 | } | |
313 | - | if ((0 > | |
314 | - | then | |
315 | - | else | |
311 | + | if ((0 > bp._1)) | |
312 | + | then bn._1 | |
313 | + | else bp._1 | |
316 | 314 | } | |
317 | 315 | else { | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | func | |
323 | - | then | |
324 | - | else | |
316 | + | let bp = { | |
317 | + | let bq = [-500, -200, -25] | |
318 | + | let br = size(bq) | |
319 | + | let bs = $Tuple2(-1, 0) | |
320 | + | func bt (bu,bv) = if ((bv >= br)) | |
321 | + | then bu | |
322 | + | else bi(bu, bq[bv]) | |
325 | 323 | ||
326 | - | func | |
327 | - | then | |
324 | + | func bw (bu,bv) = if ((bv >= br)) | |
325 | + | then bu | |
328 | 326 | else throw("List size exceeds 3") | |
329 | 327 | ||
330 | - | | |
328 | + | bw(bt(bt(bt(bs, 0), 1), 2), 3) | |
331 | 329 | } | |
332 | - | let | |
333 | - | then $Tuple2( | |
334 | - | else | |
335 | - | if (( | |
330 | + | let bx = if ((0 > bp._1)) | |
331 | + | then $Tuple2(aZ, bo) | |
332 | + | else bp | |
333 | + | if ((bg >= fraction(az, bf, bx._2))) | |
336 | 334 | then throw("The requested price is too not profitable for user") | |
337 | - | else | |
335 | + | else bx._1 | |
338 | 336 | } | |
339 | 337 | } | |
340 | 338 | } | |
341 | 339 | ||
342 | 340 | ||
343 | - | func | |
344 | - | let | |
345 | - | if ($isInstanceOf( | |
341 | + | func by (aH) = { | |
342 | + | let N = aH | |
343 | + | if ($isInstanceOf(N, "ByteVector")) | |
346 | 344 | then { | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | $Tuple3( | |
345 | + | let am = N | |
346 | + | let bz = toBase58String(am) | |
347 | + | let bA = valueOrErrorMessage(assetInfo(am), (("Asset " + bz) + " doesn't exist")) | |
348 | + | $Tuple3(bz, bA.name, bA.decimals) | |
351 | 349 | } | |
352 | - | else if ($isInstanceOf( | |
350 | + | else if ($isInstanceOf(N, "Unit")) | |
353 | 351 | then { | |
354 | - | let | |
352 | + | let an = N | |
355 | 353 | $Tuple3("WAVES", "WAVES", 8) | |
356 | 354 | } | |
357 | 355 | else throw("Match error") | |
358 | 356 | } | |
359 | 357 | ||
360 | 358 | ||
361 | - | func | |
359 | + | func bB (bC) = [BooleanEntry(c, false), StringEntry(m, bC)] | |
362 | 360 | ||
363 | 361 | ||
364 | - | func | |
362 | + | func bD () = throw("DApp is already active") | |
365 | 363 | ||
366 | 364 | ||
367 | - | func | |
368 | - | then | |
365 | + | func bE () = if (if (af) | |
366 | + | then ag | |
369 | 367 | else false) | |
370 | 368 | then unit | |
371 | 369 | else throw("DApp is inactive at this moment") | |
372 | 370 | ||
373 | 371 | ||
374 | - | func | |
372 | + | func bF (aL) = if (containsElement([Q, R, S], aL.callerPublicKey)) | |
375 | 373 | then unit | |
376 | 374 | else throw("Only admin can call this function") | |
377 | 375 | ||
378 | 376 | ||
379 | - | func | |
377 | + | func bG (aL) = if ((this == aL.caller)) | |
380 | 378 | then unit | |
381 | 379 | else throw("Only contract itself can call this function") | |
382 | 380 | ||
383 | 381 | ||
384 | - | func | |
382 | + | func bH () = throw(((("Incorrect assets attached. Expected: " + ah) + " and ") + ai)) | |
385 | 383 | ||
386 | 384 | ||
387 | - | func | |
385 | + | func bI () = throw("One attached payment expected") | |
388 | 386 | ||
389 | 387 | ||
390 | - | func | |
388 | + | func bJ () = bB(((((((((((((((("Suspicious state. Actual balances: " + toString(ap)) + " ") + al) + ", ") + toString(aq)) + " ") + ao) + ". State: ") + toString(aG(aj))) + " ") + al) + ", ") + toString(aG(ak))) + " ") + ao)) | |
391 | 389 | ||
392 | 390 | ||
393 | - | func bO () = bC(((((((((((((((("Suspicious state. Actual balances: " + toString(ao)) + " ") + ak) + ", ") + toString(ap)) + " ") + an) + ". State: ") + toString(aH(ai))) + " ") + ak) + ", ") + toString(aH(aj))) + " ") + an)) | |
391 | + | func bK (bL,aH) = if (bL) | |
392 | + | then $Tuple2("lockNeutrino", W) | |
393 | + | else $Tuple2("unlockNeutrino", W) | |
394 | 394 | ||
395 | 395 | ||
396 | - | func bP (bQ,aI) = if (bQ) | |
397 | - | then $Tuple2("lockNeutrino", V) | |
398 | - | else $Tuple2("unlockNeutrino", V) | |
399 | - | ||
400 | - | ||
401 | - | func bR (bQ,bS,aI) = if (bQ) | |
396 | + | func bM (bL,bN,aH) = if (bL) | |
402 | 397 | then { | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | $Tuple4( | |
398 | + | let bO = bK(bL, aH) | |
399 | + | let bP = bO._1 | |
400 | + | let bQ = bO._2 | |
401 | + | $Tuple4(bP, bQ, nil, [AttachedPayment(aH, bN)]) | |
407 | 402 | } | |
408 | 403 | else { | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | $Tuple4( | |
404 | + | let bR = bK(bL, aH) | |
405 | + | let bP = bR._1 | |
406 | + | let bQ = bR._2 | |
407 | + | $Tuple4(bP, bQ, [bN, toBase58String(aH)], nil) | |
413 | 408 | } | |
414 | 409 | ||
415 | 410 | ||
416 | - | func | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | if (if (( | |
422 | - | then (parseIntValue( | |
411 | + | func bS (bT) = { | |
412 | + | let bU = valueOrElse(getInteger(V, (toString(bT) + r)), 0) | |
413 | + | let bV = valueOrElse(getInteger(V, (toString(bT) + s)), bU) | |
414 | + | let bW = split(getStringValue(K, q), ",") | |
415 | + | let bX = split(getStringValue(K, p), ",") | |
416 | + | if (if ((bV >= parseIntValue(bW[0]))) | |
417 | + | then (parseIntValue(bW[1]) > bV) | |
423 | 418 | else false) | |
424 | - | then ( | |
425 | - | else if (if (( | |
426 | - | then (parseIntValue( | |
419 | + | then (aw - parseIntValue(bX[0])) | |
420 | + | else if (if ((bV >= parseIntValue(bW[1]))) | |
421 | + | then (parseIntValue(bW[2]) > bV) | |
427 | 422 | else false) | |
428 | - | then ( | |
429 | - | else if (if (( | |
430 | - | then (parseIntValue( | |
423 | + | then (aw - parseIntValue(bX[1])) | |
424 | + | else if (if ((bV >= parseIntValue(bW[2]))) | |
425 | + | then (parseIntValue(bW[3]) > bV) | |
431 | 426 | else false) | |
432 | - | then ( | |
433 | - | else if (if (( | |
434 | - | then (parseIntValue( | |
427 | + | then (aw - parseIntValue(bX[2])) | |
428 | + | else if (if ((bV >= parseIntValue(bW[3]))) | |
429 | + | then (parseIntValue(bW[4]) > bV) | |
435 | 430 | else false) | |
436 | - | then ( | |
437 | - | else if (( | |
438 | - | then ( | |
439 | - | else | |
431 | + | then (aw - parseIntValue(bX[3])) | |
432 | + | else if ((bV >= parseIntValue(bW[4]))) | |
433 | + | then (aw - parseIntValue(bX[4])) | |
434 | + | else aw | |
440 | 435 | } | |
441 | 436 | ||
442 | 437 | ||
443 | - | func cd (aM,ce,cf) = { | |
444 | - | let cg = aM.payments[0].assetId | |
445 | - | let ch = aM.payments[1].assetId | |
446 | - | let ci = fraction(ax, aM.payments[0].amount, ao) | |
447 | - | let cj = fraction(ax, aM.payments[1].amount, ap) | |
448 | - | let ck = bz(cg) | |
449 | - | let cl = ck._1 | |
450 | - | let cm = ck._2 | |
451 | - | let cn = ck._3 | |
452 | - | let co = bz(ch) | |
438 | + | func bY (bZ,ca,cb) = { | |
439 | + | let cc = getIntegerValue(this, z) | |
440 | + | let cd = if (if ((cb == aj)) | |
441 | + | then (bZ > ca) | |
442 | + | else false) | |
443 | + | then fraction(bZ, 1, ca, CEILING) | |
444 | + | else if (if ((cb == ak)) | |
445 | + | then (ca > bZ) | |
446 | + | else false) | |
447 | + | then fraction(ca, 1, bZ, CEILING) | |
448 | + | else 0 | |
449 | + | if ((cd > cc)) | |
450 | + | then { | |
451 | + | let ce = if ((cb == aj)) | |
452 | + | then $Tuple2(ao, al) | |
453 | + | else $Tuple2(al, ao) | |
454 | + | let cf = ce._1 | |
455 | + | let cg = ce._2 | |
456 | + | throw((((("Buying " + cf) + " is temporarily unavailable due to the ") + cg) + " depeg")) | |
457 | + | } | |
458 | + | else true | |
459 | + | } | |
460 | + | ||
461 | + | ||
462 | + | func ch (aL,ci,cj) = { | |
463 | + | let ck = aL.payments[0].assetId | |
464 | + | let cl = aL.payments[1].assetId | |
465 | + | let cm = fraction(ay, aL.payments[0].amount, ap) | |
466 | + | let cn = fraction(ay, aL.payments[1].amount, aq) | |
467 | + | let co = by(ck) | |
453 | 468 | let cp = co._1 | |
454 | 469 | let cq = co._2 | |
455 | 470 | let cr = co._3 | |
456 | - | let cs = if ((cj > ci)) | |
471 | + | let cs = by(cl) | |
472 | + | let ct = cs._1 | |
473 | + | let cu = cs._2 | |
474 | + | let cv = cs._3 | |
475 | + | let cw = if ((cn > cm)) | |
457 | 476 | then { | |
458 | - | let | |
459 | - | $Tuple5( | |
477 | + | let cx = fraction(aq, cm, ay, CEILING) | |
478 | + | $Tuple5(aL.payments[0].amount, cx, (aL.payments[1].amount - cx), cl, cm) | |
460 | 479 | } | |
461 | 480 | else { | |
462 | - | let | |
463 | - | $Tuple5( | |
481 | + | let cx = fraction(ap, cn, ay, CEILING) | |
482 | + | $Tuple5(cx, aL.payments[1].amount, (aL.payments[0].amount - cx), ck, cn) | |
464 | 483 | } | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | if (if ((size( | |
472 | - | then (size( | |
484 | + | let cy = cw._1 | |
485 | + | let cz = cw._2 | |
486 | + | let cA = cw._3 | |
487 | + | let cB = cw._4 | |
488 | + | let cC = cw._5 | |
489 | + | let cD = fraction(cC, as, ay) | |
490 | + | if (if ((size(aL.payments) != 2)) | |
491 | + | then (size(aL.payments) != 3) | |
473 | 492 | else false) | |
474 | 493 | then throw("Two or three payments expected") | |
475 | - | else if (if (( | |
494 | + | else if (if ((ck != aj)) | |
476 | 495 | then true | |
477 | - | else ( | |
478 | - | then | |
479 | - | else if (( | |
496 | + | else (cl != ak)) | |
497 | + | then bH() | |
498 | + | else if ((cD == 0)) | |
480 | 499 | then throw("Too small amount to replenish") | |
481 | - | else if ((0 > | |
500 | + | else if ((0 > cA)) | |
482 | 501 | then throw("Change < 0") | |
483 | - | else if (!( | |
484 | - | then ([ScriptTransfer( | |
502 | + | else if (!(aS)) | |
503 | + | then ([ScriptTransfer(aL.caller, cy, ck), ScriptTransfer(aL.caller, cz, cl)] ++ bJ()) | |
485 | 504 | else { | |
486 | - | let | |
487 | - | then invoke(this, "stakeUnstake", [true, | |
505 | + | let cE = if (contains(aa, cp)) | |
506 | + | then invoke(this, "stakeUnstake", [true, cy, cp], nil) | |
488 | 507 | else 0 | |
489 | - | if (( | |
508 | + | if ((cE == cE)) | |
490 | 509 | then { | |
491 | - | let | |
492 | - | then invoke(this, "stakeUnstake", [true, | |
510 | + | let cF = if (contains(aa, ct)) | |
511 | + | then invoke(this, "stakeUnstake", [true, cz, ct], nil) | |
493 | 512 | else 0 | |
494 | - | if (( | |
513 | + | if ((cF == cF)) | |
495 | 514 | then { | |
496 | - | let | |
497 | - | if ( | |
515 | + | let cG = [IntegerEntry(g, (ap + cy)), IntegerEntry(h, (aq + cz)), IntegerEntry(j, (as + cD)), IntegerEntry(l, aW((ap + cy), (aq + cz))), ScriptTransfer(aL.caller, cA, cB)] | |
516 | + | if (ci) | |
498 | 517 | then { | |
499 | - | let | |
500 | - | then [AttachedPayment(if (( | |
518 | + | let cH = ([AttachedPayment(ar, cD)] ++ (if ((size(aL.payments) == 3)) | |
519 | + | then [AttachedPayment(if ((aL.payments[2].assetId == base58'')) | |
501 | 520 | then unit | |
502 | - | else | |
521 | + | else aL.payments[2].assetId, aL.payments[2].amount)] | |
503 | 522 | else nil)) | |
504 | - | let | |
505 | - | if (( | |
523 | + | let cI = invoke(this, "reissueShare", [cD], nil) | |
524 | + | if ((cI == cI)) | |
506 | 525 | then { | |
507 | - | let | |
508 | - | if (( | |
509 | - | then | |
526 | + | let cJ = invoke(Y, "lockShareTokensFromPool", [aL.caller.bytes, toString(this), cj], cH) | |
527 | + | if ((cJ == cJ)) | |
528 | + | then cG | |
510 | 529 | else throw("Strict value is not equal to itself.") | |
511 | 530 | } | |
512 | 531 | else throw("Strict value is not equal to itself.") | |
513 | 532 | } | |
514 | - | else ( | |
533 | + | else (cG ++ [Reissue(ar, cD, true), ScriptTransfer(aL.caller, cD, ar)]) | |
515 | 534 | } | |
516 | 535 | else throw("Strict value is not equal to itself.") | |
517 | 536 | } | |
520 | 539 | } | |
521 | 540 | ||
522 | 541 | ||
523 | - | func | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
542 | + | func cK (aL,cL,cM,ci,cj) = { | |
543 | + | let cN = $Tuple2(aL.payments[0].amount, aL.payments[0].assetId) | |
544 | + | let cO = cN._1 | |
545 | + | let cb = cN._2 | |
546 | + | let cP = by(cb) | |
547 | + | let cQ = cP._1 | |
548 | + | let cR = cP._2 | |
549 | + | let cS = cP._3 | |
550 | + | let cT = 5000000 | |
551 | + | let cU = 50000000 | |
552 | + | let cV = if ((cU > cO)) | |
534 | 553 | then 100000 | |
535 | 554 | else 1 | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | if (( | |
540 | - | then throw((((("Payment amount " + toString( | |
541 | - | else if (if ((size( | |
542 | - | then (size( | |
555 | + | let cW = (ay - ((ay * cV) / 10000000)) | |
556 | + | let cX = (ay + ((ay * cV) / 10000000)) | |
557 | + | let cY = (ay - ((ay * 1) / 10000000)) | |
558 | + | if ((cT > cO)) | |
559 | + | then throw((((("Payment amount " + toString(cO)) + " does not exceed the minimum amount of ") + toString(cT)) + " tokens")) | |
560 | + | else if (if ((size(aL.payments) != 1)) | |
561 | + | then (size(aL.payments) != 2) | |
543 | 562 | else false) | |
544 | 563 | then throw("One or two payments expected") | |
545 | - | else if (!( | |
546 | - | then ([ScriptTransfer( | |
547 | - | else if (if (( | |
548 | - | then ( | |
564 | + | else if (!(aS)) | |
565 | + | then ([ScriptTransfer(aL.caller, cO, cb)] ++ bJ()) | |
566 | + | else if (if ((cb != aj)) | |
567 | + | then (cb != ak) | |
549 | 568 | else false) | |
550 | - | then | |
569 | + | then bH() | |
551 | 570 | else { | |
552 | - | let cW = if ((cL == ai)) | |
553 | - | then $Tuple6((cK - cH), cI, (ao + cH), (ap - cI), (ao + cK), ap) | |
554 | - | else $Tuple6(cI, (cK - cH), (ao - cI), (ap + cH), ao, (ap + cK)) | |
555 | - | let cX = cW._1 | |
556 | - | let cY = cW._2 | |
557 | - | let cZ = cW._3 | |
558 | - | let da = cW._4 | |
559 | - | let db = cW._5 | |
560 | - | let dc = cW._6 | |
561 | - | let dd = aX(cZ, da) | |
562 | - | let de = (fraction(ay, cZ, da) / fraction(ax, cX, cY)) | |
563 | - | let df = fraction((db + dc), aA, (2 * aB)) | |
564 | - | if (if ((cV >= fraction(ax, as, dd))) | |
571 | + | let cZ = if ((cb == aj)) | |
572 | + | then $Tuple6((cO - cL), cM, (ap + cL), (aq - cM), (ap + cO), aq) | |
573 | + | else $Tuple6(cM, (cO - cL), (ap - cM), (aq + cL), ap, (aq + cO)) | |
574 | + | let da = cZ._1 | |
575 | + | let db = cZ._2 | |
576 | + | let dc = cZ._3 | |
577 | + | let dd = cZ._4 | |
578 | + | let bZ = cZ._5 | |
579 | + | let ca = cZ._6 | |
580 | + | let de = aW(dc, dd) | |
581 | + | let df = (fraction(az, dc, dd) / fraction(ay, da, db)) | |
582 | + | if (if ((cY >= fraction(ay, at, de))) | |
565 | 583 | then true | |
566 | - | else ( | |
584 | + | else (at > de)) | |
567 | 585 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
568 | - | else if (if (( | |
586 | + | else if (if ((cW > df)) | |
569 | 587 | then true | |
570 | - | else ( | |
588 | + | else (df > cX)) | |
571 | 589 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
572 | - | else if (if ((df > db)) | |
573 | - | then true | |
574 | - | else (df > dc)) | |
575 | - | then bK(df, db, dc) | |
590 | + | else if (!(bY(bZ, ca, cb))) | |
591 | + | then throw() | |
576 | 592 | else { | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let dg = fraction( | |
581 | - | let dh = fraction( | |
582 | - | let di = fraction(dh, | |
583 | - | let dj = fraction(dh, | |
584 | - | let dk = if (( | |
585 | - | then $Tuple3(( | |
586 | - | else $Tuple3(( | |
593 | + | let cm = fraction(da, ay, dc) | |
594 | + | let cn = fraction(db, ay, dd) | |
595 | + | let cD = fraction(min([cm, cn]), as, ay) | |
596 | + | let dg = fraction(cD, (aw - (au / 2)), aw) | |
597 | + | let dh = fraction(cD, (av / 2), aw) | |
598 | + | let di = fraction(dh, ap, as) | |
599 | + | let dj = fraction(dh, aq, as) | |
600 | + | let dk = if ((cQ == ah)) | |
601 | + | then $Tuple3((cO - di), dj, ai) | |
602 | + | else $Tuple3((cO - dj), di, ah) | |
587 | 603 | let dl = dk._1 | |
588 | 604 | let dm = dk._2 | |
589 | 605 | let dn = dk._3 | |
590 | - | let | |
591 | - | then invoke(this, "stakeUnstake", [true, dl, | |
606 | + | let cE = if (contains(aa, cQ)) | |
607 | + | then invoke(this, "stakeUnstake", [true, dl, cQ], nil) | |
592 | 608 | else 0 | |
593 | - | if (( | |
609 | + | if ((cE == cE)) | |
594 | 610 | then { | |
595 | - | let | |
611 | + | let cF = if (contains(aa, dn)) | |
596 | 612 | then invoke(this, "stakeUnstake", [false, dm, dn], nil) | |
597 | 613 | else 0 | |
598 | - | if (( | |
614 | + | if ((cF == cF)) | |
599 | 615 | then { | |
600 | - | let | |
601 | - | if ( | |
616 | + | let cG = [IntegerEntry(g, (bZ - di)), IntegerEntry(h, (ca - dj)), IntegerEntry(j, (as + dg)), IntegerEntry(l, aW((bZ - di), (ca - dj))), ScriptTransfer(U, di, aj), ScriptTransfer(U, dj, ak)] | |
617 | + | if (ci) | |
602 | 618 | then { | |
603 | - | let | |
604 | - | then [AttachedPayment(if (( | |
619 | + | let cH = ([AttachedPayment(ar, dg)] ++ (if ((size(aL.payments) == 2)) | |
620 | + | then [AttachedPayment(if ((aL.payments[1].assetId == base58'')) | |
605 | 621 | then unit | |
606 | - | else | |
622 | + | else aL.payments[1].assetId, aL.payments[1].amount)] | |
607 | 623 | else nil)) | |
608 | - | let | |
609 | - | if (( | |
624 | + | let cI = invoke(this, "reissueShare", [dg], nil) | |
625 | + | if ((cI == cI)) | |
610 | 626 | then { | |
611 | - | let | |
612 | - | if (( | |
613 | - | then | |
627 | + | let cJ = invoke(Y, "lockShareTokensFromPool", [aL.caller.bytes, toString(this), cj], cH) | |
628 | + | if ((cJ == cJ)) | |
629 | + | then cG | |
614 | 630 | else throw("Strict value is not equal to itself.") | |
615 | 631 | } | |
616 | 632 | else throw("Strict value is not equal to itself.") | |
617 | 633 | } | |
618 | - | else ( | |
634 | + | else (cG ++ [Reissue(ar, dg, true), ScriptTransfer(aL.caller, dg, ar)]) | |
619 | 635 | } | |
620 | 636 | else throw("Strict value is not equal to itself.") | |
621 | 637 | } | |
625 | 641 | } | |
626 | 642 | ||
627 | 643 | ||
628 | - | func do ( | |
629 | - | let dq = if ((size( | |
630 | - | then if (( | |
631 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
632 | - | else $Tuple2( | |
633 | - | else $Tuple2(0, | |
634 | - | let | |
635 | - | let | |
636 | - | if (!( | |
637 | - | then ([ScriptTransfer( | |
644 | + | func do (aL,dp) = { | |
645 | + | let dq = if ((size(aL.payments) == 1)) | |
646 | + | then if ((aL.payments[0].assetId != ar)) | |
647 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(ar))) | |
648 | + | else $Tuple2(aL.payments[0].amount, aL.payments[0].assetId) | |
649 | + | else $Tuple2(0, ar) | |
650 | + | let cO = dq._1 | |
651 | + | let cb = dq._2 | |
652 | + | if (!(aS)) | |
653 | + | then ([ScriptTransfer(aL.caller, cO, cb)] ++ bJ()) | |
638 | 654 | else { | |
639 | 655 | let dr = if ((dp > 0)) | |
640 | - | then invoke( | |
656 | + | then invoke(Y, "withdrawShareTokensFromPool", [aL.caller.bytes, toString(this), dp], nil) | |
641 | 657 | else 0 | |
642 | 658 | if ((dr == dr)) | |
643 | 659 | then { | |
644 | - | let ds = ( | |
645 | - | let dt = fraction(ds, | |
646 | - | let du = fraction(ds, | |
647 | - | let dv = | |
648 | - | let | |
649 | - | then invoke(this, "stakeUnstake", [false, dt, | |
660 | + | let ds = (cO + dp) | |
661 | + | let dt = fraction(ds, ap, as) | |
662 | + | let du = fraction(ds, aq, as) | |
663 | + | let dv = aW((ap - dt), (aq - du)) | |
664 | + | let cE = if (contains(aa, ah)) | |
665 | + | then invoke(this, "stakeUnstake", [false, dt, ah], nil) | |
650 | 666 | else 0 | |
651 | - | if (( | |
667 | + | if ((cE == cE)) | |
652 | 668 | then { | |
653 | - | let | |
654 | - | then invoke(this, "stakeUnstake", [false, du, | |
669 | + | let cF = if (contains(aa, ai)) | |
670 | + | then invoke(this, "stakeUnstake", [false, du, ai], nil) | |
655 | 671 | else 0 | |
656 | - | if (( | |
657 | - | then [IntegerEntry(g, ( | |
672 | + | if ((cF == cF)) | |
673 | + | then [IntegerEntry(g, (ap - dt)), IntegerEntry(h, (aq - du)), IntegerEntry(j, (as - ds)), IntegerEntry(l, dv), Burn(ar, ds), ScriptTransfer(aL.caller, dt, aj), ScriptTransfer(aL.caller, du, ak)] | |
658 | 674 | else throw("Strict value is not equal to itself.") | |
659 | 675 | } | |
660 | 676 | else throw("Strict value is not equal to itself.") | |
664 | 680 | } | |
665 | 681 | ||
666 | 682 | ||
667 | - | @Callable( | |
683 | + | @Callable(aL) | |
668 | 684 | func init (dw) = { | |
669 | - | let dx = $Tuple2( | |
670 | - | let | |
671 | - | let | |
672 | - | let dy = $Tuple2( | |
673 | - | let | |
674 | - | let | |
675 | - | let dz = | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let dA = | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
685 | + | let dx = $Tuple2(aL.payments[0].amount, aL.payments[0].assetId) | |
686 | + | let cy = dx._1 | |
687 | + | let ck = dx._2 | |
688 | + | let dy = $Tuple2(aL.payments[1].amount, aL.payments[1].assetId) | |
689 | + | let cz = dy._1 | |
690 | + | let cl = dy._2 | |
691 | + | let dz = by(ck) | |
692 | + | let cp = dz._1 | |
693 | + | let cq = dz._2 | |
694 | + | let cr = dz._3 | |
695 | + | let dA = by(cl) | |
696 | + | let ct = dA._1 | |
697 | + | let cu = dA._2 | |
698 | + | let cv = dA._3 | |
683 | 699 | if (isDefined(getBoolean(this, c))) | |
684 | - | then | |
685 | - | else if (( | |
700 | + | then bD() | |
701 | + | else if ((ck == cl)) | |
686 | 702 | then throw("Assets must be different") | |
687 | 703 | else { | |
688 | - | let dB = ((("s" + take( | |
689 | - | let dC = ((((("ShareToken of SwopFi protocol for " + | |
690 | - | let dD = (( | |
691 | - | let dE = fraction(pow( | |
704 | + | let dB = ((("s" + take(cq, 7)) + "_") + take(cu, 7)) | |
705 | + | let dC = ((((("ShareToken of SwopFi protocol for " + cq) + " and ") + cu) + " at address ") + toString(this)) | |
706 | + | let dD = ((cr + cv) / 2) | |
707 | + | let dE = fraction(pow(cy, cr, 5, 1, cr, DOWN), pow(cz, cv, 5, 1, cv, DOWN), pow(10, 0, dD, 0, 0, DOWN)) | |
692 | 708 | let dF = Issue(dB, dC, dE, dD, true) | |
693 | 709 | let dG = calculateAssetId(dF) | |
694 | - | let dv = | |
695 | - | let | |
696 | - | then invoke(this, "stakeUnstake", [true, | |
710 | + | let dv = aW(cy, cz) | |
711 | + | let cE = if (contains(aa, cp)) | |
712 | + | then invoke(this, "stakeUnstake", [true, cy, cp], nil) | |
697 | 713 | else 0 | |
698 | - | if (( | |
714 | + | if ((cE == cE)) | |
699 | 715 | then { | |
700 | - | let | |
701 | - | then invoke(this, "stakeUnstake", [true, | |
716 | + | let cF = if (contains(aa, ct)) | |
717 | + | then invoke(this, "stakeUnstake", [true, cz, ct], nil) | |
702 | 718 | else 0 | |
703 | - | if (( | |
719 | + | if ((cF == cF)) | |
704 | 720 | then { | |
705 | - | let dH = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, | |
721 | + | let dH = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, cp), StringEntry(f, ct), IntegerEntry(g, cy), IntegerEntry(h, cz), IntegerEntry(l, dv), IntegerEntry(k, getIntegerValue(K, "base_fee_flat")), IntegerEntry(z, 3), dF, StringEntry(i, toBase58String(dG)), IntegerEntry(j, dE), ScriptTransfer(aL.caller, dE, dG)] | |
706 | 722 | if (dw) | |
707 | - | then (dH ++ [BooleanEntry(t, dw), IntegerEntry(u, ( | |
723 | + | then (dH ++ [BooleanEntry(t, dw), IntegerEntry(u, (ac + (ae * ad)))]) | |
708 | 724 | else dH | |
709 | 725 | } | |
710 | 726 | else throw("Strict value is not equal to itself.") | |
715 | 731 | ||
716 | 732 | ||
717 | 733 | ||
718 | - | @Callable( | |
719 | - | func replenishWithTwoTokensV2 ( | |
734 | + | @Callable(aL) | |
735 | + | func replenishWithTwoTokensV2 (ci,cj) = valueOrElse(bE(), ch(aL, ci, cj)) | |
720 | 736 | ||
721 | 737 | ||
722 | 738 | ||
723 | - | @Callable( | |
724 | - | func replenishWithOneTokenV2 ( | |
739 | + | @Callable(aL) | |
740 | + | func replenishWithOneTokenV2 (cL,cM,ci,cj) = valueOrElse(bE(), cK(aL, cL, cM, ci, cj)) | |
725 | 741 | ||
726 | 742 | ||
727 | 743 | ||
728 | - | @Callable( | |
729 | - | func withdrawV2 (dp) = valueOrElse( | |
744 | + | @Callable(aL) | |
745 | + | func withdrawV2 (dp) = valueOrElse(bE(), do(aL, dp)) | |
730 | 746 | ||
731 | 747 | ||
732 | 748 | ||
733 | - | @Callable( | |
734 | - | func withdrawOneToken (dp,dI,dJ,dK) = valueOrElse( | |
735 | - | let dL = if ((size( | |
736 | - | then if (( | |
737 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
738 | - | else $Tuple2( | |
739 | - | else $Tuple2(0, | |
740 | - | let | |
741 | - | let | |
742 | - | let ds = ( | |
743 | - | if (if ((dI != | |
744 | - | then (dI != | |
749 | + | @Callable(aL) | |
750 | + | func withdrawOneToken (dp,dI,dJ,dK) = valueOrElse(bE(), { | |
751 | + | let dL = if ((size(aL.payments) == 1)) | |
752 | + | then if ((aL.payments[0].assetId != ar)) | |
753 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(ar))) | |
754 | + | else $Tuple2(aL.payments[0].amount, aL.payments[0].assetId) | |
755 | + | else $Tuple2(0, ar) | |
756 | + | let cO = dL._1 | |
757 | + | let cb = dL._2 | |
758 | + | let ds = (cO + dp) | |
759 | + | if (if ((dI != ah)) | |
760 | + | then (dI != ai) | |
745 | 761 | else false) | |
746 | 762 | then throw("Incorrect withdraw asset") | |
747 | 763 | else if ((0 >= ds)) | |
748 | 764 | then throw("withdraw amount must be grater than 0") | |
749 | - | else if (!( | |
750 | - | then ([ScriptTransfer( | |
765 | + | else if (!(aS)) | |
766 | + | then ([ScriptTransfer(aL.caller, cO, cb)] ++ bJ()) | |
751 | 767 | else { | |
752 | 768 | let dr = if ((dp > 0)) | |
753 | - | then invoke( | |
769 | + | then invoke(Y, "withdrawShareTokensFromPool", [aL.caller.bytes, toString(this), dp], nil) | |
754 | 770 | else 0 | |
755 | 771 | if ((dr == dr)) | |
756 | 772 | then { | |
757 | - | let dt = fraction(ds, | |
758 | - | let du = fraction(ds, | |
759 | - | let dM = ( | |
760 | - | let dN = ( | |
761 | - | let dO = | |
762 | - | let dP = if ((dI == | |
763 | - | then | |
764 | - | else | |
765 | - | let dQ = fraction(dP, fraction( | |
766 | - | let dR = fraction(dP, ( | |
767 | - | let dS = if ((dI == | |
768 | - | then $ | |
769 | - | else $ | |
773 | + | let dt = fraction(ds, ap, as) | |
774 | + | let du = fraction(ds, aq, as) | |
775 | + | let dM = (ap - dt) | |
776 | + | let dN = (aq - du) | |
777 | + | let dO = bS(aL.originCaller) | |
778 | + | let dP = if ((dI == ah)) | |
779 | + | then aY(dJ, dK, du, ak, dM, dN, aW(dM, dN)) | |
780 | + | else aY(dJ, dK, dt, aj, dM, dN, aW(dM, dN)) | |
781 | + | let dQ = fraction(dP, fraction(av, dO, aw, CEILING), aw) | |
782 | + | let dR = fraction(dP, (aw - fraction(au, dO, aw, CEILING)), aw) | |
783 | + | let dS = if ((dI == ah)) | |
784 | + | then $Tuple4((dt + dR), (((ap - dt) - dR) - dQ), aq, ak) | |
785 | + | else $Tuple4((du + dR), ap, (((aq - du) - dR) - dQ), aj) | |
770 | 786 | let dT = dS._1 | |
771 | 787 | let dU = dS._2 | |
772 | 788 | let dV = dS._3 | |
773 | - | let dv = aX(dU, dV) | |
774 | - | let cA = if (contains(Z, dI)) | |
775 | - | then invoke(this, "stakeUnstake", [false, (dT + dQ), dI], nil) | |
776 | - | else 0 | |
777 | - | if ((cA == cA)) | |
778 | - | then [IntegerEntry(g, dU), IntegerEntry(h, dV), IntegerEntry(j, (ar - ds)), IntegerEntry(l, dv), Burn(aq, ds), ScriptTransfer(aM.caller, dT, fromBase58String(dI)), ScriptTransfer(T, dQ, fromBase58String(dI))] | |
779 | - | else throw("Strict value is not equal to itself.") | |
789 | + | let dW = dS._4 | |
790 | + | if (!(bY(dU, dV, dW))) | |
791 | + | then throw() | |
792 | + | else { | |
793 | + | let dv = aW(dU, dV) | |
794 | + | let cE = if (contains(aa, dI)) | |
795 | + | then invoke(this, "stakeUnstake", [false, (dT + dQ), dI], nil) | |
796 | + | else 0 | |
797 | + | if ((cE == cE)) | |
798 | + | then [IntegerEntry(g, dU), IntegerEntry(h, dV), IntegerEntry(j, (as - ds)), IntegerEntry(l, dv), Burn(ar, ds), ScriptTransfer(aL.caller, dT, fromBase58String(dI)), ScriptTransfer(U, dQ, fromBase58String(dI))] | |
799 | + | else throw("Strict value is not equal to itself.") | |
800 | + | } | |
780 | 801 | } | |
781 | 802 | else throw("Strict value is not equal to itself.") | |
782 | 803 | } | |
784 | 805 | ||
785 | 806 | ||
786 | 807 | ||
787 | - | @Callable( | |
788 | - | func exchange (dJ,dK) = valueOrElse( | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
808 | + | @Callable(aL) | |
809 | + | func exchange (dJ,dK) = valueOrElse(bE(), { | |
810 | + | let dX = $Tuple2(aL.payments[0].amount, aL.payments[0].assetId) | |
811 | + | let cO = dX._1 | |
812 | + | let cb = dX._2 | |
792 | 813 | if ((0 >= dJ)) | |
793 | 814 | then throw(("Estimated amount must be positive. Actual: " + toString(dJ))) | |
794 | 815 | else if ((dK > dJ)) | |
795 | 816 | then throw("Minimal amount can't be greater than estimated.") | |
796 | - | else if ((size( | |
797 | - | then | |
798 | - | else if (!( | |
799 | - | then ([ScriptTransfer( | |
800 | - | else if (if (( | |
801 | - | then ( | |
817 | + | else if ((size(aL.payments) != 1)) | |
818 | + | then bI() | |
819 | + | else if (!(aS)) | |
820 | + | then ([ScriptTransfer(aL.caller, cO, cb)] ++ bJ()) | |
821 | + | else if (if ((cb != aj)) | |
822 | + | then (cb != ak) | |
802 | 823 | else false) | |
803 | - | then | |
804 | - | else if ((10000000 > | |
824 | + | then bH() | |
825 | + | else if ((10000000 > cO)) | |
805 | 826 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
806 | - | else if (if (( | |
827 | + | else if (if ((aB > fraction(ay, dK, cO))) | |
807 | 828 | then true | |
808 | - | else (fraction( | |
829 | + | else (fraction(ay, dJ, cO) > aC)) | |
809 | 830 | then throw("Incorrect args and pmt ratio") | |
810 | 831 | else { | |
811 | - | let dX = if ((cL == ai)) | |
812 | - | then aj | |
813 | - | else ai | |
814 | - | let bS = aZ(dJ, dK, cK, cL, ao, ap, as) | |
815 | - | let dO = bX(aM.originCaller) | |
816 | - | let dY = fraction(bS, fraction(au, dO, av, CEILING), av) | |
817 | - | let dZ = fraction(bS, (av - fraction(at, dO, av, CEILING)), av) | |
818 | - | let ea = if ((cL == ai)) | |
819 | - | then $Tuple2((ao + cK), ((ap - dZ) - dY)) | |
820 | - | else $Tuple2(((ao - dZ) - dY), (ap + cK)) | |
821 | - | let db = ea._1 | |
822 | - | let dc = ea._2 | |
823 | - | let df = fraction((db + dc), aA, (2 * aB)) | |
824 | - | if (if ((df > db)) | |
825 | - | then true | |
826 | - | else (df > dc)) | |
827 | - | then bK(df, db, dc) | |
832 | + | let dY = if ((cb == aj)) | |
833 | + | then ak | |
834 | + | else aj | |
835 | + | let bN = aY(dJ, dK, cO, cb, ap, aq, at) | |
836 | + | let dO = bS(aL.originCaller) | |
837 | + | let dZ = fraction(bN, fraction(av, dO, aw, CEILING), aw) | |
838 | + | let ea = fraction(bN, (aw - fraction(au, dO, aw, CEILING)), aw) | |
839 | + | let eb = if ((cb == aj)) | |
840 | + | then $Tuple2((ap + cO), ((aq - ea) - dZ)) | |
841 | + | else $Tuple2(((ap - ea) - dZ), (aq + cO)) | |
842 | + | let bZ = eb._1 | |
843 | + | let ca = eb._2 | |
844 | + | if (!(bY(bZ, ca, cb))) | |
845 | + | then throw() | |
828 | 846 | else { | |
829 | - | let | |
830 | - | let | |
831 | - | let | |
832 | - | let | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
838 | - | then invoke(this, "stakeUnstake", [true, | |
847 | + | let ec = by(cb) | |
848 | + | let cQ = ec._1 | |
849 | + | let cR = ec._2 | |
850 | + | let cS = ec._3 | |
851 | + | let ed = by(dY) | |
852 | + | let ee = ed._1 | |
853 | + | let ef = ed._2 | |
854 | + | let eg = ed._3 | |
855 | + | let cE = if (contains(aa, cQ)) | |
856 | + | then invoke(this, "stakeUnstake", [true, cO, cQ], nil) | |
839 | 857 | else 0 | |
840 | - | if (( | |
858 | + | if ((cE == cE)) | |
841 | 859 | then { | |
842 | - | let | |
843 | - | then invoke(this, "stakeUnstake", [false, ( | |
860 | + | let cF = if (contains(aa, ee)) | |
861 | + | then invoke(this, "stakeUnstake", [false, (ea + dZ), ee], nil) | |
844 | 862 | else 0 | |
845 | - | if (( | |
846 | - | then $Tuple2([IntegerEntry(g, | |
863 | + | if ((cF == cF)) | |
864 | + | then $Tuple2([IntegerEntry(g, bZ), IntegerEntry(h, ca), IntegerEntry(l, aW(bZ, ca)), ScriptTransfer(aL.caller, ea, dY), ScriptTransfer(U, dZ, dY)], [ea, dY]) | |
847 | 865 | else throw("Strict value is not equal to itself.") | |
848 | 866 | } | |
849 | 867 | else throw("Strict value is not equal to itself.") | |
853 | 871 | ||
854 | 872 | ||
855 | 873 | ||
856 | - | @Callable( | |
857 | - | func reissueShare ( | |
874 | + | @Callable(eh) | |
875 | + | func reissueShare (bN) = valueOrElse(bG(eh), [Reissue(ar, bN, true)]) | |
858 | 876 | ||
859 | 877 | ||
860 | 878 | ||
861 | - | @Callable( | |
862 | - | func shutdown () = valueOrElse( | |
879 | + | @Callable(aL) | |
880 | + | func shutdown () = valueOrElse(bF(aL), if (!(af)) | |
863 | 881 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, m), "the cause wasn't specified"))) | |
864 | - | else | |
882 | + | else bB("Paused by admin")) | |
865 | 883 | ||
866 | 884 | ||
867 | 885 | ||
868 | - | @Callable( | |
869 | - | func activate () = valueOrElse( | |
870 | - | then | |
886 | + | @Callable(aL) | |
887 | + | func activate () = valueOrElse(bF(aL), if (af) | |
888 | + | then bD() | |
871 | 889 | else [BooleanEntry(c, true), DeleteEntry(m)]) | |
872 | 890 | ||
873 | 891 | ||
874 | 892 | ||
875 | - | @Callable(aM) | |
876 | - | func takeIntoAccountExtraFunds () = valueOrElse(bF(), { | |
877 | - | let eh = (aR - ao) | |
878 | - | let ei = (aS - ap) | |
879 | - | let dd = aX((ao + eh), (ap + ei)) | |
880 | - | if ((aM.caller != T)) | |
881 | - | then throw("Only the money box can call this function") | |
882 | - | else if (if ((0 > eh)) | |
883 | - | then true | |
884 | - | else (0 > ei)) | |
885 | - | then bC("Enroll amount negative") | |
886 | - | else if (if ((eh == 0)) | |
887 | - | then (ei == 0) | |
888 | - | else false) | |
889 | - | then throw("No money to take") | |
890 | - | else { | |
891 | - | let cA = if (if (contains(Z, ag)) | |
892 | - | then (eh > 0) | |
893 | + | @Callable(aL) | |
894 | + | func takeIntoAccountExtraFunds () = valueOrElse(bE(), { | |
895 | + | let ei = if (if ((aj == Z)) | |
896 | + | then true | |
897 | + | else (ak == Z)) | |
898 | + | then invoke(W, "claimRewards", nil, nil) | |
899 | + | else 0 | |
900 | + | if ((ei == ei)) | |
901 | + | then { | |
902 | + | let ej = (aQ - ap) | |
903 | + | let ek = (aR - aq) | |
904 | + | let de = aW((ap + ej), (aq + ek)) | |
905 | + | if ((aL.caller != U)) | |
906 | + | then throw("Only the money box can call this function") | |
907 | + | else if (if ((0 > ej)) | |
908 | + | then true | |
909 | + | else (0 > ek)) | |
910 | + | then bB("Enroll amount negative") | |
911 | + | else if (if ((ej == 0)) | |
912 | + | then (ek == 0) | |
893 | 913 | else false) | |
894 | - | then invoke(this, "stakeUnstake", [true, eh, ag], nil) | |
895 | - | else 0 | |
896 | - | if ((cA == cA)) | |
897 | - | then { | |
898 | - | let cB = if (if (contains(Z, ah)) | |
899 | - | then (ei > 0) | |
914 | + | then throw("No money to take") | |
915 | + | else { | |
916 | + | let cE = if (if (contains(aa, ah)) | |
917 | + | then (ej > 0) | |
900 | 918 | else false) | |
901 | - | then invoke(this, "stakeUnstake", [true, | |
919 | + | then invoke(this, "stakeUnstake", [true, ej, ah], nil) | |
902 | 920 | else 0 | |
903 | - | if ((cB == cB)) | |
904 | - | then [IntegerEntry(l, dd), IntegerEntry(g, (ao + eh)), IntegerEntry(h, (ap + ei))] | |
921 | + | if ((cE == cE)) | |
922 | + | then { | |
923 | + | let cF = if (if (contains(aa, ai)) | |
924 | + | then (ek > 0) | |
925 | + | else false) | |
926 | + | then invoke(this, "stakeUnstake", [true, ek, ai], nil) | |
927 | + | else 0 | |
928 | + | if ((cF == cF)) | |
929 | + | then [IntegerEntry(l, de), IntegerEntry(g, (ap + ej)), IntegerEntry(h, (aq + ek))] | |
930 | + | else throw("Strict value is not equal to itself.") | |
931 | + | } | |
905 | 932 | else throw("Strict value is not equal to itself.") | |
906 | 933 | } | |
907 | - | | |
908 | - | | |
934 | + | } | |
935 | + | else throw("Strict value is not equal to itself.") | |
909 | 936 | }) | |
910 | 937 | ||
911 | 938 | ||
912 | 939 | ||
913 | - | @Callable( | |
914 | - | func keepLimitForFirstHarvest ( | |
940 | + | @Callable(aL) | |
941 | + | func keepLimitForFirstHarvest (el) = valueOrElse(bE(), valueOrElse(bF(aL), [IntegerEntry(v, el)])) | |
915 | 942 | ||
916 | 943 | ||
917 | 944 | ||
918 | - | @Callable( | |
919 | - | func stakeUnstake ( | |
945 | + | @Callable(aL) | |
946 | + | func stakeUnstake (bL,bN,em) = if ((aL.caller != this)) | |
920 | 947 | then throw("Only contract itself can invoke this function") | |
921 | 948 | else { | |
922 | - | let | |
923 | - | let | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | let | |
928 | - | if (( | |
949 | + | let en = bM(bL, bN, fromBase58String(em)) | |
950 | + | let bP = en._1 | |
951 | + | let eo = en._2 | |
952 | + | let ep = en._3 | |
953 | + | let eq = en._4 | |
954 | + | let er = invoke(eo, bP, ep, eq) | |
955 | + | if ((er == er)) | |
929 | 956 | then nil | |
930 | 957 | else throw("Strict value is not equal to itself.") | |
931 | 958 | } | |
932 | 959 | ||
933 | 960 | ||
934 | 961 | ||
935 | - | @Callable( | |
936 | - | func replenishWithTwoTokens () = valueOrElse( | |
962 | + | @Callable(aL) | |
963 | + | func replenishWithTwoTokens () = valueOrElse(bE(), ch(aL, false, 0)) | |
937 | 964 | ||
938 | 965 | ||
939 | 966 | ||
940 | - | @Callable( | |
941 | - | func replenishWithOneToken ( | |
967 | + | @Callable(aL) | |
968 | + | func replenishWithOneToken (cL,cM) = valueOrElse(bE(), cK(aL, cL, cM, false, 0)) | |
942 | 969 | ||
943 | 970 | ||
944 | 971 | ||
945 | - | @Callable( | |
946 | - | func withdraw () = valueOrElse( | |
972 | + | @Callable(aL) | |
973 | + | func withdraw () = valueOrElse(bE(), do(aL, 0)) | |
947 | 974 | ||
948 | 975 | ||
949 | - | @Verifier( | |
950 | - | func | |
951 | - | let | |
952 | - | let | |
976 | + | @Verifier(es) | |
977 | + | func et () = { | |
978 | + | let eu = { | |
979 | + | let ev = if (sigVerify(es.bodyBytes, es.proofs[0], Q)) | |
953 | 980 | then 1 | |
954 | 981 | else 0 | |
955 | - | let | |
982 | + | let ew = if (sigVerify(es.bodyBytes, es.proofs[1], R)) | |
956 | 983 | then 1 | |
957 | 984 | else 0 | |
958 | - | let | |
985 | + | let ex = if (sigVerify(es.bodyBytes, es.proofs[2], S)) | |
959 | 986 | then 1 | |
960 | 987 | else 0 | |
961 | - | ((( | |
988 | + | (((ev + ew) + ex) >= 2) | |
962 | 989 | } | |
963 | - | let | |
964 | - | if ($isInstanceOf( | |
990 | + | let N = es | |
991 | + | if ($isInstanceOf(N, "InvokeScriptTransaction")) | |
965 | 992 | then { | |
966 | - | let | |
967 | - | let | |
968 | - | then ( | |
993 | + | let er = N | |
994 | + | let ey = if ((er.dApp == this)) | |
995 | + | then (er.function == "takeIntoAccountExtraFunds") | |
969 | 996 | else false | |
970 | - | let | |
997 | + | let ez = if (if (if (sigVerify(es.bodyBytes, es.proofs[0], Q)) | |
971 | 998 | then true | |
972 | - | else sigVerify( | |
999 | + | else sigVerify(es.bodyBytes, es.proofs[0], R)) | |
973 | 1000 | then true | |
974 | - | else sigVerify( | |
1001 | + | else sigVerify(es.bodyBytes, es.proofs[0], S)) | |
975 | 1002 | then true | |
976 | - | else sigVerify( | |
977 | - | if (if ( | |
978 | - | then | |
1003 | + | else sigVerify(es.bodyBytes, es.proofs[0], T) | |
1004 | + | if (if (ey) | |
1005 | + | then ez | |
979 | 1006 | else false) | |
980 | 1007 | then true | |
981 | - | else | |
1008 | + | else eu | |
982 | 1009 | } | |
983 | - | else | |
1010 | + | else eu | |
984 | 1011 | } | |
985 | 1012 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "2.0.0" | |
5 | 5 | ||
6 | 6 | let b = "version" | |
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | 10 | let d = "active_all_contracts" | |
11 | 11 | ||
12 | 12 | let e = "A_asset_id" | |
13 | 13 | ||
14 | 14 | let f = "B_asset_id" | |
15 | 15 | ||
16 | 16 | let g = "A_asset_balance" | |
17 | 17 | ||
18 | 18 | let h = "B_asset_balance" | |
19 | 19 | ||
20 | 20 | let i = "share_asset_id" | |
21 | 21 | ||
22 | 22 | let j = "share_asset_supply" | |
23 | 23 | ||
24 | 24 | let k = "commission" | |
25 | 25 | ||
26 | 26 | let l = "invariant" | |
27 | 27 | ||
28 | 28 | let m = "shutdown_cause" | |
29 | 29 | ||
30 | 30 | let n = "staking_usdnnsbt_address" | |
31 | 31 | ||
32 | 32 | let o = "staking_eurn_address" | |
33 | 33 | ||
34 | 34 | let p = "discounts" | |
35 | 35 | ||
36 | 36 | let q = "discount_values" | |
37 | 37 | ||
38 | 38 | let r = "_SWOP_amount" | |
39 | 39 | ||
40 | 40 | let s = "_GSwop_amount" | |
41 | 41 | ||
42 | 42 | let t = "first_harvest" | |
43 | 43 | ||
44 | 44 | let u = "first_harvest_height" | |
45 | 45 | ||
46 | 46 | let v = "share_limit_on_first_harvest" | |
47 | 47 | ||
48 | 48 | let w = "base_period" | |
49 | 49 | ||
50 | 50 | let x = "period_length" | |
51 | 51 | ||
52 | 52 | let y = "start_height" | |
53 | 53 | ||
54 | - | let z = " | |
54 | + | let z = "dApp_threshold" | |
55 | 55 | ||
56 | - | let A = "admin_pub_ | |
56 | + | let A = "admin_pub_1" | |
57 | 57 | ||
58 | - | let B = "admin_pub_ | |
58 | + | let B = "admin_pub_2" | |
59 | 59 | ||
60 | - | let C = "admin_ | |
60 | + | let C = "admin_pub_3" | |
61 | 61 | ||
62 | - | let D = " | |
62 | + | let D = "admin_invoke_pub" | |
63 | 63 | ||
64 | - | let E = " | |
64 | + | let E = "money_box_address" | |
65 | 65 | ||
66 | - | let F = " | |
66 | + | let F = "governance_address" | |
67 | 67 | ||
68 | - | let G = " | |
68 | + | let G = "farming_address" | |
69 | 69 | ||
70 | - | let H = " | |
70 | + | let H = "voting_address" | |
71 | 71 | ||
72 | - | let I = " | |
72 | + | let I = "usdn_asset_id" | |
73 | 73 | ||
74 | - | let J = | |
74 | + | let J = "staking_assets" | |
75 | 75 | ||
76 | - | func K (L) = { | |
77 | - | let M = getString(J, L) | |
78 | - | if ($isInstanceOf(M, "String")) | |
76 | + | let K = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
77 | + | ||
78 | + | func L (M) = { | |
79 | + | let N = getString(K, M) | |
80 | + | if ($isInstanceOf(N, "String")) | |
79 | 81 | then { | |
80 | - | let | |
81 | - | fromBase58String( | |
82 | + | let O = N | |
83 | + | fromBase58String(O) | |
82 | 84 | } | |
83 | 85 | else { | |
84 | - | let | |
85 | - | throw(( | |
86 | + | let P = N | |
87 | + | throw((M + "is empty")) | |
86 | 88 | } | |
87 | 89 | } | |
88 | 90 | ||
89 | 91 | ||
90 | - | let | |
92 | + | let Q = L(A) | |
91 | 93 | ||
92 | - | let | |
94 | + | let R = L(B) | |
93 | 95 | ||
94 | - | let | |
96 | + | let S = L(C) | |
95 | 97 | ||
96 | - | let | |
98 | + | let T = L(D) | |
97 | 99 | ||
98 | - | let | |
100 | + | let U = Address(L(E)) | |
99 | 101 | ||
100 | - | let | |
102 | + | let V = Address(L(F)) | |
101 | 103 | ||
102 | - | let | |
104 | + | let W = Address(L(n)) | |
103 | 105 | ||
104 | - | let | |
106 | + | let X = Address(L(H)) | |
105 | 107 | ||
106 | - | let | |
108 | + | let Y = Address(L(G)) | |
107 | 109 | ||
108 | - | let | |
110 | + | let Z = L(I) | |
109 | 111 | ||
110 | - | let | |
112 | + | let aa = getStringValue(K, J) | |
111 | 113 | ||
112 | - | let | |
114 | + | let ab = valueOrErrorMessage(getInteger(X, w), "Empty kBasePeriod") | |
113 | 115 | ||
114 | - | let | |
116 | + | let ac = valueOrErrorMessage(getInteger(X, y), "Empty kStartHeight") | |
115 | 117 | ||
116 | - | let | |
118 | + | let ad = valueOrErrorMessage(getInteger(X, x), "Empty kPeriodLength") | |
117 | 119 | ||
118 | - | let | |
120 | + | let ae = ((ab + ((height - ac) / ad)) + 3) | |
119 | 121 | ||
120 | - | let | |
122 | + | let af = getBooleanValue(this, c) | |
121 | 123 | ||
122 | - | let | |
124 | + | let ag = valueOrElse(getBoolean(K, d), true) | |
123 | 125 | ||
124 | - | let | |
126 | + | let ah = getStringValue(this, e) | |
125 | 127 | ||
126 | - | let ah = getStringValue(this, f) | |
127 | - | ||
128 | - | let ai = if ((ag == "WAVES")) | |
129 | - | then unit | |
130 | - | else fromBase58String(ag) | |
128 | + | let ai = getStringValue(this, f) | |
131 | 129 | ||
132 | 130 | let aj = if ((ah == "WAVES")) | |
133 | 131 | then unit | |
134 | 132 | else fromBase58String(ah) | |
135 | 133 | ||
136 | - | let ak = { | |
137 | - | let M = ai | |
138 | - | if ($isInstanceOf(M, "ByteVector")) | |
134 | + | let ak = if ((ai == "WAVES")) | |
135 | + | then unit | |
136 | + | else fromBase58String(ai) | |
137 | + | ||
138 | + | let al = { | |
139 | + | let N = aj | |
140 | + | if ($isInstanceOf(N, "ByteVector")) | |
139 | 141 | then { | |
140 | - | let | |
141 | - | value(assetInfo( | |
142 | + | let am = N | |
143 | + | value(assetInfo(am)).name | |
142 | 144 | } | |
143 | - | else if ($isInstanceOf( | |
145 | + | else if ($isInstanceOf(N, "Unit")) | |
144 | 146 | then { | |
145 | - | let | |
147 | + | let an = N | |
146 | 148 | "WAVES" | |
147 | 149 | } | |
148 | 150 | else throw("Match error") | |
149 | 151 | } | |
150 | 152 | ||
151 | - | let | |
152 | - | let | |
153 | - | if ($isInstanceOf( | |
153 | + | let ao = { | |
154 | + | let N = ak | |
155 | + | if ($isInstanceOf(N, "ByteVector")) | |
154 | 156 | then { | |
155 | - | let | |
156 | - | value(assetInfo( | |
157 | + | let am = N | |
158 | + | value(assetInfo(am)).name | |
157 | 159 | } | |
158 | - | else if ($isInstanceOf( | |
160 | + | else if ($isInstanceOf(N, "Unit")) | |
159 | 161 | then { | |
160 | - | let | |
162 | + | let an = N | |
161 | 163 | "WAVES" | |
162 | 164 | } | |
163 | 165 | else throw("Match error") | |
164 | 166 | } | |
165 | 167 | ||
166 | - | let | |
168 | + | let ap = getIntegerValue(this, g) | |
167 | 169 | ||
168 | - | let | |
170 | + | let aq = getIntegerValue(this, h) | |
169 | 171 | ||
170 | - | let | |
172 | + | let ar = fromBase58String(getStringValue(this, i)) | |
171 | 173 | ||
172 | - | let | |
174 | + | let as = getIntegerValue(this, j) | |
173 | 175 | ||
174 | - | let | |
176 | + | let at = getIntegerValue(this, l) | |
175 | 177 | ||
176 | - | let | |
178 | + | let au = getIntegerValue(this, k) | |
177 | 179 | ||
178 | - | let | |
180 | + | let av = fraction(au, 40, 100) | |
179 | 181 | ||
180 | - | let | |
182 | + | let aw = 1000000 | |
181 | 183 | ||
182 | - | let | |
184 | + | let ax = 1000 | |
183 | 185 | ||
184 | - | let | |
186 | + | let ay = 100000000 | |
185 | 187 | ||
186 | - | let | |
188 | + | let az = 10000000000000000 | |
187 | 189 | ||
188 | - | let | |
190 | + | let aA = 8 | |
189 | 191 | ||
190 | - | let | |
192 | + | let aB = 80000000 | |
191 | 193 | ||
192 | - | let | |
194 | + | let aC = 120000000 | |
193 | 195 | ||
194 | - | let | |
196 | + | let aD = 50 | |
195 | 197 | ||
196 | - | let | |
198 | + | let aE = 2 | |
197 | 199 | ||
198 | - | let | |
200 | + | let aF = 4600000000000000 | |
199 | 201 | ||
200 | - | let aF = 2 | |
201 | - | ||
202 | - | let aG = 4600000000000000 | |
203 | - | ||
204 | - | func aH (aI) = { | |
205 | - | let M = aI | |
206 | - | if ($isInstanceOf(M, "ByteVector")) | |
202 | + | func aG (aH) = { | |
203 | + | let N = aH | |
204 | + | if ($isInstanceOf(N, "ByteVector")) | |
207 | 205 | then { | |
208 | - | let | |
209 | - | assetBalance(this, | |
206 | + | let am = N | |
207 | + | assetBalance(this, am) | |
210 | 208 | } | |
211 | - | else if ($isInstanceOf( | |
209 | + | else if ($isInstanceOf(N, "Unit")) | |
212 | 210 | then { | |
213 | - | let | |
211 | + | let an = N | |
214 | 212 | wavesBalance(this).available | |
215 | 213 | } | |
216 | 214 | else throw("Match error") | |
217 | 215 | } | |
218 | 216 | ||
219 | 217 | ||
220 | - | func | |
221 | - | let | |
222 | - | let | |
223 | - | if ($isInstanceOf( | |
218 | + | func aI (aH) = { | |
219 | + | let aJ = { | |
220 | + | let N = aH | |
221 | + | if ($isInstanceOf(N, "ByteVector")) | |
224 | 222 | then { | |
225 | - | let | |
226 | - | if (( | |
227 | - | then getInteger( | |
223 | + | let aK = N | |
224 | + | if ((aK == Z)) | |
225 | + | then getInteger(W, ((("rpd_balance_" + toBase58String(aK)) + "_") + toString(this))) | |
228 | 226 | else 0 | |
229 | 227 | } | |
230 | - | else if ($isInstanceOf( | |
228 | + | else if ($isInstanceOf(N, "Unit")) | |
231 | 229 | then 0 | |
232 | 230 | else throw("Match error") | |
233 | 231 | } | |
234 | - | let | |
235 | - | if ($isInstanceOf( | |
232 | + | let N = aJ | |
233 | + | if ($isInstanceOf(N, "Int")) | |
236 | 234 | then { | |
237 | - | let | |
238 | - | | |
235 | + | let aL = N | |
236 | + | aL | |
239 | 237 | } | |
240 | 238 | else 0 | |
241 | 239 | } | |
242 | 240 | ||
243 | 241 | ||
244 | - | let | |
242 | + | let aM = aI(aj) | |
245 | 243 | ||
246 | - | let | |
244 | + | let aN = aI(ak) | |
247 | 245 | ||
248 | - | let | |
246 | + | let aO = (ap - aM) | |
249 | 247 | ||
250 | - | let | |
248 | + | let aP = (aq - aN) | |
251 | 249 | ||
252 | - | let | |
250 | + | let aQ = (aG(aj) + aM) | |
253 | 251 | ||
254 | - | let | |
252 | + | let aR = (aG(ak) + aN) | |
255 | 253 | ||
256 | - | let | |
257 | - | then ( | |
254 | + | let aS = if ((aQ >= ap)) | |
255 | + | then (aR >= aq) | |
258 | 256 | else false | |
259 | 257 | ||
260 | - | func | |
258 | + | func aT (aU,aV) = ((fraction(az, aU, aV) + fraction(az, aV, aU)) / 2) | |
261 | 259 | ||
262 | 260 | ||
263 | - | func | |
264 | - | let | |
265 | - | (fraction(( | |
261 | + | func aW (aU,aV) = { | |
262 | + | let aX = aT(aU, aV) | |
263 | + | (fraction((aU + aV), az, pow(aX, aA, aD, aE, aA, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(aU), toBigInt(aV), toBigInt(ay)), 0, toBigInt(5), 1, (aA / 2), DOWN)), pow((aX - aF), aA, aD, aE, aA, DOWN), ay))) | |
266 | 264 | } | |
267 | 265 | ||
268 | 266 | ||
269 | - | func | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | func | |
267 | + | func aY (aZ,ba,bb,bc,bd,be,bf) = { | |
268 | + | let bg = (az - ((az * 1) / 10000000)) | |
269 | + | let bh = (aZ - ba) | |
270 | + | let aU = (bd + bb) | |
271 | + | let aV = (be + bb) | |
272 | + | func bi (bj,bk) = if ((bj._1 == -1)) | |
275 | 273 | then { | |
276 | - | let | |
277 | - | let | |
278 | - | then | |
279 | - | else | |
280 | - | if (( | |
281 | - | then $Tuple2( | |
274 | + | let bl = (aZ - (((bk * bh) / 3) / ax)) | |
275 | + | let bm = if ((bc == aj)) | |
276 | + | then aW(aU, (be - bl)) | |
277 | + | else aW((bd - bl), aV) | |
278 | + | if ((bm > bf)) | |
279 | + | then $Tuple2(bl, bm) | |
282 | 280 | else $Tuple2(-1, 0) | |
283 | 281 | } | |
284 | - | else | |
282 | + | else bj | |
285 | 283 | ||
286 | - | let | |
287 | - | if ((0 > | |
284 | + | let bn = bi($Tuple2(-1, 0), 3000) | |
285 | + | if ((0 > bn._1)) | |
288 | 286 | then throw("Price is worse than minReceived") | |
289 | 287 | else { | |
290 | - | let | |
291 | - | then | |
292 | - | else if (( | |
293 | - | then | |
288 | + | let bo = if ((bc == aj)) | |
289 | + | then aW(aU, (be - aZ)) | |
290 | + | else if ((bc == ak)) | |
291 | + | then aW((bd - aZ), aV) | |
294 | 292 | else throw("Wrong asset in payment") | |
295 | - | if (( | |
296 | - | then if (( | |
293 | + | if ((bf > bo)) | |
294 | + | then if ((bg >= fraction(az, bf, bo))) | |
297 | 295 | then throw("The requested price is too not profitable for user") | |
298 | 296 | else { | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | func | |
304 | - | then | |
305 | - | else | |
297 | + | let bp = { | |
298 | + | let bq = [25, 200, 500] | |
299 | + | let br = size(bq) | |
300 | + | let bs = $Tuple2(-1, 0) | |
301 | + | func bt (bu,bv) = if ((bv >= br)) | |
302 | + | then bu | |
303 | + | else bi(bu, bq[bv]) | |
306 | 304 | ||
307 | - | func | |
308 | - | then | |
305 | + | func bw (bu,bv) = if ((bv >= br)) | |
306 | + | then bu | |
309 | 307 | else throw("List size exceeds 3") | |
310 | 308 | ||
311 | - | | |
309 | + | bw(bt(bt(bt(bs, 0), 1), 2), 3) | |
312 | 310 | } | |
313 | - | if ((0 > | |
314 | - | then | |
315 | - | else | |
311 | + | if ((0 > bp._1)) | |
312 | + | then bn._1 | |
313 | + | else bp._1 | |
316 | 314 | } | |
317 | 315 | else { | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | func | |
323 | - | then | |
324 | - | else | |
316 | + | let bp = { | |
317 | + | let bq = [-500, -200, -25] | |
318 | + | let br = size(bq) | |
319 | + | let bs = $Tuple2(-1, 0) | |
320 | + | func bt (bu,bv) = if ((bv >= br)) | |
321 | + | then bu | |
322 | + | else bi(bu, bq[bv]) | |
325 | 323 | ||
326 | - | func | |
327 | - | then | |
324 | + | func bw (bu,bv) = if ((bv >= br)) | |
325 | + | then bu | |
328 | 326 | else throw("List size exceeds 3") | |
329 | 327 | ||
330 | - | | |
328 | + | bw(bt(bt(bt(bs, 0), 1), 2), 3) | |
331 | 329 | } | |
332 | - | let | |
333 | - | then $Tuple2( | |
334 | - | else | |
335 | - | if (( | |
330 | + | let bx = if ((0 > bp._1)) | |
331 | + | then $Tuple2(aZ, bo) | |
332 | + | else bp | |
333 | + | if ((bg >= fraction(az, bf, bx._2))) | |
336 | 334 | then throw("The requested price is too not profitable for user") | |
337 | - | else | |
335 | + | else bx._1 | |
338 | 336 | } | |
339 | 337 | } | |
340 | 338 | } | |
341 | 339 | ||
342 | 340 | ||
343 | - | func | |
344 | - | let | |
345 | - | if ($isInstanceOf( | |
341 | + | func by (aH) = { | |
342 | + | let N = aH | |
343 | + | if ($isInstanceOf(N, "ByteVector")) | |
346 | 344 | then { | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | $Tuple3( | |
345 | + | let am = N | |
346 | + | let bz = toBase58String(am) | |
347 | + | let bA = valueOrErrorMessage(assetInfo(am), (("Asset " + bz) + " doesn't exist")) | |
348 | + | $Tuple3(bz, bA.name, bA.decimals) | |
351 | 349 | } | |
352 | - | else if ($isInstanceOf( | |
350 | + | else if ($isInstanceOf(N, "Unit")) | |
353 | 351 | then { | |
354 | - | let | |
352 | + | let an = N | |
355 | 353 | $Tuple3("WAVES", "WAVES", 8) | |
356 | 354 | } | |
357 | 355 | else throw("Match error") | |
358 | 356 | } | |
359 | 357 | ||
360 | 358 | ||
361 | - | func | |
359 | + | func bB (bC) = [BooleanEntry(c, false), StringEntry(m, bC)] | |
362 | 360 | ||
363 | 361 | ||
364 | - | func | |
362 | + | func bD () = throw("DApp is already active") | |
365 | 363 | ||
366 | 364 | ||
367 | - | func | |
368 | - | then | |
365 | + | func bE () = if (if (af) | |
366 | + | then ag | |
369 | 367 | else false) | |
370 | 368 | then unit | |
371 | 369 | else throw("DApp is inactive at this moment") | |
372 | 370 | ||
373 | 371 | ||
374 | - | func | |
372 | + | func bF (aL) = if (containsElement([Q, R, S], aL.callerPublicKey)) | |
375 | 373 | then unit | |
376 | 374 | else throw("Only admin can call this function") | |
377 | 375 | ||
378 | 376 | ||
379 | - | func | |
377 | + | func bG (aL) = if ((this == aL.caller)) | |
380 | 378 | then unit | |
381 | 379 | else throw("Only contract itself can call this function") | |
382 | 380 | ||
383 | 381 | ||
384 | - | func | |
382 | + | func bH () = throw(((("Incorrect assets attached. Expected: " + ah) + " and ") + ai)) | |
385 | 383 | ||
386 | 384 | ||
387 | - | func | |
385 | + | func bI () = throw("One attached payment expected") | |
388 | 386 | ||
389 | 387 | ||
390 | - | func | |
388 | + | func bJ () = bB(((((((((((((((("Suspicious state. Actual balances: " + toString(ap)) + " ") + al) + ", ") + toString(aq)) + " ") + ao) + ". State: ") + toString(aG(aj))) + " ") + al) + ", ") + toString(aG(ak))) + " ") + ao)) | |
391 | 389 | ||
392 | 390 | ||
393 | - | func bO () = bC(((((((((((((((("Suspicious state. Actual balances: " + toString(ao)) + " ") + ak) + ", ") + toString(ap)) + " ") + an) + ". State: ") + toString(aH(ai))) + " ") + ak) + ", ") + toString(aH(aj))) + " ") + an)) | |
391 | + | func bK (bL,aH) = if (bL) | |
392 | + | then $Tuple2("lockNeutrino", W) | |
393 | + | else $Tuple2("unlockNeutrino", W) | |
394 | 394 | ||
395 | 395 | ||
396 | - | func bP (bQ,aI) = if (bQ) | |
397 | - | then $Tuple2("lockNeutrino", V) | |
398 | - | else $Tuple2("unlockNeutrino", V) | |
399 | - | ||
400 | - | ||
401 | - | func bR (bQ,bS,aI) = if (bQ) | |
396 | + | func bM (bL,bN,aH) = if (bL) | |
402 | 397 | then { | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | $Tuple4( | |
398 | + | let bO = bK(bL, aH) | |
399 | + | let bP = bO._1 | |
400 | + | let bQ = bO._2 | |
401 | + | $Tuple4(bP, bQ, nil, [AttachedPayment(aH, bN)]) | |
407 | 402 | } | |
408 | 403 | else { | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | $Tuple4( | |
404 | + | let bR = bK(bL, aH) | |
405 | + | let bP = bR._1 | |
406 | + | let bQ = bR._2 | |
407 | + | $Tuple4(bP, bQ, [bN, toBase58String(aH)], nil) | |
413 | 408 | } | |
414 | 409 | ||
415 | 410 | ||
416 | - | func | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | if (if (( | |
422 | - | then (parseIntValue( | |
411 | + | func bS (bT) = { | |
412 | + | let bU = valueOrElse(getInteger(V, (toString(bT) + r)), 0) | |
413 | + | let bV = valueOrElse(getInteger(V, (toString(bT) + s)), bU) | |
414 | + | let bW = split(getStringValue(K, q), ",") | |
415 | + | let bX = split(getStringValue(K, p), ",") | |
416 | + | if (if ((bV >= parseIntValue(bW[0]))) | |
417 | + | then (parseIntValue(bW[1]) > bV) | |
423 | 418 | else false) | |
424 | - | then ( | |
425 | - | else if (if (( | |
426 | - | then (parseIntValue( | |
419 | + | then (aw - parseIntValue(bX[0])) | |
420 | + | else if (if ((bV >= parseIntValue(bW[1]))) | |
421 | + | then (parseIntValue(bW[2]) > bV) | |
427 | 422 | else false) | |
428 | - | then ( | |
429 | - | else if (if (( | |
430 | - | then (parseIntValue( | |
423 | + | then (aw - parseIntValue(bX[1])) | |
424 | + | else if (if ((bV >= parseIntValue(bW[2]))) | |
425 | + | then (parseIntValue(bW[3]) > bV) | |
431 | 426 | else false) | |
432 | - | then ( | |
433 | - | else if (if (( | |
434 | - | then (parseIntValue( | |
427 | + | then (aw - parseIntValue(bX[2])) | |
428 | + | else if (if ((bV >= parseIntValue(bW[3]))) | |
429 | + | then (parseIntValue(bW[4]) > bV) | |
435 | 430 | else false) | |
436 | - | then ( | |
437 | - | else if (( | |
438 | - | then ( | |
439 | - | else | |
431 | + | then (aw - parseIntValue(bX[3])) | |
432 | + | else if ((bV >= parseIntValue(bW[4]))) | |
433 | + | then (aw - parseIntValue(bX[4])) | |
434 | + | else aw | |
440 | 435 | } | |
441 | 436 | ||
442 | 437 | ||
443 | - | func cd (aM,ce,cf) = { | |
444 | - | let cg = aM.payments[0].assetId | |
445 | - | let ch = aM.payments[1].assetId | |
446 | - | let ci = fraction(ax, aM.payments[0].amount, ao) | |
447 | - | let cj = fraction(ax, aM.payments[1].amount, ap) | |
448 | - | let ck = bz(cg) | |
449 | - | let cl = ck._1 | |
450 | - | let cm = ck._2 | |
451 | - | let cn = ck._3 | |
452 | - | let co = bz(ch) | |
438 | + | func bY (bZ,ca,cb) = { | |
439 | + | let cc = getIntegerValue(this, z) | |
440 | + | let cd = if (if ((cb == aj)) | |
441 | + | then (bZ > ca) | |
442 | + | else false) | |
443 | + | then fraction(bZ, 1, ca, CEILING) | |
444 | + | else if (if ((cb == ak)) | |
445 | + | then (ca > bZ) | |
446 | + | else false) | |
447 | + | then fraction(ca, 1, bZ, CEILING) | |
448 | + | else 0 | |
449 | + | if ((cd > cc)) | |
450 | + | then { | |
451 | + | let ce = if ((cb == aj)) | |
452 | + | then $Tuple2(ao, al) | |
453 | + | else $Tuple2(al, ao) | |
454 | + | let cf = ce._1 | |
455 | + | let cg = ce._2 | |
456 | + | throw((((("Buying " + cf) + " is temporarily unavailable due to the ") + cg) + " depeg")) | |
457 | + | } | |
458 | + | else true | |
459 | + | } | |
460 | + | ||
461 | + | ||
462 | + | func ch (aL,ci,cj) = { | |
463 | + | let ck = aL.payments[0].assetId | |
464 | + | let cl = aL.payments[1].assetId | |
465 | + | let cm = fraction(ay, aL.payments[0].amount, ap) | |
466 | + | let cn = fraction(ay, aL.payments[1].amount, aq) | |
467 | + | let co = by(ck) | |
453 | 468 | let cp = co._1 | |
454 | 469 | let cq = co._2 | |
455 | 470 | let cr = co._3 | |
456 | - | let cs = if ((cj > ci)) | |
471 | + | let cs = by(cl) | |
472 | + | let ct = cs._1 | |
473 | + | let cu = cs._2 | |
474 | + | let cv = cs._3 | |
475 | + | let cw = if ((cn > cm)) | |
457 | 476 | then { | |
458 | - | let | |
459 | - | $Tuple5( | |
477 | + | let cx = fraction(aq, cm, ay, CEILING) | |
478 | + | $Tuple5(aL.payments[0].amount, cx, (aL.payments[1].amount - cx), cl, cm) | |
460 | 479 | } | |
461 | 480 | else { | |
462 | - | let | |
463 | - | $Tuple5( | |
481 | + | let cx = fraction(ap, cn, ay, CEILING) | |
482 | + | $Tuple5(cx, aL.payments[1].amount, (aL.payments[0].amount - cx), ck, cn) | |
464 | 483 | } | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | if (if ((size( | |
472 | - | then (size( | |
484 | + | let cy = cw._1 | |
485 | + | let cz = cw._2 | |
486 | + | let cA = cw._3 | |
487 | + | let cB = cw._4 | |
488 | + | let cC = cw._5 | |
489 | + | let cD = fraction(cC, as, ay) | |
490 | + | if (if ((size(aL.payments) != 2)) | |
491 | + | then (size(aL.payments) != 3) | |
473 | 492 | else false) | |
474 | 493 | then throw("Two or three payments expected") | |
475 | - | else if (if (( | |
494 | + | else if (if ((ck != aj)) | |
476 | 495 | then true | |
477 | - | else ( | |
478 | - | then | |
479 | - | else if (( | |
496 | + | else (cl != ak)) | |
497 | + | then bH() | |
498 | + | else if ((cD == 0)) | |
480 | 499 | then throw("Too small amount to replenish") | |
481 | - | else if ((0 > | |
500 | + | else if ((0 > cA)) | |
482 | 501 | then throw("Change < 0") | |
483 | - | else if (!( | |
484 | - | then ([ScriptTransfer( | |
502 | + | else if (!(aS)) | |
503 | + | then ([ScriptTransfer(aL.caller, cy, ck), ScriptTransfer(aL.caller, cz, cl)] ++ bJ()) | |
485 | 504 | else { | |
486 | - | let | |
487 | - | then invoke(this, "stakeUnstake", [true, | |
505 | + | let cE = if (contains(aa, cp)) | |
506 | + | then invoke(this, "stakeUnstake", [true, cy, cp], nil) | |
488 | 507 | else 0 | |
489 | - | if (( | |
508 | + | if ((cE == cE)) | |
490 | 509 | then { | |
491 | - | let | |
492 | - | then invoke(this, "stakeUnstake", [true, | |
510 | + | let cF = if (contains(aa, ct)) | |
511 | + | then invoke(this, "stakeUnstake", [true, cz, ct], nil) | |
493 | 512 | else 0 | |
494 | - | if (( | |
513 | + | if ((cF == cF)) | |
495 | 514 | then { | |
496 | - | let | |
497 | - | if ( | |
515 | + | let cG = [IntegerEntry(g, (ap + cy)), IntegerEntry(h, (aq + cz)), IntegerEntry(j, (as + cD)), IntegerEntry(l, aW((ap + cy), (aq + cz))), ScriptTransfer(aL.caller, cA, cB)] | |
516 | + | if (ci) | |
498 | 517 | then { | |
499 | - | let | |
500 | - | then [AttachedPayment(if (( | |
518 | + | let cH = ([AttachedPayment(ar, cD)] ++ (if ((size(aL.payments) == 3)) | |
519 | + | then [AttachedPayment(if ((aL.payments[2].assetId == base58'')) | |
501 | 520 | then unit | |
502 | - | else | |
521 | + | else aL.payments[2].assetId, aL.payments[2].amount)] | |
503 | 522 | else nil)) | |
504 | - | let | |
505 | - | if (( | |
523 | + | let cI = invoke(this, "reissueShare", [cD], nil) | |
524 | + | if ((cI == cI)) | |
506 | 525 | then { | |
507 | - | let | |
508 | - | if (( | |
509 | - | then | |
526 | + | let cJ = invoke(Y, "lockShareTokensFromPool", [aL.caller.bytes, toString(this), cj], cH) | |
527 | + | if ((cJ == cJ)) | |
528 | + | then cG | |
510 | 529 | else throw("Strict value is not equal to itself.") | |
511 | 530 | } | |
512 | 531 | else throw("Strict value is not equal to itself.") | |
513 | 532 | } | |
514 | - | else ( | |
533 | + | else (cG ++ [Reissue(ar, cD, true), ScriptTransfer(aL.caller, cD, ar)]) | |
515 | 534 | } | |
516 | 535 | else throw("Strict value is not equal to itself.") | |
517 | 536 | } | |
518 | 537 | else throw("Strict value is not equal to itself.") | |
519 | 538 | } | |
520 | 539 | } | |
521 | 540 | ||
522 | 541 | ||
523 | - | func | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
542 | + | func cK (aL,cL,cM,ci,cj) = { | |
543 | + | let cN = $Tuple2(aL.payments[0].amount, aL.payments[0].assetId) | |
544 | + | let cO = cN._1 | |
545 | + | let cb = cN._2 | |
546 | + | let cP = by(cb) | |
547 | + | let cQ = cP._1 | |
548 | + | let cR = cP._2 | |
549 | + | let cS = cP._3 | |
550 | + | let cT = 5000000 | |
551 | + | let cU = 50000000 | |
552 | + | let cV = if ((cU > cO)) | |
534 | 553 | then 100000 | |
535 | 554 | else 1 | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | if (( | |
540 | - | then throw((((("Payment amount " + toString( | |
541 | - | else if (if ((size( | |
542 | - | then (size( | |
555 | + | let cW = (ay - ((ay * cV) / 10000000)) | |
556 | + | let cX = (ay + ((ay * cV) / 10000000)) | |
557 | + | let cY = (ay - ((ay * 1) / 10000000)) | |
558 | + | if ((cT > cO)) | |
559 | + | then throw((((("Payment amount " + toString(cO)) + " does not exceed the minimum amount of ") + toString(cT)) + " tokens")) | |
560 | + | else if (if ((size(aL.payments) != 1)) | |
561 | + | then (size(aL.payments) != 2) | |
543 | 562 | else false) | |
544 | 563 | then throw("One or two payments expected") | |
545 | - | else if (!( | |
546 | - | then ([ScriptTransfer( | |
547 | - | else if (if (( | |
548 | - | then ( | |
564 | + | else if (!(aS)) | |
565 | + | then ([ScriptTransfer(aL.caller, cO, cb)] ++ bJ()) | |
566 | + | else if (if ((cb != aj)) | |
567 | + | then (cb != ak) | |
549 | 568 | else false) | |
550 | - | then | |
569 | + | then bH() | |
551 | 570 | else { | |
552 | - | let cW = if ((cL == ai)) | |
553 | - | then $Tuple6((cK - cH), cI, (ao + cH), (ap - cI), (ao + cK), ap) | |
554 | - | else $Tuple6(cI, (cK - cH), (ao - cI), (ap + cH), ao, (ap + cK)) | |
555 | - | let cX = cW._1 | |
556 | - | let cY = cW._2 | |
557 | - | let cZ = cW._3 | |
558 | - | let da = cW._4 | |
559 | - | let db = cW._5 | |
560 | - | let dc = cW._6 | |
561 | - | let dd = aX(cZ, da) | |
562 | - | let de = (fraction(ay, cZ, da) / fraction(ax, cX, cY)) | |
563 | - | let df = fraction((db + dc), aA, (2 * aB)) | |
564 | - | if (if ((cV >= fraction(ax, as, dd))) | |
571 | + | let cZ = if ((cb == aj)) | |
572 | + | then $Tuple6((cO - cL), cM, (ap + cL), (aq - cM), (ap + cO), aq) | |
573 | + | else $Tuple6(cM, (cO - cL), (ap - cM), (aq + cL), ap, (aq + cO)) | |
574 | + | let da = cZ._1 | |
575 | + | let db = cZ._2 | |
576 | + | let dc = cZ._3 | |
577 | + | let dd = cZ._4 | |
578 | + | let bZ = cZ._5 | |
579 | + | let ca = cZ._6 | |
580 | + | let de = aW(dc, dd) | |
581 | + | let df = (fraction(az, dc, dd) / fraction(ay, da, db)) | |
582 | + | if (if ((cY >= fraction(ay, at, de))) | |
565 | 583 | then true | |
566 | - | else ( | |
584 | + | else (at > de)) | |
567 | 585 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
568 | - | else if (if (( | |
586 | + | else if (if ((cW > df)) | |
569 | 587 | then true | |
570 | - | else ( | |
588 | + | else (df > cX)) | |
571 | 589 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
572 | - | else if (if ((df > db)) | |
573 | - | then true | |
574 | - | else (df > dc)) | |
575 | - | then bK(df, db, dc) | |
590 | + | else if (!(bY(bZ, ca, cb))) | |
591 | + | then throw() | |
576 | 592 | else { | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let dg = fraction( | |
581 | - | let dh = fraction( | |
582 | - | let di = fraction(dh, | |
583 | - | let dj = fraction(dh, | |
584 | - | let dk = if (( | |
585 | - | then $Tuple3(( | |
586 | - | else $Tuple3(( | |
593 | + | let cm = fraction(da, ay, dc) | |
594 | + | let cn = fraction(db, ay, dd) | |
595 | + | let cD = fraction(min([cm, cn]), as, ay) | |
596 | + | let dg = fraction(cD, (aw - (au / 2)), aw) | |
597 | + | let dh = fraction(cD, (av / 2), aw) | |
598 | + | let di = fraction(dh, ap, as) | |
599 | + | let dj = fraction(dh, aq, as) | |
600 | + | let dk = if ((cQ == ah)) | |
601 | + | then $Tuple3((cO - di), dj, ai) | |
602 | + | else $Tuple3((cO - dj), di, ah) | |
587 | 603 | let dl = dk._1 | |
588 | 604 | let dm = dk._2 | |
589 | 605 | let dn = dk._3 | |
590 | - | let | |
591 | - | then invoke(this, "stakeUnstake", [true, dl, | |
606 | + | let cE = if (contains(aa, cQ)) | |
607 | + | then invoke(this, "stakeUnstake", [true, dl, cQ], nil) | |
592 | 608 | else 0 | |
593 | - | if (( | |
609 | + | if ((cE == cE)) | |
594 | 610 | then { | |
595 | - | let | |
611 | + | let cF = if (contains(aa, dn)) | |
596 | 612 | then invoke(this, "stakeUnstake", [false, dm, dn], nil) | |
597 | 613 | else 0 | |
598 | - | if (( | |
614 | + | if ((cF == cF)) | |
599 | 615 | then { | |
600 | - | let | |
601 | - | if ( | |
616 | + | let cG = [IntegerEntry(g, (bZ - di)), IntegerEntry(h, (ca - dj)), IntegerEntry(j, (as + dg)), IntegerEntry(l, aW((bZ - di), (ca - dj))), ScriptTransfer(U, di, aj), ScriptTransfer(U, dj, ak)] | |
617 | + | if (ci) | |
602 | 618 | then { | |
603 | - | let | |
604 | - | then [AttachedPayment(if (( | |
619 | + | let cH = ([AttachedPayment(ar, dg)] ++ (if ((size(aL.payments) == 2)) | |
620 | + | then [AttachedPayment(if ((aL.payments[1].assetId == base58'')) | |
605 | 621 | then unit | |
606 | - | else | |
622 | + | else aL.payments[1].assetId, aL.payments[1].amount)] | |
607 | 623 | else nil)) | |
608 | - | let | |
609 | - | if (( | |
624 | + | let cI = invoke(this, "reissueShare", [dg], nil) | |
625 | + | if ((cI == cI)) | |
610 | 626 | then { | |
611 | - | let | |
612 | - | if (( | |
613 | - | then | |
627 | + | let cJ = invoke(Y, "lockShareTokensFromPool", [aL.caller.bytes, toString(this), cj], cH) | |
628 | + | if ((cJ == cJ)) | |
629 | + | then cG | |
614 | 630 | else throw("Strict value is not equal to itself.") | |
615 | 631 | } | |
616 | 632 | else throw("Strict value is not equal to itself.") | |
617 | 633 | } | |
618 | - | else ( | |
634 | + | else (cG ++ [Reissue(ar, dg, true), ScriptTransfer(aL.caller, dg, ar)]) | |
619 | 635 | } | |
620 | 636 | else throw("Strict value is not equal to itself.") | |
621 | 637 | } | |
622 | 638 | else throw("Strict value is not equal to itself.") | |
623 | 639 | } | |
624 | 640 | } | |
625 | 641 | } | |
626 | 642 | ||
627 | 643 | ||
628 | - | func do ( | |
629 | - | let dq = if ((size( | |
630 | - | then if (( | |
631 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
632 | - | else $Tuple2( | |
633 | - | else $Tuple2(0, | |
634 | - | let | |
635 | - | let | |
636 | - | if (!( | |
637 | - | then ([ScriptTransfer( | |
644 | + | func do (aL,dp) = { | |
645 | + | let dq = if ((size(aL.payments) == 1)) | |
646 | + | then if ((aL.payments[0].assetId != ar)) | |
647 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(ar))) | |
648 | + | else $Tuple2(aL.payments[0].amount, aL.payments[0].assetId) | |
649 | + | else $Tuple2(0, ar) | |
650 | + | let cO = dq._1 | |
651 | + | let cb = dq._2 | |
652 | + | if (!(aS)) | |
653 | + | then ([ScriptTransfer(aL.caller, cO, cb)] ++ bJ()) | |
638 | 654 | else { | |
639 | 655 | let dr = if ((dp > 0)) | |
640 | - | then invoke( | |
656 | + | then invoke(Y, "withdrawShareTokensFromPool", [aL.caller.bytes, toString(this), dp], nil) | |
641 | 657 | else 0 | |
642 | 658 | if ((dr == dr)) | |
643 | 659 | then { | |
644 | - | let ds = ( | |
645 | - | let dt = fraction(ds, | |
646 | - | let du = fraction(ds, | |
647 | - | let dv = | |
648 | - | let | |
649 | - | then invoke(this, "stakeUnstake", [false, dt, | |
660 | + | let ds = (cO + dp) | |
661 | + | let dt = fraction(ds, ap, as) | |
662 | + | let du = fraction(ds, aq, as) | |
663 | + | let dv = aW((ap - dt), (aq - du)) | |
664 | + | let cE = if (contains(aa, ah)) | |
665 | + | then invoke(this, "stakeUnstake", [false, dt, ah], nil) | |
650 | 666 | else 0 | |
651 | - | if (( | |
667 | + | if ((cE == cE)) | |
652 | 668 | then { | |
653 | - | let | |
654 | - | then invoke(this, "stakeUnstake", [false, du, | |
669 | + | let cF = if (contains(aa, ai)) | |
670 | + | then invoke(this, "stakeUnstake", [false, du, ai], nil) | |
655 | 671 | else 0 | |
656 | - | if (( | |
657 | - | then [IntegerEntry(g, ( | |
672 | + | if ((cF == cF)) | |
673 | + | then [IntegerEntry(g, (ap - dt)), IntegerEntry(h, (aq - du)), IntegerEntry(j, (as - ds)), IntegerEntry(l, dv), Burn(ar, ds), ScriptTransfer(aL.caller, dt, aj), ScriptTransfer(aL.caller, du, ak)] | |
658 | 674 | else throw("Strict value is not equal to itself.") | |
659 | 675 | } | |
660 | 676 | else throw("Strict value is not equal to itself.") | |
661 | 677 | } | |
662 | 678 | else throw("Strict value is not equal to itself.") | |
663 | 679 | } | |
664 | 680 | } | |
665 | 681 | ||
666 | 682 | ||
667 | - | @Callable( | |
683 | + | @Callable(aL) | |
668 | 684 | func init (dw) = { | |
669 | - | let dx = $Tuple2( | |
670 | - | let | |
671 | - | let | |
672 | - | let dy = $Tuple2( | |
673 | - | let | |
674 | - | let | |
675 | - | let dz = | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let dA = | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
685 | + | let dx = $Tuple2(aL.payments[0].amount, aL.payments[0].assetId) | |
686 | + | let cy = dx._1 | |
687 | + | let ck = dx._2 | |
688 | + | let dy = $Tuple2(aL.payments[1].amount, aL.payments[1].assetId) | |
689 | + | let cz = dy._1 | |
690 | + | let cl = dy._2 | |
691 | + | let dz = by(ck) | |
692 | + | let cp = dz._1 | |
693 | + | let cq = dz._2 | |
694 | + | let cr = dz._3 | |
695 | + | let dA = by(cl) | |
696 | + | let ct = dA._1 | |
697 | + | let cu = dA._2 | |
698 | + | let cv = dA._3 | |
683 | 699 | if (isDefined(getBoolean(this, c))) | |
684 | - | then | |
685 | - | else if (( | |
700 | + | then bD() | |
701 | + | else if ((ck == cl)) | |
686 | 702 | then throw("Assets must be different") | |
687 | 703 | else { | |
688 | - | let dB = ((("s" + take( | |
689 | - | let dC = ((((("ShareToken of SwopFi protocol for " + | |
690 | - | let dD = (( | |
691 | - | let dE = fraction(pow( | |
704 | + | let dB = ((("s" + take(cq, 7)) + "_") + take(cu, 7)) | |
705 | + | let dC = ((((("ShareToken of SwopFi protocol for " + cq) + " and ") + cu) + " at address ") + toString(this)) | |
706 | + | let dD = ((cr + cv) / 2) | |
707 | + | let dE = fraction(pow(cy, cr, 5, 1, cr, DOWN), pow(cz, cv, 5, 1, cv, DOWN), pow(10, 0, dD, 0, 0, DOWN)) | |
692 | 708 | let dF = Issue(dB, dC, dE, dD, true) | |
693 | 709 | let dG = calculateAssetId(dF) | |
694 | - | let dv = | |
695 | - | let | |
696 | - | then invoke(this, "stakeUnstake", [true, | |
710 | + | let dv = aW(cy, cz) | |
711 | + | let cE = if (contains(aa, cp)) | |
712 | + | then invoke(this, "stakeUnstake", [true, cy, cp], nil) | |
697 | 713 | else 0 | |
698 | - | if (( | |
714 | + | if ((cE == cE)) | |
699 | 715 | then { | |
700 | - | let | |
701 | - | then invoke(this, "stakeUnstake", [true, | |
716 | + | let cF = if (contains(aa, ct)) | |
717 | + | then invoke(this, "stakeUnstake", [true, cz, ct], nil) | |
702 | 718 | else 0 | |
703 | - | if (( | |
719 | + | if ((cF == cF)) | |
704 | 720 | then { | |
705 | - | let dH = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, | |
721 | + | let dH = [StringEntry(b, a), BooleanEntry(c, true), StringEntry(e, cp), StringEntry(f, ct), IntegerEntry(g, cy), IntegerEntry(h, cz), IntegerEntry(l, dv), IntegerEntry(k, getIntegerValue(K, "base_fee_flat")), IntegerEntry(z, 3), dF, StringEntry(i, toBase58String(dG)), IntegerEntry(j, dE), ScriptTransfer(aL.caller, dE, dG)] | |
706 | 722 | if (dw) | |
707 | - | then (dH ++ [BooleanEntry(t, dw), IntegerEntry(u, ( | |
723 | + | then (dH ++ [BooleanEntry(t, dw), IntegerEntry(u, (ac + (ae * ad)))]) | |
708 | 724 | else dH | |
709 | 725 | } | |
710 | 726 | else throw("Strict value is not equal to itself.") | |
711 | 727 | } | |
712 | 728 | else throw("Strict value is not equal to itself.") | |
713 | 729 | } | |
714 | 730 | } | |
715 | 731 | ||
716 | 732 | ||
717 | 733 | ||
718 | - | @Callable( | |
719 | - | func replenishWithTwoTokensV2 ( | |
734 | + | @Callable(aL) | |
735 | + | func replenishWithTwoTokensV2 (ci,cj) = valueOrElse(bE(), ch(aL, ci, cj)) | |
720 | 736 | ||
721 | 737 | ||
722 | 738 | ||
723 | - | @Callable( | |
724 | - | func replenishWithOneTokenV2 ( | |
739 | + | @Callable(aL) | |
740 | + | func replenishWithOneTokenV2 (cL,cM,ci,cj) = valueOrElse(bE(), cK(aL, cL, cM, ci, cj)) | |
725 | 741 | ||
726 | 742 | ||
727 | 743 | ||
728 | - | @Callable( | |
729 | - | func withdrawV2 (dp) = valueOrElse( | |
744 | + | @Callable(aL) | |
745 | + | func withdrawV2 (dp) = valueOrElse(bE(), do(aL, dp)) | |
730 | 746 | ||
731 | 747 | ||
732 | 748 | ||
733 | - | @Callable( | |
734 | - | func withdrawOneToken (dp,dI,dJ,dK) = valueOrElse( | |
735 | - | let dL = if ((size( | |
736 | - | then if (( | |
737 | - | then throw(("Incorrect asset attached. Expected: " + toBase58String( | |
738 | - | else $Tuple2( | |
739 | - | else $Tuple2(0, | |
740 | - | let | |
741 | - | let | |
742 | - | let ds = ( | |
743 | - | if (if ((dI != | |
744 | - | then (dI != | |
749 | + | @Callable(aL) | |
750 | + | func withdrawOneToken (dp,dI,dJ,dK) = valueOrElse(bE(), { | |
751 | + | let dL = if ((size(aL.payments) == 1)) | |
752 | + | then if ((aL.payments[0].assetId != ar)) | |
753 | + | then throw(("Incorrect asset attached. Expected: " + toBase58String(ar))) | |
754 | + | else $Tuple2(aL.payments[0].amount, aL.payments[0].assetId) | |
755 | + | else $Tuple2(0, ar) | |
756 | + | let cO = dL._1 | |
757 | + | let cb = dL._2 | |
758 | + | let ds = (cO + dp) | |
759 | + | if (if ((dI != ah)) | |
760 | + | then (dI != ai) | |
745 | 761 | else false) | |
746 | 762 | then throw("Incorrect withdraw asset") | |
747 | 763 | else if ((0 >= ds)) | |
748 | 764 | then throw("withdraw amount must be grater than 0") | |
749 | - | else if (!( | |
750 | - | then ([ScriptTransfer( | |
765 | + | else if (!(aS)) | |
766 | + | then ([ScriptTransfer(aL.caller, cO, cb)] ++ bJ()) | |
751 | 767 | else { | |
752 | 768 | let dr = if ((dp > 0)) | |
753 | - | then invoke( | |
769 | + | then invoke(Y, "withdrawShareTokensFromPool", [aL.caller.bytes, toString(this), dp], nil) | |
754 | 770 | else 0 | |
755 | 771 | if ((dr == dr)) | |
756 | 772 | then { | |
757 | - | let dt = fraction(ds, | |
758 | - | let du = fraction(ds, | |
759 | - | let dM = ( | |
760 | - | let dN = ( | |
761 | - | let dO = | |
762 | - | let dP = if ((dI == | |
763 | - | then | |
764 | - | else | |
765 | - | let dQ = fraction(dP, fraction( | |
766 | - | let dR = fraction(dP, ( | |
767 | - | let dS = if ((dI == | |
768 | - | then $ | |
769 | - | else $ | |
773 | + | let dt = fraction(ds, ap, as) | |
774 | + | let du = fraction(ds, aq, as) | |
775 | + | let dM = (ap - dt) | |
776 | + | let dN = (aq - du) | |
777 | + | let dO = bS(aL.originCaller) | |
778 | + | let dP = if ((dI == ah)) | |
779 | + | then aY(dJ, dK, du, ak, dM, dN, aW(dM, dN)) | |
780 | + | else aY(dJ, dK, dt, aj, dM, dN, aW(dM, dN)) | |
781 | + | let dQ = fraction(dP, fraction(av, dO, aw, CEILING), aw) | |
782 | + | let dR = fraction(dP, (aw - fraction(au, dO, aw, CEILING)), aw) | |
783 | + | let dS = if ((dI == ah)) | |
784 | + | then $Tuple4((dt + dR), (((ap - dt) - dR) - dQ), aq, ak) | |
785 | + | else $Tuple4((du + dR), ap, (((aq - du) - dR) - dQ), aj) | |
770 | 786 | let dT = dS._1 | |
771 | 787 | let dU = dS._2 | |
772 | 788 | let dV = dS._3 | |
773 | - | let dv = aX(dU, dV) | |
774 | - | let cA = if (contains(Z, dI)) | |
775 | - | then invoke(this, "stakeUnstake", [false, (dT + dQ), dI], nil) | |
776 | - | else 0 | |
777 | - | if ((cA == cA)) | |
778 | - | then [IntegerEntry(g, dU), IntegerEntry(h, dV), IntegerEntry(j, (ar - ds)), IntegerEntry(l, dv), Burn(aq, ds), ScriptTransfer(aM.caller, dT, fromBase58String(dI)), ScriptTransfer(T, dQ, fromBase58String(dI))] | |
779 | - | else throw("Strict value is not equal to itself.") | |
789 | + | let dW = dS._4 | |
790 | + | if (!(bY(dU, dV, dW))) | |
791 | + | then throw() | |
792 | + | else { | |
793 | + | let dv = aW(dU, dV) | |
794 | + | let cE = if (contains(aa, dI)) | |
795 | + | then invoke(this, "stakeUnstake", [false, (dT + dQ), dI], nil) | |
796 | + | else 0 | |
797 | + | if ((cE == cE)) | |
798 | + | then [IntegerEntry(g, dU), IntegerEntry(h, dV), IntegerEntry(j, (as - ds)), IntegerEntry(l, dv), Burn(ar, ds), ScriptTransfer(aL.caller, dT, fromBase58String(dI)), ScriptTransfer(U, dQ, fromBase58String(dI))] | |
799 | + | else throw("Strict value is not equal to itself.") | |
800 | + | } | |
780 | 801 | } | |
781 | 802 | else throw("Strict value is not equal to itself.") | |
782 | 803 | } | |
783 | 804 | }) | |
784 | 805 | ||
785 | 806 | ||
786 | 807 | ||
787 | - | @Callable( | |
788 | - | func exchange (dJ,dK) = valueOrElse( | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
808 | + | @Callable(aL) | |
809 | + | func exchange (dJ,dK) = valueOrElse(bE(), { | |
810 | + | let dX = $Tuple2(aL.payments[0].amount, aL.payments[0].assetId) | |
811 | + | let cO = dX._1 | |
812 | + | let cb = dX._2 | |
792 | 813 | if ((0 >= dJ)) | |
793 | 814 | then throw(("Estimated amount must be positive. Actual: " + toString(dJ))) | |
794 | 815 | else if ((dK > dJ)) | |
795 | 816 | then throw("Minimal amount can't be greater than estimated.") | |
796 | - | else if ((size( | |
797 | - | then | |
798 | - | else if (!( | |
799 | - | then ([ScriptTransfer( | |
800 | - | else if (if (( | |
801 | - | then ( | |
817 | + | else if ((size(aL.payments) != 1)) | |
818 | + | then bI() | |
819 | + | else if (!(aS)) | |
820 | + | then ([ScriptTransfer(aL.caller, cO, cb)] ++ bJ()) | |
821 | + | else if (if ((cb != aj)) | |
822 | + | then (cb != ak) | |
802 | 823 | else false) | |
803 | - | then | |
804 | - | else if ((10000000 > | |
824 | + | then bH() | |
825 | + | else if ((10000000 > cO)) | |
805 | 826 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
806 | - | else if (if (( | |
827 | + | else if (if ((aB > fraction(ay, dK, cO))) | |
807 | 828 | then true | |
808 | - | else (fraction( | |
829 | + | else (fraction(ay, dJ, cO) > aC)) | |
809 | 830 | then throw("Incorrect args and pmt ratio") | |
810 | 831 | else { | |
811 | - | let dX = if ((cL == ai)) | |
812 | - | then aj | |
813 | - | else ai | |
814 | - | let bS = aZ(dJ, dK, cK, cL, ao, ap, as) | |
815 | - | let dO = bX(aM.originCaller) | |
816 | - | let dY = fraction(bS, fraction(au, dO, av, CEILING), av) | |
817 | - | let dZ = fraction(bS, (av - fraction(at, dO, av, CEILING)), av) | |
818 | - | let ea = if ((cL == ai)) | |
819 | - | then $Tuple2((ao + cK), ((ap - dZ) - dY)) | |
820 | - | else $Tuple2(((ao - dZ) - dY), (ap + cK)) | |
821 | - | let db = ea._1 | |
822 | - | let dc = ea._2 | |
823 | - | let df = fraction((db + dc), aA, (2 * aB)) | |
824 | - | if (if ((df > db)) | |
825 | - | then true | |
826 | - | else (df > dc)) | |
827 | - | then bK(df, db, dc) | |
832 | + | let dY = if ((cb == aj)) | |
833 | + | then ak | |
834 | + | else aj | |
835 | + | let bN = aY(dJ, dK, cO, cb, ap, aq, at) | |
836 | + | let dO = bS(aL.originCaller) | |
837 | + | let dZ = fraction(bN, fraction(av, dO, aw, CEILING), aw) | |
838 | + | let ea = fraction(bN, (aw - fraction(au, dO, aw, CEILING)), aw) | |
839 | + | let eb = if ((cb == aj)) | |
840 | + | then $Tuple2((ap + cO), ((aq - ea) - dZ)) | |
841 | + | else $Tuple2(((ap - ea) - dZ), (aq + cO)) | |
842 | + | let bZ = eb._1 | |
843 | + | let ca = eb._2 | |
844 | + | if (!(bY(bZ, ca, cb))) | |
845 | + | then throw() | |
828 | 846 | else { | |
829 | - | let | |
830 | - | let | |
831 | - | let | |
832 | - | let | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
838 | - | then invoke(this, "stakeUnstake", [true, | |
847 | + | let ec = by(cb) | |
848 | + | let cQ = ec._1 | |
849 | + | let cR = ec._2 | |
850 | + | let cS = ec._3 | |
851 | + | let ed = by(dY) | |
852 | + | let ee = ed._1 | |
853 | + | let ef = ed._2 | |
854 | + | let eg = ed._3 | |
855 | + | let cE = if (contains(aa, cQ)) | |
856 | + | then invoke(this, "stakeUnstake", [true, cO, cQ], nil) | |
839 | 857 | else 0 | |
840 | - | if (( | |
858 | + | if ((cE == cE)) | |
841 | 859 | then { | |
842 | - | let | |
843 | - | then invoke(this, "stakeUnstake", [false, ( | |
860 | + | let cF = if (contains(aa, ee)) | |
861 | + | then invoke(this, "stakeUnstake", [false, (ea + dZ), ee], nil) | |
844 | 862 | else 0 | |
845 | - | if (( | |
846 | - | then $Tuple2([IntegerEntry(g, | |
863 | + | if ((cF == cF)) | |
864 | + | then $Tuple2([IntegerEntry(g, bZ), IntegerEntry(h, ca), IntegerEntry(l, aW(bZ, ca)), ScriptTransfer(aL.caller, ea, dY), ScriptTransfer(U, dZ, dY)], [ea, dY]) | |
847 | 865 | else throw("Strict value is not equal to itself.") | |
848 | 866 | } | |
849 | 867 | else throw("Strict value is not equal to itself.") | |
850 | 868 | } | |
851 | 869 | } | |
852 | 870 | }) | |
853 | 871 | ||
854 | 872 | ||
855 | 873 | ||
856 | - | @Callable( | |
857 | - | func reissueShare ( | |
874 | + | @Callable(eh) | |
875 | + | func reissueShare (bN) = valueOrElse(bG(eh), [Reissue(ar, bN, true)]) | |
858 | 876 | ||
859 | 877 | ||
860 | 878 | ||
861 | - | @Callable( | |
862 | - | func shutdown () = valueOrElse( | |
879 | + | @Callable(aL) | |
880 | + | func shutdown () = valueOrElse(bF(aL), if (!(af)) | |
863 | 881 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, m), "the cause wasn't specified"))) | |
864 | - | else | |
882 | + | else bB("Paused by admin")) | |
865 | 883 | ||
866 | 884 | ||
867 | 885 | ||
868 | - | @Callable( | |
869 | - | func activate () = valueOrElse( | |
870 | - | then | |
886 | + | @Callable(aL) | |
887 | + | func activate () = valueOrElse(bF(aL), if (af) | |
888 | + | then bD() | |
871 | 889 | else [BooleanEntry(c, true), DeleteEntry(m)]) | |
872 | 890 | ||
873 | 891 | ||
874 | 892 | ||
875 | - | @Callable(aM) | |
876 | - | func takeIntoAccountExtraFunds () = valueOrElse(bF(), { | |
877 | - | let eh = (aR - ao) | |
878 | - | let ei = (aS - ap) | |
879 | - | let dd = aX((ao + eh), (ap + ei)) | |
880 | - | if ((aM.caller != T)) | |
881 | - | then throw("Only the money box can call this function") | |
882 | - | else if (if ((0 > eh)) | |
883 | - | then true | |
884 | - | else (0 > ei)) | |
885 | - | then bC("Enroll amount negative") | |
886 | - | else if (if ((eh == 0)) | |
887 | - | then (ei == 0) | |
888 | - | else false) | |
889 | - | then throw("No money to take") | |
890 | - | else { | |
891 | - | let cA = if (if (contains(Z, ag)) | |
892 | - | then (eh > 0) | |
893 | + | @Callable(aL) | |
894 | + | func takeIntoAccountExtraFunds () = valueOrElse(bE(), { | |
895 | + | let ei = if (if ((aj == Z)) | |
896 | + | then true | |
897 | + | else (ak == Z)) | |
898 | + | then invoke(W, "claimRewards", nil, nil) | |
899 | + | else 0 | |
900 | + | if ((ei == ei)) | |
901 | + | then { | |
902 | + | let ej = (aQ - ap) | |
903 | + | let ek = (aR - aq) | |
904 | + | let de = aW((ap + ej), (aq + ek)) | |
905 | + | if ((aL.caller != U)) | |
906 | + | then throw("Only the money box can call this function") | |
907 | + | else if (if ((0 > ej)) | |
908 | + | then true | |
909 | + | else (0 > ek)) | |
910 | + | then bB("Enroll amount negative") | |
911 | + | else if (if ((ej == 0)) | |
912 | + | then (ek == 0) | |
893 | 913 | else false) | |
894 | - | then invoke(this, "stakeUnstake", [true, eh, ag], nil) | |
895 | - | else 0 | |
896 | - | if ((cA == cA)) | |
897 | - | then { | |
898 | - | let cB = if (if (contains(Z, ah)) | |
899 | - | then (ei > 0) | |
914 | + | then throw("No money to take") | |
915 | + | else { | |
916 | + | let cE = if (if (contains(aa, ah)) | |
917 | + | then (ej > 0) | |
900 | 918 | else false) | |
901 | - | then invoke(this, "stakeUnstake", [true, | |
919 | + | then invoke(this, "stakeUnstake", [true, ej, ah], nil) | |
902 | 920 | else 0 | |
903 | - | if ((cB == cB)) | |
904 | - | then [IntegerEntry(l, dd), IntegerEntry(g, (ao + eh)), IntegerEntry(h, (ap + ei))] | |
921 | + | if ((cE == cE)) | |
922 | + | then { | |
923 | + | let cF = if (if (contains(aa, ai)) | |
924 | + | then (ek > 0) | |
925 | + | else false) | |
926 | + | then invoke(this, "stakeUnstake", [true, ek, ai], nil) | |
927 | + | else 0 | |
928 | + | if ((cF == cF)) | |
929 | + | then [IntegerEntry(l, de), IntegerEntry(g, (ap + ej)), IntegerEntry(h, (aq + ek))] | |
930 | + | else throw("Strict value is not equal to itself.") | |
931 | + | } | |
905 | 932 | else throw("Strict value is not equal to itself.") | |
906 | 933 | } | |
907 | - | | |
908 | - | | |
934 | + | } | |
935 | + | else throw("Strict value is not equal to itself.") | |
909 | 936 | }) | |
910 | 937 | ||
911 | 938 | ||
912 | 939 | ||
913 | - | @Callable( | |
914 | - | func keepLimitForFirstHarvest ( | |
940 | + | @Callable(aL) | |
941 | + | func keepLimitForFirstHarvest (el) = valueOrElse(bE(), valueOrElse(bF(aL), [IntegerEntry(v, el)])) | |
915 | 942 | ||
916 | 943 | ||
917 | 944 | ||
918 | - | @Callable( | |
919 | - | func stakeUnstake ( | |
945 | + | @Callable(aL) | |
946 | + | func stakeUnstake (bL,bN,em) = if ((aL.caller != this)) | |
920 | 947 | then throw("Only contract itself can invoke this function") | |
921 | 948 | else { | |
922 | - | let | |
923 | - | let | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | let | |
928 | - | if (( | |
949 | + | let en = bM(bL, bN, fromBase58String(em)) | |
950 | + | let bP = en._1 | |
951 | + | let eo = en._2 | |
952 | + | let ep = en._3 | |
953 | + | let eq = en._4 | |
954 | + | let er = invoke(eo, bP, ep, eq) | |
955 | + | if ((er == er)) | |
929 | 956 | then nil | |
930 | 957 | else throw("Strict value is not equal to itself.") | |
931 | 958 | } | |
932 | 959 | ||
933 | 960 | ||
934 | 961 | ||
935 | - | @Callable( | |
936 | - | func replenishWithTwoTokens () = valueOrElse( | |
962 | + | @Callable(aL) | |
963 | + | func replenishWithTwoTokens () = valueOrElse(bE(), ch(aL, false, 0)) | |
937 | 964 | ||
938 | 965 | ||
939 | 966 | ||
940 | - | @Callable( | |
941 | - | func replenishWithOneToken ( | |
967 | + | @Callable(aL) | |
968 | + | func replenishWithOneToken (cL,cM) = valueOrElse(bE(), cK(aL, cL, cM, false, 0)) | |
942 | 969 | ||
943 | 970 | ||
944 | 971 | ||
945 | - | @Callable( | |
946 | - | func withdraw () = valueOrElse( | |
972 | + | @Callable(aL) | |
973 | + | func withdraw () = valueOrElse(bE(), do(aL, 0)) | |
947 | 974 | ||
948 | 975 | ||
949 | - | @Verifier( | |
950 | - | func | |
951 | - | let | |
952 | - | let | |
976 | + | @Verifier(es) | |
977 | + | func et () = { | |
978 | + | let eu = { | |
979 | + | let ev = if (sigVerify(es.bodyBytes, es.proofs[0], Q)) | |
953 | 980 | then 1 | |
954 | 981 | else 0 | |
955 | - | let | |
982 | + | let ew = if (sigVerify(es.bodyBytes, es.proofs[1], R)) | |
956 | 983 | then 1 | |
957 | 984 | else 0 | |
958 | - | let | |
985 | + | let ex = if (sigVerify(es.bodyBytes, es.proofs[2], S)) | |
959 | 986 | then 1 | |
960 | 987 | else 0 | |
961 | - | ((( | |
988 | + | (((ev + ew) + ex) >= 2) | |
962 | 989 | } | |
963 | - | let | |
964 | - | if ($isInstanceOf( | |
990 | + | let N = es | |
991 | + | if ($isInstanceOf(N, "InvokeScriptTransaction")) | |
965 | 992 | then { | |
966 | - | let | |
967 | - | let | |
968 | - | then ( | |
993 | + | let er = N | |
994 | + | let ey = if ((er.dApp == this)) | |
995 | + | then (er.function == "takeIntoAccountExtraFunds") | |
969 | 996 | else false | |
970 | - | let | |
997 | + | let ez = if (if (if (sigVerify(es.bodyBytes, es.proofs[0], Q)) | |
971 | 998 | then true | |
972 | - | else sigVerify( | |
999 | + | else sigVerify(es.bodyBytes, es.proofs[0], R)) | |
973 | 1000 | then true | |
974 | - | else sigVerify( | |
1001 | + | else sigVerify(es.bodyBytes, es.proofs[0], S)) | |
975 | 1002 | then true | |
976 | - | else sigVerify( | |
977 | - | if (if ( | |
978 | - | then | |
1003 | + | else sigVerify(es.bodyBytes, es.proofs[0], T) | |
1004 | + | if (if (ey) | |
1005 | + | then ez | |
979 | 1006 | else false) | |
980 | 1007 | then true | |
981 | - | else | |
1008 | + | else eu | |
982 | 1009 | } | |
983 | - | else | |
1010 | + | else eu | |
984 | 1011 | } | |
985 | 1012 |
github/deemru/w8io/169f3d6 430.86 ms ◑