tx · 3Zf7THF2Usw3xNwhyvEWz8j8TXSLVyuqSWr359g8LLg5

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02900000 Waves

2023.08.18 11:03 [2715775] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "3Zf7THF2Usw3xNwhyvEWz8j8TXSLVyuqSWr359g8LLg5", "fee": 2900000, "feeAssetId": null, "timestamp": 1692345894315, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "2C5G5WczegJg6qiA1RPDUFPScm6qjjHyg2hEayDfZtJuQakt51knVkgwtK5csvckaRm3L1zERVcGckLNqVuNbFuh" ], "script": "base64:BgLlLggCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgiBlNDQUxFOCIFTVVMVDgiBk1VTFQxMiIHU0NBTEUxOCIGTVVMVDE4Ig5QT09MV0VJR0hUTVVMVCIOR1dYdmlydHVhbFBPT0wiDGxhYmVsUG9vbHNMcCINZGVmYXVsdFNwcmVhZCILd2F2ZXNTdHJpbmciEGNvbnRyYWN0RmlsZW5hbWUiEWRlY2ltYWxzTXVsdFByaWNlIgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIg9Qb29sUHV0RGlzYWJsZWQiE1Bvb2xNYXRjaGVyRGlzYWJsZWQiDFBvb2xTaHV0ZG93biISaWR4SW50ZX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sZXRlRW50cnkBCQECYWUBBQJhRAkAzAgCCQELRGVsZXRlRW50cnkBCQECYUIBBQJhRAkAzAgCCQELRGVsZXRlRW50cnkBCQECYUsBBQJhRAkAzAgCCQELRGVsZXRlRW50cnkBCQECYU4BBQJhRAkAzAgCCQELRGVsZXRlRW50cnkBCQECYVABBQJhRAkAzAgCCQELRGVsZXRlRW50cnkBCQECYVEBBQJhRAkAzAgCCQELRGVsZXRlRW50cnkBCQECYVIBBQJhRAkAzAgCCQELRGVsZXRlRW50cnkBCQECYVMBBQJhRAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJmRwECZkgABAJmSQQCYmoJAQJiQwADCQABAgUCYmoCCkJ5dGVWZWN0b3IEAmJKBQJiagUCYkoDCQABAgUCYmoCBFVuaXQIBQJmRw9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZkcJYm9keUJ5dGVzCQCRAwIIBQJmRwZwcm9vZnMAAAUCZknyrmEI", "height": 2715775, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3nGt3bwf2dGC4w3HPz7dXsP7DfbdMFtFn5ezxYzVhr4h Next: 2UqTRZfzvSRD7545Q6ZoKmvc7sMehGZHXFGB2mS7Qa65 Diff:
OldNewDifferences
156156
157157
158158 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
159+
160+
161+func keyPoolSwapDisabled (assetsInternal) = {
162+ let $t042324294 = assetsInternal
163+ let amountAssetInternal = $t042324294._1
164+ let priceAssetInternal = $t042324294._2
165+ makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "swapDisabled"], SEP)
166+ }
167+
168+
169+func keyAllPoolsSwapDisabled () = makeString(["%s", "swapDisabled"], SEP)
159170
160171
161172 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
419430
420431
421432 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
433+ let $t01558215719 = getAssetsDataFromPoolAddress(poolContractAddress)
434+ let amountAssetId = $t01558215719._1
435+ let priceAssetId = $t01558215719._2
436+ let lpAssetId = $t01558215719._3
437+ let amountAssetInternal = $t01558215719._4
438+ let priceAssetInternal = $t01558215719._5
428439 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
429440 let poolCreator = invoke(userPoolsContract, "getPoolCreatorREADONLY", [amountAssetId, priceAssetId], nil)
430441 poolCreator
443454
444455
445456 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
457+ let $t01629416431 = getAssetsDataFromPoolAddress(poolContractAddress)
458+ let amountAssetId = $t01629416431._1
459+ let priceAssetId = $t01629416431._2
460+ let lpAssetId = $t01629416431._3
461+ let amountAssetInternal = $t01629416431._4
462+ let priceAssetInternal = $t01629416431._5
452463 if ((getAddressBalance(poolContractAddress, amountAssetId) == 0))
453464 then (getAddressBalance(poolContractAddress, priceAssetId) == 0)
454465 else false
462473
463474 @Callable(i)
464475 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
465- let $t01643316737 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
476+ let $t01674617050 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
466477 case r: Int =>
467478 $Tuple2(true, min([100, max([0, r])]))
468479 case _ =>
473484 $Tuple2(false, 0)
474485 }
475486 }
476- let isLeasable = $t01643316737._1
477- let leasedRatio = $t01643316737._2
487+ let isLeasable = $t01674617050._1
488+ let leasedRatio = $t01674617050._2
478489 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
479490 case b: Int =>
480491 max([0, b])
486497 0
487498 }
488499 }
489- let $t01700317227 = if ((assetId == "WAVES"))
500+ let $t01731617540 = if ((assetId == "WAVES"))
490501 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
491502 else $Tuple3("", "", 0)
492- let proxyAddress = $t01700317227._1
493- let proxyAssetId = $t01700317227._2
494- let proxyRateMul = $t01700317227._3
503+ let proxyAddress = $t01731617540._1
504+ let proxyAssetId = $t01731617540._2
505+ let proxyRateMul = $t01731617540._3
495506 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
496507 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
497508 }
911922
912923
913924 @Callable(i)
925+func isPoolSwapDisabledREADONLY (poolAddress) = {
926+ let poolConfig = getPoolConfig(poolAddress)
927+ let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
928+ let poolSwapDisabled = valueOrElse(getBoolean(keyPoolSwapDisabled(assetsInternal)), false)
929+ let allPoolsSwapDisabled = valueOrElse(getBoolean(keyAllPoolsSwapDisabled()), false)
930+ $Tuple2(nil, if (allPoolsSwapDisabled)
931+ then true
932+ else poolSwapDisabled)
933+ }
934+
935+
936+
937+@Callable(i)
914938 func getInFeeREADONLY (poolAddress) = {
915939 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
916940 $Tuple2(nil, fee)
10451069 else throwErr("Pool must be SHUTDOWN (4)")
10461070 if ((checkStatus == checkStatus))
10471071 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
1072+ let $t04039540532 = getAssetsDataFromPoolAddress(poolContractAddress)
1073+ let amountAssetId = $t04039540532._1
1074+ let priceAssetId = $t04039540532._2
1075+ let lpAssetId = $t04039540532._3
1076+ let amountAssetInternal = $t04039540532._4
1077+ let priceAssetInternal = $t04039540532._5
10541078 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
10551079 let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
10561080 if ((userPoolsInvoke == userPoolsInvoke))
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"
2323
2424 let contractFilename = "factory_v2.ride"
2525
2626 let decimalsMultPrice = ((100 * 1000) * 1000)
2727
2828 let SEP = "__"
2929
3030 let EMPTY = ""
3131
3232 let PoolActive = 1
3333
3434 let PoolPutDisabled = 2
3535
3636 let PoolMatcherDisabled = 3
3737
3838 let PoolShutdown = 4
3939
4040 let idxInternalAssetId = 1
4141
4242 let idxResutActions = 2
4343
4444 let idxIfAssetIdCalculationPerformed = 3
4545
4646 let idxPoolAddress = 1
4747
4848 let idxPoolStatus = 2
4949
5050 let idxPoolLPAssetId = 3
5151
5252 let idxAmtAssetId = 4
5353
5454 let idxPriceAssetId = 5
5555
5656 let idxAmtAssetDcm = 6
5757
5858 let idxPriceAssetDcm = 7
5959
6060 let idxIAmtAssetId = 8
6161
6262 let idxIPriceAssetId = 9
6363
6464 let idxLPAssetDcm = 10
6565
6666 let idxPoolType = 11
6767
6868 let poolLabelWxEmission = "WX_EMISSION"
6969
7070 let validPoolLabels = [poolLabelWxEmission]
7171
7272 func wrapErr (msg) = makeString([contractFilename, ": ", msg], "")
7373
7474
7575 func throwErr (msg) = throw(wrapErr(msg))
7676
7777
7878 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
7979
8080
8181 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
8282
8383
8484 func swapContract () = "%s__swapContract"
8585
8686
8787 func keyFactoryConfig () = "%s__factoryConfig"
8888
8989
9090 func keyLpTokensList () = "%s__lpTokensList"
9191
9292
9393 func keyPoolScriptHash () = "%s%s__pool__scriptHash"
9494
9595
9696 func keyMatcherPub () = "%s%s__matcher__publicKey"
9797
9898
9999 func keyLegacyFactoryContract () = "%s__legacyFactoryContract"
100100
101101
102102 func keyLegacyPools () = "%s__legacyPools"
103103
104104
105105 func keyManagerPublicKey () = "%s__managerPublicKey"
106106
107107
108108 func keyManagerVaultAddress () = "%s__managerVaultAddress"
109109
110110
111111 func keyAdminPubKeys () = "%s__adminPubKeys"
112112
113113
114114 func keyAssetsStoreContract () = "%s__assetsStoreContract"
115115
116116
117117 func keyVotingEmissionContract () = "%s__votingEmissionContract"
118118
119119
120120 func keyUserPoolsContract () = "%s__userPoolsContract"
121121
122122
123123 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
124124
125125
126126 func keyPriceDecimals () = "%s__priceDecimals"
127127
128128
129129 func keyAllPoolsShutdown () = "%s__shutdown"
130130
131131
132132 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
133133
134134
135135 func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
136136
137137
138138 func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
139139
140140
141141 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
142142
143143
144144 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
145145
146146
147147 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
148148
149149
150150 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
151151 let $t038783940 = assetsInternal
152152 let amountAssetInternal = $t038783940._1
153153 let priceAssetInternal = $t038783940._2
154154 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
155155 }
156156
157157
158158 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
159+
160+
161+func keyPoolSwapDisabled (assetsInternal) = {
162+ let $t042324294 = assetsInternal
163+ let amountAssetInternal = $t042324294._1
164+ let priceAssetInternal = $t042324294._2
165+ makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "swapDisabled"], SEP)
166+ }
167+
168+
169+func keyAllPoolsSwapDisabled () = makeString(["%s", "swapDisabled"], SEP)
159170
160171
161172 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
162173
163174
164175 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
165176
166177
167178 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
168179
169180
170181 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
171182
172183
173184 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
174185
175186
176187 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
177188
178189
179190 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
180191
181192
182193 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
183194
184195
185196 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
186197
187198
188199 func keyInFeeDefault () = "%s__inFeeDefault"
189200
190201
191202 func keySwapFee (poolAddress) = ("%s%s__swapFee__" + poolAddress)
192203
193204
194205 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
195206
196207
197208 func keyOutFeeDefault () = "%s__outFeeDefault"
198209
199210
200211 func keySkipOrderValidation (poolAddress) = ("%s%s__skipOrderValidation__" + poolAddress)
201212
202213
203214 func keyChangeAmpDelay (poolAddress) = ("%s%s__changeAmpDelay__" + poolAddress)
204215
205216
206217 func keyChangeAmpDelta (poolAddress) = ("%s%s__changeAmpDelta__" + poolAddress)
207218
208219
209220 func keyChangeAmpTarget (poolAddress) = ("%s%s__changeAmpTarget__" + poolAddress)
210221
211222
212223 func keySWavesProxyAddress () = "%s__sWavesProxyAddress"
213224
214225
215226 func keySWavesAssetId () = "%s__sWavesAssetId"
216227
217228
218229 func keyStakingProfitAddress () = "%s__stakingProfitAddress"
219230
220231
221232 func keyLeasedRatio (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatio", poolAddress, assetId], SEP)
222233
223234
224235 func keyLeasedRatioDefault (assetId) = makeString(["%s%s", "leasedRatioDefault", assetId], SEP)
225236
226237
227238 func keyLeasedRatioTolerance (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatioTolerance", poolAddress, assetId], SEP)
228239
229240
230241 func keyMinBalance (poolAddress,assetId) = makeString(["%s%s%s", "minBalance", poolAddress, assetId], SEP)
231242
232243
233244 func keyMinBalanceDefault (assetId) = makeString(["%s%s", "minBalanceDefault", assetId], SEP)
234245
235246
236247 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
237248
238249
239250 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
240251
241252
242253 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
243254
244255
245256 func parseAssetId (input) = if ((input == wavesString))
246257 then unit
247258 else fromBase58String(input)
248259
249260
250261 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
251262 case s: String =>
252263 addressFromStringValue(s)
253264 case _ =>
254265 this
255266 }
256267
257268
258269 let IdxFactoryCfgStakingDapp = 1
259270
260271 let IdxFactoryCfgBoostingDapp = 2
261272
262273 let IdxFactoryCfgIdoDapp = 3
263274
264275 let IdxFactoryCfgTeamDapp = 4
265276
266277 let IdxFactoryCfgEmissionDapp = 5
267278
268279 let IdxFactoryCfgRestDapp = 6
269280
270281 let IdxFactoryCfgSlippageDapp = 7
271282
272283 let IdxFactoryCfgDaoDapp = 8
273284
274285 let IdxFactoryCfgMarketingDapp = 9
275286
276287 let IdxFactoryCfgGwxRewardDapp = 10
277288
278289 let IdxFactoryCfgBirdsDapp = 11
279290
280291 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
281292
282293
283294 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
284295
285296
286297 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
287298
288299
289300 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
290301
291302
292303 func getPriceAssets () = match getString(keyPriceAssets()) {
293304 case s: String =>
294305 if ((size(s) == 0))
295306 then nil
296307 else split_4C(s, SEP)
297308 case _ =>
298309 nil
299310 }
300311
301312
302313 func managerPublicKeyOrUnit () = {
303314 let managerVaultAddress = getManagerVaultAddressOrThis()
304315 match getString(managerVaultAddress, keyManagerPublicKey()) {
305316 case s: String =>
306317 fromBase58String(s)
307318 case _: Unit =>
308319 unit
309320 case _ =>
310321 throw("Match error")
311322 }
312323 }
313324
314325
315326 let permissionDeniedError = throwErr("Permission denied")
316327
317328 let testError = throwErr("Test error here")
318329
319330 func mustThis (i) = if ((i.caller == this))
320331 then true
321332 else permissionDeniedError
322333
323334
324335 func mustManager (i) = match managerPublicKeyOrUnit() {
325336 case pk: ByteVector =>
326337 if ((i.callerPublicKey == pk))
327338 then true
328339 else permissionDeniedError
329340 case _: Unit =>
330341 mustThis(i)
331342 case _ =>
332343 throw("Match error")
333344 }
334345
335346
336347 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)
337348
338349
339350 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
340351
341352
342353 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)
343354
344355
345356 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
346357
347358
348359 func getPoolConfig (poolAddress) = {
349360 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
350361 let amountAssetInternal = poolAssets[1]
351362 let priceAssetInternal = poolAssets[2]
352363 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
353364 }
354365
355366
356367 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
357368 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
358369 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
359370 let result = if ((internalAssetId == 0))
360371 then {
361372 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
362373 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
363374 }
364375 else $Tuple3(internalAssetId, nil, false)
365376 result
366377 }
367378
368379
369380 func mustAdmin (i) = {
370381 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
371382 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
372383 then true
373384 else {
374385 let isManager = mustManager(i)
375386 if ((isManager == isManager))
376387 then true
377388 else throw("Strict value is not equal to itself.")
378389 }
379390 }
380391
381392
382393 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
383394
384395
385396 func poolExistsInternal (amountAssetId,priceAssetId) = {
386397 let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
387398 let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
388399 if (if ((amountAssetInternal == unit))
389400 then true
390401 else (priceAssetInternal == unit))
391402 then false
392403 else {
393404 let amAs = toString(value(amountAssetInternal))
394405 let prAs = toString(value(priceAssetInternal))
395406 let cfg = getString(keyPoolConfig(amAs, prAs))
396407 let cfgReverse = getString(keyPoolConfig(prAs, amAs))
397408 let exists = if ((cfg != unit))
398409 then true
399410 else (cfgReverse != unit)
400411 exists
401412 }
402413 }
403414
404415
405416 func getAssetsDataFromPoolAddress (poolContractAddress) = {
406417 let poolAssets = match getString(keyMappingPoolContractAddressToPoolAssets(poolContractAddress)) {
407418 case s: String =>
408419 split(s, SEP)
409420 case _ =>
410421 throwErr(makeString([poolContractAddress, "pool is not found"], " "))
411422 }
412423 let amountAssetInternal = parseIntValue(poolAssets[1])
413424 let priceAssetInternal = parseIntValue(poolAssets[2])
414425 let amountAssetId = getStringValue(keyMappingsInternal2baseAssetId(amountAssetInternal))
415426 let priceAssetId = getStringValue(keyMappingsInternal2baseAssetId(priceAssetInternal))
416427 let lpAssetId = getStringValue(keyMappingPoolContractToLPAsset(poolContractAddress))
417428 $Tuple5(amountAssetId, priceAssetId, lpAssetId, amountAssetInternal, priceAssetInternal)
418429 }
419430
420431
421432 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
433+ let $t01558215719 = getAssetsDataFromPoolAddress(poolContractAddress)
434+ let amountAssetId = $t01558215719._1
435+ let priceAssetId = $t01558215719._2
436+ let lpAssetId = $t01558215719._3
437+ let amountAssetInternal = $t01558215719._4
438+ let priceAssetInternal = $t01558215719._5
428439 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
429440 let poolCreator = invoke(userPoolsContract, "getPoolCreatorREADONLY", [amountAssetId, priceAssetId], nil)
430441 poolCreator
431442 }
432443
433444
434445 func getAddressBalance (addressString,assetIdString) = {
435446 let address = addressFromStringValue(addressString)
436447 if ((assetIdString == "WAVES"))
437448 then wavesBalance(address).regular
438449 else {
439450 let assetId = fromBase58String(assetIdString)
440451 assetBalance(address, assetId)
441452 }
442453 }
443454
444455
445456 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
457+ let $t01629416431 = getAssetsDataFromPoolAddress(poolContractAddress)
458+ let amountAssetId = $t01629416431._1
459+ let priceAssetId = $t01629416431._2
460+ let lpAssetId = $t01629416431._3
461+ let amountAssetInternal = $t01629416431._4
462+ let priceAssetInternal = $t01629416431._5
452463 if ((getAddressBalance(poolContractAddress, amountAssetId) == 0))
453464 then (getAddressBalance(poolContractAddress, priceAssetId) == 0)
454465 else false
455466 }
456467
457468
458469 @Callable(i)
459470 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
460471
461472
462473
463474 @Callable(i)
464475 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
465- let $t01643316737 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
476+ let $t01674617050 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
466477 case r: Int =>
467478 $Tuple2(true, min([100, max([0, r])]))
468479 case _ =>
469480 match getInteger(this, keyLeasedRatioDefault(assetId)) {
470481 case rd: Int =>
471482 $Tuple2(true, min([100, max([0, rd])]))
472483 case _ =>
473484 $Tuple2(false, 0)
474485 }
475486 }
476- let isLeasable = $t01643316737._1
477- let leasedRatio = $t01643316737._2
487+ let isLeasable = $t01674617050._1
488+ let leasedRatio = $t01674617050._2
478489 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
479490 case b: Int =>
480491 max([0, b])
481492 case _ =>
482493 match getInteger(this, keyMinBalanceDefault(assetId)) {
483494 case bd: Int =>
484495 max([0, bd])
485496 case _ =>
486497 0
487498 }
488499 }
489- let $t01700317227 = if ((assetId == "WAVES"))
500+ let $t01731617540 = if ((assetId == "WAVES"))
490501 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
491502 else $Tuple3("", "", 0)
492- let proxyAddress = $t01700317227._1
493- let proxyAssetId = $t01700317227._2
494- let proxyRateMul = $t01700317227._3
503+ let proxyAddress = $t01731617540._1
504+ let proxyAssetId = $t01731617540._2
505+ let proxyRateMul = $t01731617540._3
495506 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
496507 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
497508 }
498509
499510
500511
501512 @Callable(i)
502513 func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
503514 then (asset2 == "WAVES")
504515 else false)
505516 then $Tuple2(nil, unit)
506517 else {
507518 let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
508519 let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
509520 let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
510521 let res = if ((ee == unit))
511522 then unit
512523 else drop(value(ee), 4)
513524 $Tuple2(nil, res)
514525 }
515526
516527
517528
518529 @Callable(i)
519530 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
520531
521532
522533
523534 @Callable(i)
524535 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
525536 let checkCaller = mustManager(i)
526537 if ((checkCaller == checkCaller))
527538 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
528539 else throw("Strict value is not equal to itself.")
529540 }
530541
531542
532543
533544 @Callable(i)
534545 func constructorV2 (mathcherPub58Str) = {
535546 let checkCaller = mustManager(i)
536547 if ((checkCaller == checkCaller))
537548 then {
538549 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
539550 if ((mathcerPub == mathcerPub))
540551 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
541552 else throw("Strict value is not equal to itself.")
542553 }
543554 else throw("Strict value is not equal to itself.")
544555 }
545556
546557
547558
548559 @Callable(i)
549560 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
550561 let checkCaller = mustManager(i)
551562 if ((checkCaller == checkCaller))
552563 then {
553564 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
554565 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
555566 }
556567 else throw("Strict value is not equal to itself.")
557568 }
558569
559570
560571
561572 @Callable(i)
562573 func constructorV4 (legacyFactoryContract,legacyPools) = {
563574 let checkCaller = mustManager(i)
564575 if ((checkCaller == checkCaller))
565576 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
566577 else throw("Strict value is not equal to itself.")
567578 }
568579
569580
570581
571582 @Callable(i)
572583 func constructorV5 (assetsStoreContract) = {
573584 let checkCaller = mustManager(i)
574585 if ((checkCaller == checkCaller))
575586 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
576587 else throw("Strict value is not equal to itself.")
577588 }
578589
579590
580591
581592 @Callable(i)
582593 func constructorV6 (votingEmissionContract,priceAssets) = {
583594 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
584595 then true
585596 else "invalid voting emission contract address"]
586597 if ((cheks == cheks))
587598 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
588599 else throw("Strict value is not equal to itself.")
589600 }
590601
591602
592603
593604 @Callable(i)
594605 func setAdmins (adminPubKeys) = {
595606 let checkCaller = mustManager(i)
596607 if ((checkCaller == checkCaller))
597608 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
598609 else throw("Strict value is not equal to itself.")
599610 }
600611
601612
602613
603614 @Callable(i)
604615 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
605616 let checkCaller = mustAdmin(i)
606617 if ((checkCaller == checkCaller))
607618 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
608619 then throwErr((("Pool address " + poolAddress) + " already registered."))
609620 else {
610621 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
611622 let internalAmountAssetId = internalAmountAssetData._1
612623 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
613624 then 2
614625 else 1)
615626 let internalPriceAssetId = internalPriceAssetData._1
616627 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
617628 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
618629 let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
619630 if (poolExists)
620631 then throwErr((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
621632 else {
622633 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
623634 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
624635 then decimalsMultPrice
625636 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
626637 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
627638 then decimalsMultPrice
628639 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
629640 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
630641 let lpAssetId = calculateAssetId(lpAssetIssueAction)
631642 let lpAssetIdStr = toBase58String(lpAssetId)
632643 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
633644 if ((poolActivateInvokeResult == poolActivateInvokeResult))
634645 then if ((poolActivateInvokeResult != "success"))
635646 then throwErr("Pool initialisation error happened.")
636647 else {
637648 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
638649 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
639650 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
640651 then {
641652 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
642653 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
643654 then {
644655 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
645656 if ((setLogoInv == setLogoInv))
646657 then {
647658 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
648659 if ((addAssetsLinkInv == addAssetsLinkInv))
649660 then {
650661 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
651662 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
652663 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)
653664 else throw("Strict value is not equal to itself.")
654665 }
655666 else throw("Strict value is not equal to itself.")
656667 }
657668 else throw("Strict value is not equal to itself.")
658669 }
659670 else throw("Strict value is not equal to itself.")
660671 }
661672 else throw("Strict value is not equal to itself.")
662673 }
663674 else throw("Strict value is not equal to itself.")
664675 }
665676 }
666677 else throw("Strict value is not equal to itself.")
667678 }
668679
669680
670681
671682 @Callable(i)
672683 func managePool (poolAddress,newStatus) = {
673684 let checkCaller = mustManager(i)
674685 if ((checkCaller == checkCaller))
675686 then {
676687 let poolConfig = getPoolConfig(poolAddress)
677688 let poolStatus = poolConfig[idxPoolStatus]
678689 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
679690 let amountAssetStr = poolConfig[idxAmtAssetId]
680691 let priceAssetStr = poolConfig[idxPriceAssetId]
681692 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
682693 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
683694 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
684695 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
685696 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
686697 let poolType = poolConfig[idxPoolType]
687698 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
688699 }
689700 else throw("Strict value is not equal to itself.")
690701 }
691702
692703
693704
694705 @Callable(i)
695706 func emit (amountToEmit) = {
696707 let caller = i.caller
697708 let originCaller = i.originCaller
698709 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
699710 let lpAsset = fromBase58String(lpAssetRequested)
700711 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
701712 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
702713 if ((0 >= amountToEmit))
703714 then nil
704715 else if (containsElement(legacyPools, toString(caller)))
705716 then $Tuple2(nil, legacyFactoryContract)
706717 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
707718 }
708719
709720
710721
711722 @Callable(i)
712723 func burn (amountToBurn) = {
713724 let caller = i.caller
714725 let originCaller = i.originCaller
715726 let payment = value(i.payments[0])
716727 let paymentAmount = value(payment.amount)
717728 let inAmountAssetId = toBase58String(value(payment.assetId))
718729 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
719730 if ((inAmountAssetId != lpAssetRequestedForBurning))
720731 then throwErr("Invalid asset passed.")
721732 else if ((amountToBurn != paymentAmount))
722733 then throwErr("Invalid amount passed.")
723734 else {
724735 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
725736 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
726737 }
727738 }
728739
729740
730741
731742 @Callable(i)
732743 func modifyWeight (lpAssetId,share) = {
733744 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
734745 then true
735746 else mustManager(i)
736747 if ((checkCaller == checkCaller))
737748 then {
738749 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
739750 let poolWeightKey = keyPoolToWeight(poolContractAddress)
740751 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
741752 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
742753 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
743754 let poolWeightNew = share
744755 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
745756 let stakingContract = getStakingAddressOrFail(factoryCfg)
746757 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
747758 if ((onModifyWeightInv == onModifyWeightInv))
748759 then {
749760 let gwxVirtualPoolActions = if ((gwxWeight == 0))
750761 then nil
751762 else [IntegerEntry(gwxWeightKey, 0)]
752763 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
753764 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
754765 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
755766 then nil
756767 else [DeleteEntry(poolWeightHistoryKey)]
757768 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
758769 }
759770 else throw("Strict value is not equal to itself.")
760771 }
761772 else throw("Strict value is not equal to itself.")
762773 }
763774
764775
765776
766777 @Callable(i)
767778 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
768779 let checkCaller = mustManager(i)
769780 if ((checkCaller == checkCaller))
770781 then {
771782 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
772783 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
773784 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
774785 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
775786 let stakingDapp = getStakingAddressOrFail(factoryCfg)
776787 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
777788 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
778789 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
779790 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
780791 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
781792 let btcWeight = getIntOrFail(btcWeightKEY)
782793 let ethWeight = getIntOrFail(ethWeightKEY)
783794 let btcWeightNew = (btcWeight - weightDecrement)
784795 let ethWeightNew = (ethWeight - weightDecrement)
785796 if ((0 >= btcWeightNew))
786797 then throwErr(("invalid btcWeightNew: " + toString(btcWeightNew)))
787798 else if ((0 >= ethWeightNew))
788799 then throwErr(("invalid ethWeightNew: " + toString(ethWeightNew)))
789800 else {
790801 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
791802 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
792803 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
793804 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
794805 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
795806 if ((onModifyWeightBtc == onModifyWeightBtc))
796807 then {
797808 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
798809 if ((onModifyWeightEth == onModifyWeightEth))
799810 then {
800811 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
801812 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
802813 then {
803814 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
804815 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
805816 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)]
806817 else throw("Strict value is not equal to itself.")
807818 }
808819 else throw("Strict value is not equal to itself.")
809820 }
810821 else throw("Strict value is not equal to itself.")
811822 }
812823 else throw("Strict value is not equal to itself.")
813824 }
814825 }
815826 else throw("Strict value is not equal to itself.")
816827 }
817828
818829
819830
820831 @Callable(i)
821832 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
822833 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
823834 case b: Boolean =>
824835 b
825836 case _ =>
826837 false
827838 }
828839 $Tuple2(nil, haveLabel)
829840 }
830841
831842
832843
833844 @Callable(i)
834845 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
835846 let checkCaller = mustAdmin(i)
836847 if ((checkCaller == checkCaller))
837848 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
838849 else throw("Strict value is not equal to itself.")
839850 }
840851
841852
842853
843854 @Callable(i)
844855 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
845856 let checkCaller = if ((i.caller == this))
846857 then true
847858 else mustAdmin(i)
848859 if ((checkCaller == checkCaller))
849860 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
850861 else throw("Strict value is not equal to itself.")
851862 }
852863
853864
854865
855866 @Callable(i)
856867 func onVerificationLoss (assetId) = {
857868 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
858869 then true
859870 else mustManager(i)
860871 if ((checkCaller == checkCaller))
861872 then {
862873 let priceAssets = getPriceAssets()
863874 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
864875 then true
865876 else throwErr("invalid price assets")
866877 if ((checkPriceAssetsSize == checkPriceAssetsSize))
867878 then {
868879 func cb (acc,priceAsset) = {
869880 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
870881 if ((r == r))
871882 then unit
872883 else throw("Strict value is not equal to itself.")
873884 }
874885
875886 let actions = {
876887 let $l = priceAssets
877888 let $s = size($l)
878889 let $acc0 = unit
879890 func $f0_1 ($a,$i) = if (($i >= $s))
880891 then $a
881892 else cb($a, $l[$i])
882893
883894 func $f0_2 ($a,$i) = if (($i >= $s))
884895 then $a
885896 else throw("List size exceeds 13")
886897
887898 $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)
888899 }
889900 if ((actions == actions))
890901 then $Tuple2(nil, unit)
891902 else throw("Strict value is not equal to itself.")
892903 }
893904 else throw("Strict value is not equal to itself.")
894905 }
895906 else throw("Strict value is not equal to itself.")
896907 }
897908
898909
899910
900911 @Callable(i)
901912 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
902913 let poolConfig = getPoolConfig(poolAddress)
903914 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
904915 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
905916 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
906917 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
907918 then true
908919 else poolOneTokenOperationsDisabled)
909920 }
910921
911922
912923
913924 @Callable(i)
925+func isPoolSwapDisabledREADONLY (poolAddress) = {
926+ let poolConfig = getPoolConfig(poolAddress)
927+ let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
928+ let poolSwapDisabled = valueOrElse(getBoolean(keyPoolSwapDisabled(assetsInternal)), false)
929+ let allPoolsSwapDisabled = valueOrElse(getBoolean(keyAllPoolsSwapDisabled()), false)
930+ $Tuple2(nil, if (allPoolsSwapDisabled)
931+ then true
932+ else poolSwapDisabled)
933+ }
934+
935+
936+
937+@Callable(i)
914938 func getInFeeREADONLY (poolAddress) = {
915939 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
916940 $Tuple2(nil, fee)
917941 }
918942
919943
920944
921945 @Callable(i)
922946 func getOutFeeREADONLY (poolAddress) = {
923947 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
924948 $Tuple2(nil, fee)
925949 }
926950
927951
928952
929953 @Callable(i)
930954 func getSwapFeeREADONLY (poolAddressStr) = {
931955 let feeOption = match getString(this, keySwapFee(poolAddressStr)) {
932956 case s: String =>
933957 let parts = split(s, SEP)
934958 let poolFee = parseIntValue(parts[1])
935959 let protocolFee = parseIntValue(parts[2])
936960 $Tuple2(poolFee, protocolFee)
937961 case _: Unit =>
938962 unit
939963 case _ =>
940964 throw("Match error")
941965 }
942966 $Tuple2(nil, feeOption)
943967 }
944968
945969
946970
947971 @Callable(i)
948972 func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
949973 let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
950974 let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
951975 let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
952976 let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
953977 let poolExists = if (if (isDefined(amountAssetInternalIdOption))
954978 then isDefined(priceAssetInternalIdOption)
955979 else false)
956980 then isDefined(poolContractAddressOption)
957981 else false
958982 let poolInfo = if (poolExists)
959983 then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
960984 else unit
961985 $Tuple2(nil, poolInfo)
962986 }
963987
964988
965989
966990 @Callable(i)
967991 func getPoolStatusREADONLY (poolAddress) = {
968992 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
969993 let amountAssetInternal = poolAssets[1]
970994 let priceAssetInternal = poolAssets[2]
971995 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
972996 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
973997 }
974998
975999
9761000
9771001 @Callable(i)
9781002 func getPoolConfigREADONLY (poolAddress) = {
9791003 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
9801004 let amountAssetInternal = poolAssets[1]
9811005 let priceAssetInternal = poolAssets[2]
9821006 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
9831007 $Tuple2(nil, cfg)
9841008 }
9851009
9861010
9871011
9881012 @Callable(i)
9891013 func getPoolConfigByLpAssetIdREADONLY (lpAssetIdStr) = {
9901014 let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
9911015 let amountAssetInternal = poolAssets[1]
9921016 let priceAssetInternal = poolAssets[2]
9931017 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
9941018 $Tuple2(nil, cfg)
9951019 }
9961020
9971021
9981022
9991023 @Callable(i)
10001024 func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
10011025
10021026
10031027
10041028 @Callable(i)
10051029 func skipOrderValidationREADONLY (poolAddress) = $Tuple2(nil, valueOrElse(getBoolean(keySkipOrderValidation(poolAddress)), false))
10061030
10071031
10081032
10091033 @Callable(i)
10101034 func getChangeAmpConfigREADONLY (poolAddress) = {
10111035 let delay = getIntegerValue(keyChangeAmpDelay(poolAddress))
10121036 let delta = getIntegerValue(keyChangeAmpDelta(poolAddress))
10131037 let target = getIntegerValue(keyChangeAmpTarget(poolAddress))
10141038 $Tuple2(nil, [delay, delta, target])
10151039 }
10161040
10171041
10181042
10191043 @Callable(i)
10201044 func getPoolWeightREADONLY (lpAssetId) = {
10211045 let poolAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
10221046 let weight = valueOrElse(getInteger(keyPoolToWeight(poolAddress)), 0)
10231047 $Tuple2(nil, weight)
10241048 }
10251049
10261050
10271051
10281052 @Callable(i)
10291053 func deletePool (poolContractAddress) = {
10301054 let poolConfig = getPoolConfig(poolContractAddress)
10311055 let checkCaller = if ((toString(i.caller) == getPoolCreator(poolContractAddress)))
10321056 then if (isPoolEmpty(poolContractAddress))
10331057 then true
10341058 else throwErr("Pool is not empty")
10351059 else mustManager(i)
10361060 if ((checkCaller == checkCaller))
10371061 then {
10381062 let checkWeight = if ((valueOrElse(getInteger(keyPoolToWeight(poolContractAddress)), 0) == 0))
10391063 then true
10401064 else throwErr("Pool weight is not Zero")
10411065 if ((checkWeight == checkWeight))
10421066 then {
10431067 let checkStatus = if ((poolConfig[idxPoolStatus] == toString(PoolShutdown)))
10441068 then true
10451069 else throwErr("Pool must be SHUTDOWN (4)")
10461070 if ((checkStatus == checkStatus))
10471071 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
1072+ let $t04039540532 = getAssetsDataFromPoolAddress(poolContractAddress)
1073+ let amountAssetId = $t04039540532._1
1074+ let priceAssetId = $t04039540532._2
1075+ let lpAssetId = $t04039540532._3
1076+ let amountAssetInternal = $t04039540532._4
1077+ let priceAssetInternal = $t04039540532._5
10541078 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
10551079 let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
10561080 if ((userPoolsInvoke == userPoolsInvoke))
10571081 then {
10581082 let votingEmissionContract = addressFromStringValue(getStringValue(keyVotingEmissionContract()))
10591083 let votingEmissionInvoke = invoke(votingEmissionContract, "deletePool", [amountAssetId, priceAssetId], nil)
10601084 if ((votingEmissionInvoke == votingEmissionInvoke))
10611085 then {
10621086 let assetsStoreContract = addressFromStringValue(getStringValue(keyAssetsStoreContract()))
10631087 let assetsStoreInvoke = invoke(assetsStoreContract, "deletePool", [amountAssetId, priceAssetId], nil)
10641088 if ((assetsStoreInvoke == assetsStoreInvoke))
10651089 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))]
10661090 else throw("Strict value is not equal to itself.")
10671091 }
10681092 else throw("Strict value is not equal to itself.")
10691093 }
10701094 else throw("Strict value is not equal to itself.")
10711095 }
10721096 else throw("Strict value is not equal to itself.")
10731097 }
10741098 else throw("Strict value is not equal to itself.")
10751099 }
10761100 else throw("Strict value is not equal to itself.")
10771101 }
10781102
10791103
10801104 @Verifier(tx)
10811105 func verify () = {
10821106 let targetPublicKey = match managerPublicKeyOrUnit() {
10831107 case pk: ByteVector =>
10841108 pk
10851109 case _: Unit =>
10861110 tx.senderPublicKey
10871111 case _ =>
10881112 throw("Match error")
10891113 }
10901114 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
10911115 }
10921116

github/deemru/w8io/026f985 
129.90 ms