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