tx · 46K1AkkPDqbzfm13R5x7PVNvAULx6Gd1HFi7cFLgK9gm 3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU: -0.03300000 Waves 2022.07.18 09:22 [2144824] smart account 3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU > SELF 0.00000000 Waves
{ "type": 13, "id": "46K1AkkPDqbzfm13R5x7PVNvAULx6Gd1HFi7cFLgK9gm", "fee": 3300000, "feeAssetId": null, "timestamp": 1658125386064, "version": 2, "chainId": 84, "sender": "3N8pVPvAfr79Ysbb4MEwi2Ks7d6LKUXG1iU", "senderPublicKey": "GDio3pYFUMSWQ3yen7TJP79nTPaGuPbxjKixvKLuYS8E", "proofs": [ "4GpEBrCymfhpswsoWyVp7LtkjE5bhHGRky8kGQTveZVAyhGQECdxrD711SdQU3oBNV9mnVpgjaY4ETQhKdGTY4Ax" ], "script": "base64:AAIFAAAAAAAAAFkIAhILCgkICAgICAgBAQQSAwoBBBIFCgMEBAQSAwoBARIDCgEEEgMKAQESAwoBCBIGCgQICAgEEgUKAwQICBIGCgQECAgBEgQKAggIEgUKAwgIARIECgIICAAAACcAAAAABG1haW4CAAAACm1haW5fYXNzZXQAAAAAAWwCAAAACWxwX2Fzc2V0XwAAAAADYWExAgAAAAZwb29sX18AAAAAAnNhAgAAAA9TVEFLSU5HX0FNT1VOVF8AAAAAAmxhAgAAAA1MRUFTRV9BTU9VTlRfAAAAAAJpeAIAAAADSURfAAAAAAdyYXRlRmVlAgAAABNwZXJjZW50YWdlX3JhdGVfZmVlAAAAAA5kZXBvc2l0X2hlaWdodAIAAAASRGVwb3NpdF9IZWlnaHRfT2ZfAAAAAAJEOAAAAAAABfXhAAAAAAACRDYAAAAAAAAPQkAAAAAAA0QxMAAAAAACVAvkAAEAAAARZ2V0QWRkcmVzc0lmVmFsaWQAAAABAAAAB2FkZHJlc3MJAAQlAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEJgAAAAEFA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zIHJlcXVpcmVkIGZvciB0aGUgc3dhcCBmZWUuCQAAAgAAAAECAAAAEkludmFsaWQgcmF0ZSBhc3NldAkAAAIAAAABAgAAABFJbnZhbGlkIFN3YXAgS2V5LgkAAAIAAAABAgAAABlJbnZhbGlkIEFzc2V0MSBvciBBc3NldDIhCQAAAgAAAAECAAAAIEFzc2V0MSBjYW5ub3QgYmUgZXF1YWwgdG8gQXNzZXQyCQAAAgAAAAECAAAAJFN3YXAgaXMgY3VycmVudGx5IHVuZGVyIG1haW50ZW5hbmNlLgkAAAIAAAABAgAAACRkQXBwIGlzIGN1cnJlbnRseSB1bmRlciBtYWludGVuYW5jZS4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIEAAAABW9yZGVyBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR0BQAAAAckbWF0Y2gwCQAAAAAAAAIIBQAAAAJ0dAAAAAlyZWNpcGllbnQJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAAVhZG1pbgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkYdh1X", "height": 2144824, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5bE1e6pyCcV6qwajQQFVHDqbxS6JoeJfTijoJXN6QqD3 Next: F69zHJ8A6ZS8k537SCHkntXRCbhCfEEReF4eiwN68qp6 Diff:
Old | New | Differences | |
---|---|---|---|
129 | 129 | func S (T,U,m) = (((h + I(T, U)) + "_") + m) | |
130 | 130 | ||
131 | 131 | ||
132 | - | func V (t) = { | |
133 | - | let q = t | |
134 | - | if ($isInstanceOf(q, "ByteVector")) | |
135 | - | then { | |
136 | - | let O = q | |
137 | - | value(assetInfo(O)).decimals | |
138 | - | } | |
139 | - | else 8 | |
140 | - | } | |
141 | - | ||
142 | - | ||
143 | - | func W (m,M) = { | |
132 | + | func V (m,M) = { | |
144 | 133 | let q = getInteger(this, ((("STAKE_LP_" + m) + "_") + M)) | |
145 | 134 | if ($isInstanceOf(q, "Int")) | |
146 | 135 | then { | |
151 | 140 | } | |
152 | 141 | ||
153 | 142 | ||
154 | - | func | |
143 | + | func W () = { | |
155 | 144 | let q = getString(this, "admin") | |
156 | 145 | if ($isInstanceOf(q, "String")) | |
157 | 146 | then { | |
162 | 151 | } | |
163 | 152 | ||
164 | 153 | ||
165 | - | func | |
166 | - | then ( | |
154 | + | func X (Y,Z,aa) = if (if ((Y == H)) | |
155 | + | then (Z == "WAVES") | |
167 | 156 | else false) | |
168 | - | then if ( | |
157 | + | then if (aa) | |
169 | 158 | then true | |
170 | 159 | else throw("The smart contract does not currently support Waves.") | |
171 | - | else if (( | |
160 | + | else if ((Y == fromBase58String(Z))) | |
172 | 161 | then true | |
173 | 162 | else false | |
174 | 163 | ||
175 | 164 | ||
176 | - | func | |
165 | + | func ab (M,ac) = { | |
177 | 166 | let q = getInteger(this, M) | |
178 | 167 | if ($isInstanceOf(q, "Int")) | |
179 | 168 | then { | |
180 | 169 | let Q = q | |
181 | 170 | Q | |
182 | 171 | } | |
183 | - | else if ( | |
172 | + | else if (ac) | |
184 | 173 | then (1 * i) | |
185 | 174 | else 1 | |
186 | 175 | } | |
187 | 176 | ||
188 | 177 | ||
189 | 178 | @Callable(r) | |
190 | - | func constructor (ae,af,ag,ah,ai,aj,ak,al | |
191 | - | let | |
179 | + | func constructor (ad,ae,af,ag,ah,ai,aj,ak,al) = { | |
180 | + | let am = I(af, F) | |
192 | 181 | if (if ((r.caller == this)) | |
193 | 182 | then true | |
194 | - | else (r.caller == | |
195 | - | then if ((valueOrElse(getInteger(this, | |
183 | + | else (r.caller == W())) | |
184 | + | then if ((valueOrElse(getInteger(this, am), 0) == 0)) | |
196 | 185 | then { | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | [StringEntry(a, ae), StringEntry( | |
186 | + | let an = I(ae, af) | |
187 | + | let ao = I(ae, ag) | |
188 | + | let ap = I(ae, ah) | |
189 | + | let aq = I(ae, F) | |
190 | + | let ar = I(ae, ad) | |
191 | + | let as = I(ae, ai) | |
192 | + | let at = I(ag, af) | |
193 | + | let au = I(ag, ah) | |
194 | + | let av = I(ag, F) | |
195 | + | let aw = I(ag, ad) | |
196 | + | let ax = I(ag, ai) | |
197 | + | let ay = I(af, ah) | |
198 | + | let az = I(af, ad) | |
199 | + | let aA = I(af, ai) | |
200 | + | let aB = I(ah, F) | |
201 | + | let aC = I(ah, ad) | |
202 | + | let aD = I(ah, ai) | |
203 | + | let aE = I(ad, F) | |
204 | + | let aF = I(ad, ai) | |
205 | + | let aG = I(ai, F) | |
206 | + | [StringEntry(a, ad), StringEntry(A, ae), StringEntry(C, ag), StringEntry(B, af), StringEntry(D, ah), BooleanEntry(G, al), IntegerEntry(g, aj), BooleanEntry(u, true), BooleanEntry(w, false), BooleanEntry(v, false), BooleanEntry(x, false), IntegerEntry(y, ak), IntegerEntry(an, 1), IntegerEntry(aq, 1), IntegerEntry(ao, 1), IntegerEntry(ap, 1), IntegerEntry(ar, 1), IntegerEntry(at, 1), IntegerEntry(au, 1), IntegerEntry(av, 1), IntegerEntry(az, 1), IntegerEntry(ay, 1), IntegerEntry(am, 1), IntegerEntry(aB, 1), IntegerEntry(aC, 1), IntegerEntry(aE, 1), IntegerEntry(aG, 1), IntegerEntry(aF, 1), IntegerEntry(aD, 1), IntegerEntry(ax, 1), IntegerEntry(as, 1), IntegerEntry(aA, 1), IntegerEntry(aw, 1), StringEntry(E, ai)] | |
218 | 207 | } | |
219 | 208 | else throw("Smart Contract has been started") | |
220 | 209 | else throw("Only the Admin itself can invoke this function") | |
223 | 212 | ||
224 | 213 | ||
225 | 214 | @Callable(r) | |
226 | - | func activate ( | |
215 | + | func activate (aH) = if (if ((r.caller == this)) | |
227 | 216 | then true | |
228 | - | else (r.caller == | |
229 | - | then [BooleanEntry(u, | |
217 | + | else (r.caller == W())) | |
218 | + | then [BooleanEntry(u, aH)] | |
230 | 219 | else throw("Only the Admin itself can invoke this function") | |
231 | 220 | ||
232 | 221 | ||
233 | 222 | ||
234 | 223 | @Callable(r) | |
235 | - | func maintenance (aJ,aK | |
224 | + | func maintenance (aI,aJ,aK) = if (if ((r.caller == this)) | |
236 | 225 | then true | |
237 | - | else (r.caller == | |
238 | - | then [BooleanEntry(v, | |
226 | + | else (r.caller == W())) | |
227 | + | then [BooleanEntry(v, aI), BooleanEntry(w, aJ), BooleanEntry(x, aK)] | |
239 | 228 | else throw("Only the Admin itself can invoke this function") | |
240 | 229 | ||
241 | 230 | ||
242 | 231 | ||
243 | 232 | @Callable(r) | |
244 | - | func percentualRateFeeSwapEdit ( | |
233 | + | func percentualRateFeeSwapEdit (aL) = if (if ((r.caller == this)) | |
245 | 234 | then true | |
246 | - | else (r.caller == | |
247 | - | then [IntegerEntry(g, | |
235 | + | else (r.caller == W())) | |
236 | + | then [IntegerEntry(g, aL)] | |
248 | 237 | else throw("Only the Admin itself can invoke this function") | |
249 | 238 | ||
250 | 239 | ||
251 | 240 | ||
252 | 241 | @Callable(r) | |
253 | - | func acceptWaves ( | |
242 | + | func acceptWaves (aM) = if (if ((r.caller == this)) | |
254 | 243 | then true | |
255 | - | else (r.caller == | |
256 | - | then [BooleanEntry(G, | |
244 | + | else (r.caller == W())) | |
245 | + | then [BooleanEntry(G, aM)] | |
257 | 246 | else throw("Only the Admin itself can invoke this function") | |
258 | 247 | ||
259 | 248 | ||
260 | 249 | ||
261 | 250 | @Callable(r) | |
262 | - | func blockDistribution ( | |
251 | + | func blockDistribution (aN) = if (if ((r.caller == this)) | |
263 | 252 | then true | |
264 | - | else (r.caller == | |
265 | - | then [IntegerEntry(y, | |
253 | + | else (r.caller == W())) | |
254 | + | then [IntegerEntry(y, aN)] | |
266 | 255 | else throw("Only the Admin itself can invoke this function") | |
267 | 256 | ||
268 | 257 | ||
270 | 259 | @Callable(r) | |
271 | 260 | func addAdmin (m) = if (if ((r.caller == this)) | |
272 | 261 | then true | |
273 | - | else (r.caller == | |
262 | + | else (r.caller == W())) | |
274 | 263 | then [StringEntry("admin", m)] | |
275 | 264 | else throw("Only the Admin itself can invoke this function") | |
276 | 265 | ||
277 | 266 | ||
278 | 267 | ||
279 | 268 | @Callable(r) | |
280 | - | func lpAssetCreateForPairPool (J,K,aP | |
281 | - | let | |
269 | + | func lpAssetCreateForPairPool (J,K,aO,aP) = { | |
270 | + | let aQ = if ((J == F)) | |
282 | 271 | then F | |
283 | 272 | else s(fromBase58String(J)) | |
284 | - | let | |
273 | + | let aR = if ((K == F)) | |
285 | 274 | then F | |
286 | 275 | else s(fromBase58String(K)) | |
287 | - | let | |
288 | - | then | |
289 | - | else (( | |
276 | + | let aS = if (aP) | |
277 | + | then aO | |
278 | + | else ((aQ + "_") + aR) | |
290 | 279 | let M = L(I(J, K)) | |
291 | 280 | if (if ((r.caller == this)) | |
292 | 281 | then true | |
293 | - | else (r.caller == | |
282 | + | else (r.caller == W())) | |
294 | 283 | then if ((M != false)) | |
295 | 284 | then { | |
296 | - | let | |
297 | - | let | |
298 | - | [StringEntry((b + I(J, K)), toBase58String( | |
285 | + | let aT = Issue(aS, ((("LP asset for pool liquidity in AxAi Swap pair " + J) + "_") + K), (1 * i), 8, true) | |
286 | + | let aU = calculateAssetId(aT) | |
287 | + | [StringEntry((b + I(J, K)), toBase58String(aU)), aT] | |
299 | 288 | } | |
300 | 289 | else throw("Invalid Pool Key. Try inverting the assets") | |
301 | 290 | else throw("Only the Admin itself can invoke this function") | |
304 | 293 | ||
305 | 294 | ||
306 | 295 | @Callable(r) | |
307 | - | func deposit ( | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
296 | + | func deposit (aV,T,U) = { | |
297 | + | let aW = getBooleanValue(this, u) | |
298 | + | let aX = getBooleanValue(this, x) | |
299 | + | let aY = getStringValue(this, a) | |
300 | + | let aZ = if (aV) | |
312 | 301 | then getStringValue(this, (b + I(T, U))) | |
313 | - | else | |
314 | - | if ( | |
315 | - | then if (!( | |
316 | - | then if ((r.payments[0].assetId != fromBase58String( | |
317 | - | then throw((("Invalid asset! Kindly Deposit Only " + | |
318 | - | else if (!( | |
302 | + | else aY | |
303 | + | if (aW) | |
304 | + | then if (!(aX)) | |
305 | + | then if ((r.payments[0].assetId != fromBase58String(aZ))) | |
306 | + | then throw((("Invalid asset! Kindly Deposit Only " + aY) + " or valid asset lp")) | |
307 | + | else if (!(aV)) | |
319 | 308 | then { | |
320 | - | let | |
321 | - | let | |
322 | - | let q = getInteger(this, | |
309 | + | let ba = toBase58String(r.caller.bytes) | |
310 | + | let bb = { | |
311 | + | let q = getInteger(this, ba) | |
323 | 312 | if ($isInstanceOf(q, "Int")) | |
324 | 313 | then { | |
325 | 314 | let Q = q | |
327 | 316 | } | |
328 | 317 | else 0 | |
329 | 318 | } | |
330 | - | let | |
319 | + | let bc = if ((bb == 0)) | |
331 | 320 | then height | |
332 | - | else valueOrElse(getIntegerValue(this, (h + | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
321 | + | else valueOrElse(getIntegerValue(this, (h + ba)), height) | |
322 | + | let bd = (bb + r.payments[0].amount) | |
323 | + | let be = IntegerEntry(ba, bd) | |
324 | + | let bf = IntegerEntry((h + ba), bc) | |
325 | + | let bg = { | |
337 | 326 | let q = getInteger(this, "Total_Tokens_Locked:") | |
338 | 327 | if ($isInstanceOf(q, "Int")) | |
339 | 328 | then { | |
342 | 331 | } | |
343 | 332 | else 0 | |
344 | 333 | } | |
345 | - | let | |
346 | - | let | |
347 | - | [bf, | |
334 | + | let bh = (bg + r.payments[0].amount) | |
335 | + | let bi = IntegerEntry("Total_Tokens_Locked:", bh) | |
336 | + | [be, bf, bi] | |
348 | 337 | } | |
349 | 338 | else { | |
350 | - | let | |
351 | - | let M = L( | |
339 | + | let bj = I(T, U) | |
340 | + | let M = L(bj) | |
352 | 341 | if ((M != false)) | |
353 | 342 | then { | |
354 | - | let | |
355 | - | let | |
356 | - | let q = getInteger(this, ((("STAKE_LP_" + | |
343 | + | let ba = toBase58String(r.caller.bytes) | |
344 | + | let bb = { | |
345 | + | let q = getInteger(this, ((("STAKE_LP_" + ba) + "_") + bj)) | |
357 | 346 | if ($isInstanceOf(q, "Int")) | |
358 | 347 | then { | |
359 | 348 | let Q = q | |
361 | 350 | } | |
362 | 351 | else 0 | |
363 | 352 | } | |
364 | - | let | |
353 | + | let bc = if ((bb == 0)) | |
365 | 354 | then height | |
366 | - | else valueOrElse(getIntegerValue(this, ((((h + "_") + | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let q = getInteger(this, ("Total_Tokens_LP_Locked_" + | |
355 | + | else valueOrElse(getIntegerValue(this, ((((h + "_") + ba) + "_") + bj)), height) | |
356 | + | let bd = (bb + r.payments[0].amount) | |
357 | + | let be = IntegerEntry(((("STAKE_LP_" + ba) + "_") + bj), bd) | |
358 | + | let bf = IntegerEntry(((((h + "_") + ba) + "_") + bj), height) | |
359 | + | let bg = { | |
360 | + | let q = getInteger(this, ("Total_Tokens_LP_Locked_" + bj)) | |
372 | 361 | if ($isInstanceOf(q, "Int")) | |
373 | 362 | then { | |
374 | 363 | let Q = q | |
376 | 365 | } | |
377 | 366 | else 0 | |
378 | 367 | } | |
379 | - | let | |
380 | - | let | |
381 | - | [bf, | |
368 | + | let bh = (bg + r.payments[0].amount) | |
369 | + | let bi = IntegerEntry(("Total_Tokens_LP_Locked_" + bj), bh) | |
370 | + | [be, bf, bi] | |
382 | 371 | } | |
383 | 372 | else throw("Invalid Pool key.") | |
384 | 373 | } | |
389 | 378 | ||
390 | 379 | ||
391 | 380 | @Callable(r) | |
392 | - | func remove ( | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | if ( | |
398 | - | then if (!( | |
381 | + | func remove (aV,T,U,bk) = { | |
382 | + | let aW = getBooleanValue(this, u) | |
383 | + | let aX = getBooleanValue(this, x) | |
384 | + | let bl = r.payments[0] | |
385 | + | let aY = fromBase58String(getStringValue(this, a)) | |
386 | + | if (aW) | |
387 | + | then if (!(aX)) | |
399 | 388 | then { | |
400 | - | let | |
401 | - | let | |
402 | - | let q = if ( | |
403 | - | then getIntegerValue(this, ((("STAKE_LP_" + | |
404 | - | else getIntegerValue(this, | |
389 | + | let ba = toBase58String(r.caller.bytes) | |
390 | + | let bb = { | |
391 | + | let q = if (aV) | |
392 | + | then getIntegerValue(this, ((("STAKE_LP_" + ba) + "_") + I(T, U))) | |
393 | + | else getIntegerValue(this, ba) | |
405 | 394 | if ($isInstanceOf(q, "Int")) | |
406 | 395 | then { | |
407 | 396 | let Q = q | |
409 | 398 | } | |
410 | 399 | else 0 | |
411 | 400 | } | |
412 | - | let | |
413 | - | then ((((h + "_") + | |
414 | - | else (h + | |
415 | - | let | |
401 | + | let bm = if (aV) | |
402 | + | then ((((h + "_") + ba) + "_") + I(T, U)) | |
403 | + | else (h + ba) | |
404 | + | let bg = if (aV) | |
416 | 405 | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + I(T, U))) | |
417 | 406 | else getIntegerValue(this, "Total_Tokens_Locked:") | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | if ((0 > | |
424 | - | then throw(if ( | |
407 | + | let bh = (bg - bk) | |
408 | + | let bn = (height - getIntegerValue(this, bm)) | |
409 | + | let bo = getIntegerValue(this, y) | |
410 | + | let bp = ((bn * bo) * i) | |
411 | + | let bq = (bp / (bg / bk)) | |
412 | + | if ((0 > bk)) | |
413 | + | then throw(if (aV) | |
425 | 414 | then (((("Can't withdraw negative " + T) + "/") + U) + " amount") | |
426 | 415 | else "Can't withdraw negative AxAi amount") | |
427 | 416 | else { | |
428 | - | let | |
429 | - | if ((0 > | |
430 | - | then throw(if ( | |
417 | + | let bd = (bb - bk) | |
418 | + | if ((0 > bd)) | |
419 | + | then throw(if (aV) | |
431 | 420 | then (((("Not enough Asset Lp " + T) + "/") + U) + " balance") | |
432 | 421 | else "Not enough AxAi balance") | |
433 | - | else [IntegerEntry(if ( | |
434 | - | then ((("STAKE_LP_" + | |
435 | - | else | |
422 | + | else [IntegerEntry(if (aV) | |
423 | + | then ((("STAKE_LP_" + ba) + "_") + I(T, U)) | |
424 | + | else ba, bd), IntegerEntry(if (aV) | |
436 | 425 | then ("Total_Tokens_LP_Locked_" + I(T, U)) | |
437 | - | else "Total_Tokens_Locked:", | |
426 | + | else "Total_Tokens_Locked:", bh), ScriptTransfer(r.caller, bk, if (aV) | |
438 | 427 | then fromBase58String(getStringValue(this, (b + I(T, U)))) | |
439 | - | else | |
428 | + | else aY), ScriptTransfer(r.caller, bq, aY)] | |
440 | 429 | } | |
441 | 430 | } | |
442 | 431 | else throw("liquidity is currently under maintenance.") | |
447 | 436 | ||
448 | 437 | @Callable(r) | |
449 | 438 | func addLiquidity (T,U) = { | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
439 | + | let aW = getBooleanValue(this, u) | |
440 | + | let br = getBooleanValue(this, v) | |
441 | + | let aa = getBooleanValue(this, G) | |
453 | 442 | let M = L(I(T, U)) | |
454 | 443 | let J = r.payments[0].assetId | |
455 | 444 | let K = r.payments[1].assetId | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
445 | + | let bs = fromBase58String(getStringValue(this, A)) | |
446 | + | let bt = fromBase58String(getStringValue(this, C)) | |
447 | + | let bu = fromBase58String(getStringValue(this, B)) | |
448 | + | let bv = fromBase58String(getStringValue(this, D)) | |
449 | + | let bw = fromBase58String(getStringValue(this, E)) | |
450 | + | let aY = fromBase58String(getStringValue(this, a)) | |
451 | + | let aZ = getStringValue(this, (b + I(T, U))) | |
452 | + | let bx = if ((2 > ab(((I(T, U) + "_") + T), false))) | |
464 | 453 | then r.payments[0].amount | |
465 | - | else | |
466 | - | let | |
454 | + | else ab(((I(T, U) + "_") + T), false) | |
455 | + | let by = if ((2 > ab(((I(T, U) + "_") + T), false))) | |
467 | 456 | then r.payments[1].amount | |
468 | - | else | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
457 | + | else ab(((I(T, U) + "_") + U), false) | |
458 | + | let bz = ab(aZ, true) | |
459 | + | let bA = ((bx + by) / bz) | |
460 | + | let bB = (r.payments[0].amount * (by / bx)) | |
461 | + | let bC = (r.payments[1].amount + ((r.payments[1].amount * 2) / 100)) | |
462 | + | let bD = (r.payments[1].amount - ((r.payments[1].amount * 2) / 100)) | |
463 | + | let bE = if (if (if ((r.payments[1].amount == bB)) | |
475 | 464 | then true | |
476 | - | else ( | |
465 | + | else (bC > r.payments[1].amount)) | |
477 | 466 | then true | |
478 | - | else (r.payments[1].amount > | |
467 | + | else (r.payments[1].amount > bD)) | |
479 | 468 | then true | |
480 | 469 | else false | |
481 | - | if ( | |
482 | - | then if (!( | |
470 | + | if (aW) | |
471 | + | then if (!(br)) | |
483 | 472 | then if (if (if (!((J == K))) | |
484 | - | then | |
473 | + | then X(J, T, aa) | |
485 | 474 | else false) | |
486 | - | then | |
475 | + | then X(K, U, aa) | |
487 | 476 | else false) | |
488 | - | then if (if (if (if (if (if (if (if ((J == bt)) | |
477 | + | then if (if (if (if (if (if (if (if ((J == bs)) | |
478 | + | then true | |
479 | + | else (J == bt)) | |
489 | 480 | then true | |
490 | 481 | else (J == bu)) | |
491 | 482 | then true | |
492 | 483 | else (J == bv)) | |
493 | 484 | then true | |
494 | - | else (J == bw)) | |
495 | - | then true | |
496 | - | else (J == aZ)) | |
485 | + | else (J == aY)) | |
497 | 486 | then true | |
498 | 487 | else (J == H)) | |
499 | 488 | then true | |
500 | - | else (J == bx)) | |
501 | - | then if (if (if (if (if (if ((K == bt)) | |
489 | + | else (J == bw)) | |
490 | + | then if (if (if (if (if (if ((K == bs)) | |
491 | + | then true | |
492 | + | else (K == bt)) | |
502 | 493 | then true | |
503 | 494 | else (K == bu)) | |
504 | 495 | then true | |
505 | 496 | else (K == bv)) | |
506 | 497 | then true | |
507 | - | else (K == bw)) | |
508 | - | then true | |
509 | - | else (K == aZ)) | |
498 | + | else (K == aY)) | |
510 | 499 | then true | |
511 | 500 | else (K == H)) | |
512 | 501 | then true | |
513 | - | else (K == | |
502 | + | else (K == bw) | |
514 | 503 | else false) | |
515 | 504 | then if ((M != false)) | |
516 | - | then if ( | |
505 | + | then if (bE) | |
517 | 506 | then { | |
518 | - | let bb = toBase58String(r.caller.bytes) | |
519 | - | let bc = N(bb, I(T, U)) | |
520 | - | let bG = P(bb, I(T, U), T) | |
521 | - | let bH = P(bb, I(T, U), U) | |
522 | - | let bI = R(I(T, U), T) | |
523 | - | let bJ = R(I(T, U), U) | |
524 | - | let bK = V(r.payments[1].assetId) | |
525 | - | let bL = if ((bK == 8)) | |
526 | - | then 0 | |
527 | - | else 2 | |
528 | - | let bM = if ((by == r.payments[0].amount)) | |
507 | + | let ba = toBase58String(r.caller.bytes) | |
508 | + | let bb = N(ba, I(T, U)) | |
509 | + | let bF = P(ba, I(T, U), T) | |
510 | + | let bG = P(ba, I(T, U), U) | |
511 | + | let bH = R(I(T, U), T) | |
512 | + | let bI = R(I(T, U), U) | |
513 | + | let bJ = if ((bx == r.payments[0].amount)) | |
529 | 514 | then (1 * i) | |
530 | - | else ((r.payments[0].amount + r.payments[1].amount) / ((by + bz) / (bA - bL))) | |
531 | - | let bN = (bG + r.payments[0].amount) | |
532 | - | let bO = (bH + r.payments[1].amount) | |
533 | - | let bP = (bc + bM) | |
534 | - | let bQ = (bI + r.payments[0].amount) | |
535 | - | let bR = (bJ + r.payments[1].amount) | |
536 | - | [Reissue(fromBase58String(ba), bM, true), ScriptTransfer(Address(r.caller.bytes), bM, fromBase58String(ba)), IntegerEntry(S(T, U, bb), height), IntegerEntry(((((bb + "_") + I(T, U)) + "_") + T), bN), IntegerEntry(((((bb + "_") + I(T, U)) + "_") + U), bO), IntegerEntry(((I(T, U) + "_") + bb), bP), IntegerEntry(((I(T, U) + "_") + T), bQ), IntegerEntry(((I(T, U) + "_") + U), bR), IntegerEntry(T, (p(T) + r.payments[0].amount)), IntegerEntry(U, (p(U) + r.payments[1].amount)), IntegerEntry(ba, (p(ba) + bM))] | |
515 | + | else toInt(((((toBigInt(r.payments[0].amount) * toBigInt(i)) + (toBigInt(r.payments[1].amount) * toBigInt(i))) / (((toBigInt(bx) * toBigInt(i)) + (toBigInt(by) * toBigInt(i))) / (toBigInt(bz) * toBigInt(i)))) / toBigInt(i))) | |
516 | + | [throw(("details lp" + toString(bJ)))] | |
537 | 517 | } | |
538 | - | else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((r.payments[0].amount * ( | |
518 | + | else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((r.payments[0].amount * (by / bx)))) + "} Received: ") + toString(r.payments[1].amount)) + " Validate: ") + toString(bE))) | |
539 | 519 | else throw("Invalid Pool Key.") | |
540 | 520 | else throw("Invalid Asset1 or Asset2!") | |
541 | 521 | else throw("Asset1 cannot be equal to Asset2") | |
546 | 526 | ||
547 | 527 | ||
548 | 528 | @Callable(r) | |
549 | - | func removeLiquidity (T,U, | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let M = L( | |
529 | + | func removeLiquidity (T,U,bK) = { | |
530 | + | let ba = toBase58String(r.caller.bytes) | |
531 | + | let aW = getBooleanValue(this, u) | |
532 | + | let br = getBooleanValue(this, v) | |
533 | + | let aa = getBooleanValue(this, G) | |
534 | + | let bj = I(T, U) | |
535 | + | let M = L(bj) | |
556 | 536 | let J = if ((T == F)) | |
557 | - | then if ( | |
537 | + | then if (aa) | |
558 | 538 | then H | |
559 | 539 | else throw("The smart contract does not currently support Waves.") | |
560 | 540 | else fromBase58String(T) | |
561 | 541 | let K = if ((U == F)) | |
562 | - | then if ( | |
542 | + | then if (aa) | |
563 | 543 | then H | |
564 | 544 | else throw("The smart contract does not currently support Waves.") | |
565 | 545 | else fromBase58String(U) | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | if ( | |
579 | - | then if (!( | |
546 | + | let bs = fromBase58String(getStringValue(this, A)) | |
547 | + | let bt = fromBase58String(getStringValue(this, C)) | |
548 | + | let bu = fromBase58String(getStringValue(this, B)) | |
549 | + | let bv = fromBase58String(getStringValue(this, D)) | |
550 | + | let aY = fromBase58String(getStringValue(this, a)) | |
551 | + | let bw = fromBase58String(getStringValue(this, E)) | |
552 | + | let aZ = getStringValue(this, (b + I(T, U))) | |
553 | + | let bb = N(ba, I(T, U)) | |
554 | + | let bL = V(ba, bj) | |
555 | + | let bM = ab(aZ, true) | |
556 | + | let bx = ab(((I(T, U) + "_") + T), false) | |
557 | + | let by = ab(((I(T, U) + "_") + U), false) | |
558 | + | if (aW) | |
559 | + | then if (!(br)) | |
580 | 560 | then if (!((T == U))) | |
581 | - | then if (if (if (if (if (if (if (if ((J == bt)) | |
561 | + | then if (if (if (if (if (if (if (if ((J == bs)) | |
562 | + | then true | |
563 | + | else (J == bt)) | |
582 | 564 | then true | |
583 | 565 | else (J == bu)) | |
584 | 566 | then true | |
585 | 567 | else (J == bv)) | |
586 | 568 | then true | |
587 | - | else (J == bw)) | |
588 | - | then true | |
589 | - | else (J == aZ)) | |
569 | + | else (J == aY)) | |
590 | 570 | then true | |
591 | 571 | else (J == H)) | |
592 | 572 | then true | |
593 | - | else (J == bx)) | |
594 | - | then if (if (if (if (if (if ((K == bt)) | |
573 | + | else (J == bw)) | |
574 | + | then if (if (if (if (if (if ((K == bs)) | |
575 | + | then true | |
576 | + | else (K == bt)) | |
595 | 577 | then true | |
596 | 578 | else (K == bu)) | |
597 | 579 | then true | |
598 | 580 | else (K == bv)) | |
599 | 581 | then true | |
600 | - | else (K == bw)) | |
601 | - | then true | |
602 | - | else (K == aZ)) | |
582 | + | else (K == aY)) | |
603 | 583 | then true | |
604 | 584 | else (K == H)) | |
605 | 585 | then true | |
606 | - | else (K == | |
586 | + | else (K == bw) | |
607 | 587 | else false) | |
608 | 588 | then if ((M != false)) | |
609 | - | then if (!(( | |
610 | - | then if ((( | |
611 | - | then if (if (( | |
589 | + | then if (!((bb == 0))) | |
590 | + | then if (((bb - bL) >= bK)) | |
591 | + | then if (if ((bx > 2)) | |
612 | 592 | then true | |
613 | - | else ( | |
593 | + | else (by > 2)) | |
614 | 594 | then { | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | if ((r.payments[0].assetId == fromBase58String( | |
627 | - | then if (( | |
628 | - | then [Burn(fromBase58String( | |
629 | - | else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString( | |
595 | + | let bN = (toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bM)) * toBigInt(bx)) / toBigInt(i))) - 1) | |
596 | + | let bO = (toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bM)) * toBigInt(by)) / toBigInt(i))) - 1) | |
597 | + | let bH = R(I(T, U), T) | |
598 | + | let bI = R(I(T, U), U) | |
599 | + | let bF = P(ba, I(T, U), T) | |
600 | + | let bG = P(ba, I(T, U), U) | |
601 | + | let bP = (bF - bN) | |
602 | + | let bQ = (bG - bO) | |
603 | + | let bR = (bb - bK) | |
604 | + | let bS = (bH - bN) | |
605 | + | let bT = (bI - bO) | |
606 | + | if ((r.payments[0].assetId == fromBase58String(aZ))) | |
607 | + | then if ((bK == r.payments[0].amount)) | |
608 | + | then [Burn(fromBase58String(aZ), bK), ScriptTransfer(Address(r.caller.bytes), bN, J), ScriptTransfer(Address(r.caller.bytes), bO, K), IntegerEntry(S(T, U, ba), height), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + T), bP), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + U), bQ), IntegerEntry(((I(T, U) + "_") + ba), bR), IntegerEntry(((I(T, U) + "_") + T), bS), IntegerEntry(((I(T, U) + "_") + U), bT), IntegerEntry(T, (p(T) - bN)), IntegerEntry(U, (p(U) - bO)), IntegerEntry(aZ, (p(aZ) - bK))] | |
609 | + | else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString(bK))) | |
630 | 610 | else throw("Requires an lp asset as payment to remove locked amounts.") | |
631 | 611 | } | |
632 | 612 | else throw("Pool has no liquidity.") | |
633 | - | else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString( | |
613 | + | else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString(bK))) | |
634 | 614 | else throw("You have no locked values in the pool") | |
635 | 615 | else throw("Invalid Pool Key.") | |
636 | 616 | else throw("Invalid Asset1 or Asset2!") | |
643 | 623 | ||
644 | 624 | @Callable(r) | |
645 | 625 | func swap (T,U) = { | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let M = L( | |
626 | + | let ba = toBase58String(r.caller.bytes) | |
627 | + | let aa = getBooleanValue(this, G) | |
628 | + | let aW = getBooleanValue(this, u) | |
629 | + | let bU = getBooleanValue(this, w) | |
630 | + | let bj = I(T, U) | |
631 | + | let M = L(bj) | |
652 | 632 | let J = r.payments[0].assetId | |
653 | - | let | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
633 | + | let bs = fromBase58String(getStringValue(this, A)) | |
634 | + | let bt = fromBase58String(getStringValue(this, C)) | |
635 | + | let bu = fromBase58String(getStringValue(this, B)) | |
636 | + | let bv = fromBase58String(getStringValue(this, D)) | |
637 | + | let aY = fromBase58String(getStringValue(this, a)) | |
638 | + | let bw = fromBase58String(getStringValue(this, E)) | |
639 | + | let aZ = getStringValue(this, (b + I(T, U))) | |
640 | + | let bV = ab(((I(T, U) + "_") + T), false) | |
641 | + | let bW = ab(((I(T, U) + "_") + U), false) | |
642 | + | let bX = getIntegerValue(this, g) | |
643 | + | let bY = (toBigInt(r.payments[0].amount) * fraction(toBigInt(i), toBigInt(bW), toBigInt(bV))) | |
644 | + | let bZ = toInt(((bY - ((bY / toBigInt(bX)) * toBigInt(100))) / toBigInt(i))) | |
645 | + | let ca = (toBigInt(r.payments[0].amount) * fraction(toBigInt(i), toBigInt(bV), toBigInt(bW))) | |
646 | + | let cb = toInt(((ca - ((ca / toBigInt(bX)) * toBigInt(100))) / toBigInt(i))) | |
647 | + | let cc = if (if ((J == unit)) | |
668 | 648 | then (T == F) | |
669 | 649 | else false) | |
670 | - | then | |
650 | + | then bZ | |
671 | 651 | else if ((J == fromBase58String(T))) | |
672 | - | then | |
673 | - | else | |
674 | - | let | |
652 | + | then bZ | |
653 | + | else cb | |
654 | + | let cd = if ((J == unit)) | |
675 | 655 | then F | |
676 | 656 | else if ((J == fromBase58String(T))) | |
677 | 657 | then T | |
678 | 658 | else U | |
679 | - | let | |
659 | + | let ce = if ((J == unit)) | |
680 | 660 | then F | |
681 | 661 | else if ((J == fromBase58String(T))) | |
682 | 662 | then U | |
683 | 663 | else T | |
684 | - | let | |
664 | + | let cf = if ((J == unit)) | |
685 | 665 | then H | |
686 | 666 | else if ((J == fromBase58String(T))) | |
687 | 667 | then fromBase58String(U) | |
688 | 668 | else fromBase58String(T) | |
689 | - | if ( | |
690 | - | then if (!( | |
669 | + | if (aW) | |
670 | + | then if (!(bU)) | |
691 | 671 | then if (if (!((T == U))) | |
692 | - | then if ( | |
672 | + | then if (X(J, T, aa)) | |
693 | 673 | then true | |
694 | - | else | |
674 | + | else X(J, U, aa) | |
695 | 675 | else false) | |
696 | - | then if (if (if (if (if (if (if ((J == bt)) | |
676 | + | then if (if (if (if (if (if (if ((J == bs)) | |
677 | + | then true | |
678 | + | else (J == bt)) | |
697 | 679 | then true | |
698 | 680 | else (J == bu)) | |
699 | 681 | then true | |
700 | 682 | else (J == bv)) | |
701 | 683 | then true | |
684 | + | else (J == aY)) | |
685 | + | then true | |
702 | 686 | else (J == bw)) | |
703 | - | then true | |
704 | - | else (J == aZ)) | |
705 | - | then true | |
706 | - | else (J == bx)) | |
707 | 687 | then true | |
708 | 688 | else (J == H)) | |
709 | 689 | then if ((M != false)) | |
710 | - | then if ((r.payments[1].assetId == | |
690 | + | then if ((r.payments[1].assetId == aY)) | |
711 | 691 | then if ((r.payments[1].amount == 300000)) | |
712 | - | then if (if (( | |
692 | + | then if (if ((bV > 2)) | |
713 | 693 | then true | |
714 | - | else ( | |
715 | - | then [ScriptTransfer(Address(r.caller.bytes), | |
694 | + | else (bW > 2)) | |
695 | + | then [ScriptTransfer(Address(r.caller.bytes), cc, cf), IntegerEntry(ce, (p(ce) - cc)), IntegerEntry(((I(T, U) + "_") + ce), (R(I(T, U), ce) - cc)), IntegerEntry(((I(T, U) + "_") + cd), (R(I(T, U), cd) + r.payments[0].amount)), IntegerEntry(cd, (p(cd) + r.payments[0].amount)), IntegerEntry(toBase58String(aY), (p(toBase58String(aY)) + r.payments[1].amount))] | |
716 | 696 | else throw("Pool has no liquidity.") | |
717 | 697 | else throw("Swap denied! 0.003 AxAi is required for the swap fee.") | |
718 | 698 | else throw("Invalid rate asset") | |
724 | 704 | } | |
725 | 705 | ||
726 | 706 | ||
727 | - | @Verifier( | |
728 | - | func | |
729 | - | let q = | |
707 | + | @Verifier(cg) | |
708 | + | func ch () = { | |
709 | + | let q = cg | |
730 | 710 | if ($isInstanceOf(q, "Order")) | |
731 | 711 | then { | |
732 | - | let | |
712 | + | let ci = q | |
733 | 713 | true | |
734 | 714 | } | |
735 | 715 | else if ($isInstanceOf(q, "ExchangeTransaction")) | |
736 | 716 | then { | |
737 | - | let | |
717 | + | let cj = q | |
738 | 718 | true | |
739 | 719 | } | |
740 | 720 | else if ($isInstanceOf(q, "TransferTransaction")) | |
741 | 721 | then { | |
742 | - | let | |
743 | - | ( | |
722 | + | let ck = q | |
723 | + | (ck.recipient == Address(fromBase58String(getStringValue(this, "admin")))) | |
744 | 724 | } | |
745 | - | else sigVerify( | |
725 | + | else sigVerify(cg.bodyBytes, cg.proofs[0], cg.senderPublicKey) | |
746 | 726 | } | |
747 | 727 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "main_asset" | |
5 | 5 | ||
6 | 6 | let b = "lp_asset_" | |
7 | 7 | ||
8 | 8 | let c = "pool__" | |
9 | 9 | ||
10 | 10 | let d = "STAKING_AMOUNT_" | |
11 | 11 | ||
12 | 12 | let e = "LEASE_AMOUNT_" | |
13 | 13 | ||
14 | 14 | let f = "ID_" | |
15 | 15 | ||
16 | 16 | let g = "percentage_rate_fee" | |
17 | 17 | ||
18 | 18 | let h = "Deposit_Height_Of_" | |
19 | 19 | ||
20 | 20 | let i = 100000000 | |
21 | 21 | ||
22 | 22 | let j = 1000000 | |
23 | 23 | ||
24 | 24 | let k = 10000000000 | |
25 | 25 | ||
26 | 26 | func l (m) = toString(valueOrErrorMessage(addressFromString(m), (("Can't parse " + m) + " as address"))) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (o) = toBase58String(valueOrErrorMessage(value(assetInfo(fromBase58String(o))).id, (("Asset Id: " + o) + " is invalid."))) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func p (o) = { | |
33 | 33 | let q = getInteger(this, o) | |
34 | 34 | if ($isInstanceOf(q, "Int")) | |
35 | 35 | then { | |
36 | 36 | let r = q | |
37 | 37 | r | |
38 | 38 | } | |
39 | 39 | else 0 | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func s (o) = { | |
44 | 44 | let q = assetInfo(o) | |
45 | 45 | if ($isInstanceOf(q, "Asset")) | |
46 | 46 | then { | |
47 | 47 | let t = q | |
48 | 48 | t.name | |
49 | 49 | } | |
50 | 50 | else throw("Can't find asset") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | let u = "activate" | |
55 | 55 | ||
56 | 56 | let v = "activate_pools" | |
57 | 57 | ||
58 | 58 | let w = "activate_swap" | |
59 | 59 | ||
60 | 60 | let x = "activate_liquidity" | |
61 | 61 | ||
62 | 62 | let y = "block_distribuition" | |
63 | 63 | ||
64 | 64 | let z = "Total_Tokens_Locked_" | |
65 | 65 | ||
66 | 66 | let A = "usdn_asset" | |
67 | 67 | ||
68 | 68 | let B = "usdt_asset" | |
69 | 69 | ||
70 | 70 | let C = "usdc_asset" | |
71 | 71 | ||
72 | 72 | let D = "ngnn_asset" | |
73 | 73 | ||
74 | 74 | let E = "eurn_asset" | |
75 | 75 | ||
76 | 76 | let F = "WAVES" | |
77 | 77 | ||
78 | 78 | let G = "accept_waves" | |
79 | 79 | ||
80 | 80 | let H = unit | |
81 | 81 | ||
82 | 82 | func I (J,K) = (((c + J) + "_") + K) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func L (M) = { | |
86 | 86 | let q = getInteger(this, M) | |
87 | 87 | if ($isInstanceOf(q, "Int")) | |
88 | 88 | then { | |
89 | 89 | let r = q | |
90 | 90 | r | |
91 | 91 | } | |
92 | 92 | else false | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func N (m,M) = { | |
97 | 97 | let q = getInteger(this, ((M + "_") + m)) | |
98 | 98 | if ($isInstanceOf(q, "Int")) | |
99 | 99 | then { | |
100 | 100 | let O = q | |
101 | 101 | O | |
102 | 102 | } | |
103 | 103 | else 0 | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func P (m,M,t) = { | |
108 | 108 | let q = getInteger(this, ((((m + "_") + M) + "_") + t)) | |
109 | 109 | if ($isInstanceOf(q, "Int")) | |
110 | 110 | then { | |
111 | 111 | let Q = q | |
112 | 112 | Q | |
113 | 113 | } | |
114 | 114 | else 0 | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func R (M,t) = { | |
119 | 119 | let q = getInteger(this, ((M + "_") + t)) | |
120 | 120 | if ($isInstanceOf(q, "Int")) | |
121 | 121 | then { | |
122 | 122 | let Q = q | |
123 | 123 | Q | |
124 | 124 | } | |
125 | 125 | else 1 | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func S (T,U,m) = (((h + I(T, U)) + "_") + m) | |
130 | 130 | ||
131 | 131 | ||
132 | - | func V (t) = { | |
133 | - | let q = t | |
134 | - | if ($isInstanceOf(q, "ByteVector")) | |
135 | - | then { | |
136 | - | let O = q | |
137 | - | value(assetInfo(O)).decimals | |
138 | - | } | |
139 | - | else 8 | |
140 | - | } | |
141 | - | ||
142 | - | ||
143 | - | func W (m,M) = { | |
132 | + | func V (m,M) = { | |
144 | 133 | let q = getInteger(this, ((("STAKE_LP_" + m) + "_") + M)) | |
145 | 134 | if ($isInstanceOf(q, "Int")) | |
146 | 135 | then { | |
147 | 136 | let Q = q | |
148 | 137 | Q | |
149 | 138 | } | |
150 | 139 | else 0 | |
151 | 140 | } | |
152 | 141 | ||
153 | 142 | ||
154 | - | func | |
143 | + | func W () = { | |
155 | 144 | let q = getString(this, "admin") | |
156 | 145 | if ($isInstanceOf(q, "String")) | |
157 | 146 | then { | |
158 | 147 | let O = q | |
159 | 148 | Address(fromBase58String(O)) | |
160 | 149 | } | |
161 | 150 | else this | |
162 | 151 | } | |
163 | 152 | ||
164 | 153 | ||
165 | - | func | |
166 | - | then ( | |
154 | + | func X (Y,Z,aa) = if (if ((Y == H)) | |
155 | + | then (Z == "WAVES") | |
167 | 156 | else false) | |
168 | - | then if ( | |
157 | + | then if (aa) | |
169 | 158 | then true | |
170 | 159 | else throw("The smart contract does not currently support Waves.") | |
171 | - | else if (( | |
160 | + | else if ((Y == fromBase58String(Z))) | |
172 | 161 | then true | |
173 | 162 | else false | |
174 | 163 | ||
175 | 164 | ||
176 | - | func | |
165 | + | func ab (M,ac) = { | |
177 | 166 | let q = getInteger(this, M) | |
178 | 167 | if ($isInstanceOf(q, "Int")) | |
179 | 168 | then { | |
180 | 169 | let Q = q | |
181 | 170 | Q | |
182 | 171 | } | |
183 | - | else if ( | |
172 | + | else if (ac) | |
184 | 173 | then (1 * i) | |
185 | 174 | else 1 | |
186 | 175 | } | |
187 | 176 | ||
188 | 177 | ||
189 | 178 | @Callable(r) | |
190 | - | func constructor (ae,af,ag,ah,ai,aj,ak,al | |
191 | - | let | |
179 | + | func constructor (ad,ae,af,ag,ah,ai,aj,ak,al) = { | |
180 | + | let am = I(af, F) | |
192 | 181 | if (if ((r.caller == this)) | |
193 | 182 | then true | |
194 | - | else (r.caller == | |
195 | - | then if ((valueOrElse(getInteger(this, | |
183 | + | else (r.caller == W())) | |
184 | + | then if ((valueOrElse(getInteger(this, am), 0) == 0)) | |
196 | 185 | then { | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | let | |
212 | - | let | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | [StringEntry(a, ae), StringEntry( | |
186 | + | let an = I(ae, af) | |
187 | + | let ao = I(ae, ag) | |
188 | + | let ap = I(ae, ah) | |
189 | + | let aq = I(ae, F) | |
190 | + | let ar = I(ae, ad) | |
191 | + | let as = I(ae, ai) | |
192 | + | let at = I(ag, af) | |
193 | + | let au = I(ag, ah) | |
194 | + | let av = I(ag, F) | |
195 | + | let aw = I(ag, ad) | |
196 | + | let ax = I(ag, ai) | |
197 | + | let ay = I(af, ah) | |
198 | + | let az = I(af, ad) | |
199 | + | let aA = I(af, ai) | |
200 | + | let aB = I(ah, F) | |
201 | + | let aC = I(ah, ad) | |
202 | + | let aD = I(ah, ai) | |
203 | + | let aE = I(ad, F) | |
204 | + | let aF = I(ad, ai) | |
205 | + | let aG = I(ai, F) | |
206 | + | [StringEntry(a, ad), StringEntry(A, ae), StringEntry(C, ag), StringEntry(B, af), StringEntry(D, ah), BooleanEntry(G, al), IntegerEntry(g, aj), BooleanEntry(u, true), BooleanEntry(w, false), BooleanEntry(v, false), BooleanEntry(x, false), IntegerEntry(y, ak), IntegerEntry(an, 1), IntegerEntry(aq, 1), IntegerEntry(ao, 1), IntegerEntry(ap, 1), IntegerEntry(ar, 1), IntegerEntry(at, 1), IntegerEntry(au, 1), IntegerEntry(av, 1), IntegerEntry(az, 1), IntegerEntry(ay, 1), IntegerEntry(am, 1), IntegerEntry(aB, 1), IntegerEntry(aC, 1), IntegerEntry(aE, 1), IntegerEntry(aG, 1), IntegerEntry(aF, 1), IntegerEntry(aD, 1), IntegerEntry(ax, 1), IntegerEntry(as, 1), IntegerEntry(aA, 1), IntegerEntry(aw, 1), StringEntry(E, ai)] | |
218 | 207 | } | |
219 | 208 | else throw("Smart Contract has been started") | |
220 | 209 | else throw("Only the Admin itself can invoke this function") | |
221 | 210 | } | |
222 | 211 | ||
223 | 212 | ||
224 | 213 | ||
225 | 214 | @Callable(r) | |
226 | - | func activate ( | |
215 | + | func activate (aH) = if (if ((r.caller == this)) | |
227 | 216 | then true | |
228 | - | else (r.caller == | |
229 | - | then [BooleanEntry(u, | |
217 | + | else (r.caller == W())) | |
218 | + | then [BooleanEntry(u, aH)] | |
230 | 219 | else throw("Only the Admin itself can invoke this function") | |
231 | 220 | ||
232 | 221 | ||
233 | 222 | ||
234 | 223 | @Callable(r) | |
235 | - | func maintenance (aJ,aK | |
224 | + | func maintenance (aI,aJ,aK) = if (if ((r.caller == this)) | |
236 | 225 | then true | |
237 | - | else (r.caller == | |
238 | - | then [BooleanEntry(v, | |
226 | + | else (r.caller == W())) | |
227 | + | then [BooleanEntry(v, aI), BooleanEntry(w, aJ), BooleanEntry(x, aK)] | |
239 | 228 | else throw("Only the Admin itself can invoke this function") | |
240 | 229 | ||
241 | 230 | ||
242 | 231 | ||
243 | 232 | @Callable(r) | |
244 | - | func percentualRateFeeSwapEdit ( | |
233 | + | func percentualRateFeeSwapEdit (aL) = if (if ((r.caller == this)) | |
245 | 234 | then true | |
246 | - | else (r.caller == | |
247 | - | then [IntegerEntry(g, | |
235 | + | else (r.caller == W())) | |
236 | + | then [IntegerEntry(g, aL)] | |
248 | 237 | else throw("Only the Admin itself can invoke this function") | |
249 | 238 | ||
250 | 239 | ||
251 | 240 | ||
252 | 241 | @Callable(r) | |
253 | - | func acceptWaves ( | |
242 | + | func acceptWaves (aM) = if (if ((r.caller == this)) | |
254 | 243 | then true | |
255 | - | else (r.caller == | |
256 | - | then [BooleanEntry(G, | |
244 | + | else (r.caller == W())) | |
245 | + | then [BooleanEntry(G, aM)] | |
257 | 246 | else throw("Only the Admin itself can invoke this function") | |
258 | 247 | ||
259 | 248 | ||
260 | 249 | ||
261 | 250 | @Callable(r) | |
262 | - | func blockDistribution ( | |
251 | + | func blockDistribution (aN) = if (if ((r.caller == this)) | |
263 | 252 | then true | |
264 | - | else (r.caller == | |
265 | - | then [IntegerEntry(y, | |
253 | + | else (r.caller == W())) | |
254 | + | then [IntegerEntry(y, aN)] | |
266 | 255 | else throw("Only the Admin itself can invoke this function") | |
267 | 256 | ||
268 | 257 | ||
269 | 258 | ||
270 | 259 | @Callable(r) | |
271 | 260 | func addAdmin (m) = if (if ((r.caller == this)) | |
272 | 261 | then true | |
273 | - | else (r.caller == | |
262 | + | else (r.caller == W())) | |
274 | 263 | then [StringEntry("admin", m)] | |
275 | 264 | else throw("Only the Admin itself can invoke this function") | |
276 | 265 | ||
277 | 266 | ||
278 | 267 | ||
279 | 268 | @Callable(r) | |
280 | - | func lpAssetCreateForPairPool (J,K,aP | |
281 | - | let | |
269 | + | func lpAssetCreateForPairPool (J,K,aO,aP) = { | |
270 | + | let aQ = if ((J == F)) | |
282 | 271 | then F | |
283 | 272 | else s(fromBase58String(J)) | |
284 | - | let | |
273 | + | let aR = if ((K == F)) | |
285 | 274 | then F | |
286 | 275 | else s(fromBase58String(K)) | |
287 | - | let | |
288 | - | then | |
289 | - | else (( | |
276 | + | let aS = if (aP) | |
277 | + | then aO | |
278 | + | else ((aQ + "_") + aR) | |
290 | 279 | let M = L(I(J, K)) | |
291 | 280 | if (if ((r.caller == this)) | |
292 | 281 | then true | |
293 | - | else (r.caller == | |
282 | + | else (r.caller == W())) | |
294 | 283 | then if ((M != false)) | |
295 | 284 | then { | |
296 | - | let | |
297 | - | let | |
298 | - | [StringEntry((b + I(J, K)), toBase58String( | |
285 | + | let aT = Issue(aS, ((("LP asset for pool liquidity in AxAi Swap pair " + J) + "_") + K), (1 * i), 8, true) | |
286 | + | let aU = calculateAssetId(aT) | |
287 | + | [StringEntry((b + I(J, K)), toBase58String(aU)), aT] | |
299 | 288 | } | |
300 | 289 | else throw("Invalid Pool Key. Try inverting the assets") | |
301 | 290 | else throw("Only the Admin itself can invoke this function") | |
302 | 291 | } | |
303 | 292 | ||
304 | 293 | ||
305 | 294 | ||
306 | 295 | @Callable(r) | |
307 | - | func deposit ( | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
296 | + | func deposit (aV,T,U) = { | |
297 | + | let aW = getBooleanValue(this, u) | |
298 | + | let aX = getBooleanValue(this, x) | |
299 | + | let aY = getStringValue(this, a) | |
300 | + | let aZ = if (aV) | |
312 | 301 | then getStringValue(this, (b + I(T, U))) | |
313 | - | else | |
314 | - | if ( | |
315 | - | then if (!( | |
316 | - | then if ((r.payments[0].assetId != fromBase58String( | |
317 | - | then throw((("Invalid asset! Kindly Deposit Only " + | |
318 | - | else if (!( | |
302 | + | else aY | |
303 | + | if (aW) | |
304 | + | then if (!(aX)) | |
305 | + | then if ((r.payments[0].assetId != fromBase58String(aZ))) | |
306 | + | then throw((("Invalid asset! Kindly Deposit Only " + aY) + " or valid asset lp")) | |
307 | + | else if (!(aV)) | |
319 | 308 | then { | |
320 | - | let | |
321 | - | let | |
322 | - | let q = getInteger(this, | |
309 | + | let ba = toBase58String(r.caller.bytes) | |
310 | + | let bb = { | |
311 | + | let q = getInteger(this, ba) | |
323 | 312 | if ($isInstanceOf(q, "Int")) | |
324 | 313 | then { | |
325 | 314 | let Q = q | |
326 | 315 | Q | |
327 | 316 | } | |
328 | 317 | else 0 | |
329 | 318 | } | |
330 | - | let | |
319 | + | let bc = if ((bb == 0)) | |
331 | 320 | then height | |
332 | - | else valueOrElse(getIntegerValue(this, (h + | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
321 | + | else valueOrElse(getIntegerValue(this, (h + ba)), height) | |
322 | + | let bd = (bb + r.payments[0].amount) | |
323 | + | let be = IntegerEntry(ba, bd) | |
324 | + | let bf = IntegerEntry((h + ba), bc) | |
325 | + | let bg = { | |
337 | 326 | let q = getInteger(this, "Total_Tokens_Locked:") | |
338 | 327 | if ($isInstanceOf(q, "Int")) | |
339 | 328 | then { | |
340 | 329 | let Q = q | |
341 | 330 | Q | |
342 | 331 | } | |
343 | 332 | else 0 | |
344 | 333 | } | |
345 | - | let | |
346 | - | let | |
347 | - | [bf, | |
334 | + | let bh = (bg + r.payments[0].amount) | |
335 | + | let bi = IntegerEntry("Total_Tokens_Locked:", bh) | |
336 | + | [be, bf, bi] | |
348 | 337 | } | |
349 | 338 | else { | |
350 | - | let | |
351 | - | let M = L( | |
339 | + | let bj = I(T, U) | |
340 | + | let M = L(bj) | |
352 | 341 | if ((M != false)) | |
353 | 342 | then { | |
354 | - | let | |
355 | - | let | |
356 | - | let q = getInteger(this, ((("STAKE_LP_" + | |
343 | + | let ba = toBase58String(r.caller.bytes) | |
344 | + | let bb = { | |
345 | + | let q = getInteger(this, ((("STAKE_LP_" + ba) + "_") + bj)) | |
357 | 346 | if ($isInstanceOf(q, "Int")) | |
358 | 347 | then { | |
359 | 348 | let Q = q | |
360 | 349 | Q | |
361 | 350 | } | |
362 | 351 | else 0 | |
363 | 352 | } | |
364 | - | let | |
353 | + | let bc = if ((bb == 0)) | |
365 | 354 | then height | |
366 | - | else valueOrElse(getIntegerValue(this, ((((h + "_") + | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let q = getInteger(this, ("Total_Tokens_LP_Locked_" + | |
355 | + | else valueOrElse(getIntegerValue(this, ((((h + "_") + ba) + "_") + bj)), height) | |
356 | + | let bd = (bb + r.payments[0].amount) | |
357 | + | let be = IntegerEntry(((("STAKE_LP_" + ba) + "_") + bj), bd) | |
358 | + | let bf = IntegerEntry(((((h + "_") + ba) + "_") + bj), height) | |
359 | + | let bg = { | |
360 | + | let q = getInteger(this, ("Total_Tokens_LP_Locked_" + bj)) | |
372 | 361 | if ($isInstanceOf(q, "Int")) | |
373 | 362 | then { | |
374 | 363 | let Q = q | |
375 | 364 | Q | |
376 | 365 | } | |
377 | 366 | else 0 | |
378 | 367 | } | |
379 | - | let | |
380 | - | let | |
381 | - | [bf, | |
368 | + | let bh = (bg + r.payments[0].amount) | |
369 | + | let bi = IntegerEntry(("Total_Tokens_LP_Locked_" + bj), bh) | |
370 | + | [be, bf, bi] | |
382 | 371 | } | |
383 | 372 | else throw("Invalid Pool key.") | |
384 | 373 | } | |
385 | 374 | else throw("liquidity is currently under maintenance.") | |
386 | 375 | else throw("dApp is currently under maintenance.") | |
387 | 376 | } | |
388 | 377 | ||
389 | 378 | ||
390 | 379 | ||
391 | 380 | @Callable(r) | |
392 | - | func remove ( | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | if ( | |
398 | - | then if (!( | |
381 | + | func remove (aV,T,U,bk) = { | |
382 | + | let aW = getBooleanValue(this, u) | |
383 | + | let aX = getBooleanValue(this, x) | |
384 | + | let bl = r.payments[0] | |
385 | + | let aY = fromBase58String(getStringValue(this, a)) | |
386 | + | if (aW) | |
387 | + | then if (!(aX)) | |
399 | 388 | then { | |
400 | - | let | |
401 | - | let | |
402 | - | let q = if ( | |
403 | - | then getIntegerValue(this, ((("STAKE_LP_" + | |
404 | - | else getIntegerValue(this, | |
389 | + | let ba = toBase58String(r.caller.bytes) | |
390 | + | let bb = { | |
391 | + | let q = if (aV) | |
392 | + | then getIntegerValue(this, ((("STAKE_LP_" + ba) + "_") + I(T, U))) | |
393 | + | else getIntegerValue(this, ba) | |
405 | 394 | if ($isInstanceOf(q, "Int")) | |
406 | 395 | then { | |
407 | 396 | let Q = q | |
408 | 397 | Q | |
409 | 398 | } | |
410 | 399 | else 0 | |
411 | 400 | } | |
412 | - | let | |
413 | - | then ((((h + "_") + | |
414 | - | else (h + | |
415 | - | let | |
401 | + | let bm = if (aV) | |
402 | + | then ((((h + "_") + ba) + "_") + I(T, U)) | |
403 | + | else (h + ba) | |
404 | + | let bg = if (aV) | |
416 | 405 | then getIntegerValue(this, ("Total_Tokens_LP_Locked_" + I(T, U))) | |
417 | 406 | else getIntegerValue(this, "Total_Tokens_Locked:") | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | if ((0 > | |
424 | - | then throw(if ( | |
407 | + | let bh = (bg - bk) | |
408 | + | let bn = (height - getIntegerValue(this, bm)) | |
409 | + | let bo = getIntegerValue(this, y) | |
410 | + | let bp = ((bn * bo) * i) | |
411 | + | let bq = (bp / (bg / bk)) | |
412 | + | if ((0 > bk)) | |
413 | + | then throw(if (aV) | |
425 | 414 | then (((("Can't withdraw negative " + T) + "/") + U) + " amount") | |
426 | 415 | else "Can't withdraw negative AxAi amount") | |
427 | 416 | else { | |
428 | - | let | |
429 | - | if ((0 > | |
430 | - | then throw(if ( | |
417 | + | let bd = (bb - bk) | |
418 | + | if ((0 > bd)) | |
419 | + | then throw(if (aV) | |
431 | 420 | then (((("Not enough Asset Lp " + T) + "/") + U) + " balance") | |
432 | 421 | else "Not enough AxAi balance") | |
433 | - | else [IntegerEntry(if ( | |
434 | - | then ((("STAKE_LP_" + | |
435 | - | else | |
422 | + | else [IntegerEntry(if (aV) | |
423 | + | then ((("STAKE_LP_" + ba) + "_") + I(T, U)) | |
424 | + | else ba, bd), IntegerEntry(if (aV) | |
436 | 425 | then ("Total_Tokens_LP_Locked_" + I(T, U)) | |
437 | - | else "Total_Tokens_Locked:", | |
426 | + | else "Total_Tokens_Locked:", bh), ScriptTransfer(r.caller, bk, if (aV) | |
438 | 427 | then fromBase58String(getStringValue(this, (b + I(T, U)))) | |
439 | - | else | |
428 | + | else aY), ScriptTransfer(r.caller, bq, aY)] | |
440 | 429 | } | |
441 | 430 | } | |
442 | 431 | else throw("liquidity is currently under maintenance.") | |
443 | 432 | else throw("dApp is currently under maintenance.") | |
444 | 433 | } | |
445 | 434 | ||
446 | 435 | ||
447 | 436 | ||
448 | 437 | @Callable(r) | |
449 | 438 | func addLiquidity (T,U) = { | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
439 | + | let aW = getBooleanValue(this, u) | |
440 | + | let br = getBooleanValue(this, v) | |
441 | + | let aa = getBooleanValue(this, G) | |
453 | 442 | let M = L(I(T, U)) | |
454 | 443 | let J = r.payments[0].assetId | |
455 | 444 | let K = r.payments[1].assetId | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
445 | + | let bs = fromBase58String(getStringValue(this, A)) | |
446 | + | let bt = fromBase58String(getStringValue(this, C)) | |
447 | + | let bu = fromBase58String(getStringValue(this, B)) | |
448 | + | let bv = fromBase58String(getStringValue(this, D)) | |
449 | + | let bw = fromBase58String(getStringValue(this, E)) | |
450 | + | let aY = fromBase58String(getStringValue(this, a)) | |
451 | + | let aZ = getStringValue(this, (b + I(T, U))) | |
452 | + | let bx = if ((2 > ab(((I(T, U) + "_") + T), false))) | |
464 | 453 | then r.payments[0].amount | |
465 | - | else | |
466 | - | let | |
454 | + | else ab(((I(T, U) + "_") + T), false) | |
455 | + | let by = if ((2 > ab(((I(T, U) + "_") + T), false))) | |
467 | 456 | then r.payments[1].amount | |
468 | - | else | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
457 | + | else ab(((I(T, U) + "_") + U), false) | |
458 | + | let bz = ab(aZ, true) | |
459 | + | let bA = ((bx + by) / bz) | |
460 | + | let bB = (r.payments[0].amount * (by / bx)) | |
461 | + | let bC = (r.payments[1].amount + ((r.payments[1].amount * 2) / 100)) | |
462 | + | let bD = (r.payments[1].amount - ((r.payments[1].amount * 2) / 100)) | |
463 | + | let bE = if (if (if ((r.payments[1].amount == bB)) | |
475 | 464 | then true | |
476 | - | else ( | |
465 | + | else (bC > r.payments[1].amount)) | |
477 | 466 | then true | |
478 | - | else (r.payments[1].amount > | |
467 | + | else (r.payments[1].amount > bD)) | |
479 | 468 | then true | |
480 | 469 | else false | |
481 | - | if ( | |
482 | - | then if (!( | |
470 | + | if (aW) | |
471 | + | then if (!(br)) | |
483 | 472 | then if (if (if (!((J == K))) | |
484 | - | then | |
473 | + | then X(J, T, aa) | |
485 | 474 | else false) | |
486 | - | then | |
475 | + | then X(K, U, aa) | |
487 | 476 | else false) | |
488 | - | then if (if (if (if (if (if (if (if ((J == bt)) | |
477 | + | then if (if (if (if (if (if (if (if ((J == bs)) | |
478 | + | then true | |
479 | + | else (J == bt)) | |
489 | 480 | then true | |
490 | 481 | else (J == bu)) | |
491 | 482 | then true | |
492 | 483 | else (J == bv)) | |
493 | 484 | then true | |
494 | - | else (J == bw)) | |
495 | - | then true | |
496 | - | else (J == aZ)) | |
485 | + | else (J == aY)) | |
497 | 486 | then true | |
498 | 487 | else (J == H)) | |
499 | 488 | then true | |
500 | - | else (J == bx)) | |
501 | - | then if (if (if (if (if (if ((K == bt)) | |
489 | + | else (J == bw)) | |
490 | + | then if (if (if (if (if (if ((K == bs)) | |
491 | + | then true | |
492 | + | else (K == bt)) | |
502 | 493 | then true | |
503 | 494 | else (K == bu)) | |
504 | 495 | then true | |
505 | 496 | else (K == bv)) | |
506 | 497 | then true | |
507 | - | else (K == bw)) | |
508 | - | then true | |
509 | - | else (K == aZ)) | |
498 | + | else (K == aY)) | |
510 | 499 | then true | |
511 | 500 | else (K == H)) | |
512 | 501 | then true | |
513 | - | else (K == | |
502 | + | else (K == bw) | |
514 | 503 | else false) | |
515 | 504 | then if ((M != false)) | |
516 | - | then if ( | |
505 | + | then if (bE) | |
517 | 506 | then { | |
518 | - | let bb = toBase58String(r.caller.bytes) | |
519 | - | let bc = N(bb, I(T, U)) | |
520 | - | let bG = P(bb, I(T, U), T) | |
521 | - | let bH = P(bb, I(T, U), U) | |
522 | - | let bI = R(I(T, U), T) | |
523 | - | let bJ = R(I(T, U), U) | |
524 | - | let bK = V(r.payments[1].assetId) | |
525 | - | let bL = if ((bK == 8)) | |
526 | - | then 0 | |
527 | - | else 2 | |
528 | - | let bM = if ((by == r.payments[0].amount)) | |
507 | + | let ba = toBase58String(r.caller.bytes) | |
508 | + | let bb = N(ba, I(T, U)) | |
509 | + | let bF = P(ba, I(T, U), T) | |
510 | + | let bG = P(ba, I(T, U), U) | |
511 | + | let bH = R(I(T, U), T) | |
512 | + | let bI = R(I(T, U), U) | |
513 | + | let bJ = if ((bx == r.payments[0].amount)) | |
529 | 514 | then (1 * i) | |
530 | - | else ((r.payments[0].amount + r.payments[1].amount) / ((by + bz) / (bA - bL))) | |
531 | - | let bN = (bG + r.payments[0].amount) | |
532 | - | let bO = (bH + r.payments[1].amount) | |
533 | - | let bP = (bc + bM) | |
534 | - | let bQ = (bI + r.payments[0].amount) | |
535 | - | let bR = (bJ + r.payments[1].amount) | |
536 | - | [Reissue(fromBase58String(ba), bM, true), ScriptTransfer(Address(r.caller.bytes), bM, fromBase58String(ba)), IntegerEntry(S(T, U, bb), height), IntegerEntry(((((bb + "_") + I(T, U)) + "_") + T), bN), IntegerEntry(((((bb + "_") + I(T, U)) + "_") + U), bO), IntegerEntry(((I(T, U) + "_") + bb), bP), IntegerEntry(((I(T, U) + "_") + T), bQ), IntegerEntry(((I(T, U) + "_") + U), bR), IntegerEntry(T, (p(T) + r.payments[0].amount)), IntegerEntry(U, (p(U) + r.payments[1].amount)), IntegerEntry(ba, (p(ba) + bM))] | |
515 | + | else toInt(((((toBigInt(r.payments[0].amount) * toBigInt(i)) + (toBigInt(r.payments[1].amount) * toBigInt(i))) / (((toBigInt(bx) * toBigInt(i)) + (toBigInt(by) * toBigInt(i))) / (toBigInt(bz) * toBigInt(i)))) / toBigInt(i))) | |
516 | + | [throw(("details lp" + toString(bJ)))] | |
537 | 517 | } | |
538 | - | else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((r.payments[0].amount * ( | |
518 | + | else throw(((((("Payment of invalid 1/1 amounts to the Pool. Try Asset2: {value:" + toString((r.payments[0].amount * (by / bx)))) + "} Received: ") + toString(r.payments[1].amount)) + " Validate: ") + toString(bE))) | |
539 | 519 | else throw("Invalid Pool Key.") | |
540 | 520 | else throw("Invalid Asset1 or Asset2!") | |
541 | 521 | else throw("Asset1 cannot be equal to Asset2") | |
542 | 522 | else throw("liquidity is currently under maintenance.") | |
543 | 523 | else throw("dApp is currently under maintenance.") | |
544 | 524 | } | |
545 | 525 | ||
546 | 526 | ||
547 | 527 | ||
548 | 528 | @Callable(r) | |
549 | - | func removeLiquidity (T,U, | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let M = L( | |
529 | + | func removeLiquidity (T,U,bK) = { | |
530 | + | let ba = toBase58String(r.caller.bytes) | |
531 | + | let aW = getBooleanValue(this, u) | |
532 | + | let br = getBooleanValue(this, v) | |
533 | + | let aa = getBooleanValue(this, G) | |
534 | + | let bj = I(T, U) | |
535 | + | let M = L(bj) | |
556 | 536 | let J = if ((T == F)) | |
557 | - | then if ( | |
537 | + | then if (aa) | |
558 | 538 | then H | |
559 | 539 | else throw("The smart contract does not currently support Waves.") | |
560 | 540 | else fromBase58String(T) | |
561 | 541 | let K = if ((U == F)) | |
562 | - | then if ( | |
542 | + | then if (aa) | |
563 | 543 | then H | |
564 | 544 | else throw("The smart contract does not currently support Waves.") | |
565 | 545 | else fromBase58String(U) | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | if ( | |
579 | - | then if (!( | |
546 | + | let bs = fromBase58String(getStringValue(this, A)) | |
547 | + | let bt = fromBase58String(getStringValue(this, C)) | |
548 | + | let bu = fromBase58String(getStringValue(this, B)) | |
549 | + | let bv = fromBase58String(getStringValue(this, D)) | |
550 | + | let aY = fromBase58String(getStringValue(this, a)) | |
551 | + | let bw = fromBase58String(getStringValue(this, E)) | |
552 | + | let aZ = getStringValue(this, (b + I(T, U))) | |
553 | + | let bb = N(ba, I(T, U)) | |
554 | + | let bL = V(ba, bj) | |
555 | + | let bM = ab(aZ, true) | |
556 | + | let bx = ab(((I(T, U) + "_") + T), false) | |
557 | + | let by = ab(((I(T, U) + "_") + U), false) | |
558 | + | if (aW) | |
559 | + | then if (!(br)) | |
580 | 560 | then if (!((T == U))) | |
581 | - | then if (if (if (if (if (if (if (if ((J == bt)) | |
561 | + | then if (if (if (if (if (if (if (if ((J == bs)) | |
562 | + | then true | |
563 | + | else (J == bt)) | |
582 | 564 | then true | |
583 | 565 | else (J == bu)) | |
584 | 566 | then true | |
585 | 567 | else (J == bv)) | |
586 | 568 | then true | |
587 | - | else (J == bw)) | |
588 | - | then true | |
589 | - | else (J == aZ)) | |
569 | + | else (J == aY)) | |
590 | 570 | then true | |
591 | 571 | else (J == H)) | |
592 | 572 | then true | |
593 | - | else (J == bx)) | |
594 | - | then if (if (if (if (if (if ((K == bt)) | |
573 | + | else (J == bw)) | |
574 | + | then if (if (if (if (if (if ((K == bs)) | |
575 | + | then true | |
576 | + | else (K == bt)) | |
595 | 577 | then true | |
596 | 578 | else (K == bu)) | |
597 | 579 | then true | |
598 | 580 | else (K == bv)) | |
599 | 581 | then true | |
600 | - | else (K == bw)) | |
601 | - | then true | |
602 | - | else (K == aZ)) | |
582 | + | else (K == aY)) | |
603 | 583 | then true | |
604 | 584 | else (K == H)) | |
605 | 585 | then true | |
606 | - | else (K == | |
586 | + | else (K == bw) | |
607 | 587 | else false) | |
608 | 588 | then if ((M != false)) | |
609 | - | then if (!(( | |
610 | - | then if ((( | |
611 | - | then if (if (( | |
589 | + | then if (!((bb == 0))) | |
590 | + | then if (((bb - bL) >= bK)) | |
591 | + | then if (if ((bx > 2)) | |
612 | 592 | then true | |
613 | - | else ( | |
593 | + | else (by > 2)) | |
614 | 594 | then { | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | if ((r.payments[0].assetId == fromBase58String( | |
627 | - | then if (( | |
628 | - | then [Burn(fromBase58String( | |
629 | - | else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString( | |
595 | + | let bN = (toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bM)) * toBigInt(bx)) / toBigInt(i))) - 1) | |
596 | + | let bO = (toInt(((fraction(toBigInt(r.payments[0].amount), toBigInt(i), toBigInt(bM)) * toBigInt(by)) / toBigInt(i))) - 1) | |
597 | + | let bH = R(I(T, U), T) | |
598 | + | let bI = R(I(T, U), U) | |
599 | + | let bF = P(ba, I(T, U), T) | |
600 | + | let bG = P(ba, I(T, U), U) | |
601 | + | let bP = (bF - bN) | |
602 | + | let bQ = (bG - bO) | |
603 | + | let bR = (bb - bK) | |
604 | + | let bS = (bH - bN) | |
605 | + | let bT = (bI - bO) | |
606 | + | if ((r.payments[0].assetId == fromBase58String(aZ))) | |
607 | + | then if ((bK == r.payments[0].amount)) | |
608 | + | then [Burn(fromBase58String(aZ), bK), ScriptTransfer(Address(r.caller.bytes), bN, J), ScriptTransfer(Address(r.caller.bytes), bO, K), IntegerEntry(S(T, U, ba), height), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + T), bP), IntegerEntry(((((ba + "_") + I(T, U)) + "_") + U), bQ), IntegerEntry(((I(T, U) + "_") + ba), bR), IntegerEntry(((I(T, U) + "_") + T), bS), IntegerEntry(((I(T, U) + "_") + U), bT), IntegerEntry(T, (p(T) - bN)), IntegerEntry(U, (p(U) - bO)), IntegerEntry(aZ, (p(aZ) - bK))] | |
609 | + | else throw(("Withdrawal amount lower than asset lp amount. Your Lp amount available: " + toString(bK))) | |
630 | 610 | else throw("Requires an lp asset as payment to remove locked amounts.") | |
631 | 611 | } | |
632 | 612 | else throw("Pool has no liquidity.") | |
633 | - | else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString( | |
613 | + | else throw(("Amount to be withdrawn greater than the amount available for withdrawal. Available: " + toString(bK))) | |
634 | 614 | else throw("You have no locked values in the pool") | |
635 | 615 | else throw("Invalid Pool Key.") | |
636 | 616 | else throw("Invalid Asset1 or Asset2!") | |
637 | 617 | else throw("Asset1 cannot be equal to Asset2") | |
638 | 618 | else throw("liquidity is currently under maintenance.") | |
639 | 619 | else throw("dApp is currently under maintenance.") | |
640 | 620 | } | |
641 | 621 | ||
642 | 622 | ||
643 | 623 | ||
644 | 624 | @Callable(r) | |
645 | 625 | func swap (T,U) = { | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let M = L( | |
626 | + | let ba = toBase58String(r.caller.bytes) | |
627 | + | let aa = getBooleanValue(this, G) | |
628 | + | let aW = getBooleanValue(this, u) | |
629 | + | let bU = getBooleanValue(this, w) | |
630 | + | let bj = I(T, U) | |
631 | + | let M = L(bj) | |
652 | 632 | let J = r.payments[0].assetId | |
653 | - | let | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
633 | + | let bs = fromBase58String(getStringValue(this, A)) | |
634 | + | let bt = fromBase58String(getStringValue(this, C)) | |
635 | + | let bu = fromBase58String(getStringValue(this, B)) | |
636 | + | let bv = fromBase58String(getStringValue(this, D)) | |
637 | + | let aY = fromBase58String(getStringValue(this, a)) | |
638 | + | let bw = fromBase58String(getStringValue(this, E)) | |
639 | + | let aZ = getStringValue(this, (b + I(T, U))) | |
640 | + | let bV = ab(((I(T, U) + "_") + T), false) | |
641 | + | let bW = ab(((I(T, U) + "_") + U), false) | |
642 | + | let bX = getIntegerValue(this, g) | |
643 | + | let bY = (toBigInt(r.payments[0].amount) * fraction(toBigInt(i), toBigInt(bW), toBigInt(bV))) | |
644 | + | let bZ = toInt(((bY - ((bY / toBigInt(bX)) * toBigInt(100))) / toBigInt(i))) | |
645 | + | let ca = (toBigInt(r.payments[0].amount) * fraction(toBigInt(i), toBigInt(bV), toBigInt(bW))) | |
646 | + | let cb = toInt(((ca - ((ca / toBigInt(bX)) * toBigInt(100))) / toBigInt(i))) | |
647 | + | let cc = if (if ((J == unit)) | |
668 | 648 | then (T == F) | |
669 | 649 | else false) | |
670 | - | then | |
650 | + | then bZ | |
671 | 651 | else if ((J == fromBase58String(T))) | |
672 | - | then | |
673 | - | else | |
674 | - | let | |
652 | + | then bZ | |
653 | + | else cb | |
654 | + | let cd = if ((J == unit)) | |
675 | 655 | then F | |
676 | 656 | else if ((J == fromBase58String(T))) | |
677 | 657 | then T | |
678 | 658 | else U | |
679 | - | let | |
659 | + | let ce = if ((J == unit)) | |
680 | 660 | then F | |
681 | 661 | else if ((J == fromBase58String(T))) | |
682 | 662 | then U | |
683 | 663 | else T | |
684 | - | let | |
664 | + | let cf = if ((J == unit)) | |
685 | 665 | then H | |
686 | 666 | else if ((J == fromBase58String(T))) | |
687 | 667 | then fromBase58String(U) | |
688 | 668 | else fromBase58String(T) | |
689 | - | if ( | |
690 | - | then if (!( | |
669 | + | if (aW) | |
670 | + | then if (!(bU)) | |
691 | 671 | then if (if (!((T == U))) | |
692 | - | then if ( | |
672 | + | then if (X(J, T, aa)) | |
693 | 673 | then true | |
694 | - | else | |
674 | + | else X(J, U, aa) | |
695 | 675 | else false) | |
696 | - | then if (if (if (if (if (if (if ((J == bt)) | |
676 | + | then if (if (if (if (if (if (if ((J == bs)) | |
677 | + | then true | |
678 | + | else (J == bt)) | |
697 | 679 | then true | |
698 | 680 | else (J == bu)) | |
699 | 681 | then true | |
700 | 682 | else (J == bv)) | |
701 | 683 | then true | |
684 | + | else (J == aY)) | |
685 | + | then true | |
702 | 686 | else (J == bw)) | |
703 | - | then true | |
704 | - | else (J == aZ)) | |
705 | - | then true | |
706 | - | else (J == bx)) | |
707 | 687 | then true | |
708 | 688 | else (J == H)) | |
709 | 689 | then if ((M != false)) | |
710 | - | then if ((r.payments[1].assetId == | |
690 | + | then if ((r.payments[1].assetId == aY)) | |
711 | 691 | then if ((r.payments[1].amount == 300000)) | |
712 | - | then if (if (( | |
692 | + | then if (if ((bV > 2)) | |
713 | 693 | then true | |
714 | - | else ( | |
715 | - | then [ScriptTransfer(Address(r.caller.bytes), | |
694 | + | else (bW > 2)) | |
695 | + | then [ScriptTransfer(Address(r.caller.bytes), cc, cf), IntegerEntry(ce, (p(ce) - cc)), IntegerEntry(((I(T, U) + "_") + ce), (R(I(T, U), ce) - cc)), IntegerEntry(((I(T, U) + "_") + cd), (R(I(T, U), cd) + r.payments[0].amount)), IntegerEntry(cd, (p(cd) + r.payments[0].amount)), IntegerEntry(toBase58String(aY), (p(toBase58String(aY)) + r.payments[1].amount))] | |
716 | 696 | else throw("Pool has no liquidity.") | |
717 | 697 | else throw("Swap denied! 0.003 AxAi is required for the swap fee.") | |
718 | 698 | else throw("Invalid rate asset") | |
719 | 699 | else throw("Invalid Swap Key.") | |
720 | 700 | else throw("Invalid Asset1 or Asset2!") | |
721 | 701 | else throw("Asset1 cannot be equal to Asset2") | |
722 | 702 | else throw("Swap is currently under maintenance.") | |
723 | 703 | else throw("dApp is currently under maintenance.") | |
724 | 704 | } | |
725 | 705 | ||
726 | 706 | ||
727 | - | @Verifier( | |
728 | - | func | |
729 | - | let q = | |
707 | + | @Verifier(cg) | |
708 | + | func ch () = { | |
709 | + | let q = cg | |
730 | 710 | if ($isInstanceOf(q, "Order")) | |
731 | 711 | then { | |
732 | - | let | |
712 | + | let ci = q | |
733 | 713 | true | |
734 | 714 | } | |
735 | 715 | else if ($isInstanceOf(q, "ExchangeTransaction")) | |
736 | 716 | then { | |
737 | - | let | |
717 | + | let cj = q | |
738 | 718 | true | |
739 | 719 | } | |
740 | 720 | else if ($isInstanceOf(q, "TransferTransaction")) | |
741 | 721 | then { | |
742 | - | let | |
743 | - | ( | |
722 | + | let ck = q | |
723 | + | (ck.recipient == Address(fromBase58String(getStringValue(this, "admin")))) | |
744 | 724 | } | |
745 | - | else sigVerify( | |
725 | + | else sigVerify(cg.bodyBytes, cg.proofs[0], cg.senderPublicKey) | |
746 | 726 | } | |
747 | 727 |
github/deemru/w8io/169f3d6 234.07 ms ◑