tx · 5xxbHpLQ1J579DHTyCz9ZbVrAnvUqag8v2WQ9mpFWYLt

3MqAT6VCwdsABD18Abytrmi7EmaLGSVzNKY:  -0.03100000 Waves

2023.02.22 15:38 [2460867] smart account 3MqAT6VCwdsABD18Abytrmi7EmaLGSVzNKY > SELF 0.00000000 Waves

{ "type": 13, "id": "5xxbHpLQ1J579DHTyCz9ZbVrAnvUqag8v2WQ9mpFWYLt", "fee": 3100000, "feeAssetId": null, "timestamp": 1677069487994, "version": 2, "chainId": 84, "sender": "3MqAT6VCwdsABD18Abytrmi7EmaLGSVzNKY", "senderPublicKey": "HfB4CZkBhLMntiSTYMMwjyaM3hzcfaPjay5VZ9Pe71BA", "proofs": [ "VEwkFtfAtUi3napA5UKaUKkbcrH4ezPzdGJJEFXUfkHexBqAy1dSjAToptEPkayAJ9DsTsBjuJbE7neF9VTejAo" ], "script": "base64:BgKlAQgCEgASBAoCCAgSAwoBCBIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIECgIICGcABlNDQUxFOAAIAAVNVUxUOACAwtcvAAdTQ0FMRTE4ABIABk1VTFQxOAkAtgIBAICAkLu61q3wDQAOUE9PTFdFSUdIVE1VTFQFBU1VTFQ4AA5HV1h2aXJ0dWFsUE9PTAIOR1dYdmlydHVhbFBPT0wADGxhYmVsUG9vbHNMcAIIUE9PTFNfTFAADWRlZmF1bHRTcHJlYWQAgIl6ABFkZWNpbWFsc011bHRQcmljZQkAaAIJAGgCAGQA6AcA6AcAA1NFUAICX18ABUVNUFRZAgAAClBvb2xBY3RpdmUAAQAPUG9vbFB1dERpc2FibGVkAAIAE1Bvb2xNYXRjaGVyRGlzYWJsZWQAAwAMUG9vbFNodXRkb3duAAQAEmlkeEludGVyb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2V0cwABBBJwcmljZUFzc2V0SW50ZXJuYWwJAJEDAgUKcG9vbEFzc2V0cwACBANjZmcJALUJAgkBD2dldFN0cmluZ09yRmFpbAEJAQ1rZXlQb29sQ29uZmlnAgUTYW1vdW50QXNzZXRJbnRlcm5hbAUScHJpY2VBc3NldEludGVybmFsBQNTRVAJAJQKAgUDbmlsBQNjZmcBaQEScG9vbEV4aXN0c1JFQURPTkxZAg1hbW91bnRBc3NldElkDHByaWNlQXNzZXRJZAkAlAoCBQNuaWwJARJwb29sRXhpc3RzSW50ZXJuYWwCBQ1hbW91bnRBc3NldElkBQxwcmljZUFzc2V0SWQBAnR4AQZ2ZXJpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXnLRl6S", "height": 2460867, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4KcUCEB5mHdjiVa1QCfW23sGmX49XXwQFiRPU46HFD7B Next: ABBiMQsDNeNtLhHUPv8n3jhEKTzTcxKbXFavqvFmUacL Diff:
OldNewDifferences
7272 func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash"
7373
7474
75+func swapContract () = "%s__swapContract"
76+
77+
7578 func keyFactoryConfig () = "%s__factoryConfig"
7679
7780
133136
134137
135138 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
136- let $t037273789 = assetsInternal
137- let amountAssetInternal = $t037273789._1
138- let priceAssetInternal = $t037273789._2
139+ let $t037003762 = assetsInternal
140+ let amountAssetInternal = $t037003762._1
141+ let priceAssetInternal = $t037003762._2
139142 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
140143 }
141144
254257
255258 let permissionDeniedError = throw("Permission denied")
256259
260+let testError = throw("Test error here")
261+
257262 func mustThis (i) = if ((i.caller == this))
258263 then true
259264 else permissionDeniedError
318323
319324
320325 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+
321373
322374
323375 @Callable(i)
450502 let internalPriceAssetId = internalPriceAssetData._1
451503 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
452504 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
453- let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))
454- if (isDefined(poolConfig))
505+ let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
506+ if (poolExists)
455507 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
456508 else {
457509 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
771823 }
772824
773825
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))
840+
841+
774842 @Verifier(tx)
775843 func verify () = {
776844 let targetPublicKey = match managerPublicKeyOrUnit() {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 8
55
66 let MULT8 = 100000000
77
88 let SCALE18 = 18
99
1010 let MULT18 = toBigInt(1000000000000000000)
1111
1212 let POOLWEIGHTMULT = MULT8
1313
1414 let GWXvirtualPOOL = "GWXvirtualPOOL"
1515
1616 let labelPoolsLp = "POOLS_LP"
1717
1818 let defaultSpread = 2000000
1919
2020 let decimalsMultPrice = ((100 * 1000) * 1000)
2121
2222 let SEP = "__"
2323
2424 let EMPTY = ""
2525
2626 let PoolActive = 1
2727
2828 let PoolPutDisabled = 2
2929
3030 let PoolMatcherDisabled = 3
3131
3232 let PoolShutdown = 4
3333
3434 let idxInternalAssetId = 1
3535
3636 let idxResutActions = 2
3737
3838 let idxIfAssetIdCalculationPerformed = 3
3939
4040 let idxPoolAddress = 1
4141
4242 let idxPoolStatus = 2
4343
4444 let idxPoolLPAssetId = 3
4545
4646 let idxAmtAssetId = 4
4747
4848 let idxPriceAssetId = 5
4949
5050 let idxAmtAssetDcm = 6
5151
5252 let idxPriceAssetDcm = 7
5353
5454 let idxIAmtAssetId = 8
5555
5656 let idxIPriceAssetId = 9
5757
5858 let idxLPAssetDcm = 10
5959
6060 let idxPoolType = 11
6161
6262 let poolLabelWxEmission = "WX_EMISSION"
6363
6464 let validPoolLabels = [poolLabelWxEmission]
6565
6666 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
6767
6868
6969 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
7070
7171
7272 func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash"
7373
7474
75+func swapContract () = "%s__swapContract"
76+
77+
7578 func keyFactoryConfig () = "%s__factoryConfig"
7679
7780
7881 func keyLpTokensList () = "%s__lpTokensList"
7982
8083
8184 func keyPoolScriptHash () = "%s%s__pool__scriptHash"
8285
8386
8487 func keyMatcherPub () = "%s%s__matcher__publicKey"
8588
8689
8790 func keyLegacyFactoryContract () = "%s__legacyFactoryContract"
8891
8992
9093 func keyLegacyPools () = "%s__legacyPools"
9194
9295
9396 func keyManagerPublicKey () = "%s__managerPublicKey"
9497
9598
9699 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
97100
98101
99102 func keyAdminPubKeys () = "%s__adminPubKeys"
100103
101104
102105 func keyAssetsStoreContract () = "%s__assetsStoreContract"
103106
104107
105108 func keyVotingEmissionContract () = "%s__votingEmissionContract"
106109
107110
108111 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
109112
110113
111114 func keyPriceDecimals () = "%s__priceDecimals"
112115
113116
114117 func keyAllPoolsShutdown () = "%s__shutdown"
115118
116119
117120 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
118121
119122
120123 func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
121124
122125
123126 func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
124127
125128
126129 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
127130
128131
129132 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
130133
131134
132135 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
133136
134137
135138 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
136- let $t037273789 = assetsInternal
137- let amountAssetInternal = $t037273789._1
138- let priceAssetInternal = $t037273789._2
139+ let $t037003762 = assetsInternal
140+ let amountAssetInternal = $t037003762._1
141+ let priceAssetInternal = $t037003762._2
139142 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
140143 }
141144
142145
143146 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
144147
145148
146149 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
147150
148151
149152 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
150153
151154
152155 func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
153156
154157
155158 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
156159
157160
158161 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
159162
160163
161164 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
162165
163166
164167 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
165168
166169
167170 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
168171
169172
170173 func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress)
171174
172175
173176 func keyInFeeDefault () = "%s__inFeeDefault"
174177
175178
176179 func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress)
177180
178181
179182 func keyOutFeeDefault () = "%s__outFeeDefault"
180183
181184
182185 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
183186
184187
185188 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
186189
187190
188191 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
189192
190193
191194 let IdxFactoryCfgStakingDapp = 1
192195
193196 let IdxFactoryCfgBoostingDapp = 2
194197
195198 let IdxFactoryCfgIdoDapp = 3
196199
197200 let IdxFactoryCfgTeamDapp = 4
198201
199202 let IdxFactoryCfgEmissionDapp = 5
200203
201204 let IdxFactoryCfgRestDapp = 6
202205
203206 let IdxFactoryCfgSlippageDapp = 7
204207
205208 let IdxFactoryCfgDaoDapp = 8
206209
207210 let IdxFactoryCfgMarketingDapp = 9
208211
209212 let IdxFactoryCfgGwxRewardDapp = 10
210213
211214 let IdxFactoryCfgBirdsDapp = 11
212215
213216 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
214217
215218
216219 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
217220
218221
219222 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
220223
221224
222225 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
223226
224227
225228 func getPriceAssets () = match getString(keyPriceAssets()) {
226229 case s: String =>
227230 if ((size(s) == 0))
228231 then nil
229232 else split(s, SEP)
230233 case _ =>
231234 nil
232235 }
233236
234237
235238 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
236239 case s: String =>
237240 fromBase58String(s)
238241 case _: Unit =>
239242 unit
240243 case _ =>
241244 throw("Match error")
242245 }
243246
244247
245248 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
246249 case s: String =>
247250 fromBase58String(s)
248251 case _: Unit =>
249252 unit
250253 case _ =>
251254 throw("Match error")
252255 }
253256
254257
255258 let permissionDeniedError = throw("Permission denied")
256259
260+let testError = throw("Test error here")
261+
257262 func mustThis (i) = if ((i.caller == this))
258263 then true
259264 else permissionDeniedError
260265
261266
262267 func mustManager (i) = match managerPublicKeyOrUnit() {
263268 case pk: ByteVector =>
264269 if ((i.callerPublicKey == pk))
265270 then true
266271 else permissionDeniedError
267272 case _: Unit =>
268273 mustThis(i)
269274 case _ =>
270275 throw("Match error")
271276 }
272277
273278
274279 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)
275280
276281
277282 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
278283
279284
280285 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)
281286
282287
283288 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
284289
285290
286291 func getPoolConfig (poolAddress) = {
287292 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
288293 let amountAssetInternal = poolAssets[1]
289294 let priceAssetInternal = poolAssets[2]
290295 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
291296 }
292297
293298
294299 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
295300 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
296301 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
297302 let result = if ((internalAssetId == 0))
298303 then {
299304 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
300305 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
301306 }
302307 else $Tuple3(internalAssetId, nil, false)
303308 result
304309 }
305310
306311
307312 func mustAdmin (i) = {
308313 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
309314 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
310315 then true
311316 else {
312317 let isManager = mustManager(i)
313318 if ((isManager == isManager))
314319 then true
315320 else throw("Strict value is not equal to itself.")
316321 }
317322 }
318323
319324
320325 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+
321373
322374
323375 @Callable(i)
324376 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
325377 let checkCaller = mustManager(i)
326378 if ((checkCaller == checkCaller))
327379 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
328380 else throw("Strict value is not equal to itself.")
329381 }
330382
331383
332384
333385 @Callable(i)
334386 func constructorV2 (mathcherPub58Str) = {
335387 let checkCaller = mustManager(i)
336388 if ((checkCaller == checkCaller))
337389 then {
338390 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
339391 if ((mathcerPub == mathcerPub))
340392 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
341393 else throw("Strict value is not equal to itself.")
342394 }
343395 else throw("Strict value is not equal to itself.")
344396 }
345397
346398
347399
348400 @Callable(i)
349401 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
350402 let checkCaller = mustManager(i)
351403 if ((checkCaller == checkCaller))
352404 then {
353405 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
354406 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
355407 }
356408 else throw("Strict value is not equal to itself.")
357409 }
358410
359411
360412
361413 @Callable(i)
362414 func constructorV4 (legacyFactoryContract,legacyPools) = {
363415 let checkCaller = mustManager(i)
364416 if ((checkCaller == checkCaller))
365417 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
366418 else throw("Strict value is not equal to itself.")
367419 }
368420
369421
370422
371423 @Callable(i)
372424 func constructorV5 (assetsStoreContract) = {
373425 let checkCaller = mustManager(i)
374426 if ((checkCaller == checkCaller))
375427 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
376428 else throw("Strict value is not equal to itself.")
377429 }
378430
379431
380432
381433 @Callable(i)
382434 func constructorV6 (votingEmissionContract,priceAssets) = {
383435 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
384436 then true
385437 else "invalid voting emission contract address"]
386438 if ((cheks == cheks))
387439 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
388440 else throw("Strict value is not equal to itself.")
389441 }
390442
391443
392444
393445 @Callable(i)
394446 func setManager (pendingManagerPublicKey) = {
395447 let checkCaller = mustManager(i)
396448 if ((checkCaller == checkCaller))
397449 then {
398450 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
399451 if ((checkManagerPublicKey == checkManagerPublicKey))
400452 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
401453 else throw("Strict value is not equal to itself.")
402454 }
403455 else throw("Strict value is not equal to itself.")
404456 }
405457
406458
407459
408460 @Callable(i)
409461 func confirmManager () = {
410462 let pm = pendingManagerPublicKeyOrUnit()
411463 let hasPM = if (isDefined(pm))
412464 then true
413465 else throw("No pending manager")
414466 if ((hasPM == hasPM))
415467 then {
416468 let checkPM = if ((i.callerPublicKey == value(pm)))
417469 then true
418470 else throw("You are not pending manager")
419471 if ((checkPM == checkPM))
420472 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
421473 else throw("Strict value is not equal to itself.")
422474 }
423475 else throw("Strict value is not equal to itself.")
424476 }
425477
426478
427479
428480 @Callable(i)
429481 func setAdmins (adminPubKeys) = {
430482 let checkCaller = mustManager(i)
431483 if ((checkCaller == checkCaller))
432484 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
433485 else throw("Strict value is not equal to itself.")
434486 }
435487
436488
437489
438490 @Callable(i)
439491 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
440492 let checkCaller = mustAdmin(i)
441493 if ((checkCaller == checkCaller))
442494 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
443495 then throw((("Pool address " + poolAddress) + " already registered."))
444496 else {
445497 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
446498 let internalAmountAssetId = internalAmountAssetData._1
447499 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
448500 then 2
449501 else 1)
450502 let internalPriceAssetId = internalPriceAssetData._1
451503 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
452504 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
453- let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))
454- if (isDefined(poolConfig))
505+ let poolExists = poolExistsInternal(amountAssetStr, priceAssetStr)
506+ if (poolExists)
455507 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
456508 else {
457509 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
458510 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
459511 then decimalsMultPrice
460512 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
461513 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
462514 then decimalsMultPrice
463515 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
464516 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
465517 let lpAssetId = calculateAssetId(lpAssetIssueAction)
466518 let lpAssetIdStr = toBase58String(lpAssetId)
467519 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
468520 if ((poolActivateInvokeResult == poolActivateInvokeResult))
469521 then if ((poolActivateInvokeResult != "success"))
470522 then throw("Pool initialisation error happened.")
471523 else {
472524 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
473525 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
474526 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
475527 then {
476528 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
477529 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
478530 then {
479531 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
480532 if ((setLogoInv == setLogoInv))
481533 then {
482534 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
483535 if ((addAssetsLinkInv == addAssetsLinkInv))
484536 then {
485537 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
486538 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
487539 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)
488540 else throw("Strict value is not equal to itself.")
489541 }
490542 else throw("Strict value is not equal to itself.")
491543 }
492544 else throw("Strict value is not equal to itself.")
493545 }
494546 else throw("Strict value is not equal to itself.")
495547 }
496548 else throw("Strict value is not equal to itself.")
497549 }
498550 else throw("Strict value is not equal to itself.")
499551 }
500552 }
501553 else throw("Strict value is not equal to itself.")
502554 }
503555
504556
505557
506558 @Callable(i)
507559 func managePool (poolAddress,newStatus) = {
508560 let checkCaller = mustManager(i)
509561 if ((checkCaller == checkCaller))
510562 then {
511563 let poolConfig = getPoolConfig(poolAddress)
512564 let poolStatus = poolConfig[idxPoolStatus]
513565 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
514566 let amountAssetStr = poolConfig[idxAmtAssetId]
515567 let priceAssetStr = poolConfig[idxPriceAssetId]
516568 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
517569 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
518570 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
519571 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
520572 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
521573 let poolType = poolConfig[idxPoolType]
522574 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
523575 }
524576 else throw("Strict value is not equal to itself.")
525577 }
526578
527579
528580
529581 @Callable(i)
530582 func emit (amountToEmit) = {
531583 let caller = i.caller
532584 let originCaller = i.originCaller
533585 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
534586 let lpAsset = fromBase58String(lpAssetRequested)
535587 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
536588 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
537589 if ((0 >= amountToEmit))
538590 then nil
539591 else if (containsElement(legacyPools, toString(caller)))
540592 then $Tuple2(nil, legacyFactoryContract)
541593 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
542594 }
543595
544596
545597
546598 @Callable(i)
547599 func burn (amountToBurn) = {
548600 let caller = i.caller
549601 let originCaller = i.originCaller
550602 let payment = value(i.payments[0])
551603 let paymentAmount = value(payment.amount)
552604 let inAmountAssetId = toBase58String(value(payment.assetId))
553605 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
554606 if ((inAmountAssetId != lpAssetRequestedForBurning))
555607 then throw("Invalid asset passed.")
556608 else if ((amountToBurn != paymentAmount))
557609 then throw("Invalid amount passed.")
558610 else {
559611 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
560612 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
561613 }
562614 }
563615
564616
565617
566618 @Callable(i)
567619 func modifyWeight (lpAssetId,share) = {
568620 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
569621 then true
570622 else mustManager(i)
571623 if ((checkCaller == checkCaller))
572624 then {
573625 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
574626 let poolWeightKey = keyPoolToWeight(poolContractAddress)
575627 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
576628 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
577629 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
578630 let poolWeightNew = share
579631 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
580632 let stakingContract = getStakingAddressOrFail(factoryCfg)
581633 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
582634 if ((onModifyWeightInv == onModifyWeightInv))
583635 then {
584636 let gwxVirtualPoolActions = if ((gwxWeight == 0))
585637 then nil
586638 else [IntegerEntry(gwxWeightKey, 0)]
587639 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
588640 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
589641 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
590642 then nil
591643 else [DeleteEntry(poolWeightHistoryKey)]
592644 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
593645 }
594646 else throw("Strict value is not equal to itself.")
595647 }
596648 else throw("Strict value is not equal to itself.")
597649 }
598650
599651
600652
601653 @Callable(i)
602654 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
603655 let checkCaller = mustManager(i)
604656 if ((checkCaller == checkCaller))
605657 then {
606658 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
607659 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
608660 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
609661 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
610662 let stakingDapp = getStakingAddressOrFail(factoryCfg)
611663 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
612664 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
613665 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
614666 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
615667 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
616668 let btcWeight = getIntOrFail(btcWeightKEY)
617669 let ethWeight = getIntOrFail(ethWeightKEY)
618670 let btcWeightNew = (btcWeight - weightDecrement)
619671 let ethWeightNew = (ethWeight - weightDecrement)
620672 if ((0 >= btcWeightNew))
621673 then throw(("invalid btcWeightNew: " + toString(btcWeightNew)))
622674 else if ((0 >= ethWeightNew))
623675 then throw(("invalid ethWeightNew: " + toString(ethWeightNew)))
624676 else {
625677 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
626678 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
627679 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
628680 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
629681 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
630682 if ((onModifyWeightBtc == onModifyWeightBtc))
631683 then {
632684 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
633685 if ((onModifyWeightEth == onModifyWeightEth))
634686 then {
635687 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
636688 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
637689 then {
638690 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
639691 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
640692 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)]
641693 else throw("Strict value is not equal to itself.")
642694 }
643695 else throw("Strict value is not equal to itself.")
644696 }
645697 else throw("Strict value is not equal to itself.")
646698 }
647699 else throw("Strict value is not equal to itself.")
648700 }
649701 }
650702 else throw("Strict value is not equal to itself.")
651703 }
652704
653705
654706
655707 @Callable(i)
656708 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
657709 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
658710 case b: Boolean =>
659711 b
660712 case _ =>
661713 false
662714 }
663715 $Tuple2(nil, haveLabel)
664716 }
665717
666718
667719
668720 @Callable(i)
669721 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
670722 let checkCaller = mustAdmin(i)
671723 if ((checkCaller == checkCaller))
672724 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
673725 else throw("Strict value is not equal to itself.")
674726 }
675727
676728
677729
678730 @Callable(i)
679731 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
680732 let checkCaller = if (mustThis(i))
681733 then true
682734 else mustAdmin(i)
683735 if ((checkCaller == checkCaller))
684736 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
685737 else throw("Strict value is not equal to itself.")
686738 }
687739
688740
689741
690742 @Callable(i)
691743 func onVerificationLoss (assetId) = {
692744 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
693745 then true
694746 else mustManager(i)
695747 if ((checkCaller == checkCaller))
696748 then {
697749 let priceAssets = getPriceAssets()
698750 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
699751 then true
700752 else throw("invalid price assets")
701753 if ((checkPriceAssetsSize == checkPriceAssetsSize))
702754 then {
703755 func cb (acc,priceAsset) = {
704756 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
705757 if ((r == r))
706758 then unit
707759 else throw("Strict value is not equal to itself.")
708760 }
709761
710762 let actions = {
711763 let $l = priceAssets
712764 let $s = size($l)
713765 let $acc0 = unit
714766 func $f0_1 ($a,$i) = if (($i >= $s))
715767 then $a
716768 else cb($a, $l[$i])
717769
718770 func $f0_2 ($a,$i) = if (($i >= $s))
719771 then $a
720772 else throw("List size exceeds 1")
721773
722774 $f0_2($f0_1($acc0, 0), 1)
723775 }
724776 if ((actions == actions))
725777 then $Tuple2(nil, unit)
726778 else throw("Strict value is not equal to itself.")
727779 }
728780 else throw("Strict value is not equal to itself.")
729781 }
730782 else throw("Strict value is not equal to itself.")
731783 }
732784
733785
734786
735787 @Callable(i)
736788 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
737789 let poolConfig = getPoolConfig(poolAddress)
738790 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
739791 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
740792 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
741793 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
742794 then true
743795 else poolOneTokenOperationsDisabled)
744796 }
745797
746798
747799
748800 @Callable(i)
749801 func getInFeeREADONLY (poolAddress) = {
750802 let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0)
751803 $Tuple2(nil, fee)
752804 }
753805
754806
755807
756808 @Callable(i)
757809 func getOutFeeREADONLY (poolAddress) = {
758810 let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000))
759811 $Tuple2(nil, fee)
760812 }
761813
762814
763815
764816 @Callable(i)
765817 func getPoolStatusREADONLY (poolAddress) = {
766818 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
767819 let amountAssetInternal = poolAssets[1]
768820 let priceAssetInternal = poolAssets[2]
769821 let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
770822 $Tuple2(nil, parseIntValue(cfg[idxPoolStatus]))
771823 }
772824
773825
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))
840+
841+
774842 @Verifier(tx)
775843 func verify () = {
776844 let targetPublicKey = match managerPublicKeyOrUnit() {
777845 case pk: ByteVector =>
778846 pk
779847 case _: Unit =>
780848 tx.senderPublicKey
781849 case _ =>
782850 throw("Match error")
783851 }
784852 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
785853 }
786854

github/deemru/w8io/026f985 
105.76 ms