tx · GDy6DKPHHxygNKUq9udograSwJjBVz2kEcNaJrdPLF7E

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02300000 Waves

2023.02.16 17:53 [2452306] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "GDy6DKPHHxygNKUq9udograSwJjBVz2kEcNaJrdPLF7E", "fee": 2300000, "feeAssetId": null, "timestamp": 1676559232956, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "4CxPoGZHutCS9Lf4FCBgbKjwSDetQKwPNpdEK5pppA36dsyH8i4dsrrvs8GZQwppMKehTchHcgxS1NnXniiVcNiv" ], "script": "base64:BgKwJggCEgASBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICCIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4Ig5QT09MV0VJR0hUTVVMVCIOR1dYdmlydHVhbFBPT0wiDGxhYmVsUG9vbHNMcCINZGVmYXVsdFNwcmVhZCIRZGVjaW1hbHNNdWx0UHJpY2UiA1NFUCIFRU1QVFkiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIhJpZHhJbnRlcm5hbEFzc2V0SWQiD2lkeFJlc3V0QWN0aW9ucyIgaWR4SWZBc3NldElkQ2FsY3VsYXRpb25QZXJmb3JtZWQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3R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YXQBBQFaBQFqBAJhaAkAkQMCBQJiTQABBAJhaQkAkQMCBQJiTQACBAJjZAkAtQkCCQECYUYBCQECYWcCBQJhaAUCYWkFAWoJAJQKAgUDbmlsCQENcGFyc2VJbnRWYWx1ZQEJAJEDAgUCY2QFAXQCYmgBGGdldFBvb2xDb25maWdCeUxwQXNzZXRJZAECY1YEAmJNCQC1CQIJAQJhRgEJAQJhbgEFAmNWBQFqBAJhaAkAkQMCBQJiTQABBAJhaQkAkQMCBQJiTQACBAJjZAkAtQkCCQECYUYBCQECYWcCBQJhaAUCYWkFAWoJAJQKAgUDbmlsBQJjZAJiaAEScG9vbEV4aXN0c1JFQURPTkxZAgJhegJhQQkAlAoCBQNuaWwJAQJjYQIFAmF6BQJhQQECZXIBAmVzAAQCZXQEAmJhCQECYmMAAwkAAQIFAmJhAgpCeXRlVmVjdG9yBAJiagUCYmEFAmJqAwkAAQIFAmJhAgRVbml0CAUCZXIPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmVyCWJvZHlCeXRlcwkAkQMCCAUCZXIGcHJvb2ZzAAAFAmV0DEWbsQ==", "height": 2452306, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: RfVvRpPYsqrkmTxBW8jA1ZTLYNMDsUszYsKCKXErxSj Next: B2xhnz7vEsqM2BvPsZMRag1e4UFpd1MFUmf8KN7p5S6g Diff:
OldNewDifferences
325325 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
326326
327327
328+func poolExistsInternal (amountAssetId,priceAssetId) = {
329+ let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
330+ let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
331+ if (if ((amountAssetInternal == unit))
332+ then true
333+ else (priceAssetInternal == unit))
334+ then false
335+ else {
336+ let amAs = toString(value(amountAssetInternal))
337+ let prAs = toString(value(priceAssetInternal))
338+ let cfg = getString(keyPoolConfig(amAs, prAs))
339+ let cfgReverse = getString(keyPoolConfig(prAs, amAs))
340+ let exists = if ((cfg != unit))
341+ then true
342+ else (cfgReverse != unit)
343+ exists
344+ }
345+ }
346+
347+
328348 @Callable(i)
329349 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
330350
482502 let internalPriceAssetId = internalPriceAssetData._1
483503 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
484504 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
485- let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))
486- if (isDefined(poolConfig))
505+ let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
506+ if (poolExists)
487507 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
488508 else {
489509 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
814834 }
815835
816836
837+
838+@Callable(i)
839+func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
840+
841+
817842 @Verifier(tx)
818843 func verify () = {
819844 let targetPublicKey = match managerPublicKeyOrUnit() {
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 decimalsMultPrice = ((100 * 1000) * 1000)
2121
2222 let SEP = "__"
2323
2424 let EMPTY = ""
2525
2626 let PoolActive = 1
2727
2828 let PoolPutDisabled = 2
2929
3030 let PoolMatcherDisabled = 3
3131
3232 let PoolShutdown = 4
3333
3434 let idxInternalAssetId = 1
3535
3636 let idxResutActions = 2
3737
3838 let idxIfAssetIdCalculationPerformed = 3
3939
4040 let idxPoolAddress = 1
4141
4242 let idxPoolStatus = 2
4343
4444 let idxPoolLPAssetId = 3
4545
4646 let idxAmtAssetId = 4
4747
4848 let idxPriceAssetId = 5
4949
5050 let idxAmtAssetDcm = 6
5151
5252 let idxPriceAssetDcm = 7
5353
5454 let idxIAmtAssetId = 8
5555
5656 let idxIPriceAssetId = 9
5757
5858 let idxLPAssetDcm = 10
5959
6060 let idxPoolType = 11
6161
6262 let poolLabelWxEmission = "WX_EMISSION"
6363
6464 let validPoolLabels = [poolLabelWxEmission]
6565
6666 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
6767
6868
6969 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
7070
7171
7272 func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash"
7373
7474
7575 func swapContract () = "%s__swapContract"
7676
7777
7878 func keyFactoryConfig () = "%s__factoryConfig"
7979
8080
8181 func keyLpTokensList () = "%s__lpTokensList"
8282
8383
8484 func keyPoolScriptHash () = "%s%s__pool__scriptHash"
8585
8686
8787 func keyMatcherPub () = "%s%s__matcher__publicKey"
8888
8989
9090 func keyLegacyFactoryContract () = "%s__legacyFactoryContract"
9191
9292
9393 func keyLegacyPools () = "%s__legacyPools"
9494
9595
9696 func keyManagerPublicKey () = "%s__managerPublicKey"
9797
9898
9999 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
100100
101101
102102 func keyAdminPubKeys () = "%s__adminPubKeys"
103103
104104
105105 func keyAssetsStoreContract () = "%s__assetsStoreContract"
106106
107107
108108 func keyVotingEmissionContract () = "%s__votingEmissionContract"
109109
110110
111111 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
112112
113113
114114 func keyPriceDecimals () = "%s__priceDecimals"
115115
116116
117117 func keyAllPoolsShutdown () = "%s__shutdown"
118118
119119
120120 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
121121
122122
123123 func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
124124
125125
126126 func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
127127
128128
129129 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
130130
131131
132132 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
133133
134134
135135 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
136136
137137
138138 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
139139 let $t037003762 = assetsInternal
140140 let amountAssetInternal = $t037003762._1
141141 let priceAssetInternal = $t037003762._2
142142 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
143143 }
144144
145145
146146 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
147147
148148
149149 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
150150
151151
152152 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
153153
154154
155155 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
156156
157157
158158 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
159159
160160
161161 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
162162
163163
164164 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
165165
166166
167167 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
168168
169169
170170 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
171171
172172
173173 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
174174
175175
176176 func keyInFeeDefault () = "%s__inFeeDefault"
177177
178178
179179 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
180180
181181
182182 func keyOutFeeDefault () = "%s__outFeeDefault"
183183
184184
185185 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
186186
187187
188188 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
189189
190190
191191 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
192192
193193
194194 let IdxFactoryCfgStakingDapp = 1
195195
196196 let IdxFactoryCfgBoostingDapp = 2
197197
198198 let IdxFactoryCfgIdoDapp = 3
199199
200200 let IdxFactoryCfgTeamDapp = 4
201201
202202 let IdxFactoryCfgEmissionDapp = 5
203203
204204 let IdxFactoryCfgRestDapp = 6
205205
206206 let IdxFactoryCfgSlippageDapp = 7
207207
208208 let IdxFactoryCfgDaoDapp = 8
209209
210210 let IdxFactoryCfgMarketingDapp = 9
211211
212212 let IdxFactoryCfgGwxRewardDapp = 10
213213
214214 let IdxFactoryCfgBirdsDapp = 11
215215
216216 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
217217
218218
219219 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
220220
221221
222222 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
223223
224224
225225 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
226226
227227
228228 func getPriceAssets () = match getString(keyPriceAssets()) {
229229 case s: String =>
230230 if ((size(s) == 0))
231231 then nil
232232 else split(s, SEP)
233233 case _ =>
234234 nil
235235 }
236236
237237
238238 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
239239 case s: String =>
240240 fromBase58String(s)
241241 case _: Unit =>
242242 unit
243243 case _ =>
244244 throw("Match error")
245245 }
246246
247247
248248 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
249249 case s: String =>
250250 fromBase58String(s)
251251 case _: Unit =>
252252 unit
253253 case _ =>
254254 throw("Match error")
255255 }
256256
257257
258258 let permissionDeniedError = throw("Permission denied")
259259
260260 let testError = throw("Test error here")
261261
262262 func mustThis (i) = if ((i.caller == this))
263263 then true
264264 else permissionDeniedError
265265
266266
267267 func mustManager (i) = match managerPublicKeyOrUnit() {
268268 case pk: ByteVector =>
269269 if ((i.callerPublicKey == pk))
270270 then true
271271 else permissionDeniedError
272272 case _: Unit =>
273273 mustThis(i)
274274 case _ =>
275275 throw("Match error")
276276 }
277277
278278
279279 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)
280280
281281
282282 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
283283
284284
285285 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)
286286
287287
288288 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
289289
290290
291291 func getPoolConfig (poolAddress) = {
292292 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
293293 let amountAssetInternal = poolAssets[1]
294294 let priceAssetInternal = poolAssets[2]
295295 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
296296 }
297297
298298
299299 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
300300 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
301301 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
302302 let result = if ((internalAssetId == 0))
303303 then {
304304 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
305305 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
306306 }
307307 else $Tuple3(internalAssetId, nil, false)
308308 result
309309 }
310310
311311
312312 func mustAdmin (i) = {
313313 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
314314 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
315315 then true
316316 else {
317317 let isManager = mustManager(i)
318318 if ((isManager == isManager))
319319 then true
320320 else throw("Strict value is not equal to itself.")
321321 }
322322 }
323323
324324
325325 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
326326
327327
328+func poolExistsInternal (amountAssetId,priceAssetId) = {
329+ let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
330+ let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
331+ if (if ((amountAssetInternal == unit))
332+ then true
333+ else (priceAssetInternal == unit))
334+ then false
335+ else {
336+ let amAs = toString(value(amountAssetInternal))
337+ let prAs = toString(value(priceAssetInternal))
338+ let cfg = getString(keyPoolConfig(amAs, prAs))
339+ let cfgReverse = getString(keyPoolConfig(prAs, amAs))
340+ let exists = if ((cfg != unit))
341+ then true
342+ else (cfgReverse != unit)
343+ exists
344+ }
345+ }
346+
347+
328348 @Callable(i)
329349 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
330350
331351
332352
333353 @Callable(i)
334354 func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
335355 then (asset2 == "WAVES")
336356 else false)
337357 then $Tuple2(nil, unit)
338358 else {
339359 let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
340360 let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
341361 let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
342362 let res = if ((ee == unit))
343363 then unit
344364 else drop(value(ee), 4)
345365 $Tuple2(nil, res)
346366 }
347367
348368
349369
350370 @Callable(i)
351371 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
352372
353373
354374
355375 @Callable(i)
356376 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
357377 let checkCaller = mustManager(i)
358378 if ((checkCaller == checkCaller))
359379 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
360380 else throw("Strict value is not equal to itself.")
361381 }
362382
363383
364384
365385 @Callable(i)
366386 func constructorV2 (mathcherPub58Str) = {
367387 let checkCaller = mustManager(i)
368388 if ((checkCaller == checkCaller))
369389 then {
370390 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
371391 if ((mathcerPub == mathcerPub))
372392 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
373393 else throw("Strict value is not equal to itself.")
374394 }
375395 else throw("Strict value is not equal to itself.")
376396 }
377397
378398
379399
380400 @Callable(i)
381401 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
382402 let checkCaller = mustManager(i)
383403 if ((checkCaller == checkCaller))
384404 then {
385405 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
386406 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
387407 }
388408 else throw("Strict value is not equal to itself.")
389409 }
390410
391411
392412
393413 @Callable(i)
394414 func constructorV4 (legacyFactoryContract,legacyPools) = {
395415 let checkCaller = mustManager(i)
396416 if ((checkCaller == checkCaller))
397417 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
398418 else throw("Strict value is not equal to itself.")
399419 }
400420
401421
402422
403423 @Callable(i)
404424 func constructorV5 (assetsStoreContract) = {
405425 let checkCaller = mustManager(i)
406426 if ((checkCaller == checkCaller))
407427 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
408428 else throw("Strict value is not equal to itself.")
409429 }
410430
411431
412432
413433 @Callable(i)
414434 func constructorV6 (votingEmissionContract,priceAssets) = {
415435 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
416436 then true
417437 else "invalid voting emission contract address"]
418438 if ((cheks == cheks))
419439 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
420440 else throw("Strict value is not equal to itself.")
421441 }
422442
423443
424444
425445 @Callable(i)
426446 func setManager (pendingManagerPublicKey) = {
427447 let checkCaller = mustManager(i)
428448 if ((checkCaller == checkCaller))
429449 then {
430450 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
431451 if ((checkManagerPublicKey == checkManagerPublicKey))
432452 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
433453 else throw("Strict value is not equal to itself.")
434454 }
435455 else throw("Strict value is not equal to itself.")
436456 }
437457
438458
439459
440460 @Callable(i)
441461 func confirmManager () = {
442462 let pm = pendingManagerPublicKeyOrUnit()
443463 let hasPM = if (isDefined(pm))
444464 then true
445465 else throw("No pending manager")
446466 if ((hasPM == hasPM))
447467 then {
448468 let checkPM = if ((i.callerPublicKey == value(pm)))
449469 then true
450470 else throw("You are not pending manager")
451471 if ((checkPM == checkPM))
452472 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
453473 else throw("Strict value is not equal to itself.")
454474 }
455475 else throw("Strict value is not equal to itself.")
456476 }
457477
458478
459479
460480 @Callable(i)
461481 func setAdmins (adminPubKeys) = {
462482 let checkCaller = mustManager(i)
463483 if ((checkCaller == checkCaller))
464484 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
465485 else throw("Strict value is not equal to itself.")
466486 }
467487
468488
469489
470490 @Callable(i)
471491 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
472492 let checkCaller = mustAdmin(i)
473493 if ((checkCaller == checkCaller))
474494 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
475495 then throw((("Pool address " + poolAddress) + " already registered."))
476496 else {
477497 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
478498 let internalAmountAssetId = internalAmountAssetData._1
479499 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
480500 then 2
481501 else 1)
482502 let internalPriceAssetId = internalPriceAssetData._1
483503 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
484504 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
485- let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))
486- if (isDefined(poolConfig))
505+ let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
506+ if (poolExists)
487507 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
488508 else {
489509 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
490510 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
491511 then decimalsMultPrice
492512 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
493513 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
494514 then decimalsMultPrice
495515 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
496516 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
497517 let lpAssetId = calculateAssetId(lpAssetIssueAction)
498518 let lpAssetIdStr = toBase58String(lpAssetId)
499519 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
500520 if ((poolActivateInvokeResult == poolActivateInvokeResult))
501521 then if ((poolActivateInvokeResult != "success"))
502522 then throw("Pool initialisation error happened.")
503523 else {
504524 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
505525 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
506526 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
507527 then {
508528 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
509529 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
510530 then {
511531 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
512532 if ((setLogoInv == setLogoInv))
513533 then {
514534 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
515535 if ((addAssetsLinkInv == addAssetsLinkInv))
516536 then {
517537 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
518538 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
519539 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)
520540 else throw("Strict value is not equal to itself.")
521541 }
522542 else throw("Strict value is not equal to itself.")
523543 }
524544 else throw("Strict value is not equal to itself.")
525545 }
526546 else throw("Strict value is not equal to itself.")
527547 }
528548 else throw("Strict value is not equal to itself.")
529549 }
530550 else throw("Strict value is not equal to itself.")
531551 }
532552 }
533553 else throw("Strict value is not equal to itself.")
534554 }
535555
536556
537557
538558 @Callable(i)
539559 func managePool (poolAddress,newStatus) = {
540560 let checkCaller = mustManager(i)
541561 if ((checkCaller == checkCaller))
542562 then {
543563 let poolConfig = getPoolConfig(poolAddress)
544564 let poolStatus = poolConfig[idxPoolStatus]
545565 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
546566 let amountAssetStr = poolConfig[idxAmtAssetId]
547567 let priceAssetStr = poolConfig[idxPriceAssetId]
548568 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
549569 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
550570 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
551571 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
552572 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
553573 let poolType = poolConfig[idxPoolType]
554574 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
555575 }
556576 else throw("Strict value is not equal to itself.")
557577 }
558578
559579
560580
561581 @Callable(i)
562582 func emit (amountToEmit) = {
563583 let caller = i.caller
564584 let originCaller = i.originCaller
565585 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
566586 let lpAsset = fromBase58String(lpAssetRequested)
567587 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
568588 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
569589 if ((0 >= amountToEmit))
570590 then nil
571591 else if (containsElement(legacyPools, toString(caller)))
572592 then $Tuple2(nil, legacyFactoryContract)
573593 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
574594 }
575595
576596
577597
578598 @Callable(i)
579599 func burn (amountToBurn) = {
580600 let caller = i.caller
581601 let originCaller = i.originCaller
582602 let payment = value(i.payments[0])
583603 let paymentAmount = value(payment.amount)
584604 let inAmountAssetId = toBase58String(value(payment.assetId))
585605 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
586606 if ((inAmountAssetId != lpAssetRequestedForBurning))
587607 then throw("Invalid asset passed.")
588608 else if ((amountToBurn != paymentAmount))
589609 then throw("Invalid amount passed.")
590610 else {
591611 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
592612 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
593613 }
594614 }
595615
596616
597617
598618 @Callable(i)
599619 func modifyWeight (lpAssetId,share) = {
600620 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
601621 then true
602622 else mustManager(i)
603623 if ((checkCaller == checkCaller))
604624 then {
605625 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
606626 let poolWeightKey = keyPoolToWeight(poolContractAddress)
607627 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
608628 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
609629 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
610630 let poolWeightNew = share
611631 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
612632 let stakingContract = getStakingAddressOrFail(factoryCfg)
613633 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
614634 if ((onModifyWeightInv == onModifyWeightInv))
615635 then {
616636 let gwxVirtualPoolActions = if ((gwxWeight == 0))
617637 then nil
618638 else [IntegerEntry(gwxWeightKey, 0)]
619639 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
620640 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
621641 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
622642 then nil
623643 else [DeleteEntry(poolWeightHistoryKey)]
624644 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
625645 }
626646 else throw("Strict value is not equal to itself.")
627647 }
628648 else throw("Strict value is not equal to itself.")
629649 }
630650
631651
632652
633653 @Callable(i)
634654 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
635655 let checkCaller = mustManager(i)
636656 if ((checkCaller == checkCaller))
637657 then {
638658 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
639659 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
640660 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
641661 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
642662 let stakingDapp = getStakingAddressOrFail(factoryCfg)
643663 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
644664 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
645665 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
646666 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
647667 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
648668 let btcWeight = getIntOrFail(btcWeightKEY)
649669 let ethWeight = getIntOrFail(ethWeightKEY)
650670 let btcWeightNew = (btcWeight - weightDecrement)
651671 let ethWeightNew = (ethWeight - weightDecrement)
652672 if ((0 >= btcWeightNew))
653673 then throw(("invalid btcWeightNew: " + toString(btcWeightNew)))
654674 else if ((0 >= ethWeightNew))
655675 then throw(("invalid ethWeightNew: " + toString(ethWeightNew)))
656676 else {
657677 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
658678 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
659679 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
660680 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
661681 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
662682 if ((onModifyWeightBtc == onModifyWeightBtc))
663683 then {
664684 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
665685 if ((onModifyWeightEth == onModifyWeightEth))
666686 then {
667687 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
668688 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
669689 then {
670690 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
671691 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
672692 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)]
673693 else throw("Strict value is not equal to itself.")
674694 }
675695 else throw("Strict value is not equal to itself.")
676696 }
677697 else throw("Strict value is not equal to itself.")
678698 }
679699 else throw("Strict value is not equal to itself.")
680700 }
681701 }
682702 else throw("Strict value is not equal to itself.")
683703 }
684704
685705
686706
687707 @Callable(i)
688708 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
689709 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
690710 case b: Boolean =>
691711 b
692712 case _ =>
693713 false
694714 }
695715 $Tuple2(nil, haveLabel)
696716 }
697717
698718
699719
700720 @Callable(i)
701721 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
702722 let checkCaller = mustAdmin(i)
703723 if ((checkCaller == checkCaller))
704724 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
705725 else throw("Strict value is not equal to itself.")
706726 }
707727
708728
709729
710730 @Callable(i)
711731 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
712732 let checkCaller = if (mustThis(i))
713733 then true
714734 else mustAdmin(i)
715735 if ((checkCaller == checkCaller))
716736 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
717737 else throw("Strict value is not equal to itself.")
718738 }
719739
720740
721741
722742 @Callable(i)
723743 func onVerificationLoss (assetId) = {
724744 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
725745 then true
726746 else mustManager(i)
727747 if ((checkCaller == checkCaller))
728748 then {
729749 let priceAssets = getPriceAssets()
730750 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
731751 then true
732752 else throw("invalid price assets")
733753 if ((checkPriceAssetsSize == checkPriceAssetsSize))
734754 then {
735755 func cb (acc,priceAsset) = {
736756 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
737757 if ((r == r))
738758 then unit
739759 else throw("Strict value is not equal to itself.")
740760 }
741761
742762 let actions = {
743763 let $l = priceAssets
744764 let $s = size($l)
745765 let $acc0 = unit
746766 func $f0_1 ($a,$i) = if (($i >= $s))
747767 then $a
748768 else cb($a, $l[$i])
749769
750770 func $f0_2 ($a,$i) = if (($i >= $s))
751771 then $a
752772 else throw("List size exceeds 1")
753773
754774 $f0_2($f0_1($acc0, 0), 1)
755775 }
756776 if ((actions == actions))
757777 then $Tuple2(nil, unit)
758778 else throw("Strict value is not equal to itself.")
759779 }
760780 else throw("Strict value is not equal to itself.")
761781 }
762782 else throw("Strict value is not equal to itself.")
763783 }
764784
765785
766786
767787 @Callable(i)
768788 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
769789 let poolConfig = getPoolConfig(poolAddress)
770790 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
771791 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
772792 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
773793 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
774794 then true
775795 else poolOneTokenOperationsDisabled)
776796 }
777797
778798
779799
780800 @Callable(i)
781801 func getInFeeREADONLY (poolAddress) = {
782802 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
783803 $Tuple2(nil, fee)
784804 }
785805
786806
787807
788808 @Callable(i)
789809 func getOutFeeREADONLY (poolAddress) = {
790810 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
791811 $Tuple2(nil, fee)
792812 }
793813
794814
795815
796816 @Callable(i)
797817 func getPoolStatusREADONLY (poolAddress) = {
798818 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
799819 let amountAssetInternal = poolAssets[1]
800820 let priceAssetInternal = poolAssets[2]
801821 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
802822 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
803823 }
804824
805825
806826
807827 @Callable(i)
808828 func getPoolConfigByLpAssetId (lpAssetIdStr) = {
809829 let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
810830 let amountAssetInternal = poolAssets[1]
811831 let priceAssetInternal = poolAssets[2]
812832 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
813833 $Tuple2(nil, cfg)
814834 }
815835
816836
837+
838+@Callable(i)
839+func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
840+
841+
817842 @Verifier(tx)
818843 func verify () = {
819844 let targetPublicKey = match managerPublicKeyOrUnit() {
820845 case pk: ByteVector =>
821846 pk
822847 case _: Unit =>
823848 tx.senderPublicKey
824849 case _ =>
825850 throw("Match error")
826851 }
827852 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
828853 }
829854

github/deemru/w8io/026f985 
97.25 ms