tx · 9hxUnoNDR4JTSnaj33niyLiBpaHfh4xMa3wF9PSpWazR

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02300000 Waves

2023.02.28 14:13 [2469478] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "9hxUnoNDR4JTSnaj33niyLiBpaHfh4xMa3wF9PSpWazR", "fee": 2300000, "feeAssetId": null, "timestamp": 1677582863943, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "5QmLYhNX7CdZkGXq7jdBQU9GnXZJTejuJ6WhdsjZY7uG57RDv4pjHqaNuNukGFgi1DT8WTY4TuRctqBxm8UzJToX" ], "script": "base64:BgKwJggCEgASBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICCIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4Ig5QT09MV0VJR0hUTVVMVCIOR1dYdmlydHVhbFBPT0wiDGxhYmVsUG9vbHNMcCINZGVmYXVsdFNwcmVhZCIRZGVjaW1hbHNNdWx0UHJpY2UiA1NFUCIFRU1QVFkiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIhJpZHhJbnRlcm5hbEFzc2V0SWQiD2lkeFJlc3V0QWN0aW9ucyIgaWR4SWZBc3NldElkQ2FsY3VsYXRpb25QZXJmb3JtZWQiDmlkeFBvb2xBZGRyZXNzIg1pZH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C1CQIJAQJhRgEJAQJhdAEFAVoFAWoEAmFoCQCRAwIFAmJNAAEEAmFpCQCRAwIFAmJNAAIEAmNkCQC1CQIJAQJhRgEJAQJhZwIFAmFoBQJhaQUBagkAlAoCBQNuaWwJAQ1wYXJzZUludFZhbHVlAQkAkQMCBQJjZAUBdAJiaAEVZ2V0UG9vbENvbmZpZ1JFQURPTkxZAQFaBAJiTQkAtQkCCQECYUYBCQECYXQBBQFaBQFqBAJhaAkAkQMCBQJiTQABBAJhaQkAkQMCBQJiTQACBAJjZAkAtQkCCQECYUYBCQECYWcCBQJhaAUCYWkFAWoJAJQKAgUDbmlsBQJjZAJiaAEScG9vbEV4aXN0c1JFQURPTkxZAgJhegJhQQkAlAoCBQNuaWwJAQJjYQIFAmF6BQJhQQECZXIBAmVzAAQCZXQEAmJhCQECYmMAAwkAAQIFAmJhAgpCeXRlVmVjdG9yBAJiagUCYmEFAmJqAwkAAQIFAmJhAgRVbml0CAUCZXIPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmVyCWJvZHlCeXRlcwkAkQMCCAUCZXIGcHJvb2ZzAAAFAmV0EKESVQ==", "height": 2469478, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2tjac3axAMwm5fz3YJofeETw2sVtrD1cCuWKjEMMCGaX Next: 7t3DWSiHNELu2EKBLVFGNYkXzezMEjifxMotYpz3LURi Diff:
OldNewDifferences
1616 let labelPoolsLp = "POOLS_LP"
1717
1818 let defaultSpread = 2000000
19-
20-let wavesString = "WAVES"
2119
2220 let decimalsMultPrice = ((100 * 1000) * 1000)
2321
138136
139137
140138 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
141- let $t037263788 = assetsInternal
142- let amountAssetInternal = $t037263788._1
143- let priceAssetInternal = $t037263788._2
139+ let $t037003762 = assetsInternal
140+ let amountAssetInternal = $t037003762._1
141+ let priceAssetInternal = $t037003762._2
144142 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
145143 }
146144
191189
192190
193191 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
194-
195-
196-func parseAssetId (input) = if ((input == wavesString))
197- then unit
198- else fromBase58String(input)
199192
200193
201194 let IdxFactoryCfgStakingDapp = 1
821814
822815
823816 @Callable(i)
824-func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
825- let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
826- let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
827- let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
828- let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
829- let poolExists = if (if (isDefined(amountAssetInternalIdOption))
830- then isDefined(priceAssetInternalIdOption)
831- else false)
832- then isDefined(poolContractAddressOption)
833- else false
834- let poolInfo = if (poolExists)
835- then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
836- else unit
837- $Tuple2(nil, poolInfo)
838- }
839-
840-
841-
842-@Callable(i)
843817 func getPoolStatusREADONLY (poolAddress) = {
844818 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
845819 let amountAssetInternal = poolAssets[1]
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
19-
20-let wavesString = "WAVES"
2119
2220 let decimalsMultPrice = ((100 * 1000) * 1000)
2321
2422 let SEP = "__"
2523
2624 let EMPTY = ""
2725
2826 let PoolActive = 1
2927
3028 let PoolPutDisabled = 2
3129
3230 let PoolMatcherDisabled = 3
3331
3432 let PoolShutdown = 4
3533
3634 let idxInternalAssetId = 1
3735
3836 let idxResutActions = 2
3937
4038 let idxIfAssetIdCalculationPerformed = 3
4139
4240 let idxPoolAddress = 1
4341
4442 let idxPoolStatus = 2
4543
4644 let idxPoolLPAssetId = 3
4745
4846 let idxAmtAssetId = 4
4947
5048 let idxPriceAssetId = 5
5149
5250 let idxAmtAssetDcm = 6
5351
5452 let idxPriceAssetDcm = 7
5553
5654 let idxIAmtAssetId = 8
5755
5856 let idxIPriceAssetId = 9
5957
6058 let idxLPAssetDcm = 10
6159
6260 let idxPoolType = 11
6361
6462 let poolLabelWxEmission = "WX_EMISSION"
6563
6664 let validPoolLabels = [poolLabelWxEmission]
6765
6866 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
6967
7068
7169 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
7270
7371
7472 func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash"
7573
7674
7775 func swapContract () = "%s__swapContract"
7876
7977
8078 func keyFactoryConfig () = "%s__factoryConfig"
8179
8280
8381 func keyLpTokensList () = "%s__lpTokensList"
8482
8583
8684 func keyPoolScriptHash () = "%s%s__pool__scriptHash"
8785
8886
8987 func keyMatcherPub () = "%s%s__matcher__publicKey"
9088
9189
9290 func keyLegacyFactoryContract () = "%s__legacyFactoryContract"
9391
9492
9593 func keyLegacyPools () = "%s__legacyPools"
9694
9795
9896 func keyManagerPublicKey () = "%s__managerPublicKey"
9997
10098
10199 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
102100
103101
104102 func keyAdminPubKeys () = "%s__adminPubKeys"
105103
106104
107105 func keyAssetsStoreContract () = "%s__assetsStoreContract"
108106
109107
110108 func keyVotingEmissionContract () = "%s__votingEmissionContract"
111109
112110
113111 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
114112
115113
116114 func keyPriceDecimals () = "%s__priceDecimals"
117115
118116
119117 func keyAllPoolsShutdown () = "%s__shutdown"
120118
121119
122120 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
123121
124122
125123 func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
126124
127125
128126 func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
129127
130128
131129 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
132130
133131
134132 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
135133
136134
137135 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
138136
139137
140138 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
141- let $t037263788 = assetsInternal
142- let amountAssetInternal = $t037263788._1
143- let priceAssetInternal = $t037263788._2
139+ let $t037003762 = assetsInternal
140+ let amountAssetInternal = $t037003762._1
141+ let priceAssetInternal = $t037003762._2
144142 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
145143 }
146144
147145
148146 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
149147
150148
151149 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
152150
153151
154152 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
155153
156154
157155 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
158156
159157
160158 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
161159
162160
163161 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
164162
165163
166164 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
167165
168166
169167 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
170168
171169
172170 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
173171
174172
175173 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
176174
177175
178176 func keyInFeeDefault () = "%s__inFeeDefault"
179177
180178
181179 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
182180
183181
184182 func keyOutFeeDefault () = "%s__outFeeDefault"
185183
186184
187185 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
188186
189187
190188 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
191189
192190
193191 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
194-
195-
196-func parseAssetId (input) = if ((input == wavesString))
197- then unit
198- else fromBase58String(input)
199192
200193
201194 let IdxFactoryCfgStakingDapp = 1
202195
203196 let IdxFactoryCfgBoostingDapp = 2
204197
205198 let IdxFactoryCfgIdoDapp = 3
206199
207200 let IdxFactoryCfgTeamDapp = 4
208201
209202 let IdxFactoryCfgEmissionDapp = 5
210203
211204 let IdxFactoryCfgRestDapp = 6
212205
213206 let IdxFactoryCfgSlippageDapp = 7
214207
215208 let IdxFactoryCfgDaoDapp = 8
216209
217210 let IdxFactoryCfgMarketingDapp = 9
218211
219212 let IdxFactoryCfgGwxRewardDapp = 10
220213
221214 let IdxFactoryCfgBirdsDapp = 11
222215
223216 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
224217
225218
226219 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
227220
228221
229222 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
230223
231224
232225 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
233226
234227
235228 func getPriceAssets () = match getString(keyPriceAssets()) {
236229 case s: String =>
237230 if ((size(s) == 0))
238231 then nil
239232 else split(s, SEP)
240233 case _ =>
241234 nil
242235 }
243236
244237
245238 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
246239 case s: String =>
247240 fromBase58String(s)
248241 case _: Unit =>
249242 unit
250243 case _ =>
251244 throw("Match error")
252245 }
253246
254247
255248 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
256249 case s: String =>
257250 fromBase58String(s)
258251 case _: Unit =>
259252 unit
260253 case _ =>
261254 throw("Match error")
262255 }
263256
264257
265258 let permissionDeniedError = throw("Permission denied")
266259
267260 let testError = throw("Test error here")
268261
269262 func mustThis (i) = if ((i.caller == this))
270263 then true
271264 else permissionDeniedError
272265
273266
274267 func mustManager (i) = match managerPublicKeyOrUnit() {
275268 case pk: ByteVector =>
276269 if ((i.callerPublicKey == pk))
277270 then true
278271 else permissionDeniedError
279272 case _: Unit =>
280273 mustThis(i)
281274 case _ =>
282275 throw("Match error")
283276 }
284277
285278
286279 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)
287280
288281
289282 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
290283
291284
292285 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)
293286
294287
295288 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
296289
297290
298291 func getPoolConfig (poolAddress) = {
299292 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
300293 let amountAssetInternal = poolAssets[1]
301294 let priceAssetInternal = poolAssets[2]
302295 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
303296 }
304297
305298
306299 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
307300 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
308301 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
309302 let result = if ((internalAssetId == 0))
310303 then {
311304 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
312305 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
313306 }
314307 else $Tuple3(internalAssetId, nil, false)
315308 result
316309 }
317310
318311
319312 func mustAdmin (i) = {
320313 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
321314 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
322315 then true
323316 else {
324317 let isManager = mustManager(i)
325318 if ((isManager == isManager))
326319 then true
327320 else throw("Strict value is not equal to itself.")
328321 }
329322 }
330323
331324
332325 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
333326
334327
335328 func poolExistsInternal (amountAssetId,priceAssetId) = {
336329 let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
337330 let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
338331 if (if ((amountAssetInternal == unit))
339332 then true
340333 else (priceAssetInternal == unit))
341334 then false
342335 else {
343336 let amAs = toString(value(amountAssetInternal))
344337 let prAs = toString(value(priceAssetInternal))
345338 let cfg = getString(keyPoolConfig(amAs, prAs))
346339 let cfgReverse = getString(keyPoolConfig(prAs, amAs))
347340 let exists = if ((cfg != unit))
348341 then true
349342 else (cfgReverse != unit)
350343 exists
351344 }
352345 }
353346
354347
355348 @Callable(i)
356349 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
357350
358351
359352
360353 @Callable(i)
361354 func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
362355 then (asset2 == "WAVES")
363356 else false)
364357 then $Tuple2(nil, unit)
365358 else {
366359 let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
367360 let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
368361 let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
369362 let res = if ((ee == unit))
370363 then unit
371364 else drop(value(ee), 4)
372365 $Tuple2(nil, res)
373366 }
374367
375368
376369
377370 @Callable(i)
378371 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
379372
380373
381374
382375 @Callable(i)
383376 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
384377 let checkCaller = mustManager(i)
385378 if ((checkCaller == checkCaller))
386379 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
387380 else throw("Strict value is not equal to itself.")
388381 }
389382
390383
391384
392385 @Callable(i)
393386 func constructorV2 (mathcherPub58Str) = {
394387 let checkCaller = mustManager(i)
395388 if ((checkCaller == checkCaller))
396389 then {
397390 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
398391 if ((mathcerPub == mathcerPub))
399392 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
400393 else throw("Strict value is not equal to itself.")
401394 }
402395 else throw("Strict value is not equal to itself.")
403396 }
404397
405398
406399
407400 @Callable(i)
408401 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
409402 let checkCaller = mustManager(i)
410403 if ((checkCaller == checkCaller))
411404 then {
412405 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
413406 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
414407 }
415408 else throw("Strict value is not equal to itself.")
416409 }
417410
418411
419412
420413 @Callable(i)
421414 func constructorV4 (legacyFactoryContract,legacyPools) = {
422415 let checkCaller = mustManager(i)
423416 if ((checkCaller == checkCaller))
424417 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
425418 else throw("Strict value is not equal to itself.")
426419 }
427420
428421
429422
430423 @Callable(i)
431424 func constructorV5 (assetsStoreContract) = {
432425 let checkCaller = mustManager(i)
433426 if ((checkCaller == checkCaller))
434427 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
435428 else throw("Strict value is not equal to itself.")
436429 }
437430
438431
439432
440433 @Callable(i)
441434 func constructorV6 (votingEmissionContract,priceAssets) = {
442435 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
443436 then true
444437 else "invalid voting emission contract address"]
445438 if ((cheks == cheks))
446439 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
447440 else throw("Strict value is not equal to itself.")
448441 }
449442
450443
451444
452445 @Callable(i)
453446 func setManager (pendingManagerPublicKey) = {
454447 let checkCaller = mustManager(i)
455448 if ((checkCaller == checkCaller))
456449 then {
457450 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
458451 if ((checkManagerPublicKey == checkManagerPublicKey))
459452 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
460453 else throw("Strict value is not equal to itself.")
461454 }
462455 else throw("Strict value is not equal to itself.")
463456 }
464457
465458
466459
467460 @Callable(i)
468461 func confirmManager () = {
469462 let pm = pendingManagerPublicKeyOrUnit()
470463 let hasPM = if (isDefined(pm))
471464 then true
472465 else throw("No pending manager")
473466 if ((hasPM == hasPM))
474467 then {
475468 let checkPM = if ((i.callerPublicKey == value(pm)))
476469 then true
477470 else throw("You are not pending manager")
478471 if ((checkPM == checkPM))
479472 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
480473 else throw("Strict value is not equal to itself.")
481474 }
482475 else throw("Strict value is not equal to itself.")
483476 }
484477
485478
486479
487480 @Callable(i)
488481 func setAdmins (adminPubKeys) = {
489482 let checkCaller = mustManager(i)
490483 if ((checkCaller == checkCaller))
491484 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
492485 else throw("Strict value is not equal to itself.")
493486 }
494487
495488
496489
497490 @Callable(i)
498491 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
499492 let checkCaller = mustAdmin(i)
500493 if ((checkCaller == checkCaller))
501494 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
502495 then throw((("Pool address " + poolAddress) + " already registered."))
503496 else {
504497 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
505498 let internalAmountAssetId = internalAmountAssetData._1
506499 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
507500 then 2
508501 else 1)
509502 let internalPriceAssetId = internalPriceAssetData._1
510503 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
511504 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
512505 let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
513506 if (poolExists)
514507 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
515508 else {
516509 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
517510 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
518511 then decimalsMultPrice
519512 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
520513 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
521514 then decimalsMultPrice
522515 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
523516 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
524517 let lpAssetId = calculateAssetId(lpAssetIssueAction)
525518 let lpAssetIdStr = toBase58String(lpAssetId)
526519 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
527520 if ((poolActivateInvokeResult == poolActivateInvokeResult))
528521 then if ((poolActivateInvokeResult != "success"))
529522 then throw("Pool initialisation error happened.")
530523 else {
531524 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
532525 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
533526 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
534527 then {
535528 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
536529 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
537530 then {
538531 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
539532 if ((setLogoInv == setLogoInv))
540533 then {
541534 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
542535 if ((addAssetsLinkInv == addAssetsLinkInv))
543536 then {
544537 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
545538 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
546539 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)
547540 else throw("Strict value is not equal to itself.")
548541 }
549542 else throw("Strict value is not equal to itself.")
550543 }
551544 else throw("Strict value is not equal to itself.")
552545 }
553546 else throw("Strict value is not equal to itself.")
554547 }
555548 else throw("Strict value is not equal to itself.")
556549 }
557550 else throw("Strict value is not equal to itself.")
558551 }
559552 }
560553 else throw("Strict value is not equal to itself.")
561554 }
562555
563556
564557
565558 @Callable(i)
566559 func managePool (poolAddress,newStatus) = {
567560 let checkCaller = mustManager(i)
568561 if ((checkCaller == checkCaller))
569562 then {
570563 let poolConfig = getPoolConfig(poolAddress)
571564 let poolStatus = poolConfig[idxPoolStatus]
572565 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
573566 let amountAssetStr = poolConfig[idxAmtAssetId]
574567 let priceAssetStr = poolConfig[idxPriceAssetId]
575568 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
576569 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
577570 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
578571 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
579572 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
580573 let poolType = poolConfig[idxPoolType]
581574 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
582575 }
583576 else throw("Strict value is not equal to itself.")
584577 }
585578
586579
587580
588581 @Callable(i)
589582 func emit (amountToEmit) = {
590583 let caller = i.caller
591584 let originCaller = i.originCaller
592585 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
593586 let lpAsset = fromBase58String(lpAssetRequested)
594587 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
595588 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
596589 if ((0 >= amountToEmit))
597590 then nil
598591 else if (containsElement(legacyPools, toString(caller)))
599592 then $Tuple2(nil, legacyFactoryContract)
600593 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
601594 }
602595
603596
604597
605598 @Callable(i)
606599 func burn (amountToBurn) = {
607600 let caller = i.caller
608601 let originCaller = i.originCaller
609602 let payment = value(i.payments[0])
610603 let paymentAmount = value(payment.amount)
611604 let inAmountAssetId = toBase58String(value(payment.assetId))
612605 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
613606 if ((inAmountAssetId != lpAssetRequestedForBurning))
614607 then throw("Invalid asset passed.")
615608 else if ((amountToBurn != paymentAmount))
616609 then throw("Invalid amount passed.")
617610 else {
618611 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
619612 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
620613 }
621614 }
622615
623616
624617
625618 @Callable(i)
626619 func modifyWeight (lpAssetId,share) = {
627620 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
628621 then true
629622 else mustManager(i)
630623 if ((checkCaller == checkCaller))
631624 then {
632625 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
633626 let poolWeightKey = keyPoolToWeight(poolContractAddress)
634627 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
635628 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
636629 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
637630 let poolWeightNew = share
638631 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
639632 let stakingContract = getStakingAddressOrFail(factoryCfg)
640633 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
641634 if ((onModifyWeightInv == onModifyWeightInv))
642635 then {
643636 let gwxVirtualPoolActions = if ((gwxWeight == 0))
644637 then nil
645638 else [IntegerEntry(gwxWeightKey, 0)]
646639 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
647640 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
648641 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
649642 then nil
650643 else [DeleteEntry(poolWeightHistoryKey)]
651644 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
652645 }
653646 else throw("Strict value is not equal to itself.")
654647 }
655648 else throw("Strict value is not equal to itself.")
656649 }
657650
658651
659652
660653 @Callable(i)
661654 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
662655 let checkCaller = mustManager(i)
663656 if ((checkCaller == checkCaller))
664657 then {
665658 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
666659 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
667660 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
668661 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
669662 let stakingDapp = getStakingAddressOrFail(factoryCfg)
670663 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
671664 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
672665 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
673666 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
674667 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
675668 let btcWeight = getIntOrFail(btcWeightKEY)
676669 let ethWeight = getIntOrFail(ethWeightKEY)
677670 let btcWeightNew = (btcWeight - weightDecrement)
678671 let ethWeightNew = (ethWeight - weightDecrement)
679672 if ((0 >= btcWeightNew))
680673 then throw(("invalid btcWeightNew: " + toString(btcWeightNew)))
681674 else if ((0 >= ethWeightNew))
682675 then throw(("invalid ethWeightNew: " + toString(ethWeightNew)))
683676 else {
684677 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
685678 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
686679 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
687680 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
688681 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
689682 if ((onModifyWeightBtc == onModifyWeightBtc))
690683 then {
691684 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
692685 if ((onModifyWeightEth == onModifyWeightEth))
693686 then {
694687 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
695688 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
696689 then {
697690 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
698691 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
699692 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)]
700693 else throw("Strict value is not equal to itself.")
701694 }
702695 else throw("Strict value is not equal to itself.")
703696 }
704697 else throw("Strict value is not equal to itself.")
705698 }
706699 else throw("Strict value is not equal to itself.")
707700 }
708701 }
709702 else throw("Strict value is not equal to itself.")
710703 }
711704
712705
713706
714707 @Callable(i)
715708 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
716709 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
717710 case b: Boolean =>
718711 b
719712 case _ =>
720713 false
721714 }
722715 $Tuple2(nil, haveLabel)
723716 }
724717
725718
726719
727720 @Callable(i)
728721 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
729722 let checkCaller = mustAdmin(i)
730723 if ((checkCaller == checkCaller))
731724 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
732725 else throw("Strict value is not equal to itself.")
733726 }
734727
735728
736729
737730 @Callable(i)
738731 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
739732 let checkCaller = if (mustThis(i))
740733 then true
741734 else mustAdmin(i)
742735 if ((checkCaller == checkCaller))
743736 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
744737 else throw("Strict value is not equal to itself.")
745738 }
746739
747740
748741
749742 @Callable(i)
750743 func onVerificationLoss (assetId) = {
751744 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
752745 then true
753746 else mustManager(i)
754747 if ((checkCaller == checkCaller))
755748 then {
756749 let priceAssets = getPriceAssets()
757750 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
758751 then true
759752 else throw("invalid price assets")
760753 if ((checkPriceAssetsSize == checkPriceAssetsSize))
761754 then {
762755 func cb (acc,priceAsset) = {
763756 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
764757 if ((r == r))
765758 then unit
766759 else throw("Strict value is not equal to itself.")
767760 }
768761
769762 let actions = {
770763 let $l = priceAssets
771764 let $s = size($l)
772765 let $acc0 = unit
773766 func $f0_1 ($a,$i) = if (($i >= $s))
774767 then $a
775768 else cb($a, $l[$i])
776769
777770 func $f0_2 ($a,$i) = if (($i >= $s))
778771 then $a
779772 else throw("List size exceeds 2")
780773
781774 $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
782775 }
783776 if ((actions == actions))
784777 then $Tuple2(nil, unit)
785778 else throw("Strict value is not equal to itself.")
786779 }
787780 else throw("Strict value is not equal to itself.")
788781 }
789782 else throw("Strict value is not equal to itself.")
790783 }
791784
792785
793786
794787 @Callable(i)
795788 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
796789 let poolConfig = getPoolConfig(poolAddress)
797790 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
798791 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
799792 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
800793 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
801794 then true
802795 else poolOneTokenOperationsDisabled)
803796 }
804797
805798
806799
807800 @Callable(i)
808801 func getInFeeREADONLY (poolAddress) = {
809802 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
810803 $Tuple2(nil, fee)
811804 }
812805
813806
814807
815808 @Callable(i)
816809 func getOutFeeREADONLY (poolAddress) = {
817810 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
818811 $Tuple2(nil, fee)
819812 }
820813
821814
822815
823816 @Callable(i)
824-func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
825- let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
826- let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
827- let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
828- let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
829- let poolExists = if (if (isDefined(amountAssetInternalIdOption))
830- then isDefined(priceAssetInternalIdOption)
831- else false)
832- then isDefined(poolContractAddressOption)
833- else false
834- let poolInfo = if (poolExists)
835- then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
836- else unit
837- $Tuple2(nil, poolInfo)
838- }
839-
840-
841-
842-@Callable(i)
843817 func getPoolStatusREADONLY (poolAddress) = {
844818 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
845819 let amountAssetInternal = poolAssets[1]
846820 let priceAssetInternal = poolAssets[2]
847821 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
848822 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
849823 }
850824
851825
852826
853827 @Callable(i)
854828 func getPoolConfigREADONLY (poolAddress) = {
855829 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
856830 let amountAssetInternal = poolAssets[1]
857831 let priceAssetInternal = poolAssets[2]
858832 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
859833 $Tuple2(nil, cfg)
860834 }
861835
862836
863837
864838 @Callable(i)
865839 func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
866840
867841
868842 @Verifier(tx)
869843 func verify () = {
870844 let targetPublicKey = match managerPublicKeyOrUnit() {
871845 case pk: ByteVector =>
872846 pk
873847 case _: Unit =>
874848 tx.senderPublicKey
875849 case _ =>
876850 throw("Match error")
877851 }
878852 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
879853 }
880854

github/deemru/w8io/169f3d6 
86.07 ms