tx · 35rUGfn1R78jjc21XERgUQDh6soDDA6moYL7bZJdJZ6J

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.03100000 Waves

2023.12.29 10:31 [2907751] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "35rUGfn1R78jjc21XERgUQDh6soDDA6moYL7bZJdJZ6J", "fee": 3100000, "feeAssetId": null, "timestamp": 1703835074335, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "3ZKAxEbbKdQ7q24PVkgnxjSmeqrB87LBHNTJPfwY4GoRomm7U38NEY4qRXcmvhK5C5osFd7M5J6fXeDLNdsCv8s2" ], "script": "base64:BgLuMQgCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIIgZTQ0FMRTgiBU1VTFQ4IgZNVUxUMTIiB1NDQUxFMTgiBk1VTFQxOCIOUE9PTFdFSUdIVE1VTFQiDkdXWHZpcnR1YWxQT09MIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRTcHJlYWQiC3dhdmVzU3RyaW5nIhBjb250cmFjdEZpbGVuYW1lIhFkZWNpbWFsc011bHRQcmljZSIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIPUG9vbFB1dERpc2FibGVkIhNQb29sTWF0Y2hlckRpc2FibGVkIgxQb29sU2h1dGRvd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4ndCBiZSBjYXN0IHRvIEludAQCZ2EJAGcCBQJmWQkAaQIFAmZXAAIEAmdiCQBnAgUCZloJAGkCBQJmWAACBAJnYwMFAmdhBQJnYgcJAJQKAgUDbmlsBQJnYwECZ2QBAmdlAAQCZ2YEAmJuCQECYk0AAwkAAQIFAmJuAgpCeXRlVmVjdG9yBAJiVAUCYm4FAmJUAwkAAQIFAmJuAgRVbml0CAUCZ2QPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmdkCWJvZHlCeXRlcwkAkQMCCAUCZ2QGcHJvb2ZzAAAFAmdmS9uoFQ==", "height": 2907751, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9jiCiTPCb6XA7GDduEtBDC5qmpYJDhsZBfADeFkdnDBW Next: 5Lj4xDo3LTXdfCyCUJVTgtzYjcj7PrPBnHzuU7tW4oKE Diff:
OldNewDifferences
868868
869869 @Callable(i)
870870 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
871- let checkCaller = if ((i.caller == this))
871+ let checkCaller = if (if ((toString(i.caller) == getStringValue(this, keyVotingEmissionContract())))
872+ then true
873+ else (i.caller == this))
872874 then true
873875 else mustAdmin(i)
874876 if ((checkCaller == checkCaller))
10841086 else throwErr("Pool must be SHUTDOWN (4)")
10851087 if ((checkStatus == checkStatus))
10861088 then {
1087- let $t04091641053 = getAssetsDataFromPoolAddress(poolContractAddress)
1088- let amountAssetId = $t04091641053._1
1089- let priceAssetId = $t04091641053._2
1090- let lpAssetId = $t04091641053._3
1091- let amountAssetInternal = $t04091641053._4
1092- let priceAssetInternal = $t04091641053._5
1089+ let $t04099141128 = getAssetsDataFromPoolAddress(poolContractAddress)
1090+ let amountAssetId = $t04099141128._1
1091+ let priceAssetId = $t04099141128._2
1092+ let lpAssetId = $t04099141128._3
1093+ let amountAssetInternal = $t04099141128._4
1094+ let priceAssetInternal = $t04099141128._5
10931095 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
10941096 let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
10951097 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 keyPoolSwapDisabled (assetsInternal) = {
162162 let $t042324294 = assetsInternal
163163 let amountAssetInternal = $t042324294._1
164164 let priceAssetInternal = $t042324294._2
165165 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "swapDisabled"], SEP)
166166 }
167167
168168
169169 func keyAllPoolsSwapDisabled () = makeString(["%s", "swapDisabled"], SEP)
170170
171171
172172 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
173173
174174
175175 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
176176
177177
178178 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
179179
180180
181181 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
182182
183183
184184 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
185185
186186
187187 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
188188
189189
190190 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
191191
192192
193193 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
194194
195195
196196 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
197197
198198
199199 func keyInFeeDefault () = "%s__inFeeDefault"
200200
201201
202202 func keySwapFee (poolAddress) = ("%s%s__swapFee__" + poolAddress)
203203
204204
205205 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
206206
207207
208208 func keyOutFeeDefault () = "%s__outFeeDefault"
209209
210210
211211 func keyPoolAssetDefaultMinAmount () = makeString(["%s", "poolAssetDefaultMinAmount"], SEP)
212212
213213
214214 func keyPoolAssetsMinAmount (assetId) = makeString(["%s%s", "poolAssetMinAmount", assetId], SEP)
215215
216216
217217 func keySkipOrderValidation (poolAddress) = ("%s%s__skipOrderValidation__" + poolAddress)
218218
219219
220220 func keyChangeAmpDelay (poolAddress) = ("%s%s__changeAmpDelay__" + poolAddress)
221221
222222
223223 func keyChangeAmpDelta (poolAddress) = ("%s%s__changeAmpDelta__" + poolAddress)
224224
225225
226226 func keyChangeAmpTarget (poolAddress) = ("%s%s__changeAmpTarget__" + poolAddress)
227227
228228
229229 func keySWavesProxyAddress () = "%s__sWavesProxyAddress"
230230
231231
232232 func keySWavesAssetId () = "%s__sWavesAssetId"
233233
234234
235235 func keyStakingProfitAddress () = "%s__stakingProfitAddress"
236236
237237
238238 func keyLeasedRatio (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatio", poolAddress, assetId], SEP)
239239
240240
241241 func keyLeasedRatioDefault (assetId) = makeString(["%s%s", "leasedRatioDefault", assetId], SEP)
242242
243243
244244 func keyLeasedRatioTolerance (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatioTolerance", poolAddress, assetId], SEP)
245245
246246
247247 func keyMinBalance (poolAddress,assetId) = makeString(["%s%s%s", "minBalance", poolAddress, assetId], SEP)
248248
249249
250250 func keyMinBalanceDefault (assetId) = makeString(["%s%s", "minBalanceDefault", assetId], SEP)
251251
252252
253253 func keyAddressWhitelisted (address) = makeString(["%s%s", "whitelisted", toString(address)], SEP)
254254
255255
256256 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
257257
258258
259259 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
260260
261261
262262 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
263263
264264
265265 func parseAssetId (input) = if ((input == wavesString))
266266 then unit
267267 else fromBase58String(input)
268268
269269
270270 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
271271 case s: String =>
272272 addressFromStringValue(s)
273273 case _ =>
274274 this
275275 }
276276
277277
278278 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult))
279279
280280
281281 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18))
282282
283283
284284 let IdxFactoryCfgStakingDapp = 1
285285
286286 let IdxFactoryCfgBoostingDapp = 2
287287
288288 let IdxFactoryCfgIdoDapp = 3
289289
290290 let IdxFactoryCfgTeamDapp = 4
291291
292292 let IdxFactoryCfgEmissionDapp = 5
293293
294294 let IdxFactoryCfgRestDapp = 6
295295
296296 let IdxFactoryCfgSlippageDapp = 7
297297
298298 let IdxFactoryCfgDaoDapp = 8
299299
300300 let IdxFactoryCfgMarketingDapp = 9
301301
302302 let IdxFactoryCfgGwxRewardDapp = 10
303303
304304 let IdxFactoryCfgBirdsDapp = 11
305305
306306 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
307307
308308
309309 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
310310
311311
312312 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
313313
314314
315315 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
316316
317317
318318 func getPriceAssets () = match getString(keyPriceAssets()) {
319319 case s: String =>
320320 if ((size(s) == 0))
321321 then nil
322322 else split_4C(s, SEP)
323323 case _ =>
324324 nil
325325 }
326326
327327
328328 func managerPublicKeyOrUnit () = {
329329 let managerVaultAddress = getManagerVaultAddressOrThis()
330330 match getString(managerVaultAddress, keyManagerPublicKey()) {
331331 case s: String =>
332332 fromBase58String(s)
333333 case _: Unit =>
334334 unit
335335 case _ =>
336336 throw("Match error")
337337 }
338338 }
339339
340340
341341 let permissionDeniedError = throwErr("Permission denied")
342342
343343 let testError = throwErr("Test error here")
344344
345345 func mustThis (i) = if ((i.caller == this))
346346 then true
347347 else permissionDeniedError
348348
349349
350350 func mustManager (i) = match managerPublicKeyOrUnit() {
351351 case pk: ByteVector =>
352352 if ((i.callerPublicKey == pk))
353353 then true
354354 else permissionDeniedError
355355 case _: Unit =>
356356 mustThis(i)
357357 case _ =>
358358 throw("Match error")
359359 }
360360
361361
362362 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)
363363
364364
365365 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
366366
367367
368368 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)
369369
370370
371371 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
372372
373373
374374 func getPoolConfig (poolAddress) = {
375375 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
376376 let amountAssetInternal = poolAssets[1]
377377 let priceAssetInternal = poolAssets[2]
378378 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
379379 }
380380
381381
382382 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
383383 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
384384 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
385385 let result = if ((internalAssetId == 0))
386386 then {
387387 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
388388 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
389389 }
390390 else $Tuple3(internalAssetId, nil, false)
391391 result
392392 }
393393
394394
395395 func mustAdmin (i) = {
396396 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
397397 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
398398 then true
399399 else {
400400 let isManager = mustManager(i)
401401 if ((isManager == isManager))
402402 then true
403403 else throw("Strict value is not equal to itself.")
404404 }
405405 }
406406
407407
408408 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
409409
410410
411411 func poolExistsInternal (amountAssetId,priceAssetId) = {
412412 let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
413413 let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
414414 if (if ((amountAssetInternal == unit))
415415 then true
416416 else (priceAssetInternal == unit))
417417 then false
418418 else {
419419 let amAs = toString(value(amountAssetInternal))
420420 let prAs = toString(value(priceAssetInternal))
421421 let cfg = getString(keyPoolConfig(amAs, prAs))
422422 let cfgReverse = getString(keyPoolConfig(prAs, amAs))
423423 let exists = if ((cfg != unit))
424424 then true
425425 else (cfgReverse != unit)
426426 exists
427427 }
428428 }
429429
430430
431431 func getAssetsDataFromPoolAddress (poolContractAddress) = {
432432 let poolAssets = match getString(keyMappingPoolContractAddressToPoolAssets(poolContractAddress)) {
433433 case s: String =>
434434 split(s, SEP)
435435 case _ =>
436436 throwErr(makeString([poolContractAddress, "pool is not found"], " "))
437437 }
438438 let amountAssetInternal = parseIntValue(poolAssets[1])
439439 let priceAssetInternal = parseIntValue(poolAssets[2])
440440 let amountAssetId = getStringValue(keyMappingsInternal2baseAssetId(amountAssetInternal))
441441 let priceAssetId = getStringValue(keyMappingsInternal2baseAssetId(priceAssetInternal))
442442 let lpAssetId = getStringValue(keyMappingPoolContractToLPAsset(poolContractAddress))
443443 $Tuple5(amountAssetId, priceAssetId, lpAssetId, amountAssetInternal, priceAssetInternal)
444444 }
445445
446446
447447 func getPoolCreator (poolContractAddress) = {
448448 let $t01610316240 = getAssetsDataFromPoolAddress(poolContractAddress)
449449 let amountAssetId = $t01610316240._1
450450 let priceAssetId = $t01610316240._2
451451 let lpAssetId = $t01610316240._3
452452 let amountAssetInternal = $t01610316240._4
453453 let priceAssetInternal = $t01610316240._5
454454 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
455455 let poolCreator = invoke(userPoolsContract, "getPoolCreatorREADONLY", [amountAssetId, priceAssetId], nil)
456456 poolCreator
457457 }
458458
459459
460460 func getAddressBalance (addressString,assetIdString) = {
461461 let address = addressFromStringValue(addressString)
462462 if ((assetIdString == "WAVES"))
463463 then wavesBalance(address).regular
464464 else {
465465 let assetId = fromBase58String(assetIdString)
466466 assetBalance(address, assetId)
467467 }
468468 }
469469
470470
471471 func isPoolEmpty (poolContractAddress) = {
472472 let $t01681516952 = getAssetsDataFromPoolAddress(poolContractAddress)
473473 let amountAssetId = $t01681516952._1
474474 let priceAssetId = $t01681516952._2
475475 let lpAssetId = $t01681516952._3
476476 let amountAssetInternal = $t01681516952._4
477477 let priceAssetInternal = $t01681516952._5
478478 if ((getAddressBalance(poolContractAddress, amountAssetId) == 0))
479479 then (getAddressBalance(poolContractAddress, priceAssetId) == 0)
480480 else false
481481 }
482482
483483
484484 @Callable(i)
485485 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
486486
487487
488488
489489 @Callable(i)
490490 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
491491 let $t01726717571 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
492492 case r: Int =>
493493 $Tuple2(true, min([100, max([0, r])]))
494494 case _ =>
495495 match getInteger(this, keyLeasedRatioDefault(assetId)) {
496496 case rd: Int =>
497497 $Tuple2(true, min([100, max([0, rd])]))
498498 case _ =>
499499 $Tuple2(false, 0)
500500 }
501501 }
502502 let isLeasable = $t01726717571._1
503503 let leasedRatio = $t01726717571._2
504504 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
505505 case b: Int =>
506506 max([0, b])
507507 case _ =>
508508 match getInteger(this, keyMinBalanceDefault(assetId)) {
509509 case bd: Int =>
510510 max([0, bd])
511511 case _ =>
512512 0
513513 }
514514 }
515515 let $t01783718061 = if ((assetId == "WAVES"))
516516 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
517517 else $Tuple3("", "", 0)
518518 let proxyAddress = $t01783718061._1
519519 let proxyAssetId = $t01783718061._2
520520 let proxyRateMul = $t01783718061._3
521521 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
522522 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
523523 }
524524
525525
526526
527527 @Callable(i)
528528 func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
529529 then (asset2 == "WAVES")
530530 else false)
531531 then $Tuple2(nil, unit)
532532 else {
533533 let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
534534 let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
535535 let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
536536 let res = if ((ee == unit))
537537 then unit
538538 else drop(value(ee), 4)
539539 $Tuple2(nil, res)
540540 }
541541
542542
543543
544544 @Callable(i)
545545 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
546546
547547
548548
549549 @Callable(i)
550550 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
551551 let checkCaller = mustManager(i)
552552 if ((checkCaller == checkCaller))
553553 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
554554 else throw("Strict value is not equal to itself.")
555555 }
556556
557557
558558
559559 @Callable(i)
560560 func constructorV2 (mathcherPub58Str) = {
561561 let checkCaller = mustManager(i)
562562 if ((checkCaller == checkCaller))
563563 then {
564564 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
565565 if ((mathcerPub == mathcerPub))
566566 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
567567 else throw("Strict value is not equal to itself.")
568568 }
569569 else throw("Strict value is not equal to itself.")
570570 }
571571
572572
573573
574574 @Callable(i)
575575 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
576576 let checkCaller = mustManager(i)
577577 if ((checkCaller == checkCaller))
578578 then {
579579 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
580580 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
581581 }
582582 else throw("Strict value is not equal to itself.")
583583 }
584584
585585
586586
587587 @Callable(i)
588588 func constructorV4 (legacyFactoryContract,legacyPools) = {
589589 let checkCaller = mustManager(i)
590590 if ((checkCaller == checkCaller))
591591 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
592592 else throw("Strict value is not equal to itself.")
593593 }
594594
595595
596596
597597 @Callable(i)
598598 func constructorV5 (assetsStoreContract) = {
599599 let checkCaller = mustManager(i)
600600 if ((checkCaller == checkCaller))
601601 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
602602 else throw("Strict value is not equal to itself.")
603603 }
604604
605605
606606
607607 @Callable(i)
608608 func constructorV6 (votingEmissionContract,priceAssets) = {
609609 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
610610 then true
611611 else "invalid voting emission contract address"]
612612 if ((cheks == cheks))
613613 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
614614 else throw("Strict value is not equal to itself.")
615615 }
616616
617617
618618
619619 @Callable(i)
620620 func setAdmins (adminPubKeys) = {
621621 let checkCaller = mustManager(i)
622622 if ((checkCaller == checkCaller))
623623 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
624624 else throw("Strict value is not equal to itself.")
625625 }
626626
627627
628628
629629 @Callable(i)
630630 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
631631 let checkCaller = mustAdmin(i)
632632 if ((checkCaller == checkCaller))
633633 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
634634 then throwErr((("Pool address " + poolAddress) + " already registered."))
635635 else {
636636 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
637637 let internalAmountAssetId = internalAmountAssetData._1
638638 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
639639 then 2
640640 else 1)
641641 let internalPriceAssetId = internalPriceAssetData._1
642642 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
643643 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
644644 let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
645645 if (poolExists)
646646 then throwErr((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
647647 else {
648648 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
649649 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
650650 then decimalsMultPrice
651651 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
652652 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
653653 then decimalsMultPrice
654654 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
655655 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
656656 let lpAssetId = calculateAssetId(lpAssetIssueAction)
657657 let lpAssetIdStr = toBase58String(lpAssetId)
658658 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
659659 if ((poolActivateInvokeResult == poolActivateInvokeResult))
660660 then if ((poolActivateInvokeResult != "success"))
661661 then throwErr("Pool initialisation error happened.")
662662 else {
663663 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
664664 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
665665 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
666666 then {
667667 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
668668 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
669669 then {
670670 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
671671 if ((setLogoInv == setLogoInv))
672672 then {
673673 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
674674 if ((addAssetsLinkInv == addAssetsLinkInv))
675675 then {
676676 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
677677 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
678678 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)
679679 else throw("Strict value is not equal to itself.")
680680 }
681681 else throw("Strict value is not equal to itself.")
682682 }
683683 else throw("Strict value is not equal to itself.")
684684 }
685685 else throw("Strict value is not equal to itself.")
686686 }
687687 else throw("Strict value is not equal to itself.")
688688 }
689689 else throw("Strict value is not equal to itself.")
690690 }
691691 }
692692 else throw("Strict value is not equal to itself.")
693693 }
694694
695695
696696
697697 @Callable(i)
698698 func managePool (poolAddress,newStatus) = {
699699 let checkCaller = mustManager(i)
700700 if ((checkCaller == checkCaller))
701701 then {
702702 let poolConfig = getPoolConfig(poolAddress)
703703 let poolStatus = poolConfig[idxPoolStatus]
704704 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
705705 let amountAssetStr = poolConfig[idxAmtAssetId]
706706 let priceAssetStr = poolConfig[idxPriceAssetId]
707707 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
708708 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
709709 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
710710 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
711711 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
712712 let poolType = poolConfig[idxPoolType]
713713 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
714714 }
715715 else throw("Strict value is not equal to itself.")
716716 }
717717
718718
719719
720720 @Callable(i)
721721 func emit (amountToEmit) = {
722722 let caller = i.caller
723723 let originCaller = i.originCaller
724724 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
725725 let lpAsset = fromBase58String(lpAssetRequested)
726726 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
727727 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
728728 if ((0 >= amountToEmit))
729729 then nil
730730 else if (containsElement(legacyPools, toString(caller)))
731731 then $Tuple2(nil, legacyFactoryContract)
732732 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
733733 }
734734
735735
736736
737737 @Callable(i)
738738 func burn (amountToBurn) = {
739739 let caller = i.caller
740740 let originCaller = i.originCaller
741741 let payment = value(i.payments[0])
742742 let paymentAmount = value(payment.amount)
743743 let inAmountAssetId = toBase58String(value(payment.assetId))
744744 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
745745 if ((inAmountAssetId != lpAssetRequestedForBurning))
746746 then throwErr("Invalid asset passed.")
747747 else if ((amountToBurn != paymentAmount))
748748 then throwErr("Invalid amount passed.")
749749 else {
750750 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
751751 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
752752 }
753753 }
754754
755755
756756
757757 @Callable(i)
758758 func modifyWeight (lpAssetId,share) = {
759759 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
760760 then true
761761 else mustManager(i)
762762 if ((checkCaller == checkCaller))
763763 then {
764764 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
765765 let poolWeightKey = keyPoolToWeight(poolContractAddress)
766766 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
767767 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
768768 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
769769 let poolWeightNew = share
770770 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
771771 let stakingContract = getStakingAddressOrFail(factoryCfg)
772772 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
773773 if ((onModifyWeightInv == onModifyWeightInv))
774774 then {
775775 let gwxVirtualPoolActions = if ((gwxWeight == 0))
776776 then nil
777777 else [IntegerEntry(gwxWeightKey, 0)]
778778 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
779779 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
780780 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
781781 then nil
782782 else [DeleteEntry(poolWeightHistoryKey)]
783783 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
784784 }
785785 else throw("Strict value is not equal to itself.")
786786 }
787787 else throw("Strict value is not equal to itself.")
788788 }
789789
790790
791791
792792 @Callable(i)
793793 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
794794 let checkCaller = mustManager(i)
795795 if ((checkCaller == checkCaller))
796796 then {
797797 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
798798 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
799799 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
800800 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
801801 let stakingDapp = getStakingAddressOrFail(factoryCfg)
802802 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
803803 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
804804 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
805805 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
806806 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
807807 let btcWeight = getIntOrFail(btcWeightKEY)
808808 let ethWeight = getIntOrFail(ethWeightKEY)
809809 let btcWeightNew = (btcWeight - weightDecrement)
810810 let ethWeightNew = (ethWeight - weightDecrement)
811811 if ((0 >= btcWeightNew))
812812 then throwErr(("invalid btcWeightNew: " + toString(btcWeightNew)))
813813 else if ((0 >= ethWeightNew))
814814 then throwErr(("invalid ethWeightNew: " + toString(ethWeightNew)))
815815 else {
816816 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
817817 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
818818 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
819819 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
820820 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
821821 if ((onModifyWeightBtc == onModifyWeightBtc))
822822 then {
823823 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
824824 if ((onModifyWeightEth == onModifyWeightEth))
825825 then {
826826 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
827827 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
828828 then {
829829 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
830830 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
831831 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)]
832832 else throw("Strict value is not equal to itself.")
833833 }
834834 else throw("Strict value is not equal to itself.")
835835 }
836836 else throw("Strict value is not equal to itself.")
837837 }
838838 else throw("Strict value is not equal to itself.")
839839 }
840840 }
841841 else throw("Strict value is not equal to itself.")
842842 }
843843
844844
845845
846846 @Callable(i)
847847 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
848848 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
849849 case b: Boolean =>
850850 b
851851 case _ =>
852852 false
853853 }
854854 $Tuple2(nil, haveLabel)
855855 }
856856
857857
858858
859859 @Callable(i)
860860 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
861861 let checkCaller = mustAdmin(i)
862862 if ((checkCaller == checkCaller))
863863 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
864864 else throw("Strict value is not equal to itself.")
865865 }
866866
867867
868868
869869 @Callable(i)
870870 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
871- let checkCaller = if ((i.caller == this))
871+ let checkCaller = if (if ((toString(i.caller) == getStringValue(this, keyVotingEmissionContract())))
872+ then true
873+ else (i.caller == this))
872874 then true
873875 else mustAdmin(i)
874876 if ((checkCaller == checkCaller))
875877 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
876878 else throw("Strict value is not equal to itself.")
877879 }
878880
879881
880882
881883 @Callable(i)
882884 func onVerificationLoss (assetId) = {
883885 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
884886 then true
885887 else mustManager(i)
886888 if ((checkCaller == checkCaller))
887889 then {
888890 let priceAssets = getPriceAssets()
889891 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
890892 then true
891893 else throwErr("invalid price assets")
892894 if ((checkPriceAssetsSize == checkPriceAssetsSize))
893895 then {
894896 func cb (acc,priceAsset) = {
895897 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
896898 if ((r == r))
897899 then unit
898900 else throw("Strict value is not equal to itself.")
899901 }
900902
901903 let actions = {
902904 let $l = priceAssets
903905 let $s = size($l)
904906 let $acc0 = unit
905907 func $f0_1 ($a,$i) = if (($i >= $s))
906908 then $a
907909 else cb($a, $l[$i])
908910
909911 func $f0_2 ($a,$i) = if (($i >= $s))
910912 then $a
911913 else throw("List size exceeds 13")
912914
913915 $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)
914916 }
915917 if ((actions == actions))
916918 then $Tuple2(nil, unit)
917919 else throw("Strict value is not equal to itself.")
918920 }
919921 else throw("Strict value is not equal to itself.")
920922 }
921923 else throw("Strict value is not equal to itself.")
922924 }
923925
924926
925927
926928 @Callable(i)
927929 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
928930 let poolConfig = getPoolConfig(poolAddress)
929931 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
930932 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
931933 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
932934 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
933935 then true
934936 else poolOneTokenOperationsDisabled)
935937 }
936938
937939
938940
939941 @Callable(i)
940942 func isPoolSwapDisabledREADONLY (poolAddress) = {
941943 let poolConfig = getPoolConfig(poolAddress)
942944 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
943945 let poolSwapDisabled = valueOrElse(getBoolean(keyPoolSwapDisabled(assetsInternal)), false)
944946 let allPoolsSwapDisabled = valueOrElse(getBoolean(keyAllPoolsSwapDisabled()), false)
945947 $Tuple2(nil, if (allPoolsSwapDisabled)
946948 then true
947949 else poolSwapDisabled)
948950 }
949951
950952
951953
952954 @Callable(i)
953955 func getInFeeREADONLY (poolAddress) = {
954956 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
955957 $Tuple2(nil, fee)
956958 }
957959
958960
959961
960962 @Callable(i)
961963 func getOutFeeREADONLY (poolAddress) = {
962964 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
963965 $Tuple2(nil, fee)
964966 }
965967
966968
967969
968970 @Callable(i)
969971 func getSwapFeeREADONLY (poolAddressStr) = {
970972 let feeOption = match getString(this, keySwapFee(poolAddressStr)) {
971973 case s: String =>
972974 let parts = split(s, SEP)
973975 let poolFee = parseIntValue(parts[1])
974976 let protocolFee = parseIntValue(parts[2])
975977 $Tuple2(poolFee, protocolFee)
976978 case _: Unit =>
977979 unit
978980 case _ =>
979981 throw("Match error")
980982 }
981983 $Tuple2(nil, feeOption)
982984 }
983985
984986
985987
986988 @Callable(i)
987989 func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
988990 let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
989991 let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
990992 let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
991993 let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
992994 let poolExists = if (if (isDefined(amountAssetInternalIdOption))
993995 then isDefined(priceAssetInternalIdOption)
994996 else false)
995997 then isDefined(poolContractAddressOption)
996998 else false
997999 let poolInfo = if (poolExists)
9981000 then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
9991001 else unit
10001002 $Tuple2(nil, poolInfo)
10011003 }
10021004
10031005
10041006
10051007 @Callable(i)
10061008 func getPoolStatusREADONLY (poolAddress) = {
10071009 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
10081010 let amountAssetInternal = poolAssets[1]
10091011 let priceAssetInternal = poolAssets[2]
10101012 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
10111013 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
10121014 }
10131015
10141016
10151017
10161018 @Callable(i)
10171019 func getPoolConfigREADONLY (poolAddress) = {
10181020 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
10191021 let amountAssetInternal = poolAssets[1]
10201022 let priceAssetInternal = poolAssets[2]
10211023 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
10221024 $Tuple2(nil, cfg)
10231025 }
10241026
10251027
10261028
10271029 @Callable(i)
10281030 func getPoolConfigByLpAssetIdREADONLY (lpAssetIdStr) = {
10291031 let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
10301032 let amountAssetInternal = poolAssets[1]
10311033 let priceAssetInternal = poolAssets[2]
10321034 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
10331035 $Tuple2(nil, cfg)
10341036 }
10351037
10361038
10371039
10381040 @Callable(i)
10391041 func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
10401042
10411043
10421044
10431045 @Callable(i)
10441046 func skipOrderValidationREADONLY (poolAddress) = $Tuple2(nil, valueOrElse(getBoolean(keySkipOrderValidation(poolAddress)), false))
10451047
10461048
10471049
10481050 @Callable(i)
10491051 func getChangeAmpConfigREADONLY (poolAddress) = {
10501052 let delay = getIntegerValue(keyChangeAmpDelay(poolAddress))
10511053 let delta = getIntegerValue(keyChangeAmpDelta(poolAddress))
10521054 let target = getIntegerValue(keyChangeAmpTarget(poolAddress))
10531055 $Tuple2(nil, [delay, delta, target])
10541056 }
10551057
10561058
10571059
10581060 @Callable(i)
10591061 func getPoolWeightREADONLY (lpAssetId) = {
10601062 let poolAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
10611063 let weight = valueOrElse(getInteger(keyPoolToWeight(poolAddress)), 0)
10621064 $Tuple2(nil, weight)
10631065 }
10641066
10651067
10661068
10671069 @Callable(i)
10681070 func deletePool (poolContractAddress) = {
10691071 let poolConfig = getPoolConfig(poolContractAddress)
10701072 let checkCaller = if ((toString(i.caller) == getPoolCreator(poolContractAddress)))
10711073 then if (isPoolEmpty(poolContractAddress))
10721074 then true
10731075 else throwErr("Pool is not empty")
10741076 else mustManager(i)
10751077 if ((checkCaller == checkCaller))
10761078 then {
10771079 let checkWeight = if ((valueOrElse(getInteger(keyPoolToWeight(poolContractAddress)), 0) == 0))
10781080 then true
10791081 else throwErr("Pool weight is not Zero")
10801082 if ((checkWeight == checkWeight))
10811083 then {
10821084 let checkStatus = if ((poolConfig[idxPoolStatus] == toString(PoolShutdown)))
10831085 then true
10841086 else throwErr("Pool must be SHUTDOWN (4)")
10851087 if ((checkStatus == checkStatus))
10861088 then {
1087- let $t04091641053 = getAssetsDataFromPoolAddress(poolContractAddress)
1088- let amountAssetId = $t04091641053._1
1089- let priceAssetId = $t04091641053._2
1090- let lpAssetId = $t04091641053._3
1091- let amountAssetInternal = $t04091641053._4
1092- let priceAssetInternal = $t04091641053._5
1089+ let $t04099141128 = getAssetsDataFromPoolAddress(poolContractAddress)
1090+ let amountAssetId = $t04099141128._1
1091+ let priceAssetId = $t04099141128._2
1092+ let lpAssetId = $t04099141128._3
1093+ let amountAssetInternal = $t04099141128._4
1094+ let priceAssetInternal = $t04099141128._5
10931095 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
10941096 let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
10951097 if ((userPoolsInvoke == userPoolsInvoke))
10961098 then {
10971099 let votingEmissionContract = addressFromStringValue(getStringValue(keyVotingEmissionContract()))
10981100 let votingEmissionInvoke = invoke(votingEmissionContract, "deletePool", [amountAssetId, priceAssetId], nil)
10991101 if ((votingEmissionInvoke == votingEmissionInvoke))
11001102 then {
11011103 let assetsStoreContract = addressFromStringValue(getStringValue(keyAssetsStoreContract()))
11021104 let assetsStoreInvoke = invoke(assetsStoreContract, "deletePool", [amountAssetId, priceAssetId], nil)
11031105 if ((assetsStoreInvoke == assetsStoreInvoke))
11041106 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))]
11051107 else throw("Strict value is not equal to itself.")
11061108 }
11071109 else throw("Strict value is not equal to itself.")
11081110 }
11091111 else throw("Strict value is not equal to itself.")
11101112 }
11111113 else throw("Strict value is not equal to itself.")
11121114 }
11131115 else throw("Strict value is not equal to itself.")
11141116 }
11151117 else throw("Strict value is not equal to itself.")
11161118 }
11171119
11181120
11191121
11201122 @Callable(i)
11211123 func getPrice (poolAddressStr) = {
11221124 let poolAddress = addressFromStringValue(poolAddressStr)
11231125 let cfg = getPoolConfig(poolAddressStr)
11241126 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
11251127 let amtAssetId = cfg[idxAmtAssetId]
11261128 let priceAssetId = cfg[idxPriceAssetId]
11271129 let poolLpBalance = value(assetInfo(lpAssetId)).quantity
11281130 let accAmtAssetBalance = {
11291131 let @ = invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil)
11301132 if ($isInstanceOf(@, "Int"))
11311133 then @
11321134 else throw(($getType(@) + " couldn't be cast to Int"))
11331135 }
11341136 let accPriceAssetBalance = {
11351137 let @ = invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil)
11361138 if ($isInstanceOf(@, "Int"))
11371139 then @
11381140 else throw(($getType(@) + " couldn't be cast to Int"))
11391141 }
11401142 let price = if ((poolLpBalance == 0))
11411143 then 0
11421144 else {
11431145 let @ = ({
11441146 let @ = invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLpBalance], nil)
11451147 if ($isInstanceOf(@, "List[Any]"))
11461148 then @
11471149 else throw(($getType(@) + " couldn't be cast to List[Any]"))
11481150 })[0]
11491151 if ($isInstanceOf(@, "String"))
11501152 then @
11511153 else throw(($getType(@) + " couldn't be cast to String"))
11521154 }
11531155 $Tuple2(nil, price)
11541156 }
11551157
11561158
11571159
11581160 @Callable(i)
11591161 func checkBalance (lpAssetIdStr) = {
11601162 let poolAddressStr = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetIdStr))
11611163 let poolAddress = addressFromStringValue(poolAddressStr)
11621164 let cfg = getPoolConfig(poolAddressStr)
11631165 let amountAssetIdStr = cfg[idxAmtAssetId]
11641166 let priceAssetIdStr = cfg[idxPriceAssetId]
11651167 let assetMinAmountDefault = getIntegerValue(this, keyPoolAssetDefaultMinAmount())
11661168 let amountAssetMinAmount = valueOrElse(getInteger(this, keyPoolAssetsMinAmount(amountAssetIdStr)), assetMinAmountDefault)
11671169 let priceAssetMinAmount = valueOrElse(getInteger(this, keyPoolAssetsMinAmount(priceAssetIdStr)), assetMinAmountDefault)
11681170 let amountAssetBalance = {
11691171 let @ = invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amountAssetIdStr], nil)
11701172 if ($isInstanceOf(@, "Int"))
11711173 then @
11721174 else throw(($getType(@) + " couldn't be cast to Int"))
11731175 }
11741176 let priceAssetBalance = {
11751177 let @ = invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetIdStr], nil)
11761178 if ($isInstanceOf(@, "Int"))
11771179 then @
11781180 else throw(($getType(@) + " couldn't be cast to Int"))
11791181 }
11801182 let amountAssetBalanceIsOk = (amountAssetBalance >= (amountAssetMinAmount / 2))
11811183 let priceAssetBalanceIsOk = (priceAssetBalance >= (priceAssetMinAmount / 2))
11821184 let balanceIsOk = if (amountAssetBalanceIsOk)
11831185 then priceAssetBalanceIsOk
11841186 else false
11851187 $Tuple2(nil, balanceIsOk)
11861188 }
11871189
11881190
11891191 @Verifier(tx)
11901192 func verify () = {
11911193 let targetPublicKey = match managerPublicKeyOrUnit() {
11921194 case pk: ByteVector =>
11931195 pk
11941196 case _: Unit =>
11951197 tx.senderPublicKey
11961198 case _ =>
11971199 throw("Match error")
11981200 }
11991201 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
12001202 }
12011203

github/deemru/w8io/169f3d6 
134.85 ms