tx · 4DUQpCS4644kBbhWT1ojvuiDemuxV8dMhttmdzEezZXU

3MudYAdb2aRxJGx7YHraAtN7v6dXCVHUFKx:  -0.04700000 Waves

2023.08.23 12:49 [2723121] smart account 3MudYAdb2aRxJGx7YHraAtN7v6dXCVHUFKx > SELF 0.00000000 Waves

{ "type": 13, "id": "4DUQpCS4644kBbhWT1ojvuiDemuxV8dMhttmdzEezZXU", "fee": 4700000, "feeAssetId": null, "timestamp": 1692784226021, "version": 2, "chainId": 84, "sender": "3MudYAdb2aRxJGx7YHraAtN7v6dXCVHUFKx", "senderPublicKey": "FGk4k1DFjx16u4CWSy96FFccU9X7X6Q4sw1NhmDv3Vr4", "proofs": [ "4Wzn4DBs6HN7BRXGTJZnhduQQwQH8LFpZ88CjtXyLLzqtAQ5dMU6kFasBb9XM1PJXCbpcLmUpSyv1YSHwei759aM", "5kbborNPvZwFTkdSq4rjU6aAjf4yy9VRy5f9cLN8RcSS5HTnwJ8gMr9VpqyLCm3FxVgPuxFyycW8QLtgqMmgysnS" ], "script": "base64:BgJyCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESVAAHdmVyc2lvbgIFMS4wLjAACGtWZXJzaW9uAgd2ZXJzaW9uAAdrQWN0aXZlAgZhY3RpdmUAC2tEZXByZWNhdGVkAgtkZXByZWNhdGVkXwAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQACWtCYWxhbmNlQQIPQV9hc3NldF9iYWxhbmNlAAlrQmFsYW5jZUICD0JfYXNzZXRfYmFsYW5jZQANa0JhbGFuY2VJbml0QQIMQV9hc3NldF9pbml0AA1rQmFsYW5jZUluaXRCAgxCX2Fzc2V0X2luaXQADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X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AwIIBQJ0eAZwcm9vZnMAAQUMYWRtaW5QdWJLZXkyAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUMYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAACBRNtdWx0aVNpZ25lZEJ5QWRtaW5zftomcA==", "height": 2723121, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7JHcBzvYYSZh8LWvR9oxWSPdGUtDb7VRH6GfwoxKJ4y7 Next: GU5mAa2zVz3uzSFK36n4ZKRj9UW15QMLV8PYmb99qpX8 Diff:
OldNewDifferences
5151
5252 let kEURNAssetId = "eurn_asset_id"
5353
54-let kL2MPAssetId = "l2mp_asset_id"
55-
5654 let kStakingAssets = "staking_assets"
5755
5856 let kOracleActive = "active_all_contracts"
8482 let kGovAddress = "governance_address"
8583
8684 let kFarmingAddress = "farming_address"
87-
88-let kL2MPAddress = "staking_l2mp_address"
8985
9086 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
9187
119115
120116 let EURN = getBase58FromOracle(kEURNAssetId)
121117
122-let L2MP = getBase58FromOracle(kL2MPAssetId)
123-
124118 let stakingAssets = getStringValue(oracle, kStakingAssets)
125119
126120 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
127121
128122 let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress))
129-
130-let stakingL2MPAddress = Address(getBase58FromOracle(kL2MPAddress))
131123
132124 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
133125
162154 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool)))
163155 else if ((aId == EURN))
164156 then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool)))
165- else if ((aId == L2MP))
166- then {
167- let available = {
168- let @ = invoke(stakingL2MPAddress, "getUserAssetsREADONLY", [toString(pool)], nil)
169- if ($isInstanceOf(@, "(Int, Int, BigInt, Int, Int)"))
170- then @
171- else throw(($getType(@) + " couldn't be cast to (Int, Int, BigInt, Int, Int)"))
172- }
173- if ((available == available))
174- then available._2
175- else throw("Strict value is not equal to itself.")
176- }
177- else 0
157+ else 0
178158 case _: Unit =>
179159 valueOrElse(getInteger(pool, kLeasingAmount), 0)
180160 case _ =>
191171
192172 func getAssetInfo (assetId) = match assetId {
193173 case id: String|ByteVector =>
194- let $t044804652 = match id {
174+ let $t040794251 = match id {
195175 case aId: ByteVector =>
196176 $Tuple2(toBase58String(aId), aId)
197177 case aId: String =>
199179 case _ =>
200180 throw("Match error")
201181 }
202- let stringId = $t044804652._1
203- let bytesId = $t044804652._2
182+ let stringId = $t040794251._1
183+ let bytesId = $t040794251._2
204184 let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist"))
205185 $Tuple3(stringId, info.name, info.decimals)
206186 case waves: Unit =>
262242 }
263243
264244
265-func parsePaymentAsset (assetId) = if ((assetId == base58''))
266- then unit
267- else assetId
245+func parsePaymentAsset (assetId) = match assetId {
246+ case id: ByteVector =>
247+ if ((id == base58''))
248+ then unit
249+ else id
250+ case id: String =>
251+ if (if ((id == "WAVES"))
252+ then true
253+ else (id == ""))
254+ then unit
255+ else fromBase58String(id)
256+ case _ =>
257+ throw("Match error")
258+}
259+
260+
261+func assetToStr (assetId) = match assetId {
262+ case id: ByteVector =>
263+ toBase58String(id)
264+ case waves: Unit =>
265+ "WAVES"
266+ case _ =>
267+ throw("Match error")
268+}
268269
269270
270271 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))
292293 let stakedAmountB = stakedAmount(assetIdB, pool)
293294 let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA)
294295 let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB)
295- $Tuple6(balanceA, balanceB, accountBalanceA, accountBalanceB, stakedAmountA, stakedAmountB)
296+ let shareSupply = getIntegerValue(pool, kShareAssetSupply)
297+ $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply)
296298 }
297-
298-
299-func getLpSupply (pool) = getIntegerValue(pool, kShareAssetSupply)
300299
301300
302301 func getPoolAssets (pool) = {
323322
324323
325324 func calcLPAmountReplensishTwoTokens (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,shareAssetSupply) = {
326- let $t0999310065 = getAssetInfo(pmtIdA)
327- let pmtStrAssetIdA = $t0999310065._1
328- let pmtAssetNameA = $t0999310065._2
329- let pmtDecimalsA = $t0999310065._3
330- let $t01007010142 = getAssetInfo(pmtIdB)
331- let pmtStrAssetIdB = $t01007010142._1
332- let pmtAssetNameB = $t01007010142._2
333- let pmtDecimalsB = $t01007010142._3
325+ let $t098679939 = getAssetInfo(pmtIdA)
326+ let pmtStrAssetIdA = $t098679939._1
327+ let pmtAssetNameA = $t098679939._2
328+ let pmtDecimalsA = $t098679939._3
329+ let $t0994410016 = getAssetInfo(pmtIdB)
330+ let pmtStrAssetIdB = $t0994410016._1
331+ let pmtAssetNameB = $t0994410016._2
332+ let pmtDecimalsB = $t0994410016._3
334333 let initial = ((balA + balB) == 0)
335- let $t01018510844 = if (initial)
334+ let $t01005910718 = if (initial)
336335 then $Tuple5(pmtA, pmtB, 0, pmtIdA, toBigInt(1))
337336 else {
338337 let ratioShareTokensInA = fraction(scale16, toBigInt(pmtA), toBigInt(balA))
347346 $Tuple5(pmt, pmtB, (pmtA - pmt), pmtIdA, ratioShareTokensInB)
348347 }
349348 }
350- let pmtAmountA = $t01018510844._1
351- let pmtAmountB = $t01018510844._2
352- let change = $t01018510844._3
353- let changeAssetId = $t01018510844._4
354- let shareTokenRatio = $t01018510844._5
349+ let pmtAmountA = $t01005910718._1
350+ let pmtAmountB = $t01005910718._2
351+ let change = $t01005910718._3
352+ let changeAssetId = $t01005910718._4
353+ let shareTokenRatio = $t01005910718._5
355354 let shareTokenToPayAmount = if (initial)
356355 then {
357356 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
365364 func calcLPAmountReplenishOneToken (pmtAmount,pmtAssetId,aId,bId,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = if ((pmtAssetId == aId))
366365 then {
367366 let virtPayAmount = calculateVirtPay(pmtAmount, balA, fee)
368- let $t01170811855 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
369- let amountWithoutFee = $t01170811855._1
370- let amountWithFee = $t01170811855._2
371- let governanceReward = $t01170811855._3
372- let tReward = $t01170811855._4
367+ let $t01158211729 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
368+ let amountWithoutFee = $t01158211729._1
369+ let amountWithFee = $t01158211729._2
370+ let governanceReward = $t01158211729._3
371+ let tReward = $t01158211729._4
373372 let balanceAVirt = (balA + virtPayAmount)
374373 let balanceBVirt = (((balB + amountWithoutFee) - governanceReward) - tReward)
375374 let newBalanceA = (balA + pmtAmount)
383382 }
384383 else {
385384 let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee)
386- let $t01289913046 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
387- let amountWithoutFee = $t01289913046._1
388- let amountWithFee = $t01289913046._2
389- let governanceReward = $t01289913046._3
390- let tReward = $t01289913046._4
385+ let $t01277312920 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
386+ let amountWithoutFee = $t01277312920._1
387+ let amountWithFee = $t01277312920._2
388+ let governanceReward = $t01277312920._3
389+ let tReward = $t01277312920._4
391390 let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward)
392391 let balanceBVirt = (balB + virtPayAmount)
393392 let newBalanceA = ((balA - governanceReward) - tReward)
402401
403402
404403 func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = {
405- let $t01421314361 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
406- let lpTwoAmount = $t01421314361._1
407- let change = $t01421314361._2
408- let changeAssetId = $t01421314361._3
409- let pmtAmountA = $t01421314361._4
410- let pmtAmountB = $t01421314361._5
404+ let $t01408714235 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
405+ let lpTwoAmount = $t01408714235._1
406+ let change = $t01408714235._2
407+ let changeAssetId = $t01408714235._3
408+ let pmtAmountA = $t01408714235._4
409+ let pmtAmountB = $t01408714235._5
411410 if ((change > 0))
412411 then {
413- let $t01439314627 = calcLPAmountReplenishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
414- let lpOne = $t01439314627._1
415- let newBalanceA = $t01439314627._2
416- let newBalanceB = $t01439314627._3
417- let governanceReward = $t01439314627._4
418- let tReward = $t01439314627._5
419- let gId = $t01439314627._6
420- let loss = $t01439314627._7
412+ let $t01426714501 = calcLPAmountReplenishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
413+ let lpOne = $t01426714501._1
414+ let newBalanceA = $t01426714501._2
415+ let newBalanceB = $t01426714501._3
416+ let governanceReward = $t01426714501._4
417+ let tReward = $t01426714501._5
418+ let gId = $t01426714501._6
419+ let loss = $t01426714501._7
421420 $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId)
422421 }
423422 else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit)
425424
426425
427426 @Callable(i)
427+func howManyYouPayREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
428+ let caller = Address(callerBytes)
429+ let $t01486914953 = $Tuple2(parseIntValue(args[0]), parsePaymentAsset(args[1]))
430+ let getAmount = $t01486914953._1
431+ let getAssetId = $t01486914953._2
432+ let $t01496215038 = getPoolAssets(i.caller)
433+ let strAssetIdA = $t01496215038._1
434+ let strAssetIdB = $t01496215038._2
435+ let assetIdA = $t01496215038._3
436+ let assetIdB = $t01496215038._4
437+ let $t01504715153 = getPoolBalances(i.caller, assetIdA, assetIdB)
438+ let balanceA = $t01504715153._1
439+ let balanceB = $t01504715153._2
440+ let accountBalanceA = $t01504715153._3
441+ let accountBalanceB = $t01504715153._4
442+ if (if ((balanceA == 0))
443+ then true
444+ else (balanceB == 0))
445+ then throw("Can't exchange with zero balance")
446+ else if (!(containsElement([assetIdA, assetIdB], getAssetId)))
447+ then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
448+ else {
449+ let $t01544715514 = getFeeParams(i.caller, i.originCaller)
450+ let fee = $t01544715514._1
451+ let govFee = $t01544715514._2
452+ let teamFee = $t01544715514._3
453+ let $t01552715929 = {
454+ let amntGetNoFee = fraction(getAmount, feeScale6, (feeScale6 - fee), CEILING)
455+ if ((getAssetId == assetIdA))
456+ then $Tuple2(fraction(amntGetNoFee, balanceB, (balanceA - amntGetNoFee), CEILING), assetIdB)
457+ else $Tuple2(fraction(amntGetNoFee, balanceA, (balanceB - amntGetNoFee), CEILING), assetIdA)
458+ }
459+ let amountToPay = $t01552715929._1
460+ let assetToPay = $t01552715929._2
461+ $Tuple2(nil, $Tuple2(nil, [amountToPay, assetToStr(assetToPay)]))
462+ }
463+ }
464+
465+
466+
467+@Callable(i)
468+func howManyYouGetREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
469+ let caller = Address(callerBytes)
470+ let $t01618116265 = $Tuple2(parseIntValue(args[0]), parsePaymentAsset(args[1]))
471+ let pmtAmount = $t01618116265._1
472+ let pmtAssetId = $t01618116265._2
473+ let $t01627416350 = getPoolAssets(i.caller)
474+ let strAssetIdA = $t01627416350._1
475+ let strAssetIdB = $t01627416350._2
476+ let assetIdA = $t01627416350._3
477+ let assetIdB = $t01627416350._4
478+ let $t01635916465 = getPoolBalances(i.caller, assetIdA, assetIdB)
479+ let balanceA = $t01635916465._1
480+ let balanceB = $t01635916465._2
481+ let accountBalanceA = $t01635916465._3
482+ let accountBalanceB = $t01635916465._4
483+ if (if ((balanceA == 0))
484+ then true
485+ else (balanceB == 0))
486+ then throw("Can't exchange with zero balance")
487+ else if (!(containsElement([assetIdA, assetIdB], pmtAssetId)))
488+ then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
489+ else {
490+ let $t01675916826 = getFeeParams(i.caller, i.originCaller)
491+ let fee = $t01675916826._1
492+ let govFee = $t01675916826._2
493+ let teamFee = $t01675916826._3
494+ let $t01683917156 = if ((pmtAssetId == assetIdA))
495+ then calculateFees(pmtAmount, 0, balanceA, balanceB, fee, govFee, teamFee)
496+ else calculateFees(pmtAmount, 0, balanceB, balanceA, fee, govFee, teamFee)
497+ let amountWithoutFee = $t01683917156._1
498+ let amountWithFee = $t01683917156._2
499+ let governanceReward = $t01683917156._3
500+ let teamReward = $t01683917156._4
501+ let assetIdSend = if ((pmtAssetId == assetIdA))
502+ then assetIdB
503+ else assetIdA
504+ $Tuple2(nil, $Tuple2(nil, [amountWithFee, assetToStr(assetIdSend), governanceReward, teamReward]))
505+ }
506+ }
507+
508+
509+
510+@Callable(i)
428511 func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
429- let $t01496315053 = getPoolAssets(i.caller)
430- let strAssetIdA = $t01496315053._1
431- let strAssetIdB = $t01496315053._2
432- let assetIdA = $t01496315053._3
433- let assetIdB = $t01496315053._4
434- let shareAssetId = $t01496315053._5
435- let $t01505815140 = getPoolBalances(i.caller, assetIdA, assetIdB)
436- let balA = $t01505815140._1
437- let balB = $t01505815140._2
438- let accBalA = $t01505815140._3
439- let accBalB = $t01505815140._4
440- let lpSupply = getLpSupply(i.caller)
512+ let $t01749417584 = getPoolAssets(i.caller)
513+ let strAssetIdA = $t01749417584._1
514+ let strAssetIdB = $t01749417584._2
515+ let assetIdA = $t01749417584._3
516+ let assetIdB = $t01749417584._4
517+ let shareAssetId = $t01749417584._5
518+ let $t01758917681 = getPoolBalances(i.caller, assetIdA, assetIdB)
519+ let balA = $t01758917681._1
520+ let balB = $t01758917681._2
521+ let accBalA = $t01758917681._3
522+ let accBalB = $t01758917681._4
523+ let lpSupply = $t01758917681._5
441524 let pmtA = parseIntValue(args[0])
442525 let pmtB = parseIntValue(args[1])
443526 let virtGetMinAmount = parseIntValue(args[2])
444- let $t01531515382 = getFeeParams(i.caller, i.originCaller)
445- let fee = $t01531515382._1
446- let govFee = $t01531515382._2
447- let teamFee = $t01531515382._3
448- let $t01538715579 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
449- let lp = $t01538715579._1
450- let loss = $t01538715579._2
451- let newBalanceA = $t01538715579._3
452- let newBalanceB = $t01538715579._4
453- let governanceReward = $t01538715579._5
454- let tReward = $t01538715579._6
455- let aId = $t01538715579._7
527+ let $t01781517882 = getFeeParams(i.caller, i.originCaller)
528+ let fee = $t01781517882._1
529+ let govFee = $t01781517882._2
530+ let teamFee = $t01781517882._3
531+ let $t01788718079 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
532+ let lp = $t01788718079._1
533+ let loss = $t01788718079._2
534+ let newBalanceA = $t01788718079._3
535+ let newBalanceB = $t01788718079._4
536+ let governanceReward = $t01788718079._5
537+ let tReward = $t01788718079._6
538+ let aId = $t01788718079._7
456539 $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId]))
457540 }
458541
460543
461544 @Callable(i)
462545 func calcLPReplenishTwoTokensREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
463- let $t01582215912 = getPoolAssets(i.caller)
464- let strAssetIdA = $t01582215912._1
465- let strAssetIdB = $t01582215912._2
466- let assetIdA = $t01582215912._3
467- let assetIdB = $t01582215912._4
468- let shareAssetId = $t01582215912._5
469- let $t01591715999 = getPoolBalances(i.caller, assetIdA, assetIdB)
470- let balA = $t01591715999._1
471- let balB = $t01591715999._2
472- let accBalA = $t01591715999._3
473- let accBalB = $t01591715999._4
474- let lpSupply = getLpSupply(i.caller)
546+ let $t01832218412 = getPoolAssets(i.caller)
547+ let strAssetIdA = $t01832218412._1
548+ let strAssetIdB = $t01832218412._2
549+ let assetIdA = $t01832218412._3
550+ let assetIdB = $t01832218412._4
551+ let shareAssetId = $t01832218412._5
552+ let $t01841718509 = getPoolBalances(i.caller, assetIdA, assetIdB)
553+ let balA = $t01841718509._1
554+ let balB = $t01841718509._2
555+ let accBalA = $t01841718509._3
556+ let accBalB = $t01841718509._4
557+ let lpSupply = $t01841718509._5
475558 let pmtA = parseIntValue(args[0])
476559 let pmtB = parseIntValue(args[1])
477- let $t01612316266 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply)
478- let lp = $t01612316266._1
479- let change = $t01612316266._2
480- let changeAssetId = $t01612316266._3
481- let pmtAmountA = $t01612316266._4
482- let pmtAmountB = $t01612316266._5
560+ let $t01859218735 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply)
561+ let lp = $t01859218735._1
562+ let change = $t01859218735._2
563+ let changeAssetId = $t01859218735._3
564+ let pmtAmountA = $t01859218735._4
565+ let pmtAmountB = $t01859218735._5
483566 $Tuple2(nil, $Tuple2(nil, [lp, change, changeAssetId, pmtAmountA, pmtAmountB]))
484567 }
485568
487570
488571 @Callable(i)
489572 func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
490- let $t01647716567 = getPoolAssets(i.caller)
491- let strAssetIdA = $t01647716567._1
492- let strAssetIdB = $t01647716567._2
493- let assetIdA = $t01647716567._3
494- let assetIdB = $t01647716567._4
495- let shareAssetId = $t01647716567._5
496- let $t01657216678 = getPoolBalances(i.caller, assetIdA, assetIdB)
497- let balanceA = $t01657216678._1
498- let balanceB = $t01657216678._2
499- let accountBalanceA = $t01657216678._3
500- let accountBalanceB = $t01657216678._4
501- let shareAssetSupply = getLpSupply(i.caller)
573+ let $t01894619036 = getPoolAssets(i.caller)
574+ let strAssetIdA = $t01894619036._1
575+ let strAssetIdB = $t01894619036._2
576+ let assetIdA = $t01894619036._3
577+ let assetIdB = $t01894619036._4
578+ let shareAssetId = $t01894619036._5
579+ let $t01904119165 = getPoolBalances(i.caller, assetIdA, assetIdB)
580+ let balanceA = $t01904119165._1
581+ let balanceB = $t01904119165._2
582+ let accountBalanceA = $t01904119165._3
583+ let accountBalanceB = $t01904119165._4
584+ let shareAssetSupply = $t01904119165._5
502585 let withdrawAmount = parseIntValue(args[0])
503- let $t01678116943 = if ((size(args) == 3))
586+ let $t01921919381 = if ((size(args) == 3))
504587 then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2]))
505588 else $Tuple2(balanceA, balanceB)
506- let balA = $t01678116943._1
507- let balB = $t01678116943._2
589+ let balA = $t01921919381._1
590+ let balB = $t01921919381._2
508591 let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply)
509592 let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply)
510593 $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB]))
515598 @Callable(i)
516599 func init (callerBytes,args,pAmounts,pAssetIds) = {
517600 let caller = Address(callerBytes)
518- let $t01729817376 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
519- let pmtAmountA = $t01729817376._1
520- let pmtAssetIdA = $t01729817376._2
521- let $t01738117459 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
522- let pmtAmountB = $t01738117459._1
523- let pmtAssetIdB = $t01738117459._2
601+ let $t01973619814 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
602+ let pmtAmountA = $t01973619814._1
603+ let pmtAssetIdA = $t01973619814._2
604+ let $t01981919897 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
605+ let pmtAmountB = $t01981919897._1
606+ let pmtAssetIdB = $t01981919897._2
524607 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
525608 then throw("Only admin can call this function")
526609 else if ((size(args) != 1))
530613 else if ((pmtAssetIdA == pmtAssetIdB))
531614 then throw("Assets must be different")
532615 else {
533- let $t01789417971 = getAssetInfo(pmtAssetIdA)
534- let pmtStrAssetIdA = $t01789417971._1
535- let pmtAssetNameA = $t01789417971._2
536- let pmtDecimalsA = $t01789417971._3
537- let $t01798018057 = getAssetInfo(pmtAssetIdB)
538- let pmtStrAssetIdB = $t01798018057._1
539- let pmtAssetNameB = $t01798018057._2
540- let pmtDecimalsB = $t01798018057._3
616+ let $t02033220409 = getAssetInfo(pmtAssetIdA)
617+ let pmtStrAssetIdA = $t02033220409._1
618+ let pmtAssetNameA = $t02033220409._2
619+ let pmtDecimalsA = $t02033220409._3
620+ let $t02041820495 = getAssetInfo(pmtAssetIdB)
621+ let pmtStrAssetIdB = $t02041820495._1
622+ let pmtAssetNameB = $t02041820495._2
623+ let pmtDecimalsB = $t02041820495._3
541624 let firstHarvest = (args[0] == "true")
542625 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
543626 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
574657 @Callable(i)
575658 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
576659 let caller = Address(callerBytes)
577- let $t02027820478 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
578- let amtAssetA = $t02027820478._1
579- let amtAssetB = $t02027820478._2
580- let assetIdAStr = $t02027820478._3
581- let assetIdBStr = $t02027820478._4
582- let firstHarvest = $t02027820478._5
660+ let $t02271622916 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
661+ let amtAssetA = $t02271622916._1
662+ let amtAssetB = $t02271622916._2
663+ let assetIdAStr = $t02271622916._3
664+ let assetIdBStr = $t02271622916._4
665+ let firstHarvest = $t02271622916._5
583666 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
584667 then throw("Only admin can call this function")
585668 else if ((size(args) != 5))
589672 else if ((assetIdAStr == assetIdBStr))
590673 then throw("Assets must be different")
591674 else {
592- let $t02091320990 = getAssetInfo(assetIdAStr)
593- let pmtStrAssetIdA = $t02091320990._1
594- let pmtAssetNameA = $t02091320990._2
595- let pmtDecimalsA = $t02091320990._3
596- let $t02099921076 = getAssetInfo(assetIdBStr)
597- let pmtStrAssetIdB = $t02099921076._1
598- let pmtAssetNameB = $t02099921076._2
599- let pmtDecimalsB = $t02099921076._3
675+ let $t02335123428 = getAssetInfo(assetIdAStr)
676+ let pmtStrAssetIdA = $t02335123428._1
677+ let pmtAssetNameA = $t02335123428._2
678+ let pmtDecimalsA = $t02335123428._3
679+ let $t02343723514 = getAssetInfo(assetIdBStr)
680+ let pmtStrAssetIdB = $t02343723514._1
681+ let pmtAssetNameB = $t02343723514._2
682+ let pmtDecimalsB = $t02343723514._3
600683 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
601684 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
602685 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
627710 @Callable(i)
628711 func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
629712 let caller = Address(callerBytes)
630- let $t02350223578 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
631- let pmtAmount = $t02350223578._1
632- let pmtAssetId = $t02350223578._2
713+ let $t02594026016 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
714+ let pmtAmount = $t02594026016._1
715+ let pmtAssetId = $t02594026016._2
633716 let minAmountToReceive = parseIntValue(args[0])
634- let $t02364323719 = getPoolAssets(i.caller)
635- let strAssetIdA = $t02364323719._1
636- let strAssetIdB = $t02364323719._2
637- let assetIdA = $t02364323719._3
638- let assetIdB = $t02364323719._4
639- let $t02372823834 = getPoolBalances(i.caller, assetIdA, assetIdB)
640- let balanceA = $t02372823834._1
641- let balanceB = $t02372823834._2
642- let accountBalanceA = $t02372823834._3
643- let accountBalanceB = $t02372823834._4
717+ let $t02608126157 = getPoolAssets(i.caller)
718+ let strAssetIdA = $t02608126157._1
719+ let strAssetIdB = $t02608126157._2
720+ let assetIdA = $t02608126157._3
721+ let assetIdB = $t02608126157._4
722+ let $t02616626272 = getPoolBalances(i.caller, assetIdA, assetIdB)
723+ let balanceA = $t02616626272._1
724+ let balanceB = $t02616626272._2
725+ let accountBalanceA = $t02616626272._3
726+ let accountBalanceB = $t02616626272._4
644727 if ((size(args) != 1))
645728 then throw("Wrong args size")
646729 else if (if ((balanceA == 0))
656739 else if (if ((balanceA > accountBalanceA))
657740 then true
658741 else (balanceB > accountBalanceB))
659- then $Tuple2(nil, $Tuple2(([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)), nil))
742+ then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
660743 else {
661- let $t02472324790 = getFeeParams(i.caller, i.originCaller)
662- let fee = $t02472324790._1
663- let govFee = $t02472324790._2
664- let teamFee = $t02472324790._3
665- let $t02480325154 = if ((pmtAssetId == assetIdA))
744+ let $t02717227239 = getFeeParams(i.caller, i.originCaller)
745+ let fee = $t02717227239._1
746+ let govFee = $t02717227239._2
747+ let teamFee = $t02717227239._3
748+ let $t02725227603 = if ((pmtAssetId == assetIdA))
666749 then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee)
667750 else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee)
668- let amountWithoutFee = $t02480325154._1
669- let amountWithFee = $t02480325154._2
670- let governanceReward = $t02480325154._3
671- let teamReward = $t02480325154._4
672- let $t02516825503 = if ((pmtAssetId == assetIdA))
751+ let amountWithoutFee = $t02725227603._1
752+ let amountWithFee = $t02725227603._2
753+ let governanceReward = $t02725227603._3
754+ let teamReward = $t02725227603._4
755+ let $t02761727952 = if ((pmtAssetId == assetIdA))
673756 then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB)
674757 else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA)
675- let newBalanceA = $t02516825503._1
676- let newBalanceB = $t02516825503._2
677- let assetIdSend = $t02516825503._3
678- let $t02551725777 = if ((pmtAssetId == assetIdA))
758+ let newBalanceA = $t02761727952._1
759+ let newBalanceB = $t02761727952._2
760+ let assetIdSend = $t02761727952._3
761+ let $t02796628226 = if ((pmtAssetId == assetIdA))
679762 then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward))
680763 else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount)
681- let stakeAmountA = $t02551725777._1
682- let stakeAmountB = $t02551725777._2
764+ let stakeAmountA = $t02796628226._1
765+ let stakeAmountB = $t02796628226._2
683766 let stake1 = if (contains(stakingAssets, strAssetIdA))
684767 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
685768 else 0
705788 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
706789 let stakeFarming = (args[0] == "true")
707790 let lockType = parseIntValue(args[1])
708- let $t02709227182 = getPoolAssets(i.caller)
709- let strAssetIdA = $t02709227182._1
710- let strAssetIdB = $t02709227182._2
711- let assetIdA = $t02709227182._3
712- let assetIdB = $t02709227182._4
713- let shareAssetId = $t02709227182._5
714- let $t02719127297 = getPoolBalances(i.caller, assetIdA, assetIdB)
715- let balanceA = $t02719127297._1
716- let balanceB = $t02719127297._2
717- let accountBalanceA = $t02719127297._3
718- let accountBalanceB = $t02719127297._4
719- let shareAssetSupply = getLpSupply(i.caller)
791+ let $t02954129631 = getPoolAssets(i.caller)
792+ let strAssetIdA = $t02954129631._1
793+ let strAssetIdB = $t02954129631._2
794+ let assetIdA = $t02954129631._3
795+ let assetIdB = $t02954129631._4
796+ let shareAssetId = $t02954129631._5
797+ let $t02964029764 = getPoolBalances(i.caller, assetIdA, assetIdB)
798+ let balanceA = $t02964029764._1
799+ let balanceB = $t02964029764._2
800+ let accountBalanceA = $t02964029764._3
801+ let accountBalanceB = $t02964029764._4
802+ let shareAssetSupply = $t02964029764._5
720803 if ((size(args) != 2))
721804 then throw("Wrong args size")
722805 else if (if ((size(pAmounts) != 2))
730813 else if (if ((balanceA > accountBalanceA))
731814 then true
732815 else (balanceB > accountBalanceB))
733- then $Tuple2(nil, $Tuple2(([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3))
816+ then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3))
734817 then [AttachedPayment(if ((pAssetIds[2] == base58''))
735818 then unit
736819 else pAssetIds[2], pAmounts[2])]
737- else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))), nil))
820+ else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
738821 else {
739- let $t02829228490 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
740- let shareTokenToPayAmount = $t02829228490._1
741- let change = $t02829228490._2
742- let changeAssetId = $t02829228490._3
743- let pmtAmountA = $t02829228490._4
744- let pmtAmountB = $t02829228490._5
822+ let $t03070130899 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
823+ let shareTokenToPayAmount = $t03070130899._1
824+ let change = $t03070130899._2
825+ let changeAssetId = $t03070130899._3
826+ let pmtAmountA = $t03070130899._4
827+ let pmtAmountB = $t03070130899._5
745828 if ((shareTokenToPayAmount == 0))
746829 then throw("Too small amount to replenish")
747830 else if ((0 > change))
794877 let virtGetMinAmount = parseIntValue(args[0])
795878 let stakeFarming = (args[1] == "true")
796879 let lockType = parseIntValue(args[2])
797- let $t03074930839 = getPoolAssets(i.caller)
798- let strAssetIdA = $t03074930839._1
799- let strAssetIdB = $t03074930839._2
800- let assetIdA = $t03074930839._3
801- let assetIdB = $t03074930839._4
802- let shareAssetId = $t03074930839._5
803- let $t03084430950 = getPoolBalances(i.caller, assetIdA, assetIdB)
804- let balanceA = $t03084430950._1
805- let balanceB = $t03084430950._2
806- let accountBalanceA = $t03084430950._3
807- let accountBalanceB = $t03084430950._4
808- let shareAssetSupply = getLpSupply(i.caller)
880+ let $t03315833248 = getPoolAssets(i.caller)
881+ let strAssetIdA = $t03315833248._1
882+ let strAssetIdB = $t03315833248._2
883+ let assetIdA = $t03315833248._3
884+ let assetIdB = $t03315833248._4
885+ let shareAssetId = $t03315833248._5
886+ let $t03325333377 = getPoolBalances(i.caller, assetIdA, assetIdB)
887+ let balanceA = $t03325333377._1
888+ let balanceB = $t03325333377._2
889+ let accountBalanceA = $t03325333377._3
890+ let accountBalanceB = $t03325333377._4
891+ let shareAssetSupply = $t03325333377._5
809892 let initial = ((balanceA + balanceB) == 0)
810893 if ((size(args) != 3))
811894 then throw("Wrong args size")
822905 else if (if ((balanceA > accountBalanceA))
823906 then true
824907 else (balanceB > accountBalanceB))
825- then $Tuple2(nil, $Tuple2(([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2))
908+ then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2))
826909 then [AttachedPayment(if ((pAssetIds[2] == base58''))
827910 then unit
828911 else pAssetIds[2], pAmounts[2])]
829- else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))), nil))
912+ else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
830913 else {
831- let $t03191731984 = getFeeParams(i.caller, i.originCaller)
832- let fee = $t03191731984._1
833- let govFee = $t03191731984._2
834- let teamFee = $t03191731984._3
835- let $t03199332055 = getAssetInfo(pmtAssetId)
836- let pmtAssetIdStr = $t03199332055._1
837- let pmtAssetIdName = $t03199332055._2
838- let $t03207332318 = calcLPAmountReplenishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
839- let shareTokenToPayAmount = $t03207332318._1
840- let newBalanceA = $t03207332318._2
841- let newBalanceB = $t03207332318._3
842- let govReward = $t03207332318._4
843- let teamReward = $t03207332318._5
844- let govRewardAsset = $t03207332318._6
914+ let $t03428934356 = getFeeParams(i.caller, i.originCaller)
915+ let fee = $t03428934356._1
916+ let govFee = $t03428934356._2
917+ let teamFee = $t03428934356._3
918+ let $t03436534427 = getAssetInfo(pmtAssetId)
919+ let pmtAssetIdStr = $t03436534427._1
920+ let pmtAssetIdName = $t03436534427._2
921+ let $t03444534690 = calcLPAmountReplenishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
922+ let shareTokenToPayAmount = $t03444534690._1
923+ let newBalanceA = $t03444534690._2
924+ let newBalanceB = $t03444534690._3
925+ let govReward = $t03444534690._4
926+ let teamReward = $t03444534690._5
927+ let govRewardAsset = $t03444534690._6
845928 let govRewardAssetStr = if ((govRewardAsset == assetIdA))
846929 then strAssetIdA
847930 else strAssetIdB
890973 @Callable(i)
891974 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
892975 let caller = Address(callerBytes)
893- let $t03438634476 = getPoolAssets(i.caller)
894- let strAssetIdA = $t03438634476._1
895- let strAssetIdB = $t03438634476._2
896- let assetIdA = $t03438634476._3
897- let assetIdB = $t03438634476._4
898- let shareAssetId = $t03438634476._5
899- let $t03448534591 = getPoolBalances(i.caller, assetIdA, assetIdB)
900- let balanceA = $t03448534591._1
901- let balanceB = $t03448534591._2
902- let accountBalanceA = $t03448534591._3
903- let accountBalanceB = $t03448534591._4
904- let shareAssetSupply = getLpSupply(i.caller)
905- let $t03465335033 = if ((size(pAmounts) == 1))
976+ let $t03675836848 = getPoolAssets(i.caller)
977+ let strAssetIdA = $t03675836848._1
978+ let strAssetIdB = $t03675836848._2
979+ let assetIdA = $t03675836848._3
980+ let assetIdB = $t03675836848._4
981+ let shareAssetId = $t03675836848._5
982+ let $t03685736981 = getPoolBalances(i.caller, assetIdA, assetIdB)
983+ let balanceA = $t03685736981._1
984+ let balanceB = $t03685736981._2
985+ let accountBalanceA = $t03685736981._3
986+ let accountBalanceB = $t03685736981._4
987+ let shareAssetSupply = $t03685736981._5
988+ let $t03699037370 = if ((size(pAmounts) == 1))
906989 then {
907990 let pAsset = parsePaymentAsset(pAssetIds[0])
908991 if ((pAsset != shareAssetId))
910993 else $Tuple2(pAmounts[0], pAsset)
911994 }
912995 else $Tuple2(0, shareAssetId)
913- let pmtAmount = $t03465335033._1
914- let pmtAssetId = $t03465335033._2
996+ let pmtAmount = $t03699037370._1
997+ let pmtAssetId = $t03699037370._2
915998 if ((size(args) != 1))
916999 then throw("Wrong args size")
9171000 else if ((size(pAmounts) > 1))
9191002 else if (if ((balanceA > accountBalanceA))
9201003 then true
9211004 else (balanceB > accountBalanceB))
922- then $Tuple2(nil, $Tuple2(([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)), nil))
1005+ then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
9231006 else {
9241007 let unlockAmount = parseIntValue(valueOrElse(args[0], "0"))
9251008 let unlock = if ((unlockAmount > 0))
9561039 let withdrawAsset = if ((args[0] == ""))
9571040 then unit
9581041 else fromBase58String(args[0])
959- let $t03724037330 = getPoolAssets(i.caller)
960- let strAssetIdA = $t03724037330._1
961- let strAssetIdB = $t03724037330._2
962- let assetIdA = $t03724037330._3
963- let assetIdB = $t03724037330._4
964- let shareAssetId = $t03724037330._5
965- let $t03733937445 = getPoolBalances(i.caller, assetIdA, assetIdB)
966- let balanceA = $t03733937445._1
967- let balanceB = $t03733937445._2
968- let accountBalanceA = $t03733937445._3
969- let accountBalanceB = $t03733937445._4
970- let shareAssetSupply = getLpSupply(i.caller)
971- let $t03750737859 = if ((size(pAmounts) == 1))
1042+ let $t03958839678 = getPoolAssets(i.caller)
1043+ let strAssetIdA = $t03958839678._1
1044+ let strAssetIdB = $t03958839678._2
1045+ let assetIdA = $t03958839678._3
1046+ let assetIdB = $t03958839678._4
1047+ let shareAssetId = $t03958839678._5
1048+ let $t03968739811 = getPoolBalances(i.caller, assetIdA, assetIdB)
1049+ let balanceA = $t03968739811._1
1050+ let balanceB = $t03968739811._2
1051+ let accountBalanceA = $t03968739811._3
1052+ let accountBalanceB = $t03968739811._4
1053+ let shareAssetSupply = $t03968739811._5
1054+ let $t03982040172 = if ((size(pAmounts) == 1))
9721055 then {
9731056 let pAsset = parsePaymentAsset(pAssetIds[0])
9741057 if ((pAsset != shareAssetId))
9761059 else $Tuple2(pAmounts[0], pAsset)
9771060 }
9781061 else $Tuple2(0, shareAssetId)
979- let pmtAmount = $t03750737859._1
980- let pmtAssetId = $t03750737859._2
1062+ let pmtAmount = $t03982040172._1
1063+ let pmtAssetId = $t03982040172._2
9811064 let virtMinToRecive = parseIntValue(args[1])
9821065 if ((size(args) != 3))
9831066 then throw("Wrong args size")
9901073 else if (if ((balanceA > accountBalanceA))
9911074 then true
9921075 else (balanceB > accountBalanceB))
993- then $Tuple2(nil, $Tuple2(([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)), nil))
1076+ then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
9941077 else {
9951078 let unlockAmount = parseIntValue(valueOrElse(args[2], "0"))
9961079 let unlock = if ((unlockAmount > 0))
10011084 let withdrawAmount = (pmtAmount + unlockAmount)
10021085 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
10031086 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
1004- let $t03913239199 = getFeeParams(i.caller, i.originCaller)
1005- let fee = $t03913239199._1
1006- let govFee = $t03913239199._2
1007- let teamFee = $t03913239199._3
1008- let $t03921239626 = if ((withdrawAsset == assetIdA))
1087+ let $t04143941506 = getFeeParams(i.caller, i.originCaller)
1088+ let fee = $t04143941506._1
1089+ let govFee = $t04143941506._2
1090+ let teamFee = $t04143941506._3
1091+ let $t04151941933 = if ((withdrawAsset == assetIdA))
10091092 then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee)
10101093 else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee)
1011- let amountWithoutFee = $t03921239626._1
1012- let amountWithFee = $t03921239626._2
1013- let governanceReward = $t03921239626._3
1014- let teamReward = $t03921239626._4
1015- let $t03963940949 = if ((withdrawAsset == assetIdA))
1094+ let amountWithoutFee = $t04151941933._1
1095+ let amountWithFee = $t04151941933._2
1096+ let governanceReward = $t04151941933._3
1097+ let teamReward = $t04151941933._4
1098+ let $t04194643256 = if ((withdrawAsset == assetIdA))
10161099 then {
10171100 let unstake = if (contains(stakingAssets, strAssetIdA))
10181101 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil)
10291112 then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
10301113 else throw("Strict value is not equal to itself.")
10311114 }
1032- let newBalanceA = $t03963940949._1
1033- let newBalanceB = $t03963940949._2
1034- let govRewardAssetId = $t03963940949._3
1035- let userTransfer = $t03963940949._4
1115+ let newBalanceA = $t04194643256._1
1116+ let newBalanceB = $t04194643256._2
1117+ let govRewardAssetId = $t04194643256._3
1118+ let userTransfer = $t04194643256._4
10361119 $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))
10371120 }
10381121 else throw("Strict value is not equal to itself.")
10431126
10441127 @Callable(i)
10451128 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
1046- let $t04170941785 = getPoolAssets(i.caller)
1047- let strAssetIdA = $t04170941785._1
1048- let strAssetIdB = $t04170941785._2
1049- let assetIdA = $t04170941785._3
1050- let assetIdB = $t04170941785._4
1129+ let $t04401644092 = getPoolAssets(i.caller)
1130+ let strAssetIdA = $t04401644092._1
1131+ let strAssetIdB = $t04401644092._2
1132+ let assetIdA = $t04401644092._3
1133+ let assetIdB = $t04401644092._4
10511134 let claim = if (if ((assetIdA == USDN))
10521135 then true
10531136 else (assetIdB == USDN))
10541137 then invoke(i.caller, "claimNetrinoRewards", nil, nil)
1055- else nil
1138+ else 0
10561139 if ((claim == claim))
10571140 then {
1058- let $t04196942105 = getPoolBalances(i.caller, assetIdA, assetIdB)
1059- let balanceA = $t04196942105._1
1060- let balanceB = $t04196942105._2
1061- let accountBalanceA = $t04196942105._3
1062- let accountBalanceB = $t04196942105._4
1063- let stakedAmountA = $t04196942105._5
1064- let stakedAmountB = $t04196942105._6
1141+ let $t04425244358 = getPoolBalances(i.caller, assetIdA, assetIdB)
1142+ let balanceA = $t04425244358._1
1143+ let balanceB = $t04425244358._2
1144+ let accountBalanceA = $t04425244358._3
1145+ let accountBalanceB = $t04425244358._4
10651146 let amountEnrollA = (accountBalanceA - balanceA)
10661147 let amountEnrollB = (accountBalanceB - balanceB)
1067- let $t04222542539 = if ((assetIdA == L2MP))
1068- then $Tuple2((accountBalanceA - stakedAmountA), amountEnrollB)
1069- else if ((assetIdB == L2MP))
1070- then $Tuple2(amountEnrollA, (accountBalanceB - stakedAmountB))
1071- else $Tuple2(amountEnrollA, amountEnrollB)
1072- let amountToStakeA = $t04222542539._1
1073- let amountToStakeB = $t04222542539._2
10741148 if ((size(args) != 0))
10751149 then throw("Wrong args size")
10761150 else if ((moneyBoxAddress != i.originCaller))
10851159 then throw("No money to take")
10861160 else {
10871161 let stake1 = if (if (contains(stakingAssets, strAssetIdA))
1088- then (amountToStakeA > 0)
1162+ then (amountEnrollA > 0)
10891163 else false)
1090- then invoke(i.caller, "stakeUnstake", [true, amountToStakeA, strAssetIdA], nil)
1164+ then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
10911165 else 0
10921166 if ((stake1 == stake1))
10931167 then {
10941168 let stake2 = if (if (contains(stakingAssets, strAssetIdB))
1095- then (amountToStakeB > 0)
1169+ then (amountEnrollB > 0)
10961170 else false)
1097- then invoke(i.caller, "stakeUnstake", [true, amountToStakeB, strAssetIdB], nil)
1171+ then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
10981172 else 0
10991173 if ((stake2 == stake2))
11001174 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil))
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
54-let kL2MPAssetId = "l2mp_asset_id"
55-
5654 let kStakingAssets = "staking_assets"
5755
5856 let kOracleActive = "active_all_contracts"
5957
6058 let kDiscounts = "discounts"
6159
6260 let kDiscountValues = "discount_values"
6361
6462 let kUserGSwopInGov = "_GSwop_amount"
6563
6664 let kUserSwopInGov = "_SWOP_amount"
6765
6866 let kOraclePool = "pool_"
6967
7068 let kAdminPubKey1 = "admin_pub_1"
7169
7270 let kAdminPubKey2 = "admin_pub_2"
7371
7472 let kAdminPubKey3 = "admin_pub_3"
7573
7674 let kAdminInvokePubKey = "admin_invoke_pub"
7775
7876 let kMoneyBoxAddress = "money_box_address"
7977
8078 let kTeamBoxAddress = "team_box_address"
8179
8280 let kVotingAddress = "voting_address"
8381
8482 let kGovAddress = "governance_address"
8583
8684 let kFarmingAddress = "farming_address"
87-
88-let kL2MPAddress = "staking_l2mp_address"
8985
9086 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
9187
9288 func getBase58FromOracle (key) = match getString(oracle, key) {
9389 case string: String =>
9490 fromBase58String(string)
9591 case nothing =>
9692 throw((key + "is empty"))
9793 }
9894
9995
10096 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
10197
10298 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
10399
104100 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
105101
106102 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
107103
108104 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
109105
110106 let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
111107
112108 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
113109
114110 let govAddress = Address(getBase58FromOracle(kGovAddress))
115111
116112 let farmingAddress = Address(getBase58FromOracle(kFarmingAddress))
117113
118114 let USDN = getBase58FromOracle(kUSDNAssetId)
119115
120116 let EURN = getBase58FromOracle(kEURNAssetId)
121117
122-let L2MP = getBase58FromOracle(kL2MPAssetId)
123-
124118 let stakingAssets = getStringValue(oracle, kStakingAssets)
125119
126120 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
127121
128122 let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress))
129-
130-let stakingL2MPAddress = Address(getBase58FromOracle(kL2MPAddress))
131123
132124 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
133125
134126 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
135127
136128 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
137129
138130 let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
139131
140132 let active = getBooleanValue(oracle, kOracleActive)
141133
142134 let feeScale6 = 1000000
143135
144136 let scale8 = 100000000
145137
146138 let scale16 = toBigInt(10000000000000000)
147139
148140 func accountBalance (assetId,pool) = match assetId {
149141 case id: ByteVector =>
150142 assetBalance(pool, id)
151143 case waves: Unit =>
152144 wavesBalance(pool).available
153145 case _ =>
154146 throw("Match error")
155147 }
156148
157149
158150 func stakedAmount (assetId,pool) = {
159151 let stakedAmountCalculated = match assetId {
160152 case aId: ByteVector =>
161153 if ((aId == USDN))
162154 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool)))
163155 else if ((aId == EURN))
164156 then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool)))
165- else if ((aId == L2MP))
166- then {
167- let available = {
168- let @ = invoke(stakingL2MPAddress, "getUserAssetsREADONLY", [toString(pool)], nil)
169- if ($isInstanceOf(@, "(Int, Int, BigInt, Int, Int)"))
170- then @
171- else throw(($getType(@) + " couldn't be cast to (Int, Int, BigInt, Int, Int)"))
172- }
173- if ((available == available))
174- then available._2
175- else throw("Strict value is not equal to itself.")
176- }
177- else 0
157+ else 0
178158 case _: Unit =>
179159 valueOrElse(getInteger(pool, kLeasingAmount), 0)
180160 case _ =>
181161 throw("Match error")
182162 }
183163 match stakedAmountCalculated {
184164 case i: Int =>
185165 i
186166 case _ =>
187167 0
188168 }
189169 }
190170
191171
192172 func getAssetInfo (assetId) = match assetId {
193173 case id: String|ByteVector =>
194- let $t044804652 = match id {
174+ let $t040794251 = match id {
195175 case aId: ByteVector =>
196176 $Tuple2(toBase58String(aId), aId)
197177 case aId: String =>
198178 $Tuple2(aId, fromBase58String(aId))
199179 case _ =>
200180 throw("Match error")
201181 }
202- let stringId = $t044804652._1
203- let bytesId = $t044804652._2
182+ let stringId = $t040794251._1
183+ let bytesId = $t040794251._2
204184 let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist"))
205185 $Tuple3(stringId, info.name, info.decimals)
206186 case waves: Unit =>
207187 $Tuple3("WAVES", "WAVES", 8)
208188 case _ =>
209189 throw("Match error")
210190 }
211191
212192
213193 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
214194
215195
216196 func calculateFeeDiscount (userAddr) = {
217197 let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0)
218198 let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), swopAmount)
219199 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
220200 let discounts = split(getStringValue(oracle, kDiscounts), ",")
221201 if (if ((gSwopAmount >= parseIntValue(discountValues[0])))
222202 then (parseIntValue(discountValues[1]) > gSwopAmount)
223203 else false)
224204 then (feeScale6 - parseIntValue(discounts[0]))
225205 else if (if ((gSwopAmount >= parseIntValue(discountValues[1])))
226206 then (parseIntValue(discountValues[2]) > gSwopAmount)
227207 else false)
228208 then (feeScale6 - parseIntValue(discounts[1]))
229209 else if (if ((gSwopAmount >= parseIntValue(discountValues[2])))
230210 then (parseIntValue(discountValues[3]) > gSwopAmount)
231211 else false)
232212 then (feeScale6 - parseIntValue(discounts[2]))
233213 else if (if ((gSwopAmount >= parseIntValue(discountValues[3])))
234214 then (parseIntValue(discountValues[4]) > gSwopAmount)
235215 else false)
236216 then (feeScale6 - parseIntValue(discounts[3]))
237217 else if ((gSwopAmount >= parseIntValue(discountValues[4])))
238218 then (feeScale6 - parseIntValue(discounts[4]))
239219 else feeScale6
240220 }
241221
242222
243223 func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGov,feeTeam) = {
244224 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
245225 let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6)
246226 let governanceReward = fraction(amountWithoutFee, feeGov, feeScale6)
247227 let teamReward = fraction(amountWithoutFee, feeTeam, feeScale6)
248228 if ((minAmountToReceive > amountWithFee))
249229 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
250230 else $Tuple4(amountWithoutFee, amountWithFee, governanceReward, teamReward)
251231 }
252232
253233
254234 func calculateVirtPay (pmtAmount,balance,fee) = {
255235 let F = (feeScale6 - fee)
256236 let k = fraction(fee, 55, 100)
257237 let a = (scale8 + fraction((F * k), scale8, (feeScale6 * feeScale6)))
258238 let b = ((((balance + fraction(balance, F, feeScale6)) + fraction(pmtAmount, F, feeScale6)) - pmtAmount) - fraction(pmtAmount, (F * k), (feeScale6 * feeScale6)))
259239 let c = (-(toBigInt(balance)) * toBigInt(pmtAmount))
260240 let D = ((toBigInt(b) * toBigInt(b)) - fraction((toBigInt(4) * c), toBigInt(a), toBigInt(scale8)))
261241 toInt(fraction((-(toBigInt(b)) + sqrtBigInt(D, 0, 0, DOWN)), toBigInt(scale8), toBigInt((2 * a))))
262242 }
263243
264244
265-func parsePaymentAsset (assetId) = if ((assetId == base58''))
266- then unit
267- else assetId
245+func parsePaymentAsset (assetId) = match assetId {
246+ case id: ByteVector =>
247+ if ((id == base58''))
248+ then unit
249+ else id
250+ case id: String =>
251+ if (if ((id == "WAVES"))
252+ then true
253+ else (id == ""))
254+ then unit
255+ else fromBase58String(id)
256+ case _ =>
257+ throw("Match error")
258+}
259+
260+
261+func assetToStr (assetId) = match assetId {
262+ case id: ByteVector =>
263+ toBase58String(id)
264+ case waves: Unit =>
265+ "WAVES"
266+ case _ =>
267+ throw("Match error")
268+}
268269
269270
270271 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))
271272
272273
273274 func isActive () = if (active)
274275 then unit
275276 else throw("DApp is inactive at this moment")
276277
277278
278279 func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress))))
279280 then unit
280281 else throw("DApp is not registered pool")
281282
282283
283284 func isDepricated (poolAddress) = if (!(valueOrElse(getBoolean(oracle, (kDeprecated + poolAddress)), false)))
284285 then unit
285286 else throw("Pool is deprecated. Only withdraw action allowed.")
286287
287288
288289 func getPoolBalances (pool,assetIdA,assetIdB) = {
289290 let balanceA = getIntegerValue(pool, kBalanceA)
290291 let balanceB = getIntegerValue(pool, kBalanceB)
291292 let stakedAmountA = stakedAmount(assetIdA, pool)
292293 let stakedAmountB = stakedAmount(assetIdB, pool)
293294 let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA)
294295 let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB)
295- $Tuple6(balanceA, balanceB, accountBalanceA, accountBalanceB, stakedAmountA, stakedAmountB)
296+ let shareSupply = getIntegerValue(pool, kShareAssetSupply)
297+ $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply)
296298 }
297-
298-
299-func getLpSupply (pool) = getIntegerValue(pool, kShareAssetSupply)
300299
301300
302301 func getPoolAssets (pool) = {
303302 let strAssetIdA = getStringValue(pool, kAssetIdA)
304303 let strAssetIdB = getStringValue(pool, kAssetIdB)
305304 let assetIdA = if ((strAssetIdA == "WAVES"))
306305 then unit
307306 else fromBase58String(strAssetIdA)
308307 let assetIdB = if ((strAssetIdB == "WAVES"))
309308 then unit
310309 else fromBase58String(strAssetIdB)
311310 let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId))
312311 $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId)
313312 }
314313
315314
316315 func getFeeParams (pool,caller) = {
317316 let feeDiscount = calculateFeeDiscount(caller)
318317 let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING)
319318 let govFee = fraction(fee, 35, 100)
320319 let teamFee = fraction(fee, 10, 100)
321320 $Tuple3(fee, govFee, teamFee)
322321 }
323322
324323
325324 func calcLPAmountReplensishTwoTokens (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,shareAssetSupply) = {
326- let $t0999310065 = getAssetInfo(pmtIdA)
327- let pmtStrAssetIdA = $t0999310065._1
328- let pmtAssetNameA = $t0999310065._2
329- let pmtDecimalsA = $t0999310065._3
330- let $t01007010142 = getAssetInfo(pmtIdB)
331- let pmtStrAssetIdB = $t01007010142._1
332- let pmtAssetNameB = $t01007010142._2
333- let pmtDecimalsB = $t01007010142._3
325+ let $t098679939 = getAssetInfo(pmtIdA)
326+ let pmtStrAssetIdA = $t098679939._1
327+ let pmtAssetNameA = $t098679939._2
328+ let pmtDecimalsA = $t098679939._3
329+ let $t0994410016 = getAssetInfo(pmtIdB)
330+ let pmtStrAssetIdB = $t0994410016._1
331+ let pmtAssetNameB = $t0994410016._2
332+ let pmtDecimalsB = $t0994410016._3
334333 let initial = ((balA + balB) == 0)
335- let $t01018510844 = if (initial)
334+ let $t01005910718 = if (initial)
336335 then $Tuple5(pmtA, pmtB, 0, pmtIdA, toBigInt(1))
337336 else {
338337 let ratioShareTokensInA = fraction(scale16, toBigInt(pmtA), toBigInt(balA))
339338 let ratioShareTokensInB = fraction(scale16, toBigInt(pmtB), toBigInt(balB))
340339 if ((ratioShareTokensInB > ratioShareTokensInA))
341340 then {
342341 let pmt = fraction(pmtA, balB, balA)
343342 $Tuple5(pmtA, pmt, (pmtB - pmt), pmtIdB, ratioShareTokensInA)
344343 }
345344 else {
346345 let pmt = fraction(pmtB, balA, balB)
347346 $Tuple5(pmt, pmtB, (pmtA - pmt), pmtIdA, ratioShareTokensInB)
348347 }
349348 }
350- let pmtAmountA = $t01018510844._1
351- let pmtAmountB = $t01018510844._2
352- let change = $t01018510844._3
353- let changeAssetId = $t01018510844._4
354- let shareTokenRatio = $t01018510844._5
349+ let pmtAmountA = $t01005910718._1
350+ let pmtAmountB = $t01005910718._2
351+ let change = $t01005910718._3
352+ let changeAssetId = $t01005910718._4
353+ let shareTokenRatio = $t01005910718._5
355354 let shareTokenToPayAmount = if (initial)
356355 then {
357356 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
358357 fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
359358 }
360359 else toInt(fraction(shareTokenRatio, toBigInt(shareAssetSupply), scale16))
361360 $Tuple5(shareTokenToPayAmount, change, changeAssetId, pmtAmountA, pmtAmountB)
362361 }
363362
364363
365364 func calcLPAmountReplenishOneToken (pmtAmount,pmtAssetId,aId,bId,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = if ((pmtAssetId == aId))
366365 then {
367366 let virtPayAmount = calculateVirtPay(pmtAmount, balA, fee)
368- let $t01170811855 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
369- let amountWithoutFee = $t01170811855._1
370- let amountWithFee = $t01170811855._2
371- let governanceReward = $t01170811855._3
372- let tReward = $t01170811855._4
367+ let $t01158211729 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
368+ let amountWithoutFee = $t01158211729._1
369+ let amountWithFee = $t01158211729._2
370+ let governanceReward = $t01158211729._3
371+ let tReward = $t01158211729._4
373372 let balanceAVirt = (balA + virtPayAmount)
374373 let balanceBVirt = (((balB + amountWithoutFee) - governanceReward) - tReward)
375374 let newBalanceA = (balA + pmtAmount)
376375 let newBalanceB = ((balB - governanceReward) - tReward)
377376 let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt))
378377 let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt))
379378 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16))
380379 let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balA)), toBigInt(lpSupply), scale16))
381380 let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth)
382381 $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId, loss)
383382 }
384383 else {
385384 let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee)
386- let $t01289913046 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
387- let amountWithoutFee = $t01289913046._1
388- let amountWithFee = $t01289913046._2
389- let governanceReward = $t01289913046._3
390- let tReward = $t01289913046._4
385+ let $t01277312920 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
386+ let amountWithoutFee = $t01277312920._1
387+ let amountWithFee = $t01277312920._2
388+ let governanceReward = $t01277312920._3
389+ let tReward = $t01277312920._4
391390 let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward)
392391 let balanceBVirt = (balB + virtPayAmount)
393392 let newBalanceA = ((balA - governanceReward) - tReward)
394393 let newBalanceB = (balB + pmtAmount)
395394 let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt))
396395 let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt))
397396 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16))
398397 let shareTokenToPayAmountInBoth = toInt(fraction(fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balB)), toBigInt(lpSupply), scale16))
399398 let loss = fraction((shareTokenToPayAmount - shareTokenToPayAmountInBoth), scale8, shareTokenToPayAmountInBoth)
400399 $Tuple7(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId, loss)
401400 }
402401
403402
404403 func calcLPReplenishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = {
405- let $t01421314361 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
406- let lpTwoAmount = $t01421314361._1
407- let change = $t01421314361._2
408- let changeAssetId = $t01421314361._3
409- let pmtAmountA = $t01421314361._4
410- let pmtAmountB = $t01421314361._5
404+ let $t01408714235 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
405+ let lpTwoAmount = $t01408714235._1
406+ let change = $t01408714235._2
407+ let changeAssetId = $t01408714235._3
408+ let pmtAmountA = $t01408714235._4
409+ let pmtAmountB = $t01408714235._5
411410 if ((change > 0))
412411 then {
413- let $t01439314627 = calcLPAmountReplenishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
414- let lpOne = $t01439314627._1
415- let newBalanceA = $t01439314627._2
416- let newBalanceB = $t01439314627._3
417- let governanceReward = $t01439314627._4
418- let tReward = $t01439314627._5
419- let gId = $t01439314627._6
420- let loss = $t01439314627._7
412+ let $t01426714501 = calcLPAmountReplenishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
413+ let lpOne = $t01426714501._1
414+ let newBalanceA = $t01426714501._2
415+ let newBalanceB = $t01426714501._3
416+ let governanceReward = $t01426714501._4
417+ let tReward = $t01426714501._5
418+ let gId = $t01426714501._6
419+ let loss = $t01426714501._7
421420 $Tuple7((lpTwoAmount + lpOne), loss, newBalanceA, newBalanceB, governanceReward, tReward, gId)
422421 }
423422 else $Tuple7(lpTwoAmount, 0, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit)
424423 }
425424
426425
427426 @Callable(i)
427+func howManyYouPayREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
428+ let caller = Address(callerBytes)
429+ let $t01486914953 = $Tuple2(parseIntValue(args[0]), parsePaymentAsset(args[1]))
430+ let getAmount = $t01486914953._1
431+ let getAssetId = $t01486914953._2
432+ let $t01496215038 = getPoolAssets(i.caller)
433+ let strAssetIdA = $t01496215038._1
434+ let strAssetIdB = $t01496215038._2
435+ let assetIdA = $t01496215038._3
436+ let assetIdB = $t01496215038._4
437+ let $t01504715153 = getPoolBalances(i.caller, assetIdA, assetIdB)
438+ let balanceA = $t01504715153._1
439+ let balanceB = $t01504715153._2
440+ let accountBalanceA = $t01504715153._3
441+ let accountBalanceB = $t01504715153._4
442+ if (if ((balanceA == 0))
443+ then true
444+ else (balanceB == 0))
445+ then throw("Can't exchange with zero balance")
446+ else if (!(containsElement([assetIdA, assetIdB], getAssetId)))
447+ then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
448+ else {
449+ let $t01544715514 = getFeeParams(i.caller, i.originCaller)
450+ let fee = $t01544715514._1
451+ let govFee = $t01544715514._2
452+ let teamFee = $t01544715514._3
453+ let $t01552715929 = {
454+ let amntGetNoFee = fraction(getAmount, feeScale6, (feeScale6 - fee), CEILING)
455+ if ((getAssetId == assetIdA))
456+ then $Tuple2(fraction(amntGetNoFee, balanceB, (balanceA - amntGetNoFee), CEILING), assetIdB)
457+ else $Tuple2(fraction(amntGetNoFee, balanceA, (balanceB - amntGetNoFee), CEILING), assetIdA)
458+ }
459+ let amountToPay = $t01552715929._1
460+ let assetToPay = $t01552715929._2
461+ $Tuple2(nil, $Tuple2(nil, [amountToPay, assetToStr(assetToPay)]))
462+ }
463+ }
464+
465+
466+
467+@Callable(i)
468+func howManyYouGetREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
469+ let caller = Address(callerBytes)
470+ let $t01618116265 = $Tuple2(parseIntValue(args[0]), parsePaymentAsset(args[1]))
471+ let pmtAmount = $t01618116265._1
472+ let pmtAssetId = $t01618116265._2
473+ let $t01627416350 = getPoolAssets(i.caller)
474+ let strAssetIdA = $t01627416350._1
475+ let strAssetIdB = $t01627416350._2
476+ let assetIdA = $t01627416350._3
477+ let assetIdB = $t01627416350._4
478+ let $t01635916465 = getPoolBalances(i.caller, assetIdA, assetIdB)
479+ let balanceA = $t01635916465._1
480+ let balanceB = $t01635916465._2
481+ let accountBalanceA = $t01635916465._3
482+ let accountBalanceB = $t01635916465._4
483+ if (if ((balanceA == 0))
484+ then true
485+ else (balanceB == 0))
486+ then throw("Can't exchange with zero balance")
487+ else if (!(containsElement([assetIdA, assetIdB], pmtAssetId)))
488+ then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
489+ else {
490+ let $t01675916826 = getFeeParams(i.caller, i.originCaller)
491+ let fee = $t01675916826._1
492+ let govFee = $t01675916826._2
493+ let teamFee = $t01675916826._3
494+ let $t01683917156 = if ((pmtAssetId == assetIdA))
495+ then calculateFees(pmtAmount, 0, balanceA, balanceB, fee, govFee, teamFee)
496+ else calculateFees(pmtAmount, 0, balanceB, balanceA, fee, govFee, teamFee)
497+ let amountWithoutFee = $t01683917156._1
498+ let amountWithFee = $t01683917156._2
499+ let governanceReward = $t01683917156._3
500+ let teamReward = $t01683917156._4
501+ let assetIdSend = if ((pmtAssetId == assetIdA))
502+ then assetIdB
503+ else assetIdA
504+ $Tuple2(nil, $Tuple2(nil, [amountWithFee, assetToStr(assetIdSend), governanceReward, teamReward]))
505+ }
506+ }
507+
508+
509+
510+@Callable(i)
428511 func calcLPReplenishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
429- let $t01496315053 = getPoolAssets(i.caller)
430- let strAssetIdA = $t01496315053._1
431- let strAssetIdB = $t01496315053._2
432- let assetIdA = $t01496315053._3
433- let assetIdB = $t01496315053._4
434- let shareAssetId = $t01496315053._5
435- let $t01505815140 = getPoolBalances(i.caller, assetIdA, assetIdB)
436- let balA = $t01505815140._1
437- let balB = $t01505815140._2
438- let accBalA = $t01505815140._3
439- let accBalB = $t01505815140._4
440- let lpSupply = getLpSupply(i.caller)
512+ let $t01749417584 = getPoolAssets(i.caller)
513+ let strAssetIdA = $t01749417584._1
514+ let strAssetIdB = $t01749417584._2
515+ let assetIdA = $t01749417584._3
516+ let assetIdB = $t01749417584._4
517+ let shareAssetId = $t01749417584._5
518+ let $t01758917681 = getPoolBalances(i.caller, assetIdA, assetIdB)
519+ let balA = $t01758917681._1
520+ let balB = $t01758917681._2
521+ let accBalA = $t01758917681._3
522+ let accBalB = $t01758917681._4
523+ let lpSupply = $t01758917681._5
441524 let pmtA = parseIntValue(args[0])
442525 let pmtB = parseIntValue(args[1])
443526 let virtGetMinAmount = parseIntValue(args[2])
444- let $t01531515382 = getFeeParams(i.caller, i.originCaller)
445- let fee = $t01531515382._1
446- let govFee = $t01531515382._2
447- let teamFee = $t01531515382._3
448- let $t01538715579 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
449- let lp = $t01538715579._1
450- let loss = $t01538715579._2
451- let newBalanceA = $t01538715579._3
452- let newBalanceB = $t01538715579._4
453- let governanceReward = $t01538715579._5
454- let tReward = $t01538715579._6
455- let aId = $t01538715579._7
527+ let $t01781517882 = getFeeParams(i.caller, i.originCaller)
528+ let fee = $t01781517882._1
529+ let govFee = $t01781517882._2
530+ let teamFee = $t01781517882._3
531+ let $t01788718079 = calcLPReplenishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
532+ let lp = $t01788718079._1
533+ let loss = $t01788718079._2
534+ let newBalanceA = $t01788718079._3
535+ let newBalanceB = $t01788718079._4
536+ let governanceReward = $t01788718079._5
537+ let tReward = $t01788718079._6
538+ let aId = $t01788718079._7
456539 $Tuple2(nil, $Tuple2(nil, [lp, loss, newBalanceA, newBalanceB, governanceReward, tReward, aId]))
457540 }
458541
459542
460543
461544 @Callable(i)
462545 func calcLPReplenishTwoTokensREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
463- let $t01582215912 = getPoolAssets(i.caller)
464- let strAssetIdA = $t01582215912._1
465- let strAssetIdB = $t01582215912._2
466- let assetIdA = $t01582215912._3
467- let assetIdB = $t01582215912._4
468- let shareAssetId = $t01582215912._5
469- let $t01591715999 = getPoolBalances(i.caller, assetIdA, assetIdB)
470- let balA = $t01591715999._1
471- let balB = $t01591715999._2
472- let accBalA = $t01591715999._3
473- let accBalB = $t01591715999._4
474- let lpSupply = getLpSupply(i.caller)
546+ let $t01832218412 = getPoolAssets(i.caller)
547+ let strAssetIdA = $t01832218412._1
548+ let strAssetIdB = $t01832218412._2
549+ let assetIdA = $t01832218412._3
550+ let assetIdB = $t01832218412._4
551+ let shareAssetId = $t01832218412._5
552+ let $t01841718509 = getPoolBalances(i.caller, assetIdA, assetIdB)
553+ let balA = $t01841718509._1
554+ let balB = $t01841718509._2
555+ let accBalA = $t01841718509._3
556+ let accBalB = $t01841718509._4
557+ let lpSupply = $t01841718509._5
475558 let pmtA = parseIntValue(args[0])
476559 let pmtB = parseIntValue(args[1])
477- let $t01612316266 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply)
478- let lp = $t01612316266._1
479- let change = $t01612316266._2
480- let changeAssetId = $t01612316266._3
481- let pmtAmountA = $t01612316266._4
482- let pmtAmountB = $t01612316266._5
560+ let $t01859218735 = calcLPAmountReplensishTwoTokens(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply)
561+ let lp = $t01859218735._1
562+ let change = $t01859218735._2
563+ let changeAssetId = $t01859218735._3
564+ let pmtAmountA = $t01859218735._4
565+ let pmtAmountB = $t01859218735._5
483566 $Tuple2(nil, $Tuple2(nil, [lp, change, changeAssetId, pmtAmountA, pmtAmountB]))
484567 }
485568
486569
487570
488571 @Callable(i)
489572 func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
490- let $t01647716567 = getPoolAssets(i.caller)
491- let strAssetIdA = $t01647716567._1
492- let strAssetIdB = $t01647716567._2
493- let assetIdA = $t01647716567._3
494- let assetIdB = $t01647716567._4
495- let shareAssetId = $t01647716567._5
496- let $t01657216678 = getPoolBalances(i.caller, assetIdA, assetIdB)
497- let balanceA = $t01657216678._1
498- let balanceB = $t01657216678._2
499- let accountBalanceA = $t01657216678._3
500- let accountBalanceB = $t01657216678._4
501- let shareAssetSupply = getLpSupply(i.caller)
573+ let $t01894619036 = getPoolAssets(i.caller)
574+ let strAssetIdA = $t01894619036._1
575+ let strAssetIdB = $t01894619036._2
576+ let assetIdA = $t01894619036._3
577+ let assetIdB = $t01894619036._4
578+ let shareAssetId = $t01894619036._5
579+ let $t01904119165 = getPoolBalances(i.caller, assetIdA, assetIdB)
580+ let balanceA = $t01904119165._1
581+ let balanceB = $t01904119165._2
582+ let accountBalanceA = $t01904119165._3
583+ let accountBalanceB = $t01904119165._4
584+ let shareAssetSupply = $t01904119165._5
502585 let withdrawAmount = parseIntValue(args[0])
503- let $t01678116943 = if ((size(args) == 3))
586+ let $t01921919381 = if ((size(args) == 3))
504587 then $Tuple2(parseIntValue(args[1]), parseIntValue(args[2]))
505588 else $Tuple2(balanceA, balanceB)
506- let balA = $t01678116943._1
507- let balB = $t01678116943._2
589+ let balA = $t01921919381._1
590+ let balB = $t01921919381._2
508591 let amountToPayA = fraction(withdrawAmount, balA, shareAssetSupply)
509592 let amountToPayB = fraction(withdrawAmount, balB, shareAssetSupply)
510593 $Tuple2(nil, $Tuple2(nil, [amountToPayA, amountToPayB]))
511594 }
512595
513596
514597
515598 @Callable(i)
516599 func init (callerBytes,args,pAmounts,pAssetIds) = {
517600 let caller = Address(callerBytes)
518- let $t01729817376 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
519- let pmtAmountA = $t01729817376._1
520- let pmtAssetIdA = $t01729817376._2
521- let $t01738117459 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
522- let pmtAmountB = $t01738117459._1
523- let pmtAssetIdB = $t01738117459._2
601+ let $t01973619814 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
602+ let pmtAmountA = $t01973619814._1
603+ let pmtAssetIdA = $t01973619814._2
604+ let $t01981919897 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
605+ let pmtAmountB = $t01981919897._1
606+ let pmtAssetIdB = $t01981919897._2
524607 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
525608 then throw("Only admin can call this function")
526609 else if ((size(args) != 1))
527610 then throw("Wrong args size")
528611 else if (isDefined(getBoolean(caller, kActive)))
529612 then throw("DApp is already active")
530613 else if ((pmtAssetIdA == pmtAssetIdB))
531614 then throw("Assets must be different")
532615 else {
533- let $t01789417971 = getAssetInfo(pmtAssetIdA)
534- let pmtStrAssetIdA = $t01789417971._1
535- let pmtAssetNameA = $t01789417971._2
536- let pmtDecimalsA = $t01789417971._3
537- let $t01798018057 = getAssetInfo(pmtAssetIdB)
538- let pmtStrAssetIdB = $t01798018057._1
539- let pmtAssetNameB = $t01798018057._2
540- let pmtDecimalsB = $t01798018057._3
616+ let $t02033220409 = getAssetInfo(pmtAssetIdA)
617+ let pmtStrAssetIdA = $t02033220409._1
618+ let pmtAssetNameA = $t02033220409._2
619+ let pmtDecimalsA = $t02033220409._3
620+ let $t02041820495 = getAssetInfo(pmtAssetIdB)
621+ let pmtStrAssetIdB = $t02041820495._1
622+ let pmtAssetNameB = $t02041820495._2
623+ let pmtDecimalsB = $t02041820495._3
541624 let firstHarvest = (args[0] == "true")
542625 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
543626 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
544627 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
545628 let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN)
546629 let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN)
547630 let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN)
548631 let shareInitialSupply = fraction(arg1, arg2, arg3)
549632 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
550633 let shareIssueId = calculateAssetId(shareIssue)
551634 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
552635 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
553636 else 0
554637 if ((stake1 == stake1))
555638 then {
556639 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
557640 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
558641 else 0
559642 if ((stake2 == stake2))
560643 then {
561644 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)]
562645 if (firstHarvest)
563646 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
564647 else $Tuple2(nil, $Tuple2(baseEntry, nil))
565648 }
566649 else throw("Strict value is not equal to itself.")
567650 }
568651 else throw("Strict value is not equal to itself.")
569652 }
570653 }
571654
572655
573656
574657 @Callable(i)
575658 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
576659 let caller = Address(callerBytes)
577- let $t02027820478 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
578- let amtAssetA = $t02027820478._1
579- let amtAssetB = $t02027820478._2
580- let assetIdAStr = $t02027820478._3
581- let assetIdBStr = $t02027820478._4
582- let firstHarvest = $t02027820478._5
660+ let $t02271622916 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
661+ let amtAssetA = $t02271622916._1
662+ let amtAssetB = $t02271622916._2
663+ let assetIdAStr = $t02271622916._3
664+ let assetIdBStr = $t02271622916._4
665+ let firstHarvest = $t02271622916._5
583666 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
584667 then throw("Only admin can call this function")
585668 else if ((size(args) != 5))
586669 then throw("Wrong args size")
587670 else if (isDefined(getBoolean(caller, kActive)))
588671 then throw("DApp is already active")
589672 else if ((assetIdAStr == assetIdBStr))
590673 then throw("Assets must be different")
591674 else {
592- let $t02091320990 = getAssetInfo(assetIdAStr)
593- let pmtStrAssetIdA = $t02091320990._1
594- let pmtAssetNameA = $t02091320990._2
595- let pmtDecimalsA = $t02091320990._3
596- let $t02099921076 = getAssetInfo(assetIdBStr)
597- let pmtStrAssetIdB = $t02099921076._1
598- let pmtAssetNameB = $t02099921076._2
599- let pmtDecimalsB = $t02099921076._3
675+ let $t02335123428 = getAssetInfo(assetIdAStr)
676+ let pmtStrAssetIdA = $t02335123428._1
677+ let pmtAssetNameA = $t02335123428._2
678+ let pmtDecimalsA = $t02335123428._3
679+ let $t02343723514 = getAssetInfo(assetIdBStr)
680+ let pmtStrAssetIdB = $t02343723514._1
681+ let pmtAssetNameB = $t02343723514._2
682+ let pmtDecimalsB = $t02343723514._3
600683 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
601684 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
602685 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
603686 let shareInitialSupply = 0
604687 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
605688 let shareIssueId = calculateAssetId(shareIssue)
606689 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)]
607690 if (firstHarvest)
608691 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
609692 else $Tuple2(nil, $Tuple2(baseEntry, nil))
610693 }
611694 }
612695
613696
614697
615698 @Callable(i)
616699 func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
617700 then throw("Only admin can call this function")
618701 else if ((size(args) != 1))
619702 then throw("Wrong args size")
620703 else {
621704 let shareLimit = parseIntValue(args[0])
622705 $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil))
623706 }))
624707
625708
626709
627710 @Callable(i)
628711 func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
629712 let caller = Address(callerBytes)
630- let $t02350223578 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
631- let pmtAmount = $t02350223578._1
632- let pmtAssetId = $t02350223578._2
713+ let $t02594026016 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
714+ let pmtAmount = $t02594026016._1
715+ let pmtAssetId = $t02594026016._2
633716 let minAmountToReceive = parseIntValue(args[0])
634- let $t02364323719 = getPoolAssets(i.caller)
635- let strAssetIdA = $t02364323719._1
636- let strAssetIdB = $t02364323719._2
637- let assetIdA = $t02364323719._3
638- let assetIdB = $t02364323719._4
639- let $t02372823834 = getPoolBalances(i.caller, assetIdA, assetIdB)
640- let balanceA = $t02372823834._1
641- let balanceB = $t02372823834._2
642- let accountBalanceA = $t02372823834._3
643- let accountBalanceB = $t02372823834._4
717+ let $t02608126157 = getPoolAssets(i.caller)
718+ let strAssetIdA = $t02608126157._1
719+ let strAssetIdB = $t02608126157._2
720+ let assetIdA = $t02608126157._3
721+ let assetIdB = $t02608126157._4
722+ let $t02616626272 = getPoolBalances(i.caller, assetIdA, assetIdB)
723+ let balanceA = $t02616626272._1
724+ let balanceB = $t02616626272._2
725+ let accountBalanceA = $t02616626272._3
726+ let accountBalanceB = $t02616626272._4
644727 if ((size(args) != 1))
645728 then throw("Wrong args size")
646729 else if (if ((balanceA == 0))
647730 then true
648731 else (balanceB == 0))
649732 then throw("Can't exchange with zero balance")
650733 else if ((0 >= minAmountToReceive))
651734 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
652735 else if ((size(pAmounts) != 1))
653736 then throw("One attached payment expected")
654737 else if (!(containsElement([assetIdA, assetIdB], pmtAssetId)))
655738 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
656739 else if (if ((balanceA > accountBalanceA))
657740 then true
658741 else (balanceB > accountBalanceB))
659- then $Tuple2(nil, $Tuple2(([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)), nil))
742+ then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
660743 else {
661- let $t02472324790 = getFeeParams(i.caller, i.originCaller)
662- let fee = $t02472324790._1
663- let govFee = $t02472324790._2
664- let teamFee = $t02472324790._3
665- let $t02480325154 = if ((pmtAssetId == assetIdA))
744+ let $t02717227239 = getFeeParams(i.caller, i.originCaller)
745+ let fee = $t02717227239._1
746+ let govFee = $t02717227239._2
747+ let teamFee = $t02717227239._3
748+ let $t02725227603 = if ((pmtAssetId == assetIdA))
666749 then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee)
667750 else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee)
668- let amountWithoutFee = $t02480325154._1
669- let amountWithFee = $t02480325154._2
670- let governanceReward = $t02480325154._3
671- let teamReward = $t02480325154._4
672- let $t02516825503 = if ((pmtAssetId == assetIdA))
751+ let amountWithoutFee = $t02725227603._1
752+ let amountWithFee = $t02725227603._2
753+ let governanceReward = $t02725227603._3
754+ let teamReward = $t02725227603._4
755+ let $t02761727952 = if ((pmtAssetId == assetIdA))
673756 then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB)
674757 else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA)
675- let newBalanceA = $t02516825503._1
676- let newBalanceB = $t02516825503._2
677- let assetIdSend = $t02516825503._3
678- let $t02551725777 = if ((pmtAssetId == assetIdA))
758+ let newBalanceA = $t02761727952._1
759+ let newBalanceB = $t02761727952._2
760+ let assetIdSend = $t02761727952._3
761+ let $t02796628226 = if ((pmtAssetId == assetIdA))
679762 then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward))
680763 else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount)
681- let stakeAmountA = $t02551725777._1
682- let stakeAmountB = $t02551725777._2
764+ let stakeAmountA = $t02796628226._1
765+ let stakeAmountB = $t02796628226._2
683766 let stake1 = if (contains(stakingAssets, strAssetIdA))
684767 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
685768 else 0
686769 if ((stake1 == stake1))
687770 then {
688771 let stake2 = if (contains(stakingAssets, strAssetIdB))
689772 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil)
690773 else 0
691774 if ((stake2 == stake2))
692775 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend), ScriptTransfer(teamBoxAddress, teamReward, assetIdSend)], [amountWithFee, assetIdSend]))
693776 else throw("Strict value is not equal to itself.")
694777 }
695778 else throw("Strict value is not equal to itself.")
696779 }
697780 })))
698781
699782
700783
701784 @Callable(i)
702785 func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
703786 let caller = Address(callerBytes)
704787 let pmtAssetIdA = parsePaymentAsset(pAssetIds[0])
705788 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
706789 let stakeFarming = (args[0] == "true")
707790 let lockType = parseIntValue(args[1])
708- let $t02709227182 = getPoolAssets(i.caller)
709- let strAssetIdA = $t02709227182._1
710- let strAssetIdB = $t02709227182._2
711- let assetIdA = $t02709227182._3
712- let assetIdB = $t02709227182._4
713- let shareAssetId = $t02709227182._5
714- let $t02719127297 = getPoolBalances(i.caller, assetIdA, assetIdB)
715- let balanceA = $t02719127297._1
716- let balanceB = $t02719127297._2
717- let accountBalanceA = $t02719127297._3
718- let accountBalanceB = $t02719127297._4
719- let shareAssetSupply = getLpSupply(i.caller)
791+ let $t02954129631 = getPoolAssets(i.caller)
792+ let strAssetIdA = $t02954129631._1
793+ let strAssetIdB = $t02954129631._2
794+ let assetIdA = $t02954129631._3
795+ let assetIdB = $t02954129631._4
796+ let shareAssetId = $t02954129631._5
797+ let $t02964029764 = getPoolBalances(i.caller, assetIdA, assetIdB)
798+ let balanceA = $t02964029764._1
799+ let balanceB = $t02964029764._2
800+ let accountBalanceA = $t02964029764._3
801+ let accountBalanceB = $t02964029764._4
802+ let shareAssetSupply = $t02964029764._5
720803 if ((size(args) != 2))
721804 then throw("Wrong args size")
722805 else if (if ((size(pAmounts) != 2))
723806 then (size(pAmounts) != 3)
724807 else false)
725808 then throw("Two or three payments expected")
726809 else if (if ((pmtAssetIdA != assetIdA))
727810 then true
728811 else (pmtAssetIdB != assetIdB))
729812 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
730813 else if (if ((balanceA > accountBalanceA))
731814 then true
732815 else (balanceB > accountBalanceB))
733- then $Tuple2(nil, $Tuple2(([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3))
816+ then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3))
734817 then [AttachedPayment(if ((pAssetIds[2] == base58''))
735818 then unit
736819 else pAssetIds[2], pAmounts[2])]
737- else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))), nil))
820+ else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
738821 else {
739- let $t02829228490 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
740- let shareTokenToPayAmount = $t02829228490._1
741- let change = $t02829228490._2
742- let changeAssetId = $t02829228490._3
743- let pmtAmountA = $t02829228490._4
744- let pmtAmountB = $t02829228490._5
822+ let $t03070130899 = calcLPAmountReplensishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
823+ let shareTokenToPayAmount = $t03070130899._1
824+ let change = $t03070130899._2
825+ let changeAssetId = $t03070130899._3
826+ let pmtAmountA = $t03070130899._4
827+ let pmtAmountB = $t03070130899._5
745828 if ((shareTokenToPayAmount == 0))
746829 then throw("Too small amount to replenish")
747830 else if ((0 > change))
748831 then throw("Change < 0")
749832 else {
750833 let stake1 = if (contains(stakingAssets, strAssetIdA))
751834 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, strAssetIdA], nil)
752835 else 0
753836 if ((stake1 == stake1))
754837 then {
755838 let stake2 = if (contains(stakingAssets, strAssetIdB))
756839 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, strAssetIdB], nil)
757840 else 0
758841 if ((stake2 == stake2))
759842 then {
760843 let shareTokenST = if (stakeFarming)
761844 then {
762845 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3))
763846 then [AttachedPayment(if ((pAssetIds[2] == base58''))
764847 then unit
765848 else pAssetIds[2], pAmounts[2])]
766849 else nil))
767850 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
768851 if ((reissue == reissue))
769852 then {
770853 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
771854 if ((stake3 == stake3))
772855 then nil
773856 else throw("Strict value is not equal to itself.")
774857 }
775858 else throw("Strict value is not equal to itself.")
776859 }
777860 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
778861 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil))
779862 }
780863 else throw("Strict value is not equal to itself.")
781864 }
782865 else throw("Strict value is not equal to itself.")
783866 }
784867 }
785868 })))
786869
787870
788871
789872 @Callable(i)
790873 func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
791874 let caller = Address(callerBytes)
792875 let pmtAssetId = parsePaymentAsset(pAssetIds[0])
793876 let pmtAmount = pAmounts[0]
794877 let virtGetMinAmount = parseIntValue(args[0])
795878 let stakeFarming = (args[1] == "true")
796879 let lockType = parseIntValue(args[2])
797- let $t03074930839 = getPoolAssets(i.caller)
798- let strAssetIdA = $t03074930839._1
799- let strAssetIdB = $t03074930839._2
800- let assetIdA = $t03074930839._3
801- let assetIdB = $t03074930839._4
802- let shareAssetId = $t03074930839._5
803- let $t03084430950 = getPoolBalances(i.caller, assetIdA, assetIdB)
804- let balanceA = $t03084430950._1
805- let balanceB = $t03084430950._2
806- let accountBalanceA = $t03084430950._3
807- let accountBalanceB = $t03084430950._4
808- let shareAssetSupply = getLpSupply(i.caller)
880+ let $t03315833248 = getPoolAssets(i.caller)
881+ let strAssetIdA = $t03315833248._1
882+ let strAssetIdB = $t03315833248._2
883+ let assetIdA = $t03315833248._3
884+ let assetIdB = $t03315833248._4
885+ let shareAssetId = $t03315833248._5
886+ let $t03325333377 = getPoolBalances(i.caller, assetIdA, assetIdB)
887+ let balanceA = $t03325333377._1
888+ let balanceB = $t03325333377._2
889+ let accountBalanceA = $t03325333377._3
890+ let accountBalanceB = $t03325333377._4
891+ let shareAssetSupply = $t03325333377._5
809892 let initial = ((balanceA + balanceB) == 0)
810893 if ((size(args) != 3))
811894 then throw("Wrong args size")
812895 else if (if ((size(pAmounts) != 1))
813896 then (size(pAmounts) != 2)
814897 else false)
815898 then throw("Two or one attached assets expected")
816899 else if (if ((pmtAssetId != assetIdA))
817900 then (pmtAssetId != assetIdB)
818901 else false)
819902 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
820903 else if (initial)
821904 then throw("For initial exchanger you need to use two tokens")
822905 else if (if ((balanceA > accountBalanceA))
823906 then true
824907 else (balanceB > accountBalanceB))
825- then $Tuple2(nil, $Tuple2(([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2))
908+ then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2))
826909 then [AttachedPayment(if ((pAssetIds[2] == base58''))
827910 then unit
828911 else pAssetIds[2], pAmounts[2])]
829- else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))), nil))
912+ else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
830913 else {
831- let $t03191731984 = getFeeParams(i.caller, i.originCaller)
832- let fee = $t03191731984._1
833- let govFee = $t03191731984._2
834- let teamFee = $t03191731984._3
835- let $t03199332055 = getAssetInfo(pmtAssetId)
836- let pmtAssetIdStr = $t03199332055._1
837- let pmtAssetIdName = $t03199332055._2
838- let $t03207332318 = calcLPAmountReplenishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
839- let shareTokenToPayAmount = $t03207332318._1
840- let newBalanceA = $t03207332318._2
841- let newBalanceB = $t03207332318._3
842- let govReward = $t03207332318._4
843- let teamReward = $t03207332318._5
844- let govRewardAsset = $t03207332318._6
914+ let $t03428934356 = getFeeParams(i.caller, i.originCaller)
915+ let fee = $t03428934356._1
916+ let govFee = $t03428934356._2
917+ let teamFee = $t03428934356._3
918+ let $t03436534427 = getAssetInfo(pmtAssetId)
919+ let pmtAssetIdStr = $t03436534427._1
920+ let pmtAssetIdName = $t03436534427._2
921+ let $t03444534690 = calcLPAmountReplenishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
922+ let shareTokenToPayAmount = $t03444534690._1
923+ let newBalanceA = $t03444534690._2
924+ let newBalanceB = $t03444534690._3
925+ let govReward = $t03444534690._4
926+ let teamReward = $t03444534690._5
927+ let govRewardAsset = $t03444534690._6
845928 let govRewardAssetStr = if ((govRewardAsset == assetIdA))
846929 then strAssetIdA
847930 else strAssetIdB
848931 if ((shareTokenToPayAmount == 0))
849932 then throw("Too small amount to replenish")
850933 else {
851934 let stake1 = if (contains(stakingAssets, pmtAssetIdStr))
852935 then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil)
853936 else 0
854937 if ((stake1 == stake1))
855938 then {
856939 let stake2 = if (contains(stakingAssets, govRewardAssetStr))
857940 then invoke(i.caller, "stakeUnstake", [false, (govReward + teamReward), govRewardAssetStr], nil)
858941 else 0
859942 if ((stake2 == stake2))
860943 then {
861944 let shareTokenST = if (stakeFarming)
862945 then {
863946 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2))
864947 then [AttachedPayment(if ((pAssetIds[1] == base58''))
865948 then unit
866949 else pAssetIds[1], pAmounts[1])]
867950 else nil))
868951 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
869952 if ((reissue == reissue))
870953 then {
871954 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
872955 if ((stake3 == stake3))
873956 then nil
874957 else throw("Strict value is not equal to itself.")
875958 }
876959 else throw("Strict value is not equal to itself.")
877960 }
878961 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
879962 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset), ScriptTransfer(teamBoxAddress, teamReward, govRewardAsset)] ++ shareTokenST), nil))
880963 }
881964 else throw("Strict value is not equal to itself.")
882965 }
883966 else throw("Strict value is not equal to itself.")
884967 }
885968 }
886969 })))
887970
888971
889972
890973 @Callable(i)
891974 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
892975 let caller = Address(callerBytes)
893- let $t03438634476 = getPoolAssets(i.caller)
894- let strAssetIdA = $t03438634476._1
895- let strAssetIdB = $t03438634476._2
896- let assetIdA = $t03438634476._3
897- let assetIdB = $t03438634476._4
898- let shareAssetId = $t03438634476._5
899- let $t03448534591 = getPoolBalances(i.caller, assetIdA, assetIdB)
900- let balanceA = $t03448534591._1
901- let balanceB = $t03448534591._2
902- let accountBalanceA = $t03448534591._3
903- let accountBalanceB = $t03448534591._4
904- let shareAssetSupply = getLpSupply(i.caller)
905- let $t03465335033 = if ((size(pAmounts) == 1))
976+ let $t03675836848 = getPoolAssets(i.caller)
977+ let strAssetIdA = $t03675836848._1
978+ let strAssetIdB = $t03675836848._2
979+ let assetIdA = $t03675836848._3
980+ let assetIdB = $t03675836848._4
981+ let shareAssetId = $t03675836848._5
982+ let $t03685736981 = getPoolBalances(i.caller, assetIdA, assetIdB)
983+ let balanceA = $t03685736981._1
984+ let balanceB = $t03685736981._2
985+ let accountBalanceA = $t03685736981._3
986+ let accountBalanceB = $t03685736981._4
987+ let shareAssetSupply = $t03685736981._5
988+ let $t03699037370 = if ((size(pAmounts) == 1))
906989 then {
907990 let pAsset = parsePaymentAsset(pAssetIds[0])
908991 if ((pAsset != shareAssetId))
909992 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
910993 else $Tuple2(pAmounts[0], pAsset)
911994 }
912995 else $Tuple2(0, shareAssetId)
913- let pmtAmount = $t03465335033._1
914- let pmtAssetId = $t03465335033._2
996+ let pmtAmount = $t03699037370._1
997+ let pmtAssetId = $t03699037370._2
915998 if ((size(args) != 1))
916999 then throw("Wrong args size")
9171000 else if ((size(pAmounts) > 1))
9181001 then throw("One attached payment expected")
9191002 else if (if ((balanceA > accountBalanceA))
9201003 then true
9211004 else (balanceB > accountBalanceB))
922- then $Tuple2(nil, $Tuple2(([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)), nil))
1005+ then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
9231006 else {
9241007 let unlockAmount = parseIntValue(valueOrElse(args[0], "0"))
9251008 let unlock = if ((unlockAmount > 0))
9261009 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
9271010 else 0
9281011 if ((unlock == unlock))
9291012 then {
9301013 let withdrawAmount = (pmtAmount + unlockAmount)
9311014 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
9321015 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
9331016 let stake1 = if (contains(stakingAssets, strAssetIdA))
9341017 then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
9351018 else 0
9361019 if ((stake1 == stake1))
9371020 then {
9381021 let stake2 = if (contains(stakingAssets, strAssetIdB))
9391022 then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
9401023 else 0
9411024 if ((stake2 == stake2))
9421025 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))
9431026 else throw("Strict value is not equal to itself.")
9441027 }
9451028 else throw("Strict value is not equal to itself.")
9461029 }
9471030 else throw("Strict value is not equal to itself.")
9481031 }
9491032 }))
9501033
9511034
9521035
9531036 @Callable(i)
9541037 func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
9551038 let caller = Address(callerBytes)
9561039 let withdrawAsset = if ((args[0] == ""))
9571040 then unit
9581041 else fromBase58String(args[0])
959- let $t03724037330 = getPoolAssets(i.caller)
960- let strAssetIdA = $t03724037330._1
961- let strAssetIdB = $t03724037330._2
962- let assetIdA = $t03724037330._3
963- let assetIdB = $t03724037330._4
964- let shareAssetId = $t03724037330._5
965- let $t03733937445 = getPoolBalances(i.caller, assetIdA, assetIdB)
966- let balanceA = $t03733937445._1
967- let balanceB = $t03733937445._2
968- let accountBalanceA = $t03733937445._3
969- let accountBalanceB = $t03733937445._4
970- let shareAssetSupply = getLpSupply(i.caller)
971- let $t03750737859 = if ((size(pAmounts) == 1))
1042+ let $t03958839678 = getPoolAssets(i.caller)
1043+ let strAssetIdA = $t03958839678._1
1044+ let strAssetIdB = $t03958839678._2
1045+ let assetIdA = $t03958839678._3
1046+ let assetIdB = $t03958839678._4
1047+ let shareAssetId = $t03958839678._5
1048+ let $t03968739811 = getPoolBalances(i.caller, assetIdA, assetIdB)
1049+ let balanceA = $t03968739811._1
1050+ let balanceB = $t03968739811._2
1051+ let accountBalanceA = $t03968739811._3
1052+ let accountBalanceB = $t03968739811._4
1053+ let shareAssetSupply = $t03968739811._5
1054+ let $t03982040172 = if ((size(pAmounts) == 1))
9721055 then {
9731056 let pAsset = parsePaymentAsset(pAssetIds[0])
9741057 if ((pAsset != shareAssetId))
9751058 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
9761059 else $Tuple2(pAmounts[0], pAsset)
9771060 }
9781061 else $Tuple2(0, shareAssetId)
979- let pmtAmount = $t03750737859._1
980- let pmtAssetId = $t03750737859._2
1062+ let pmtAmount = $t03982040172._1
1063+ let pmtAssetId = $t03982040172._2
9811064 let virtMinToRecive = parseIntValue(args[1])
9821065 if ((size(args) != 3))
9831066 then throw("Wrong args size")
9841067 else if ((size(pAmounts) > 1))
9851068 then throw("One attached payment expected")
9861069 else if ((pmtAssetId != shareAssetId))
9871070 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
9881071 else if (!(containsElement([assetIdA, assetIdB], withdrawAsset)))
9891072 then throw("Incorrect withdraw asset.")
9901073 else if (if ((balanceA > accountBalanceA))
9911074 then true
9921075 else (balanceB > accountBalanceB))
993- then $Tuple2(nil, $Tuple2(([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)), nil))
1076+ then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
9941077 else {
9951078 let unlockAmount = parseIntValue(valueOrElse(args[2], "0"))
9961079 let unlock = if ((unlockAmount > 0))
9971080 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
9981081 else 0
9991082 if ((unlock == unlock))
10001083 then {
10011084 let withdrawAmount = (pmtAmount + unlockAmount)
10021085 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
10031086 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
1004- let $t03913239199 = getFeeParams(i.caller, i.originCaller)
1005- let fee = $t03913239199._1
1006- let govFee = $t03913239199._2
1007- let teamFee = $t03913239199._3
1008- let $t03921239626 = if ((withdrawAsset == assetIdA))
1087+ let $t04143941506 = getFeeParams(i.caller, i.originCaller)
1088+ let fee = $t04143941506._1
1089+ let govFee = $t04143941506._2
1090+ let teamFee = $t04143941506._3
1091+ let $t04151941933 = if ((withdrawAsset == assetIdA))
10091092 then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee)
10101093 else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee)
1011- let amountWithoutFee = $t03921239626._1
1012- let amountWithFee = $t03921239626._2
1013- let governanceReward = $t03921239626._3
1014- let teamReward = $t03921239626._4
1015- let $t03963940949 = if ((withdrawAsset == assetIdA))
1094+ let amountWithoutFee = $t04151941933._1
1095+ let amountWithFee = $t04151941933._2
1096+ let governanceReward = $t04151941933._3
1097+ let teamReward = $t04151941933._4
1098+ let $t04194643256 = if ((withdrawAsset == assetIdA))
10161099 then {
10171100 let unstake = if (contains(stakingAssets, strAssetIdA))
10181101 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil)
10191102 else 0
10201103 if ((unstake == unstake))
10211104 then $Tuple4(((((balanceA - amountToPayA) - amountWithFee) - governanceReward) - teamReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)])
10221105 else throw("Strict value is not equal to itself.")
10231106 }
10241107 else {
10251108 let unstake = if (contains(stakingAssets, strAssetIdB))
10261109 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayB + amountWithFee) + governanceReward) + teamReward), strAssetIdB], nil)
10271110 else 0
10281111 if ((unstake == unstake))
10291112 then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
10301113 else throw("Strict value is not equal to itself.")
10311114 }
1032- let newBalanceA = $t03963940949._1
1033- let newBalanceB = $t03963940949._2
1034- let govRewardAssetId = $t03963940949._3
1035- let userTransfer = $t03963940949._4
1115+ let newBalanceA = $t04194643256._1
1116+ let newBalanceB = $t04194643256._2
1117+ let govRewardAssetId = $t04194643256._3
1118+ let userTransfer = $t04194643256._4
10361119 $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))
10371120 }
10381121 else throw("Strict value is not equal to itself.")
10391122 }
10401123 })))
10411124
10421125
10431126
10441127 @Callable(i)
10451128 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
1046- let $t04170941785 = getPoolAssets(i.caller)
1047- let strAssetIdA = $t04170941785._1
1048- let strAssetIdB = $t04170941785._2
1049- let assetIdA = $t04170941785._3
1050- let assetIdB = $t04170941785._4
1129+ let $t04401644092 = getPoolAssets(i.caller)
1130+ let strAssetIdA = $t04401644092._1
1131+ let strAssetIdB = $t04401644092._2
1132+ let assetIdA = $t04401644092._3
1133+ let assetIdB = $t04401644092._4
10511134 let claim = if (if ((assetIdA == USDN))
10521135 then true
10531136 else (assetIdB == USDN))
10541137 then invoke(i.caller, "claimNetrinoRewards", nil, nil)
1055- else nil
1138+ else 0
10561139 if ((claim == claim))
10571140 then {
1058- let $t04196942105 = getPoolBalances(i.caller, assetIdA, assetIdB)
1059- let balanceA = $t04196942105._1
1060- let balanceB = $t04196942105._2
1061- let accountBalanceA = $t04196942105._3
1062- let accountBalanceB = $t04196942105._4
1063- let stakedAmountA = $t04196942105._5
1064- let stakedAmountB = $t04196942105._6
1141+ let $t04425244358 = getPoolBalances(i.caller, assetIdA, assetIdB)
1142+ let balanceA = $t04425244358._1
1143+ let balanceB = $t04425244358._2
1144+ let accountBalanceA = $t04425244358._3
1145+ let accountBalanceB = $t04425244358._4
10651146 let amountEnrollA = (accountBalanceA - balanceA)
10661147 let amountEnrollB = (accountBalanceB - balanceB)
1067- let $t04222542539 = if ((assetIdA == L2MP))
1068- then $Tuple2((accountBalanceA - stakedAmountA), amountEnrollB)
1069- else if ((assetIdB == L2MP))
1070- then $Tuple2(amountEnrollA, (accountBalanceB - stakedAmountB))
1071- else $Tuple2(amountEnrollA, amountEnrollB)
1072- let amountToStakeA = $t04222542539._1
1073- let amountToStakeB = $t04222542539._2
10741148 if ((size(args) != 0))
10751149 then throw("Wrong args size")
10761150 else if ((moneyBoxAddress != i.originCaller))
10771151 then throw("Only the wallet can call this function")
10781152 else if (if ((0 > amountEnrollA))
10791153 then true
10801154 else (0 > amountEnrollB))
10811155 then suspend("Enroll amount negative")
10821156 else if (if ((amountEnrollA == 0))
10831157 then (amountEnrollB == 0)
10841158 else false)
10851159 then throw("No money to take")
10861160 else {
10871161 let stake1 = if (if (contains(stakingAssets, strAssetIdA))
1088- then (amountToStakeA > 0)
1162+ then (amountEnrollA > 0)
10891163 else false)
1090- then invoke(i.caller, "stakeUnstake", [true, amountToStakeA, strAssetIdA], nil)
1164+ then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
10911165 else 0
10921166 if ((stake1 == stake1))
10931167 then {
10941168 let stake2 = if (if (contains(stakingAssets, strAssetIdB))
1095- then (amountToStakeB > 0)
1169+ then (amountEnrollB > 0)
10961170 else false)
1097- then invoke(i.caller, "stakeUnstake", [true, amountToStakeB, strAssetIdB], nil)
1171+ then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
10981172 else 0
10991173 if ((stake2 == stake2))
11001174 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil))
11011175 else throw("Strict value is not equal to itself.")
11021176 }
11031177 else throw("Strict value is not equal to itself.")
11041178 }
11051179 }
11061180 else throw("Strict value is not equal to itself.")
11071181 }))
11081182
11091183
11101184 @Verifier(tx)
11111185 func verify () = {
11121186 let multiSignedByAdmins = {
11131187 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
11141188 then 1
11151189 else 0
11161190 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
11171191 then 1
11181192 else 0
11191193 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
11201194 then 1
11211195 else 0
11221196 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
11231197 }
11241198 multiSignedByAdmins
11251199 }
11261200

github/deemru/w8io/026f985 
219.92 ms