tx · 4yXfjSSarLD8uh6M7PToadP8M1dxa27NyuSQDnv33Dkw 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai: -0.03400000 Waves 2022.06.27 10:08 [2114525] smart account 3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai > SELF 0.00000000 Waves
{ "type": 13, "id": "4yXfjSSarLD8uh6M7PToadP8M1dxa27NyuSQDnv33Dkw", "fee": 3400000, "feeAssetId": null, "timestamp": 1656313703228, "version": 1, "sender": "3MsMP2pb2p8MDd6Rxb7XEXqqwEhE8ATfyai", "senderPublicKey": "2JEaBjtjvMoNGKZmL9QxYefa1VkMJM3vMW8rNvTs9R2H", "proofs": [ "2hyHRGy91XXTKQdzZPoa6vWfrWSg6YDhZ8Zb3Uxr2Z6KDUbA6HPUv7aWrHRLXyPNgKnqsMoEpbUG8xH9g9aRHkkc" ], "script": "base64:AAIFAAAAAAAAAHkIAhIKCggICAgICAgIARIDCgEIEgYKBAgICAgSBAoCCBgSAwoBCBIECgIIGBIDCgEIEgASAwoBGBIKCggICAgICAEICBIECgIIARIDCgEBEgMKAQESBAoCCAESBgoECAgICBIECgIICBIECgIICBIECgIICBIDCgEIAAAAWQAAAAAGU0NBTEU4AAAAAAAAAAAIAAAAAAVNVUxUOAAAAAAABfXhAAAAAAAHU0NBTEUxOAAAAAAAAAAAEgAAAAAGTVVMVDE4CQABNgAAAAEADeC2s6dkAAAAAAAADlBPT0xXRUlHSFRNVUxUBQAAAAVNVUxUOAAAAAAOR1dYdmlydHVhbFBPT0wCAAAADkdXWHZpcnR1YWxQT09MAAAAAAxsYWJlbFBvb2xzTHACAAAACFBPT0xTX0xQAAAAABFkZWNpbWFsc011bHRQcmljZQkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAA+gAAAAAAAAAA+gAAAAAA1NFUAIAAAACX18AAAAABUVNUFRZAgAAAAAAAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNh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AgUAAAACJGkFAAAAAiRzBQAAAAIkYQkBAAAAAmNiAAAAAgUAAAACJGEJAAGRAAAAAgUAAAACJGwFAAAAAiRpCgEAAAAFJGYwXzIAAAACAAAAAiRhAAAAAiRpAwkAAGcAAAACBQAAAAIkaQUAAAACJHMFAAAAAiRhCQAAAgAAAAECAAAAE0xpc3Qgc2l6ZSBleGNlZWRzIDEJAQAAAAUkZjBfMgAAAAIJAQAAAAUkZjBfMQAAAAIFAAAABSRhY2MwAAAAAAAAAAAAAAAAAAAAAAABAwkAAAAAAAACBQAAAAdhY3Rpb25zBQAAAAdhY3Rpb25zCQAFFAAAAAIFAAAAA25pbAUAAAAEdW5pdAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAD3RhcmdldFB1YmxpY0tleQQAAAAHJG1hdGNoMAkBAAAAFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXmdOl/0", "chainId": 84, "height": 2114525, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 75CRMbjDscinSAFNsttv3r4uV3degzvv94eGx4DKRpp8 Next: 5HZq1Rw8TtX9fBZiMap5APUgo8qFzG2uEUGJ4RGL3WbX Diff:
Old | New | Differences | |
---|---|---|---|
542 | 542 | let poolWeightKey = keyPoolToWeight(poolContractAddress) | |
543 | 543 | let gwxWeight = valueOrElse(getInteger(keyPoolToWeight(GWXvirtualPOOL)), 0) | |
544 | 544 | let poolWeight = valueOrElse(getInteger(poolWeightKey), 0) | |
545 | - | let poolWeightNew = | |
545 | + | let poolWeightNew = share | |
546 | 546 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
547 | 547 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
548 | 548 | let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil) | |
549 | 549 | if ((onModifyWeightInv == onModifyWeightInv)) | |
550 | - | then [IntegerEntry(poolWeightKey, poolWeightNew)] | |
550 | + | then { | |
551 | + | let gwxVirtualPoolActions = if ((gwxWeight == 0)) | |
552 | + | then nil | |
553 | + | else [DeleteEntry(keyPoolToWeight(GWXvirtualPOOL))] | |
554 | + | ([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) | |
555 | + | } | |
551 | 556 | else throw("Strict value is not equal to itself.") | |
552 | 557 | } | |
553 | 558 | 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 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 | 543 | let gwxWeight = valueOrElse(getInteger(keyPoolToWeight(GWXvirtualPOOL)), 0) | |
544 | 544 | let poolWeight = valueOrElse(getInteger(poolWeightKey), 0) | |
545 | - | let poolWeightNew = | |
545 | + | let poolWeightNew = share | |
546 | 546 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
547 | 547 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
548 | 548 | let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil) | |
549 | 549 | if ((onModifyWeightInv == onModifyWeightInv)) | |
550 | - | then [IntegerEntry(poolWeightKey, poolWeightNew)] | |
550 | + | then { | |
551 | + | let gwxVirtualPoolActions = if ((gwxWeight == 0)) | |
552 | + | then nil | |
553 | + | else [DeleteEntry(keyPoolToWeight(GWXvirtualPOOL))] | |
554 | + | ([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) | |
555 | + | } | |
551 | 556 | else throw("Strict value is not equal to itself.") | |
552 | 557 | } | |
553 | 558 | else throw("Strict value is not equal to itself.") | |
554 | 559 | } | |
555 | 560 | ||
556 | 561 | ||
557 | 562 | ||
558 | 563 | @Callable(i) | |
559 | 564 | func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = { | |
560 | 565 | let checkCaller = mustManager(i) | |
561 | 566 | if ((checkCaller == checkCaller)) | |
562 | 567 | then { | |
563 | 568 | let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
564 | 569 | let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
565 | 570 | let weightDecrement = ((5 * POOLWEIGHTMULT) / 100) | |
566 | 571 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
567 | 572 | let stakingDapp = getStakingAddressOrFail(factoryCfg) | |
568 | 573 | let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg) | |
569 | 574 | let btcWeightKEY = keyPoolToWeight(btcPoolAddress) | |
570 | 575 | let ethWeightKEY = keyPoolToWeight(ethPoolAddress) | |
571 | 576 | let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress) | |
572 | 577 | let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress) | |
573 | 578 | let btcWeight = getIntOrFail(btcWeightKEY) | |
574 | 579 | let ethWeight = getIntOrFail(ethWeightKEY) | |
575 | 580 | let btcWeightNew = (btcWeight - weightDecrement) | |
576 | 581 | let ethWeightNew = (ethWeight - weightDecrement) | |
577 | 582 | if ((0 >= btcWeightNew)) | |
578 | 583 | then throw(("invalid btcWeightNew: " + toString(btcWeightNew))) | |
579 | 584 | else if ((0 >= ethWeightNew)) | |
580 | 585 | then throw(("invalid ethWeightNew: " + toString(ethWeightNew))) | |
581 | 586 | else { | |
582 | 587 | let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress)) | |
583 | 588 | let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress)) | |
584 | 589 | let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress)) | |
585 | 590 | let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress)) | |
586 | 591 | let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil) | |
587 | 592 | if ((onModifyWeightBtc == onModifyWeightBtc)) | |
588 | 593 | then { | |
589 | 594 | let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil) | |
590 | 595 | if ((onModifyWeightEth == onModifyWeightEth)) | |
591 | 596 | then { | |
592 | 597 | let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil) | |
593 | 598 | if ((onModifyWeightEthBtc == onModifyWeightEthBtc)) | |
594 | 599 | then { | |
595 | 600 | let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil) | |
596 | 601 | if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt)) | |
597 | 602 | 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)] | |
598 | 603 | else throw("Strict value is not equal to itself.") | |
599 | 604 | } | |
600 | 605 | else throw("Strict value is not equal to itself.") | |
601 | 606 | } | |
602 | 607 | else throw("Strict value is not equal to itself.") | |
603 | 608 | } | |
604 | 609 | else throw("Strict value is not equal to itself.") | |
605 | 610 | } | |
606 | 611 | } | |
607 | 612 | else throw("Strict value is not equal to itself.") | |
608 | 613 | } | |
609 | 614 | ||
610 | 615 | ||
611 | 616 | ||
612 | 617 | @Callable(i) | |
613 | 618 | func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
614 | 619 | let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) { | |
615 | 620 | case b: Boolean => | |
616 | 621 | b | |
617 | 622 | case _ => | |
618 | 623 | false | |
619 | 624 | } | |
620 | 625 | $Tuple2(nil, haveLabel) | |
621 | 626 | } | |
622 | 627 | ||
623 | 628 | ||
624 | 629 | ||
625 | 630 | @Callable(i) | |
626 | 631 | func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
627 | 632 | let checkCaller = mustAdmin(i) | |
628 | 633 | if ((checkCaller == checkCaller)) | |
629 | 634 | then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit) | |
630 | 635 | else throw("Strict value is not equal to itself.") | |
631 | 636 | } | |
632 | 637 | ||
633 | 638 | ||
634 | 639 | ||
635 | 640 | @Callable(i) | |
636 | 641 | func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
637 | 642 | let checkCaller = if (mustThis(i)) | |
638 | 643 | then true | |
639 | 644 | else mustAdmin(i) | |
640 | 645 | if ((checkCaller == checkCaller)) | |
641 | 646 | then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit) | |
642 | 647 | else throw("Strict value is not equal to itself.") | |
643 | 648 | } | |
644 | 649 | ||
645 | 650 | ||
646 | 651 | ||
647 | 652 | @Callable(i) | |
648 | 653 | func onVerificationLoss (assetId) = { | |
649 | 654 | let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), ""))) | |
650 | 655 | then true | |
651 | 656 | else mustManager(i) | |
652 | 657 | if ((checkCaller == checkCaller)) | |
653 | 658 | then { | |
654 | 659 | let priceAssets = getPriceAssets() | |
655 | 660 | let checkPriceAssetsSize = if ((size(priceAssets) > 0)) | |
656 | 661 | then true | |
657 | 662 | else throw("invalid price assets") | |
658 | 663 | if ((checkPriceAssetsSize == checkPriceAssetsSize)) | |
659 | 664 | then { | |
660 | 665 | func cb (acc,priceAsset) = { | |
661 | 666 | let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil) | |
662 | 667 | if ((r == r)) | |
663 | 668 | then unit | |
664 | 669 | else throw("Strict value is not equal to itself.") | |
665 | 670 | } | |
666 | 671 | ||
667 | 672 | let actions = { | |
668 | 673 | let $l = priceAssets | |
669 | 674 | let $s = size($l) | |
670 | 675 | let $acc0 = unit | |
671 | 676 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
672 | 677 | then $a | |
673 | 678 | else cb($a, $l[$i]) | |
674 | 679 | ||
675 | 680 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
676 | 681 | then $a | |
677 | 682 | else throw("List size exceeds 1") | |
678 | 683 | ||
679 | 684 | $f0_2($f0_1($acc0, 0), 1) | |
680 | 685 | } | |
681 | 686 | if ((actions == actions)) | |
682 | 687 | then $Tuple2(nil, unit) | |
683 | 688 | else throw("Strict value is not equal to itself.") | |
684 | 689 | } | |
685 | 690 | else throw("Strict value is not equal to itself.") | |
686 | 691 | } | |
687 | 692 | else throw("Strict value is not equal to itself.") | |
688 | 693 | } | |
689 | 694 | ||
690 | 695 | ||
691 | 696 | @Verifier(tx) | |
692 | 697 | func verify () = { | |
693 | 698 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
694 | 699 | case pk: ByteVector => | |
695 | 700 | pk | |
696 | 701 | case _: Unit => | |
697 | 702 | tx.senderPublicKey | |
698 | 703 | case _ => | |
699 | 704 | throw("Match error") | |
700 | 705 | } | |
701 | 706 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
702 | 707 | } | |
703 | 708 |
github/deemru/w8io/169f3d6 75.08 ms ◑