tx · 9aXugkWGEkPRK6SpH4LTpcAECJJSqBsJv4o6724riXSt

3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS:  -0.08000000 Waves

2022.11.25 00:26 [2331710] smart account 3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS > SELF 0.00000000 Waves

{ "type": 13, "id": "9aXugkWGEkPRK6SpH4LTpcAECJJSqBsJv4o6724riXSt", "fee": 8000000, "feeAssetId": null, "timestamp": 1669325135763, "version": 2, "chainId": 84, "sender": "3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS", "senderPublicKey": "C7xgcYqQ8qV8rmvzAjhQWq4cz82F6VJfXMNygvrTXsfW", "proofs": [ "3KsJTucKyM1SCiXyMyCvfpNUawkvTJWXNe2RLTGpAvukBpq9YjZGA5Zvxib23hPBjW6BoR99YUE5nwyNuWznwnvC", "MsPcpcrUyudP5S79z6LGaYDZn7Wz8HRyim8mNCZD5vAnMnPku386P1J6xsdL6MLSANoDUP7znAEpWBVwB8AuEH2" ], "script": "base64:BgJmCAISBAoCEQESBQoDCAEBEgUKAwEEARIECgIRCBIDCgEBEgYKBAgIAQgSBAoCCAESAwoBERIECgIRARIFCgMBCAgSBAoCCAESBQoDCAEBEgASABIECgIRBBIECgIBARIAEgASABIAXAAJUFJFQ0lTSU9OAMCEPQAFTUFYX0EAwIQ9AAxNQVhfQV9DSEFOR0UACgAIREVDSU1BTFMABgANTUlOX1JBTVBfVElNRQkAaQIAgKMFADwAB3ZlcnNpb24CBTMuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0Fzc2V0cwIJYXNzZXRfaWRzAA1rQXNzZXRCYWxhbmNlAghfYmFsYW5jZQAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMABmtDYXVzZQIOc2h1dGRvd25fY2F1c2UADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3NldFN1cHBseQ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CeUFkbWluBwYFE211bHRpU2lnbmVkQnlBZG1pbnMFE211bHRpU2lnbmVkQnlBZG1pbnPzVD8U", "height": 2331710, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 45hJedv3552NyZDqW11cbB7HkKbTgt8t2wQFCcLsa2p6 Next: 6qhLkDFqMWisAhKUqnDMTwSTqtb6G7RCXdQuQytgVba5 Diff:
OldNewDifferences
738738 }
739739
740740
741-func calcWithdrawOneCoinEntries (msg,tokenOut,minAmount,unlockAmount) = if ((size(msg.payments) != 1))
742- then throw("size(payments) != 1")
743- else {
744- let suspicious = checkSuspicious()
745- if (suspicious._1)
746- then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments))
747- else {
748- let pmtAmount = if ((size(msg.payments) > 0))
749- then if ((size(msg.payments) != 1))
750- then throw("size(payments) != 1")
741+func calcWithdrawOneCoinEntries (msg,tokenOut,minAmount,unlockAmount) = {
742+ let suspicious = checkSuspicious()
743+ if (suspicious._1)
744+ then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments))
745+ else {
746+ let pmtAmount = if ((size(msg.payments) > 0))
747+ then {
748+ let pmtAssetId = msg.payments[0].assetId
749+ if ((shareAssetId != pmtAssetId))
750+ then throw("unknown payment token")
751+ else msg.payments[0].amount
752+ }
753+ else 0
754+ let outIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
755+ let tokenOutB58 = fromBase58String(tokenOut)
756+ let withdrawAmount = (pmtAmount + unlockAmount)
757+ let xp = _xp()
758+ let $t01612516212 = _calcWithdrawOneCoin(xp, withdrawAmount, outIndex, msg.originCaller)
759+ let dy = $t01612516212._1
760+ let dy_fee = $t01612516212._2
761+ if (assert((dy >= minAmount)))
762+ then throw("Not enough coins removed")
763+ else {
764+ let governanceFees = fraction(dy_fee, feeGovernance, feeScale6)
765+ let dy_and_fee = (dy + dy_fee)
766+ func makeNewBalances (acc,tokenBalance) = {
767+ let $t01647016496 = acc
768+ let newBalances = $t01647016496._1
769+ let i = $t01647016496._2
770+ if ((i == outIndex))
771+ then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1))
772+ else $Tuple2((newBalances :+ tokenBalance), (i + 1))
773+ }
774+
775+ let $t01666316724 = {
776+ let $l = xp
777+ let $s = size($l)
778+ let $acc0 = $Tuple2(nil, 0)
779+ func $f0_1 ($a,$i) = if (($i >= $s))
780+ then $a
781+ else makeNewBalances($a, $l[$i])
782+
783+ func $f0_2 ($a,$i) = if (($i >= $s))
784+ then $a
785+ else throw("List size exceeds 10")
786+
787+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
788+ }
789+ let newBalances = $t01666316724._1
790+ let v = $t01666316724._2
791+ if (checkDAppThreshold(newBalances))
792+ then throw()
751793 else {
752- let pmtAssetId = msg.payments[0].assetId
753- if ((shareAssetId != pmtAssetId))
754- then throw("unknown payment token")
755- else msg.payments[0].amount
794+ let us = unstake(dy_and_fee, tokenOut)
795+ if ((us == us))
796+ then {
797+ let lpFees = (dy_fee - governanceFees)
798+ let airdrop = if ((lpFees > 0))
799+ then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
800+ else 0
801+ if ((airdrop == airdrop))
802+ then [ScriptTransfer(msg.originCaller, dy, tokenOutB58), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))]
803+ else throw("Strict value is not equal to itself.")
804+ }
805+ else throw("Strict value is not equal to itself.")
756806 }
757- else 0
758- let outIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
759- let tokenOutB58 = fromBase58String(tokenOut)
760- let withdrawAmount = (pmtAmount + unlockAmount)
761- let xp = _xp()
762- let $t01627116358 = _calcWithdrawOneCoin(xp, withdrawAmount, outIndex, msg.originCaller)
763- let dy = $t01627116358._1
764- let dy_fee = $t01627116358._2
765- if (assert((dy >= minAmount)))
766- then throw("Not enough coins removed")
767- else {
768- let governanceFees = fraction(dy_fee, feeGovernance, feeScale6)
769- let dy_and_fee = (dy + dy_fee)
770- func makeNewBalances (acc,tokenBalance) = {
771- let $t01661616642 = acc
772- let newBalances = $t01661616642._1
773- let i = $t01661616642._2
774- if ((i == outIndex))
775- then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1))
776- else $Tuple2((newBalances :+ tokenBalance), (i + 1))
777- }
778-
779- let $t01680916870 = {
780- let $l = xp
781- let $s = size($l)
782- let $acc0 = $Tuple2(nil, 0)
783- func $f0_1 ($a,$i) = if (($i >= $s))
784- then $a
785- else makeNewBalances($a, $l[$i])
786-
787- func $f0_2 ($a,$i) = if (($i >= $s))
788- then $a
789- else throw("List size exceeds 10")
790-
791- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
792- }
793- let newBalances = $t01680916870._1
794- let v = $t01680916870._2
795- if (checkDAppThreshold(newBalances))
796- then throw()
797- else {
798- let us = unstake(dy_and_fee, tokenOut)
799- if ((us == us))
800- then {
801- let lpFees = (dy_fee - governanceFees)
802- let airdrop = if ((lpFees > 0))
803- then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
804- else 0
805- if ((airdrop == airdrop))
806- then [ScriptTransfer(msg.originCaller, dy, tokenOutB58), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))]
807- else throw("Strict value is not equal to itself.")
808- }
809- else throw("Strict value is not equal to itself.")
810- }
811- }
812- }
813- }
807+ }
808+ }
809+ }
814810
815811
816812 @Callable(msg)
847843 let D0 = if ((shareSupply == 0))
848844 then 0
849845 else getDMem(xp, amp)
850- let $t01901019264 = if (if ((lockType > 0))
846+ let $t01886419118 = if (if ((lockType > 0))
851847 then (msg.payments[(size(msg.payments) - 1)].assetId == unit)
852848 else false)
853849 then $Tuple2(removeByIndex(msg.payments, (size(msg.payments) - 1)), [msg.payments[(size(msg.payments) - 1)]])
854850 else $Tuple2(msg.payments, nil)
855- let payments = $t01901019264._1
856- let lockFee = $t01901019264._2
851+ let payments = $t01886419118._1
852+ let lockFee = $t01886419118._2
857853 let paymentsSize = size(payments)
858854 func validPayments (n) = if ((paymentsSize > nCoins))
859855 then throw(("payments size > " + toString(nCoins)))
890886 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, payments))
891887 else {
892888 func parsePayments (acc,assetId) = {
893- let $t02013420160 = acc
894- let newBalances = $t02013420160._1
895- let i = $t02013420160._2
889+ let $t01998820014 = acc
890+ let newBalances = $t01998820014._1
891+ let i = $t01998820014._2
896892 func parsePayment (newBalance,payment) = if ((getStrAssetId(payment.assetId) == assetId))
897893 then (newBalance + payment.amount)
898894 else newBalance
914910 $Tuple2((newBalances :+ newBalace), (i + 1))
915911 }
916912
917- let $t02051020577 = {
913+ let $t02036420431 = {
918914 let $l = assetIds
919915 let $s = size($l)
920916 let $acc0 = $Tuple2(nil, 0)
928924
929925 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
930926 }
931- let newBalances = $t02051020577._1
932- let k = $t02051020577._2
927+ let newBalances = $t02036420431._1
928+ let k = $t02036420431._2
933929 if (checkDAppThreshold(newBalances))
934930 then throw()
935931 else {
939935 else {
940936 let feeDiscount = calculateFeeDiscount(msg.caller)
941937 func calcScriptActions (acc,newBalance) = {
942- let $t02089720938 = acc
943- let invBalances = $t02089720938._1
944- let scriptActions = $t02089720938._2
945- let i = $t02089720938._3
938+ let $t02075120792 = acc
939+ let invBalances = $t02075120792._1
940+ let scriptActions = $t02075120792._2
941+ let i = $t02075120792._3
946942 if ((shareSupply > 0))
947943 then {
948944 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
980976 }
981977 }
982978
983- let $t02264322731 = {
979+ let $t02249722585 = {
984980 let $l = newBalances
985981 let $s = size($l)
986982 let $acc0 = $Tuple3(nil, nil, 0)
994990
995991 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
996992 }
997- let invBalances = $t02264322731._1
998- let scriptActions = $t02264322731._2
993+ let invBalances = $t02249722585._1
994+ let scriptActions = $t02249722585._2
999995 let D2 = getDMem(invBalances, amp)
1000996 let mint_amount = if ((shareSupply == 0))
1001997 then D1
10341030 let D0 = getDMem(xp, amp)
10351031 let feeDiscount = calculateFeeDiscount(user)
10361032 func calcInvBalances (acc,newBalance) = {
1037- let $t02400724033 = acc
1038- let invBalances = $t02400724033._1
1039- let i = $t02400724033._2
1033+ let $t02386123887 = acc
1034+ let invBalances = $t02386123887._1
1035+ let i = $t02386123887._2
10401036 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
10411037 let fees = {
10421038 let idealBalance = fraction(D1, xp[i], D0)
10491045 $Tuple2((invBalances :+ invariantBalance), (i + 1))
10501046 }
10511047
1052- let $t02463524705 = {
1048+ let $t02448924559 = {
10531049 let $l = newBalances
10541050 let $s = size($l)
10551051 let $acc0 = $Tuple2(nil, 0)
10631059
10641060 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
10651061 }
1066- let invBalances = $t02463524705._1
1067- let k = $t02463524705._2
1062+ let invBalances = $t02448924559._1
1063+ let k = $t02448924559._2
10681064 let D2 = getDMem(invBalances, amp)
10691065 let mintAmount = fraction(shareSupply, (D2 - D0), D0)
10701066 $Tuple2(nil, mintAmount)
11191115 then throw("Exchange resulted in fewer coins than expected")
11201116 else {
11211117 func makeNewBalances (acc,tokenBalance) = {
1122- let $t02674626772 = acc
1123- let newBalances = $t02674626772._1
1124- let i = $t02674626772._2
1118+ let $t02660026626 = acc
1119+ let newBalances = $t02660026626._1
1120+ let i = $t02660026626._2
11251121 if ((i == fromIndex))
11261122 then $Tuple2((newBalances :+ (tokenBalance + dx)), (i + 1))
11271123 else if ((i == toIndex))
11291125 else $Tuple2((newBalances :+ tokenBalance), (i + 1))
11301126 }
11311127
1132- let $t02702327084 = {
1128+ let $t02687726938 = {
11331129 let $l = xp
11341130 let $s = size($l)
11351131 let $acc0 = $Tuple2(nil, 0)
11431139
11441140 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
11451141 }
1146- let newBalances = $t02702327084._1
1147- let i = $t02702327084._2
1142+ let newBalances = $t02687726938._1
1143+ let i = $t02687726938._2
11481144 if (checkDAppThreshold(newBalances))
11491145 then throw()
11501146 else {
12001196
12011197
12021198 @Callable(msg)
1203-func withdrawOneCoin (tokenOut,minAmount) = valueOrElse(isActive(), calcWithdrawOneCoinEntries(msg, tokenOut, minAmount, 0))
1199+func withdrawOneCoin (tokenOut,minAmount) = valueOrElse(isActive(), if ((size(msg.payments) != 1))
1200+ then throw("size(payments) != 1")
1201+ else calcWithdrawOneCoinEntries(msg, tokenOut, minAmount, 0))
12041202
12051203
12061204
12351233 let balances = _xp()
12361234 let D0 = getDMem(balances, amp)
12371235 func calcNewBalances (acc,balance) = {
1238- let $t02959129617 = acc
1239- let newBalances = $t02959129617._1
1240- let i = $t02959129617._2
1236+ let $t02951629542 = acc
1237+ let newBalances = $t02951629542._1
1238+ let i = $t02951629542._2
12411239 let newBalance = (balance + (if (deposit)
12421240 then amounts[i]
12431241 else -(amounts[i])))
13171315 else {
13181316 let balances = _xp()
13191317 func takeExtraFunds (acc,assetId) = {
1320- let $t03195931977 = acc
1321- let sum = $t03195931977._1
1322- let i = $t03195931977._2
1318+ let $t03188431902 = acc
1319+ let sum = $t03188431902._1
1320+ let i = $t03188431902._2
13231321 let tokenB58 = fromBase58String(assetId)
13241322 let rBalance = (assetBalance(this, tokenB58) + stakedAmount(tokenB58))
13251323 let enrollAmount = (rBalance - balances[i])
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let PRECISION = 1000000
55
66 let MAX_A = 1000000
77
88 let MAX_A_CHANGE = 10
99
1010 let DECIMALS = 6
1111
1212 let MIN_RAMP_TIME = (86400 / 60)
1313
1414 let version = "3.0.0"
1515
1616 let kVersion = "version"
1717
1818 let kAssets = "asset_ids"
1919
2020 let kAssetBalance = "_balance"
2121
2222 let kActive = "active"
2323
2424 let kActiveGlob = "active_all_contracts"
2525
2626 let kCause = "shutdown_cause"
2727
2828 let kShareAssetId = "share_asset_id"
2929
3030 let kShareAssetSupply = "share_asset_supply"
3131
3232 let kFee = "commission"
3333
3434 let kDAppThresholdCoef = "dAppThresholdCoef"
3535
3636 let kUSDNAddress = "staking_usdnnsbt_address"
3737
3838 let kDiscounts = "discounts"
3939
4040 let kDiscountValues = "discount_values"
4141
4242 let kUserSwopInGov = "_SWOP_amount"
4343
4444 let kUserGSwopInGov = "_GSwop_amount"
4545
4646 let kAdminPubKey1 = "admin_pub_1"
4747
4848 let kAdminPubKey2 = "admin_pub_2"
4949
5050 let kAdminPubKey3 = "admin_pub_3"
5151
5252 let kAdminInvokePubKey = "admin_invoke_pub"
5353
5454 let kMoneyBoxAddress = "money_box_address"
5555
5656 let kGovAddress = "governance_address"
5757
5858 let kVotingAddress = "voting_address"
5959
6060 let kFarmingAddress = "farming_address"
6161
6262 let kLPFarmingAddress = "lp_farming"
6363
6464 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
6565
6666 func getBase58FromOracle (key) = match getString(oracle, key) {
6767 case string: String =>
6868 fromBase58String(string)
6969 case nothing =>
7070 throw((key + "is empty"))
7171 }
7272
7373
7474 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
7575
7676 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
7777
7878 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
7979
8080 let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey)
8181
8282 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
8383
8484 let govAddress = Address(getBase58FromOracle(kGovAddress))
8585
8686 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
8787
8888 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
8989
9090 let farmingAddress = Address(getBase58FromOracle(kFarmingAddress))
9191
9292 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
9393
9494 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
9595
9696 let stakingAssets = [toBase58String(USDN)]
9797
9898 let active = getBooleanValue(this, kActive)
9999
100100 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
101101
102102 let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
103103
104104 let shareSupply = getIntegerValue(this, kShareAssetSupply)
105105
106106 let feeScale6 = 1000000
107107
108108 let fee = getIntegerValue(this, kFee)
109109
110110 let feeGovernance = fraction(40, feeScale6, 100)
111111
112112 let initial_A = getIntegerValue(this, "initial_A")
113113
114114 let future_A = getIntegerValue(this, "future_A")
115115
116116 let initial_A_time = valueOrElse(getInteger(this, "initial_A_time"), 0)
117117
118118 let future_A_time = valueOrElse(getInteger(this, "future_A_time"), 0)
119119
120120 let assetIds = split(getStringValue(this, kAssets), ",")
121121
122122 let nCoins = size(assetIds)
123123
124124 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
125125
126126
127127 func throwIsActive () = throw("DApp is already active")
128128
129129
130130 func isActive () = if (if (active)
131131 then activeGlob
132132 else false)
133133 then unit
134134 else throw("DApp is inactive at this moment")
135135
136136
137137 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
138138 then unit
139139 else throw("Only admin can call this function")
140140
141141
142142 func isSelfCall (i) = if ((this == i.caller))
143143 then unit
144144 else throw("Only contract itself can call this function")
145145
146146
147147 let big2 = toBigInt(2)
148148
149149 let iter10 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
150150
151151 let iter15 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
152152
153153 let iter16 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
154154
155155 let blockTimestamp = height
156156
157157 func assert (a) = if (a)
158158 then false
159159 else true
160160
161161
162162 func calculateFeeDiscount (userAddr) = {
163163 let user = match userAddr {
164164 case u: Address =>
165165 toString(u)
166166 case u: String =>
167167 u
168168 case _ =>
169169 throw("Unknow type of user Addr")
170170 }
171171 let swopAmount = valueOrElse(getInteger(govAddress, (user + kUserGSwopInGov)), 0)
172172 let gSwopAmount = valueOrElse(getInteger(govAddress, (user + kUserGSwopInGov)), swopAmount)
173173 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
174174 let discounts = split(getStringValue(oracle, kDiscounts), ",")
175175 if (if ((gSwopAmount >= parseIntValue(discountValues[0])))
176176 then (parseIntValue(discountValues[1]) > gSwopAmount)
177177 else false)
178178 then (feeScale6 - parseIntValue(discounts[0]))
179179 else if (if ((gSwopAmount >= parseIntValue(discountValues[1])))
180180 then (parseIntValue(discountValues[2]) > gSwopAmount)
181181 else false)
182182 then (feeScale6 - parseIntValue(discounts[1]))
183183 else if (if ((gSwopAmount >= parseIntValue(discountValues[2])))
184184 then (parseIntValue(discountValues[3]) > gSwopAmount)
185185 else false)
186186 then (feeScale6 - parseIntValue(discounts[2]))
187187 else if (if ((gSwopAmount >= parseIntValue(discountValues[3])))
188188 then (parseIntValue(discountValues[4]) > gSwopAmount)
189189 else false)
190190 then (feeScale6 - parseIntValue(discounts[3]))
191191 else if ((gSwopAmount >= parseIntValue(discountValues[4])))
192192 then (feeScale6 - parseIntValue(discounts[4]))
193193 else feeScale6
194194 }
195195
196196
197197 func _A () = {
198198 let t1 = future_A_time
199199 let A1 = future_A
200200 if ((t1 > blockTimestamp))
201201 then {
202202 let A0 = initial_A
203203 let t0 = initial_A_time
204204 if ((A1 > A0))
205205 then (A0 + (((A1 - A0) * (blockTimestamp - t0)) / (t1 - t0)))
206206 else (A0 - (((A0 - A1) * (blockTimestamp - t0)) / (t1 - t0)))
207207 }
208208 else A1
209209 }
210210
211211
212212 func _xp () = {
213213 func assetBalances (acc,assetId) = (acc :+ valueOrElse(getInteger(this, (assetId + kAssetBalance)), 0))
214214
215215 let $l = assetIds
216216 let $s = size($l)
217217 let $acc0 = nil
218218 func $f0_1 ($a,$i) = if (($i >= $s))
219219 then $a
220220 else assetBalances($a, $l[$i])
221221
222222 func $f0_2 ($a,$i) = if (($i >= $s))
223223 then $a
224224 else throw("List size exceeds 10")
225225
226226 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
227227 }
228228
229229
230230 func _xp_mem (xp) = xp
231231
232232
233233 func sumList (acc,element) = (acc + element)
234234
235235
236236 func get_D (xp,amp) = {
237237 let @ = invoke(this, "D", [xp, amp], nil)
238238 if ($isInstanceOf(@, "Int"))
239239 then @
240240 else throw(($getType(@) + " couldn't be cast to Int"))
241241 }
242242
243243
244244 func get_D_internal (xp,amp) = {
245245 let S = {
246246 let $l = xp
247247 let $s = size($l)
248248 let $acc0 = 0
249249 func $f0_1 ($a,$i) = if (($i >= $s))
250250 then $a
251251 else sumList($a, $l[$i])
252252
253253 func $f0_2 ($a,$i) = if (($i >= $s))
254254 then $a
255255 else throw("List size exceeds 10")
256256
257257 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
258258 }
259259 if ((S == 0))
260260 then 0
261261 else {
262262 let Ann = (amp * nCoins)
263263 let AnnS = (toBigInt(Ann) * toBigInt(S))
264264 let Ann1 = toBigInt((Ann - 1))
265265 func Dproc (acc,i) = if ((acc._2 == true))
266266 then acc
267267 else {
268268 let Dprev = acc._1
269269 func D_PProc (D_P,i) = if ((nCoins > i))
270270 then ((D_P * Dprev) / (toBigInt(xp[i]) * toBigInt(nCoins)))
271271 else D_P
272272
273273 let D_P = {
274274 let $l = iter10
275275 let $s = size($l)
276276 let $acc0 = Dprev
277277 func $f1_1 ($a,$i) = if (($i >= $s))
278278 then $a
279279 else D_PProc($a, $l[$i])
280280
281281 func $f1_2 ($a,$i) = if (($i >= $s))
282282 then $a
283283 else throw("List size exceeds 10")
284284
285285 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
286286 }
287287 let D = fraction((AnnS + (toBigInt(nCoins) * D_P)), Dprev, ((Ann1 * Dprev) + (toBigInt((nCoins + 1)) * D_P)))
288288 if ((D > Dprev))
289289 then if ((1 >= toInt((D - Dprev))))
290290 then $Tuple2(D, true)
291291 else $Tuple2(D, false)
292292 else if ((1 >= toInt((Dprev - D))))
293293 then $Tuple2(D, true)
294294 else $Tuple2(D, false)
295295 }
296296
297297 let $t065826648 = {
298298 let $l = iter15
299299 let $s = size($l)
300300 let $acc0 = $Tuple2(toBigInt(S), false)
301301 func $f1_1 ($a,$i) = if (($i >= $s))
302302 then $a
303303 else Dproc($a, $l[$i])
304304
305305 func $f1_2 ($a,$i) = if (($i >= $s))
306306 then $a
307307 else throw("List size exceeds 15")
308308
309309 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
310310 }
311311 let D = $t065826648._1
312312 let finished = $t065826648._2
313313 if ((finished == false))
314314 then throw(("get_D() not finished with " + toString(D)))
315315 else toInt(D)
316316 }
317317 }
318318
319319
320320 func getDMem (xp,amp) = get_D(_xp_mem(xp), amp)
321321
322322
323323 func getY (in,out,x,xp_) = if (assert((in != out)))
324324 then throw("same coin")
325325 else if (assert(if ((out >= 0))
326326 then (in >= 0)
327327 else false))
328328 then throw("below zero")
329329 else if (assert(if ((nCoins > out))
330330 then (nCoins > in)
331331 else false))
332332 then throw("above N_COINS")
333333 else {
334334 let amp = _A()
335335 let D = get_D(xp_, amp)
336336 let Ann = (amp * nCoins)
337337 func S_c (acc,i) = {
338338 let $t072197236 = acc
339339 let S_ = $t072197236._1
340340 let c = $t072197236._2
341341 let x_ = if ((in == i))
342342 then x
343343 else xp_[i]
344344 if (if ((i != out))
345345 then (nCoins > i)
346346 else false)
347347 then $Tuple2((S_ + x_), fraction(c, toBigInt(D), toBigInt((x_ * nCoins))))
348348 else $Tuple2(S_, c)
349349 }
350350
351351 let $t074447499 = {
352352 let $l = iter10
353353 let $s = size($l)
354354 let $acc0 = $Tuple2(0, toBigInt(D))
355355 func $f0_1 ($a,$i) = if (($i >= $s))
356356 then $a
357357 else S_c($a, $l[$i])
358358
359359 func $f0_2 ($a,$i) = if (($i >= $s))
360360 then $a
361361 else throw("List size exceeds 10")
362362
363363 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
364364 }
365365 let S_ = $t074447499._1
366366 let c_ = $t074447499._2
367367 let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins)))
368368 let bD = toBigInt(((S_ + (D / Ann)) - D))
369369 func y_proc (acc,_i) = if ((acc._2 == true))
370370 then acc
371371 else {
372372 let y_prev = acc._1
373373 let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD))
374374 if ((y > y_prev))
375375 then if ((1 >= toInt((y - y_prev))))
376376 then $Tuple2(y, true)
377377 else $Tuple2(y, false)
378378 else if ((1 >= toInt((y_prev - y))))
379379 then $Tuple2(y, true)
380380 else $Tuple2(y, false)
381381 }
382382
383383 let $t079818048 = {
384384 let $l = iter16
385385 let $s = size($l)
386386 let $acc0 = $Tuple2(toBigInt(D), false)
387387 func $f1_1 ($a,$i) = if (($i >= $s))
388388 then $a
389389 else y_proc($a, $l[$i])
390390
391391 func $f1_2 ($a,$i) = if (($i >= $s))
392392 then $a
393393 else throw("List size exceeds 16")
394394
395395 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
396396 }
397397 let y = $t079818048._1
398398 let finished = $t079818048._2
399399 if ((finished == false))
400400 then throw(("getY() not finished with " + toString(y)))
401401 else toInt(y)
402402 }
403403
404404
405405 func get_y_D (A_,in,xp,D) = if (assert((in >= 0)))
406406 then throw("i below zero")
407407 else if (assert((nCoins > in)))
408408 then throw("i above N_COINS")
409409 else {
410410 let Ann = (A_ * nCoins)
411411 func S_c (acc,i) = {
412412 let $t084278444 = acc
413413 let S_ = $t084278444._1
414414 let c = $t084278444._2
415415 let x_ = if (if ((in != i))
416416 then (nCoins > i)
417417 else false)
418418 then xp[i]
419419 else 0
420420 if (if ((nCoins > i))
421421 then (in != i)
422422 else false)
423423 then $Tuple2((S_ + x_), fraction(c, toBigInt(D), toBigInt((x_ * nCoins))))
424424 else $Tuple2(S_, c)
425425 }
426426
427427 let $t086648719 = {
428428 let $l = iter10
429429 let $s = size($l)
430430 let $acc0 = $Tuple2(0, toBigInt(D))
431431 func $f0_1 ($a,$i) = if (($i >= $s))
432432 then $a
433433 else S_c($a, $l[$i])
434434
435435 func $f0_2 ($a,$i) = if (($i >= $s))
436436 then $a
437437 else throw("List size exceeds 10")
438438
439439 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
440440 }
441441 let S_ = $t086648719._1
442442 let c_ = $t086648719._2
443443 let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins)))
444444 let bD = toBigInt(((S_ + (D / Ann)) - D))
445445 func y_D_proc (acc,i) = if ((acc._2 == true))
446446 then acc
447447 else {
448448 let y_prev = acc._1
449449 let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD))
450450 if ((y > y_prev))
451451 then if ((1 >= toInt((y - y_prev))))
452452 then $Tuple2(y, true)
453453 else $Tuple2(y, false)
454454 else if ((1 >= toInt((y_prev - y))))
455455 then $Tuple2(y, true)
456456 else $Tuple2(y, false)
457457 }
458458
459459 let $t092029271 = {
460460 let $l = iter16
461461 let $s = size($l)
462462 let $acc0 = $Tuple2(toBigInt(D), false)
463463 func $f1_1 ($a,$i) = if (($i >= $s))
464464 then $a
465465 else y_D_proc($a, $l[$i])
466466
467467 func $f1_2 ($a,$i) = if (($i >= $s))
468468 then $a
469469 else throw("List size exceeds 16")
470470
471471 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
472472 }
473473 let y = $t092029271._1
474474 let finished = $t092029271._2
475475 if ((finished == false))
476476 then throw(("get_y_D() not finished with " + toString(y)))
477477 else toInt(y)
478478 }
479479
480480
481481 func _calcWithdrawOneCoin (xp,_token_amount,i,caller) = {
482482 let feeDiscount = calculateFeeDiscount(caller)
483483 let amp = _A()
484484 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
485485 let total_supply = shareSupply
486486 let D0 = get_D(xp, amp)
487487 let D1 = (D0 - fraction(_token_amount, D0, total_supply))
488488 let new_y = get_y_D(amp, i, xp, D1)
489489 let dy_0 = (xp[i] - new_y)
490490 func xp_reduced_proc (acc,xp_j) = {
491491 let $t099129941 = acc
492492 let xp_reduced = $t099129941._1
493493 let index = $t099129941._2
494494 let dx_expected = if ((index == i))
495495 then (fraction(xp_j, D1, D0) - new_y)
496496 else (xp_j - fraction(xp_j, D1, D0))
497497 $Tuple2((xp_reduced :+ (xp_j - fraction(_fee, dx_expected, feeScale6))), (index + 1))
498498 }
499499
500500 let $t01020310267 = {
501501 let $l = xp
502502 let $s = size($l)
503503 let $acc0 = $Tuple2(nil, 0)
504504 func $f0_1 ($a,$i) = if (($i >= $s))
505505 then $a
506506 else xp_reduced_proc($a, $l[$i])
507507
508508 func $f0_2 ($a,$i) = if (($i >= $s))
509509 then $a
510510 else throw("List size exceeds 10")
511511
512512 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
513513 }
514514 let xp_reduced = $t01020310267._1
515515 let index = $t01020310267._2
516516 let xp_reduced_i = xp_reduced[i]
517517 let dy = ((xp_reduced_i - get_y_D(amp, i, xp_reduced, D1)) - 1)
518518 $Tuple2(dy, (dy_0 - dy))
519519 }
520520
521521
522522 func getStrAssetId (assetId) = match assetId {
523523 case id: ByteVector =>
524524 toBase58String(id)
525525 case waves: Unit =>
526526 "WAVES"
527527 case _ =>
528528 throw("Match error")
529529 }
530530
531531
532532 func calcStakingFuncAndAddres (stake,assetId) = if (stake)
533533 then $Tuple2("lockNeutrino", stakingUSDNAddress)
534534 else $Tuple2("unlockNeutrino", stakingUSDNAddress)
535535
536536
537537 func calcStakingParams (stake,amount,assetId) = if (stake)
538538 then {
539539 let $t01083110897 = calcStakingFuncAndAddres(stake, assetId)
540540 let call = $t01083110897._1
541541 let stakingAddr = $t01083110897._2
542542 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
543543 }
544544 else {
545545 let $t01098311049 = calcStakingFuncAndAddres(stake, assetId)
546546 let call = $t01098311049._1
547547 let stakingAddr = $t01098311049._2
548548 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
549549 }
550550
551551
552552 func stake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString))
553553 then {
554554 let $t01123611338 = calcStakingParams(true, amount, fromBase58String(assetIdString))
555555 let call = $t01123611338._1
556556 let addr = $t01123611338._2
557557 let params = $t01123611338._3
558558 let payments = $t01123611338._4
559559 invoke(addr, call, params, payments)
560560 }
561561 else 0
562562
563563
564564 func unstake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString))
565565 then {
566566 let $t01152311626 = calcStakingParams(false, amount, fromBase58String(assetIdString))
567567 let call = $t01152311626._1
568568 let addr = $t01152311626._2
569569 let params = $t01152311626._3
570570 let payments = $t01152311626._4
571571 invoke(addr, call, params, payments)
572572 }
573573 else 0
574574
575575
576576 func stakedAmount (assetId) = {
577577 let stakedAmountCalculated = match assetId {
578578 case aId: ByteVector =>
579579 if ((aId == USDN))
580580 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
581581 else 0
582582 case _: Unit =>
583583 0
584584 case _ =>
585585 throw("Match error")
586586 }
587587 match stakedAmountCalculated {
588588 case i: Int =>
589589 i
590590 case _ =>
591591 0
592592 }
593593 }
594594
595595
596596 func checkSuspicious () = {
597597 let contractBalances = _xp()
598598 func checkBalance (acc,assetId) = {
599599 let $t01223712262 = acc
600600 let suspicious = $t01223712262._1
601601 let i = $t01223712262._2
602602 if (suspicious)
603603 then $Tuple2(suspicious, i)
604604 else {
605605 let aBalance = (assetBalance(this, fromBase58String(assetId)) + stakedAmount(fromBase58String(assetId)))
606606 if ((contractBalances[i] > aBalance))
607607 then $Tuple2(true, i)
608608 else $Tuple2(false, (i + 1))
609609 }
610610 }
611611
612612 let $l = assetIds
613613 let $s = size($l)
614614 let $acc0 = $Tuple2(false, 0)
615615 func $f0_1 ($a,$i) = if (($i >= $s))
616616 then $a
617617 else checkBalance($a, $l[$i])
618618
619619 func $f0_2 ($a,$i) = if (($i >= $s))
620620 then $a
621621 else throw("List size exceeds 10")
622622
623623 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
624624 }
625625
626626
627627 func suspendSuspicious (i) = suspend(("Suspicious state with asset: " + assetIds[i]))
628628
629629
630630 func returnPayments (caller,payments) = {
631631 func parsePayments (acc,payment) = (acc :+ ScriptTransfer(caller, payment.amount, payment.assetId))
632632
633633 let $l = payments
634634 let $s = size($l)
635635 let $acc0 = nil
636636 func $f0_1 ($a,$i) = if (($i >= $s))
637637 then $a
638638 else parsePayments($a, $l[$i])
639639
640640 func $f0_2 ($a,$i) = if (($i >= $s))
641641 then $a
642642 else throw("List size exceeds 10")
643643
644644 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
645645 }
646646
647647
648648 func checkDAppThreshold (newBalances) = {
649649 let dAppThresholdCoef = valueOrErrorMessage(getInteger(this, kDAppThresholdCoef), "No dAppThresholdCoef key")
650650 let thresholdScale = 10000
651651 let maxBalance = max(newBalances)
652652 let minBalance = min(newBalances)
653653 let ratio = fraction(maxBalance, thresholdScale, minBalance)
654654 if ((ratio > (dAppThresholdCoef * thresholdScale)))
655655 then throw("New balance in assets of the DApp is less than threshold")
656656 else false
657657 }
658658
659659
660660 func checkCoins (assetIds) = {
661661 let coins = split(assetIds, ",")
662662 if ((size(coins) > 10))
663663 then throw("To many coins, max coins size 10")
664664 else {
665665 func checkCoin (error,assetId) = {
666666 let asset = valueOrErrorMessage(fromBase58String(assetId), ("fromBase58String: " + assetId))
667667 let decimals = valueOrErrorMessage(assetInfo(asset), ("assetInfo: " + assetId)).decimals
668668 if ((decimals != DECIMALS))
669669 then throw("wrong decimals")
670670 else false
671671 }
672672
673673 let $l = coins
674674 let $s = size($l)
675675 let $acc0 = false
676676 func $f0_1 ($a,$i) = if (($i >= $s))
677677 then $a
678678 else checkCoin($a, $l[$i])
679679
680680 func $f0_2 ($a,$i) = if (($i >= $s))
681681 then $a
682682 else throw("List size exceeds 10")
683683
684684 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
685685 }
686686 }
687687
688688
689689 func calcWithdraw (msg,minAmounts,unlockAmount) = {
690690 let suspicious = checkSuspicious()
691691 if (suspicious._1)
692692 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments))
693693 else {
694694 let pmtAmount = if ((size(msg.payments) > 0))
695695 then if ((size(msg.payments) != 1))
696696 then throw("size(payments) != 1")
697697 else {
698698 let pmtAssetId = msg.payments[0].assetId
699699 if ((shareAssetId != pmtAssetId))
700700 then throw("unknown payment token")
701701 else msg.payments[0].amount
702702 }
703703 else 0
704704 let withdrawAmount = (pmtAmount + unlockAmount)
705705 func calcScriptActions (acc,balance) = {
706706 let $t01467814706 = acc
707707 let scriptActions = $t01467814706._1
708708 let i = $t01467814706._2
709709 let wAmount = fraction(balance, withdrawAmount, shareSupply)
710710 if (assert((wAmount >= minAmounts[i])))
711711 then throw("Withdrawal resulted in fewer coins than expected")
712712 else {
713713 let us = unstake(wAmount, assetIds[i])
714714 if ((us == us))
715715 then $Tuple2((scriptActions ++ [IntegerEntry((assetIds[i] + kAssetBalance), (balance - wAmount)), ScriptTransfer(msg.caller, wAmount, fromBase58String(assetIds[i]))]), (i + 1))
716716 else throw("Strict value is not equal to itself.")
717717 }
718718 }
719719
720720 let $t01519515263 = {
721721 let $l = _xp()
722722 let $s = size($l)
723723 let $acc0 = $Tuple2(nil, 0)
724724 func $f0_1 ($a,$i) = if (($i >= $s))
725725 then $a
726726 else calcScriptActions($a, $l[$i])
727727
728728 func $f0_2 ($a,$i) = if (($i >= $s))
729729 then $a
730730 else throw("List size exceeds 10")
731731
732732 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
733733 }
734734 let scriptActions = $t01519515263._1
735735 let i = $t01519515263._2
736736 (scriptActions ++ [Burn(shareAssetId, withdrawAmount), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))])
737737 }
738738 }
739739
740740
741-func calcWithdrawOneCoinEntries (msg,tokenOut,minAmount,unlockAmount) = if ((size(msg.payments) != 1))
742- then throw("size(payments) != 1")
743- else {
744- let suspicious = checkSuspicious()
745- if (suspicious._1)
746- then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments))
747- else {
748- let pmtAmount = if ((size(msg.payments) > 0))
749- then if ((size(msg.payments) != 1))
750- then throw("size(payments) != 1")
741+func calcWithdrawOneCoinEntries (msg,tokenOut,minAmount,unlockAmount) = {
742+ let suspicious = checkSuspicious()
743+ if (suspicious._1)
744+ then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments))
745+ else {
746+ let pmtAmount = if ((size(msg.payments) > 0))
747+ then {
748+ let pmtAssetId = msg.payments[0].assetId
749+ if ((shareAssetId != pmtAssetId))
750+ then throw("unknown payment token")
751+ else msg.payments[0].amount
752+ }
753+ else 0
754+ let outIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
755+ let tokenOutB58 = fromBase58String(tokenOut)
756+ let withdrawAmount = (pmtAmount + unlockAmount)
757+ let xp = _xp()
758+ let $t01612516212 = _calcWithdrawOneCoin(xp, withdrawAmount, outIndex, msg.originCaller)
759+ let dy = $t01612516212._1
760+ let dy_fee = $t01612516212._2
761+ if (assert((dy >= minAmount)))
762+ then throw("Not enough coins removed")
763+ else {
764+ let governanceFees = fraction(dy_fee, feeGovernance, feeScale6)
765+ let dy_and_fee = (dy + dy_fee)
766+ func makeNewBalances (acc,tokenBalance) = {
767+ let $t01647016496 = acc
768+ let newBalances = $t01647016496._1
769+ let i = $t01647016496._2
770+ if ((i == outIndex))
771+ then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1))
772+ else $Tuple2((newBalances :+ tokenBalance), (i + 1))
773+ }
774+
775+ let $t01666316724 = {
776+ let $l = xp
777+ let $s = size($l)
778+ let $acc0 = $Tuple2(nil, 0)
779+ func $f0_1 ($a,$i) = if (($i >= $s))
780+ then $a
781+ else makeNewBalances($a, $l[$i])
782+
783+ func $f0_2 ($a,$i) = if (($i >= $s))
784+ then $a
785+ else throw("List size exceeds 10")
786+
787+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
788+ }
789+ let newBalances = $t01666316724._1
790+ let v = $t01666316724._2
791+ if (checkDAppThreshold(newBalances))
792+ then throw()
751793 else {
752- let pmtAssetId = msg.payments[0].assetId
753- if ((shareAssetId != pmtAssetId))
754- then throw("unknown payment token")
755- else msg.payments[0].amount
794+ let us = unstake(dy_and_fee, tokenOut)
795+ if ((us == us))
796+ then {
797+ let lpFees = (dy_fee - governanceFees)
798+ let airdrop = if ((lpFees > 0))
799+ then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
800+ else 0
801+ if ((airdrop == airdrop))
802+ then [ScriptTransfer(msg.originCaller, dy, tokenOutB58), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))]
803+ else throw("Strict value is not equal to itself.")
804+ }
805+ else throw("Strict value is not equal to itself.")
756806 }
757- else 0
758- let outIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
759- let tokenOutB58 = fromBase58String(tokenOut)
760- let withdrawAmount = (pmtAmount + unlockAmount)
761- let xp = _xp()
762- let $t01627116358 = _calcWithdrawOneCoin(xp, withdrawAmount, outIndex, msg.originCaller)
763- let dy = $t01627116358._1
764- let dy_fee = $t01627116358._2
765- if (assert((dy >= minAmount)))
766- then throw("Not enough coins removed")
767- else {
768- let governanceFees = fraction(dy_fee, feeGovernance, feeScale6)
769- let dy_and_fee = (dy + dy_fee)
770- func makeNewBalances (acc,tokenBalance) = {
771- let $t01661616642 = acc
772- let newBalances = $t01661616642._1
773- let i = $t01661616642._2
774- if ((i == outIndex))
775- then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1))
776- else $Tuple2((newBalances :+ tokenBalance), (i + 1))
777- }
778-
779- let $t01680916870 = {
780- let $l = xp
781- let $s = size($l)
782- let $acc0 = $Tuple2(nil, 0)
783- func $f0_1 ($a,$i) = if (($i >= $s))
784- then $a
785- else makeNewBalances($a, $l[$i])
786-
787- func $f0_2 ($a,$i) = if (($i >= $s))
788- then $a
789- else throw("List size exceeds 10")
790-
791- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
792- }
793- let newBalances = $t01680916870._1
794- let v = $t01680916870._2
795- if (checkDAppThreshold(newBalances))
796- then throw()
797- else {
798- let us = unstake(dy_and_fee, tokenOut)
799- if ((us == us))
800- then {
801- let lpFees = (dy_fee - governanceFees)
802- let airdrop = if ((lpFees > 0))
803- then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
804- else 0
805- if ((airdrop == airdrop))
806- then [ScriptTransfer(msg.originCaller, dy, tokenOutB58), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))]
807- else throw("Strict value is not equal to itself.")
808- }
809- else throw("Strict value is not equal to itself.")
810- }
811- }
812- }
813- }
807+ }
808+ }
809+ }
814810
815811
816812 @Callable(msg)
817813 func D (xp,amp) = {
818814 let D = get_D_internal(xp, amp)
819815 $Tuple2([IntegerEntry("D", D)], D)
820816 }
821817
822818
823819
824820 @Callable(msg)
825821 func init (assetIds,_A,_dAppThresholdCoef) = if (!(isDataStorageUntouched(this)))
826822 then throw("Already initialized")
827823 else if ((0 >= _A))
828824 then throw("Amp must be must > 0")
829825 else if ((0 >= _dAppThresholdCoef))
830826 then throw("dApp Threshold Coef must be > 0")
831827 else {
832828 let shareName = "s_Multi_USD"
833829 let shareDescription = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this))
834830 let issueToken = Issue(shareName, shareDescription, 0, 6, true)
835831 let tokenId = calculateAssetId(issueToken)
836832 if (checkCoins(assetIds))
837833 then throw()
838834 else [StringEntry(kVersion, version), StringEntry(kAssets, assetIds), IntegerEntry("initial_A", _A), IntegerEntry("future_A", _A), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), StringEntry(kShareAssetId, toBase58String(tokenId)), IntegerEntry(kShareAssetSupply, 0), IntegerEntry(kDAppThresholdCoef, _dAppThresholdCoef), BooleanEntry(kActive, true), issueToken]
839835 }
840836
841837
842838
843839 @Callable(msg)
844840 func addLiquidity (minMintAmount,stakeFarming,lockType) = valueOrElse(isActive(), {
845841 let amp = _A()
846842 let xp = _xp()
847843 let D0 = if ((shareSupply == 0))
848844 then 0
849845 else getDMem(xp, amp)
850- let $t01901019264 = if (if ((lockType > 0))
846+ let $t01886419118 = if (if ((lockType > 0))
851847 then (msg.payments[(size(msg.payments) - 1)].assetId == unit)
852848 else false)
853849 then $Tuple2(removeByIndex(msg.payments, (size(msg.payments) - 1)), [msg.payments[(size(msg.payments) - 1)]])
854850 else $Tuple2(msg.payments, nil)
855- let payments = $t01901019264._1
856- let lockFee = $t01901019264._2
851+ let payments = $t01886419118._1
852+ let lockFee = $t01886419118._2
857853 let paymentsSize = size(payments)
858854 func validPayments (n) = if ((paymentsSize > nCoins))
859855 then throw(("payments size > " + toString(nCoins)))
860856 else if ((1 > paymentsSize))
861857 then throw("payments size < 1")
862858 else if (if ((shareSupply == 0))
863859 then (nCoins != paymentsSize)
864860 else false)
865861 then throw("initial deposit requires all coins")
866862 else {
867863 func paymantValid (acc,payment) = if (containsElement(assetIds, getStrAssetId(payment.assetId)))
868864 then true
869865 else throw("Invalid asset in payment")
870866
871867 let $l = payments
872868 let $s = size($l)
873869 let $acc0 = false
874870 func $f0_1 ($a,$i) = if (($i >= $s))
875871 then $a
876872 else paymantValid($a, $l[$i])
877873
878874 func $f0_2 ($a,$i) = if (($i >= $s))
879875 then $a
880876 else throw("List size exceeds 10")
881877
882878 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
883879 }
884880
885881 if (!(validPayments(paymentsSize)))
886882 then throw()
887883 else {
888884 let suspicious = checkSuspicious()
889885 if (suspicious._1)
890886 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, payments))
891887 else {
892888 func parsePayments (acc,assetId) = {
893- let $t02013420160 = acc
894- let newBalances = $t02013420160._1
895- let i = $t02013420160._2
889+ let $t01998820014 = acc
890+ let newBalances = $t01998820014._1
891+ let i = $t01998820014._2
896892 func parsePayment (newBalance,payment) = if ((getStrAssetId(payment.assetId) == assetId))
897893 then (newBalance + payment.amount)
898894 else newBalance
899895
900896 let newBalace = {
901897 let $l = payments
902898 let $s = size($l)
903899 let $acc0 = xp[i]
904900 func $f0_1 ($a,$i) = if (($i >= $s))
905901 then $a
906902 else parsePayment($a, $l[$i])
907903
908904 func $f0_2 ($a,$i) = if (($i >= $s))
909905 then $a
910906 else throw("List size exceeds 10")
911907
912908 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
913909 }
914910 $Tuple2((newBalances :+ newBalace), (i + 1))
915911 }
916912
917- let $t02051020577 = {
913+ let $t02036420431 = {
918914 let $l = assetIds
919915 let $s = size($l)
920916 let $acc0 = $Tuple2(nil, 0)
921917 func $f0_1 ($a,$i) = if (($i >= $s))
922918 then $a
923919 else parsePayments($a, $l[$i])
924920
925921 func $f0_2 ($a,$i) = if (($i >= $s))
926922 then $a
927923 else throw("List size exceeds 10")
928924
929925 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
930926 }
931- let newBalances = $t02051020577._1
932- let k = $t02051020577._2
927+ let newBalances = $t02036420431._1
928+ let k = $t02036420431._2
933929 if (checkDAppThreshold(newBalances))
934930 then throw()
935931 else {
936932 let D1 = getDMem(newBalances, amp)
937933 if (assert((D1 > D0)))
938934 then throw("D1 > D0")
939935 else {
940936 let feeDiscount = calculateFeeDiscount(msg.caller)
941937 func calcScriptActions (acc,newBalance) = {
942- let $t02089720938 = acc
943- let invBalances = $t02089720938._1
944- let scriptActions = $t02089720938._2
945- let i = $t02089720938._3
938+ let $t02075120792 = acc
939+ let invBalances = $t02075120792._1
940+ let scriptActions = $t02075120792._2
941+ let i = $t02075120792._3
946942 if ((shareSupply > 0))
947943 then {
948944 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
949945 let fees = {
950946 let idealBalance = fraction(D1, xp[i], D0)
951947 let difference = if ((idealBalance > newBalance))
952948 then (idealBalance - newBalance)
953949 else (newBalance - idealBalance)
954950 fraction(_fee, difference, feeScale6)
955951 }
956952 let governanceFees = fraction(fees, feeGovernance, feeScale6)
957953 let finalBalance = (newBalance - fees)
958954 let invariantBalance = (newBalance - fees)
959955 let pmt = (newBalance - xp[i])
960956 let lpFees = (fees - governanceFees)
961957 let inv = if ((pmt > 0))
962958 then stake((pmt - fees), assetIds[i])
963959 else unstake(fees, assetIds[i])
964960 if ((inv == inv))
965961 then {
966962 let airdrop = if ((lpFees > 0))
967963 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(fromBase58String(assetIds[i]), lpFees)])
968964 else 0
969965 if ((airdrop == airdrop))
970966 then $Tuple3((invBalances :+ invariantBalance), (scriptActions ++ [ScriptTransfer(moneyBoxAddress, governanceFees, fromBase58String(assetIds[i])), IntegerEntry((assetIds[i] + kAssetBalance), finalBalance)]), (i + 1))
971967 else throw("Strict value is not equal to itself.")
972968 }
973969 else throw("Strict value is not equal to itself.")
974970 }
975971 else {
976972 let inv = stake(newBalance, assetIds[i])
977973 if ((inv == inv))
978974 then $Tuple3((invBalances :+ newBalance), (scriptActions :+ IntegerEntry((assetIds[i] + kAssetBalance), newBalance)), (i + 1))
979975 else throw("Strict value is not equal to itself.")
980976 }
981977 }
982978
983- let $t02264322731 = {
979+ let $t02249722585 = {
984980 let $l = newBalances
985981 let $s = size($l)
986982 let $acc0 = $Tuple3(nil, nil, 0)
987983 func $f1_1 ($a,$i) = if (($i >= $s))
988984 then $a
989985 else calcScriptActions($a, $l[$i])
990986
991987 func $f1_2 ($a,$i) = if (($i >= $s))
992988 then $a
993989 else throw("List size exceeds 10")
994990
995991 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
996992 }
997- let invBalances = $t02264322731._1
998- let scriptActions = $t02264322731._2
993+ let invBalances = $t02249722585._1
994+ let scriptActions = $t02249722585._2
999995 let D2 = getDMem(invBalances, amp)
1000996 let mint_amount = if ((shareSupply == 0))
1001997 then D1
1002998 else fraction(shareSupply, (D2 - D0), D0)
1003999 if (assert((mint_amount >= minMintAmount)))
10041000 then throw("Slippage screwed you")
10051001 else if (stakeFarming)
10061002 then {
10071003 let re = invoke(this, "reissueShare", [mint_amount], nil)
10081004 if ((re == re))
10091005 then {
10101006 let s = invoke(farmingAddress, "lockShareTokensFromPool", [msg.caller.bytes, toString(this), lockType], ([AttachedPayment(shareAssetId, mint_amount)] ++ lockFee))
10111007 if ((s == s))
10121008 then (scriptActions :+ IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount)))
10131009 else throw("Strict value is not equal to itself.")
10141010 }
10151011 else throw("Strict value is not equal to itself.")
10161012 }
10171013 else (scriptActions ++ [Reissue(shareAssetId, mint_amount, true), ScriptTransfer(msg.caller, mint_amount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount))])
10181014 }
10191015 }
10201016 }
10211017 }
10221018 })
10231019
10241020
10251021
10261022 @Callable(msg)
10271023 func calcMintAmount (newBalances,user) = {
10281024 let amp = _A()
10291025 let xp = _xp()
10301026 let D1 = getDMem(newBalances, amp)
10311027 if ((shareSupply == 0))
10321028 then $Tuple2(nil, D1)
10331029 else {
10341030 let D0 = getDMem(xp, amp)
10351031 let feeDiscount = calculateFeeDiscount(user)
10361032 func calcInvBalances (acc,newBalance) = {
1037- let $t02400724033 = acc
1038- let invBalances = $t02400724033._1
1039- let i = $t02400724033._2
1033+ let $t02386123887 = acc
1034+ let invBalances = $t02386123887._1
1035+ let i = $t02386123887._2
10401036 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
10411037 let fees = {
10421038 let idealBalance = fraction(D1, xp[i], D0)
10431039 let difference = if ((idealBalance > newBalance))
10441040 then (idealBalance - newBalance)
10451041 else (newBalance - idealBalance)
10461042 fraction(_fee, difference, feeScale6)
10471043 }
10481044 let invariantBalance = (newBalance - fees)
10491045 $Tuple2((invBalances :+ invariantBalance), (i + 1))
10501046 }
10511047
1052- let $t02463524705 = {
1048+ let $t02448924559 = {
10531049 let $l = newBalances
10541050 let $s = size($l)
10551051 let $acc0 = $Tuple2(nil, 0)
10561052 func $f0_1 ($a,$i) = if (($i >= $s))
10571053 then $a
10581054 else calcInvBalances($a, $l[$i])
10591055
10601056 func $f0_2 ($a,$i) = if (($i >= $s))
10611057 then $a
10621058 else throw("List size exceeds 10")
10631059
10641060 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
10651061 }
1066- let invBalances = $t02463524705._1
1067- let k = $t02463524705._2
1062+ let invBalances = $t02448924559._1
1063+ let k = $t02448924559._2
10681064 let D2 = getDMem(invBalances, amp)
10691065 let mintAmount = fraction(shareSupply, (D2 - D0), D0)
10701066 $Tuple2(nil, mintAmount)
10711067 }
10721068 }
10731069
10741070
10751071
10761072 @Callable(msg)
10771073 func reissueShare (amount) = valueOrElse(isSelfCall(msg), [Reissue(shareAssetId, amount, true)])
10781074
10791075
10801076
10811077 @Callable(msg)
10821078 func getDy (assetFrom,assetTo,dx,userAddress) = {
10831079 let xp = _xp()
10841080 let fromIndex = valueOrErrorMessage(indexOf(assetIds, assetFrom), "unknown token in")
10851081 let toIndex = valueOrErrorMessage(indexOf(assetIds, assetTo), "unknown token out")
10861082 let x = (xp[fromIndex] + dx)
10871083 let y = getY(fromIndex, toIndex, x, xp)
10881084 let dy = ((xp[toIndex] - y) - 1)
10891085 let feeDiscount = calculateFeeDiscount(Address(fromBase58String(userAddress)))
10901086 let _fee = fraction(fraction(fee, feeDiscount, feeScale6, CEILING), dy, feeScale6)
10911087 $Tuple2(nil, $Tuple2((dy - _fee), _fee))
10921088 }
10931089
10941090
10951091
10961092 @Callable(msg)
10971093 func exchange (tokenOut,min_dy) = valueOrElse(isActive(), if ((size(msg.payments) != 1))
10981094 then throw("size(payments) != 1")
10991095 else {
11001096 let suspicious = checkSuspicious()
11011097 if (suspicious._1)
11021098 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments))
11031099 else {
11041100 let payment = msg.payments[0]
11051101 let tokenIn = getStrAssetId(payment.assetId)
11061102 let tokenOutB58 = fromBase58String(tokenOut)
11071103 let dx = payment.amount
11081104 let fromIndex = valueOrErrorMessage(indexOf(assetIds, tokenIn), "unknown token in")
11091105 let toIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
11101106 let xp = _xp()
11111107 let x = (xp[fromIndex] + dx)
11121108 let y = getY(fromIndex, toIndex, x, xp)
11131109 let _dy = ((xp[toIndex] - y) - 1)
11141110 let feeDiscount = calculateFeeDiscount(msg.originCaller)
11151111 let _fee = fraction(_dy, fraction(fee, feeDiscount, feeScale6, CEILING), feeScale6)
11161112 let dy = (_dy - _fee)
11171113 let governanceFees = fraction(_fee, feeGovernance, feeScale6)
11181114 if (assert((dy >= min_dy)))
11191115 then throw("Exchange resulted in fewer coins than expected")
11201116 else {
11211117 func makeNewBalances (acc,tokenBalance) = {
1122- let $t02674626772 = acc
1123- let newBalances = $t02674626772._1
1124- let i = $t02674626772._2
1118+ let $t02660026626 = acc
1119+ let newBalances = $t02660026626._1
1120+ let i = $t02660026626._2
11251121 if ((i == fromIndex))
11261122 then $Tuple2((newBalances :+ (tokenBalance + dx)), (i + 1))
11271123 else if ((i == toIndex))
11281124 then $Tuple2((newBalances :+ (tokenBalance - _dy)), (i + 1))
11291125 else $Tuple2((newBalances :+ tokenBalance), (i + 1))
11301126 }
11311127
1132- let $t02702327084 = {
1128+ let $t02687726938 = {
11331129 let $l = xp
11341130 let $s = size($l)
11351131 let $acc0 = $Tuple2(nil, 0)
11361132 func $f0_1 ($a,$i) = if (($i >= $s))
11371133 then $a
11381134 else makeNewBalances($a, $l[$i])
11391135
11401136 func $f0_2 ($a,$i) = if (($i >= $s))
11411137 then $a
11421138 else throw("List size exceeds 10")
11431139
11441140 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
11451141 }
1146- let newBalances = $t02702327084._1
1147- let i = $t02702327084._2
1142+ let newBalances = $t02687726938._1
1143+ let i = $t02687726938._2
11481144 if (checkDAppThreshold(newBalances))
11491145 then throw()
11501146 else {
11511147 let s = stake(payment.amount, getStrAssetId(payment.assetId))
11521148 if ((s == s))
11531149 then {
11541150 let us = unstake(_dy, tokenOut)
11551151 if ((us == us))
11561152 then {
11571153 let lpFees = (_fee - governanceFees)
11581154 let airdrop = if ((lpFees > 0))
11591155 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
11601156 else 0
11611157 if ((airdrop == airdrop))
11621158 then $Tuple2([IntegerEntry((tokenIn + kAssetBalance), x), IntegerEntry((tokenOut + kAssetBalance), (xp[toIndex] - _dy)), ScriptTransfer(msg.caller, dy, tokenOutB58), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58)], [dy, tokenOutB58])
11631159 else throw("Strict value is not equal to itself.")
11641160 }
11651161 else throw("Strict value is not equal to itself.")
11661162 }
11671163 else throw("Strict value is not equal to itself.")
11681164 }
11691165 }
11701166 }
11711167 })
11721168
11731169
11741170
11751171 @Callable(msg)
11761172 func withdraw (minAmounts) = valueOrElse(isActive(), calcWithdraw(msg, minAmounts, 0))
11771173
11781174
11791175
11801176 @Callable(msg)
11811177 func withdrawWithUnlock (minAmounts,unlockAmount) = valueOrElse(isActive(), if ((0 >= unlockAmount))
11821178 then throw("Unlock amount must be positive")
11831179 else {
11841180 let unlock = invoke(farmingAddress, "withdrawShareTokensFromPool", [msg.caller.bytes, toString(this), unlockAmount], nil)
11851181 if ((unlock == unlock))
11861182 then calcWithdraw(msg, minAmounts, unlockAmount)
11871183 else throw("Strict value is not equal to itself.")
11881184 })
11891185
11901186
11911187
11921188 @Callable(msg)
11931189 func calcWithdrawOneCoin (tokenAmount,tokenOut,user) = if ((0 >= tokenAmount))
11941190 then throw("Amount must be positive")
11951191 else {
11961192 let i = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
11971193 $Tuple2(nil, _calcWithdrawOneCoin(_xp(), tokenAmount, i, Address(fromBase58String(user)))._1)
11981194 }
11991195
12001196
12011197
12021198 @Callable(msg)
1203-func withdrawOneCoin (tokenOut,minAmount) = valueOrElse(isActive(), calcWithdrawOneCoinEntries(msg, tokenOut, minAmount, 0))
1199+func withdrawOneCoin (tokenOut,minAmount) = valueOrElse(isActive(), if ((size(msg.payments) != 1))
1200+ then throw("size(payments) != 1")
1201+ else calcWithdrawOneCoinEntries(msg, tokenOut, minAmount, 0))
12041202
12051203
12061204
12071205 @Callable(msg)
12081206 func withdrawOneCoinWithUnlock (tokenOut,minAmount,unlockAmount) = valueOrElse(isActive(), if ((0 >= unlockAmount))
12091207 then throw("Unlock amount must be positive")
12101208 else {
12111209 let unlock = invoke(farmingAddress, "withdrawShareTokensFromPool", [msg.caller.bytes, toString(this), unlockAmount], nil)
12121210 if ((unlock == unlock))
12131211 then calcWithdrawOneCoinEntries(msg, tokenOut, minAmount, unlockAmount)
12141212 else throw("Strict value is not equal to itself.")
12151213 })
12161214
12171215
12181216
12191217 @Callable(msg)
12201218 func A () = $Tuple2(nil, _A())
12211219
12221220
12231221
12241222 @Callable(msg)
12251223 func getVirtualPrice () = {
12261224 let D = get_D(_xp(), _A())
12271225 $Tuple2(nil, fraction(D, PRECISION, shareSupply))
12281226 }
12291227
12301228
12311229
12321230 @Callable(msg)
12331231 func calcTokenAmount (amounts,deposit) = {
12341232 let amp = _A()
12351233 let balances = _xp()
12361234 let D0 = getDMem(balances, amp)
12371235 func calcNewBalances (acc,balance) = {
1238- let $t02959129617 = acc
1239- let newBalances = $t02959129617._1
1240- let i = $t02959129617._2
1236+ let $t02951629542 = acc
1237+ let newBalances = $t02951629542._1
1238+ let i = $t02951629542._2
12411239 let newBalance = (balance + (if (deposit)
12421240 then amounts[i]
12431241 else -(amounts[i])))
12441242 $Tuple2((newBalances :+ newBalance), (i + 1))
12451243 }
12461244
12471245 let newBalances = ( let $l = balances
12481246 let $s = size($l)
12491247 let $acc0 = $Tuple2(nil, 0)
12501248 func $f0_1 ($a,$i) = if (($i >= $s))
12511249 then $a
12521250 else calcNewBalances($a, $l[$i])
12531251
12541252 func $f0_2 ($a,$i) = if (($i >= $s))
12551253 then $a
12561254 else throw("List size exceeds 10")
12571255
12581256 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1
12591257 let D1 = getDMem(newBalances, amp)
12601258 let diff = if (deposit)
12611259 then (D1 - D0)
12621260 else (D0 - D1)
12631261 $Tuple2(nil, fraction(diff, shareSupply, D0))
12641262 }
12651263
12661264
12671265
12681266 @Callable(msg)
12691267 func rampA (_futureA,_futureTime) = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), if (assert((blockTimestamp >= (initial_A_time + MIN_RAMP_TIME))))
12701268 then throw("too often")
12711269 else if (assert((_futureTime >= (blockTimestamp + MIN_RAMP_TIME))))
12721270 then throw("insufficient time")
12731271 else {
12741272 let _initial_A = _A()
12751273 if (assert(if ((_futureA > 0))
12761274 then (MAX_A > _futureA)
12771275 else false))
12781276 then throw("out of base range")
12791277 else if (assert(if (if ((_futureA >= _initial_A))
12801278 then ((_initial_A * MAX_A_CHANGE) >= _futureA)
12811279 else false)
12821280 then true
12831281 else if ((_initial_A > _futureA))
12841282 then ((_futureA * MAX_A_CHANGE) >= _initial_A)
12851283 else false))
12861284 then throw("out of range")
12871285 else [IntegerEntry("initial_A", _initial_A), IntegerEntry("future_A", _futureA), IntegerEntry("initial_A_time", blockTimestamp), IntegerEntry("future_A_time", _futureTime)]
12881286 }))
12891287
12901288
12911289
12921290 @Callable(msg)
12931291 func stopRampA () = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), {
12941292 let currentA = _A()
12951293 [IntegerEntry("initial_A", currentA), IntegerEntry("future_A", currentA), IntegerEntry("initial_A_time", blockTimestamp), IntegerEntry("future_A_time", blockTimestamp)]
12961294 }))
12971295
12981296
12991297
13001298 @Callable(msg)
13011299 func shutdown () = valueOrElse(isAdminCall(msg), if (!(active))
13021300 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
13031301 else suspend("Paused by admin"))
13041302
13051303
13061304
13071305 @Callable(msg)
13081306 func activate () = valueOrElse(isAdminCall(msg), if (active)
13091307 then throwIsActive()
13101308 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
13111309
13121310
13131311
13141312 @Callable(msg)
13151313 func takeIntoAccountExtraFunds () = valueOrElse(isActive(), if ((msg.caller != moneyBoxAddress))
13161314 then throw("Only the wallet can call this function")
13171315 else {
13181316 let balances = _xp()
13191317 func takeExtraFunds (acc,assetId) = {
1320- let $t03195931977 = acc
1321- let sum = $t03195931977._1
1322- let i = $t03195931977._2
1318+ let $t03188431902 = acc
1319+ let sum = $t03188431902._1
1320+ let i = $t03188431902._2
13231321 let tokenB58 = fromBase58String(assetId)
13241322 let rBalance = (assetBalance(this, tokenB58) + stakedAmount(tokenB58))
13251323 let enrollAmount = (rBalance - balances[i])
13261324 if ((0 > enrollAmount))
13271325 then suspend(("Enroll amount negative for asset" + assetId))
13281326 else {
13291327 let airdrop = if ((enrollAmount > 0))
13301328 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenB58, enrollAmount)])
13311329 else 0
13321330 if ((airdrop == airdrop))
13331331 then $Tuple2((sum + enrollAmount), (i + 1))
13341332 else throw("Strict value is not equal to itself.")
13351333 }
13361334 }
13371335
13381336 let k = {
13391337 let $l = assetIds
13401338 let $s = size($l)
13411339 let $acc0 = $Tuple2(0, 0)
13421340 func $f0_1 ($a,$i) = if (($i >= $s))
13431341 then $a
13441342 else takeExtraFunds($a, $l[$i])
13451343
13461344 func $f0_2 ($a,$i) = if (($i >= $s))
13471345 then $a
13481346 else throw("List size exceeds 10")
13491347
13501348 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
13511349 }
13521350 if ((k._1 == 0))
13531351 then throw("No money to take")
13541352 else nil
13551353 })
13561354
13571355
13581356 @Verifier(tx)
13591357 func verify () = {
13601358 let multiSignedByAdmins = {
13611359 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
13621360 then 1
13631361 else 0
13641362 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
13651363 then 1
13661364 else 0
13671365 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
13681366 then 1
13691367 else 0
13701368 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
13711369 }
13721370 match tx {
13731371 case inv: InvokeScriptTransaction =>
13741372 let callTakeIntoAccount = if ((inv.dApp == this))
13751373 then (inv.function == "takeIntoAccountExtraFunds")
13761374 else false
13771375 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
13781376 then true
13791377 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
13801378 then true
13811379 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
13821380 then true
13831381 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyInvoke)
13841382 if (if (callTakeIntoAccount)
13851383 then signedByAdmin
13861384 else false)
13871385 then true
13881386 else multiSignedByAdmins
13891387 case _ =>
13901388 multiSignedByAdmins
13911389 }
13921390 }
13931391

github/deemru/w8io/026f985 
214.27 ms