tx · FQLP2qeSZzuQDHhme3wgCd5fui21qYsyx7T1Ff2dTdCj 3Mw8ZcMK47vENHqhYYhCZTCPDXhff6ZQVwt: -0.06200000 Waves 2023.11.21 16:25 [2853211] smart account 3Mw8ZcMK47vENHqhYYhCZTCPDXhff6ZQVwt > SELF 0.00000000 Waves
{ "type": 13, "id": "FQLP2qeSZzuQDHhme3wgCd5fui21qYsyx7T1Ff2dTdCj", "fee": 6200000, "feeAssetId": null, "timestamp": 1700573051132, "version": 2, "chainId": 84, "sender": "3Mw8ZcMK47vENHqhYYhCZTCPDXhff6ZQVwt", "senderPublicKey": "3fNYAZ872D7hsaic3sPDZd5uAk59U5CiWiA153FUZ6Qv", "proofs": [ "2GNgxpqF6DDQasTc19gH3ZMhJaGFf5xDDBwiwkVFDKMfQEmkRK2L4rN81kHkEptwEGT5fpHCjdpvS2YBYAHWcbKV" ], "script": "base64:BgJ3CAISEAoOGBgBAQgIAQEBAQEIAQgSAwoBARIDCgEBEgASBAoCCAESBAoCCAESAwoBARIECgIIARIDCgEBEgQKAggBEgUKAwgIARIDCgEIEgASABIDCgEIEgASAwoBARIDCgEIEgASABIDCgEIEgQKAggBEgMKAQh7AANTRVACAl9fAAVXQVZFUwIFd2F2ZXMAB01BWF9JTlQA//////////9/AAdNQVhfRkVFAMCEPQANTUFYX0FNUExJRklFUgDAhD0AFE1BWF9XRUlHSFRfQU1QTElGSUVSAMCEPQAKTUFYX1dFSUdIVADAhD0AFFNMSVBQQUdFX1JBVEVfRkFDVE9SAMCEPQAPRkVFX1JBVEVfRkFDVE9SAMCEPQALUkFURV9GQUNUT1IAwIQ9AA5QRVJDRU5UX0ZBQ1RPUgkAtgIBAICAkLu61q3wDQAQWkVST19JTlRfTElTVF8xMAkAzAgCAAAJAMwIAgAACQDMCAIAAAkAzAgCAAAJAMwIAgAACQDMCAIAAAkAzAgCAAAJAMwIAgAACQDMCAIAAAkAzAgCAAAFA25pbAAQWkVST19JTlRfTElTVF8xMQkAzQgCBRBaR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pZAUDbmlsBQNTRVAHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5NPTs7Q==", "height": 2853211, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Er7uFsXJfxS9Ea4GyEdiSrNABexJ31bC8VV9EsQ2rJqq Next: 7tvBSXMDLD5oZYJDWK7b44wzSu8pjAg2Pv93VcXdwd4D Diff:
Old | New | Differences | |
---|---|---|---|
1045 | 1045 | $Tuple2((index + 1), (acc._2 :+ profitUpdated)) | |
1046 | 1046 | } | |
1047 | 1047 | ||
1048 | - | let $ | |
1048 | + | let $t02577025843 = { | |
1049 | 1049 | let $l = ZERO_INT_LIST_11 | |
1050 | 1050 | let $s = size($l) | |
1051 | 1051 | let $acc0 = $Tuple2(0, nil) | |
1059 | 1059 | ||
1060 | 1060 | $f0_2($f0_1($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), 11) | |
1061 | 1061 | } | |
1062 | - | let idx = $ | |
1063 | - | let profitsUpdated = $ | |
1062 | + | let idx = $t02577025843._1 | |
1063 | + | let profitsUpdated = $t02577025843._2 | |
1064 | 1064 | $Tuple2((_saveUserProfits(user_, profitsUpdated) ++ _saveUserSigmaFeePerLp(user_, sigmaFeePerLp)), profitsUpdated) | |
1065 | 1065 | } | |
1066 | 1066 | ||
1074 | 1074 | $Tuple2((index + 1), (acc._2 :+ sigmaFeePerLpUpdated)) | |
1075 | 1075 | } | |
1076 | 1076 | ||
1077 | - | let $ | |
1077 | + | let $t02649326572 = { | |
1078 | 1078 | let $l = ZERO_INT_LIST_11 | |
1079 | 1079 | let $s = size($l) | |
1080 | 1080 | let $acc0 = $Tuple2(0, nil) | |
1088 | 1088 | ||
1089 | 1089 | $f0_2($f0_1($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), 11) | |
1090 | 1090 | } | |
1091 | - | let idx = $ | |
1092 | - | let sigmaFeePerLpUpdated = $ | |
1091 | + | let idx = $t02649326572._1 | |
1092 | + | let sigmaFeePerLpUpdated = $t02649326572._2 | |
1093 | 1093 | sigmaFeePerLpUpdated | |
1094 | 1094 | } | |
1095 | 1095 | ||
1097 | 1097 | func _calculateLpAndProtocolFees (assetIndex_,amount_,lpFeeRate_,protocolFeeRate_) = { | |
1098 | 1098 | let sigmaFeePerLp = _loadSigmaFeePerLp() | |
1099 | 1099 | let totalLp = _loadTotalLp() | |
1100 | - | let $ | |
1100 | + | let $t02679327068 = if ((totalLp == 0)) | |
1101 | 1101 | then $Tuple2(0, fraction(amount_, protocolFeeRate_, MAX_FEE)) | |
1102 | 1102 | else $Tuple2(fraction(amount_, lpFeeRate_, MAX_FEE), fraction(amount_, protocolFeeRate_, MAX_FEE)) | |
1103 | - | let lpFee = $ | |
1104 | - | let protocolFee = $ | |
1103 | + | let lpFee = $t02679327068._1 | |
1104 | + | let protocolFee = $t02679327068._2 | |
1105 | 1105 | let sigmaFeePerLpUpdated = if ((lpFee == 0)) | |
1106 | 1106 | then sigmaFeePerLp | |
1107 | 1107 | else _updateSigmaFeePerLp(sigmaFeePerLp, totalLp, assetIndex_, lpFee) | |
1116 | 1116 | let slippageRate = storage._8 | |
1117 | 1117 | let feeMaxRate = storage._9 | |
1118 | 1118 | let assets = _loadAssets() | |
1119 | - | let $ | |
1120 | - | let assetWeights = $ | |
1121 | - | let sigmaWeight = $ | |
1122 | - | let $ | |
1123 | - | let prevAssetBalances = $ | |
1124 | - | let prevAssetTotalSupply = $ | |
1125 | - | let $ | |
1119 | + | let $t02757727630 = _loadAssetWeights() | |
1120 | + | let assetWeights = $t02757727630._1 | |
1121 | + | let sigmaWeight = $t02757727630._2 | |
1122 | + | let $t02763527703 = _loadAssetBalances() | |
1123 | + | let prevAssetBalances = $t02763527703._1 | |
1124 | + | let prevAssetTotalSupply = $t02763527703._2 | |
1125 | + | let $t02770928939 = if ((prevAssetTotalSupply == 0)) | |
1126 | 1126 | then { | |
1127 | 1127 | func foldFunc (acc,elem) = { | |
1128 | 1128 | let index = acc._1 | |
1130 | 1130 | $Tuple2((index + 1), (acc._2 :+ requiredAmountNormalized)) | |
1131 | 1131 | } | |
1132 | 1132 | ||
1133 | - | let $ | |
1133 | + | let $t02815128225 = { | |
1134 | 1134 | let $l = assets | |
1135 | 1135 | let $s = size($l) | |
1136 | 1136 | let $acc0 = $Tuple2(0, nil) | |
1144 | 1144 | ||
1145 | 1145 | $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) | |
1146 | 1146 | } | |
1147 | - | let idx = $ | |
1148 | - | let requiredAmountsNormalized = $ | |
1147 | + | let idx = $t02815128225._1 | |
1148 | + | let requiredAmountsNormalized = $t02815128225._2 | |
1149 | 1149 | $Tuple2(amount_, requiredAmountsNormalized) | |
1150 | 1150 | } | |
1151 | 1151 | else { | |
1156 | 1156 | $Tuple2((index + 1), (acc._2 :+ requiredAmountNormalized)) | |
1157 | 1157 | } | |
1158 | 1158 | ||
1159 | - | let $ | |
1159 | + | let $t02876828843 = { | |
1160 | 1160 | let $l = assets | |
1161 | 1161 | let $s = size($l) | |
1162 | 1162 | let $acc0 = $Tuple2(0, nil) | |
1170 | 1170 | ||
1171 | 1171 | $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) | |
1172 | 1172 | } | |
1173 | - | let idx = $ | |
1174 | - | let requiredAmountsNormalized = $ | |
1173 | + | let idx = $t02876828843._1 | |
1174 | + | let requiredAmountsNormalized = $t02876828843._2 | |
1175 | 1175 | $Tuple2(fraction(amount_, lpTotalSupply, prevAssetTotalSupply), requiredAmountsNormalized) | |
1176 | 1176 | } | |
1177 | - | let lpTokensToMint = $ | |
1178 | - | let requiredAmountsNormalized = $ | |
1179 | - | let $ | |
1180 | - | let assetBalances = $ | |
1181 | - | let assetTotalSupply = $ | |
1177 | + | let lpTokensToMint = $t02770928939._1 | |
1178 | + | let requiredAmountsNormalized = $t02770928939._2 | |
1179 | + | let $t02894529058 = _incrementBalancesByAmounts(prevAssetBalances, requiredAmountsNormalized) | |
1180 | + | let assetBalances = $t02894529058._1 | |
1181 | + | let assetTotalSupply = $t02894529058._2 | |
1182 | 1182 | let err2 = _validateLiquidityInvariant(prevAssetBalances, prevAssetTotalSupply, assetBalances, assetTotalSupply, lpTotalSupply, (lpTotalSupply + lpTokensToMint), assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1183 | 1183 | if ((err2 == err2)) | |
1184 | 1184 | then $Tuple3(lpTokensToMint, requiredAmountsNormalized, assetBalances) | |
1196 | 1196 | let slippageRate = storage._8 | |
1197 | 1197 | let feeMaxRate = storage._9 | |
1198 | 1198 | let assets = _loadAssets() | |
1199 | - | let $ | |
1200 | - | let assetWeights = $ | |
1201 | - | let sigmaWeight = $ | |
1202 | - | let $ | |
1203 | - | let prevAssetBalances = $ | |
1204 | - | let prevAssetTotalSupply = $ | |
1199 | + | let $t02982129874 = _loadAssetWeights() | |
1200 | + | let assetWeights = $t02982129874._1 | |
1201 | + | let sigmaWeight = $t02982129874._2 | |
1202 | + | let $t02987929993 = _loadAssetBalances() | |
1203 | + | let prevAssetBalances = $t02987929993._1 | |
1204 | + | let prevAssetTotalSupply = $t02987929993._2 | |
1205 | 1205 | let assetBalances = _incrementBalanceByIndex(prevAssetBalances, value(indexOf(assets, assetId_)), amount_) | |
1206 | 1206 | let assetTotalSupply = (prevAssetTotalSupply + amount_) | |
1207 | 1207 | let err2 = _validateAllocation(assetBalances, assetTotalSupply, prevAssetBalances, prevAssetTotalSupply, assetWeights, sigmaWeight, maxAllocAmplifier) | |
1221 | 1221 | then lpTokensToMintInner | |
1222 | 1222 | else throw("Strict value is not equal to itself.") | |
1223 | 1223 | } | |
1224 | - | let $ | |
1225 | - | let lpFee = $ | |
1226 | - | let protocolFee = $ | |
1227 | - | let sigmaFeePerLpUpdated = $ | |
1224 | + | let $t03165531786 = _calculateLpAndProtocolFees(0, lpTokensToMint, (lpFeeRate / 2), (protocolFeeRate / 2)) | |
1225 | + | let lpFee = $t03165531786._1 | |
1226 | + | let protocolFee = $t03165531786._2 | |
1227 | + | let sigmaFeePerLpUpdated = $t03165531786._3 | |
1228 | 1228 | $Tuple5(lpTokensToMint, assetBalances, lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1229 | 1229 | } | |
1230 | 1230 | else throw("Strict value is not equal to itself.") | |
1238 | 1238 | let weightAmplifier = storage._7 | |
1239 | 1239 | let slippageRate = storage._8 | |
1240 | 1240 | let feeMaxRate = storage._9 | |
1241 | - | let $ | |
1242 | - | let prevAssetBalances = $ | |
1243 | - | let prevAssetTotalSupply = $ | |
1244 | - | let $ | |
1245 | - | let assetWeights = $ | |
1246 | - | let sigmaWeight = $ | |
1241 | + | let $t03212032188 = _loadAssetBalances() | |
1242 | + | let prevAssetBalances = $t03212032188._1 | |
1243 | + | let prevAssetTotalSupply = $t03212032188._2 | |
1244 | + | let $t03219332246 = _loadAssetWeights() | |
1245 | + | let assetWeights = $t03219332246._1 | |
1246 | + | let sigmaWeight = $t03219332246._2 | |
1247 | 1247 | let lpTokensToBurn = amount_ | |
1248 | 1248 | let err = _validateInt(lpTokensToBurn, 0, MAX_INT, "_withdrawAll: lpTokensToBurn less than 0") | |
1249 | 1249 | if ((err == err)) | |
1250 | 1250 | then { | |
1251 | - | let $ | |
1252 | - | let assetBalances = $ | |
1253 | - | let assetTotalSupply = $ | |
1254 | - | let balancesToPay = $ | |
1251 | + | let $t03238832521 = _decrementBalancesByLpAmount(prevAssetBalances, lpTokensToBurn, lpTotalSupply) | |
1252 | + | let assetBalances = $t03238832521._1 | |
1253 | + | let assetTotalSupply = $t03238832521._2 | |
1254 | + | let balancesToPay = $t03238832521._3 | |
1255 | 1255 | let err2 = _validateLiquidityInvariant(prevAssetBalances, prevAssetTotalSupply, assetBalances, assetTotalSupply, lpTotalSupply, (lpTotalSupply - lpTokensToBurn), assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1256 | 1256 | if ((err2 == err2)) | |
1257 | 1257 | then $Tuple3(lpTokensToBurn, balancesToPay, assetBalances) | |
1272 | 1272 | let feeMaxRate = storage._9 | |
1273 | 1273 | let precision = _loadPrecision() | |
1274 | 1274 | let assets = _loadAssets() | |
1275 | - | let $ | |
1276 | - | let prevAssetBalances = $ | |
1277 | - | let prevAssetTotalSupply = $ | |
1278 | - | let $ | |
1279 | - | let assetWeights = $ | |
1280 | - | let sigmaWeight = $ | |
1275 | + | let $t03331333381 = _loadAssetBalances() | |
1276 | + | let prevAssetBalances = $t03331333381._1 | |
1277 | + | let prevAssetTotalSupply = $t03331333381._2 | |
1278 | + | let $t03338633439 = _loadAssetWeights() | |
1279 | + | let assetWeights = $t03338633439._1 | |
1280 | + | let sigmaWeight = $t03338633439._2 | |
1281 | 1281 | let targetAssetIndex = value(indexOf(assets, assetId_)) | |
1282 | 1282 | let prevFee = _calculateFee(prevAssetBalances, prevAssetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1283 | 1283 | let prevUtilValue = (prevAssetTotalSupply - prevFee) | |
1304 | 1304 | ||
1305 | 1305 | let targetAmount = { | |
1306 | 1306 | let stop = toInt(fraction(toBigInt((lpAmount_ + prevFee)), prevUtilValueDivLp, PERCENT_FACTOR, CEILING)) | |
1307 | - | let $ | |
1307 | + | let $t03530535417 = { | |
1308 | 1308 | let $l = LIST_64 | |
1309 | 1309 | let $s = size($l) | |
1310 | 1310 | let $acc0 = $Tuple5(false, 0, stop, 0, 0) | |
1318 | 1318 | ||
1319 | 1319 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64) | |
1320 | 1320 | } | |
1321 | - | let success = $ | |
1322 | - | let startOut = $ | |
1323 | - | let stopOut = $ | |
1324 | - | let targetAmountOut = $ | |
1325 | - | let diffOut = $ | |
1321 | + | let success = $t03530535417._1 | |
1322 | + | let startOut = $t03530535417._2 | |
1323 | + | let stopOut = $t03530535417._3 | |
1324 | + | let targetAmountOut = $t03530535417._4 | |
1325 | + | let diffOut = $t03530535417._5 | |
1326 | 1326 | if (!(success)) | |
1327 | 1327 | then throw(((("_withdraw: can't calculate targetAmount=" + toString(targetAmountOut)) + ",diff=") + toString(diffOut))) | |
1328 | 1328 | else targetAmountOut | |
1334 | 1334 | else false | |
1335 | 1335 | if ((err1 == err1)) | |
1336 | 1336 | then { | |
1337 | - | let $ | |
1338 | - | let lpFee = $ | |
1339 | - | let protocolFee = $ | |
1340 | - | let sigmaFeePerLpUpdated = $ | |
1337 | + | let $t03640936557 = _calculateLpAndProtocolFees((targetAssetIndex + 1), targetAmount, (lpFeeRate / 2), (protocolFeeRate / 2)) | |
1338 | + | let lpFee = $t03640936557._1 | |
1339 | + | let protocolFee = $t03640936557._2 | |
1340 | + | let sigmaFeePerLpUpdated = $t03640936557._3 | |
1341 | 1341 | $Tuple5(targetAmount, finalAssetBalances, lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1342 | 1342 | } | |
1343 | 1343 | else throw("Strict value is not equal to itself.") | |
1356 | 1356 | let slippageRate = storage._8 | |
1357 | 1357 | let feeMaxRate = storage._9 | |
1358 | 1358 | let precision = _loadPrecision() | |
1359 | - | let $ | |
1360 | - | let prevAssetBalances = $ | |
1361 | - | let prevAssetTotalSupply = $ | |
1362 | - | let $ | |
1363 | - | let assetWeights = $ | |
1364 | - | let sigmaWeight = $ | |
1359 | + | let $t03713937207 = _loadAssetBalances() | |
1360 | + | let prevAssetBalances = $t03713937207._1 | |
1361 | + | let prevAssetTotalSupply = $t03713937207._2 | |
1362 | + | let $t03721237265 = _loadAssetWeights() | |
1363 | + | let assetWeights = $t03721237265._1 | |
1364 | + | let sigmaWeight = $t03721237265._2 | |
1365 | 1365 | let assetBalances = _incrementBalanceByIndex(prevAssetBalances, sourceAssetIndex_, sourceAmount_) | |
1366 | 1366 | let assetTotalSupply = (prevAssetTotalSupply + sourceAmount_) | |
1367 | 1367 | let prevFee = _calculateFee(prevAssetBalances, prevAssetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1393 | 1393 | if ((feeDiff == 0)) | |
1394 | 1394 | then targetAmount | |
1395 | 1395 | else { | |
1396 | - | let $ | |
1396 | + | let $t03923839369 = { | |
1397 | 1397 | let $l = LIST_64 | |
1398 | 1398 | let $s = size($l) | |
1399 | 1399 | let $acc0 = $Tuple5(false, 0, (sourceAmount_ + prevFee), 0, 0) | |
1407 | 1407 | ||
1408 | 1408 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64) | |
1409 | 1409 | } | |
1410 | - | let success = $ | |
1411 | - | let startOut = $ | |
1412 | - | let stopOut = $ | |
1413 | - | let targetAmountOut = $ | |
1414 | - | let diffOut = $ | |
1410 | + | let success = $t03923839369._1 | |
1411 | + | let startOut = $t03923839369._2 | |
1412 | + | let stopOut = $t03923839369._3 | |
1413 | + | let targetAmountOut = $t03923839369._4 | |
1414 | + | let diffOut = $t03923839369._5 | |
1415 | 1415 | if (!(success)) | |
1416 | 1416 | then throw(((("_swap: can't calculate targetAmount=" + toString(targetAmountOut)) + ",diff=") + toString(diffOut))) | |
1417 | 1417 | else targetAmountOut | |
1424 | 1424 | else false | |
1425 | 1425 | if ((err1 == err1)) | |
1426 | 1426 | then { | |
1427 | - | let $ | |
1428 | - | let lpFee = $ | |
1429 | - | let protocolFee = $ | |
1430 | - | let sigmaFeePerLpUpdated = $ | |
1427 | + | let $t04021640357 = _calculateLpAndProtocolFees((targetAssetIndex_ + 1), targetAmount, lpFeeRate, protocolFeeRate) | |
1428 | + | let lpFee = $t04021640357._1 | |
1429 | + | let protocolFee = $t04021640357._2 | |
1430 | + | let sigmaFeePerLpUpdated = $t04021640357._3 | |
1431 | 1431 | $Tuple5(targetAmount, finalAssetBalances, lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1432 | 1432 | } | |
1433 | 1433 | else throw("Strict value is not equal to itself.") | |
1473 | 1473 | else false | |
1474 | 1474 | if ((err == err)) | |
1475 | 1475 | then { | |
1476 | - | let $ | |
1477 | - | let assetWeights = $ | |
1478 | - | let sigmaWeight = $ | |
1476 | + | let $t04222042289 = _prepareAssetWeights(assetWeights_) | |
1477 | + | let assetWeights = $t04222042289._1 | |
1478 | + | let sigmaWeight = $t04222042289._2 | |
1479 | 1479 | let assetBalances = _prepareAssetBalances(assets_) | |
1480 | 1480 | let issue = Issue(lpTokenName_, lpTokenDescr_, 0, lpTokenDecimals_, true) | |
1481 | 1481 | let lpAssetId = calculateAssetId(issue) | |
1500 | 1500 | let lpAssetId = storage._1 | |
1501 | 1501 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1502 | 1502 | let assets = _loadAssets() | |
1503 | - | let $ | |
1504 | - | let lpTokensToMint = $ | |
1505 | - | let requiredAmountsNormalized = $ | |
1506 | - | let assetBalances = $ | |
1503 | + | let $t04403944124 = _depositAll(amount_) | |
1504 | + | let lpTokensToMint = $t04403944124._1 | |
1505 | + | let requiredAmountsNormalized = $t04403944124._2 | |
1506 | + | let assetBalances = $t04403944124._3 | |
1507 | 1507 | func foldFunc (acc,elem) = { | |
1508 | 1508 | let index = acc._1 | |
1509 | 1509 | let paymentAssetStr = _assetToStr(i.payments[index].assetId) | |
1527 | 1527 | else throw("Strict value is not equal to itself.") | |
1528 | 1528 | } | |
1529 | 1529 | ||
1530 | - | let $ | |
1530 | + | let $t04526745329 = { | |
1531 | 1531 | let $l = assets | |
1532 | 1532 | let $s = size($l) | |
1533 | 1533 | let $acc0 = $Tuple2(0, nil) | |
1541 | 1541 | ||
1542 | 1542 | $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) | |
1543 | 1543 | } | |
1544 | - | let idx = $ | |
1545 | - | let changeActions = $ | |
1544 | + | let idx = $t04526745329._1 | |
1545 | + | let changeActions = $t04526745329._2 | |
1546 | 1546 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 + lpTokensToMint), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1547 | 1547 | $Tuple2(((([Reissue(lpAssetId, lpTokensToMint, true), ScriptTransfer(i.caller, lpTokensToMint, lpAssetId)] ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(assetBalances)) ++ changeActions), unit) | |
1548 | 1548 | } | |
1576 | 1576 | let assetStr = _assetToStr(i.payments[0].assetId) | |
1577 | 1577 | let assetDecimals = _getDecimals(assetStr) | |
1578 | 1578 | let amountNormalized = _normalizeDecimals(i.payments[0].amount, assetDecimals, lpDecimals, DOWN) | |
1579 | - | let $ | |
1580 | - | let lpTokensToMint = $ | |
1581 | - | let assetBalances = $ | |
1582 | - | let lpFee = $ | |
1583 | - | let protocolFee = $ | |
1584 | - | let sigmaFeePerLpUpdated = $ | |
1579 | + | let $t04676946885 = _deposit(assetStr, amountNormalized) | |
1580 | + | let lpTokensToMint = $t04676946885._1 | |
1581 | + | let assetBalances = $t04676946885._2 | |
1582 | + | let lpFee = $t04676946885._3 | |
1583 | + | let protocolFee = $t04676946885._4 | |
1584 | + | let sigmaFeePerLpUpdated = $t04676946885._5 | |
1585 | 1585 | let lpTokensToSend = ((lpTokensToMint - lpFee) - protocolFee) | |
1586 | 1586 | let err2 = _validateInt(lpTokensToSend, minLpAmount_, MAX_INT, "deposit: less than min") | |
1587 | 1587 | if ((err2 == err2)) | |
1614 | 1614 | else false | |
1615 | 1615 | if ((err == err)) | |
1616 | 1616 | then { | |
1617 | - | let $ | |
1618 | - | let lpTokensToBurn = $ | |
1619 | - | let balancesToPay = $ | |
1620 | - | let assetBalances = $ | |
1617 | + | let $t04834648433 = _withdrawAll(i.payments[0].amount) | |
1618 | + | let lpTokensToBurn = $t04834648433._1 | |
1619 | + | let balancesToPay = $t04834648433._2 | |
1620 | + | let assetBalances = $t04834648433._3 | |
1621 | 1621 | let paymentActions = _getPaymentsFromBalances(assets, balancesToPay, i.caller, lpDecimals) | |
1622 | 1622 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 - lpTokensToBurn), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1623 | 1623 | $Tuple2(((([Burn(lpAssetId, lpTokensToBurn)] ++ paymentActions) ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(assetBalances)), unit) | |
1651 | 1651 | else false | |
1652 | 1652 | if ((err == err)) | |
1653 | 1653 | then { | |
1654 | - | let $ | |
1655 | - | let targetAmountNormalized = $ | |
1656 | - | let finalAssetBalances = $ | |
1657 | - | let lpFee = $ | |
1658 | - | let protocolFee = $ | |
1659 | - | let sigmaFeePerLpUpdated = $ | |
1654 | + | let $t04978749921 = _withdraw(assetId_, i.payments[0].amount) | |
1655 | + | let targetAmountNormalized = $t04978749921._1 | |
1656 | + | let finalAssetBalances = $t04978749921._2 | |
1657 | + | let lpFee = $t04978749921._3 | |
1658 | + | let protocolFee = $t04978749921._4 | |
1659 | + | let sigmaFeePerLpUpdated = $t04978749921._5 | |
1660 | 1660 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1661 | 1661 | let targetDecimals = _getDecimals(assetId_) | |
1662 | 1662 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1702 | 1702 | else false | |
1703 | 1703 | if ((err == err)) | |
1704 | 1704 | then { | |
1705 | - | let $ | |
1706 | - | let targetAmountNormalized = $ | |
1707 | - | let finalAssetBalances = $ | |
1708 | - | let lpFee = $ | |
1709 | - | let protocolFee = $ | |
1710 | - | let sigmaFeePerLpUpdated = $ | |
1705 | + | let $t05203452192 = _swap(sourceAssetIndex, targetAssetIndex, sourceAmountNormalized) | |
1706 | + | let targetAmountNormalized = $t05203452192._1 | |
1707 | + | let finalAssetBalances = $t05203452192._2 | |
1708 | + | let lpFee = $t05203452192._3 | |
1709 | + | let protocolFee = $t05203452192._4 | |
1710 | + | let sigmaFeePerLpUpdated = $t05203452192._5 | |
1711 | 1711 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1712 | 1712 | let targetDecimals = _getDecimals(targetAssetId_) | |
1713 | 1713 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1730 | 1730 | let err = _validateInt(lpAmount_, 1, MAX_INT, "getDepositAll: invalid amount") | |
1731 | 1731 | if ((err == err)) | |
1732 | 1732 | then { | |
1733 | - | let $ | |
1734 | - | let lpTokensToMint = $ | |
1735 | - | let requiredAmountsNormalized = $ | |
1736 | - | let assetBalances = $ | |
1733 | + | let $t05331253399 = _depositAll(lpAmount_) | |
1734 | + | let lpTokensToMint = $t05331253399._1 | |
1735 | + | let requiredAmountsNormalized = $t05331253399._2 | |
1736 | + | let assetBalances = $t05331253399._3 | |
1737 | 1737 | $Tuple2(nil, $Tuple2(lpTokensToMint, requiredAmountsNormalized)) | |
1738 | 1738 | } | |
1739 | 1739 | else throw("Strict value is not equal to itself.") | |
1753 | 1753 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1754 | 1754 | let assetDecimals = _getDecimals(assetId_) | |
1755 | 1755 | let amountNormalized = _normalizeDecimals(amount_, assetDecimals, lpDecimals, DOWN) | |
1756 | - | let $ | |
1757 | - | let lpTokensToMint = $ | |
1758 | - | let assetBalances = $ | |
1759 | - | let lpFee = $ | |
1760 | - | let protocolFee = $ | |
1761 | - | let sigmaFeePerLpUpdated = $ | |
1756 | + | let $t05415854274 = _deposit(assetId_, amountNormalized) | |
1757 | + | let lpTokensToMint = $t05415854274._1 | |
1758 | + | let assetBalances = $t05415854274._2 | |
1759 | + | let lpFee = $t05415854274._3 | |
1760 | + | let protocolFee = $t05415854274._4 | |
1761 | + | let sigmaFeePerLpUpdated = $t05415854274._5 | |
1762 | 1762 | let lpTokensToSend = ((lpTokensToMint - lpFee) - protocolFee) | |
1763 | 1763 | $Tuple2(nil, lpTokensToSend) | |
1764 | 1764 | } | |
1772 | 1772 | let err = _validateInt(lpAmount_, 0, MAX_INT, "getWithdrawAll: invalid amount") | |
1773 | 1773 | if ((err == err)) | |
1774 | 1774 | then { | |
1775 | - | let $ | |
1776 | - | let lpTokensToBurn = $ | |
1777 | - | let balancesToGet = $ | |
1778 | - | let assetBalances = $ | |
1775 | + | let $t05471354789 = _withdrawAll(lpAmount_) | |
1776 | + | let lpTokensToBurn = $t05471354789._1 | |
1777 | + | let balancesToGet = $t05471354789._2 | |
1778 | + | let assetBalances = $t05471354789._3 | |
1779 | 1779 | $Tuple2(nil, balancesToGet) | |
1780 | 1780 | } | |
1781 | 1781 | else throw("Strict value is not equal to itself.") | |
1793 | 1793 | let storage = _loadStorage() | |
1794 | 1794 | let lpAssetId = storage._1 | |
1795 | 1795 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1796 | - | let $ | |
1797 | - | let targetAmountNormalized = $ | |
1798 | - | let assetBalances = $ | |
1799 | - | let lpFee = $ | |
1800 | - | let protocolFee = $ | |
1801 | - | let sigmaFeePerLpUpdated = $ | |
1796 | + | let $t05544055556 = _withdraw(assetId_, amount_) | |
1797 | + | let targetAmountNormalized = $t05544055556._1 | |
1798 | + | let assetBalances = $t05544055556._2 | |
1799 | + | let lpFee = $t05544055556._3 | |
1800 | + | let protocolFee = $t05544055556._4 | |
1801 | + | let sigmaFeePerLpUpdated = $t05544055556._5 | |
1802 | 1802 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1803 | 1803 | let targetDecimals = _getDecimals(assetId_) | |
1804 | 1804 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1827 | 1827 | else false | |
1828 | 1828 | if ((err == err)) | |
1829 | 1829 | then { | |
1830 | - | let $ | |
1831 | - | let targetAmountNormalized = $ | |
1832 | - | let finalAssetBalances = $ | |
1833 | - | let lpFee = $ | |
1834 | - | let protocolFee = $ | |
1835 | - | let sigmaFeePerLpUpdated = $ | |
1830 | + | let $t05696657124 = _swap(sourceAssetIndex, targetAssetIndex, sourceAmountNormalized) | |
1831 | + | let targetAmountNormalized = $t05696657124._1 | |
1832 | + | let finalAssetBalances = $t05696657124._2 | |
1833 | + | let lpFee = $t05696657124._3 | |
1834 | + | let protocolFee = $t05696657124._4 | |
1835 | + | let sigmaFeePerLpUpdated = $t05696657124._5 | |
1836 | 1836 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1837 | 1837 | let targetDecimals = _getDecimals(targetAssetId_) | |
1838 | 1838 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1852 | 1852 | let user = if ((size(user_) > 0)) | |
1853 | 1853 | then valueOrErrorMessage(addressFromString(user_), "getClaim: invalid user") | |
1854 | 1854 | else i.caller | |
1855 | - | let $ | |
1856 | - | let checkpointActions = $ | |
1857 | - | let userProfits = $ | |
1855 | + | let $t05776657822 = _checkpoint(user) | |
1856 | + | let checkpointActions = $t05776657822._1 | |
1857 | + | let userProfits = $t05776657822._2 | |
1858 | 1858 | $Tuple2(nil, userProfits) | |
1859 | 1859 | } | |
1860 | 1860 | ||
1867 | 1867 | let weightAmplifier = storage._7 | |
1868 | 1868 | let slippageRate = storage._8 | |
1869 | 1869 | let feeMaxRate = storage._9 | |
1870 | - | let $ | |
1871 | - | let assetBalances = $ | |
1872 | - | let assetTotalSupply = $ | |
1873 | - | let $ | |
1874 | - | let assetWeights = $ | |
1875 | - | let sigmaWeight = $ | |
1870 | + | let $t05815558215 = _loadAssetBalances() | |
1871 | + | let assetBalances = $t05815558215._1 | |
1872 | + | let assetTotalSupply = $t05815558215._2 | |
1873 | + | let $t05822058273 = _loadAssetWeights() | |
1874 | + | let assetWeights = $t05822058273._1 | |
1875 | + | let sigmaWeight = $t05822058273._2 | |
1876 | 1876 | let fee = _calculateFee(assetBalances, assetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1877 | 1877 | let utilValue = (assetTotalSupply - fee) | |
1878 | 1878 | $Tuple2(nil, $Tuple2(utilValue, lpTotalSupply)) | |
1886 | 1886 | let weightAmplifier = storage._7 | |
1887 | 1887 | let slippageRate = storage._8 | |
1888 | 1888 | let feeMaxRate = storage._9 | |
1889 | - | let $ | |
1890 | - | let assetBalances = $ | |
1891 | - | let assetTotalSupply = $ | |
1892 | - | let $ | |
1893 | - | let assetWeights = $ | |
1894 | - | let sigmaWeight = $ | |
1889 | + | let $t05870558765 = _loadAssetBalances() | |
1890 | + | let assetBalances = $t05870558765._1 | |
1891 | + | let assetTotalSupply = $t05870558765._2 | |
1892 | + | let $t05877058823 = _loadAssetWeights() | |
1893 | + | let assetWeights = $t05877058823._1 | |
1894 | + | let sigmaWeight = $t05877058823._2 | |
1895 | 1895 | let fee = _calculateFee(assetBalances, assetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1896 | 1896 | $Tuple2(nil, fee) | |
1897 | 1897 | } | |
1931 | 1931 | else false | |
1932 | 1932 | if ((err1 == err1)) | |
1933 | 1933 | then { | |
1934 | - | let $ | |
1935 | - | let checkpointActions = $ | |
1936 | - | let userProfits = $ | |
1934 | + | let $t05983159891 = _checkpoint(i.caller) | |
1935 | + | let checkpointActions = $t05983159891._1 | |
1936 | + | let userProfits = $t05983159891._2 | |
1937 | 1937 | $Tuple2(((checkpointActions ++ _saveUserLp(i.caller, (_loadUserLp(i.caller) + i.payments[0].amount))) ++ _saveTotalLp((_loadTotalLp() + i.payments[0].amount))), unit) | |
1938 | 1938 | } | |
1939 | 1939 | else throw("Strict value is not equal to itself.") | |
1956 | 1956 | let err1 = _validateInt(amount_, 0, userLp, "unstake: invalid amount") | |
1957 | 1957 | if ((err1 == err1)) | |
1958 | 1958 | then { | |
1959 | - | let $ | |
1960 | - | let checkpointActions = $ | |
1961 | - | let userProfits = $ | |
1959 | + | let $t06040260462 = _checkpoint(i.caller) | |
1960 | + | let checkpointActions = $t06040260462._1 | |
1961 | + | let userProfits = $t06040260462._2 | |
1962 | 1962 | $Tuple2(((([ScriptTransfer(i.caller, amount_, lpAssetId)] ++ checkpointActions) ++ _saveUserLp(i.caller, (userLp - amount_))) ++ _saveTotalLp((_loadTotalLp() - amount_))), unit) | |
1963 | 1963 | } | |
1964 | 1964 | else throw("Strict value is not equal to itself.") | |
1984 | 1984 | let assets = [lpAssetIdStr, _loadAssets()] | |
1985 | 1985 | let maxIndex = (size(assets) - 1) | |
1986 | 1986 | let userLp = _loadUserLp(user) | |
1987 | - | let $ | |
1988 | - | let checkpointActions = $ | |
1989 | - | let userProfits = $ | |
1987 | + | let $t06118561241 = _checkpoint(user) | |
1988 | + | let checkpointActions = $t06118561241._1 | |
1989 | + | let userProfits = $t06118561241._2 | |
1990 | 1990 | func foldFunc (acc,profit) = { | |
1991 | 1991 | let index = acc._1 | |
1992 | 1992 | if (if ((maxIndex >= index)) | |
1999 | 1999 | else $Tuple3((index + 1), (acc._2 :+ profit), acc._3) | |
2000 | 2000 | } | |
2001 | 2001 | ||
2002 | - | let $ | |
2002 | + | let $t06161961710 = { | |
2003 | 2003 | let $l = userProfits | |
2004 | 2004 | let $s = size($l) | |
2005 | 2005 | let $acc0 = $Tuple3(0, nil, nil) | |
2013 | 2013 | ||
2014 | 2014 | $f0_2($f0_1($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), 11) | |
2015 | 2015 | } | |
2016 | - | let idx = $ | |
2017 | - | let userProfitsUpdated = $ | |
2018 | - | let profitActions = $ | |
2016 | + | let idx = $t06161961710._1 | |
2017 | + | let userProfitsUpdated = $t06161961710._2 | |
2018 | + | let profitActions = $t06161961710._3 | |
2019 | 2019 | $Tuple2(((profitActions ++ removeByIndex(checkpointActions, 0)) ++ _saveUserProfits(user, userProfitsUpdated)), unit) | |
2020 | 2020 | } | |
2021 | 2021 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let WAVES = "waves" | |
7 | 7 | ||
8 | 8 | let MAX_INT = 9223372036854775807 | |
9 | 9 | ||
10 | 10 | let MAX_FEE = 1000000 | |
11 | 11 | ||
12 | 12 | let MAX_AMPLIFIER = 1000000 | |
13 | 13 | ||
14 | 14 | let MAX_WEIGHT_AMPLIFIER = 1000000 | |
15 | 15 | ||
16 | 16 | let MAX_WEIGHT = 1000000 | |
17 | 17 | ||
18 | 18 | let SLIPPAGE_RATE_FACTOR = 1000000 | |
19 | 19 | ||
20 | 20 | let FEE_RATE_FACTOR = 1000000 | |
21 | 21 | ||
22 | 22 | let RATE_FACTOR = 1000000 | |
23 | 23 | ||
24 | 24 | let PERCENT_FACTOR = toBigInt(1000000000000000000) | |
25 | 25 | ||
26 | 26 | let ZERO_INT_LIST_10 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | |
27 | 27 | ||
28 | 28 | let ZERO_INT_LIST_11 = (ZERO_INT_LIST_10 :+ 0) | |
29 | 29 | ||
30 | 30 | let ZERO_BIGINT = toBigInt(0) | |
31 | 31 | ||
32 | 32 | let ZERO_BIGINT_LIST_11 = [ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT, ZERO_BIGINT] | |
33 | 33 | ||
34 | 34 | let INT_DECIMALS = 8 | |
35 | 35 | ||
36 | 36 | let BIGINT_DECIMALS = 18 | |
37 | 37 | ||
38 | 38 | let LIST_64 = split_51C("0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0", "_") | |
39 | 39 | ||
40 | 40 | let KEY_MULTISIG = "MULTISIG" | |
41 | 41 | ||
42 | 42 | let KEY_STATUS = "STATUS" | |
43 | 43 | ||
44 | 44 | let KEY_PAUSED = "PAUSED" | |
45 | 45 | ||
46 | 46 | let KEY_PAUSER = "PAUSER" | |
47 | 47 | ||
48 | 48 | let KEY_STORAGE = "STORAGE" | |
49 | 49 | ||
50 | 50 | let KEY_ASSETS = "ASSETS" | |
51 | 51 | ||
52 | 52 | let KEY_ASSET_BALANCES = "ASSET_BALANCES" | |
53 | 53 | ||
54 | 54 | let KEY_ASSET_WEIGHTS = "ASSET_WEIGHTS" | |
55 | 55 | ||
56 | 56 | let KEY_LP_FEE = "LP_FEE" | |
57 | 57 | ||
58 | 58 | let KEY_PROTOCOL_FEE = "PROTOCOL_FEE" | |
59 | 59 | ||
60 | 60 | let KEY_PRECISION = "PRECISION" | |
61 | 61 | ||
62 | 62 | let KEY_SIGMA_FEE_PER_LP = "SIGMA_FEE_PER_LP" | |
63 | 63 | ||
64 | 64 | let KEY_USER_SIGMA_FEE_PER_LP = "USER_SIGMA_FEE_PER_LP" | |
65 | 65 | ||
66 | 66 | let KEY_USER_LP = "USER_LP" | |
67 | 67 | ||
68 | 68 | let KEY_TOTAL_LP = "TOTAL_LP" | |
69 | 69 | ||
70 | 70 | let KEY_USER_PROFITS = "USER_PROFITS" | |
71 | 71 | ||
72 | 72 | let KEY_WATCHDOG = "WATCHDOG" | |
73 | 73 | ||
74 | 74 | let KEY_WATCHDOG_OFFSET = "WATCHDOG_OFFSET" | |
75 | 75 | ||
76 | 76 | let KEY_WATCHDOG_HEIGHT = "WATCHDOG_HEIGHT" | |
77 | 77 | ||
78 | 78 | func _validateAddress (address_,err_) = match addressFromString(address_) { | |
79 | 79 | case a: Address => | |
80 | 80 | true | |
81 | 81 | case _ => | |
82 | 82 | throw(err_) | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func _validateAsset (assetId_,err_) = if ((assetId_ == WAVES)) | |
87 | 87 | then true | |
88 | 88 | else match assetInfo(fromBase58String(assetId_)) { | |
89 | 89 | case a: Asset => | |
90 | 90 | true | |
91 | 91 | case _ => | |
92 | 92 | throw(err_) | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func _validateInt (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_)) | |
97 | 97 | then true | |
98 | 98 | else (val_ > upperBoundary_)) | |
99 | 99 | then throw(err_) | |
100 | 100 | else true | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func _validateBool (val_,target_,err_) = if ((val_ != target_)) | |
104 | 104 | then throw(err_) | |
105 | 105 | else true | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func _validateStringEqual (val1_,val2_,err_) = if ((val1_ != val2_)) | |
109 | 109 | then throw(err_) | |
110 | 110 | else true | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func _validateStringNotEq (val1_,val2_,err_) = if ((val1_ == val2_)) | |
114 | 114 | then throw(err_) | |
115 | 115 | else true | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func _validateIntList (val_,lowerBoundary_,upperBoundary_,err_) = { | |
119 | 119 | func foldFunc (acc,elem) = match parseInt(elem) { | |
120 | 120 | case a: Int => | |
121 | 121 | if (acc) | |
122 | 122 | then _validateInt(a, lowerBoundary_, upperBoundary_, err_) | |
123 | 123 | else false | |
124 | 124 | case _ => | |
125 | 125 | throw(err_) | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | let $l = val_ | |
129 | 129 | let $s = size($l) | |
130 | 130 | let $acc0 = true | |
131 | 131 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
132 | 132 | then $a | |
133 | 133 | else foldFunc($a, $l[$i]) | |
134 | 134 | ||
135 | 135 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
136 | 136 | then $a | |
137 | 137 | else throw("List size exceeds 10") | |
138 | 138 | ||
139 | 139 | $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) | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func _validateAssets (assets_,err_) = { | |
144 | 144 | func foldFunc (acc,elem) = if (acc) | |
145 | 145 | then _validateAsset(elem, err_) | |
146 | 146 | else false | |
147 | 147 | ||
148 | 148 | let $l = assets_ | |
149 | 149 | let $s = size($l) | |
150 | 150 | let $acc0 = true | |
151 | 151 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
152 | 152 | then $a | |
153 | 153 | else foldFunc($a, $l[$i]) | |
154 | 154 | ||
155 | 155 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
156 | 156 | then $a | |
157 | 157 | else throw("List size exceeds 10") | |
158 | 158 | ||
159 | 159 | $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) | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func _validateIntEquals (val1_,val2_,err_) = if ((val1_ != val2_)) | |
164 | 164 | then throw(err_) | |
165 | 165 | else true | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func _validateTokenName (val_,err_) = if (if ((4 > size(val_))) | |
169 | 169 | then true | |
170 | 170 | else (size(val_) > 16)) | |
171 | 171 | then throw(err_) | |
172 | 172 | else true | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func _validateTokenDescr (val_,err_) = if ((size(val_) > 1000)) | |
176 | 176 | then throw(err_) | |
177 | 177 | else true | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func _validateDecimals (val_,err_) = if (if ((0 > val_)) | |
181 | 181 | then true | |
182 | 182 | else (val_ > 8)) | |
183 | 183 | then throw(err_) | |
184 | 184 | else true | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func _validatePayment (payment_,assetId_,requiredAmount_,err_) = match payment_.assetId { | |
188 | 188 | case a: ByteVector => | |
189 | 189 | if ((assetId_ != toBase58String(a))) | |
190 | 190 | then throw((err_ + ": asset")) | |
191 | 191 | else if ((requiredAmount_ > payment_.amount)) | |
192 | 192 | then throw((err_ + ": amount")) | |
193 | 193 | else true | |
194 | 194 | case _ => | |
195 | 195 | throw((err_ + ": asset")) | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func _validateListContains (list_,val_,err_) = if (!(containsElement(list_, val_))) | |
200 | 200 | then throw(err_) | |
201 | 201 | else true | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func _assetToStr (asset_) = match asset_ { | |
205 | 205 | case a: ByteVector => | |
206 | 206 | toBase58String(a) | |
207 | 207 | case _ => | |
208 | 208 | WAVES | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func _strToAsset (asset_) = if (if ((asset_ == WAVES)) | |
213 | 213 | then true | |
214 | 214 | else (asset_ == "")) | |
215 | 215 | then unit | |
216 | 216 | else fromBase58String(asset_) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func _loadPause () = match getBoolean(KEY_PAUSED) { | |
220 | 220 | case a: Boolean => | |
221 | 221 | a | |
222 | 222 | case _ => | |
223 | 223 | false | |
224 | 224 | } | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func _savePause (isPaused_) = [BooleanEntry(KEY_PAUSED, isPaused_)] | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func _loadPauser () = match getString(KEY_PAUSER) { | |
231 | 231 | case a: String => | |
232 | 232 | addressFromStringValue(a) | |
233 | 233 | case _ => | |
234 | 234 | Address(base58'') | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func _savePauser (pauser_) = [StringEntry(KEY_PAUSER, toString(pauser_))] | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func _loadMultisig () = match getString(KEY_MULTISIG) { | |
242 | 242 | case a: String => | |
243 | 243 | addressFromStringValue(a) | |
244 | 244 | case _ => | |
245 | 245 | Address(base58'') | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))] | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func _loadStorage () = match getString(KEY_STORAGE) { | |
253 | 253 | case a: String => | |
254 | 254 | let struct = split(a, SEP) | |
255 | 255 | $Tuple10(fromBase58String(struct[0]), (struct[1] == "1"), parseIntValue(struct[2]), parseIntValue(struct[3]), parseIntValue(struct[4]), parseIntValue(struct[5]), parseIntValue(struct[6]), parseIntValue(struct[7]), parseIntValue(struct[8]), addressFromStringValue(struct[9])) | |
256 | 256 | case _ => | |
257 | 257 | $Tuple10(base58'', false, 0, 0, 0, 0, 0, 0, 0, Address(base58'')) | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func _saveStorage (storage_) = [StringEntry(KEY_STORAGE, makeString([toBase58String(storage_._1), if (storage_._2) | |
262 | 262 | then "1" | |
263 | 263 | else "0", toString(storage_._3), toString(storage_._4), toString(storage_._5), toString(storage_._6), toString(storage_._7), toString(storage_._8), toString(storage_._9), toString(storage_._10)], SEP))] | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func _loadAssets () = match getString(KEY_ASSETS) { | |
267 | 267 | case a: String => | |
268 | 268 | if ((size(a) > 0)) | |
269 | 269 | then split_51C(a, SEP) | |
270 | 270 | else nil | |
271 | 271 | case _ => | |
272 | 272 | nil | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func _saveAssets (assets_) = [StringEntry(KEY_ASSETS, makeString_11C(assets_, SEP))] | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func _loadAssetBalances () = { | |
280 | 280 | func foldFunc (acc,elem) = { | |
281 | 281 | let balance = parseIntValue(elem) | |
282 | 282 | $Tuple2((acc._1 :+ balance), (acc._2 + balance)) | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | match getString(KEY_ASSET_BALANCES) { | |
286 | 286 | case a: String => | |
287 | 287 | if ((size(a) > 0)) | |
288 | 288 | then { | |
289 | 289 | let $l = split_51C(a, SEP) | |
290 | 290 | let $s = size($l) | |
291 | 291 | let $acc0 = $Tuple2(nil, 0) | |
292 | 292 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
293 | 293 | then $a | |
294 | 294 | else foldFunc($a, $l[$i]) | |
295 | 295 | ||
296 | 296 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
297 | 297 | then $a | |
298 | 298 | else throw("List size exceeds 10") | |
299 | 299 | ||
300 | 300 | $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) | |
301 | 301 | } | |
302 | 302 | else $Tuple2(ZERO_INT_LIST_10, 0) | |
303 | 303 | case _ => | |
304 | 304 | $Tuple2(ZERO_INT_LIST_10, 0) | |
305 | 305 | } | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | func _saveAssetBalances (balances_) = { | |
310 | 310 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
311 | 311 | ||
312 | 312 | [StringEntry(KEY_ASSET_BALANCES, makeString_11C({ | |
313 | 313 | let $l = balances_ | |
314 | 314 | let $s = size($l) | |
315 | 315 | let $acc0 = nil | |
316 | 316 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
317 | 317 | then $a | |
318 | 318 | else foldFunc($a, $l[$i]) | |
319 | 319 | ||
320 | 320 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
321 | 321 | then $a | |
322 | 322 | else throw("List size exceeds 10") | |
323 | 323 | ||
324 | 324 | $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) | |
325 | 325 | }, SEP))] | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | func _loadAssetWeights () = { | |
330 | 330 | func foldFunc (acc,elem) = { | |
331 | 331 | let weight = parseIntValue(elem) | |
332 | 332 | $Tuple2((acc._1 :+ weight), (acc._2 + weight)) | |
333 | 333 | } | |
334 | 334 | ||
335 | 335 | match getString(KEY_ASSET_WEIGHTS) { | |
336 | 336 | case a: String => | |
337 | 337 | if ((size(a) > 0)) | |
338 | 338 | then { | |
339 | 339 | let $l = split_51C(a, SEP) | |
340 | 340 | let $s = size($l) | |
341 | 341 | let $acc0 = $Tuple2(nil, 0) | |
342 | 342 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
343 | 343 | then $a | |
344 | 344 | else foldFunc($a, $l[$i]) | |
345 | 345 | ||
346 | 346 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
347 | 347 | then $a | |
348 | 348 | else throw("List size exceeds 10") | |
349 | 349 | ||
350 | 350 | $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) | |
351 | 351 | } | |
352 | 352 | else $Tuple2(ZERO_INT_LIST_10, 0) | |
353 | 353 | case _ => | |
354 | 354 | $Tuple2(ZERO_INT_LIST_10, 0) | |
355 | 355 | } | |
356 | 356 | } | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | func _saveAssetWeights (weights_) = { | |
360 | 360 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
361 | 361 | ||
362 | 362 | [StringEntry(KEY_ASSET_WEIGHTS, makeString_11C({ | |
363 | 363 | let $l = weights_ | |
364 | 364 | let $s = size($l) | |
365 | 365 | let $acc0 = nil | |
366 | 366 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
367 | 367 | then $a | |
368 | 368 | else foldFunc($a, $l[$i]) | |
369 | 369 | ||
370 | 370 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
371 | 371 | then $a | |
372 | 372 | else throw("List size exceeds 10") | |
373 | 373 | ||
374 | 374 | $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) | |
375 | 375 | }, SEP))] | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | func _loadLpFee (assetId_) = match getInteger(makeString([KEY_LP_FEE, assetId_], SEP)) { | |
380 | 380 | case a: Int => | |
381 | 381 | a | |
382 | 382 | case _ => | |
383 | 383 | 0 | |
384 | 384 | } | |
385 | 385 | ||
386 | 386 | ||
387 | 387 | func _saveLpFee (assetId_,val_) = [IntegerEntry(makeString([KEY_LP_FEE, assetId_], SEP), val_)] | |
388 | 388 | ||
389 | 389 | ||
390 | 390 | func _loadProtocolFee (assetId_) = match getInteger(makeString([KEY_PROTOCOL_FEE, assetId_], SEP)) { | |
391 | 391 | case a: Int => | |
392 | 392 | a | |
393 | 393 | case _ => | |
394 | 394 | 0 | |
395 | 395 | } | |
396 | 396 | ||
397 | 397 | ||
398 | 398 | func _saveProtocolFee (assetId_,val_) = [IntegerEntry(makeString([KEY_PROTOCOL_FEE, assetId_], SEP), val_)] | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | func _loadPrecision () = match getInteger(KEY_PRECISION) { | |
402 | 402 | case a: Int => | |
403 | 403 | a | |
404 | 404 | case _ => | |
405 | 405 | 0 | |
406 | 406 | } | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | func _savePrecision (val_) = [IntegerEntry(KEY_PRECISION, val_)] | |
410 | 410 | ||
411 | 411 | ||
412 | 412 | func _loadSigmaFeePerLp () = { | |
413 | 413 | func foldFunc (acc,elem) = (acc :+ parseBigIntValue(elem)) | |
414 | 414 | ||
415 | 415 | match getString(KEY_SIGMA_FEE_PER_LP) { | |
416 | 416 | case a: String => | |
417 | 417 | if ((size(a) > 0)) | |
418 | 418 | then { | |
419 | 419 | let $l = split_51C(a, SEP) | |
420 | 420 | let $s = size($l) | |
421 | 421 | let $acc0 = nil | |
422 | 422 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
423 | 423 | then $a | |
424 | 424 | else foldFunc($a, $l[$i]) | |
425 | 425 | ||
426 | 426 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
427 | 427 | then $a | |
428 | 428 | else throw("List size exceeds 11") | |
429 | 429 | ||
430 | 430 | $f0_2($f0_1($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), 11) | |
431 | 431 | } | |
432 | 432 | else ZERO_BIGINT_LIST_11 | |
433 | 433 | case _ => | |
434 | 434 | ZERO_BIGINT_LIST_11 | |
435 | 435 | } | |
436 | 436 | } | |
437 | 437 | ||
438 | 438 | ||
439 | 439 | func _saveSigmaFeePerLp (val_) = { | |
440 | 440 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
441 | 441 | ||
442 | 442 | [StringEntry(KEY_SIGMA_FEE_PER_LP, makeString_11C({ | |
443 | 443 | let $l = val_ | |
444 | 444 | let $s = size($l) | |
445 | 445 | let $acc0 = nil | |
446 | 446 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
447 | 447 | then $a | |
448 | 448 | else foldFunc($a, $l[$i]) | |
449 | 449 | ||
450 | 450 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
451 | 451 | then $a | |
452 | 452 | else throw("List size exceeds 11") | |
453 | 453 | ||
454 | 454 | $f0_2($f0_1($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), 11) | |
455 | 455 | }, SEP))] | |
456 | 456 | } | |
457 | 457 | ||
458 | 458 | ||
459 | 459 | func _loadUserSigmaFeePerLp (user_) = { | |
460 | 460 | func foldFunc (acc,elem) = (acc :+ parseBigIntValue(elem)) | |
461 | 461 | ||
462 | 462 | match getString(makeString([KEY_USER_SIGMA_FEE_PER_LP, toString(user_)], SEP)) { | |
463 | 463 | case a: String => | |
464 | 464 | if ((size(a) > 0)) | |
465 | 465 | then { | |
466 | 466 | let $l = split_51C(a, SEP) | |
467 | 467 | let $s = size($l) | |
468 | 468 | let $acc0 = nil | |
469 | 469 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
470 | 470 | then $a | |
471 | 471 | else foldFunc($a, $l[$i]) | |
472 | 472 | ||
473 | 473 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
474 | 474 | then $a | |
475 | 475 | else throw("List size exceeds 11") | |
476 | 476 | ||
477 | 477 | $f0_2($f0_1($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), 11) | |
478 | 478 | } | |
479 | 479 | else ZERO_BIGINT_LIST_11 | |
480 | 480 | case _ => | |
481 | 481 | ZERO_BIGINT_LIST_11 | |
482 | 482 | } | |
483 | 483 | } | |
484 | 484 | ||
485 | 485 | ||
486 | 486 | func _saveUserSigmaFeePerLp (user_,val_) = { | |
487 | 487 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
488 | 488 | ||
489 | 489 | [StringEntry(makeString([KEY_USER_SIGMA_FEE_PER_LP, toString(user_)], SEP), makeString_11C({ | |
490 | 490 | let $l = val_ | |
491 | 491 | let $s = size($l) | |
492 | 492 | let $acc0 = nil | |
493 | 493 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
494 | 494 | then $a | |
495 | 495 | else foldFunc($a, $l[$i]) | |
496 | 496 | ||
497 | 497 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
498 | 498 | then $a | |
499 | 499 | else throw("List size exceeds 11") | |
500 | 500 | ||
501 | 501 | $f0_2($f0_1($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), 11) | |
502 | 502 | }, SEP))] | |
503 | 503 | } | |
504 | 504 | ||
505 | 505 | ||
506 | 506 | func _loadUserLp (address_) = match getInteger(makeString([KEY_USER_LP, toString(address_)], SEP)) { | |
507 | 507 | case a: Int => | |
508 | 508 | a | |
509 | 509 | case _ => | |
510 | 510 | 0 | |
511 | 511 | } | |
512 | 512 | ||
513 | 513 | ||
514 | 514 | func _saveUserLp (address_,val_) = [IntegerEntry(makeString([KEY_USER_LP, toString(address_)], SEP), val_)] | |
515 | 515 | ||
516 | 516 | ||
517 | 517 | func _loadTotalLp () = match getInteger(KEY_TOTAL_LP) { | |
518 | 518 | case a: Int => | |
519 | 519 | a | |
520 | 520 | case _ => | |
521 | 521 | 0 | |
522 | 522 | } | |
523 | 523 | ||
524 | 524 | ||
525 | 525 | func _saveTotalLp (val_) = [IntegerEntry(KEY_TOTAL_LP, val_)] | |
526 | 526 | ||
527 | 527 | ||
528 | 528 | func _loadUserProfits (user_) = { | |
529 | 529 | func foldFunc (acc,elem) = (acc :+ parseIntValue(elem)) | |
530 | 530 | ||
531 | 531 | match getString(makeString([KEY_USER_PROFITS, toString(user_)], SEP)) { | |
532 | 532 | case a: String => | |
533 | 533 | if ((size(a) > 0)) | |
534 | 534 | then { | |
535 | 535 | let $l = split_51C(a, SEP) | |
536 | 536 | let $s = size($l) | |
537 | 537 | let $acc0 = nil | |
538 | 538 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
539 | 539 | then $a | |
540 | 540 | else foldFunc($a, $l[$i]) | |
541 | 541 | ||
542 | 542 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
543 | 543 | then $a | |
544 | 544 | else throw("List size exceeds 11") | |
545 | 545 | ||
546 | 546 | $f0_2($f0_1($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), 11) | |
547 | 547 | } | |
548 | 548 | else ZERO_INT_LIST_11 | |
549 | 549 | case _ => | |
550 | 550 | ZERO_INT_LIST_11 | |
551 | 551 | } | |
552 | 552 | } | |
553 | 553 | ||
554 | 554 | ||
555 | 555 | func _saveUserProfits (user_,val_) = { | |
556 | 556 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
557 | 557 | ||
558 | 558 | [StringEntry(makeString([KEY_USER_PROFITS, toString(user_)], SEP), makeString_11C({ | |
559 | 559 | let $l = val_ | |
560 | 560 | let $s = size($l) | |
561 | 561 | let $acc0 = nil | |
562 | 562 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
563 | 563 | then $a | |
564 | 564 | else foldFunc($a, $l[$i]) | |
565 | 565 | ||
566 | 566 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
567 | 567 | then $a | |
568 | 568 | else throw("List size exceeds 11") | |
569 | 569 | ||
570 | 570 | $f0_2($f0_1($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), 11) | |
571 | 571 | }, SEP))] | |
572 | 572 | } | |
573 | 573 | ||
574 | 574 | ||
575 | 575 | func _loadWatchdog () = match getString(KEY_WATCHDOG) { | |
576 | 576 | case a: String => | |
577 | 577 | addressFromStringValue(a) | |
578 | 578 | case _ => | |
579 | 579 | Address(base58'') | |
580 | 580 | } | |
581 | 581 | ||
582 | 582 | ||
583 | 583 | func _saveWatchdog (watchdog_) = [StringEntry(KEY_WATCHDOG, toString(watchdog_))] | |
584 | 584 | ||
585 | 585 | ||
586 | 586 | func _loadWatchdogOffset () = match getInteger(KEY_WATCHDOG_OFFSET) { | |
587 | 587 | case a: Int => | |
588 | 588 | a | |
589 | 589 | case _ => | |
590 | 590 | 0 | |
591 | 591 | } | |
592 | 592 | ||
593 | 593 | ||
594 | 594 | func _saveWatchdogOffset (offset_) = [IntegerEntry(KEY_WATCHDOG_OFFSET, offset_)] | |
595 | 595 | ||
596 | 596 | ||
597 | 597 | func _onlyThisContract (caller_) = if ((caller_ != this)) | |
598 | 598 | then throw("_onlyThisContract: revert") | |
599 | 599 | else true | |
600 | 600 | ||
601 | 601 | ||
602 | 602 | func _whenMultisigSet () = if ((_loadMultisig() == Address(base58''))) | |
603 | 603 | then throw("_whenMultisigSet: revert") | |
604 | 604 | else true | |
605 | 605 | ||
606 | 606 | ||
607 | 607 | func _whenNotInitialized () = { | |
608 | 608 | let storage = _loadStorage() | |
609 | 609 | if ((storage._1 != base58'')) | |
610 | 610 | then throw("_whenNotInitialized: revert") | |
611 | 611 | else true | |
612 | 612 | } | |
613 | 613 | ||
614 | 614 | ||
615 | 615 | func _whenInitialized () = { | |
616 | 616 | let storage = _loadStorage() | |
617 | 617 | if ((storage._1 == base58'')) | |
618 | 618 | then throw("_whenInitialized: revert") | |
619 | 619 | else true | |
620 | 620 | } | |
621 | 621 | ||
622 | 622 | ||
623 | 623 | func _whenNotPaused () = if (_loadPause()) | |
624 | 624 | then throw("_whenNotPaused: revert") | |
625 | 625 | else true | |
626 | 626 | ||
627 | 627 | ||
628 | 628 | func _whenPaused () = if (!(_loadPause())) | |
629 | 629 | then throw("_whenPaused: revert") | |
630 | 630 | else true | |
631 | 631 | ||
632 | 632 | ||
633 | 633 | func _onlyPauser (caller_) = if ((caller_ != _loadPauser())) | |
634 | 634 | then throw("_onlyPauser: revert") | |
635 | 635 | else true | |
636 | 636 | ||
637 | 637 | ||
638 | 638 | func _checkWatchdog () = { | |
639 | 639 | let wd = match getInteger(_loadWatchdog(), KEY_WATCHDOG_HEIGHT) { | |
640 | 640 | case a: Int => | |
641 | 641 | (a + _loadWatchdogOffset()) | |
642 | 642 | case _ => | |
643 | 643 | 0 | |
644 | 644 | } | |
645 | 645 | if ((height > wd)) | |
646 | 646 | then throw("_checkWatchdog: revert") | |
647 | 647 | else true | |
648 | 648 | } | |
649 | 649 | ||
650 | 650 | ||
651 | 651 | func _getDecimals (assetId_) = match assetInfo(fromBase58String(assetId_)) { | |
652 | 652 | case a: Asset => | |
653 | 653 | a.decimals | |
654 | 654 | case _ => | |
655 | 655 | throw(("_getDecimals: no asset=" + assetId_)) | |
656 | 656 | } | |
657 | 657 | ||
658 | 658 | ||
659 | 659 | func _normalizeDecimals (amount_,sourceDecimals_,targetDecimals_,round_) = if ((sourceDecimals_ >= targetDecimals_)) | |
660 | 660 | then fraction(amount_, 1, pow(10, 0, (sourceDecimals_ - targetDecimals_), 0, 0, DOWN), round_) | |
661 | 661 | else (amount_ * pow(10, 0, (targetDecimals_ - sourceDecimals_), 0, 0, DOWN)) | |
662 | 662 | ||
663 | 663 | ||
664 | 664 | func _prepareAssetBalances (assets_) = { | |
665 | 665 | func foldFunc (acc,elem) = (acc :+ 0) | |
666 | 666 | ||
667 | 667 | let $l = assets_ | |
668 | 668 | let $s = size($l) | |
669 | 669 | let $acc0 = nil | |
670 | 670 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
671 | 671 | then $a | |
672 | 672 | else foldFunc($a, $l[$i]) | |
673 | 673 | ||
674 | 674 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
675 | 675 | then $a | |
676 | 676 | else throw("List size exceeds 10") | |
677 | 677 | ||
678 | 678 | $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) | |
679 | 679 | } | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | func _prepareAssetWeights (assetWeights_) = { | |
683 | 683 | func foldFunc (acc,elem) = { | |
684 | 684 | let weight = parseIntValue(elem) | |
685 | 685 | $Tuple2((acc._1 :+ weight), (acc._2 + weight)) | |
686 | 686 | } | |
687 | 687 | ||
688 | 688 | let $l = assetWeights_ | |
689 | 689 | let $s = size($l) | |
690 | 690 | let $acc0 = $Tuple2(nil, 0) | |
691 | 691 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
692 | 692 | then $a | |
693 | 693 | else foldFunc($a, $l[$i]) | |
694 | 694 | ||
695 | 695 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
696 | 696 | then $a | |
697 | 697 | else throw("List size exceeds 10") | |
698 | 698 | ||
699 | 699 | $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) | |
700 | 700 | } | |
701 | 701 | ||
702 | 702 | ||
703 | 703 | func _getAssetBalances (assets_,decimals_) = { | |
704 | 704 | func foldFunc (acc,elem) = { | |
705 | 705 | let assetDecimals = _getDecimals(elem) | |
706 | 706 | let balance = _normalizeDecimals(assetBalance(this, fromBase58String(elem)), assetDecimals, decimals_, DOWN) | |
707 | 707 | $Tuple2((acc._1 :+ balance), (acc._2 + balance)) | |
708 | 708 | } | |
709 | 709 | ||
710 | 710 | let $l = assets_ | |
711 | 711 | let $s = size($l) | |
712 | 712 | let $acc0 = $Tuple2(nil, 0) | |
713 | 713 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
714 | 714 | then $a | |
715 | 715 | else foldFunc($a, $l[$i]) | |
716 | 716 | ||
717 | 717 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
718 | 718 | then $a | |
719 | 719 | else throw("List size exceeds 10") | |
720 | 720 | ||
721 | 721 | $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) | |
722 | 722 | } | |
723 | 723 | ||
724 | 724 | ||
725 | 725 | func _listIntToString (assets_) = { | |
726 | 726 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
727 | 727 | ||
728 | 728 | makeString({ | |
729 | 729 | let $l = assets_ | |
730 | 730 | let $s = size($l) | |
731 | 731 | let $acc0 = nil | |
732 | 732 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
733 | 733 | then $a | |
734 | 734 | else foldFunc($a, $l[$i]) | |
735 | 735 | ||
736 | 736 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
737 | 737 | then $a | |
738 | 738 | else throw("List size exceeds 11") | |
739 | 739 | ||
740 | 740 | $f0_2($f0_1($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), 11) | |
741 | 741 | }, SEP) | |
742 | 742 | } | |
743 | 743 | ||
744 | 744 | ||
745 | 745 | func _listBigIntToString (assets_) = { | |
746 | 746 | func foldFunc (acc,elem) = (acc :+ toString(elem)) | |
747 | 747 | ||
748 | 748 | makeString({ | |
749 | 749 | let $l = assets_ | |
750 | 750 | let $s = size($l) | |
751 | 751 | let $acc0 = nil | |
752 | 752 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
753 | 753 | then $a | |
754 | 754 | else foldFunc($a, $l[$i]) | |
755 | 755 | ||
756 | 756 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
757 | 757 | then $a | |
758 | 758 | else throw("List size exceeds 11") | |
759 | 759 | ||
760 | 760 | $f0_2($f0_1($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), 11) | |
761 | 761 | }, SEP) | |
762 | 762 | } | |
763 | 763 | ||
764 | 764 | ||
765 | 765 | func _getEquilibriums (sigmaBalances_,weights_,sigmaWeight_) = { | |
766 | 766 | func foldFunc (acc,elem) = (acc :+ fraction(sigmaBalances_, elem, sigmaWeight_)) | |
767 | 767 | ||
768 | 768 | let $l = weights_ | |
769 | 769 | let $s = size($l) | |
770 | 770 | let $acc0 = nil | |
771 | 771 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
772 | 772 | then $a | |
773 | 773 | else foldFunc($a, $l[$i]) | |
774 | 774 | ||
775 | 775 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
776 | 776 | then $a | |
777 | 777 | else throw("List size exceeds 10") | |
778 | 778 | ||
779 | 779 | $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) | |
780 | 780 | } | |
781 | 781 | ||
782 | 782 | ||
783 | 783 | func _incrementBalancesByAmounts (balances_,amounts_) = { | |
784 | 784 | func foldFunc (acc,elem) = { | |
785 | 785 | let index = acc._1 | |
786 | 786 | let amount = amounts_[index] | |
787 | 787 | let newBalance = (elem + amount) | |
788 | 788 | $Tuple3((index + 1), (acc._2 :+ newBalance), (acc._3 + newBalance)) | |
789 | 789 | } | |
790 | 790 | ||
791 | 791 | let result = { | |
792 | 792 | let $l = balances_ | |
793 | 793 | let $s = size($l) | |
794 | 794 | let $acc0 = $Tuple3(0, nil, 0) | |
795 | 795 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
796 | 796 | then $a | |
797 | 797 | else foldFunc($a, $l[$i]) | |
798 | 798 | ||
799 | 799 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
800 | 800 | then $a | |
801 | 801 | else throw("List size exceeds 10") | |
802 | 802 | ||
803 | 803 | $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) | |
804 | 804 | } | |
805 | 805 | $Tuple2(result._2, result._3) | |
806 | 806 | } | |
807 | 807 | ||
808 | 808 | ||
809 | 809 | func _incrementBalancesByPayments (balances_,payments_,assets_,decimals_,err_) = { | |
810 | 810 | func foldFunc (acc,elem) = { | |
811 | 811 | let index = acc._1 | |
812 | 812 | let payment = payments_[index] | |
813 | 813 | let paymentAssetStr = _assetToStr(payment.assetId) | |
814 | 814 | let err = if ((paymentAssetStr != assets_[index])) | |
815 | 815 | then throw(((err_ + ": index=") + toString(index))) | |
816 | 816 | else unit | |
817 | 817 | if ((err == err)) | |
818 | 818 | then { | |
819 | 819 | let assetDecimals = _getDecimals(paymentAssetStr) | |
820 | 820 | let newBalance = (elem + _normalizeDecimals(payments_[index].amount, assetDecimals, decimals_, DOWN)) | |
821 | 821 | $Tuple3((index + 1), (acc._2 :+ newBalance), (acc._3 + newBalance)) | |
822 | 822 | } | |
823 | 823 | else throw("Strict value is not equal to itself.") | |
824 | 824 | } | |
825 | 825 | ||
826 | 826 | let result = { | |
827 | 827 | let $l = balances_ | |
828 | 828 | let $s = size($l) | |
829 | 829 | let $acc0 = $Tuple3(0, nil, 0) | |
830 | 830 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
831 | 831 | then $a | |
832 | 832 | else foldFunc($a, $l[$i]) | |
833 | 833 | ||
834 | 834 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
835 | 835 | then $a | |
836 | 836 | else throw("List size exceeds 10") | |
837 | 837 | ||
838 | 838 | $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) | |
839 | 839 | } | |
840 | 840 | $Tuple2(result._2, result._3) | |
841 | 841 | } | |
842 | 842 | ||
843 | 843 | ||
844 | 844 | func _incrementBalanceByIndex (balances_,index_,amount_) = { | |
845 | 845 | func foldFunc (acc,elem) = { | |
846 | 846 | let index = acc._1 | |
847 | 847 | if ((index == index_)) | |
848 | 848 | then $Tuple2((index + 1), (acc._2 :+ (elem + amount_))) | |
849 | 849 | else $Tuple2((index + 1), (acc._2 :+ elem)) | |
850 | 850 | } | |
851 | 851 | ||
852 | 852 | let result = { | |
853 | 853 | let $l = balances_ | |
854 | 854 | let $s = size($l) | |
855 | 855 | let $acc0 = $Tuple2(0, nil) | |
856 | 856 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
857 | 857 | then $a | |
858 | 858 | else foldFunc($a, $l[$i]) | |
859 | 859 | ||
860 | 860 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
861 | 861 | then $a | |
862 | 862 | else throw("List size exceeds 10") | |
863 | 863 | ||
864 | 864 | $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) | |
865 | 865 | } | |
866 | 866 | result._2 | |
867 | 867 | } | |
868 | 868 | ||
869 | 869 | ||
870 | 870 | func _decrementBalanceByIndex (balances_,index_,amount_) = { | |
871 | 871 | func foldFunc (acc,elem) = { | |
872 | 872 | let index = acc._1 | |
873 | 873 | if (if ((index == index_)) | |
874 | 874 | then (amount_ > elem) | |
875 | 875 | else false) | |
876 | 876 | then throw("insufficient balance") | |
877 | 877 | else if (if ((index == index_)) | |
878 | 878 | then (elem >= amount_) | |
879 | 879 | else false) | |
880 | 880 | then $Tuple2((index + 1), (acc._2 :+ (elem - amount_))) | |
881 | 881 | else $Tuple2((index + 1), (acc._2 :+ elem)) | |
882 | 882 | } | |
883 | 883 | ||
884 | 884 | let result = { | |
885 | 885 | let $l = balances_ | |
886 | 886 | let $s = size($l) | |
887 | 887 | let $acc0 = $Tuple2(0, nil) | |
888 | 888 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
889 | 889 | then $a | |
890 | 890 | else foldFunc($a, $l[$i]) | |
891 | 891 | ||
892 | 892 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
893 | 893 | then $a | |
894 | 894 | else throw("List size exceeds 10") | |
895 | 895 | ||
896 | 896 | $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) | |
897 | 897 | } | |
898 | 898 | result._2 | |
899 | 899 | } | |
900 | 900 | ||
901 | 901 | ||
902 | 902 | func _decrementBalancesByLpAmount (balances_,amount_,lpTotalSupply_) = { | |
903 | 903 | let rate = fraction((lpTotalSupply_ - amount_), RATE_FACTOR, lpTotalSupply_, CEILING) | |
904 | 904 | func foldFunc (acc,elem) = { | |
905 | 905 | let newBalance = fraction(elem, rate, RATE_FACTOR, CEILING) | |
906 | 906 | let deltaBalance = (elem - newBalance) | |
907 | 907 | if ((0 > deltaBalance)) | |
908 | 908 | then throw("insufficient delta balance") | |
909 | 909 | else $Tuple3((acc._1 :+ newBalance), (acc._2 + newBalance), (acc._3 :+ deltaBalance)) | |
910 | 910 | } | |
911 | 911 | ||
912 | 912 | let $l = balances_ | |
913 | 913 | let $s = size($l) | |
914 | 914 | let $acc0 = $Tuple3(nil, 0, nil) | |
915 | 915 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
916 | 916 | then $a | |
917 | 917 | else foldFunc($a, $l[$i]) | |
918 | 918 | ||
919 | 919 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
920 | 920 | then $a | |
921 | 921 | else throw("List size exceeds 10") | |
922 | 922 | ||
923 | 923 | $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) | |
924 | 924 | } | |
925 | 925 | ||
926 | 926 | ||
927 | 927 | func _getPaymentsFromBalances (assets_,balances_,recipient_,sourceDecimals_) = { | |
928 | 928 | func foldFunc (acc,elem) = { | |
929 | 929 | let index = acc._1 | |
930 | 930 | $Tuple2((index + 1), (acc._2 :+ ScriptTransfer(recipient_, _normalizeDecimals(balances_[index], sourceDecimals_, _getDecimals(elem), DOWN), _strToAsset(elem)))) | |
931 | 931 | } | |
932 | 932 | ||
933 | 933 | let result = { | |
934 | 934 | let $l = assets_ | |
935 | 935 | let $s = size($l) | |
936 | 936 | let $acc0 = $Tuple2(0, nil) | |
937 | 937 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
938 | 938 | then $a | |
939 | 939 | else foldFunc($a, $l[$i]) | |
940 | 940 | ||
941 | 941 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
942 | 942 | then $a | |
943 | 943 | else throw("List size exceeds 10") | |
944 | 944 | ||
945 | 945 | $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) | |
946 | 946 | } | |
947 | 947 | result._2 | |
948 | 948 | } | |
949 | 949 | ||
950 | 950 | ||
951 | 951 | func _calculateMicroFee (balance_,equilibrium_,weightAmplifier_,slippageRate_,feeMaxRate_) = if ((equilibrium_ > balance_)) | |
952 | 952 | then { | |
953 | 953 | let threshold = fraction(equilibrium_, (MAX_WEIGHT_AMPLIFIER - weightAmplifier_), MAX_WEIGHT_AMPLIFIER) | |
954 | 954 | if ((threshold > balance_)) | |
955 | 955 | then { | |
956 | 956 | let maxDeviation = (threshold - balance_) | |
957 | 957 | let feeRate = fraction(fraction(maxDeviation, slippageRate_, SLIPPAGE_RATE_FACTOR), FEE_RATE_FACTOR, equilibrium_) | |
958 | 958 | if ((feeRate > feeMaxRate_)) | |
959 | 959 | then fraction(maxDeviation, feeMaxRate_, FEE_RATE_FACTOR) | |
960 | 960 | else fraction(maxDeviation, feeRate, FEE_RATE_FACTOR) | |
961 | 961 | } | |
962 | 962 | else 0 | |
963 | 963 | } | |
964 | 964 | else { | |
965 | 965 | let threshold = fraction(equilibrium_, (MAX_WEIGHT_AMPLIFIER + weightAmplifier_), MAX_WEIGHT_AMPLIFIER) | |
966 | 966 | if ((balance_ > threshold)) | |
967 | 967 | then { | |
968 | 968 | let maxDeviation = (balance_ - threshold) | |
969 | 969 | let feeRate = fraction(fraction(maxDeviation, slippageRate_, SLIPPAGE_RATE_FACTOR), FEE_RATE_FACTOR, equilibrium_) | |
970 | 970 | if ((feeRate > feeMaxRate_)) | |
971 | 971 | then fraction(maxDeviation, feeMaxRate_, FEE_RATE_FACTOR) | |
972 | 972 | else fraction(maxDeviation, feeRate, FEE_RATE_FACTOR) | |
973 | 973 | } | |
974 | 974 | else 0 | |
975 | 975 | } | |
976 | 976 | ||
977 | 977 | ||
978 | 978 | func _calculateFee (balances_,assetsTotalSupply_,weights_,sigmaWeight_,weightAmplifier_,slippageRate_,feeMaxRate_) = 0 | |
979 | 979 | ||
980 | 980 | ||
981 | 981 | func _validateLiquidityInvariant (prevAssetBalances_,prevAssetTotalSupply_,assetBalances_,assetTotalSupply_,prevLpTotalSupply_,lpTotalSupply_,assetWeights_,sigmaWeight_,weightAmplifier_,slippageRate_,feeMaxRate_) = if (if ((prevLpTotalSupply_ == 0)) | |
982 | 982 | then true | |
983 | 983 | else (lpTotalSupply_ == 0)) | |
984 | 984 | then true | |
985 | 985 | else { | |
986 | 986 | let prevAssetsRate = fraction((prevAssetTotalSupply_ - _calculateFee(prevAssetBalances_, prevAssetTotalSupply_, assetWeights_, sigmaWeight_, weightAmplifier_, slippageRate_, feeMaxRate_)), RATE_FACTOR, prevLpTotalSupply_) | |
987 | 987 | let newAssetsRate = fraction((assetTotalSupply_ - _calculateFee(assetBalances_, assetTotalSupply_, assetWeights_, sigmaWeight_, weightAmplifier_, slippageRate_, feeMaxRate_)), RATE_FACTOR, lpTotalSupply_) | |
988 | 988 | let diff = (newAssetsRate - prevAssetsRate) | |
989 | 989 | if (if ((0 >= diff)) | |
990 | 990 | then ((-1 * _loadPrecision()) > diff) | |
991 | 991 | else false) | |
992 | 992 | then throw(("_validateLiquidityInvariant: revert: diff=" + toString(diff))) | |
993 | 993 | else true | |
994 | 994 | } | |
995 | 995 | ||
996 | 996 | ||
997 | 997 | func _validateSwapInvariant (prevAssetBalances_,prevAssetTotalSupply_,assetBalances_,assetTotalSupply_,assetWeights_,sigmaWeight_,weightAmplifier_,slippageRate_,feeMaxRate_) = { | |
998 | 998 | let prevUtil = (prevAssetTotalSupply_ - _calculateFee(prevAssetBalances_, prevAssetTotalSupply_, assetWeights_, sigmaWeight_, weightAmplifier_, slippageRate_, feeMaxRate_)) | |
999 | 999 | let newUtil = (assetTotalSupply_ - _calculateFee(assetBalances_, assetTotalSupply_, assetWeights_, sigmaWeight_, weightAmplifier_, slippageRate_, feeMaxRate_)) | |
1000 | 1000 | let diff = (newUtil - prevUtil) | |
1001 | 1001 | if (if ((0 >= diff)) | |
1002 | 1002 | then ((-1 * _loadPrecision()) > diff) | |
1003 | 1003 | else false) | |
1004 | 1004 | then throw(("_validateSwapInvariant: revert: diff=" + toString(diff))) | |
1005 | 1005 | else true | |
1006 | 1006 | } | |
1007 | 1007 | ||
1008 | 1008 | ||
1009 | 1009 | func _validateAssetAllocation (balance_,assetTotalSupply_,prevBalance_,prevAssetTotalSupply_,weight_,sigmaWeight_,maxAllocAmp_) = { | |
1010 | 1010 | let equilibrium = fraction(assetTotalSupply_, weight_, sigmaWeight_) | |
1011 | 1011 | let maxAllocationAmp = if ((balance_ > equilibrium)) | |
1012 | 1012 | then (MAX_AMPLIFIER + maxAllocAmp_) | |
1013 | 1013 | else (MAX_AMPLIFIER - maxAllocAmp_) | |
1014 | 1014 | let maxAllocation = fraction(equilibrium, maxAllocationAmp, MAX_AMPLIFIER) | |
1015 | 1015 | let prevMaxAllocation = fraction(fraction(prevAssetTotalSupply_, weight_, sigmaWeight_), maxAllocationAmp, MAX_AMPLIFIER) | |
1016 | 1016 | if ((balance_ > equilibrium)) | |
1017 | 1017 | then if ((balance_ > maxAllocation)) | |
1018 | 1018 | then if ((prevMaxAllocation > prevBalance_)) | |
1019 | 1019 | then throw("_validateAssetAllocation: new up") | |
1020 | 1020 | else if (((balance_ - maxAllocation) > (prevBalance_ - prevMaxAllocation))) | |
1021 | 1021 | then throw("_validateAssetAllocation: still up") | |
1022 | 1022 | else true | |
1023 | 1023 | else true | |
1024 | 1024 | else if ((maxAllocation > balance_)) | |
1025 | 1025 | then if ((prevBalance_ > prevMaxAllocation)) | |
1026 | 1026 | then throw("_validateAssetAllocation: new down") | |
1027 | 1027 | else if (((maxAllocation - balance_) > (prevMaxAllocation - prevBalance_))) | |
1028 | 1028 | then throw("_validateAssetAllocation: still down") | |
1029 | 1029 | else true | |
1030 | 1030 | else true | |
1031 | 1031 | } | |
1032 | 1032 | ||
1033 | 1033 | ||
1034 | 1034 | func _validateAllocation (assetBalances_,assetTotalSupply_,prevAssetBalances_,prevAssetTotalSupply_,assetWeights_,sigmaWeight_,maxAllocAmp_) = true | |
1035 | 1035 | ||
1036 | 1036 | ||
1037 | 1037 | func _checkpoint (user_) = { | |
1038 | 1038 | let userLp = _loadUserLp(user_) | |
1039 | 1039 | let userProfits = _loadUserProfits(user_) | |
1040 | 1040 | let sigmaFeePerLp = _loadSigmaFeePerLp() | |
1041 | 1041 | let userSigmaFeePerLp = _loadUserSigmaFeePerLp(user_) | |
1042 | 1042 | func foldFunc (acc,elem) = { | |
1043 | 1043 | let index = acc._1 | |
1044 | 1044 | let profitUpdated = (userProfits[index] + toInt(fraction(toBigInt(userLp), (sigmaFeePerLp[index] - userSigmaFeePerLp[index]), PERCENT_FACTOR))) | |
1045 | 1045 | $Tuple2((index + 1), (acc._2 :+ profitUpdated)) | |
1046 | 1046 | } | |
1047 | 1047 | ||
1048 | - | let $ | |
1048 | + | let $t02577025843 = { | |
1049 | 1049 | let $l = ZERO_INT_LIST_11 | |
1050 | 1050 | let $s = size($l) | |
1051 | 1051 | let $acc0 = $Tuple2(0, nil) | |
1052 | 1052 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1053 | 1053 | then $a | |
1054 | 1054 | else foldFunc($a, $l[$i]) | |
1055 | 1055 | ||
1056 | 1056 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1057 | 1057 | then $a | |
1058 | 1058 | else throw("List size exceeds 11") | |
1059 | 1059 | ||
1060 | 1060 | $f0_2($f0_1($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), 11) | |
1061 | 1061 | } | |
1062 | - | let idx = $ | |
1063 | - | let profitsUpdated = $ | |
1062 | + | let idx = $t02577025843._1 | |
1063 | + | let profitsUpdated = $t02577025843._2 | |
1064 | 1064 | $Tuple2((_saveUserProfits(user_, profitsUpdated) ++ _saveUserSigmaFeePerLp(user_, sigmaFeePerLp)), profitsUpdated) | |
1065 | 1065 | } | |
1066 | 1066 | ||
1067 | 1067 | ||
1068 | 1068 | func _updateSigmaFeePerLp (sigmaFeePerLp_,totalLp_,index_,lpFee_) = { | |
1069 | 1069 | func foldFunc (acc,elem) = { | |
1070 | 1070 | let index = acc._1 | |
1071 | 1071 | let sigmaFeePerLpUpdated = if ((index_ == index)) | |
1072 | 1072 | then (sigmaFeePerLp_[index] + fraction(toBigInt(lpFee_), PERCENT_FACTOR, toBigInt(totalLp_))) | |
1073 | 1073 | else sigmaFeePerLp_[index] | |
1074 | 1074 | $Tuple2((index + 1), (acc._2 :+ sigmaFeePerLpUpdated)) | |
1075 | 1075 | } | |
1076 | 1076 | ||
1077 | - | let $ | |
1077 | + | let $t02649326572 = { | |
1078 | 1078 | let $l = ZERO_INT_LIST_11 | |
1079 | 1079 | let $s = size($l) | |
1080 | 1080 | let $acc0 = $Tuple2(0, nil) | |
1081 | 1081 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1082 | 1082 | then $a | |
1083 | 1083 | else foldFunc($a, $l[$i]) | |
1084 | 1084 | ||
1085 | 1085 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1086 | 1086 | then $a | |
1087 | 1087 | else throw("List size exceeds 11") | |
1088 | 1088 | ||
1089 | 1089 | $f0_2($f0_1($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), 11) | |
1090 | 1090 | } | |
1091 | - | let idx = $ | |
1092 | - | let sigmaFeePerLpUpdated = $ | |
1091 | + | let idx = $t02649326572._1 | |
1092 | + | let sigmaFeePerLpUpdated = $t02649326572._2 | |
1093 | 1093 | sigmaFeePerLpUpdated | |
1094 | 1094 | } | |
1095 | 1095 | ||
1096 | 1096 | ||
1097 | 1097 | func _calculateLpAndProtocolFees (assetIndex_,amount_,lpFeeRate_,protocolFeeRate_) = { | |
1098 | 1098 | let sigmaFeePerLp = _loadSigmaFeePerLp() | |
1099 | 1099 | let totalLp = _loadTotalLp() | |
1100 | - | let $ | |
1100 | + | let $t02679327068 = if ((totalLp == 0)) | |
1101 | 1101 | then $Tuple2(0, fraction(amount_, protocolFeeRate_, MAX_FEE)) | |
1102 | 1102 | else $Tuple2(fraction(amount_, lpFeeRate_, MAX_FEE), fraction(amount_, protocolFeeRate_, MAX_FEE)) | |
1103 | - | let lpFee = $ | |
1104 | - | let protocolFee = $ | |
1103 | + | let lpFee = $t02679327068._1 | |
1104 | + | let protocolFee = $t02679327068._2 | |
1105 | 1105 | let sigmaFeePerLpUpdated = if ((lpFee == 0)) | |
1106 | 1106 | then sigmaFeePerLp | |
1107 | 1107 | else _updateSigmaFeePerLp(sigmaFeePerLp, totalLp, assetIndex_, lpFee) | |
1108 | 1108 | $Tuple3(lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1109 | 1109 | } | |
1110 | 1110 | ||
1111 | 1111 | ||
1112 | 1112 | func _depositAll (amount_) = { | |
1113 | 1113 | let storage = _loadStorage() | |
1114 | 1114 | let lpTotalSupply = storage._3 | |
1115 | 1115 | let weightAmplifier = storage._7 | |
1116 | 1116 | let slippageRate = storage._8 | |
1117 | 1117 | let feeMaxRate = storage._9 | |
1118 | 1118 | let assets = _loadAssets() | |
1119 | - | let $ | |
1120 | - | let assetWeights = $ | |
1121 | - | let sigmaWeight = $ | |
1122 | - | let $ | |
1123 | - | let prevAssetBalances = $ | |
1124 | - | let prevAssetTotalSupply = $ | |
1125 | - | let $ | |
1119 | + | let $t02757727630 = _loadAssetWeights() | |
1120 | + | let assetWeights = $t02757727630._1 | |
1121 | + | let sigmaWeight = $t02757727630._2 | |
1122 | + | let $t02763527703 = _loadAssetBalances() | |
1123 | + | let prevAssetBalances = $t02763527703._1 | |
1124 | + | let prevAssetTotalSupply = $t02763527703._2 | |
1125 | + | let $t02770928939 = if ((prevAssetTotalSupply == 0)) | |
1126 | 1126 | then { | |
1127 | 1127 | func foldFunc (acc,elem) = { | |
1128 | 1128 | let index = acc._1 | |
1129 | 1129 | let requiredAmountNormalized = fraction(assetWeights[index], amount_, sigmaWeight) | |
1130 | 1130 | $Tuple2((index + 1), (acc._2 :+ requiredAmountNormalized)) | |
1131 | 1131 | } | |
1132 | 1132 | ||
1133 | - | let $ | |
1133 | + | let $t02815128225 = { | |
1134 | 1134 | let $l = assets | |
1135 | 1135 | let $s = size($l) | |
1136 | 1136 | let $acc0 = $Tuple2(0, nil) | |
1137 | 1137 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1138 | 1138 | then $a | |
1139 | 1139 | else foldFunc($a, $l[$i]) | |
1140 | 1140 | ||
1141 | 1141 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1142 | 1142 | then $a | |
1143 | 1143 | else throw("List size exceeds 10") | |
1144 | 1144 | ||
1145 | 1145 | $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) | |
1146 | 1146 | } | |
1147 | - | let idx = $ | |
1148 | - | let requiredAmountsNormalized = $ | |
1147 | + | let idx = $t02815128225._1 | |
1148 | + | let requiredAmountsNormalized = $t02815128225._2 | |
1149 | 1149 | $Tuple2(amount_, requiredAmountsNormalized) | |
1150 | 1150 | } | |
1151 | 1151 | else { | |
1152 | 1152 | let ratio = fraction(toBigInt(amount_), PERCENT_FACTOR, toBigInt(prevAssetTotalSupply)) | |
1153 | 1153 | func foldFunc1 (acc,elem) = { | |
1154 | 1154 | let index = acc._1 | |
1155 | 1155 | let requiredAmountNormalized = toInt(fraction(ratio, toBigInt(prevAssetBalances[index]), PERCENT_FACTOR)) | |
1156 | 1156 | $Tuple2((index + 1), (acc._2 :+ requiredAmountNormalized)) | |
1157 | 1157 | } | |
1158 | 1158 | ||
1159 | - | let $ | |
1159 | + | let $t02876828843 = { | |
1160 | 1160 | let $l = assets | |
1161 | 1161 | let $s = size($l) | |
1162 | 1162 | let $acc0 = $Tuple2(0, nil) | |
1163 | 1163 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1164 | 1164 | then $a | |
1165 | 1165 | else foldFunc1($a, $l[$i]) | |
1166 | 1166 | ||
1167 | 1167 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1168 | 1168 | then $a | |
1169 | 1169 | else throw("List size exceeds 10") | |
1170 | 1170 | ||
1171 | 1171 | $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) | |
1172 | 1172 | } | |
1173 | - | let idx = $ | |
1174 | - | let requiredAmountsNormalized = $ | |
1173 | + | let idx = $t02876828843._1 | |
1174 | + | let requiredAmountsNormalized = $t02876828843._2 | |
1175 | 1175 | $Tuple2(fraction(amount_, lpTotalSupply, prevAssetTotalSupply), requiredAmountsNormalized) | |
1176 | 1176 | } | |
1177 | - | let lpTokensToMint = $ | |
1178 | - | let requiredAmountsNormalized = $ | |
1179 | - | let $ | |
1180 | - | let assetBalances = $ | |
1181 | - | let assetTotalSupply = $ | |
1177 | + | let lpTokensToMint = $t02770928939._1 | |
1178 | + | let requiredAmountsNormalized = $t02770928939._2 | |
1179 | + | let $t02894529058 = _incrementBalancesByAmounts(prevAssetBalances, requiredAmountsNormalized) | |
1180 | + | let assetBalances = $t02894529058._1 | |
1181 | + | let assetTotalSupply = $t02894529058._2 | |
1182 | 1182 | let err2 = _validateLiquidityInvariant(prevAssetBalances, prevAssetTotalSupply, assetBalances, assetTotalSupply, lpTotalSupply, (lpTotalSupply + lpTokensToMint), assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1183 | 1183 | if ((err2 == err2)) | |
1184 | 1184 | then $Tuple3(lpTokensToMint, requiredAmountsNormalized, assetBalances) | |
1185 | 1185 | else throw("Strict value is not equal to itself.") | |
1186 | 1186 | } | |
1187 | 1187 | ||
1188 | 1188 | ||
1189 | 1189 | func _deposit (assetId_,amount_) = { | |
1190 | 1190 | let storage = _loadStorage() | |
1191 | 1191 | let lpTotalSupply = storage._3 | |
1192 | 1192 | let lpFeeRate = storage._4 | |
1193 | 1193 | let protocolFeeRate = storage._5 | |
1194 | 1194 | let maxAllocAmplifier = storage._6 | |
1195 | 1195 | let weightAmplifier = storage._7 | |
1196 | 1196 | let slippageRate = storage._8 | |
1197 | 1197 | let feeMaxRate = storage._9 | |
1198 | 1198 | let assets = _loadAssets() | |
1199 | - | let $ | |
1200 | - | let assetWeights = $ | |
1201 | - | let sigmaWeight = $ | |
1202 | - | let $ | |
1203 | - | let prevAssetBalances = $ | |
1204 | - | let prevAssetTotalSupply = $ | |
1199 | + | let $t02982129874 = _loadAssetWeights() | |
1200 | + | let assetWeights = $t02982129874._1 | |
1201 | + | let sigmaWeight = $t02982129874._2 | |
1202 | + | let $t02987929993 = _loadAssetBalances() | |
1203 | + | let prevAssetBalances = $t02987929993._1 | |
1204 | + | let prevAssetTotalSupply = $t02987929993._2 | |
1205 | 1205 | let assetBalances = _incrementBalanceByIndex(prevAssetBalances, value(indexOf(assets, assetId_)), amount_) | |
1206 | 1206 | let assetTotalSupply = (prevAssetTotalSupply + amount_) | |
1207 | 1207 | let err2 = _validateAllocation(assetBalances, assetTotalSupply, prevAssetBalances, prevAssetTotalSupply, assetWeights, sigmaWeight, maxAllocAmplifier) | |
1208 | 1208 | if ((err2 == err2)) | |
1209 | 1209 | then { | |
1210 | 1210 | let prevFee = _calculateFee(prevAssetBalances, prevAssetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1211 | 1211 | let fee = _calculateFee(assetBalances, assetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1212 | 1212 | let lpTokensToMint = if ((lpTotalSupply == 0)) | |
1213 | 1213 | then throw("_deposit: empty pool") | |
1214 | 1214 | else { | |
1215 | 1215 | let assetDiff = (assetTotalSupply - prevAssetTotalSupply) | |
1216 | 1216 | let feeDiff = (fee - prevFee) | |
1217 | 1217 | let utilityChangeFactor = fraction((assetDiff - feeDiff), RATE_FACTOR, (prevAssetTotalSupply - prevFee)) | |
1218 | 1218 | let lpTokensToMintInner = fraction(lpTotalSupply, utilityChangeFactor, RATE_FACTOR) | |
1219 | 1219 | let err3 = _validateLiquidityInvariant(prevAssetBalances, prevAssetTotalSupply, assetBalances, assetTotalSupply, lpTotalSupply, (lpTotalSupply + lpTokensToMintInner), assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1220 | 1220 | if ((err3 == err3)) | |
1221 | 1221 | then lpTokensToMintInner | |
1222 | 1222 | else throw("Strict value is not equal to itself.") | |
1223 | 1223 | } | |
1224 | - | let $ | |
1225 | - | let lpFee = $ | |
1226 | - | let protocolFee = $ | |
1227 | - | let sigmaFeePerLpUpdated = $ | |
1224 | + | let $t03165531786 = _calculateLpAndProtocolFees(0, lpTokensToMint, (lpFeeRate / 2), (protocolFeeRate / 2)) | |
1225 | + | let lpFee = $t03165531786._1 | |
1226 | + | let protocolFee = $t03165531786._2 | |
1227 | + | let sigmaFeePerLpUpdated = $t03165531786._3 | |
1228 | 1228 | $Tuple5(lpTokensToMint, assetBalances, lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1229 | 1229 | } | |
1230 | 1230 | else throw("Strict value is not equal to itself.") | |
1231 | 1231 | } | |
1232 | 1232 | ||
1233 | 1233 | ||
1234 | 1234 | func _withdrawAll (amount_) = { | |
1235 | 1235 | let storage = _loadStorage() | |
1236 | 1236 | let lpTotalSupply = storage._3 | |
1237 | 1237 | let maxAllocAmplifier = storage._6 | |
1238 | 1238 | let weightAmplifier = storage._7 | |
1239 | 1239 | let slippageRate = storage._8 | |
1240 | 1240 | let feeMaxRate = storage._9 | |
1241 | - | let $ | |
1242 | - | let prevAssetBalances = $ | |
1243 | - | let prevAssetTotalSupply = $ | |
1244 | - | let $ | |
1245 | - | let assetWeights = $ | |
1246 | - | let sigmaWeight = $ | |
1241 | + | let $t03212032188 = _loadAssetBalances() | |
1242 | + | let prevAssetBalances = $t03212032188._1 | |
1243 | + | let prevAssetTotalSupply = $t03212032188._2 | |
1244 | + | let $t03219332246 = _loadAssetWeights() | |
1245 | + | let assetWeights = $t03219332246._1 | |
1246 | + | let sigmaWeight = $t03219332246._2 | |
1247 | 1247 | let lpTokensToBurn = amount_ | |
1248 | 1248 | let err = _validateInt(lpTokensToBurn, 0, MAX_INT, "_withdrawAll: lpTokensToBurn less than 0") | |
1249 | 1249 | if ((err == err)) | |
1250 | 1250 | then { | |
1251 | - | let $ | |
1252 | - | let assetBalances = $ | |
1253 | - | let assetTotalSupply = $ | |
1254 | - | let balancesToPay = $ | |
1251 | + | let $t03238832521 = _decrementBalancesByLpAmount(prevAssetBalances, lpTokensToBurn, lpTotalSupply) | |
1252 | + | let assetBalances = $t03238832521._1 | |
1253 | + | let assetTotalSupply = $t03238832521._2 | |
1254 | + | let balancesToPay = $t03238832521._3 | |
1255 | 1255 | let err2 = _validateLiquidityInvariant(prevAssetBalances, prevAssetTotalSupply, assetBalances, assetTotalSupply, lpTotalSupply, (lpTotalSupply - lpTokensToBurn), assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1256 | 1256 | if ((err2 == err2)) | |
1257 | 1257 | then $Tuple3(lpTokensToBurn, balancesToPay, assetBalances) | |
1258 | 1258 | else throw("Strict value is not equal to itself.") | |
1259 | 1259 | } | |
1260 | 1260 | else throw("Strict value is not equal to itself.") | |
1261 | 1261 | } | |
1262 | 1262 | ||
1263 | 1263 | ||
1264 | 1264 | func _withdraw (assetId_,lpAmount_) = { | |
1265 | 1265 | let storage = _loadStorage() | |
1266 | 1266 | let lpTotalSupply = storage._3 | |
1267 | 1267 | let lpFeeRate = storage._4 | |
1268 | 1268 | let protocolFeeRate = storage._5 | |
1269 | 1269 | let maxAllocAmplifier = storage._6 | |
1270 | 1270 | let weightAmplifier = storage._7 | |
1271 | 1271 | let slippageRate = storage._8 | |
1272 | 1272 | let feeMaxRate = storage._9 | |
1273 | 1273 | let precision = _loadPrecision() | |
1274 | 1274 | let assets = _loadAssets() | |
1275 | - | let $ | |
1276 | - | let prevAssetBalances = $ | |
1277 | - | let prevAssetTotalSupply = $ | |
1278 | - | let $ | |
1279 | - | let assetWeights = $ | |
1280 | - | let sigmaWeight = $ | |
1275 | + | let $t03331333381 = _loadAssetBalances() | |
1276 | + | let prevAssetBalances = $t03331333381._1 | |
1277 | + | let prevAssetTotalSupply = $t03331333381._2 | |
1278 | + | let $t03338633439 = _loadAssetWeights() | |
1279 | + | let assetWeights = $t03338633439._1 | |
1280 | + | let sigmaWeight = $t03338633439._2 | |
1281 | 1281 | let targetAssetIndex = value(indexOf(assets, assetId_)) | |
1282 | 1282 | let prevFee = _calculateFee(prevAssetBalances, prevAssetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1283 | 1283 | let prevUtilValue = (prevAssetTotalSupply - prevFee) | |
1284 | 1284 | let k = fraction(toBigInt((lpTotalSupply - lpAmount_)), PERCENT_FACTOR, toBigInt(lpTotalSupply)) | |
1285 | 1285 | let prevUtilValueWithK = toInt(fraction(toBigInt(prevUtilValue), k, PERCENT_FACTOR)) | |
1286 | 1286 | let prevUtilValueDivLp = fraction(toBigInt(prevUtilValue), PERCENT_FACTOR, toBigInt(lpTotalSupply), CEILING) | |
1287 | 1287 | func foldFunc (acc,elem) = if (acc._1) | |
1288 | 1288 | then acc | |
1289 | 1289 | else { | |
1290 | 1290 | let startInner = acc._2 | |
1291 | 1291 | let stopInner = acc._3 | |
1292 | 1292 | let currentAmount = ((stopInner + startInner) / 2) | |
1293 | 1293 | let tempAssetBalances = _decrementBalanceByIndex(prevAssetBalances, targetAssetIndex, currentAmount) | |
1294 | 1294 | let tempAssetTotalSupply = (prevAssetTotalSupply - currentAmount) | |
1295 | 1295 | let utilValue = (tempAssetTotalSupply - _calculateFee(tempAssetBalances, tempAssetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate)) | |
1296 | 1296 | if (if (((utilValue - prevUtilValueWithK) > (-1 * precision))) | |
1297 | 1297 | then (precision > (utilValue - prevUtilValueWithK)) | |
1298 | 1298 | else false) | |
1299 | 1299 | then $Tuple5(true, startInner, stopInner, currentAmount, (utilValue - prevUtilValueWithK)) | |
1300 | 1300 | else if ((0 > (utilValue - prevUtilValueWithK))) | |
1301 | 1301 | then $Tuple5(false, startInner, currentAmount, currentAmount, (utilValue - prevUtilValueWithK)) | |
1302 | 1302 | else $Tuple5(false, currentAmount, stopInner, currentAmount, (utilValue - prevUtilValueWithK)) | |
1303 | 1303 | } | |
1304 | 1304 | ||
1305 | 1305 | let targetAmount = { | |
1306 | 1306 | let stop = toInt(fraction(toBigInt((lpAmount_ + prevFee)), prevUtilValueDivLp, PERCENT_FACTOR, CEILING)) | |
1307 | - | let $ | |
1307 | + | let $t03530535417 = { | |
1308 | 1308 | let $l = LIST_64 | |
1309 | 1309 | let $s = size($l) | |
1310 | 1310 | let $acc0 = $Tuple5(false, 0, stop, 0, 0) | |
1311 | 1311 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1312 | 1312 | then $a | |
1313 | 1313 | else foldFunc($a, $l[$i]) | |
1314 | 1314 | ||
1315 | 1315 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1316 | 1316 | then $a | |
1317 | 1317 | else throw("List size exceeds 64") | |
1318 | 1318 | ||
1319 | 1319 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64) | |
1320 | 1320 | } | |
1321 | - | let success = $ | |
1322 | - | let startOut = $ | |
1323 | - | let stopOut = $ | |
1324 | - | let targetAmountOut = $ | |
1325 | - | let diffOut = $ | |
1321 | + | let success = $t03530535417._1 | |
1322 | + | let startOut = $t03530535417._2 | |
1323 | + | let stopOut = $t03530535417._3 | |
1324 | + | let targetAmountOut = $t03530535417._4 | |
1325 | + | let diffOut = $t03530535417._5 | |
1326 | 1326 | if (!(success)) | |
1327 | 1327 | then throw(((("_withdraw: can't calculate targetAmount=" + toString(targetAmountOut)) + ",diff=") + toString(diffOut))) | |
1328 | 1328 | else targetAmountOut | |
1329 | 1329 | } | |
1330 | 1330 | let finalAssetBalances = _decrementBalanceByIndex(prevAssetBalances, targetAssetIndex, targetAmount) | |
1331 | 1331 | let finalAssetTotalSupply = (prevAssetTotalSupply - targetAmount) | |
1332 | 1332 | let err1 = if (_validateAllocation(finalAssetBalances, finalAssetTotalSupply, prevAssetBalances, prevAssetTotalSupply, assetWeights, sigmaWeight, maxAllocAmplifier)) | |
1333 | 1333 | then _validateLiquidityInvariant(prevAssetBalances, prevAssetTotalSupply, finalAssetBalances, finalAssetTotalSupply, lpTotalSupply, (lpTotalSupply - lpAmount_), assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1334 | 1334 | else false | |
1335 | 1335 | if ((err1 == err1)) | |
1336 | 1336 | then { | |
1337 | - | let $ | |
1338 | - | let lpFee = $ | |
1339 | - | let protocolFee = $ | |
1340 | - | let sigmaFeePerLpUpdated = $ | |
1337 | + | let $t03640936557 = _calculateLpAndProtocolFees((targetAssetIndex + 1), targetAmount, (lpFeeRate / 2), (protocolFeeRate / 2)) | |
1338 | + | let lpFee = $t03640936557._1 | |
1339 | + | let protocolFee = $t03640936557._2 | |
1340 | + | let sigmaFeePerLpUpdated = $t03640936557._3 | |
1341 | 1341 | $Tuple5(targetAmount, finalAssetBalances, lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1342 | 1342 | } | |
1343 | 1343 | else throw("Strict value is not equal to itself.") | |
1344 | 1344 | } | |
1345 | 1345 | ||
1346 | 1346 | ||
1347 | 1347 | func _swap (sourceAssetIndex_,targetAssetIndex_,sourceAmount_) = { | |
1348 | 1348 | let storage = _loadStorage() | |
1349 | 1349 | let lpAssetId = storage._1 | |
1350 | 1350 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1351 | 1351 | let lpTotalSupply = storage._3 | |
1352 | 1352 | let lpFeeRate = storage._4 | |
1353 | 1353 | let protocolFeeRate = storage._5 | |
1354 | 1354 | let maxAllocAmplifier = storage._6 | |
1355 | 1355 | let weightAmplifier = storage._7 | |
1356 | 1356 | let slippageRate = storage._8 | |
1357 | 1357 | let feeMaxRate = storage._9 | |
1358 | 1358 | let precision = _loadPrecision() | |
1359 | - | let $ | |
1360 | - | let prevAssetBalances = $ | |
1361 | - | let prevAssetTotalSupply = $ | |
1362 | - | let $ | |
1363 | - | let assetWeights = $ | |
1364 | - | let sigmaWeight = $ | |
1359 | + | let $t03713937207 = _loadAssetBalances() | |
1360 | + | let prevAssetBalances = $t03713937207._1 | |
1361 | + | let prevAssetTotalSupply = $t03713937207._2 | |
1362 | + | let $t03721237265 = _loadAssetWeights() | |
1363 | + | let assetWeights = $t03721237265._1 | |
1364 | + | let sigmaWeight = $t03721237265._2 | |
1365 | 1365 | let assetBalances = _incrementBalanceByIndex(prevAssetBalances, sourceAssetIndex_, sourceAmount_) | |
1366 | 1366 | let assetTotalSupply = (prevAssetTotalSupply + sourceAmount_) | |
1367 | 1367 | let prevFee = _calculateFee(prevAssetBalances, prevAssetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1368 | 1368 | let prevUtilValue = (prevAssetTotalSupply - prevFee) | |
1369 | 1369 | func foldFunc (acc,elem) = if (acc._1) | |
1370 | 1370 | then acc | |
1371 | 1371 | else { | |
1372 | 1372 | let startInner = acc._2 | |
1373 | 1373 | let stopInner = acc._3 | |
1374 | 1374 | let currentAmount = ((stopInner + startInner) / 2) | |
1375 | 1375 | let tempAssetBalances = _decrementBalanceByIndex(assetBalances, targetAssetIndex_, currentAmount) | |
1376 | 1376 | let tempAssetTotalSupply = (assetTotalSupply - currentAmount) | |
1377 | 1377 | let utilValue = (tempAssetTotalSupply - _calculateFee(tempAssetBalances, tempAssetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate)) | |
1378 | 1378 | if (if (((utilValue - prevUtilValue) > (-1 * precision))) | |
1379 | 1379 | then (precision > (utilValue - prevUtilValue)) | |
1380 | 1380 | else false) | |
1381 | 1381 | then $Tuple5(true, startInner, stopInner, currentAmount, (utilValue - prevUtilValue)) | |
1382 | 1382 | else if ((0 > (utilValue - prevUtilValue))) | |
1383 | 1383 | then $Tuple5(false, startInner, currentAmount, currentAmount, (utilValue - prevUtilValue)) | |
1384 | 1384 | else $Tuple5(false, currentAmount, stopInner, currentAmount, (utilValue - prevUtilValue)) | |
1385 | 1385 | } | |
1386 | 1386 | ||
1387 | 1387 | let targetAmount = { | |
1388 | 1388 | let targetAmount = sourceAmount_ | |
1389 | 1389 | let tempAssetBalances = _decrementBalanceByIndex(assetBalances, targetAssetIndex_, targetAmount) | |
1390 | 1390 | let tempAssetTotalSupply = (assetTotalSupply - targetAmount) | |
1391 | 1391 | let fee = _calculateFee(tempAssetBalances, tempAssetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1392 | 1392 | let feeDiff = (fee - prevFee) | |
1393 | 1393 | if ((feeDiff == 0)) | |
1394 | 1394 | then targetAmount | |
1395 | 1395 | else { | |
1396 | - | let $ | |
1396 | + | let $t03923839369 = { | |
1397 | 1397 | let $l = LIST_64 | |
1398 | 1398 | let $s = size($l) | |
1399 | 1399 | let $acc0 = $Tuple5(false, 0, (sourceAmount_ + prevFee), 0, 0) | |
1400 | 1400 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1401 | 1401 | then $a | |
1402 | 1402 | else foldFunc($a, $l[$i]) | |
1403 | 1403 | ||
1404 | 1404 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1405 | 1405 | then $a | |
1406 | 1406 | else throw("List size exceeds 64") | |
1407 | 1407 | ||
1408 | 1408 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64) | |
1409 | 1409 | } | |
1410 | - | let success = $ | |
1411 | - | let startOut = $ | |
1412 | - | let stopOut = $ | |
1413 | - | let targetAmountOut = $ | |
1414 | - | let diffOut = $ | |
1410 | + | let success = $t03923839369._1 | |
1411 | + | let startOut = $t03923839369._2 | |
1412 | + | let stopOut = $t03923839369._3 | |
1413 | + | let targetAmountOut = $t03923839369._4 | |
1414 | + | let diffOut = $t03923839369._5 | |
1415 | 1415 | if (!(success)) | |
1416 | 1416 | then throw(((("_swap: can't calculate targetAmount=" + toString(targetAmountOut)) + ",diff=") + toString(diffOut))) | |
1417 | 1417 | else targetAmountOut | |
1418 | 1418 | } | |
1419 | 1419 | } | |
1420 | 1420 | let finalAssetBalances = _decrementBalanceByIndex(assetBalances, targetAssetIndex_, targetAmount) | |
1421 | 1421 | let finalAssetTotalSupply = (assetTotalSupply - targetAmount) | |
1422 | 1422 | let err1 = if (_validateAllocation(finalAssetBalances, finalAssetTotalSupply, prevAssetBalances, prevAssetTotalSupply, assetWeights, sigmaWeight, maxAllocAmplifier)) | |
1423 | 1423 | then _validateSwapInvariant(prevAssetBalances, prevAssetTotalSupply, finalAssetBalances, finalAssetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1424 | 1424 | else false | |
1425 | 1425 | if ((err1 == err1)) | |
1426 | 1426 | then { | |
1427 | - | let $ | |
1428 | - | let lpFee = $ | |
1429 | - | let protocolFee = $ | |
1430 | - | let sigmaFeePerLpUpdated = $ | |
1427 | + | let $t04021640357 = _calculateLpAndProtocolFees((targetAssetIndex_ + 1), targetAmount, lpFeeRate, protocolFeeRate) | |
1428 | + | let lpFee = $t04021640357._1 | |
1429 | + | let protocolFee = $t04021640357._2 | |
1430 | + | let sigmaFeePerLpUpdated = $t04021640357._3 | |
1431 | 1431 | $Tuple5(targetAmount, finalAssetBalances, lpFee, protocolFee, sigmaFeePerLpUpdated) | |
1432 | 1432 | } | |
1433 | 1433 | else throw("Strict value is not equal to itself.") | |
1434 | 1434 | } | |
1435 | 1435 | ||
1436 | 1436 | ||
1437 | 1437 | @Callable(i) | |
1438 | 1438 | func init (assets_,assetWeights_,lpFeeRate_,protocolFeeRate_,lpTokenName_,lpTokenDescr_,lpTokenDecimals_,maxAllocationAmplifier_,weightAmplifier_,slippageRate_,feeMaxRate_,protocolFeeContract_,precision_,pauser_) = { | |
1439 | 1439 | let err = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (_onlyThisContract(i.caller)) | |
1440 | 1440 | then _whenNotInitialized() | |
1441 | 1441 | else false) | |
1442 | 1442 | then _whenMultisigSet() | |
1443 | 1443 | else false) | |
1444 | 1444 | then _validateAssets(assets_, "init: invalid assets") | |
1445 | 1445 | else false) | |
1446 | 1446 | then _validateIntList(assetWeights_, 1, MAX_WEIGHT, "init: invalid assetWeights") | |
1447 | 1447 | else false) | |
1448 | 1448 | then _validateIntEquals(size(assets_), size(assetWeights_), "init: invalid assetWeights size") | |
1449 | 1449 | else false) | |
1450 | 1450 | then _validateInt(lpFeeRate_, 0, MAX_FEE, "init: invalid lp fee") | |
1451 | 1451 | else false) | |
1452 | 1452 | then _validateInt(protocolFeeRate_, 0, MAX_FEE, "init: invalid protocol fee") | |
1453 | 1453 | else false) | |
1454 | 1454 | then _validateTokenName(lpTokenName_, "init: invalid name") | |
1455 | 1455 | else false) | |
1456 | 1456 | then _validateTokenDescr(lpTokenDescr_, "init: invalid descr") | |
1457 | 1457 | else false) | |
1458 | 1458 | then _validateDecimals(lpTokenDecimals_, "init: invalid decimals") | |
1459 | 1459 | else false) | |
1460 | 1460 | then _validateInt(maxAllocationAmplifier_, 0, MAX_AMPLIFIER, "init: invalid maxAllocationAmplifier") | |
1461 | 1461 | else false) | |
1462 | 1462 | then _validateInt(weightAmplifier_, 0, maxAllocationAmplifier_, "init: invalid weightAmplifier") | |
1463 | 1463 | else false) | |
1464 | 1464 | then _validateInt(slippageRate_, 0, MAX_INT, "init: invalid slippageRate") | |
1465 | 1465 | else false) | |
1466 | 1466 | then _validateInt(feeMaxRate_, 0, MAX_INT, "init: invalid feeMaxRate") | |
1467 | 1467 | else false) | |
1468 | 1468 | then _validateAddress(protocolFeeContract_, "init: invalid protocolFeeContract") | |
1469 | 1469 | else false) | |
1470 | 1470 | then _validateInt(precision_, 1, MAX_INT, "init: invalid precision") | |
1471 | 1471 | else false) | |
1472 | 1472 | then _validateAddress(pauser_, "init: invalid pauser") | |
1473 | 1473 | else false | |
1474 | 1474 | if ((err == err)) | |
1475 | 1475 | then { | |
1476 | - | let $ | |
1477 | - | let assetWeights = $ | |
1478 | - | let sigmaWeight = $ | |
1476 | + | let $t04222042289 = _prepareAssetWeights(assetWeights_) | |
1477 | + | let assetWeights = $t04222042289._1 | |
1478 | + | let sigmaWeight = $t04222042289._2 | |
1479 | 1479 | let assetBalances = _prepareAssetBalances(assets_) | |
1480 | 1480 | let issue = Issue(lpTokenName_, lpTokenDescr_, 0, lpTokenDecimals_, true) | |
1481 | 1481 | let lpAssetId = calculateAssetId(issue) | |
1482 | 1482 | let storageUpdated = $Tuple10(lpAssetId, true, 0, lpFeeRate_, protocolFeeRate_, maxAllocationAmplifier_, weightAmplifier_, slippageRate_, feeMaxRate_, addressFromStringValue(protocolFeeContract_)) | |
1483 | 1483 | $Tuple2(((((((([issue] ++ _saveStorage(storageUpdated)) ++ _saveAssets(assets_)) ++ _saveAssetBalances(assetBalances)) ++ _saveAssetWeights(assetWeights)) ++ _savePrecision(precision_)) ++ _saveSigmaFeePerLp(_loadSigmaFeePerLp())) ++ _savePauser(addressFromStringValue(pauser_))), unit) | |
1484 | 1484 | } | |
1485 | 1485 | else throw("Strict value is not equal to itself.") | |
1486 | 1486 | } | |
1487 | 1487 | ||
1488 | 1488 | ||
1489 | 1489 | ||
1490 | 1490 | @Callable(i) | |
1491 | 1491 | func depositAll (amount_) = { | |
1492 | 1492 | let err = if (if (_whenInitialized()) | |
1493 | 1493 | then _whenNotPaused() | |
1494 | 1494 | else false) | |
1495 | 1495 | then _validateInt(amount_, 0, MAX_INT, "depositAll: invalid amount") | |
1496 | 1496 | else false | |
1497 | 1497 | if ((err == err)) | |
1498 | 1498 | then { | |
1499 | 1499 | let storage = _loadStorage() | |
1500 | 1500 | let lpAssetId = storage._1 | |
1501 | 1501 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1502 | 1502 | let assets = _loadAssets() | |
1503 | - | let $ | |
1504 | - | let lpTokensToMint = $ | |
1505 | - | let requiredAmountsNormalized = $ | |
1506 | - | let assetBalances = $ | |
1503 | + | let $t04403944124 = _depositAll(amount_) | |
1504 | + | let lpTokensToMint = $t04403944124._1 | |
1505 | + | let requiredAmountsNormalized = $t04403944124._2 | |
1506 | + | let assetBalances = $t04403944124._3 | |
1507 | 1507 | func foldFunc (acc,elem) = { | |
1508 | 1508 | let index = acc._1 | |
1509 | 1509 | let paymentAssetStr = _assetToStr(i.payments[index].assetId) | |
1510 | 1510 | let paymentAssetDecimals = _getDecimals(paymentAssetStr) | |
1511 | 1511 | let requiredAmountNormalized = requiredAmountsNormalized[index] | |
1512 | 1512 | let requiredAmount = _normalizeDecimals(requiredAmountNormalized, lpDecimals, paymentAssetDecimals, CEILING) | |
1513 | 1513 | let err1 = if ((paymentAssetStr != elem)) | |
1514 | 1514 | then throw(("depositAll: invalid payment: index=" + toString(index))) | |
1515 | 1515 | else if ((0 >= requiredAmount)) | |
1516 | 1516 | then throw("depositAll: too little amount required") | |
1517 | 1517 | else unit | |
1518 | 1518 | if ((err1 == err1)) | |
1519 | 1519 | then { | |
1520 | 1520 | let change = if ((i.payments[index].amount > requiredAmount)) | |
1521 | 1521 | then [ScriptTransfer(i.caller, (i.payments[index].amount - requiredAmount), i.payments[index].assetId)] | |
1522 | 1522 | else if ((requiredAmount > i.payments[index].amount)) | |
1523 | 1523 | then throw(((("depositAll: insufficient payment, index=" + toString(index)) + ", required=") + toString(requiredAmount))) | |
1524 | 1524 | else nil | |
1525 | 1525 | $Tuple2((index + 1), (acc._2 ++ change)) | |
1526 | 1526 | } | |
1527 | 1527 | else throw("Strict value is not equal to itself.") | |
1528 | 1528 | } | |
1529 | 1529 | ||
1530 | - | let $ | |
1530 | + | let $t04526745329 = { | |
1531 | 1531 | let $l = assets | |
1532 | 1532 | let $s = size($l) | |
1533 | 1533 | let $acc0 = $Tuple2(0, nil) | |
1534 | 1534 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1535 | 1535 | then $a | |
1536 | 1536 | else foldFunc($a, $l[$i]) | |
1537 | 1537 | ||
1538 | 1538 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1539 | 1539 | then $a | |
1540 | 1540 | else throw("List size exceeds 10") | |
1541 | 1541 | ||
1542 | 1542 | $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) | |
1543 | 1543 | } | |
1544 | - | let idx = $ | |
1545 | - | let changeActions = $ | |
1544 | + | let idx = $t04526745329._1 | |
1545 | + | let changeActions = $t04526745329._2 | |
1546 | 1546 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 + lpTokensToMint), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1547 | 1547 | $Tuple2(((([Reissue(lpAssetId, lpTokensToMint, true), ScriptTransfer(i.caller, lpTokensToMint, lpAssetId)] ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(assetBalances)) ++ changeActions), unit) | |
1548 | 1548 | } | |
1549 | 1549 | else throw("Strict value is not equal to itself.") | |
1550 | 1550 | } | |
1551 | 1551 | ||
1552 | 1552 | ||
1553 | 1553 | ||
1554 | 1554 | @Callable(i) | |
1555 | 1555 | func deposit (minLpAmount_) = { | |
1556 | 1556 | let err = _validateInt(minLpAmount_, 0, MAX_INT, "deposit: invalid min lp amount") | |
1557 | 1557 | if ((err == err)) | |
1558 | 1558 | then { | |
1559 | 1559 | let storage = _loadStorage() | |
1560 | 1560 | let lpAssetId = storage._1 | |
1561 | 1561 | let lpAssetIdStr = _assetToStr(lpAssetId) | |
1562 | 1562 | let lpDecimals = _getDecimals(lpAssetIdStr) | |
1563 | 1563 | let err1 = if (if (if (if (if (_whenInitialized()) | |
1564 | 1564 | then _whenNotPaused() | |
1565 | 1565 | else false) | |
1566 | 1566 | then _checkWatchdog() | |
1567 | 1567 | else false) | |
1568 | 1568 | then _validateIntEquals(size(i.payments), 1, "deposit: invalid payments size") | |
1569 | 1569 | else false) | |
1570 | 1570 | then _validateListContains(_loadAssets(), _assetToStr(i.payments[0].assetId), "deposit: invalid payment asset") | |
1571 | 1571 | else false) | |
1572 | 1572 | then _validateInt(i.payments[0].amount, 1, MAX_INT, "deposit: invalid payment amount") | |
1573 | 1573 | else false | |
1574 | 1574 | if ((err1 == err1)) | |
1575 | 1575 | then { | |
1576 | 1576 | let assetStr = _assetToStr(i.payments[0].assetId) | |
1577 | 1577 | let assetDecimals = _getDecimals(assetStr) | |
1578 | 1578 | let amountNormalized = _normalizeDecimals(i.payments[0].amount, assetDecimals, lpDecimals, DOWN) | |
1579 | - | let $ | |
1580 | - | let lpTokensToMint = $ | |
1581 | - | let assetBalances = $ | |
1582 | - | let lpFee = $ | |
1583 | - | let protocolFee = $ | |
1584 | - | let sigmaFeePerLpUpdated = $ | |
1579 | + | let $t04676946885 = _deposit(assetStr, amountNormalized) | |
1580 | + | let lpTokensToMint = $t04676946885._1 | |
1581 | + | let assetBalances = $t04676946885._2 | |
1582 | + | let lpFee = $t04676946885._3 | |
1583 | + | let protocolFee = $t04676946885._4 | |
1584 | + | let sigmaFeePerLpUpdated = $t04676946885._5 | |
1585 | 1585 | let lpTokensToSend = ((lpTokensToMint - lpFee) - protocolFee) | |
1586 | 1586 | let err2 = _validateInt(lpTokensToSend, minLpAmount_, MAX_INT, "deposit: less than min") | |
1587 | 1587 | if ((err2 == err2)) | |
1588 | 1588 | then { | |
1589 | 1589 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 + lpTokensToMint), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1590 | 1590 | $Tuple2(((((([Reissue(lpAssetId, lpTokensToMint, true), ScriptTransfer(i.caller, lpTokensToSend, lpAssetId)] ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(assetBalances)) ++ _saveLpFee(lpAssetIdStr, (lpFee + _loadLpFee(lpAssetIdStr)))) ++ _saveProtocolFee(lpAssetIdStr, (protocolFee + _loadProtocolFee(lpAssetIdStr)))) ++ _saveSigmaFeePerLp(sigmaFeePerLpUpdated)), unit) | |
1591 | 1591 | } | |
1592 | 1592 | else throw("Strict value is not equal to itself.") | |
1593 | 1593 | } | |
1594 | 1594 | else throw("Strict value is not equal to itself.") | |
1595 | 1595 | } | |
1596 | 1596 | else throw("Strict value is not equal to itself.") | |
1597 | 1597 | } | |
1598 | 1598 | ||
1599 | 1599 | ||
1600 | 1600 | ||
1601 | 1601 | @Callable(i) | |
1602 | 1602 | func withdrawAll () = { | |
1603 | 1603 | let storage = _loadStorage() | |
1604 | 1604 | let lpAssetId = storage._1 | |
1605 | 1605 | let lpAssetIdStr = toBase58String(lpAssetId) | |
1606 | 1606 | let lpDecimals = _getDecimals(lpAssetIdStr) | |
1607 | 1607 | let assets = _loadAssets() | |
1608 | 1608 | let err = if (if (if (_whenInitialized()) | |
1609 | 1609 | then _validateIntEquals(size(i.payments), 1, "withdrawAll: invalid payments size") | |
1610 | 1610 | else false) | |
1611 | 1611 | then _validateStringEqual(lpAssetIdStr, _assetToStr(i.payments[0].assetId), "withdrawAll: invalid payment asset") | |
1612 | 1612 | else false) | |
1613 | 1613 | then _validateInt(i.payments[0].amount, 1, MAX_INT, "withdrawAll: invalid payment amount") | |
1614 | 1614 | else false | |
1615 | 1615 | if ((err == err)) | |
1616 | 1616 | then { | |
1617 | - | let $ | |
1618 | - | let lpTokensToBurn = $ | |
1619 | - | let balancesToPay = $ | |
1620 | - | let assetBalances = $ | |
1617 | + | let $t04834648433 = _withdrawAll(i.payments[0].amount) | |
1618 | + | let lpTokensToBurn = $t04834648433._1 | |
1619 | + | let balancesToPay = $t04834648433._2 | |
1620 | + | let assetBalances = $t04834648433._3 | |
1621 | 1621 | let paymentActions = _getPaymentsFromBalances(assets, balancesToPay, i.caller, lpDecimals) | |
1622 | 1622 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 - lpTokensToBurn), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1623 | 1623 | $Tuple2(((([Burn(lpAssetId, lpTokensToBurn)] ++ paymentActions) ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(assetBalances)), unit) | |
1624 | 1624 | } | |
1625 | 1625 | else throw("Strict value is not equal to itself.") | |
1626 | 1626 | } | |
1627 | 1627 | ||
1628 | 1628 | ||
1629 | 1629 | ||
1630 | 1630 | @Callable(i) | |
1631 | 1631 | func withdraw (assetId_,minAmount_) = { | |
1632 | 1632 | let storage = _loadStorage() | |
1633 | 1633 | let lpAssetId = storage._1 | |
1634 | 1634 | let lpAssetIdStr = toBase58String(lpAssetId) | |
1635 | 1635 | let lpDecimals = _getDecimals(lpAssetIdStr) | |
1636 | 1636 | let assets = _loadAssets() | |
1637 | 1637 | let err = if (if (if (if (if (if (if (_whenInitialized()) | |
1638 | 1638 | then _whenNotPaused() | |
1639 | 1639 | else false) | |
1640 | 1640 | then _checkWatchdog() | |
1641 | 1641 | else false) | |
1642 | 1642 | then _validateIntEquals(size(i.payments), 1, "withdraw: invalid payments size") | |
1643 | 1643 | else false) | |
1644 | 1644 | then _validateStringEqual(lpAssetIdStr, _assetToStr(i.payments[0].assetId), "withdraw: invalid payment asset") | |
1645 | 1645 | else false) | |
1646 | 1646 | then _validateInt(i.payments[0].amount, 1, MAX_INT, "withdraw: invalid payment amount") | |
1647 | 1647 | else false) | |
1648 | 1648 | then _validateListContains(assets, assetId_, "withdraw: invalid assetId") | |
1649 | 1649 | else false) | |
1650 | 1650 | then _validateInt(minAmount_, 0, MAX_INT, "withdraw: invalid minAmount") | |
1651 | 1651 | else false | |
1652 | 1652 | if ((err == err)) | |
1653 | 1653 | then { | |
1654 | - | let $ | |
1655 | - | let targetAmountNormalized = $ | |
1656 | - | let finalAssetBalances = $ | |
1657 | - | let lpFee = $ | |
1658 | - | let protocolFee = $ | |
1659 | - | let sigmaFeePerLpUpdated = $ | |
1654 | + | let $t04978749921 = _withdraw(assetId_, i.payments[0].amount) | |
1655 | + | let targetAmountNormalized = $t04978749921._1 | |
1656 | + | let finalAssetBalances = $t04978749921._2 | |
1657 | + | let lpFee = $t04978749921._3 | |
1658 | + | let protocolFee = $t04978749921._4 | |
1659 | + | let sigmaFeePerLpUpdated = $t04978749921._5 | |
1660 | 1660 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1661 | 1661 | let targetDecimals = _getDecimals(assetId_) | |
1662 | 1662 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1663 | 1663 | let err1 = _validateInt(finalAmount, minAmount_, MAX_INT, "withdraw: less than min") | |
1664 | 1664 | if ((err1 == err1)) | |
1665 | 1665 | then { | |
1666 | 1666 | let storageUpdated = $Tuple10(storage._1, storage._2, (storage._3 - i.payments[0].amount), storage._4, storage._5, storage._6, storage._7, storage._8, storage._9, storage._10) | |
1667 | 1667 | $Tuple2(((((([Burn(lpAssetId, i.payments[0].amount), ScriptTransfer(i.caller, finalAmount, _strToAsset(assetId_))] ++ _saveStorage(storageUpdated)) ++ _saveAssetBalances(finalAssetBalances)) ++ _saveLpFee(assetId_, (lpFee + _loadLpFee(assetId_)))) ++ _saveProtocolFee(assetId_, (protocolFee + _loadProtocolFee(assetId_)))) ++ _saveSigmaFeePerLp(sigmaFeePerLpUpdated)), unit) | |
1668 | 1668 | } | |
1669 | 1669 | else throw("Strict value is not equal to itself.") | |
1670 | 1670 | } | |
1671 | 1671 | else throw("Strict value is not equal to itself.") | |
1672 | 1672 | } | |
1673 | 1673 | ||
1674 | 1674 | ||
1675 | 1675 | ||
1676 | 1676 | @Callable(i) | |
1677 | 1677 | func swap (targetAssetId_,minAmount_) = { | |
1678 | 1678 | let storage = _loadStorage() | |
1679 | 1679 | let lpAssetId = storage._1 | |
1680 | 1680 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1681 | 1681 | let assets = _loadAssets() | |
1682 | 1682 | let sourceAssetStr = _assetToStr(i.payments[0].assetId) | |
1683 | 1683 | let sourceAmountNormalized = _normalizeDecimals(i.payments[0].amount, _getDecimals(sourceAssetStr), lpDecimals, DOWN) | |
1684 | 1684 | let sourceAssetIndex = valueOrErrorMessage(indexOf(assets, sourceAssetStr), "swap: invalid source asset") | |
1685 | 1685 | if ((sourceAssetIndex == sourceAssetIndex)) | |
1686 | 1686 | then { | |
1687 | 1687 | let targetAssetIndex = valueOrErrorMessage(indexOf(assets, targetAssetId_), "swap: invalid target asset") | |
1688 | 1688 | if ((targetAssetIndex == targetAssetIndex)) | |
1689 | 1689 | then { | |
1690 | 1690 | let err = if (if (if (if (if (if (_whenInitialized()) | |
1691 | 1691 | then _whenNotPaused() | |
1692 | 1692 | else false) | |
1693 | 1693 | then _checkWatchdog() | |
1694 | 1694 | else false) | |
1695 | 1695 | then _validateInt(minAmount_, 0, MAX_INT, "swap: invalid min target amount") | |
1696 | 1696 | else false) | |
1697 | 1697 | then _validateInt(sourceAmountNormalized, 1, MAX_INT, "swap: invalid source amount") | |
1698 | 1698 | else false) | |
1699 | 1699 | then _validateStringNotEq(sourceAssetStr, targetAssetId_, "swap: same assets") | |
1700 | 1700 | else false) | |
1701 | 1701 | then _validateIntEquals(size(i.payments), 1, "swap: invalid payments size") | |
1702 | 1702 | else false | |
1703 | 1703 | if ((err == err)) | |
1704 | 1704 | then { | |
1705 | - | let $ | |
1706 | - | let targetAmountNormalized = $ | |
1707 | - | let finalAssetBalances = $ | |
1708 | - | let lpFee = $ | |
1709 | - | let protocolFee = $ | |
1710 | - | let sigmaFeePerLpUpdated = $ | |
1705 | + | let $t05203452192 = _swap(sourceAssetIndex, targetAssetIndex, sourceAmountNormalized) | |
1706 | + | let targetAmountNormalized = $t05203452192._1 | |
1707 | + | let finalAssetBalances = $t05203452192._2 | |
1708 | + | let lpFee = $t05203452192._3 | |
1709 | + | let protocolFee = $t05203452192._4 | |
1710 | + | let sigmaFeePerLpUpdated = $t05203452192._5 | |
1711 | 1711 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1712 | 1712 | let targetDecimals = _getDecimals(targetAssetId_) | |
1713 | 1713 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1714 | 1714 | let err1 = _validateInt(finalAmount, minAmount_, MAX_INT, "swap: less than min") | |
1715 | 1715 | if ((err1 == err1)) | |
1716 | 1716 | then $Tuple2((((([ScriptTransfer(i.caller, finalAmount, _strToAsset(targetAssetId_))] ++ _saveAssetBalances(finalAssetBalances)) ++ _saveLpFee(targetAssetId_, (lpFee + _loadLpFee(targetAssetId_)))) ++ _saveProtocolFee(targetAssetId_, (protocolFee + _loadProtocolFee(targetAssetId_)))) ++ _saveSigmaFeePerLp(sigmaFeePerLpUpdated)), unit) | |
1717 | 1717 | else throw("Strict value is not equal to itself.") | |
1718 | 1718 | } | |
1719 | 1719 | else throw("Strict value is not equal to itself.") | |
1720 | 1720 | } | |
1721 | 1721 | else throw("Strict value is not equal to itself.") | |
1722 | 1722 | } | |
1723 | 1723 | else throw("Strict value is not equal to itself.") | |
1724 | 1724 | } | |
1725 | 1725 | ||
1726 | 1726 | ||
1727 | 1727 | ||
1728 | 1728 | @Callable(i) | |
1729 | 1729 | func getDepositAll (lpAmount_) = { | |
1730 | 1730 | let err = _validateInt(lpAmount_, 1, MAX_INT, "getDepositAll: invalid amount") | |
1731 | 1731 | if ((err == err)) | |
1732 | 1732 | then { | |
1733 | - | let $ | |
1734 | - | let lpTokensToMint = $ | |
1735 | - | let requiredAmountsNormalized = $ | |
1736 | - | let assetBalances = $ | |
1733 | + | let $t05331253399 = _depositAll(lpAmount_) | |
1734 | + | let lpTokensToMint = $t05331253399._1 | |
1735 | + | let requiredAmountsNormalized = $t05331253399._2 | |
1736 | + | let assetBalances = $t05331253399._3 | |
1737 | 1737 | $Tuple2(nil, $Tuple2(lpTokensToMint, requiredAmountsNormalized)) | |
1738 | 1738 | } | |
1739 | 1739 | else throw("Strict value is not equal to itself.") | |
1740 | 1740 | } | |
1741 | 1741 | ||
1742 | 1742 | ||
1743 | 1743 | ||
1744 | 1744 | @Callable(i) | |
1745 | 1745 | func getDeposit (assetId_,amount_) = { | |
1746 | 1746 | let err = if (_validateListContains(_loadAssets(), assetId_, "getDeposit: invalid asset")) | |
1747 | 1747 | then _validateInt(amount_, 1, MAX_INT, "getDeposit: invalid amount") | |
1748 | 1748 | else false | |
1749 | 1749 | if ((err == err)) | |
1750 | 1750 | then { | |
1751 | 1751 | let storage = _loadStorage() | |
1752 | 1752 | let lpAssetId = storage._1 | |
1753 | 1753 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1754 | 1754 | let assetDecimals = _getDecimals(assetId_) | |
1755 | 1755 | let amountNormalized = _normalizeDecimals(amount_, assetDecimals, lpDecimals, DOWN) | |
1756 | - | let $ | |
1757 | - | let lpTokensToMint = $ | |
1758 | - | let assetBalances = $ | |
1759 | - | let lpFee = $ | |
1760 | - | let protocolFee = $ | |
1761 | - | let sigmaFeePerLpUpdated = $ | |
1756 | + | let $t05415854274 = _deposit(assetId_, amountNormalized) | |
1757 | + | let lpTokensToMint = $t05415854274._1 | |
1758 | + | let assetBalances = $t05415854274._2 | |
1759 | + | let lpFee = $t05415854274._3 | |
1760 | + | let protocolFee = $t05415854274._4 | |
1761 | + | let sigmaFeePerLpUpdated = $t05415854274._5 | |
1762 | 1762 | let lpTokensToSend = ((lpTokensToMint - lpFee) - protocolFee) | |
1763 | 1763 | $Tuple2(nil, lpTokensToSend) | |
1764 | 1764 | } | |
1765 | 1765 | else throw("Strict value is not equal to itself.") | |
1766 | 1766 | } | |
1767 | 1767 | ||
1768 | 1768 | ||
1769 | 1769 | ||
1770 | 1770 | @Callable(i) | |
1771 | 1771 | func getWithdrawAll (lpAmount_) = { | |
1772 | 1772 | let err = _validateInt(lpAmount_, 0, MAX_INT, "getWithdrawAll: invalid amount") | |
1773 | 1773 | if ((err == err)) | |
1774 | 1774 | then { | |
1775 | - | let $ | |
1776 | - | let lpTokensToBurn = $ | |
1777 | - | let balancesToGet = $ | |
1778 | - | let assetBalances = $ | |
1775 | + | let $t05471354789 = _withdrawAll(lpAmount_) | |
1776 | + | let lpTokensToBurn = $t05471354789._1 | |
1777 | + | let balancesToGet = $t05471354789._2 | |
1778 | + | let assetBalances = $t05471354789._3 | |
1779 | 1779 | $Tuple2(nil, balancesToGet) | |
1780 | 1780 | } | |
1781 | 1781 | else throw("Strict value is not equal to itself.") | |
1782 | 1782 | } | |
1783 | 1783 | ||
1784 | 1784 | ||
1785 | 1785 | ||
1786 | 1786 | @Callable(i) | |
1787 | 1787 | func getWithdraw (assetId_,amount_) = { | |
1788 | 1788 | let err = if (_validateListContains(_loadAssets(), assetId_, "getWithdraw: invalid asset")) | |
1789 | 1789 | then _validateInt(amount_, 1, MAX_INT, "getWithdraw: invalid amount") | |
1790 | 1790 | else false | |
1791 | 1791 | if ((err == err)) | |
1792 | 1792 | then { | |
1793 | 1793 | let storage = _loadStorage() | |
1794 | 1794 | let lpAssetId = storage._1 | |
1795 | 1795 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1796 | - | let $ | |
1797 | - | let targetAmountNormalized = $ | |
1798 | - | let assetBalances = $ | |
1799 | - | let lpFee = $ | |
1800 | - | let protocolFee = $ | |
1801 | - | let sigmaFeePerLpUpdated = $ | |
1796 | + | let $t05544055556 = _withdraw(assetId_, amount_) | |
1797 | + | let targetAmountNormalized = $t05544055556._1 | |
1798 | + | let assetBalances = $t05544055556._2 | |
1799 | + | let lpFee = $t05544055556._3 | |
1800 | + | let protocolFee = $t05544055556._4 | |
1801 | + | let sigmaFeePerLpUpdated = $t05544055556._5 | |
1802 | 1802 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1803 | 1803 | let targetDecimals = _getDecimals(assetId_) | |
1804 | 1804 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1805 | 1805 | $Tuple2(nil, finalAmount) | |
1806 | 1806 | } | |
1807 | 1807 | else throw("Strict value is not equal to itself.") | |
1808 | 1808 | } | |
1809 | 1809 | ||
1810 | 1810 | ||
1811 | 1811 | ||
1812 | 1812 | @Callable(i) | |
1813 | 1813 | func getSwap (sourceAssetId_,targetAssetId_,sourceAmount_) = { | |
1814 | 1814 | let storage = _loadStorage() | |
1815 | 1815 | let lpAssetId = storage._1 | |
1816 | 1816 | let lpDecimals = _getDecimals(toBase58String(lpAssetId)) | |
1817 | 1817 | let assets = _loadAssets() | |
1818 | 1818 | let sourceAssetIndex = valueOrErrorMessage(indexOf(assets, sourceAssetId_), "swap: invalid source asset") | |
1819 | 1819 | if ((sourceAssetIndex == sourceAssetIndex)) | |
1820 | 1820 | then { | |
1821 | 1821 | let targetAssetIndex = valueOrErrorMessage(indexOf(assets, targetAssetId_), "swap: invalid target asset") | |
1822 | 1822 | if ((targetAssetIndex == targetAssetIndex)) | |
1823 | 1823 | then { | |
1824 | 1824 | let sourceAmountNormalized = _normalizeDecimals(sourceAmount_, _getDecimals(sourceAssetId_), lpDecimals, DOWN) | |
1825 | 1825 | let err = if (_validateInt(sourceAmountNormalized, 1, MAX_INT, "swap: invalid source amount")) | |
1826 | 1826 | then _validateStringNotEq(sourceAssetId_, targetAssetId_, "swap: same assets") | |
1827 | 1827 | else false | |
1828 | 1828 | if ((err == err)) | |
1829 | 1829 | then { | |
1830 | - | let $ | |
1831 | - | let targetAmountNormalized = $ | |
1832 | - | let finalAssetBalances = $ | |
1833 | - | let lpFee = $ | |
1834 | - | let protocolFee = $ | |
1835 | - | let sigmaFeePerLpUpdated = $ | |
1830 | + | let $t05696657124 = _swap(sourceAssetIndex, targetAssetIndex, sourceAmountNormalized) | |
1831 | + | let targetAmountNormalized = $t05696657124._1 | |
1832 | + | let finalAssetBalances = $t05696657124._2 | |
1833 | + | let lpFee = $t05696657124._3 | |
1834 | + | let protocolFee = $t05696657124._4 | |
1835 | + | let sigmaFeePerLpUpdated = $t05696657124._5 | |
1836 | 1836 | let finalAmountNormalized = ((targetAmountNormalized - lpFee) - protocolFee) | |
1837 | 1837 | let targetDecimals = _getDecimals(targetAssetId_) | |
1838 | 1838 | let finalAmount = _normalizeDecimals(finalAmountNormalized, lpDecimals, targetDecimals, DOWN) | |
1839 | 1839 | $Tuple2(nil, finalAmount) | |
1840 | 1840 | } | |
1841 | 1841 | else throw("Strict value is not equal to itself.") | |
1842 | 1842 | } | |
1843 | 1843 | else throw("Strict value is not equal to itself.") | |
1844 | 1844 | } | |
1845 | 1845 | else throw("Strict value is not equal to itself.") | |
1846 | 1846 | } | |
1847 | 1847 | ||
1848 | 1848 | ||
1849 | 1849 | ||
1850 | 1850 | @Callable(i) | |
1851 | 1851 | func getClaim (user_) = { | |
1852 | 1852 | let user = if ((size(user_) > 0)) | |
1853 | 1853 | then valueOrErrorMessage(addressFromString(user_), "getClaim: invalid user") | |
1854 | 1854 | else i.caller | |
1855 | - | let $ | |
1856 | - | let checkpointActions = $ | |
1857 | - | let userProfits = $ | |
1855 | + | let $t05776657822 = _checkpoint(user) | |
1856 | + | let checkpointActions = $t05776657822._1 | |
1857 | + | let userProfits = $t05776657822._2 | |
1858 | 1858 | $Tuple2(nil, userProfits) | |
1859 | 1859 | } | |
1860 | 1860 | ||
1861 | 1861 | ||
1862 | 1862 | ||
1863 | 1863 | @Callable(i) | |
1864 | 1864 | func getUtilFunc () = { | |
1865 | 1865 | let storage = _loadStorage() | |
1866 | 1866 | let lpTotalSupply = storage._3 | |
1867 | 1867 | let weightAmplifier = storage._7 | |
1868 | 1868 | let slippageRate = storage._8 | |
1869 | 1869 | let feeMaxRate = storage._9 | |
1870 | - | let $ | |
1871 | - | let assetBalances = $ | |
1872 | - | let assetTotalSupply = $ | |
1873 | - | let $ | |
1874 | - | let assetWeights = $ | |
1875 | - | let sigmaWeight = $ | |
1870 | + | let $t05815558215 = _loadAssetBalances() | |
1871 | + | let assetBalances = $t05815558215._1 | |
1872 | + | let assetTotalSupply = $t05815558215._2 | |
1873 | + | let $t05822058273 = _loadAssetWeights() | |
1874 | + | let assetWeights = $t05822058273._1 | |
1875 | + | let sigmaWeight = $t05822058273._2 | |
1876 | 1876 | let fee = _calculateFee(assetBalances, assetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1877 | 1877 | let utilValue = (assetTotalSupply - fee) | |
1878 | 1878 | $Tuple2(nil, $Tuple2(utilValue, lpTotalSupply)) | |
1879 | 1879 | } | |
1880 | 1880 | ||
1881 | 1881 | ||
1882 | 1882 | ||
1883 | 1883 | @Callable(i) | |
1884 | 1884 | func getFeeFunc () = { | |
1885 | 1885 | let storage = _loadStorage() | |
1886 | 1886 | let weightAmplifier = storage._7 | |
1887 | 1887 | let slippageRate = storage._8 | |
1888 | 1888 | let feeMaxRate = storage._9 | |
1889 | - | let $ | |
1890 | - | let assetBalances = $ | |
1891 | - | let assetTotalSupply = $ | |
1892 | - | let $ | |
1893 | - | let assetWeights = $ | |
1894 | - | let sigmaWeight = $ | |
1889 | + | let $t05870558765 = _loadAssetBalances() | |
1890 | + | let assetBalances = $t05870558765._1 | |
1891 | + | let assetTotalSupply = $t05870558765._2 | |
1892 | + | let $t05877058823 = _loadAssetWeights() | |
1893 | + | let assetWeights = $t05877058823._1 | |
1894 | + | let sigmaWeight = $t05877058823._2 | |
1895 | 1895 | let fee = _calculateFee(assetBalances, assetTotalSupply, assetWeights, sigmaWeight, weightAmplifier, slippageRate, feeMaxRate) | |
1896 | 1896 | $Tuple2(nil, fee) | |
1897 | 1897 | } | |
1898 | 1898 | ||
1899 | 1899 | ||
1900 | 1900 | ||
1901 | 1901 | @Callable(i) | |
1902 | 1902 | func checkpoint (user_) = { | |
1903 | 1903 | let err = if (_whenInitialized()) | |
1904 | 1904 | then _whenNotPaused() | |
1905 | 1905 | else false | |
1906 | 1906 | if ((err == err)) | |
1907 | 1907 | then { | |
1908 | 1908 | let user = if ((size(user_) > 0)) | |
1909 | 1909 | then valueOrErrorMessage(addressFromString(user_), "checkpoint: invalid user") | |
1910 | 1910 | else i.caller | |
1911 | 1911 | _checkpoint(user) | |
1912 | 1912 | } | |
1913 | 1913 | else throw("Strict value is not equal to itself.") | |
1914 | 1914 | } | |
1915 | 1915 | ||
1916 | 1916 | ||
1917 | 1917 | ||
1918 | 1918 | @Callable(i) | |
1919 | 1919 | func stake () = { | |
1920 | 1920 | let err = if (_whenInitialized()) | |
1921 | 1921 | then _whenNotPaused() | |
1922 | 1922 | else false | |
1923 | 1923 | if ((err == err)) | |
1924 | 1924 | then { | |
1925 | 1925 | let storage = _loadStorage() | |
1926 | 1926 | let lpAssetIdStr = _assetToStr(storage._1) | |
1927 | 1927 | let err1 = if (if (_validateIntEquals(size(i.payments), 1, "stake: invalid payments size")) | |
1928 | 1928 | then _validateStringEqual(lpAssetIdStr, _assetToStr(i.payments[0].assetId), "stake: invalid payment asset") | |
1929 | 1929 | else false) | |
1930 | 1930 | then _validateInt(i.payments[0].amount, 0, MAX_INT, "stake: invalid payment amount") | |
1931 | 1931 | else false | |
1932 | 1932 | if ((err1 == err1)) | |
1933 | 1933 | then { | |
1934 | - | let $ | |
1935 | - | let checkpointActions = $ | |
1936 | - | let userProfits = $ | |
1934 | + | let $t05983159891 = _checkpoint(i.caller) | |
1935 | + | let checkpointActions = $t05983159891._1 | |
1936 | + | let userProfits = $t05983159891._2 | |
1937 | 1937 | $Tuple2(((checkpointActions ++ _saveUserLp(i.caller, (_loadUserLp(i.caller) + i.payments[0].amount))) ++ _saveTotalLp((_loadTotalLp() + i.payments[0].amount))), unit) | |
1938 | 1938 | } | |
1939 | 1939 | else throw("Strict value is not equal to itself.") | |
1940 | 1940 | } | |
1941 | 1941 | else throw("Strict value is not equal to itself.") | |
1942 | 1942 | } | |
1943 | 1943 | ||
1944 | 1944 | ||
1945 | 1945 | ||
1946 | 1946 | @Callable(i) | |
1947 | 1947 | func unstake (amount_) = { | |
1948 | 1948 | let err = if (_whenInitialized()) | |
1949 | 1949 | then _whenNotPaused() | |
1950 | 1950 | else false | |
1951 | 1951 | if ((err == err)) | |
1952 | 1952 | then { | |
1953 | 1953 | let storage = _loadStorage() | |
1954 | 1954 | let lpAssetId = storage._1 | |
1955 | 1955 | let userLp = _loadUserLp(i.caller) | |
1956 | 1956 | let err1 = _validateInt(amount_, 0, userLp, "unstake: invalid amount") | |
1957 | 1957 | if ((err1 == err1)) | |
1958 | 1958 | then { | |
1959 | - | let $ | |
1960 | - | let checkpointActions = $ | |
1961 | - | let userProfits = $ | |
1959 | + | let $t06040260462 = _checkpoint(i.caller) | |
1960 | + | let checkpointActions = $t06040260462._1 | |
1961 | + | let userProfits = $t06040260462._2 | |
1962 | 1962 | $Tuple2(((([ScriptTransfer(i.caller, amount_, lpAssetId)] ++ checkpointActions) ++ _saveUserLp(i.caller, (userLp - amount_))) ++ _saveTotalLp((_loadTotalLp() - amount_))), unit) | |
1963 | 1963 | } | |
1964 | 1964 | else throw("Strict value is not equal to itself.") | |
1965 | 1965 | } | |
1966 | 1966 | else throw("Strict value is not equal to itself.") | |
1967 | 1967 | } | |
1968 | 1968 | ||
1969 | 1969 | ||
1970 | 1970 | ||
1971 | 1971 | @Callable(i) | |
1972 | 1972 | func claim (user_) = { | |
1973 | 1973 | let err = if (_whenInitialized()) | |
1974 | 1974 | then _whenNotPaused() | |
1975 | 1975 | else false | |
1976 | 1976 | if ((err == err)) | |
1977 | 1977 | then { | |
1978 | 1978 | let user = if ((size(user_) > 0)) | |
1979 | 1979 | then valueOrErrorMessage(addressFromString(user_), "claim: invalid user") | |
1980 | 1980 | else i.caller | |
1981 | 1981 | let storage = _loadStorage() | |
1982 | 1982 | let lpAssetId = storage._1 | |
1983 | 1983 | let lpAssetIdStr = _assetToStr(lpAssetId) | |
1984 | 1984 | let assets = [lpAssetIdStr, _loadAssets()] | |
1985 | 1985 | let maxIndex = (size(assets) - 1) | |
1986 | 1986 | let userLp = _loadUserLp(user) | |
1987 | - | let $ | |
1988 | - | let checkpointActions = $ | |
1989 | - | let userProfits = $ | |
1987 | + | let $t06118561241 = _checkpoint(user) | |
1988 | + | let checkpointActions = $t06118561241._1 | |
1989 | + | let userProfits = $t06118561241._2 | |
1990 | 1990 | func foldFunc (acc,profit) = { | |
1991 | 1991 | let index = acc._1 | |
1992 | 1992 | if (if ((maxIndex >= index)) | |
1993 | 1993 | then (profit > 0) | |
1994 | 1994 | else false) | |
1995 | 1995 | then { | |
1996 | 1996 | let asset = assets[index] | |
1997 | 1997 | $Tuple3((index + 1), (acc._2 :+ 0), (acc._3 :+ ScriptTransfer(user, profit, _strToAsset(asset)))) | |
1998 | 1998 | } | |
1999 | 1999 | else $Tuple3((index + 1), (acc._2 :+ profit), acc._3) | |
2000 | 2000 | } | |
2001 | 2001 | ||
2002 | - | let $ | |
2002 | + | let $t06161961710 = { | |
2003 | 2003 | let $l = userProfits | |
2004 | 2004 | let $s = size($l) | |
2005 | 2005 | let $acc0 = $Tuple3(0, nil, nil) | |
2006 | 2006 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
2007 | 2007 | then $a | |
2008 | 2008 | else foldFunc($a, $l[$i]) | |
2009 | 2009 | ||
2010 | 2010 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
2011 | 2011 | then $a | |
2012 | 2012 | else throw("List size exceeds 11") | |
2013 | 2013 | ||
2014 | 2014 | $f0_2($f0_1($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), 11) | |
2015 | 2015 | } | |
2016 | - | let idx = $ | |
2017 | - | let userProfitsUpdated = $ | |
2018 | - | let profitActions = $ | |
2016 | + | let idx = $t06161961710._1 | |
2017 | + | let userProfitsUpdated = $t06161961710._2 | |
2018 | + | let profitActions = $t06161961710._3 | |
2019 | 2019 | $Tuple2(((profitActions ++ removeByIndex(checkpointActions, 0)) ++ _saveUserProfits(user, userProfitsUpdated)), unit) | |
2020 | 2020 | } | |
2021 | 2021 | else throw("Strict value is not equal to itself.") | |
2022 | 2022 | } | |
2023 | 2023 | ||
2024 | 2024 | ||
2025 | 2025 | ||
2026 | 2026 | @Callable(i) | |
2027 | 2027 | func pause () = { | |
2028 | 2028 | let err = if (if (_onlyPauser(i.caller)) | |
2029 | 2029 | then _whenInitialized() | |
2030 | 2030 | else false) | |
2031 | 2031 | then _whenNotPaused() | |
2032 | 2032 | else false | |
2033 | 2033 | if ((err == err)) | |
2034 | 2034 | then $Tuple2(_savePause(true), unit) | |
2035 | 2035 | else throw("Strict value is not equal to itself.") | |
2036 | 2036 | } | |
2037 | 2037 | ||
2038 | 2038 | ||
2039 | 2039 | ||
2040 | 2040 | @Callable(i) | |
2041 | 2041 | func unpause () = { | |
2042 | 2042 | let err = if (if (_onlyThisContract(i.caller)) | |
2043 | 2043 | then _whenInitialized() | |
2044 | 2044 | else false) | |
2045 | 2045 | then _whenPaused() | |
2046 | 2046 | else false | |
2047 | 2047 | if ((err == err)) | |
2048 | 2048 | then $Tuple2(_savePause(false), unit) | |
2049 | 2049 | else throw("Strict value is not equal to itself.") | |
2050 | 2050 | } | |
2051 | 2051 | ||
2052 | 2052 | ||
2053 | 2053 | ||
2054 | 2054 | @Callable(i) | |
2055 | 2055 | func updatePauser (pauser_) = { | |
2056 | 2056 | let err = if (if (_onlyThisContract(i.caller)) | |
2057 | 2057 | then _whenInitialized() | |
2058 | 2058 | else false) | |
2059 | 2059 | then _validateAddress(pauser_, "updatePauser: invalid pauser") | |
2060 | 2060 | else false | |
2061 | 2061 | if ((err == err)) | |
2062 | 2062 | then $Tuple2(_savePauser(addressFromStringValue(pauser_)), unit) | |
2063 | 2063 | else throw("Strict value is not equal to itself.") | |
2064 | 2064 | } | |
2065 | 2065 | ||
2066 | 2066 | ||
2067 | 2067 | ||
2068 | 2068 | @Callable(i) | |
2069 | 2069 | func updateWatchdog (watchdog_,offset_) = { | |
2070 | 2070 | let err = if (if (if (_onlyThisContract(i.caller)) | |
2071 | 2071 | then _whenInitialized() | |
2072 | 2072 | else false) | |
2073 | 2073 | then _validateAddress(watchdog_, "updateWatchdog: invalid watchdog") | |
2074 | 2074 | else false) | |
2075 | 2075 | then _validateInt(offset_, 0, MAX_INT, "updateWatchdog: invalid offset") | |
2076 | 2076 | else false | |
2077 | 2077 | if ((err == err)) | |
2078 | 2078 | then $Tuple2((_saveWatchdog(addressFromStringValue(watchdog_)) ++ _saveWatchdogOffset(offset_)), unit) | |
2079 | 2079 | else throw("Strict value is not equal to itself.") | |
2080 | 2080 | } | |
2081 | 2081 | ||
2082 | 2082 | ||
2083 | 2083 | ||
2084 | 2084 | @Callable(i) | |
2085 | 2085 | func setMultisig (multisig_) = { | |
2086 | 2086 | let err = if (_onlyThisContract(i.caller)) | |
2087 | 2087 | then _validateAddress(multisig_, "setMultisig: invalid multisig") | |
2088 | 2088 | else false | |
2089 | 2089 | if ((err == err)) | |
2090 | 2090 | then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit) | |
2091 | 2091 | else throw("Strict value is not equal to itself.") | |
2092 | 2092 | } | |
2093 | 2093 | ||
2094 | 2094 | ||
2095 | 2095 | @Verifier(tx) | |
2096 | 2096 | func verify () = match getString(KEY_MULTISIG) { | |
2097 | 2097 | case multisig: String => | |
2098 | 2098 | valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEP)), false) | |
2099 | 2099 | case _ => | |
2100 | 2100 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
2101 | 2101 | } | |
2102 | 2102 |
github/deemru/w8io/026f985 229.13 ms ◑