tx · 9oxY8A4RY66JpnUmMaSCpvwVkAex8gUDiYKkBDrnV5xa

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.03000000 Waves

2023.02.27 12:40 [2467949] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "9oxY8A4RY66JpnUmMaSCpvwVkAex8gUDiYKkBDrnV5xa", "fee": 3000000, "feeAssetId": null, "timestamp": 1677490952148, "version": 1, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "5JHj27VoypeMaqkvGG5DjZzhtdSR2hBh4HJVLPcFkCA7hSvJCZ1ZBVc4RDgA71H7CrwWu2YertLYdLD5dc1qmRA6" ], "script": "base64:AAIFAAAAAAAAE1IIAhIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgiBlNDQUxFOCIFTVVMVDgiB1NDQUxFMTgiBk1VTFQxOCIOUE9PTFdFSUdIVE1VTFQiDkdXWHZpcnR1YWxQT09MIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRTcHJlYWQiC3dhdmVzU3RyaW5nIhFkZWNpbWFsc011bHRQcmljZSIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIPUG9vbFB1dERpc2FibGVkIhNQb29sTWF0Y2hlckRpc2FibGVkIgxQb29sU2h1dGRvd24iEmlkeEludGVybmFsQXNzZXRJZCIPaWR4UmVzdXRBY3Rpb25zIiBpZHhJZkFzc2V0SWRDYWxjdWxhdGlvblBlcmZvcm1lZCIOaWR4UG9vbEFkZHJlc3MiDWlkeFBvb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AAAACBQAAAAJiYwIAAAAEVW5pdAgFAAAAAmVuAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACZW4AAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJlbgAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmVwD/F7Jg==", "chainId": 84, "height": 2467949, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GNWVEdSWVhjYYnrxMsUixUMpE7ZutAZn8STBJZJmDKZ6 Next: 2tjac3axAMwm5fz3YJofeETw2sVtrD1cCuWKjEMMCGaX Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 8
1616 let labelPoolsLp = "POOLS_LP"
1717
1818 let defaultSpread = 2000000
19+
20+let wavesString = "WAVES"
1921
2022 let decimalsMultPrice = ((100 * 1000) * 1000)
2123
7072
7173
7274 func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash"
73-
74-
75-func swapContract () = "%s__swapContract"
7675
7776
7877 func keyFactoryConfig () = "%s__factoryConfig"
136135
137136
138137 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
139- let $t037003762 = assetsInternal
140- let amountAssetInternal = $t037003762._1
141- let priceAssetInternal = $t037003762._2
138+ let $t036583720 = assetsInternal
139+ let amountAssetInternal = $t036583720._1
140+ let priceAssetInternal = $t036583720._2
142141 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
143142 }
144143
189188
190189
191190 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
191+
192+
193+func parseAssetId (input) = if ((input == wavesString))
194+ then unit
195+ else fromBase58String(input)
192196
193197
194198 let IdxFactoryCfgStakingDapp = 1
257261
258262 let permissionDeniedError = throw("Permission denied")
259263
260-let testError = throw("Test error here")
261-
262264 func mustThis (i) = if ((i.caller == this))
263265 then true
264266 else permissionDeniedError
323325
324326
325327 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
326-
327-
328-func poolExistsInternal (amountAssetId,priceAssetId) = {
329- let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
330- let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
331- if (if ((amountAssetInternal == unit))
332- then true
333- else (priceAssetInternal == unit))
334- then false
335- else {
336- let amAs = toString(value(amountAssetInternal))
337- let prAs = toString(value(priceAssetInternal))
338- let cfg = getString(keyPoolConfig(amAs, prAs))
339- let cfgReverse = getString(keyPoolConfig(prAs, amAs))
340- let exists = if ((cfg != unit))
341- then true
342- else (cfgReverse != unit)
343- exists
344- }
345- }
346-
347-
348-@Callable(i)
349-func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
350-
351-
352-
353-@Callable(i)
354-func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
355- then (asset2 == "WAVES")
356- else false)
357- then $Tuple2(nil, unit)
358- else {
359- let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
360- let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
361- let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
362- let res = if ((ee == unit))
363- then unit
364- else drop(value(ee), 4)
365- $Tuple2(nil, res)
366- }
367-
368-
369-
370-@Callable(i)
371-func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
372-
373328
374329
375330 @Callable(i)
502457 let internalPriceAssetId = internalPriceAssetData._1
503458 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
504459 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
505- let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
506- if (poolExists)
460+ let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))
461+ if (isDefined(poolConfig))
507462 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
508463 else {
509464 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
769724
770725 func $f0_2 ($a,$i) = if (($i >= $s))
771726 then $a
772- else throw("List size exceeds 1")
727+ else throw("List size exceeds 3")
773728
774- $f0_2($f0_1($acc0, 0), 1)
729+ $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
775730 }
776731 if ((actions == actions))
777732 then $Tuple2(nil, unit)
814769
815770
816771 @Callable(i)
772+func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
773+ let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
774+ let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
775+ let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
776+ let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
777+ let poolExists = if (if (isDefined(amountAssetInternalIdOption))
778+ then isDefined(priceAssetInternalIdOption)
779+ else false)
780+ then isDefined(poolContractAddressOption)
781+ else false
782+ let poolInfo = if (poolExists)
783+ then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
784+ else unit
785+ $Tuple2(nil, poolInfo)
786+ }
787+
788+
789+
790+@Callable(i)
817791 func getPoolStatusREADONLY (poolAddress) = {
818792 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
819793 let amountAssetInternal = poolAssets[1]
821795 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
822796 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
823797 }
824-
825-
826-
827-@Callable(i)
828-func getPoolConfigREADONLY (poolAddress) = {
829- let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
830- let amountAssetInternal = poolAssets[1]
831- let priceAssetInternal = poolAssets[2]
832- let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
833- $Tuple2(nil, cfg)
834- }
835-
836-
837-
838-@Callable(i)
839-func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
840798
841799
842800 @Verifier(tx)
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 8
55
66 let MULT8 = 100000000
77
88 let SCALE18 = 18
99
1010 let MULT18 = toBigInt(1000000000000000000)
1111
1212 let POOLWEIGHTMULT = MULT8
1313
1414 let GWXvirtualPOOL = "GWXvirtualPOOL"
1515
1616 let labelPoolsLp = "POOLS_LP"
1717
1818 let defaultSpread = 2000000
19+
20+let wavesString = "WAVES"
1921
2022 let decimalsMultPrice = ((100 * 1000) * 1000)
2123
2224 let SEP = "__"
2325
2426 let EMPTY = ""
2527
2628 let PoolActive = 1
2729
2830 let PoolPutDisabled = 2
2931
3032 let PoolMatcherDisabled = 3
3133
3234 let PoolShutdown = 4
3335
3436 let idxInternalAssetId = 1
3537
3638 let idxResutActions = 2
3739
3840 let idxIfAssetIdCalculationPerformed = 3
3941
4042 let idxPoolAddress = 1
4143
4244 let idxPoolStatus = 2
4345
4446 let idxPoolLPAssetId = 3
4547
4648 let idxAmtAssetId = 4
4749
4850 let idxPriceAssetId = 5
4951
5052 let idxAmtAssetDcm = 6
5153
5254 let idxPriceAssetDcm = 7
5355
5456 let idxIAmtAssetId = 8
5557
5658 let idxIPriceAssetId = 9
5759
5860 let idxLPAssetDcm = 10
5961
6062 let idxPoolType = 11
6163
6264 let poolLabelWxEmission = "WX_EMISSION"
6365
6466 let validPoolLabels = [poolLabelWxEmission]
6567
6668 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
6769
6870
6971 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
7072
7173
7274 func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash"
73-
74-
75-func swapContract () = "%s__swapContract"
7675
7776
7877 func keyFactoryConfig () = "%s__factoryConfig"
7978
8079
8180 func keyLpTokensList () = "%s__lpTokensList"
8281
8382
8483 func keyPoolScriptHash () = "%s%s__pool__scriptHash"
8584
8685
8786 func keyMatcherPub () = "%s%s__matcher__publicKey"
8887
8988
9089 func keyLegacyFactoryContract () = "%s__legacyFactoryContract"
9190
9291
9392 func keyLegacyPools () = "%s__legacyPools"
9493
9594
9695 func keyManagerPublicKey () = "%s__managerPublicKey"
9796
9897
9998 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
10099
101100
102101 func keyAdminPubKeys () = "%s__adminPubKeys"
103102
104103
105104 func keyAssetsStoreContract () = "%s__assetsStoreContract"
106105
107106
108107 func keyVotingEmissionContract () = "%s__votingEmissionContract"
109108
110109
111110 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
112111
113112
114113 func keyPriceDecimals () = "%s__priceDecimals"
115114
116115
117116 func keyAllPoolsShutdown () = "%s__shutdown"
118117
119118
120119 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
121120
122121
123122 func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
124123
125124
126125 func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
127126
128127
129128 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
130129
131130
132131 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
133132
134133
135134 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
136135
137136
138137 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
139- let $t037003762 = assetsInternal
140- let amountAssetInternal = $t037003762._1
141- let priceAssetInternal = $t037003762._2
138+ let $t036583720 = assetsInternal
139+ let amountAssetInternal = $t036583720._1
140+ let priceAssetInternal = $t036583720._2
142141 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
143142 }
144143
145144
146145 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
147146
148147
149148 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
150149
151150
152151 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
153152
154153
155154 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
156155
157156
158157 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
159158
160159
161160 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
162161
163162
164163 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
165164
166165
167166 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
168167
169168
170169 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
171170
172171
173172 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
174173
175174
176175 func keyInFeeDefault () = "%s__inFeeDefault"
177176
178177
179178 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
180179
181180
182181 func keyOutFeeDefault () = "%s__outFeeDefault"
183182
184183
185184 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
186185
187186
188187 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
189188
190189
191190 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
191+
192+
193+func parseAssetId (input) = if ((input == wavesString))
194+ then unit
195+ else fromBase58String(input)
192196
193197
194198 let IdxFactoryCfgStakingDapp = 1
195199
196200 let IdxFactoryCfgBoostingDapp = 2
197201
198202 let IdxFactoryCfgIdoDapp = 3
199203
200204 let IdxFactoryCfgTeamDapp = 4
201205
202206 let IdxFactoryCfgEmissionDapp = 5
203207
204208 let IdxFactoryCfgRestDapp = 6
205209
206210 let IdxFactoryCfgSlippageDapp = 7
207211
208212 let IdxFactoryCfgDaoDapp = 8
209213
210214 let IdxFactoryCfgMarketingDapp = 9
211215
212216 let IdxFactoryCfgGwxRewardDapp = 10
213217
214218 let IdxFactoryCfgBirdsDapp = 11
215219
216220 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
217221
218222
219223 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
220224
221225
222226 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
223227
224228
225229 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
226230
227231
228232 func getPriceAssets () = match getString(keyPriceAssets()) {
229233 case s: String =>
230234 if ((size(s) == 0))
231235 then nil
232236 else split(s, SEP)
233237 case _ =>
234238 nil
235239 }
236240
237241
238242 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
239243 case s: String =>
240244 fromBase58String(s)
241245 case _: Unit =>
242246 unit
243247 case _ =>
244248 throw("Match error")
245249 }
246250
247251
248252 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
249253 case s: String =>
250254 fromBase58String(s)
251255 case _: Unit =>
252256 unit
253257 case _ =>
254258 throw("Match error")
255259 }
256260
257261
258262 let permissionDeniedError = throw("Permission denied")
259263
260-let testError = throw("Test error here")
261-
262264 func mustThis (i) = if ((i.caller == this))
263265 then true
264266 else permissionDeniedError
265267
266268
267269 func mustManager (i) = match managerPublicKeyOrUnit() {
268270 case pk: ByteVector =>
269271 if ((i.callerPublicKey == pk))
270272 then true
271273 else permissionDeniedError
272274 case _: Unit =>
273275 mustThis(i)
274276 case _ =>
275277 throw("Match error")
276278 }
277279
278280
279281 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)
280282
281283
282284 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
283285
284286
285287 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)
286288
287289
288290 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
289291
290292
291293 func getPoolConfig (poolAddress) = {
292294 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
293295 let amountAssetInternal = poolAssets[1]
294296 let priceAssetInternal = poolAssets[2]
295297 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
296298 }
297299
298300
299301 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
300302 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
301303 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
302304 let result = if ((internalAssetId == 0))
303305 then {
304306 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
305307 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
306308 }
307309 else $Tuple3(internalAssetId, nil, false)
308310 result
309311 }
310312
311313
312314 func mustAdmin (i) = {
313315 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
314316 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
315317 then true
316318 else {
317319 let isManager = mustManager(i)
318320 if ((isManager == isManager))
319321 then true
320322 else throw("Strict value is not equal to itself.")
321323 }
322324 }
323325
324326
325327 func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback))
326-
327-
328-func poolExistsInternal (amountAssetId,priceAssetId) = {
329- let amountAssetInternal = getInteger(keyMappingsBaseAsset2internalId(amountAssetId))
330- let priceAssetInternal = getInteger(keyMappingsBaseAsset2internalId(priceAssetId))
331- if (if ((amountAssetInternal == unit))
332- then true
333- else (priceAssetInternal == unit))
334- then false
335- else {
336- let amAs = toString(value(amountAssetInternal))
337- let prAs = toString(value(priceAssetInternal))
338- let cfg = getString(keyPoolConfig(amAs, prAs))
339- let cfgReverse = getString(keyPoolConfig(prAs, amAs))
340- let exists = if ((cfg != unit))
341- then true
342- else (cfgReverse != unit)
343- exists
344- }
345- }
346-
347-
348-@Callable(i)
349-func getSwapContractREADONLY () = $Tuple2(nil, getStringOrFail(swapContract()))
350-
351-
352-
353-@Callable(i)
354-func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = if (if ((asset1 == "8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS"))
355- then (asset2 == "WAVES")
356- else false)
357- then $Tuple2(nil, unit)
358- else {
359- let assetNum1 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset1)))
360- let assetNum2 = value(getInteger(this, keyMappingsBaseAsset2internalId(asset2)))
361- let ee = getString(this, keyMappingPoolAssetsToLpasset(toString(assetNum1), toString(assetNum2)))
362- let res = if ((ee == unit))
363- then unit
364- else drop(value(ee), 4)
365- $Tuple2(nil, res)
366- }
367-
368-
369-
370-@Callable(i)
371-func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, valueOrElse(getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp)), ""))
372-
373328
374329
375330 @Callable(i)
376331 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
377332 let checkCaller = mustManager(i)
378333 if ((checkCaller == checkCaller))
379334 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
380335 else throw("Strict value is not equal to itself.")
381336 }
382337
383338
384339
385340 @Callable(i)
386341 func constructorV2 (mathcherPub58Str) = {
387342 let checkCaller = mustManager(i)
388343 if ((checkCaller == checkCaller))
389344 then {
390345 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
391346 if ((mathcerPub == mathcerPub))
392347 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
393348 else throw("Strict value is not equal to itself.")
394349 }
395350 else throw("Strict value is not equal to itself.")
396351 }
397352
398353
399354
400355 @Callable(i)
401356 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
402357 let checkCaller = mustManager(i)
403358 if ((checkCaller == checkCaller))
404359 then {
405360 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
406361 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
407362 }
408363 else throw("Strict value is not equal to itself.")
409364 }
410365
411366
412367
413368 @Callable(i)
414369 func constructorV4 (legacyFactoryContract,legacyPools) = {
415370 let checkCaller = mustManager(i)
416371 if ((checkCaller == checkCaller))
417372 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
418373 else throw("Strict value is not equal to itself.")
419374 }
420375
421376
422377
423378 @Callable(i)
424379 func constructorV5 (assetsStoreContract) = {
425380 let checkCaller = mustManager(i)
426381 if ((checkCaller == checkCaller))
427382 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
428383 else throw("Strict value is not equal to itself.")
429384 }
430385
431386
432387
433388 @Callable(i)
434389 func constructorV6 (votingEmissionContract,priceAssets) = {
435390 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
436391 then true
437392 else "invalid voting emission contract address"]
438393 if ((cheks == cheks))
439394 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
440395 else throw("Strict value is not equal to itself.")
441396 }
442397
443398
444399
445400 @Callable(i)
446401 func setManager (pendingManagerPublicKey) = {
447402 let checkCaller = mustManager(i)
448403 if ((checkCaller == checkCaller))
449404 then {
450405 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
451406 if ((checkManagerPublicKey == checkManagerPublicKey))
452407 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
453408 else throw("Strict value is not equal to itself.")
454409 }
455410 else throw("Strict value is not equal to itself.")
456411 }
457412
458413
459414
460415 @Callable(i)
461416 func confirmManager () = {
462417 let pm = pendingManagerPublicKeyOrUnit()
463418 let hasPM = if (isDefined(pm))
464419 then true
465420 else throw("No pending manager")
466421 if ((hasPM == hasPM))
467422 then {
468423 let checkPM = if ((i.callerPublicKey == value(pm)))
469424 then true
470425 else throw("You are not pending manager")
471426 if ((checkPM == checkPM))
472427 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
473428 else throw("Strict value is not equal to itself.")
474429 }
475430 else throw("Strict value is not equal to itself.")
476431 }
477432
478433
479434
480435 @Callable(i)
481436 func setAdmins (adminPubKeys) = {
482437 let checkCaller = mustManager(i)
483438 if ((checkCaller == checkCaller))
484439 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
485440 else throw("Strict value is not equal to itself.")
486441 }
487442
488443
489444
490445 @Callable(i)
491446 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
492447 let checkCaller = mustAdmin(i)
493448 if ((checkCaller == checkCaller))
494449 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
495450 then throw((("Pool address " + poolAddress) + " already registered."))
496451 else {
497452 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
498453 let internalAmountAssetId = internalAmountAssetData._1
499454 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
500455 then 2
501456 else 1)
502457 let internalPriceAssetId = internalPriceAssetData._1
503458 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
504459 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
505- let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
506- if (poolExists)
460+ let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))
461+ if (isDefined(poolConfig))
507462 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
508463 else {
509464 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
510465 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
511466 then decimalsMultPrice
512467 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
513468 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
514469 then decimalsMultPrice
515470 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
516471 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
517472 let lpAssetId = calculateAssetId(lpAssetIssueAction)
518473 let lpAssetIdStr = toBase58String(lpAssetId)
519474 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
520475 if ((poolActivateInvokeResult == poolActivateInvokeResult))
521476 then if ((poolActivateInvokeResult != "success"))
522477 then throw("Pool initialisation error happened.")
523478 else {
524479 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
525480 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
526481 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
527482 then {
528483 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
529484 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
530485 then {
531486 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
532487 if ((setLogoInv == setLogoInv))
533488 then {
534489 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
535490 if ((addAssetsLinkInv == addAssetsLinkInv))
536491 then {
537492 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
538493 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
539494 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)
540495 else throw("Strict value is not equal to itself.")
541496 }
542497 else throw("Strict value is not equal to itself.")
543498 }
544499 else throw("Strict value is not equal to itself.")
545500 }
546501 else throw("Strict value is not equal to itself.")
547502 }
548503 else throw("Strict value is not equal to itself.")
549504 }
550505 else throw("Strict value is not equal to itself.")
551506 }
552507 }
553508 else throw("Strict value is not equal to itself.")
554509 }
555510
556511
557512
558513 @Callable(i)
559514 func managePool (poolAddress,newStatus) = {
560515 let checkCaller = mustManager(i)
561516 if ((checkCaller == checkCaller))
562517 then {
563518 let poolConfig = getPoolConfig(poolAddress)
564519 let poolStatus = poolConfig[idxPoolStatus]
565520 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
566521 let amountAssetStr = poolConfig[idxAmtAssetId]
567522 let priceAssetStr = poolConfig[idxPriceAssetId]
568523 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
569524 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
570525 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
571526 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
572527 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
573528 let poolType = poolConfig[idxPoolType]
574529 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
575530 }
576531 else throw("Strict value is not equal to itself.")
577532 }
578533
579534
580535
581536 @Callable(i)
582537 func emit (amountToEmit) = {
583538 let caller = i.caller
584539 let originCaller = i.originCaller
585540 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
586541 let lpAsset = fromBase58String(lpAssetRequested)
587542 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
588543 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
589544 if ((0 >= amountToEmit))
590545 then nil
591546 else if (containsElement(legacyPools, toString(caller)))
592547 then $Tuple2(nil, legacyFactoryContract)
593548 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
594549 }
595550
596551
597552
598553 @Callable(i)
599554 func burn (amountToBurn) = {
600555 let caller = i.caller
601556 let originCaller = i.originCaller
602557 let payment = value(i.payments[0])
603558 let paymentAmount = value(payment.amount)
604559 let inAmountAssetId = toBase58String(value(payment.assetId))
605560 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
606561 if ((inAmountAssetId != lpAssetRequestedForBurning))
607562 then throw("Invalid asset passed.")
608563 else if ((amountToBurn != paymentAmount))
609564 then throw("Invalid amount passed.")
610565 else {
611566 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
612567 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
613568 }
614569 }
615570
616571
617572
618573 @Callable(i)
619574 func modifyWeight (lpAssetId,share) = {
620575 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
621576 then true
622577 else mustManager(i)
623578 if ((checkCaller == checkCaller))
624579 then {
625580 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
626581 let poolWeightKey = keyPoolToWeight(poolContractAddress)
627582 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
628583 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
629584 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
630585 let poolWeightNew = share
631586 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
632587 let stakingContract = getStakingAddressOrFail(factoryCfg)
633588 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
634589 if ((onModifyWeightInv == onModifyWeightInv))
635590 then {
636591 let gwxVirtualPoolActions = if ((gwxWeight == 0))
637592 then nil
638593 else [IntegerEntry(gwxWeightKey, 0)]
639594 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
640595 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
641596 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
642597 then nil
643598 else [DeleteEntry(poolWeightHistoryKey)]
644599 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
645600 }
646601 else throw("Strict value is not equal to itself.")
647602 }
648603 else throw("Strict value is not equal to itself.")
649604 }
650605
651606
652607
653608 @Callable(i)
654609 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
655610 let checkCaller = mustManager(i)
656611 if ((checkCaller == checkCaller))
657612 then {
658613 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
659614 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
660615 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
661616 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
662617 let stakingDapp = getStakingAddressOrFail(factoryCfg)
663618 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
664619 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
665620 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
666621 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
667622 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
668623 let btcWeight = getIntOrFail(btcWeightKEY)
669624 let ethWeight = getIntOrFail(ethWeightKEY)
670625 let btcWeightNew = (btcWeight - weightDecrement)
671626 let ethWeightNew = (ethWeight - weightDecrement)
672627 if ((0 >= btcWeightNew))
673628 then throw(("invalid btcWeightNew: " + toString(btcWeightNew)))
674629 else if ((0 >= ethWeightNew))
675630 then throw(("invalid ethWeightNew: " + toString(ethWeightNew)))
676631 else {
677632 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
678633 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
679634 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
680635 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
681636 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
682637 if ((onModifyWeightBtc == onModifyWeightBtc))
683638 then {
684639 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
685640 if ((onModifyWeightEth == onModifyWeightEth))
686641 then {
687642 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
688643 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
689644 then {
690645 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
691646 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
692647 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)]
693648 else throw("Strict value is not equal to itself.")
694649 }
695650 else throw("Strict value is not equal to itself.")
696651 }
697652 else throw("Strict value is not equal to itself.")
698653 }
699654 else throw("Strict value is not equal to itself.")
700655 }
701656 }
702657 else throw("Strict value is not equal to itself.")
703658 }
704659
705660
706661
707662 @Callable(i)
708663 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
709664 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
710665 case b: Boolean =>
711666 b
712667 case _ =>
713668 false
714669 }
715670 $Tuple2(nil, haveLabel)
716671 }
717672
718673
719674
720675 @Callable(i)
721676 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
722677 let checkCaller = mustAdmin(i)
723678 if ((checkCaller == checkCaller))
724679 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
725680 else throw("Strict value is not equal to itself.")
726681 }
727682
728683
729684
730685 @Callable(i)
731686 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
732687 let checkCaller = if (mustThis(i))
733688 then true
734689 else mustAdmin(i)
735690 if ((checkCaller == checkCaller))
736691 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
737692 else throw("Strict value is not equal to itself.")
738693 }
739694
740695
741696
742697 @Callable(i)
743698 func onVerificationLoss (assetId) = {
744699 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
745700 then true
746701 else mustManager(i)
747702 if ((checkCaller == checkCaller))
748703 then {
749704 let priceAssets = getPriceAssets()
750705 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
751706 then true
752707 else throw("invalid price assets")
753708 if ((checkPriceAssetsSize == checkPriceAssetsSize))
754709 then {
755710 func cb (acc,priceAsset) = {
756711 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
757712 if ((r == r))
758713 then unit
759714 else throw("Strict value is not equal to itself.")
760715 }
761716
762717 let actions = {
763718 let $l = priceAssets
764719 let $s = size($l)
765720 let $acc0 = unit
766721 func $f0_1 ($a,$i) = if (($i >= $s))
767722 then $a
768723 else cb($a, $l[$i])
769724
770725 func $f0_2 ($a,$i) = if (($i >= $s))
771726 then $a
772- else throw("List size exceeds 1")
727+ else throw("List size exceeds 3")
773728
774- $f0_2($f0_1($acc0, 0), 1)
729+ $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
775730 }
776731 if ((actions == actions))
777732 then $Tuple2(nil, unit)
778733 else throw("Strict value is not equal to itself.")
779734 }
780735 else throw("Strict value is not equal to itself.")
781736 }
782737 else throw("Strict value is not equal to itself.")
783738 }
784739
785740
786741
787742 @Callable(i)
788743 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
789744 let poolConfig = getPoolConfig(poolAddress)
790745 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
791746 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
792747 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
793748 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
794749 then true
795750 else poolOneTokenOperationsDisabled)
796751 }
797752
798753
799754
800755 @Callable(i)
801756 func getInFeeREADONLY (poolAddress) = {
802757 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
803758 $Tuple2(nil, fee)
804759 }
805760
806761
807762
808763 @Callable(i)
809764 func getOutFeeREADONLY (poolAddress) = {
810765 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
811766 $Tuple2(nil, fee)
812767 }
813768
814769
815770
816771 @Callable(i)
772+func poolInfoREADONLY (amountAssetIdStr,priceAssetIdStr) = {
773+ let amountAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(amountAssetIdStr))
774+ let priceAssetInternalIdOption = getInteger(this, keyMappingsBaseAsset2internalId(priceAssetIdStr))
775+ let poolContractAddressOption = getString(this, keyMappingPoolAssetsToPoolContractAddress(value(amountAssetInternalIdOption), value(priceAssetInternalIdOption)))
776+ let lpAssetIdOption = getString(this, keyMappingPoolContractToLPAsset(value(poolContractAddressOption)))
777+ let poolExists = if (if (isDefined(amountAssetInternalIdOption))
778+ then isDefined(priceAssetInternalIdOption)
779+ else false)
780+ then isDefined(poolContractAddressOption)
781+ else false
782+ let poolInfo = if (poolExists)
783+ then $Tuple2(addressFromStringValue(value(poolContractAddressOption)), parseAssetId(value(lpAssetIdOption)))
784+ else unit
785+ $Tuple2(nil, poolInfo)
786+ }
787+
788+
789+
790+@Callable(i)
817791 func getPoolStatusREADONLY (poolAddress) = {
818792 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
819793 let amountAssetInternal = poolAssets[1]
820794 let priceAssetInternal = poolAssets[2]
821795 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
822796 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
823797 }
824-
825-
826-
827-@Callable(i)
828-func getPoolConfigREADONLY (poolAddress) = {
829- let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
830- let amountAssetInternal = poolAssets[1]
831- let priceAssetInternal = poolAssets[2]
832- let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
833- $Tuple2(nil, cfg)
834- }
835-
836-
837-
838-@Callable(i)
839-func poolExistsREADONLY (amountAssetId,priceAssetId) = $Tuple2(nil, poolExistsInternal(amountAssetId, priceAssetId))
840798
841799
842800 @Verifier(tx)
843801 func verify () = {
844802 let targetPublicKey = match managerPublicKeyOrUnit() {
845803 case pk: ByteVector =>
846804 pk
847805 case _: Unit =>
848806 tx.senderPublicKey
849807 case _ =>
850808 throw("Match error")
851809 }
852810 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
853811 }
854812

github/deemru/w8io/026f985 
105.38 ms