tx · 5t4tRB83cdfbUHn6pyHJJYCdmjTAZMaGxGXjxNYaGvWM

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02800000 Waves

2023.08.02 12:30 [2692775] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "5t4tRB83cdfbUHn6pyHJJYCdmjTAZMaGxGXjxNYaGvWM", "fee": 2800000, "feeAssetId": null, "timestamp": 1690968635767, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "3ybHLy3a11VbV2nTdrGHDCcWhRiagMXnDyAGxCfC1hgsdvWFKKFuGmAthaFGHCyZRYL52nycXJgRU7SBLMciBMy9" ], "script": "base64:BgL9LQgCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIIgZTQ0FMRTgiBU1VTFQ4IgZNVUxUMTIiB1NDQUxFMTgiBk1VTFQxOCIOUE9PTFdFSUdIVE1VTFQiDkdXWHZpcnR1YWxQT09MIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRTcHJlYWQiC3dhdmVzU3RyaW5nIhBjb250cmFjdEZpbGVuYW1lIhFkZWNpbWFsc011bHRQcmljZSIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIPUG9vbFB1dERpc2FibGVkIhNQb29sTWF0Y2hlckRpc2FibGVkIgxQb29sU2h1dGRvd24iEmlkeEludGVybmFsQX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iRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAmZCAQJmQwAEAmZEBAJiZwkBAmJ6AAMJAAECBQJiZwIKQnl0ZVZlY3RvcgQCYkcFAmJnBQJiRwMJAAECBQJiZwIEVW5pdAgFAmZCD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJmQglib2R5Qnl0ZXMJAJEDAggFAmZCBnByb29mcwAABQJmRIROJg4=", "height": 2692775, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CBsJMtfca1ASq6C6nftddgzYuZ24BxZbrT6o3Z7jUqpH Next: FsMwn7j7hKG8RYngfkw1ytMpHno4E3TrQRyWHAGniveX Diff:
OldNewDifferences
2020 let defaultSpread = 2000000
2121
2222 let wavesString = "WAVES"
23+
24+let contractFilename = "factory_v2.ride"
2325
2426 let decimalsMultPrice = ((100 * 1000) * 1000)
2527
6769
6870 let validPoolLabels = [poolLabelWxEmission]
6971
72+func wrapErr (msg) = makeString([contractFilename, ": ", msg], "")
73+
74+
75+func throwErr (msg) = throw(wrapErr(msg))
76+
77+
7078 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
7179
7280
109117 func keyVotingEmissionContract () = "%s__votingEmissionContract"
110118
111119
120+func keyUserPoolsContract () = "%s__userPoolsContract"
121+
122+
112123 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
113124
114125
137148
138149
139150 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
140- let $t036583720 = assetsInternal
141- let amountAssetInternal = $t036583720._1
142- let priceAssetInternal = $t036583720._2
151+ let $t038783940 = assetsInternal
152+ let amountAssetInternal = $t038783940._1
153+ let priceAssetInternal = $t038783940._2
143154 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
144155 }
145156
301312 }
302313
303314
304-let permissionDeniedError = throw("Permission denied")
315+let permissionDeniedError = throwErr("Permission denied")
305316
306-let testError = throw("Test error here")
317+let testError = throwErr("Test error here")
307318
308319 func mustThis (i) = if ((i.caller == this))
309320 then true
391402 }
392403
393404
405+func getAssetsDataFromPoolAddress (poolContractAddress) = {
406+ let poolAssets = match getString(keyMappingPoolContractAddressToPoolAssets(poolContractAddress)) {
407+ case s: String =>
408+ split(s, SEP)
409+ case _ =>
410+ throwErr(makeString([poolContractAddress, "pool is not found"], " "))
411+ }
412+ let amountAssetInternal = parseIntValue(poolAssets[1])
413+ let priceAssetInternal = parseIntValue(poolAssets[2])
414+ let amountAssetId = getStringValue(keyMappingsInternal2baseAssetId(amountAssetInternal))
415+ let priceAssetId = getStringValue(keyMappingsInternal2baseAssetId(priceAssetInternal))
416+ let lpAssetId = getStringValue(keyMappingPoolContractToLPAsset(poolContractAddress))
417+ $Tuple5(amountAssetId, priceAssetId, lpAssetId, amountAssetInternal, priceAssetInternal)
418+ }
419+
420+
421+func getPoolCreator (poolContractAddress) = {
422+ let $t01526915406 = getAssetsDataFromPoolAddress(poolContractAddress)
423+ let amountAssetId = $t01526915406._1
424+ let priceAssetId = $t01526915406._2
425+ let lpAssetId = $t01526915406._3
426+ let amountAssetInternal = $t01526915406._4
427+ let priceAssetInternal = $t01526915406._5
428+ let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
429+ let poolCreator = invoke(userPoolsContract, "getPoolCreatorREADONLY", [amountAssetId, priceAssetId], nil)
430+ poolCreator
431+ }
432+
433+
434+func getAddressBalance (addressString,assetIdString) = {
435+ let address = addressFromStringValue(addressString)
436+ if ((assetIdString == "WAVES"))
437+ then wavesBalance(address).regular
438+ else {
439+ let assetId = fromBase58String(assetIdString)
440+ assetBalance(address, assetId)
441+ }
442+ }
443+
444+
445+func isPoolEmpty (poolContractAddress) = {
446+ let $t01598116118 = getAssetsDataFromPoolAddress(poolContractAddress)
447+ let amountAssetId = $t01598116118._1
448+ let priceAssetId = $t01598116118._2
449+ let lpAssetId = $t01598116118._3
450+ let amountAssetInternal = $t01598116118._4
451+ let priceAssetInternal = $t01598116118._5
452+ if ((getAddressBalance(poolContractAddress, amountAssetId) == 0))
453+ then (getAddressBalance(poolContractAddress, priceAssetId) == 0)
454+ else false
455+ }
456+
457+
394458 @Callable(i)
395459 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
396460
398462
399463 @Callable(i)
400464 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
401- let $t01440714711 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
465+ let $t01643316737 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
402466 case r: Int =>
403467 $Tuple2(true, min([100, max([0, r])]))
404468 case _ =>
409473 $Tuple2(false, 0)
410474 }
411475 }
412- let isLeasable = $t01440714711._1
413- let leasedRatio = $t01440714711._2
476+ let isLeasable = $t01643316737._1
477+ let leasedRatio = $t01643316737._2
414478 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
415479 case b: Int =>
416480 max([0, b])
422486 0
423487 }
424488 }
425- let $t01497715201 = if ((assetId == "WAVES"))
489+ let $t01700317227 = if ((assetId == "WAVES"))
426490 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
427491 else $Tuple3("", "", 0)
428- let proxyAddress = $t01497715201._1
429- let proxyAssetId = $t01497715201._2
430- let proxyRateMul = $t01497715201._3
492+ let proxyAddress = $t01700317227._1
493+ let proxyAssetId = $t01700317227._2
494+ let proxyRateMul = $t01700317227._3
431495 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
432496 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
433497 }
541605 let checkCaller = mustAdmin(i)
542606 if ((checkCaller == checkCaller))
543607 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
544- then throw((("Pool address " + poolAddress) + " already registered."))
608+ then throwErr((("Pool address " + poolAddress) + " already registered."))
545609 else {
546610 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
547611 let internalAmountAssetId = internalAmountAssetData._1
553617 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
554618 let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
555619 if (poolExists)
556- then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
620+ then throwErr((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
557621 else {
558622 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
559623 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
568632 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
569633 if ((poolActivateInvokeResult == poolActivateInvokeResult))
570634 then if ((poolActivateInvokeResult != "success"))
571- then throw("Pool initialisation error happened.")
635+ then throwErr("Pool initialisation error happened.")
572636 else {
573637 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
574638 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
653717 let inAmountAssetId = toBase58String(value(payment.assetId))
654718 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
655719 if ((inAmountAssetId != lpAssetRequestedForBurning))
656- then throw("Invalid asset passed.")
720+ then throwErr("Invalid asset passed.")
657721 else if ((amountToBurn != paymentAmount))
658- then throw("Invalid amount passed.")
722+ then throwErr("Invalid amount passed.")
659723 else {
660724 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
661725 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
719783 let btcWeightNew = (btcWeight - weightDecrement)
720784 let ethWeightNew = (ethWeight - weightDecrement)
721785 if ((0 >= btcWeightNew))
722- then throw(("invalid btcWeightNew: " + toString(btcWeightNew)))
786+ then throwErr(("invalid btcWeightNew: " + toString(btcWeightNew)))
723787 else if ((0 >= ethWeightNew))
724- then throw(("invalid ethWeightNew: " + toString(ethWeightNew)))
788+ then throwErr(("invalid ethWeightNew: " + toString(ethWeightNew)))
725789 else {
726790 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
727791 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
798862 let priceAssets = getPriceAssets()
799863 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
800864 then true
801- else throw("invalid price assets")
865+ else throwErr("invalid price assets")
802866 if ((checkPriceAssetsSize == checkPriceAssetsSize))
803867 then {
804868 func cb (acc,priceAsset) = {
9601024 }
9611025
9621026
1027+
1028+@Callable(i)
1029+func deletePool (poolContractAddress) = {
1030+ let poolConfig = getPoolConfig(poolContractAddress)
1031+ let checkCaller = if ((toString(i.caller) == getPoolCreator(poolContractAddress)))
1032+ then if (isPoolEmpty(poolContractAddress))
1033+ then true
1034+ else throwErr("Pool is not empty")
1035+ else mustManager(i)
1036+ if ((checkCaller == checkCaller))
1037+ then {
1038+ let checkWeight = if ((valueOrElse(getInteger(keyPoolToWeight(poolContractAddress)), 0) == 0))
1039+ then true
1040+ else throwErr("Pool weight is not Zero")
1041+ if ((checkWeight == checkWeight))
1042+ then {
1043+ let checkStatus = if ((poolConfig[idxPoolStatus] == toString(PoolShutdown)))
1044+ then true
1045+ else throwErr("Pool must be SHUTDOWN (4)")
1046+ if ((checkStatus == checkStatus))
1047+ then {
1048+ let $t03961739754 = getAssetsDataFromPoolAddress(poolContractAddress)
1049+ let amountAssetId = $t03961739754._1
1050+ let priceAssetId = $t03961739754._2
1051+ let lpAssetId = $t03961739754._3
1052+ let amountAssetInternal = $t03961739754._4
1053+ let priceAssetInternal = $t03961739754._5
1054+ let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
1055+ let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
1056+ if ((userPoolsInvoke == userPoolsInvoke))
1057+ then {
1058+ let votingEmissionContract = addressFromStringValue(getStringValue(keyVotingEmissionContract()))
1059+ let votingEmissionInvoke = invoke(votingEmissionContract, "deletePool", [amountAssetId, priceAssetId], nil)
1060+ if ((votingEmissionInvoke == votingEmissionInvoke))
1061+ then {
1062+ let assetsStoreContract = addressFromStringValue(getStringValue(keyAssetsStoreContract()))
1063+ let assetsStoreInvoke = invoke(assetsStoreContract, "deletePool", [amountAssetId, priceAssetId], nil)
1064+ if ((assetsStoreInvoke == assetsStoreInvoke))
1065+ then [DeleteEntry(keyMappingPoolContractToLPAsset(poolContractAddress)), DeleteEntry(keyMappingPoolContractAddressToPoolAssets(poolContractAddress)), DeleteEntry(keyMappingPoolAssetsToLpasset(toString(amountAssetInternal), toString(priceAssetInternal))), DeleteEntry(keyMappingPoolAssetsToPoolContractAddress(amountAssetInternal, priceAssetInternal)), DeleteEntry(keyPoolConfig(toString(amountAssetInternal), toString(priceAssetInternal))), DeleteEntry(keyMappingLpAssetToPoolAssets(lpAssetId)), DeleteEntry(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId)), DeleteEntry(keyWxEmission(amountAssetId, priceAssetId)), DeleteEntry(keyPoolToWeight(poolContractAddress)), DeleteEntry(keyPoolSpread(poolContractAddress)), DeleteEntry(keyInFee(poolContractAddress)), DeleteEntry(keyOutFee(poolContractAddress)), DeleteEntry(keySkipOrderValidation(poolContractAddress)), DeleteEntry(keyChangeAmpDelay(poolContractAddress)), DeleteEntry(keyChangeAmpDelta(poolContractAddress)), DeleteEntry(keyChangeAmpTarget(poolContractAddress))]
1066+ else throw("Strict value is not equal to itself.")
1067+ }
1068+ else throw("Strict value is not equal to itself.")
1069+ }
1070+ else throw("Strict value is not equal to itself.")
1071+ }
1072+ else throw("Strict value is not equal to itself.")
1073+ }
1074+ else throw("Strict value is not equal to itself.")
1075+ }
1076+ else throw("Strict value is not equal to itself.")
1077+ }
1078+
1079+
9631080 @Verifier(tx)
9641081 func verify () = {
9651082 let targetPublicKey = match managerPublicKeyOrUnit() {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 8
55
66 let MULT8 = 100000000
77
88 let MULT12 = 1000000000000
99
1010 let SCALE18 = 18
1111
1212 let MULT18 = toBigInt(1000000000000000000)
1313
1414 let POOLWEIGHTMULT = MULT8
1515
1616 let GWXvirtualPOOL = "GWXvirtualPOOL"
1717
1818 let labelPoolsLp = "POOLS_LP"
1919
2020 let defaultSpread = 2000000
2121
2222 let wavesString = "WAVES"
23+
24+let contractFilename = "factory_v2.ride"
2325
2426 let decimalsMultPrice = ((100 * 1000) * 1000)
2527
2628 let SEP = "__"
2729
2830 let EMPTY = ""
2931
3032 let PoolActive = 1
3133
3234 let PoolPutDisabled = 2
3335
3436 let PoolMatcherDisabled = 3
3537
3638 let PoolShutdown = 4
3739
3840 let idxInternalAssetId = 1
3941
4042 let idxResutActions = 2
4143
4244 let idxIfAssetIdCalculationPerformed = 3
4345
4446 let idxPoolAddress = 1
4547
4648 let idxPoolStatus = 2
4749
4850 let idxPoolLPAssetId = 3
4951
5052 let idxAmtAssetId = 4
5153
5254 let idxPriceAssetId = 5
5355
5456 let idxAmtAssetDcm = 6
5557
5658 let idxPriceAssetDcm = 7
5759
5860 let idxIAmtAssetId = 8
5961
6062 let idxIPriceAssetId = 9
6163
6264 let idxLPAssetDcm = 10
6365
6466 let idxPoolType = 11
6567
6668 let poolLabelWxEmission = "WX_EMISSION"
6769
6870 let validPoolLabels = [poolLabelWxEmission]
6971
72+func wrapErr (msg) = makeString([contractFilename, ": ", msg], "")
73+
74+
75+func throwErr (msg) = throw(wrapErr(msg))
76+
77+
7078 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
7179
7280
7381 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
7482
7583
7684 func swapContract () = "%s__swapContract"
7785
7886
7987 func keyFactoryConfig () = "%s__factoryConfig"
8088
8189
8290 func keyLpTokensList () = "%s__lpTokensList"
8391
8492
8593 func keyPoolScriptHash () = "%s%s__pool__scriptHash"
8694
8795
8896 func keyMatcherPub () = "%s%s__matcher__publicKey"
8997
9098
9199 func keyLegacyFactoryContract () = "%s__legacyFactoryContract"
92100
93101
94102 func keyLegacyPools () = "%s__legacyPools"
95103
96104
97105 func keyManagerPublicKey () = "%s__managerPublicKey"
98106
99107
100108 func keyManagerVaultAddress () = "%s__managerVaultAddress"
101109
102110
103111 func keyAdminPubKeys () = "%s__adminPubKeys"
104112
105113
106114 func keyAssetsStoreContract () = "%s__assetsStoreContract"
107115
108116
109117 func keyVotingEmissionContract () = "%s__votingEmissionContract"
110118
111119
120+func keyUserPoolsContract () = "%s__userPoolsContract"
121+
122+
112123 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
113124
114125
115126 func keyPriceDecimals () = "%s__priceDecimals"
116127
117128
118129 func keyAllPoolsShutdown () = "%s__shutdown"
119130
120131
121132 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
122133
123134
124135 func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
125136
126137
127138 func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
128139
129140
130141 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
131142
132143
133144 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
134145
135146
136147 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
137148
138149
139150 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
140- let $t036583720 = assetsInternal
141- let amountAssetInternal = $t036583720._1
142- let priceAssetInternal = $t036583720._2
151+ let $t038783940 = assetsInternal
152+ let amountAssetInternal = $t038783940._1
153+ let priceAssetInternal = $t038783940._2
143154 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
144155 }
145156
146157
147158 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
148159
149160
150161 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
151162
152163
153164 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
154165
155166
156167 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
157168
158169
159170 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
160171
161172
162173 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
163174
164175
165176 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
166177
167178
168179 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
169180
170181
171182 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
172183
173184
174185 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
175186
176187
177188 func keyInFeeDefault () = "%s__inFeeDefault"
178189
179190
180191 func keySwapFee (poolAddress) = ("%s%s__swapFee__" + poolAddress)
181192
182193
183194 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
184195
185196
186197 func keyOutFeeDefault () = "%s__outFeeDefault"
187198
188199
189200 func keySkipOrderValidation (poolAddress) = ("%s%s__skipOrderValidation__" + poolAddress)
190201
191202
192203 func keyChangeAmpDelay (poolAddress) = ("%s%s__changeAmpDelay__" + poolAddress)
193204
194205
195206 func keyChangeAmpDelta (poolAddress) = ("%s%s__changeAmpDelta__" + poolAddress)
196207
197208
198209 func keyChangeAmpTarget (poolAddress) = ("%s%s__changeAmpTarget__" + poolAddress)
199210
200211
201212 func keySWavesProxyAddress () = "%s__sWavesProxyAddress"
202213
203214
204215 func keySWavesAssetId () = "%s__sWavesAssetId"
205216
206217
207218 func keyStakingProfitAddress () = "%s__stakingProfitAddress"
208219
209220
210221 func keyLeasedRatio (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatio", poolAddress, assetId], SEP)
211222
212223
213224 func keyLeasedRatioDefault (assetId) = makeString(["%s%s", "leasedRatioDefault", assetId], SEP)
214225
215226
216227 func keyLeasedRatioTolerance (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatioTolerance", poolAddress, assetId], SEP)
217228
218229
219230 func keyMinBalance (poolAddress,assetId) = makeString(["%s%s%s", "minBalance", poolAddress, assetId], SEP)
220231
221232
222233 func keyMinBalanceDefault (assetId) = makeString(["%s%s", "minBalanceDefault", assetId], SEP)
223234
224235
225236 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
226237
227238
228239 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
229240
230241
231242 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
232243
233244
234245 func parseAssetId (input) = if ((input == wavesString))
235246 then unit
236247 else fromBase58String(input)
237248
238249
239250 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
240251 case s: String =>
241252 addressFromStringValue(s)
242253 case _ =>
243254 this
244255 }
245256
246257
247258 let IdxFactoryCfgStakingDapp = 1
248259
249260 let IdxFactoryCfgBoostingDapp = 2
250261
251262 let IdxFactoryCfgIdoDapp = 3
252263
253264 let IdxFactoryCfgTeamDapp = 4
254265
255266 let IdxFactoryCfgEmissionDapp = 5
256267
257268 let IdxFactoryCfgRestDapp = 6
258269
259270 let IdxFactoryCfgSlippageDapp = 7
260271
261272 let IdxFactoryCfgDaoDapp = 8
262273
263274 let IdxFactoryCfgMarketingDapp = 9
264275
265276 let IdxFactoryCfgGwxRewardDapp = 10
266277
267278 let IdxFactoryCfgBirdsDapp = 11
268279
269280 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
270281
271282
272283 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
273284
274285
275286 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
276287
277288
278289 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
279290
280291
281292 func getPriceAssets () = match getString(keyPriceAssets()) {
282293 case s: String =>
283294 if ((size(s) == 0))
284295 then nil
285296 else split_4C(s, SEP)
286297 case _ =>
287298 nil
288299 }
289300
290301
291302 func managerPublicKeyOrUnit () = {
292303 let managerVaultAddress = getManagerVaultAddressOrThis()
293304 match getString(managerVaultAddress, keyManagerPublicKey()) {
294305 case s: String =>
295306 fromBase58String(s)
296307 case _: Unit =>
297308 unit
298309 case _ =>
299310 throw("Match error")
300311 }
301312 }
302313
303314
304-let permissionDeniedError = throw("Permission denied")
315+let permissionDeniedError = throwErr("Permission denied")
305316
306-let testError = throw("Test error here")
317+let testError = throwErr("Test error here")
307318
308319 func mustThis (i) = if ((i.caller == this))
309320 then true
310321 else permissionDeniedError
311322
312323
313324 func mustManager (i) = match managerPublicKeyOrUnit() {
314325 case pk: ByteVector =>
315326 if ((i.callerPublicKey == pk))
316327 then true
317328 else permissionDeniedError
318329 case _: Unit =>
319330 mustThis(i)
320331 case _ =>
321332 throw("Match error")
322333 }
323334
324335
325336 func dataFactoryCfgV3 (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract,daoContract,marketingContract,gwxRewardsContract,birdsContract) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract, daoContract, marketingContract, gwxRewardsContract, birdsContract], SEP)
326337
327338
328339 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
329340
330341
331342 func dataPoolCfg (poolAddress,poolStatus,lpAssetId,amountAssetStr,priceAssetStr,amountAssetDecimals,priceAssetDecimals,amountAssetInternalId,priceAssetInternalId,lpAssetDecimals,poolType) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", poolAddress, poolStatus, lpAssetId, amountAssetStr, priceAssetStr, toString(amountAssetDecimals), toString(priceAssetDecimals), toString(amountAssetInternalId), toString(priceAssetInternalId), toString(lpAssetDecimals), poolType], SEP)
332343
333344
334345 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
335346
336347
337348 func getPoolConfig (poolAddress) = {
338349 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
339350 let amountAssetInternal = poolAssets[1]
340351 let priceAssetInternal = poolAssets[2]
341352 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
342353 }
343354
344355
345356 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
346357 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
347358 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
348359 let result = if ((internalAssetId == 0))
349360 then {
350361 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
351362 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
352363 }
353364 else $Tuple3(internalAssetId, nil, false)
354365 result
355366 }
356367
357368
358369 func mustAdmin (i) = {
359370 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
360371 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
361372 then true
362373 else {
363374 let isManager = mustManager(i)
364375 if ((isManager == isManager))
365376 then true
366377 else throw("Strict value is not equal to itself.")
367378 }
368379 }
369380
370381
371382 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
372383
373384
374385 func poolExistsInternal (amountAssetId,priceAssetId) = {
375386 let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
376387 let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
377388 if (if ((amountAssetInternal == unit))
378389 then true
379390 else (priceAssetInternal == unit))
380391 then false
381392 else {
382393 let amAs = toString(value(amountAssetInternal))
383394 let prAs = toString(value(priceAssetInternal))
384395 let cfg = getString(keyPoolConfig(amAs, prAs))
385396 let cfgReverse = getString(keyPoolConfig(prAs, amAs))
386397 let exists = if ((cfg != unit))
387398 then true
388399 else (cfgReverse != unit)
389400 exists
390401 }
391402 }
392403
393404
405+func getAssetsDataFromPoolAddress (poolContractAddress) = {
406+ let poolAssets = match getString(keyMappingPoolContractAddressToPoolAssets(poolContractAddress)) {
407+ case s: String =>
408+ split(s, SEP)
409+ case _ =>
410+ throwErr(makeString([poolContractAddress, "pool is not found"], " "))
411+ }
412+ let amountAssetInternal = parseIntValue(poolAssets[1])
413+ let priceAssetInternal = parseIntValue(poolAssets[2])
414+ let amountAssetId = getStringValue(keyMappingsInternal2baseAssetId(amountAssetInternal))
415+ let priceAssetId = getStringValue(keyMappingsInternal2baseAssetId(priceAssetInternal))
416+ let lpAssetId = getStringValue(keyMappingPoolContractToLPAsset(poolContractAddress))
417+ $Tuple5(amountAssetId, priceAssetId, lpAssetId, amountAssetInternal, priceAssetInternal)
418+ }
419+
420+
421+func getPoolCreator (poolContractAddress) = {
422+ let $t01526915406 = getAssetsDataFromPoolAddress(poolContractAddress)
423+ let amountAssetId = $t01526915406._1
424+ let priceAssetId = $t01526915406._2
425+ let lpAssetId = $t01526915406._3
426+ let amountAssetInternal = $t01526915406._4
427+ let priceAssetInternal = $t01526915406._5
428+ let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
429+ let poolCreator = invoke(userPoolsContract, "getPoolCreatorREADONLY", [amountAssetId, priceAssetId], nil)
430+ poolCreator
431+ }
432+
433+
434+func getAddressBalance (addressString,assetIdString) = {
435+ let address = addressFromStringValue(addressString)
436+ if ((assetIdString == "WAVES"))
437+ then wavesBalance(address).regular
438+ else {
439+ let assetId = fromBase58String(assetIdString)
440+ assetBalance(address, assetId)
441+ }
442+ }
443+
444+
445+func isPoolEmpty (poolContractAddress) = {
446+ let $t01598116118 = getAssetsDataFromPoolAddress(poolContractAddress)
447+ let amountAssetId = $t01598116118._1
448+ let priceAssetId = $t01598116118._2
449+ let lpAssetId = $t01598116118._3
450+ let amountAssetInternal = $t01598116118._4
451+ let priceAssetInternal = $t01598116118._5
452+ if ((getAddressBalance(poolContractAddress, amountAssetId) == 0))
453+ then (getAddressBalance(poolContractAddress, priceAssetId) == 0)
454+ else false
455+ }
456+
457+
394458 @Callable(i)
395459 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
396460
397461
398462
399463 @Callable(i)
400464 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
401- let $t01440714711 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
465+ let $t01643316737 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
402466 case r: Int =>
403467 $Tuple2(true, min([100, max([0, r])]))
404468 case _ =>
405469 match getInteger(this, keyLeasedRatioDefault(assetId)) {
406470 case rd: Int =>
407471 $Tuple2(true, min([100, max([0, rd])]))
408472 case _ =>
409473 $Tuple2(false, 0)
410474 }
411475 }
412- let isLeasable = $t01440714711._1
413- let leasedRatio = $t01440714711._2
476+ let isLeasable = $t01643316737._1
477+ let leasedRatio = $t01643316737._2
414478 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
415479 case b: Int =>
416480 max([0, b])
417481 case _ =>
418482 match getInteger(this, keyMinBalanceDefault(assetId)) {
419483 case bd: Int =>
420484 max([0, bd])
421485 case _ =>
422486 0
423487 }
424488 }
425- let $t01497715201 = if ((assetId == "WAVES"))
489+ let $t01700317227 = if ((assetId == "WAVES"))
426490 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
427491 else $Tuple3("", "", 0)
428- let proxyAddress = $t01497715201._1
429- let proxyAssetId = $t01497715201._2
430- let proxyRateMul = $t01497715201._3
492+ let proxyAddress = $t01700317227._1
493+ let proxyAssetId = $t01700317227._2
494+ let proxyRateMul = $t01700317227._3
431495 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
432496 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
433497 }
434498
435499
436500
437501 @Callable(i)
438502 func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
439503 then (asset2 == "WAVES")
440504 else false)
441505 then $Tuple2(nil, unit)
442506 else {
443507 let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
444508 let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
445509 let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
446510 let res = if ((ee == unit))
447511 then unit
448512 else drop(value(ee), 4)
449513 $Tuple2(nil, res)
450514 }
451515
452516
453517
454518 @Callable(i)
455519 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
456520
457521
458522
459523 @Callable(i)
460524 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
461525 let checkCaller = mustManager(i)
462526 if ((checkCaller == checkCaller))
463527 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
464528 else throw("Strict value is not equal to itself.")
465529 }
466530
467531
468532
469533 @Callable(i)
470534 func constructorV2 (mathcherPub58Str) = {
471535 let checkCaller = mustManager(i)
472536 if ((checkCaller == checkCaller))
473537 then {
474538 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
475539 if ((mathcerPub == mathcerPub))
476540 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
477541 else throw("Strict value is not equal to itself.")
478542 }
479543 else throw("Strict value is not equal to itself.")
480544 }
481545
482546
483547
484548 @Callable(i)
485549 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
486550 let checkCaller = mustManager(i)
487551 if ((checkCaller == checkCaller))
488552 then {
489553 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
490554 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
491555 }
492556 else throw("Strict value is not equal to itself.")
493557 }
494558
495559
496560
497561 @Callable(i)
498562 func constructorV4 (legacyFactoryContract,legacyPools) = {
499563 let checkCaller = mustManager(i)
500564 if ((checkCaller == checkCaller))
501565 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
502566 else throw("Strict value is not equal to itself.")
503567 }
504568
505569
506570
507571 @Callable(i)
508572 func constructorV5 (assetsStoreContract) = {
509573 let checkCaller = mustManager(i)
510574 if ((checkCaller == checkCaller))
511575 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
512576 else throw("Strict value is not equal to itself.")
513577 }
514578
515579
516580
517581 @Callable(i)
518582 func constructorV6 (votingEmissionContract,priceAssets) = {
519583 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
520584 then true
521585 else "invalid voting emission contract address"]
522586 if ((cheks == cheks))
523587 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
524588 else throw("Strict value is not equal to itself.")
525589 }
526590
527591
528592
529593 @Callable(i)
530594 func setAdmins (adminPubKeys) = {
531595 let checkCaller = mustManager(i)
532596 if ((checkCaller == checkCaller))
533597 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
534598 else throw("Strict value is not equal to itself.")
535599 }
536600
537601
538602
539603 @Callable(i)
540604 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
541605 let checkCaller = mustAdmin(i)
542606 if ((checkCaller == checkCaller))
543607 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
544- then throw((("Pool address " + poolAddress) + " already registered."))
608+ then throwErr((("Pool address " + poolAddress) + " already registered."))
545609 else {
546610 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
547611 let internalAmountAssetId = internalAmountAssetData._1
548612 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
549613 then 2
550614 else 1)
551615 let internalPriceAssetId = internalPriceAssetData._1
552616 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
553617 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
554618 let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
555619 if (poolExists)
556- then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
620+ then throwErr((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
557621 else {
558622 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
559623 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
560624 then decimalsMultPrice
561625 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
562626 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
563627 then decimalsMultPrice
564628 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
565629 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
566630 let lpAssetId = calculateAssetId(lpAssetIssueAction)
567631 let lpAssetIdStr = toBase58String(lpAssetId)
568632 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
569633 if ((poolActivateInvokeResult == poolActivateInvokeResult))
570634 then if ((poolActivateInvokeResult != "success"))
571- then throw("Pool initialisation error happened.")
635+ then throwErr("Pool initialisation error happened.")
572636 else {
573637 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
574638 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
575639 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
576640 then {
577641 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
578642 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
579643 then {
580644 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
581645 if ((setLogoInv == setLogoInv))
582646 then {
583647 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
584648 if ((addAssetsLinkInv == addAssetsLinkInv))
585649 then {
586650 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
587651 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
588652 then $Tuple2(((internalAmountAssetData._2 ++ internalPriceAssetData._2) ++ [lpAssetIssueAction, Burn(lpAssetId, 1), StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(PoolActive), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, decimalsMultPrice, poolType)), StringEntry(keyMappingLpAssetToPoolAssets(lpAssetIdStr), dataMappingPoolAssets(internalAmountAssetId, internalPriceAssetId)), StringEntry(keyMappingPoolAssetsToLpasset(toString(internalAmountAssetId), toString(internalPriceAssetId)), ("%s__" + lpAssetIdStr)), StringEntry(keyMappingPoolContractAddressToPoolAssets(poolAddress), dataMappingPoolAssets(internalAmountAssetId, internalPriceAssetId)), StringEntry(keyMappingPoolAssetsToPoolContractAddress(internalAmountAssetId, internalPriceAssetId), poolAddress), StringEntry(keyMappingPoolLPAssetToPoolContractAddress(lpAssetIdStr), poolAddress), StringEntry(keyMappingPoolContractToLPAsset(poolAddress), lpAssetIdStr), IntegerEntry(keyPoolToWeight(poolAddress), poolWeight), IntegerEntry(keyPoolSpread(poolAddress), defaultSpread)]), lpAssetIdStr)
589653 else throw("Strict value is not equal to itself.")
590654 }
591655 else throw("Strict value is not equal to itself.")
592656 }
593657 else throw("Strict value is not equal to itself.")
594658 }
595659 else throw("Strict value is not equal to itself.")
596660 }
597661 else throw("Strict value is not equal to itself.")
598662 }
599663 else throw("Strict value is not equal to itself.")
600664 }
601665 }
602666 else throw("Strict value is not equal to itself.")
603667 }
604668
605669
606670
607671 @Callable(i)
608672 func managePool (poolAddress,newStatus) = {
609673 let checkCaller = mustManager(i)
610674 if ((checkCaller == checkCaller))
611675 then {
612676 let poolConfig = getPoolConfig(poolAddress)
613677 let poolStatus = poolConfig[idxPoolStatus]
614678 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
615679 let amountAssetStr = poolConfig[idxAmtAssetId]
616680 let priceAssetStr = poolConfig[idxPriceAssetId]
617681 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
618682 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
619683 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
620684 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
621685 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
622686 let poolType = poolConfig[idxPoolType]
623687 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
624688 }
625689 else throw("Strict value is not equal to itself.")
626690 }
627691
628692
629693
630694 @Callable(i)
631695 func emit (amountToEmit) = {
632696 let caller = i.caller
633697 let originCaller = i.originCaller
634698 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
635699 let lpAsset = fromBase58String(lpAssetRequested)
636700 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
637701 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
638702 if ((0 >= amountToEmit))
639703 then nil
640704 else if (containsElement(legacyPools, toString(caller)))
641705 then $Tuple2(nil, legacyFactoryContract)
642706 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
643707 }
644708
645709
646710
647711 @Callable(i)
648712 func burn (amountToBurn) = {
649713 let caller = i.caller
650714 let originCaller = i.originCaller
651715 let payment = value(i.payments[0])
652716 let paymentAmount = value(payment.amount)
653717 let inAmountAssetId = toBase58String(value(payment.assetId))
654718 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
655719 if ((inAmountAssetId != lpAssetRequestedForBurning))
656- then throw("Invalid asset passed.")
720+ then throwErr("Invalid asset passed.")
657721 else if ((amountToBurn != paymentAmount))
658- then throw("Invalid amount passed.")
722+ then throwErr("Invalid amount passed.")
659723 else {
660724 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
661725 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
662726 }
663727 }
664728
665729
666730
667731 @Callable(i)
668732 func modifyWeight (lpAssetId,share) = {
669733 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
670734 then true
671735 else mustManager(i)
672736 if ((checkCaller == checkCaller))
673737 then {
674738 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
675739 let poolWeightKey = keyPoolToWeight(poolContractAddress)
676740 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
677741 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
678742 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
679743 let poolWeightNew = share
680744 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
681745 let stakingContract = getStakingAddressOrFail(factoryCfg)
682746 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
683747 if ((onModifyWeightInv == onModifyWeightInv))
684748 then {
685749 let gwxVirtualPoolActions = if ((gwxWeight == 0))
686750 then nil
687751 else [IntegerEntry(gwxWeightKey, 0)]
688752 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
689753 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
690754 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
691755 then nil
692756 else [DeleteEntry(poolWeightHistoryKey)]
693757 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
694758 }
695759 else throw("Strict value is not equal to itself.")
696760 }
697761 else throw("Strict value is not equal to itself.")
698762 }
699763
700764
701765
702766 @Callable(i)
703767 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
704768 let checkCaller = mustManager(i)
705769 if ((checkCaller == checkCaller))
706770 then {
707771 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
708772 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
709773 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
710774 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
711775 let stakingDapp = getStakingAddressOrFail(factoryCfg)
712776 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
713777 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
714778 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
715779 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
716780 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
717781 let btcWeight = getIntOrFail(btcWeightKEY)
718782 let ethWeight = getIntOrFail(ethWeightKEY)
719783 let btcWeightNew = (btcWeight - weightDecrement)
720784 let ethWeightNew = (ethWeight - weightDecrement)
721785 if ((0 >= btcWeightNew))
722- then throw(("invalid btcWeightNew: " + toString(btcWeightNew)))
786+ then throwErr(("invalid btcWeightNew: " + toString(btcWeightNew)))
723787 else if ((0 >= ethWeightNew))
724- then throw(("invalid ethWeightNew: " + toString(ethWeightNew)))
788+ then throwErr(("invalid ethWeightNew: " + toString(ethWeightNew)))
725789 else {
726790 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
727791 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
728792 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
729793 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
730794 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
731795 if ((onModifyWeightBtc == onModifyWeightBtc))
732796 then {
733797 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
734798 if ((onModifyWeightEth == onModifyWeightEth))
735799 then {
736800 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
737801 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
738802 then {
739803 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
740804 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
741805 then [IntegerEntry(btcWeightKEY, btcWeightNew), IntegerEntry(ethWeightKEY, ethWeightNew), IntegerEntry(ethBtcWeightKEY, ethBtcWeightNew), IntegerEntry(usdcUsdtWeightKEY, usdcUsdtWeightNew), IntegerEntry(keyPoolToWeightHistory(btcPoolAddress, 0), btcWeight), IntegerEntry(keyPoolToWeightHistory(ethPoolAddress, 0), ethWeight), IntegerEntry(keyPoolToWeightHistory(ethBtcPoolAddress, 0), ethBtcWeightNew), IntegerEntry(keyPoolToWeightHistory(usdcUsdtPoolAddress, 0), usdcUsdtWeightNew)]
742806 else throw("Strict value is not equal to itself.")
743807 }
744808 else throw("Strict value is not equal to itself.")
745809 }
746810 else throw("Strict value is not equal to itself.")
747811 }
748812 else throw("Strict value is not equal to itself.")
749813 }
750814 }
751815 else throw("Strict value is not equal to itself.")
752816 }
753817
754818
755819
756820 @Callable(i)
757821 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
758822 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
759823 case b: Boolean =>
760824 b
761825 case _ =>
762826 false
763827 }
764828 $Tuple2(nil, haveLabel)
765829 }
766830
767831
768832
769833 @Callable(i)
770834 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
771835 let checkCaller = mustAdmin(i)
772836 if ((checkCaller == checkCaller))
773837 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
774838 else throw("Strict value is not equal to itself.")
775839 }
776840
777841
778842
779843 @Callable(i)
780844 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
781845 let checkCaller = if ((i.caller == this))
782846 then true
783847 else mustAdmin(i)
784848 if ((checkCaller == checkCaller))
785849 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
786850 else throw("Strict value is not equal to itself.")
787851 }
788852
789853
790854
791855 @Callable(i)
792856 func onVerificationLoss (assetId) = {
793857 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
794858 then true
795859 else mustManager(i)
796860 if ((checkCaller == checkCaller))
797861 then {
798862 let priceAssets = getPriceAssets()
799863 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
800864 then true
801- else throw("invalid price assets")
865+ else throwErr("invalid price assets")
802866 if ((checkPriceAssetsSize == checkPriceAssetsSize))
803867 then {
804868 func cb (acc,priceAsset) = {
805869 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
806870 if ((r == r))
807871 then unit
808872 else throw("Strict value is not equal to itself.")
809873 }
810874
811875 let actions = {
812876 let $l = priceAssets
813877 let $s = size($l)
814878 let $acc0 = unit
815879 func $f0_1 ($a,$i) = if (($i >= $s))
816880 then $a
817881 else cb($a, $l[$i])
818882
819883 func $f0_2 ($a,$i) = if (($i >= $s))
820884 then $a
821885 else throw("List size exceeds 13")
822886
823887 $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13)
824888 }
825889 if ((actions == actions))
826890 then $Tuple2(nil, unit)
827891 else throw("Strict value is not equal to itself.")
828892 }
829893 else throw("Strict value is not equal to itself.")
830894 }
831895 else throw("Strict value is not equal to itself.")
832896 }
833897
834898
835899
836900 @Callable(i)
837901 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
838902 let poolConfig = getPoolConfig(poolAddress)
839903 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
840904 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
841905 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
842906 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
843907 then true
844908 else poolOneTokenOperationsDisabled)
845909 }
846910
847911
848912
849913 @Callable(i)
850914 func getInFeeREADONLY (poolAddress) = {
851915 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
852916 $Tuple2(nil, fee)
853917 }
854918
855919
856920
857921 @Callable(i)
858922 func getOutFeeREADONLY (poolAddress) = {
859923 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
860924 $Tuple2(nil, fee)
861925 }
862926
863927
864928
865929 @Callable(i)
866930 func getSwapFeeREADONLY (poolAddressStr) = {
867931 let feeOption = match getString(this, keySwapFee(poolAddressStr)) {
868932 case s: String =>
869933 let parts = split(s, SEP)
870934 let poolFee = parseIntValue(parts[1])
871935 let protocolFee = parseIntValue(parts[2])
872936 $Tuple2(poolFee, protocolFee)
873937 case _: Unit =>
874938 unit
875939 case _ =>
876940 throw("Match error")
877941 }
878942 $Tuple2(nil, feeOption)
879943 }
880944
881945
882946
883947 @Callable(i)
884948 func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
885949 let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
886950 let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
887951 let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
888952 let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
889953 let poolExists = if (if (isDefined(amountAssetInternalIdOption))
890954 then isDefined(priceAssetInternalIdOption)
891955 else false)
892956 then isDefined(poolContractAddressOption)
893957 else false
894958 let poolInfo = if (poolExists)
895959 then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
896960 else unit
897961 $Tuple2(nil, poolInfo)
898962 }
899963
900964
901965
902966 @Callable(i)
903967 func getPoolStatusREADONLY (poolAddress) = {
904968 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
905969 let amountAssetInternal = poolAssets[1]
906970 let priceAssetInternal = poolAssets[2]
907971 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
908972 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
909973 }
910974
911975
912976
913977 @Callable(i)
914978 func getPoolConfigREADONLY (poolAddress) = {
915979 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
916980 let amountAssetInternal = poolAssets[1]
917981 let priceAssetInternal = poolAssets[2]
918982 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
919983 $Tuple2(nil, cfg)
920984 }
921985
922986
923987
924988 @Callable(i)
925989 func getPoolConfigByLpAssetIdREADONLY (lpAssetIdStr) = {
926990 let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
927991 let amountAssetInternal = poolAssets[1]
928992 let priceAssetInternal = poolAssets[2]
929993 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
930994 $Tuple2(nil, cfg)
931995 }
932996
933997
934998
935999 @Callable(i)
9361000 func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
9371001
9381002
9391003
9401004 @Callable(i)
9411005 func skipOrderValidationREADONLY (poolAddress) = $Tuple2(nil, valueOrElse(getBoolean(keySkipOrderValidation(poolAddress)), false))
9421006
9431007
9441008
9451009 @Callable(i)
9461010 func getChangeAmpConfigREADONLY (poolAddress) = {
9471011 let delay = getIntegerValue(keyChangeAmpDelay(poolAddress))
9481012 let delta = getIntegerValue(keyChangeAmpDelta(poolAddress))
9491013 let target = getIntegerValue(keyChangeAmpTarget(poolAddress))
9501014 $Tuple2(nil, [delay, delta, target])
9511015 }
9521016
9531017
9541018
9551019 @Callable(i)
9561020 func getPoolWeightREADONLY (lpAssetId) = {
9571021 let poolAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
9581022 let weight = valueOrElse(getInteger(keyPoolToWeight(poolAddress)), 0)
9591023 $Tuple2(nil, weight)
9601024 }
9611025
9621026
1027+
1028+@Callable(i)
1029+func deletePool (poolContractAddress) = {
1030+ let poolConfig = getPoolConfig(poolContractAddress)
1031+ let checkCaller = if ((toString(i.caller) == getPoolCreator(poolContractAddress)))
1032+ then if (isPoolEmpty(poolContractAddress))
1033+ then true
1034+ else throwErr("Pool is not empty")
1035+ else mustManager(i)
1036+ if ((checkCaller == checkCaller))
1037+ then {
1038+ let checkWeight = if ((valueOrElse(getInteger(keyPoolToWeight(poolContractAddress)), 0) == 0))
1039+ then true
1040+ else throwErr("Pool weight is not Zero")
1041+ if ((checkWeight == checkWeight))
1042+ then {
1043+ let checkStatus = if ((poolConfig[idxPoolStatus] == toString(PoolShutdown)))
1044+ then true
1045+ else throwErr("Pool must be SHUTDOWN (4)")
1046+ if ((checkStatus == checkStatus))
1047+ then {
1048+ let $t03961739754 = getAssetsDataFromPoolAddress(poolContractAddress)
1049+ let amountAssetId = $t03961739754._1
1050+ let priceAssetId = $t03961739754._2
1051+ let lpAssetId = $t03961739754._3
1052+ let amountAssetInternal = $t03961739754._4
1053+ let priceAssetInternal = $t03961739754._5
1054+ let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
1055+ let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
1056+ if ((userPoolsInvoke == userPoolsInvoke))
1057+ then {
1058+ let votingEmissionContract = addressFromStringValue(getStringValue(keyVotingEmissionContract()))
1059+ let votingEmissionInvoke = invoke(votingEmissionContract, "deletePool", [amountAssetId, priceAssetId], nil)
1060+ if ((votingEmissionInvoke == votingEmissionInvoke))
1061+ then {
1062+ let assetsStoreContract = addressFromStringValue(getStringValue(keyAssetsStoreContract()))
1063+ let assetsStoreInvoke = invoke(assetsStoreContract, "deletePool", [amountAssetId, priceAssetId], nil)
1064+ if ((assetsStoreInvoke == assetsStoreInvoke))
1065+ then [DeleteEntry(keyMappingPoolContractToLPAsset(poolContractAddress)), DeleteEntry(keyMappingPoolContractAddressToPoolAssets(poolContractAddress)), DeleteEntry(keyMappingPoolAssetsToLpasset(toString(amountAssetInternal), toString(priceAssetInternal))), DeleteEntry(keyMappingPoolAssetsToPoolContractAddress(amountAssetInternal, priceAssetInternal)), DeleteEntry(keyPoolConfig(toString(amountAssetInternal), toString(priceAssetInternal))), DeleteEntry(keyMappingLpAssetToPoolAssets(lpAssetId)), DeleteEntry(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId)), DeleteEntry(keyWxEmission(amountAssetId, priceAssetId)), DeleteEntry(keyPoolToWeight(poolContractAddress)), DeleteEntry(keyPoolSpread(poolContractAddress)), DeleteEntry(keyInFee(poolContractAddress)), DeleteEntry(keyOutFee(poolContractAddress)), DeleteEntry(keySkipOrderValidation(poolContractAddress)), DeleteEntry(keyChangeAmpDelay(poolContractAddress)), DeleteEntry(keyChangeAmpDelta(poolContractAddress)), DeleteEntry(keyChangeAmpTarget(poolContractAddress))]
1066+ else throw("Strict value is not equal to itself.")
1067+ }
1068+ else throw("Strict value is not equal to itself.")
1069+ }
1070+ else throw("Strict value is not equal to itself.")
1071+ }
1072+ else throw("Strict value is not equal to itself.")
1073+ }
1074+ else throw("Strict value is not equal to itself.")
1075+ }
1076+ else throw("Strict value is not equal to itself.")
1077+ }
1078+
1079+
9631080 @Verifier(tx)
9641081 func verify () = {
9651082 let targetPublicKey = match managerPublicKeyOrUnit() {
9661083 case pk: ByteVector =>
9671084 pk
9681085 case _: Unit =>
9691086 tx.senderPublicKey
9701087 case _ =>
9711088 throw("Match error")
9721089 }
9731090 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
9741091 }
9751092

github/deemru/w8io/169f3d6 
269.46 ms