tx · DaQaMBzCwiyn3dnFbjgMcMdvoA1SXrVASieXhTycjm3w

3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5:  -0.03900000 Waves

2023.03.17 17:08 [2494094] smart account 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5 > SELF 0.00000000 Waves

{ "type": 13, "id": "DaQaMBzCwiyn3dnFbjgMcMdvoA1SXrVASieXhTycjm3w", "fee": 3900000, "feeAssetId": null, "timestamp": 1679062186466, "version": 2, "chainId": 84, "sender": "3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5", "senderPublicKey": "FEnkfXnQZkk1FmjhH6QZqyK2taN6ngnZBexevKxouLUM", "proofs": [ "3s9MSVDADAr7RTA4KMQMx4zdxzqQ9K2yoh35JiKWpi5gYMFcJudoAyJ79jB6iCteJNy4uW4uixxaV9hcrrqX3k7s", "2dkrzeucU7oMJqVrVGuVn2A55PiHAEva8oiD3AzbusvvjuEPevo6RXCVVgH9r4GLRUacWQHeqVzV23oTeSoDxJHh" ], "script": "base64:BgJKCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERJQAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQALa0RlcHJlY2F0ZWQCC2RlcHJlY2F0ZWRfAAlrQXNzZXRJZEECCkFfYXNzZXRfaWQACWtBc3NldElkQgIKQl9hc3NldF9pZAAJa0JhbGFuY2VBAg9BX2Fzc2V0X2JhbGFuY2UACWtCYWxhbmNlQgIPQl9hc3NldF9iYWxhbmNlAA1rQmFsYW5jZUluaXRBAgxBX2Fzc2V0X2luaXQADWtCYWxhbmNlSW5pdEICDEJfYXNzZXRfaW5pdAANa1NoYXJlQXNzZXRJZAIOc2hhcmVfYXNzZXRfaWQAEWtTaGFyZUFzc2V0U3VwcGx5AhJzaGFyZV9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LZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAgUTbXVsdGlTaWduZWRCeUFkbWluc+dkGas=", "height": 2494094, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9xCTNz47G3NoeyG4DDuYwpafcFdrQzgy7GQYwSwPs6j9 Next: 9jcf6Udfuj74gJqeNQCJLNhypVavEnur9WSqF7T1CT1J Diff:
OldNewDifferences
7575
7676 let kMoneyBoxAddress = "money_box_address"
7777
78+let kTeamBoxAddress = "team_box_address"
79+
7880 let kVotingAddress = "voting_address"
7981
8082 let kGovAddress = "governance_address"
100102 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
101103
102104 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
105+
106+let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
103107
104108 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
105109
167171
168172 func getAssetInfo (assetId) = match assetId {
169173 case id: String|ByteVector =>
170- let $t039714143 = match id {
174+ let $t040794251 = match id {
171175 case aId: ByteVector =>
172176 $Tuple2(toBase58String(aId), aId)
173177 case aId: String =>
175179 case _ =>
176180 throw("Match error")
177181 }
178- let stringId = $t039714143._1
179- let bytesId = $t039714143._2
182+ let stringId = $t040794251._1
183+ let bytesId = $t040794251._2
180184 let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist"))
181185 $Tuple3(stringId, info.name, info.decimals)
182186 case waves: Unit =>
216220 }
217221
218222
219-func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGovernance) = {
223+func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGov,feeTeam) = {
220224 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
221225 let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6)
222- let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScale6)
226+ let governanceReward = fraction(amountWithoutFee, feeGov, feeScale6)
227+ let teamReward = fraction(amountWithoutFee, feeTeam, feeScale6)
223228 if ((minAmountToReceive > amountWithFee))
224229 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
225- else $Tuple3(amountWithoutFee, amountWithFee, governanceReward)
230+ else $Tuple4(amountWithoutFee, amountWithFee, governanceReward, teamReward)
226231 }
227232
228233
229234 func calculateVirtPay (pmtAmount,balance,fee) = {
230235 let F = (feeScale6 - fee)
231- let k = fraction(fee, 60, 100)
236+ let k = fraction(fee, 55, 100)
232237 let a = (scale8 + fraction((F * k), scale8, (feeScale6 * feeScale6)))
233238 let b = ((((balance + fraction(balance, F, feeScale6)) + fraction(pmtAmount, F, feeScale6)) - pmtAmount) - fraction(pmtAmount, (F * k), (feeScale6 * feeScale6)))
234239 let c = (-(toBigInt(balance)) * toBigInt(pmtAmount))
289294 func getFeeParams (pool,caller) = {
290295 let feeDiscount = calculateFeeDiscount(caller)
291296 let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING)
292- let govFee = fraction(fee, 40, 100)
293- $Tuple2(fee, govFee)
297+ let govFee = fraction(fee, 35, 100)
298+ let teamFee = fraction(fee, 10, 100)
299+ $Tuple3(fee, govFee, teamFee)
294300 }
295301
296302
297303 @Callable(i)
298304 func init (callerBytes,args,pAmounts,pAssetIds) = {
299305 let caller = Address(callerBytes)
300- let $t092919369 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
301- let pmtAmountA = $t092919369._1
302- let pmtAssetIdA = $t092919369._2
303- let $t093749452 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
304- let pmtAmountB = $t093749452._1
305- let pmtAssetIdB = $t093749452._2
306+ let $t095649642 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
307+ let pmtAmountA = $t095649642._1
308+ let pmtAssetIdA = $t095649642._2
309+ let $t096479725 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
310+ let pmtAmountB = $t096479725._1
311+ let pmtAssetIdB = $t096479725._2
306312 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
307313 then throw("Only admin can call this function")
308314 else if ((size(args) != 1))
312318 else if ((pmtAssetIdA == pmtAssetIdB))
313319 then throw("Assets must be different")
314320 else {
315- let $t098879964 = getAssetInfo(pmtAssetIdA)
316- let pmtStrAssetIdA = $t098879964._1
317- let pmtAssetNameA = $t098879964._2
318- let pmtDecimalsA = $t098879964._3
319- let $t0997310050 = getAssetInfo(pmtAssetIdB)
320- let pmtStrAssetIdB = $t0997310050._1
321- let pmtAssetNameB = $t0997310050._2
322- let pmtDecimalsB = $t0997310050._3
321+ let $t01016010237 = getAssetInfo(pmtAssetIdA)
322+ let pmtStrAssetIdA = $t01016010237._1
323+ let pmtAssetNameA = $t01016010237._2
324+ let pmtDecimalsA = $t01016010237._3
325+ let $t01024610323 = getAssetInfo(pmtAssetIdB)
326+ let pmtStrAssetIdB = $t01024610323._1
327+ let pmtAssetNameB = $t01024610323._2
328+ let pmtDecimalsB = $t01024610323._3
323329 let firstHarvest = (args[0] == "true")
324330 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
325331 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
356362 @Callable(i)
357363 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
358364 let caller = Address(callerBytes)
359- let $t01227112471 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
360- let amtAssetA = $t01227112471._1
361- let amtAssetB = $t01227112471._2
362- let assetIdAStr = $t01227112471._3
363- let assetIdBStr = $t01227112471._4
364- let firstHarvest = $t01227112471._5
365+ let $t01254412744 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
366+ let amtAssetA = $t01254412744._1
367+ let amtAssetB = $t01254412744._2
368+ let assetIdAStr = $t01254412744._3
369+ let assetIdBStr = $t01254412744._4
370+ let firstHarvest = $t01254412744._5
365371 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
366372 then throw("Only admin can call this function")
367373 else if ((size(args) != 5))
371377 else if ((assetIdAStr == assetIdBStr))
372378 then throw("Assets must be different")
373379 else {
374- let $t01290612983 = getAssetInfo(assetIdAStr)
375- let pmtStrAssetIdA = $t01290612983._1
376- let pmtAssetNameA = $t01290612983._2
377- let pmtDecimalsA = $t01290612983._3
378- let $t01299213069 = getAssetInfo(assetIdBStr)
379- let pmtStrAssetIdB = $t01299213069._1
380- let pmtAssetNameB = $t01299213069._2
381- let pmtDecimalsB = $t01299213069._3
380+ let $t01317913256 = getAssetInfo(assetIdAStr)
381+ let pmtStrAssetIdA = $t01317913256._1
382+ let pmtAssetNameA = $t01317913256._2
383+ let pmtDecimalsA = $t01317913256._3
384+ let $t01326513342 = getAssetInfo(assetIdBStr)
385+ let pmtStrAssetIdB = $t01326513342._1
386+ let pmtAssetNameB = $t01326513342._2
387+ let pmtDecimalsB = $t01326513342._3
382388 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
383389 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
384390 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
409415 @Callable(i)
410416 func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
411417 let caller = Address(callerBytes)
412- let $t01549515571 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
413- let pmtAmount = $t01549515571._1
414- let pmtAssetId = $t01549515571._2
418+ let $t01576815844 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
419+ let pmtAmount = $t01576815844._1
420+ let pmtAssetId = $t01576815844._2
415421 let minAmountToReceive = parseIntValue(args[0])
416- let $t01563615712 = getPoolAssets(i.caller)
417- let strAssetIdA = $t01563615712._1
418- let strAssetIdB = $t01563615712._2
419- let assetIdA = $t01563615712._3
420- let assetIdB = $t01563615712._4
421- let $t01572115827 = getPoolBalances(i.caller, assetIdA, assetIdB)
422- let balanceA = $t01572115827._1
423- let balanceB = $t01572115827._2
424- let accountBalanceA = $t01572115827._3
425- let accountBalanceB = $t01572115827._4
422+ let $t01590915985 = getPoolAssets(i.caller)
423+ let strAssetIdA = $t01590915985._1
424+ let strAssetIdB = $t01590915985._2
425+ let assetIdA = $t01590915985._3
426+ let assetIdB = $t01590915985._4
427+ let $t01599416100 = getPoolBalances(i.caller, assetIdA, assetIdB)
428+ let balanceA = $t01599416100._1
429+ let balanceB = $t01599416100._2
430+ let accountBalanceA = $t01599416100._3
431+ let accountBalanceB = $t01599416100._4
426432 if ((size(args) != 1))
427433 then throw("Wrong args size")
428434 else if (if ((balanceA == 0))
440446 else (balanceB > accountBalanceB))
441447 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
442448 else {
443- let $t01672716785 = getFeeParams(i.caller, i.originCaller)
444- let fee = $t01672716785._1
445- let govFee = $t01672716785._2
446- let $t01679817119 = if ((pmtAssetId == assetIdA))
447- then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee)
448- else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee)
449- let amountWithoutFee = $t01679817119._1
450- let amountWithFee = $t01679817119._2
451- let governanceReward = $t01679817119._3
452- let $t01713317442 = if ((pmtAssetId == assetIdA))
453- then $Tuple3((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward), assetIdB)
454- else $Tuple3(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount), assetIdA)
455- let newBalanceA = $t01713317442._1
456- let newBalanceB = $t01713317442._2
457- let assetIdSend = $t01713317442._3
458- let $t01745617690 = if ((pmtAssetId == assetIdA))
459- then $Tuple2(pmtAmount, (amountWithFee + governanceReward))
460- else $Tuple2((amountWithFee + governanceReward), pmtAmount)
461- let stakeAmountA = $t01745617690._1
462- let stakeAmountB = $t01745617690._2
449+ let $t01700017067 = getFeeParams(i.caller, i.originCaller)
450+ let fee = $t01700017067._1
451+ let govFee = $t01700017067._2
452+ let teamFee = $t01700017067._3
453+ let $t01708017431 = if ((pmtAssetId == assetIdA))
454+ then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee)
455+ else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee)
456+ let amountWithoutFee = $t01708017431._1
457+ let amountWithFee = $t01708017431._2
458+ let governanceReward = $t01708017431._3
459+ let teamReward = $t01708017431._4
460+ let $t01744517780 = if ((pmtAssetId == assetIdA))
461+ then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB)
462+ else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA)
463+ let newBalanceA = $t01744517780._1
464+ let newBalanceB = $t01744517780._2
465+ let assetIdSend = $t01744517780._3
466+ let $t01779418054 = if ((pmtAssetId == assetIdA))
467+ then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward))
468+ else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount)
469+ let stakeAmountA = $t01779418054._1
470+ let stakeAmountB = $t01779418054._2
463471 let stake1 = if (contains(stakingAssets, strAssetIdA))
464472 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
465473 else 0
469477 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil)
470478 else 0
471479 if ((stake2 == stake2))
472- then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend)], [amountWithFee, assetIdSend]))
480+ then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend), ScriptTransfer(teamBoxAddress, teamReward, assetIdSend)], [amountWithFee, assetIdSend]))
473481 else throw("Strict value is not equal to itself.")
474482 }
475483 else throw("Strict value is not equal to itself.")
485493 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
486494 let stakeFarming = (args[0] == "true")
487495 let lockType = parseIntValue(args[1])
488- let $t01893219022 = getPoolAssets(i.caller)
489- let strAssetIdA = $t01893219022._1
490- let strAssetIdB = $t01893219022._2
491- let assetIdA = $t01893219022._3
492- let assetIdB = $t01893219022._4
493- let shareAssetId = $t01893219022._5
494- let $t01903119155 = getPoolBalances(i.caller, assetIdA, assetIdB)
495- let balanceA = $t01903119155._1
496- let balanceB = $t01903119155._2
497- let accountBalanceA = $t01903119155._3
498- let accountBalanceB = $t01903119155._4
499- let shareAssetSupply = $t01903119155._5
496+ let $t01936919459 = getPoolAssets(i.caller)
497+ let strAssetIdA = $t01936919459._1
498+ let strAssetIdB = $t01936919459._2
499+ let assetIdA = $t01936919459._3
500+ let assetIdB = $t01936919459._4
501+ let shareAssetId = $t01936919459._5
502+ let $t01946819592 = getPoolBalances(i.caller, assetIdA, assetIdB)
503+ let balanceA = $t01946819592._1
504+ let balanceB = $t01946819592._2
505+ let accountBalanceA = $t01946819592._3
506+ let accountBalanceB = $t01946819592._4
507+ let shareAssetSupply = $t01946819592._5
500508 if ((size(args) != 2))
501509 then throw("Wrong args size")
502510 else if (if ((size(pAmounts) != 2))
516524 else pAssetIds[2], pAmounts[2])]
517525 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
518526 else {
519- let $t02008820165 = getAssetInfo(pmtAssetIdA)
520- let pmtStrAssetIdA = $t02008820165._1
521- let pmtAssetNameA = $t02008820165._2
522- let pmtDecimalsA = $t02008820165._3
523- let $t02017820255 = getAssetInfo(pmtAssetIdB)
524- let pmtStrAssetIdB = $t02017820255._1
525- let pmtAssetNameB = $t02017820255._2
526- let pmtDecimalsB = $t02017820255._3
527+ let $t02052520602 = getAssetInfo(pmtAssetIdA)
528+ let pmtStrAssetIdA = $t02052520602._1
529+ let pmtAssetNameA = $t02052520602._2
530+ let pmtDecimalsA = $t02052520602._3
531+ let $t02061520692 = getAssetInfo(pmtAssetIdB)
532+ let pmtStrAssetIdB = $t02061520692._1
533+ let pmtAssetNameB = $t02061520692._2
534+ let pmtDecimalsB = $t02061520692._3
527535 let initial = ((balanceA + balanceB) == 0)
528- let $t02032221178 = if (initial)
536+ let $t02075921615 = if (initial)
529537 then $Tuple5(pAmounts[0], pAmounts[1], 0, pmtAssetIdA, toBigInt(1))
530538 else {
531539 let ratioShareTokensInA = fraction(scale16, toBigInt(pAmounts[0]), toBigInt(balanceA))
540548 $Tuple5(pmt, pAmounts[1], (pAmounts[0] - pmt), pmtAssetIdA, ratioShareTokensInB)
541549 }
542550 }
543- let pmtAmountA = $t02032221178._1
544- let pmtAmountB = $t02032221178._2
545- let change = $t02032221178._3
546- let changeAssetId = $t02032221178._4
547- let shareTokenRatio = $t02032221178._5
551+ let pmtAmountA = $t02075921615._1
552+ let pmtAmountB = $t02075921615._2
553+ let change = $t02075921615._3
554+ let changeAssetId = $t02075921615._4
555+ let shareTokenRatio = $t02075921615._5
548556 let shareTokenToPayAmount = if (initial)
549557 then {
550558 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
603611 let virtGetMinAmount = parseIntValue(args[0])
604612 let stakeFarming = (args[1] == "true")
605613 let lockType = parseIntValue(args[2])
606- let $t02393324023 = getPoolAssets(i.caller)
607- let strAssetIdA = $t02393324023._1
608- let strAssetIdB = $t02393324023._2
609- let assetIdA = $t02393324023._3
610- let assetIdB = $t02393324023._4
611- let shareAssetId = $t02393324023._5
612- let $t02402824152 = getPoolBalances(i.caller, assetIdA, assetIdB)
613- let balanceA = $t02402824152._1
614- let balanceB = $t02402824152._2
615- let accountBalanceA = $t02402824152._3
616- let accountBalanceB = $t02402824152._4
617- let shareAssetSupply = $t02402824152._5
614+ let $t02437024460 = getPoolAssets(i.caller)
615+ let strAssetIdA = $t02437024460._1
616+ let strAssetIdB = $t02437024460._2
617+ let assetIdA = $t02437024460._3
618+ let assetIdB = $t02437024460._4
619+ let shareAssetId = $t02437024460._5
620+ let $t02446524589 = getPoolBalances(i.caller, assetIdA, assetIdB)
621+ let balanceA = $t02446524589._1
622+ let balanceB = $t02446524589._2
623+ let accountBalanceA = $t02446524589._3
624+ let accountBalanceB = $t02446524589._4
625+ let shareAssetSupply = $t02446524589._5
618626 let initial = ((balanceA + balanceB) == 0)
619627 if ((size(args) != 3))
620628 then throw("Wrong args size")
637645 else pAssetIds[2], pAmounts[2])]
638646 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
639647 else {
640- let $t02506425122 = getFeeParams(i.caller, i.originCaller)
641- let fee = $t02506425122._1
642- let govFee = $t02506425122._2
643- let $t02513127293 = if ((pmtAssetId == assetIdA))
648+ let $t02550125568 = getFeeParams(i.caller, i.originCaller)
649+ let fee = $t02550125568._1
650+ let govFee = $t02550125568._2
651+ let teamFee = $t02550125568._3
652+ let $t02557727845 = if ((pmtAssetId == assetIdA))
644653 then {
645654 let virtPayAmount = calculateVirtPay(pmtAmount, balanceA, fee)
646- let $t02538625523 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee)
647- let amountWithoutFee = $t02538625523._1
648- let amountWithFee = $t02538625523._2
649- let governanceReward = $t02538625523._3
655+ let $t02584425999 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee, teamFee)
656+ let amountWithoutFee = $t02584425999._1
657+ let amountWithFee = $t02584425999._2
658+ let governanceReward = $t02584425999._3
659+ let tReward = $t02584425999._4
650660 let balanceAVirt = (balanceA + virtPayAmount)
651- let balanceBVirt = ((balanceB + amountWithoutFee) - governanceReward)
661+ let balanceBVirt = (((balanceB + amountWithoutFee) - governanceReward) - tReward)
652662 let newBalanceA = (balanceA + pmtAmount)
653- let newBalanceB = (balanceB - governanceReward)
663+ let newBalanceB = ((balanceB - governanceReward) - tReward)
654664 let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt))
655665 let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt))
656666 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(shareAssetSupply), scale16))
657- $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdB, strAssetIdB, strAssetIdA)
667+ $Tuple8(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, tReward, assetIdB, strAssetIdB, strAssetIdA)
658668 }
659669 else {
660670 let virtPayAmount = calculateVirtPay(pmtAmount, balanceB, fee)
661- let $t02639626533 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee)
662- let amountWithoutFee = $t02639626533._1
663- let amountWithFee = $t02639626533._2
664- let governanceReward = $t02639626533._3
665- let balanceAVirt = ((balanceA + amountWithoutFee) - governanceReward)
671+ let $t02690127056 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee, teamFee)
672+ let amountWithoutFee = $t02690127056._1
673+ let amountWithFee = $t02690127056._2
674+ let governanceReward = $t02690127056._3
675+ let tReward = $t02690127056._4
676+ let balanceAVirt = (((balanceA + amountWithoutFee) - governanceReward) - tReward)
666677 let balanceBVirt = (balanceB + virtPayAmount)
667- let newBalanceA = (balanceA - governanceReward)
678+ let newBalanceA = ((balanceA - governanceReward) - tReward)
668679 let newBalanceB = (balanceB + pmtAmount)
669680 let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt))
670681 let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt))
671682 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(shareAssetSupply), scale16))
672- $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdA, strAssetIdA, strAssetIdB)
683+ $Tuple8(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, tReward, assetIdA, strAssetIdA, strAssetIdB)
673684 }
674- let newBalanceA = $t02513127293._1
675- let newBalanceB = $t02513127293._2
676- let shareTokenToPayAmount = $t02513127293._3
677- let govReward = $t02513127293._4
678- let govRewardAsset = $t02513127293._5
679- let govRewardAssetStr = $t02513127293._6
680- let pmtAssetIdStr = $t02513127293._7
685+ let newBalanceA = $t02557727845._1
686+ let newBalanceB = $t02557727845._2
687+ let shareTokenToPayAmount = $t02557727845._3
688+ let govReward = $t02557727845._4
689+ let teamReward = $t02557727845._5
690+ let govRewardAsset = $t02557727845._6
691+ let govRewardAssetStr = $t02557727845._7
692+ let pmtAssetIdStr = $t02557727845._8
681693 if ((shareTokenToPayAmount == 0))
682694 then throw("Too small amount to replenish")
683695 else {
687699 if ((stake1 == stake1))
688700 then {
689701 let stake2 = if (contains(stakingAssets, govRewardAssetStr))
690- then invoke(i.caller, "stakeUnstake", [false, govReward, govRewardAssetStr], nil)
702+ then invoke(i.caller, "stakeUnstake", [false, (govReward + teamReward), govRewardAssetStr], nil)
691703 else 0
692704 if ((stake2 == stake2))
693705 then {
709721 else throw("Strict value is not equal to itself.")
710722 }
711723 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
712- $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset)] ++ shareTokenST), nil))
724+ $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset), ScriptTransfer(teamBoxAddress, teamReward, govRewardAsset)] ++ shareTokenST), nil))
713725 }
714726 else throw("Strict value is not equal to itself.")
715727 }
724736 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
725737 let time = lastBlock.timestamp
726738 let caller = Address(callerBytes)
727- let $t02920829298 = getPoolAssets(i.caller)
728- let strAssetIdA = $t02920829298._1
729- let strAssetIdB = $t02920829298._2
730- let assetIdA = $t02920829298._3
731- let assetIdB = $t02920829298._4
732- let shareAssetId = $t02920829298._5
733- let $t02930729431 = getPoolBalances(i.caller, assetIdA, assetIdB)
734- let balanceA = $t02930729431._1
735- let balanceB = $t02930729431._2
736- let accountBalanceA = $t02930729431._3
737- let accountBalanceB = $t02930729431._4
738- let shareAssetSupply = $t02930729431._5
739- let $t02944029820 = if ((size(pAmounts) == 1))
739+ let $t02985329943 = getPoolAssets(i.caller)
740+ let strAssetIdA = $t02985329943._1
741+ let strAssetIdB = $t02985329943._2
742+ let assetIdA = $t02985329943._3
743+ let assetIdB = $t02985329943._4
744+ let shareAssetId = $t02985329943._5
745+ let $t02995230076 = getPoolBalances(i.caller, assetIdA, assetIdB)
746+ let balanceA = $t02995230076._1
747+ let balanceB = $t02995230076._2
748+ let accountBalanceA = $t02995230076._3
749+ let accountBalanceB = $t02995230076._4
750+ let shareAssetSupply = $t02995230076._5
751+ let $t03008530465 = if ((size(pAmounts) == 1))
740752 then {
741753 let pAsset = parsePaymentAsset(pAssetIds[0])
742754 if ((pAsset != shareAssetId))
744756 else $Tuple2(pAmounts[0], pAsset)
745757 }
746758 else $Tuple2(0, shareAssetId)
747- let pmtAmount = $t02944029820._1
748- let pmtAssetId = $t02944029820._2
759+ let pmtAmount = $t03008530465._1
760+ let pmtAssetId = $t03008530465._2
749761 if ((size(args) != 1))
750762 then throw("Wrong args size")
751763 else if ((size(pAmounts) > 1))
790802 let withdrawAsset = if ((args[0] == ""))
791803 then unit
792804 else fromBase58String(args[0])
793- let $t03203832128 = getPoolAssets(i.caller)
794- let strAssetIdA = $t03203832128._1
795- let strAssetIdB = $t03203832128._2
796- let assetIdA = $t03203832128._3
797- let assetIdB = $t03203832128._4
798- let shareAssetId = $t03203832128._5
799- let $t03213732261 = getPoolBalances(i.caller, assetIdA, assetIdB)
800- let balanceA = $t03213732261._1
801- let balanceB = $t03213732261._2
802- let accountBalanceA = $t03213732261._3
803- let accountBalanceB = $t03213732261._4
804- let shareAssetSupply = $t03213732261._5
805- let $t03227032622 = if ((size(pAmounts) == 1))
805+ let $t03268332773 = getPoolAssets(i.caller)
806+ let strAssetIdA = $t03268332773._1
807+ let strAssetIdB = $t03268332773._2
808+ let assetIdA = $t03268332773._3
809+ let assetIdB = $t03268332773._4
810+ let shareAssetId = $t03268332773._5
811+ let $t03278232906 = getPoolBalances(i.caller, assetIdA, assetIdB)
812+ let balanceA = $t03278232906._1
813+ let balanceB = $t03278232906._2
814+ let accountBalanceA = $t03278232906._3
815+ let accountBalanceB = $t03278232906._4
816+ let shareAssetSupply = $t03278232906._5
817+ let $t03291533267 = if ((size(pAmounts) == 1))
806818 then {
807819 let pAsset = parsePaymentAsset(pAssetIds[0])
808820 if ((pAsset != shareAssetId))
810822 else $Tuple2(pAmounts[0], pAsset)
811823 }
812824 else $Tuple2(0, shareAssetId)
813- let pmtAmount = $t03227032622._1
814- let pmtAssetId = $t03227032622._2
825+ let pmtAmount = $t03291533267._1
826+ let pmtAssetId = $t03291533267._2
815827 let virtMinToRecive = parseIntValue(args[1])
816828 if ((size(args) != 3))
817829 then throw("Wrong args size")
835847 let withdrawAmount = (pmtAmount + unlockAmount)
836848 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
837849 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
838- let $t03388933947 = getFeeParams(i.caller, i.originCaller)
839- let fee = $t03388933947._1
840- let govFee = $t03388933947._2
841- let $t03396034344 = if ((withdrawAsset == assetIdA))
842- then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee)
843- else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee)
844- let amountWithoutFee = $t03396034344._1
845- let amountWithFee = $t03396034344._2
846- let governanceReward = $t03396034344._3
847- let $t03435735615 = if ((withdrawAsset == assetIdA))
850+ let $t03453434601 = getFeeParams(i.caller, i.originCaller)
851+ let fee = $t03453434601._1
852+ let govFee = $t03453434601._2
853+ let teamFee = $t03453434601._3
854+ let $t03461435028 = if ((withdrawAsset == assetIdA))
855+ then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee)
856+ else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee)
857+ let amountWithoutFee = $t03461435028._1
858+ let amountWithFee = $t03461435028._2
859+ let governanceReward = $t03461435028._3
860+ let teamReward = $t03461435028._4
861+ let $t03504136351 = if ((withdrawAsset == assetIdA))
848862 then {
849863 let unstake = if (contains(stakingAssets, strAssetIdA))
850- then invoke(i.caller, "stakeUnstake", [false, ((amountToPayA + amountWithFee) + governanceReward), strAssetIdA], nil)
864+ then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil)
851865 else 0
852866 if ((unstake == unstake))
853- then $Tuple4((((balanceA - amountToPayA) - amountWithFee) - governanceReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)])
867+ then $Tuple4(((((balanceA - amountToPayA) - amountWithFee) - governanceReward) - teamReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)])
854868 else throw("Strict value is not equal to itself.")
855869 }
856870 else {
857871 let unstake = if (contains(stakingAssets, strAssetIdB))
858- then invoke(i.caller, "stakeUnstake", [false, ((amountToPayB + amountWithFee) + governanceReward), strAssetIdB], nil)
872+ then invoke(i.caller, "stakeUnstake", [false, (((amountToPayB + amountWithFee) + governanceReward) + teamReward), strAssetIdB], nil)
859873 else 0
860874 if ((unstake == unstake))
861- then $Tuple4(balanceA, (((balanceB - amountToPayB) - amountWithFee) - governanceReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
875+ then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
862876 else throw("Strict value is not equal to itself.")
863877 }
864- let newBalanceA = $t03435735615._1
865- let newBalanceB = $t03435735615._2
866- let govRewardAssetId = $t03435735615._3
867- let userTransfer = $t03435735615._4
868- $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId)] ++ userTransfer), nil))
878+ let newBalanceA = $t03504136351._1
879+ let newBalanceB = $t03504136351._2
880+ let govRewardAssetId = $t03504136351._3
881+ let userTransfer = $t03504136351._4
882+ $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))
869883 }
870884 else throw("Strict value is not equal to itself.")
871885 }
875889
876890 @Callable(i)
877891 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
878- let $t03629736373 = getPoolAssets(i.caller)
879- let strAssetIdA = $t03629736373._1
880- let strAssetIdB = $t03629736373._2
881- let assetIdA = $t03629736373._3
882- let assetIdB = $t03629736373._4
892+ let $t03711137187 = getPoolAssets(i.caller)
893+ let strAssetIdA = $t03711137187._1
894+ let strAssetIdB = $t03711137187._2
895+ let assetIdA = $t03711137187._3
896+ let assetIdB = $t03711137187._4
883897 let claim = if (if ((assetIdA == USDN))
884898 then true
885899 else (assetIdB == USDN))
887901 else 0
888902 if ((claim == claim))
889903 then {
890- let $t03653336639 = getPoolBalances(i.caller, assetIdA, assetIdB)
891- let balanceA = $t03653336639._1
892- let balanceB = $t03653336639._2
893- let accountBalanceA = $t03653336639._3
894- let accountBalanceB = $t03653336639._4
904+ let $t03734737453 = getPoolBalances(i.caller, assetIdA, assetIdB)
905+ let balanceA = $t03734737453._1
906+ let balanceB = $t03734737453._2
907+ let accountBalanceA = $t03734737453._3
908+ let accountBalanceB = $t03734737453._4
895909 let amountEnrollA = (accountBalanceA - balanceA)
896910 let amountEnrollB = (accountBalanceB - balanceB)
897911 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
78+let kTeamBoxAddress = "team_box_address"
79+
7880 let kVotingAddress = "voting_address"
7981
8082 let kGovAddress = "governance_address"
8183
8284 let kFarmingAddress = "farming_address"
8385
8486 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
8587
8688 func getBase58FromOracle (key) = match getString(oracle, key) {
8789 case string: String =>
8890 fromBase58String(string)
8991 case nothing =>
9092 throw((key + "is empty"))
9193 }
9294
9395
9496 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
9597
9698 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
9799
98100 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
99101
100102 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
101103
102104 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
105+
106+let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
103107
104108 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
105109
106110 let govAddress = Address(getBase58FromOracle(kGovAddress))
107111
108112 let farmingAddress = Address(getBase58FromOracle(kFarmingAddress))
109113
110114 let USDN = getBase58FromOracle(kUSDNAssetId)
111115
112116 let EURN = getBase58FromOracle(kEURNAssetId)
113117
114118 let stakingAssets = getStringValue(oracle, kStakingAssets)
115119
116120 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
117121
118122 let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress))
119123
120124 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
121125
122126 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
123127
124128 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
125129
126130 let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
127131
128132 let active = getBooleanValue(oracle, kOracleActive)
129133
130134 let feeScale6 = 1000000
131135
132136 let scale8 = 100000000
133137
134138 let scale16 = toBigInt(10000000000000000)
135139
136140 func accountBalance (assetId,pool) = match assetId {
137141 case id: ByteVector =>
138142 assetBalance(pool, id)
139143 case waves: Unit =>
140144 wavesBalance(pool).available
141145 case _ =>
142146 throw("Match error")
143147 }
144148
145149
146150 func stakedAmount (assetId,pool) = {
147151 let stakedAmountCalculated = match assetId {
148152 case aId: ByteVector =>
149153 if ((aId == USDN))
150154 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool)))
151155 else if ((aId == EURN))
152156 then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool)))
153157 else 0
154158 case _: Unit =>
155159 valueOrElse(getInteger(pool, kLeasingAmount), 0)
156160 case _ =>
157161 throw("Match error")
158162 }
159163 match stakedAmountCalculated {
160164 case i: Int =>
161165 i
162166 case _ =>
163167 0
164168 }
165169 }
166170
167171
168172 func getAssetInfo (assetId) = match assetId {
169173 case id: String|ByteVector =>
170- let $t039714143 = match id {
174+ let $t040794251 = match id {
171175 case aId: ByteVector =>
172176 $Tuple2(toBase58String(aId), aId)
173177 case aId: String =>
174178 $Tuple2(aId, fromBase58String(aId))
175179 case _ =>
176180 throw("Match error")
177181 }
178- let stringId = $t039714143._1
179- let bytesId = $t039714143._2
182+ let stringId = $t040794251._1
183+ let bytesId = $t040794251._2
180184 let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist"))
181185 $Tuple3(stringId, info.name, info.decimals)
182186 case waves: Unit =>
183187 $Tuple3("WAVES", "WAVES", 8)
184188 case _ =>
185189 throw("Match error")
186190 }
187191
188192
189193 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
190194
191195
192196 func calculateFeeDiscount (userAddr) = {
193197 let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0)
194198 let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), swopAmount)
195199 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
196200 let discounts = split(getStringValue(oracle, kDiscounts), ",")
197201 if (if ((gSwopAmount >= parseIntValue(discountValues[0])))
198202 then (parseIntValue(discountValues[1]) > gSwopAmount)
199203 else false)
200204 then (feeScale6 - parseIntValue(discounts[0]))
201205 else if (if ((gSwopAmount >= parseIntValue(discountValues[1])))
202206 then (parseIntValue(discountValues[2]) > gSwopAmount)
203207 else false)
204208 then (feeScale6 - parseIntValue(discounts[1]))
205209 else if (if ((gSwopAmount >= parseIntValue(discountValues[2])))
206210 then (parseIntValue(discountValues[3]) > gSwopAmount)
207211 else false)
208212 then (feeScale6 - parseIntValue(discounts[2]))
209213 else if (if ((gSwopAmount >= parseIntValue(discountValues[3])))
210214 then (parseIntValue(discountValues[4]) > gSwopAmount)
211215 else false)
212216 then (feeScale6 - parseIntValue(discounts[3]))
213217 else if ((gSwopAmount >= parseIntValue(discountValues[4])))
214218 then (feeScale6 - parseIntValue(discounts[4]))
215219 else feeScale6
216220 }
217221
218222
219-func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGovernance) = {
223+func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGov,feeTeam) = {
220224 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
221225 let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6)
222- let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScale6)
226+ let governanceReward = fraction(amountWithoutFee, feeGov, feeScale6)
227+ let teamReward = fraction(amountWithoutFee, feeTeam, feeScale6)
223228 if ((minAmountToReceive > amountWithFee))
224229 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
225- else $Tuple3(amountWithoutFee, amountWithFee, governanceReward)
230+ else $Tuple4(amountWithoutFee, amountWithFee, governanceReward, teamReward)
226231 }
227232
228233
229234 func calculateVirtPay (pmtAmount,balance,fee) = {
230235 let F = (feeScale6 - fee)
231- let k = fraction(fee, 60, 100)
236+ let k = fraction(fee, 55, 100)
232237 let a = (scale8 + fraction((F * k), scale8, (feeScale6 * feeScale6)))
233238 let b = ((((balance + fraction(balance, F, feeScale6)) + fraction(pmtAmount, F, feeScale6)) - pmtAmount) - fraction(pmtAmount, (F * k), (feeScale6 * feeScale6)))
234239 let c = (-(toBigInt(balance)) * toBigInt(pmtAmount))
235240 let D = ((toBigInt(b) * toBigInt(b)) - fraction((toBigInt(4) * c), toBigInt(a), toBigInt(scale8)))
236241 toInt(fraction((-(toBigInt(b)) + sqrtBigInt(D, 0, 0, DOWN)), toBigInt(scale8), toBigInt((2 * a))))
237242 }
238243
239244
240245 func parsePaymentAsset (assetId) = if ((assetId == base58''))
241246 then unit
242247 else assetId
243248
244249
245250 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))
246251
247252
248253 func isActive () = if (active)
249254 then unit
250255 else throw("DApp is inactive at this moment")
251256
252257
253258 func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress))))
254259 then unit
255260 else throw("DApp is not registered pool")
256261
257262
258263 func isDepricated (poolAddress) = if (!(valueOrElse(getBoolean(oracle, (kDeprecated + poolAddress)), false)))
259264 then unit
260265 else throw("Pool is deprecated. Only withdraw action allowed.")
261266
262267
263268 func getPoolBalances (pool,assetIdA,assetIdB) = {
264269 let balanceA = getIntegerValue(pool, kBalanceA)
265270 let balanceB = getIntegerValue(pool, kBalanceB)
266271 let stakedAmountA = stakedAmount(assetIdA, pool)
267272 let stakedAmountB = stakedAmount(assetIdB, pool)
268273 let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA)
269274 let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB)
270275 let shareSupply = getIntegerValue(pool, kShareAssetSupply)
271276 $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply)
272277 }
273278
274279
275280 func getPoolAssets (pool) = {
276281 let strAssetIdA = getStringValue(pool, kAssetIdA)
277282 let strAssetIdB = getStringValue(pool, kAssetIdB)
278283 let assetIdA = if ((strAssetIdA == "WAVES"))
279284 then unit
280285 else fromBase58String(strAssetIdA)
281286 let assetIdB = if ((strAssetIdB == "WAVES"))
282287 then unit
283288 else fromBase58String(strAssetIdB)
284289 let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId))
285290 $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId)
286291 }
287292
288293
289294 func getFeeParams (pool,caller) = {
290295 let feeDiscount = calculateFeeDiscount(caller)
291296 let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING)
292- let govFee = fraction(fee, 40, 100)
293- $Tuple2(fee, govFee)
297+ let govFee = fraction(fee, 35, 100)
298+ let teamFee = fraction(fee, 10, 100)
299+ $Tuple3(fee, govFee, teamFee)
294300 }
295301
296302
297303 @Callable(i)
298304 func init (callerBytes,args,pAmounts,pAssetIds) = {
299305 let caller = Address(callerBytes)
300- let $t092919369 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
301- let pmtAmountA = $t092919369._1
302- let pmtAssetIdA = $t092919369._2
303- let $t093749452 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
304- let pmtAmountB = $t093749452._1
305- let pmtAssetIdB = $t093749452._2
306+ let $t095649642 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
307+ let pmtAmountA = $t095649642._1
308+ let pmtAssetIdA = $t095649642._2
309+ let $t096479725 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
310+ let pmtAmountB = $t096479725._1
311+ let pmtAssetIdB = $t096479725._2
306312 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
307313 then throw("Only admin can call this function")
308314 else if ((size(args) != 1))
309315 then throw("Wrong args size")
310316 else if (isDefined(getBoolean(caller, kActive)))
311317 then throw("DApp is already active")
312318 else if ((pmtAssetIdA == pmtAssetIdB))
313319 then throw("Assets must be different")
314320 else {
315- let $t098879964 = getAssetInfo(pmtAssetIdA)
316- let pmtStrAssetIdA = $t098879964._1
317- let pmtAssetNameA = $t098879964._2
318- let pmtDecimalsA = $t098879964._3
319- let $t0997310050 = getAssetInfo(pmtAssetIdB)
320- let pmtStrAssetIdB = $t0997310050._1
321- let pmtAssetNameB = $t0997310050._2
322- let pmtDecimalsB = $t0997310050._3
321+ let $t01016010237 = getAssetInfo(pmtAssetIdA)
322+ let pmtStrAssetIdA = $t01016010237._1
323+ let pmtAssetNameA = $t01016010237._2
324+ let pmtDecimalsA = $t01016010237._3
325+ let $t01024610323 = getAssetInfo(pmtAssetIdB)
326+ let pmtStrAssetIdB = $t01024610323._1
327+ let pmtAssetNameB = $t01024610323._2
328+ let pmtDecimalsB = $t01024610323._3
323329 let firstHarvest = (args[0] == "true")
324330 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
325331 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
326332 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
327333 let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN)
328334 let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN)
329335 let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN)
330336 let shareInitialSupply = fraction(arg1, arg2, arg3)
331337 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
332338 let shareIssueId = calculateAssetId(shareIssue)
333339 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
334340 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
335341 else 0
336342 if ((stake1 == stake1))
337343 then {
338344 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
339345 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
340346 else 0
341347 if ((stake2 == stake2))
342348 then {
343349 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)]
344350 if (firstHarvest)
345351 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
346352 else $Tuple2(nil, $Tuple2(baseEntry, nil))
347353 }
348354 else throw("Strict value is not equal to itself.")
349355 }
350356 else throw("Strict value is not equal to itself.")
351357 }
352358 }
353359
354360
355361
356362 @Callable(i)
357363 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
358364 let caller = Address(callerBytes)
359- let $t01227112471 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
360- let amtAssetA = $t01227112471._1
361- let amtAssetB = $t01227112471._2
362- let assetIdAStr = $t01227112471._3
363- let assetIdBStr = $t01227112471._4
364- let firstHarvest = $t01227112471._5
365+ let $t01254412744 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
366+ let amtAssetA = $t01254412744._1
367+ let amtAssetB = $t01254412744._2
368+ let assetIdAStr = $t01254412744._3
369+ let assetIdBStr = $t01254412744._4
370+ let firstHarvest = $t01254412744._5
365371 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
366372 then throw("Only admin can call this function")
367373 else if ((size(args) != 5))
368374 then throw("Wrong args size")
369375 else if (isDefined(getBoolean(caller, kActive)))
370376 then throw("DApp is already active")
371377 else if ((assetIdAStr == assetIdBStr))
372378 then throw("Assets must be different")
373379 else {
374- let $t01290612983 = getAssetInfo(assetIdAStr)
375- let pmtStrAssetIdA = $t01290612983._1
376- let pmtAssetNameA = $t01290612983._2
377- let pmtDecimalsA = $t01290612983._3
378- let $t01299213069 = getAssetInfo(assetIdBStr)
379- let pmtStrAssetIdB = $t01299213069._1
380- let pmtAssetNameB = $t01299213069._2
381- let pmtDecimalsB = $t01299213069._3
380+ let $t01317913256 = getAssetInfo(assetIdAStr)
381+ let pmtStrAssetIdA = $t01317913256._1
382+ let pmtAssetNameA = $t01317913256._2
383+ let pmtDecimalsA = $t01317913256._3
384+ let $t01326513342 = getAssetInfo(assetIdBStr)
385+ let pmtStrAssetIdB = $t01326513342._1
386+ let pmtAssetNameB = $t01326513342._2
387+ let pmtDecimalsB = $t01326513342._3
382388 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
383389 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
384390 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
385391 let shareInitialSupply = 0
386392 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
387393 let shareIssueId = calculateAssetId(shareIssue)
388394 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)]
389395 if (firstHarvest)
390396 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
391397 else $Tuple2(nil, $Tuple2(baseEntry, nil))
392398 }
393399 }
394400
395401
396402
397403 @Callable(i)
398404 func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
399405 then throw("Only admin can call this function")
400406 else if ((size(args) != 1))
401407 then throw("Wrong args size")
402408 else {
403409 let shareLimit = parseIntValue(args[0])
404410 $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil))
405411 }))
406412
407413
408414
409415 @Callable(i)
410416 func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
411417 let caller = Address(callerBytes)
412- let $t01549515571 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
413- let pmtAmount = $t01549515571._1
414- let pmtAssetId = $t01549515571._2
418+ let $t01576815844 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
419+ let pmtAmount = $t01576815844._1
420+ let pmtAssetId = $t01576815844._2
415421 let minAmountToReceive = parseIntValue(args[0])
416- let $t01563615712 = getPoolAssets(i.caller)
417- let strAssetIdA = $t01563615712._1
418- let strAssetIdB = $t01563615712._2
419- let assetIdA = $t01563615712._3
420- let assetIdB = $t01563615712._4
421- let $t01572115827 = getPoolBalances(i.caller, assetIdA, assetIdB)
422- let balanceA = $t01572115827._1
423- let balanceB = $t01572115827._2
424- let accountBalanceA = $t01572115827._3
425- let accountBalanceB = $t01572115827._4
422+ let $t01590915985 = getPoolAssets(i.caller)
423+ let strAssetIdA = $t01590915985._1
424+ let strAssetIdB = $t01590915985._2
425+ let assetIdA = $t01590915985._3
426+ let assetIdB = $t01590915985._4
427+ let $t01599416100 = getPoolBalances(i.caller, assetIdA, assetIdB)
428+ let balanceA = $t01599416100._1
429+ let balanceB = $t01599416100._2
430+ let accountBalanceA = $t01599416100._3
431+ let accountBalanceB = $t01599416100._4
426432 if ((size(args) != 1))
427433 then throw("Wrong args size")
428434 else if (if ((balanceA == 0))
429435 then true
430436 else (balanceB == 0))
431437 then throw("Can't exchange with zero balance")
432438 else if ((0 >= minAmountToReceive))
433439 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
434440 else if ((size(pAmounts) != 1))
435441 then throw("One attached payment expected")
436442 else if (!(containsElement([assetIdA, assetIdB], pmtAssetId)))
437443 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
438444 else if (if ((balanceA > accountBalanceA))
439445 then true
440446 else (balanceB > accountBalanceB))
441447 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
442448 else {
443- let $t01672716785 = getFeeParams(i.caller, i.originCaller)
444- let fee = $t01672716785._1
445- let govFee = $t01672716785._2
446- let $t01679817119 = if ((pmtAssetId == assetIdA))
447- then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee)
448- else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee)
449- let amountWithoutFee = $t01679817119._1
450- let amountWithFee = $t01679817119._2
451- let governanceReward = $t01679817119._3
452- let $t01713317442 = if ((pmtAssetId == assetIdA))
453- then $Tuple3((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward), assetIdB)
454- else $Tuple3(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount), assetIdA)
455- let newBalanceA = $t01713317442._1
456- let newBalanceB = $t01713317442._2
457- let assetIdSend = $t01713317442._3
458- let $t01745617690 = if ((pmtAssetId == assetIdA))
459- then $Tuple2(pmtAmount, (amountWithFee + governanceReward))
460- else $Tuple2((amountWithFee + governanceReward), pmtAmount)
461- let stakeAmountA = $t01745617690._1
462- let stakeAmountB = $t01745617690._2
449+ let $t01700017067 = getFeeParams(i.caller, i.originCaller)
450+ let fee = $t01700017067._1
451+ let govFee = $t01700017067._2
452+ let teamFee = $t01700017067._3
453+ let $t01708017431 = if ((pmtAssetId == assetIdA))
454+ then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee)
455+ else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee)
456+ let amountWithoutFee = $t01708017431._1
457+ let amountWithFee = $t01708017431._2
458+ let governanceReward = $t01708017431._3
459+ let teamReward = $t01708017431._4
460+ let $t01744517780 = if ((pmtAssetId == assetIdA))
461+ then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB)
462+ else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA)
463+ let newBalanceA = $t01744517780._1
464+ let newBalanceB = $t01744517780._2
465+ let assetIdSend = $t01744517780._3
466+ let $t01779418054 = if ((pmtAssetId == assetIdA))
467+ then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward))
468+ else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount)
469+ let stakeAmountA = $t01779418054._1
470+ let stakeAmountB = $t01779418054._2
463471 let stake1 = if (contains(stakingAssets, strAssetIdA))
464472 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
465473 else 0
466474 if ((stake1 == stake1))
467475 then {
468476 let stake2 = if (contains(stakingAssets, strAssetIdB))
469477 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil)
470478 else 0
471479 if ((stake2 == stake2))
472- then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend)], [amountWithFee, assetIdSend]))
480+ then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend), ScriptTransfer(teamBoxAddress, teamReward, assetIdSend)], [amountWithFee, assetIdSend]))
473481 else throw("Strict value is not equal to itself.")
474482 }
475483 else throw("Strict value is not equal to itself.")
476484 }
477485 })))
478486
479487
480488
481489 @Callable(i)
482490 func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
483491 let caller = Address(callerBytes)
484492 let pmtAssetIdA = parsePaymentAsset(pAssetIds[0])
485493 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
486494 let stakeFarming = (args[0] == "true")
487495 let lockType = parseIntValue(args[1])
488- let $t01893219022 = getPoolAssets(i.caller)
489- let strAssetIdA = $t01893219022._1
490- let strAssetIdB = $t01893219022._2
491- let assetIdA = $t01893219022._3
492- let assetIdB = $t01893219022._4
493- let shareAssetId = $t01893219022._5
494- let $t01903119155 = getPoolBalances(i.caller, assetIdA, assetIdB)
495- let balanceA = $t01903119155._1
496- let balanceB = $t01903119155._2
497- let accountBalanceA = $t01903119155._3
498- let accountBalanceB = $t01903119155._4
499- let shareAssetSupply = $t01903119155._5
496+ let $t01936919459 = getPoolAssets(i.caller)
497+ let strAssetIdA = $t01936919459._1
498+ let strAssetIdB = $t01936919459._2
499+ let assetIdA = $t01936919459._3
500+ let assetIdB = $t01936919459._4
501+ let shareAssetId = $t01936919459._5
502+ let $t01946819592 = getPoolBalances(i.caller, assetIdA, assetIdB)
503+ let balanceA = $t01946819592._1
504+ let balanceB = $t01946819592._2
505+ let accountBalanceA = $t01946819592._3
506+ let accountBalanceB = $t01946819592._4
507+ let shareAssetSupply = $t01946819592._5
500508 if ((size(args) != 2))
501509 then throw("Wrong args size")
502510 else if (if ((size(pAmounts) != 2))
503511 then (size(pAmounts) != 3)
504512 else false)
505513 then throw("Two or three payments expected")
506514 else if (if ((pmtAssetIdA != assetIdA))
507515 then true
508516 else (pmtAssetIdB != assetIdB))
509517 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
510518 else if (if ((balanceA > accountBalanceA))
511519 then true
512520 else (balanceB > accountBalanceB))
513521 then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3))
514522 then [AttachedPayment(if ((pAssetIds[2] == base58''))
515523 then unit
516524 else pAssetIds[2], pAmounts[2])]
517525 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
518526 else {
519- let $t02008820165 = getAssetInfo(pmtAssetIdA)
520- let pmtStrAssetIdA = $t02008820165._1
521- let pmtAssetNameA = $t02008820165._2
522- let pmtDecimalsA = $t02008820165._3
523- let $t02017820255 = getAssetInfo(pmtAssetIdB)
524- let pmtStrAssetIdB = $t02017820255._1
525- let pmtAssetNameB = $t02017820255._2
526- let pmtDecimalsB = $t02017820255._3
527+ let $t02052520602 = getAssetInfo(pmtAssetIdA)
528+ let pmtStrAssetIdA = $t02052520602._1
529+ let pmtAssetNameA = $t02052520602._2
530+ let pmtDecimalsA = $t02052520602._3
531+ let $t02061520692 = getAssetInfo(pmtAssetIdB)
532+ let pmtStrAssetIdB = $t02061520692._1
533+ let pmtAssetNameB = $t02061520692._2
534+ let pmtDecimalsB = $t02061520692._3
527535 let initial = ((balanceA + balanceB) == 0)
528- let $t02032221178 = if (initial)
536+ let $t02075921615 = if (initial)
529537 then $Tuple5(pAmounts[0], pAmounts[1], 0, pmtAssetIdA, toBigInt(1))
530538 else {
531539 let ratioShareTokensInA = fraction(scale16, toBigInt(pAmounts[0]), toBigInt(balanceA))
532540 let ratioShareTokensInB = fraction(scale16, toBigInt(pAmounts[1]), toBigInt(balanceB))
533541 if ((ratioShareTokensInB > ratioShareTokensInA))
534542 then {
535543 let pmt = fraction(pAmounts[0], balanceB, balanceA)
536544 $Tuple5(pAmounts[0], pmt, (pAmounts[1] - pmt), pmtAssetIdB, ratioShareTokensInA)
537545 }
538546 else {
539547 let pmt = fraction(pAmounts[1], balanceA, balanceB)
540548 $Tuple5(pmt, pAmounts[1], (pAmounts[0] - pmt), pmtAssetIdA, ratioShareTokensInB)
541549 }
542550 }
543- let pmtAmountA = $t02032221178._1
544- let pmtAmountB = $t02032221178._2
545- let change = $t02032221178._3
546- let changeAssetId = $t02032221178._4
547- let shareTokenRatio = $t02032221178._5
551+ let pmtAmountA = $t02075921615._1
552+ let pmtAmountB = $t02075921615._2
553+ let change = $t02075921615._3
554+ let changeAssetId = $t02075921615._4
555+ let shareTokenRatio = $t02075921615._5
548556 let shareTokenToPayAmount = if (initial)
549557 then {
550558 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
551559 fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
552560 }
553561 else toInt(fraction(shareTokenRatio, toBigInt(shareAssetSupply), scale16))
554562 if ((shareTokenToPayAmount == 0))
555563 then throw("Too small amount to replenish")
556564 else if ((0 > change))
557565 then throw("Change < 0")
558566 else {
559567 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
560568 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
561569 else 0
562570 if ((stake1 == stake1))
563571 then {
564572 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
565573 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
566574 else 0
567575 if ((stake2 == stake2))
568576 then {
569577 let shareTokenST = if (stakeFarming)
570578 then {
571579 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3))
572580 then [AttachedPayment(if ((pAssetIds[2] == base58''))
573581 then unit
574582 else pAssetIds[2], pAmounts[2])]
575583 else nil))
576584 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
577585 if ((reissue == reissue))
578586 then {
579587 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
580588 if ((stake3 == stake3))
581589 then nil
582590 else throw("Strict value is not equal to itself.")
583591 }
584592 else throw("Strict value is not equal to itself.")
585593 }
586594 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
587595 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil))
588596 }
589597 else throw("Strict value is not equal to itself.")
590598 }
591599 else throw("Strict value is not equal to itself.")
592600 }
593601 }
594602 })))
595603
596604
597605
598606 @Callable(i)
599607 func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
600608 let caller = Address(callerBytes)
601609 let pmtAssetId = parsePaymentAsset(pAssetIds[0])
602610 let pmtAmount = pAmounts[0]
603611 let virtGetMinAmount = parseIntValue(args[0])
604612 let stakeFarming = (args[1] == "true")
605613 let lockType = parseIntValue(args[2])
606- let $t02393324023 = getPoolAssets(i.caller)
607- let strAssetIdA = $t02393324023._1
608- let strAssetIdB = $t02393324023._2
609- let assetIdA = $t02393324023._3
610- let assetIdB = $t02393324023._4
611- let shareAssetId = $t02393324023._5
612- let $t02402824152 = getPoolBalances(i.caller, assetIdA, assetIdB)
613- let balanceA = $t02402824152._1
614- let balanceB = $t02402824152._2
615- let accountBalanceA = $t02402824152._3
616- let accountBalanceB = $t02402824152._4
617- let shareAssetSupply = $t02402824152._5
614+ let $t02437024460 = getPoolAssets(i.caller)
615+ let strAssetIdA = $t02437024460._1
616+ let strAssetIdB = $t02437024460._2
617+ let assetIdA = $t02437024460._3
618+ let assetIdB = $t02437024460._4
619+ let shareAssetId = $t02437024460._5
620+ let $t02446524589 = getPoolBalances(i.caller, assetIdA, assetIdB)
621+ let balanceA = $t02446524589._1
622+ let balanceB = $t02446524589._2
623+ let accountBalanceA = $t02446524589._3
624+ let accountBalanceB = $t02446524589._4
625+ let shareAssetSupply = $t02446524589._5
618626 let initial = ((balanceA + balanceB) == 0)
619627 if ((size(args) != 3))
620628 then throw("Wrong args size")
621629 else if (if ((size(pAmounts) != 1))
622630 then (size(pAmounts) != 2)
623631 else false)
624632 then throw("Two or one attached assets expected")
625633 else if (if ((pmtAssetId != assetIdA))
626634 then (pmtAssetId != assetIdB)
627635 else false)
628636 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
629637 else if (initial)
630638 then throw("For initial exchanger you need to use two tokens")
631639 else if (if ((balanceA > accountBalanceA))
632640 then true
633641 else (balanceB > accountBalanceB))
634642 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2))
635643 then [AttachedPayment(if ((pAssetIds[2] == base58''))
636644 then unit
637645 else pAssetIds[2], pAmounts[2])]
638646 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
639647 else {
640- let $t02506425122 = getFeeParams(i.caller, i.originCaller)
641- let fee = $t02506425122._1
642- let govFee = $t02506425122._2
643- let $t02513127293 = if ((pmtAssetId == assetIdA))
648+ let $t02550125568 = getFeeParams(i.caller, i.originCaller)
649+ let fee = $t02550125568._1
650+ let govFee = $t02550125568._2
651+ let teamFee = $t02550125568._3
652+ let $t02557727845 = if ((pmtAssetId == assetIdA))
644653 then {
645654 let virtPayAmount = calculateVirtPay(pmtAmount, balanceA, fee)
646- let $t02538625523 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee)
647- let amountWithoutFee = $t02538625523._1
648- let amountWithFee = $t02538625523._2
649- let governanceReward = $t02538625523._3
655+ let $t02584425999 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee, teamFee)
656+ let amountWithoutFee = $t02584425999._1
657+ let amountWithFee = $t02584425999._2
658+ let governanceReward = $t02584425999._3
659+ let tReward = $t02584425999._4
650660 let balanceAVirt = (balanceA + virtPayAmount)
651- let balanceBVirt = ((balanceB + amountWithoutFee) - governanceReward)
661+ let balanceBVirt = (((balanceB + amountWithoutFee) - governanceReward) - tReward)
652662 let newBalanceA = (balanceA + pmtAmount)
653- let newBalanceB = (balanceB - governanceReward)
663+ let newBalanceB = ((balanceB - governanceReward) - tReward)
654664 let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt))
655665 let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt))
656666 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(shareAssetSupply), scale16))
657- $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdB, strAssetIdB, strAssetIdA)
667+ $Tuple8(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, tReward, assetIdB, strAssetIdB, strAssetIdA)
658668 }
659669 else {
660670 let virtPayAmount = calculateVirtPay(pmtAmount, balanceB, fee)
661- let $t02639626533 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee)
662- let amountWithoutFee = $t02639626533._1
663- let amountWithFee = $t02639626533._2
664- let governanceReward = $t02639626533._3
665- let balanceAVirt = ((balanceA + amountWithoutFee) - governanceReward)
671+ let $t02690127056 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee, teamFee)
672+ let amountWithoutFee = $t02690127056._1
673+ let amountWithFee = $t02690127056._2
674+ let governanceReward = $t02690127056._3
675+ let tReward = $t02690127056._4
676+ let balanceAVirt = (((balanceA + amountWithoutFee) - governanceReward) - tReward)
666677 let balanceBVirt = (balanceB + virtPayAmount)
667- let newBalanceA = (balanceA - governanceReward)
678+ let newBalanceA = ((balanceA - governanceReward) - tReward)
668679 let newBalanceB = (balanceB + pmtAmount)
669680 let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt))
670681 let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt))
671682 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(shareAssetSupply), scale16))
672- $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdA, strAssetIdA, strAssetIdB)
683+ $Tuple8(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, tReward, assetIdA, strAssetIdA, strAssetIdB)
673684 }
674- let newBalanceA = $t02513127293._1
675- let newBalanceB = $t02513127293._2
676- let shareTokenToPayAmount = $t02513127293._3
677- let govReward = $t02513127293._4
678- let govRewardAsset = $t02513127293._5
679- let govRewardAssetStr = $t02513127293._6
680- let pmtAssetIdStr = $t02513127293._7
685+ let newBalanceA = $t02557727845._1
686+ let newBalanceB = $t02557727845._2
687+ let shareTokenToPayAmount = $t02557727845._3
688+ let govReward = $t02557727845._4
689+ let teamReward = $t02557727845._5
690+ let govRewardAsset = $t02557727845._6
691+ let govRewardAssetStr = $t02557727845._7
692+ let pmtAssetIdStr = $t02557727845._8
681693 if ((shareTokenToPayAmount == 0))
682694 then throw("Too small amount to replenish")
683695 else {
684696 let stake1 = if (contains(stakingAssets, pmtAssetIdStr))
685697 then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil)
686698 else 0
687699 if ((stake1 == stake1))
688700 then {
689701 let stake2 = if (contains(stakingAssets, govRewardAssetStr))
690- then invoke(i.caller, "stakeUnstake", [false, govReward, govRewardAssetStr], nil)
702+ then invoke(i.caller, "stakeUnstake", [false, (govReward + teamReward), govRewardAssetStr], nil)
691703 else 0
692704 if ((stake2 == stake2))
693705 then {
694706 let shareTokenST = if (stakeFarming)
695707 then {
696708 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2))
697709 then [AttachedPayment(if ((pAssetIds[1] == base58''))
698710 then unit
699711 else pAssetIds[1], pAmounts[1])]
700712 else nil))
701713 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
702714 if ((reissue == reissue))
703715 then {
704716 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
705717 if ((stake3 == stake3))
706718 then nil
707719 else throw("Strict value is not equal to itself.")
708720 }
709721 else throw("Strict value is not equal to itself.")
710722 }
711723 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
712- $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset)] ++ shareTokenST), nil))
724+ $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset), ScriptTransfer(teamBoxAddress, teamReward, govRewardAsset)] ++ shareTokenST), nil))
713725 }
714726 else throw("Strict value is not equal to itself.")
715727 }
716728 else throw("Strict value is not equal to itself.")
717729 }
718730 }
719731 })))
720732
721733
722734
723735 @Callable(i)
724736 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
725737 let time = lastBlock.timestamp
726738 let caller = Address(callerBytes)
727- let $t02920829298 = getPoolAssets(i.caller)
728- let strAssetIdA = $t02920829298._1
729- let strAssetIdB = $t02920829298._2
730- let assetIdA = $t02920829298._3
731- let assetIdB = $t02920829298._4
732- let shareAssetId = $t02920829298._5
733- let $t02930729431 = getPoolBalances(i.caller, assetIdA, assetIdB)
734- let balanceA = $t02930729431._1
735- let balanceB = $t02930729431._2
736- let accountBalanceA = $t02930729431._3
737- let accountBalanceB = $t02930729431._4
738- let shareAssetSupply = $t02930729431._5
739- let $t02944029820 = if ((size(pAmounts) == 1))
739+ let $t02985329943 = getPoolAssets(i.caller)
740+ let strAssetIdA = $t02985329943._1
741+ let strAssetIdB = $t02985329943._2
742+ let assetIdA = $t02985329943._3
743+ let assetIdB = $t02985329943._4
744+ let shareAssetId = $t02985329943._5
745+ let $t02995230076 = getPoolBalances(i.caller, assetIdA, assetIdB)
746+ let balanceA = $t02995230076._1
747+ let balanceB = $t02995230076._2
748+ let accountBalanceA = $t02995230076._3
749+ let accountBalanceB = $t02995230076._4
750+ let shareAssetSupply = $t02995230076._5
751+ let $t03008530465 = if ((size(pAmounts) == 1))
740752 then {
741753 let pAsset = parsePaymentAsset(pAssetIds[0])
742754 if ((pAsset != shareAssetId))
743755 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
744756 else $Tuple2(pAmounts[0], pAsset)
745757 }
746758 else $Tuple2(0, shareAssetId)
747- let pmtAmount = $t02944029820._1
748- let pmtAssetId = $t02944029820._2
759+ let pmtAmount = $t03008530465._1
760+ let pmtAssetId = $t03008530465._2
749761 if ((size(args) != 1))
750762 then throw("Wrong args size")
751763 else if ((size(pAmounts) > 1))
752764 then throw("One attached payment expected")
753765 else if (if ((balanceA > accountBalanceA))
754766 then true
755767 else (balanceB > accountBalanceB))
756768 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
757769 else {
758770 let unlockAmount = parseIntValue(valueOrElse(args[0], "0"))
759771 let unlock = if ((unlockAmount > 0))
760772 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
761773 else 0
762774 if ((unlock == unlock))
763775 then {
764776 let withdrawAmount = (pmtAmount + unlockAmount)
765777 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
766778 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
767779 let stake1 = if (contains(stakingAssets, strAssetIdA))
768780 then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
769781 else 0
770782 if ((stake1 == stake1))
771783 then {
772784 let stake2 = if (contains(stakingAssets, strAssetIdB))
773785 then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
774786 else 0
775787 if ((stake2 == stake2))
776788 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))
777789 else throw("Strict value is not equal to itself.")
778790 }
779791 else throw("Strict value is not equal to itself.")
780792 }
781793 else throw("Strict value is not equal to itself.")
782794 }
783795 }))
784796
785797
786798
787799 @Callable(i)
788800 func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
789801 let caller = Address(callerBytes)
790802 let withdrawAsset = if ((args[0] == ""))
791803 then unit
792804 else fromBase58String(args[0])
793- let $t03203832128 = getPoolAssets(i.caller)
794- let strAssetIdA = $t03203832128._1
795- let strAssetIdB = $t03203832128._2
796- let assetIdA = $t03203832128._3
797- let assetIdB = $t03203832128._4
798- let shareAssetId = $t03203832128._5
799- let $t03213732261 = getPoolBalances(i.caller, assetIdA, assetIdB)
800- let balanceA = $t03213732261._1
801- let balanceB = $t03213732261._2
802- let accountBalanceA = $t03213732261._3
803- let accountBalanceB = $t03213732261._4
804- let shareAssetSupply = $t03213732261._5
805- let $t03227032622 = if ((size(pAmounts) == 1))
805+ let $t03268332773 = getPoolAssets(i.caller)
806+ let strAssetIdA = $t03268332773._1
807+ let strAssetIdB = $t03268332773._2
808+ let assetIdA = $t03268332773._3
809+ let assetIdB = $t03268332773._4
810+ let shareAssetId = $t03268332773._5
811+ let $t03278232906 = getPoolBalances(i.caller, assetIdA, assetIdB)
812+ let balanceA = $t03278232906._1
813+ let balanceB = $t03278232906._2
814+ let accountBalanceA = $t03278232906._3
815+ let accountBalanceB = $t03278232906._4
816+ let shareAssetSupply = $t03278232906._5
817+ let $t03291533267 = if ((size(pAmounts) == 1))
806818 then {
807819 let pAsset = parsePaymentAsset(pAssetIds[0])
808820 if ((pAsset != shareAssetId))
809821 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
810822 else $Tuple2(pAmounts[0], pAsset)
811823 }
812824 else $Tuple2(0, shareAssetId)
813- let pmtAmount = $t03227032622._1
814- let pmtAssetId = $t03227032622._2
825+ let pmtAmount = $t03291533267._1
826+ let pmtAssetId = $t03291533267._2
815827 let virtMinToRecive = parseIntValue(args[1])
816828 if ((size(args) != 3))
817829 then throw("Wrong args size")
818830 else if ((size(pAmounts) > 1))
819831 then throw("One attached payment expected")
820832 else if ((pmtAssetId != shareAssetId))
821833 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
822834 else if (!(containsElement([assetIdA, assetIdB], withdrawAsset)))
823835 then throw("Incorrect withdraw asset.")
824836 else if (if ((balanceA > accountBalanceA))
825837 then true
826838 else (balanceB > accountBalanceB))
827839 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
828840 else {
829841 let unlockAmount = parseIntValue(valueOrElse(args[2], "0"))
830842 let unlock = if ((unlockAmount > 0))
831843 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
832844 else 0
833845 if ((unlock == unlock))
834846 then {
835847 let withdrawAmount = (pmtAmount + unlockAmount)
836848 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
837849 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
838- let $t03388933947 = getFeeParams(i.caller, i.originCaller)
839- let fee = $t03388933947._1
840- let govFee = $t03388933947._2
841- let $t03396034344 = if ((withdrawAsset == assetIdA))
842- then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee)
843- else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee)
844- let amountWithoutFee = $t03396034344._1
845- let amountWithFee = $t03396034344._2
846- let governanceReward = $t03396034344._3
847- let $t03435735615 = if ((withdrawAsset == assetIdA))
850+ let $t03453434601 = getFeeParams(i.caller, i.originCaller)
851+ let fee = $t03453434601._1
852+ let govFee = $t03453434601._2
853+ let teamFee = $t03453434601._3
854+ let $t03461435028 = if ((withdrawAsset == assetIdA))
855+ then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee)
856+ else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee)
857+ let amountWithoutFee = $t03461435028._1
858+ let amountWithFee = $t03461435028._2
859+ let governanceReward = $t03461435028._3
860+ let teamReward = $t03461435028._4
861+ let $t03504136351 = if ((withdrawAsset == assetIdA))
848862 then {
849863 let unstake = if (contains(stakingAssets, strAssetIdA))
850- then invoke(i.caller, "stakeUnstake", [false, ((amountToPayA + amountWithFee) + governanceReward), strAssetIdA], nil)
864+ then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil)
851865 else 0
852866 if ((unstake == unstake))
853- then $Tuple4((((balanceA - amountToPayA) - amountWithFee) - governanceReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)])
867+ then $Tuple4(((((balanceA - amountToPayA) - amountWithFee) - governanceReward) - teamReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)])
854868 else throw("Strict value is not equal to itself.")
855869 }
856870 else {
857871 let unstake = if (contains(stakingAssets, strAssetIdB))
858- then invoke(i.caller, "stakeUnstake", [false, ((amountToPayB + amountWithFee) + governanceReward), strAssetIdB], nil)
872+ then invoke(i.caller, "stakeUnstake", [false, (((amountToPayB + amountWithFee) + governanceReward) + teamReward), strAssetIdB], nil)
859873 else 0
860874 if ((unstake == unstake))
861- then $Tuple4(balanceA, (((balanceB - amountToPayB) - amountWithFee) - governanceReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
875+ then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
862876 else throw("Strict value is not equal to itself.")
863877 }
864- let newBalanceA = $t03435735615._1
865- let newBalanceB = $t03435735615._2
866- let govRewardAssetId = $t03435735615._3
867- let userTransfer = $t03435735615._4
868- $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId)] ++ userTransfer), nil))
878+ let newBalanceA = $t03504136351._1
879+ let newBalanceB = $t03504136351._2
880+ let govRewardAssetId = $t03504136351._3
881+ let userTransfer = $t03504136351._4
882+ $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))
869883 }
870884 else throw("Strict value is not equal to itself.")
871885 }
872886 })))
873887
874888
875889
876890 @Callable(i)
877891 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
878- let $t03629736373 = getPoolAssets(i.caller)
879- let strAssetIdA = $t03629736373._1
880- let strAssetIdB = $t03629736373._2
881- let assetIdA = $t03629736373._3
882- let assetIdB = $t03629736373._4
892+ let $t03711137187 = getPoolAssets(i.caller)
893+ let strAssetIdA = $t03711137187._1
894+ let strAssetIdB = $t03711137187._2
895+ let assetIdA = $t03711137187._3
896+ let assetIdB = $t03711137187._4
883897 let claim = if (if ((assetIdA == USDN))
884898 then true
885899 else (assetIdB == USDN))
886900 then invoke(i.caller, "claimNetrinoRewards", nil, nil)
887901 else 0
888902 if ((claim == claim))
889903 then {
890- let $t03653336639 = getPoolBalances(i.caller, assetIdA, assetIdB)
891- let balanceA = $t03653336639._1
892- let balanceB = $t03653336639._2
893- let accountBalanceA = $t03653336639._3
894- let accountBalanceB = $t03653336639._4
904+ let $t03734737453 = getPoolBalances(i.caller, assetIdA, assetIdB)
905+ let balanceA = $t03734737453._1
906+ let balanceB = $t03734737453._2
907+ let accountBalanceA = $t03734737453._3
908+ let accountBalanceB = $t03734737453._4
895909 let amountEnrollA = (accountBalanceA - balanceA)
896910 let amountEnrollB = (accountBalanceB - balanceB)
897911 if ((size(args) != 0))
898912 then throw("Wrong args size")
899913 else if ((moneyBoxAddress != i.originCaller))
900914 then throw("Only the wallet can call this function")
901915 else if (if ((0 > amountEnrollA))
902916 then true
903917 else (0 > amountEnrollB))
904918 then suspend("Enroll amount negative")
905919 else if (if ((amountEnrollA == 0))
906920 then (amountEnrollB == 0)
907921 else false)
908922 then throw("No money to take")
909923 else {
910924 let stake1 = if (if (contains(stakingAssets, strAssetIdA))
911925 then (amountEnrollA > 0)
912926 else false)
913927 then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
914928 else 0
915929 if ((stake1 == stake1))
916930 then {
917931 let stake2 = if (if (contains(stakingAssets, strAssetIdB))
918932 then (amountEnrollB > 0)
919933 else false)
920934 then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
921935 else 0
922936 if ((stake2 == stake2))
923937 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil))
924938 else throw("Strict value is not equal to itself.")
925939 }
926940 else throw("Strict value is not equal to itself.")
927941 }
928942 }
929943 else throw("Strict value is not equal to itself.")
930944 }))
931945
932946
933947 @Verifier(tx)
934948 func verify () = {
935949 let multiSignedByAdmins = {
936950 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
937951 then 1
938952 else 0
939953 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
940954 then 1
941955 else 0
942956 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
943957 then 1
944958 else 0
945959 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
946960 }
947961 multiSignedByAdmins
948962 }
949963

github/deemru/w8io/169f3d6 
173.46 ms