tx · GJqTRqDGs9DQfNBcrtzhPtLqki27SFchngjygo3PtgbA 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai: -0.02900000 Waves 2023.01.18 14:38 [2410320] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves
{ "type": 13, "id": "GJqTRqDGs9DQfNBcrtzhPtLqki27SFchngjygo3PtgbA", "fee": 2900000, "feeAssetId": null, "timestamp": 1674041971836, "version": 1, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "5Xm1JaCqnFVSfXzAYyVREymxsvtXM1A4KPUbgFY9X8dLpApzgWNkLqtLazn5MeYtMaB3Le23CZhcrQ14WNvTdr5U" ], "script": "base64:AAIFAAAAAAAAEowIAhIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgiBlNDQUxFOCIFTVVMVDgiB1NDQUxFMTgiBk1VTFQxOCIOUE9PTFdFSUdIVE1VTFQiDkdXWHZpcnR1YWxQT09MIgxsYWJlbFBvb2xzTHAiDWRlZmF1bHRTcHJlYWQiEWRlY2ltYWxzTXVsdFByaWNlIgNTRVAiBUVNUFRZIgpQb29sQWN0aXZlIg9Qb29sUHV0RGlzYWJsZWQiE1Bvb2xNYXRjaGVyRGlzYWJsZWQiDFBvb2xTaHV0ZG93biISaWR4SW50ZXJuYWxBc3NldElkIg9pZHhSZXN1dEFjdGlvbnMiIGlkeElmQXNzZXRJZENhbGN1bGF0aW9uUGVyZm9ybWVkIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJ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NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACZWMAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJlYwAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmVlZ/vagQ==", "chainId": 84, "height": 2410320, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 74s5enjE1kh9cF3KbraDPw1YKP4ZkumNtbR4xW1gL5Qp Next: DFLtAmhP7AKtgrUTUxx8K6yf4yes8zKXpcca2zbzBcvN Diff:
Old | New | Differences | |
---|---|---|---|
318 | 318 | ||
319 | 319 | ||
320 | 320 | func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback)) | |
321 | - | ||
322 | - | ||
323 | - | @Callable(i) | |
324 | - | func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = $Tuple2(nil, getString(this, keyMappingPoolAssetsToLpasset(asset1, asset2))) | |
325 | - | ||
326 | - | ||
327 | - | ||
328 | - | @Callable(i) | |
329 | - | func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp))) | |
330 | - | ||
331 | 321 | ||
332 | 322 | ||
333 | 323 | @Callable(i) |
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 | - | ||
322 | - | ||
323 | - | @Callable(i) | |
324 | - | func getLpAssetFromPoolAssetsREADONLY (asset1,asset2) = $Tuple2(nil, getString(this, keyMappingPoolAssetsToLpasset(asset1, asset2))) | |
325 | - | ||
326 | - | ||
327 | - | ||
328 | - | @Callable(i) | |
329 | - | func getPoolAddressFromLpAssetREADONLY (lp) = $Tuple2(nil, getString(this, keyMappingPoolLPAssetToPoolContractAddress(lp))) | |
330 | - | ||
331 | 321 | ||
332 | 322 | ||
333 | 323 | @Callable(i) | |
334 | 324 | func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = { | |
335 | 325 | let checkCaller = mustManager(i) | |
336 | 326 | if ((checkCaller == checkCaller)) | |
337 | 327 | then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)] | |
338 | 328 | else throw("Strict value is not equal to itself.") | |
339 | 329 | } | |
340 | 330 | ||
341 | 331 | ||
342 | 332 | ||
343 | 333 | @Callable(i) | |
344 | 334 | func constructorV2 (mathcherPub58Str) = { | |
345 | 335 | let checkCaller = mustManager(i) | |
346 | 336 | if ((checkCaller == checkCaller)) | |
347 | 337 | then { | |
348 | 338 | let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str)) | |
349 | 339 | if ((mathcerPub == mathcerPub)) | |
350 | 340 | then [StringEntry(keyMatcherPub(), mathcherPub58Str)] | |
351 | 341 | else throw("Strict value is not equal to itself.") | |
352 | 342 | } | |
353 | 343 | else throw("Strict value is not equal to itself.") | |
354 | 344 | } | |
355 | 345 | ||
356 | 346 | ||
357 | 347 | ||
358 | 348 | @Callable(i) | |
359 | 349 | func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = { | |
360 | 350 | let checkCaller = mustManager(i) | |
361 | 351 | if ((checkCaller == checkCaller)) | |
362 | 352 | then { | |
363 | 353 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
364 | 354 | [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))] | |
365 | 355 | } | |
366 | 356 | else throw("Strict value is not equal to itself.") | |
367 | 357 | } | |
368 | 358 | ||
369 | 359 | ||
370 | 360 | ||
371 | 361 | @Callable(i) | |
372 | 362 | func constructorV4 (legacyFactoryContract,legacyPools) = { | |
373 | 363 | let checkCaller = mustManager(i) | |
374 | 364 | if ((checkCaller == checkCaller)) | |
375 | 365 | then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))] | |
376 | 366 | else throw("Strict value is not equal to itself.") | |
377 | 367 | } | |
378 | 368 | ||
379 | 369 | ||
380 | 370 | ||
381 | 371 | @Callable(i) | |
382 | 372 | func constructorV5 (assetsStoreContract) = { | |
383 | 373 | let checkCaller = mustManager(i) | |
384 | 374 | if ((checkCaller == checkCaller)) | |
385 | 375 | then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)] | |
386 | 376 | else throw("Strict value is not equal to itself.") | |
387 | 377 | } | |
388 | 378 | ||
389 | 379 | ||
390 | 380 | ||
391 | 381 | @Callable(i) | |
392 | 382 | func constructorV6 (votingEmissionContract,priceAssets) = { | |
393 | 383 | let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit)) | |
394 | 384 | then true | |
395 | 385 | else "invalid voting emission contract address"] | |
396 | 386 | if ((cheks == cheks)) | |
397 | 387 | then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))] | |
398 | 388 | else throw("Strict value is not equal to itself.") | |
399 | 389 | } | |
400 | 390 | ||
401 | 391 | ||
402 | 392 | ||
403 | 393 | @Callable(i) | |
404 | 394 | func setManager (pendingManagerPublicKey) = { | |
405 | 395 | let checkCaller = mustManager(i) | |
406 | 396 | if ((checkCaller == checkCaller)) | |
407 | 397 | then { | |
408 | 398 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
409 | 399 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
410 | 400 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
411 | 401 | else throw("Strict value is not equal to itself.") | |
412 | 402 | } | |
413 | 403 | else throw("Strict value is not equal to itself.") | |
414 | 404 | } | |
415 | 405 | ||
416 | 406 | ||
417 | 407 | ||
418 | 408 | @Callable(i) | |
419 | 409 | func confirmManager () = { | |
420 | 410 | let pm = pendingManagerPublicKeyOrUnit() | |
421 | 411 | let hasPM = if (isDefined(pm)) | |
422 | 412 | then true | |
423 | 413 | else throw("No pending manager") | |
424 | 414 | if ((hasPM == hasPM)) | |
425 | 415 | then { | |
426 | 416 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
427 | 417 | then true | |
428 | 418 | else throw("You are not pending manager") | |
429 | 419 | if ((checkPM == checkPM)) | |
430 | 420 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
431 | 421 | else throw("Strict value is not equal to itself.") | |
432 | 422 | } | |
433 | 423 | else throw("Strict value is not equal to itself.") | |
434 | 424 | } | |
435 | 425 | ||
436 | 426 | ||
437 | 427 | ||
438 | 428 | @Callable(i) | |
439 | 429 | func setAdmins (adminPubKeys) = { | |
440 | 430 | let checkCaller = mustManager(i) | |
441 | 431 | if ((checkCaller == checkCaller)) | |
442 | 432 | then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))] | |
443 | 433 | else throw("Strict value is not equal to itself.") | |
444 | 434 | } | |
445 | 435 | ||
446 | 436 | ||
447 | 437 | ||
448 | 438 | @Callable(i) | |
449 | 439 | func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = { | |
450 | 440 | let checkCaller = mustAdmin(i) | |
451 | 441 | if ((checkCaller == checkCaller)) | |
452 | 442 | then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress)))) | |
453 | 443 | then throw((("Pool address " + poolAddress) + " already registered.")) | |
454 | 444 | else { | |
455 | 445 | let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1) | |
456 | 446 | let internalAmountAssetId = internalAmountAssetData._1 | |
457 | 447 | let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3) | |
458 | 448 | then 2 | |
459 | 449 | else 1) | |
460 | 450 | let internalPriceAssetId = internalPriceAssetData._1 | |
461 | 451 | let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress)) | |
462 | 452 | let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash()) | |
463 | 453 | let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))) | |
464 | 454 | if (isDefined(poolConfig)) | |
465 | 455 | then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated.")) | |
466 | 456 | else { | |
467 | 457 | let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))) | |
468 | 458 | let amountAssetsDecimals = if ((amountAssetStr == "WAVES")) | |
469 | 459 | then decimalsMultPrice | |
470 | 460 | else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN) | |
471 | 461 | let priceAssetsDecimals = if ((priceAssetStr == "WAVES")) | |
472 | 462 | then decimalsMultPrice | |
473 | 463 | else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN) | |
474 | 464 | let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true) | |
475 | 465 | let lpAssetId = calculateAssetId(lpAssetIssueAction) | |
476 | 466 | let lpAssetIdStr = toBase58String(lpAssetId) | |
477 | 467 | let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil) | |
478 | 468 | if ((poolActivateInvokeResult == poolActivateInvokeResult)) | |
479 | 469 | then if ((poolActivateInvokeResult != "success")) | |
480 | 470 | then throw("Pool initialisation error happened.") | |
481 | 471 | else { | |
482 | 472 | let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract())) | |
483 | 473 | let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil) | |
484 | 474 | if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv)) | |
485 | 475 | then { | |
486 | 476 | let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil) | |
487 | 477 | if ((addPoolsLpLabelInv == addPoolsLpLabelInv)) | |
488 | 478 | then { | |
489 | 479 | let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil) | |
490 | 480 | if ((setLogoInv == setLogoInv)) | |
491 | 481 | then { | |
492 | 482 | let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil) | |
493 | 483 | if ((addAssetsLinkInv == addAssetsLinkInv)) | |
494 | 484 | then { | |
495 | 485 | let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil) | |
496 | 486 | if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv)) | |
497 | 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) | |
498 | 488 | else throw("Strict value is not equal to itself.") | |
499 | 489 | } | |
500 | 490 | else throw("Strict value is not equal to itself.") | |
501 | 491 | } | |
502 | 492 | else throw("Strict value is not equal to itself.") | |
503 | 493 | } | |
504 | 494 | else throw("Strict value is not equal to itself.") | |
505 | 495 | } | |
506 | 496 | else throw("Strict value is not equal to itself.") | |
507 | 497 | } | |
508 | 498 | else throw("Strict value is not equal to itself.") | |
509 | 499 | } | |
510 | 500 | } | |
511 | 501 | else throw("Strict value is not equal to itself.") | |
512 | 502 | } | |
513 | 503 | ||
514 | 504 | ||
515 | 505 | ||
516 | 506 | @Callable(i) | |
517 | 507 | func managePool (poolAddress,newStatus) = { | |
518 | 508 | let checkCaller = mustManager(i) | |
519 | 509 | if ((checkCaller == checkCaller)) | |
520 | 510 | then { | |
521 | 511 | let poolConfig = getPoolConfig(poolAddress) | |
522 | 512 | let poolStatus = poolConfig[idxPoolStatus] | |
523 | 513 | let lpAssetIdStr = poolConfig[idxPoolLPAssetId] | |
524 | 514 | let amountAssetStr = poolConfig[idxAmtAssetId] | |
525 | 515 | let priceAssetStr = poolConfig[idxPriceAssetId] | |
526 | 516 | let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm]) | |
527 | 517 | let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm]) | |
528 | 518 | let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId]) | |
529 | 519 | let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId]) | |
530 | 520 | let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm]) | |
531 | 521 | let poolType = poolConfig[idxPoolType] | |
532 | 522 | [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))] | |
533 | 523 | } | |
534 | 524 | else throw("Strict value is not equal to itself.") | |
535 | 525 | } | |
536 | 526 | ||
537 | 527 | ||
538 | 528 | ||
539 | 529 | @Callable(i) | |
540 | 530 | func emit (amountToEmit) = { | |
541 | 531 | let caller = i.caller | |
542 | 532 | let originCaller = i.originCaller | |
543 | 533 | let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.") | |
544 | 534 | let lpAsset = fromBase58String(lpAssetRequested) | |
545 | 535 | let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP) | |
546 | 536 | let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists.")) | |
547 | 537 | if ((0 >= amountToEmit)) | |
548 | 538 | then nil | |
549 | 539 | else if (containsElement(legacyPools, toString(caller))) | |
550 | 540 | then $Tuple2(nil, legacyFactoryContract) | |
551 | 541 | else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success") | |
552 | 542 | } | |
553 | 543 | ||
554 | 544 | ||
555 | 545 | ||
556 | 546 | @Callable(i) | |
557 | 547 | func burn (amountToBurn) = { | |
558 | 548 | let caller = i.caller | |
559 | 549 | let originCaller = i.originCaller | |
560 | 550 | let payment = value(i.payments[0]) | |
561 | 551 | let paymentAmount = value(payment.amount) | |
562 | 552 | let inAmountAssetId = toBase58String(value(payment.assetId)) | |
563 | 553 | let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.") | |
564 | 554 | if ((inAmountAssetId != lpAssetRequestedForBurning)) | |
565 | 555 | then throw("Invalid asset passed.") | |
566 | 556 | else if ((amountToBurn != paymentAmount)) | |
567 | 557 | then throw("Invalid amount passed.") | |
568 | 558 | else { | |
569 | 559 | let lpAsset = fromBase58String(lpAssetRequestedForBurning) | |
570 | 560 | $Tuple2([Burn(lpAsset, amountToBurn)], "success") | |
571 | 561 | } | |
572 | 562 | } | |
573 | 563 | ||
574 | 564 | ||
575 | 565 | ||
576 | 566 | @Callable(i) | |
577 | 567 | func modifyWeight (lpAssetId,share) = { | |
578 | 568 | let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), ""))) | |
579 | 569 | then true | |
580 | 570 | else mustManager(i) | |
581 | 571 | if ((checkCaller == checkCaller)) | |
582 | 572 | then { | |
583 | 573 | let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId)) | |
584 | 574 | let poolWeightKey = keyPoolToWeight(poolContractAddress) | |
585 | 575 | let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL) | |
586 | 576 | let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0) | |
587 | 577 | let poolWeight = valueOrElse(getInteger(poolWeightKey), 0) | |
588 | 578 | let poolWeightNew = share | |
589 | 579 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
590 | 580 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
591 | 581 | let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil) | |
592 | 582 | if ((onModifyWeightInv == onModifyWeightInv)) | |
593 | 583 | then { | |
594 | 584 | let gwxVirtualPoolActions = if ((gwxWeight == 0)) | |
595 | 585 | then nil | |
596 | 586 | else [IntegerEntry(gwxWeightKey, 0)] | |
597 | 587 | let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0) | |
598 | 588 | let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey) | |
599 | 589 | let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit)) | |
600 | 590 | then nil | |
601 | 591 | else [DeleteEntry(poolWeightHistoryKey)] | |
602 | 592 | (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions) | |
603 | 593 | } | |
604 | 594 | else throw("Strict value is not equal to itself.") | |
605 | 595 | } | |
606 | 596 | else throw("Strict value is not equal to itself.") | |
607 | 597 | } | |
608 | 598 | ||
609 | 599 | ||
610 | 600 | ||
611 | 601 | @Callable(i) | |
612 | 602 | func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = { | |
613 | 603 | let checkCaller = mustManager(i) | |
614 | 604 | if ((checkCaller == checkCaller)) | |
615 | 605 | then { | |
616 | 606 | let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
617 | 607 | let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
618 | 608 | let weightDecrement = ((5 * POOLWEIGHTMULT) / 100) | |
619 | 609 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
620 | 610 | let stakingDapp = getStakingAddressOrFail(factoryCfg) | |
621 | 611 | let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg) | |
622 | 612 | let btcWeightKEY = keyPoolToWeight(btcPoolAddress) | |
623 | 613 | let ethWeightKEY = keyPoolToWeight(ethPoolAddress) | |
624 | 614 | let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress) | |
625 | 615 | let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress) | |
626 | 616 | let btcWeight = getIntOrFail(btcWeightKEY) | |
627 | 617 | let ethWeight = getIntOrFail(ethWeightKEY) | |
628 | 618 | let btcWeightNew = (btcWeight - weightDecrement) | |
629 | 619 | let ethWeightNew = (ethWeight - weightDecrement) | |
630 | 620 | if ((0 >= btcWeightNew)) | |
631 | 621 | then throw(("invalid btcWeightNew: " + toString(btcWeightNew))) | |
632 | 622 | else if ((0 >= ethWeightNew)) | |
633 | 623 | then throw(("invalid ethWeightNew: " + toString(ethWeightNew))) | |
634 | 624 | else { | |
635 | 625 | let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress)) | |
636 | 626 | let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress)) | |
637 | 627 | let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress)) | |
638 | 628 | let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress)) | |
639 | 629 | let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil) | |
640 | 630 | if ((onModifyWeightBtc == onModifyWeightBtc)) | |
641 | 631 | then { | |
642 | 632 | let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil) | |
643 | 633 | if ((onModifyWeightEth == onModifyWeightEth)) | |
644 | 634 | then { | |
645 | 635 | let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil) | |
646 | 636 | if ((onModifyWeightEthBtc == onModifyWeightEthBtc)) | |
647 | 637 | then { | |
648 | 638 | let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil) | |
649 | 639 | if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt)) | |
650 | 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)] | |
651 | 641 | else throw("Strict value is not equal to itself.") | |
652 | 642 | } | |
653 | 643 | else throw("Strict value is not equal to itself.") | |
654 | 644 | } | |
655 | 645 | else throw("Strict value is not equal to itself.") | |
656 | 646 | } | |
657 | 647 | else throw("Strict value is not equal to itself.") | |
658 | 648 | } | |
659 | 649 | } | |
660 | 650 | else throw("Strict value is not equal to itself.") | |
661 | 651 | } | |
662 | 652 | ||
663 | 653 | ||
664 | 654 | ||
665 | 655 | @Callable(i) | |
666 | 656 | func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
667 | 657 | let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) { | |
668 | 658 | case b: Boolean => | |
669 | 659 | b | |
670 | 660 | case _ => | |
671 | 661 | false | |
672 | 662 | } | |
673 | 663 | $Tuple2(nil, haveLabel) | |
674 | 664 | } | |
675 | 665 | ||
676 | 666 | ||
677 | 667 | ||
678 | 668 | @Callable(i) | |
679 | 669 | func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
680 | 670 | let checkCaller = mustAdmin(i) | |
681 | 671 | if ((checkCaller == checkCaller)) | |
682 | 672 | then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit) | |
683 | 673 | else throw("Strict value is not equal to itself.") | |
684 | 674 | } | |
685 | 675 | ||
686 | 676 | ||
687 | 677 | ||
688 | 678 | @Callable(i) | |
689 | 679 | func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
690 | 680 | let checkCaller = if (mustThis(i)) | |
691 | 681 | then true | |
692 | 682 | else mustAdmin(i) | |
693 | 683 | if ((checkCaller == checkCaller)) | |
694 | 684 | then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit) | |
695 | 685 | else throw("Strict value is not equal to itself.") | |
696 | 686 | } | |
697 | 687 | ||
698 | 688 | ||
699 | 689 | ||
700 | 690 | @Callable(i) | |
701 | 691 | func onVerificationLoss (assetId) = { | |
702 | 692 | let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), ""))) | |
703 | 693 | then true | |
704 | 694 | else mustManager(i) | |
705 | 695 | if ((checkCaller == checkCaller)) | |
706 | 696 | then { | |
707 | 697 | let priceAssets = getPriceAssets() | |
708 | 698 | let checkPriceAssetsSize = if ((size(priceAssets) > 0)) | |
709 | 699 | then true | |
710 | 700 | else throw("invalid price assets") | |
711 | 701 | if ((checkPriceAssetsSize == checkPriceAssetsSize)) | |
712 | 702 | then { | |
713 | 703 | func cb (acc,priceAsset) = { | |
714 | 704 | let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil) | |
715 | 705 | if ((r == r)) | |
716 | 706 | then unit | |
717 | 707 | else throw("Strict value is not equal to itself.") | |
718 | 708 | } | |
719 | 709 | ||
720 | 710 | let actions = { | |
721 | 711 | let $l = priceAssets | |
722 | 712 | let $s = size($l) | |
723 | 713 | let $acc0 = unit | |
724 | 714 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
725 | 715 | then $a | |
726 | 716 | else cb($a, $l[$i]) | |
727 | 717 | ||
728 | 718 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
729 | 719 | then $a | |
730 | 720 | else throw("List size exceeds 3") | |
731 | 721 | ||
732 | 722 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
733 | 723 | } | |
734 | 724 | if ((actions == actions)) | |
735 | 725 | then $Tuple2(nil, unit) | |
736 | 726 | else throw("Strict value is not equal to itself.") | |
737 | 727 | } | |
738 | 728 | else throw("Strict value is not equal to itself.") | |
739 | 729 | } | |
740 | 730 | else throw("Strict value is not equal to itself.") | |
741 | 731 | } | |
742 | 732 | ||
743 | 733 | ||
744 | 734 | ||
745 | 735 | @Callable(i) | |
746 | 736 | func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = { | |
747 | 737 | let poolConfig = getPoolConfig(poolAddress) | |
748 | 738 | let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId])) | |
749 | 739 | let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false) | |
750 | 740 | let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false) | |
751 | 741 | $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled) | |
752 | 742 | then true | |
753 | 743 | else poolOneTokenOperationsDisabled) | |
754 | 744 | } | |
755 | 745 | ||
756 | 746 | ||
757 | 747 | ||
758 | 748 | @Callable(i) | |
759 | 749 | func getInFeeREADONLY (poolAddress) = { | |
760 | 750 | let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0) | |
761 | 751 | $Tuple2(nil, fee) | |
762 | 752 | } | |
763 | 753 | ||
764 | 754 | ||
765 | 755 | ||
766 | 756 | @Callable(i) | |
767 | 757 | func getOutFeeREADONLY (poolAddress) = { | |
768 | 758 | let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000)) | |
769 | 759 | $Tuple2(nil, fee) | |
770 | 760 | } | |
771 | 761 | ||
772 | 762 | ||
773 | 763 | ||
774 | 764 | @Callable(i) | |
775 | 765 | func getPoolStatusREADONLY (poolAddress) = { | |
776 | 766 | let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP) | |
777 | 767 | let amountAssetInternal = poolAssets[1] | |
778 | 768 | let priceAssetInternal = poolAssets[2] | |
779 | 769 | let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP) | |
780 | 770 | $Tuple2(nil, parseIntValue(cfg[idxPoolStatus])) | |
781 | 771 | } | |
782 | 772 | ||
783 | 773 | ||
784 | 774 | @Verifier(tx) | |
785 | 775 | func verify () = { | |
786 | 776 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
787 | 777 | case pk: ByteVector => | |
788 | 778 | pk | |
789 | 779 | case _: Unit => | |
790 | 780 | tx.senderPublicKey | |
791 | 781 | case _ => | |
792 | 782 | throw("Match error") | |
793 | 783 | } | |
794 | 784 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
795 | 785 | } | |
796 | 786 |
github/deemru/w8io/026f985 94.18 ms ◑