tx · 3nGt3bwf2dGC4w3HPz7dXsP7DfbdMFtFn5ezxYzVhr4h

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02800000 Waves

2023.08.17 16:29 [2714656] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "3nGt3bwf2dGC4w3HPz7dXsP7DfbdMFtFn5ezxYzVhr4h", "fee": 2800000, "feeAssetId": null, "timestamp": 1692279025176, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "4FF66aZ98GoU8vKdMyfR3cy5rhDLU1sVEHvJ2s7ddE5YajWT43f6QGLnR4hg7utMHvZWN843LpiftRSVhkDh1Bpw" ], "script": "base64:BgL9LQgCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIIgZTQ0FMRTgiBU1VTFQ4IgZNVUxUMTIiB1NDQUxFMTgiBk1VTFQxOCIOUE9PTFdFSUdIVE1VTFQiDkdXWHZpcnR1YWxQT09MIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRTcHJlYWQiC3dhdmVzU3RyaW5nIhBjb250cmFjdEZpbGVuYW1lIhFkZWNpbWFsc011bHRQcmljZSIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIPUG9vbFB1dERpc2FibGVkIhNQb29sTWF0Y2hlckRpc2FibGVkIgxQb29sU2h1dGRvd24iEmlkeEludGVybmF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IBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAmZCAQJmQwAEAmZEBAJiZwkBAmJ6AAMJAAECBQJiZwIKQnl0ZVZlY3RvcgQCYkcFAmJnBQJiRwMJAAECBQJiZwIEVW5pdAgFAmZCD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJmQglib2R5Qnl0ZXMJAJEDAggFAmZCBnByb29mcwAABQJmRIROJg4=", "height": 2714656, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FsMwn7j7hKG8RYngfkw1ytMpHno4E3TrQRyWHAGniveX Next: 3Zf7THF2Usw3xNwhyvEWz8j8TXSLVyuqSWr359g8LLg5 Diff:
OldNewDifferences
156156
157157
158158 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
159-
160-
161-func keyPoolSwapDisabled (assetsInternal) = {
162- let $t042324294 = assetsInternal
163- let amountAssetInternal = $t042324294._1
164- let priceAssetInternal = $t042324294._2
165- makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "swapDisabled"], SEP)
166- }
167-
168-
169-func keyAllPoolsSwapDisabled () = makeString(["%s", "swapDisabled"], SEP)
170159
171160
172161 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
430419
431420
432421 func getPoolCreator (poolContractAddress) = {
433- let $t01558215719 = getAssetsDataFromPoolAddress(poolContractAddress)
434- let amountAssetId = $t01558215719._1
435- let priceAssetId = $t01558215719._2
436- let lpAssetId = $t01558215719._3
437- let amountAssetInternal = $t01558215719._4
438- let priceAssetInternal = $t01558215719._5
422+ let $t01526915406 = getAssetsDataFromPoolAddress(poolContractAddress)
423+ let amountAssetId = $t01526915406._1
424+ let priceAssetId = $t01526915406._2
425+ let lpAssetId = $t01526915406._3
426+ let amountAssetInternal = $t01526915406._4
427+ let priceAssetInternal = $t01526915406._5
439428 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
440429 let poolCreator = invoke(userPoolsContract, "getPoolCreatorREADONLY", [amountAssetId, priceAssetId], nil)
441430 poolCreator
454443
455444
456445 func isPoolEmpty (poolContractAddress) = {
457- let $t01629416431 = getAssetsDataFromPoolAddress(poolContractAddress)
458- let amountAssetId = $t01629416431._1
459- let priceAssetId = $t01629416431._2
460- let lpAssetId = $t01629416431._3
461- let amountAssetInternal = $t01629416431._4
462- let priceAssetInternal = $t01629416431._5
446+ let $t01598116118 = getAssetsDataFromPoolAddress(poolContractAddress)
447+ let amountAssetId = $t01598116118._1
448+ let priceAssetId = $t01598116118._2
449+ let lpAssetId = $t01598116118._3
450+ let amountAssetInternal = $t01598116118._4
451+ let priceAssetInternal = $t01598116118._5
463452 if ((getAddressBalance(poolContractAddress, amountAssetId) == 0))
464453 then (getAddressBalance(poolContractAddress, priceAssetId) == 0)
465454 else false
473462
474463 @Callable(i)
475464 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
476- let $t01674617050 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
465+ let $t01643316737 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
477466 case r: Int =>
478467 $Tuple2(true, min([100, max([0, r])]))
479468 case _ =>
484473 $Tuple2(false, 0)
485474 }
486475 }
487- let isLeasable = $t01674617050._1
488- let leasedRatio = $t01674617050._2
476+ let isLeasable = $t01643316737._1
477+ let leasedRatio = $t01643316737._2
489478 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
490479 case b: Int =>
491480 max([0, b])
497486 0
498487 }
499488 }
500- let $t01731617540 = if ((assetId == "WAVES"))
489+ let $t01700317227 = if ((assetId == "WAVES"))
501490 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
502491 else $Tuple3("", "", 0)
503- let proxyAddress = $t01731617540._1
504- let proxyAssetId = $t01731617540._2
505- let proxyRateMul = $t01731617540._3
492+ let proxyAddress = $t01700317227._1
493+ let proxyAssetId = $t01700317227._2
494+ let proxyRateMul = $t01700317227._3
506495 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
507496 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
508497 }
922911
923912
924913 @Callable(i)
925-func isPoolSwapDisabledREADONLY (poolAddress) = {
926- let poolConfig = getPoolConfig(poolAddress)
927- let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
928- let poolSwapDisabled = valueOrElse(getBoolean(keyPoolSwapDisabled(assetsInternal)), false)
929- let allPoolsSwapDisabled = valueOrElse(getBoolean(keyAllPoolsSwapDisabled()), false)
930- $Tuple2(nil, if (allPoolsSwapDisabled)
931- then true
932- else poolSwapDisabled)
933- }
934-
935-
936-
937-@Callable(i)
938914 func getInFeeREADONLY (poolAddress) = {
939915 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
940916 $Tuple2(nil, fee)
10691045 else throwErr("Pool must be SHUTDOWN (4)")
10701046 if ((checkStatus == checkStatus))
10711047 then {
1072- let $t04039540532 = getAssetsDataFromPoolAddress(poolContractAddress)
1073- let amountAssetId = $t04039540532._1
1074- let priceAssetId = $t04039540532._2
1075- let lpAssetId = $t04039540532._3
1076- let amountAssetInternal = $t04039540532._4
1077- let priceAssetInternal = $t04039540532._5
1048+ let $t03961739754 = getAssetsDataFromPoolAddress(poolContractAddress)
1049+ let amountAssetId = $t03961739754._1
1050+ let priceAssetId = $t03961739754._2
1051+ let lpAssetId = $t03961739754._3
1052+ let amountAssetInternal = $t03961739754._4
1053+ let priceAssetInternal = $t03961739754._5
10781054 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
10791055 let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
10801056 if ((userPoolsInvoke == userPoolsInvoke))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 8
55
66 let MULT8 = 100000000
77
88 let MULT12 = 1000000000000
99
1010 let SCALE18 = 18
1111
1212 let MULT18 = toBigInt(1000000000000000000)
1313
1414 let POOLWEIGHTMULT = MULT8
1515
1616 let GWXvirtualPOOL = "GWXvirtualPOOL"
1717
1818 let labelPoolsLp = "POOLS_LP"
1919
2020 let defaultSpread = 2000000
2121
2222 let wavesString = "WAVES"
2323
2424 let contractFilename = "factory_v2.ride"
2525
2626 let decimalsMultPrice = ((100 * 1000) * 1000)
2727
2828 let SEP = "__"
2929
3030 let EMPTY = ""
3131
3232 let PoolActive = 1
3333
3434 let PoolPutDisabled = 2
3535
3636 let PoolMatcherDisabled = 3
3737
3838 let PoolShutdown = 4
3939
4040 let idxInternalAssetId = 1
4141
4242 let idxResutActions = 2
4343
4444 let idxIfAssetIdCalculationPerformed = 3
4545
4646 let idxPoolAddress = 1
4747
4848 let idxPoolStatus = 2
4949
5050 let idxPoolLPAssetId = 3
5151
5252 let idxAmtAssetId = 4
5353
5454 let idxPriceAssetId = 5
5555
5656 let idxAmtAssetDcm = 6
5757
5858 let idxPriceAssetDcm = 7
5959
6060 let idxIAmtAssetId = 8
6161
6262 let idxIPriceAssetId = 9
6363
6464 let idxLPAssetDcm = 10
6565
6666 let idxPoolType = 11
6767
6868 let poolLabelWxEmission = "WX_EMISSION"
6969
7070 let validPoolLabels = [poolLabelWxEmission]
7171
7272 func wrapErr (msg) = makeString([contractFilename, ": ", msg], "")
7373
7474
7575 func throwErr (msg) = throw(wrapErr(msg))
7676
7777
7878 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
7979
8080
8181 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
8282
8383
8484 func swapContract () = "%s__swapContract"
8585
8686
8787 func keyFactoryConfig () = "%s__factoryConfig"
8888
8989
9090 func keyLpTokensList () = "%s__lpTokensList"
9191
9292
9393 func keyPoolScriptHash () = "%s%s__pool__scriptHash"
9494
9595
9696 func keyMatcherPub () = "%s%s__matcher__publicKey"
9797
9898
9999 func keyLegacyFactoryContract () = "%s__legacyFactoryContract"
100100
101101
102102 func keyLegacyPools () = "%s__legacyPools"
103103
104104
105105 func keyManagerPublicKey () = "%s__managerPublicKey"
106106
107107
108108 func keyManagerVaultAddress () = "%s__managerVaultAddress"
109109
110110
111111 func keyAdminPubKeys () = "%s__adminPubKeys"
112112
113113
114114 func keyAssetsStoreContract () = "%s__assetsStoreContract"
115115
116116
117117 func keyVotingEmissionContract () = "%s__votingEmissionContract"
118118
119119
120120 func keyUserPoolsContract () = "%s__userPoolsContract"
121121
122122
123123 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
124124
125125
126126 func keyPriceDecimals () = "%s__priceDecimals"
127127
128128
129129 func keyAllPoolsShutdown () = "%s__shutdown"
130130
131131
132132 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
133133
134134
135135 func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
136136
137137
138138 func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
139139
140140
141141 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
142142
143143
144144 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
145145
146146
147147 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
148148
149149
150150 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
151151 let $t038783940 = assetsInternal
152152 let amountAssetInternal = $t038783940._1
153153 let priceAssetInternal = $t038783940._2
154154 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
155155 }
156156
157157
158158 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
159-
160-
161-func keyPoolSwapDisabled (assetsInternal) = {
162- let $t042324294 = assetsInternal
163- let amountAssetInternal = $t042324294._1
164- let priceAssetInternal = $t042324294._2
165- makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "swapDisabled"], SEP)
166- }
167-
168-
169-func keyAllPoolsSwapDisabled () = makeString(["%s", "swapDisabled"], SEP)
170159
171160
172161 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
173162
174163
175164 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
176165
177166
178167 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
179168
180169
181170 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
182171
183172
184173 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
185174
186175
187176 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
188177
189178
190179 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
191180
192181
193182 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
194183
195184
196185 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
197186
198187
199188 func keyInFeeDefault () = "%s__inFeeDefault"
200189
201190
202191 func keySwapFee (poolAddress) = ("%s%s__swapFee__" + poolAddress)
203192
204193
205194 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
206195
207196
208197 func keyOutFeeDefault () = "%s__outFeeDefault"
209198
210199
211200 func keySkipOrderValidation (poolAddress) = ("%s%s__skipOrderValidation__" + poolAddress)
212201
213202
214203 func keyChangeAmpDelay (poolAddress) = ("%s%s__changeAmpDelay__" + poolAddress)
215204
216205
217206 func keyChangeAmpDelta (poolAddress) = ("%s%s__changeAmpDelta__" + poolAddress)
218207
219208
220209 func keyChangeAmpTarget (poolAddress) = ("%s%s__changeAmpTarget__" + poolAddress)
221210
222211
223212 func keySWavesProxyAddress () = "%s__sWavesProxyAddress"
224213
225214
226215 func keySWavesAssetId () = "%s__sWavesAssetId"
227216
228217
229218 func keyStakingProfitAddress () = "%s__stakingProfitAddress"
230219
231220
232221 func keyLeasedRatio (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatio", poolAddress, assetId], SEP)
233222
234223
235224 func keyLeasedRatioDefault (assetId) = makeString(["%s%s", "leasedRatioDefault", assetId], SEP)
236225
237226
238227 func keyLeasedRatioTolerance (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatioTolerance", poolAddress, assetId], SEP)
239228
240229
241230 func keyMinBalance (poolAddress,assetId) = makeString(["%s%s%s", "minBalance", poolAddress, assetId], SEP)
242231
243232
244233 func keyMinBalanceDefault (assetId) = makeString(["%s%s", "minBalanceDefault", assetId], SEP)
245234
246235
247236 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
248237
249238
250239 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
251240
252241
253242 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
254243
255244
256245 func parseAssetId (input) = if ((input == wavesString))
257246 then unit
258247 else fromBase58String(input)
259248
260249
261250 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
262251 case s: String =>
263252 addressFromStringValue(s)
264253 case _ =>
265254 this
266255 }
267256
268257
269258 let IdxFactoryCfgStakingDapp = 1
270259
271260 let IdxFactoryCfgBoostingDapp = 2
272261
273262 let IdxFactoryCfgIdoDapp = 3
274263
275264 let IdxFactoryCfgTeamDapp = 4
276265
277266 let IdxFactoryCfgEmissionDapp = 5
278267
279268 let IdxFactoryCfgRestDapp = 6
280269
281270 let IdxFactoryCfgSlippageDapp = 7
282271
283272 let IdxFactoryCfgDaoDapp = 8
284273
285274 let IdxFactoryCfgMarketingDapp = 9
286275
287276 let IdxFactoryCfgGwxRewardDapp = 10
288277
289278 let IdxFactoryCfgBirdsDapp = 11
290279
291280 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
292281
293282
294283 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
295284
296285
297286 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
298287
299288
300289 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
301290
302291
303292 func getPriceAssets () = match getString(keyPriceAssets()) {
304293 case s: String =>
305294 if ((size(s) == 0))
306295 then nil
307296 else split_4C(s, SEP)
308297 case _ =>
309298 nil
310299 }
311300
312301
313302 func managerPublicKeyOrUnit () = {
314303 let managerVaultAddress = getManagerVaultAddressOrThis()
315304 match getString(managerVaultAddress, keyManagerPublicKey()) {
316305 case s: String =>
317306 fromBase58String(s)
318307 case _: Unit =>
319308 unit
320309 case _ =>
321310 throw("Match error")
322311 }
323312 }
324313
325314
326315 let permissionDeniedError = throwErr("Permission denied")
327316
328317 let testError = throwErr("Test error here")
329318
330319 func mustThis (i) = if ((i.caller == this))
331320 then true
332321 else permissionDeniedError
333322
334323
335324 func mustManager (i) = match managerPublicKeyOrUnit() {
336325 case pk: ByteVector =>
337326 if ((i.callerPublicKey == pk))
338327 then true
339328 else permissionDeniedError
340329 case _: Unit =>
341330 mustThis(i)
342331 case _ =>
343332 throw("Match error")
344333 }
345334
346335
347336 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)
348337
349338
350339 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
351340
352341
353342 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)
354343
355344
356345 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
357346
358347
359348 func getPoolConfig (poolAddress) = {
360349 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
361350 let amountAssetInternal = poolAssets[1]
362351 let priceAssetInternal = poolAssets[2]
363352 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
364353 }
365354
366355
367356 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
368357 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
369358 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
370359 let result = if ((internalAssetId == 0))
371360 then {
372361 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
373362 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
374363 }
375364 else $Tuple3(internalAssetId, nil, false)
376365 result
377366 }
378367
379368
380369 func mustAdmin (i) = {
381370 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
382371 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
383372 then true
384373 else {
385374 let isManager = mustManager(i)
386375 if ((isManager == isManager))
387376 then true
388377 else throw("Strict value is not equal to itself.")
389378 }
390379 }
391380
392381
393382 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
394383
395384
396385 func poolExistsInternal (amountAssetId,priceAssetId) = {
397386 let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
398387 let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
399388 if (if ((amountAssetInternal == unit))
400389 then true
401390 else (priceAssetInternal == unit))
402391 then false
403392 else {
404393 let amAs = toString(value(amountAssetInternal))
405394 let prAs = toString(value(priceAssetInternal))
406395 let cfg = getString(keyPoolConfig(amAs, prAs))
407396 let cfgReverse = getString(keyPoolConfig(prAs, amAs))
408397 let exists = if ((cfg != unit))
409398 then true
410399 else (cfgReverse != unit)
411400 exists
412401 }
413402 }
414403
415404
416405 func getAssetsDataFromPoolAddress (poolContractAddress) = {
417406 let poolAssets = match getString(keyMappingPoolContractAddressToPoolAssets(poolContractAddress)) {
418407 case s: String =>
419408 split(s, SEP)
420409 case _ =>
421410 throwErr(makeString([poolContractAddress, "pool is not found"], " "))
422411 }
423412 let amountAssetInternal = parseIntValue(poolAssets[1])
424413 let priceAssetInternal = parseIntValue(poolAssets[2])
425414 let amountAssetId = getStringValue(keyMappingsInternal2baseAssetId(amountAssetInternal))
426415 let priceAssetId = getStringValue(keyMappingsInternal2baseAssetId(priceAssetInternal))
427416 let lpAssetId = getStringValue(keyMappingPoolContractToLPAsset(poolContractAddress))
428417 $Tuple5(amountAssetId, priceAssetId, lpAssetId, amountAssetInternal, priceAssetInternal)
429418 }
430419
431420
432421 func getPoolCreator (poolContractAddress) = {
433- let $t01558215719 = getAssetsDataFromPoolAddress(poolContractAddress)
434- let amountAssetId = $t01558215719._1
435- let priceAssetId = $t01558215719._2
436- let lpAssetId = $t01558215719._3
437- let amountAssetInternal = $t01558215719._4
438- let priceAssetInternal = $t01558215719._5
422+ let $t01526915406 = getAssetsDataFromPoolAddress(poolContractAddress)
423+ let amountAssetId = $t01526915406._1
424+ let priceAssetId = $t01526915406._2
425+ let lpAssetId = $t01526915406._3
426+ let amountAssetInternal = $t01526915406._4
427+ let priceAssetInternal = $t01526915406._5
439428 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
440429 let poolCreator = invoke(userPoolsContract, "getPoolCreatorREADONLY", [amountAssetId, priceAssetId], nil)
441430 poolCreator
442431 }
443432
444433
445434 func getAddressBalance (addressString,assetIdString) = {
446435 let address = addressFromStringValue(addressString)
447436 if ((assetIdString == "WAVES"))
448437 then wavesBalance(address).regular
449438 else {
450439 let assetId = fromBase58String(assetIdString)
451440 assetBalance(address, assetId)
452441 }
453442 }
454443
455444
456445 func isPoolEmpty (poolContractAddress) = {
457- let $t01629416431 = getAssetsDataFromPoolAddress(poolContractAddress)
458- let amountAssetId = $t01629416431._1
459- let priceAssetId = $t01629416431._2
460- let lpAssetId = $t01629416431._3
461- let amountAssetInternal = $t01629416431._4
462- let priceAssetInternal = $t01629416431._5
446+ let $t01598116118 = getAssetsDataFromPoolAddress(poolContractAddress)
447+ let amountAssetId = $t01598116118._1
448+ let priceAssetId = $t01598116118._2
449+ let lpAssetId = $t01598116118._3
450+ let amountAssetInternal = $t01598116118._4
451+ let priceAssetInternal = $t01598116118._5
463452 if ((getAddressBalance(poolContractAddress, amountAssetId) == 0))
464453 then (getAddressBalance(poolContractAddress, priceAssetId) == 0)
465454 else false
466455 }
467456
468457
469458 @Callable(i)
470459 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
471460
472461
473462
474463 @Callable(i)
475464 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
476- let $t01674617050 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
465+ let $t01643316737 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
477466 case r: Int =>
478467 $Tuple2(true, min([100, max([0, r])]))
479468 case _ =>
480469 match getInteger(this, keyLeasedRatioDefault(assetId)) {
481470 case rd: Int =>
482471 $Tuple2(true, min([100, max([0, rd])]))
483472 case _ =>
484473 $Tuple2(false, 0)
485474 }
486475 }
487- let isLeasable = $t01674617050._1
488- let leasedRatio = $t01674617050._2
476+ let isLeasable = $t01643316737._1
477+ let leasedRatio = $t01643316737._2
489478 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
490479 case b: Int =>
491480 max([0, b])
492481 case _ =>
493482 match getInteger(this, keyMinBalanceDefault(assetId)) {
494483 case bd: Int =>
495484 max([0, bd])
496485 case _ =>
497486 0
498487 }
499488 }
500- let $t01731617540 = if ((assetId == "WAVES"))
489+ let $t01700317227 = if ((assetId == "WAVES"))
501490 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
502491 else $Tuple3("", "", 0)
503- let proxyAddress = $t01731617540._1
504- let proxyAssetId = $t01731617540._2
505- let proxyRateMul = $t01731617540._3
492+ let proxyAddress = $t01700317227._1
493+ let proxyAssetId = $t01700317227._2
494+ let proxyRateMul = $t01700317227._3
506495 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
507496 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
508497 }
509498
510499
511500
512501 @Callable(i)
513502 func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
514503 then (asset2 == "WAVES")
515504 else false)
516505 then $Tuple2(nil, unit)
517506 else {
518507 let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
519508 let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
520509 let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
521510 let res = if ((ee == unit))
522511 then unit
523512 else drop(value(ee), 4)
524513 $Tuple2(nil, res)
525514 }
526515
527516
528517
529518 @Callable(i)
530519 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
531520
532521
533522
534523 @Callable(i)
535524 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
536525 let checkCaller = mustManager(i)
537526 if ((checkCaller == checkCaller))
538527 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
539528 else throw("Strict value is not equal to itself.")
540529 }
541530
542531
543532
544533 @Callable(i)
545534 func constructorV2 (mathcherPub58Str) = {
546535 let checkCaller = mustManager(i)
547536 if ((checkCaller == checkCaller))
548537 then {
549538 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
550539 if ((mathcerPub == mathcerPub))
551540 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
552541 else throw("Strict value is not equal to itself.")
553542 }
554543 else throw("Strict value is not equal to itself.")
555544 }
556545
557546
558547
559548 @Callable(i)
560549 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
561550 let checkCaller = mustManager(i)
562551 if ((checkCaller == checkCaller))
563552 then {
564553 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
565554 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
566555 }
567556 else throw("Strict value is not equal to itself.")
568557 }
569558
570559
571560
572561 @Callable(i)
573562 func constructorV4 (legacyFactoryContract,legacyPools) = {
574563 let checkCaller = mustManager(i)
575564 if ((checkCaller == checkCaller))
576565 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
577566 else throw("Strict value is not equal to itself.")
578567 }
579568
580569
581570
582571 @Callable(i)
583572 func constructorV5 (assetsStoreContract) = {
584573 let checkCaller = mustManager(i)
585574 if ((checkCaller == checkCaller))
586575 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
587576 else throw("Strict value is not equal to itself.")
588577 }
589578
590579
591580
592581 @Callable(i)
593582 func constructorV6 (votingEmissionContract,priceAssets) = {
594583 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
595584 then true
596585 else "invalid voting emission contract address"]
597586 if ((cheks == cheks))
598587 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
599588 else throw("Strict value is not equal to itself.")
600589 }
601590
602591
603592
604593 @Callable(i)
605594 func setAdmins (adminPubKeys) = {
606595 let checkCaller = mustManager(i)
607596 if ((checkCaller == checkCaller))
608597 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
609598 else throw("Strict value is not equal to itself.")
610599 }
611600
612601
613602
614603 @Callable(i)
615604 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
616605 let checkCaller = mustAdmin(i)
617606 if ((checkCaller == checkCaller))
618607 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
619608 then throwErr((("Pool address " + poolAddress) + " already registered."))
620609 else {
621610 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
622611 let internalAmountAssetId = internalAmountAssetData._1
623612 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
624613 then 2
625614 else 1)
626615 let internalPriceAssetId = internalPriceAssetData._1
627616 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
628617 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
629618 let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
630619 if (poolExists)
631620 then throwErr((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
632621 else {
633622 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
634623 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
635624 then decimalsMultPrice
636625 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
637626 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
638627 then decimalsMultPrice
639628 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
640629 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
641630 let lpAssetId = calculateAssetId(lpAssetIssueAction)
642631 let lpAssetIdStr = toBase58String(lpAssetId)
643632 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
644633 if ((poolActivateInvokeResult == poolActivateInvokeResult))
645634 then if ((poolActivateInvokeResult != "success"))
646635 then throwErr("Pool initialisation error happened.")
647636 else {
648637 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
649638 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
650639 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
651640 then {
652641 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
653642 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
654643 then {
655644 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
656645 if ((setLogoInv == setLogoInv))
657646 then {
658647 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
659648 if ((addAssetsLinkInv == addAssetsLinkInv))
660649 then {
661650 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
662651 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
663652 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)
664653 else throw("Strict value is not equal to itself.")
665654 }
666655 else throw("Strict value is not equal to itself.")
667656 }
668657 else throw("Strict value is not equal to itself.")
669658 }
670659 else throw("Strict value is not equal to itself.")
671660 }
672661 else throw("Strict value is not equal to itself.")
673662 }
674663 else throw("Strict value is not equal to itself.")
675664 }
676665 }
677666 else throw("Strict value is not equal to itself.")
678667 }
679668
680669
681670
682671 @Callable(i)
683672 func managePool (poolAddress,newStatus) = {
684673 let checkCaller = mustManager(i)
685674 if ((checkCaller == checkCaller))
686675 then {
687676 let poolConfig = getPoolConfig(poolAddress)
688677 let poolStatus = poolConfig[idxPoolStatus]
689678 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
690679 let amountAssetStr = poolConfig[idxAmtAssetId]
691680 let priceAssetStr = poolConfig[idxPriceAssetId]
692681 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
693682 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
694683 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
695684 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
696685 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
697686 let poolType = poolConfig[idxPoolType]
698687 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
699688 }
700689 else throw("Strict value is not equal to itself.")
701690 }
702691
703692
704693
705694 @Callable(i)
706695 func emit (amountToEmit) = {
707696 let caller = i.caller
708697 let originCaller = i.originCaller
709698 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
710699 let lpAsset = fromBase58String(lpAssetRequested)
711700 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
712701 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
713702 if ((0 >= amountToEmit))
714703 then nil
715704 else if (containsElement(legacyPools, toString(caller)))
716705 then $Tuple2(nil, legacyFactoryContract)
717706 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
718707 }
719708
720709
721710
722711 @Callable(i)
723712 func burn (amountToBurn) = {
724713 let caller = i.caller
725714 let originCaller = i.originCaller
726715 let payment = value(i.payments[0])
727716 let paymentAmount = value(payment.amount)
728717 let inAmountAssetId = toBase58String(value(payment.assetId))
729718 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
730719 if ((inAmountAssetId != lpAssetRequestedForBurning))
731720 then throwErr("Invalid asset passed.")
732721 else if ((amountToBurn != paymentAmount))
733722 then throwErr("Invalid amount passed.")
734723 else {
735724 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
736725 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
737726 }
738727 }
739728
740729
741730
742731 @Callable(i)
743732 func modifyWeight (lpAssetId,share) = {
744733 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
745734 then true
746735 else mustManager(i)
747736 if ((checkCaller == checkCaller))
748737 then {
749738 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
750739 let poolWeightKey = keyPoolToWeight(poolContractAddress)
751740 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
752741 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
753742 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
754743 let poolWeightNew = share
755744 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
756745 let stakingContract = getStakingAddressOrFail(factoryCfg)
757746 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
758747 if ((onModifyWeightInv == onModifyWeightInv))
759748 then {
760749 let gwxVirtualPoolActions = if ((gwxWeight == 0))
761750 then nil
762751 else [IntegerEntry(gwxWeightKey, 0)]
763752 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
764753 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
765754 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
766755 then nil
767756 else [DeleteEntry(poolWeightHistoryKey)]
768757 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
769758 }
770759 else throw("Strict value is not equal to itself.")
771760 }
772761 else throw("Strict value is not equal to itself.")
773762 }
774763
775764
776765
777766 @Callable(i)
778767 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
779768 let checkCaller = mustManager(i)
780769 if ((checkCaller == checkCaller))
781770 then {
782771 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
783772 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
784773 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
785774 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
786775 let stakingDapp = getStakingAddressOrFail(factoryCfg)
787776 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
788777 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
789778 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
790779 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
791780 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
792781 let btcWeight = getIntOrFail(btcWeightKEY)
793782 let ethWeight = getIntOrFail(ethWeightKEY)
794783 let btcWeightNew = (btcWeight - weightDecrement)
795784 let ethWeightNew = (ethWeight - weightDecrement)
796785 if ((0 >= btcWeightNew))
797786 then throwErr(("invalid btcWeightNew: " + toString(btcWeightNew)))
798787 else if ((0 >= ethWeightNew))
799788 then throwErr(("invalid ethWeightNew: " + toString(ethWeightNew)))
800789 else {
801790 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
802791 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
803792 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
804793 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
805794 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
806795 if ((onModifyWeightBtc == onModifyWeightBtc))
807796 then {
808797 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
809798 if ((onModifyWeightEth == onModifyWeightEth))
810799 then {
811800 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
812801 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
813802 then {
814803 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
815804 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
816805 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)]
817806 else throw("Strict value is not equal to itself.")
818807 }
819808 else throw("Strict value is not equal to itself.")
820809 }
821810 else throw("Strict value is not equal to itself.")
822811 }
823812 else throw("Strict value is not equal to itself.")
824813 }
825814 }
826815 else throw("Strict value is not equal to itself.")
827816 }
828817
829818
830819
831820 @Callable(i)
832821 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
833822 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
834823 case b: Boolean =>
835824 b
836825 case _ =>
837826 false
838827 }
839828 $Tuple2(nil, haveLabel)
840829 }
841830
842831
843832
844833 @Callable(i)
845834 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
846835 let checkCaller = mustAdmin(i)
847836 if ((checkCaller == checkCaller))
848837 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
849838 else throw("Strict value is not equal to itself.")
850839 }
851840
852841
853842
854843 @Callable(i)
855844 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
856845 let checkCaller = if ((i.caller == this))
857846 then true
858847 else mustAdmin(i)
859848 if ((checkCaller == checkCaller))
860849 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
861850 else throw("Strict value is not equal to itself.")
862851 }
863852
864853
865854
866855 @Callable(i)
867856 func onVerificationLoss (assetId) = {
868857 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
869858 then true
870859 else mustManager(i)
871860 if ((checkCaller == checkCaller))
872861 then {
873862 let priceAssets = getPriceAssets()
874863 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
875864 then true
876865 else throwErr("invalid price assets")
877866 if ((checkPriceAssetsSize == checkPriceAssetsSize))
878867 then {
879868 func cb (acc,priceAsset) = {
880869 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
881870 if ((r == r))
882871 then unit
883872 else throw("Strict value is not equal to itself.")
884873 }
885874
886875 let actions = {
887876 let $l = priceAssets
888877 let $s = size($l)
889878 let $acc0 = unit
890879 func $f0_1 ($a,$i) = if (($i >= $s))
891880 then $a
892881 else cb($a, $l[$i])
893882
894883 func $f0_2 ($a,$i) = if (($i >= $s))
895884 then $a
896885 else throw("List size exceeds 13")
897886
898887 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13)
899888 }
900889 if ((actions == actions))
901890 then $Tuple2(nil, unit)
902891 else throw("Strict value is not equal to itself.")
903892 }
904893 else throw("Strict value is not equal to itself.")
905894 }
906895 else throw("Strict value is not equal to itself.")
907896 }
908897
909898
910899
911900 @Callable(i)
912901 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
913902 let poolConfig = getPoolConfig(poolAddress)
914903 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
915904 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
916905 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
917906 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
918907 then true
919908 else poolOneTokenOperationsDisabled)
920909 }
921910
922911
923912
924913 @Callable(i)
925-func isPoolSwapDisabledREADONLY (poolAddress) = {
926- let poolConfig = getPoolConfig(poolAddress)
927- let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
928- let poolSwapDisabled = valueOrElse(getBoolean(keyPoolSwapDisabled(assetsInternal)), false)
929- let allPoolsSwapDisabled = valueOrElse(getBoolean(keyAllPoolsSwapDisabled()), false)
930- $Tuple2(nil, if (allPoolsSwapDisabled)
931- then true
932- else poolSwapDisabled)
933- }
934-
935-
936-
937-@Callable(i)
938914 func getInFeeREADONLY (poolAddress) = {
939915 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
940916 $Tuple2(nil, fee)
941917 }
942918
943919
944920
945921 @Callable(i)
946922 func getOutFeeREADONLY (poolAddress) = {
947923 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
948924 $Tuple2(nil, fee)
949925 }
950926
951927
952928
953929 @Callable(i)
954930 func getSwapFeeREADONLY (poolAddressStr) = {
955931 let feeOption = match getString(this, keySwapFee(poolAddressStr)) {
956932 case s: String =>
957933 let parts = split(s, SEP)
958934 let poolFee = parseIntValue(parts[1])
959935 let protocolFee = parseIntValue(parts[2])
960936 $Tuple2(poolFee, protocolFee)
961937 case _: Unit =>
962938 unit
963939 case _ =>
964940 throw("Match error")
965941 }
966942 $Tuple2(nil, feeOption)
967943 }
968944
969945
970946
971947 @Callable(i)
972948 func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
973949 let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
974950 let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
975951 let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
976952 let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
977953 let poolExists = if (if (isDefined(amountAssetInternalIdOption))
978954 then isDefined(priceAssetInternalIdOption)
979955 else false)
980956 then isDefined(poolContractAddressOption)
981957 else false
982958 let poolInfo = if (poolExists)
983959 then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
984960 else unit
985961 $Tuple2(nil, poolInfo)
986962 }
987963
988964
989965
990966 @Callable(i)
991967 func getPoolStatusREADONLY (poolAddress) = {
992968 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
993969 let amountAssetInternal = poolAssets[1]
994970 let priceAssetInternal = poolAssets[2]
995971 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
996972 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
997973 }
998974
999975
1000976
1001977 @Callable(i)
1002978 func getPoolConfigREADONLY (poolAddress) = {
1003979 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
1004980 let amountAssetInternal = poolAssets[1]
1005981 let priceAssetInternal = poolAssets[2]
1006982 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
1007983 $Tuple2(nil, cfg)
1008984 }
1009985
1010986
1011987
1012988 @Callable(i)
1013989 func getPoolConfigByLpAssetIdREADONLY (lpAssetIdStr) = {
1014990 let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
1015991 let amountAssetInternal = poolAssets[1]
1016992 let priceAssetInternal = poolAssets[2]
1017993 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
1018994 $Tuple2(nil, cfg)
1019995 }
1020996
1021997
1022998
1023999 @Callable(i)
10241000 func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
10251001
10261002
10271003
10281004 @Callable(i)
10291005 func skipOrderValidationREADONLY (poolAddress) = $Tuple2(nil, valueOrElse(getBoolean(keySkipOrderValidation(poolAddress)), false))
10301006
10311007
10321008
10331009 @Callable(i)
10341010 func getChangeAmpConfigREADONLY (poolAddress) = {
10351011 let delay = getIntegerValue(keyChangeAmpDelay(poolAddress))
10361012 let delta = getIntegerValue(keyChangeAmpDelta(poolAddress))
10371013 let target = getIntegerValue(keyChangeAmpTarget(poolAddress))
10381014 $Tuple2(nil, [delay, delta, target])
10391015 }
10401016
10411017
10421018
10431019 @Callable(i)
10441020 func getPoolWeightREADONLY (lpAssetId) = {
10451021 let poolAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
10461022 let weight = valueOrElse(getInteger(keyPoolToWeight(poolAddress)), 0)
10471023 $Tuple2(nil, weight)
10481024 }
10491025
10501026
10511027
10521028 @Callable(i)
10531029 func deletePool (poolContractAddress) = {
10541030 let poolConfig = getPoolConfig(poolContractAddress)
10551031 let checkCaller = if ((toString(i.caller) == getPoolCreator(poolContractAddress)))
10561032 then if (isPoolEmpty(poolContractAddress))
10571033 then true
10581034 else throwErr("Pool is not empty")
10591035 else mustManager(i)
10601036 if ((checkCaller == checkCaller))
10611037 then {
10621038 let checkWeight = if ((valueOrElse(getInteger(keyPoolToWeight(poolContractAddress)), 0) == 0))
10631039 then true
10641040 else throwErr("Pool weight is not Zero")
10651041 if ((checkWeight == checkWeight))
10661042 then {
10671043 let checkStatus = if ((poolConfig[idxPoolStatus] == toString(PoolShutdown)))
10681044 then true
10691045 else throwErr("Pool must be SHUTDOWN (4)")
10701046 if ((checkStatus == checkStatus))
10711047 then {
1072- let $t04039540532 = getAssetsDataFromPoolAddress(poolContractAddress)
1073- let amountAssetId = $t04039540532._1
1074- let priceAssetId = $t04039540532._2
1075- let lpAssetId = $t04039540532._3
1076- let amountAssetInternal = $t04039540532._4
1077- let priceAssetInternal = $t04039540532._5
1048+ let $t03961739754 = getAssetsDataFromPoolAddress(poolContractAddress)
1049+ let amountAssetId = $t03961739754._1
1050+ let priceAssetId = $t03961739754._2
1051+ let lpAssetId = $t03961739754._3
1052+ let amountAssetInternal = $t03961739754._4
1053+ let priceAssetInternal = $t03961739754._5
10781054 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
10791055 let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
10801056 if ((userPoolsInvoke == userPoolsInvoke))
10811057 then {
10821058 let votingEmissionContract = addressFromStringValue(getStringValue(keyVotingEmissionContract()))
10831059 let votingEmissionInvoke = invoke(votingEmissionContract, "deletePool", [amountAssetId, priceAssetId], nil)
10841060 if ((votingEmissionInvoke == votingEmissionInvoke))
10851061 then {
10861062 let assetsStoreContract = addressFromStringValue(getStringValue(keyAssetsStoreContract()))
10871063 let assetsStoreInvoke = invoke(assetsStoreContract, "deletePool", [amountAssetId, priceAssetId], nil)
10881064 if ((assetsStoreInvoke == assetsStoreInvoke))
10891065 then [DeleteEntry(keyMappingPoolContractToLPAsset(poolContractAddress)), DeleteEntry(keyMappingPoolContractAddressToPoolAssets(poolContractAddress)), DeleteEntry(keyMappingPoolAssetsToLpasset(toString(amountAssetInternal), toString(priceAssetInternal))), DeleteEntry(keyMappingPoolAssetsToPoolContractAddress(amountAssetInternal, priceAssetInternal)), DeleteEntry(keyPoolConfig(toString(amountAssetInternal), toString(priceAssetInternal))), DeleteEntry(keyMappingLpAssetToPoolAssets(lpAssetId)), DeleteEntry(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId)), DeleteEntry(keyWxEmission(amountAssetId, priceAssetId)), DeleteEntry(keyPoolToWeight(poolContractAddress)), DeleteEntry(keyPoolSpread(poolContractAddress)), DeleteEntry(keyInFee(poolContractAddress)), DeleteEntry(keyOutFee(poolContractAddress)), DeleteEntry(keySkipOrderValidation(poolContractAddress)), DeleteEntry(keyChangeAmpDelay(poolContractAddress)), DeleteEntry(keyChangeAmpDelta(poolContractAddress)), DeleteEntry(keyChangeAmpTarget(poolContractAddress))]
10901066 else throw("Strict value is not equal to itself.")
10911067 }
10921068 else throw("Strict value is not equal to itself.")
10931069 }
10941070 else throw("Strict value is not equal to itself.")
10951071 }
10961072 else throw("Strict value is not equal to itself.")
10971073 }
10981074 else throw("Strict value is not equal to itself.")
10991075 }
11001076 else throw("Strict value is not equal to itself.")
11011077 }
11021078
11031079
11041080 @Verifier(tx)
11051081 func verify () = {
11061082 let targetPublicKey = match managerPublicKeyOrUnit() {
11071083 case pk: ByteVector =>
11081084 pk
11091085 case _: Unit =>
11101086 tx.senderPublicKey
11111087 case _ =>
11121088 throw("Match error")
11131089 }
11141090 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
11151091 }
11161092

github/deemru/w8io/026f985 
137.40 ms