tx · FfuWMr24hFcBaSNE3S8Xq4UA314cxFhyvCC4P2Kp35sv

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02200000 Waves

2023.02.09 11:15 [2441842] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

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

github/deemru/w8io/fabc49c 
81.33 ms