tx · DkrajyVuHSZoq41ZYhY7Z5okBAj1mYq3nSf2cftwnWHr

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.04300000 Waves

2023.06.21 17:06 [2632502] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "DkrajyVuHSZoq41ZYhY7Z5okBAj1mYq3nSf2cftwnWHr", "fee": 4300000, "feeAssetId": null, "timestamp": 1687356423353, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "5dufCh6fAKJdj2sRCT4vzhfJ3BBMymFo5tq4nhMVF8HqaCQdS4aukQMkhnfkMC9fwoQa9YVH7xXc9jQupa4fzMrx" ], "script": "base64:BgKKAQgCEgcKBQgBCAEBEgMKAQgSBAoCCAgSBQoDCBgYEgUKAwgBCBIECgIIARIGCgQBCAgBEgUKAwEICBIDCgEIEgMKAQgSBQoDCAgBEgYKBAgBCAgSDgoMCAgIAQQRGBgRAQEYEgoKCAgICAEECAEYEg4KDAgICAEEGBgYGBgBGBIKCggICAEBAQEBAWUAB1NGX1BPT0wCAlNGAAdXWF9QT09MAgJXWAAPQ0FQX0ZFRV9OT19MT0FOAgljYXBOb0xvYW4ADENBUF9GRUVfTE9BTgIHY2FwTG9hbgAUU1RPUExPU1NfRkVFX05PX0xPQU4CDnN0b3BMb3NzTm9Mb2FuAA1TVE9QTE9TU19MT0FOAgxzdG9wTG9zc0xvYW4ACExPQU5fRkVFAgRsb2FuAAtOT19MT0FOX0ZFRQIGbm9Mb2FuAAZOT19GRUUCBW5vRmVlAAZTQ0FMRTgAgMLXLwAHU0NBTEUxMACAyK+gJQAKRkVFX1NDQUxFNgDAhD0AFGtTRlBvb2xBQXNzZXRCYWxhbmNlAg9BX2Fzc2V0X2JhbGFuY2UAFGtTRlBvb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mVlV2l0aExvYW4FCWluRmVlTG9hbgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQhwb29sQWRkcgURa0F4bHlOb0xvYW5DYXBGZWUFDGNhcEZlZU5vTG9hbgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQhwb29sQWRkcgUTa0F4bHlXaXRoTG9hbkNhcEZlZQUOY2FwRmVlV2l0aExvYW4JAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUIcG9vbEFkZHIFFmtBeGx5U3RvcExvc3NOb0xvYW5GZWUFEXN0b3Bsb3NzRmVlTm9Mb2FuCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFCHBvb2xBZGRyBRRrQXhseVN0b3BMb3NzTG9hbkZlZQUTc3RvcGxvc3NGZWVXaXRoTG9hbgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQhwb29sQWRkcgURa1Bvb2xJbnRlcmVzdExvYW4AAAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQhwb29sQWRkcgUTa1Bvb2xJbnRlcmVzdE5vTG9hbgAACQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUFa1Bvb2wFCHBvb2xBZGRyBQR0eXBlCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUHc2hhcmVJZAUKa1NoYXJlUG9vbAUIcG9vbEFkZHIFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmx/tXH", "height": 2632502, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8EyLgHdrs3HwReaftE8W4z247DBBXvAfVHo3s6k8FjgU Next: 4Fk7bYx6xdHRcB3w32CBpszvhVbawza5M9qHPY7eyDc9 Diff:
OldNewDifferences
114114 func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr")))
115115
116116
117-func getAdminCallAddr () = addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, kAdminCallPK), "Can't get lend service addr")))
117+func getAdminCallAddr () = addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, kAdminCallPK), "Can't get admin addr")))
118118
119119
120120 func isAdminCall (i) = if ((i.caller == getAdminCallAddr()))
298298 let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id")
299299 let poolAddr = Address(fromBase58String(pool))
300300 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
301- let $t088108875 = getPoolData(poolAddr, pType)
302- let aId = $t088108875._1
303- let bId = $t088108875._2
304- let aBalance = $t088108875._3
305- let bBalance = $t088108875._4
301+ let $t088038868 = getPoolData(poolAddr, pType)
302+ let aId = $t088038868._1
303+ let bId = $t088038868._2
304+ let aBalance = $t088038868._3
305+ let bBalance = $t088038868._4
306306 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [aId, false], nil)
307307 if ($isInstanceOf(@, "(Int, Int)"))
308308 then @
347347
348348
349349 func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = {
350- let $t01010310408 = if ((pType == SF_POOL))
350+ let $t01009610401 = if ((pType == SF_POOL))
351351 then $Tuple2(nil, nil)
352352 else $Tuple2(split({
353353 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
360360 then @
361361 else throw(($getType(@) + " couldn't be cast to String"))
362362 }, "__"))
363- if (($t01010310408 == $t01010310408))
363+ if (($t01009610401 == $t01009610401))
364364 then {
365- let evalPutInB = $t01010310408._2
366- let evalPutInA = $t01010310408._1
367- let $t01041810614 = if ((pType == SF_POOL))
365+ let evalPutInB = $t01009610401._2
366+ let evalPutInA = $t01009610401._1
367+ let $t01041110607 = if ((pType == SF_POOL))
368368 then $Tuple2(fraction(SCALE8, pmtA, balA), fraction(SCALE8, pmtB, balB))
369369 else $Tuple2(parseIntValue(evalPutInA[1]), parseIntValue(evalPutInB[1]))
370- let ratioA = $t01041810614._1
371- let ratioB = $t01041810614._2
372- let $t01062011102 = if ((ratioB > ratioA))
370+ let ratioA = $t01041110607._1
371+ let ratioB = $t01041110607._2
372+ let $t01061311095 = if ((ratioB > ratioA))
373373 then {
374374 let pmt = if ((pType == SF_POOL))
375375 then fraction(balB, ratioA, SCALE8, CEILING)
382382 else parseIntValue(evalPutInB[7])
383383 $Tuple5(pmt, pmtB, (pmtA - pmt), aId, ratioA)
384384 }
385- let pmtInA = $t01062011102._1
386- let pmtInB = $t01062011102._2
387- let change = $t01062011102._3
388- let changeAssetId = $t01062011102._4
389- let lp = $t01062011102._5
385+ let pmtInA = $t01061311095._1
386+ let pmtInB = $t01061311095._2
387+ let change = $t01061311095._3
388+ let changeAssetId = $t01061311095._4
389+ let lp = $t01061311095._5
390390 $Tuple5(pmtInA, pmtInB, change, changeAssetId, lp)
391391 }
392392 else throw("Strict value is not equal to itself.")
418418
419419
420420 func unstakeLP (pool,pType,shareId,amount) = {
421- let $t01233212689 = if ((pType == SF_POOL))
421+ let $t01232512682 = if ((pType == SF_POOL))
422422 then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
423423 else if ((pType == WX_POOL))
424424 then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
425425 else throw("Wrong pool type")
426- let farmAddr = $t01233212689._1
427- let fName = $t01233212689._2
428- let params = $t01233212689._3
426+ let farmAddr = $t01232512682._1
427+ let fName = $t01232512682._2
428+ let params = $t01232512682._3
429429 let inv = invoke(farmAddr, fName, params, nil)
430430 if ((inv == inv))
431431 then amount
438438 let feeScale6 = 1000000
439439 let fee = getIntegerValue(poolAddr, kSFPoolFee)
440440 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee))
441- let $t01310213390 = if ((assetTokenToGet == assetIdA))
441+ let $t01309513383 = if ((assetTokenToGet == assetIdA))
442442 then {
443443 let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee))
444444 $Tuple2(amountToPay, assetIdB)
447447 let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee))
448448 $Tuple2(amountToPay, assetIdA)
449449 }
450- let amountToPay = $t01310213390._1
451- let assetToPay = $t01310213390._2
450+ let amountToPay = $t01309513383._1
451+ let assetToPay = $t01309513383._2
452452 $Tuple2(assetToPay, amountToPay)
453453 }
454454
457457 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
458458 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
459459 let feeScale = toBigInt(100000000)
460- let $t01372914037 = if ((assetTokenToGet == assetIdA))
460+ let $t01372214030 = if ((assetTokenToGet == assetIdA))
461461 then {
462462 let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet))
463463 $Tuple2(amountToPay, assetIdB)
466466 let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet))
467467 $Tuple2(amountToPay, assetIdA)
468468 }
469- let amountToPay = $t01372914037._1
470- let assetToPay = $t01372914037._2
469+ let amountToPay = $t01372214030._1
470+ let assetToPay = $t01372214030._2
471471 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee)))))
472472 $Tuple2(assetToPay, amountToPayWithFee)
473473 }
475475
476476 func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL))
477477 then {
478- let $t01437514497 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
479- let assetToPay = $t01437514497._1
480- let amountToPay = $t01437514497._2
478+ let $t01436814490 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
479+ let assetToPay = $t01436814490._1
480+ let amountToPay = $t01436814490._2
481481 invoke(addressFromStringValue(pool), "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
482482 }
483483 else {
484- let $t01464814770 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
485- let assetToPay = $t01464814770._1
486- let amountToPay = $t01464814770._2
484+ let $t01464114763 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
485+ let assetToPay = $t01464114763._1
486+ let amountToPay = $t01464114763._2
487487 invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
488488 }
489489
514514 }
515515 else if ((pType == WX_POOL))
516516 then {
517- let $t01535815699 = if (if ((pmtA > 0))
517+ let $t01535115692 = if (if ((pmtA > 0))
518518 then (pmtB > 0)
519519 else false)
520520 then {
521- let $t01543915565 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
522- let pmtInA = $t01543915565._1
523- let pmtInB = $t01543915565._2
524- let change = $t01543915565._3
525- let changeId = $t01543915565._4
526- let lpAmount = $t01543915565._5
521+ let $t01543215558 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
522+ let pmtInA = $t01543215558._1
523+ let pmtInB = $t01543215558._2
524+ let change = $t01543215558._3
525+ let changeId = $t01543215558._4
526+ let lpAmount = $t01543215558._5
527527 $Tuple3(change, changeId, lpAmount)
528528 }
529529 else if ((pmtA > 0))
530530 then $Tuple3(pmtA, aId, 0)
531531 else $Tuple3(pmtB, bId, 0)
532- let change = $t01535815699._1
533- let changeId = $t01535815699._2
534- let lpTwo = $t01535815699._3
535- let $t01570615922 = if ((change > 0))
532+ let change = $t01535115692._1
533+ let changeId = $t01535115692._2
534+ let lpTwo = $t01535115692._3
535+ let $t01569915915 = if ((change > 0))
536536 then {
537537 let inv = {
538538 let @ = invoke(poolAddr, "putOneTknREADONLY", [changeId, change], nil)
545545 else throw("Strict value is not equal to itself.")
546546 }
547547 else $Tuple2(0, 0)
548- let lpOne = $t01570615922._1
549- let loss = $t01570615922._2
548+ let lpOne = $t01569915915._1
549+ let loss = $t01569915915._2
550550 $Tuple2((lpTwo + lpOne), loss)
551551 }
552552 else throw("Wrong pool type")
555555
556556 func calcWithdrawLPVirt (pType,pool,lpAmount,shareId,aId,bId,balA,balB,borrowAmount,borrowAssetId) = {
557557 let poolAddr = addressFromStringValue(pool)
558- let $t01621616716 = if ((pType == SF_POOL))
558+ let $t01620916709 = if ((pType == SF_POOL))
559559 then {
560560 let inv = {
561561 let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(lpAmount), toString(balA), toString(balB)]], nil)
590590 else throw("Strict value is not equal to itself.")
591591 }
592592 else throw("Wrong pool type")
593- let getAmountA = $t01621616716._1
594- let getAmountB = $t01621616716._2
593+ let getAmountA = $t01620916709._1
594+ let getAmountB = $t01620916709._2
595595 if ((borrowAmount > 0))
596596 then {
597597 let amountToGetEx = if (if ((borrowAssetId == aId))
603603 else false)
604604 then (borrowAmount - getAmountB)
605605 else 0
606- let $t01699417297 = if ((amountToGetEx > 0))
606+ let $t01698717290 = if ((amountToGetEx > 0))
607607 then if ((pType == SF_POOL))
608608 then calcAmountToPaySF(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
609609 else calcAmountToPayWX(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
610610 else $Tuple2("", 0)
611- let assetToPay = $t01699417297._1
612- let amountToPay = $t01699417297._2
611+ let assetToPay = $t01698717290._1
612+ let amountToPay = $t01698717290._2
613613 if ((borrowAssetId == aId))
614614 then $Tuple2(((getAmountA + amountToGetEx) - borrowAmount), (getAmountB - amountToPay))
615615 else $Tuple2((getAmountA - amountToPay), ((getAmountB + amountToGetEx) - borrowAmount))
656656 if ((lpBalanceBefore == lpBalanceBefore))
657657 then {
658658 let poolAddr = addressFromStringValue(pool)
659- let $t01849418910 = if (if ((pmtA > 0))
659+ let $t01848718903 = if (if ((pmtA > 0))
660660 then (pmtB > 0)
661661 else false)
662662 then {
663- let $t01856018676 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
664- let pmtInA = $t01856018676._1
665- let pmtInB = $t01856018676._2
666- let change = $t01856018676._3
667- let changeId = $t01856018676._4
663+ let $t01855318669 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
664+ let pmtInA = $t01855318669._1
665+ let pmtInB = $t01855318669._2
666+ let change = $t01855318669._3
667+ let changeId = $t01855318669._4
668668 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
669669 if ((inv == inv))
670670 then $Tuple2(change, changeId)
675675 else if ((pmtB > 0))
676676 then $Tuple2(pmtB, bId)
677677 else throw("pmts must be > 0")
678- let change = $t01849418910._1
679- let changeId = $t01849418910._2
678+ let change = $t01848718903._1
679+ let changeId = $t01848718903._2
680680 let inv = if ((change > 0))
681681 then replenishOneTokenByType(poolAddr, pType, change, changeId)
682682 else nil
704704 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
705705 let totalAmount = getPoolTotalShare(pool)
706706 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
707- let $t01976820006 = if (withLoan)
707+ let $t01976119999 = if (withLoan)
708708 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
709709 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
710- let curPoolInterest = $t01976820006._1
711- let totalStakedWithLoan = $t01976820006._2
710+ let curPoolInterest = $t01976119999._1
711+ let totalStakedWithLoan = $t01976119999._2
712712 [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), totalStakedWithLoan), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPosition), stakedAmount), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPositionInterest), curPoolInterest), StringEntry((((user + "_") + toString(posNum)) + kUserPositionPool), pool), IntegerEntry((user + kUserPositionNum), posNum), ScriptTransfer(moneyBox, axlyFeeAmount, fromBase58String(shareId))]
713713 }
714714
754754
755755 func capitalize (pool,pType,tokenId,tokenAmount) = {
756756 let poolAddr = Address(fromBase58String(pool))
757- let $t02235722423 = getPoolData(poolAddr, pType)
758- let AId = $t02235722423._1
759- let BId = $t02235722423._2
760- let balA = $t02235722423._3
761- let balB = $t02235722423._4
762- let shareId = $t02235722423._5
757+ let $t02235022416 = getPoolData(poolAddr, pType)
758+ let AId = $t02235022416._1
759+ let BId = $t02235022416._2
760+ let balA = $t02235022416._3
761+ let balB = $t02235022416._4
762+ let shareId = $t02235022416._5
763763 if (if ((tokenId != AId))
764764 then (tokenId != BId)
765765 else false)
766766 then throw("Wrong asset")
767767 else {
768- let $t02250822588 = if ((tokenId == AId))
768+ let $t02250122581 = if ((tokenId == AId))
769769 then $Tuple2(tokenAmount, 0)
770770 else $Tuple2(0, tokenAmount)
771- let pmtA = $t02250822588._1
772- let pmtB = $t02250822588._2
773- let $t02259122695 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
774- let stakedAmount = $t02259122695._1
775- let nf = $t02259122695._2
771+ let pmtA = $t02250122581._1
772+ let pmtB = $t02250122581._2
773+ let $t02258422688 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
774+ let stakedAmount = $t02258422688._1
775+ let nf = $t02258422688._2
776776 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
777777 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
778778 let totalShareAmount = getPoolTotalShare(pool)
799799 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
800800 let poolAddr = Address(fromBase58String(pool))
801801 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
802- let $t02446324539 = getPoolData(poolAddr, pType)
803- let assetIdA = $t02446324539._1
804- let assetIdB = $t02446324539._2
805- let balA = $t02446324539._3
806- let balB = $t02446324539._4
807- let shareId = $t02446324539._5
802+ let $t02445624532 = getPoolData(poolAddr, pType)
803+ let assetIdA = $t02445624532._1
804+ let assetIdB = $t02445624532._2
805+ let balA = $t02445624532._3
806+ let balB = $t02445624532._4
807+ let shareId = $t02445624532._5
808808 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
809809 if ((cBalABefore == cBalABefore))
810810 then {
823823 then {
824824 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
825825 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
826- let $t02510225191 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
827- let tokensAmountA = $t02510225191._1
828- let tokensAmountB = $t02510225191._2
829- let $t02519425890 = if ((debt > 0))
826+ let $t02509525184 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
827+ let tokensAmountA = $t02509525184._1
828+ let tokensAmountB = $t02509525184._2
829+ let $t02518725883 = if ((debt > 0))
830830 then {
831831 let amountToGetEx = if (if ((borrowAsset == assetIdA))
832832 then (debt > tokensAmountA)
849849 else throw("Strict value is not equal to itself.")
850850 }
851851 else $Tuple2(tokensAmountA, tokensAmountB)
852- let toUserAmountA = $t02519425890._1
853- let toUserAmountB = $t02519425890._2
852+ let toUserAmountA = $t02518725883._1
853+ let toUserAmountB = $t02518725883._2
854854 $Tuple7(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter, shareId)
855855 }
856856 else throw("Strict value is not equal to itself.")
887887 else throw(($getType(@) + " couldn't be cast to Int"))
888888 }
889889 else 0
890- let $t02738927542 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
891- if (($t02738927542 == $t02738927542))
890+ let $t02738227535 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
891+ if (($t02738227535 == $t02738227535))
892892 then {
893- let shareId = $t02738927542._7
894- let cBalBAfter = $t02738927542._6
895- let cBalAAfter = $t02738927542._5
896- let assetIdB = $t02738927542._4
897- let toUserAmountB = $t02738927542._3
898- let assetIdA = $t02738927542._2
899- let toUserAmountA = $t02738927542._1
893+ let shareId = $t02738227535._7
894+ let cBalBAfter = $t02738227535._6
895+ let cBalAAfter = $t02738227535._5
896+ let assetIdB = $t02738227535._4
897+ let toUserAmountB = $t02738227535._3
898+ let assetIdA = $t02738227535._2
899+ let toUserAmountA = $t02738227535._1
900900 let closeDbtInv = if ((debt > 0))
901901 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
902902 else 0
937937 let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
938938 let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
939939 let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB))
940- let $t02922829325 = if ((borrowId == aId))
940+ let $t02922129318 = if ((borrowId == aId))
941941 then $Tuple2(dPriceA, decPrA)
942942 else $Tuple2(dPriceB, decPrB)
943- let borrowPrice = $t02922829325._1
944- let borrowDecPr = $t02922829325._2
943+ let borrowPrice = $t02922129318._1
944+ let borrowDecPr = $t02922129318._2
945945 fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice)
946946 }
947947
953953 then throw("Leverage can't be <100 and >300")
954954 else {
955955 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
956- let $t02974329833 = getPoolData(Address(fromBase58String(pool)), pType)
957- let AId = $t02974329833._1
958- let BId = $t02974329833._2
959- let balA = $t02974329833._3
960- let balB = $t02974329833._4
961- let shareId = $t02974329833._5
956+ let $t02973629826 = getPoolData(Address(fromBase58String(pool)), pType)
957+ let AId = $t02973629826._1
958+ let BId = $t02973629826._2
959+ let balA = $t02973629826._3
960+ let balB = $t02973629826._4
961+ let shareId = $t02973629826._5
962962 let borrowAmount = if ((leverage > 100))
963963 then calcBorrowAmount(pmtA, pmtB, AId, BId, leverage, borrowId)
964964 else 0
965- let $t02996830075 = if ((borrowId == AId))
965+ let $t02996130068 = if ((borrowId == AId))
966966 then $Tuple2((pmtA + borrowAmount), pmtB)
967967 else $Tuple2(pmtA, (pmtB + borrowAmount))
968- let payInA = $t02996830075._1
969- let payInB = $t02996830075._2
970- let $t03007830171 = calcReplenishLPVirt(pType, pool, payInA, AId, payInB, BId, balA, balB)
971- let lpAmount = $t03007830171._1
972- let loss = $t03007830171._2
968+ let payInA = $t02996130068._1
969+ let payInB = $t02996130068._2
970+ let $t03007130164 = calcReplenishLPVirt(pType, pool, payInA, AId, payInB, BId, balA, balB)
971+ let lpAmount = $t03007130164._1
972+ let loss = $t03007130164._2
973973 let impactMod = if ((0 > loss))
974974 then (loss * -1)
975975 else loss
999999 @Callable(i)
10001000 func getUserPositionInDollarsREADONLY (user,pools,posNum) = {
10011001 func userPos (a,pool) = {
1002- let $t03098431018 = a
1003- let totalPos = $t03098431018._1
1004- let posDebt = $t03098431018._2
1005- let index = $t03098431018._3
1002+ let $t03097731011 = a
1003+ let totalPos = $t03097731011._1
1004+ let posDebt = $t03097731011._2
1005+ let index = $t03097731011._3
10061006 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1007- let $t03111031200 = getPoolData(Address(fromBase58String(pool)), pType)
1008- let AId = $t03111031200._1
1009- let BId = $t03111031200._2
1010- let balA = $t03111031200._3
1011- let balB = $t03111031200._4
1012- let shareId = $t03111031200._5
1007+ let $t03110331193 = getPoolData(Address(fromBase58String(pool)), pType)
1008+ let AId = $t03110331193._1
1009+ let BId = $t03110331193._2
1010+ let balA = $t03110331193._3
1011+ let balB = $t03110331193._4
1012+ let shareId = $t03110331193._5
10131013 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0)
10141014 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0))
10151015 let sharePrices = getSharePrice(shareId)
10351035 }
10361036 }
10371037
1038- let $t03224332298 = {
1038+ let $t03223632291 = {
10391039 let $l = pools
10401040 let $s = size($l)
10411041 let $acc0 = $Tuple3(nil, nil, 0)
10491049
10501050 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
10511051 }
1052- let pos = $t03224332298._1
1053- let debt = $t03224332298._2
1052+ let pos = $t03223632291._1
1053+ let debt = $t03223632291._2
10541054 $Tuple2(nil, $Tuple2(pos, debt))
10551055 }
10561056
10631063 then throw("Leverage can't be <100 and >300")
10641064 else {
10651065 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1066- let $t03262132711 = getPoolData(Address(fromBase58String(pool)), pType)
1067- let AId = $t03262132711._1
1068- let BId = $t03262132711._2
1069- let balA = $t03262132711._3
1070- let balB = $t03262132711._4
1071- let shareId = $t03262132711._5
1072- let $t03271433351 = if ((size(i.payments) == 2))
1066+ let $t03261432704 = getPoolData(Address(fromBase58String(pool)), pType)
1067+ let AId = $t03261432704._1
1068+ let BId = $t03261432704._2
1069+ let balA = $t03261432704._3
1070+ let balB = $t03261432704._4
1071+ let shareId = $t03261432704._5
1072+ let $t03270733344 = if ((size(i.payments) == 2))
10731073 then if ((assetIdToStr(i.payments[0].assetId) != AId))
10741074 then throw("Wrong payment asset A")
10751075 else if ((assetIdToStr(i.payments[1].assetId) != BId))
10821082 then $Tuple4(0, AId, i.payments[0].amount, BId)
10831083 else throw("Wrong payment")
10841084 else throw("One or two payments expected")
1085- let pmtA = $t03271433351._1
1086- let pmtAssetA = $t03271433351._2
1087- let pmtB = $t03271433351._3
1088- let pmtAssetB = $t03271433351._4
1085+ let pmtA = $t03270733344._1
1086+ let pmtAssetA = $t03270733344._2
1087+ let pmtB = $t03270733344._3
1088+ let pmtAssetB = $t03270733344._4
10891089 let newPosNum = getNewUserPositionNumber(toString(i.caller))
10901090 if ((leverage > 100))
10911091 then {
11081108 else throw("Strict value is not equal to itself.")
11091109 }
11101110 else {
1111- let $t03427934391 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1112- let userStaked = $t03427934391._1
1113- let axlyFee = $t03427934391._2
1111+ let $t03427234384 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1112+ let userStaked = $t03427234384._1
1113+ let axlyFee = $t03427234384._2
11141114 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
11151115 }
11161116 }
11561156
11571157 @Callable(i)
11581158 func replenishFromLand (requestId) = valueOrElse(isLandCall(i), {
1159- let $t03614436248 = parseRequest(requestId)
1160- let user = $t03614436248._1
1161- let pool = $t03614436248._2
1162- let pmtA = $t03614436248._3
1163- let AId = $t03614436248._4
1164- let pmtB = $t03614436248._5
1165- let BId = $t03614436248._6
1166- let balA = $t03614436248._7
1167- let balB = $t03614436248._8
1168- let shareId = $t03614436248._9
1169- let bwAsset = $t03614436248._10
1170- let bwAmount = $t03614436248._11
1159+ let $t03613736241 = parseRequest(requestId)
1160+ let user = $t03613736241._1
1161+ let pool = $t03613736241._2
1162+ let pmtA = $t03613736241._3
1163+ let AId = $t03613736241._4
1164+ let pmtB = $t03613736241._5
1165+ let BId = $t03613736241._6
1166+ let balA = $t03613736241._7
1167+ let balB = $t03613736241._8
1168+ let shareId = $t03613736241._9
1169+ let bwAsset = $t03613736241._10
1170+ let bwAmount = $t03613736241._11
11711171 if ((size(i.payments) != 1))
11721172 then throw("Wrong payment size")
11731173 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
11751175 else (i.payments[0].amount != bwAmount))
11761176 then throw("Wrong payment")
11771177 else {
1178- let $t03643836562 = if ((AId == bwAsset))
1178+ let $t03643136555 = if ((AId == bwAsset))
11791179 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
11801180 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1181- let pmtAllA = $t03643836562._1
1182- let pmtAllB = $t03643836562._2
1181+ let pmtAllA = $t03643136555._1
1182+ let pmtAllB = $t03643136555._2
11831183 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1184- let $t03664436759 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1185- let userStaked = $t03664436759._1
1186- let axlyFee = $t03664436759._2
1184+ let $t03663736752 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1185+ let userStaked = $t03663736752._1
1186+ let axlyFee = $t03663736752._2
11871187 let posNum = getNewUserPositionNumber(user)
11881188 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
11891189 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
11971197 func liquidate (user,posId,liquidateAmount) = valueOrElse(isLandCall(i), {
11981198 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
11991199 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1200- let $t03753837628 = getPoolData(Address(fromBase58String(pool)), pType)
1201- let AId = $t03753837628._1
1202- let BId = $t03753837628._2
1203- let balA = $t03753837628._3
1204- let balB = $t03753837628._4
1205- let shareId = $t03753837628._5
1200+ let $t03753137621 = getPoolData(Address(fromBase58String(pool)), pType)
1201+ let AId = $t03753137621._1
1202+ let BId = $t03753137621._2
1203+ let balA = $t03753137621._3
1204+ let balB = $t03753137621._4
1205+ let shareId = $t03753137621._5
12061206 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
12071207 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
12081208 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
12291229
12301230 @Callable(i)
12311231 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = valueOrElse(isAdminCall(i), {
1232- let $t03941439608 = if (claim)
1232+ let $t03940739601 = if (claim)
12331233 then claimFarmed(type, pool)
12341234 else {
12351235 let claimedAsset = if ((type == SF_POOL))
12371237 else WXID
12381238 $Tuple2(amountToExchange, claimedAsset)
12391239 }
1240- let claimedAmount = $t03941439608._1
1241- let claimedAsset = $t03941439608._2
1240+ let claimedAmount = $t03940739601._1
1241+ let claimedAsset = $t03940739601._2
12421242 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
12431243 let change = (claimedAmount - amountToExchange)
12441244 let changeEntry = if ((change > 0))
12511251
12521252 @Callable(i)
12531253 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = valueOrElse(isAdminCall(i), {
1254- let $t04029340487 = if (claim)
1254+ let $t04028640480 = if (claim)
12551255 then claimFarmed(type, pool)
12561256 else {
12571257 let claimedAsset = if ((type == SF_POOL))
12591259 else WXID
12601260 $Tuple2(amountToExchange, claimedAsset)
12611261 }
1262- let claimedAmount = $t04029340487._1
1263- let claimedAsset = $t04029340487._2
1262+ let claimedAmount = $t04028640480._1
1263+ let claimedAsset = $t04028640480._2
12641264 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
12651265 let change = (claimedAmount - amountToExchange)
12661266 let changeEntry = if ((change > 0))
12731273
12741274 @Callable(i)
12751275 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = valueOrElse(isAdminCall(i), {
1276- let $t04123841432 = if (claim)
1276+ let $t04123141425 = if (claim)
12771277 then claimFarmed(type, pool)
12781278 else {
12791279 let claimedAsset = if ((type == SF_POOL))
12811281 else WXID
12821282 $Tuple2(amountToExchange, claimedAsset)
12831283 }
1284- let claimedAmount = $t04123841432._1
1285- let claimedAsset = $t04123841432._2
1284+ let claimedAmount = $t04123141425._1
1285+ let claimedAsset = $t04123141425._2
12861286 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
12871287 let change = (claimedAmount - amountToExchange)
12881288 let changeEntry = if ((change > 0))
12991299 else false)
13001300 then throw("Wrong type")
13011301 else {
1302- let $t04215342247 = getPoolData(Address(fromBase58String(poolAddr)), type)
1303- let aId = $t04215342247._1
1304- let bId = $t04215342247._2
1305- let aBal = $t04215342247._3
1306- let bBal = $t04215342247._4
1307- let shareId = $t04215342247._5
1302+ let $t04214642240 = getPoolData(Address(fromBase58String(poolAddr)), type)
1303+ let aId = $t04214642240._1
1304+ let bId = $t04214642240._2
1305+ let aBal = $t04214642240._3
1306+ let bBal = $t04214642240._4
1307+ let shareId = $t04214642240._5
13081308 [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kAxlyStopLossNoLoanFee), stoplossFeeNoLoan), IntegerEntry((poolAddr + kAxlyStopLossLoanFee), stoplossFeeWithLoan), IntegerEntry((poolAddr + kPoolInterestLoan), 0), IntegerEntry((poolAddr + kPoolInterestNoLoan), 0), StringEntry((kPool + poolAddr), type), StringEntry((shareId + kSharePool), poolAddr)]
13091309 })
13101310
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SF_POOL = "SF"
55
66 let WX_POOL = "WX"
77
88 let CAP_FEE_NO_LOAN = "capNoLoan"
99
1010 let CAP_FEE_LOAN = "capLoan"
1111
1212 let STOPLOSS_FEE_NO_LOAN = "stopLossNoLoan"
1313
1414 let STOPLOSS_LOAN = "stopLossLoan"
1515
1616 let LOAN_FEE = "loan"
1717
1818 let NO_LOAN_FEE = "noLoan"
1919
2020 let NO_FEE = "noFee"
2121
2222 let SCALE8 = 100000000
2323
2424 let SCALE10 = 10000000000
2525
2626 let FEE_SCALE6 = 1000000
2727
2828 let kSFPoolAAssetBalance = "A_asset_balance"
2929
3030 let kSFPoolBAssetBalance = "B_asset_balance"
3131
3232 let kSFPoolAAssetId = "A_asset_id"
3333
3434 let kSFPoolBAssetId = "B_asset_id"
3535
3636 let kSFPoolShareId = "share_asset_id"
3737
3838 let kSFPoolShareSupply = "share_asset_supply"
3939
4040 let kSFPoolFee = "commission"
4141
4242 let kUserPosition = "_user_position"
4343
4444 let kUserPositionPool = "_user_position_pool"
4545
4646 let kUserBorrowAmount = "_user_position_borrow_amount"
4747
4848 let kUserBorrowAssetId = "_user_position_borrow_asset_id"
4949
5050 let kUserPositionNum = "_user_position_number"
5151
5252 let kUserPositionInterest = "_user_position_interest"
5353
5454 let kPoolTotal = "_pool_total"
5555
5656 let kPoolTotalLoan = "_pool_total_loan"
5757
5858 let kPoolInterestLoan = "_pool_interest_loan"
5959
6060 let kPoolInterestNoLoan = "_pool_interest_no_loan"
6161
6262 let kAxlyInFeeWithoutLoan = "_axly_fee_without_loan"
6363
6464 let kAxlyInFeeWithLoan = "_axly_fee_with_loan"
6565
6666 let kAxlyNoLoanCapFee = "_axly_fee_cap_with_loan"
6767
6868 let kAxlyWithLoanCapFee = "_axly_fee_cap_no_loan"
6969
7070 let kAxlyStopLossNoLoanFee = "_axly_fee_stoploss_with_loan"
7171
7272 let kAxlyStopLossLoanFee = "_axly_fee_stoploss_no_loan"
7373
7474 let kRequestId = "_request_id"
7575
7676 let kRequestIter = "requests_iter"
7777
7878 let kPool = "pool_"
7979
8080 let kSharePool = "_pool_share_id"
8181
8282 let kPoolCapChange = "_pool_cap_change"
8383
8484 let kTokenLastPrice = "last_price"
8585
8686 let kUserStopLoss = "_stop_loss"
8787
8888 let kMoneyBox = "axly_money_box"
8989
9090 let kSFFarmingAddr = "swopfi_farming_addr"
9191
9292 let kLendService = "lend_service_addr"
9393
9494 let kAdminCallPK = "admin_call_pub_key"
9595
9696 let kPriceOracle = "price_oracle"
9797
9898 let kExContract = "exchange_contract"
9999
100100 let kWxSwapContract = "wx_swap_contract"
101101
102102 let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address")))
103103
104104 let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address")))
105105
106106 let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address")))
107107
108108 let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address")))
109109
110110 let SWOPID = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp'
111111
112112 let WXID = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc'
113113
114114 func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr")))
115115
116116
117-func getAdminCallAddr () = addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, kAdminCallPK), "Can't get lend service addr")))
117+func getAdminCallAddr () = addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, kAdminCallPK), "Can't get admin addr")))
118118
119119
120120 func isAdminCall (i) = if ((i.caller == getAdminCallAddr()))
121121 then unit
122122 else throw("Only admin can call this function")
123123
124124
125125 func isSelfCall (i) = if ((i.caller == this))
126126 then unit
127127 else throw("Only contract itself can call this function")
128128
129129
130130 func isLandCall (i) = if ((i.caller == getLendSrvAddr()))
131131 then unit
132132 else throw("Only land contract can call this function")
133133
134134
135135 func accountBalance (assetId) = match assetId {
136136 case id: ByteVector =>
137137 assetBalance(this, id)
138138 case waves: Unit =>
139139 wavesBalance(this).available
140140 case _ =>
141141 throw("Match error")
142142 }
143143
144144
145145 func getSFPoolData (poolAddr) = $Tuple5(valueOrErrorMessage(getString(poolAddr, kSFPoolAAssetId), "Can't get pool A asset id"), valueOrErrorMessage(getString(poolAddr, kSFPoolBAssetId), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolAAssetBalance), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolBAssetBalance), "Can't get pool B asset balance"), valueOrErrorMessage(getString(poolAddr, kSFPoolShareId), "Can't get share asset id"))
146146
147147
148148 func getWXPoolData (poolAddr) = {
149149 let cfg = {
150150 let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil)
151151 if ($isInstanceOf(@, "List[Any]"))
152152 then @
153153 else throw(($getType(@) + " couldn't be cast to List[Any]"))
154154 }
155155 if ((cfg == cfg))
156156 then {
157157 let aId = valueOrErrorMessage({
158158 let @ = cfg[4]
159159 if ($isInstanceOf(@, "String"))
160160 then @
161161 else unit
162162 }, "Can't get pool A asset id")
163163 let bId = valueOrErrorMessage({
164164 let @ = cfg[5]
165165 if ($isInstanceOf(@, "String"))
166166 then @
167167 else unit
168168 }, "Can't get pool B asset id")
169169 let shareId = valueOrErrorMessage({
170170 let @ = cfg[3]
171171 if ($isInstanceOf(@, "String"))
172172 then @
173173 else unit
174174 }, "Can't get pool LP asset id")
175175 let balA = {
176176 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil)
177177 if ($isInstanceOf(@, "Int"))
178178 then @
179179 else throw(($getType(@) + " couldn't be cast to Int"))
180180 }
181181 if ((balA == balA))
182182 then {
183183 let balB = {
184184 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil)
185185 if ($isInstanceOf(@, "Int"))
186186 then @
187187 else throw(($getType(@) + " couldn't be cast to Int"))
188188 }
189189 if ((balB == balB))
190190 then $Tuple5(aId, bId, balA, balB, shareId)
191191 else throw("Strict value is not equal to itself.")
192192 }
193193 else throw("Strict value is not equal to itself.")
194194 }
195195 else throw("Strict value is not equal to itself.")
196196 }
197197
198198
199199 func getPoolData (poolAddr,type) = if ((type == SF_POOL))
200200 then getSFPoolData(poolAddr)
201201 else if ((type == WX_POOL))
202202 then getWXPoolData(poolAddr)
203203 else throw("Wrong pool type")
204204
205205
206206 func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL))
207207 then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply")
208208 else if ((type == WX_POOL))
209209 then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity
210210 else throw("Wrong pool type")
211211
212212
213213 func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0)
214214
215215
216216 func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0)
217217
218218
219219 func getNewUserPositionNumber (user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1)
220220
221221
222222 func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN))
223223 then getIntegerValue(this, (pool + kAxlyWithLoanCapFee))
224224 else if ((feeType == CAP_FEE_NO_LOAN))
225225 then getIntegerValue(this, (pool + kAxlyNoLoanCapFee))
226226 else if ((feeType == LOAN_FEE))
227227 then getIntegerValue(this, (pool + kAxlyInFeeWithLoan))
228228 else if ((feeType == NO_LOAN_FEE))
229229 then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan))
230230 else if ((feeType == NO_FEE))
231231 then 0
232232 else throw("Wrong fee type")
233233
234234
235235 func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr")))
236236
237237
238238 func getWXFarmingAddr (poolAddr) = {
239239 let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr")))
240240 let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
241241 Address(fromBase58String(factroyCfg[1]))
242242 }
243243
244244
245245 func assetIdToStr (assetId) = match assetId {
246246 case id: ByteVector =>
247247 toBase58String(id)
248248 case waves: Unit =>
249249 "WAVES"
250250 case _ =>
251251 throw("Match error")
252252 }
253253
254254
255255 func assetIdFromStr (assetId) = if ((assetId == "WAVES"))
256256 then unit
257257 else fromBase58String(assetId)
258258
259259
260260 func getAssetDecimals (assetId) = if ((assetId == "WAVES"))
261261 then 8
262262 else match assetInfo(fromBase58String(assetId)) {
263263 case asset: Asset =>
264264 asset.decimals
265265 case _ =>
266266 throw("Can't find asset")
267267 }
268268
269269
270270 func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN)
271271
272272
273273 func getAssetsPrice (assetIds) = {
274274 func getPrices (a,assetId) = {
275275 let assetPrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
276276 if ($isInstanceOf(@, "(Int, Int)"))
277277 then @
278278 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
279279 (a :+ assetPrice)
280280 }
281281
282282 let $l = assetIds
283283 let $s = size($l)
284284 let $acc0 = nil
285285 func $f0_1 ($a,$i) = if (($i >= $s))
286286 then $a
287287 else getPrices($a, $l[$i])
288288
289289 func $f0_2 ($a,$i) = if (($i >= $s))
290290 then $a
291291 else throw("List size exceeds 50")
292292
293293 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
294294 }
295295
296296
297297 func getSharePrice (shareId) = {
298298 let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id")
299299 let poolAddr = Address(fromBase58String(pool))
300300 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
301- let $t088108875 = getPoolData(poolAddr, pType)
302- let aId = $t088108875._1
303- let bId = $t088108875._2
304- let aBalance = $t088108875._3
305- let bBalance = $t088108875._4
301+ let $t088038868 = getPoolData(poolAddr, pType)
302+ let aId = $t088038868._1
303+ let bId = $t088038868._2
304+ let aBalance = $t088038868._3
305+ let bBalance = $t088038868._4
306306 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [aId, false], nil)
307307 if ($isInstanceOf(@, "(Int, Int)"))
308308 then @
309309 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
310310 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [bId, false], nil)
311311 if ($isInstanceOf(@, "(Int, Int)"))
312312 then @
313313 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
314314 let shareSupply = getShareSupply(poolAddr, pType, shareId)
315315 let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
316316 let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
317317 let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
318318 let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision))
319319 fraction(sum, sharePrecision, shareSupply)
320320 }
321321
322322
323323 func getSharePrices (shareIds) = {
324324 func getPrices (a,shareId) = (a :+ getSharePrice(shareId))
325325
326326 let $l = shareIds
327327 let $s = size($l)
328328 let $acc0 = nil
329329 func $f0_1 ($a,$i) = if (($i >= $s))
330330 then $a
331331 else getPrices($a, $l[$i])
332332
333333 func $f0_2 ($a,$i) = if (($i >= $s))
334334 then $a
335335 else throw("List size exceeds 20")
336336
337337 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
338338 }
339339
340340
341341 func getCursEntries (aId,bId,shareId) = {
342342 let assetsPrices = getAssetsPrice([aId, bId])
343343 let sharePrice = getSharePrice(shareId)
344344 let prices = [toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)]
345345 [StringEntry(kTokenLastPrice, makeString(prices, ","))]
346346 }
347347
348348
349349 func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = {
350- let $t01010310408 = if ((pType == SF_POOL))
350+ let $t01009610401 = if ((pType == SF_POOL))
351351 then $Tuple2(nil, nil)
352352 else $Tuple2(split({
353353 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
354354 if ($isInstanceOf(@, "String"))
355355 then @
356356 else throw(($getType(@) + " couldn't be cast to String"))
357357 }, "__"), split({
358358 let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil)
359359 if ($isInstanceOf(@, "String"))
360360 then @
361361 else throw(($getType(@) + " couldn't be cast to String"))
362362 }, "__"))
363- if (($t01010310408 == $t01010310408))
363+ if (($t01009610401 == $t01009610401))
364364 then {
365- let evalPutInB = $t01010310408._2
366- let evalPutInA = $t01010310408._1
367- let $t01041810614 = if ((pType == SF_POOL))
365+ let evalPutInB = $t01009610401._2
366+ let evalPutInA = $t01009610401._1
367+ let $t01041110607 = if ((pType == SF_POOL))
368368 then $Tuple2(fraction(SCALE8, pmtA, balA), fraction(SCALE8, pmtB, balB))
369369 else $Tuple2(parseIntValue(evalPutInA[1]), parseIntValue(evalPutInB[1]))
370- let ratioA = $t01041810614._1
371- let ratioB = $t01041810614._2
372- let $t01062011102 = if ((ratioB > ratioA))
370+ let ratioA = $t01041110607._1
371+ let ratioB = $t01041110607._2
372+ let $t01061311095 = if ((ratioB > ratioA))
373373 then {
374374 let pmt = if ((pType == SF_POOL))
375375 then fraction(balB, ratioA, SCALE8, CEILING)
376376 else parseIntValue(evalPutInA[8])
377377 $Tuple5(pmtA, pmt, (pmtB - pmt), bId, ratioB)
378378 }
379379 else {
380380 let pmt = if ((pType == SF_POOL))
381381 then fraction(balA, ratioB, SCALE8, CEILING)
382382 else parseIntValue(evalPutInB[7])
383383 $Tuple5(pmt, pmtB, (pmtA - pmt), aId, ratioA)
384384 }
385- let pmtInA = $t01062011102._1
386- let pmtInB = $t01062011102._2
387- let change = $t01062011102._3
388- let changeAssetId = $t01062011102._4
389- let lp = $t01062011102._5
385+ let pmtInA = $t01061311095._1
386+ let pmtInB = $t01061311095._2
387+ let change = $t01061311095._3
388+ let changeAssetId = $t01061311095._4
389+ let lp = $t01061311095._5
390390 $Tuple5(pmtInA, pmtInB, change, changeAssetId, lp)
391391 }
392392 else throw("Strict value is not equal to itself.")
393393 }
394394
395395
396396 func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = {
397397 let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)]
398398 if ((pType == SF_POOL))
399399 then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments)
400400 else invoke(poolAddr, "put", [1000000, false], payments)
401401 }
402402
403403
404404 func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = {
405405 let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)]
406406 if ((pType == SF_POOL))
407407 then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments)
408408 else invoke(poolAddr, "putOneTkn", [0, false], payments)
409409 }
410410
411411
412412 func stakeLP (pool,pType,shareId,amount) = {
413413 let payments = [AttachedPayment(fromBase58String(shareId), amount)]
414414 if ((pType == SF_POOL))
415415 then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments)
416416 else invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments)
417417 }
418418
419419
420420 func unstakeLP (pool,pType,shareId,amount) = {
421- let $t01233212689 = if ((pType == SF_POOL))
421+ let $t01232512682 = if ((pType == SF_POOL))
422422 then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
423423 else if ((pType == WX_POOL))
424424 then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
425425 else throw("Wrong pool type")
426- let farmAddr = $t01233212689._1
427- let fName = $t01233212689._2
428- let params = $t01233212689._3
426+ let farmAddr = $t01232512682._1
427+ let fName = $t01232512682._2
428+ let params = $t01232512682._3
429429 let inv = invoke(farmAddr, fName, params, nil)
430430 if ((inv == inv))
431431 then amount
432432 else throw("Strict value is not equal to itself.")
433433 }
434434
435435
436436 func calcAmountToPaySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
437437 let poolAddr = Address(fromBase58String(pool))
438438 let feeScale6 = 1000000
439439 let fee = getIntegerValue(poolAddr, kSFPoolFee)
440440 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee))
441- let $t01310213390 = if ((assetTokenToGet == assetIdA))
441+ let $t01309513383 = if ((assetTokenToGet == assetIdA))
442442 then {
443443 let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee))
444444 $Tuple2(amountToPay, assetIdB)
445445 }
446446 else {
447447 let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee))
448448 $Tuple2(amountToPay, assetIdA)
449449 }
450- let amountToPay = $t01310213390._1
451- let assetToPay = $t01310213390._2
450+ let amountToPay = $t01309513383._1
451+ let assetToPay = $t01309513383._2
452452 $Tuple2(assetToPay, amountToPay)
453453 }
454454
455455
456456 func calcAmountToPayWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
457457 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
458458 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
459459 let feeScale = toBigInt(100000000)
460- let $t01372914037 = if ((assetTokenToGet == assetIdA))
460+ let $t01372214030 = if ((assetTokenToGet == assetIdA))
461461 then {
462462 let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet))
463463 $Tuple2(amountToPay, assetIdB)
464464 }
465465 else {
466466 let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet))
467467 $Tuple2(amountToPay, assetIdA)
468468 }
469- let amountToPay = $t01372914037._1
470- let assetToPay = $t01372914037._2
469+ let amountToPay = $t01372214030._1
470+ let assetToPay = $t01372214030._2
471471 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee)))))
472472 $Tuple2(assetToPay, amountToPayWithFee)
473473 }
474474
475475
476476 func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL))
477477 then {
478- let $t01437514497 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
479- let assetToPay = $t01437514497._1
480- let amountToPay = $t01437514497._2
478+ let $t01436814490 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
479+ let assetToPay = $t01436814490._1
480+ let amountToPay = $t01436814490._2
481481 invoke(addressFromStringValue(pool), "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
482482 }
483483 else {
484- let $t01464814770 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
485- let assetToPay = $t01464814770._1
486- let amountToPay = $t01464814770._2
484+ let $t01464114763 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
485+ let assetToPay = $t01464114763._1
486+ let amountToPay = $t01464114763._2
487487 invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
488488 }
489489
490490
491491 func calcReplenishLPVirt (pType,pool,pmtA,aId,pmtB,bId,balA,balB) = {
492492 let poolAddr = addressFromStringValue(pool)
493493 if ((pType == SF_POOL))
494494 then {
495495 let inv = {
496496 let @ = invoke(poolAddr, "callFunction", ["calcLPReplenishDiffPropREADONLY", [toString(pmtA), toString(pmtB), "0"]], nil)
497497 if ($isInstanceOf(@, "List[Any]"))
498498 then @
499499 else throw(($getType(@) + " couldn't be cast to List[Any]"))
500500 }
501501 if ((inv == inv))
502502 then $Tuple2({
503503 let @ = inv[0]
504504 if ($isInstanceOf(@, "Int"))
505505 then @
506506 else throw(($getType(@) + " couldn't be cast to Int"))
507507 }, {
508508 let @ = inv[1]
509509 if ($isInstanceOf(@, "Int"))
510510 then @
511511 else throw(($getType(@) + " couldn't be cast to Int"))
512512 })
513513 else throw("Strict value is not equal to itself.")
514514 }
515515 else if ((pType == WX_POOL))
516516 then {
517- let $t01535815699 = if (if ((pmtA > 0))
517+ let $t01535115692 = if (if ((pmtA > 0))
518518 then (pmtB > 0)
519519 else false)
520520 then {
521- let $t01543915565 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
522- let pmtInA = $t01543915565._1
523- let pmtInB = $t01543915565._2
524- let change = $t01543915565._3
525- let changeId = $t01543915565._4
526- let lpAmount = $t01543915565._5
521+ let $t01543215558 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
522+ let pmtInA = $t01543215558._1
523+ let pmtInB = $t01543215558._2
524+ let change = $t01543215558._3
525+ let changeId = $t01543215558._4
526+ let lpAmount = $t01543215558._5
527527 $Tuple3(change, changeId, lpAmount)
528528 }
529529 else if ((pmtA > 0))
530530 then $Tuple3(pmtA, aId, 0)
531531 else $Tuple3(pmtB, bId, 0)
532- let change = $t01535815699._1
533- let changeId = $t01535815699._2
534- let lpTwo = $t01535815699._3
535- let $t01570615922 = if ((change > 0))
532+ let change = $t01535115692._1
533+ let changeId = $t01535115692._2
534+ let lpTwo = $t01535115692._3
535+ let $t01569915915 = if ((change > 0))
536536 then {
537537 let inv = {
538538 let @ = invoke(poolAddr, "putOneTknREADONLY", [changeId, change], nil)
539539 if ($isInstanceOf(@, "(Int, Int, Int)"))
540540 then @
541541 else throw(($getType(@) + " couldn't be cast to (Int, Int, Int)"))
542542 }
543543 if ((inv == inv))
544544 then $Tuple2(inv._1, inv._3)
545545 else throw("Strict value is not equal to itself.")
546546 }
547547 else $Tuple2(0, 0)
548- let lpOne = $t01570615922._1
549- let loss = $t01570615922._2
548+ let lpOne = $t01569915915._1
549+ let loss = $t01569915915._2
550550 $Tuple2((lpTwo + lpOne), loss)
551551 }
552552 else throw("Wrong pool type")
553553 }
554554
555555
556556 func calcWithdrawLPVirt (pType,pool,lpAmount,shareId,aId,bId,balA,balB,borrowAmount,borrowAssetId) = {
557557 let poolAddr = addressFromStringValue(pool)
558- let $t01621616716 = if ((pType == SF_POOL))
558+ let $t01620916709 = if ((pType == SF_POOL))
559559 then {
560560 let inv = {
561561 let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(lpAmount), toString(balA), toString(balB)]], nil)
562562 if ($isInstanceOf(@, "List[Any]"))
563563 then @
564564 else throw(($getType(@) + " couldn't be cast to List[Any]"))
565565 }
566566 if ((inv == inv))
567567 then $Tuple2({
568568 let @ = inv[0]
569569 if ($isInstanceOf(@, "Int"))
570570 then @
571571 else throw(($getType(@) + " couldn't be cast to Int"))
572572 }, {
573573 let @ = inv[1]
574574 if ($isInstanceOf(@, "Int"))
575575 then @
576576 else throw(($getType(@) + " couldn't be cast to Int"))
577577 })
578578 else throw("Strict value is not equal to itself.")
579579 }
580580 else if ((pType == WX_POOL))
581581 then {
582582 let get = split({
583583 let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, lpAmount], nil)
584584 if ($isInstanceOf(@, "String"))
585585 then @
586586 else throw(($getType(@) + " couldn't be cast to String"))
587587 }, "__")
588588 if ((get == get))
589589 then $Tuple2(parseIntValue(get[1]), parseIntValue(get[2]))
590590 else throw("Strict value is not equal to itself.")
591591 }
592592 else throw("Wrong pool type")
593- let getAmountA = $t01621616716._1
594- let getAmountB = $t01621616716._2
593+ let getAmountA = $t01620916709._1
594+ let getAmountB = $t01620916709._2
595595 if ((borrowAmount > 0))
596596 then {
597597 let amountToGetEx = if (if ((borrowAssetId == aId))
598598 then (borrowAmount > getAmountA)
599599 else false)
600600 then (borrowAmount - getAmountA)
601601 else if (if ((borrowAssetId == bId))
602602 then (borrowAmount > getAmountB)
603603 else false)
604604 then (borrowAmount - getAmountB)
605605 else 0
606- let $t01699417297 = if ((amountToGetEx > 0))
606+ let $t01698717290 = if ((amountToGetEx > 0))
607607 then if ((pType == SF_POOL))
608608 then calcAmountToPaySF(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
609609 else calcAmountToPayWX(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
610610 else $Tuple2("", 0)
611- let assetToPay = $t01699417297._1
612- let amountToPay = $t01699417297._2
611+ let assetToPay = $t01698717290._1
612+ let amountToPay = $t01698717290._2
613613 if ((borrowAssetId == aId))
614614 then $Tuple2(((getAmountA + amountToGetEx) - borrowAmount), (getAmountB - amountToPay))
615615 else $Tuple2((getAmountA - amountToPay), ((getAmountB + amountToGetEx) - borrowAmount))
616616 }
617617 else $Tuple2(getAmountA, getAmountB)
618618 }
619619
620620
621621 func claimFarmed (type,pool) = if ((type == SF_POOL))
622622 then {
623623 let balBefore = accountBalance(SWOPID)
624624 if ((balBefore == balBefore))
625625 then {
626626 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
627627 if ((inv == inv))
628628 then {
629629 let balAfter = accountBalance(SWOPID)
630630 $Tuple2((balAfter - balBefore), SWOPID)
631631 }
632632 else throw("Strict value is not equal to itself.")
633633 }
634634 else throw("Strict value is not equal to itself.")
635635 }
636636 else if ((type == WX_POOL))
637637 then {
638638 let balBefore = accountBalance(WXID)
639639 if ((balBefore == balBefore))
640640 then {
641641 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
642642 if ((inv == inv))
643643 then {
644644 let balAfter = accountBalance(WXID)
645645 $Tuple2((balAfter - balBefore), WXID)
646646 }
647647 else throw("Strict value is not equal to itself.")
648648 }
649649 else throw("Strict value is not equal to itself.")
650650 }
651651 else throw("Wrong pool type")
652652
653653
654654 func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = {
655655 let lpBalanceBefore = accountBalance(fromBase58String(LPId))
656656 if ((lpBalanceBefore == lpBalanceBefore))
657657 then {
658658 let poolAddr = addressFromStringValue(pool)
659- let $t01849418910 = if (if ((pmtA > 0))
659+ let $t01848718903 = if (if ((pmtA > 0))
660660 then (pmtB > 0)
661661 else false)
662662 then {
663- let $t01856018676 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
664- let pmtInA = $t01856018676._1
665- let pmtInB = $t01856018676._2
666- let change = $t01856018676._3
667- let changeId = $t01856018676._4
663+ let $t01855318669 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
664+ let pmtInA = $t01855318669._1
665+ let pmtInB = $t01855318669._2
666+ let change = $t01855318669._3
667+ let changeId = $t01855318669._4
668668 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
669669 if ((inv == inv))
670670 then $Tuple2(change, changeId)
671671 else throw("Strict value is not equal to itself.")
672672 }
673673 else if ((pmtA > 0))
674674 then $Tuple2(pmtA, aId)
675675 else if ((pmtB > 0))
676676 then $Tuple2(pmtB, bId)
677677 else throw("pmts must be > 0")
678- let change = $t01849418910._1
679- let changeId = $t01849418910._2
678+ let change = $t01848718903._1
679+ let changeId = $t01848718903._2
680680 let inv = if ((change > 0))
681681 then replenishOneTokenByType(poolAddr, pType, change, changeId)
682682 else nil
683683 if ((inv == inv))
684684 then {
685685 let lpBalanceAfter = accountBalance(fromBase58String(LPId))
686686 let totalStaked = (lpBalanceAfter - lpBalanceBefore)
687687 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
688688 let userShareForStake = (totalStaked - axlyFeeAmount)
689689 if ((0 >= userShareForStake))
690690 then throw("amount of staked sharetokens must be > 0")
691691 else {
692692 let invLP = stakeLP(pool, pType, LPId, userShareForStake)
693693 if ((invLP == invLP))
694694 then $Tuple2(userShareForStake, axlyFeeAmount)
695695 else throw("Strict value is not equal to itself.")
696696 }
697697 }
698698 else throw("Strict value is not equal to itself.")
699699 }
700700 else throw("Strict value is not equal to itself.")
701701 }
702702
703703
704704 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
705705 let totalAmount = getPoolTotalShare(pool)
706706 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
707- let $t01976820006 = if (withLoan)
707+ let $t01976119999 = if (withLoan)
708708 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
709709 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
710- let curPoolInterest = $t01976820006._1
711- let totalStakedWithLoan = $t01976820006._2
710+ let curPoolInterest = $t01976119999._1
711+ let totalStakedWithLoan = $t01976119999._2
712712 [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), totalStakedWithLoan), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPosition), stakedAmount), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPositionInterest), curPoolInterest), StringEntry((((user + "_") + toString(posNum)) + kUserPositionPool), pool), IntegerEntry((user + kUserPositionNum), posNum), ScriptTransfer(moneyBox, axlyFeeAmount, fromBase58String(shareId))]
713713 }
714714
715715
716716 func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
717717 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
718718 if ((tokenBalanceBefore == tokenBalanceBefore))
719719 then {
720720 let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)])
721721 if ((inv == inv))
722722 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
723723 else throw("Strict value is not equal to itself.")
724724 }
725725 else throw("Strict value is not equal to itself.")
726726 }
727727
728728
729729 func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = {
730730 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
731731 if ((tokenBalanceBefore == tokenBalanceBefore))
732732 then {
733733 let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
734734 if ((inv == inv))
735735 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
736736 else throw("Strict value is not equal to itself.")
737737 }
738738 else throw("Strict value is not equal to itself.")
739739 }
740740
741741
742742 func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
743743 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
744744 if ((tokenBalanceBefore == tokenBalanceBefore))
745745 then {
746746 let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
747747 if ((inv == inv))
748748 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
749749 else throw("Strict value is not equal to itself.")
750750 }
751751 else throw("Strict value is not equal to itself.")
752752 }
753753
754754
755755 func capitalize (pool,pType,tokenId,tokenAmount) = {
756756 let poolAddr = Address(fromBase58String(pool))
757- let $t02235722423 = getPoolData(poolAddr, pType)
758- let AId = $t02235722423._1
759- let BId = $t02235722423._2
760- let balA = $t02235722423._3
761- let balB = $t02235722423._4
762- let shareId = $t02235722423._5
757+ let $t02235022416 = getPoolData(poolAddr, pType)
758+ let AId = $t02235022416._1
759+ let BId = $t02235022416._2
760+ let balA = $t02235022416._3
761+ let balB = $t02235022416._4
762+ let shareId = $t02235022416._5
763763 if (if ((tokenId != AId))
764764 then (tokenId != BId)
765765 else false)
766766 then throw("Wrong asset")
767767 else {
768- let $t02250822588 = if ((tokenId == AId))
768+ let $t02250122581 = if ((tokenId == AId))
769769 then $Tuple2(tokenAmount, 0)
770770 else $Tuple2(0, tokenAmount)
771- let pmtA = $t02250822588._1
772- let pmtB = $t02250822588._2
773- let $t02259122695 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
774- let stakedAmount = $t02259122695._1
775- let nf = $t02259122695._2
771+ let pmtA = $t02250122581._1
772+ let pmtB = $t02250122581._2
773+ let $t02258422688 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
774+ let stakedAmount = $t02258422688._1
775+ let nf = $t02258422688._2
776776 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
777777 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
778778 let totalShareAmount = getPoolTotalShare(pool)
779779 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
780780 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
781781 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
782782 let stakedNoLoan = (stakedAmount - stakedLoan)
783783 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
784784 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
785785 else 0
786786 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
787787 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
788788 else 0
789789 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
790790 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
791791 let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
792792 if ((axlyFee == axlyFee))
793793 then ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), ((totalShareAmount + stakedAmount) - axlyFee)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
794794 else throw("Strict value is not equal to itself.")
795795 }
796796 }
797797
798798
799799 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
800800 let poolAddr = Address(fromBase58String(pool))
801801 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
802- let $t02446324539 = getPoolData(poolAddr, pType)
803- let assetIdA = $t02446324539._1
804- let assetIdB = $t02446324539._2
805- let balA = $t02446324539._3
806- let balB = $t02446324539._4
807- let shareId = $t02446324539._5
802+ let $t02445624532 = getPoolData(poolAddr, pType)
803+ let assetIdA = $t02445624532._1
804+ let assetIdB = $t02445624532._2
805+ let balA = $t02445624532._3
806+ let balB = $t02445624532._4
807+ let shareId = $t02445624532._5
808808 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
809809 if ((cBalABefore == cBalABefore))
810810 then {
811811 let cBalBBefore = accountBalance(assetIdFromStr(assetIdB))
812812 if ((cBalBBefore == cBalBBefore))
813813 then {
814814 let inv = if ((pType == SF_POOL))
815815 then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil)
816816 else {
817817 let inv = unstakeLP(pool, pType, shareId, userCanWithdraw)
818818 if ((inv == inv))
819819 then invoke(poolAddr, "get", nil, [AttachedPayment(assetIdFromStr(shareId), userCanWithdraw)])
820820 else throw("Strict value is not equal to itself.")
821821 }
822822 if ((inv == inv))
823823 then {
824824 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
825825 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
826- let $t02510225191 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
827- let tokensAmountA = $t02510225191._1
828- let tokensAmountB = $t02510225191._2
829- let $t02519425890 = if ((debt > 0))
826+ let $t02509525184 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
827+ let tokensAmountA = $t02509525184._1
828+ let tokensAmountB = $t02509525184._2
829+ let $t02518725883 = if ((debt > 0))
830830 then {
831831 let amountToGetEx = if (if ((borrowAsset == assetIdA))
832832 then (debt > tokensAmountA)
833833 else false)
834834 then (debt - tokensAmountA)
835835 else if (if ((borrowAsset == assetIdB))
836836 then (debt > tokensAmountB)
837837 else false)
838838 then (debt - tokensAmountB)
839839 else 0
840840 let exInv = if ((amountToGetEx > 0))
841841 then exchangeDirectly(pType, pool, assetIdA, assetIdB, balA, balB, amountToGetEx, borrowAsset)
842842 else 0
843843 if ((exInv == exInv))
844844 then {
845845 let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA))
846846 let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB))
847847 $Tuple2((cBalAAfterRepay - cBalABefore), (cBalBAfterRepay - cBalBBefore))
848848 }
849849 else throw("Strict value is not equal to itself.")
850850 }
851851 else $Tuple2(tokensAmountA, tokensAmountB)
852- let toUserAmountA = $t02519425890._1
853- let toUserAmountB = $t02519425890._2
852+ let toUserAmountA = $t02518725883._1
853+ let toUserAmountB = $t02518725883._2
854854 $Tuple7(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter, shareId)
855855 }
856856 else throw("Strict value is not equal to itself.")
857857 }
858858 else throw("Strict value is not equal to itself.")
859859 }
860860 else throw("Strict value is not equal to itself.")
861861 }
862862
863863
864864 func userCanWithdrawShareCalc (user,pool,posId,borrowed) = {
865865 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
866866 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
867867 let poolInterest = if (borrowed)
868868 then getIntegerValue(this, (pool + kPoolInterestLoan))
869869 else getIntegerValue(this, (pool + kPoolInterestNoLoan))
870870 (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
871871 }
872872
873873
874874 func withdrawToUser (user,pool,posId,stopLoss) = {
875875 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
876876 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
877877 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0)
878878 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
879879 let poolTotalShare = getPoolTotalShare(pool)
880880 let userAddr = Address(fromBase58String(user))
881881 let borrowAsset = valueOrElse(getString(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), "")
882882 let debt = if ((borrowAmount > 0))
883883 then {
884884 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posId), borrowAsset], nil)
885885 if ($isInstanceOf(@, "Int"))
886886 then @
887887 else throw(($getType(@) + " couldn't be cast to Int"))
888888 }
889889 else 0
890- let $t02738927542 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
891- if (($t02738927542 == $t02738927542))
890+ let $t02738227535 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
891+ if (($t02738227535 == $t02738227535))
892892 then {
893- let shareId = $t02738927542._7
894- let cBalBAfter = $t02738927542._6
895- let cBalAAfter = $t02738927542._5
896- let assetIdB = $t02738927542._4
897- let toUserAmountB = $t02738927542._3
898- let assetIdA = $t02738927542._2
899- let toUserAmountA = $t02738927542._1
893+ let shareId = $t02738227535._7
894+ let cBalBAfter = $t02738227535._6
895+ let cBalAAfter = $t02738227535._5
896+ let assetIdB = $t02738227535._4
897+ let toUserAmountB = $t02738227535._3
898+ let assetIdA = $t02738227535._2
899+ let toUserAmountA = $t02738227535._1
900900 let closeDbtInv = if ((debt > 0))
901901 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
902902 else 0
903903 if ((closeDbtInv == closeDbtInv))
904904 then ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), (poolTotalShare - userCanWithdraw)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB))] ++ getCursEntries(assetIdA, assetIdB, shareId))
905905 else throw("Strict value is not equal to itself.")
906906 }
907907 else throw("Strict value is not equal to itself.")
908908 }
909909
910910
911911 func parseRequest (requestId) = {
912912 let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",")
913913 let user = request[0]
914914 let pool = request[1]
915915 let pmtA = parseIntValue(request[2])
916916 let AId = request[3]
917917 let pmtB = parseIntValue(request[4])
918918 let BId = request[5]
919919 let balA = parseIntValue(request[6])
920920 let balB = parseIntValue(request[7])
921921 let shareId = request[8]
922922 let bwAsset = request[9]
923923 let bwAmount = parseIntValue(request[10])
924924 $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount)
925925 }
926926
927927
928928 func calcBorrowAmount (pmtA,pmtB,aId,bId,leverage,borrowId) = {
929929 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [aId, false], nil)
930930 if ($isInstanceOf(@, "(Int, Int)"))
931931 then @
932932 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
933933 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [bId, false], nil)
934934 if ($isInstanceOf(@, "(Int, Int)"))
935935 then @
936936 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
937937 let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
938938 let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
939939 let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB))
940- let $t02922829325 = if ((borrowId == aId))
940+ let $t02922129318 = if ((borrowId == aId))
941941 then $Tuple2(dPriceA, decPrA)
942942 else $Tuple2(dPriceB, decPrB)
943- let borrowPrice = $t02922829325._1
944- let borrowDecPr = $t02922829325._2
943+ let borrowPrice = $t02922129318._1
944+ let borrowDecPr = $t02922129318._2
945945 fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice)
946946 }
947947
948948
949949 @Callable(i)
950950 func calcPriceImpactEVALONLY (pool,leverage,borrowId,pmtA,pmtB) = if (if ((100 > leverage))
951951 then true
952952 else (leverage > 300))
953953 then throw("Leverage can't be <100 and >300")
954954 else {
955955 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
956- let $t02974329833 = getPoolData(Address(fromBase58String(pool)), pType)
957- let AId = $t02974329833._1
958- let BId = $t02974329833._2
959- let balA = $t02974329833._3
960- let balB = $t02974329833._4
961- let shareId = $t02974329833._5
956+ let $t02973629826 = getPoolData(Address(fromBase58String(pool)), pType)
957+ let AId = $t02973629826._1
958+ let BId = $t02973629826._2
959+ let balA = $t02973629826._3
960+ let balB = $t02973629826._4
961+ let shareId = $t02973629826._5
962962 let borrowAmount = if ((leverage > 100))
963963 then calcBorrowAmount(pmtA, pmtB, AId, BId, leverage, borrowId)
964964 else 0
965- let $t02996830075 = if ((borrowId == AId))
965+ let $t02996130068 = if ((borrowId == AId))
966966 then $Tuple2((pmtA + borrowAmount), pmtB)
967967 else $Tuple2(pmtA, (pmtB + borrowAmount))
968- let payInA = $t02996830075._1
969- let payInB = $t02996830075._2
970- let $t03007830171 = calcReplenishLPVirt(pType, pool, payInA, AId, payInB, BId, balA, balB)
971- let lpAmount = $t03007830171._1
972- let loss = $t03007830171._2
968+ let payInA = $t02996130068._1
969+ let payInB = $t02996130068._2
970+ let $t03007130164 = calcReplenishLPVirt(pType, pool, payInA, AId, payInB, BId, balA, balB)
971+ let lpAmount = $t03007130164._1
972+ let loss = $t03007130164._2
973973 let impactMod = if ((0 > loss))
974974 then (loss * -1)
975975 else loss
976976 $Tuple2(nil, [impactMod])
977977 }
978978
979979
980980
981981 @Callable(i)
982982 func getShareAssetPriceREADONLY (shareId) = {
983983 let sharePrices = getSharePrice(shareId)
984984 $Tuple2(nil, sharePrices)
985985 }
986986
987987
988988
989989 @Callable(i)
990990 func getUserPositionShareAmountREADONLY (user,posNum) = {
991991 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position")
992992 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount))
993993 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0))
994994 $Tuple2(nil, userCanWithdraw)
995995 }
996996
997997
998998
999999 @Callable(i)
10001000 func getUserPositionInDollarsREADONLY (user,pools,posNum) = {
10011001 func userPos (a,pool) = {
1002- let $t03098431018 = a
1003- let totalPos = $t03098431018._1
1004- let posDebt = $t03098431018._2
1005- let index = $t03098431018._3
1002+ let $t03097731011 = a
1003+ let totalPos = $t03097731011._1
1004+ let posDebt = $t03097731011._2
1005+ let index = $t03097731011._3
10061006 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1007- let $t03111031200 = getPoolData(Address(fromBase58String(pool)), pType)
1008- let AId = $t03111031200._1
1009- let BId = $t03111031200._2
1010- let balA = $t03111031200._3
1011- let balB = $t03111031200._4
1012- let shareId = $t03111031200._5
1007+ let $t03110331193 = getPoolData(Address(fromBase58String(pool)), pType)
1008+ let AId = $t03110331193._1
1009+ let BId = $t03110331193._2
1010+ let balA = $t03110331193._3
1011+ let balB = $t03110331193._4
1012+ let shareId = $t03110331193._5
10131013 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0)
10141014 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0))
10151015 let sharePrices = getSharePrice(shareId)
10161016 let decPrShare = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
10171017 let shareD = fraction(userCanWithdraw, sharePrices, decPrShare)
10181018 if ((borrowAmount == 0))
10191019 then $Tuple3((totalPos :+ shareD), (posDebt :+ 0), (index + 1))
10201020 else {
10211021 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAssetId))
10221022 let debt = {
10231023 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posNum[index]), borrowAsset], nil)
10241024 if ($isInstanceOf(@, "Int"))
10251025 then @
10261026 else throw(($getType(@) + " couldn't be cast to Int"))
10271027 }
10281028 let borrowAssetPrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [borrowAsset, false], nil)
10291029 if ($isInstanceOf(@, "(Int, Int)"))
10301030 then @
10311031 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
10321032 let decPrBorrowId = pow(10, 0, getAssetDecimals(borrowAsset), 0, 0, DOWN)
10331033 let debtD = fraction(debt, borrowAssetPrice, decPrBorrowId)
10341034 $Tuple3((totalPos :+ shareD), (posDebt :+ debtD), (index + 1))
10351035 }
10361036 }
10371037
1038- let $t03224332298 = {
1038+ let $t03223632291 = {
10391039 let $l = pools
10401040 let $s = size($l)
10411041 let $acc0 = $Tuple3(nil, nil, 0)
10421042 func $f0_1 ($a,$i) = if (($i >= $s))
10431043 then $a
10441044 else userPos($a, $l[$i])
10451045
10461046 func $f0_2 ($a,$i) = if (($i >= $s))
10471047 then $a
10481048 else throw("List size exceeds 20")
10491049
10501050 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
10511051 }
1052- let pos = $t03224332298._1
1053- let debt = $t03224332298._2
1052+ let pos = $t03223632291._1
1053+ let debt = $t03223632291._2
10541054 $Tuple2(nil, $Tuple2(pos, debt))
10551055 }
10561056
10571057
10581058
10591059 @Callable(i)
10601060 func replenish (pool,leverage,borrowId) = if (if ((100 > leverage))
10611061 then true
10621062 else (leverage > 300))
10631063 then throw("Leverage can't be <100 and >300")
10641064 else {
10651065 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1066- let $t03262132711 = getPoolData(Address(fromBase58String(pool)), pType)
1067- let AId = $t03262132711._1
1068- let BId = $t03262132711._2
1069- let balA = $t03262132711._3
1070- let balB = $t03262132711._4
1071- let shareId = $t03262132711._5
1072- let $t03271433351 = if ((size(i.payments) == 2))
1066+ let $t03261432704 = getPoolData(Address(fromBase58String(pool)), pType)
1067+ let AId = $t03261432704._1
1068+ let BId = $t03261432704._2
1069+ let balA = $t03261432704._3
1070+ let balB = $t03261432704._4
1071+ let shareId = $t03261432704._5
1072+ let $t03270733344 = if ((size(i.payments) == 2))
10731073 then if ((assetIdToStr(i.payments[0].assetId) != AId))
10741074 then throw("Wrong payment asset A")
10751075 else if ((assetIdToStr(i.payments[1].assetId) != BId))
10761076 then throw("Wrong payment asset B")
10771077 else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId)
10781078 else if ((size(i.payments) == 1))
10791079 then if ((assetIdToStr(i.payments[0].assetId) == AId))
10801080 then $Tuple4(i.payments[0].amount, AId, 0, BId)
10811081 else if ((assetIdToStr(i.payments[0].assetId) == BId))
10821082 then $Tuple4(0, AId, i.payments[0].amount, BId)
10831083 else throw("Wrong payment")
10841084 else throw("One or two payments expected")
1085- let pmtA = $t03271433351._1
1086- let pmtAssetA = $t03271433351._2
1087- let pmtB = $t03271433351._3
1088- let pmtAssetB = $t03271433351._4
1085+ let pmtA = $t03270733344._1
1086+ let pmtAssetA = $t03270733344._2
1087+ let pmtB = $t03270733344._3
1088+ let pmtAssetB = $t03270733344._4
10891089 let newPosNum = getNewUserPositionNumber(toString(i.caller))
10901090 if ((leverage > 100))
10911091 then {
10921092 let borrowAmount = calcBorrowAmount(pmtA, pmtB, pmtAssetA, pmtAssetB, leverage, borrowId)
10931093 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowId, toString(borrowAmount)], ",")
10941094 let newRequestId = {
10951095 let @ = invoke(this, "createNewRequest", [request], nil)
10961096 if ($isInstanceOf(@, "Int"))
10971097 then @
10981098 else throw(($getType(@) + " couldn't be cast to Int"))
10991099 }
11001100 if ((newRequestId == newRequestId))
11011101 then {
11021102 let args = [((toString(i.caller) + "_") + toString(newPosNum)), shareId, borrowId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
11031103 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
11041104 if ((inv == inv))
11051105 then nil
11061106 else throw("Strict value is not equal to itself.")
11071107 }
11081108 else throw("Strict value is not equal to itself.")
11091109 }
11101110 else {
1111- let $t03427934391 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1112- let userStaked = $t03427934391._1
1113- let axlyFee = $t03427934391._2
1111+ let $t03427234384 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1112+ let userStaked = $t03427234384._1
1113+ let axlyFee = $t03427234384._2
11141114 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
11151115 }
11161116 }
11171117
11181118
11191119
11201120 @Callable(i)
11211121 func withdraw (pool,posId) = withdrawToUser(toString(i.caller), pool, toString(posId), false)
11221122
11231123
11241124
11251125 @Callable(i)
11261126 func createUpdateStopLoss (posId,poolId,assetId,price) = {
11271127 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
11281128 if ($isInstanceOf(@, "(Int, Int)"))
11291129 then @
11301130 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
11311131 if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition)))))
11321132 then throw("There are no user position")
11331133 else if ((0 >= price))
11341134 then throw("Price must be greater than 0")
11351135 else if ((price > tokenOraclePrice))
11361136 then throw("Price must be less than current token price")
11371137 else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)]
11381138 }
11391139
11401140
11411141
11421142 @Callable(i)
11431143 func deleteStopLoss (posId,poolId,assetId) = if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss)))))
11441144 then throw("No entry")
11451145 else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))]
11461146
11471147
11481148
11491149 @Callable(i)
11501150 func createNewRequest (params) = valueOrElse(isSelfCall(i), {
11511151 let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1)
11521152 $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId)
11531153 })
11541154
11551155
11561156
11571157 @Callable(i)
11581158 func replenishFromLand (requestId) = valueOrElse(isLandCall(i), {
1159- let $t03614436248 = parseRequest(requestId)
1160- let user = $t03614436248._1
1161- let pool = $t03614436248._2
1162- let pmtA = $t03614436248._3
1163- let AId = $t03614436248._4
1164- let pmtB = $t03614436248._5
1165- let BId = $t03614436248._6
1166- let balA = $t03614436248._7
1167- let balB = $t03614436248._8
1168- let shareId = $t03614436248._9
1169- let bwAsset = $t03614436248._10
1170- let bwAmount = $t03614436248._11
1159+ let $t03613736241 = parseRequest(requestId)
1160+ let user = $t03613736241._1
1161+ let pool = $t03613736241._2
1162+ let pmtA = $t03613736241._3
1163+ let AId = $t03613736241._4
1164+ let pmtB = $t03613736241._5
1165+ let BId = $t03613736241._6
1166+ let balA = $t03613736241._7
1167+ let balB = $t03613736241._8
1168+ let shareId = $t03613736241._9
1169+ let bwAsset = $t03613736241._10
1170+ let bwAmount = $t03613736241._11
11711171 if ((size(i.payments) != 1))
11721172 then throw("Wrong payment size")
11731173 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
11741174 then true
11751175 else (i.payments[0].amount != bwAmount))
11761176 then throw("Wrong payment")
11771177 else {
1178- let $t03643836562 = if ((AId == bwAsset))
1178+ let $t03643136555 = if ((AId == bwAsset))
11791179 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
11801180 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1181- let pmtAllA = $t03643836562._1
1182- let pmtAllB = $t03643836562._2
1181+ let pmtAllA = $t03643136555._1
1182+ let pmtAllB = $t03643136555._2
11831183 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1184- let $t03664436759 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1185- let userStaked = $t03664436759._1
1186- let axlyFee = $t03664436759._2
1184+ let $t03663736752 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1185+ let userStaked = $t03663736752._1
1186+ let axlyFee = $t03663736752._2
11871187 let posNum = getNewUserPositionNumber(user)
11881188 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
11891189 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
11901190 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId)) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
11911191 }
11921192 })
11931193
11941194
11951195
11961196 @Callable(i)
11971197 func liquidate (user,posId,liquidateAmount) = valueOrElse(isLandCall(i), {
11981198 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
11991199 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1200- let $t03753837628 = getPoolData(Address(fromBase58String(pool)), pType)
1201- let AId = $t03753837628._1
1202- let BId = $t03753837628._2
1203- let balA = $t03753837628._3
1204- let balB = $t03753837628._4
1205- let shareId = $t03753837628._5
1200+ let $t03753137621 = getPoolData(Address(fromBase58String(pool)), pType)
1201+ let AId = $t03753137621._1
1202+ let BId = $t03753137621._2
1203+ let balA = $t03753137621._3
1204+ let balB = $t03753137621._4
1205+ let shareId = $t03753137621._5
12061206 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
12071207 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
12081208 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
12091209 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
12101210 if ((borrowAmount == 0))
12111211 then throw("You can't liquidate position without borrow")
12121212 else [IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestLoan))), IntegerEntry((pool + kPoolTotalLoan), (getPoolTotalShareWithLoan(pool) - liquidateAmount)), IntegerEntry((pool + kPoolTotal), (getPoolTotalShare(pool) - liquidateAmount)), IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition), (userCanWithdraw - liquidateAmount)), ScriptTransfer(i.caller, amount, fromBase58String(shareId))]
12131213 })
12141214
12151215
12161216
12171217 @Callable(i)
12181218 func stopLoss (user,posId,pool,assetId) = valueOrElse(isAdminCall(i), {
12191219 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
12201220 if ($isInstanceOf(@, "(Int, Int)"))
12211221 then @
12221222 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
12231223 if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))))
12241224 then throw("No entry")
12251225 else (withdrawToUser(toString(i.caller), pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))
12261226 })
12271227
12281228
12291229
12301230 @Callable(i)
12311231 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = valueOrElse(isAdminCall(i), {
1232- let $t03941439608 = if (claim)
1232+ let $t03940739601 = if (claim)
12331233 then claimFarmed(type, pool)
12341234 else {
12351235 let claimedAsset = if ((type == SF_POOL))
12361236 then SWOPID
12371237 else WXID
12381238 $Tuple2(amountToExchange, claimedAsset)
12391239 }
1240- let claimedAmount = $t03941439608._1
1241- let claimedAsset = $t03941439608._2
1240+ let claimedAmount = $t03940739601._1
1241+ let claimedAsset = $t03940739601._2
12421242 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
12431243 let change = (claimedAmount - amountToExchange)
12441244 let changeEntry = if ((change > 0))
12451245 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
12461246 else nil
12471247 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
12481248 })
12491249
12501250
12511251
12521252 @Callable(i)
12531253 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = valueOrElse(isAdminCall(i), {
1254- let $t04029340487 = if (claim)
1254+ let $t04028640480 = if (claim)
12551255 then claimFarmed(type, pool)
12561256 else {
12571257 let claimedAsset = if ((type == SF_POOL))
12581258 then SWOPID
12591259 else WXID
12601260 $Tuple2(amountToExchange, claimedAsset)
12611261 }
1262- let claimedAmount = $t04029340487._1
1263- let claimedAsset = $t04029340487._2
1262+ let claimedAmount = $t04028640480._1
1263+ let claimedAsset = $t04028640480._2
12641264 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
12651265 let change = (claimedAmount - amountToExchange)
12661266 let changeEntry = if ((change > 0))
12671267 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
12681268 else nil
12691269 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
12701270 })
12711271
12721272
12731273
12741274 @Callable(i)
12751275 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = valueOrElse(isAdminCall(i), {
1276- let $t04123841432 = if (claim)
1276+ let $t04123141425 = if (claim)
12771277 then claimFarmed(type, pool)
12781278 else {
12791279 let claimedAsset = if ((type == SF_POOL))
12801280 then SWOPID
12811281 else WXID
12821282 $Tuple2(amountToExchange, claimedAsset)
12831283 }
1284- let claimedAmount = $t04123841432._1
1285- let claimedAsset = $t04123841432._2
1284+ let claimedAmount = $t04123141425._1
1285+ let claimedAsset = $t04123141425._2
12861286 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
12871287 let change = (claimedAmount - amountToExchange)
12881288 let changeEntry = if ((change > 0))
12891289 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
12901290 else nil
12911291 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
12921292 })
12931293
12941294
12951295
12961296 @Callable(i)
12971297 func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan) = valueOrElse(isAdminCall(i), if (if ((type != SF_POOL))
12981298 then (type != WX_POOL)
12991299 else false)
13001300 then throw("Wrong type")
13011301 else {
1302- let $t04215342247 = getPoolData(Address(fromBase58String(poolAddr)), type)
1303- let aId = $t04215342247._1
1304- let bId = $t04215342247._2
1305- let aBal = $t04215342247._3
1306- let bBal = $t04215342247._4
1307- let shareId = $t04215342247._5
1302+ let $t04214642240 = getPoolData(Address(fromBase58String(poolAddr)), type)
1303+ let aId = $t04214642240._1
1304+ let bId = $t04214642240._2
1305+ let aBal = $t04214642240._3
1306+ let bBal = $t04214642240._4
1307+ let shareId = $t04214642240._5
13081308 [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kAxlyStopLossNoLoanFee), stoplossFeeNoLoan), IntegerEntry((poolAddr + kAxlyStopLossLoanFee), stoplossFeeWithLoan), IntegerEntry((poolAddr + kPoolInterestLoan), 0), IntegerEntry((poolAddr + kPoolInterestNoLoan), 0), StringEntry((kPool + poolAddr), type), StringEntry((shareId + kSharePool), poolAddr)]
13091309 })
13101310
13111311
13121312 @Verifier(tx)
13131313 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
13141314

github/deemru/w8io/169f3d6 
187.08 ms