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