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