tx · 8pXG1pzHGD7SmgA8E1VH8N8r2Wd1KDYkWaFX91sfRLRJ

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02800000 Waves

2023.06.22 14:54 [2633809] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "8pXG1pzHGD7SmgA8E1VH8N8r2Wd1KDYkWaFX91sfRLRJ", "fee": 2800000, "feeAssetId": null, "timestamp": 1687434838565, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "39kkt52ySUf58Q4K9ptz3jmoDuSfyfiGx5DJudbpBHH72cx35qaz8MwnaCzgZ5sW4XFpo27S8qPEZ2iJTCida3JZ" ], "script": "base64:BgK0LQgCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSAwoBCBIDCgEIEgMKAQgSAwoBCCIGU0NBTEU4IgVNVUxUOCIGTVVMVDEyIgdTQ0FMRTE4IgZNVUxUMTgiDlBPT0xXRUlHSFRNVUxUIg5HV1h2aXJ0dWFsUE9PTCIMbGFiZWxQb29sc0xwIg1kZWZhdWx0U3ByZWFkIgt3YXZlc1N0cmluZyIQY29udHJhY3RGaWxlbmFtZSIRZGVjaW1hbHNNdWx0UHJpY2UiA1NFUCIFRU1QVFkiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIhJpZHhJbnR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ZUVudHJ5AQkBAmFlAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmF5AQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFIAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFKAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFMAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFNAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFOAQUCYUEJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFPAQUCYUEFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECZnYBAmZ3AAQCZngEAmJmCQECYnkAAwkAAQIFAmJmAgpCeXRlVmVjdG9yBAJiRgUCYmYFAmJGAwkAAQIFAmJmAgRVbml0CAUCZnYPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmZ2CWJvZHlCeXRlcwkAkQMCCAUCZnYGcHJvb2ZzAAAFAmZ4LuuPpg==", "height": 2633809, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7qHNU28LTEdeHnhAG5KYoJ6w53Q6s6EufAfRqe6LvMJY Next: 6UbubqTkuh3Lr1XU348nUrJxxGZKs1A9TZqcYzC3CUrs Diff:
OldNewDifferences
10191019 else throwErr("Pool weight is not Zero")
10201020 if ((checkWeight == checkWeight))
10211021 then {
1022- let checkStatus = if ((getIntegerValue(poolConfig[idxPoolStatus]) == PoolShutdown))
1022+ let checkStatus = if ((poolConfig[idxPoolStatus] == toString(PoolShutdown)))
10231023 then true
1024- else throwErr("Pools must be SHUTDOWN (4)")
1024+ else throwErr("Pool must be SHUTDOWN (4)")
10251025 if ((checkStatus == checkStatus))
10261026 then {
1027- let $t03912439261 = getAssetsDataFromPoolAddress(poolContractAddress)
1028- let amountAssetId = $t03912439261._1
1029- let priceAssetId = $t03912439261._2
1030- let lpAssetId = $t03912439261._3
1031- let amountAssetInternal = $t03912439261._4
1032- let priceAssetInternal = $t03912439261._5
1027+ let $t03911639253 = getAssetsDataFromPoolAddress(poolContractAddress)
1028+ let amountAssetId = $t03911639253._1
1029+ let priceAssetId = $t03911639253._2
1030+ let lpAssetId = $t03911639253._3
1031+ let amountAssetInternal = $t03911639253._4
1032+ let priceAssetInternal = $t03911639253._5
10331033 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
10341034 let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
10351035 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)
159159
160160
161161 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
162162
163163
164164 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
165165
166166
167167 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
168168
169169
170170 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
171171
172172
173173 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
174174
175175
176176 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
177177
178178
179179 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
180180
181181
182182 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
183183
184184
185185 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
186186
187187
188188 func keyInFeeDefault () = "%s__inFeeDefault"
189189
190190
191191 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
192192
193193
194194 func keyOutFeeDefault () = "%s__outFeeDefault"
195195
196196
197197 func keySkipOrderValidation (poolAddress) = ("%s%s__skipOrderValidation__" + poolAddress)
198198
199199
200200 func keyChangeAmpDelay (poolAddress) = ("%s%s__changeAmpDelay__" + poolAddress)
201201
202202
203203 func keyChangeAmpDelta (poolAddress) = ("%s%s__changeAmpDelta__" + poolAddress)
204204
205205
206206 func keyChangeAmpTarget (poolAddress) = ("%s%s__changeAmpTarget__" + poolAddress)
207207
208208
209209 func keySWavesProxyAddress () = "%s__sWavesProxyAddress"
210210
211211
212212 func keySWavesAssetId () = "%s__sWavesAssetId"
213213
214214
215215 func keyStakingProfitAddress () = "%s__stakingProfitAddress"
216216
217217
218218 func keyLeasedRatio (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatio", poolAddress, assetId], SEP)
219219
220220
221221 func keyLeasedRatioDefault (assetId) = makeString(["%s%s", "leasedRatioDefault", assetId], SEP)
222222
223223
224224 func keyLeasedRatioTolerance (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatioTolerance", poolAddress, assetId], SEP)
225225
226226
227227 func keyMinBalance (poolAddress,assetId) = makeString(["%s%s%s", "minBalance", poolAddress, assetId], SEP)
228228
229229
230230 func keyMinBalanceDefault (assetId) = makeString(["%s%s", "minBalanceDefault", assetId], SEP)
231231
232232
233233 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
234234
235235
236236 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
237237
238238
239239 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
240240
241241
242242 func parseAssetId (input) = if ((input == wavesString))
243243 then unit
244244 else fromBase58String(input)
245245
246246
247247 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
248248 case s: String =>
249249 addressFromStringValue(s)
250250 case _ =>
251251 this
252252 }
253253
254254
255255 let IdxFactoryCfgStakingDapp = 1
256256
257257 let IdxFactoryCfgBoostingDapp = 2
258258
259259 let IdxFactoryCfgIdoDapp = 3
260260
261261 let IdxFactoryCfgTeamDapp = 4
262262
263263 let IdxFactoryCfgEmissionDapp = 5
264264
265265 let IdxFactoryCfgRestDapp = 6
266266
267267 let IdxFactoryCfgSlippageDapp = 7
268268
269269 let IdxFactoryCfgDaoDapp = 8
270270
271271 let IdxFactoryCfgMarketingDapp = 9
272272
273273 let IdxFactoryCfgGwxRewardDapp = 10
274274
275275 let IdxFactoryCfgBirdsDapp = 11
276276
277277 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
278278
279279
280280 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
281281
282282
283283 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
284284
285285
286286 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
287287
288288
289289 func getPriceAssets () = match getString(keyPriceAssets()) {
290290 case s: String =>
291291 if ((size(s) == 0))
292292 then nil
293293 else split(s, SEP)
294294 case _ =>
295295 nil
296296 }
297297
298298
299299 func managerPublicKeyOrUnit () = {
300300 let managerVaultAddress = getManagerVaultAddressOrThis()
301301 match getString(managerVaultAddress, keyManagerPublicKey()) {
302302 case s: String =>
303303 fromBase58String(s)
304304 case _: Unit =>
305305 unit
306306 case _ =>
307307 throw("Match error")
308308 }
309309 }
310310
311311
312312 let permissionDeniedError = throwErr("Permission denied")
313313
314314 let testError = throwErr("Test error here")
315315
316316 func mustThis (i) = if ((i.caller == this))
317317 then true
318318 else permissionDeniedError
319319
320320
321321 func mustManager (i) = match managerPublicKeyOrUnit() {
322322 case pk: ByteVector =>
323323 if ((i.callerPublicKey == pk))
324324 then true
325325 else permissionDeniedError
326326 case _: Unit =>
327327 mustThis(i)
328328 case _ =>
329329 throw("Match error")
330330 }
331331
332332
333333 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)
334334
335335
336336 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
337337
338338
339339 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)
340340
341341
342342 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
343343
344344
345345 func getPoolConfig (poolAddress) = {
346346 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
347347 let amountAssetInternal = poolAssets[1]
348348 let priceAssetInternal = poolAssets[2]
349349 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
350350 }
351351
352352
353353 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
354354 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
355355 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
356356 let result = if ((internalAssetId == 0))
357357 then {
358358 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
359359 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
360360 }
361361 else $Tuple3(internalAssetId, nil, false)
362362 result
363363 }
364364
365365
366366 func mustAdmin (i) = {
367367 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
368368 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
369369 then true
370370 else {
371371 let isManager = mustManager(i)
372372 if ((isManager == isManager))
373373 then true
374374 else throw("Strict value is not equal to itself.")
375375 }
376376 }
377377
378378
379379 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
380380
381381
382382 func poolExistsInternal (amountAssetId,priceAssetId) = {
383383 let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
384384 let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
385385 if (if ((amountAssetInternal == unit))
386386 then true
387387 else (priceAssetInternal == unit))
388388 then false
389389 else {
390390 let amAs = toString(value(amountAssetInternal))
391391 let prAs = toString(value(priceAssetInternal))
392392 let cfg = getString(keyPoolConfig(amAs, prAs))
393393 let cfgReverse = getString(keyPoolConfig(prAs, amAs))
394394 let exists = if ((cfg != unit))
395395 then true
396396 else (cfgReverse != unit)
397397 exists
398398 }
399399 }
400400
401401
402402 func getAssetsDataFromPoolAddress (poolContractAddress) = {
403403 let poolAssets = match getString(keyMappingPoolContractAddressToPoolAssets(poolContractAddress)) {
404404 case s: String =>
405405 split(s, SEP)
406406 case _ =>
407407 throwErr(makeString([poolContractAddress, "pool is not found"], " "))
408408 }
409409 let amountAssetInternal = parseIntValue(poolAssets[1])
410410 let priceAssetInternal = parseIntValue(poolAssets[2])
411411 let amountAssetId = getStringValue(keyMappingsInternal2baseAssetId(amountAssetInternal))
412412 let priceAssetId = getStringValue(keyMappingsInternal2baseAssetId(priceAssetInternal))
413413 let lpAssetId = getStringValue(keyMappingPoolContractToLPAsset(poolContractAddress))
414414 $Tuple5(amountAssetId, priceAssetId, lpAssetId, amountAssetInternal, priceAssetInternal)
415415 }
416416
417417
418418 func getPoolCreator (poolContractAddress) = {
419419 let $t01516615303 = getAssetsDataFromPoolAddress(poolContractAddress)
420420 let amountAssetId = $t01516615303._1
421421 let priceAssetId = $t01516615303._2
422422 let lpAssetId = $t01516615303._3
423423 let amountAssetInternal = $t01516615303._4
424424 let priceAssetInternal = $t01516615303._5
425425 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
426426 let poolCreator = invoke(userPoolsContract, "getPoolCreatorREADONLY", [amountAssetId, priceAssetId], nil)
427427 poolCreator
428428 }
429429
430430
431431 func getAddressBalance (addressString,assetIdString) = {
432432 let address = addressFromStringValue(addressString)
433433 if ((assetIdString == "WAVES"))
434434 then wavesBalance(address).regular
435435 else {
436436 let assetId = fromBase58String(assetIdString)
437437 assetBalance(address, assetId)
438438 }
439439 }
440440
441441
442442 func isPoolEmpty (poolContractAddress) = {
443443 let $t01587816015 = getAssetsDataFromPoolAddress(poolContractAddress)
444444 let amountAssetId = $t01587816015._1
445445 let priceAssetId = $t01587816015._2
446446 let lpAssetId = $t01587816015._3
447447 let amountAssetInternal = $t01587816015._4
448448 let priceAssetInternal = $t01587816015._5
449449 if ((getAddressBalance(poolContractAddress, amountAssetId) == 0))
450450 then (getAddressBalance(poolContractAddress, priceAssetId) == 0)
451451 else false
452452 }
453453
454454
455455 @Callable(i)
456456 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
457457
458458
459459
460460 @Callable(i)
461461 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
462462 let $t01633016634 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
463463 case r: Int =>
464464 $Tuple2(true, min([100, max([0, r])]))
465465 case _ =>
466466 match getInteger(this, keyLeasedRatioDefault(assetId)) {
467467 case rd: Int =>
468468 $Tuple2(true, min([100, max([0, rd])]))
469469 case _ =>
470470 $Tuple2(false, 0)
471471 }
472472 }
473473 let isLeasable = $t01633016634._1
474474 let leasedRatio = $t01633016634._2
475475 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
476476 case b: Int =>
477477 max([0, b])
478478 case _ =>
479479 match getInteger(this, keyMinBalanceDefault(assetId)) {
480480 case bd: Int =>
481481 max([0, bd])
482482 case _ =>
483483 0
484484 }
485485 }
486486 let $t01690017124 = if ((assetId == "WAVES"))
487487 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
488488 else $Tuple3("", "", 0)
489489 let proxyAddress = $t01690017124._1
490490 let proxyAssetId = $t01690017124._2
491491 let proxyRateMul = $t01690017124._3
492492 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
493493 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
494494 }
495495
496496
497497
498498 @Callable(i)
499499 func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
500500 then (asset2 == "WAVES")
501501 else false)
502502 then $Tuple2(nil, unit)
503503 else {
504504 let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
505505 let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
506506 let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
507507 let res = if ((ee == unit))
508508 then unit
509509 else drop(value(ee), 4)
510510 $Tuple2(nil, res)
511511 }
512512
513513
514514
515515 @Callable(i)
516516 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
517517
518518
519519
520520 @Callable(i)
521521 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
522522 let checkCaller = mustManager(i)
523523 if ((checkCaller == checkCaller))
524524 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
525525 else throw("Strict value is not equal to itself.")
526526 }
527527
528528
529529
530530 @Callable(i)
531531 func constructorV2 (mathcherPub58Str) = {
532532 let checkCaller = mustManager(i)
533533 if ((checkCaller == checkCaller))
534534 then {
535535 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
536536 if ((mathcerPub == mathcerPub))
537537 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
538538 else throw("Strict value is not equal to itself.")
539539 }
540540 else throw("Strict value is not equal to itself.")
541541 }
542542
543543
544544
545545 @Callable(i)
546546 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
547547 let checkCaller = mustManager(i)
548548 if ((checkCaller == checkCaller))
549549 then {
550550 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
551551 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
552552 }
553553 else throw("Strict value is not equal to itself.")
554554 }
555555
556556
557557
558558 @Callable(i)
559559 func constructorV4 (legacyFactoryContract,legacyPools) = {
560560 let checkCaller = mustManager(i)
561561 if ((checkCaller == checkCaller))
562562 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
563563 else throw("Strict value is not equal to itself.")
564564 }
565565
566566
567567
568568 @Callable(i)
569569 func constructorV5 (assetsStoreContract) = {
570570 let checkCaller = mustManager(i)
571571 if ((checkCaller == checkCaller))
572572 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
573573 else throw("Strict value is not equal to itself.")
574574 }
575575
576576
577577
578578 @Callable(i)
579579 func constructorV6 (votingEmissionContract,priceAssets) = {
580580 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
581581 then true
582582 else "invalid voting emission contract address"]
583583 if ((cheks == cheks))
584584 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
585585 else throw("Strict value is not equal to itself.")
586586 }
587587
588588
589589
590590 @Callable(i)
591591 func setAdmins (adminPubKeys) = {
592592 let checkCaller = mustManager(i)
593593 if ((checkCaller == checkCaller))
594594 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
595595 else throw("Strict value is not equal to itself.")
596596 }
597597
598598
599599
600600 @Callable(i)
601601 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
602602 let checkCaller = mustAdmin(i)
603603 if ((checkCaller == checkCaller))
604604 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
605605 then throwErr((("Pool address " + poolAddress) + " already registered."))
606606 else {
607607 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
608608 let internalAmountAssetId = internalAmountAssetData._1
609609 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
610610 then 2
611611 else 1)
612612 let internalPriceAssetId = internalPriceAssetData._1
613613 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
614614 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
615615 let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
616616 if (poolExists)
617617 then throwErr((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
618618 else {
619619 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
620620 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
621621 then decimalsMultPrice
622622 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
623623 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
624624 then decimalsMultPrice
625625 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
626626 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
627627 let lpAssetId = calculateAssetId(lpAssetIssueAction)
628628 let lpAssetIdStr = toBase58String(lpAssetId)
629629 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
630630 if ((poolActivateInvokeResult == poolActivateInvokeResult))
631631 then if ((poolActivateInvokeResult != "success"))
632632 then throwErr("Pool initialisation error happened.")
633633 else {
634634 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
635635 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
636636 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
637637 then {
638638 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
639639 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
640640 then {
641641 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
642642 if ((setLogoInv == setLogoInv))
643643 then {
644644 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
645645 if ((addAssetsLinkInv == addAssetsLinkInv))
646646 then {
647647 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
648648 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
649649 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)
650650 else throw("Strict value is not equal to itself.")
651651 }
652652 else throw("Strict value is not equal to itself.")
653653 }
654654 else throw("Strict value is not equal to itself.")
655655 }
656656 else throw("Strict value is not equal to itself.")
657657 }
658658 else throw("Strict value is not equal to itself.")
659659 }
660660 else throw("Strict value is not equal to itself.")
661661 }
662662 }
663663 else throw("Strict value is not equal to itself.")
664664 }
665665
666666
667667
668668 @Callable(i)
669669 func managePool (poolAddress,newStatus) = {
670670 let checkCaller = mustManager(i)
671671 if ((checkCaller == checkCaller))
672672 then {
673673 let poolConfig = getPoolConfig(poolAddress)
674674 let poolStatus = poolConfig[idxPoolStatus]
675675 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
676676 let amountAssetStr = poolConfig[idxAmtAssetId]
677677 let priceAssetStr = poolConfig[idxPriceAssetId]
678678 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
679679 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
680680 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
681681 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
682682 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
683683 let poolType = poolConfig[idxPoolType]
684684 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
685685 }
686686 else throw("Strict value is not equal to itself.")
687687 }
688688
689689
690690
691691 @Callable(i)
692692 func emit (amountToEmit) = {
693693 let caller = i.caller
694694 let originCaller = i.originCaller
695695 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
696696 let lpAsset = fromBase58String(lpAssetRequested)
697697 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
698698 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
699699 if ((0 >= amountToEmit))
700700 then nil
701701 else if (containsElement(legacyPools, toString(caller)))
702702 then $Tuple2(nil, legacyFactoryContract)
703703 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
704704 }
705705
706706
707707
708708 @Callable(i)
709709 func burn (amountToBurn) = {
710710 let caller = i.caller
711711 let originCaller = i.originCaller
712712 let payment = value(i.payments[0])
713713 let paymentAmount = value(payment.amount)
714714 let inAmountAssetId = toBase58String(value(payment.assetId))
715715 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
716716 if ((inAmountAssetId != lpAssetRequestedForBurning))
717717 then throwErr("Invalid asset passed.")
718718 else if ((amountToBurn != paymentAmount))
719719 then throwErr("Invalid amount passed.")
720720 else {
721721 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
722722 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
723723 }
724724 }
725725
726726
727727
728728 @Callable(i)
729729 func modifyWeight (lpAssetId,share) = {
730730 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
731731 then true
732732 else mustManager(i)
733733 if ((checkCaller == checkCaller))
734734 then {
735735 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
736736 let poolWeightKey = keyPoolToWeight(poolContractAddress)
737737 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
738738 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
739739 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
740740 let poolWeightNew = share
741741 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
742742 let stakingContract = getStakingAddressOrFail(factoryCfg)
743743 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
744744 if ((onModifyWeightInv == onModifyWeightInv))
745745 then {
746746 let gwxVirtualPoolActions = if ((gwxWeight == 0))
747747 then nil
748748 else [IntegerEntry(gwxWeightKey, 0)]
749749 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
750750 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
751751 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
752752 then nil
753753 else [DeleteEntry(poolWeightHistoryKey)]
754754 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
755755 }
756756 else throw("Strict value is not equal to itself.")
757757 }
758758 else throw("Strict value is not equal to itself.")
759759 }
760760
761761
762762
763763 @Callable(i)
764764 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
765765 let checkCaller = mustManager(i)
766766 if ((checkCaller == checkCaller))
767767 then {
768768 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
769769 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
770770 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
771771 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
772772 let stakingDapp = getStakingAddressOrFail(factoryCfg)
773773 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
774774 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
775775 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
776776 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
777777 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
778778 let btcWeight = getIntOrFail(btcWeightKEY)
779779 let ethWeight = getIntOrFail(ethWeightKEY)
780780 let btcWeightNew = (btcWeight - weightDecrement)
781781 let ethWeightNew = (ethWeight - weightDecrement)
782782 if ((0 >= btcWeightNew))
783783 then throwErr(("invalid btcWeightNew: " + toString(btcWeightNew)))
784784 else if ((0 >= ethWeightNew))
785785 then throwErr(("invalid ethWeightNew: " + toString(ethWeightNew)))
786786 else {
787787 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
788788 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
789789 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
790790 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
791791 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
792792 if ((onModifyWeightBtc == onModifyWeightBtc))
793793 then {
794794 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
795795 if ((onModifyWeightEth == onModifyWeightEth))
796796 then {
797797 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
798798 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
799799 then {
800800 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
801801 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
802802 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)]
803803 else throw("Strict value is not equal to itself.")
804804 }
805805 else throw("Strict value is not equal to itself.")
806806 }
807807 else throw("Strict value is not equal to itself.")
808808 }
809809 else throw("Strict value is not equal to itself.")
810810 }
811811 }
812812 else throw("Strict value is not equal to itself.")
813813 }
814814
815815
816816
817817 @Callable(i)
818818 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
819819 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
820820 case b: Boolean =>
821821 b
822822 case _ =>
823823 false
824824 }
825825 $Tuple2(nil, haveLabel)
826826 }
827827
828828
829829
830830 @Callable(i)
831831 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
832832 let checkCaller = mustAdmin(i)
833833 if ((checkCaller == checkCaller))
834834 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
835835 else throw("Strict value is not equal to itself.")
836836 }
837837
838838
839839
840840 @Callable(i)
841841 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
842842 let checkCaller = if ((i.caller == this))
843843 then true
844844 else mustAdmin(i)
845845 if ((checkCaller == checkCaller))
846846 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
847847 else throw("Strict value is not equal to itself.")
848848 }
849849
850850
851851
852852 @Callable(i)
853853 func onVerificationLoss (assetId) = {
854854 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
855855 then true
856856 else mustManager(i)
857857 if ((checkCaller == checkCaller))
858858 then {
859859 let priceAssets = getPriceAssets()
860860 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
861861 then true
862862 else throwErr("invalid price assets")
863863 if ((checkPriceAssetsSize == checkPriceAssetsSize))
864864 then {
865865 func cb (acc,priceAsset) = {
866866 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
867867 if ((r == r))
868868 then unit
869869 else throw("Strict value is not equal to itself.")
870870 }
871871
872872 let actions = {
873873 let $l = priceAssets
874874 let $s = size($l)
875875 let $acc0 = unit
876876 func $f0_1 ($a,$i) = if (($i >= $s))
877877 then $a
878878 else cb($a, $l[$i])
879879
880880 func $f0_2 ($a,$i) = if (($i >= $s))
881881 then $a
882882 else throw("List size exceeds 11")
883883
884884 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11)
885885 }
886886 if ((actions == actions))
887887 then $Tuple2(nil, unit)
888888 else throw("Strict value is not equal to itself.")
889889 }
890890 else throw("Strict value is not equal to itself.")
891891 }
892892 else throw("Strict value is not equal to itself.")
893893 }
894894
895895
896896
897897 @Callable(i)
898898 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
899899 let poolConfig = getPoolConfig(poolAddress)
900900 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
901901 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
902902 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
903903 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
904904 then true
905905 else poolOneTokenOperationsDisabled)
906906 }
907907
908908
909909
910910 @Callable(i)
911911 func getInFeeREADONLY (poolAddress) = {
912912 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
913913 $Tuple2(nil, fee)
914914 }
915915
916916
917917
918918 @Callable(i)
919919 func getOutFeeREADONLY (poolAddress) = {
920920 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
921921 $Tuple2(nil, fee)
922922 }
923923
924924
925925
926926 @Callable(i)
927927 func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
928928 let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
929929 let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
930930 let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
931931 let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
932932 let poolExists = if (if (isDefined(amountAssetInternalIdOption))
933933 then isDefined(priceAssetInternalIdOption)
934934 else false)
935935 then isDefined(poolContractAddressOption)
936936 else false
937937 let poolInfo = if (poolExists)
938938 then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
939939 else unit
940940 $Tuple2(nil, poolInfo)
941941 }
942942
943943
944944
945945 @Callable(i)
946946 func getPoolStatusREADONLY (poolAddress) = {
947947 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
948948 let amountAssetInternal = poolAssets[1]
949949 let priceAssetInternal = poolAssets[2]
950950 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
951951 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
952952 }
953953
954954
955955
956956 @Callable(i)
957957 func getPoolConfigREADONLY (poolAddress) = {
958958 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
959959 let amountAssetInternal = poolAssets[1]
960960 let priceAssetInternal = poolAssets[2]
961961 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
962962 $Tuple2(nil, cfg)
963963 }
964964
965965
966966
967967 @Callable(i)
968968 func getPoolConfigByLpAssetIdREADONLY (lpAssetIdStr) = {
969969 let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
970970 let amountAssetInternal = poolAssets[1]
971971 let priceAssetInternal = poolAssets[2]
972972 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
973973 $Tuple2(nil, cfg)
974974 }
975975
976976
977977
978978 @Callable(i)
979979 func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
980980
981981
982982
983983 @Callable(i)
984984 func skipOrderValidationREADONLY (poolAddress) = $Tuple2(nil, valueOrElse(getBoolean(keySkipOrderValidation(poolAddress)), false))
985985
986986
987987
988988 @Callable(i)
989989 func getChangeAmpConfigREADONLY (poolAddress) = {
990990 let delay = getIntegerValue(keyChangeAmpDelay(poolAddress))
991991 let delta = getIntegerValue(keyChangeAmpDelta(poolAddress))
992992 let target = getIntegerValue(keyChangeAmpTarget(poolAddress))
993993 $Tuple2(nil, [delay, delta, target])
994994 }
995995
996996
997997
998998 @Callable(i)
999999 func getPoolWeightREADONLY (lpAssetId) = {
10001000 let poolAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
10011001 let weight = valueOrElse(getInteger(keyPoolToWeight(poolAddress)), 0)
10021002 $Tuple2(nil, weight)
10031003 }
10041004
10051005
10061006
10071007 @Callable(i)
10081008 func deletePool (poolContractAddress) = {
10091009 let poolConfig = getPoolConfig(poolContractAddress)
10101010 let checkCaller = if ((toString(i.caller) == getPoolCreator(poolContractAddress)))
10111011 then if (isPoolEmpty(poolContractAddress))
10121012 then true
10131013 else throwErr("Pool is not empty")
10141014 else mustManager(i)
10151015 if ((checkCaller == checkCaller))
10161016 then {
10171017 let checkWeight = if ((valueOrElse(getInteger(keyPoolToWeight(poolContractAddress)), 0) == 0))
10181018 then true
10191019 else throwErr("Pool weight is not Zero")
10201020 if ((checkWeight == checkWeight))
10211021 then {
1022- let checkStatus = if ((getIntegerValue(poolConfig[idxPoolStatus]) == PoolShutdown))
1022+ let checkStatus = if ((poolConfig[idxPoolStatus] == toString(PoolShutdown)))
10231023 then true
1024- else throwErr("Pools must be SHUTDOWN (4)")
1024+ else throwErr("Pool must be SHUTDOWN (4)")
10251025 if ((checkStatus == checkStatus))
10261026 then {
1027- let $t03912439261 = getAssetsDataFromPoolAddress(poolContractAddress)
1028- let amountAssetId = $t03912439261._1
1029- let priceAssetId = $t03912439261._2
1030- let lpAssetId = $t03912439261._3
1031- let amountAssetInternal = $t03912439261._4
1032- let priceAssetInternal = $t03912439261._5
1027+ let $t03911639253 = getAssetsDataFromPoolAddress(poolContractAddress)
1028+ let amountAssetId = $t03911639253._1
1029+ let priceAssetId = $t03911639253._2
1030+ let lpAssetId = $t03911639253._3
1031+ let amountAssetInternal = $t03911639253._4
1032+ let priceAssetInternal = $t03911639253._5
10331033 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
10341034 let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
10351035 if ((userPoolsInvoke == userPoolsInvoke))
10361036 then {
10371037 let votingEmissionContract = addressFromStringValue(getStringValue(keyVotingEmissionContract()))
10381038 let votingEmissionInvoke = invoke(votingEmissionContract, "deletePool", [amountAssetId, priceAssetId], nil)
10391039 if ((votingEmissionInvoke == votingEmissionInvoke))
10401040 then {
10411041 let assetsStoreContract = addressFromStringValue(getStringValue(keyAssetsStoreContract()))
10421042 let assetsStoreInvoke = invoke(assetsStoreContract, "deletePool", [amountAssetId, priceAssetId], nil)
10431043 if ((assetsStoreInvoke == assetsStoreInvoke))
10441044 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))]
10451045 else throw("Strict value is not equal to itself.")
10461046 }
10471047 else throw("Strict value is not equal to itself.")
10481048 }
10491049 else throw("Strict value is not equal to itself.")
10501050 }
10511051 else throw("Strict value is not equal to itself.")
10521052 }
10531053 else throw("Strict value is not equal to itself.")
10541054 }
10551055 else throw("Strict value is not equal to itself.")
10561056 }
10571057
10581058
10591059 @Verifier(tx)
10601060 func verify () = {
10611061 let targetPublicKey = match managerPublicKeyOrUnit() {
10621062 case pk: ByteVector =>
10631063 pk
10641064 case _: Unit =>
10651065 tx.senderPublicKey
10661066 case _ =>
10671067 throw("Match error")
10681068 }
10691069 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
10701070 }
10711071

github/deemru/w8io/026f985 
124.63 ms