tx · 98ZUVjDaiPWp71DQnBEQ9aicCu5DqRWQiE6FhBvtBuLS 3MudYAdb2aRxJGx7YHraAtN7v6dXCVHUFKx: -0.04500000 Waves 2023.08.07 13:05 [2700029] smart account 3MudYAdb2aRxJGx7YHraAtN7v6dXCVHUFKx > SELF 0.00000000 Waves
{ "type": 13, "id": "98ZUVjDaiPWp71DQnBEQ9aicCu5DqRWQiE6FhBvtBuLS", "fee": 4500000, "feeAssetId": null, "timestamp": 1691402826001, "version": 2, "chainId": 84, "sender": "3MudYAdb2aRxJGx7YHraAtN7v6dXCVHUFKx", "senderPublicKey": "FGk4k1DFjx16u4CWSy96FFccU9X7X6Q4sw1NhmDv3Vr4", "proofs": [ "5cApvWhbexyS7fHQby7LiqwpEoT3p7JX5F8KyQeJHm1gNri99eAwV6fwJhJ3Z98YXFcZTqNcSd1xsLXcbcBD4SkB", "62wYMrsb3xNHZv6KmmeCBn4Dw1G3Gtkg7wJhbW9Rs7FtX4HWAxTxLAHTN9etsZs9qqjoGrUGTGQN355Gqp4PYbe2" ], "script": "base64:BgJiCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERJYAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQALa0RlcHJlY2F0ZWQCC2RlcHJlY2F0ZWRfAAlrQXNzZXRJZEECCkFfYXNzZXRfaWQACWtBc3NldElkQgIKQl9hc3NldF9pZAAJa0JhbGFuY2VBAg9BX2Fzc2V0X2JhbGFuY2UACWtCYWxhbmNlQgIPQl9hc3NldF9iYWxhbmNlAA1rQmFsYW5jZUluaXRBAgxBX2Fzc2V0X2luaXQADWtCYWxhbmNlSW5pdEICDEJfYXNzZXRfaW5pdAANa1NoYXJlQXNzZXRJZAIOc2hhcmVfYXNzZXRfaWQAEWt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ZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQxhZG1pblB1YktleTEAAQAABBJhZG1pblB1YktleTJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQxhZG1pblB1YktleTIAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAIFE211bHRpU2lnbmVkQnlBZG1pbnPdxt/T", "height": 2700029, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GtyEW4kTgYB5RNo65QhbodL8E3HfUgtbsjM8mfMtRZxW Next: Ah2TwbVLgDyvgvXroG4QKQaLDcQgyioyp7Wtsm1AFGpX Diff:
Old | New | Differences | |
---|---|---|---|
171 | 171 | else throw(($getType(@) + " couldn't be cast to (Int, Int, Int, Int, Int)")) | |
172 | 172 | } | |
173 | 173 | if ((available == available)) | |
174 | - | then available | |
174 | + | then available._2 | |
175 | 175 | else throw("Strict value is not equal to itself.") | |
176 | 176 | } | |
177 | 177 | else 0 | |
191 | 191 | ||
192 | 192 | func getAssetInfo (assetId) = match assetId { | |
193 | 193 | case id: String|ByteVector => | |
194 | - | let $ | |
194 | + | let $t044664638 = match id { | |
195 | 195 | case aId: ByteVector => | |
196 | 196 | $Tuple2(toBase58String(aId), aId) | |
197 | 197 | case aId: String => | |
199 | 199 | case _ => | |
200 | 200 | throw("Match error") | |
201 | 201 | } | |
202 | - | let stringId = $ | |
203 | - | let bytesId = $ | |
202 | + | let stringId = $t044664638._1 | |
203 | + | let bytesId = $t044664638._2 | |
204 | 204 | let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist")) | |
205 | 205 | $Tuple3(stringId, info.name, info.decimals) | |
206 | 206 | case waves: Unit => | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func calcLPAmountReplensishTwoTokens (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,shareAssetSupply) = { | |
326 | - | let $ | |
327 | - | let pmtStrAssetIdA = $ | |
328 | - | let pmtAssetNameA = $ | |
329 | - | let pmtDecimalsA = $ | |
330 | - | let $ | |
331 | - | let pmtStrAssetIdB = $ | |
332 | - | let pmtAssetNameB = $ | |
333 | - | let pmtDecimalsB = $ | |
326 | + | let $t0997910051 = getAssetInfo(pmtIdA) | |
327 | + | let pmtStrAssetIdA = $t0997910051._1 | |
328 | + | let pmtAssetNameA = $t0997910051._2 | |
329 | + | let pmtDecimalsA = $t0997910051._3 | |
330 | + | let $t01005610128 = getAssetInfo(pmtIdB) | |
331 | + | let pmtStrAssetIdB = $t01005610128._1 | |
332 | + | let pmtAssetNameB = $t01005610128._2 | |
333 | + | let pmtDecimalsB = $t01005610128._3 | |
334 | 334 | let initial = ((balA + balB) == 0) | |
335 | - | let $ | |
335 | + | let $t01017110830 = if (initial) | |
336 | 336 | then $Tuple5(pmtA, pmtB, 0, pmtIdA, toBigInt(1)) | |
337 | 337 | else { | |
338 | 338 | let ratioShareTokensInA = fraction(scale16, toBigInt(pmtA), toBigInt(balA)) | |
347 | 347 | $Tuple5(pmt, pmtB, (pmtA - pmt), pmtIdA, ratioShareTokensInB) | |
348 | 348 | } | |
349 | 349 | } | |
350 | - | let pmtAmountA = $ | |
351 | - | let pmtAmountB = $ | |
352 | - | let change = $ | |
353 | - | let changeAssetId = $ | |
354 | - | let shareTokenRatio = $ | |
350 | + | let pmtAmountA = $t01017110830._1 | |
351 | + | let pmtAmountB = $t01017110830._2 | |
352 | + | let change = $t01017110830._3 | |
353 | + | let changeAssetId = $t01017110830._4 | |
354 | + | let shareTokenRatio = $t01017110830._5 | |
355 | 355 | let shareTokenToPayAmount = if (initial) | |
356 | 356 | then { | |
357 | 357 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
365 | 365 | func calcLPAmountReplenishOneToken (pmtAmount,pmtAssetId,aId,bId,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = if ((pmtAssetId == aId)) | |
366 | 366 | then { | |
367 | 367 | let virtPayAmount = calculateVirtPay(pmtAmount, balA, fee) | |
368 | - | let $ | |
369 | - | let amountWithoutFee = $ | |
370 | - | let amountWithFee = $ | |
371 | - | let governanceReward = $ | |
372 | - | let tReward = $ | |
368 | + | let $t01169411841 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee) | |
369 | + | let amountWithoutFee = $t01169411841._1 | |
370 | + | let amountWithFee = $t01169411841._2 | |
371 | + | let governanceReward = $t01169411841._3 | |
372 | + | let tReward = $t01169411841._4 | |
373 | 373 | let balanceAVirt = (balA + virtPayAmount) | |
374 | 374 | let balanceBVirt = (((balB + amountWithoutFee) - governanceReward) - tReward) | |
375 | 375 | let newBalanceA = (balA + pmtAmount) | |
383 | 383 | } | |
384 | 384 | else { | |
385 | 385 | let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee) | |
386 | - | let $ | |
387 | - | let amountWithoutFee = $ | |
388 | - | let amountWithFee = $ | |
389 | - | let governanceReward = $ | |
390 | - | let tReward = $ | |
386 | + | let $t01288513032 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee) | |
387 | + | let amountWithoutFee = $t01288513032._1 | |
388 | + | let amountWithFee = $t01288513032._2 | |
389 | + | let governanceReward = $t01288513032._3 | |
390 | + | let tReward = $t01288513032._4 | |
391 | 391 | let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward) | |
392 | 392 | let balanceBVirt = (balB + virtPayAmount) | |
393 | 393 | let newBalanceA = ((balA - governanceReward) - tReward) | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = { | |
405 | - | let $ | |
406 | - | let lpTwoAmount = $ | |
407 | - | let change = $ | |
408 | - | let changeAssetId = $ | |
409 | - | let pmtAmountA = $ | |
410 | - | let pmtAmountB = $ | |
405 | + | let $t01419914347 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply) | |
406 | + | let lpTwoAmount = $t01419914347._1 | |
407 | + | let change = $t01419914347._2 | |
408 | + | let changeAssetId = $t01419914347._3 | |
409 | + | let pmtAmountA = $t01419914347._4 | |
410 | + | let pmtAmountB = $t01419914347._5 | |
411 | 411 | if ((change > 0)) | |
412 | 412 | then { | |
413 | - | let $ | |
414 | - | let lpOne = $ | |
415 | - | let newBalanceA = $ | |
416 | - | let newBalanceB = $ | |
417 | - | let governanceReward = $ | |
418 | - | let tReward = $ | |
419 | - | let gId = $ | |
420 | - | let loss = $ | |
413 | + | let $t01437914613 = calcLPAmountReplenishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount) | |
414 | + | let lpOne = $t01437914613._1 | |
415 | + | let newBalanceA = $t01437914613._2 | |
416 | + | let newBalanceB = $t01437914613._3 | |
417 | + | let governanceReward = $t01437914613._4 | |
418 | + | let tReward = $t01437914613._5 | |
419 | + | let gId = $t01437914613._6 | |
420 | + | let loss = $t01437914613._7 | |
421 | 421 | $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId) | |
422 | 422 | } | |
423 | 423 | else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit) | |
426 | 426 | ||
427 | 427 | @Callable(i) | |
428 | 428 | func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
429 | - | let $ | |
430 | - | let strAssetIdA = $ | |
431 | - | let strAssetIdB = $ | |
432 | - | let assetIdA = $ | |
433 | - | let assetIdB = $ | |
434 | - | let shareAssetId = $ | |
435 | - | let $ | |
436 | - | let balA = $ | |
437 | - | let balB = $ | |
438 | - | let accBalA = $ | |
439 | - | let accBalB = $ | |
429 | + | let $t01494915039 = getPoolAssets(i.caller) | |
430 | + | let strAssetIdA = $t01494915039._1 | |
431 | + | let strAssetIdB = $t01494915039._2 | |
432 | + | let assetIdA = $t01494915039._3 | |
433 | + | let assetIdB = $t01494915039._4 | |
434 | + | let shareAssetId = $t01494915039._5 | |
435 | + | let $t01504415126 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
436 | + | let balA = $t01504415126._1 | |
437 | + | let balB = $t01504415126._2 | |
438 | + | let accBalA = $t01504415126._3 | |
439 | + | let accBalB = $t01504415126._4 | |
440 | 440 | let lpSupply = getLpSupply(i.caller) | |
441 | 441 | let pmtA = parseIntValue(args[0]) | |
442 | 442 | let pmtB = parseIntValue(args[1]) | |
443 | 443 | let virtGetMinAmount = parseIntValue(args[2]) | |
444 | - | let $ | |
445 | - | let fee = $ | |
446 | - | let govFee = $ | |
447 | - | let teamFee = $ | |
448 | - | let $ | |
449 | - | let lp = $ | |
450 | - | let loss = $ | |
451 | - | let newBalanceA = $ | |
452 | - | let newBalanceB = $ | |
453 | - | let governanceReward = $ | |
454 | - | let tReward = $ | |
455 | - | let aId = $ | |
444 | + | let $t01530115368 = getFeeParams(i.caller, i.originCaller) | |
445 | + | let fee = $t01530115368._1 | |
446 | + | let govFee = $t01530115368._2 | |
447 | + | let teamFee = $t01530115368._3 | |
448 | + | let $t01537315565 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount) | |
449 | + | let lp = $t01537315565._1 | |
450 | + | let loss = $t01537315565._2 | |
451 | + | let newBalanceA = $t01537315565._3 | |
452 | + | let newBalanceB = $t01537315565._4 | |
453 | + | let governanceReward = $t01537315565._5 | |
454 | + | let tReward = $t01537315565._6 | |
455 | + | let aId = $t01537315565._7 | |
456 | 456 | $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId])) | |
457 | 457 | } | |
458 | 458 | ||
460 | 460 | ||
461 | 461 | @Callable(i) | |
462 | 462 | func calcLPReplenishTwoTokensREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
463 | - | let $ | |
464 | - | let strAssetIdA = $ | |
465 | - | let strAssetIdB = $ | |
466 | - | let assetIdA = $ | |
467 | - | let assetIdB = $ | |
468 | - | let shareAssetId = $ | |
469 | - | let $ | |
470 | - | let balA = $ | |
471 | - | let balB = $ | |
472 | - | let accBalA = $ | |
473 | - | let accBalB = $ | |
463 | + | let $t01580815898 = getPoolAssets(i.caller) | |
464 | + | let strAssetIdA = $t01580815898._1 | |
465 | + | let strAssetIdB = $t01580815898._2 | |
466 | + | let assetIdA = $t01580815898._3 | |
467 | + | let assetIdB = $t01580815898._4 | |
468 | + | let shareAssetId = $t01580815898._5 | |
469 | + | let $t01590315985 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
470 | + | let balA = $t01590315985._1 | |
471 | + | let balB = $t01590315985._2 | |
472 | + | let accBalA = $t01590315985._3 | |
473 | + | let accBalB = $t01590315985._4 | |
474 | 474 | let lpSupply = getLpSupply(i.caller) | |
475 | 475 | let pmtA = parseIntValue(args[0]) | |
476 | 476 | let pmtB = parseIntValue(args[1]) | |
477 | - | let $ | |
478 | - | let lp = $ | |
479 | - | let change = $ | |
480 | - | let changeAssetId = $ | |
481 | - | let pmtAmountA = $ | |
482 | - | let pmtAmountB = $ | |
477 | + | let $t01610916252 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply) | |
478 | + | let lp = $t01610916252._1 | |
479 | + | let change = $t01610916252._2 | |
480 | + | let changeAssetId = $t01610916252._3 | |
481 | + | let pmtAmountA = $t01610916252._4 | |
482 | + | let pmtAmountB = $t01610916252._5 | |
483 | 483 | $Tuple2(nil, $Tuple2(nil, [lp, change, changeAssetId, pmtAmountA, pmtAmountB])) | |
484 | 484 | } | |
485 | 485 | ||
487 | 487 | ||
488 | 488 | @Callable(i) | |
489 | 489 | func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
490 | - | let $ | |
491 | - | let strAssetIdA = $ | |
492 | - | let strAssetIdB = $ | |
493 | - | let assetIdA = $ | |
494 | - | let assetIdB = $ | |
495 | - | let shareAssetId = $ | |
496 | - | let $ | |
497 | - | let balanceA = $ | |
498 | - | let balanceB = $ | |
499 | - | let accountBalanceA = $ | |
500 | - | let accountBalanceB = $ | |
490 | + | let $t01646316553 = getPoolAssets(i.caller) | |
491 | + | let strAssetIdA = $t01646316553._1 | |
492 | + | let strAssetIdB = $t01646316553._2 | |
493 | + | let assetIdA = $t01646316553._3 | |
494 | + | let assetIdB = $t01646316553._4 | |
495 | + | let shareAssetId = $t01646316553._5 | |
496 | + | let $t01655816664 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
497 | + | let balanceA = $t01655816664._1 | |
498 | + | let balanceB = $t01655816664._2 | |
499 | + | let accountBalanceA = $t01655816664._3 | |
500 | + | let accountBalanceB = $t01655816664._4 | |
501 | 501 | let shareAssetSupply = getLpSupply(i.caller) | |
502 | 502 | let withdrawAmount = parseIntValue(args[0]) | |
503 | - | let $ | |
503 | + | let $t01676716929 = if ((size(args) == 3)) | |
504 | 504 | then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2])) | |
505 | 505 | else $Tuple2(balanceA, balanceB) | |
506 | - | let balA = $ | |
507 | - | let balB = $ | |
506 | + | let balA = $t01676716929._1 | |
507 | + | let balB = $t01676716929._2 | |
508 | 508 | let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply) | |
509 | 509 | let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply) | |
510 | 510 | $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB])) | |
515 | 515 | @Callable(i) | |
516 | 516 | func init (callerBytes,args,pAmounts,pAssetIds) = { | |
517 | 517 | let caller = Address(callerBytes) | |
518 | - | let $ | |
519 | - | let pmtAmountA = $ | |
520 | - | let pmtAssetIdA = $ | |
521 | - | let $ | |
522 | - | let pmtAmountB = $ | |
523 | - | let pmtAssetIdB = $ | |
518 | + | let $t01728417362 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
519 | + | let pmtAmountA = $t01728417362._1 | |
520 | + | let pmtAssetIdA = $t01728417362._2 | |
521 | + | let $t01736717445 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1])) | |
522 | + | let pmtAmountB = $t01736717445._1 | |
523 | + | let pmtAssetIdB = $t01736717445._2 | |
524 | 524 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
525 | 525 | then throw("Only admin can call this function") | |
526 | 526 | else if ((size(args) != 1)) | |
530 | 530 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
531 | 531 | then throw("Assets must be different") | |
532 | 532 | else { | |
533 | - | let $ | |
534 | - | let pmtStrAssetIdA = $ | |
535 | - | let pmtAssetNameA = $ | |
536 | - | let pmtDecimalsA = $ | |
537 | - | let $ | |
538 | - | let pmtStrAssetIdB = $ | |
539 | - | let pmtAssetNameB = $ | |
540 | - | let pmtDecimalsB = $ | |
533 | + | let $t01788017957 = getAssetInfo(pmtAssetIdA) | |
534 | + | let pmtStrAssetIdA = $t01788017957._1 | |
535 | + | let pmtAssetNameA = $t01788017957._2 | |
536 | + | let pmtDecimalsA = $t01788017957._3 | |
537 | + | let $t01796618043 = getAssetInfo(pmtAssetIdB) | |
538 | + | let pmtStrAssetIdB = $t01796618043._1 | |
539 | + | let pmtAssetNameB = $t01796618043._2 | |
540 | + | let pmtDecimalsB = $t01796618043._3 | |
541 | 541 | let firstHarvest = (args[0] == "true") | |
542 | 542 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
543 | 543 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
574 | 574 | @Callable(i) | |
575 | 575 | func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = { | |
576 | 576 | let caller = Address(callerBytes) | |
577 | - | let $ | |
578 | - | let amtAssetA = $ | |
579 | - | let amtAssetB = $ | |
580 | - | let assetIdAStr = $ | |
581 | - | let assetIdBStr = $ | |
582 | - | let firstHarvest = $ | |
577 | + | let $t02026420464 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true")) | |
578 | + | let amtAssetA = $t02026420464._1 | |
579 | + | let amtAssetB = $t02026420464._2 | |
580 | + | let assetIdAStr = $t02026420464._3 | |
581 | + | let assetIdBStr = $t02026420464._4 | |
582 | + | let firstHarvest = $t02026420464._5 | |
583 | 583 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
584 | 584 | then throw("Only admin can call this function") | |
585 | 585 | else if ((size(args) != 5)) | |
589 | 589 | else if ((assetIdAStr == assetIdBStr)) | |
590 | 590 | then throw("Assets must be different") | |
591 | 591 | else { | |
592 | - | let $ | |
593 | - | let pmtStrAssetIdA = $ | |
594 | - | let pmtAssetNameA = $ | |
595 | - | let pmtDecimalsA = $ | |
596 | - | let $ | |
597 | - | let pmtStrAssetIdB = $ | |
598 | - | let pmtAssetNameB = $ | |
599 | - | let pmtDecimalsB = $ | |
592 | + | let $t02089920976 = getAssetInfo(assetIdAStr) | |
593 | + | let pmtStrAssetIdA = $t02089920976._1 | |
594 | + | let pmtAssetNameA = $t02089920976._2 | |
595 | + | let pmtDecimalsA = $t02089920976._3 | |
596 | + | let $t02098521062 = getAssetInfo(assetIdBStr) | |
597 | + | let pmtStrAssetIdB = $t02098521062._1 | |
598 | + | let pmtAssetNameB = $t02098521062._2 | |
599 | + | let pmtDecimalsB = $t02098521062._3 | |
600 | 600 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
601 | 601 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
602 | 602 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
627 | 627 | @Callable(i) | |
628 | 628 | func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
629 | 629 | let caller = Address(callerBytes) | |
630 | - | let $ | |
631 | - | let pmtAmount = $ | |
632 | - | let pmtAssetId = $ | |
630 | + | let $t02348823564 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
631 | + | let pmtAmount = $t02348823564._1 | |
632 | + | let pmtAssetId = $t02348823564._2 | |
633 | 633 | let minAmountToReceive = parseIntValue(args[0]) | |
634 | - | let $ | |
635 | - | let strAssetIdA = $ | |
636 | - | let strAssetIdB = $ | |
637 | - | let assetIdA = $ | |
638 | - | let assetIdB = $ | |
639 | - | let $ | |
640 | - | let balanceA = $ | |
641 | - | let balanceB = $ | |
642 | - | let accountBalanceA = $ | |
643 | - | let accountBalanceB = $ | |
634 | + | let $t02362923705 = getPoolAssets(i.caller) | |
635 | + | let strAssetIdA = $t02362923705._1 | |
636 | + | let strAssetIdB = $t02362923705._2 | |
637 | + | let assetIdA = $t02362923705._3 | |
638 | + | let assetIdB = $t02362923705._4 | |
639 | + | let $t02371423820 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
640 | + | let balanceA = $t02371423820._1 | |
641 | + | let balanceB = $t02371423820._2 | |
642 | + | let accountBalanceA = $t02371423820._3 | |
643 | + | let accountBalanceB = $t02371423820._4 | |
644 | 644 | if ((size(args) != 1)) | |
645 | 645 | then throw("Wrong args size") | |
646 | 646 | else if (if ((balanceA == 0)) | |
658 | 658 | else (balanceB > accountBalanceB)) | |
659 | 659 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
660 | 660 | else { | |
661 | - | let $ | |
662 | - | let fee = $ | |
663 | - | let govFee = $ | |
664 | - | let teamFee = $ | |
665 | - | let $ | |
661 | + | let $t02472024787 = getFeeParams(i.caller, i.originCaller) | |
662 | + | let fee = $t02472024787._1 | |
663 | + | let govFee = $t02472024787._2 | |
664 | + | let teamFee = $t02472024787._3 | |
665 | + | let $t02480025151 = if ((pmtAssetId == assetIdA)) | |
666 | 666 | then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee) | |
667 | 667 | else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee) | |
668 | - | let amountWithoutFee = $ | |
669 | - | let amountWithFee = $ | |
670 | - | let governanceReward = $ | |
671 | - | let teamReward = $ | |
672 | - | let $ | |
668 | + | let amountWithoutFee = $t02480025151._1 | |
669 | + | let amountWithFee = $t02480025151._2 | |
670 | + | let governanceReward = $t02480025151._3 | |
671 | + | let teamReward = $t02480025151._4 | |
672 | + | let $t02516525500 = if ((pmtAssetId == assetIdA)) | |
673 | 673 | then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB) | |
674 | 674 | else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA) | |
675 | - | let newBalanceA = $ | |
676 | - | let newBalanceB = $ | |
677 | - | let assetIdSend = $ | |
678 | - | let $ | |
675 | + | let newBalanceA = $t02516525500._1 | |
676 | + | let newBalanceB = $t02516525500._2 | |
677 | + | let assetIdSend = $t02516525500._3 | |
678 | + | let $t02551425774 = if ((pmtAssetId == assetIdA)) | |
679 | 679 | then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward)) | |
680 | 680 | else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount) | |
681 | - | let stakeAmountA = $ | |
682 | - | let stakeAmountB = $ | |
681 | + | let stakeAmountA = $t02551425774._1 | |
682 | + | let stakeAmountB = $t02551425774._2 | |
683 | 683 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
684 | 684 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil) | |
685 | 685 | else 0 | |
705 | 705 | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
706 | 706 | let stakeFarming = (args[0] == "true") | |
707 | 707 | let lockType = parseIntValue(args[1]) | |
708 | - | let $ | |
709 | - | let strAssetIdA = $ | |
710 | - | let strAssetIdB = $ | |
711 | - | let assetIdA = $ | |
712 | - | let assetIdB = $ | |
713 | - | let shareAssetId = $ | |
714 | - | let $ | |
715 | - | let balanceA = $ | |
716 | - | let balanceB = $ | |
717 | - | let accountBalanceA = $ | |
718 | - | let accountBalanceB = $ | |
708 | + | let $t02708927179 = getPoolAssets(i.caller) | |
709 | + | let strAssetIdA = $t02708927179._1 | |
710 | + | let strAssetIdB = $t02708927179._2 | |
711 | + | let assetIdA = $t02708927179._3 | |
712 | + | let assetIdB = $t02708927179._4 | |
713 | + | let shareAssetId = $t02708927179._5 | |
714 | + | let $t02718827294 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
715 | + | let balanceA = $t02718827294._1 | |
716 | + | let balanceB = $t02718827294._2 | |
717 | + | let accountBalanceA = $t02718827294._3 | |
718 | + | let accountBalanceB = $t02718827294._4 | |
719 | 719 | let shareAssetSupply = getLpSupply(i.caller) | |
720 | 720 | if ((size(args) != 2)) | |
721 | 721 | then throw("Wrong args size") | |
736 | 736 | else pAssetIds[2], pAmounts[2])] | |
737 | 737 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
738 | 738 | else { | |
739 | - | let $ | |
740 | - | let shareTokenToPayAmount = $ | |
741 | - | let change = $ | |
742 | - | let changeAssetId = $ | |
743 | - | let pmtAmountA = $ | |
744 | - | let pmtAmountB = $ | |
739 | + | let $t02828328481 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply) | |
740 | + | let shareTokenToPayAmount = $t02828328481._1 | |
741 | + | let change = $t02828328481._2 | |
742 | + | let changeAssetId = $t02828328481._3 | |
743 | + | let pmtAmountA = $t02828328481._4 | |
744 | + | let pmtAmountB = $t02828328481._5 | |
745 | 745 | if ((shareTokenToPayAmount == 0)) | |
746 | 746 | then throw("Too small amount to replenish") | |
747 | 747 | else if ((0 > change)) | |
794 | 794 | let virtGetMinAmount = parseIntValue(args[0]) | |
795 | 795 | let stakeFarming = (args[1] == "true") | |
796 | 796 | let lockType = parseIntValue(args[2]) | |
797 | - | let $ | |
798 | - | let strAssetIdA = $ | |
799 | - | let strAssetIdB = $ | |
800 | - | let assetIdA = $ | |
801 | - | let assetIdB = $ | |
802 | - | let shareAssetId = $ | |
803 | - | let $ | |
804 | - | let balanceA = $ | |
805 | - | let balanceB = $ | |
806 | - | let accountBalanceA = $ | |
807 | - | let accountBalanceB = $ | |
797 | + | let $t03074030830 = getPoolAssets(i.caller) | |
798 | + | let strAssetIdA = $t03074030830._1 | |
799 | + | let strAssetIdB = $t03074030830._2 | |
800 | + | let assetIdA = $t03074030830._3 | |
801 | + | let assetIdB = $t03074030830._4 | |
802 | + | let shareAssetId = $t03074030830._5 | |
803 | + | let $t03083530941 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
804 | + | let balanceA = $t03083530941._1 | |
805 | + | let balanceB = $t03083530941._2 | |
806 | + | let accountBalanceA = $t03083530941._3 | |
807 | + | let accountBalanceB = $t03083530941._4 | |
808 | 808 | let shareAssetSupply = getLpSupply(i.caller) | |
809 | 809 | let initial = ((balanceA + balanceB) == 0) | |
810 | 810 | if ((size(args) != 3)) | |
828 | 828 | else pAssetIds[2], pAmounts[2])] | |
829 | 829 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
830 | 830 | else { | |
831 | - | let $ | |
832 | - | let fee = $ | |
833 | - | let govFee = $ | |
834 | - | let teamFee = $ | |
835 | - | let $ | |
836 | - | let pmtAssetIdStr = $ | |
837 | - | let pmtAssetIdName = $ | |
838 | - | let $ | |
839 | - | let shareTokenToPayAmount = $ | |
840 | - | let newBalanceA = $ | |
841 | - | let newBalanceB = $ | |
842 | - | let govReward = $ | |
843 | - | let teamReward = $ | |
844 | - | let govRewardAsset = $ | |
831 | + | let $t03190231969 = getFeeParams(i.caller, i.originCaller) | |
832 | + | let fee = $t03190231969._1 | |
833 | + | let govFee = $t03190231969._2 | |
834 | + | let teamFee = $t03190231969._3 | |
835 | + | let $t03197832040 = getAssetInfo(pmtAssetId) | |
836 | + | let pmtAssetIdStr = $t03197832040._1 | |
837 | + | let pmtAssetIdName = $t03197832040._2 | |
838 | + | let $t03205832303 = calcLPAmountReplenishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount) | |
839 | + | let shareTokenToPayAmount = $t03205832303._1 | |
840 | + | let newBalanceA = $t03205832303._2 | |
841 | + | let newBalanceB = $t03205832303._3 | |
842 | + | let govReward = $t03205832303._4 | |
843 | + | let teamReward = $t03205832303._5 | |
844 | + | let govRewardAsset = $t03205832303._6 | |
845 | 845 | let govRewardAssetStr = if ((govRewardAsset == assetIdA)) | |
846 | 846 | then strAssetIdA | |
847 | 847 | else strAssetIdB | |
890 | 890 | @Callable(i) | |
891 | 891 | func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
892 | 892 | let caller = Address(callerBytes) | |
893 | - | let $ | |
894 | - | let strAssetIdA = $ | |
895 | - | let strAssetIdB = $ | |
896 | - | let assetIdA = $ | |
897 | - | let assetIdB = $ | |
898 | - | let shareAssetId = $ | |
899 | - | let $ | |
900 | - | let balanceA = $ | |
901 | - | let balanceB = $ | |
902 | - | let accountBalanceA = $ | |
903 | - | let accountBalanceB = $ | |
893 | + | let $t03437134461 = getPoolAssets(i.caller) | |
894 | + | let strAssetIdA = $t03437134461._1 | |
895 | + | let strAssetIdB = $t03437134461._2 | |
896 | + | let assetIdA = $t03437134461._3 | |
897 | + | let assetIdB = $t03437134461._4 | |
898 | + | let shareAssetId = $t03437134461._5 | |
899 | + | let $t03447034576 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
900 | + | let balanceA = $t03447034576._1 | |
901 | + | let balanceB = $t03447034576._2 | |
902 | + | let accountBalanceA = $t03447034576._3 | |
903 | + | let accountBalanceB = $t03447034576._4 | |
904 | 904 | let shareAssetSupply = getLpSupply(i.caller) | |
905 | - | let $ | |
905 | + | let $t03463835018 = if ((size(pAmounts) == 1)) | |
906 | 906 | then { | |
907 | 907 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
908 | 908 | if ((pAsset != shareAssetId)) | |
910 | 910 | else $Tuple2(pAmounts[0], pAsset) | |
911 | 911 | } | |
912 | 912 | else $Tuple2(0, shareAssetId) | |
913 | - | let pmtAmount = $ | |
914 | - | let pmtAssetId = $ | |
913 | + | let pmtAmount = $t03463835018._1 | |
914 | + | let pmtAssetId = $t03463835018._2 | |
915 | 915 | if ((size(args) != 1)) | |
916 | 916 | then throw("Wrong args size") | |
917 | 917 | else if ((size(pAmounts) > 1)) | |
956 | 956 | let withdrawAsset = if ((args[0] == "")) | |
957 | 957 | then unit | |
958 | 958 | else fromBase58String(args[0]) | |
959 | - | let $ | |
960 | - | let strAssetIdA = $ | |
961 | - | let strAssetIdB = $ | |
962 | - | let assetIdA = $ | |
963 | - | let assetIdB = $ | |
964 | - | let shareAssetId = $ | |
965 | - | let $ | |
966 | - | let balanceA = $ | |
967 | - | let balanceB = $ | |
968 | - | let accountBalanceA = $ | |
969 | - | let accountBalanceB = $ | |
959 | + | let $t03723637326 = getPoolAssets(i.caller) | |
960 | + | let strAssetIdA = $t03723637326._1 | |
961 | + | let strAssetIdB = $t03723637326._2 | |
962 | + | let assetIdA = $t03723637326._3 | |
963 | + | let assetIdB = $t03723637326._4 | |
964 | + | let shareAssetId = $t03723637326._5 | |
965 | + | let $t03733537441 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
966 | + | let balanceA = $t03733537441._1 | |
967 | + | let balanceB = $t03733537441._2 | |
968 | + | let accountBalanceA = $t03733537441._3 | |
969 | + | let accountBalanceB = $t03733537441._4 | |
970 | 970 | let shareAssetSupply = getLpSupply(i.caller) | |
971 | - | let $ | |
971 | + | let $t03750337855 = if ((size(pAmounts) == 1)) | |
972 | 972 | then { | |
973 | 973 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
974 | 974 | if ((pAsset != shareAssetId)) | |
976 | 976 | else $Tuple2(pAmounts[0], pAsset) | |
977 | 977 | } | |
978 | 978 | else $Tuple2(0, shareAssetId) | |
979 | - | let pmtAmount = $ | |
980 | - | let pmtAssetId = $ | |
979 | + | let pmtAmount = $t03750337855._1 | |
980 | + | let pmtAssetId = $t03750337855._2 | |
981 | 981 | let virtMinToRecive = parseIntValue(args[1]) | |
982 | 982 | if ((size(args) != 3)) | |
983 | 983 | then throw("Wrong args size") | |
1001 | 1001 | let withdrawAmount = (pmtAmount + unlockAmount) | |
1002 | 1002 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
1003 | 1003 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
1004 | - | let $ | |
1005 | - | let fee = $ | |
1006 | - | let govFee = $ | |
1007 | - | let teamFee = $ | |
1008 | - | let $ | |
1004 | + | let $t03912239189 = getFeeParams(i.caller, i.originCaller) | |
1005 | + | let fee = $t03912239189._1 | |
1006 | + | let govFee = $t03912239189._2 | |
1007 | + | let teamFee = $t03912239189._3 | |
1008 | + | let $t03920239616 = if ((withdrawAsset == assetIdA)) | |
1009 | 1009 | then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee) | |
1010 | 1010 | else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee) | |
1011 | - | let amountWithoutFee = $ | |
1012 | - | let amountWithFee = $ | |
1013 | - | let governanceReward = $ | |
1014 | - | let teamReward = $ | |
1015 | - | let $ | |
1011 | + | let amountWithoutFee = $t03920239616._1 | |
1012 | + | let amountWithFee = $t03920239616._2 | |
1013 | + | let governanceReward = $t03920239616._3 | |
1014 | + | let teamReward = $t03920239616._4 | |
1015 | + | let $t03962940939 = if ((withdrawAsset == assetIdA)) | |
1016 | 1016 | then { | |
1017 | 1017 | let unstake = if (contains(stakingAssets, strAssetIdA)) | |
1018 | 1018 | then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil) | |
1029 | 1029 | then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)]) | |
1030 | 1030 | else throw("Strict value is not equal to itself.") | |
1031 | 1031 | } | |
1032 | - | let newBalanceA = $ | |
1033 | - | let newBalanceB = $ | |
1034 | - | let govRewardAssetId = $ | |
1035 | - | let userTransfer = $ | |
1032 | + | let newBalanceA = $t03962940939._1 | |
1033 | + | let newBalanceB = $t03962940939._2 | |
1034 | + | let govRewardAssetId = $t03962940939._3 | |
1035 | + | let userTransfer = $t03962940939._4 | |
1036 | 1036 | $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId), ScriptTransfer(teamBoxAddress, teamReward, govRewardAssetId)] ++ userTransfer), nil)) | |
1037 | 1037 | } | |
1038 | 1038 | else throw("Strict value is not equal to itself.") | |
1043 | 1043 | ||
1044 | 1044 | @Callable(i) | |
1045 | 1045 | func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
1046 | - | let $ | |
1047 | - | let strAssetIdA = $ | |
1048 | - | let strAssetIdB = $ | |
1049 | - | let assetIdA = $ | |
1050 | - | let assetIdB = $ | |
1046 | + | let $t04169941775 = getPoolAssets(i.caller) | |
1047 | + | let strAssetIdA = $t04169941775._1 | |
1048 | + | let strAssetIdB = $t04169941775._2 | |
1049 | + | let assetIdA = $t04169941775._3 | |
1050 | + | let assetIdB = $t04169941775._4 | |
1051 | 1051 | let claim = if (if ((assetIdA == USDN)) | |
1052 | 1052 | then true | |
1053 | 1053 | else (assetIdB == USDN)) | |
1055 | 1055 | else nil | |
1056 | 1056 | if ((claim == claim)) | |
1057 | 1057 | then { | |
1058 | - | let $ | |
1059 | - | let balanceA = $ | |
1060 | - | let balanceB = $ | |
1061 | - | let accountBalanceA = $ | |
1062 | - | let accountBalanceB = $ | |
1063 | - | let stakedAmountA = $ | |
1064 | - | let stakedAmountB = $ | |
1058 | + | let $t04195942095 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
1059 | + | let balanceA = $t04195942095._1 | |
1060 | + | let balanceB = $t04195942095._2 | |
1061 | + | let accountBalanceA = $t04195942095._3 | |
1062 | + | let accountBalanceB = $t04195942095._4 | |
1063 | + | let stakedAmountA = $t04195942095._5 | |
1064 | + | let stakedAmountB = $t04195942095._6 | |
1065 | 1065 | let amountEnrollA = (accountBalanceA - balanceA) | |
1066 | 1066 | let amountEnrollB = (accountBalanceB - balanceB) | |
1067 | - | let $ | |
1067 | + | let $t04221542529 = if ((assetIdA == L2MP)) | |
1068 | 1068 | then $Tuple2((accountBalanceA - stakedAmountA), amountEnrollB) | |
1069 | 1069 | else if ((assetIdB == L2MP)) | |
1070 | 1070 | then $Tuple2(amountEnrollA, (accountBalanceB - stakedAmountB)) | |
1071 | 1071 | else $Tuple2(amountEnrollA, amountEnrollB) | |
1072 | - | let amountToStakeA = $ | |
1073 | - | let amountToStakeB = $ | |
1072 | + | let amountToStakeA = $t04221542529._1 | |
1073 | + | let amountToStakeB = $t04221542529._2 | |
1074 | 1074 | if ((size(args) != 0)) | |
1075 | 1075 | then throw("Wrong args size") | |
1076 | 1076 | else if ((moneyBoxAddress != i.originCaller)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let version = "1.0.0" | |
5 | 5 | ||
6 | 6 | let kVersion = "version" | |
7 | 7 | ||
8 | 8 | let kActive = "active" | |
9 | 9 | ||
10 | 10 | let kDeprecated = "deprecated_" | |
11 | 11 | ||
12 | 12 | let kAssetIdA = "A_asset_id" | |
13 | 13 | ||
14 | 14 | let kAssetIdB = "B_asset_id" | |
15 | 15 | ||
16 | 16 | let kBalanceA = "A_asset_balance" | |
17 | 17 | ||
18 | 18 | let kBalanceB = "B_asset_balance" | |
19 | 19 | ||
20 | 20 | let kBalanceInitA = "A_asset_init" | |
21 | 21 | ||
22 | 22 | let kBalanceInitB = "B_asset_init" | |
23 | 23 | ||
24 | 24 | let kShareAssetId = "share_asset_id" | |
25 | 25 | ||
26 | 26 | let kShareAssetSupply = "share_asset_supply" | |
27 | 27 | ||
28 | 28 | let kFee = "commission" | |
29 | 29 | ||
30 | 30 | let kCause = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let kFirstHarvest = "first_harvest" | |
33 | 33 | ||
34 | 34 | let kFirstHarvestHeight = "first_harvest_height" | |
35 | 35 | ||
36 | 36 | let kShareLimit = "share_limit_on_first_harvest" | |
37 | 37 | ||
38 | 38 | let kBasePeriod = "base_period" | |
39 | 39 | ||
40 | 40 | let kPeriodLength = "period_length" | |
41 | 41 | ||
42 | 42 | let kStartHeight = "start_height" | |
43 | 43 | ||
44 | 44 | let kUSDNAddress = "staking_usdnnsbt_address" | |
45 | 45 | ||
46 | 46 | let kEURNAddress = "staking_eurn_address" | |
47 | 47 | ||
48 | 48 | let kLeasingAmount = "leasing_amount" | |
49 | 49 | ||
50 | 50 | let kUSDNAssetId = "usdn_asset_id" | |
51 | 51 | ||
52 | 52 | let kEURNAssetId = "eurn_asset_id" | |
53 | 53 | ||
54 | 54 | let kL2MPAssetId = "l2mp_asset_id" | |
55 | 55 | ||
56 | 56 | let kStakingAssets = "staking_assets" | |
57 | 57 | ||
58 | 58 | let kOracleActive = "active_all_contracts" | |
59 | 59 | ||
60 | 60 | let kDiscounts = "discounts" | |
61 | 61 | ||
62 | 62 | let kDiscountValues = "discount_values" | |
63 | 63 | ||
64 | 64 | let kUserGSwopInGov = "_GSwop_amount" | |
65 | 65 | ||
66 | 66 | let kUserSwopInGov = "_SWOP_amount" | |
67 | 67 | ||
68 | 68 | let kOraclePool = "pool_" | |
69 | 69 | ||
70 | 70 | let kAdminPubKey1 = "admin_pub_1" | |
71 | 71 | ||
72 | 72 | let kAdminPubKey2 = "admin_pub_2" | |
73 | 73 | ||
74 | 74 | let kAdminPubKey3 = "admin_pub_3" | |
75 | 75 | ||
76 | 76 | let kAdminInvokePubKey = "admin_invoke_pub" | |
77 | 77 | ||
78 | 78 | let kMoneyBoxAddress = "money_box_address" | |
79 | 79 | ||
80 | 80 | let kTeamBoxAddress = "team_box_address" | |
81 | 81 | ||
82 | 82 | let kVotingAddress = "voting_address" | |
83 | 83 | ||
84 | 84 | let kGovAddress = "governance_address" | |
85 | 85 | ||
86 | 86 | let kFarmingAddress = "farming_address" | |
87 | 87 | ||
88 | 88 | let kL2MPAddress = "staking_l2mp_address" | |
89 | 89 | ||
90 | 90 | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
91 | 91 | ||
92 | 92 | func getBase58FromOracle (key) = match getString(oracle, key) { | |
93 | 93 | case string: String => | |
94 | 94 | fromBase58String(string) | |
95 | 95 | case nothing => | |
96 | 96 | throw((key + "is empty")) | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
101 | 101 | ||
102 | 102 | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
103 | 103 | ||
104 | 104 | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
105 | 105 | ||
106 | 106 | let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey) | |
107 | 107 | ||
108 | 108 | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
109 | 109 | ||
110 | 110 | let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress)) | |
111 | 111 | ||
112 | 112 | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
113 | 113 | ||
114 | 114 | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
115 | 115 | ||
116 | 116 | let farmingAddress = Address(getBase58FromOracle(kFarmingAddress)) | |
117 | 117 | ||
118 | 118 | let USDN = getBase58FromOracle(kUSDNAssetId) | |
119 | 119 | ||
120 | 120 | let EURN = getBase58FromOracle(kEURNAssetId) | |
121 | 121 | ||
122 | 122 | let L2MP = getBase58FromOracle(kL2MPAssetId) | |
123 | 123 | ||
124 | 124 | let stakingAssets = getStringValue(oracle, kStakingAssets) | |
125 | 125 | ||
126 | 126 | let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress)) | |
127 | 127 | ||
128 | 128 | let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress)) | |
129 | 129 | ||
130 | 130 | let stakingL2MPAddress = Address(getBase58FromOracle(kL2MPAddress)) | |
131 | 131 | ||
132 | 132 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
133 | 133 | ||
134 | 134 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
135 | 135 | ||
136 | 136 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
137 | 137 | ||
138 | 138 | let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3) | |
139 | 139 | ||
140 | 140 | let active = getBooleanValue(oracle, kOracleActive) | |
141 | 141 | ||
142 | 142 | let feeScale6 = 1000000 | |
143 | 143 | ||
144 | 144 | let scale8 = 100000000 | |
145 | 145 | ||
146 | 146 | let scale16 = toBigInt(10000000000000000) | |
147 | 147 | ||
148 | 148 | func accountBalance (assetId,pool) = match assetId { | |
149 | 149 | case id: ByteVector => | |
150 | 150 | assetBalance(pool, id) | |
151 | 151 | case waves: Unit => | |
152 | 152 | wavesBalance(pool).available | |
153 | 153 | case _ => | |
154 | 154 | throw("Match error") | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func stakedAmount (assetId,pool) = { | |
159 | 159 | let stakedAmountCalculated = match assetId { | |
160 | 160 | case aId: ByteVector => | |
161 | 161 | if ((aId == USDN)) | |
162 | 162 | then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool))) | |
163 | 163 | else if ((aId == EURN)) | |
164 | 164 | then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool))) | |
165 | 165 | else if ((aId == L2MP)) | |
166 | 166 | then { | |
167 | 167 | let available = { | |
168 | 168 | let @ = invoke(stakingL2MPAddress, "getUserAssetsREADONLY", [pool], nil) | |
169 | 169 | if ($isInstanceOf(@, "(Int, Int, Int, Int, Int)")) | |
170 | 170 | then @ | |
171 | 171 | else throw(($getType(@) + " couldn't be cast to (Int, Int, Int, Int, Int)")) | |
172 | 172 | } | |
173 | 173 | if ((available == available)) | |
174 | - | then available | |
174 | + | then available._2 | |
175 | 175 | else throw("Strict value is not equal to itself.") | |
176 | 176 | } | |
177 | 177 | else 0 | |
178 | 178 | case _: Unit => | |
179 | 179 | valueOrElse(getInteger(pool, kLeasingAmount), 0) | |
180 | 180 | case _ => | |
181 | 181 | throw("Match error") | |
182 | 182 | } | |
183 | 183 | match stakedAmountCalculated { | |
184 | 184 | case i: Int => | |
185 | 185 | i | |
186 | 186 | case _ => | |
187 | 187 | 0 | |
188 | 188 | } | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func getAssetInfo (assetId) = match assetId { | |
193 | 193 | case id: String|ByteVector => | |
194 | - | let $ | |
194 | + | let $t044664638 = match id { | |
195 | 195 | case aId: ByteVector => | |
196 | 196 | $Tuple2(toBase58String(aId), aId) | |
197 | 197 | case aId: String => | |
198 | 198 | $Tuple2(aId, fromBase58String(aId)) | |
199 | 199 | case _ => | |
200 | 200 | throw("Match error") | |
201 | 201 | } | |
202 | - | let stringId = $ | |
203 | - | let bytesId = $ | |
202 | + | let stringId = $t044664638._1 | |
203 | + | let bytesId = $t044664638._2 | |
204 | 204 | let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist")) | |
205 | 205 | $Tuple3(stringId, info.name, info.decimals) | |
206 | 206 | case waves: Unit => | |
207 | 207 | $Tuple3("WAVES", "WAVES", 8) | |
208 | 208 | case _ => | |
209 | 209 | throw("Match error") | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func calculateFeeDiscount (userAddr) = { | |
217 | 217 | let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0) | |
218 | 218 | let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), swopAmount) | |
219 | 219 | let discountValues = split(getStringValue(oracle, kDiscountValues), ",") | |
220 | 220 | let discounts = split(getStringValue(oracle, kDiscounts), ",") | |
221 | 221 | if (if ((gSwopAmount >= parseIntValue(discountValues[0]))) | |
222 | 222 | then (parseIntValue(discountValues[1]) > gSwopAmount) | |
223 | 223 | else false) | |
224 | 224 | then (feeScale6 - parseIntValue(discounts[0])) | |
225 | 225 | else if (if ((gSwopAmount >= parseIntValue(discountValues[1]))) | |
226 | 226 | then (parseIntValue(discountValues[2]) > gSwopAmount) | |
227 | 227 | else false) | |
228 | 228 | then (feeScale6 - parseIntValue(discounts[1])) | |
229 | 229 | else if (if ((gSwopAmount >= parseIntValue(discountValues[2]))) | |
230 | 230 | then (parseIntValue(discountValues[3]) > gSwopAmount) | |
231 | 231 | else false) | |
232 | 232 | then (feeScale6 - parseIntValue(discounts[2])) | |
233 | 233 | else if (if ((gSwopAmount >= parseIntValue(discountValues[3]))) | |
234 | 234 | then (parseIntValue(discountValues[4]) > gSwopAmount) | |
235 | 235 | else false) | |
236 | 236 | then (feeScale6 - parseIntValue(discounts[3])) | |
237 | 237 | else if ((gSwopAmount >= parseIntValue(discountValues[4]))) | |
238 | 238 | then (feeScale6 - parseIntValue(discounts[4])) | |
239 | 239 | else feeScale6 | |
240 | 240 | } | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGov,feeTeam) = { | |
244 | 244 | let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom)) | |
245 | 245 | let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6) | |
246 | 246 | let governanceReward = fraction(amountWithoutFee, feeGov, feeScale6) | |
247 | 247 | let teamReward = fraction(amountWithoutFee, feeTeam, feeScale6) | |
248 | 248 | if ((minAmountToReceive > amountWithFee)) | |
249 | 249 | then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive))) | |
250 | 250 | else $Tuple4(amountWithoutFee, amountWithFee, governanceReward, teamReward) | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func calculateVirtPay (pmtAmount,balance,fee) = { | |
255 | 255 | let F = (feeScale6 - fee) | |
256 | 256 | let k = fraction(fee, 55, 100) | |
257 | 257 | let a = (scale8 + fraction((F * k), scale8, (feeScale6 * feeScale6))) | |
258 | 258 | let b = ((((balance + fraction(balance, F, feeScale6)) + fraction(pmtAmount, F, feeScale6)) - pmtAmount) - fraction(pmtAmount, (F * k), (feeScale6 * feeScale6))) | |
259 | 259 | let c = (-(toBigInt(balance)) * toBigInt(pmtAmount)) | |
260 | 260 | let D = ((toBigInt(b) * toBigInt(b)) - fraction((toBigInt(4) * c), toBigInt(a), toBigInt(scale8))) | |
261 | 261 | toInt(fraction((-(toBigInt(b)) + sqrtBigInt(D, 0, 0, DOWN)), toBigInt(scale8), toBigInt((2 * a)))) | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func parsePaymentAsset (assetId) = if ((assetId == base58'')) | |
266 | 266 | then unit | |
267 | 267 | else assetId | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func suspendSuspicious (accountBalanceA,accountBalanceB,balanceA,balanceB,assetIdA,assetIdB) = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceA)) + " ") + assetIdA) + ", ") + toString(accountBalanceB)) + " ") + assetIdB) + ". State: ") + toString(balanceA)) + " ") + assetIdA) + ", ") + toString(balanceB)) + " ") + assetIdB)) | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | func isActive () = if (active) | |
274 | 274 | then unit | |
275 | 275 | else throw("DApp is inactive at this moment") | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress)))) | |
279 | 279 | then unit | |
280 | 280 | else throw("DApp is not registered pool") | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func isDepricated (poolAddress) = if (!(valueOrElse(getBoolean(oracle, (kDeprecated + poolAddress)), false))) | |
284 | 284 | then unit | |
285 | 285 | else throw("Pool is deprecated. Only withdraw action allowed.") | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | func getPoolBalances (pool,assetIdA,assetIdB) = { | |
289 | 289 | let balanceA = getIntegerValue(pool, kBalanceA) | |
290 | 290 | let balanceB = getIntegerValue(pool, kBalanceB) | |
291 | 291 | let stakedAmountA = stakedAmount(assetIdA, pool) | |
292 | 292 | let stakedAmountB = stakedAmount(assetIdB, pool) | |
293 | 293 | let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA) | |
294 | 294 | let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB) | |
295 | 295 | $Tuple6(balanceA, balanceB, accountBalanceA, accountBalanceB, stakedAmountA, stakedAmountB) | |
296 | 296 | } | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func getLpSupply (pool) = getIntegerValue(pool, kShareAssetSupply) | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func getPoolAssets (pool) = { | |
303 | 303 | let strAssetIdA = getStringValue(pool, kAssetIdA) | |
304 | 304 | let strAssetIdB = getStringValue(pool, kAssetIdB) | |
305 | 305 | let assetIdA = if ((strAssetIdA == "WAVES")) | |
306 | 306 | then unit | |
307 | 307 | else fromBase58String(strAssetIdA) | |
308 | 308 | let assetIdB = if ((strAssetIdB == "WAVES")) | |
309 | 309 | then unit | |
310 | 310 | else fromBase58String(strAssetIdB) | |
311 | 311 | let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId)) | |
312 | 312 | $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId) | |
313 | 313 | } | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | func getFeeParams (pool,caller) = { | |
317 | 317 | let feeDiscount = calculateFeeDiscount(caller) | |
318 | 318 | let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING) | |
319 | 319 | let govFee = fraction(fee, 35, 100) | |
320 | 320 | let teamFee = fraction(fee, 10, 100) | |
321 | 321 | $Tuple3(fee, govFee, teamFee) | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func calcLPAmountReplensishTwoTokens (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,shareAssetSupply) = { | |
326 | - | let $ | |
327 | - | let pmtStrAssetIdA = $ | |
328 | - | let pmtAssetNameA = $ | |
329 | - | let pmtDecimalsA = $ | |
330 | - | let $ | |
331 | - | let pmtStrAssetIdB = $ | |
332 | - | let pmtAssetNameB = $ | |
333 | - | let pmtDecimalsB = $ | |
326 | + | let $t0997910051 = getAssetInfo(pmtIdA) | |
327 | + | let pmtStrAssetIdA = $t0997910051._1 | |
328 | + | let pmtAssetNameA = $t0997910051._2 | |
329 | + | let pmtDecimalsA = $t0997910051._3 | |
330 | + | let $t01005610128 = getAssetInfo(pmtIdB) | |
331 | + | let pmtStrAssetIdB = $t01005610128._1 | |
332 | + | let pmtAssetNameB = $t01005610128._2 | |
333 | + | let pmtDecimalsB = $t01005610128._3 | |
334 | 334 | let initial = ((balA + balB) == 0) | |
335 | - | let $ | |
335 | + | let $t01017110830 = if (initial) | |
336 | 336 | then $Tuple5(pmtA, pmtB, 0, pmtIdA, toBigInt(1)) | |
337 | 337 | else { | |
338 | 338 | let ratioShareTokensInA = fraction(scale16, toBigInt(pmtA), toBigInt(balA)) | |
339 | 339 | let ratioShareTokensInB = fraction(scale16, toBigInt(pmtB), toBigInt(balB)) | |
340 | 340 | if ((ratioShareTokensInB > ratioShareTokensInA)) | |
341 | 341 | then { | |
342 | 342 | let pmt = fraction(pmtA, balB, balA) | |
343 | 343 | $Tuple5(pmtA, pmt, (pmtB - pmt), pmtIdB, ratioShareTokensInA) | |
344 | 344 | } | |
345 | 345 | else { | |
346 | 346 | let pmt = fraction(pmtB, balA, balB) | |
347 | 347 | $Tuple5(pmt, pmtB, (pmtA - pmt), pmtIdA, ratioShareTokensInB) | |
348 | 348 | } | |
349 | 349 | } | |
350 | - | let pmtAmountA = $ | |
351 | - | let pmtAmountB = $ | |
352 | - | let change = $ | |
353 | - | let changeAssetId = $ | |
354 | - | let shareTokenRatio = $ | |
350 | + | let pmtAmountA = $t01017110830._1 | |
351 | + | let pmtAmountB = $t01017110830._2 | |
352 | + | let change = $t01017110830._3 | |
353 | + | let changeAssetId = $t01017110830._4 | |
354 | + | let shareTokenRatio = $t01017110830._5 | |
355 | 355 | let shareTokenToPayAmount = if (initial) | |
356 | 356 | then { | |
357 | 357 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
358 | 358 | fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN)) | |
359 | 359 | } | |
360 | 360 | else toInt(fraction(shareTokenRatio, toBigInt(shareAssetSupply), scale16)) | |
361 | 361 | $Tuple5(shareTokenToPayAmount, change, changeAssetId, pmtAmountA, pmtAmountB) | |
362 | 362 | } | |
363 | 363 | ||
364 | 364 | ||
365 | 365 | func calcLPAmountReplenishOneToken (pmtAmount,pmtAssetId,aId,bId,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = if ((pmtAssetId == aId)) | |
366 | 366 | then { | |
367 | 367 | let virtPayAmount = calculateVirtPay(pmtAmount, balA, fee) | |
368 | - | let $ | |
369 | - | let amountWithoutFee = $ | |
370 | - | let amountWithFee = $ | |
371 | - | let governanceReward = $ | |
372 | - | let tReward = $ | |
368 | + | let $t01169411841 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee) | |
369 | + | let amountWithoutFee = $t01169411841._1 | |
370 | + | let amountWithFee = $t01169411841._2 | |
371 | + | let governanceReward = $t01169411841._3 | |
372 | + | let tReward = $t01169411841._4 | |
373 | 373 | let balanceAVirt = (balA + virtPayAmount) | |
374 | 374 | let balanceBVirt = (((balB + amountWithoutFee) - governanceReward) - tReward) | |
375 | 375 | let newBalanceA = (balA + pmtAmount) | |
376 | 376 | let newBalanceB = ((balB - governanceReward) - tReward) | |
377 | 377 | let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt)) | |
378 | 378 | let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt)) | |
379 | 379 | let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16)) | |
380 | 380 | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16)) | |
381 | 381 | let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth) | |
382 | 382 | $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId, loss) | |
383 | 383 | } | |
384 | 384 | else { | |
385 | 385 | let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee) | |
386 | - | let $ | |
387 | - | let amountWithoutFee = $ | |
388 | - | let amountWithFee = $ | |
389 | - | let governanceReward = $ | |
390 | - | let tReward = $ | |
386 | + | let $t01288513032 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee) | |
387 | + | let amountWithoutFee = $t01288513032._1 | |
388 | + | let amountWithFee = $t01288513032._2 | |
389 | + | let governanceReward = $t01288513032._3 | |
390 | + | let tReward = $t01288513032._4 | |
391 | 391 | let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward) | |
392 | 392 | let balanceBVirt = (balB + virtPayAmount) | |
393 | 393 | let newBalanceA = ((balA - governanceReward) - tReward) | |
394 | 394 | let newBalanceB = (balB + pmtAmount) | |
395 | 395 | let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt)) | |
396 | 396 | let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt)) | |
397 | 397 | let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16)) | |
398 | 398 | let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16)) | |
399 | 399 | let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth) | |
400 | 400 | $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId, loss) | |
401 | 401 | } | |
402 | 402 | ||
403 | 403 | ||
404 | 404 | func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = { | |
405 | - | let $ | |
406 | - | let lpTwoAmount = $ | |
407 | - | let change = $ | |
408 | - | let changeAssetId = $ | |
409 | - | let pmtAmountA = $ | |
410 | - | let pmtAmountB = $ | |
405 | + | let $t01419914347 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply) | |
406 | + | let lpTwoAmount = $t01419914347._1 | |
407 | + | let change = $t01419914347._2 | |
408 | + | let changeAssetId = $t01419914347._3 | |
409 | + | let pmtAmountA = $t01419914347._4 | |
410 | + | let pmtAmountB = $t01419914347._5 | |
411 | 411 | if ((change > 0)) | |
412 | 412 | then { | |
413 | - | let $ | |
414 | - | let lpOne = $ | |
415 | - | let newBalanceA = $ | |
416 | - | let newBalanceB = $ | |
417 | - | let governanceReward = $ | |
418 | - | let tReward = $ | |
419 | - | let gId = $ | |
420 | - | let loss = $ | |
413 | + | let $t01437914613 = calcLPAmountReplenishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount) | |
414 | + | let lpOne = $t01437914613._1 | |
415 | + | let newBalanceA = $t01437914613._2 | |
416 | + | let newBalanceB = $t01437914613._3 | |
417 | + | let governanceReward = $t01437914613._4 | |
418 | + | let tReward = $t01437914613._5 | |
419 | + | let gId = $t01437914613._6 | |
420 | + | let loss = $t01437914613._7 | |
421 | 421 | $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId) | |
422 | 422 | } | |
423 | 423 | else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit) | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | @Callable(i) | |
428 | 428 | func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
429 | - | let $ | |
430 | - | let strAssetIdA = $ | |
431 | - | let strAssetIdB = $ | |
432 | - | let assetIdA = $ | |
433 | - | let assetIdB = $ | |
434 | - | let shareAssetId = $ | |
435 | - | let $ | |
436 | - | let balA = $ | |
437 | - | let balB = $ | |
438 | - | let accBalA = $ | |
439 | - | let accBalB = $ | |
429 | + | let $t01494915039 = getPoolAssets(i.caller) | |
430 | + | let strAssetIdA = $t01494915039._1 | |
431 | + | let strAssetIdB = $t01494915039._2 | |
432 | + | let assetIdA = $t01494915039._3 | |
433 | + | let assetIdB = $t01494915039._4 | |
434 | + | let shareAssetId = $t01494915039._5 | |
435 | + | let $t01504415126 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
436 | + | let balA = $t01504415126._1 | |
437 | + | let balB = $t01504415126._2 | |
438 | + | let accBalA = $t01504415126._3 | |
439 | + | let accBalB = $t01504415126._4 | |
440 | 440 | let lpSupply = getLpSupply(i.caller) | |
441 | 441 | let pmtA = parseIntValue(args[0]) | |
442 | 442 | let pmtB = parseIntValue(args[1]) | |
443 | 443 | let virtGetMinAmount = parseIntValue(args[2]) | |
444 | - | let $ | |
445 | - | let fee = $ | |
446 | - | let govFee = $ | |
447 | - | let teamFee = $ | |
448 | - | let $ | |
449 | - | let lp = $ | |
450 | - | let loss = $ | |
451 | - | let newBalanceA = $ | |
452 | - | let newBalanceB = $ | |
453 | - | let governanceReward = $ | |
454 | - | let tReward = $ | |
455 | - | let aId = $ | |
444 | + | let $t01530115368 = getFeeParams(i.caller, i.originCaller) | |
445 | + | let fee = $t01530115368._1 | |
446 | + | let govFee = $t01530115368._2 | |
447 | + | let teamFee = $t01530115368._3 | |
448 | + | let $t01537315565 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount) | |
449 | + | let lp = $t01537315565._1 | |
450 | + | let loss = $t01537315565._2 | |
451 | + | let newBalanceA = $t01537315565._3 | |
452 | + | let newBalanceB = $t01537315565._4 | |
453 | + | let governanceReward = $t01537315565._5 | |
454 | + | let tReward = $t01537315565._6 | |
455 | + | let aId = $t01537315565._7 | |
456 | 456 | $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId])) | |
457 | 457 | } | |
458 | 458 | ||
459 | 459 | ||
460 | 460 | ||
461 | 461 | @Callable(i) | |
462 | 462 | func calcLPReplenishTwoTokensREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
463 | - | let $ | |
464 | - | let strAssetIdA = $ | |
465 | - | let strAssetIdB = $ | |
466 | - | let assetIdA = $ | |
467 | - | let assetIdB = $ | |
468 | - | let shareAssetId = $ | |
469 | - | let $ | |
470 | - | let balA = $ | |
471 | - | let balB = $ | |
472 | - | let accBalA = $ | |
473 | - | let accBalB = $ | |
463 | + | let $t01580815898 = getPoolAssets(i.caller) | |
464 | + | let strAssetIdA = $t01580815898._1 | |
465 | + | let strAssetIdB = $t01580815898._2 | |
466 | + | let assetIdA = $t01580815898._3 | |
467 | + | let assetIdB = $t01580815898._4 | |
468 | + | let shareAssetId = $t01580815898._5 | |
469 | + | let $t01590315985 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
470 | + | let balA = $t01590315985._1 | |
471 | + | let balB = $t01590315985._2 | |
472 | + | let accBalA = $t01590315985._3 | |
473 | + | let accBalB = $t01590315985._4 | |
474 | 474 | let lpSupply = getLpSupply(i.caller) | |
475 | 475 | let pmtA = parseIntValue(args[0]) | |
476 | 476 | let pmtB = parseIntValue(args[1]) | |
477 | - | let $ | |
478 | - | let lp = $ | |
479 | - | let change = $ | |
480 | - | let changeAssetId = $ | |
481 | - | let pmtAmountA = $ | |
482 | - | let pmtAmountB = $ | |
477 | + | let $t01610916252 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply) | |
478 | + | let lp = $t01610916252._1 | |
479 | + | let change = $t01610916252._2 | |
480 | + | let changeAssetId = $t01610916252._3 | |
481 | + | let pmtAmountA = $t01610916252._4 | |
482 | + | let pmtAmountB = $t01610916252._5 | |
483 | 483 | $Tuple2(nil, $Tuple2(nil, [lp, change, changeAssetId, pmtAmountA, pmtAmountB])) | |
484 | 484 | } | |
485 | 485 | ||
486 | 486 | ||
487 | 487 | ||
488 | 488 | @Callable(i) | |
489 | 489 | func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = { | |
490 | - | let $ | |
491 | - | let strAssetIdA = $ | |
492 | - | let strAssetIdB = $ | |
493 | - | let assetIdA = $ | |
494 | - | let assetIdB = $ | |
495 | - | let shareAssetId = $ | |
496 | - | let $ | |
497 | - | let balanceA = $ | |
498 | - | let balanceB = $ | |
499 | - | let accountBalanceA = $ | |
500 | - | let accountBalanceB = $ | |
490 | + | let $t01646316553 = getPoolAssets(i.caller) | |
491 | + | let strAssetIdA = $t01646316553._1 | |
492 | + | let strAssetIdB = $t01646316553._2 | |
493 | + | let assetIdA = $t01646316553._3 | |
494 | + | let assetIdB = $t01646316553._4 | |
495 | + | let shareAssetId = $t01646316553._5 | |
496 | + | let $t01655816664 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
497 | + | let balanceA = $t01655816664._1 | |
498 | + | let balanceB = $t01655816664._2 | |
499 | + | let accountBalanceA = $t01655816664._3 | |
500 | + | let accountBalanceB = $t01655816664._4 | |
501 | 501 | let shareAssetSupply = getLpSupply(i.caller) | |
502 | 502 | let withdrawAmount = parseIntValue(args[0]) | |
503 | - | let $ | |
503 | + | let $t01676716929 = if ((size(args) == 3)) | |
504 | 504 | then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2])) | |
505 | 505 | else $Tuple2(balanceA, balanceB) | |
506 | - | let balA = $ | |
507 | - | let balB = $ | |
506 | + | let balA = $t01676716929._1 | |
507 | + | let balB = $t01676716929._2 | |
508 | 508 | let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply) | |
509 | 509 | let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply) | |
510 | 510 | $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB])) | |
511 | 511 | } | |
512 | 512 | ||
513 | 513 | ||
514 | 514 | ||
515 | 515 | @Callable(i) | |
516 | 516 | func init (callerBytes,args,pAmounts,pAssetIds) = { | |
517 | 517 | let caller = Address(callerBytes) | |
518 | - | let $ | |
519 | - | let pmtAmountA = $ | |
520 | - | let pmtAssetIdA = $ | |
521 | - | let $ | |
522 | - | let pmtAmountB = $ | |
523 | - | let pmtAssetIdB = $ | |
518 | + | let $t01728417362 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
519 | + | let pmtAmountA = $t01728417362._1 | |
520 | + | let pmtAssetIdA = $t01728417362._2 | |
521 | + | let $t01736717445 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1])) | |
522 | + | let pmtAmountB = $t01736717445._1 | |
523 | + | let pmtAssetIdB = $t01736717445._2 | |
524 | 524 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
525 | 525 | then throw("Only admin can call this function") | |
526 | 526 | else if ((size(args) != 1)) | |
527 | 527 | then throw("Wrong args size") | |
528 | 528 | else if (isDefined(getBoolean(caller, kActive))) | |
529 | 529 | then throw("DApp is already active") | |
530 | 530 | else if ((pmtAssetIdA == pmtAssetIdB)) | |
531 | 531 | then throw("Assets must be different") | |
532 | 532 | else { | |
533 | - | let $ | |
534 | - | let pmtStrAssetIdA = $ | |
535 | - | let pmtAssetNameA = $ | |
536 | - | let pmtDecimalsA = $ | |
537 | - | let $ | |
538 | - | let pmtStrAssetIdB = $ | |
539 | - | let pmtAssetNameB = $ | |
540 | - | let pmtDecimalsB = $ | |
533 | + | let $t01788017957 = getAssetInfo(pmtAssetIdA) | |
534 | + | let pmtStrAssetIdA = $t01788017957._1 | |
535 | + | let pmtAssetNameA = $t01788017957._2 | |
536 | + | let pmtDecimalsA = $t01788017957._3 | |
537 | + | let $t01796618043 = getAssetInfo(pmtAssetIdB) | |
538 | + | let pmtStrAssetIdB = $t01796618043._1 | |
539 | + | let pmtAssetNameB = $t01796618043._2 | |
540 | + | let pmtDecimalsB = $t01796618043._3 | |
541 | 541 | let firstHarvest = (args[0] == "true") | |
542 | 542 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
543 | 543 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
544 | 544 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
545 | 545 | let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN) | |
546 | 546 | let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN) | |
547 | 547 | let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN) | |
548 | 548 | let shareInitialSupply = fraction(arg1, arg2, arg3) | |
549 | 549 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
550 | 550 | let shareIssueId = calculateAssetId(shareIssue) | |
551 | 551 | let stake1 = if (contains(stakingAssets, pmtStrAssetIdA)) | |
552 | 552 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil) | |
553 | 553 | else 0 | |
554 | 554 | if ((stake1 == stake1)) | |
555 | 555 | then { | |
556 | 556 | let stake2 = if (contains(stakingAssets, pmtStrAssetIdB)) | |
557 | 557 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil) | |
558 | 558 | else 0 | |
559 | 559 | if ((stake2 == stake2)) | |
560 | 560 | then { | |
561 | 561 | let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(caller, shareInitialSupply, shareIssueId)] | |
562 | 562 | if (firstHarvest) | |
563 | 563 | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
564 | 564 | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
565 | 565 | } | |
566 | 566 | else throw("Strict value is not equal to itself.") | |
567 | 567 | } | |
568 | 568 | else throw("Strict value is not equal to itself.") | |
569 | 569 | } | |
570 | 570 | } | |
571 | 571 | ||
572 | 572 | ||
573 | 573 | ||
574 | 574 | @Callable(i) | |
575 | 575 | func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = { | |
576 | 576 | let caller = Address(callerBytes) | |
577 | - | let $ | |
578 | - | let amtAssetA = $ | |
579 | - | let amtAssetB = $ | |
580 | - | let assetIdAStr = $ | |
581 | - | let assetIdBStr = $ | |
582 | - | let firstHarvest = $ | |
577 | + | let $t02026420464 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true")) | |
578 | + | let amtAssetA = $t02026420464._1 | |
579 | + | let amtAssetB = $t02026420464._2 | |
580 | + | let assetIdAStr = $t02026420464._3 | |
581 | + | let assetIdBStr = $t02026420464._4 | |
582 | + | let firstHarvest = $t02026420464._5 | |
583 | 583 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
584 | 584 | then throw("Only admin can call this function") | |
585 | 585 | else if ((size(args) != 5)) | |
586 | 586 | then throw("Wrong args size") | |
587 | 587 | else if (isDefined(getBoolean(caller, kActive))) | |
588 | 588 | then throw("DApp is already active") | |
589 | 589 | else if ((assetIdAStr == assetIdBStr)) | |
590 | 590 | then throw("Assets must be different") | |
591 | 591 | else { | |
592 | - | let $ | |
593 | - | let pmtStrAssetIdA = $ | |
594 | - | let pmtAssetNameA = $ | |
595 | - | let pmtDecimalsA = $ | |
596 | - | let $ | |
597 | - | let pmtStrAssetIdB = $ | |
598 | - | let pmtAssetNameB = $ | |
599 | - | let pmtDecimalsB = $ | |
592 | + | let $t02089920976 = getAssetInfo(assetIdAStr) | |
593 | + | let pmtStrAssetIdA = $t02089920976._1 | |
594 | + | let pmtAssetNameA = $t02089920976._2 | |
595 | + | let pmtDecimalsA = $t02089920976._3 | |
596 | + | let $t02098521062 = getAssetInfo(assetIdBStr) | |
597 | + | let pmtStrAssetIdB = $t02098521062._1 | |
598 | + | let pmtAssetNameB = $t02098521062._2 | |
599 | + | let pmtDecimalsB = $t02098521062._3 | |
600 | 600 | let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7)) | |
601 | 601 | let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this)) | |
602 | 602 | let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2) | |
603 | 603 | let shareInitialSupply = 0 | |
604 | 604 | let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true) | |
605 | 605 | let shareIssueId = calculateAssetId(shareIssue) | |
606 | 606 | let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceInitA, amtAssetA), IntegerEntry(kBalanceInitB, amtAssetB), IntegerEntry(kBalanceA, 0), IntegerEntry(kBalanceB, 0), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply)] | |
607 | 607 | if (firstHarvest) | |
608 | 608 | then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil)) | |
609 | 609 | else $Tuple2(nil, $Tuple2(baseEntry, nil)) | |
610 | 610 | } | |
611 | 611 | } | |
612 | 612 | ||
613 | 613 | ||
614 | 614 | ||
615 | 615 | @Callable(i) | |
616 | 616 | func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey))) | |
617 | 617 | then throw("Only admin can call this function") | |
618 | 618 | else if ((size(args) != 1)) | |
619 | 619 | then throw("Wrong args size") | |
620 | 620 | else { | |
621 | 621 | let shareLimit = parseIntValue(args[0]) | |
622 | 622 | $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil)) | |
623 | 623 | })) | |
624 | 624 | ||
625 | 625 | ||
626 | 626 | ||
627 | 627 | @Callable(i) | |
628 | 628 | func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
629 | 629 | let caller = Address(callerBytes) | |
630 | - | let $ | |
631 | - | let pmtAmount = $ | |
632 | - | let pmtAssetId = $ | |
630 | + | let $t02348823564 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0])) | |
631 | + | let pmtAmount = $t02348823564._1 | |
632 | + | let pmtAssetId = $t02348823564._2 | |
633 | 633 | let minAmountToReceive = parseIntValue(args[0]) | |
634 | - | let $ | |
635 | - | let strAssetIdA = $ | |
636 | - | let strAssetIdB = $ | |
637 | - | let assetIdA = $ | |
638 | - | let assetIdB = $ | |
639 | - | let $ | |
640 | - | let balanceA = $ | |
641 | - | let balanceB = $ | |
642 | - | let accountBalanceA = $ | |
643 | - | let accountBalanceB = $ | |
634 | + | let $t02362923705 = getPoolAssets(i.caller) | |
635 | + | let strAssetIdA = $t02362923705._1 | |
636 | + | let strAssetIdB = $t02362923705._2 | |
637 | + | let assetIdA = $t02362923705._3 | |
638 | + | let assetIdB = $t02362923705._4 | |
639 | + | let $t02371423820 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
640 | + | let balanceA = $t02371423820._1 | |
641 | + | let balanceB = $t02371423820._2 | |
642 | + | let accountBalanceA = $t02371423820._3 | |
643 | + | let accountBalanceB = $t02371423820._4 | |
644 | 644 | if ((size(args) != 1)) | |
645 | 645 | then throw("Wrong args size") | |
646 | 646 | else if (if ((balanceA == 0)) | |
647 | 647 | then true | |
648 | 648 | else (balanceB == 0)) | |
649 | 649 | then throw("Can't exchange with zero balance") | |
650 | 650 | else if ((0 >= minAmountToReceive)) | |
651 | 651 | then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive))) | |
652 | 652 | else if ((size(pAmounts) != 1)) | |
653 | 653 | then throw("One attached payment expected") | |
654 | 654 | else if (!(containsElement([assetIdA, assetIdB], pmtAssetId))) | |
655 | 655 | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
656 | 656 | else if (if ((balanceA > accountBalanceA)) | |
657 | 657 | then true | |
658 | 658 | else (balanceB > accountBalanceB)) | |
659 | 659 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
660 | 660 | else { | |
661 | - | let $ | |
662 | - | let fee = $ | |
663 | - | let govFee = $ | |
664 | - | let teamFee = $ | |
665 | - | let $ | |
661 | + | let $t02472024787 = getFeeParams(i.caller, i.originCaller) | |
662 | + | let fee = $t02472024787._1 | |
663 | + | let govFee = $t02472024787._2 | |
664 | + | let teamFee = $t02472024787._3 | |
665 | + | let $t02480025151 = if ((pmtAssetId == assetIdA)) | |
666 | 666 | then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee) | |
667 | 667 | else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee) | |
668 | - | let amountWithoutFee = $ | |
669 | - | let amountWithFee = $ | |
670 | - | let governanceReward = $ | |
671 | - | let teamReward = $ | |
672 | - | let $ | |
668 | + | let amountWithoutFee = $t02480025151._1 | |
669 | + | let amountWithFee = $t02480025151._2 | |
670 | + | let governanceReward = $t02480025151._3 | |
671 | + | let teamReward = $t02480025151._4 | |
672 | + | let $t02516525500 = if ((pmtAssetId == assetIdA)) | |
673 | 673 | then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB) | |
674 | 674 | else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA) | |
675 | - | let newBalanceA = $ | |
676 | - | let newBalanceB = $ | |
677 | - | let assetIdSend = $ | |
678 | - | let $ | |
675 | + | let newBalanceA = $t02516525500._1 | |
676 | + | let newBalanceB = $t02516525500._2 | |
677 | + | let assetIdSend = $t02516525500._3 | |
678 | + | let $t02551425774 = if ((pmtAssetId == assetIdA)) | |
679 | 679 | then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward)) | |
680 | 680 | else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount) | |
681 | - | let stakeAmountA = $ | |
682 | - | let stakeAmountB = $ | |
681 | + | let stakeAmountA = $t02551425774._1 | |
682 | + | let stakeAmountB = $t02551425774._2 | |
683 | 683 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
684 | 684 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil) | |
685 | 685 | else 0 | |
686 | 686 | if ((stake1 == stake1)) | |
687 | 687 | then { | |
688 | 688 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
689 | 689 | then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil) | |
690 | 690 | else 0 | |
691 | 691 | if ((stake2 == stake2)) | |
692 | 692 | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend), ScriptTransfer(teamBoxAddress, teamReward, assetIdSend)], [amountWithFee, assetIdSend])) | |
693 | 693 | else throw("Strict value is not equal to itself.") | |
694 | 694 | } | |
695 | 695 | else throw("Strict value is not equal to itself.") | |
696 | 696 | } | |
697 | 697 | }))) | |
698 | 698 | ||
699 | 699 | ||
700 | 700 | ||
701 | 701 | @Callable(i) | |
702 | 702 | func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
703 | 703 | let caller = Address(callerBytes) | |
704 | 704 | let pmtAssetIdA = parsePaymentAsset(pAssetIds[0]) | |
705 | 705 | let pmtAssetIdB = parsePaymentAsset(pAssetIds[1]) | |
706 | 706 | let stakeFarming = (args[0] == "true") | |
707 | 707 | let lockType = parseIntValue(args[1]) | |
708 | - | let $ | |
709 | - | let strAssetIdA = $ | |
710 | - | let strAssetIdB = $ | |
711 | - | let assetIdA = $ | |
712 | - | let assetIdB = $ | |
713 | - | let shareAssetId = $ | |
714 | - | let $ | |
715 | - | let balanceA = $ | |
716 | - | let balanceB = $ | |
717 | - | let accountBalanceA = $ | |
718 | - | let accountBalanceB = $ | |
708 | + | let $t02708927179 = getPoolAssets(i.caller) | |
709 | + | let strAssetIdA = $t02708927179._1 | |
710 | + | let strAssetIdB = $t02708927179._2 | |
711 | + | let assetIdA = $t02708927179._3 | |
712 | + | let assetIdB = $t02708927179._4 | |
713 | + | let shareAssetId = $t02708927179._5 | |
714 | + | let $t02718827294 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
715 | + | let balanceA = $t02718827294._1 | |
716 | + | let balanceB = $t02718827294._2 | |
717 | + | let accountBalanceA = $t02718827294._3 | |
718 | + | let accountBalanceB = $t02718827294._4 | |
719 | 719 | let shareAssetSupply = getLpSupply(i.caller) | |
720 | 720 | if ((size(args) != 2)) | |
721 | 721 | then throw("Wrong args size") | |
722 | 722 | else if (if ((size(pAmounts) != 2)) | |
723 | 723 | then (size(pAmounts) != 3) | |
724 | 724 | else false) | |
725 | 725 | then throw("Two or three payments expected") | |
726 | 726 | else if (if ((pmtAssetIdA != assetIdA)) | |
727 | 727 | then true | |
728 | 728 | else (pmtAssetIdB != assetIdB)) | |
729 | 729 | then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB)) | |
730 | 730 | else if (if ((balanceA > accountBalanceA)) | |
731 | 731 | then true | |
732 | 732 | else (balanceB > accountBalanceB)) | |
733 | 733 | then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3)) | |
734 | 734 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
735 | 735 | then unit | |
736 | 736 | else pAssetIds[2], pAmounts[2])] | |
737 | 737 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
738 | 738 | else { | |
739 | - | let $ | |
740 | - | let shareTokenToPayAmount = $ | |
741 | - | let change = $ | |
742 | - | let changeAssetId = $ | |
743 | - | let pmtAmountA = $ | |
744 | - | let pmtAmountB = $ | |
739 | + | let $t02828328481 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply) | |
740 | + | let shareTokenToPayAmount = $t02828328481._1 | |
741 | + | let change = $t02828328481._2 | |
742 | + | let changeAssetId = $t02828328481._3 | |
743 | + | let pmtAmountA = $t02828328481._4 | |
744 | + | let pmtAmountB = $t02828328481._5 | |
745 | 745 | if ((shareTokenToPayAmount == 0)) | |
746 | 746 | then throw("Too small amount to replenish") | |
747 | 747 | else if ((0 > change)) | |
748 | 748 | then throw("Change < 0") | |
749 | 749 | else { | |
750 | 750 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
751 | 751 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, strAssetIdA], nil) | |
752 | 752 | else 0 | |
753 | 753 | if ((stake1 == stake1)) | |
754 | 754 | then { | |
755 | 755 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
756 | 756 | then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, strAssetIdB], nil) | |
757 | 757 | else 0 | |
758 | 758 | if ((stake2 == stake2)) | |
759 | 759 | then { | |
760 | 760 | let shareTokenST = if (stakeFarming) | |
761 | 761 | then { | |
762 | 762 | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3)) | |
763 | 763 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
764 | 764 | then unit | |
765 | 765 | else pAssetIds[2], pAmounts[2])] | |
766 | 766 | else nil)) | |
767 | 767 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
768 | 768 | if ((reissue == reissue)) | |
769 | 769 | then { | |
770 | 770 | let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments) | |
771 | 771 | if ((stake3 == stake3)) | |
772 | 772 | then nil | |
773 | 773 | else throw("Strict value is not equal to itself.") | |
774 | 774 | } | |
775 | 775 | else throw("Strict value is not equal to itself.") | |
776 | 776 | } | |
777 | 777 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
778 | 778 | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil)) | |
779 | 779 | } | |
780 | 780 | else throw("Strict value is not equal to itself.") | |
781 | 781 | } | |
782 | 782 | else throw("Strict value is not equal to itself.") | |
783 | 783 | } | |
784 | 784 | } | |
785 | 785 | }))) | |
786 | 786 | ||
787 | 787 | ||
788 | 788 | ||
789 | 789 | @Callable(i) | |
790 | 790 | func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
791 | 791 | let caller = Address(callerBytes) | |
792 | 792 | let pmtAssetId = parsePaymentAsset(pAssetIds[0]) | |
793 | 793 | let pmtAmount = pAmounts[0] | |
794 | 794 | let virtGetMinAmount = parseIntValue(args[0]) | |
795 | 795 | let stakeFarming = (args[1] == "true") | |
796 | 796 | let lockType = parseIntValue(args[2]) | |
797 | - | let $ | |
798 | - | let strAssetIdA = $ | |
799 | - | let strAssetIdB = $ | |
800 | - | let assetIdA = $ | |
801 | - | let assetIdB = $ | |
802 | - | let shareAssetId = $ | |
803 | - | let $ | |
804 | - | let balanceA = $ | |
805 | - | let balanceB = $ | |
806 | - | let accountBalanceA = $ | |
807 | - | let accountBalanceB = $ | |
797 | + | let $t03074030830 = getPoolAssets(i.caller) | |
798 | + | let strAssetIdA = $t03074030830._1 | |
799 | + | let strAssetIdB = $t03074030830._2 | |
800 | + | let assetIdA = $t03074030830._3 | |
801 | + | let assetIdB = $t03074030830._4 | |
802 | + | let shareAssetId = $t03074030830._5 | |
803 | + | let $t03083530941 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
804 | + | let balanceA = $t03083530941._1 | |
805 | + | let balanceB = $t03083530941._2 | |
806 | + | let accountBalanceA = $t03083530941._3 | |
807 | + | let accountBalanceB = $t03083530941._4 | |
808 | 808 | let shareAssetSupply = getLpSupply(i.caller) | |
809 | 809 | let initial = ((balanceA + balanceB) == 0) | |
810 | 810 | if ((size(args) != 3)) | |
811 | 811 | then throw("Wrong args size") | |
812 | 812 | else if (if ((size(pAmounts) != 1)) | |
813 | 813 | then (size(pAmounts) != 2) | |
814 | 814 | else false) | |
815 | 815 | then throw("Two or one attached assets expected") | |
816 | 816 | else if (if ((pmtAssetId != assetIdA)) | |
817 | 817 | then (pmtAssetId != assetIdB) | |
818 | 818 | else false) | |
819 | 819 | then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB)) | |
820 | 820 | else if (initial) | |
821 | 821 | then throw("For initial exchanger you need to use two tokens") | |
822 | 822 | else if (if ((balanceA > accountBalanceA)) | |
823 | 823 | then true | |
824 | 824 | else (balanceB > accountBalanceB)) | |
825 | 825 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2)) | |
826 | 826 | then [AttachedPayment(if ((pAssetIds[2] == base58'')) | |
827 | 827 | then unit | |
828 | 828 | else pAssetIds[2], pAmounts[2])] | |
829 | 829 | else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))))) | |
830 | 830 | else { | |
831 | - | let $ | |
832 | - | let fee = $ | |
833 | - | let govFee = $ | |
834 | - | let teamFee = $ | |
835 | - | let $ | |
836 | - | let pmtAssetIdStr = $ | |
837 | - | let pmtAssetIdName = $ | |
838 | - | let $ | |
839 | - | let shareTokenToPayAmount = $ | |
840 | - | let newBalanceA = $ | |
841 | - | let newBalanceB = $ | |
842 | - | let govReward = $ | |
843 | - | let teamReward = $ | |
844 | - | let govRewardAsset = $ | |
831 | + | let $t03190231969 = getFeeParams(i.caller, i.originCaller) | |
832 | + | let fee = $t03190231969._1 | |
833 | + | let govFee = $t03190231969._2 | |
834 | + | let teamFee = $t03190231969._3 | |
835 | + | let $t03197832040 = getAssetInfo(pmtAssetId) | |
836 | + | let pmtAssetIdStr = $t03197832040._1 | |
837 | + | let pmtAssetIdName = $t03197832040._2 | |
838 | + | let $t03205832303 = calcLPAmountReplenishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount) | |
839 | + | let shareTokenToPayAmount = $t03205832303._1 | |
840 | + | let newBalanceA = $t03205832303._2 | |
841 | + | let newBalanceB = $t03205832303._3 | |
842 | + | let govReward = $t03205832303._4 | |
843 | + | let teamReward = $t03205832303._5 | |
844 | + | let govRewardAsset = $t03205832303._6 | |
845 | 845 | let govRewardAssetStr = if ((govRewardAsset == assetIdA)) | |
846 | 846 | then strAssetIdA | |
847 | 847 | else strAssetIdB | |
848 | 848 | if ((shareTokenToPayAmount == 0)) | |
849 | 849 | then throw("Too small amount to replenish") | |
850 | 850 | else { | |
851 | 851 | let stake1 = if (contains(stakingAssets, pmtAssetIdStr)) | |
852 | 852 | then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil) | |
853 | 853 | else 0 | |
854 | 854 | if ((stake1 == stake1)) | |
855 | 855 | then { | |
856 | 856 | let stake2 = if (contains(stakingAssets, govRewardAssetStr)) | |
857 | 857 | then invoke(i.caller, "stakeUnstake", [false, (govReward + teamReward), govRewardAssetStr], nil) | |
858 | 858 | else 0 | |
859 | 859 | if ((stake2 == stake2)) | |
860 | 860 | then { | |
861 | 861 | let shareTokenST = if (stakeFarming) | |
862 | 862 | then { | |
863 | 863 | let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2)) | |
864 | 864 | then [AttachedPayment(if ((pAssetIds[1] == base58'')) | |
865 | 865 | then unit | |
866 | 866 | else pAssetIds[1], pAmounts[1])] | |
867 | 867 | else nil)) | |
868 | 868 | let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil) | |
869 | 869 | if ((reissue == reissue)) | |
870 | 870 | then { | |
871 | 871 | let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments) | |
872 | 872 | if ((stake3 == stake3)) | |
873 | 873 | then nil | |
874 | 874 | else throw("Strict value is not equal to itself.") | |
875 | 875 | } | |
876 | 876 | else throw("Strict value is not equal to itself.") | |
877 | 877 | } | |
878 | 878 | else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)] | |
879 | 879 | $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset), ScriptTransfer(teamBoxAddress, teamReward, govRewardAsset)] ++ shareTokenST), nil)) | |
880 | 880 | } | |
881 | 881 | else throw("Strict value is not equal to itself.") | |
882 | 882 | } | |
883 | 883 | else throw("Strict value is not equal to itself.") | |
884 | 884 | } | |
885 | 885 | } | |
886 | 886 | }))) | |
887 | 887 | ||
888 | 888 | ||
889 | 889 | ||
890 | 890 | @Callable(i) | |
891 | 891 | func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
892 | 892 | let caller = Address(callerBytes) | |
893 | - | let $ | |
894 | - | let strAssetIdA = $ | |
895 | - | let strAssetIdB = $ | |
896 | - | let assetIdA = $ | |
897 | - | let assetIdB = $ | |
898 | - | let shareAssetId = $ | |
899 | - | let $ | |
900 | - | let balanceA = $ | |
901 | - | let balanceB = $ | |
902 | - | let accountBalanceA = $ | |
903 | - | let accountBalanceB = $ | |
893 | + | let $t03437134461 = getPoolAssets(i.caller) | |
894 | + | let strAssetIdA = $t03437134461._1 | |
895 | + | let strAssetIdB = $t03437134461._2 | |
896 | + | let assetIdA = $t03437134461._3 | |
897 | + | let assetIdB = $t03437134461._4 | |
898 | + | let shareAssetId = $t03437134461._5 | |
899 | + | let $t03447034576 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
900 | + | let balanceA = $t03447034576._1 | |
901 | + | let balanceB = $t03447034576._2 | |
902 | + | let accountBalanceA = $t03447034576._3 | |
903 | + | let accountBalanceB = $t03447034576._4 | |
904 | 904 | let shareAssetSupply = getLpSupply(i.caller) | |
905 | - | let $ | |
905 | + | let $t03463835018 = if ((size(pAmounts) == 1)) | |
906 | 906 | then { | |
907 | 907 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
908 | 908 | if ((pAsset != shareAssetId)) | |
909 | 909 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
910 | 910 | else $Tuple2(pAmounts[0], pAsset) | |
911 | 911 | } | |
912 | 912 | else $Tuple2(0, shareAssetId) | |
913 | - | let pmtAmount = $ | |
914 | - | let pmtAssetId = $ | |
913 | + | let pmtAmount = $t03463835018._1 | |
914 | + | let pmtAssetId = $t03463835018._2 | |
915 | 915 | if ((size(args) != 1)) | |
916 | 916 | then throw("Wrong args size") | |
917 | 917 | else if ((size(pAmounts) > 1)) | |
918 | 918 | then throw("One attached payment expected") | |
919 | 919 | else if (if ((balanceA > accountBalanceA)) | |
920 | 920 | then true | |
921 | 921 | else (balanceB > accountBalanceB)) | |
922 | 922 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
923 | 923 | else { | |
924 | 924 | let unlockAmount = parseIntValue(valueOrElse(args[0], "0")) | |
925 | 925 | let unlock = if ((unlockAmount > 0)) | |
926 | 926 | then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil) | |
927 | 927 | else 0 | |
928 | 928 | if ((unlock == unlock)) | |
929 | 929 | then { | |
930 | 930 | let withdrawAmount = (pmtAmount + unlockAmount) | |
931 | 931 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
932 | 932 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
933 | 933 | let stake1 = if (contains(stakingAssets, strAssetIdA)) | |
934 | 934 | then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil) | |
935 | 935 | else 0 | |
936 | 936 | if ((stake1 == stake1)) | |
937 | 937 | then { | |
938 | 938 | let stake2 = if (contains(stakingAssets, strAssetIdB)) | |
939 | 939 | then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil) | |
940 | 940 | else 0 | |
941 | 941 | if ((stake2 == stake2)) | |
942 | 942 | then $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2([IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(caller, amountToPayA, assetIdA), ScriptTransfer(caller, amountToPayB, assetIdB)], nil)) | |
943 | 943 | else throw("Strict value is not equal to itself.") | |
944 | 944 | } | |
945 | 945 | else throw("Strict value is not equal to itself.") | |
946 | 946 | } | |
947 | 947 | else throw("Strict value is not equal to itself.") | |
948 | 948 | } | |
949 | 949 | })) | |
950 | 950 | ||
951 | 951 | ||
952 | 952 | ||
953 | 953 | @Callable(i) | |
954 | 954 | func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), { | |
955 | 955 | let caller = Address(callerBytes) | |
956 | 956 | let withdrawAsset = if ((args[0] == "")) | |
957 | 957 | then unit | |
958 | 958 | else fromBase58String(args[0]) | |
959 | - | let $ | |
960 | - | let strAssetIdA = $ | |
961 | - | let strAssetIdB = $ | |
962 | - | let assetIdA = $ | |
963 | - | let assetIdB = $ | |
964 | - | let shareAssetId = $ | |
965 | - | let $ | |
966 | - | let balanceA = $ | |
967 | - | let balanceB = $ | |
968 | - | let accountBalanceA = $ | |
969 | - | let accountBalanceB = $ | |
959 | + | let $t03723637326 = getPoolAssets(i.caller) | |
960 | + | let strAssetIdA = $t03723637326._1 | |
961 | + | let strAssetIdB = $t03723637326._2 | |
962 | + | let assetIdA = $t03723637326._3 | |
963 | + | let assetIdB = $t03723637326._4 | |
964 | + | let shareAssetId = $t03723637326._5 | |
965 | + | let $t03733537441 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
966 | + | let balanceA = $t03733537441._1 | |
967 | + | let balanceB = $t03733537441._2 | |
968 | + | let accountBalanceA = $t03733537441._3 | |
969 | + | let accountBalanceB = $t03733537441._4 | |
970 | 970 | let shareAssetSupply = getLpSupply(i.caller) | |
971 | - | let $ | |
971 | + | let $t03750337855 = if ((size(pAmounts) == 1)) | |
972 | 972 | then { | |
973 | 973 | let pAsset = parsePaymentAsset(pAssetIds[0]) | |
974 | 974 | if ((pAsset != shareAssetId)) | |
975 | 975 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
976 | 976 | else $Tuple2(pAmounts[0], pAsset) | |
977 | 977 | } | |
978 | 978 | else $Tuple2(0, shareAssetId) | |
979 | - | let pmtAmount = $ | |
980 | - | let pmtAssetId = $ | |
979 | + | let pmtAmount = $t03750337855._1 | |
980 | + | let pmtAssetId = $t03750337855._2 | |
981 | 981 | let virtMinToRecive = parseIntValue(args[1]) | |
982 | 982 | if ((size(args) != 3)) | |
983 | 983 | then throw("Wrong args size") | |
984 | 984 | else if ((size(pAmounts) > 1)) | |
985 | 985 | then throw("One attached payment expected") | |
986 | 986 | else if ((pmtAssetId != shareAssetId)) | |
987 | 987 | then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId))) | |
988 | 988 | else if (!(containsElement([assetIdA, assetIdB], withdrawAsset))) | |
989 | 989 | then throw("Incorrect withdraw asset.") | |
990 | 990 | else if (if ((balanceA > accountBalanceA)) | |
991 | 991 | then true | |
992 | 992 | else (balanceB > accountBalanceB)) | |
993 | 993 | then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB))) | |
994 | 994 | else { | |
995 | 995 | let unlockAmount = parseIntValue(valueOrElse(args[2], "0")) | |
996 | 996 | let unlock = if ((unlockAmount > 0)) | |
997 | 997 | then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil) | |
998 | 998 | else 0 | |
999 | 999 | if ((unlock == unlock)) | |
1000 | 1000 | then { | |
1001 | 1001 | let withdrawAmount = (pmtAmount + unlockAmount) | |
1002 | 1002 | let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply) | |
1003 | 1003 | let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply) | |
1004 | - | let $ | |
1005 | - | let fee = $ | |
1006 | - | let govFee = $ | |
1007 | - | let teamFee = $ | |
1008 | - | let $ | |
1004 | + | let $t03912239189 = getFeeParams(i.caller, i.originCaller) | |
1005 | + | let fee = $t03912239189._1 | |
1006 | + | let govFee = $t03912239189._2 | |
1007 | + | let teamFee = $t03912239189._3 | |
1008 | + | let $t03920239616 = if ((withdrawAsset == assetIdA)) | |
1009 | 1009 | then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee) | |
1010 | 1010 | else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee) | |
1011 | - | let amountWithoutFee = $ | |
1012 | - | let amountWithFee = $ | |
1013 | - | let governanceReward = $ | |
1014 | - | let teamReward = $ | |
1015 | - | let $ | |
1011 | + | let amountWithoutFee = $t03920239616._1 | |
1012 | + | let amountWithFee = $t03920239616._2 | |
1013 | + | let governanceReward = $t03920239616._3 | |
1014 | + | let teamReward = $t03920239616._4 | |
1015 | + | let $t03962940939 = if ((withdrawAsset == assetIdA)) | |
1016 | 1016 | then { | |
1017 | 1017 | let unstake = if (contains(stakingAssets, strAssetIdA)) | |
1018 | 1018 | then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil) | |
1019 | 1019 | else 0 | |
1020 | 1020 | if ((unstake == unstake)) | |
1021 | 1021 | then $Tuple4(((((balanceA - amountToPayA) - amountWithFee) - governanceReward) - teamReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)]) | |
1022 | 1022 | else throw("Strict value is not equal to itself.") | |
1023 | 1023 | } | |
1024 | 1024 | else { | |
1025 | 1025 | let unstake = if (contains(stakingAssets, strAssetIdB)) | |
1026 | 1026 | then invoke(i.caller, "stakeUnstake", [false, (((amountToPayB + amountWithFee) + governanceReward) + teamReward), strAssetIdB], nil) | |
1027 | 1027 | else 0 | |
1028 | 1028 | if ((unstake == unstake)) | |
1029 | 1029 | then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)]) | |
1030 | 1030 | else throw("Strict value is not equal to itself.") | |
1031 | 1031 | } | |
1032 | - | let newBalanceA = $ | |
1033 | - | let newBalanceB = $ | |
1034 | - | let govRewardAssetId = $ | |
1035 | - | let userTransfer = $ | |
1032 | + | let newBalanceA = $t03962940939._1 | |
1033 | + | let newBalanceB = $t03962940939._2 | |
1034 | + | let govRewardAssetId = $t03962940939._3 | |
1035 | + | let userTransfer = $t03962940939._4 | |
1036 | 1036 | $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId), ScriptTransfer(teamBoxAddress, teamReward, govRewardAssetId)] ++ userTransfer), nil)) | |
1037 | 1037 | } | |
1038 | 1038 | else throw("Strict value is not equal to itself.") | |
1039 | 1039 | } | |
1040 | 1040 | }))) | |
1041 | 1041 | ||
1042 | 1042 | ||
1043 | 1043 | ||
1044 | 1044 | @Callable(i) | |
1045 | 1045 | func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), { | |
1046 | - | let $ | |
1047 | - | let strAssetIdA = $ | |
1048 | - | let strAssetIdB = $ | |
1049 | - | let assetIdA = $ | |
1050 | - | let assetIdB = $ | |
1046 | + | let $t04169941775 = getPoolAssets(i.caller) | |
1047 | + | let strAssetIdA = $t04169941775._1 | |
1048 | + | let strAssetIdB = $t04169941775._2 | |
1049 | + | let assetIdA = $t04169941775._3 | |
1050 | + | let assetIdB = $t04169941775._4 | |
1051 | 1051 | let claim = if (if ((assetIdA == USDN)) | |
1052 | 1052 | then true | |
1053 | 1053 | else (assetIdB == USDN)) | |
1054 | 1054 | then invoke(i.caller, "claimNetrinoRewards", nil, nil) | |
1055 | 1055 | else nil | |
1056 | 1056 | if ((claim == claim)) | |
1057 | 1057 | then { | |
1058 | - | let $ | |
1059 | - | let balanceA = $ | |
1060 | - | let balanceB = $ | |
1061 | - | let accountBalanceA = $ | |
1062 | - | let accountBalanceB = $ | |
1063 | - | let stakedAmountA = $ | |
1064 | - | let stakedAmountB = $ | |
1058 | + | let $t04195942095 = getPoolBalances(i.caller, assetIdA, assetIdB) | |
1059 | + | let balanceA = $t04195942095._1 | |
1060 | + | let balanceB = $t04195942095._2 | |
1061 | + | let accountBalanceA = $t04195942095._3 | |
1062 | + | let accountBalanceB = $t04195942095._4 | |
1063 | + | let stakedAmountA = $t04195942095._5 | |
1064 | + | let stakedAmountB = $t04195942095._6 | |
1065 | 1065 | let amountEnrollA = (accountBalanceA - balanceA) | |
1066 | 1066 | let amountEnrollB = (accountBalanceB - balanceB) | |
1067 | - | let $ | |
1067 | + | let $t04221542529 = if ((assetIdA == L2MP)) | |
1068 | 1068 | then $Tuple2((accountBalanceA - stakedAmountA), amountEnrollB) | |
1069 | 1069 | else if ((assetIdB == L2MP)) | |
1070 | 1070 | then $Tuple2(amountEnrollA, (accountBalanceB - stakedAmountB)) | |
1071 | 1071 | else $Tuple2(amountEnrollA, amountEnrollB) | |
1072 | - | let amountToStakeA = $ | |
1073 | - | let amountToStakeB = $ | |
1072 | + | let amountToStakeA = $t04221542529._1 | |
1073 | + | let amountToStakeB = $t04221542529._2 | |
1074 | 1074 | if ((size(args) != 0)) | |
1075 | 1075 | then throw("Wrong args size") | |
1076 | 1076 | else if ((moneyBoxAddress != i.originCaller)) | |
1077 | 1077 | then throw("Only the wallet can call this function") | |
1078 | 1078 | else if (if ((0 > amountEnrollA)) | |
1079 | 1079 | then true | |
1080 | 1080 | else (0 > amountEnrollB)) | |
1081 | 1081 | then suspend("Enroll amount negative") | |
1082 | 1082 | else if (if ((amountEnrollA == 0)) | |
1083 | 1083 | then (amountEnrollB == 0) | |
1084 | 1084 | else false) | |
1085 | 1085 | then throw("No money to take") | |
1086 | 1086 | else { | |
1087 | 1087 | let stake1 = if (if (contains(stakingAssets, strAssetIdA)) | |
1088 | 1088 | then (amountToStakeA > 0) | |
1089 | 1089 | else false) | |
1090 | 1090 | then invoke(i.caller, "stakeUnstake", [true, amountToStakeA, strAssetIdA], nil) | |
1091 | 1091 | else 0 | |
1092 | 1092 | if ((stake1 == stake1)) | |
1093 | 1093 | then { | |
1094 | 1094 | let stake2 = if (if (contains(stakingAssets, strAssetIdB)) | |
1095 | 1095 | then (amountToStakeB > 0) | |
1096 | 1096 | else false) | |
1097 | 1097 | then invoke(i.caller, "stakeUnstake", [true, amountToStakeB, strAssetIdB], nil) | |
1098 | 1098 | else 0 | |
1099 | 1099 | if ((stake2 == stake2)) | |
1100 | 1100 | then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil)) | |
1101 | 1101 | else throw("Strict value is not equal to itself.") | |
1102 | 1102 | } | |
1103 | 1103 | else throw("Strict value is not equal to itself.") | |
1104 | 1104 | } | |
1105 | 1105 | } | |
1106 | 1106 | else throw("Strict value is not equal to itself.") | |
1107 | 1107 | })) | |
1108 | 1108 | ||
1109 | 1109 | ||
1110 | 1110 | @Verifier(tx) | |
1111 | 1111 | func verify () = { | |
1112 | 1112 | let multiSignedByAdmins = { | |
1113 | 1113 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
1114 | 1114 | then 1 | |
1115 | 1115 | else 0 | |
1116 | 1116 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
1117 | 1117 | then 1 | |
1118 | 1118 | else 0 | |
1119 | 1119 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
1120 | 1120 | then 1 | |
1121 | 1121 | else 0 | |
1122 | 1122 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
1123 | 1123 | } | |
1124 | 1124 | multiSignedByAdmins | |
1125 | 1125 | } | |
1126 | 1126 |
github/deemru/w8io/026f985 199.02 ms ◑