tx · 6rHDHg4HtAMbDg7ErtEDeXfvfauGpV6aR7i7D8MW28pL

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02300000 Waves

2023.02.15 13:40 [2450613] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "6rHDHg4HtAMbDg7ErtEDeXfvfauGpV6aR7i7D8MW28pL", "fee": 2300000, "feeAssetId": null, "timestamp": 1676457686806, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "4gN8gQBCg31oo2f1V7DCtn3MYkww8a4U993CUA9XFeuxrqJEpPyqpce8jaz1sL9gLAREbHTUWJfV26EMGhEf92xk" ], "script": "base64:BgLqJQgCEgASBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCCIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4Ig5QT09MV0VJR0hUTVVMVCIOR1dYdmlydHVhbFBPT0wiDGxhYmVsUG9vbHNMcCINZGVmYXVsdFNwcmVhZCIRZGVjaW1hbHNNdWx0UHJpY2UiA1NFUCIFRU1QVFkiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIhJpZHhJbnRlcm5hbEFzc2V0SWQiD2lkeFJlc3V0QWN0aW9ucyIgaWR4SWZBc3NldElkQ2FsY3VsYXRpb25QZXJmb3JtZWQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3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QIFAmJhAgRVbml0CAUCZWwPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmVsCWJvZHlCeXRlcwkAkQMCCAUCZWwGcHJvb2ZzAAAFAmVuzyGNNQ==", "height": 2450613, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9HajWY2gqWuyC1i3pCZYg4QDe7ijQpPX36NbWtEhxj6V Next: RfVvRpPYsqrkmTxBW8jA1ZTLYNMDsUszYsKCKXErxSj Diff:
OldNewDifferences
331331
332332
333333 @Callable(i)
334-func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = {
335- let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
336- let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
337- let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
338- let res = if ((ee == unit))
339- then unit
340- else drop(value(ee), 4)
341- $Tuple2(nil, res)
342- }
334+func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
335+ then (asset2 == "WAVES")
336+ else false)
337+ then $Tuple2(nil, unit)
338+ else {
339+ let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
340+ let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
341+ let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
342+ let res = if ((ee == unit))
343+ then unit
344+ else drop(value(ee), 4)
345+ $Tuple2(nil, res)
346+ }
343347
344348
345349
799803 }
800804
801805
806+
807+@Callable(i)
808+func getPoolAssetsByLpAssetId (lpAssetIdStr) = {
809+ let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
810+ let amountAssetInternal = poolAssets[1]
811+ let priceAssetInternal = poolAssets[2]
812+ let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
813+ $Tuple2(nil, cfg)
814+ }
815+
816+
802817 @Verifier(tx)
803818 func verify () = {
804819 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
328328 @Callable(i)
329329 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
330330
331331
332332
333333 @Callable(i)
334-func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = {
335- let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
336- let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
337- let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
338- let res = if ((ee == unit))
339- then unit
340- else drop(value(ee), 4)
341- $Tuple2(nil, res)
342- }
334+func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
335+ then (asset2 == "WAVES")
336+ else false)
337+ then $Tuple2(nil, unit)
338+ else {
339+ let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
340+ let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
341+ let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
342+ let res = if ((ee == unit))
343+ then unit
344+ else drop(value(ee), 4)
345+ $Tuple2(nil, res)
346+ }
343347
344348
345349
346350 @Callable(i)
347351 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
348352
349353
350354
351355 @Callable(i)
352356 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
353357 let checkCaller = mustManager(i)
354358 if ((checkCaller == checkCaller))
355359 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
356360 else throw("Strict value is not equal to itself.")
357361 }
358362
359363
360364
361365 @Callable(i)
362366 func constructorV2 (mathcherPub58Str) = {
363367 let checkCaller = mustManager(i)
364368 if ((checkCaller == checkCaller))
365369 then {
366370 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
367371 if ((mathcerPub == mathcerPub))
368372 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
369373 else throw("Strict value is not equal to itself.")
370374 }
371375 else throw("Strict value is not equal to itself.")
372376 }
373377
374378
375379
376380 @Callable(i)
377381 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
378382 let checkCaller = mustManager(i)
379383 if ((checkCaller == checkCaller))
380384 then {
381385 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
382386 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
383387 }
384388 else throw("Strict value is not equal to itself.")
385389 }
386390
387391
388392
389393 @Callable(i)
390394 func constructorV4 (legacyFactoryContract,legacyPools) = {
391395 let checkCaller = mustManager(i)
392396 if ((checkCaller == checkCaller))
393397 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
394398 else throw("Strict value is not equal to itself.")
395399 }
396400
397401
398402
399403 @Callable(i)
400404 func constructorV5 (assetsStoreContract) = {
401405 let checkCaller = mustManager(i)
402406 if ((checkCaller == checkCaller))
403407 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
404408 else throw("Strict value is not equal to itself.")
405409 }
406410
407411
408412
409413 @Callable(i)
410414 func constructorV6 (votingEmissionContract,priceAssets) = {
411415 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
412416 then true
413417 else "invalid voting emission contract address"]
414418 if ((cheks == cheks))
415419 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
416420 else throw("Strict value is not equal to itself.")
417421 }
418422
419423
420424
421425 @Callable(i)
422426 func setManager (pendingManagerPublicKey) = {
423427 let checkCaller = mustManager(i)
424428 if ((checkCaller == checkCaller))
425429 then {
426430 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
427431 if ((checkManagerPublicKey == checkManagerPublicKey))
428432 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
429433 else throw("Strict value is not equal to itself.")
430434 }
431435 else throw("Strict value is not equal to itself.")
432436 }
433437
434438
435439
436440 @Callable(i)
437441 func confirmManager () = {
438442 let pm = pendingManagerPublicKeyOrUnit()
439443 let hasPM = if (isDefined(pm))
440444 then true
441445 else throw("No pending manager")
442446 if ((hasPM == hasPM))
443447 then {
444448 let checkPM = if ((i.callerPublicKey == value(pm)))
445449 then true
446450 else throw("You are not pending manager")
447451 if ((checkPM == checkPM))
448452 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
449453 else throw("Strict value is not equal to itself.")
450454 }
451455 else throw("Strict value is not equal to itself.")
452456 }
453457
454458
455459
456460 @Callable(i)
457461 func setAdmins (adminPubKeys) = {
458462 let checkCaller = mustManager(i)
459463 if ((checkCaller == checkCaller))
460464 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
461465 else throw("Strict value is not equal to itself.")
462466 }
463467
464468
465469
466470 @Callable(i)
467471 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
468472 let checkCaller = mustAdmin(i)
469473 if ((checkCaller == checkCaller))
470474 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
471475 then throw((("Pool address " + poolAddress) + " already registered."))
472476 else {
473477 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
474478 let internalAmountAssetId = internalAmountAssetData._1
475479 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
476480 then 2
477481 else 1)
478482 let internalPriceAssetId = internalPriceAssetData._1
479483 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
480484 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
481485 let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))
482486 if (isDefined(poolConfig))
483487 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
484488 else {
485489 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
486490 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
487491 then decimalsMultPrice
488492 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
489493 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
490494 then decimalsMultPrice
491495 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
492496 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
493497 let lpAssetId = calculateAssetId(lpAssetIssueAction)
494498 let lpAssetIdStr = toBase58String(lpAssetId)
495499 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
496500 if ((poolActivateInvokeResult == poolActivateInvokeResult))
497501 then if ((poolActivateInvokeResult != "success"))
498502 then throw("Pool initialisation error happened.")
499503 else {
500504 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
501505 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
502506 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
503507 then {
504508 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
505509 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
506510 then {
507511 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
508512 if ((setLogoInv == setLogoInv))
509513 then {
510514 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
511515 if ((addAssetsLinkInv == addAssetsLinkInv))
512516 then {
513517 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
514518 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
515519 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)
516520 else throw("Strict value is not equal to itself.")
517521 }
518522 else throw("Strict value is not equal to itself.")
519523 }
520524 else throw("Strict value is not equal to itself.")
521525 }
522526 else throw("Strict value is not equal to itself.")
523527 }
524528 else throw("Strict value is not equal to itself.")
525529 }
526530 else throw("Strict value is not equal to itself.")
527531 }
528532 }
529533 else throw("Strict value is not equal to itself.")
530534 }
531535
532536
533537
534538 @Callable(i)
535539 func managePool (poolAddress,newStatus) = {
536540 let checkCaller = mustManager(i)
537541 if ((checkCaller == checkCaller))
538542 then {
539543 let poolConfig = getPoolConfig(poolAddress)
540544 let poolStatus = poolConfig[idxPoolStatus]
541545 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
542546 let amountAssetStr = poolConfig[idxAmtAssetId]
543547 let priceAssetStr = poolConfig[idxPriceAssetId]
544548 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
545549 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
546550 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
547551 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
548552 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
549553 let poolType = poolConfig[idxPoolType]
550554 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
551555 }
552556 else throw("Strict value is not equal to itself.")
553557 }
554558
555559
556560
557561 @Callable(i)
558562 func emit (amountToEmit) = {
559563 let caller = i.caller
560564 let originCaller = i.originCaller
561565 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
562566 let lpAsset = fromBase58String(lpAssetRequested)
563567 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
564568 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
565569 if ((0 >= amountToEmit))
566570 then nil
567571 else if (containsElement(legacyPools, toString(caller)))
568572 then $Tuple2(nil, legacyFactoryContract)
569573 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
570574 }
571575
572576
573577
574578 @Callable(i)
575579 func burn (amountToBurn) = {
576580 let caller = i.caller
577581 let originCaller = i.originCaller
578582 let payment = value(i.payments[0])
579583 let paymentAmount = value(payment.amount)
580584 let inAmountAssetId = toBase58String(value(payment.assetId))
581585 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
582586 if ((inAmountAssetId != lpAssetRequestedForBurning))
583587 then throw("Invalid asset passed.")
584588 else if ((amountToBurn != paymentAmount))
585589 then throw("Invalid amount passed.")
586590 else {
587591 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
588592 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
589593 }
590594 }
591595
592596
593597
594598 @Callable(i)
595599 func modifyWeight (lpAssetId,share) = {
596600 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
597601 then true
598602 else mustManager(i)
599603 if ((checkCaller == checkCaller))
600604 then {
601605 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
602606 let poolWeightKey = keyPoolToWeight(poolContractAddress)
603607 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
604608 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
605609 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
606610 let poolWeightNew = share
607611 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
608612 let stakingContract = getStakingAddressOrFail(factoryCfg)
609613 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
610614 if ((onModifyWeightInv == onModifyWeightInv))
611615 then {
612616 let gwxVirtualPoolActions = if ((gwxWeight == 0))
613617 then nil
614618 else [IntegerEntry(gwxWeightKey, 0)]
615619 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
616620 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
617621 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
618622 then nil
619623 else [DeleteEntry(poolWeightHistoryKey)]
620624 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
621625 }
622626 else throw("Strict value is not equal to itself.")
623627 }
624628 else throw("Strict value is not equal to itself.")
625629 }
626630
627631
628632
629633 @Callable(i)
630634 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
631635 let checkCaller = mustManager(i)
632636 if ((checkCaller == checkCaller))
633637 then {
634638 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
635639 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
636640 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
637641 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
638642 let stakingDapp = getStakingAddressOrFail(factoryCfg)
639643 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
640644 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
641645 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
642646 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
643647 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
644648 let btcWeight = getIntOrFail(btcWeightKEY)
645649 let ethWeight = getIntOrFail(ethWeightKEY)
646650 let btcWeightNew = (btcWeight - weightDecrement)
647651 let ethWeightNew = (ethWeight - weightDecrement)
648652 if ((0 >= btcWeightNew))
649653 then throw(("invalid btcWeightNew: " + toString(btcWeightNew)))
650654 else if ((0 >= ethWeightNew))
651655 then throw(("invalid ethWeightNew: " + toString(ethWeightNew)))
652656 else {
653657 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
654658 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
655659 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
656660 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
657661 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
658662 if ((onModifyWeightBtc == onModifyWeightBtc))
659663 then {
660664 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
661665 if ((onModifyWeightEth == onModifyWeightEth))
662666 then {
663667 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
664668 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
665669 then {
666670 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
667671 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
668672 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)]
669673 else throw("Strict value is not equal to itself.")
670674 }
671675 else throw("Strict value is not equal to itself.")
672676 }
673677 else throw("Strict value is not equal to itself.")
674678 }
675679 else throw("Strict value is not equal to itself.")
676680 }
677681 }
678682 else throw("Strict value is not equal to itself.")
679683 }
680684
681685
682686
683687 @Callable(i)
684688 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
685689 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
686690 case b: Boolean =>
687691 b
688692 case _ =>
689693 false
690694 }
691695 $Tuple2(nil, haveLabel)
692696 }
693697
694698
695699
696700 @Callable(i)
697701 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
698702 let checkCaller = mustAdmin(i)
699703 if ((checkCaller == checkCaller))
700704 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
701705 else throw("Strict value is not equal to itself.")
702706 }
703707
704708
705709
706710 @Callable(i)
707711 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
708712 let checkCaller = if (mustThis(i))
709713 then true
710714 else mustAdmin(i)
711715 if ((checkCaller == checkCaller))
712716 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
713717 else throw("Strict value is not equal to itself.")
714718 }
715719
716720
717721
718722 @Callable(i)
719723 func onVerificationLoss (assetId) = {
720724 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
721725 then true
722726 else mustManager(i)
723727 if ((checkCaller == checkCaller))
724728 then {
725729 let priceAssets = getPriceAssets()
726730 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
727731 then true
728732 else throw("invalid price assets")
729733 if ((checkPriceAssetsSize == checkPriceAssetsSize))
730734 then {
731735 func cb (acc,priceAsset) = {
732736 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
733737 if ((r == r))
734738 then unit
735739 else throw("Strict value is not equal to itself.")
736740 }
737741
738742 let actions = {
739743 let $l = priceAssets
740744 let $s = size($l)
741745 let $acc0 = unit
742746 func $f0_1 ($a,$i) = if (($i >= $s))
743747 then $a
744748 else cb($a, $l[$i])
745749
746750 func $f0_2 ($a,$i) = if (($i >= $s))
747751 then $a
748752 else throw("List size exceeds 1")
749753
750754 $f0_2($f0_1($acc0, 0), 1)
751755 }
752756 if ((actions == actions))
753757 then $Tuple2(nil, unit)
754758 else throw("Strict value is not equal to itself.")
755759 }
756760 else throw("Strict value is not equal to itself.")
757761 }
758762 else throw("Strict value is not equal to itself.")
759763 }
760764
761765
762766
763767 @Callable(i)
764768 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
765769 let poolConfig = getPoolConfig(poolAddress)
766770 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
767771 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
768772 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
769773 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
770774 then true
771775 else poolOneTokenOperationsDisabled)
772776 }
773777
774778
775779
776780 @Callable(i)
777781 func getInFeeREADONLY (poolAddress) = {
778782 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
779783 $Tuple2(nil, fee)
780784 }
781785
782786
783787
784788 @Callable(i)
785789 func getOutFeeREADONLY (poolAddress) = {
786790 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
787791 $Tuple2(nil, fee)
788792 }
789793
790794
791795
792796 @Callable(i)
793797 func getPoolStatusREADONLY (poolAddress) = {
794798 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
795799 let amountAssetInternal = poolAssets[1]
796800 let priceAssetInternal = poolAssets[2]
797801 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
798802 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
799803 }
800804
801805
806+
807+@Callable(i)
808+func getPoolAssetsByLpAssetId (lpAssetIdStr) = {
809+ let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
810+ let amountAssetInternal = poolAssets[1]
811+ let priceAssetInternal = poolAssets[2]
812+ let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
813+ $Tuple2(nil, cfg)
814+ }
815+
816+
802817 @Verifier(tx)
803818 func verify () = {
804819 let targetPublicKey = match managerPublicKeyOrUnit() {
805820 case pk: ByteVector =>
806821 pk
807822 case _: Unit =>
808823 tx.senderPublicKey
809824 case _ =>
810825 throw("Match error")
811826 }
812827 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
813828 }
814829

github/deemru/w8io/026f985 
94.47 ms