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