tx · EqhRtmChFoBdUJGPgWEvDtyjyJ1GW4JDTfPjytX27DLN

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02500000 Waves

2023.07.11 18:37 [2661433] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
108.97 ms