tx · 4cm6n2Y8AQCmEn2JokGEGFNNMNbt4cVBz7LJ25u7ztvy

3N34tFqSq5Y1WeWBRmEFay3AjMDnmhDG5FF:  -0.42000000 Waves

2023.06.16 15:34 [2625193] smart account 3N34tFqSq5Y1WeWBRmEFay3AjMDnmhDG5FF > SELF 0.00000000 Waves

{ "type": 13, "id": "4cm6n2Y8AQCmEn2JokGEGFNNMNbt4cVBz7LJ25u7ztvy", "fee": 42000000, "feeAssetId": null, "timestamp": 1686918849716, "version": 2, "chainId": 84, "sender": "3N34tFqSq5Y1WeWBRmEFay3AjMDnmhDG5FF", "senderPublicKey": "3H3jQSMsXpDqwfs2jeMQXJ6JVCBs8MjWRgpeA9LWDFda", "proofs": [ "3YC6qacX5XBWAPV7LykJ1HgFygWRN3jGhStkvMABGuPjTxRnuZrxmJ2cTVgDzNgXCMN5p7oX2t2WKCb3s8hrXw32", "eHQHzDSuDsD2zdV27DCKMV7Qk2Vmw9Doq8hEChwn3mC8NWLT5kPrmNMourneDmPiTNbcXuHnxpfZxyLzywFBFFq" ], "script": "base64:BgJaCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESUwAHdmVyc2lvbgIFMS4wLjAACGtWZXJzaW9uAgd2ZXJzaW9uAAdrQWN0aXZlAgZhY3RpdmUAC2tEZXByZWNhdGVkAgtkZXByZWNhdGVkXwAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQACWtCYWxhbmNlQQIPQV9hc3NldF9iYWxhbmNlAAlrQmFsYW5jZUICD0JfYXNzZXRfYmFsYW5jZQANa0JhbGFuY2VJbml0QQIMQV9hc3NldF9pbml0AA1rQmFsYW5jZUluaXRCAgxCX2Fzc2V0X2luaXQADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3N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gkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAIFE211bHRpU2lnbmVkQnlBZG1pbnP9Jo0n", "height": 2625193, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 734WmNFnizCPuZdhVFvEirqcDUXbQYcReB9sr1ZAPaoh Next: none Diff:
OldNewDifferences
171171
172172 func getAssetInfo (assetId) = match assetId {
173173 case id: String|ByteVector =>
174- let $t040804252 = match id {
174+ let $t040794251 = match id {
175175 case aId: ByteVector =>
176176 $Tuple2(toBase58String(aId), aId)
177177 case aId: String =>
179179 case _ =>
180180 throw("Match error")
181181 }
182- let stringId = $t040804252._1
183- let bytesId = $t040804252._2
182+ let stringId = $t040794251._1
183+ 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 =>
301301
302302
303303 func calcLPAmountReplensishTwoTokens (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,shareAssetSupply) = {
304- let $t095639635 = getAssetInfo(pmtIdA)
305- let pmtStrAssetIdA = $t095639635._1
306- let pmtAssetNameA = $t095639635._2
307- let pmtDecimalsA = $t095639635._3
308- let $t096409712 = getAssetInfo(pmtIdB)
309- let pmtStrAssetIdB = $t096409712._1
310- let pmtAssetNameB = $t096409712._2
311- let pmtDecimalsB = $t096409712._3
304+ let $t095629634 = getAssetInfo(pmtIdA)
305+ let pmtStrAssetIdA = $t095629634._1
306+ let pmtAssetNameA = $t095629634._2
307+ let pmtDecimalsA = $t095629634._3
308+ let $t096399711 = getAssetInfo(pmtIdB)
309+ let pmtStrAssetIdB = $t096399711._1
310+ let pmtAssetNameB = $t096399711._2
311+ let pmtDecimalsB = $t096399711._3
312312 let initial = ((balA + balB) == 0)
313- let $t0975510414 = if (initial)
313+ let $t0975410413 = if (initial)
314314 then $Tuple5(pmtA, pmtB, 0, pmtIdA, toBigInt(1))
315315 else {
316316 let ratioShareTokensInA = fraction(scale16, toBigInt(pmtA), toBigInt(balA))
325325 $Tuple5(pmt, pmtB, (pmtA - pmt), pmtIdA, ratioShareTokensInB)
326326 }
327327 }
328- let pmtAmountA = $t0975510414._1
329- let pmtAmountB = $t0975510414._2
330- let change = $t0975510414._3
331- let changeAssetId = $t0975510414._4
332- let shareTokenRatio = $t0975510414._5
328+ let pmtAmountA = $t0975410413._1
329+ let pmtAmountB = $t0975410413._2
330+ let change = $t0975410413._3
331+ let changeAssetId = $t0975410413._4
332+ let shareTokenRatio = $t0975410413._5
333333 let shareTokenToPayAmount = if (initial)
334334 then {
335335 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
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 $t01127911426 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
347- let amountWithoutFee = $t01127911426._1
348- let amountWithFee = $t01127911426._2
349- let governanceReward = $t01127911426._3
350- let tReward = $t01127911426._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- let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16))
358+ let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16))
359359 let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth)
360360 $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId, loss)
361361 }
362362 else {
363363 let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee)
364- let $t01245212599 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
365- let amountWithoutFee = $t01245212599._1
366- let amountWithFee = $t01245212599._2
367- let governanceReward = $t01245212599._3
368- let tReward = $t01245212599._4
364+ let $t01246912616 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
365+ let amountWithoutFee = $t01246912616._1
366+ let amountWithFee = $t01246912616._2
367+ let governanceReward = $t01246912616._3
368+ let tReward = $t01246912616._4
369369 let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward)
370370 let balanceBVirt = (balB + virtPayAmount)
371371 let newBalanceA = ((balA - governanceReward) - tReward)
373373 let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt))
374374 let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt))
375375 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16))
376- let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16))
376+ let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16))
377377 let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth)
378378 $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId, loss)
379379 }
380380
381381
382382 func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = {
383- let $t01374813896 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
384- let lpTwoAmount = $t01374813896._1
385- let change = $t01374813896._2
386- let changeAssetId = $t01374813896._3
387- let pmtAmountA = $t01374813896._4
388- let pmtAmountB = $t01374813896._5
383+ let $t01378313931 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
384+ let lpTwoAmount = $t01378313931._1
385+ let change = $t01378313931._2
386+ let changeAssetId = $t01378313931._3
387+ let pmtAmountA = $t01378313931._4
388+ let pmtAmountB = $t01378313931._5
389389 if ((change > 0))
390390 then {
391- let $t01392814163 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
392- let lpOne = $t01392814163._1
393- let newBalanceA = $t01392814163._2
394- let newBalanceB = $t01392814163._3
395- let governanceReward = $t01392814163._4
396- let tReward = $t01392814163._5
397- let gId = $t01392814163._6
398- let loss = $t01392814163._7
391+ let $t01396314198 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
392+ let lpOne = $t01396314198._1
393+ let newBalanceA = $t01396314198._2
394+ let newBalanceB = $t01396314198._3
395+ let governanceReward = $t01396314198._4
396+ let tReward = $t01396314198._5
397+ let gId = $t01396314198._6
398+ let loss = $t01396314198._7
399399 $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId)
400400 }
401401 else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit)
404404
405405 @Callable(i)
406406 func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
407- let $t01449914589 = getPoolAssets(i.caller)
408- let strAssetIdA = $t01449914589._1
409- let strAssetIdB = $t01449914589._2
410- let assetIdA = $t01449914589._3
411- let assetIdB = $t01449914589._4
412- let shareAssetId = $t01449914589._5
413- let $t01459414686 = getPoolBalances(i.caller, assetIdA, assetIdB)
414- let balA = $t01459414686._1
415- let balB = $t01459414686._2
416- let accBalA = $t01459414686._3
417- let accBalB = $t01459414686._4
418- let lpSupply = $t01459414686._5
407+ let $t01453414624 = getPoolAssets(i.caller)
408+ let strAssetIdA = $t01453414624._1
409+ let strAssetIdB = $t01453414624._2
410+ let assetIdA = $t01453414624._3
411+ let assetIdB = $t01453414624._4
412+ let shareAssetId = $t01453414624._5
413+ let $t01462914721 = getPoolBalances(i.caller, assetIdA, assetIdB)
414+ let balA = $t01462914721._1
415+ let balB = $t01462914721._2
416+ let accBalA = $t01462914721._3
417+ let accBalB = $t01462914721._4
418+ let lpSupply = $t01462914721._5
419419 let pmtA = parseIntValue(args[0])
420420 let pmtB = parseIntValue(args[1])
421421 let virtGetMinAmount = parseIntValue(args[2])
422- let $t01482014887 = getFeeParams(i.caller, i.originCaller)
423- let fee = $t01482014887._1
424- let govFee = $t01482014887._2
425- let teamFee = $t01482014887._3
426- let $t01489215084 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
427- let lp = $t01489215084._1
428- let loss = $t01489215084._2
429- let newBalanceA = $t01489215084._3
430- let newBalanceB = $t01489215084._4
431- let governanceReward = $t01489215084._5
432- let tReward = $t01489215084._6
433- let aId = $t01489215084._7
422+ let $t01485514922 = getFeeParams(i.caller, i.originCaller)
423+ let fee = $t01485514922._1
424+ let govFee = $t01485514922._2
425+ let teamFee = $t01485514922._3
426+ let $t01492715119 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
427+ let lp = $t01492715119._1
428+ let loss = $t01492715119._2
429+ let newBalanceA = $t01492715119._3
430+ let newBalanceB = $t01492715119._4
431+ let governanceReward = $t01492715119._5
432+ let tReward = $t01492715119._6
433+ let aId = $t01492715119._7
434434 $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId]))
435435 }
436436
438438
439439 @Callable(i)
440440 func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
441- let $t01531115401 = getPoolAssets(i.caller)
442- let strAssetIdA = $t01531115401._1
443- let strAssetIdB = $t01531115401._2
444- let assetIdA = $t01531115401._3
445- let assetIdB = $t01531115401._4
446- let shareAssetId = $t01531115401._5
447- let $t01540615530 = getPoolBalances(i.caller, assetIdA, assetIdB)
448- let balanceA = $t01540615530._1
449- let balanceB = $t01540615530._2
450- let accountBalanceA = $t01540615530._3
451- let accountBalanceB = $t01540615530._4
452- let shareAssetSupply = $t01540615530._5
441+ let $t01534615436 = getPoolAssets(i.caller)
442+ let strAssetIdA = $t01534615436._1
443+ let strAssetIdB = $t01534615436._2
444+ let assetIdA = $t01534615436._3
445+ let assetIdB = $t01534615436._4
446+ let shareAssetId = $t01534615436._5
447+ let $t01544115565 = getPoolBalances(i.caller, assetIdA, assetIdB)
448+ let balanceA = $t01544115565._1
449+ let balanceB = $t01544115565._2
450+ let accountBalanceA = $t01544115565._3
451+ let accountBalanceB = $t01544115565._4
452+ let shareAssetSupply = $t01544115565._5
453453 let withdrawAmount = parseIntValue(args[0])
454- let $t01558415746 = if ((size(args) == 3))
454+ let $t01561915781 = if ((size(args) == 3))
455455 then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2]))
456456 else $Tuple2(balanceA, balanceB)
457- let balA = $t01558415746._1
458- let balB = $t01558415746._2
457+ let balA = $t01561915781._1
458+ let balB = $t01561915781._2
459459 let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply)
460460 let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply)
461461 $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB]))
466466 @Callable(i)
467467 func init (callerBytes,args,pAmounts,pAssetIds) = {
468468 let caller = Address(callerBytes)
469- let $t01610116179 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
470- let pmtAmountA = $t01610116179._1
471- let pmtAssetIdA = $t01610116179._2
472- let $t01618416262 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
473- let pmtAmountB = $t01618416262._1
474- let pmtAssetIdB = $t01618416262._2
469+ let $t01613616214 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
470+ let pmtAmountA = $t01613616214._1
471+ let pmtAssetIdA = $t01613616214._2
472+ let $t01621916297 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
473+ let pmtAmountB = $t01621916297._1
474+ let pmtAssetIdB = $t01621916297._2
475475 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
476476 then throw("Only admin can call this function")
477477 else if ((size(args) != 1))
481481 else if ((pmtAssetIdA == pmtAssetIdB))
482482 then throw("Assets must be different")
483483 else {
484- let $t01669716774 = getAssetInfo(pmtAssetIdA)
485- let pmtStrAssetIdA = $t01669716774._1
486- let pmtAssetNameA = $t01669716774._2
487- let pmtDecimalsA = $t01669716774._3
488- let $t01678316860 = getAssetInfo(pmtAssetIdB)
489- let pmtStrAssetIdB = $t01678316860._1
490- let pmtAssetNameB = $t01678316860._2
491- let pmtDecimalsB = $t01678316860._3
484+ let $t01673216809 = getAssetInfo(pmtAssetIdA)
485+ let pmtStrAssetIdA = $t01673216809._1
486+ let pmtAssetNameA = $t01673216809._2
487+ let pmtDecimalsA = $t01673216809._3
488+ let $t01681816895 = getAssetInfo(pmtAssetIdB)
489+ let pmtStrAssetIdB = $t01681816895._1
490+ let pmtAssetNameB = $t01681816895._2
491+ let pmtDecimalsB = $t01681816895._3
492492 let firstHarvest = (args[0] == "true")
493493 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
494494 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
525525 @Callable(i)
526526 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
527527 let caller = Address(callerBytes)
528- let $t01908119281 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
529- let amtAssetA = $t01908119281._1
530- let amtAssetB = $t01908119281._2
531- let assetIdAStr = $t01908119281._3
532- let assetIdBStr = $t01908119281._4
533- let firstHarvest = $t01908119281._5
528+ let $t01911619316 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
529+ let amtAssetA = $t01911619316._1
530+ let amtAssetB = $t01911619316._2
531+ let assetIdAStr = $t01911619316._3
532+ let assetIdBStr = $t01911619316._4
533+ let firstHarvest = $t01911619316._5
534534 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
535535 then throw("Only admin can call this function")
536536 else if ((size(args) != 5))
540540 else if ((assetIdAStr == assetIdBStr))
541541 then throw("Assets must be different")
542542 else {
543- let $t01971619793 = getAssetInfo(assetIdAStr)
544- let pmtStrAssetIdA = $t01971619793._1
545- let pmtAssetNameA = $t01971619793._2
546- let pmtDecimalsA = $t01971619793._3
547- let $t01980219879 = getAssetInfo(assetIdBStr)
548- let pmtStrAssetIdB = $t01980219879._1
549- let pmtAssetNameB = $t01980219879._2
550- let pmtDecimalsB = $t01980219879._3
543+ let $t01975119828 = getAssetInfo(assetIdAStr)
544+ let pmtStrAssetIdA = $t01975119828._1
545+ let pmtAssetNameA = $t01975119828._2
546+ let pmtDecimalsA = $t01975119828._3
547+ let $t01983719914 = getAssetInfo(assetIdBStr)
548+ let pmtStrAssetIdB = $t01983719914._1
549+ let pmtAssetNameB = $t01983719914._2
550+ let pmtDecimalsB = $t01983719914._3
551551 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
552552 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
553553 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
578578 @Callable(i)
579579 func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
580580 let caller = Address(callerBytes)
581- let $t02230522381 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
582- let pmtAmount = $t02230522381._1
583- let pmtAssetId = $t02230522381._2
581+ let $t02234022416 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
582+ let pmtAmount = $t02234022416._1
583+ let pmtAssetId = $t02234022416._2
584584 let minAmountToReceive = parseIntValue(args[0])
585- let $t02244622522 = getPoolAssets(i.caller)
586- let strAssetIdA = $t02244622522._1
587- let strAssetIdB = $t02244622522._2
588- let assetIdA = $t02244622522._3
589- let assetIdB = $t02244622522._4
590- let $t02253122637 = getPoolBalances(i.caller, assetIdA, assetIdB)
591- let balanceA = $t02253122637._1
592- let balanceB = $t02253122637._2
593- let accountBalanceA = $t02253122637._3
594- let accountBalanceB = $t02253122637._4
585+ let $t02248122557 = getPoolAssets(i.caller)
586+ let strAssetIdA = $t02248122557._1
587+ let strAssetIdB = $t02248122557._2
588+ let assetIdA = $t02248122557._3
589+ let assetIdB = $t02248122557._4
590+ let $t02256622672 = getPoolBalances(i.caller, assetIdA, assetIdB)
591+ let balanceA = $t02256622672._1
592+ let balanceB = $t02256622672._2
593+ let accountBalanceA = $t02256622672._3
594+ let accountBalanceB = $t02256622672._4
595595 if ((size(args) != 1))
596596 then throw("Wrong args size")
597597 else if (if ((balanceA == 0))
609609 else (balanceB > accountBalanceB))
610610 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
611611 else {
612- let $t02353723604 = getFeeParams(i.caller, i.originCaller)
613- let fee = $t02353723604._1
614- let govFee = $t02353723604._2
615- let teamFee = $t02353723604._3
616- let $t02361723968 = if ((pmtAssetId == assetIdA))
612+ let $t02357223639 = getFeeParams(i.caller, i.originCaller)
613+ let fee = $t02357223639._1
614+ let govFee = $t02357223639._2
615+ let teamFee = $t02357223639._3
616+ let $t02365224003 = if ((pmtAssetId == assetIdA))
617617 then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee)
618618 else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee)
619- let amountWithoutFee = $t02361723968._1
620- let amountWithFee = $t02361723968._2
621- let governanceReward = $t02361723968._3
622- let teamReward = $t02361723968._4
623- let $t02398224317 = if ((pmtAssetId == assetIdA))
619+ let amountWithoutFee = $t02365224003._1
620+ let amountWithFee = $t02365224003._2
621+ let governanceReward = $t02365224003._3
622+ let teamReward = $t02365224003._4
623+ let $t02401724352 = if ((pmtAssetId == assetIdA))
624624 then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB)
625625 else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA)
626- let newBalanceA = $t02398224317._1
627- let newBalanceB = $t02398224317._2
628- let assetIdSend = $t02398224317._3
629- let $t02433124591 = if ((pmtAssetId == assetIdA))
626+ let newBalanceA = $t02401724352._1
627+ let newBalanceB = $t02401724352._2
628+ let assetIdSend = $t02401724352._3
629+ let $t02436624626 = if ((pmtAssetId == assetIdA))
630630 then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward))
631631 else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount)
632- let stakeAmountA = $t02433124591._1
633- let stakeAmountB = $t02433124591._2
632+ let stakeAmountA = $t02436624626._1
633+ let stakeAmountB = $t02436624626._2
634634 let stake1 = if (contains(stakingAssets, strAssetIdA))
635635 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
636636 else 0
656656 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
657657 let stakeFarming = (args[0] == "true")
658658 let lockType = parseIntValue(args[1])
659- let $t02590625996 = getPoolAssets(i.caller)
660- let strAssetIdA = $t02590625996._1
661- let strAssetIdB = $t02590625996._2
662- let assetIdA = $t02590625996._3
663- let assetIdB = $t02590625996._4
664- let shareAssetId = $t02590625996._5
665- let $t02600526129 = getPoolBalances(i.caller, assetIdA, assetIdB)
666- let balanceA = $t02600526129._1
667- let balanceB = $t02600526129._2
668- let accountBalanceA = $t02600526129._3
669- let accountBalanceB = $t02600526129._4
670- let shareAssetSupply = $t02600526129._5
659+ let $t02594126031 = getPoolAssets(i.caller)
660+ let strAssetIdA = $t02594126031._1
661+ let strAssetIdB = $t02594126031._2
662+ let assetIdA = $t02594126031._3
663+ let assetIdB = $t02594126031._4
664+ let shareAssetId = $t02594126031._5
665+ let $t02604026164 = getPoolBalances(i.caller, assetIdA, assetIdB)
666+ let balanceA = $t02604026164._1
667+ let balanceB = $t02604026164._2
668+ let accountBalanceA = $t02604026164._3
669+ let accountBalanceB = $t02604026164._4
670+ let shareAssetSupply = $t02604026164._5
671671 if ((size(args) != 2))
672672 then throw("Wrong args size")
673673 else if (if ((size(pAmounts) != 2))
687687 else pAssetIds[2], pAmounts[2])]
688688 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
689689 else {
690- let $t02706627264 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
691- let shareTokenToPayAmount = $t02706627264._1
692- let change = $t02706627264._2
693- let changeAssetId = $t02706627264._3
694- let pmtAmountA = $t02706627264._4
695- let pmtAmountB = $t02706627264._5
690+ let $t02710127299 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
691+ let shareTokenToPayAmount = $t02710127299._1
692+ let change = $t02710127299._2
693+ let changeAssetId = $t02710127299._3
694+ let pmtAmountA = $t02710127299._4
695+ let pmtAmountB = $t02710127299._5
696696 if ((shareTokenToPayAmount == 0))
697697 then throw("Too small amount to replenish")
698698 else if ((0 > change))
745745 let virtGetMinAmount = parseIntValue(args[0])
746746 let stakeFarming = (args[1] == "true")
747747 let lockType = parseIntValue(args[2])
748- let $t02952329613 = getPoolAssets(i.caller)
749- let strAssetIdA = $t02952329613._1
750- let strAssetIdB = $t02952329613._2
751- let assetIdA = $t02952329613._3
752- let assetIdB = $t02952329613._4
753- let shareAssetId = $t02952329613._5
754- let $t02961829742 = getPoolBalances(i.caller, assetIdA, assetIdB)
755- let balanceA = $t02961829742._1
756- let balanceB = $t02961829742._2
757- let accountBalanceA = $t02961829742._3
758- let accountBalanceB = $t02961829742._4
759- let shareAssetSupply = $t02961829742._5
748+ let $t02955829648 = getPoolAssets(i.caller)
749+ let strAssetIdA = $t02955829648._1
750+ let strAssetIdB = $t02955829648._2
751+ let assetIdA = $t02955829648._3
752+ let assetIdB = $t02955829648._4
753+ let shareAssetId = $t02955829648._5
754+ let $t02965329777 = getPoolBalances(i.caller, assetIdA, assetIdB)
755+ let balanceA = $t02965329777._1
756+ let balanceB = $t02965329777._2
757+ let accountBalanceA = $t02965329777._3
758+ let accountBalanceB = $t02965329777._4
759+ let shareAssetSupply = $t02965329777._5
760760 let initial = ((balanceA + balanceB) == 0)
761761 if ((size(args) != 3))
762762 then throw("Wrong args size")
779779 else pAssetIds[2], pAmounts[2])]
780780 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
781781 else {
782- let $t03065430721 = getFeeParams(i.caller, i.originCaller)
783- let fee = $t03065430721._1
784- let govFee = $t03065430721._2
785- let teamFee = $t03065430721._3
786- let $t03073030792 = getAssetInfo(pmtAssetId)
787- let pmtAssetIdStr = $t03073030792._1
788- let pmtAssetIdName = $t03073030792._2
789- let $t03081031056 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
790- let shareTokenToPayAmount = $t03081031056._1
791- let newBalanceA = $t03081031056._2
792- let newBalanceB = $t03081031056._3
793- let govReward = $t03081031056._4
794- let teamReward = $t03081031056._5
795- let govRewardAsset = $t03081031056._6
782+ let $t03068930756 = getFeeParams(i.caller, i.originCaller)
783+ let fee = $t03068930756._1
784+ let govFee = $t03068930756._2
785+ let teamFee = $t03068930756._3
786+ let $t03076530827 = getAssetInfo(pmtAssetId)
787+ let pmtAssetIdStr = $t03076530827._1
788+ let pmtAssetIdName = $t03076530827._2
789+ let $t03084531091 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
790+ let shareTokenToPayAmount = $t03084531091._1
791+ let newBalanceA = $t03084531091._2
792+ let newBalanceB = $t03084531091._3
793+ let govReward = $t03084531091._4
794+ let teamReward = $t03084531091._5
795+ let govRewardAsset = $t03084531091._6
796796 let govRewardAssetStr = if ((govRewardAsset == assetIdA))
797797 then strAssetIdA
798798 else strAssetIdB
841841 @Callable(i)
842842 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
843843 let caller = Address(callerBytes)
844- let $t03312433214 = getPoolAssets(i.caller)
845- let strAssetIdA = $t03312433214._1
846- let strAssetIdB = $t03312433214._2
847- let assetIdA = $t03312433214._3
848- let assetIdB = $t03312433214._4
849- let shareAssetId = $t03312433214._5
850- let $t03322333347 = getPoolBalances(i.caller, assetIdA, assetIdB)
851- let balanceA = $t03322333347._1
852- let balanceB = $t03322333347._2
853- let accountBalanceA = $t03322333347._3
854- let accountBalanceB = $t03322333347._4
855- let shareAssetSupply = $t03322333347._5
856- let $t03335633736 = if ((size(pAmounts) == 1))
844+ let $t03315933249 = getPoolAssets(i.caller)
845+ let strAssetIdA = $t03315933249._1
846+ let strAssetIdB = $t03315933249._2
847+ let assetIdA = $t03315933249._3
848+ let assetIdB = $t03315933249._4
849+ let shareAssetId = $t03315933249._5
850+ let $t03325833382 = getPoolBalances(i.caller, assetIdA, assetIdB)
851+ let balanceA = $t03325833382._1
852+ let balanceB = $t03325833382._2
853+ let accountBalanceA = $t03325833382._3
854+ let accountBalanceB = $t03325833382._4
855+ let shareAssetSupply = $t03325833382._5
856+ let $t03339133771 = if ((size(pAmounts) == 1))
857857 then {
858858 let pAsset = parsePaymentAsset(pAssetIds[0])
859859 if ((pAsset != shareAssetId))
861861 else $Tuple2(pAmounts[0], pAsset)
862862 }
863863 else $Tuple2(0, shareAssetId)
864- let pmtAmount = $t03335633736._1
865- let pmtAssetId = $t03335633736._2
864+ let pmtAmount = $t03339133771._1
865+ let pmtAssetId = $t03339133771._2
866866 if ((size(args) != 1))
867867 then throw("Wrong args size")
868868 else if ((size(pAmounts) > 1))
907907 let withdrawAsset = if ((args[0] == ""))
908908 then unit
909909 else fromBase58String(args[0])
910- let $t03595436044 = getPoolAssets(i.caller)
911- let strAssetIdA = $t03595436044._1
912- let strAssetIdB = $t03595436044._2
913- let assetIdA = $t03595436044._3
914- let assetIdB = $t03595436044._4
915- let shareAssetId = $t03595436044._5
916- let $t03605336177 = getPoolBalances(i.caller, assetIdA, assetIdB)
917- let balanceA = $t03605336177._1
918- let balanceB = $t03605336177._2
919- let accountBalanceA = $t03605336177._3
920- let accountBalanceB = $t03605336177._4
921- let shareAssetSupply = $t03605336177._5
922- let $t03618636538 = if ((size(pAmounts) == 1))
910+ let $t03598936079 = getPoolAssets(i.caller)
911+ let strAssetIdA = $t03598936079._1
912+ let strAssetIdB = $t03598936079._2
913+ let assetIdA = $t03598936079._3
914+ let assetIdB = $t03598936079._4
915+ let shareAssetId = $t03598936079._5
916+ let $t03608836212 = getPoolBalances(i.caller, assetIdA, assetIdB)
917+ let balanceA = $t03608836212._1
918+ let balanceB = $t03608836212._2
919+ let accountBalanceA = $t03608836212._3
920+ let accountBalanceB = $t03608836212._4
921+ let shareAssetSupply = $t03608836212._5
922+ let $t03622136573 = if ((size(pAmounts) == 1))
923923 then {
924924 let pAsset = parsePaymentAsset(pAssetIds[0])
925925 if ((pAsset != shareAssetId))
927927 else $Tuple2(pAmounts[0], pAsset)
928928 }
929929 else $Tuple2(0, shareAssetId)
930- let pmtAmount = $t03618636538._1
931- let pmtAssetId = $t03618636538._2
930+ let pmtAmount = $t03622136573._1
931+ let pmtAssetId = $t03622136573._2
932932 let virtMinToRecive = parseIntValue(args[1])
933933 if ((size(args) != 3))
934934 then throw("Wrong args size")
952952 let withdrawAmount = (pmtAmount + unlockAmount)
953953 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
954954 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
955- let $t03780537872 = getFeeParams(i.caller, i.originCaller)
956- let fee = $t03780537872._1
957- let govFee = $t03780537872._2
958- let teamFee = $t03780537872._3
959- let $t03788538299 = if ((withdrawAsset == assetIdA))
955+ let $t03784037907 = getFeeParams(i.caller, i.originCaller)
956+ let fee = $t03784037907._1
957+ let govFee = $t03784037907._2
958+ let teamFee = $t03784037907._3
959+ let $t03792038334 = if ((withdrawAsset == assetIdA))
960960 then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee)
961961 else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee)
962- let amountWithoutFee = $t03788538299._1
963- let amountWithFee = $t03788538299._2
964- let governanceReward = $t03788538299._3
965- let teamReward = $t03788538299._4
966- let $t03831239622 = if ((withdrawAsset == assetIdA))
962+ let amountWithoutFee = $t03792038334._1
963+ let amountWithFee = $t03792038334._2
964+ let governanceReward = $t03792038334._3
965+ let teamReward = $t03792038334._4
966+ let $t03834739657 = if ((withdrawAsset == assetIdA))
967967 then {
968968 let unstake = if (contains(stakingAssets, strAssetIdA))
969969 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil)
980980 then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
981981 else throw("Strict value is not equal to itself.")
982982 }
983- let newBalanceA = $t03831239622._1
984- let newBalanceB = $t03831239622._2
985- let govRewardAssetId = $t03831239622._3
986- let userTransfer = $t03831239622._4
983+ let newBalanceA = $t03834739657._1
984+ let newBalanceB = $t03834739657._2
985+ let govRewardAssetId = $t03834739657._3
986+ let userTransfer = $t03834739657._4
987987 $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))
988988 }
989989 else throw("Strict value is not equal to itself.")
994994
995995 @Callable(i)
996996 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
997- let $t04038240458 = getPoolAssets(i.caller)
998- let strAssetIdA = $t04038240458._1
999- let strAssetIdB = $t04038240458._2
1000- let assetIdA = $t04038240458._3
1001- let assetIdB = $t04038240458._4
997+ let $t04041740493 = getPoolAssets(i.caller)
998+ let strAssetIdA = $t04041740493._1
999+ let strAssetIdB = $t04041740493._2
1000+ let assetIdA = $t04041740493._3
1001+ let assetIdB = $t04041740493._4
10021002 let claim = if (if ((assetIdA == USDN))
10031003 then true
10041004 else (assetIdB == USDN))
10061006 else 0
10071007 if ((claim == claim))
10081008 then {
1009- let $t04061840724 = getPoolBalances(i.caller, assetIdA, assetIdB)
1010- let balanceA = $t04061840724._1
1011- let balanceB = $t04061840724._2
1012- let accountBalanceA = $t04061840724._3
1013- let accountBalanceB = $t04061840724._4
1009+ let $t04065340759 = getPoolBalances(i.caller, assetIdA, assetIdB)
1010+ let balanceA = $t04065340759._1
1011+ let balanceB = $t04065340759._2
1012+ let accountBalanceA = $t04065340759._3
1013+ let accountBalanceB = $t04065340759._4
10141014 let amountEnrollA = (accountBalanceA - balanceA)
10151015 let amountEnrollB = (accountBalanceB - balanceB)
10161016 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
8686 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
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 =>
174- let $t040804252 = match id {
174+ 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 }
182- let stringId = $t040804252._1
183- let bytesId = $t040804252._2
182+ let stringId = $t040794251._1
183+ 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) = {
304- let $t095639635 = getAssetInfo(pmtIdA)
305- let pmtStrAssetIdA = $t095639635._1
306- let pmtAssetNameA = $t095639635._2
307- let pmtDecimalsA = $t095639635._3
308- let $t096409712 = getAssetInfo(pmtIdB)
309- let pmtStrAssetIdB = $t096409712._1
310- let pmtAssetNameB = $t096409712._2
311- let pmtDecimalsB = $t096409712._3
304+ let $t095629634 = getAssetInfo(pmtIdA)
305+ let pmtStrAssetIdA = $t095629634._1
306+ let pmtAssetNameA = $t095629634._2
307+ let pmtDecimalsA = $t095629634._3
308+ let $t096399711 = getAssetInfo(pmtIdB)
309+ let pmtStrAssetIdB = $t096399711._1
310+ let pmtAssetNameB = $t096399711._2
311+ let pmtDecimalsB = $t096399711._3
312312 let initial = ((balA + balB) == 0)
313- let $t0975510414 = if (initial)
313+ 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 }
328- let pmtAmountA = $t0975510414._1
329- let pmtAmountB = $t0975510414._2
330- let change = $t0975510414._3
331- let changeAssetId = $t0975510414._4
332- let shareTokenRatio = $t0975510414._5
328+ let pmtAmountA = $t0975410413._1
329+ let pmtAmountB = $t0975410413._2
330+ let change = $t0975410413._3
331+ let changeAssetId = $t0975410413._4
332+ 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 $t01127911426 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
347- let amountWithoutFee = $t01127911426._1
348- let amountWithFee = $t01127911426._2
349- let governanceReward = $t01127911426._3
350- let tReward = $t01127911426._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- let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16))
358+ let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16))
359359 let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth)
360360 $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId, loss)
361361 }
362362 else {
363363 let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee)
364- let $t01245212599 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
365- let amountWithoutFee = $t01245212599._1
366- let amountWithFee = $t01245212599._2
367- let governanceReward = $t01245212599._3
368- let tReward = $t01245212599._4
364+ let $t01246912616 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
365+ let amountWithoutFee = $t01246912616._1
366+ let amountWithFee = $t01246912616._2
367+ let governanceReward = $t01246912616._3
368+ let tReward = $t01246912616._4
369369 let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward)
370370 let balanceBVirt = (balB + virtPayAmount)
371371 let newBalanceA = ((balA - governanceReward) - tReward)
372372 let newBalanceB = (balB + pmtAmount)
373373 let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt))
374374 let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt))
375375 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16))
376- let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt(pmtAmount), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16))
376+ let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16))
377377 let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth)
378378 $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId, loss)
379379 }
380380
381381
382382 func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = {
383- let $t01374813896 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
384- let lpTwoAmount = $t01374813896._1
385- let change = $t01374813896._2
386- let changeAssetId = $t01374813896._3
387- let pmtAmountA = $t01374813896._4
388- let pmtAmountB = $t01374813896._5
383+ let $t01378313931 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
384+ let lpTwoAmount = $t01378313931._1
385+ let change = $t01378313931._2
386+ let changeAssetId = $t01378313931._3
387+ let pmtAmountA = $t01378313931._4
388+ let pmtAmountB = $t01378313931._5
389389 if ((change > 0))
390390 then {
391- let $t01392814163 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
392- let lpOne = $t01392814163._1
393- let newBalanceA = $t01392814163._2
394- let newBalanceB = $t01392814163._3
395- let governanceReward = $t01392814163._4
396- let tReward = $t01392814163._5
397- let gId = $t01392814163._6
398- let loss = $t01392814163._7
391+ let $t01396314198 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
392+ let lpOne = $t01396314198._1
393+ let newBalanceA = $t01396314198._2
394+ let newBalanceB = $t01396314198._3
395+ let governanceReward = $t01396314198._4
396+ let tReward = $t01396314198._5
397+ let gId = $t01396314198._6
398+ let loss = $t01396314198._7
399399 $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId)
400400 }
401401 else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit)
402402 }
403403
404404
405405 @Callable(i)
406406 func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
407- let $t01449914589 = getPoolAssets(i.caller)
408- let strAssetIdA = $t01449914589._1
409- let strAssetIdB = $t01449914589._2
410- let assetIdA = $t01449914589._3
411- let assetIdB = $t01449914589._4
412- let shareAssetId = $t01449914589._5
413- let $t01459414686 = getPoolBalances(i.caller, assetIdA, assetIdB)
414- let balA = $t01459414686._1
415- let balB = $t01459414686._2
416- let accBalA = $t01459414686._3
417- let accBalB = $t01459414686._4
418- let lpSupply = $t01459414686._5
407+ let $t01453414624 = getPoolAssets(i.caller)
408+ let strAssetIdA = $t01453414624._1
409+ let strAssetIdB = $t01453414624._2
410+ let assetIdA = $t01453414624._3
411+ let assetIdB = $t01453414624._4
412+ let shareAssetId = $t01453414624._5
413+ let $t01462914721 = getPoolBalances(i.caller, assetIdA, assetIdB)
414+ let balA = $t01462914721._1
415+ let balB = $t01462914721._2
416+ let accBalA = $t01462914721._3
417+ let accBalB = $t01462914721._4
418+ let lpSupply = $t01462914721._5
419419 let pmtA = parseIntValue(args[0])
420420 let pmtB = parseIntValue(args[1])
421421 let virtGetMinAmount = parseIntValue(args[2])
422- let $t01482014887 = getFeeParams(i.caller, i.originCaller)
423- let fee = $t01482014887._1
424- let govFee = $t01482014887._2
425- let teamFee = $t01482014887._3
426- let $t01489215084 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
427- let lp = $t01489215084._1
428- let loss = $t01489215084._2
429- let newBalanceA = $t01489215084._3
430- let newBalanceB = $t01489215084._4
431- let governanceReward = $t01489215084._5
432- let tReward = $t01489215084._6
433- let aId = $t01489215084._7
422+ let $t01485514922 = getFeeParams(i.caller, i.originCaller)
423+ let fee = $t01485514922._1
424+ let govFee = $t01485514922._2
425+ let teamFee = $t01485514922._3
426+ let $t01492715119 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
427+ let lp = $t01492715119._1
428+ let loss = $t01492715119._2
429+ let newBalanceA = $t01492715119._3
430+ let newBalanceB = $t01492715119._4
431+ let governanceReward = $t01492715119._5
432+ let tReward = $t01492715119._6
433+ let aId = $t01492715119._7
434434 $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId]))
435435 }
436436
437437
438438
439439 @Callable(i)
440440 func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
441- let $t01531115401 = getPoolAssets(i.caller)
442- let strAssetIdA = $t01531115401._1
443- let strAssetIdB = $t01531115401._2
444- let assetIdA = $t01531115401._3
445- let assetIdB = $t01531115401._4
446- let shareAssetId = $t01531115401._5
447- let $t01540615530 = getPoolBalances(i.caller, assetIdA, assetIdB)
448- let balanceA = $t01540615530._1
449- let balanceB = $t01540615530._2
450- let accountBalanceA = $t01540615530._3
451- let accountBalanceB = $t01540615530._4
452- let shareAssetSupply = $t01540615530._5
441+ let $t01534615436 = getPoolAssets(i.caller)
442+ let strAssetIdA = $t01534615436._1
443+ let strAssetIdB = $t01534615436._2
444+ let assetIdA = $t01534615436._3
445+ let assetIdB = $t01534615436._4
446+ let shareAssetId = $t01534615436._5
447+ let $t01544115565 = getPoolBalances(i.caller, assetIdA, assetIdB)
448+ let balanceA = $t01544115565._1
449+ let balanceB = $t01544115565._2
450+ let accountBalanceA = $t01544115565._3
451+ let accountBalanceB = $t01544115565._4
452+ let shareAssetSupply = $t01544115565._5
453453 let withdrawAmount = parseIntValue(args[0])
454- let $t01558415746 = if ((size(args) == 3))
454+ let $t01561915781 = if ((size(args) == 3))
455455 then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2]))
456456 else $Tuple2(balanceA, balanceB)
457- let balA = $t01558415746._1
458- let balB = $t01558415746._2
457+ let balA = $t01561915781._1
458+ let balB = $t01561915781._2
459459 let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply)
460460 let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply)
461461 $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB]))
462462 }
463463
464464
465465
466466 @Callable(i)
467467 func init (callerBytes,args,pAmounts,pAssetIds) = {
468468 let caller = Address(callerBytes)
469- let $t01610116179 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
470- let pmtAmountA = $t01610116179._1
471- let pmtAssetIdA = $t01610116179._2
472- let $t01618416262 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
473- let pmtAmountB = $t01618416262._1
474- let pmtAssetIdB = $t01618416262._2
469+ let $t01613616214 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
470+ let pmtAmountA = $t01613616214._1
471+ let pmtAssetIdA = $t01613616214._2
472+ let $t01621916297 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
473+ let pmtAmountB = $t01621916297._1
474+ let pmtAssetIdB = $t01621916297._2
475475 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
476476 then throw("Only admin can call this function")
477477 else if ((size(args) != 1))
478478 then throw("Wrong args size")
479479 else if (isDefined(getBoolean(caller, kActive)))
480480 then throw("DApp is already active")
481481 else if ((pmtAssetIdA == pmtAssetIdB))
482482 then throw("Assets must be different")
483483 else {
484- let $t01669716774 = getAssetInfo(pmtAssetIdA)
485- let pmtStrAssetIdA = $t01669716774._1
486- let pmtAssetNameA = $t01669716774._2
487- let pmtDecimalsA = $t01669716774._3
488- let $t01678316860 = getAssetInfo(pmtAssetIdB)
489- let pmtStrAssetIdB = $t01678316860._1
490- let pmtAssetNameB = $t01678316860._2
491- let pmtDecimalsB = $t01678316860._3
484+ let $t01673216809 = getAssetInfo(pmtAssetIdA)
485+ let pmtStrAssetIdA = $t01673216809._1
486+ let pmtAssetNameA = $t01673216809._2
487+ let pmtDecimalsA = $t01673216809._3
488+ let $t01681816895 = getAssetInfo(pmtAssetIdB)
489+ let pmtStrAssetIdB = $t01681816895._1
490+ let pmtAssetNameB = $t01681816895._2
491+ let pmtDecimalsB = $t01681816895._3
492492 let firstHarvest = (args[0] == "true")
493493 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
494494 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
495495 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
496496 let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN)
497497 let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN)
498498 let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN)
499499 let shareInitialSupply = fraction(arg1, arg2, arg3)
500500 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
501501 let shareIssueId = calculateAssetId(shareIssue)
502502 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
503503 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
504504 else 0
505505 if ((stake1 == stake1))
506506 then {
507507 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
508508 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
509509 else 0
510510 if ((stake2 == stake2))
511511 then {
512512 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)]
513513 if (firstHarvest)
514514 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
515515 else $Tuple2(nil, $Tuple2(baseEntry, nil))
516516 }
517517 else throw("Strict value is not equal to itself.")
518518 }
519519 else throw("Strict value is not equal to itself.")
520520 }
521521 }
522522
523523
524524
525525 @Callable(i)
526526 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
527527 let caller = Address(callerBytes)
528- let $t01908119281 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
529- let amtAssetA = $t01908119281._1
530- let amtAssetB = $t01908119281._2
531- let assetIdAStr = $t01908119281._3
532- let assetIdBStr = $t01908119281._4
533- let firstHarvest = $t01908119281._5
528+ let $t01911619316 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
529+ let amtAssetA = $t01911619316._1
530+ let amtAssetB = $t01911619316._2
531+ let assetIdAStr = $t01911619316._3
532+ let assetIdBStr = $t01911619316._4
533+ let firstHarvest = $t01911619316._5
534534 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
535535 then throw("Only admin can call this function")
536536 else if ((size(args) != 5))
537537 then throw("Wrong args size")
538538 else if (isDefined(getBoolean(caller, kActive)))
539539 then throw("DApp is already active")
540540 else if ((assetIdAStr == assetIdBStr))
541541 then throw("Assets must be different")
542542 else {
543- let $t01971619793 = getAssetInfo(assetIdAStr)
544- let pmtStrAssetIdA = $t01971619793._1
545- let pmtAssetNameA = $t01971619793._2
546- let pmtDecimalsA = $t01971619793._3
547- let $t01980219879 = getAssetInfo(assetIdBStr)
548- let pmtStrAssetIdB = $t01980219879._1
549- let pmtAssetNameB = $t01980219879._2
550- let pmtDecimalsB = $t01980219879._3
543+ let $t01975119828 = getAssetInfo(assetIdAStr)
544+ let pmtStrAssetIdA = $t01975119828._1
545+ let pmtAssetNameA = $t01975119828._2
546+ let pmtDecimalsA = $t01975119828._3
547+ let $t01983719914 = getAssetInfo(assetIdBStr)
548+ let pmtStrAssetIdB = $t01983719914._1
549+ let pmtAssetNameB = $t01983719914._2
550+ let pmtDecimalsB = $t01983719914._3
551551 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
552552 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
553553 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
554554 let shareInitialSupply = 0
555555 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
556556 let shareIssueId = calculateAssetId(shareIssue)
557557 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)]
558558 if (firstHarvest)
559559 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
560560 else $Tuple2(nil, $Tuple2(baseEntry, nil))
561561 }
562562 }
563563
564564
565565
566566 @Callable(i)
567567 func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
568568 then throw("Only admin can call this function")
569569 else if ((size(args) != 1))
570570 then throw("Wrong args size")
571571 else {
572572 let shareLimit = parseIntValue(args[0])
573573 $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil))
574574 }))
575575
576576
577577
578578 @Callable(i)
579579 func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
580580 let caller = Address(callerBytes)
581- let $t02230522381 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
582- let pmtAmount = $t02230522381._1
583- let pmtAssetId = $t02230522381._2
581+ let $t02234022416 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
582+ let pmtAmount = $t02234022416._1
583+ let pmtAssetId = $t02234022416._2
584584 let minAmountToReceive = parseIntValue(args[0])
585- let $t02244622522 = getPoolAssets(i.caller)
586- let strAssetIdA = $t02244622522._1
587- let strAssetIdB = $t02244622522._2
588- let assetIdA = $t02244622522._3
589- let assetIdB = $t02244622522._4
590- let $t02253122637 = getPoolBalances(i.caller, assetIdA, assetIdB)
591- let balanceA = $t02253122637._1
592- let balanceB = $t02253122637._2
593- let accountBalanceA = $t02253122637._3
594- let accountBalanceB = $t02253122637._4
585+ let $t02248122557 = getPoolAssets(i.caller)
586+ let strAssetIdA = $t02248122557._1
587+ let strAssetIdB = $t02248122557._2
588+ let assetIdA = $t02248122557._3
589+ let assetIdB = $t02248122557._4
590+ let $t02256622672 = getPoolBalances(i.caller, assetIdA, assetIdB)
591+ let balanceA = $t02256622672._1
592+ let balanceB = $t02256622672._2
593+ let accountBalanceA = $t02256622672._3
594+ let accountBalanceB = $t02256622672._4
595595 if ((size(args) != 1))
596596 then throw("Wrong args size")
597597 else if (if ((balanceA == 0))
598598 then true
599599 else (balanceB == 0))
600600 then throw("Can't exchange with zero balance")
601601 else if ((0 >= minAmountToReceive))
602602 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
603603 else if ((size(pAmounts) != 1))
604604 then throw("One attached payment expected")
605605 else if (!(containsElement([assetIdA, assetIdB], pmtAssetId)))
606606 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
607607 else if (if ((balanceA > accountBalanceA))
608608 then true
609609 else (balanceB > accountBalanceB))
610610 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
611611 else {
612- let $t02353723604 = getFeeParams(i.caller, i.originCaller)
613- let fee = $t02353723604._1
614- let govFee = $t02353723604._2
615- let teamFee = $t02353723604._3
616- let $t02361723968 = if ((pmtAssetId == assetIdA))
612+ let $t02357223639 = getFeeParams(i.caller, i.originCaller)
613+ let fee = $t02357223639._1
614+ let govFee = $t02357223639._2
615+ let teamFee = $t02357223639._3
616+ let $t02365224003 = if ((pmtAssetId == assetIdA))
617617 then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee)
618618 else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee)
619- let amountWithoutFee = $t02361723968._1
620- let amountWithFee = $t02361723968._2
621- let governanceReward = $t02361723968._3
622- let teamReward = $t02361723968._4
623- let $t02398224317 = if ((pmtAssetId == assetIdA))
619+ let amountWithoutFee = $t02365224003._1
620+ let amountWithFee = $t02365224003._2
621+ let governanceReward = $t02365224003._3
622+ let teamReward = $t02365224003._4
623+ let $t02401724352 = if ((pmtAssetId == assetIdA))
624624 then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB)
625625 else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA)
626- let newBalanceA = $t02398224317._1
627- let newBalanceB = $t02398224317._2
628- let assetIdSend = $t02398224317._3
629- let $t02433124591 = if ((pmtAssetId == assetIdA))
626+ let newBalanceA = $t02401724352._1
627+ let newBalanceB = $t02401724352._2
628+ let assetIdSend = $t02401724352._3
629+ let $t02436624626 = if ((pmtAssetId == assetIdA))
630630 then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward))
631631 else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount)
632- let stakeAmountA = $t02433124591._1
633- let stakeAmountB = $t02433124591._2
632+ let stakeAmountA = $t02436624626._1
633+ let stakeAmountB = $t02436624626._2
634634 let stake1 = if (contains(stakingAssets, strAssetIdA))
635635 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
636636 else 0
637637 if ((stake1 == stake1))
638638 then {
639639 let stake2 = if (contains(stakingAssets, strAssetIdB))
640640 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil)
641641 else 0
642642 if ((stake2 == stake2))
643643 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend), ScriptTransfer(teamBoxAddress, teamReward, assetIdSend)], [amountWithFee, assetIdSend]))
644644 else throw("Strict value is not equal to itself.")
645645 }
646646 else throw("Strict value is not equal to itself.")
647647 }
648648 })))
649649
650650
651651
652652 @Callable(i)
653653 func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
654654 let caller = Address(callerBytes)
655655 let pmtAssetIdA = parsePaymentAsset(pAssetIds[0])
656656 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
657657 let stakeFarming = (args[0] == "true")
658658 let lockType = parseIntValue(args[1])
659- let $t02590625996 = getPoolAssets(i.caller)
660- let strAssetIdA = $t02590625996._1
661- let strAssetIdB = $t02590625996._2
662- let assetIdA = $t02590625996._3
663- let assetIdB = $t02590625996._4
664- let shareAssetId = $t02590625996._5
665- let $t02600526129 = getPoolBalances(i.caller, assetIdA, assetIdB)
666- let balanceA = $t02600526129._1
667- let balanceB = $t02600526129._2
668- let accountBalanceA = $t02600526129._3
669- let accountBalanceB = $t02600526129._4
670- let shareAssetSupply = $t02600526129._5
659+ let $t02594126031 = getPoolAssets(i.caller)
660+ let strAssetIdA = $t02594126031._1
661+ let strAssetIdB = $t02594126031._2
662+ let assetIdA = $t02594126031._3
663+ let assetIdB = $t02594126031._4
664+ let shareAssetId = $t02594126031._5
665+ let $t02604026164 = getPoolBalances(i.caller, assetIdA, assetIdB)
666+ let balanceA = $t02604026164._1
667+ let balanceB = $t02604026164._2
668+ let accountBalanceA = $t02604026164._3
669+ let accountBalanceB = $t02604026164._4
670+ let shareAssetSupply = $t02604026164._5
671671 if ((size(args) != 2))
672672 then throw("Wrong args size")
673673 else if (if ((size(pAmounts) != 2))
674674 then (size(pAmounts) != 3)
675675 else false)
676676 then throw("Two or three payments expected")
677677 else if (if ((pmtAssetIdA != assetIdA))
678678 then true
679679 else (pmtAssetIdB != assetIdB))
680680 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
681681 else if (if ((balanceA > accountBalanceA))
682682 then true
683683 else (balanceB > accountBalanceB))
684684 then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3))
685685 then [AttachedPayment(if ((pAssetIds[2] == base58''))
686686 then unit
687687 else pAssetIds[2], pAmounts[2])]
688688 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
689689 else {
690- let $t02706627264 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
691- let shareTokenToPayAmount = $t02706627264._1
692- let change = $t02706627264._2
693- let changeAssetId = $t02706627264._3
694- let pmtAmountA = $t02706627264._4
695- let pmtAmountB = $t02706627264._5
690+ let $t02710127299 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
691+ let shareTokenToPayAmount = $t02710127299._1
692+ let change = $t02710127299._2
693+ let changeAssetId = $t02710127299._3
694+ let pmtAmountA = $t02710127299._4
695+ let pmtAmountB = $t02710127299._5
696696 if ((shareTokenToPayAmount == 0))
697697 then throw("Too small amount to replenish")
698698 else if ((0 > change))
699699 then throw("Change < 0")
700700 else {
701701 let stake1 = if (contains(stakingAssets, strAssetIdA))
702702 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, strAssetIdA], nil)
703703 else 0
704704 if ((stake1 == stake1))
705705 then {
706706 let stake2 = if (contains(stakingAssets, strAssetIdB))
707707 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, strAssetIdB], nil)
708708 else 0
709709 if ((stake2 == stake2))
710710 then {
711711 let shareTokenST = if (stakeFarming)
712712 then {
713713 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3))
714714 then [AttachedPayment(if ((pAssetIds[2] == base58''))
715715 then unit
716716 else pAssetIds[2], pAmounts[2])]
717717 else nil))
718718 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
719719 if ((reissue == reissue))
720720 then {
721721 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
722722 if ((stake3 == stake3))
723723 then nil
724724 else throw("Strict value is not equal to itself.")
725725 }
726726 else throw("Strict value is not equal to itself.")
727727 }
728728 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
729729 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil))
730730 }
731731 else throw("Strict value is not equal to itself.")
732732 }
733733 else throw("Strict value is not equal to itself.")
734734 }
735735 }
736736 })))
737737
738738
739739
740740 @Callable(i)
741741 func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
742742 let caller = Address(callerBytes)
743743 let pmtAssetId = parsePaymentAsset(pAssetIds[0])
744744 let pmtAmount = pAmounts[0]
745745 let virtGetMinAmount = parseIntValue(args[0])
746746 let stakeFarming = (args[1] == "true")
747747 let lockType = parseIntValue(args[2])
748- let $t02952329613 = getPoolAssets(i.caller)
749- let strAssetIdA = $t02952329613._1
750- let strAssetIdB = $t02952329613._2
751- let assetIdA = $t02952329613._3
752- let assetIdB = $t02952329613._4
753- let shareAssetId = $t02952329613._5
754- let $t02961829742 = getPoolBalances(i.caller, assetIdA, assetIdB)
755- let balanceA = $t02961829742._1
756- let balanceB = $t02961829742._2
757- let accountBalanceA = $t02961829742._3
758- let accountBalanceB = $t02961829742._4
759- let shareAssetSupply = $t02961829742._5
748+ let $t02955829648 = getPoolAssets(i.caller)
749+ let strAssetIdA = $t02955829648._1
750+ let strAssetIdB = $t02955829648._2
751+ let assetIdA = $t02955829648._3
752+ let assetIdB = $t02955829648._4
753+ let shareAssetId = $t02955829648._5
754+ let $t02965329777 = getPoolBalances(i.caller, assetIdA, assetIdB)
755+ let balanceA = $t02965329777._1
756+ let balanceB = $t02965329777._2
757+ let accountBalanceA = $t02965329777._3
758+ let accountBalanceB = $t02965329777._4
759+ let shareAssetSupply = $t02965329777._5
760760 let initial = ((balanceA + balanceB) == 0)
761761 if ((size(args) != 3))
762762 then throw("Wrong args size")
763763 else if (if ((size(pAmounts) != 1))
764764 then (size(pAmounts) != 2)
765765 else false)
766766 then throw("Two or one attached assets expected")
767767 else if (if ((pmtAssetId != assetIdA))
768768 then (pmtAssetId != assetIdB)
769769 else false)
770770 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
771771 else if (initial)
772772 then throw("For initial exchanger you need to use two tokens")
773773 else if (if ((balanceA > accountBalanceA))
774774 then true
775775 else (balanceB > accountBalanceB))
776776 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2))
777777 then [AttachedPayment(if ((pAssetIds[2] == base58''))
778778 then unit
779779 else pAssetIds[2], pAmounts[2])]
780780 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
781781 else {
782- let $t03065430721 = getFeeParams(i.caller, i.originCaller)
783- let fee = $t03065430721._1
784- let govFee = $t03065430721._2
785- let teamFee = $t03065430721._3
786- let $t03073030792 = getAssetInfo(pmtAssetId)
787- let pmtAssetIdStr = $t03073030792._1
788- let pmtAssetIdName = $t03073030792._2
789- let $t03081031056 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
790- let shareTokenToPayAmount = $t03081031056._1
791- let newBalanceA = $t03081031056._2
792- let newBalanceB = $t03081031056._3
793- let govReward = $t03081031056._4
794- let teamReward = $t03081031056._5
795- let govRewardAsset = $t03081031056._6
782+ let $t03068930756 = getFeeParams(i.caller, i.originCaller)
783+ let fee = $t03068930756._1
784+ let govFee = $t03068930756._2
785+ let teamFee = $t03068930756._3
786+ let $t03076530827 = getAssetInfo(pmtAssetId)
787+ let pmtAssetIdStr = $t03076530827._1
788+ let pmtAssetIdName = $t03076530827._2
789+ let $t03084531091 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
790+ let shareTokenToPayAmount = $t03084531091._1
791+ let newBalanceA = $t03084531091._2
792+ let newBalanceB = $t03084531091._3
793+ let govReward = $t03084531091._4
794+ let teamReward = $t03084531091._5
795+ let govRewardAsset = $t03084531091._6
796796 let govRewardAssetStr = if ((govRewardAsset == assetIdA))
797797 then strAssetIdA
798798 else strAssetIdB
799799 if ((shareTokenToPayAmount == 0))
800800 then throw("Too small amount to replenish")
801801 else {
802802 let stake1 = if (contains(stakingAssets, pmtAssetIdStr))
803803 then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil)
804804 else 0
805805 if ((stake1 == stake1))
806806 then {
807807 let stake2 = if (contains(stakingAssets, govRewardAssetStr))
808808 then invoke(i.caller, "stakeUnstake", [false, (govReward + teamReward), govRewardAssetStr], nil)
809809 else 0
810810 if ((stake2 == stake2))
811811 then {
812812 let shareTokenST = if (stakeFarming)
813813 then {
814814 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2))
815815 then [AttachedPayment(if ((pAssetIds[1] == base58''))
816816 then unit
817817 else pAssetIds[1], pAmounts[1])]
818818 else nil))
819819 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
820820 if ((reissue == reissue))
821821 then {
822822 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
823823 if ((stake3 == stake3))
824824 then nil
825825 else throw("Strict value is not equal to itself.")
826826 }
827827 else throw("Strict value is not equal to itself.")
828828 }
829829 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
830830 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset), ScriptTransfer(teamBoxAddress, teamReward, govRewardAsset)] ++ shareTokenST), nil))
831831 }
832832 else throw("Strict value is not equal to itself.")
833833 }
834834 else throw("Strict value is not equal to itself.")
835835 }
836836 }
837837 })))
838838
839839
840840
841841 @Callable(i)
842842 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
843843 let caller = Address(callerBytes)
844- let $t03312433214 = getPoolAssets(i.caller)
845- let strAssetIdA = $t03312433214._1
846- let strAssetIdB = $t03312433214._2
847- let assetIdA = $t03312433214._3
848- let assetIdB = $t03312433214._4
849- let shareAssetId = $t03312433214._5
850- let $t03322333347 = getPoolBalances(i.caller, assetIdA, assetIdB)
851- let balanceA = $t03322333347._1
852- let balanceB = $t03322333347._2
853- let accountBalanceA = $t03322333347._3
854- let accountBalanceB = $t03322333347._4
855- let shareAssetSupply = $t03322333347._5
856- let $t03335633736 = if ((size(pAmounts) == 1))
844+ let $t03315933249 = getPoolAssets(i.caller)
845+ let strAssetIdA = $t03315933249._1
846+ let strAssetIdB = $t03315933249._2
847+ let assetIdA = $t03315933249._3
848+ let assetIdB = $t03315933249._4
849+ let shareAssetId = $t03315933249._5
850+ let $t03325833382 = getPoolBalances(i.caller, assetIdA, assetIdB)
851+ let balanceA = $t03325833382._1
852+ let balanceB = $t03325833382._2
853+ let accountBalanceA = $t03325833382._3
854+ let accountBalanceB = $t03325833382._4
855+ let shareAssetSupply = $t03325833382._5
856+ let $t03339133771 = if ((size(pAmounts) == 1))
857857 then {
858858 let pAsset = parsePaymentAsset(pAssetIds[0])
859859 if ((pAsset != shareAssetId))
860860 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
861861 else $Tuple2(pAmounts[0], pAsset)
862862 }
863863 else $Tuple2(0, shareAssetId)
864- let pmtAmount = $t03335633736._1
865- let pmtAssetId = $t03335633736._2
864+ let pmtAmount = $t03339133771._1
865+ let pmtAssetId = $t03339133771._2
866866 if ((size(args) != 1))
867867 then throw("Wrong args size")
868868 else if ((size(pAmounts) > 1))
869869 then throw("One attached payment expected")
870870 else if (if ((balanceA > accountBalanceA))
871871 then true
872872 else (balanceB > accountBalanceB))
873873 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
874874 else {
875875 let unlockAmount = parseIntValue(valueOrElse(args[0], "0"))
876876 let unlock = if ((unlockAmount > 0))
877877 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
878878 else 0
879879 if ((unlock == unlock))
880880 then {
881881 let withdrawAmount = (pmtAmount + unlockAmount)
882882 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
883883 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
884884 let stake1 = if (contains(stakingAssets, strAssetIdA))
885885 then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
886886 else 0
887887 if ((stake1 == stake1))
888888 then {
889889 let stake2 = if (contains(stakingAssets, strAssetIdB))
890890 then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
891891 else 0
892892 if ((stake2 == stake2))
893893 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))
894894 else throw("Strict value is not equal to itself.")
895895 }
896896 else throw("Strict value is not equal to itself.")
897897 }
898898 else throw("Strict value is not equal to itself.")
899899 }
900900 }))
901901
902902
903903
904904 @Callable(i)
905905 func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
906906 let caller = Address(callerBytes)
907907 let withdrawAsset = if ((args[0] == ""))
908908 then unit
909909 else fromBase58String(args[0])
910- let $t03595436044 = getPoolAssets(i.caller)
911- let strAssetIdA = $t03595436044._1
912- let strAssetIdB = $t03595436044._2
913- let assetIdA = $t03595436044._3
914- let assetIdB = $t03595436044._4
915- let shareAssetId = $t03595436044._5
916- let $t03605336177 = getPoolBalances(i.caller, assetIdA, assetIdB)
917- let balanceA = $t03605336177._1
918- let balanceB = $t03605336177._2
919- let accountBalanceA = $t03605336177._3
920- let accountBalanceB = $t03605336177._4
921- let shareAssetSupply = $t03605336177._5
922- let $t03618636538 = if ((size(pAmounts) == 1))
910+ let $t03598936079 = getPoolAssets(i.caller)
911+ let strAssetIdA = $t03598936079._1
912+ let strAssetIdB = $t03598936079._2
913+ let assetIdA = $t03598936079._3
914+ let assetIdB = $t03598936079._4
915+ let shareAssetId = $t03598936079._5
916+ let $t03608836212 = getPoolBalances(i.caller, assetIdA, assetIdB)
917+ let balanceA = $t03608836212._1
918+ let balanceB = $t03608836212._2
919+ let accountBalanceA = $t03608836212._3
920+ let accountBalanceB = $t03608836212._4
921+ let shareAssetSupply = $t03608836212._5
922+ let $t03622136573 = if ((size(pAmounts) == 1))
923923 then {
924924 let pAsset = parsePaymentAsset(pAssetIds[0])
925925 if ((pAsset != shareAssetId))
926926 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
927927 else $Tuple2(pAmounts[0], pAsset)
928928 }
929929 else $Tuple2(0, shareAssetId)
930- let pmtAmount = $t03618636538._1
931- let pmtAssetId = $t03618636538._2
930+ let pmtAmount = $t03622136573._1
931+ let pmtAssetId = $t03622136573._2
932932 let virtMinToRecive = parseIntValue(args[1])
933933 if ((size(args) != 3))
934934 then throw("Wrong args size")
935935 else if ((size(pAmounts) > 1))
936936 then throw("One attached payment expected")
937937 else if ((pmtAssetId != shareAssetId))
938938 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
939939 else if (!(containsElement([assetIdA, assetIdB], withdrawAsset)))
940940 then throw("Incorrect withdraw asset.")
941941 else if (if ((balanceA > accountBalanceA))
942942 then true
943943 else (balanceB > accountBalanceB))
944944 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
945945 else {
946946 let unlockAmount = parseIntValue(valueOrElse(args[2], "0"))
947947 let unlock = if ((unlockAmount > 0))
948948 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
949949 else 0
950950 if ((unlock == unlock))
951951 then {
952952 let withdrawAmount = (pmtAmount + unlockAmount)
953953 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
954954 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
955- let $t03780537872 = getFeeParams(i.caller, i.originCaller)
956- let fee = $t03780537872._1
957- let govFee = $t03780537872._2
958- let teamFee = $t03780537872._3
959- let $t03788538299 = if ((withdrawAsset == assetIdA))
955+ let $t03784037907 = getFeeParams(i.caller, i.originCaller)
956+ let fee = $t03784037907._1
957+ let govFee = $t03784037907._2
958+ let teamFee = $t03784037907._3
959+ let $t03792038334 = if ((withdrawAsset == assetIdA))
960960 then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee)
961961 else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee)
962- let amountWithoutFee = $t03788538299._1
963- let amountWithFee = $t03788538299._2
964- let governanceReward = $t03788538299._3
965- let teamReward = $t03788538299._4
966- let $t03831239622 = if ((withdrawAsset == assetIdA))
962+ let amountWithoutFee = $t03792038334._1
963+ let amountWithFee = $t03792038334._2
964+ let governanceReward = $t03792038334._3
965+ let teamReward = $t03792038334._4
966+ let $t03834739657 = if ((withdrawAsset == assetIdA))
967967 then {
968968 let unstake = if (contains(stakingAssets, strAssetIdA))
969969 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil)
970970 else 0
971971 if ((unstake == unstake))
972972 then $Tuple4(((((balanceA - amountToPayA) - amountWithFee) - governanceReward) - teamReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)])
973973 else throw("Strict value is not equal to itself.")
974974 }
975975 else {
976976 let unstake = if (contains(stakingAssets, strAssetIdB))
977977 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayB + amountWithFee) + governanceReward) + teamReward), strAssetIdB], nil)
978978 else 0
979979 if ((unstake == unstake))
980980 then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
981981 else throw("Strict value is not equal to itself.")
982982 }
983- let newBalanceA = $t03831239622._1
984- let newBalanceB = $t03831239622._2
985- let govRewardAssetId = $t03831239622._3
986- let userTransfer = $t03831239622._4
983+ let newBalanceA = $t03834739657._1
984+ let newBalanceB = $t03834739657._2
985+ let govRewardAssetId = $t03834739657._3
986+ let userTransfer = $t03834739657._4
987987 $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))
988988 }
989989 else throw("Strict value is not equal to itself.")
990990 }
991991 })))
992992
993993
994994
995995 @Callable(i)
996996 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
997- let $t04038240458 = getPoolAssets(i.caller)
998- let strAssetIdA = $t04038240458._1
999- let strAssetIdB = $t04038240458._2
1000- let assetIdA = $t04038240458._3
1001- let assetIdB = $t04038240458._4
997+ let $t04041740493 = getPoolAssets(i.caller)
998+ let strAssetIdA = $t04041740493._1
999+ let strAssetIdB = $t04041740493._2
1000+ let assetIdA = $t04041740493._3
1001+ let assetIdB = $t04041740493._4
10021002 let claim = if (if ((assetIdA == USDN))
10031003 then true
10041004 else (assetIdB == USDN))
10051005 then invoke(i.caller, "claimNetrinoRewards", nil, nil)
10061006 else 0
10071007 if ((claim == claim))
10081008 then {
1009- let $t04061840724 = getPoolBalances(i.caller, assetIdA, assetIdB)
1010- let balanceA = $t04061840724._1
1011- let balanceB = $t04061840724._2
1012- let accountBalanceA = $t04061840724._3
1013- let accountBalanceB = $t04061840724._4
1009+ let $t04065340759 = getPoolBalances(i.caller, assetIdA, assetIdB)
1010+ let balanceA = $t04065340759._1
1011+ let balanceB = $t04065340759._2
1012+ let accountBalanceA = $t04065340759._3
1013+ let accountBalanceB = $t04065340759._4
10141014 let amountEnrollA = (accountBalanceA - balanceA)
10151015 let amountEnrollB = (accountBalanceB - balanceB)
10161016 if ((size(args) != 0))
10171017 then throw("Wrong args size")
10181018 else if ((moneyBoxAddress != i.originCaller))
10191019 then throw("Only the wallet can call this function")
10201020 else if (if ((0 > amountEnrollA))
10211021 then true
10221022 else (0 > amountEnrollB))
10231023 then suspend("Enroll amount negative")
10241024 else if (if ((amountEnrollA == 0))
10251025 then (amountEnrollB == 0)
10261026 else false)
10271027 then throw("No money to take")
10281028 else {
10291029 let stake1 = if (if (contains(stakingAssets, strAssetIdA))
10301030 then (amountEnrollA > 0)
10311031 else false)
10321032 then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
10331033 else 0
10341034 if ((stake1 == stake1))
10351035 then {
10361036 let stake2 = if (if (contains(stakingAssets, strAssetIdB))
10371037 then (amountEnrollB > 0)
10381038 else false)
10391039 then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
10401040 else 0
10411041 if ((stake2 == stake2))
10421042 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil))
10431043 else throw("Strict value is not equal to itself.")
10441044 }
10451045 else throw("Strict value is not equal to itself.")
10461046 }
10471047 }
10481048 else throw("Strict value is not equal to itself.")
10491049 }))
10501050
10511051
10521052 @Verifier(tx)
10531053 func verify () = {
10541054 let multiSignedByAdmins = {
10551055 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
10561056 then 1
10571057 else 0
10581058 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
10591059 then 1
10601060 else 0
10611061 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
10621062 then 1
10631063 else 0
10641064 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
10651065 }
10661066 multiSignedByAdmins
10671067 }
10681068

github/deemru/w8io/169f3d6 
196.69 ms