tx · EcKC9a8LKbnmCvxN7bDwgZfMv5XgQxpE2FM2nnUfRRNX 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai: -0.02900000 Waves 2023.01.19 15:17 [2411802] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves
{ "type": 13, "id": "EcKC9a8LKbnmCvxN7bDwgZfMv5XgQxpE2FM2nnUfRRNX", "fee": 2900000, "feeAssetId": null, "timestamp": 1674130692817, "version": 1, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "sERDGH6TtSQreuKaUiDSu7yHKtyHPjXRRhAJXUHGf6mrdNZQbdwnEE6Mz9YZJEdJnzCGb6aKpYjyWmUSutBRokQ" ], "script": "base64:AAIFAAAAAAAAEowIAhIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgiBlNDQUxFOCIFTVVMVDgiB1NDQUxFMTgiBk1VTFQxOCIOUE9PTFdFSUdIVE1VTFQiDkdXWHZpcnR1YWxQT09MIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRTcHJlYWQiEWRlY2ltYWxzTXVsdFByaWNlIgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIg9Qb29sUHV0RGlzYWJsZWQiE1Bvb2xNYXRjaGVyRGlzYWJsZWQiDFBvb2xTaHV0ZG93biISaWR4SW50ZXJuYWxBc3NldElkIg9pZHhSZXN1dEFjdGlvbnMiIGlkeElmQXNzZXRJZENhbGN1bGF0aW9uUGVyZm9ybWVkIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9v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AAmVjAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACZWMAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJlYwAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmVlZ/vagQ==", "chainId": 84, "height": 2411802, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DFLtAmhP7AKtgrUTUxx8K6yf4yes8zKXpcca2zbzBcvN Next: CMdJkRnn3XxHv4S2aBfJfLd2uvjLx7mAiXpNEzDt8BFY Diff:
Old | New | Differences | |
---|---|---|---|
760 | 760 | } | |
761 | 761 | ||
762 | 762 | ||
763 | + | ||
764 | + | @Callable(i) | |
765 | + | func getPoolStatusREADONLY (poolAddress) = { | |
766 | + | let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP) | |
767 | + | let amountAssetInternal = poolAssets[1] | |
768 | + | let priceAssetInternal = poolAssets[2] | |
769 | + | let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP) | |
770 | + | $Tuple2(nil, parseIntValue(cfg[idxPoolStatus])) | |
771 | + | } | |
772 | + | ||
773 | + | ||
763 | 774 | @Verifier(tx) | |
764 | 775 | func verify () = { | |
765 | 776 | let targetPublicKey = match managerPublicKeyOrUnit() { |
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 labelPoolsLp = "POOLS_LP" | |
17 | 17 | ||
18 | 18 | let defaultSpread = 2000000 | |
19 | 19 | ||
20 | 20 | let decimalsMultPrice = ((100 * 1000) * 1000) | |
21 | 21 | ||
22 | 22 | let SEP = "__" | |
23 | 23 | ||
24 | 24 | let EMPTY = "" | |
25 | 25 | ||
26 | 26 | let PoolActive = 1 | |
27 | 27 | ||
28 | 28 | let PoolPutDisabled = 2 | |
29 | 29 | ||
30 | 30 | let PoolMatcherDisabled = 3 | |
31 | 31 | ||
32 | 32 | let PoolShutdown = 4 | |
33 | 33 | ||
34 | 34 | let idxInternalAssetId = 1 | |
35 | 35 | ||
36 | 36 | let idxResutActions = 2 | |
37 | 37 | ||
38 | 38 | let idxIfAssetIdCalculationPerformed = 3 | |
39 | 39 | ||
40 | 40 | let idxPoolAddress = 1 | |
41 | 41 | ||
42 | 42 | let idxPoolStatus = 2 | |
43 | 43 | ||
44 | 44 | let idxPoolLPAssetId = 3 | |
45 | 45 | ||
46 | 46 | let idxAmtAssetId = 4 | |
47 | 47 | ||
48 | 48 | let idxPriceAssetId = 5 | |
49 | 49 | ||
50 | 50 | let idxAmtAssetDcm = 6 | |
51 | 51 | ||
52 | 52 | let idxPriceAssetDcm = 7 | |
53 | 53 | ||
54 | 54 | let idxIAmtAssetId = 8 | |
55 | 55 | ||
56 | 56 | let idxIPriceAssetId = 9 | |
57 | 57 | ||
58 | 58 | let idxLPAssetDcm = 10 | |
59 | 59 | ||
60 | 60 | let idxPoolType = 11 | |
61 | 61 | ||
62 | 62 | let poolLabelWxEmission = "WX_EMISSION" | |
63 | 63 | ||
64 | 64 | let validPoolLabels = [poolLabelWxEmission] | |
65 | 65 | ||
66 | 66 | func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash" | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func keyAllowedLpStableAddonScriptHash () = "%s__allowedLpStableAddonScriptHash" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyFactoryConfig () = "%s__factoryConfig" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func keyLpTokensList () = "%s__lpTokensList" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func keyPoolScriptHash () = "%s%s__pool__scriptHash" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func keyMatcherPub () = "%s%s__matcher__publicKey" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func keyLegacyFactoryContract () = "%s__legacyFactoryContract" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func keyLegacyPools () = "%s__legacyPools" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func keyAdminPubKeys () = "%s__adminPubKeys" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyAssetsStoreContract () = "%s__assetsStoreContract" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyVotingEmissionContract () = "%s__votingEmissionContract" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keyPriceAssets () = makeString(["%s", "priceAssets"], SEP) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyPriceDecimals () = "%s__priceDecimals" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func keyAllPoolsShutdown () = "%s__shutdown" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func keyNextInternalAssetId () = "%s__nextInternalAssetId" | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func keyPoolToWeightHistory (poolAddress,num) = ((("%s%s__poolWeight__" + poolAddress) + "__") + toString(num)) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset)) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config") | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyPoolOneTokenOperationsDisabled (assetsInternal) = { | |
136 | 136 | let $t036323694 = assetsInternal | |
137 | 137 | let amountAssetInternal = $t036323694._1 | |
138 | 138 | let priceAssetInternal = $t036323694._2 | |
139 | 139 | makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP) | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool") | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset") | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets") | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract") | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract") | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func keyInFeeDefault () = "%s__inFeeDefault" | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func keyOutFeeDefault () = "%s__outFeeDefault" | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key)) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key)) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key)) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | let IdxFactoryCfgStakingDapp = 1 | |
192 | 192 | ||
193 | 193 | let IdxFactoryCfgBoostingDapp = 2 | |
194 | 194 | ||
195 | 195 | let IdxFactoryCfgIdoDapp = 3 | |
196 | 196 | ||
197 | 197 | let IdxFactoryCfgTeamDapp = 4 | |
198 | 198 | ||
199 | 199 | let IdxFactoryCfgEmissionDapp = 5 | |
200 | 200 | ||
201 | 201 | let IdxFactoryCfgRestDapp = 6 | |
202 | 202 | ||
203 | 203 | let IdxFactoryCfgSlippageDapp = 7 | |
204 | 204 | ||
205 | 205 | let IdxFactoryCfgDaoDapp = 8 | |
206 | 206 | ||
207 | 207 | let IdxFactoryCfgMarketingDapp = 9 | |
208 | 208 | ||
209 | 209 | let IdxFactoryCfgGwxRewardDapp = 10 | |
210 | 210 | ||
211 | 211 | let IdxFactoryCfgBirdsDapp = 11 | |
212 | 212 | ||
213 | 213 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp]) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func getPriceAssets () = match getString(keyPriceAssets()) { | |
226 | 226 | case s: String => | |
227 | 227 | if ((size(s) == 0)) | |
228 | 228 | then nil | |
229 | 229 | else split(s, SEP) | |
230 | 230 | case _ => | |
231 | 231 | nil | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
236 | 236 | case s: String => | |
237 | 237 | fromBase58String(s) | |
238 | 238 | case _: Unit => | |
239 | 239 | unit | |
240 | 240 | case _ => | |
241 | 241 | throw("Match error") | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
246 | 246 | case s: String => | |
247 | 247 | fromBase58String(s) | |
248 | 248 | case _: Unit => | |
249 | 249 | unit | |
250 | 250 | case _ => | |
251 | 251 | throw("Match error") | |
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | let permissionDeniedError = throw("Permission denied") | |
256 | 256 | ||
257 | 257 | func mustThis (i) = if ((i.caller == this)) | |
258 | 258 | then true | |
259 | 259 | else permissionDeniedError | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func mustManager (i) = match managerPublicKeyOrUnit() { | |
263 | 263 | case pk: ByteVector => | |
264 | 264 | if ((i.callerPublicKey == pk)) | |
265 | 265 | then true | |
266 | 266 | else permissionDeniedError | |
267 | 267 | case _: Unit => | |
268 | 268 | mustThis(i) | |
269 | 269 | case _ => | |
270 | 270 | throw("Match error") | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | 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) | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | 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) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func getPoolConfig (poolAddress) = { | |
287 | 287 | let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP) | |
288 | 288 | let amountAssetInternal = poolAssets[1] | |
289 | 289 | let priceAssetInternal = poolAssets[2] | |
290 | 290 | split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP) | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func getInternalAssetIdOrCreate (assetIdStr,incrementor) = { | |
295 | 295 | let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0) | |
296 | 296 | let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0) | |
297 | 297 | let result = if ((internalAssetId == 0)) | |
298 | 298 | then { | |
299 | 299 | let newInternalAssetId = (currentIndexOfInternalId + incrementor) | |
300 | 300 | $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true) | |
301 | 301 | } | |
302 | 302 | else $Tuple3(internalAssetId, nil, false) | |
303 | 303 | result | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func mustAdmin (i) = { | |
308 | 308 | let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP) | |
309 | 309 | if (containsElement(adminPKs, toBase58String(i.callerPublicKey))) | |
310 | 310 | then true | |
311 | 311 | else { | |
312 | 312 | let isManager = mustManager(i) | |
313 | 313 | if ((isManager == isManager)) | |
314 | 314 | then true | |
315 | 315 | else throw("Strict value is not equal to itself.") | |
316 | 316 | } | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback)) | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | @Callable(i) | |
324 | 324 | func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = { | |
325 | 325 | let checkCaller = mustManager(i) | |
326 | 326 | if ((checkCaller == checkCaller)) | |
327 | 327 | then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)] | |
328 | 328 | else throw("Strict value is not equal to itself.") | |
329 | 329 | } | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | ||
333 | 333 | @Callable(i) | |
334 | 334 | func constructorV2 (mathcherPub58Str) = { | |
335 | 335 | let checkCaller = mustManager(i) | |
336 | 336 | if ((checkCaller == checkCaller)) | |
337 | 337 | then { | |
338 | 338 | let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str)) | |
339 | 339 | if ((mathcerPub == mathcerPub)) | |
340 | 340 | then [StringEntry(keyMatcherPub(), mathcherPub58Str)] | |
341 | 341 | else throw("Strict value is not equal to itself.") | |
342 | 342 | } | |
343 | 343 | else throw("Strict value is not equal to itself.") | |
344 | 344 | } | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | ||
348 | 348 | @Callable(i) | |
349 | 349 | func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = { | |
350 | 350 | let checkCaller = mustManager(i) | |
351 | 351 | if ((checkCaller == checkCaller)) | |
352 | 352 | then { | |
353 | 353 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
354 | 354 | [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))] | |
355 | 355 | } | |
356 | 356 | else throw("Strict value is not equal to itself.") | |
357 | 357 | } | |
358 | 358 | ||
359 | 359 | ||
360 | 360 | ||
361 | 361 | @Callable(i) | |
362 | 362 | func constructorV4 (legacyFactoryContract,legacyPools) = { | |
363 | 363 | let checkCaller = mustManager(i) | |
364 | 364 | if ((checkCaller == checkCaller)) | |
365 | 365 | then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))] | |
366 | 366 | else throw("Strict value is not equal to itself.") | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | ||
371 | 371 | @Callable(i) | |
372 | 372 | func constructorV5 (assetsStoreContract) = { | |
373 | 373 | let checkCaller = mustManager(i) | |
374 | 374 | if ((checkCaller == checkCaller)) | |
375 | 375 | then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)] | |
376 | 376 | else throw("Strict value is not equal to itself.") | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | ||
381 | 381 | @Callable(i) | |
382 | 382 | func constructorV6 (votingEmissionContract,priceAssets) = { | |
383 | 383 | let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit)) | |
384 | 384 | then true | |
385 | 385 | else "invalid voting emission contract address"] | |
386 | 386 | if ((cheks == cheks)) | |
387 | 387 | then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))] | |
388 | 388 | else throw("Strict value is not equal to itself.") | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | 393 | @Callable(i) | |
394 | 394 | func setManager (pendingManagerPublicKey) = { | |
395 | 395 | let checkCaller = mustManager(i) | |
396 | 396 | if ((checkCaller == checkCaller)) | |
397 | 397 | then { | |
398 | 398 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
399 | 399 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
400 | 400 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
401 | 401 | else throw("Strict value is not equal to itself.") | |
402 | 402 | } | |
403 | 403 | else throw("Strict value is not equal to itself.") | |
404 | 404 | } | |
405 | 405 | ||
406 | 406 | ||
407 | 407 | ||
408 | 408 | @Callable(i) | |
409 | 409 | func confirmManager () = { | |
410 | 410 | let pm = pendingManagerPublicKeyOrUnit() | |
411 | 411 | let hasPM = if (isDefined(pm)) | |
412 | 412 | then true | |
413 | 413 | else throw("No pending manager") | |
414 | 414 | if ((hasPM == hasPM)) | |
415 | 415 | then { | |
416 | 416 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
417 | 417 | then true | |
418 | 418 | else throw("You are not pending manager") | |
419 | 419 | if ((checkPM == checkPM)) | |
420 | 420 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
421 | 421 | else throw("Strict value is not equal to itself.") | |
422 | 422 | } | |
423 | 423 | else throw("Strict value is not equal to itself.") | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | ||
428 | 428 | @Callable(i) | |
429 | 429 | func setAdmins (adminPubKeys) = { | |
430 | 430 | let checkCaller = mustManager(i) | |
431 | 431 | if ((checkCaller == checkCaller)) | |
432 | 432 | then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))] | |
433 | 433 | else throw("Strict value is not equal to itself.") | |
434 | 434 | } | |
435 | 435 | ||
436 | 436 | ||
437 | 437 | ||
438 | 438 | @Callable(i) | |
439 | 439 | func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = { | |
440 | 440 | let checkCaller = mustAdmin(i) | |
441 | 441 | if ((checkCaller == checkCaller)) | |
442 | 442 | then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress)))) | |
443 | 443 | then throw((("Pool address " + poolAddress) + " already registered.")) | |
444 | 444 | else { | |
445 | 445 | let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1) | |
446 | 446 | let internalAmountAssetId = internalAmountAssetData._1 | |
447 | 447 | let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3) | |
448 | 448 | then 2 | |
449 | 449 | else 1) | |
450 | 450 | let internalPriceAssetId = internalPriceAssetData._1 | |
451 | 451 | let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress)) | |
452 | 452 | let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash()) | |
453 | 453 | let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))) | |
454 | 454 | if (isDefined(poolConfig)) | |
455 | 455 | then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated.")) | |
456 | 456 | else { | |
457 | 457 | let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))) | |
458 | 458 | let amountAssetsDecimals = if ((amountAssetStr == "WAVES")) | |
459 | 459 | then decimalsMultPrice | |
460 | 460 | else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN) | |
461 | 461 | let priceAssetsDecimals = if ((priceAssetStr == "WAVES")) | |
462 | 462 | then decimalsMultPrice | |
463 | 463 | else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN) | |
464 | 464 | let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true) | |
465 | 465 | let lpAssetId = calculateAssetId(lpAssetIssueAction) | |
466 | 466 | let lpAssetIdStr = toBase58String(lpAssetId) | |
467 | 467 | let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil) | |
468 | 468 | if ((poolActivateInvokeResult == poolActivateInvokeResult)) | |
469 | 469 | then if ((poolActivateInvokeResult != "success")) | |
470 | 470 | then throw("Pool initialisation error happened.") | |
471 | 471 | else { | |
472 | 472 | let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract())) | |
473 | 473 | let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil) | |
474 | 474 | if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv)) | |
475 | 475 | then { | |
476 | 476 | let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil) | |
477 | 477 | if ((addPoolsLpLabelInv == addPoolsLpLabelInv)) | |
478 | 478 | then { | |
479 | 479 | let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil) | |
480 | 480 | if ((setLogoInv == setLogoInv)) | |
481 | 481 | then { | |
482 | 482 | let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil) | |
483 | 483 | if ((addAssetsLinkInv == addAssetsLinkInv)) | |
484 | 484 | then { | |
485 | 485 | let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil) | |
486 | 486 | if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv)) | |
487 | 487 | 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) | |
488 | 488 | else throw("Strict value is not equal to itself.") | |
489 | 489 | } | |
490 | 490 | else throw("Strict value is not equal to itself.") | |
491 | 491 | } | |
492 | 492 | else throw("Strict value is not equal to itself.") | |
493 | 493 | } | |
494 | 494 | else throw("Strict value is not equal to itself.") | |
495 | 495 | } | |
496 | 496 | else throw("Strict value is not equal to itself.") | |
497 | 497 | } | |
498 | 498 | else throw("Strict value is not equal to itself.") | |
499 | 499 | } | |
500 | 500 | } | |
501 | 501 | else throw("Strict value is not equal to itself.") | |
502 | 502 | } | |
503 | 503 | ||
504 | 504 | ||
505 | 505 | ||
506 | 506 | @Callable(i) | |
507 | 507 | func managePool (poolAddress,newStatus) = { | |
508 | 508 | let checkCaller = mustManager(i) | |
509 | 509 | if ((checkCaller == checkCaller)) | |
510 | 510 | then { | |
511 | 511 | let poolConfig = getPoolConfig(poolAddress) | |
512 | 512 | let poolStatus = poolConfig[idxPoolStatus] | |
513 | 513 | let lpAssetIdStr = poolConfig[idxPoolLPAssetId] | |
514 | 514 | let amountAssetStr = poolConfig[idxAmtAssetId] | |
515 | 515 | let priceAssetStr = poolConfig[idxPriceAssetId] | |
516 | 516 | let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm]) | |
517 | 517 | let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm]) | |
518 | 518 | let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId]) | |
519 | 519 | let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId]) | |
520 | 520 | let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm]) | |
521 | 521 | let poolType = poolConfig[idxPoolType] | |
522 | 522 | [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))] | |
523 | 523 | } | |
524 | 524 | else throw("Strict value is not equal to itself.") | |
525 | 525 | } | |
526 | 526 | ||
527 | 527 | ||
528 | 528 | ||
529 | 529 | @Callable(i) | |
530 | 530 | func emit (amountToEmit) = { | |
531 | 531 | let caller = i.caller | |
532 | 532 | let originCaller = i.originCaller | |
533 | 533 | let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.") | |
534 | 534 | let lpAsset = fromBase58String(lpAssetRequested) | |
535 | 535 | let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP) | |
536 | 536 | let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists.")) | |
537 | 537 | if ((0 >= amountToEmit)) | |
538 | 538 | then nil | |
539 | 539 | else if (containsElement(legacyPools, toString(caller))) | |
540 | 540 | then $Tuple2(nil, legacyFactoryContract) | |
541 | 541 | else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success") | |
542 | 542 | } | |
543 | 543 | ||
544 | 544 | ||
545 | 545 | ||
546 | 546 | @Callable(i) | |
547 | 547 | func burn (amountToBurn) = { | |
548 | 548 | let caller = i.caller | |
549 | 549 | let originCaller = i.originCaller | |
550 | 550 | let payment = value(i.payments[0]) | |
551 | 551 | let paymentAmount = value(payment.amount) | |
552 | 552 | let inAmountAssetId = toBase58String(value(payment.assetId)) | |
553 | 553 | let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.") | |
554 | 554 | if ((inAmountAssetId != lpAssetRequestedForBurning)) | |
555 | 555 | then throw("Invalid asset passed.") | |
556 | 556 | else if ((amountToBurn != paymentAmount)) | |
557 | 557 | then throw("Invalid amount passed.") | |
558 | 558 | else { | |
559 | 559 | let lpAsset = fromBase58String(lpAssetRequestedForBurning) | |
560 | 560 | $Tuple2([Burn(lpAsset, amountToBurn)], "success") | |
561 | 561 | } | |
562 | 562 | } | |
563 | 563 | ||
564 | 564 | ||
565 | 565 | ||
566 | 566 | @Callable(i) | |
567 | 567 | func modifyWeight (lpAssetId,share) = { | |
568 | 568 | let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), ""))) | |
569 | 569 | then true | |
570 | 570 | else mustManager(i) | |
571 | 571 | if ((checkCaller == checkCaller)) | |
572 | 572 | then { | |
573 | 573 | let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId)) | |
574 | 574 | let poolWeightKey = keyPoolToWeight(poolContractAddress) | |
575 | 575 | let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL) | |
576 | 576 | let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0) | |
577 | 577 | let poolWeight = valueOrElse(getInteger(poolWeightKey), 0) | |
578 | 578 | let poolWeightNew = share | |
579 | 579 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
580 | 580 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
581 | 581 | let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil) | |
582 | 582 | if ((onModifyWeightInv == onModifyWeightInv)) | |
583 | 583 | then { | |
584 | 584 | let gwxVirtualPoolActions = if ((gwxWeight == 0)) | |
585 | 585 | then nil | |
586 | 586 | else [IntegerEntry(gwxWeightKey, 0)] | |
587 | 587 | let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0) | |
588 | 588 | let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey) | |
589 | 589 | let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit)) | |
590 | 590 | then nil | |
591 | 591 | else [DeleteEntry(poolWeightHistoryKey)] | |
592 | 592 | (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions) | |
593 | 593 | } | |
594 | 594 | else throw("Strict value is not equal to itself.") | |
595 | 595 | } | |
596 | 596 | else throw("Strict value is not equal to itself.") | |
597 | 597 | } | |
598 | 598 | ||
599 | 599 | ||
600 | 600 | ||
601 | 601 | @Callable(i) | |
602 | 602 | func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = { | |
603 | 603 | let checkCaller = mustManager(i) | |
604 | 604 | if ((checkCaller == checkCaller)) | |
605 | 605 | then { | |
606 | 606 | let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
607 | 607 | let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
608 | 608 | let weightDecrement = ((5 * POOLWEIGHTMULT) / 100) | |
609 | 609 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
610 | 610 | let stakingDapp = getStakingAddressOrFail(factoryCfg) | |
611 | 611 | let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg) | |
612 | 612 | let btcWeightKEY = keyPoolToWeight(btcPoolAddress) | |
613 | 613 | let ethWeightKEY = keyPoolToWeight(ethPoolAddress) | |
614 | 614 | let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress) | |
615 | 615 | let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress) | |
616 | 616 | let btcWeight = getIntOrFail(btcWeightKEY) | |
617 | 617 | let ethWeight = getIntOrFail(ethWeightKEY) | |
618 | 618 | let btcWeightNew = (btcWeight - weightDecrement) | |
619 | 619 | let ethWeightNew = (ethWeight - weightDecrement) | |
620 | 620 | if ((0 >= btcWeightNew)) | |
621 | 621 | then throw(("invalid btcWeightNew: " + toString(btcWeightNew))) | |
622 | 622 | else if ((0 >= ethWeightNew)) | |
623 | 623 | then throw(("invalid ethWeightNew: " + toString(ethWeightNew))) | |
624 | 624 | else { | |
625 | 625 | let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress)) | |
626 | 626 | let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress)) | |
627 | 627 | let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress)) | |
628 | 628 | let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress)) | |
629 | 629 | let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil) | |
630 | 630 | if ((onModifyWeightBtc == onModifyWeightBtc)) | |
631 | 631 | then { | |
632 | 632 | let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil) | |
633 | 633 | if ((onModifyWeightEth == onModifyWeightEth)) | |
634 | 634 | then { | |
635 | 635 | let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil) | |
636 | 636 | if ((onModifyWeightEthBtc == onModifyWeightEthBtc)) | |
637 | 637 | then { | |
638 | 638 | let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil) | |
639 | 639 | if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt)) | |
640 | 640 | 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)] | |
641 | 641 | else throw("Strict value is not equal to itself.") | |
642 | 642 | } | |
643 | 643 | else throw("Strict value is not equal to itself.") | |
644 | 644 | } | |
645 | 645 | else throw("Strict value is not equal to itself.") | |
646 | 646 | } | |
647 | 647 | else throw("Strict value is not equal to itself.") | |
648 | 648 | } | |
649 | 649 | } | |
650 | 650 | else throw("Strict value is not equal to itself.") | |
651 | 651 | } | |
652 | 652 | ||
653 | 653 | ||
654 | 654 | ||
655 | 655 | @Callable(i) | |
656 | 656 | func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
657 | 657 | let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) { | |
658 | 658 | case b: Boolean => | |
659 | 659 | b | |
660 | 660 | case _ => | |
661 | 661 | false | |
662 | 662 | } | |
663 | 663 | $Tuple2(nil, haveLabel) | |
664 | 664 | } | |
665 | 665 | ||
666 | 666 | ||
667 | 667 | ||
668 | 668 | @Callable(i) | |
669 | 669 | func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
670 | 670 | let checkCaller = mustAdmin(i) | |
671 | 671 | if ((checkCaller == checkCaller)) | |
672 | 672 | then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit) | |
673 | 673 | else throw("Strict value is not equal to itself.") | |
674 | 674 | } | |
675 | 675 | ||
676 | 676 | ||
677 | 677 | ||
678 | 678 | @Callable(i) | |
679 | 679 | func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
680 | 680 | let checkCaller = if (mustThis(i)) | |
681 | 681 | then true | |
682 | 682 | else mustAdmin(i) | |
683 | 683 | if ((checkCaller == checkCaller)) | |
684 | 684 | then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit) | |
685 | 685 | else throw("Strict value is not equal to itself.") | |
686 | 686 | } | |
687 | 687 | ||
688 | 688 | ||
689 | 689 | ||
690 | 690 | @Callable(i) | |
691 | 691 | func onVerificationLoss (assetId) = { | |
692 | 692 | let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), ""))) | |
693 | 693 | then true | |
694 | 694 | else mustManager(i) | |
695 | 695 | if ((checkCaller == checkCaller)) | |
696 | 696 | then { | |
697 | 697 | let priceAssets = getPriceAssets() | |
698 | 698 | let checkPriceAssetsSize = if ((size(priceAssets) > 0)) | |
699 | 699 | then true | |
700 | 700 | else throw("invalid price assets") | |
701 | 701 | if ((checkPriceAssetsSize == checkPriceAssetsSize)) | |
702 | 702 | then { | |
703 | 703 | func cb (acc,priceAsset) = { | |
704 | 704 | let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil) | |
705 | 705 | if ((r == r)) | |
706 | 706 | then unit | |
707 | 707 | else throw("Strict value is not equal to itself.") | |
708 | 708 | } | |
709 | 709 | ||
710 | 710 | let actions = { | |
711 | 711 | let $l = priceAssets | |
712 | 712 | let $s = size($l) | |
713 | 713 | let $acc0 = unit | |
714 | 714 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
715 | 715 | then $a | |
716 | 716 | else cb($a, $l[$i]) | |
717 | 717 | ||
718 | 718 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
719 | 719 | then $a | |
720 | 720 | else throw("List size exceeds 3") | |
721 | 721 | ||
722 | 722 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
723 | 723 | } | |
724 | 724 | if ((actions == actions)) | |
725 | 725 | then $Tuple2(nil, unit) | |
726 | 726 | else throw("Strict value is not equal to itself.") | |
727 | 727 | } | |
728 | 728 | else throw("Strict value is not equal to itself.") | |
729 | 729 | } | |
730 | 730 | else throw("Strict value is not equal to itself.") | |
731 | 731 | } | |
732 | 732 | ||
733 | 733 | ||
734 | 734 | ||
735 | 735 | @Callable(i) | |
736 | 736 | func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = { | |
737 | 737 | let poolConfig = getPoolConfig(poolAddress) | |
738 | 738 | let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId])) | |
739 | 739 | let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false) | |
740 | 740 | let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false) | |
741 | 741 | $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled) | |
742 | 742 | then true | |
743 | 743 | else poolOneTokenOperationsDisabled) | |
744 | 744 | } | |
745 | 745 | ||
746 | 746 | ||
747 | 747 | ||
748 | 748 | @Callable(i) | |
749 | 749 | func getInFeeREADONLY (poolAddress) = { | |
750 | 750 | let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0) | |
751 | 751 | $Tuple2(nil, fee) | |
752 | 752 | } | |
753 | 753 | ||
754 | 754 | ||
755 | 755 | ||
756 | 756 | @Callable(i) | |
757 | 757 | func getOutFeeREADONLY (poolAddress) = { | |
758 | 758 | let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000)) | |
759 | 759 | $Tuple2(nil, fee) | |
760 | 760 | } | |
761 | 761 | ||
762 | 762 | ||
763 | + | ||
764 | + | @Callable(i) | |
765 | + | func getPoolStatusREADONLY (poolAddress) = { | |
766 | + | let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP) | |
767 | + | let amountAssetInternal = poolAssets[1] | |
768 | + | let priceAssetInternal = poolAssets[2] | |
769 | + | let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP) | |
770 | + | $Tuple2(nil, parseIntValue(cfg[idxPoolStatus])) | |
771 | + | } | |
772 | + | ||
773 | + | ||
763 | 774 | @Verifier(tx) | |
764 | 775 | func verify () = { | |
765 | 776 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
766 | 777 | case pk: ByteVector => | |
767 | 778 | pk | |
768 | 779 | case _: Unit => | |
769 | 780 | tx.senderPublicKey | |
770 | 781 | case _ => | |
771 | 782 | throw("Match error") | |
772 | 783 | } | |
773 | 784 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
774 | 785 | } | |
775 | 786 |
github/deemru/w8io/026f985 109.55 ms ◑