tx · Fw6T22x2kMq44ar2UAF6WnJTV2zdZJp61J3dAScAidbG

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.02800000 Waves

2023.07.26 17:26 [2682949] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "Fw6T22x2kMq44ar2UAF6WnJTV2zdZJp61J3dAScAidbG", "fee": 2800000, "feeAssetId": null, "timestamp": 1690381559721, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "2FYVGVXopCdzng6tmULheMsH5rnmxM5r7AABrwsk4kb8B8TcrKWYtomkAURnzvg9rgSQyZMibdzSVVN6FnwDJNCi" ], "script": "base64:BgL9LQgCEgASBAoCCAgSBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIIgZTQ0FMRTgiBU1VTFQ4IgZNVUxUMTIiB1NDQUxFMTgiBk1VTFQxOCIOUE9PTFdFSUdIVE1VTFQiDkdXWHZpcnR1YWxQT09MIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRTcHJlYWQiC3dhdmVzU3RyaW5nIhBjb250cmFjdEZpbGVuYW1lIhFkZWNpbWFsc011bHRQcmljZSIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIPUG9vbFB1dERpc2FibGVkIhNQb29sTWF0Y2hlckRpc2FibGVkIgxQb29sU2h1dGRvd24iEmlkeEludGVybmFsQXNzZXRJZCI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QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAmZCAQJmQwAEAmZEBAJiZwkBAmJ6AAMJAAECBQJiZwIKQnl0ZVZlY3RvcgQCYkcFAmJnBQJiRwMJAAECBQJiZwIEVW5pdAgFAmZCD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJmQglib2R5Qnl0ZXMJAJEDAggFAmZCBnByb29mcwAABQJmRIROJg4=", "height": 2682949, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DXaPtP5RHZWHvPmdW9rS7vrvQZZFYDoUVxpGhVjcBdQ9 Next: CBsJMtfca1ASq6C6nftddgzYuZ24BxZbrT6o3Z7jUqpH Diff:
OldNewDifferences
188188 func keyInFeeDefault () = "%s__inFeeDefault"
189189
190190
191+func keySwapFee (poolAddress) = ("%s%s__swapFee__" + poolAddress)
192+
193+
191194 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
192195
193196
290293 case s: String =>
291294 if ((size(s) == 0))
292295 then nil
293- else split(s, SEP)
296+ else split_4C(s, SEP)
294297 case _ =>
295298 nil
296299 }
416419
417420
418421 func getPoolCreator (poolContractAddress) = {
419- let $t01516615303 = getAssetsDataFromPoolAddress(poolContractAddress)
420- let amountAssetId = $t01516615303._1
421- let priceAssetId = $t01516615303._2
422- let lpAssetId = $t01516615303._3
423- let amountAssetInternal = $t01516615303._4
424- let priceAssetInternal = $t01516615303._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
425428 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
426429 let poolCreator = invoke(userPoolsContract, "getPoolCreatorREADONLY", [amountAssetId, priceAssetId], nil)
427430 poolCreator
440443
441444
442445 func isPoolEmpty (poolContractAddress) = {
443- let $t01587816015 = getAssetsDataFromPoolAddress(poolContractAddress)
444- let amountAssetId = $t01587816015._1
445- let priceAssetId = $t01587816015._2
446- let lpAssetId = $t01587816015._3
447- let amountAssetInternal = $t01587816015._4
448- let priceAssetInternal = $t01587816015._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
449452 if ((getAddressBalance(poolContractAddress, amountAssetId) == 0))
450453 then (getAddressBalance(poolContractAddress, priceAssetId) == 0)
451454 else false
459462
460463 @Callable(i)
461464 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
462- let $t01633016634 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
465+ let $t01643316737 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
463466 case r: Int =>
464467 $Tuple2(true, min([100, max([0, r])]))
465468 case _ =>
470473 $Tuple2(false, 0)
471474 }
472475 }
473- let isLeasable = $t01633016634._1
474- let leasedRatio = $t01633016634._2
476+ let isLeasable = $t01643316737._1
477+ let leasedRatio = $t01643316737._2
475478 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
476479 case b: Int =>
477480 max([0, b])
483486 0
484487 }
485488 }
486- let $t01690017124 = if ((assetId == "WAVES"))
489+ let $t01700317227 = if ((assetId == "WAVES"))
487490 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
488491 else $Tuple3("", "", 0)
489- let proxyAddress = $t01690017124._1
490- let proxyAssetId = $t01690017124._2
491- let proxyRateMul = $t01690017124._3
492+ let proxyAddress = $t01700317227._1
493+ let proxyAssetId = $t01700317227._2
494+ let proxyRateMul = $t01700317227._3
492495 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
493496 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
494497 }
879882
880883 func $f0_2 ($a,$i) = if (($i >= $s))
881884 then $a
882- else throw("List size exceeds 11")
885+ else throw("List size exceeds 13")
883886
884- $f0_2($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)
887+ $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)
885888 }
886889 if ((actions == actions))
887890 then $Tuple2(nil, unit)
919922 func getOutFeeREADONLY (poolAddress) = {
920923 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
921924 $Tuple2(nil, fee)
925+ }
926+
927+
928+
929+@Callable(i)
930+func getSwapFeeREADONLY (poolAddressStr) = {
931+ let feeOption = match getString(this, keySwapFee(poolAddressStr)) {
932+ case s: String =>
933+ let parts = split(s, SEP)
934+ let poolFee = parseIntValue(parts[1])
935+ let protocolFee = parseIntValue(parts[2])
936+ $Tuple2(poolFee, protocolFee)
937+ case _: Unit =>
938+ unit
939+ case _ =>
940+ throw("Match error")
941+ }
942+ $Tuple2(nil, feeOption)
922943 }
923944
924945
10241045 else throwErr("Pool must be SHUTDOWN (4)")
10251046 if ((checkStatus == checkStatus))
10261047 then {
1027- let $t03911639253 = getAssetsDataFromPoolAddress(poolContractAddress)
1028- let amountAssetId = $t03911639253._1
1029- let priceAssetId = $t03911639253._2
1030- let lpAssetId = $t03911639253._3
1031- let amountAssetInternal = $t03911639253._4
1032- let priceAssetInternal = $t03911639253._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
10331054 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
10341055 let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
10351056 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)
159159
160160
161161 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
162162
163163
164164 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
165165
166166
167167 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
168168
169169
170170 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
171171
172172
173173 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
174174
175175
176176 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
177177
178178
179179 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
180180
181181
182182 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
183183
184184
185185 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
186186
187187
188188 func keyInFeeDefault () = "%s__inFeeDefault"
189189
190190
191+func keySwapFee (poolAddress) = ("%s%s__swapFee__" + poolAddress)
192+
193+
191194 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
192195
193196
194197 func keyOutFeeDefault () = "%s__outFeeDefault"
195198
196199
197200 func keySkipOrderValidation (poolAddress) = ("%s%s__skipOrderValidation__" + poolAddress)
198201
199202
200203 func keyChangeAmpDelay (poolAddress) = ("%s%s__changeAmpDelay__" + poolAddress)
201204
202205
203206 func keyChangeAmpDelta (poolAddress) = ("%s%s__changeAmpDelta__" + poolAddress)
204207
205208
206209 func keyChangeAmpTarget (poolAddress) = ("%s%s__changeAmpTarget__" + poolAddress)
207210
208211
209212 func keySWavesProxyAddress () = "%s__sWavesProxyAddress"
210213
211214
212215 func keySWavesAssetId () = "%s__sWavesAssetId"
213216
214217
215218 func keyStakingProfitAddress () = "%s__stakingProfitAddress"
216219
217220
218221 func keyLeasedRatio (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatio", poolAddress, assetId], SEP)
219222
220223
221224 func keyLeasedRatioDefault (assetId) = makeString(["%s%s", "leasedRatioDefault", assetId], SEP)
222225
223226
224227 func keyLeasedRatioTolerance (poolAddress,assetId) = makeString(["%s%s%s", "leasedRatioTolerance", poolAddress, assetId], SEP)
225228
226229
227230 func keyMinBalance (poolAddress,assetId) = makeString(["%s%s%s", "minBalance", poolAddress, assetId], SEP)
228231
229232
230233 func keyMinBalanceDefault (assetId) = makeString(["%s%s", "minBalanceDefault", assetId], SEP)
231234
232235
233236 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
234237
235238
236239 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
237240
238241
239242 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
240243
241244
242245 func parseAssetId (input) = if ((input == wavesString))
243246 then unit
244247 else fromBase58String(input)
245248
246249
247250 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
248251 case s: String =>
249252 addressFromStringValue(s)
250253 case _ =>
251254 this
252255 }
253256
254257
255258 let IdxFactoryCfgStakingDapp = 1
256259
257260 let IdxFactoryCfgBoostingDapp = 2
258261
259262 let IdxFactoryCfgIdoDapp = 3
260263
261264 let IdxFactoryCfgTeamDapp = 4
262265
263266 let IdxFactoryCfgEmissionDapp = 5
264267
265268 let IdxFactoryCfgRestDapp = 6
266269
267270 let IdxFactoryCfgSlippageDapp = 7
268271
269272 let IdxFactoryCfgDaoDapp = 8
270273
271274 let IdxFactoryCfgMarketingDapp = 9
272275
273276 let IdxFactoryCfgGwxRewardDapp = 10
274277
275278 let IdxFactoryCfgBirdsDapp = 11
276279
277280 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
278281
279282
280283 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
281284
282285
283286 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
284287
285288
286289 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
287290
288291
289292 func getPriceAssets () = match getString(keyPriceAssets()) {
290293 case s: String =>
291294 if ((size(s) == 0))
292295 then nil
293- else split(s, SEP)
296+ else split_4C(s, SEP)
294297 case _ =>
295298 nil
296299 }
297300
298301
299302 func managerPublicKeyOrUnit () = {
300303 let managerVaultAddress = getManagerVaultAddressOrThis()
301304 match getString(managerVaultAddress, keyManagerPublicKey()) {
302305 case s: String =>
303306 fromBase58String(s)
304307 case _: Unit =>
305308 unit
306309 case _ =>
307310 throw("Match error")
308311 }
309312 }
310313
311314
312315 let permissionDeniedError = throwErr("Permission denied")
313316
314317 let testError = throwErr("Test error here")
315318
316319 func mustThis (i) = if ((i.caller == this))
317320 then true
318321 else permissionDeniedError
319322
320323
321324 func mustManager (i) = match managerPublicKeyOrUnit() {
322325 case pk: ByteVector =>
323326 if ((i.callerPublicKey == pk))
324327 then true
325328 else permissionDeniedError
326329 case _: Unit =>
327330 mustThis(i)
328331 case _ =>
329332 throw("Match error")
330333 }
331334
332335
333336 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)
334337
335338
336339 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
337340
338341
339342 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)
340343
341344
342345 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
343346
344347
345348 func getPoolConfig (poolAddress) = {
346349 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
347350 let amountAssetInternal = poolAssets[1]
348351 let priceAssetInternal = poolAssets[2]
349352 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
350353 }
351354
352355
353356 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
354357 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
355358 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
356359 let result = if ((internalAssetId == 0))
357360 then {
358361 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
359362 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
360363 }
361364 else $Tuple3(internalAssetId, nil, false)
362365 result
363366 }
364367
365368
366369 func mustAdmin (i) = {
367370 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
368371 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
369372 then true
370373 else {
371374 let isManager = mustManager(i)
372375 if ((isManager == isManager))
373376 then true
374377 else throw("Strict value is not equal to itself.")
375378 }
376379 }
377380
378381
379382 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
380383
381384
382385 func poolExistsInternal (amountAssetId,priceAssetId) = {
383386 let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
384387 let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
385388 if (if ((amountAssetInternal == unit))
386389 then true
387390 else (priceAssetInternal == unit))
388391 then false
389392 else {
390393 let amAs = toString(value(amountAssetInternal))
391394 let prAs = toString(value(priceAssetInternal))
392395 let cfg = getString(keyPoolConfig(amAs, prAs))
393396 let cfgReverse = getString(keyPoolConfig(prAs, amAs))
394397 let exists = if ((cfg != unit))
395398 then true
396399 else (cfgReverse != unit)
397400 exists
398401 }
399402 }
400403
401404
402405 func getAssetsDataFromPoolAddress (poolContractAddress) = {
403406 let poolAssets = match getString(keyMappingPoolContractAddressToPoolAssets(poolContractAddress)) {
404407 case s: String =>
405408 split(s, SEP)
406409 case _ =>
407410 throwErr(makeString([poolContractAddress, "pool is not found"], " "))
408411 }
409412 let amountAssetInternal = parseIntValue(poolAssets[1])
410413 let priceAssetInternal = parseIntValue(poolAssets[2])
411414 let amountAssetId = getStringValue(keyMappingsInternal2baseAssetId(amountAssetInternal))
412415 let priceAssetId = getStringValue(keyMappingsInternal2baseAssetId(priceAssetInternal))
413416 let lpAssetId = getStringValue(keyMappingPoolContractToLPAsset(poolContractAddress))
414417 $Tuple5(amountAssetId, priceAssetId, lpAssetId, amountAssetInternal, priceAssetInternal)
415418 }
416419
417420
418421 func getPoolCreator (poolContractAddress) = {
419- let $t01516615303 = getAssetsDataFromPoolAddress(poolContractAddress)
420- let amountAssetId = $t01516615303._1
421- let priceAssetId = $t01516615303._2
422- let lpAssetId = $t01516615303._3
423- let amountAssetInternal = $t01516615303._4
424- let priceAssetInternal = $t01516615303._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
425428 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
426429 let poolCreator = invoke(userPoolsContract, "getPoolCreatorREADONLY", [amountAssetId, priceAssetId], nil)
427430 poolCreator
428431 }
429432
430433
431434 func getAddressBalance (addressString,assetIdString) = {
432435 let address = addressFromStringValue(addressString)
433436 if ((assetIdString == "WAVES"))
434437 then wavesBalance(address).regular
435438 else {
436439 let assetId = fromBase58String(assetIdString)
437440 assetBalance(address, assetId)
438441 }
439442 }
440443
441444
442445 func isPoolEmpty (poolContractAddress) = {
443- let $t01587816015 = getAssetsDataFromPoolAddress(poolContractAddress)
444- let amountAssetId = $t01587816015._1
445- let priceAssetId = $t01587816015._2
446- let lpAssetId = $t01587816015._3
447- let amountAssetInternal = $t01587816015._4
448- let priceAssetInternal = $t01587816015._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
449452 if ((getAddressBalance(poolContractAddress, amountAssetId) == 0))
450453 then (getAddressBalance(poolContractAddress, priceAssetId) == 0)
451454 else false
452455 }
453456
454457
455458 @Callable(i)
456459 func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
457460
458461
459462
460463 @Callable(i)
461464 func getPoolLeaseConfigREADONLY (poolAddress,assetId) = {
462- let $t01633016634 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
465+ let $t01643316737 = match getInteger(this, keyLeasedRatio(poolAddress, assetId)) {
463466 case r: Int =>
464467 $Tuple2(true, min([100, max([0, r])]))
465468 case _ =>
466469 match getInteger(this, keyLeasedRatioDefault(assetId)) {
467470 case rd: Int =>
468471 $Tuple2(true, min([100, max([0, rd])]))
469472 case _ =>
470473 $Tuple2(false, 0)
471474 }
472475 }
473- let isLeasable = $t01633016634._1
474- let leasedRatio = $t01633016634._2
476+ let isLeasable = $t01643316737._1
477+ let leasedRatio = $t01643316737._2
475478 let minBalance = match getInteger(this, keyMinBalance(poolAddress, assetId)) {
476479 case b: Int =>
477480 max([0, b])
478481 case _ =>
479482 match getInteger(this, keyMinBalanceDefault(assetId)) {
480483 case bd: Int =>
481484 max([0, bd])
482485 case _ =>
483486 0
484487 }
485488 }
486- let $t01690017124 = if ((assetId == "WAVES"))
489+ let $t01700317227 = if ((assetId == "WAVES"))
487490 then $Tuple3(valueOrElse(getString(this, keySWavesProxyAddress()), ""), getString(this, valueOrElse(keySWavesAssetId(), "")), MULT12)
488491 else $Tuple3("", "", 0)
489- let proxyAddress = $t01690017124._1
490- let proxyAssetId = $t01690017124._2
491- let proxyRateMul = $t01690017124._3
492+ let proxyAddress = $t01700317227._1
493+ let proxyAssetId = $t01700317227._2
494+ let proxyRateMul = $t01700317227._3
492495 let stakingProfitAddress = valueOrElse(getString(this, keyStakingProfitAddress()), "")
493496 $Tuple2(nil, $Tuple7(isLeasable, leasedRatio, minBalance, proxyAddress, proxyAssetId, proxyRateMul, stakingProfitAddress))
494497 }
495498
496499
497500
498501 @Callable(i)
499502 func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
500503 then (asset2 == "WAVES")
501504 else false)
502505 then $Tuple2(nil, unit)
503506 else {
504507 let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
505508 let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
506509 let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
507510 let res = if ((ee == unit))
508511 then unit
509512 else drop(value(ee), 4)
510513 $Tuple2(nil, res)
511514 }
512515
513516
514517
515518 @Callable(i)
516519 func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
517520
518521
519522
520523 @Callable(i)
521524 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
522525 let checkCaller = mustManager(i)
523526 if ((checkCaller == checkCaller))
524527 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
525528 else throw("Strict value is not equal to itself.")
526529 }
527530
528531
529532
530533 @Callable(i)
531534 func constructorV2 (mathcherPub58Str) = {
532535 let checkCaller = mustManager(i)
533536 if ((checkCaller == checkCaller))
534537 then {
535538 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
536539 if ((mathcerPub == mathcerPub))
537540 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
538541 else throw("Strict value is not equal to itself.")
539542 }
540543 else throw("Strict value is not equal to itself.")
541544 }
542545
543546
544547
545548 @Callable(i)
546549 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
547550 let checkCaller = mustManager(i)
548551 if ((checkCaller == checkCaller))
549552 then {
550553 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
551554 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
552555 }
553556 else throw("Strict value is not equal to itself.")
554557 }
555558
556559
557560
558561 @Callable(i)
559562 func constructorV4 (legacyFactoryContract,legacyPools) = {
560563 let checkCaller = mustManager(i)
561564 if ((checkCaller == checkCaller))
562565 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
563566 else throw("Strict value is not equal to itself.")
564567 }
565568
566569
567570
568571 @Callable(i)
569572 func constructorV5 (assetsStoreContract) = {
570573 let checkCaller = mustManager(i)
571574 if ((checkCaller == checkCaller))
572575 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
573576 else throw("Strict value is not equal to itself.")
574577 }
575578
576579
577580
578581 @Callable(i)
579582 func constructorV6 (votingEmissionContract,priceAssets) = {
580583 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
581584 then true
582585 else "invalid voting emission contract address"]
583586 if ((cheks == cheks))
584587 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
585588 else throw("Strict value is not equal to itself.")
586589 }
587590
588591
589592
590593 @Callable(i)
591594 func setAdmins (adminPubKeys) = {
592595 let checkCaller = mustManager(i)
593596 if ((checkCaller == checkCaller))
594597 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
595598 else throw("Strict value is not equal to itself.")
596599 }
597600
598601
599602
600603 @Callable(i)
601604 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
602605 let checkCaller = mustAdmin(i)
603606 if ((checkCaller == checkCaller))
604607 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
605608 then throwErr((("Pool address " + poolAddress) + " already registered."))
606609 else {
607610 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
608611 let internalAmountAssetId = internalAmountAssetData._1
609612 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
610613 then 2
611614 else 1)
612615 let internalPriceAssetId = internalPriceAssetData._1
613616 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
614617 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
615618 let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
616619 if (poolExists)
617620 then throwErr((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
618621 else {
619622 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
620623 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
621624 then decimalsMultPrice
622625 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
623626 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
624627 then decimalsMultPrice
625628 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
626629 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
627630 let lpAssetId = calculateAssetId(lpAssetIssueAction)
628631 let lpAssetIdStr = toBase58String(lpAssetId)
629632 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
630633 if ((poolActivateInvokeResult == poolActivateInvokeResult))
631634 then if ((poolActivateInvokeResult != "success"))
632635 then throwErr("Pool initialisation error happened.")
633636 else {
634637 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
635638 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
636639 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
637640 then {
638641 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
639642 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
640643 then {
641644 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
642645 if ((setLogoInv == setLogoInv))
643646 then {
644647 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
645648 if ((addAssetsLinkInv == addAssetsLinkInv))
646649 then {
647650 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
648651 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
649652 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)
650653 else throw("Strict value is not equal to itself.")
651654 }
652655 else throw("Strict value is not equal to itself.")
653656 }
654657 else throw("Strict value is not equal to itself.")
655658 }
656659 else throw("Strict value is not equal to itself.")
657660 }
658661 else throw("Strict value is not equal to itself.")
659662 }
660663 else throw("Strict value is not equal to itself.")
661664 }
662665 }
663666 else throw("Strict value is not equal to itself.")
664667 }
665668
666669
667670
668671 @Callable(i)
669672 func managePool (poolAddress,newStatus) = {
670673 let checkCaller = mustManager(i)
671674 if ((checkCaller == checkCaller))
672675 then {
673676 let poolConfig = getPoolConfig(poolAddress)
674677 let poolStatus = poolConfig[idxPoolStatus]
675678 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
676679 let amountAssetStr = poolConfig[idxAmtAssetId]
677680 let priceAssetStr = poolConfig[idxPriceAssetId]
678681 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
679682 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
680683 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
681684 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
682685 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
683686 let poolType = poolConfig[idxPoolType]
684687 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
685688 }
686689 else throw("Strict value is not equal to itself.")
687690 }
688691
689692
690693
691694 @Callable(i)
692695 func emit (amountToEmit) = {
693696 let caller = i.caller
694697 let originCaller = i.originCaller
695698 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
696699 let lpAsset = fromBase58String(lpAssetRequested)
697700 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
698701 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
699702 if ((0 >= amountToEmit))
700703 then nil
701704 else if (containsElement(legacyPools, toString(caller)))
702705 then $Tuple2(nil, legacyFactoryContract)
703706 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
704707 }
705708
706709
707710
708711 @Callable(i)
709712 func burn (amountToBurn) = {
710713 let caller = i.caller
711714 let originCaller = i.originCaller
712715 let payment = value(i.payments[0])
713716 let paymentAmount = value(payment.amount)
714717 let inAmountAssetId = toBase58String(value(payment.assetId))
715718 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
716719 if ((inAmountAssetId != lpAssetRequestedForBurning))
717720 then throwErr("Invalid asset passed.")
718721 else if ((amountToBurn != paymentAmount))
719722 then throwErr("Invalid amount passed.")
720723 else {
721724 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
722725 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
723726 }
724727 }
725728
726729
727730
728731 @Callable(i)
729732 func modifyWeight (lpAssetId,share) = {
730733 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
731734 then true
732735 else mustManager(i)
733736 if ((checkCaller == checkCaller))
734737 then {
735738 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
736739 let poolWeightKey = keyPoolToWeight(poolContractAddress)
737740 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
738741 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
739742 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
740743 let poolWeightNew = share
741744 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
742745 let stakingContract = getStakingAddressOrFail(factoryCfg)
743746 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
744747 if ((onModifyWeightInv == onModifyWeightInv))
745748 then {
746749 let gwxVirtualPoolActions = if ((gwxWeight == 0))
747750 then nil
748751 else [IntegerEntry(gwxWeightKey, 0)]
749752 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
750753 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
751754 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
752755 then nil
753756 else [DeleteEntry(poolWeightHistoryKey)]
754757 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
755758 }
756759 else throw("Strict value is not equal to itself.")
757760 }
758761 else throw("Strict value is not equal to itself.")
759762 }
760763
761764
762765
763766 @Callable(i)
764767 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
765768 let checkCaller = mustManager(i)
766769 if ((checkCaller == checkCaller))
767770 then {
768771 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
769772 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
770773 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
771774 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
772775 let stakingDapp = getStakingAddressOrFail(factoryCfg)
773776 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
774777 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
775778 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
776779 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
777780 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
778781 let btcWeight = getIntOrFail(btcWeightKEY)
779782 let ethWeight = getIntOrFail(ethWeightKEY)
780783 let btcWeightNew = (btcWeight - weightDecrement)
781784 let ethWeightNew = (ethWeight - weightDecrement)
782785 if ((0 >= btcWeightNew))
783786 then throwErr(("invalid btcWeightNew: " + toString(btcWeightNew)))
784787 else if ((0 >= ethWeightNew))
785788 then throwErr(("invalid ethWeightNew: " + toString(ethWeightNew)))
786789 else {
787790 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
788791 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
789792 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
790793 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
791794 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
792795 if ((onModifyWeightBtc == onModifyWeightBtc))
793796 then {
794797 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
795798 if ((onModifyWeightEth == onModifyWeightEth))
796799 then {
797800 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
798801 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
799802 then {
800803 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
801804 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
802805 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)]
803806 else throw("Strict value is not equal to itself.")
804807 }
805808 else throw("Strict value is not equal to itself.")
806809 }
807810 else throw("Strict value is not equal to itself.")
808811 }
809812 else throw("Strict value is not equal to itself.")
810813 }
811814 }
812815 else throw("Strict value is not equal to itself.")
813816 }
814817
815818
816819
817820 @Callable(i)
818821 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
819822 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
820823 case b: Boolean =>
821824 b
822825 case _ =>
823826 false
824827 }
825828 $Tuple2(nil, haveLabel)
826829 }
827830
828831
829832
830833 @Callable(i)
831834 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
832835 let checkCaller = mustAdmin(i)
833836 if ((checkCaller == checkCaller))
834837 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
835838 else throw("Strict value is not equal to itself.")
836839 }
837840
838841
839842
840843 @Callable(i)
841844 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
842845 let checkCaller = if ((i.caller == this))
843846 then true
844847 else mustAdmin(i)
845848 if ((checkCaller == checkCaller))
846849 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
847850 else throw("Strict value is not equal to itself.")
848851 }
849852
850853
851854
852855 @Callable(i)
853856 func onVerificationLoss (assetId) = {
854857 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
855858 then true
856859 else mustManager(i)
857860 if ((checkCaller == checkCaller))
858861 then {
859862 let priceAssets = getPriceAssets()
860863 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
861864 then true
862865 else throwErr("invalid price assets")
863866 if ((checkPriceAssetsSize == checkPriceAssetsSize))
864867 then {
865868 func cb (acc,priceAsset) = {
866869 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
867870 if ((r == r))
868871 then unit
869872 else throw("Strict value is not equal to itself.")
870873 }
871874
872875 let actions = {
873876 let $l = priceAssets
874877 let $s = size($l)
875878 let $acc0 = unit
876879 func $f0_1 ($a,$i) = if (($i >= $s))
877880 then $a
878881 else cb($a, $l[$i])
879882
880883 func $f0_2 ($a,$i) = if (($i >= $s))
881884 then $a
882- else throw("List size exceeds 11")
885+ else throw("List size exceeds 13")
883886
884- $f0_2($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)
887+ $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)
885888 }
886889 if ((actions == actions))
887890 then $Tuple2(nil, unit)
888891 else throw("Strict value is not equal to itself.")
889892 }
890893 else throw("Strict value is not equal to itself.")
891894 }
892895 else throw("Strict value is not equal to itself.")
893896 }
894897
895898
896899
897900 @Callable(i)
898901 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
899902 let poolConfig = getPoolConfig(poolAddress)
900903 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
901904 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
902905 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
903906 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
904907 then true
905908 else poolOneTokenOperationsDisabled)
906909 }
907910
908911
909912
910913 @Callable(i)
911914 func getInFeeREADONLY (poolAddress) = {
912915 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
913916 $Tuple2(nil, fee)
914917 }
915918
916919
917920
918921 @Callable(i)
919922 func getOutFeeREADONLY (poolAddress) = {
920923 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
921924 $Tuple2(nil, fee)
925+ }
926+
927+
928+
929+@Callable(i)
930+func getSwapFeeREADONLY (poolAddressStr) = {
931+ let feeOption = match getString(this, keySwapFee(poolAddressStr)) {
932+ case s: String =>
933+ let parts = split(s, SEP)
934+ let poolFee = parseIntValue(parts[1])
935+ let protocolFee = parseIntValue(parts[2])
936+ $Tuple2(poolFee, protocolFee)
937+ case _: Unit =>
938+ unit
939+ case _ =>
940+ throw("Match error")
941+ }
942+ $Tuple2(nil, feeOption)
922943 }
923944
924945
925946
926947 @Callable(i)
927948 func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
928949 let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
929950 let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
930951 let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
931952 let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
932953 let poolExists = if (if (isDefined(amountAssetInternalIdOption))
933954 then isDefined(priceAssetInternalIdOption)
934955 else false)
935956 then isDefined(poolContractAddressOption)
936957 else false
937958 let poolInfo = if (poolExists)
938959 then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
939960 else unit
940961 $Tuple2(nil, poolInfo)
941962 }
942963
943964
944965
945966 @Callable(i)
946967 func getPoolStatusREADONLY (poolAddress) = {
947968 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
948969 let amountAssetInternal = poolAssets[1]
949970 let priceAssetInternal = poolAssets[2]
950971 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
951972 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
952973 }
953974
954975
955976
956977 @Callable(i)
957978 func getPoolConfigREADONLY (poolAddress) = {
958979 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
959980 let amountAssetInternal = poolAssets[1]
960981 let priceAssetInternal = poolAssets[2]
961982 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
962983 $Tuple2(nil, cfg)
963984 }
964985
965986
966987
967988 @Callable(i)
968989 func getPoolConfigByLpAssetIdREADONLY (lpAssetIdStr) = {
969990 let poolAssets = split(getStringOrFail(keyMappingLpAssetToPoolAssets(lpAssetIdStr)), SEP)
970991 let amountAssetInternal = poolAssets[1]
971992 let priceAssetInternal = poolAssets[2]
972993 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
973994 $Tuple2(nil, cfg)
974995 }
975996
976997
977998
978999 @Callable(i)
9791000 func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
9801001
9811002
9821003
9831004 @Callable(i)
9841005 func skipOrderValidationREADONLY (poolAddress) = $Tuple2(nil, valueOrElse(getBoolean(keySkipOrderValidation(poolAddress)), false))
9851006
9861007
9871008
9881009 @Callable(i)
9891010 func getChangeAmpConfigREADONLY (poolAddress) = {
9901011 let delay = getIntegerValue(keyChangeAmpDelay(poolAddress))
9911012 let delta = getIntegerValue(keyChangeAmpDelta(poolAddress))
9921013 let target = getIntegerValue(keyChangeAmpTarget(poolAddress))
9931014 $Tuple2(nil, [delay, delta, target])
9941015 }
9951016
9961017
9971018
9981019 @Callable(i)
9991020 func getPoolWeightREADONLY (lpAssetId) = {
10001021 let poolAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
10011022 let weight = valueOrElse(getInteger(keyPoolToWeight(poolAddress)), 0)
10021023 $Tuple2(nil, weight)
10031024 }
10041025
10051026
10061027
10071028 @Callable(i)
10081029 func deletePool (poolContractAddress) = {
10091030 let poolConfig = getPoolConfig(poolContractAddress)
10101031 let checkCaller = if ((toString(i.caller) == getPoolCreator(poolContractAddress)))
10111032 then if (isPoolEmpty(poolContractAddress))
10121033 then true
10131034 else throwErr("Pool is not empty")
10141035 else mustManager(i)
10151036 if ((checkCaller == checkCaller))
10161037 then {
10171038 let checkWeight = if ((valueOrElse(getInteger(keyPoolToWeight(poolContractAddress)), 0) == 0))
10181039 then true
10191040 else throwErr("Pool weight is not Zero")
10201041 if ((checkWeight == checkWeight))
10211042 then {
10221043 let checkStatus = if ((poolConfig[idxPoolStatus] == toString(PoolShutdown)))
10231044 then true
10241045 else throwErr("Pool must be SHUTDOWN (4)")
10251046 if ((checkStatus == checkStatus))
10261047 then {
1027- let $t03911639253 = getAssetsDataFromPoolAddress(poolContractAddress)
1028- let amountAssetId = $t03911639253._1
1029- let priceAssetId = $t03911639253._2
1030- let lpAssetId = $t03911639253._3
1031- let amountAssetInternal = $t03911639253._4
1032- let priceAssetInternal = $t03911639253._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
10331054 let userPoolsContract = addressFromStringValue(getStringValue(keyUserPoolsContract()))
10341055 let userPoolsInvoke = invoke(userPoolsContract, "deletePool", [amountAssetId, priceAssetId], nil)
10351056 if ((userPoolsInvoke == userPoolsInvoke))
10361057 then {
10371058 let votingEmissionContract = addressFromStringValue(getStringValue(keyVotingEmissionContract()))
10381059 let votingEmissionInvoke = invoke(votingEmissionContract, "deletePool", [amountAssetId, priceAssetId], nil)
10391060 if ((votingEmissionInvoke == votingEmissionInvoke))
10401061 then {
10411062 let assetsStoreContract = addressFromStringValue(getStringValue(keyAssetsStoreContract()))
10421063 let assetsStoreInvoke = invoke(assetsStoreContract, "deletePool", [amountAssetId, priceAssetId], nil)
10431064 if ((assetsStoreInvoke == assetsStoreInvoke))
10441065 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))]
10451066 else throw("Strict value is not equal to itself.")
10461067 }
10471068 else throw("Strict value is not equal to itself.")
10481069 }
10491070 else throw("Strict value is not equal to itself.")
10501071 }
10511072 else throw("Strict value is not equal to itself.")
10521073 }
10531074 else throw("Strict value is not equal to itself.")
10541075 }
10551076 else throw("Strict value is not equal to itself.")
10561077 }
10571078
10581079
10591080 @Verifier(tx)
10601081 func verify () = {
10611082 let targetPublicKey = match managerPublicKeyOrUnit() {
10621083 case pk: ByteVector =>
10631084 pk
10641085 case _: Unit =>
10651086 tx.senderPublicKey
10661087 case _ =>
10671088 throw("Match error")
10681089 }
10691090 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
10701091 }
10711092

github/deemru/w8io/169f3d6 
134.50 ms