tx · E9UUWkqGDeVy82pbWKcdHF4rn3yhUvNWSz1Z4RHeHen6 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai: -0.01400000 Waves 2022.04.13 13:26 [2006682] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves
{ "type": 13, "id": "E9UUWkqGDeVy82pbWKcdHF4rn3yhUvNWSz1Z4RHeHen6", "fee": 1400000, "feeAssetId": null, "timestamp": 1649845577706, "version": 1, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "3xE7RzzSEm8NT9pQC8LMrQoXEUiAjMoLxTdju69TLdL4FGe4ZDvruk9fkXvFfVsLxfnTB2YSGmnCb835v8MiYhQD" ], "script": "base64:AAIFAAAAAAAAAFAIAhIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIDCgEIEgASCQoHCAgICAgBCBIECgIIARIDCgEBEgMKAQESBgoECAgICAAAAE4AAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAAB1NDQUxFMTgAAAAAAAAAABIAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAA5QT09MV0VJR0hUTVVMVAUAAAAFTVVMVDgAAAAADkdXWHZpcnR1YWxQT09MAgAAAA5HV1h2aXJ0dWFsUE9PTAAAAAARZGVjaW1hbHNNdWx0UHJpY2UJAABoAAAAAgkAAGgAAAACAAAAAAAAAABkAAAAAAAAAAPoAAAAAAAAAAPoAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAAApQb29sQWN0aXZlAAAAAAAAAAABAAAAAA9Qb29sUHV0RGlzYWJsZWQAAAAAAAAAAAIAAAAAE1Bvb2xNYXRjaGVyRGlzYWJsZWQAAAAAAAAAAAMAAAAADFBvb2xTaHV0ZG93bgA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3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAD3RhcmdldFB1YmxpY0tleQQAAAAHJG1hdGNoMAkBAAAAFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXmKzMyZ", "chainId": 84, "height": 2006682, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9JXm4Nn5JoFBM5e4Tkk3LFyWb7xihtAh2Xq51iugtrBh Next: 4zeGD5Zu6Vk1qtJqc6cSUG3hQsgkagANzsLv3DFhWN8s Diff:
Old | New | Differences | |
---|---|---|---|
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
80 | + | ||
81 | + | ||
82 | + | func keyAssetsStoreContract () = "%s__assetsStoreContract" | |
80 | 83 | ||
81 | 84 | ||
82 | 85 | func keyPriceDecimals () = "%s__priceDecimals" | |
291 | 294 | ||
292 | 295 | ||
293 | 296 | @Callable(i) | |
297 | + | func constructorV5 (assetsStoreContract) = { | |
298 | + | let checkCaller = mustManager(i) | |
299 | + | if ((checkCaller == checkCaller)) | |
300 | + | then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)] | |
301 | + | else throw("Strict value is not equal to itself.") | |
302 | + | } | |
303 | + | ||
304 | + | ||
305 | + | ||
306 | + | @Callable(i) | |
294 | 307 | func setManager (pendingManagerPublicKey) = { | |
295 | 308 | let checkCaller = mustManager(i) | |
296 | 309 | if ((checkCaller == checkCaller)) | |
358 | 371 | if ((poolActivateInvokeResult == poolActivateInvokeResult)) | |
359 | 372 | then if ((poolActivateInvokeResult != "success")) | |
360 | 373 | then throw("Pool initialisation error happened.") | |
361 | - | else $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(keyMappingPoolContracToLPAsset(poolAddress), lpAssetIdStr), IntegerEntry(keyPoolToWeight(poolAddress), poolWeight), StringEntry(keyLpTokensList(), createLpTokensListEntry(lpAssetIdStr))]), "success") | |
374 | + | else { | |
375 | + | let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract())) | |
376 | + | let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil) | |
377 | + | if ((addAssetsLinkInv == addAssetsLinkInv)) | |
378 | + | then { | |
379 | + | let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil) | |
380 | + | if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv)) | |
381 | + | 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(keyMappingPoolContracToLPAsset(poolAddress), lpAssetIdStr), IntegerEntry(keyPoolToWeight(poolAddress), poolWeight), StringEntry(keyLpTokensList(), createLpTokensListEntry(lpAssetIdStr))]), lpAssetIdStr) | |
382 | + | else throw("Strict value is not equal to itself.") | |
383 | + | } | |
384 | + | else throw("Strict value is not equal to itself.") | |
385 | + | } | |
362 | 386 | else throw("Strict value is not equal to itself.") | |
363 | 387 | } | |
364 | 388 | } | |
432 | 456 | let checkCaller = mustManager(i) | |
433 | 457 | if ((checkCaller == checkCaller)) | |
434 | 458 | then { | |
435 | - | let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / | |
436 | - | let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / | |
437 | - | let weightDecrement = ((5 * POOLWEIGHTMULT) / | |
459 | + | let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
460 | + | let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
461 | + | let weightDecrement = ((5 * POOLWEIGHTMULT) / 100) | |
438 | 462 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
439 | 463 | let stakingDapp = getStakingAddressOrFail(factoryCfg) | |
440 | 464 | let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SCALE8 = 8 | |
5 | 5 | ||
6 | 6 | let MULT8 = 100000000 | |
7 | 7 | ||
8 | 8 | let SCALE18 = 18 | |
9 | 9 | ||
10 | 10 | let MULT18 = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let POOLWEIGHTMULT = MULT8 | |
13 | 13 | ||
14 | 14 | let GWXvirtualPOOL = "GWXvirtualPOOL" | |
15 | 15 | ||
16 | 16 | let decimalsMultPrice = ((100 * 1000) * 1000) | |
17 | 17 | ||
18 | 18 | let SEP = "__" | |
19 | 19 | ||
20 | 20 | let EMPTY = "" | |
21 | 21 | ||
22 | 22 | let PoolActive = 1 | |
23 | 23 | ||
24 | 24 | let PoolPutDisabled = 2 | |
25 | 25 | ||
26 | 26 | let PoolMatcherDisabled = 3 | |
27 | 27 | ||
28 | 28 | let PoolShutdown = 4 | |
29 | 29 | ||
30 | 30 | let idxInternalAssetId = 1 | |
31 | 31 | ||
32 | 32 | let idxResutActions = 2 | |
33 | 33 | ||
34 | 34 | let idxIfAssetIdCalculationPerformed = 3 | |
35 | 35 | ||
36 | 36 | let idxPoolAddress = 1 | |
37 | 37 | ||
38 | 38 | let idxPoolStatus = 2 | |
39 | 39 | ||
40 | 40 | let idxPoolLPAssetId = 3 | |
41 | 41 | ||
42 | 42 | let idxAmtAssetId = 4 | |
43 | 43 | ||
44 | 44 | let idxPriceAssetId = 5 | |
45 | 45 | ||
46 | 46 | let idxAmtAssetDcm = 6 | |
47 | 47 | ||
48 | 48 | let idxPriceAssetDcm = 7 | |
49 | 49 | ||
50 | 50 | let idxIAmtAssetId = 8 | |
51 | 51 | ||
52 | 52 | let idxIPriceAssetId = 9 | |
53 | 53 | ||
54 | 54 | let idxLPAssetDcm = 10 | |
55 | 55 | ||
56 | 56 | let idxPoolType = 11 | |
57 | 57 | ||
58 | 58 | func keyFactoryConfig () = "%s__factoryConfig" | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func keyLpTokensList () = "%s__lpTokensList" | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func keyPoolScriptHash () = "%s%s__pool__scriptHash" | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func keyMatcherPub () = "%s%s__matcher__publicKey" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func keyLegacyFactoryContract () = "%s__legacyFactoryContract" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keyLegacyPools () = "%s__legacyPools" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
80 | + | ||
81 | + | ||
82 | + | func keyAssetsStoreContract () = "%s__assetsStoreContract" | |
80 | 83 | ||
81 | 84 | ||
82 | 85 | func keyPriceDecimals () = "%s__priceDecimals" | |
83 | 86 | ||
84 | 87 | ||
85 | 88 | func keyAllPoolsShutdown () = "%s__shutdown" | |
86 | 89 | ||
87 | 90 | ||
88 | 91 | func keyNextInternalAssetId () = "%s__nextInternalAssetId" | |
89 | 92 | ||
90 | 93 | ||
91 | 94 | func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress) | |
92 | 95 | ||
93 | 96 | ||
94 | 97 | func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num)) | |
95 | 98 | ||
96 | 99 | ||
97 | 100 | func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset)) | |
98 | 101 | ||
99 | 102 | ||
100 | 103 | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
101 | 104 | ||
102 | 105 | ||
103 | 106 | func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config") | |
104 | 107 | ||
105 | 108 | ||
106 | 109 | func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool") | |
107 | 110 | ||
108 | 111 | ||
109 | 112 | func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset") | |
110 | 113 | ||
111 | 114 | ||
112 | 115 | func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets") | |
113 | 116 | ||
114 | 117 | ||
115 | 118 | func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract") | |
116 | 119 | ||
117 | 120 | ||
118 | 121 | func keyMappingPoolContracToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
119 | 122 | ||
120 | 123 | ||
121 | 124 | func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract") | |
122 | 125 | ||
123 | 126 | ||
124 | 127 | func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key)) | |
125 | 128 | ||
126 | 129 | ||
127 | 130 | func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key)) | |
128 | 131 | ||
129 | 132 | ||
130 | 133 | func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key)) | |
131 | 134 | ||
132 | 135 | ||
133 | 136 | let IdxFactoryCfgStakingDapp = 1 | |
134 | 137 | ||
135 | 138 | let IdxFactoryCfgBoostingDapp = 2 | |
136 | 139 | ||
137 | 140 | let IdxFactoryCfgIdoDapp = 3 | |
138 | 141 | ||
139 | 142 | let IdxFactoryCfgTeamDapp = 4 | |
140 | 143 | ||
141 | 144 | let IdxFactoryCfgEmissionDapp = 5 | |
142 | 145 | ||
143 | 146 | let IdxFactoryCfgRestDapp = 6 | |
144 | 147 | ||
145 | 148 | let IdxFactoryCfgSlippageDapp = 7 | |
146 | 149 | ||
147 | 150 | let IdxFactoryCfgDaoDapp = 8 | |
148 | 151 | ||
149 | 152 | let IdxFactoryCfgMarketingDapp = 9 | |
150 | 153 | ||
151 | 154 | let IdxFactoryCfgGwxRewardDapp = 10 | |
152 | 155 | ||
153 | 156 | let IdxFactoryCfgBirdsDapp = 11 | |
154 | 157 | ||
155 | 158 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
156 | 159 | ||
157 | 160 | ||
158 | 161 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
159 | 162 | ||
160 | 163 | ||
161 | 164 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
162 | 165 | ||
163 | 166 | ||
164 | 167 | func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp]) | |
165 | 168 | ||
166 | 169 | ||
167 | 170 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
168 | 171 | case s: String => | |
169 | 172 | fromBase58String(s) | |
170 | 173 | case _: Unit => | |
171 | 174 | unit | |
172 | 175 | case _ => | |
173 | 176 | throw("Match error") | |
174 | 177 | } | |
175 | 178 | ||
176 | 179 | ||
177 | 180 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
178 | 181 | case s: String => | |
179 | 182 | fromBase58String(s) | |
180 | 183 | case _: Unit => | |
181 | 184 | unit | |
182 | 185 | case _ => | |
183 | 186 | throw("Match error") | |
184 | 187 | } | |
185 | 188 | ||
186 | 189 | ||
187 | 190 | func mustManager (i) = { | |
188 | 191 | let pd = throw("Permission denied") | |
189 | 192 | match managerPublicKeyOrUnit() { | |
190 | 193 | case pk: ByteVector => | |
191 | 194 | if ((i.callerPublicKey == pk)) | |
192 | 195 | then true | |
193 | 196 | else pd | |
194 | 197 | case _: Unit => | |
195 | 198 | if ((i.caller == this)) | |
196 | 199 | then true | |
197 | 200 | else pd | |
198 | 201 | case _ => | |
199 | 202 | throw("Match error") | |
200 | 203 | } | |
201 | 204 | } | |
202 | 205 | ||
203 | 206 | ||
204 | 207 | 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) | |
205 | 208 | ||
206 | 209 | ||
207 | 210 | func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP) | |
208 | 211 | ||
209 | 212 | ||
210 | 213 | 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) | |
211 | 214 | ||
212 | 215 | ||
213 | 216 | func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP) | |
214 | 217 | ||
215 | 218 | ||
216 | 219 | func getPoolConfig (poolAddress) = { | |
217 | 220 | let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP) | |
218 | 221 | let amountAssetInternal = poolAssets[1] | |
219 | 222 | let priceAssetInternal = poolAssets[2] | |
220 | 223 | split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP) | |
221 | 224 | } | |
222 | 225 | ||
223 | 226 | ||
224 | 227 | func getInternalAssetIdOrCreate (assetIdStr,incrementor) = { | |
225 | 228 | let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0) | |
226 | 229 | let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0) | |
227 | 230 | let result = if ((internalAssetId == 0)) | |
228 | 231 | then { | |
229 | 232 | let newInternalAssetId = (currentIndexOfInternalId + incrementor) | |
230 | 233 | $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true) | |
231 | 234 | } | |
232 | 235 | else $Tuple3(internalAssetId, nil, false) | |
233 | 236 | result | |
234 | 237 | } | |
235 | 238 | ||
236 | 239 | ||
237 | 240 | func createLpTokensListEntry (newLpToken) = { | |
238 | 241 | let lpTokens = getString(this, keyLpTokensList()) | |
239 | 242 | if (isDefined(lpTokens)) | |
240 | 243 | then ((value(lpTokens) + SEP) + newLpToken) | |
241 | 244 | else newLpToken | |
242 | 245 | } | |
243 | 246 | ||
244 | 247 | ||
245 | 248 | @Callable(i) | |
246 | 249 | func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = { | |
247 | 250 | let checkCaller = mustManager(i) | |
248 | 251 | if ((checkCaller == checkCaller)) | |
249 | 252 | then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)] | |
250 | 253 | else throw("Strict value is not equal to itself.") | |
251 | 254 | } | |
252 | 255 | ||
253 | 256 | ||
254 | 257 | ||
255 | 258 | @Callable(i) | |
256 | 259 | func constructorV2 (mathcherPub58Str) = { | |
257 | 260 | let checkCaller = mustManager(i) | |
258 | 261 | if ((checkCaller == checkCaller)) | |
259 | 262 | then { | |
260 | 263 | let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str)) | |
261 | 264 | if ((mathcerPub == mathcerPub)) | |
262 | 265 | then [StringEntry(keyMatcherPub(), mathcherPub58Str)] | |
263 | 266 | else throw("Strict value is not equal to itself.") | |
264 | 267 | } | |
265 | 268 | else throw("Strict value is not equal to itself.") | |
266 | 269 | } | |
267 | 270 | ||
268 | 271 | ||
269 | 272 | ||
270 | 273 | @Callable(i) | |
271 | 274 | func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = { | |
272 | 275 | let checkCaller = mustManager(i) | |
273 | 276 | if ((checkCaller == checkCaller)) | |
274 | 277 | then { | |
275 | 278 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
276 | 279 | [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))] | |
277 | 280 | } | |
278 | 281 | else throw("Strict value is not equal to itself.") | |
279 | 282 | } | |
280 | 283 | ||
281 | 284 | ||
282 | 285 | ||
283 | 286 | @Callable(i) | |
284 | 287 | func constructorV4 (legacyFactoryContract,legacyPools) = { | |
285 | 288 | let checkCaller = mustManager(i) | |
286 | 289 | if ((checkCaller == checkCaller)) | |
287 | 290 | then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))] | |
288 | 291 | else throw("Strict value is not equal to itself.") | |
289 | 292 | } | |
290 | 293 | ||
291 | 294 | ||
292 | 295 | ||
293 | 296 | @Callable(i) | |
297 | + | func constructorV5 (assetsStoreContract) = { | |
298 | + | let checkCaller = mustManager(i) | |
299 | + | if ((checkCaller == checkCaller)) | |
300 | + | then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)] | |
301 | + | else throw("Strict value is not equal to itself.") | |
302 | + | } | |
303 | + | ||
304 | + | ||
305 | + | ||
306 | + | @Callable(i) | |
294 | 307 | func setManager (pendingManagerPublicKey) = { | |
295 | 308 | let checkCaller = mustManager(i) | |
296 | 309 | if ((checkCaller == checkCaller)) | |
297 | 310 | then { | |
298 | 311 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
299 | 312 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
300 | 313 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
301 | 314 | else throw("Strict value is not equal to itself.") | |
302 | 315 | } | |
303 | 316 | else throw("Strict value is not equal to itself.") | |
304 | 317 | } | |
305 | 318 | ||
306 | 319 | ||
307 | 320 | ||
308 | 321 | @Callable(i) | |
309 | 322 | func confirmManager () = { | |
310 | 323 | let pm = pendingManagerPublicKeyOrUnit() | |
311 | 324 | let hasPM = if (isDefined(pm)) | |
312 | 325 | then true | |
313 | 326 | else throw("No pending manager") | |
314 | 327 | if ((hasPM == hasPM)) | |
315 | 328 | then { | |
316 | 329 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
317 | 330 | then true | |
318 | 331 | else throw("You are not pending manager") | |
319 | 332 | if ((checkPM == checkPM)) | |
320 | 333 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
321 | 334 | else throw("Strict value is not equal to itself.") | |
322 | 335 | } | |
323 | 336 | else throw("Strict value is not equal to itself.") | |
324 | 337 | } | |
325 | 338 | ||
326 | 339 | ||
327 | 340 | ||
328 | 341 | @Callable(i) | |
329 | 342 | func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType) = { | |
330 | 343 | let checkCaller = mustManager(i) | |
331 | 344 | if ((checkCaller == checkCaller)) | |
332 | 345 | then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress)))) | |
333 | 346 | then throw((("Pool address " + poolAddress) + " already registered.")) | |
334 | 347 | else { | |
335 | 348 | let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1) | |
336 | 349 | let internalAmountAssetId = internalAmountAssetData._1 | |
337 | 350 | let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3) | |
338 | 351 | then 2 | |
339 | 352 | else 1) | |
340 | 353 | let internalPriceAssetId = internalPriceAssetData._1 | |
341 | 354 | let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress)) | |
342 | 355 | let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash()) | |
343 | 356 | let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))) | |
344 | 357 | if (isDefined(poolConfig)) | |
345 | 358 | then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated.")) | |
346 | 359 | else { | |
347 | 360 | let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))) | |
348 | 361 | let amountAssetsDecimals = if ((amountAssetStr == "WAVES")) | |
349 | 362 | then decimalsMultPrice | |
350 | 363 | else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN) | |
351 | 364 | let priceAssetsDecimals = if ((priceAssetStr == "WAVES")) | |
352 | 365 | then decimalsMultPrice | |
353 | 366 | else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN) | |
354 | 367 | let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true) | |
355 | 368 | let lpAssetId = calculateAssetId(lpAssetIssueAction) | |
356 | 369 | let lpAssetIdStr = toBase58String(lpAssetId) | |
357 | 370 | let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil) | |
358 | 371 | if ((poolActivateInvokeResult == poolActivateInvokeResult)) | |
359 | 372 | then if ((poolActivateInvokeResult != "success")) | |
360 | 373 | then throw("Pool initialisation error happened.") | |
361 | - | else $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(keyMappingPoolContracToLPAsset(poolAddress), lpAssetIdStr), IntegerEntry(keyPoolToWeight(poolAddress), poolWeight), StringEntry(keyLpTokensList(), createLpTokensListEntry(lpAssetIdStr))]), "success") | |
374 | + | else { | |
375 | + | let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract())) | |
376 | + | let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil) | |
377 | + | if ((addAssetsLinkInv == addAssetsLinkInv)) | |
378 | + | then { | |
379 | + | let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil) | |
380 | + | if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv)) | |
381 | + | 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(keyMappingPoolContracToLPAsset(poolAddress), lpAssetIdStr), IntegerEntry(keyPoolToWeight(poolAddress), poolWeight), StringEntry(keyLpTokensList(), createLpTokensListEntry(lpAssetIdStr))]), lpAssetIdStr) | |
382 | + | else throw("Strict value is not equal to itself.") | |
383 | + | } | |
384 | + | else throw("Strict value is not equal to itself.") | |
385 | + | } | |
362 | 386 | else throw("Strict value is not equal to itself.") | |
363 | 387 | } | |
364 | 388 | } | |
365 | 389 | else throw("Strict value is not equal to itself.") | |
366 | 390 | } | |
367 | 391 | ||
368 | 392 | ||
369 | 393 | ||
370 | 394 | @Callable(i) | |
371 | 395 | func managePool (poolAddress,newStatus) = { | |
372 | 396 | let checkCaller = mustManager(i) | |
373 | 397 | if ((checkCaller == checkCaller)) | |
374 | 398 | then { | |
375 | 399 | let poolConfig = getPoolConfig(poolAddress) | |
376 | 400 | let poolStatus = poolConfig[idxPoolStatus] | |
377 | 401 | let lpAssetIdStr = poolConfig[idxPoolLPAssetId] | |
378 | 402 | let amountAssetStr = poolConfig[idxAmtAssetId] | |
379 | 403 | let priceAssetStr = poolConfig[idxPriceAssetId] | |
380 | 404 | let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm]) | |
381 | 405 | let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm]) | |
382 | 406 | let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId]) | |
383 | 407 | let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId]) | |
384 | 408 | let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm]) | |
385 | 409 | let poolType = poolConfig[idxPoolType] | |
386 | 410 | [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))] | |
387 | 411 | } | |
388 | 412 | else throw("Strict value is not equal to itself.") | |
389 | 413 | } | |
390 | 414 | ||
391 | 415 | ||
392 | 416 | ||
393 | 417 | @Callable(i) | |
394 | 418 | func emit (amountToEmit) = { | |
395 | 419 | let caller = i.caller | |
396 | 420 | let originCaller = i.originCaller | |
397 | 421 | let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContracToLPAsset(toString(caller))), "Invalid LP address called me.") | |
398 | 422 | let lpAsset = fromBase58String(lpAssetRequested) | |
399 | 423 | let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP) | |
400 | 424 | let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists.")) | |
401 | 425 | if ((0 >= amountToEmit)) | |
402 | 426 | then nil | |
403 | 427 | else if (containsElement(legacyPools, toString(caller))) | |
404 | 428 | then $Tuple2(nil, legacyFactoryContract) | |
405 | 429 | else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success") | |
406 | 430 | } | |
407 | 431 | ||
408 | 432 | ||
409 | 433 | ||
410 | 434 | @Callable(i) | |
411 | 435 | func burn (amountToBurn) = { | |
412 | 436 | let caller = i.caller | |
413 | 437 | let originCaller = i.originCaller | |
414 | 438 | let payment = value(i.payments[0]) | |
415 | 439 | let paymentAmount = value(payment.amount) | |
416 | 440 | let inAmountAssetId = toBase58String(value(payment.assetId)) | |
417 | 441 | let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContracToLPAsset(toString(caller))), "Invalid LP address called me.") | |
418 | 442 | if ((inAmountAssetId != lpAssetRequestedForBurning)) | |
419 | 443 | then throw("Invalid asset passed.") | |
420 | 444 | else if ((amountToBurn != paymentAmount)) | |
421 | 445 | then throw("Invalid amount passed.") | |
422 | 446 | else { | |
423 | 447 | let lpAsset = fromBase58String(lpAssetRequestedForBurning) | |
424 | 448 | $Tuple2([Burn(lpAsset, amountToBurn)], "success") | |
425 | 449 | } | |
426 | 450 | } | |
427 | 451 | ||
428 | 452 | ||
429 | 453 | ||
430 | 454 | @Callable(i) | |
431 | 455 | func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = { | |
432 | 456 | let checkCaller = mustManager(i) | |
433 | 457 | if ((checkCaller == checkCaller)) | |
434 | 458 | then { | |
435 | - | let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / | |
436 | - | let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / | |
437 | - | let weightDecrement = ((5 * POOLWEIGHTMULT) / | |
459 | + | let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
460 | + | let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
461 | + | let weightDecrement = ((5 * POOLWEIGHTMULT) / 100) | |
438 | 462 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
439 | 463 | let stakingDapp = getStakingAddressOrFail(factoryCfg) | |
440 | 464 | let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg) | |
441 | 465 | let btcWeightKEY = keyPoolToWeight(btcPoolAddress) | |
442 | 466 | let ethWeightKEY = keyPoolToWeight(ethPoolAddress) | |
443 | 467 | let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress) | |
444 | 468 | let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress) | |
445 | 469 | let btcWeight = getIntOrFail(btcWeightKEY) | |
446 | 470 | let ethWeight = getIntOrFail(ethWeightKEY) | |
447 | 471 | let btcWeightNew = (btcWeight - weightDecrement) | |
448 | 472 | let ethWeightNew = (ethWeight - weightDecrement) | |
449 | 473 | if ((0 >= btcWeightNew)) | |
450 | 474 | then throw(("invalid btcWeightNew: " + toString(btcWeightNew))) | |
451 | 475 | else if ((0 >= ethWeightNew)) | |
452 | 476 | then throw(("invalid ethWeightNew: " + toString(ethWeightNew))) | |
453 | 477 | else { | |
454 | 478 | let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContracToLPAsset(btcPoolAddress)) | |
455 | 479 | let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContracToLPAsset(ethPoolAddress)) | |
456 | 480 | let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContracToLPAsset(ethBtcPoolAddress)) | |
457 | 481 | let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContracToLPAsset(usdcUsdtPoolAddress)) | |
458 | 482 | let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil) | |
459 | 483 | if ((onModifyWeightBtc == onModifyWeightBtc)) | |
460 | 484 | then { | |
461 | 485 | let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil) | |
462 | 486 | if ((onModifyWeightEth == onModifyWeightEth)) | |
463 | 487 | then { | |
464 | 488 | let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil) | |
465 | 489 | if ((onModifyWeightEthBtc == onModifyWeightEthBtc)) | |
466 | 490 | then { | |
467 | 491 | let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil) | |
468 | 492 | if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt)) | |
469 | 493 | 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)] | |
470 | 494 | else throw("Strict value is not equal to itself.") | |
471 | 495 | } | |
472 | 496 | else throw("Strict value is not equal to itself.") | |
473 | 497 | } | |
474 | 498 | else throw("Strict value is not equal to itself.") | |
475 | 499 | } | |
476 | 500 | else throw("Strict value is not equal to itself.") | |
477 | 501 | } | |
478 | 502 | } | |
479 | 503 | else throw("Strict value is not equal to itself.") | |
480 | 504 | } | |
481 | 505 | ||
482 | 506 | ||
483 | 507 | @Verifier(tx) | |
484 | 508 | func verify () = { | |
485 | 509 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
486 | 510 | case pk: ByteVector => | |
487 | 511 | pk | |
488 | 512 | case _: Unit => | |
489 | 513 | tx.senderPublicKey | |
490 | 514 | case _ => | |
491 | 515 | throw("Match error") | |
492 | 516 | } | |
493 | 517 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
494 | 518 | } | |
495 | 519 |
github/deemru/w8io/026f985 59.10 ms ◑