tx · 7QWTpL9726Vun1qSoTrAfJbbNKEinTu31PVws1zsNseH

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02600000 Waves

2023.05.02 09:51 [2559807] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "7QWTpL9726Vun1qSoTrAfJbbNKEinTu31PVws1zsNseH", "fee": 2600000, "feeAssetId": null, "timestamp": 1683010324889, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "PUfytw8j1VHkj9QvLqiH1W3gv8hDA8wzaxgJPZvKSQG8NjsRJCHqY5TSRqynD91QT3oshMm3V4py4LLQxB6LPPf" ], "script": "base64:BgKUKwgCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCBIDCgEIIgZTQ0FMRTgiBU1VTFQ4IgZNVUxUMTIiB1NDQUxFMTgiBk1VTFQxOCIOUE9PTFdFSUdIVE1VTFQiDkdXWHZpcnR1YWxQT09MIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRTcHJlYWQiC3dhdmVzU3RyaW5nIhFkZWNpbWFsc011bHRQcmljZSIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIPUG9vbFB1dERpc2FibGVkIhNQb29sTWF0Y2hlckRpc2FibGVkIgxQb29sU2h1dGRvd24iEmlkeEludGVybmFsQXNzZXRJZCIPaWR4UmVzdXRBY3Rpb25zIiBpZHhJZkF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CCAUCZmQGcHJvb2ZzAAAFAmZmKUKn6A==", "height": 2559807, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AaxkrQ4SAMqRawyTuwASWjtmgFWG3TTxEajXN2iH3FVb Next: pLWsnrdP6ZaJx2eYnARYSaR7fvvXBCKcLE3r2fQSeF5 Diff:
OldNewDifferences
7373 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
7474
7575
76-func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash"
77-
78-
7976 func swapContract () = "%s__swapContract"
8077
8178
140137
141138
142139 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
143- let $t037543816 = assetsInternal
144- let amountAssetInternal = $t037543816._1
145- let priceAssetInternal = $t037543816._2
140+ let $t036743736 = assetsInternal
141+ let amountAssetInternal = $t036743736._1
142+ let priceAssetInternal = $t036743736._2
146143 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
147144 }
148145
397394
398395 @Callable(i)
399396 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
400- let $t01430514609 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
397+ let $t01422514529 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
401398 case r: Int =>
402399 $Tuple2(true, min([100, max([0, r])]))
403400 case _ =>
408405 $Tuple2(false, 0)
409406 }
410407 }
411- let isLeasable = $t01430514609._1
412- let leasedRatio = $t01430514609._2
408+ let isLeasable = $t01422514529._1
409+ let leasedRatio = $t01422514529._2
413410 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
414411 case b: Int =>
415412 max([0, b])
421418 0
422419 }
423420 }
424- let $t01487515099 = if ((assetId == "WAVES"))
421+ let $t01479515019 = if ((assetId == "WAVES"))
425422 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
426423 else $Tuple3("", "", 0)
427- let proxyAddress = $t01487515099._1
428- let proxyAssetId = $t01487515099._2
429- let proxyRateMul = $t01487515099._3
424+ let proxyAddress = $t01479515019._1
425+ let proxyAssetId = $t01479515019._2
426+ let proxyRateMul = $t01479515019._3
430427 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
431428 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
432429 }
812809
813810 @Callable(i)
814811 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
815- let checkCaller = if (mustThis(i))
812+ let checkCaller = if ((i.caller == this))
816813 then true
817814 else mustAdmin(i)
818815 if ((checkCaller == checkCaller))
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 decimalsMultPrice = ((100 * 1000) * 1000)
2525
2626 let SEP = "__"
2727
2828 let EMPTY = ""
2929
3030 let PoolActive = 1
3131
3232 let PoolPutDisabled = 2
3333
3434 let PoolMatcherDisabled = 3
3535
3636 let PoolShutdown = 4
3737
3838 let idxInternalAssetId = 1
3939
4040 let idxResutActions = 2
4141
4242 let idxIfAssetIdCalculationPerformed = 3
4343
4444 let idxPoolAddress = 1
4545
4646 let idxPoolStatus = 2
4747
4848 let idxPoolLPAssetId = 3
4949
5050 let idxAmtAssetId = 4
5151
5252 let idxPriceAssetId = 5
5353
5454 let idxAmtAssetDcm = 6
5555
5656 let idxPriceAssetDcm = 7
5757
5858 let idxIAmtAssetId = 8
5959
6060 let idxIPriceAssetId = 9
6161
6262 let idxLPAssetDcm = 10
6363
6464 let idxPoolType = 11
6565
6666 let poolLabelWxEmission = "WX_EMISSION"
6767
6868 let validPoolLabels = [poolLabelWxEmission]
6969
7070 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
7171
7272
7373 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
7474
7575
76-func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash"
77-
78-
7976 func swapContract () = "%s__swapContract"
8077
8178
8279 func keyFactoryConfig () = "%s__factoryConfig"
8380
8481
8582 func keyLpTokensList () = "%s__lpTokensList"
8683
8784
8885 func keyPoolScriptHash () = "%s%s__pool__scriptHash"
8986
9087
9188 func keyMatcherPub () = "%s%s__matcher__publicKey"
9289
9390
9491 func keyLegacyFactoryContract () = "%s__legacyFactoryContract"
9592
9693
9794 func keyLegacyPools () = "%s__legacyPools"
9895
9996
10097 func keyManagerPublicKey () = "%s__managerPublicKey"
10198
10299
103100 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
104101
105102
106103 func keyAdminPubKeys () = "%s__adminPubKeys"
107104
108105
109106 func keyAssetsStoreContract () = "%s__assetsStoreContract"
110107
111108
112109 func keyVotingEmissionContract () = "%s__votingEmissionContract"
113110
114111
115112 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
116113
117114
118115 func keyPriceDecimals () = "%s__priceDecimals"
119116
120117
121118 func keyAllPoolsShutdown () = "%s__shutdown"
122119
123120
124121 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
125122
126123
127124 func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
128125
129126
130127 func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
131128
132129
133130 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
134131
135132
136133 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
137134
138135
139136 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
140137
141138
142139 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
143- let $t037543816 = assetsInternal
144- let amountAssetInternal = $t037543816._1
145- let priceAssetInternal = $t037543816._2
140+ let $t036743736 = assetsInternal
141+ let amountAssetInternal = $t036743736._1
142+ let priceAssetInternal = $t036743736._2
146143 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
147144 }
148145
149146
150147 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
151148
152149
153150 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
154151
155152
156153 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
157154
158155
159156 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
160157
161158
162159 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
163160
164161
165162 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
166163
167164
168165 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
169166
170167
171168 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
172169
173170
174171 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
175172
176173
177174 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
178175
179176
180177 func keyInFeeDefault () = "%s__inFeeDefault"
181178
182179
183180 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
184181
185182
186183 func keyOutFeeDefault () = "%s__outFeeDefault"
187184
188185
189186 func keySkipOrderValidation (poolAddress) = ("%s%s__skipOrderValidation__" + poolAddress)
190187
191188
192189 func keyChangeAmpDelay (poolAddress) = ("%s%s__changeAmpDelay__" + poolAddress)
193190
194191
195192 func keyChangeAmpDelta (poolAddress) = ("%s%s__changeAmpDelta__" + poolAddress)
196193
197194
198195 func keyChangeAmpTarget (poolAddress) = ("%s%s__changeAmpTarget__" + poolAddress)
199196
200197
201198 func keySWavesProxyAddress () = "%s__sWavesProxyAddress"
202199
203200
204201 func keySWavesAssetId () = "%s__sWavesAssetId"
205202
206203
207204 func keyStakingProfitAddress () = "%s__stakingProfitAddress"
208205
209206
210207 func keyLeasedRatio (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatio", poolAddress, assetId], SEP)
211208
212209
213210 func keyLeasedRatioDefault (assetId) = makeString(["%s%s", "leasedRatioDefault", assetId], SEP)
214211
215212
216213 func keyLeasedRatioTolerance (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatioTolerance", poolAddress, assetId], SEP)
217214
218215
219216 func keyMinBalance (poolAddress,assetId) = makeString(["%s%s%s", "minBalance", poolAddress, assetId], SEP)
220217
221218
222219 func keyMinBalanceDefault (assetId) = makeString(["%s%s", "minBalanceDefault", assetId], SEP)
223220
224221
225222 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
226223
227224
228225 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
229226
230227
231228 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
232229
233230
234231 func parseAssetId (input) = if ((input == wavesString))
235232 then unit
236233 else fromBase58String(input)
237234
238235
239236 let IdxFactoryCfgStakingDapp = 1
240237
241238 let IdxFactoryCfgBoostingDapp = 2
242239
243240 let IdxFactoryCfgIdoDapp = 3
244241
245242 let IdxFactoryCfgTeamDapp = 4
246243
247244 let IdxFactoryCfgEmissionDapp = 5
248245
249246 let IdxFactoryCfgRestDapp = 6
250247
251248 let IdxFactoryCfgSlippageDapp = 7
252249
253250 let IdxFactoryCfgDaoDapp = 8
254251
255252 let IdxFactoryCfgMarketingDapp = 9
256253
257254 let IdxFactoryCfgGwxRewardDapp = 10
258255
259256 let IdxFactoryCfgBirdsDapp = 11
260257
261258 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
262259
263260
264261 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
265262
266263
267264 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
268265
269266
270267 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
271268
272269
273270 func getPriceAssets () = match getString(keyPriceAssets()) {
274271 case s: String =>
275272 if ((size(s) == 0))
276273 then nil
277274 else split(s, SEP)
278275 case _ =>
279276 nil
280277 }
281278
282279
283280 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
284281 case s: String =>
285282 fromBase58String(s)
286283 case _: Unit =>
287284 unit
288285 case _ =>
289286 throw("Match error")
290287 }
291288
292289
293290 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
294291 case s: String =>
295292 fromBase58String(s)
296293 case _: Unit =>
297294 unit
298295 case _ =>
299296 throw("Match error")
300297 }
301298
302299
303300 let permissionDeniedError = throw("Permission denied")
304301
305302 let testError = throw("Test error here")
306303
307304 func mustThis (i) = if ((i.caller == this))
308305 then true
309306 else permissionDeniedError
310307
311308
312309 func mustManager (i) = match managerPublicKeyOrUnit() {
313310 case pk: ByteVector =>
314311 if ((i.callerPublicKey == pk))
315312 then true
316313 else permissionDeniedError
317314 case _: Unit =>
318315 mustThis(i)
319316 case _ =>
320317 throw("Match error")
321318 }
322319
323320
324321 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)
325322
326323
327324 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
328325
329326
330327 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)
331328
332329
333330 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
334331
335332
336333 func getPoolConfig (poolAddress) = {
337334 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
338335 let amountAssetInternal = poolAssets[1]
339336 let priceAssetInternal = poolAssets[2]
340337 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
341338 }
342339
343340
344341 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
345342 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
346343 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
347344 let result = if ((internalAssetId == 0))
348345 then {
349346 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
350347 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
351348 }
352349 else $Tuple3(internalAssetId, nil, false)
353350 result
354351 }
355352
356353
357354 func mustAdmin (i) = {
358355 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
359356 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
360357 then true
361358 else {
362359 let isManager = mustManager(i)
363360 if ((isManager == isManager))
364361 then true
365362 else throw("Strict value is not equal to itself.")
366363 }
367364 }
368365
369366
370367 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
371368
372369
373370 func poolExistsInternal (amountAssetId,priceAssetId) = {
374371 let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
375372 let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
376373 if (if ((amountAssetInternal == unit))
377374 then true
378375 else (priceAssetInternal == unit))
379376 then false
380377 else {
381378 let amAs = toString(value(amountAssetInternal))
382379 let prAs = toString(value(priceAssetInternal))
383380 let cfg = getString(keyPoolConfig(amAs, prAs))
384381 let cfgReverse = getString(keyPoolConfig(prAs, amAs))
385382 let exists = if ((cfg != unit))
386383 then true
387384 else (cfgReverse != unit)
388385 exists
389386 }
390387 }
391388
392389
393390 @Callable(i)
394391 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
395392
396393
397394
398395 @Callable(i)
399396 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
400- let $t01430514609 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
397+ let $t01422514529 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
401398 case r: Int =>
402399 $Tuple2(true, min([100, max([0, r])]))
403400 case _ =>
404401 match getInteger(this, keyLeasedRatioDefault(assetId)) {
405402 case rd: Int =>
406403 $Tuple2(true, min([100, max([0, rd])]))
407404 case _ =>
408405 $Tuple2(false, 0)
409406 }
410407 }
411- let isLeasable = $t01430514609._1
412- let leasedRatio = $t01430514609._2
408+ let isLeasable = $t01422514529._1
409+ let leasedRatio = $t01422514529._2
413410 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
414411 case b: Int =>
415412 max([0, b])
416413 case _ =>
417414 match getInteger(this, keyMinBalanceDefault(assetId)) {
418415 case bd: Int =>
419416 max([0, bd])
420417 case _ =>
421418 0
422419 }
423420 }
424- let $t01487515099 = if ((assetId == "WAVES"))
421+ let $t01479515019 = if ((assetId == "WAVES"))
425422 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
426423 else $Tuple3("", "", 0)
427- let proxyAddress = $t01487515099._1
428- let proxyAssetId = $t01487515099._2
429- let proxyRateMul = $t01487515099._3
424+ let proxyAddress = $t01479515019._1
425+ let proxyAssetId = $t01479515019._2
426+ let proxyRateMul = $t01479515019._3
430427 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
431428 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
432429 }
433430
434431
435432
436433 @Callable(i)
437434 func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
438435 then (asset2 == "WAVES")
439436 else false)
440437 then $Tuple2(nil, unit)
441438 else {
442439 let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
443440 let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
444441 let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
445442 let res = if ((ee == unit))
446443 then unit
447444 else drop(value(ee), 4)
448445 $Tuple2(nil, res)
449446 }
450447
451448
452449
453450 @Callable(i)
454451 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
455452
456453
457454
458455 @Callable(i)
459456 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
460457 let checkCaller = mustManager(i)
461458 if ((checkCaller == checkCaller))
462459 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
463460 else throw("Strict value is not equal to itself.")
464461 }
465462
466463
467464
468465 @Callable(i)
469466 func constructorV2 (mathcherPub58Str) = {
470467 let checkCaller = mustManager(i)
471468 if ((checkCaller == checkCaller))
472469 then {
473470 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
474471 if ((mathcerPub == mathcerPub))
475472 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
476473 else throw("Strict value is not equal to itself.")
477474 }
478475 else throw("Strict value is not equal to itself.")
479476 }
480477
481478
482479
483480 @Callable(i)
484481 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
485482 let checkCaller = mustManager(i)
486483 if ((checkCaller == checkCaller))
487484 then {
488485 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
489486 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
490487 }
491488 else throw("Strict value is not equal to itself.")
492489 }
493490
494491
495492
496493 @Callable(i)
497494 func constructorV4 (legacyFactoryContract,legacyPools) = {
498495 let checkCaller = mustManager(i)
499496 if ((checkCaller == checkCaller))
500497 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
501498 else throw("Strict value is not equal to itself.")
502499 }
503500
504501
505502
506503 @Callable(i)
507504 func constructorV5 (assetsStoreContract) = {
508505 let checkCaller = mustManager(i)
509506 if ((checkCaller == checkCaller))
510507 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
511508 else throw("Strict value is not equal to itself.")
512509 }
513510
514511
515512
516513 @Callable(i)
517514 func constructorV6 (votingEmissionContract,priceAssets) = {
518515 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
519516 then true
520517 else "invalid voting emission contract address"]
521518 if ((cheks == cheks))
522519 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
523520 else throw("Strict value is not equal to itself.")
524521 }
525522
526523
527524
528525 @Callable(i)
529526 func setManager (pendingManagerPublicKey) = {
530527 let checkCaller = mustManager(i)
531528 if ((checkCaller == checkCaller))
532529 then {
533530 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
534531 if ((checkManagerPublicKey == checkManagerPublicKey))
535532 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
536533 else throw("Strict value is not equal to itself.")
537534 }
538535 else throw("Strict value is not equal to itself.")
539536 }
540537
541538
542539
543540 @Callable(i)
544541 func confirmManager () = {
545542 let pm = pendingManagerPublicKeyOrUnit()
546543 let hasPM = if (isDefined(pm))
547544 then true
548545 else throw("No pending manager")
549546 if ((hasPM == hasPM))
550547 then {
551548 let checkPM = if ((i.callerPublicKey == value(pm)))
552549 then true
553550 else throw("You are not pending manager")
554551 if ((checkPM == checkPM))
555552 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
556553 else throw("Strict value is not equal to itself.")
557554 }
558555 else throw("Strict value is not equal to itself.")
559556 }
560557
561558
562559
563560 @Callable(i)
564561 func setAdmins (adminPubKeys) = {
565562 let checkCaller = mustManager(i)
566563 if ((checkCaller == checkCaller))
567564 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
568565 else throw("Strict value is not equal to itself.")
569566 }
570567
571568
572569
573570 @Callable(i)
574571 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
575572 let checkCaller = mustAdmin(i)
576573 if ((checkCaller == checkCaller))
577574 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
578575 then throw((("Pool address " + poolAddress) + " already registered."))
579576 else {
580577 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
581578 let internalAmountAssetId = internalAmountAssetData._1
582579 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
583580 then 2
584581 else 1)
585582 let internalPriceAssetId = internalPriceAssetData._1
586583 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
587584 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
588585 let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
589586 if (poolExists)
590587 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
591588 else {
592589 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
593590 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
594591 then decimalsMultPrice
595592 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
596593 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
597594 then decimalsMultPrice
598595 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
599596 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
600597 let lpAssetId = calculateAssetId(lpAssetIssueAction)
601598 let lpAssetIdStr = toBase58String(lpAssetId)
602599 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
603600 if ((poolActivateInvokeResult == poolActivateInvokeResult))
604601 then if ((poolActivateInvokeResult != "success"))
605602 then throw("Pool initialisation error happened.")
606603 else {
607604 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
608605 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
609606 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
610607 then {
611608 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
612609 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
613610 then {
614611 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
615612 if ((setLogoInv == setLogoInv))
616613 then {
617614 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
618615 if ((addAssetsLinkInv == addAssetsLinkInv))
619616 then {
620617 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
621618 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
622619 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)
623620 else throw("Strict value is not equal to itself.")
624621 }
625622 else throw("Strict value is not equal to itself.")
626623 }
627624 else throw("Strict value is not equal to itself.")
628625 }
629626 else throw("Strict value is not equal to itself.")
630627 }
631628 else throw("Strict value is not equal to itself.")
632629 }
633630 else throw("Strict value is not equal to itself.")
634631 }
635632 }
636633 else throw("Strict value is not equal to itself.")
637634 }
638635
639636
640637
641638 @Callable(i)
642639 func managePool (poolAddress,newStatus) = {
643640 let checkCaller = mustManager(i)
644641 if ((checkCaller == checkCaller))
645642 then {
646643 let poolConfig = getPoolConfig(poolAddress)
647644 let poolStatus = poolConfig[idxPoolStatus]
648645 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
649646 let amountAssetStr = poolConfig[idxAmtAssetId]
650647 let priceAssetStr = poolConfig[idxPriceAssetId]
651648 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
652649 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
653650 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
654651 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
655652 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
656653 let poolType = poolConfig[idxPoolType]
657654 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
658655 }
659656 else throw("Strict value is not equal to itself.")
660657 }
661658
662659
663660
664661 @Callable(i)
665662 func emit (amountToEmit) = {
666663 let caller = i.caller
667664 let originCaller = i.originCaller
668665 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
669666 let lpAsset = fromBase58String(lpAssetRequested)
670667 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
671668 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
672669 if ((0 >= amountToEmit))
673670 then nil
674671 else if (containsElement(legacyPools, toString(caller)))
675672 then $Tuple2(nil, legacyFactoryContract)
676673 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
677674 }
678675
679676
680677
681678 @Callable(i)
682679 func burn (amountToBurn) = {
683680 let caller = i.caller
684681 let originCaller = i.originCaller
685682 let payment = value(i.payments[0])
686683 let paymentAmount = value(payment.amount)
687684 let inAmountAssetId = toBase58String(value(payment.assetId))
688685 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
689686 if ((inAmountAssetId != lpAssetRequestedForBurning))
690687 then throw("Invalid asset passed.")
691688 else if ((amountToBurn != paymentAmount))
692689 then throw("Invalid amount passed.")
693690 else {
694691 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
695692 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
696693 }
697694 }
698695
699696
700697
701698 @Callable(i)
702699 func modifyWeight (lpAssetId,share) = {
703700 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
704701 then true
705702 else mustManager(i)
706703 if ((checkCaller == checkCaller))
707704 then {
708705 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
709706 let poolWeightKey = keyPoolToWeight(poolContractAddress)
710707 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
711708 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
712709 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
713710 let poolWeightNew = share
714711 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
715712 let stakingContract = getStakingAddressOrFail(factoryCfg)
716713 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
717714 if ((onModifyWeightInv == onModifyWeightInv))
718715 then {
719716 let gwxVirtualPoolActions = if ((gwxWeight == 0))
720717 then nil
721718 else [IntegerEntry(gwxWeightKey, 0)]
722719 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
723720 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
724721 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
725722 then nil
726723 else [DeleteEntry(poolWeightHistoryKey)]
727724 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
728725 }
729726 else throw("Strict value is not equal to itself.")
730727 }
731728 else throw("Strict value is not equal to itself.")
732729 }
733730
734731
735732
736733 @Callable(i)
737734 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
738735 let checkCaller = mustManager(i)
739736 if ((checkCaller == checkCaller))
740737 then {
741738 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
742739 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
743740 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
744741 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
745742 let stakingDapp = getStakingAddressOrFail(factoryCfg)
746743 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
747744 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
748745 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
749746 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
750747 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
751748 let btcWeight = getIntOrFail(btcWeightKEY)
752749 let ethWeight = getIntOrFail(ethWeightKEY)
753750 let btcWeightNew = (btcWeight - weightDecrement)
754751 let ethWeightNew = (ethWeight - weightDecrement)
755752 if ((0 >= btcWeightNew))
756753 then throw(("invalid btcWeightNew: " + toString(btcWeightNew)))
757754 else if ((0 >= ethWeightNew))
758755 then throw(("invalid ethWeightNew: " + toString(ethWeightNew)))
759756 else {
760757 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
761758 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
762759 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
763760 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
764761 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
765762 if ((onModifyWeightBtc == onModifyWeightBtc))
766763 then {
767764 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
768765 if ((onModifyWeightEth == onModifyWeightEth))
769766 then {
770767 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
771768 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
772769 then {
773770 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
774771 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
775772 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)]
776773 else throw("Strict value is not equal to itself.")
777774 }
778775 else throw("Strict value is not equal to itself.")
779776 }
780777 else throw("Strict value is not equal to itself.")
781778 }
782779 else throw("Strict value is not equal to itself.")
783780 }
784781 }
785782 else throw("Strict value is not equal to itself.")
786783 }
787784
788785
789786
790787 @Callable(i)
791788 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
792789 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
793790 case b: Boolean =>
794791 b
795792 case _ =>
796793 false
797794 }
798795 $Tuple2(nil, haveLabel)
799796 }
800797
801798
802799
803800 @Callable(i)
804801 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
805802 let checkCaller = mustAdmin(i)
806803 if ((checkCaller == checkCaller))
807804 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
808805 else throw("Strict value is not equal to itself.")
809806 }
810807
811808
812809
813810 @Callable(i)
814811 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
815- let checkCaller = if (mustThis(i))
812+ let checkCaller = if ((i.caller == this))
816813 then true
817814 else mustAdmin(i)
818815 if ((checkCaller == checkCaller))
819816 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
820817 else throw("Strict value is not equal to itself.")
821818 }
822819
823820
824821
825822 @Callable(i)
826823 func onVerificationLoss (assetId) = {
827824 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
828825 then true
829826 else mustManager(i)
830827 if ((checkCaller == checkCaller))
831828 then {
832829 let priceAssets = getPriceAssets()
833830 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
834831 then true
835832 else throw("invalid price assets")
836833 if ((checkPriceAssetsSize == checkPriceAssetsSize))
837834 then {
838835 func cb (acc,priceAsset) = {
839836 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
840837 if ((r == r))
841838 then unit
842839 else throw("Strict value is not equal to itself.")
843840 }
844841
845842 let actions = {
846843 let $l = priceAssets
847844 let $s = size($l)
848845 let $acc0 = unit
849846 func $f0_1 ($a,$i) = if (($i >= $s))
850847 then $a
851848 else cb($a, $l[$i])
852849
853850 func $f0_2 ($a,$i) = if (($i >= $s))
854851 then $a
855852 else throw("List size exceeds 4")
856853
857854 $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4)
858855 }
859856 if ((actions == actions))
860857 then $Tuple2(nil, unit)
861858 else throw("Strict value is not equal to itself.")
862859 }
863860 else throw("Strict value is not equal to itself.")
864861 }
865862 else throw("Strict value is not equal to itself.")
866863 }
867864
868865
869866
870867 @Callable(i)
871868 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
872869 let poolConfig = getPoolConfig(poolAddress)
873870 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
874871 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
875872 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
876873 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
877874 then true
878875 else poolOneTokenOperationsDisabled)
879876 }
880877
881878
882879
883880 @Callable(i)
884881 func getInFeeREADONLY (poolAddress) = {
885882 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
886883 $Tuple2(nil, fee)
887884 }
888885
889886
890887
891888 @Callable(i)
892889 func getOutFeeREADONLY (poolAddress) = {
893890 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
894891 $Tuple2(nil, fee)
895892 }
896893
897894
898895
899896 @Callable(i)
900897 func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
901898 let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
902899 let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
903900 let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
904901 let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
905902 let poolExists = if (if (isDefined(amountAssetInternalIdOption))
906903 then isDefined(priceAssetInternalIdOption)
907904 else false)
908905 then isDefined(poolContractAddressOption)
909906 else false
910907 let poolInfo = if (poolExists)
911908 then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
912909 else unit
913910 $Tuple2(nil, poolInfo)
914911 }
915912
916913
917914
918915 @Callable(i)
919916 func getPoolStatusREADONLY (poolAddress) = {
920917 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
921918 let amountAssetInternal = poolAssets[1]
922919 let priceAssetInternal = poolAssets[2]
923920 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
924921 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
925922 }
926923
927924
928925
929926 @Callable(i)
930927 func getPoolConfigREADONLY (poolAddress) = {
931928 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
932929 let amountAssetInternal = poolAssets[1]
933930 let priceAssetInternal = poolAssets[2]
934931 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
935932 $Tuple2(nil, cfg)
936933 }
937934
938935
939936
940937 @Callable(i)
941938 func getPoolConfigByLpAssetIdREADONLY (lpAssetIdStr) = {
942939 let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
943940 let amountAssetInternal = poolAssets[1]
944941 let priceAssetInternal = poolAssets[2]
945942 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
946943 $Tuple2(nil, cfg)
947944 }
948945
949946
950947
951948 @Callable(i)
952949 func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
953950
954951
955952
956953 @Callable(i)
957954 func skipOrderValidationREADONLY (poolAddress) = $Tuple2(nil, valueOrElse(getBoolean(keySkipOrderValidation(poolAddress)), false))
958955
959956
960957
961958 @Callable(i)
962959 func getChangeAmpConfigREADONLY (poolAddress) = {
963960 let delay = getIntegerValue(keyChangeAmpDelay(poolAddress))
964961 let delta = getIntegerValue(keyChangeAmpDelta(poolAddress))
965962 let target = getIntegerValue(keyChangeAmpTarget(poolAddress))
966963 $Tuple2(nil, [delay, delta, target])
967964 }
968965
969966
970967
971968 @Callable(i)
972969 func getPoolWeightREADONLY (lpAssetId) = {
973970 let poolAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
974971 let weight = valueOrElse(getInteger(keyPoolToWeight(poolAddress)), 0)
975972 $Tuple2(nil, weight)
976973 }
977974
978975
979976 @Verifier(tx)
980977 func verify () = {
981978 let targetPublicKey = match managerPublicKeyOrUnit() {
982979 case pk: ByteVector =>
983980 pk
984981 case _: Unit =>
985982 tx.senderPublicKey
986983 case _ =>
987984 throw("Match error")
988985 }
989986 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
990987 }
991988

github/deemru/w8io/026f985 
101.72 ms