tx · 36WEhWv7xQskRAvrDY3DuqDgrKSFmQQ7WLbhukmxGBik

3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai:  -0.03500000 Waves

2022.12.05 13:06 [2346917] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves

{ "type": 13, "id": "36WEhWv7xQskRAvrDY3DuqDgrKSFmQQ7WLbhukmxGBik", "fee": 3500000, "feeAssetId": null, "timestamp": 1670234741405, "version": 2, "chainId": 84, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "66DTc8mpw1LBZTC4Y6U1ji66YAkVqGYsyL6BXrQP956xCcHth1e2SJsQMxjWtTFHaWqLKEaxNYH5zMhZE55Yq32P" ], "script": "base64:AAIFAAAAAAAAAH4IAhIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgAAABfAAAAAAZTQ0FMRTgAAAAAAAAAAAgAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAdTQ0FMRTE4AAAAAAAAAAASAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAOUE9PTFdFSUdIVE1VTFQFAAAABU1VTFQ4AAAAAA5HV1h2aXJ0dWFsUE9PTAIAAAAOR1dYdmlydHVhbFBPT0wAAAAADGxhYmVsUG9vbHNMcAIAAAAIUE9PTFNfTFAAAAAADWRlZmF1bHRTcHJlYWQAAAAAAAAehIAAAAAAEWRlY2ltYWxzTXVsdFByaWNlCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAZAAAAAAAAAAD6AAAAAAAAAAD6AAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCA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mVUb2tlbk9wZXJhdGlvbnNEaXNhYmxlZAkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABCAAAAABCQEAAAAha2V5UG9vbE9uZVRva2VuT3BlcmF0aW9uc0Rpc2FibGVkAAAAAQUAAAAOYXNzZXRzSW50ZXJuYWwHBAAAACJhbGxQb29sc09uZVRva2VuT3BlcmF0aW9uc0Rpc2FibGVkCQEAAAALdmFsdWVPckVsc2UAAAACCQAEIAAAAAEJAQAAACVrZXlBbGxQb29sc09uZVRva2VuT3BlcmF0aW9uc0Rpc2FibGVkAAAAAAcJAAUUAAAAAgUAAAADbmlsAwUAAAAiYWxsUG9vbHNPbmVUb2tlbk9wZXJhdGlvbnNEaXNhYmxlZAYFAAAAHnBvb2xPbmVUb2tlbk9wZXJhdGlvbnNEaXNhYmxlZAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAD3RhcmdldFB1YmxpY0tleQQAAAAHJG1hdGNoMAkBAAAAFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXkU1cpN", "height": 2346917, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 96Gx3GQsjJADE4KRw1spA3YBZYLWkk4ujUvY78a64UWW Next: 5EYwLezaZQU2k2nDHNuW4iFRtNunKMW7br1YgSuzLJfy Diff:
OldNewDifferences
1414 let GWXvirtualPOOL = "GWXvirtualPOOL"
1515
1616 let labelPoolsLp = "POOLS_LP"
17+
18+let defaultSpread = 2000000
1719
1820 let decimalsMultPrice = ((100 * 1000) * 1000)
1921
131133
132134
133135 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
134- let $t035873649 = assetsInternal
135- let amountAssetInternal = $t035873649._1
136- let priceAssetInternal = $t035873649._2
136+ let $t036323694 = assetsInternal
137+ let amountAssetInternal = $t036323694._1
138+ let priceAssetInternal = $t036323694._2
137139 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
138140 }
139141
145147
146148
147149 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
150+
151+
152+func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
148153
149154
150155 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
464469 then {
465470 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
466471 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
467- 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)]), lpAssetIdStr)
472+ 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)
468473 else throw("Strict value is not equal to itself.")
469474 }
470475 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# 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"
17+
18+let defaultSpread = 2000000
1719
1820 let decimalsMultPrice = ((100 * 1000) * 1000)
1921
2022 let SEP = "__"
2123
2224 let EMPTY = ""
2325
2426 let PoolActive = 1
2527
2628 let PoolPutDisabled = 2
2729
2830 let PoolMatcherDisabled = 3
2931
3032 let PoolShutdown = 4
3133
3234 let idxInternalAssetId = 1
3335
3436 let idxResutActions = 2
3537
3638 let idxIfAssetIdCalculationPerformed = 3
3739
3840 let idxPoolAddress = 1
3941
4042 let idxPoolStatus = 2
4143
4244 let idxPoolLPAssetId = 3
4345
4446 let idxAmtAssetId = 4
4547
4648 let idxPriceAssetId = 5
4749
4850 let idxAmtAssetDcm = 6
4951
5052 let idxPriceAssetDcm = 7
5153
5254 let idxIAmtAssetId = 8
5355
5456 let idxIPriceAssetId = 9
5557
5658 let idxLPAssetDcm = 10
5759
5860 let idxPoolType = 11
5961
6062 let poolLabelWxEmission = "WX_EMISSION"
6163
6264 let validPoolLabels = [poolLabelWxEmission]
6365
6466 func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash"
6567
6668
6769 func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash"
6870
6971
7072 func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash"
7173
7274
7375 func keyFactoryConfig () = "%s__factoryConfig"
7476
7577
7678 func keyLpTokensList () = "%s__lpTokensList"
7779
7880
7981 func keyPoolScriptHash () = "%s%s__pool__scriptHash"
8082
8183
8284 func keyMatcherPub () = "%s%s__matcher__publicKey"
8385
8486
8587 func keyLegacyFactoryContract () = "%s__legacyFactoryContract"
8688
8789
8890 func keyLegacyPools () = "%s__legacyPools"
8991
9092
9193 func keyManagerPublicKey () = "%s__managerPublicKey"
9294
9395
9496 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
9597
9698
9799 func keyAdminPubKeys () = "%s__adminPubKeys"
98100
99101
100102 func keyAssetsStoreContract () = "%s__assetsStoreContract"
101103
102104
103105 func keyVotingEmissionContract () = "%s__votingEmissionContract"
104106
105107
106108 func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP)
107109
108110
109111 func keyPriceDecimals () = "%s__priceDecimals"
110112
111113
112114 func keyAllPoolsShutdown () = "%s__shutdown"
113115
114116
115117 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
116118
117119
118120 func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
119121
120122
121123 func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num))
122124
123125
124126 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
125127
126128
127129 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
128130
129131
130132 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
131133
132134
133135 func keyPoolOneTokenOperationsDisabled (assetsInternal) = {
134- let $t035873649 = assetsInternal
135- let amountAssetInternal = $t035873649._1
136- let priceAssetInternal = $t035873649._2
136+ let $t036323694 = assetsInternal
137+ let amountAssetInternal = $t036323694._1
138+ let priceAssetInternal = $t036323694._2
137139 makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP)
138140 }
139141
140142
141143 func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP)
142144
143145
144146 func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
145147
146148
147149 func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
150+
151+
152+func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress)
148153
149154
150155 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
151156
152157
153158 func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
154159
155160
156161 func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
157162
158163
159164 func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
160165
161166
162167 func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId)
163168
164169
165170 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
166171
167172
168173 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
169174
170175
171176 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
172177
173178
174179 let IdxFactoryCfgStakingDapp = 1
175180
176181 let IdxFactoryCfgBoostingDapp = 2
177182
178183 let IdxFactoryCfgIdoDapp = 3
179184
180185 let IdxFactoryCfgTeamDapp = 4
181186
182187 let IdxFactoryCfgEmissionDapp = 5
183188
184189 let IdxFactoryCfgRestDapp = 6
185190
186191 let IdxFactoryCfgSlippageDapp = 7
187192
188193 let IdxFactoryCfgDaoDapp = 8
189194
190195 let IdxFactoryCfgMarketingDapp = 9
191196
192197 let IdxFactoryCfgGwxRewardDapp = 10
193198
194199 let IdxFactoryCfgBirdsDapp = 11
195200
196201 func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp])
197202
198203
199204 func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp])
200205
201206
202207 func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp])
203208
204209
205210 func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp])
206211
207212
208213 func getPriceAssets () = match getString(keyPriceAssets()) {
209214 case s: String =>
210215 if ((size(s) == 0))
211216 then nil
212217 else split(s, SEP)
213218 case _ =>
214219 nil
215220 }
216221
217222
218223 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
219224 case s: String =>
220225 fromBase58String(s)
221226 case _: Unit =>
222227 unit
223228 case _ =>
224229 throw("Match error")
225230 }
226231
227232
228233 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
229234 case s: String =>
230235 fromBase58String(s)
231236 case _: Unit =>
232237 unit
233238 case _ =>
234239 throw("Match error")
235240 }
236241
237242
238243 let permissionDeniedError = throw("Permission denied")
239244
240245 func mustThis (i) = if ((i.caller == this))
241246 then true
242247 else permissionDeniedError
243248
244249
245250 func mustManager (i) = match managerPublicKeyOrUnit() {
246251 case pk: ByteVector =>
247252 if ((i.callerPublicKey == pk))
248253 then true
249254 else permissionDeniedError
250255 case _: Unit =>
251256 mustThis(i)
252257 case _ =>
253258 throw("Match error")
254259 }
255260
256261
257262 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)
258263
259264
260265 func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP)
261266
262267
263268 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)
264269
265270
266271 func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
267272
268273
269274 func getPoolConfig (poolAddress) = {
270275 let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP)
271276 let amountAssetInternal = poolAssets[1]
272277 let priceAssetInternal = poolAssets[2]
273278 split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP)
274279 }
275280
276281
277282 func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
278283 let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
279284 let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
280285 let result = if ((internalAssetId == 0))
281286 then {
282287 let newInternalAssetId = (currentIndexOfInternalId + incrementor)
283288 $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
284289 }
285290 else $Tuple3(internalAssetId, nil, false)
286291 result
287292 }
288293
289294
290295 func mustAdmin (i) = {
291296 let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP)
292297 if (containsElement(adminPKs, toBase58String(i.callerPublicKey)))
293298 then true
294299 else {
295300 let isManager = mustManager(i)
296301 if ((isManager == isManager))
297302 then true
298303 else throw("Strict value is not equal to itself.")
299304 }
300305 }
301306
302307
303308 @Callable(i)
304309 func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = {
305310 let checkCaller = mustManager(i)
306311 if ((checkCaller == checkCaller))
307312 then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
308313 else throw("Strict value is not equal to itself.")
309314 }
310315
311316
312317
313318 @Callable(i)
314319 func constructorV2 (mathcherPub58Str) = {
315320 let checkCaller = mustManager(i)
316321 if ((checkCaller == checkCaller))
317322 then {
318323 let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str))
319324 if ((mathcerPub == mathcerPub))
320325 then [StringEntry(keyMatcherPub(), mathcherPub58Str)]
321326 else throw("Strict value is not equal to itself.")
322327 }
323328 else throw("Strict value is not equal to itself.")
324329 }
325330
326331
327332
328333 @Callable(i)
329334 func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = {
330335 let checkCaller = mustManager(i)
331336 if ((checkCaller == checkCaller))
332337 then {
333338 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
334339 [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))]
335340 }
336341 else throw("Strict value is not equal to itself.")
337342 }
338343
339344
340345
341346 @Callable(i)
342347 func constructorV4 (legacyFactoryContract,legacyPools) = {
343348 let checkCaller = mustManager(i)
344349 if ((checkCaller == checkCaller))
345350 then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))]
346351 else throw("Strict value is not equal to itself.")
347352 }
348353
349354
350355
351356 @Callable(i)
352357 func constructorV5 (assetsStoreContract) = {
353358 let checkCaller = mustManager(i)
354359 if ((checkCaller == checkCaller))
355360 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
356361 else throw("Strict value is not equal to itself.")
357362 }
358363
359364
360365
361366 @Callable(i)
362367 func constructorV6 (votingEmissionContract,priceAssets) = {
363368 let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit))
364369 then true
365370 else "invalid voting emission contract address"]
366371 if ((cheks == cheks))
367372 then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))]
368373 else throw("Strict value is not equal to itself.")
369374 }
370375
371376
372377
373378 @Callable(i)
374379 func setManager (pendingManagerPublicKey) = {
375380 let checkCaller = mustManager(i)
376381 if ((checkCaller == checkCaller))
377382 then {
378383 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
379384 if ((checkManagerPublicKey == checkManagerPublicKey))
380385 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
381386 else throw("Strict value is not equal to itself.")
382387 }
383388 else throw("Strict value is not equal to itself.")
384389 }
385390
386391
387392
388393 @Callable(i)
389394 func confirmManager () = {
390395 let pm = pendingManagerPublicKeyOrUnit()
391396 let hasPM = if (isDefined(pm))
392397 then true
393398 else throw("No pending manager")
394399 if ((hasPM == hasPM))
395400 then {
396401 let checkPM = if ((i.callerPublicKey == value(pm)))
397402 then true
398403 else throw("You are not pending manager")
399404 if ((checkPM == checkPM))
400405 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
401406 else throw("Strict value is not equal to itself.")
402407 }
403408 else throw("Strict value is not equal to itself.")
404409 }
405410
406411
407412
408413 @Callable(i)
409414 func setAdmins (adminPubKeys) = {
410415 let checkCaller = mustManager(i)
411416 if ((checkCaller == checkCaller))
412417 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
413418 else throw("Strict value is not equal to itself.")
414419 }
415420
416421
417422
418423 @Callable(i)
419424 func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = {
420425 let checkCaller = mustAdmin(i)
421426 if ((checkCaller == checkCaller))
422427 then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
423428 then throw((("Pool address " + poolAddress) + " already registered."))
424429 else {
425430 let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
426431 let internalAmountAssetId = internalAmountAssetData._1
427432 let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
428433 then 2
429434 else 1)
430435 let internalPriceAssetId = internalPriceAssetData._1
431436 let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
432437 let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
433438 let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))
434439 if (isDefined(poolConfig))
435440 then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
436441 else {
437442 let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
438443 let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
439444 then decimalsMultPrice
440445 else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
441446 let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
442447 then decimalsMultPrice
443448 else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
444449 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
445450 let lpAssetId = calculateAssetId(lpAssetIssueAction)
446451 let lpAssetIdStr = toBase58String(lpAssetId)
447452 let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
448453 if ((poolActivateInvokeResult == poolActivateInvokeResult))
449454 then if ((poolActivateInvokeResult != "success"))
450455 then throw("Pool initialisation error happened.")
451456 else {
452457 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract()))
453458 let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil)
454459 if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv))
455460 then {
456461 let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil)
457462 if ((addPoolsLpLabelInv == addPoolsLpLabelInv))
458463 then {
459464 let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil)
460465 if ((setLogoInv == setLogoInv))
461466 then {
462467 let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil)
463468 if ((addAssetsLinkInv == addAssetsLinkInv))
464469 then {
465470 let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil)
466471 if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv))
467- 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)]), lpAssetIdStr)
472+ 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)
468473 else throw("Strict value is not equal to itself.")
469474 }
470475 else throw("Strict value is not equal to itself.")
471476 }
472477 else throw("Strict value is not equal to itself.")
473478 }
474479 else throw("Strict value is not equal to itself.")
475480 }
476481 else throw("Strict value is not equal to itself.")
477482 }
478483 else throw("Strict value is not equal to itself.")
479484 }
480485 }
481486 else throw("Strict value is not equal to itself.")
482487 }
483488
484489
485490
486491 @Callable(i)
487492 func managePool (poolAddress,newStatus) = {
488493 let checkCaller = mustManager(i)
489494 if ((checkCaller == checkCaller))
490495 then {
491496 let poolConfig = getPoolConfig(poolAddress)
492497 let poolStatus = poolConfig[idxPoolStatus]
493498 let lpAssetIdStr = poolConfig[idxPoolLPAssetId]
494499 let amountAssetStr = poolConfig[idxAmtAssetId]
495500 let priceAssetStr = poolConfig[idxPriceAssetId]
496501 let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm])
497502 let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm])
498503 let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId])
499504 let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId])
500505 let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm])
501506 let poolType = poolConfig[idxPoolType]
502507 [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))]
503508 }
504509 else throw("Strict value is not equal to itself.")
505510 }
506511
507512
508513
509514 @Callable(i)
510515 func emit (amountToEmit) = {
511516 let caller = i.caller
512517 let originCaller = i.originCaller
513518 let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
514519 let lpAsset = fromBase58String(lpAssetRequested)
515520 let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP)
516521 let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists."))
517522 if ((0 >= amountToEmit))
518523 then nil
519524 else if (containsElement(legacyPools, toString(caller)))
520525 then $Tuple2(nil, legacyFactoryContract)
521526 else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
522527 }
523528
524529
525530
526531 @Callable(i)
527532 func burn (amountToBurn) = {
528533 let caller = i.caller
529534 let originCaller = i.originCaller
530535 let payment = value(i.payments[0])
531536 let paymentAmount = value(payment.amount)
532537 let inAmountAssetId = toBase58String(value(payment.assetId))
533538 let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.")
534539 if ((inAmountAssetId != lpAssetRequestedForBurning))
535540 then throw("Invalid asset passed.")
536541 else if ((amountToBurn != paymentAmount))
537542 then throw("Invalid amount passed.")
538543 else {
539544 let lpAsset = fromBase58String(lpAssetRequestedForBurning)
540545 $Tuple2([Burn(lpAsset, amountToBurn)], "success")
541546 }
542547 }
543548
544549
545550
546551 @Callable(i)
547552 func modifyWeight (lpAssetId,share) = {
548553 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), "")))
549554 then true
550555 else mustManager(i)
551556 if ((checkCaller == checkCaller))
552557 then {
553558 let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId))
554559 let poolWeightKey = keyPoolToWeight(poolContractAddress)
555560 let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL)
556561 let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0)
557562 let poolWeight = valueOrElse(getInteger(poolWeightKey), 0)
558563 let poolWeightNew = share
559564 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
560565 let stakingContract = getStakingAddressOrFail(factoryCfg)
561566 let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil)
562567 if ((onModifyWeightInv == onModifyWeightInv))
563568 then {
564569 let gwxVirtualPoolActions = if ((gwxWeight == 0))
565570 then nil
566571 else [IntegerEntry(gwxWeightKey, 0)]
567572 let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0)
568573 let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey)
569574 let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit))
570575 then nil
571576 else [DeleteEntry(poolWeightHistoryKey)]
572577 (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions)
573578 }
574579 else throw("Strict value is not equal to itself.")
575580 }
576581 else throw("Strict value is not equal to itself.")
577582 }
578583
579584
580585
581586 @Callable(i)
582587 func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = {
583588 let checkCaller = mustManager(i)
584589 if ((checkCaller == checkCaller))
585590 then {
586591 let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100)
587592 let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100)
588593 let weightDecrement = ((5 * POOLWEIGHTMULT) / 100)
589594 let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP)
590595 let stakingDapp = getStakingAddressOrFail(factoryCfg)
591596 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
592597 let btcWeightKEY = keyPoolToWeight(btcPoolAddress)
593598 let ethWeightKEY = keyPoolToWeight(ethPoolAddress)
594599 let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress)
595600 let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress)
596601 let btcWeight = getIntOrFail(btcWeightKEY)
597602 let ethWeight = getIntOrFail(ethWeightKEY)
598603 let btcWeightNew = (btcWeight - weightDecrement)
599604 let ethWeightNew = (ethWeight - weightDecrement)
600605 if ((0 >= btcWeightNew))
601606 then throw(("invalid btcWeightNew: " + toString(btcWeightNew)))
602607 else if ((0 >= ethWeightNew))
603608 then throw(("invalid ethWeightNew: " + toString(ethWeightNew)))
604609 else {
605610 let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress))
606611 let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress))
607612 let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress))
608613 let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress))
609614 let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil)
610615 if ((onModifyWeightBtc == onModifyWeightBtc))
611616 then {
612617 let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil)
613618 if ((onModifyWeightEth == onModifyWeightEth))
614619 then {
615620 let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil)
616621 if ((onModifyWeightEthBtc == onModifyWeightEthBtc))
617622 then {
618623 let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil)
619624 if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt))
620625 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)]
621626 else throw("Strict value is not equal to itself.")
622627 }
623628 else throw("Strict value is not equal to itself.")
624629 }
625630 else throw("Strict value is not equal to itself.")
626631 }
627632 else throw("Strict value is not equal to itself.")
628633 }
629634 }
630635 else throw("Strict value is not equal to itself.")
631636 }
632637
633638
634639
635640 @Callable(i)
636641 func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
637642 let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) {
638643 case b: Boolean =>
639644 b
640645 case _ =>
641646 false
642647 }
643648 $Tuple2(nil, haveLabel)
644649 }
645650
646651
647652
648653 @Callable(i)
649654 func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
650655 let checkCaller = mustAdmin(i)
651656 if ((checkCaller == checkCaller))
652657 then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit)
653658 else throw("Strict value is not equal to itself.")
654659 }
655660
656661
657662
658663 @Callable(i)
659664 func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = {
660665 let checkCaller = if (mustThis(i))
661666 then true
662667 else mustAdmin(i)
663668 if ((checkCaller == checkCaller))
664669 then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit)
665670 else throw("Strict value is not equal to itself.")
666671 }
667672
668673
669674
670675 @Callable(i)
671676 func onVerificationLoss (assetId) = {
672677 let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), "")))
673678 then true
674679 else mustManager(i)
675680 if ((checkCaller == checkCaller))
676681 then {
677682 let priceAssets = getPriceAssets()
678683 let checkPriceAssetsSize = if ((size(priceAssets) > 0))
679684 then true
680685 else throw("invalid price assets")
681686 if ((checkPriceAssetsSize == checkPriceAssetsSize))
682687 then {
683688 func cb (acc,priceAsset) = {
684689 let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil)
685690 if ((r == r))
686691 then unit
687692 else throw("Strict value is not equal to itself.")
688693 }
689694
690695 let actions = {
691696 let $l = priceAssets
692697 let $s = size($l)
693698 let $acc0 = unit
694699 func $f0_1 ($a,$i) = if (($i >= $s))
695700 then $a
696701 else cb($a, $l[$i])
697702
698703 func $f0_2 ($a,$i) = if (($i >= $s))
699704 then $a
700705 else throw("List size exceeds 3")
701706
702707 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
703708 }
704709 if ((actions == actions))
705710 then $Tuple2(nil, unit)
706711 else throw("Strict value is not equal to itself.")
707712 }
708713 else throw("Strict value is not equal to itself.")
709714 }
710715 else throw("Strict value is not equal to itself.")
711716 }
712717
713718
714719
715720 @Callable(i)
716721 func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = {
717722 let poolConfig = getPoolConfig(poolAddress)
718723 let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId]))
719724 let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false)
720725 let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false)
721726 $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled)
722727 then true
723728 else poolOneTokenOperationsDisabled)
724729 }
725730
726731
727732 @Verifier(tx)
728733 func verify () = {
729734 let targetPublicKey = match managerPublicKeyOrUnit() {
730735 case pk: ByteVector =>
731736 pk
732737 case _: Unit =>
733738 tx.senderPublicKey
734739 case _ =>
735740 throw("Match error")
736741 }
737742 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
738743 }
739744

github/deemru/w8io/169f3d6 
87.07 ms