tx · 9fjuJxtDD4ETGMgXdGVsj2zGtrHDoH2AY1g3oejoUPRc

3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5:  -0.42000000 Waves

2023.06.16 11:41 [2624962] smart account 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5 > SELF 0.00000000 Waves

{ "type": 13, "id": "9fjuJxtDD4ETGMgXdGVsj2zGtrHDoH2AY1g3oejoUPRc", "fee": 42000000, "feeAssetId": null, "timestamp": 1686904884775, "version": 2, "chainId": 84, "sender": "3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5", "senderPublicKey": "FEnkfXnQZkk1FmjhH6QZqyK2taN6ngnZBexevKxouLUM", "proofs": [ "x3mcVMjJYReaKSqFZeNsDfzmWANfjXfhUmRm3UotSvhqU4RfYX9NFhRBy9853tcibZ3g9eoWk2TyeBfw8T1PY8h", "56pKcCixFMH75n3JvzBVF3edLFxB9tGNzgHygYU38NnwJ63bC3UYC7dsqC8E6BEz4AGcNmticPewKZyTuBexmSaP" ], "script": "base64:BgJaCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESUwAHdmVyc2lvbgIFMS4wLjAACGtWZXJzaW9uAgd2ZXJzaW9uAAdrQWN0aXZlAgZhY3RpdmUAC2tEZXByZWNhdGVkAgtkZXByZWNhdGVkXwAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQACWtCYWxhbmNlQQIPQV9hc3NldF9iYWxhbmNlAAlrQmFsYW5jZUICD0JfYXNzZXRfYmFsYW5jZQANa0JhbGFuY2VJbml0QQIMQV9hc3NldF9pbml0AA1rQmFsYW5jZUluaXRCAgxCX2Fzc2V0X2luaXQADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3NldFN1cH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NtdWx0aVNpZ25lZEJ5QWRtaW5z+j/sUQ==", "height": 2624962, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DcPFXUgWvt7aFcegn2UvABrxMdhknJuENJpFuwyNKnLQ Next: none Diff:
OldNewDifferences
8383
8484 let kFarmingAddress = "farming_address"
8585
86-let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
86+let oracle = Address(base58'3PEbqViERCoKnmcSULh6n2aiMvUdSQdCsom')
8787
8888 func getBase58FromOracle (key) = match getString(oracle, key) {
8989 case string: String =>
343343 func calcLPAmountReplansishOneToken (pmtAmount,pmtAssetId,aId,bId,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = if ((pmtAssetId == aId))
344344 then {
345345 let virtPayAmount = calculateVirtPay(pmtAmount, balA, fee)
346- let $t01127011417 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
347- let amountWithoutFee = $t01127011417._1
348- let amountWithFee = $t01127011417._2
349- let governanceReward = $t01127011417._3
350- let tReward = $t01127011417._4
346+ let $t01127811425 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
347+ let amountWithoutFee = $t01127811425._1
348+ let amountWithFee = $t01127811425._2
349+ let governanceReward = $t01127811425._3
350+ let tReward = $t01127811425._4
351351 let balanceAVirt = (balA + virtPayAmount)
352352 let balanceBVirt = (((balB + amountWithoutFee) - governanceReward) - tReward)
353353 let newBalanceA = (balA + pmtAmount)
355355 let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt))
356356 let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt))
357357 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16))
358- $Tuple6(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId)
358+ let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16))
359+ let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth)
360+ $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId, loss)
359361 }
360362 else {
361363 let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee)
362- let $t01212912276 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
363- let amountWithoutFee = $t01212912276._1
364- let amountWithFee = $t01212912276._2
365- let governanceReward = $t01212912276._3
366- let tReward = $t01212912276._4
364+ let $t01245112598 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
365+ let amountWithoutFee = $t01245112598._1
366+ let amountWithFee = $t01245112598._2
367+ let governanceReward = $t01245112598._3
368+ let tReward = $t01245112598._4
367369 let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward)
368370 let balanceBVirt = (balB + virtPayAmount)
369371 let newBalanceA = ((balA - governanceReward) - tReward)
371373 let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt))
372374 let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt))
373375 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16))
374- $Tuple6(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId)
376+ let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16))
377+ let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth)
378+ $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId, loss)
375379 }
376380
377381
378382 func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = {
379- let $t01312313271 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
380- let lpTwoAmount = $t01312313271._1
381- let change = $t01312313271._2
382- let changeAssetId = $t01312313271._3
383- let pmtAmountA = $t01312313271._4
384- let pmtAmountB = $t01312313271._5
383+ let $t01374713895 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
384+ let lpTwoAmount = $t01374713895._1
385+ let change = $t01374713895._2
386+ let changeAssetId = $t01374713895._3
387+ let pmtAmountA = $t01374713895._4
388+ let pmtAmountB = $t01374713895._5
385389 if ((change > 0))
386390 then {
387- let $t01330313532 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
388- let lpOne = $t01330313532._1
389- let newBalanceA = $t01330313532._2
390- let newBalanceB = $t01330313532._3
391- let governanceReward = $t01330313532._4
392- let tReward = $t01330313532._5
393- let gId = $t01330313532._6
394- $Tuple6((lpTwoAmount + lpOne), newBalanceA, newBalanceB, governanceReward, tReward, gId)
391+ let $t01392714162 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
392+ let lpOne = $t01392714162._1
393+ let newBalanceA = $t01392714162._2
394+ let newBalanceB = $t01392714162._3
395+ let governanceReward = $t01392714162._4
396+ let tReward = $t01392714162._5
397+ let gId = $t01392714162._6
398+ let loss = $t01392714162._7
399+ $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId)
395400 }
396- else $Tuple6(lpTwoAmount, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit)
401+ else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit)
397402 }
398403
399404
400405 @Callable(i)
401406 func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
402- let $t01385913949 = getPoolAssets(i.caller)
403- let strAssetIdA = $t01385913949._1
404- let strAssetIdB = $t01385913949._2
405- let assetIdA = $t01385913949._3
406- let assetIdB = $t01385913949._4
407- let shareAssetId = $t01385913949._5
408- let $t01395414046 = getPoolBalances(i.caller, assetIdA, assetIdB)
409- let balA = $t01395414046._1
410- let balB = $t01395414046._2
411- let accBalA = $t01395414046._3
412- let accBalB = $t01395414046._4
413- let lpSupply = $t01395414046._5
407+ let $t01449814588 = getPoolAssets(i.caller)
408+ let strAssetIdA = $t01449814588._1
409+ let strAssetIdB = $t01449814588._2
410+ let assetIdA = $t01449814588._3
411+ let assetIdB = $t01449814588._4
412+ let shareAssetId = $t01449814588._5
413+ let $t01459314685 = getPoolBalances(i.caller, assetIdA, assetIdB)
414+ let balA = $t01459314685._1
415+ let balB = $t01459314685._2
416+ let accBalA = $t01459314685._3
417+ let accBalB = $t01459314685._4
418+ let lpSupply = $t01459314685._5
414419 let pmtA = parseIntValue(args[0])
415420 let pmtB = parseIntValue(args[1])
416421 let virtGetMinAmount = parseIntValue(args[2])
417- let $t01418014247 = getFeeParams(i.caller, i.originCaller)
418- let fee = $t01418014247._1
419- let govFee = $t01418014247._2
420- let teamFee = $t01418014247._3
421- let $t01425214438 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
422- let lp = $t01425214438._1
423- let newBalanceA = $t01425214438._2
424- let newBalanceB = $t01425214438._3
425- let governanceReward = $t01425214438._4
426- let tReward = $t01425214438._5
427- let aId = $t01425214438._6
428- $Tuple2(nil, $Tuple2(nil, [lp, newBalanceA, newBalanceB, governanceReward, tReward, aId]))
422+ let $t01481914886 = getFeeParams(i.caller, i.originCaller)
423+ let fee = $t01481914886._1
424+ let govFee = $t01481914886._2
425+ let teamFee = $t01481914886._3
426+ let $t01489115083 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
427+ let lp = $t01489115083._1
428+ let loss = $t01489115083._2
429+ let newBalanceA = $t01489115083._3
430+ let newBalanceB = $t01489115083._4
431+ let governanceReward = $t01489115083._5
432+ let tReward = $t01489115083._6
433+ let aId = $t01489115083._7
434+ $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId]))
429435 }
430436
431437
432438
433439 @Callable(i)
434440 func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
435- let $t01465914749 = getPoolAssets(i.caller)
436- let strAssetIdA = $t01465914749._1
437- let strAssetIdB = $t01465914749._2
438- let assetIdA = $t01465914749._3
439- let assetIdB = $t01465914749._4
440- let shareAssetId = $t01465914749._5
441- let $t01475414878 = getPoolBalances(i.caller, assetIdA, assetIdB)
442- let balanceA = $t01475414878._1
443- let balanceB = $t01475414878._2
444- let accountBalanceA = $t01475414878._3
445- let accountBalanceB = $t01475414878._4
446- let shareAssetSupply = $t01475414878._5
441+ let $t01531015400 = getPoolAssets(i.caller)
442+ let strAssetIdA = $t01531015400._1
443+ let strAssetIdB = $t01531015400._2
444+ let assetIdA = $t01531015400._3
445+ let assetIdB = $t01531015400._4
446+ let shareAssetId = $t01531015400._5
447+ let $t01540515529 = getPoolBalances(i.caller, assetIdA, assetIdB)
448+ let balanceA = $t01540515529._1
449+ let balanceB = $t01540515529._2
450+ let accountBalanceA = $t01540515529._3
451+ let accountBalanceB = $t01540515529._4
452+ let shareAssetSupply = $t01540515529._5
447453 let withdrawAmount = parseIntValue(args[0])
448- let $t01493215094 = if ((size(args) == 3))
454+ let $t01558315745 = if ((size(args) == 3))
449455 then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2]))
450456 else $Tuple2(balanceA, balanceB)
451- let balA = $t01493215094._1
452- let balB = $t01493215094._2
457+ let balA = $t01558315745._1
458+ let balB = $t01558315745._2
453459 let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply)
454460 let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply)
455461 $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB]))
460466 @Callable(i)
461467 func init (callerBytes,args,pAmounts,pAssetIds) = {
462468 let caller = Address(callerBytes)
463- let $t01544915527 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
464- let pmtAmountA = $t01544915527._1
465- let pmtAssetIdA = $t01544915527._2
466- let $t01553215610 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
467- let pmtAmountB = $t01553215610._1
468- let pmtAssetIdB = $t01553215610._2
469+ let $t01610016178 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
470+ let pmtAmountA = $t01610016178._1
471+ let pmtAssetIdA = $t01610016178._2
472+ let $t01618316261 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
473+ let pmtAmountB = $t01618316261._1
474+ let pmtAssetIdB = $t01618316261._2
469475 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
470476 then throw("Only admin can call this function")
471477 else if ((size(args) != 1))
475481 else if ((pmtAssetIdA == pmtAssetIdB))
476482 then throw("Assets must be different")
477483 else {
478- let $t01604516122 = getAssetInfo(pmtAssetIdA)
479- let pmtStrAssetIdA = $t01604516122._1
480- let pmtAssetNameA = $t01604516122._2
481- let pmtDecimalsA = $t01604516122._3
482- let $t01613116208 = getAssetInfo(pmtAssetIdB)
483- let pmtStrAssetIdB = $t01613116208._1
484- let pmtAssetNameB = $t01613116208._2
485- let pmtDecimalsB = $t01613116208._3
484+ let $t01669616773 = getAssetInfo(pmtAssetIdA)
485+ let pmtStrAssetIdA = $t01669616773._1
486+ let pmtAssetNameA = $t01669616773._2
487+ let pmtDecimalsA = $t01669616773._3
488+ let $t01678216859 = getAssetInfo(pmtAssetIdB)
489+ let pmtStrAssetIdB = $t01678216859._1
490+ let pmtAssetNameB = $t01678216859._2
491+ let pmtDecimalsB = $t01678216859._3
486492 let firstHarvest = (args[0] == "true")
487493 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
488494 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
519525 @Callable(i)
520526 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
521527 let caller = Address(callerBytes)
522- let $t01842918629 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
523- let amtAssetA = $t01842918629._1
524- let amtAssetB = $t01842918629._2
525- let assetIdAStr = $t01842918629._3
526- let assetIdBStr = $t01842918629._4
527- let firstHarvest = $t01842918629._5
528+ let $t01908019280 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
529+ let amtAssetA = $t01908019280._1
530+ let amtAssetB = $t01908019280._2
531+ let assetIdAStr = $t01908019280._3
532+ let assetIdBStr = $t01908019280._4
533+ let firstHarvest = $t01908019280._5
528534 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
529535 then throw("Only admin can call this function")
530536 else if ((size(args) != 5))
534540 else if ((assetIdAStr == assetIdBStr))
535541 then throw("Assets must be different")
536542 else {
537- let $t01906419141 = getAssetInfo(assetIdAStr)
538- let pmtStrAssetIdA = $t01906419141._1
539- let pmtAssetNameA = $t01906419141._2
540- let pmtDecimalsA = $t01906419141._3
541- let $t01915019227 = getAssetInfo(assetIdBStr)
542- let pmtStrAssetIdB = $t01915019227._1
543- let pmtAssetNameB = $t01915019227._2
544- let pmtDecimalsB = $t01915019227._3
543+ let $t01971519792 = getAssetInfo(assetIdAStr)
544+ let pmtStrAssetIdA = $t01971519792._1
545+ let pmtAssetNameA = $t01971519792._2
546+ let pmtDecimalsA = $t01971519792._3
547+ let $t01980119878 = getAssetInfo(assetIdBStr)
548+ let pmtStrAssetIdB = $t01980119878._1
549+ let pmtAssetNameB = $t01980119878._2
550+ let pmtDecimalsB = $t01980119878._3
545551 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
546552 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
547553 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
572578 @Callable(i)
573579 func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
574580 let caller = Address(callerBytes)
575- let $t02165321729 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
576- let pmtAmount = $t02165321729._1
577- let pmtAssetId = $t02165321729._2
581+ let $t02230422380 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
582+ let pmtAmount = $t02230422380._1
583+ let pmtAssetId = $t02230422380._2
578584 let minAmountToReceive = parseIntValue(args[0])
579- let $t02179421870 = getPoolAssets(i.caller)
580- let strAssetIdA = $t02179421870._1
581- let strAssetIdB = $t02179421870._2
582- let assetIdA = $t02179421870._3
583- let assetIdB = $t02179421870._4
584- let $t02187921985 = getPoolBalances(i.caller, assetIdA, assetIdB)
585- let balanceA = $t02187921985._1
586- let balanceB = $t02187921985._2
587- let accountBalanceA = $t02187921985._3
588- let accountBalanceB = $t02187921985._4
585+ let $t02244522521 = getPoolAssets(i.caller)
586+ let strAssetIdA = $t02244522521._1
587+ let strAssetIdB = $t02244522521._2
588+ let assetIdA = $t02244522521._3
589+ let assetIdB = $t02244522521._4
590+ let $t02253022636 = getPoolBalances(i.caller, assetIdA, assetIdB)
591+ let balanceA = $t02253022636._1
592+ let balanceB = $t02253022636._2
593+ let accountBalanceA = $t02253022636._3
594+ let accountBalanceB = $t02253022636._4
589595 if ((size(args) != 1))
590596 then throw("Wrong args size")
591597 else if (if ((balanceA == 0))
603609 else (balanceB > accountBalanceB))
604610 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
605611 else {
606- let $t02288522952 = getFeeParams(i.caller, i.originCaller)
607- let fee = $t02288522952._1
608- let govFee = $t02288522952._2
609- let teamFee = $t02288522952._3
610- let $t02296523316 = if ((pmtAssetId == assetIdA))
612+ let $t02353623603 = getFeeParams(i.caller, i.originCaller)
613+ let fee = $t02353623603._1
614+ let govFee = $t02353623603._2
615+ let teamFee = $t02353623603._3
616+ let $t02361623967 = if ((pmtAssetId == assetIdA))
611617 then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee)
612618 else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee)
613- let amountWithoutFee = $t02296523316._1
614- let amountWithFee = $t02296523316._2
615- let governanceReward = $t02296523316._3
616- let teamReward = $t02296523316._4
617- let $t02333023665 = if ((pmtAssetId == assetIdA))
619+ let amountWithoutFee = $t02361623967._1
620+ let amountWithFee = $t02361623967._2
621+ let governanceReward = $t02361623967._3
622+ let teamReward = $t02361623967._4
623+ let $t02398124316 = if ((pmtAssetId == assetIdA))
618624 then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB)
619625 else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA)
620- let newBalanceA = $t02333023665._1
621- let newBalanceB = $t02333023665._2
622- let assetIdSend = $t02333023665._3
623- let $t02367923939 = if ((pmtAssetId == assetIdA))
626+ let newBalanceA = $t02398124316._1
627+ let newBalanceB = $t02398124316._2
628+ let assetIdSend = $t02398124316._3
629+ let $t02433024590 = if ((pmtAssetId == assetIdA))
624630 then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward))
625631 else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount)
626- let stakeAmountA = $t02367923939._1
627- let stakeAmountB = $t02367923939._2
632+ let stakeAmountA = $t02433024590._1
633+ let stakeAmountB = $t02433024590._2
628634 let stake1 = if (contains(stakingAssets, strAssetIdA))
629635 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
630636 else 0
650656 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
651657 let stakeFarming = (args[0] == "true")
652658 let lockType = parseIntValue(args[1])
653- let $t02525425344 = getPoolAssets(i.caller)
654- let strAssetIdA = $t02525425344._1
655- let strAssetIdB = $t02525425344._2
656- let assetIdA = $t02525425344._3
657- let assetIdB = $t02525425344._4
658- let shareAssetId = $t02525425344._5
659- let $t02535325477 = getPoolBalances(i.caller, assetIdA, assetIdB)
660- let balanceA = $t02535325477._1
661- let balanceB = $t02535325477._2
662- let accountBalanceA = $t02535325477._3
663- let accountBalanceB = $t02535325477._4
664- let shareAssetSupply = $t02535325477._5
659+ let $t02590525995 = getPoolAssets(i.caller)
660+ let strAssetIdA = $t02590525995._1
661+ let strAssetIdB = $t02590525995._2
662+ let assetIdA = $t02590525995._3
663+ let assetIdB = $t02590525995._4
664+ let shareAssetId = $t02590525995._5
665+ let $t02600426128 = getPoolBalances(i.caller, assetIdA, assetIdB)
666+ let balanceA = $t02600426128._1
667+ let balanceB = $t02600426128._2
668+ let accountBalanceA = $t02600426128._3
669+ let accountBalanceB = $t02600426128._4
670+ let shareAssetSupply = $t02600426128._5
665671 if ((size(args) != 2))
666672 then throw("Wrong args size")
667673 else if (if ((size(pAmounts) != 2))
681687 else pAssetIds[2], pAmounts[2])]
682688 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
683689 else {
684- let $t02641426612 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
685- let shareTokenToPayAmount = $t02641426612._1
686- let change = $t02641426612._2
687- let changeAssetId = $t02641426612._3
688- let pmtAmountA = $t02641426612._4
689- let pmtAmountB = $t02641426612._5
690+ let $t02706527263 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
691+ let shareTokenToPayAmount = $t02706527263._1
692+ let change = $t02706527263._2
693+ let changeAssetId = $t02706527263._3
694+ let pmtAmountA = $t02706527263._4
695+ let pmtAmountB = $t02706527263._5
690696 if ((shareTokenToPayAmount == 0))
691697 then throw("Too small amount to replenish")
692698 else if ((0 > change))
739745 let virtGetMinAmount = parseIntValue(args[0])
740746 let stakeFarming = (args[1] == "true")
741747 let lockType = parseIntValue(args[2])
742- let $t02887128961 = getPoolAssets(i.caller)
743- let strAssetIdA = $t02887128961._1
744- let strAssetIdB = $t02887128961._2
745- let assetIdA = $t02887128961._3
746- let assetIdB = $t02887128961._4
747- let shareAssetId = $t02887128961._5
748- let $t02896629090 = getPoolBalances(i.caller, assetIdA, assetIdB)
749- let balanceA = $t02896629090._1
750- let balanceB = $t02896629090._2
751- let accountBalanceA = $t02896629090._3
752- let accountBalanceB = $t02896629090._4
753- let shareAssetSupply = $t02896629090._5
748+ let $t02952229612 = getPoolAssets(i.caller)
749+ let strAssetIdA = $t02952229612._1
750+ let strAssetIdB = $t02952229612._2
751+ let assetIdA = $t02952229612._3
752+ let assetIdB = $t02952229612._4
753+ let shareAssetId = $t02952229612._5
754+ let $t02961729741 = getPoolBalances(i.caller, assetIdA, assetIdB)
755+ let balanceA = $t02961729741._1
756+ let balanceB = $t02961729741._2
757+ let accountBalanceA = $t02961729741._3
758+ let accountBalanceB = $t02961729741._4
759+ let shareAssetSupply = $t02961729741._5
754760 let initial = ((balanceA + balanceB) == 0)
755761 if ((size(args) != 3))
756762 then throw("Wrong args size")
773779 else pAssetIds[2], pAmounts[2])]
774780 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
775781 else {
776- let $t03000230069 = getFeeParams(i.caller, i.originCaller)
777- let fee = $t03000230069._1
778- let govFee = $t03000230069._2
779- let teamFee = $t03000230069._3
780- let $t03007830140 = getAssetInfo(pmtAssetId)
781- let pmtAssetIdStr = $t03007830140._1
782- let pmtAssetIdName = $t03007830140._2
783- let $t03015830404 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
784- let shareTokenToPayAmount = $t03015830404._1
785- let newBalanceA = $t03015830404._2
786- let newBalanceB = $t03015830404._3
787- let govReward = $t03015830404._4
788- let teamReward = $t03015830404._5
789- let govRewardAsset = $t03015830404._6
782+ let $t03065330720 = getFeeParams(i.caller, i.originCaller)
783+ let fee = $t03065330720._1
784+ let govFee = $t03065330720._2
785+ let teamFee = $t03065330720._3
786+ let $t03072930791 = getAssetInfo(pmtAssetId)
787+ let pmtAssetIdStr = $t03072930791._1
788+ let pmtAssetIdName = $t03072930791._2
789+ let $t03080931055 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
790+ let shareTokenToPayAmount = $t03080931055._1
791+ let newBalanceA = $t03080931055._2
792+ let newBalanceB = $t03080931055._3
793+ let govReward = $t03080931055._4
794+ let teamReward = $t03080931055._5
795+ let govRewardAsset = $t03080931055._6
790796 let govRewardAssetStr = if ((govRewardAsset == assetIdA))
791797 then strAssetIdA
792798 else strAssetIdB
835841 @Callable(i)
836842 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
837843 let caller = Address(callerBytes)
838- let $t03247232562 = getPoolAssets(i.caller)
839- let strAssetIdA = $t03247232562._1
840- let strAssetIdB = $t03247232562._2
841- let assetIdA = $t03247232562._3
842- let assetIdB = $t03247232562._4
843- let shareAssetId = $t03247232562._5
844- let $t03257132695 = getPoolBalances(i.caller, assetIdA, assetIdB)
845- let balanceA = $t03257132695._1
846- let balanceB = $t03257132695._2
847- let accountBalanceA = $t03257132695._3
848- let accountBalanceB = $t03257132695._4
849- let shareAssetSupply = $t03257132695._5
850- let $t03270433084 = if ((size(pAmounts) == 1))
844+ let $t03312333213 = getPoolAssets(i.caller)
845+ let strAssetIdA = $t03312333213._1
846+ let strAssetIdB = $t03312333213._2
847+ let assetIdA = $t03312333213._3
848+ let assetIdB = $t03312333213._4
849+ let shareAssetId = $t03312333213._5
850+ let $t03322233346 = getPoolBalances(i.caller, assetIdA, assetIdB)
851+ let balanceA = $t03322233346._1
852+ let balanceB = $t03322233346._2
853+ let accountBalanceA = $t03322233346._3
854+ let accountBalanceB = $t03322233346._4
855+ let shareAssetSupply = $t03322233346._5
856+ let $t03335533735 = if ((size(pAmounts) == 1))
851857 then {
852858 let pAsset = parsePaymentAsset(pAssetIds[0])
853859 if ((pAsset != shareAssetId))
855861 else $Tuple2(pAmounts[0], pAsset)
856862 }
857863 else $Tuple2(0, shareAssetId)
858- let pmtAmount = $t03270433084._1
859- let pmtAssetId = $t03270433084._2
864+ let pmtAmount = $t03335533735._1
865+ let pmtAssetId = $t03335533735._2
860866 if ((size(args) != 1))
861867 then throw("Wrong args size")
862868 else if ((size(pAmounts) > 1))
901907 let withdrawAsset = if ((args[0] == ""))
902908 then unit
903909 else fromBase58String(args[0])
904- let $t03530235392 = getPoolAssets(i.caller)
905- let strAssetIdA = $t03530235392._1
906- let strAssetIdB = $t03530235392._2
907- let assetIdA = $t03530235392._3
908- let assetIdB = $t03530235392._4
909- let shareAssetId = $t03530235392._5
910- let $t03540135525 = getPoolBalances(i.caller, assetIdA, assetIdB)
911- let balanceA = $t03540135525._1
912- let balanceB = $t03540135525._2
913- let accountBalanceA = $t03540135525._3
914- let accountBalanceB = $t03540135525._4
915- let shareAssetSupply = $t03540135525._5
916- let $t03553435886 = if ((size(pAmounts) == 1))
910+ let $t03595336043 = getPoolAssets(i.caller)
911+ let strAssetIdA = $t03595336043._1
912+ let strAssetIdB = $t03595336043._2
913+ let assetIdA = $t03595336043._3
914+ let assetIdB = $t03595336043._4
915+ let shareAssetId = $t03595336043._5
916+ let $t03605236176 = getPoolBalances(i.caller, assetIdA, assetIdB)
917+ let balanceA = $t03605236176._1
918+ let balanceB = $t03605236176._2
919+ let accountBalanceA = $t03605236176._3
920+ let accountBalanceB = $t03605236176._4
921+ let shareAssetSupply = $t03605236176._5
922+ let $t03618536537 = if ((size(pAmounts) == 1))
917923 then {
918924 let pAsset = parsePaymentAsset(pAssetIds[0])
919925 if ((pAsset != shareAssetId))
921927 else $Tuple2(pAmounts[0], pAsset)
922928 }
923929 else $Tuple2(0, shareAssetId)
924- let pmtAmount = $t03553435886._1
925- let pmtAssetId = $t03553435886._2
930+ let pmtAmount = $t03618536537._1
931+ let pmtAssetId = $t03618536537._2
926932 let virtMinToRecive = parseIntValue(args[1])
927933 if ((size(args) != 3))
928934 then throw("Wrong args size")
946952 let withdrawAmount = (pmtAmount + unlockAmount)
947953 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
948954 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
949- let $t03715337220 = getFeeParams(i.caller, i.originCaller)
950- let fee = $t03715337220._1
951- let govFee = $t03715337220._2
952- let teamFee = $t03715337220._3
953- let $t03723337647 = if ((withdrawAsset == assetIdA))
955+ let $t03780437871 = getFeeParams(i.caller, i.originCaller)
956+ let fee = $t03780437871._1
957+ let govFee = $t03780437871._2
958+ let teamFee = $t03780437871._3
959+ let $t03788438298 = if ((withdrawAsset == assetIdA))
954960 then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee)
955961 else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee)
956- let amountWithoutFee = $t03723337647._1
957- let amountWithFee = $t03723337647._2
958- let governanceReward = $t03723337647._3
959- let teamReward = $t03723337647._4
960- let $t03766038970 = if ((withdrawAsset == assetIdA))
962+ let amountWithoutFee = $t03788438298._1
963+ let amountWithFee = $t03788438298._2
964+ let governanceReward = $t03788438298._3
965+ let teamReward = $t03788438298._4
966+ let $t03831139621 = if ((withdrawAsset == assetIdA))
961967 then {
962968 let unstake = if (contains(stakingAssets, strAssetIdA))
963969 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil)
974980 then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
975981 else throw("Strict value is not equal to itself.")
976982 }
977- let newBalanceA = $t03766038970._1
978- let newBalanceB = $t03766038970._2
979- let govRewardAssetId = $t03766038970._3
980- let userTransfer = $t03766038970._4
983+ let newBalanceA = $t03831139621._1
984+ let newBalanceB = $t03831139621._2
985+ let govRewardAssetId = $t03831139621._3
986+ let userTransfer = $t03831139621._4
981987 $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId), ScriptTransfer(teamBoxAddress, teamReward, govRewardAssetId)] ++ userTransfer), nil))
982988 }
983989 else throw("Strict value is not equal to itself.")
988994
989995 @Callable(i)
990996 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
991- let $t03973039806 = getPoolAssets(i.caller)
992- let strAssetIdA = $t03973039806._1
993- let strAssetIdB = $t03973039806._2
994- let assetIdA = $t03973039806._3
995- let assetIdB = $t03973039806._4
997+ let $t04038140457 = getPoolAssets(i.caller)
998+ let strAssetIdA = $t04038140457._1
999+ let strAssetIdB = $t04038140457._2
1000+ let assetIdA = $t04038140457._3
1001+ let assetIdB = $t04038140457._4
9961002 let claim = if (if ((assetIdA == USDN))
9971003 then true
9981004 else (assetIdB == USDN))
10001006 else 0
10011007 if ((claim == claim))
10021008 then {
1003- let $t03996640072 = getPoolBalances(i.caller, assetIdA, assetIdB)
1004- let balanceA = $t03996640072._1
1005- let balanceB = $t03996640072._2
1006- let accountBalanceA = $t03996640072._3
1007- let accountBalanceB = $t03996640072._4
1009+ let $t04061740723 = getPoolBalances(i.caller, assetIdA, assetIdB)
1010+ let balanceA = $t04061740723._1
1011+ let balanceB = $t04061740723._2
1012+ let accountBalanceA = $t04061740723._3
1013+ let accountBalanceB = $t04061740723._4
10081014 let amountEnrollA = (accountBalanceA - balanceA)
10091015 let amountEnrollB = (accountBalanceB - balanceB)
10101016 if ((size(args) != 0))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let version = "1.0.0"
55
66 let kVersion = "version"
77
88 let kActive = "active"
99
1010 let kDeprecated = "deprecated_"
1111
1212 let kAssetIdA = "A_asset_id"
1313
1414 let kAssetIdB = "B_asset_id"
1515
1616 let kBalanceA = "A_asset_balance"
1717
1818 let kBalanceB = "B_asset_balance"
1919
2020 let kBalanceInitA = "A_asset_init"
2121
2222 let kBalanceInitB = "B_asset_init"
2323
2424 let kShareAssetId = "share_asset_id"
2525
2626 let kShareAssetSupply = "share_asset_supply"
2727
2828 let kFee = "commission"
2929
3030 let kCause = "shutdown_cause"
3131
3232 let kFirstHarvest = "first_harvest"
3333
3434 let kFirstHarvestHeight = "first_harvest_height"
3535
3636 let kShareLimit = "share_limit_on_first_harvest"
3737
3838 let kBasePeriod = "base_period"
3939
4040 let kPeriodLength = "period_length"
4141
4242 let kStartHeight = "start_height"
4343
4444 let kUSDNAddress = "staking_usdnnsbt_address"
4545
4646 let kEURNAddress = "staking_eurn_address"
4747
4848 let kLeasingAmount = "leasing_amount"
4949
5050 let kUSDNAssetId = "usdn_asset_id"
5151
5252 let kEURNAssetId = "eurn_asset_id"
5353
5454 let kStakingAssets = "staking_assets"
5555
5656 let kOracleActive = "active_all_contracts"
5757
5858 let kDiscounts = "discounts"
5959
6060 let kDiscountValues = "discount_values"
6161
6262 let kUserGSwopInGov = "_GSwop_amount"
6363
6464 let kUserSwopInGov = "_SWOP_amount"
6565
6666 let kOraclePool = "pool_"
6767
6868 let kAdminPubKey1 = "admin_pub_1"
6969
7070 let kAdminPubKey2 = "admin_pub_2"
7171
7272 let kAdminPubKey3 = "admin_pub_3"
7373
7474 let kAdminInvokePubKey = "admin_invoke_pub"
7575
7676 let kMoneyBoxAddress = "money_box_address"
7777
7878 let kTeamBoxAddress = "team_box_address"
7979
8080 let kVotingAddress = "voting_address"
8181
8282 let kGovAddress = "governance_address"
8383
8484 let kFarmingAddress = "farming_address"
8585
86-let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
86+let oracle = Address(base58'3PEbqViERCoKnmcSULh6n2aiMvUdSQdCsom')
8787
8888 func getBase58FromOracle (key) = match getString(oracle, key) {
8989 case string: String =>
9090 fromBase58String(string)
9191 case nothing =>
9292 throw((key + "is empty"))
9393 }
9494
9595
9696 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
9797
9898 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
9999
100100 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
101101
102102 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
103103
104104 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
105105
106106 let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
107107
108108 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
109109
110110 let govAddress = Address(getBase58FromOracle(kGovAddress))
111111
112112 let farmingAddress = Address(getBase58FromOracle(kFarmingAddress))
113113
114114 let USDN = getBase58FromOracle(kUSDNAssetId)
115115
116116 let EURN = getBase58FromOracle(kEURNAssetId)
117117
118118 let stakingAssets = getStringValue(oracle, kStakingAssets)
119119
120120 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
121121
122122 let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress))
123123
124124 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
125125
126126 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
127127
128128 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
129129
130130 let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
131131
132132 let active = getBooleanValue(oracle, kOracleActive)
133133
134134 let feeScale6 = 1000000
135135
136136 let scale8 = 100000000
137137
138138 let scale16 = toBigInt(10000000000000000)
139139
140140 func accountBalance (assetId,pool) = match assetId {
141141 case id: ByteVector =>
142142 assetBalance(pool, id)
143143 case waves: Unit =>
144144 wavesBalance(pool).available
145145 case _ =>
146146 throw("Match error")
147147 }
148148
149149
150150 func stakedAmount (assetId,pool) = {
151151 let stakedAmountCalculated = match assetId {
152152 case aId: ByteVector =>
153153 if ((aId == USDN))
154154 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool)))
155155 else if ((aId == EURN))
156156 then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool)))
157157 else 0
158158 case _: Unit =>
159159 valueOrElse(getInteger(pool, kLeasingAmount), 0)
160160 case _ =>
161161 throw("Match error")
162162 }
163163 match stakedAmountCalculated {
164164 case i: Int =>
165165 i
166166 case _ =>
167167 0
168168 }
169169 }
170170
171171
172172 func getAssetInfo (assetId) = match assetId {
173173 case id: String|ByteVector =>
174174 let $t040794251 = match id {
175175 case aId: ByteVector =>
176176 $Tuple2(toBase58String(aId), aId)
177177 case aId: String =>
178178 $Tuple2(aId, fromBase58String(aId))
179179 case _ =>
180180 throw("Match error")
181181 }
182182 let stringId = $t040794251._1
183183 let bytesId = $t040794251._2
184184 let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist"))
185185 $Tuple3(stringId, info.name, info.decimals)
186186 case waves: Unit =>
187187 $Tuple3("WAVES", "WAVES", 8)
188188 case _ =>
189189 throw("Match error")
190190 }
191191
192192
193193 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
194194
195195
196196 func calculateFeeDiscount (userAddr) = {
197197 let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0)
198198 let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), swopAmount)
199199 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
200200 let discounts = split(getStringValue(oracle, kDiscounts), ",")
201201 if (if ((gSwopAmount >= parseIntValue(discountValues[0])))
202202 then (parseIntValue(discountValues[1]) > gSwopAmount)
203203 else false)
204204 then (feeScale6 - parseIntValue(discounts[0]))
205205 else if (if ((gSwopAmount >= parseIntValue(discountValues[1])))
206206 then (parseIntValue(discountValues[2]) > gSwopAmount)
207207 else false)
208208 then (feeScale6 - parseIntValue(discounts[1]))
209209 else if (if ((gSwopAmount >= parseIntValue(discountValues[2])))
210210 then (parseIntValue(discountValues[3]) > gSwopAmount)
211211 else false)
212212 then (feeScale6 - parseIntValue(discounts[2]))
213213 else if (if ((gSwopAmount >= parseIntValue(discountValues[3])))
214214 then (parseIntValue(discountValues[4]) > gSwopAmount)
215215 else false)
216216 then (feeScale6 - parseIntValue(discounts[3]))
217217 else if ((gSwopAmount >= parseIntValue(discountValues[4])))
218218 then (feeScale6 - parseIntValue(discounts[4]))
219219 else feeScale6
220220 }
221221
222222
223223 func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGov,feeTeam) = {
224224 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
225225 let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6)
226226 let governanceReward = fraction(amountWithoutFee, feeGov, feeScale6)
227227 let teamReward = fraction(amountWithoutFee, feeTeam, feeScale6)
228228 if ((minAmountToReceive > amountWithFee))
229229 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
230230 else $Tuple4(amountWithoutFee, amountWithFee, governanceReward, teamReward)
231231 }
232232
233233
234234 func calculateVirtPay (pmtAmount,balance,fee) = {
235235 let F = (feeScale6 - fee)
236236 let k = fraction(fee, 55, 100)
237237 let a = (scale8 + fraction((F * k), scale8, (feeScale6 * feeScale6)))
238238 let b = ((((balance + fraction(balance, F, feeScale6)) + fraction(pmtAmount, F, feeScale6)) - pmtAmount) - fraction(pmtAmount, (F * k), (feeScale6 * feeScale6)))
239239 let c = (-(toBigInt(balance)) * toBigInt(pmtAmount))
240240 let D = ((toBigInt(b) * toBigInt(b)) - fraction((toBigInt(4) * c), toBigInt(a), toBigInt(scale8)))
241241 toInt(fraction((-(toBigInt(b)) + sqrtBigInt(D, 0, 0, DOWN)), toBigInt(scale8), toBigInt((2 * a))))
242242 }
243243
244244
245245 func parsePaymentAsset (assetId) = if ((assetId == base58''))
246246 then unit
247247 else assetId
248248
249249
250250 func suspendSuspicious (accountBalanceA,accountBalanceB,balanceA,balanceB,assetIdA,assetIdB) = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceA)) + " ") + assetIdA) + ", ") + toString(accountBalanceB)) + " ") + assetIdB) + ". State: ") + toString(balanceA)) + " ") + assetIdA) + ", ") + toString(balanceB)) + " ") + assetIdB))
251251
252252
253253 func isActive () = if (active)
254254 then unit
255255 else throw("DApp is inactive at this moment")
256256
257257
258258 func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress))))
259259 then unit
260260 else throw("DApp is not registered pool")
261261
262262
263263 func isDepricated (poolAddress) = if (!(valueOrElse(getBoolean(oracle, (kDeprecated + poolAddress)), false)))
264264 then unit
265265 else throw("Pool is deprecated. Only withdraw action allowed.")
266266
267267
268268 func getPoolBalances (pool,assetIdA,assetIdB) = {
269269 let balanceA = getIntegerValue(pool, kBalanceA)
270270 let balanceB = getIntegerValue(pool, kBalanceB)
271271 let stakedAmountA = stakedAmount(assetIdA, pool)
272272 let stakedAmountB = stakedAmount(assetIdB, pool)
273273 let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA)
274274 let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB)
275275 let shareSupply = getIntegerValue(pool, kShareAssetSupply)
276276 $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply)
277277 }
278278
279279
280280 func getPoolAssets (pool) = {
281281 let strAssetIdA = getStringValue(pool, kAssetIdA)
282282 let strAssetIdB = getStringValue(pool, kAssetIdB)
283283 let assetIdA = if ((strAssetIdA == "WAVES"))
284284 then unit
285285 else fromBase58String(strAssetIdA)
286286 let assetIdB = if ((strAssetIdB == "WAVES"))
287287 then unit
288288 else fromBase58String(strAssetIdB)
289289 let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId))
290290 $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId)
291291 }
292292
293293
294294 func getFeeParams (pool,caller) = {
295295 let feeDiscount = calculateFeeDiscount(caller)
296296 let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING)
297297 let govFee = fraction(fee, 35, 100)
298298 let teamFee = fraction(fee, 10, 100)
299299 $Tuple3(fee, govFee, teamFee)
300300 }
301301
302302
303303 func calcLPAmountReplensishTwoTokens (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,shareAssetSupply) = {
304304 let $t095629634 = getAssetInfo(pmtIdA)
305305 let pmtStrAssetIdA = $t095629634._1
306306 let pmtAssetNameA = $t095629634._2
307307 let pmtDecimalsA = $t095629634._3
308308 let $t096399711 = getAssetInfo(pmtIdB)
309309 let pmtStrAssetIdB = $t096399711._1
310310 let pmtAssetNameB = $t096399711._2
311311 let pmtDecimalsB = $t096399711._3
312312 let initial = ((balA + balB) == 0)
313313 let $t0975410413 = if (initial)
314314 then $Tuple5(pmtA, pmtB, 0, pmtIdA, toBigInt(1))
315315 else {
316316 let ratioShareTokensInA = fraction(scale16, toBigInt(pmtA), toBigInt(balA))
317317 let ratioShareTokensInB = fraction(scale16, toBigInt(pmtB), toBigInt(balB))
318318 if ((ratioShareTokensInB > ratioShareTokensInA))
319319 then {
320320 let pmt = fraction(pmtA, balB, balA)
321321 $Tuple5(pmtA, pmt, (pmtB - pmt), pmtIdB, ratioShareTokensInA)
322322 }
323323 else {
324324 let pmt = fraction(pmtB, balA, balB)
325325 $Tuple5(pmt, pmtB, (pmtA - pmt), pmtIdA, ratioShareTokensInB)
326326 }
327327 }
328328 let pmtAmountA = $t0975410413._1
329329 let pmtAmountB = $t0975410413._2
330330 let change = $t0975410413._3
331331 let changeAssetId = $t0975410413._4
332332 let shareTokenRatio = $t0975410413._5
333333 let shareTokenToPayAmount = if (initial)
334334 then {
335335 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
336336 fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
337337 }
338338 else toInt(fraction(shareTokenRatio, toBigInt(shareAssetSupply), scale16))
339339 $Tuple5(shareTokenToPayAmount, change, changeAssetId, pmtAmountA, pmtAmountB)
340340 }
341341
342342
343343 func calcLPAmountReplansishOneToken (pmtAmount,pmtAssetId,aId,bId,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = if ((pmtAssetId == aId))
344344 then {
345345 let virtPayAmount = calculateVirtPay(pmtAmount, balA, fee)
346- let $t01127011417 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
347- let amountWithoutFee = $t01127011417._1
348- let amountWithFee = $t01127011417._2
349- let governanceReward = $t01127011417._3
350- let tReward = $t01127011417._4
346+ let $t01127811425 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
347+ let amountWithoutFee = $t01127811425._1
348+ let amountWithFee = $t01127811425._2
349+ let governanceReward = $t01127811425._3
350+ let tReward = $t01127811425._4
351351 let balanceAVirt = (balA + virtPayAmount)
352352 let balanceBVirt = (((balB + amountWithoutFee) - governanceReward) - tReward)
353353 let newBalanceA = (balA + pmtAmount)
354354 let newBalanceB = ((balB - governanceReward) - tReward)
355355 let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt))
356356 let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt))
357357 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16))
358- $Tuple6(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId)
358+ let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16))
359+ let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth)
360+ $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId, loss)
359361 }
360362 else {
361363 let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee)
362- let $t01212912276 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
363- let amountWithoutFee = $t01212912276._1
364- let amountWithFee = $t01212912276._2
365- let governanceReward = $t01212912276._3
366- let tReward = $t01212912276._4
364+ let $t01245112598 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
365+ let amountWithoutFee = $t01245112598._1
366+ let amountWithFee = $t01245112598._2
367+ let governanceReward = $t01245112598._3
368+ let tReward = $t01245112598._4
367369 let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward)
368370 let balanceBVirt = (balB + virtPayAmount)
369371 let newBalanceA = ((balA - governanceReward) - tReward)
370372 let newBalanceB = (balB + pmtAmount)
371373 let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt))
372374 let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt))
373375 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16))
374- $Tuple6(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId)
376+ let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16))
377+ let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth)
378+ $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId, loss)
375379 }
376380
377381
378382 func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = {
379- let $t01312313271 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
380- let lpTwoAmount = $t01312313271._1
381- let change = $t01312313271._2
382- let changeAssetId = $t01312313271._3
383- let pmtAmountA = $t01312313271._4
384- let pmtAmountB = $t01312313271._5
383+ let $t01374713895 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
384+ let lpTwoAmount = $t01374713895._1
385+ let change = $t01374713895._2
386+ let changeAssetId = $t01374713895._3
387+ let pmtAmountA = $t01374713895._4
388+ let pmtAmountB = $t01374713895._5
385389 if ((change > 0))
386390 then {
387- let $t01330313532 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
388- let lpOne = $t01330313532._1
389- let newBalanceA = $t01330313532._2
390- let newBalanceB = $t01330313532._3
391- let governanceReward = $t01330313532._4
392- let tReward = $t01330313532._5
393- let gId = $t01330313532._6
394- $Tuple6((lpTwoAmount + lpOne), newBalanceA, newBalanceB, governanceReward, tReward, gId)
391+ let $t01392714162 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
392+ let lpOne = $t01392714162._1
393+ let newBalanceA = $t01392714162._2
394+ let newBalanceB = $t01392714162._3
395+ let governanceReward = $t01392714162._4
396+ let tReward = $t01392714162._5
397+ let gId = $t01392714162._6
398+ let loss = $t01392714162._7
399+ $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId)
395400 }
396- else $Tuple6(lpTwoAmount, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit)
401+ else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit)
397402 }
398403
399404
400405 @Callable(i)
401406 func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
402- let $t01385913949 = getPoolAssets(i.caller)
403- let strAssetIdA = $t01385913949._1
404- let strAssetIdB = $t01385913949._2
405- let assetIdA = $t01385913949._3
406- let assetIdB = $t01385913949._4
407- let shareAssetId = $t01385913949._5
408- let $t01395414046 = getPoolBalances(i.caller, assetIdA, assetIdB)
409- let balA = $t01395414046._1
410- let balB = $t01395414046._2
411- let accBalA = $t01395414046._3
412- let accBalB = $t01395414046._4
413- let lpSupply = $t01395414046._5
407+ let $t01449814588 = getPoolAssets(i.caller)
408+ let strAssetIdA = $t01449814588._1
409+ let strAssetIdB = $t01449814588._2
410+ let assetIdA = $t01449814588._3
411+ let assetIdB = $t01449814588._4
412+ let shareAssetId = $t01449814588._5
413+ let $t01459314685 = getPoolBalances(i.caller, assetIdA, assetIdB)
414+ let balA = $t01459314685._1
415+ let balB = $t01459314685._2
416+ let accBalA = $t01459314685._3
417+ let accBalB = $t01459314685._4
418+ let lpSupply = $t01459314685._5
414419 let pmtA = parseIntValue(args[0])
415420 let pmtB = parseIntValue(args[1])
416421 let virtGetMinAmount = parseIntValue(args[2])
417- let $t01418014247 = getFeeParams(i.caller, i.originCaller)
418- let fee = $t01418014247._1
419- let govFee = $t01418014247._2
420- let teamFee = $t01418014247._3
421- let $t01425214438 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
422- let lp = $t01425214438._1
423- let newBalanceA = $t01425214438._2
424- let newBalanceB = $t01425214438._3
425- let governanceReward = $t01425214438._4
426- let tReward = $t01425214438._5
427- let aId = $t01425214438._6
428- $Tuple2(nil, $Tuple2(nil, [lp, newBalanceA, newBalanceB, governanceReward, tReward, aId]))
422+ let $t01481914886 = getFeeParams(i.caller, i.originCaller)
423+ let fee = $t01481914886._1
424+ let govFee = $t01481914886._2
425+ let teamFee = $t01481914886._3
426+ let $t01489115083 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
427+ let lp = $t01489115083._1
428+ let loss = $t01489115083._2
429+ let newBalanceA = $t01489115083._3
430+ let newBalanceB = $t01489115083._4
431+ let governanceReward = $t01489115083._5
432+ let tReward = $t01489115083._6
433+ let aId = $t01489115083._7
434+ $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId]))
429435 }
430436
431437
432438
433439 @Callable(i)
434440 func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
435- let $t01465914749 = getPoolAssets(i.caller)
436- let strAssetIdA = $t01465914749._1
437- let strAssetIdB = $t01465914749._2
438- let assetIdA = $t01465914749._3
439- let assetIdB = $t01465914749._4
440- let shareAssetId = $t01465914749._5
441- let $t01475414878 = getPoolBalances(i.caller, assetIdA, assetIdB)
442- let balanceA = $t01475414878._1
443- let balanceB = $t01475414878._2
444- let accountBalanceA = $t01475414878._3
445- let accountBalanceB = $t01475414878._4
446- let shareAssetSupply = $t01475414878._5
441+ let $t01531015400 = getPoolAssets(i.caller)
442+ let strAssetIdA = $t01531015400._1
443+ let strAssetIdB = $t01531015400._2
444+ let assetIdA = $t01531015400._3
445+ let assetIdB = $t01531015400._4
446+ let shareAssetId = $t01531015400._5
447+ let $t01540515529 = getPoolBalances(i.caller, assetIdA, assetIdB)
448+ let balanceA = $t01540515529._1
449+ let balanceB = $t01540515529._2
450+ let accountBalanceA = $t01540515529._3
451+ let accountBalanceB = $t01540515529._4
452+ let shareAssetSupply = $t01540515529._5
447453 let withdrawAmount = parseIntValue(args[0])
448- let $t01493215094 = if ((size(args) == 3))
454+ let $t01558315745 = if ((size(args) == 3))
449455 then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2]))
450456 else $Tuple2(balanceA, balanceB)
451- let balA = $t01493215094._1
452- let balB = $t01493215094._2
457+ let balA = $t01558315745._1
458+ let balB = $t01558315745._2
453459 let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply)
454460 let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply)
455461 $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB]))
456462 }
457463
458464
459465
460466 @Callable(i)
461467 func init (callerBytes,args,pAmounts,pAssetIds) = {
462468 let caller = Address(callerBytes)
463- let $t01544915527 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
464- let pmtAmountA = $t01544915527._1
465- let pmtAssetIdA = $t01544915527._2
466- let $t01553215610 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
467- let pmtAmountB = $t01553215610._1
468- let pmtAssetIdB = $t01553215610._2
469+ let $t01610016178 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
470+ let pmtAmountA = $t01610016178._1
471+ let pmtAssetIdA = $t01610016178._2
472+ let $t01618316261 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
473+ let pmtAmountB = $t01618316261._1
474+ let pmtAssetIdB = $t01618316261._2
469475 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
470476 then throw("Only admin can call this function")
471477 else if ((size(args) != 1))
472478 then throw("Wrong args size")
473479 else if (isDefined(getBoolean(caller, kActive)))
474480 then throw("DApp is already active")
475481 else if ((pmtAssetIdA == pmtAssetIdB))
476482 then throw("Assets must be different")
477483 else {
478- let $t01604516122 = getAssetInfo(pmtAssetIdA)
479- let pmtStrAssetIdA = $t01604516122._1
480- let pmtAssetNameA = $t01604516122._2
481- let pmtDecimalsA = $t01604516122._3
482- let $t01613116208 = getAssetInfo(pmtAssetIdB)
483- let pmtStrAssetIdB = $t01613116208._1
484- let pmtAssetNameB = $t01613116208._2
485- let pmtDecimalsB = $t01613116208._3
484+ let $t01669616773 = getAssetInfo(pmtAssetIdA)
485+ let pmtStrAssetIdA = $t01669616773._1
486+ let pmtAssetNameA = $t01669616773._2
487+ let pmtDecimalsA = $t01669616773._3
488+ let $t01678216859 = getAssetInfo(pmtAssetIdB)
489+ let pmtStrAssetIdB = $t01678216859._1
490+ let pmtAssetNameB = $t01678216859._2
491+ let pmtDecimalsB = $t01678216859._3
486492 let firstHarvest = (args[0] == "true")
487493 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
488494 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
489495 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
490496 let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN)
491497 let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN)
492498 let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN)
493499 let shareInitialSupply = fraction(arg1, arg2, arg3)
494500 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
495501 let shareIssueId = calculateAssetId(shareIssue)
496502 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
497503 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
498504 else 0
499505 if ((stake1 == stake1))
500506 then {
501507 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
502508 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
503509 else 0
504510 if ((stake2 == stake2))
505511 then {
506512 let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(caller, shareInitialSupply, shareIssueId)]
507513 if (firstHarvest)
508514 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
509515 else $Tuple2(nil, $Tuple2(baseEntry, nil))
510516 }
511517 else throw("Strict value is not equal to itself.")
512518 }
513519 else throw("Strict value is not equal to itself.")
514520 }
515521 }
516522
517523
518524
519525 @Callable(i)
520526 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
521527 let caller = Address(callerBytes)
522- let $t01842918629 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
523- let amtAssetA = $t01842918629._1
524- let amtAssetB = $t01842918629._2
525- let assetIdAStr = $t01842918629._3
526- let assetIdBStr = $t01842918629._4
527- let firstHarvest = $t01842918629._5
528+ let $t01908019280 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
529+ let amtAssetA = $t01908019280._1
530+ let amtAssetB = $t01908019280._2
531+ let assetIdAStr = $t01908019280._3
532+ let assetIdBStr = $t01908019280._4
533+ let firstHarvest = $t01908019280._5
528534 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
529535 then throw("Only admin can call this function")
530536 else if ((size(args) != 5))
531537 then throw("Wrong args size")
532538 else if (isDefined(getBoolean(caller, kActive)))
533539 then throw("DApp is already active")
534540 else if ((assetIdAStr == assetIdBStr))
535541 then throw("Assets must be different")
536542 else {
537- let $t01906419141 = getAssetInfo(assetIdAStr)
538- let pmtStrAssetIdA = $t01906419141._1
539- let pmtAssetNameA = $t01906419141._2
540- let pmtDecimalsA = $t01906419141._3
541- let $t01915019227 = getAssetInfo(assetIdBStr)
542- let pmtStrAssetIdB = $t01915019227._1
543- let pmtAssetNameB = $t01915019227._2
544- let pmtDecimalsB = $t01915019227._3
543+ let $t01971519792 = getAssetInfo(assetIdAStr)
544+ let pmtStrAssetIdA = $t01971519792._1
545+ let pmtAssetNameA = $t01971519792._2
546+ let pmtDecimalsA = $t01971519792._3
547+ let $t01980119878 = getAssetInfo(assetIdBStr)
548+ let pmtStrAssetIdB = $t01980119878._1
549+ let pmtAssetNameB = $t01980119878._2
550+ let pmtDecimalsB = $t01980119878._3
545551 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
546552 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
547553 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
548554 let shareInitialSupply = 0
549555 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
550556 let shareIssueId = calculateAssetId(shareIssue)
551557 let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceInitA, amtAssetA), IntegerEntry(kBalanceInitB, amtAssetB), IntegerEntry(kBalanceA, 0), IntegerEntry(kBalanceB, 0), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply)]
552558 if (firstHarvest)
553559 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
554560 else $Tuple2(nil, $Tuple2(baseEntry, nil))
555561 }
556562 }
557563
558564
559565
560566 @Callable(i)
561567 func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
562568 then throw("Only admin can call this function")
563569 else if ((size(args) != 1))
564570 then throw("Wrong args size")
565571 else {
566572 let shareLimit = parseIntValue(args[0])
567573 $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil))
568574 }))
569575
570576
571577
572578 @Callable(i)
573579 func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
574580 let caller = Address(callerBytes)
575- let $t02165321729 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
576- let pmtAmount = $t02165321729._1
577- let pmtAssetId = $t02165321729._2
581+ let $t02230422380 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
582+ let pmtAmount = $t02230422380._1
583+ let pmtAssetId = $t02230422380._2
578584 let minAmountToReceive = parseIntValue(args[0])
579- let $t02179421870 = getPoolAssets(i.caller)
580- let strAssetIdA = $t02179421870._1
581- let strAssetIdB = $t02179421870._2
582- let assetIdA = $t02179421870._3
583- let assetIdB = $t02179421870._4
584- let $t02187921985 = getPoolBalances(i.caller, assetIdA, assetIdB)
585- let balanceA = $t02187921985._1
586- let balanceB = $t02187921985._2
587- let accountBalanceA = $t02187921985._3
588- let accountBalanceB = $t02187921985._4
585+ let $t02244522521 = getPoolAssets(i.caller)
586+ let strAssetIdA = $t02244522521._1
587+ let strAssetIdB = $t02244522521._2
588+ let assetIdA = $t02244522521._3
589+ let assetIdB = $t02244522521._4
590+ let $t02253022636 = getPoolBalances(i.caller, assetIdA, assetIdB)
591+ let balanceA = $t02253022636._1
592+ let balanceB = $t02253022636._2
593+ let accountBalanceA = $t02253022636._3
594+ let accountBalanceB = $t02253022636._4
589595 if ((size(args) != 1))
590596 then throw("Wrong args size")
591597 else if (if ((balanceA == 0))
592598 then true
593599 else (balanceB == 0))
594600 then throw("Can't exchange with zero balance")
595601 else if ((0 >= minAmountToReceive))
596602 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
597603 else if ((size(pAmounts) != 1))
598604 then throw("One attached payment expected")
599605 else if (!(containsElement([assetIdA, assetIdB], pmtAssetId)))
600606 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
601607 else if (if ((balanceA > accountBalanceA))
602608 then true
603609 else (balanceB > accountBalanceB))
604610 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
605611 else {
606- let $t02288522952 = getFeeParams(i.caller, i.originCaller)
607- let fee = $t02288522952._1
608- let govFee = $t02288522952._2
609- let teamFee = $t02288522952._3
610- let $t02296523316 = if ((pmtAssetId == assetIdA))
612+ let $t02353623603 = getFeeParams(i.caller, i.originCaller)
613+ let fee = $t02353623603._1
614+ let govFee = $t02353623603._2
615+ let teamFee = $t02353623603._3
616+ let $t02361623967 = if ((pmtAssetId == assetIdA))
611617 then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee)
612618 else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee)
613- let amountWithoutFee = $t02296523316._1
614- let amountWithFee = $t02296523316._2
615- let governanceReward = $t02296523316._3
616- let teamReward = $t02296523316._4
617- let $t02333023665 = if ((pmtAssetId == assetIdA))
619+ let amountWithoutFee = $t02361623967._1
620+ let amountWithFee = $t02361623967._2
621+ let governanceReward = $t02361623967._3
622+ let teamReward = $t02361623967._4
623+ let $t02398124316 = if ((pmtAssetId == assetIdA))
618624 then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB)
619625 else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA)
620- let newBalanceA = $t02333023665._1
621- let newBalanceB = $t02333023665._2
622- let assetIdSend = $t02333023665._3
623- let $t02367923939 = if ((pmtAssetId == assetIdA))
626+ let newBalanceA = $t02398124316._1
627+ let newBalanceB = $t02398124316._2
628+ let assetIdSend = $t02398124316._3
629+ let $t02433024590 = if ((pmtAssetId == assetIdA))
624630 then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward))
625631 else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount)
626- let stakeAmountA = $t02367923939._1
627- let stakeAmountB = $t02367923939._2
632+ let stakeAmountA = $t02433024590._1
633+ let stakeAmountB = $t02433024590._2
628634 let stake1 = if (contains(stakingAssets, strAssetIdA))
629635 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
630636 else 0
631637 if ((stake1 == stake1))
632638 then {
633639 let stake2 = if (contains(stakingAssets, strAssetIdB))
634640 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil)
635641 else 0
636642 if ((stake2 == stake2))
637643 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend), ScriptTransfer(teamBoxAddress, teamReward, assetIdSend)], [amountWithFee, assetIdSend]))
638644 else throw("Strict value is not equal to itself.")
639645 }
640646 else throw("Strict value is not equal to itself.")
641647 }
642648 })))
643649
644650
645651
646652 @Callable(i)
647653 func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
648654 let caller = Address(callerBytes)
649655 let pmtAssetIdA = parsePaymentAsset(pAssetIds[0])
650656 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
651657 let stakeFarming = (args[0] == "true")
652658 let lockType = parseIntValue(args[1])
653- let $t02525425344 = getPoolAssets(i.caller)
654- let strAssetIdA = $t02525425344._1
655- let strAssetIdB = $t02525425344._2
656- let assetIdA = $t02525425344._3
657- let assetIdB = $t02525425344._4
658- let shareAssetId = $t02525425344._5
659- let $t02535325477 = getPoolBalances(i.caller, assetIdA, assetIdB)
660- let balanceA = $t02535325477._1
661- let balanceB = $t02535325477._2
662- let accountBalanceA = $t02535325477._3
663- let accountBalanceB = $t02535325477._4
664- let shareAssetSupply = $t02535325477._5
659+ let $t02590525995 = getPoolAssets(i.caller)
660+ let strAssetIdA = $t02590525995._1
661+ let strAssetIdB = $t02590525995._2
662+ let assetIdA = $t02590525995._3
663+ let assetIdB = $t02590525995._4
664+ let shareAssetId = $t02590525995._5
665+ let $t02600426128 = getPoolBalances(i.caller, assetIdA, assetIdB)
666+ let balanceA = $t02600426128._1
667+ let balanceB = $t02600426128._2
668+ let accountBalanceA = $t02600426128._3
669+ let accountBalanceB = $t02600426128._4
670+ let shareAssetSupply = $t02600426128._5
665671 if ((size(args) != 2))
666672 then throw("Wrong args size")
667673 else if (if ((size(pAmounts) != 2))
668674 then (size(pAmounts) != 3)
669675 else false)
670676 then throw("Two or three payments expected")
671677 else if (if ((pmtAssetIdA != assetIdA))
672678 then true
673679 else (pmtAssetIdB != assetIdB))
674680 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
675681 else if (if ((balanceA > accountBalanceA))
676682 then true
677683 else (balanceB > accountBalanceB))
678684 then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3))
679685 then [AttachedPayment(if ((pAssetIds[2] == base58''))
680686 then unit
681687 else pAssetIds[2], pAmounts[2])]
682688 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
683689 else {
684- let $t02641426612 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
685- let shareTokenToPayAmount = $t02641426612._1
686- let change = $t02641426612._2
687- let changeAssetId = $t02641426612._3
688- let pmtAmountA = $t02641426612._4
689- let pmtAmountB = $t02641426612._5
690+ let $t02706527263 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
691+ let shareTokenToPayAmount = $t02706527263._1
692+ let change = $t02706527263._2
693+ let changeAssetId = $t02706527263._3
694+ let pmtAmountA = $t02706527263._4
695+ let pmtAmountB = $t02706527263._5
690696 if ((shareTokenToPayAmount == 0))
691697 then throw("Too small amount to replenish")
692698 else if ((0 > change))
693699 then throw("Change < 0")
694700 else {
695701 let stake1 = if (contains(stakingAssets, strAssetIdA))
696702 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, strAssetIdA], nil)
697703 else 0
698704 if ((stake1 == stake1))
699705 then {
700706 let stake2 = if (contains(stakingAssets, strAssetIdB))
701707 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, strAssetIdB], nil)
702708 else 0
703709 if ((stake2 == stake2))
704710 then {
705711 let shareTokenST = if (stakeFarming)
706712 then {
707713 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3))
708714 then [AttachedPayment(if ((pAssetIds[2] == base58''))
709715 then unit
710716 else pAssetIds[2], pAmounts[2])]
711717 else nil))
712718 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
713719 if ((reissue == reissue))
714720 then {
715721 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
716722 if ((stake3 == stake3))
717723 then nil
718724 else throw("Strict value is not equal to itself.")
719725 }
720726 else throw("Strict value is not equal to itself.")
721727 }
722728 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
723729 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil))
724730 }
725731 else throw("Strict value is not equal to itself.")
726732 }
727733 else throw("Strict value is not equal to itself.")
728734 }
729735 }
730736 })))
731737
732738
733739
734740 @Callable(i)
735741 func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
736742 let caller = Address(callerBytes)
737743 let pmtAssetId = parsePaymentAsset(pAssetIds[0])
738744 let pmtAmount = pAmounts[0]
739745 let virtGetMinAmount = parseIntValue(args[0])
740746 let stakeFarming = (args[1] == "true")
741747 let lockType = parseIntValue(args[2])
742- let $t02887128961 = getPoolAssets(i.caller)
743- let strAssetIdA = $t02887128961._1
744- let strAssetIdB = $t02887128961._2
745- let assetIdA = $t02887128961._3
746- let assetIdB = $t02887128961._4
747- let shareAssetId = $t02887128961._5
748- let $t02896629090 = getPoolBalances(i.caller, assetIdA, assetIdB)
749- let balanceA = $t02896629090._1
750- let balanceB = $t02896629090._2
751- let accountBalanceA = $t02896629090._3
752- let accountBalanceB = $t02896629090._4
753- let shareAssetSupply = $t02896629090._5
748+ let $t02952229612 = getPoolAssets(i.caller)
749+ let strAssetIdA = $t02952229612._1
750+ let strAssetIdB = $t02952229612._2
751+ let assetIdA = $t02952229612._3
752+ let assetIdB = $t02952229612._4
753+ let shareAssetId = $t02952229612._5
754+ let $t02961729741 = getPoolBalances(i.caller, assetIdA, assetIdB)
755+ let balanceA = $t02961729741._1
756+ let balanceB = $t02961729741._2
757+ let accountBalanceA = $t02961729741._3
758+ let accountBalanceB = $t02961729741._4
759+ let shareAssetSupply = $t02961729741._5
754760 let initial = ((balanceA + balanceB) == 0)
755761 if ((size(args) != 3))
756762 then throw("Wrong args size")
757763 else if (if ((size(pAmounts) != 1))
758764 then (size(pAmounts) != 2)
759765 else false)
760766 then throw("Two or one attached assets expected")
761767 else if (if ((pmtAssetId != assetIdA))
762768 then (pmtAssetId != assetIdB)
763769 else false)
764770 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
765771 else if (initial)
766772 then throw("For initial exchanger you need to use two tokens")
767773 else if (if ((balanceA > accountBalanceA))
768774 then true
769775 else (balanceB > accountBalanceB))
770776 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2))
771777 then [AttachedPayment(if ((pAssetIds[2] == base58''))
772778 then unit
773779 else pAssetIds[2], pAmounts[2])]
774780 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
775781 else {
776- let $t03000230069 = getFeeParams(i.caller, i.originCaller)
777- let fee = $t03000230069._1
778- let govFee = $t03000230069._2
779- let teamFee = $t03000230069._3
780- let $t03007830140 = getAssetInfo(pmtAssetId)
781- let pmtAssetIdStr = $t03007830140._1
782- let pmtAssetIdName = $t03007830140._2
783- let $t03015830404 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
784- let shareTokenToPayAmount = $t03015830404._1
785- let newBalanceA = $t03015830404._2
786- let newBalanceB = $t03015830404._3
787- let govReward = $t03015830404._4
788- let teamReward = $t03015830404._5
789- let govRewardAsset = $t03015830404._6
782+ let $t03065330720 = getFeeParams(i.caller, i.originCaller)
783+ let fee = $t03065330720._1
784+ let govFee = $t03065330720._2
785+ let teamFee = $t03065330720._3
786+ let $t03072930791 = getAssetInfo(pmtAssetId)
787+ let pmtAssetIdStr = $t03072930791._1
788+ let pmtAssetIdName = $t03072930791._2
789+ let $t03080931055 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
790+ let shareTokenToPayAmount = $t03080931055._1
791+ let newBalanceA = $t03080931055._2
792+ let newBalanceB = $t03080931055._3
793+ let govReward = $t03080931055._4
794+ let teamReward = $t03080931055._5
795+ let govRewardAsset = $t03080931055._6
790796 let govRewardAssetStr = if ((govRewardAsset == assetIdA))
791797 then strAssetIdA
792798 else strAssetIdB
793799 if ((shareTokenToPayAmount == 0))
794800 then throw("Too small amount to replenish")
795801 else {
796802 let stake1 = if (contains(stakingAssets, pmtAssetIdStr))
797803 then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil)
798804 else 0
799805 if ((stake1 == stake1))
800806 then {
801807 let stake2 = if (contains(stakingAssets, govRewardAssetStr))
802808 then invoke(i.caller, "stakeUnstake", [false, (govReward + teamReward), govRewardAssetStr], nil)
803809 else 0
804810 if ((stake2 == stake2))
805811 then {
806812 let shareTokenST = if (stakeFarming)
807813 then {
808814 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2))
809815 then [AttachedPayment(if ((pAssetIds[1] == base58''))
810816 then unit
811817 else pAssetIds[1], pAmounts[1])]
812818 else nil))
813819 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
814820 if ((reissue == reissue))
815821 then {
816822 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
817823 if ((stake3 == stake3))
818824 then nil
819825 else throw("Strict value is not equal to itself.")
820826 }
821827 else throw("Strict value is not equal to itself.")
822828 }
823829 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
824830 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset), ScriptTransfer(teamBoxAddress, teamReward, govRewardAsset)] ++ shareTokenST), nil))
825831 }
826832 else throw("Strict value is not equal to itself.")
827833 }
828834 else throw("Strict value is not equal to itself.")
829835 }
830836 }
831837 })))
832838
833839
834840
835841 @Callable(i)
836842 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
837843 let caller = Address(callerBytes)
838- let $t03247232562 = getPoolAssets(i.caller)
839- let strAssetIdA = $t03247232562._1
840- let strAssetIdB = $t03247232562._2
841- let assetIdA = $t03247232562._3
842- let assetIdB = $t03247232562._4
843- let shareAssetId = $t03247232562._5
844- let $t03257132695 = getPoolBalances(i.caller, assetIdA, assetIdB)
845- let balanceA = $t03257132695._1
846- let balanceB = $t03257132695._2
847- let accountBalanceA = $t03257132695._3
848- let accountBalanceB = $t03257132695._4
849- let shareAssetSupply = $t03257132695._5
850- let $t03270433084 = if ((size(pAmounts) == 1))
844+ let $t03312333213 = getPoolAssets(i.caller)
845+ let strAssetIdA = $t03312333213._1
846+ let strAssetIdB = $t03312333213._2
847+ let assetIdA = $t03312333213._3
848+ let assetIdB = $t03312333213._4
849+ let shareAssetId = $t03312333213._5
850+ let $t03322233346 = getPoolBalances(i.caller, assetIdA, assetIdB)
851+ let balanceA = $t03322233346._1
852+ let balanceB = $t03322233346._2
853+ let accountBalanceA = $t03322233346._3
854+ let accountBalanceB = $t03322233346._4
855+ let shareAssetSupply = $t03322233346._5
856+ let $t03335533735 = if ((size(pAmounts) == 1))
851857 then {
852858 let pAsset = parsePaymentAsset(pAssetIds[0])
853859 if ((pAsset != shareAssetId))
854860 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
855861 else $Tuple2(pAmounts[0], pAsset)
856862 }
857863 else $Tuple2(0, shareAssetId)
858- let pmtAmount = $t03270433084._1
859- let pmtAssetId = $t03270433084._2
864+ let pmtAmount = $t03335533735._1
865+ let pmtAssetId = $t03335533735._2
860866 if ((size(args) != 1))
861867 then throw("Wrong args size")
862868 else if ((size(pAmounts) > 1))
863869 then throw("One attached payment expected")
864870 else if (if ((balanceA > accountBalanceA))
865871 then true
866872 else (balanceB > accountBalanceB))
867873 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
868874 else {
869875 let unlockAmount = parseIntValue(valueOrElse(args[0], "0"))
870876 let unlock = if ((unlockAmount > 0))
871877 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
872878 else 0
873879 if ((unlock == unlock))
874880 then {
875881 let withdrawAmount = (pmtAmount + unlockAmount)
876882 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
877883 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
878884 let stake1 = if (contains(stakingAssets, strAssetIdA))
879885 then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
880886 else 0
881887 if ((stake1 == stake1))
882888 then {
883889 let stake2 = if (contains(stakingAssets, strAssetIdB))
884890 then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
885891 else 0
886892 if ((stake2 == stake2))
887893 then $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2([IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(caller, amountToPayA, assetIdA), ScriptTransfer(caller, amountToPayB, assetIdB)], nil))
888894 else throw("Strict value is not equal to itself.")
889895 }
890896 else throw("Strict value is not equal to itself.")
891897 }
892898 else throw("Strict value is not equal to itself.")
893899 }
894900 }))
895901
896902
897903
898904 @Callable(i)
899905 func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
900906 let caller = Address(callerBytes)
901907 let withdrawAsset = if ((args[0] == ""))
902908 then unit
903909 else fromBase58String(args[0])
904- let $t03530235392 = getPoolAssets(i.caller)
905- let strAssetIdA = $t03530235392._1
906- let strAssetIdB = $t03530235392._2
907- let assetIdA = $t03530235392._3
908- let assetIdB = $t03530235392._4
909- let shareAssetId = $t03530235392._5
910- let $t03540135525 = getPoolBalances(i.caller, assetIdA, assetIdB)
911- let balanceA = $t03540135525._1
912- let balanceB = $t03540135525._2
913- let accountBalanceA = $t03540135525._3
914- let accountBalanceB = $t03540135525._4
915- let shareAssetSupply = $t03540135525._5
916- let $t03553435886 = if ((size(pAmounts) == 1))
910+ let $t03595336043 = getPoolAssets(i.caller)
911+ let strAssetIdA = $t03595336043._1
912+ let strAssetIdB = $t03595336043._2
913+ let assetIdA = $t03595336043._3
914+ let assetIdB = $t03595336043._4
915+ let shareAssetId = $t03595336043._5
916+ let $t03605236176 = getPoolBalances(i.caller, assetIdA, assetIdB)
917+ let balanceA = $t03605236176._1
918+ let balanceB = $t03605236176._2
919+ let accountBalanceA = $t03605236176._3
920+ let accountBalanceB = $t03605236176._4
921+ let shareAssetSupply = $t03605236176._5
922+ let $t03618536537 = if ((size(pAmounts) == 1))
917923 then {
918924 let pAsset = parsePaymentAsset(pAssetIds[0])
919925 if ((pAsset != shareAssetId))
920926 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
921927 else $Tuple2(pAmounts[0], pAsset)
922928 }
923929 else $Tuple2(0, shareAssetId)
924- let pmtAmount = $t03553435886._1
925- let pmtAssetId = $t03553435886._2
930+ let pmtAmount = $t03618536537._1
931+ let pmtAssetId = $t03618536537._2
926932 let virtMinToRecive = parseIntValue(args[1])
927933 if ((size(args) != 3))
928934 then throw("Wrong args size")
929935 else if ((size(pAmounts) > 1))
930936 then throw("One attached payment expected")
931937 else if ((pmtAssetId != shareAssetId))
932938 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
933939 else if (!(containsElement([assetIdA, assetIdB], withdrawAsset)))
934940 then throw("Incorrect withdraw asset.")
935941 else if (if ((balanceA > accountBalanceA))
936942 then true
937943 else (balanceB > accountBalanceB))
938944 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
939945 else {
940946 let unlockAmount = parseIntValue(valueOrElse(args[2], "0"))
941947 let unlock = if ((unlockAmount > 0))
942948 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
943949 else 0
944950 if ((unlock == unlock))
945951 then {
946952 let withdrawAmount = (pmtAmount + unlockAmount)
947953 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
948954 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
949- let $t03715337220 = getFeeParams(i.caller, i.originCaller)
950- let fee = $t03715337220._1
951- let govFee = $t03715337220._2
952- let teamFee = $t03715337220._3
953- let $t03723337647 = if ((withdrawAsset == assetIdA))
955+ let $t03780437871 = getFeeParams(i.caller, i.originCaller)
956+ let fee = $t03780437871._1
957+ let govFee = $t03780437871._2
958+ let teamFee = $t03780437871._3
959+ let $t03788438298 = if ((withdrawAsset == assetIdA))
954960 then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee)
955961 else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee)
956- let amountWithoutFee = $t03723337647._1
957- let amountWithFee = $t03723337647._2
958- let governanceReward = $t03723337647._3
959- let teamReward = $t03723337647._4
960- let $t03766038970 = if ((withdrawAsset == assetIdA))
962+ let amountWithoutFee = $t03788438298._1
963+ let amountWithFee = $t03788438298._2
964+ let governanceReward = $t03788438298._3
965+ let teamReward = $t03788438298._4
966+ let $t03831139621 = if ((withdrawAsset == assetIdA))
961967 then {
962968 let unstake = if (contains(stakingAssets, strAssetIdA))
963969 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil)
964970 else 0
965971 if ((unstake == unstake))
966972 then $Tuple4(((((balanceA - amountToPayA) - amountWithFee) - governanceReward) - teamReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)])
967973 else throw("Strict value is not equal to itself.")
968974 }
969975 else {
970976 let unstake = if (contains(stakingAssets, strAssetIdB))
971977 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayB + amountWithFee) + governanceReward) + teamReward), strAssetIdB], nil)
972978 else 0
973979 if ((unstake == unstake))
974980 then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
975981 else throw("Strict value is not equal to itself.")
976982 }
977- let newBalanceA = $t03766038970._1
978- let newBalanceB = $t03766038970._2
979- let govRewardAssetId = $t03766038970._3
980- let userTransfer = $t03766038970._4
983+ let newBalanceA = $t03831139621._1
984+ let newBalanceB = $t03831139621._2
985+ let govRewardAssetId = $t03831139621._3
986+ let userTransfer = $t03831139621._4
981987 $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId), ScriptTransfer(teamBoxAddress, teamReward, govRewardAssetId)] ++ userTransfer), nil))
982988 }
983989 else throw("Strict value is not equal to itself.")
984990 }
985991 })))
986992
987993
988994
989995 @Callable(i)
990996 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
991- let $t03973039806 = getPoolAssets(i.caller)
992- let strAssetIdA = $t03973039806._1
993- let strAssetIdB = $t03973039806._2
994- let assetIdA = $t03973039806._3
995- let assetIdB = $t03973039806._4
997+ let $t04038140457 = getPoolAssets(i.caller)
998+ let strAssetIdA = $t04038140457._1
999+ let strAssetIdB = $t04038140457._2
1000+ let assetIdA = $t04038140457._3
1001+ let assetIdB = $t04038140457._4
9961002 let claim = if (if ((assetIdA == USDN))
9971003 then true
9981004 else (assetIdB == USDN))
9991005 then invoke(i.caller, "claimNetrinoRewards", nil, nil)
10001006 else 0
10011007 if ((claim == claim))
10021008 then {
1003- let $t03996640072 = getPoolBalances(i.caller, assetIdA, assetIdB)
1004- let balanceA = $t03996640072._1
1005- let balanceB = $t03996640072._2
1006- let accountBalanceA = $t03996640072._3
1007- let accountBalanceB = $t03996640072._4
1009+ let $t04061740723 = getPoolBalances(i.caller, assetIdA, assetIdB)
1010+ let balanceA = $t04061740723._1
1011+ let balanceB = $t04061740723._2
1012+ let accountBalanceA = $t04061740723._3
1013+ let accountBalanceB = $t04061740723._4
10081014 let amountEnrollA = (accountBalanceA - balanceA)
10091015 let amountEnrollB = (accountBalanceB - balanceB)
10101016 if ((size(args) != 0))
10111017 then throw("Wrong args size")
10121018 else if ((moneyBoxAddress != i.originCaller))
10131019 then throw("Only the wallet can call this function")
10141020 else if (if ((0 > amountEnrollA))
10151021 then true
10161022 else (0 > amountEnrollB))
10171023 then suspend("Enroll amount negative")
10181024 else if (if ((amountEnrollA == 0))
10191025 then (amountEnrollB == 0)
10201026 else false)
10211027 then throw("No money to take")
10221028 else {
10231029 let stake1 = if (if (contains(stakingAssets, strAssetIdA))
10241030 then (amountEnrollA > 0)
10251031 else false)
10261032 then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
10271033 else 0
10281034 if ((stake1 == stake1))
10291035 then {
10301036 let stake2 = if (if (contains(stakingAssets, strAssetIdB))
10311037 then (amountEnrollB > 0)
10321038 else false)
10331039 then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
10341040 else 0
10351041 if ((stake2 == stake2))
10361042 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil))
10371043 else throw("Strict value is not equal to itself.")
10381044 }
10391045 else throw("Strict value is not equal to itself.")
10401046 }
10411047 }
10421048 else throw("Strict value is not equal to itself.")
10431049 }))
10441050
10451051
10461052 @Verifier(tx)
10471053 func verify () = {
10481054 let multiSignedByAdmins = {
10491055 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
10501056 then 1
10511057 else 0
10521058 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
10531059 then 1
10541060 else 0
10551061 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
10561062 then 1
10571063 else 0
10581064 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
10591065 }
10601066 multiSignedByAdmins
10611067 }
10621068

github/deemru/w8io/026f985 
176.25 ms