tx · 13v5fuPeX52ztJijEsR7roi42xryS5wxoHbtP4CRJTYh

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02400000 Waves

2023.03.22 17:26 [2501334] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "13v5fuPeX52ztJijEsR7roi42xryS5wxoHbtP4CRJTYh", "fee": 2400000, "feeAssetId": null, "timestamp": 1679495200542, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "4Bs7Gzxk16tvAXsgx856yRo7Crv5peQpeA5o7sb8HoBx5GNPiEP9GGpXcYDimpphW66GUuS6QS9RmQ6J1weUzu7k" ], "script": "base64:BgLLKAgCEgASBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgSAwoBCCIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4Ig5QT09MV0VJR0hUTVVMVCIOR1dYdmlydHVhbFBPT0wiDGxhYmVsUG9vbHNMcCINZGVmYXVsdFNwcmVhZCILd2F2ZXNTdHJpbmciEWRlY2ltYWxzTXVsdFByaWNlIgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIg9Qb29sUHV0RGlzYWJsZWQiE1Bvb2xNYXRjaGVyRGlzYWJsZWQiDFBvb2xTaHV0ZG93biISaWR4SW50ZXJuYWxBc3NldElkIg9pZHhSZXN1dEFjdGlvbnMiIGlkeElmQXNzZXRJZENhbGN1bGF0aW9uUG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FhBQFrBAJhaQkAkQMCBQJiVAABBAJhagkAkQMCBQJiVAACBAJjawkAtQkCCQECYUsBCQECYWgCBQJhaQUCYWoFAWsJAJQKAgUDbmlsCQENcGFyc2VJbnRWYWx1ZQEJAJEDAgUCY2sFAXUCYm8BFWdldFBvb2xDb25maWdSRUFET05MWQECYWEEAmJUCQC1CQIJAQJhSwEJAQJhdQEFAmFhBQFrBAJhaQkAkQMCBQJiVAABBAJhagkAkQMCBQJiVAACBAJjawkAtQkCCQECYUsBCQECYWgCBQJhaQUCYWoFAWsJAJQKAgUDbmlsBQJjawJibwEYZ2V0UG9vbENvbmZpZ0J5THBBc3NldElkAQJkYwQCYlQJALUJAgkBAmFLAQkBAmFvAQUCZGMFAWsEAmFpCQCRAwIFAmJUAAEEAmFqCQCRAwIFAmJUAAIEAmNrCQC1CQIJAQJhSwEJAQJhaAIFAmFpBQJhagUBawkAlAoCBQNuaWwFAmNrAmJvARJwb29sRXhpc3RzUkVBRE9OTFkCAmFBAmFCCQCUCgIFA25pbAkBAmNoAgUCYUEFAmFCAmJvARtza2lwT3JkZXJWYWxpZGF0aW9uUkVBRE9OTFkBAmFhCQCUCgIFA25pbAkBC3ZhbHVlT3JFbHNlAgkAoAgBCQECYUcBBQJhYQcCYm8BGmdldENoYW5nZUFtcENvbmZpZ1JFQURPTkxZAQJhYQkAlAoCBQNuaWwJALkJAgkAzAgCAgExCQDMCAICATIJAMwIAgIBMwUDbmlsBQFrAQJlRgECZUcABAJlSAQCYmgJAQJiagADCQABAgUCYmgCCkJ5dGVWZWN0b3IEAmJxBQJiaAUCYnEDCQABAgUCYmgCBFVuaXQIBQJlRg9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZUYJYm9keUJ5dGVzCQCRAwIIBQJlRgZwcm9vZnMAAAUCZUhBjSYA", "height": 2501334, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 71U35vAhp8SmC71DfkK3SH6fo6H1ov38gH2mCFxcgwe5 Next: A9tug513aLY9rwMUdqX8sGV55N3LxUsfomzqdPA8Atrx Diff:
OldNewDifferences
895895
896896
897897 @Callable(i)
898-func getChangeAmpConfigREADONLY (poolAddress) = {
899- let delay = getIntegerValue(keyChangeAmpDelay(poolAddress))
900- let delta = getIntegerValue(keyChangeAmpDelta(poolAddress))
901- let target = getIntegerValue(keyChangeAmpTarget(poolAddress))
902- $Tuple2(nil, makeString([toString(delay), toString(delta), toString(target)], SEP))
903- }
898+func getChangeAmpConfigREADONLY (poolAddress) = $Tuple2(nil, makeString(["1", "2", "3"], SEP))
904899
905900
906901 @Verifier(tx)
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 SCALE18 = 18
99
1010 let MULT18 = toBigInt(1000000000000000000)
1111
1212 let POOLWEIGHTMULT = MULT8
1313
1414 let GWXvirtualPOOL = "GWXvirtualPOOL"
1515
1616 let labelPoolsLp = "POOLS_LP"
1717
1818 let defaultSpread = 2000000
1919
2020 let wavesString = "WAVES"
2121
2222 let decimalsMultPrice = ((100 * 1000) * 1000)
2323
2424 let SEP = "__"
2525
2626 let EMPTY = ""
2727
2828 let PoolActive = 1
2929
3030 let PoolPutDisabled = 2
3131
3232 let PoolMatcherDisabled = 3
3333
3434 let PoolShutdown = 4
3535
3636 let idxInternalAssetId = 1
3737
3838 let idxResutActions = 2
3939
4040 let idxIfAssetIdCalculationPerformed = 3
4141
4242 let idxPoolAddress = 1
4343
4444 let idxPoolStatus = 2
4545
4646 let idxPoolLPAssetId = 3
4747
4848 let idxAmtAssetId = 4
4949
5050 let idxPriceAssetId = 5
5151
5252 let idxAmtAssetDcm = 6
5353
5454 let idxPriceAssetDcm = 7
5555
5656 let idxIAmtAssetId = 8
5757
5858 let idxIPriceAssetId = 9
5959
6060 let idxLPAssetDcm = 10
6161
6262 let idxPoolType = 11
6363
6464 let poolLabelWxEmission = "WX_EMISSION"
6565
6666 let validPoolLabels = [poolLabelWxEmission]
6767
6868 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
6969
7070
7171 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
7272
7373
7474 func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash"
7575
7676
7777 func swapContract () = "%s__swapContract"
7878
7979
8080 func keyFactoryConfig () = "%s__factoryConfig"
8181
8282
8383 func keyLpTokensList () = "%s__lpTokensList"
8484
8585
8686 func keyPoolScriptHash () = "%s%s__pool__scriptHash"
8787
8888
8989 func keyMatcherPub () = "%s%s__matcher__publicKey"
9090
9191
9292 func keyLegacyFactoryContract () = "%s__legacyFactoryContract"
9393
9494
9595 func keyLegacyPools () = "%s__legacyPools"
9696
9797
9898 func keyManagerPublicKey () = "%s__managerPublicKey"
9999
100100
101101 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
102102
103103
104104 func keyAdminPubKeys () = "%s__adminPubKeys"
105105
106106
107107 func keyAssetsStoreContract () = "%s__assetsStoreContract"
108108
109109
110110 func keyVotingEmissionContract () = "%s__votingEmissionContract"
111111
112112
113113 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
114114
115115
116116 func keyPriceDecimals () = "%s__priceDecimals"
117117
118118
119119 func keyAllPoolsShutdown () = "%s__shutdown"
120120
121121
122122 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
123123
124124
125125 func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
126126
127127
128128 func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
129129
130130
131131 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
132132
133133
134134 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
135135
136136
137137 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
138138
139139
140140 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
141141 let $t037263788 = assetsInternal
142142 let amountAssetInternal = $t037263788._1
143143 let priceAssetInternal = $t037263788._2
144144 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
145145 }
146146
147147
148148 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
149149
150150
151151 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
152152
153153
154154 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
155155
156156
157157 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
158158
159159
160160 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
161161
162162
163163 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
164164
165165
166166 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
167167
168168
169169 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
170170
171171
172172 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
173173
174174
175175 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
176176
177177
178178 func keyInFeeDefault () = "%s__inFeeDefault"
179179
180180
181181 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
182182
183183
184184 func keyOutFeeDefault () = "%s__outFeeDefault"
185185
186186
187187 func keySkipOrderValidation (poolAddress) = ("%s%s__skipOrderValidation__" + poolAddress)
188188
189189
190190 func keyChangeAmpDelay (poolAddress) = ("%s%s__changeAmpDelay__" + poolAddress)
191191
192192
193193 func keyChangeAmpDelta (poolAddress) = ("%s%s__changeAmpDelta__" + poolAddress)
194194
195195
196196 func keyChangeAmpTarget (poolAddress) = ("%s%s__changeAmpTarget__" + poolAddress)
197197
198198
199199 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
200200
201201
202202 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
203203
204204
205205 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
206206
207207
208208 func parseAssetId (input) = if ((input == wavesString))
209209 then unit
210210 else fromBase58String(input)
211211
212212
213213 let IdxFactoryCfgStakingDapp = 1
214214
215215 let IdxFactoryCfgBoostingDapp = 2
216216
217217 let IdxFactoryCfgIdoDapp = 3
218218
219219 let IdxFactoryCfgTeamDapp = 4
220220
221221 let IdxFactoryCfgEmissionDapp = 5
222222
223223 let IdxFactoryCfgRestDapp = 6
224224
225225 let IdxFactoryCfgSlippageDapp = 7
226226
227227 let IdxFactoryCfgDaoDapp = 8
228228
229229 let IdxFactoryCfgMarketingDapp = 9
230230
231231 let IdxFactoryCfgGwxRewardDapp = 10
232232
233233 let IdxFactoryCfgBirdsDapp = 11
234234
235235 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
236236
237237
238238 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
239239
240240
241241 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
242242
243243
244244 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
245245
246246
247247 func getPriceAssets () = match getString(keyPriceAssets()) {
248248 case s: String =>
249249 if ((size(s) == 0))
250250 then nil
251251 else split(s, SEP)
252252 case _ =>
253253 nil
254254 }
255255
256256
257257 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
258258 case s: String =>
259259 fromBase58String(s)
260260 case _: Unit =>
261261 unit
262262 case _ =>
263263 throw("Match error")
264264 }
265265
266266
267267 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
268268 case s: String =>
269269 fromBase58String(s)
270270 case _: Unit =>
271271 unit
272272 case _ =>
273273 throw("Match error")
274274 }
275275
276276
277277 let permissionDeniedError = throw("Permission denied")
278278
279279 let testError = throw("Test error here")
280280
281281 func mustThis (i) = if ((i.caller == this))
282282 then true
283283 else permissionDeniedError
284284
285285
286286 func mustManager (i) = match managerPublicKeyOrUnit() {
287287 case pk: ByteVector =>
288288 if ((i.callerPublicKey == pk))
289289 then true
290290 else permissionDeniedError
291291 case _: Unit =>
292292 mustThis(i)
293293 case _ =>
294294 throw("Match error")
295295 }
296296
297297
298298 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)
299299
300300
301301 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
302302
303303
304304 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)
305305
306306
307307 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
308308
309309
310310 func getPoolConfig (poolAddress) = {
311311 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
312312 let amountAssetInternal = poolAssets[1]
313313 let priceAssetInternal = poolAssets[2]
314314 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
315315 }
316316
317317
318318 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
319319 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
320320 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
321321 let result = if ((internalAssetId == 0))
322322 then {
323323 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
324324 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
325325 }
326326 else $Tuple3(internalAssetId, nil, false)
327327 result
328328 }
329329
330330
331331 func mustAdmin (i) = {
332332 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
333333 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
334334 then true
335335 else {
336336 let isManager = mustManager(i)
337337 if ((isManager == isManager))
338338 then true
339339 else throw("Strict value is not equal to itself.")
340340 }
341341 }
342342
343343
344344 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
345345
346346
347347 func poolExistsInternal (amountAssetId,priceAssetId) = {
348348 let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
349349 let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
350350 if (if ((amountAssetInternal == unit))
351351 then true
352352 else (priceAssetInternal == unit))
353353 then false
354354 else {
355355 let amAs = toString(value(amountAssetInternal))
356356 let prAs = toString(value(priceAssetInternal))
357357 let cfg = getString(keyPoolConfig(amAs, prAs))
358358 let cfgReverse = getString(keyPoolConfig(prAs, amAs))
359359 let exists = if ((cfg != unit))
360360 then true
361361 else (cfgReverse != unit)
362362 exists
363363 }
364364 }
365365
366366
367367 @Callable(i)
368368 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
369369
370370
371371
372372 @Callable(i)
373373 func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
374374 then (asset2 == "WAVES")
375375 else false)
376376 then $Tuple2(nil, unit)
377377 else {
378378 let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
379379 let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
380380 let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
381381 let res = if ((ee == unit))
382382 then unit
383383 else drop(value(ee), 4)
384384 $Tuple2(nil, res)
385385 }
386386
387387
388388
389389 @Callable(i)
390390 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
391391
392392
393393
394394 @Callable(i)
395395 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
396396 let checkCaller = mustManager(i)
397397 if ((checkCaller == checkCaller))
398398 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
399399 else throw("Strict value is not equal to itself.")
400400 }
401401
402402
403403
404404 @Callable(i)
405405 func constructorV2 (mathcherPub58Str) = {
406406 let checkCaller = mustManager(i)
407407 if ((checkCaller == checkCaller))
408408 then {
409409 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
410410 if ((mathcerPub == mathcerPub))
411411 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
412412 else throw("Strict value is not equal to itself.")
413413 }
414414 else throw("Strict value is not equal to itself.")
415415 }
416416
417417
418418
419419 @Callable(i)
420420 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
421421 let checkCaller = mustManager(i)
422422 if ((checkCaller == checkCaller))
423423 then {
424424 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
425425 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
426426 }
427427 else throw("Strict value is not equal to itself.")
428428 }
429429
430430
431431
432432 @Callable(i)
433433 func constructorV4 (legacyFactoryContract,legacyPools) = {
434434 let checkCaller = mustManager(i)
435435 if ((checkCaller == checkCaller))
436436 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
437437 else throw("Strict value is not equal to itself.")
438438 }
439439
440440
441441
442442 @Callable(i)
443443 func constructorV5 (assetsStoreContract) = {
444444 let checkCaller = mustManager(i)
445445 if ((checkCaller == checkCaller))
446446 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
447447 else throw("Strict value is not equal to itself.")
448448 }
449449
450450
451451
452452 @Callable(i)
453453 func constructorV6 (votingEmissionContract,priceAssets) = {
454454 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
455455 then true
456456 else "invalid voting emission contract address"]
457457 if ((cheks == cheks))
458458 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
459459 else throw("Strict value is not equal to itself.")
460460 }
461461
462462
463463
464464 @Callable(i)
465465 func setManager (pendingManagerPublicKey) = {
466466 let checkCaller = mustManager(i)
467467 if ((checkCaller == checkCaller))
468468 then {
469469 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
470470 if ((checkManagerPublicKey == checkManagerPublicKey))
471471 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
472472 else throw("Strict value is not equal to itself.")
473473 }
474474 else throw("Strict value is not equal to itself.")
475475 }
476476
477477
478478
479479 @Callable(i)
480480 func confirmManager () = {
481481 let pm = pendingManagerPublicKeyOrUnit()
482482 let hasPM = if (isDefined(pm))
483483 then true
484484 else throw("No pending manager")
485485 if ((hasPM == hasPM))
486486 then {
487487 let checkPM = if ((i.callerPublicKey == value(pm)))
488488 then true
489489 else throw("You are not pending manager")
490490 if ((checkPM == checkPM))
491491 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
492492 else throw("Strict value is not equal to itself.")
493493 }
494494 else throw("Strict value is not equal to itself.")
495495 }
496496
497497
498498
499499 @Callable(i)
500500 func setAdmins (adminPubKeys) = {
501501 let checkCaller = mustManager(i)
502502 if ((checkCaller == checkCaller))
503503 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
504504 else throw("Strict value is not equal to itself.")
505505 }
506506
507507
508508
509509 @Callable(i)
510510 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
511511 let checkCaller = mustAdmin(i)
512512 if ((checkCaller == checkCaller))
513513 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
514514 then throw((("Pool address " + poolAddress) + " already registered."))
515515 else {
516516 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
517517 let internalAmountAssetId = internalAmountAssetData._1
518518 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
519519 then 2
520520 else 1)
521521 let internalPriceAssetId = internalPriceAssetData._1
522522 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
523523 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
524524 let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
525525 if (poolExists)
526526 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
527527 else {
528528 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
529529 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
530530 then decimalsMultPrice
531531 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
532532 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
533533 then decimalsMultPrice
534534 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
535535 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
536536 let lpAssetId = calculateAssetId(lpAssetIssueAction)
537537 let lpAssetIdStr = toBase58String(lpAssetId)
538538 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
539539 if ((poolActivateInvokeResult == poolActivateInvokeResult))
540540 then if ((poolActivateInvokeResult != "success"))
541541 then throw("Pool initialisation error happened.")
542542 else {
543543 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
544544 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
545545 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
546546 then {
547547 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
548548 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
549549 then {
550550 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
551551 if ((setLogoInv == setLogoInv))
552552 then {
553553 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
554554 if ((addAssetsLinkInv == addAssetsLinkInv))
555555 then {
556556 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
557557 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
558558 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)
559559 else throw("Strict value is not equal to itself.")
560560 }
561561 else throw("Strict value is not equal to itself.")
562562 }
563563 else throw("Strict value is not equal to itself.")
564564 }
565565 else throw("Strict value is not equal to itself.")
566566 }
567567 else throw("Strict value is not equal to itself.")
568568 }
569569 else throw("Strict value is not equal to itself.")
570570 }
571571 }
572572 else throw("Strict value is not equal to itself.")
573573 }
574574
575575
576576
577577 @Callable(i)
578578 func managePool (poolAddress,newStatus) = {
579579 let checkCaller = mustManager(i)
580580 if ((checkCaller == checkCaller))
581581 then {
582582 let poolConfig = getPoolConfig(poolAddress)
583583 let poolStatus = poolConfig[idxPoolStatus]
584584 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
585585 let amountAssetStr = poolConfig[idxAmtAssetId]
586586 let priceAssetStr = poolConfig[idxPriceAssetId]
587587 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
588588 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
589589 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
590590 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
591591 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
592592 let poolType = poolConfig[idxPoolType]
593593 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
594594 }
595595 else throw("Strict value is not equal to itself.")
596596 }
597597
598598
599599
600600 @Callable(i)
601601 func emit (amountToEmit) = {
602602 let caller = i.caller
603603 let originCaller = i.originCaller
604604 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
605605 let lpAsset = fromBase58String(lpAssetRequested)
606606 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
607607 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
608608 if ((0 >= amountToEmit))
609609 then nil
610610 else if (containsElement(legacyPools, toString(caller)))
611611 then $Tuple2(nil, legacyFactoryContract)
612612 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
613613 }
614614
615615
616616
617617 @Callable(i)
618618 func burn (amountToBurn) = {
619619 let caller = i.caller
620620 let originCaller = i.originCaller
621621 let payment = value(i.payments[0])
622622 let paymentAmount = value(payment.amount)
623623 let inAmountAssetId = toBase58String(value(payment.assetId))
624624 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
625625 if ((inAmountAssetId != lpAssetRequestedForBurning))
626626 then throw("Invalid asset passed.")
627627 else if ((amountToBurn != paymentAmount))
628628 then throw("Invalid amount passed.")
629629 else {
630630 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
631631 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
632632 }
633633 }
634634
635635
636636
637637 @Callable(i)
638638 func modifyWeight (lpAssetId,share) = {
639639 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
640640 then true
641641 else mustManager(i)
642642 if ((checkCaller == checkCaller))
643643 then {
644644 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
645645 let poolWeightKey = keyPoolToWeight(poolContractAddress)
646646 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
647647 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
648648 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
649649 let poolWeightNew = share
650650 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
651651 let stakingContract = getStakingAddressOrFail(factoryCfg)
652652 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
653653 if ((onModifyWeightInv == onModifyWeightInv))
654654 then {
655655 let gwxVirtualPoolActions = if ((gwxWeight == 0))
656656 then nil
657657 else [IntegerEntry(gwxWeightKey, 0)]
658658 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
659659 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
660660 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
661661 then nil
662662 else [DeleteEntry(poolWeightHistoryKey)]
663663 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
664664 }
665665 else throw("Strict value is not equal to itself.")
666666 }
667667 else throw("Strict value is not equal to itself.")
668668 }
669669
670670
671671
672672 @Callable(i)
673673 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
674674 let checkCaller = mustManager(i)
675675 if ((checkCaller == checkCaller))
676676 then {
677677 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
678678 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
679679 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
680680 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
681681 let stakingDapp = getStakingAddressOrFail(factoryCfg)
682682 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
683683 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
684684 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
685685 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
686686 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
687687 let btcWeight = getIntOrFail(btcWeightKEY)
688688 let ethWeight = getIntOrFail(ethWeightKEY)
689689 let btcWeightNew = (btcWeight - weightDecrement)
690690 let ethWeightNew = (ethWeight - weightDecrement)
691691 if ((0 >= btcWeightNew))
692692 then throw(("invalid btcWeightNew: " + toString(btcWeightNew)))
693693 else if ((0 >= ethWeightNew))
694694 then throw(("invalid ethWeightNew: " + toString(ethWeightNew)))
695695 else {
696696 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
697697 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
698698 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
699699 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
700700 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
701701 if ((onModifyWeightBtc == onModifyWeightBtc))
702702 then {
703703 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
704704 if ((onModifyWeightEth == onModifyWeightEth))
705705 then {
706706 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
707707 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
708708 then {
709709 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
710710 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
711711 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)]
712712 else throw("Strict value is not equal to itself.")
713713 }
714714 else throw("Strict value is not equal to itself.")
715715 }
716716 else throw("Strict value is not equal to itself.")
717717 }
718718 else throw("Strict value is not equal to itself.")
719719 }
720720 }
721721 else throw("Strict value is not equal to itself.")
722722 }
723723
724724
725725
726726 @Callable(i)
727727 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
728728 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
729729 case b: Boolean =>
730730 b
731731 case _ =>
732732 false
733733 }
734734 $Tuple2(nil, haveLabel)
735735 }
736736
737737
738738
739739 @Callable(i)
740740 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
741741 let checkCaller = mustAdmin(i)
742742 if ((checkCaller == checkCaller))
743743 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
744744 else throw("Strict value is not equal to itself.")
745745 }
746746
747747
748748
749749 @Callable(i)
750750 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
751751 let checkCaller = if (mustThis(i))
752752 then true
753753 else mustAdmin(i)
754754 if ((checkCaller == checkCaller))
755755 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
756756 else throw("Strict value is not equal to itself.")
757757 }
758758
759759
760760
761761 @Callable(i)
762762 func onVerificationLoss (assetId) = {
763763 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
764764 then true
765765 else mustManager(i)
766766 if ((checkCaller == checkCaller))
767767 then {
768768 let priceAssets = getPriceAssets()
769769 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
770770 then true
771771 else throw("invalid price assets")
772772 if ((checkPriceAssetsSize == checkPriceAssetsSize))
773773 then {
774774 func cb (acc,priceAsset) = {
775775 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
776776 if ((r == r))
777777 then unit
778778 else throw("Strict value is not equal to itself.")
779779 }
780780
781781 let actions = {
782782 let $l = priceAssets
783783 let $s = size($l)
784784 let $acc0 = unit
785785 func $f0_1 ($a,$i) = if (($i >= $s))
786786 then $a
787787 else cb($a, $l[$i])
788788
789789 func $f0_2 ($a,$i) = if (($i >= $s))
790790 then $a
791791 else throw("List size exceeds 2")
792792
793793 $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
794794 }
795795 if ((actions == actions))
796796 then $Tuple2(nil, unit)
797797 else throw("Strict value is not equal to itself.")
798798 }
799799 else throw("Strict value is not equal to itself.")
800800 }
801801 else throw("Strict value is not equal to itself.")
802802 }
803803
804804
805805
806806 @Callable(i)
807807 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
808808 let poolConfig = getPoolConfig(poolAddress)
809809 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
810810 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
811811 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
812812 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
813813 then true
814814 else poolOneTokenOperationsDisabled)
815815 }
816816
817817
818818
819819 @Callable(i)
820820 func getInFeeREADONLY (poolAddress) = {
821821 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
822822 $Tuple2(nil, fee)
823823 }
824824
825825
826826
827827 @Callable(i)
828828 func getOutFeeREADONLY (poolAddress) = {
829829 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
830830 $Tuple2(nil, fee)
831831 }
832832
833833
834834
835835 @Callable(i)
836836 func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
837837 let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
838838 let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
839839 let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
840840 let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
841841 let poolExists = if (if (isDefined(amountAssetInternalIdOption))
842842 then isDefined(priceAssetInternalIdOption)
843843 else false)
844844 then isDefined(poolContractAddressOption)
845845 else false
846846 let poolInfo = if (poolExists)
847847 then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
848848 else unit
849849 $Tuple2(nil, poolInfo)
850850 }
851851
852852
853853
854854 @Callable(i)
855855 func getPoolStatusREADONLY (poolAddress) = {
856856 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
857857 let amountAssetInternal = poolAssets[1]
858858 let priceAssetInternal = poolAssets[2]
859859 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
860860 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
861861 }
862862
863863
864864
865865 @Callable(i)
866866 func getPoolConfigREADONLY (poolAddress) = {
867867 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
868868 let amountAssetInternal = poolAssets[1]
869869 let priceAssetInternal = poolAssets[2]
870870 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
871871 $Tuple2(nil, cfg)
872872 }
873873
874874
875875
876876 @Callable(i)
877877 func getPoolConfigByLpAssetId (lpAssetIdStr) = {
878878 let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
879879 let amountAssetInternal = poolAssets[1]
880880 let priceAssetInternal = poolAssets[2]
881881 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
882882 $Tuple2(nil, cfg)
883883 }
884884
885885
886886
887887 @Callable(i)
888888 func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
889889
890890
891891
892892 @Callable(i)
893893 func skipOrderValidationREADONLY (poolAddress) = $Tuple2(nil, valueOrElse(getBoolean(keySkipOrderValidation(poolAddress)), false))
894894
895895
896896
897897 @Callable(i)
898-func getChangeAmpConfigREADONLY (poolAddress) = {
899- let delay = getIntegerValue(keyChangeAmpDelay(poolAddress))
900- let delta = getIntegerValue(keyChangeAmpDelta(poolAddress))
901- let target = getIntegerValue(keyChangeAmpTarget(poolAddress))
902- $Tuple2(nil, makeString([toString(delay), toString(delta), toString(target)], SEP))
903- }
898+func getChangeAmpConfigREADONLY (poolAddress) = $Tuple2(nil, makeString(["1", "2", "3"], SEP))
904899
905900
906901 @Verifier(tx)
907902 func verify () = {
908903 let targetPublicKey = match managerPublicKeyOrUnit() {
909904 case pk: ByteVector =>
910905 pk
911906 case _: Unit =>
912907 tx.senderPublicKey
913908 case _ =>
914909 throw("Match error")
915910 }
916911 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
917912 }
918913

github/deemru/w8io/026f985 
109.17 ms