tx · 3QubTwyB1NSoeqBGvQkcPkcbpT6ejUeQx5e2VjLfBnVa 3MqAT6VCwdsABD18Abytrmi7EmaLGSVzNKY: -0.02900000 Waves 2023.03.01 12:15 [2470811] smart account 3MqAT6VCwdsABD18Abytrmi7EmaLGSVzNKY > SELF 0.00000000 Waves
{ "type": 13, "id": "3QubTwyB1NSoeqBGvQkcPkcbpT6ejUeQx5e2VjLfBnVa", "fee": 2900000, "feeAssetId": null, "timestamp": 1677662165158, "version": 1, "sender": "3MqAT6VCwdsABD18Abytrmi7EmaLGSVzNKY", "senderPublicKey": "HfB4CZkBhLMntiSTYMMwjyaM3hzcfaPjay5VZ9Pe71BA", "proofs": [ "356CJA72MjUjio4koUmEQ6P9viv9FeLRd8XR3N7oBgMgyNzbQMCSSSZPCJzcDeFEqMgSaWpddUGVmJkPqRRgngmQ" ], "script": "base64:BgKNAQgCEgoKCAgICAgICAgBEgMKAQgSBgoECAgICBIECgIIGBIDCgEIEgQKAggYEgMKAQgSABIDCgEYEgoKCAgICAgIAQgIEgQKAggBEgMKAQESAwoBARIECgIIARIGCgQICAgIEgQKAggIEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCGQABlNDQUxFOAAIAAVNVUxUOACAwtcvAAdTQ0FMRTE4ABIABk1VTFQxOAkAtgIBAICAkLu61q3wDQAOUE9PTFdFSUdIVE1VTFQFBU1VTFQ4AA5HV1h2aXJ0dWFsUE9PTAIOR1dYdmlydHVhbFBPT0wADGxhYmVsUG9vbHNMcAIIUE9PTFNfTFAADWRlZmF1bHRTcHJlYWQAgIl6ABFkZWNpbWFsc011bHRQcmljZQkAaAIJAGgCAGQA6AcA6AcAA1NFUAICX18ABUVNUFRZAgAAClBvb2xBY3RpdmUAAQAPUG9vbFB1dERpc2FibGVkAAIAE1Bvb2xNYXRjaGVyRGlzYWJsZWQAAwAMUG9vbFNodXRkb3duAAQAEmlkeEludGVybmFsQXNzZXRJZAABAA9pZHhSZXN1dEFjdG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BQtwb29sQWRkcmVzcwUDU0VQBBNhbW91bnRBc3NldEludGVybmFsCQCRAwIFCnBvb2xBc3NldHMAAQQScHJpY2VBc3NldEludGVybmFsCQCRAwIFCnBvb2xBc3NldHMAAgQDY2ZnCQC1CQIJAQ9nZXRTdHJpbmdPckZhaWwBCQENa2V5UG9vbENvbmZpZwIFE2Ftb3VudEFzc2V0SW50ZXJuYWwFEnByaWNlQXNzZXRJbnRlcm5hbAUDU0VQCQCUCgIFA25pbAkBDXBhcnNlSW50VmFsdWUBCQCRAwIFA2NmZwUNaWR4UG9vbFN0YXR1cwECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleQudyio=", "chainId": 84, "height": 2470811, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5PtT2BVedCZ3YAtr6iZ8NgL1SqF3y8AQsQhNe7UAAQaa Next: DidHUwXYsBu32tbJvWKGxfPm1omoFRNa5RKBhZE1cQQk Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
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 $t037273789 = assetsInternal | |
137 | 137 | let amountAssetInternal = $t037273789._1 | |
138 | 138 | let priceAssetInternal = $t037273789._2 | |
139 | 139 | makeString(["%d%d%s", toString(amountAssetInternal), toString(priceAssetInternal), "oneTokenOperationsDisabled"], SEP) | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func keyAllPoolsOneTokenOperationsDisabled () = makeString(["%s", "oneTokenOperationsDisabled"], SEP) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool") | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset") | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func keyPoolSpread (poolAddress) = ("%s%s__spread__" + poolAddress) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets") | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract") | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract") | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func keyWxEmission (amountAssetId,priceAssetId) = ((("%s%s%s__wxEmission__" + amountAssetId) + "__") + priceAssetId) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func keyInFee (poolAddress) = ("%s%s__inFee__" + poolAddress) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func keyInFeeDefault () = "%s__inFeeDefault" | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func keyOutFee (poolAddress) = ("%s%s__outFee__" + poolAddress) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func keyOutFeeDefault () = "%s__outFeeDefault" | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key)) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key)) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key)) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | let IdxFactoryCfgStakingDapp = 1 | |
192 | 192 | ||
193 | 193 | let IdxFactoryCfgBoostingDapp = 2 | |
194 | 194 | ||
195 | 195 | let IdxFactoryCfgIdoDapp = 3 | |
196 | 196 | ||
197 | 197 | let IdxFactoryCfgTeamDapp = 4 | |
198 | 198 | ||
199 | 199 | let IdxFactoryCfgEmissionDapp = 5 | |
200 | 200 | ||
201 | 201 | let IdxFactoryCfgRestDapp = 6 | |
202 | 202 | ||
203 | 203 | let IdxFactoryCfgSlippageDapp = 7 | |
204 | 204 | ||
205 | 205 | let IdxFactoryCfgDaoDapp = 8 | |
206 | 206 | ||
207 | 207 | let IdxFactoryCfgMarketingDapp = 9 | |
208 | 208 | ||
209 | 209 | let IdxFactoryCfgGwxRewardDapp = 10 | |
210 | 210 | ||
211 | 211 | let IdxFactoryCfgBirdsDapp = 11 | |
212 | 212 | ||
213 | 213 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp]) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func getPriceAssets () = match getString(keyPriceAssets()) { | |
226 | 226 | case s: String => | |
227 | 227 | if ((size(s) == 0)) | |
228 | 228 | then nil | |
229 | 229 | else split(s, SEP) | |
230 | 230 | case _ => | |
231 | 231 | nil | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
236 | 236 | case s: String => | |
237 | 237 | fromBase58String(s) | |
238 | 238 | case _: Unit => | |
239 | 239 | unit | |
240 | 240 | case _ => | |
241 | 241 | throw("Match error") | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
246 | 246 | case s: String => | |
247 | 247 | fromBase58String(s) | |
248 | 248 | case _: Unit => | |
249 | 249 | unit | |
250 | 250 | case _ => | |
251 | 251 | throw("Match error") | |
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | let permissionDeniedError = throw("Permission denied") | |
256 | 256 | ||
257 | 257 | func mustThis (i) = if ((i.caller == this)) | |
258 | 258 | then true | |
259 | 259 | else permissionDeniedError | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func mustManager (i) = match managerPublicKeyOrUnit() { | |
263 | 263 | case pk: ByteVector => | |
264 | 264 | if ((i.callerPublicKey == pk)) | |
265 | 265 | then true | |
266 | 266 | else permissionDeniedError | |
267 | 267 | case _: Unit => | |
268 | 268 | mustThis(i) | |
269 | 269 | case _ => | |
270 | 270 | throw("Match error") | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func dataFactoryCfgV3 (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract,daoContract,marketingContract,gwxRewardsContract,birdsContract) = makeString(["%s%s%s%s%s%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract, daoContract, marketingContract, gwxRewardsContract, birdsContract], SEP) | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract,slippageContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract, slippageContract], SEP) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func dataPoolCfg (poolAddress,poolStatus,lpAssetId,amountAssetStr,priceAssetStr,amountAssetDecimals,priceAssetDecimals,amountAssetInternalId,priceAssetInternalId,lpAssetDecimals,poolType) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", poolAddress, poolStatus, lpAssetId, amountAssetStr, priceAssetStr, toString(amountAssetDecimals), toString(priceAssetDecimals), toString(amountAssetInternalId), toString(priceAssetInternalId), toString(lpAssetDecimals), poolType], SEP) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func getPoolConfig (poolAddress) = { | |
287 | 287 | let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP) | |
288 | 288 | let amountAssetInternal = poolAssets[1] | |
289 | 289 | let priceAssetInternal = poolAssets[2] | |
290 | 290 | split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP) | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func getInternalAssetIdOrCreate (assetIdStr,incrementor) = { | |
295 | 295 | let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0) | |
296 | 296 | let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0) | |
297 | 297 | let result = if ((internalAssetId == 0)) | |
298 | 298 | then { | |
299 | 299 | let newInternalAssetId = (currentIndexOfInternalId + incrementor) | |
300 | 300 | $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true) | |
301 | 301 | } | |
302 | 302 | else $Tuple3(internalAssetId, nil, false) | |
303 | 303 | result | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func mustAdmin (i) = { | |
308 | 308 | let adminPKs = split(valueOrElse(getString(keyAdminPubKeys()), EMPTY), SEP) | |
309 | 309 | if (containsElement(adminPKs, toBase58String(i.callerPublicKey))) | |
310 | 310 | then true | |
311 | 311 | else { | |
312 | 312 | let isManager = mustManager(i) | |
313 | 313 | if ((isManager == isManager)) | |
314 | 314 | then true | |
315 | 315 | else throw("Strict value is not equal to itself.") | |
316 | 316 | } | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func intOrDefaultOrFallback (key,keyDefault,valueFallback) = valueOrElse(getInteger(this, key), valueOrElse(getInteger(this, keyDefault), valueFallback)) | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | @Callable(i) | |
324 | 324 | func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,slpipageContract,priceDecimals) = { | |
325 | 325 | let checkCaller = mustManager(i) | |
326 | 326 | if ((checkCaller == checkCaller)) | |
327 | 327 | then [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract, slpipageContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)] | |
328 | 328 | else throw("Strict value is not equal to itself.") | |
329 | 329 | } | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | ||
333 | 333 | @Callable(i) | |
334 | 334 | func constructorV2 (mathcherPub58Str) = { | |
335 | 335 | let checkCaller = mustManager(i) | |
336 | 336 | if ((checkCaller == checkCaller)) | |
337 | 337 | then { | |
338 | 338 | let mathcerPub = addressFromPublicKey(fromBase58String(mathcherPub58Str)) | |
339 | 339 | if ((mathcerPub == mathcerPub)) | |
340 | 340 | then [StringEntry(keyMatcherPub(), mathcherPub58Str)] | |
341 | 341 | else throw("Strict value is not equal to itself.") | |
342 | 342 | } | |
343 | 343 | else throw("Strict value is not equal to itself.") | |
344 | 344 | } | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | ||
348 | 348 | @Callable(i) | |
349 | 349 | func constructorV3 (daoContract,marketingContract,gwxRewardsContract,birdsContract) = { | |
350 | 350 | let checkCaller = mustManager(i) | |
351 | 351 | if ((checkCaller == checkCaller)) | |
352 | 352 | then { | |
353 | 353 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
354 | 354 | [StringEntry(keyFactoryConfig(), dataFactoryCfgV3(factoryCfg[1], factoryCfg[2], factoryCfg[3], factoryCfg[4], factoryCfg[5], factoryCfg[6], factoryCfg[7], daoContract, marketingContract, gwxRewardsContract, birdsContract))] | |
355 | 355 | } | |
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 constructorV4 (legacyFactoryContract,legacyPools) = { | |
363 | 363 | let checkCaller = mustManager(i) | |
364 | 364 | if ((checkCaller == checkCaller)) | |
365 | 365 | then [StringEntry(keyLegacyFactoryContract(), legacyFactoryContract), StringEntry(keyLegacyPools(), makeString(legacyPools, SEP))] | |
366 | 366 | else throw("Strict value is not equal to itself.") | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | ||
371 | 371 | @Callable(i) | |
372 | 372 | func constructorV5 (assetsStoreContract) = { | |
373 | 373 | let checkCaller = mustManager(i) | |
374 | 374 | if ((checkCaller == checkCaller)) | |
375 | 375 | then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)] | |
376 | 376 | else throw("Strict value is not equal to itself.") | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | ||
381 | 381 | @Callable(i) | |
382 | 382 | func constructorV6 (votingEmissionContract,priceAssets) = { | |
383 | 383 | let cheks = [mustManager(i), if ((addressFromString(votingEmissionContract) != unit)) | |
384 | 384 | then true | |
385 | 385 | else "invalid voting emission contract address"] | |
386 | 386 | if ((cheks == cheks)) | |
387 | 387 | then [StringEntry(keyVotingEmissionContract(), votingEmissionContract), StringEntry(keyPriceAssets(), makeString(priceAssets, SEP))] | |
388 | 388 | else throw("Strict value is not equal to itself.") | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | 393 | @Callable(i) | |
394 | 394 | func setManager (pendingManagerPublicKey) = { | |
395 | 395 | let checkCaller = mustManager(i) | |
396 | 396 | if ((checkCaller == checkCaller)) | |
397 | 397 | then { | |
398 | 398 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
399 | 399 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
400 | 400 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
401 | 401 | else throw("Strict value is not equal to itself.") | |
402 | 402 | } | |
403 | 403 | else throw("Strict value is not equal to itself.") | |
404 | 404 | } | |
405 | 405 | ||
406 | 406 | ||
407 | 407 | ||
408 | 408 | @Callable(i) | |
409 | 409 | func confirmManager () = { | |
410 | 410 | let pm = pendingManagerPublicKeyOrUnit() | |
411 | 411 | let hasPM = if (isDefined(pm)) | |
412 | 412 | then true | |
413 | 413 | else throw("No pending manager") | |
414 | 414 | if ((hasPM == hasPM)) | |
415 | 415 | then { | |
416 | 416 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
417 | 417 | then true | |
418 | 418 | else throw("You are not pending manager") | |
419 | 419 | if ((checkPM == checkPM)) | |
420 | 420 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
421 | 421 | else throw("Strict value is not equal to itself.") | |
422 | 422 | } | |
423 | 423 | else throw("Strict value is not equal to itself.") | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | ||
428 | 428 | @Callable(i) | |
429 | 429 | func setAdmins (adminPubKeys) = { | |
430 | 430 | let checkCaller = mustManager(i) | |
431 | 431 | if ((checkCaller == checkCaller)) | |
432 | 432 | then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))] | |
433 | 433 | else throw("Strict value is not equal to itself.") | |
434 | 434 | } | |
435 | 435 | ||
436 | 436 | ||
437 | 437 | ||
438 | 438 | @Callable(i) | |
439 | 439 | func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,poolType,logo) = { | |
440 | 440 | let checkCaller = mustAdmin(i) | |
441 | 441 | if ((checkCaller == checkCaller)) | |
442 | 442 | then if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress)))) | |
443 | 443 | then throw((("Pool address " + poolAddress) + " already registered.")) | |
444 | 444 | else { | |
445 | 445 | let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1) | |
446 | 446 | let internalAmountAssetId = internalAmountAssetData._1 | |
447 | 447 | let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3) | |
448 | 448 | then 2 | |
449 | 449 | else 1) | |
450 | 450 | let internalPriceAssetId = internalPriceAssetData._1 | |
451 | 451 | let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress)) | |
452 | 452 | let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash()) | |
453 | 453 | let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))) | |
454 | 454 | if (isDefined(poolConfig)) | |
455 | 455 | then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated.")) | |
456 | 456 | else { | |
457 | 457 | let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))) | |
458 | 458 | let amountAssetsDecimals = if ((amountAssetStr == "WAVES")) | |
459 | 459 | then decimalsMultPrice | |
460 | 460 | else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN) | |
461 | 461 | let priceAssetsDecimals = if ((priceAssetStr == "WAVES")) | |
462 | 462 | then decimalsMultPrice | |
463 | 463 | else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN) | |
464 | 464 | let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true) | |
465 | 465 | let lpAssetId = calculateAssetId(lpAssetIssueAction) | |
466 | 466 | let lpAssetIdStr = toBase58String(lpAssetId) | |
467 | 467 | let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil) | |
468 | 468 | if ((poolActivateInvokeResult == poolActivateInvokeResult)) | |
469 | 469 | then if ((poolActivateInvokeResult != "success")) | |
470 | 470 | then throw("Pool initialisation error happened.") | |
471 | 471 | else { | |
472 | 472 | let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract())) | |
473 | 473 | let createOrUpdateLpAssetInv = invoke(assetsStoreContract, "createOrUpdate", [lpAssetIdStr, lpAssetName, false], nil) | |
474 | 474 | if ((createOrUpdateLpAssetInv == createOrUpdateLpAssetInv)) | |
475 | 475 | then { | |
476 | 476 | let addPoolsLpLabelInv = invoke(assetsStoreContract, "addLabel", [lpAssetIdStr, labelPoolsLp], nil) | |
477 | 477 | if ((addPoolsLpLabelInv == addPoolsLpLabelInv)) | |
478 | 478 | then { | |
479 | 479 | let setLogoInv = invoke(assetsStoreContract, "setLogo", [lpAssetIdStr, logo], nil) | |
480 | 480 | if ((setLogoInv == setLogoInv)) | |
481 | 481 | then { | |
482 | 482 | let addAssetsLinkInv = invoke(assetsStoreContract, "addAssetsLink", [amountAssetStr, priceAssetStr, lpAssetIdStr], nil) | |
483 | 483 | if ((addAssetsLinkInv == addAssetsLinkInv)) | |
484 | 484 | then { | |
485 | 485 | let increaseAssetPoolsNumberInv = invoke(assetsStoreContract, "increaseAssetPoolsNumber", [amountAssetStr], nil) | |
486 | 486 | if ((increaseAssetPoolsNumberInv == increaseAssetPoolsNumberInv)) | |
487 | 487 | then $Tuple2(((internalAmountAssetData._2 ++ internalPriceAssetData._2) ++ [lpAssetIssueAction, Burn(lpAssetId, 1), StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(PoolActive), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, decimalsMultPrice, poolType)), StringEntry(keyMappingLpAssetToPoolAssets(lpAssetIdStr), dataMappingPoolAssets(internalAmountAssetId, internalPriceAssetId)), StringEntry(keyMappingPoolAssetsToLpasset(toString(internalAmountAssetId), toString(internalPriceAssetId)), ("%s__" + lpAssetIdStr)), StringEntry(keyMappingPoolContractAddressToPoolAssets(poolAddress), dataMappingPoolAssets(internalAmountAssetId, internalPriceAssetId)), StringEntry(keyMappingPoolAssetsToPoolContractAddress(internalAmountAssetId, internalPriceAssetId), poolAddress), StringEntry(keyMappingPoolLPAssetToPoolContractAddress(lpAssetIdStr), poolAddress), StringEntry(keyMappingPoolContractToLPAsset(poolAddress), lpAssetIdStr), IntegerEntry(keyPoolToWeight(poolAddress), poolWeight), IntegerEntry(keyPoolSpread(poolAddress), defaultSpread)]), lpAssetIdStr) | |
488 | 488 | else throw("Strict value is not equal to itself.") | |
489 | 489 | } | |
490 | 490 | else throw("Strict value is not equal to itself.") | |
491 | 491 | } | |
492 | 492 | else throw("Strict value is not equal to itself.") | |
493 | 493 | } | |
494 | 494 | else throw("Strict value is not equal to itself.") | |
495 | 495 | } | |
496 | 496 | else throw("Strict value is not equal to itself.") | |
497 | 497 | } | |
498 | 498 | else throw("Strict value is not equal to itself.") | |
499 | 499 | } | |
500 | 500 | } | |
501 | 501 | else throw("Strict value is not equal to itself.") | |
502 | 502 | } | |
503 | 503 | ||
504 | 504 | ||
505 | 505 | ||
506 | 506 | @Callable(i) | |
507 | 507 | func managePool (poolAddress,newStatus) = { | |
508 | 508 | let checkCaller = mustManager(i) | |
509 | 509 | if ((checkCaller == checkCaller)) | |
510 | 510 | then { | |
511 | 511 | let poolConfig = getPoolConfig(poolAddress) | |
512 | 512 | let poolStatus = poolConfig[idxPoolStatus] | |
513 | 513 | let lpAssetIdStr = poolConfig[idxPoolLPAssetId] | |
514 | 514 | let amountAssetStr = poolConfig[idxAmtAssetId] | |
515 | 515 | let priceAssetStr = poolConfig[idxPriceAssetId] | |
516 | 516 | let amountAssetsDecimals = parseIntValue(poolConfig[idxAmtAssetDcm]) | |
517 | 517 | let priceAssetsDecimals = parseIntValue(poolConfig[idxPriceAssetDcm]) | |
518 | 518 | let internalAmountAssetId = parseIntValue(poolConfig[idxIAmtAssetId]) | |
519 | 519 | let internalPriceAssetId = parseIntValue(poolConfig[idxIPriceAssetId]) | |
520 | 520 | let lpAssetDcm = parseIntValue(poolConfig[idxLPAssetDcm]) | |
521 | 521 | let poolType = poolConfig[idxPoolType] | |
522 | 522 | [StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(newStatus), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, lpAssetDcm, poolType))] | |
523 | 523 | } | |
524 | 524 | else throw("Strict value is not equal to itself.") | |
525 | 525 | } | |
526 | 526 | ||
527 | 527 | ||
528 | 528 | ||
529 | 529 | @Callable(i) | |
530 | 530 | func emit (amountToEmit) = { | |
531 | 531 | let caller = i.caller | |
532 | 532 | let originCaller = i.originCaller | |
533 | 533 | let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.") | |
534 | 534 | let lpAsset = fromBase58String(lpAssetRequested) | |
535 | 535 | let legacyPools = split(valueOrElse(getString(keyLegacyPools()), EMPTY), SEP) | |
536 | 536 | let legacyFactoryContract = addressFromStringValue(valueOrErrorMessage(getString(keyLegacyFactoryContract()), "Legacy factory contract does not exists.")) | |
537 | 537 | if ((0 >= amountToEmit)) | |
538 | 538 | then nil | |
539 | 539 | else if (containsElement(legacyPools, toString(caller))) | |
540 | 540 | then $Tuple2(nil, legacyFactoryContract) | |
541 | 541 | else $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success") | |
542 | 542 | } | |
543 | 543 | ||
544 | 544 | ||
545 | 545 | ||
546 | 546 | @Callable(i) | |
547 | 547 | func burn (amountToBurn) = { | |
548 | 548 | let caller = i.caller | |
549 | 549 | let originCaller = i.originCaller | |
550 | 550 | let payment = value(i.payments[0]) | |
551 | 551 | let paymentAmount = value(payment.amount) | |
552 | 552 | let inAmountAssetId = toBase58String(value(payment.assetId)) | |
553 | 553 | let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContractToLPAsset(toString(caller))), "Invalid LP address called me.") | |
554 | 554 | if ((inAmountAssetId != lpAssetRequestedForBurning)) | |
555 | 555 | then throw("Invalid asset passed.") | |
556 | 556 | else if ((amountToBurn != paymentAmount)) | |
557 | 557 | then throw("Invalid amount passed.") | |
558 | 558 | else { | |
559 | 559 | let lpAsset = fromBase58String(lpAssetRequestedForBurning) | |
560 | 560 | $Tuple2([Burn(lpAsset, amountToBurn)], "success") | |
561 | 561 | } | |
562 | 562 | } | |
563 | 563 | ||
564 | 564 | ||
565 | 565 | ||
566 | 566 | @Callable(i) | |
567 | 567 | func modifyWeight (lpAssetId,share) = { | |
568 | 568 | let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionContract()), ""))) | |
569 | 569 | then true | |
570 | 570 | else mustManager(i) | |
571 | 571 | if ((checkCaller == checkCaller)) | |
572 | 572 | then { | |
573 | 573 | let poolContractAddress = getStringOrFail(keyMappingPoolLPAssetToPoolContractAddress(lpAssetId)) | |
574 | 574 | let poolWeightKey = keyPoolToWeight(poolContractAddress) | |
575 | 575 | let gwxWeightKey = keyPoolToWeight(GWXvirtualPOOL) | |
576 | 576 | let gwxWeight = valueOrElse(getInteger(gwxWeightKey), 0) | |
577 | 577 | let poolWeight = valueOrElse(getInteger(poolWeightKey), 0) | |
578 | 578 | let poolWeightNew = share | |
579 | 579 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
580 | 580 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
581 | 581 | let onModifyWeightInv = invoke(stakingContract, "onModifyWeight", [lpAssetId, poolContractAddress], nil) | |
582 | 582 | if ((onModifyWeightInv == onModifyWeightInv)) | |
583 | 583 | then { | |
584 | 584 | let gwxVirtualPoolActions = if ((gwxWeight == 0)) | |
585 | 585 | then nil | |
586 | 586 | else [IntegerEntry(gwxWeightKey, 0)] | |
587 | 587 | let poolWeightHistoryKey = keyPoolToWeightHistory(poolContractAddress, 0) | |
588 | 588 | let poolWeightHistoryOrUnit = getInteger(poolWeightHistoryKey) | |
589 | 589 | let poolWeightHistoryActions = if ((poolWeightHistoryOrUnit == unit)) | |
590 | 590 | then nil | |
591 | 591 | else [DeleteEntry(poolWeightHistoryKey)] | |
592 | 592 | (([IntegerEntry(poolWeightKey, poolWeightNew)] ++ gwxVirtualPoolActions) ++ poolWeightHistoryActions) | |
593 | 593 | } | |
594 | 594 | else throw("Strict value is not equal to itself.") | |
595 | 595 | } | |
596 | 596 | else throw("Strict value is not equal to itself.") | |
597 | 597 | } | |
598 | 598 | ||
599 | 599 | ||
600 | 600 | ||
601 | 601 | @Callable(i) | |
602 | 602 | func modifyWeights (btcPoolAddress,ethPoolAddress,ethBtcPoolAddress,usdcUsdtPoolAddress) = { | |
603 | 603 | let checkCaller = mustManager(i) | |
604 | 604 | if ((checkCaller == checkCaller)) | |
605 | 605 | then { | |
606 | 606 | let ethBtcWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
607 | 607 | let usdcUsdtWeightNew = ((5 * POOLWEIGHTMULT) / 100) | |
608 | 608 | let weightDecrement = ((5 * POOLWEIGHTMULT) / 100) | |
609 | 609 | let factoryCfg = split(getStringOrFail(keyFactoryConfig()), SEP) | |
610 | 610 | let stakingDapp = getStakingAddressOrFail(factoryCfg) | |
611 | 611 | let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg) | |
612 | 612 | let btcWeightKEY = keyPoolToWeight(btcPoolAddress) | |
613 | 613 | let ethWeightKEY = keyPoolToWeight(ethPoolAddress) | |
614 | 614 | let ethBtcWeightKEY = keyPoolToWeight(ethBtcPoolAddress) | |
615 | 615 | let usdcUsdtWeightKEY = keyPoolToWeight(usdcUsdtPoolAddress) | |
616 | 616 | let btcWeight = getIntOrFail(btcWeightKEY) | |
617 | 617 | let ethWeight = getIntOrFail(ethWeightKEY) | |
618 | 618 | let btcWeightNew = (btcWeight - weightDecrement) | |
619 | 619 | let ethWeightNew = (ethWeight - weightDecrement) | |
620 | 620 | if ((0 >= btcWeightNew)) | |
621 | 621 | then throw(("invalid btcWeightNew: " + toString(btcWeightNew))) | |
622 | 622 | else if ((0 >= ethWeightNew)) | |
623 | 623 | then throw(("invalid ethWeightNew: " + toString(ethWeightNew))) | |
624 | 624 | else { | |
625 | 625 | let btcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(btcPoolAddress)) | |
626 | 626 | let ethLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethPoolAddress)) | |
627 | 627 | let ethBtcLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(ethBtcPoolAddress)) | |
628 | 628 | let usdcUsdtLpAssetIdStr = getStringOrFail(keyMappingPoolContractToLPAsset(usdcUsdtPoolAddress)) | |
629 | 629 | let onModifyWeightBtc = invoke(stakingDapp, "onModifyWeight", [btcLpAssetIdStr, btcPoolAddress], nil) | |
630 | 630 | if ((onModifyWeightBtc == onModifyWeightBtc)) | |
631 | 631 | then { | |
632 | 632 | let onModifyWeightEth = invoke(stakingDapp, "onModifyWeight", [ethLpAssetIdStr, ethPoolAddress], nil) | |
633 | 633 | if ((onModifyWeightEth == onModifyWeightEth)) | |
634 | 634 | then { | |
635 | 635 | let onModifyWeightEthBtc = invoke(stakingDapp, "onModifyWeight", [ethBtcLpAssetIdStr, ethBtcPoolAddress], nil) | |
636 | 636 | if ((onModifyWeightEthBtc == onModifyWeightEthBtc)) | |
637 | 637 | then { | |
638 | 638 | let onModifyWeightUsdcUsdt = invoke(stakingDapp, "onModifyWeight", [usdcUsdtLpAssetIdStr, usdcUsdtPoolAddress], nil) | |
639 | 639 | if ((onModifyWeightUsdcUsdt == onModifyWeightUsdcUsdt)) | |
640 | 640 | then [IntegerEntry(btcWeightKEY, btcWeightNew), IntegerEntry(ethWeightKEY, ethWeightNew), IntegerEntry(ethBtcWeightKEY, ethBtcWeightNew), IntegerEntry(usdcUsdtWeightKEY, usdcUsdtWeightNew), IntegerEntry(keyPoolToWeightHistory(btcPoolAddress, 0), btcWeight), IntegerEntry(keyPoolToWeightHistory(ethPoolAddress, 0), ethWeight), IntegerEntry(keyPoolToWeightHistory(ethBtcPoolAddress, 0), ethBtcWeightNew), IntegerEntry(keyPoolToWeightHistory(usdcUsdtPoolAddress, 0), usdcUsdtWeightNew)] | |
641 | 641 | else throw("Strict value is not equal to itself.") | |
642 | 642 | } | |
643 | 643 | else throw("Strict value is not equal to itself.") | |
644 | 644 | } | |
645 | 645 | else throw("Strict value is not equal to itself.") | |
646 | 646 | } | |
647 | 647 | else throw("Strict value is not equal to itself.") | |
648 | 648 | } | |
649 | 649 | } | |
650 | 650 | else throw("Strict value is not equal to itself.") | |
651 | 651 | } | |
652 | 652 | ||
653 | 653 | ||
654 | 654 | ||
655 | 655 | @Callable(i) | |
656 | 656 | func checkWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
657 | 657 | let haveLabel = match getBoolean(keyWxEmission(amountAssetId, priceAssetId)) { | |
658 | 658 | case b: Boolean => | |
659 | 659 | b | |
660 | 660 | case _ => | |
661 | 661 | false | |
662 | 662 | } | |
663 | 663 | $Tuple2(nil, haveLabel) | |
664 | 664 | } | |
665 | 665 | ||
666 | 666 | ||
667 | 667 | ||
668 | 668 | @Callable(i) | |
669 | 669 | func setWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
670 | 670 | let checkCaller = mustAdmin(i) | |
671 | 671 | if ((checkCaller == checkCaller)) | |
672 | 672 | then $Tuple2([BooleanEntry(keyWxEmission(amountAssetId, priceAssetId), true)], unit) | |
673 | 673 | else throw("Strict value is not equal to itself.") | |
674 | 674 | } | |
675 | 675 | ||
676 | 676 | ||
677 | 677 | ||
678 | 678 | @Callable(i) | |
679 | 679 | func deleteWxEmissionPoolLabel (amountAssetId,priceAssetId) = { | |
680 | 680 | let checkCaller = if (mustThis(i)) | |
681 | 681 | then true | |
682 | 682 | else mustAdmin(i) | |
683 | 683 | if ((checkCaller == checkCaller)) | |
684 | 684 | then $Tuple2([DeleteEntry(keyWxEmission(amountAssetId, priceAssetId))], unit) | |
685 | 685 | else throw("Strict value is not equal to itself.") | |
686 | 686 | } | |
687 | 687 | ||
688 | 688 | ||
689 | 689 | ||
690 | 690 | @Callable(i) | |
691 | 691 | func onVerificationLoss (assetId) = { | |
692 | 692 | let checkCaller = if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyAssetsStoreContract()), ""))) | |
693 | 693 | then true | |
694 | 694 | else mustManager(i) | |
695 | 695 | if ((checkCaller == checkCaller)) | |
696 | 696 | then { | |
697 | 697 | let priceAssets = getPriceAssets() | |
698 | 698 | let checkPriceAssetsSize = if ((size(priceAssets) > 0)) | |
699 | 699 | then true | |
700 | 700 | else throw("invalid price assets") | |
701 | 701 | if ((checkPriceAssetsSize == checkPriceAssetsSize)) | |
702 | 702 | then { | |
703 | 703 | func cb (acc,priceAsset) = { | |
704 | 704 | let r = invoke(this, "deleteWxEmissionPoolLabel", [assetId, priceAsset], nil) | |
705 | 705 | if ((r == r)) | |
706 | 706 | then unit | |
707 | 707 | else throw("Strict value is not equal to itself.") | |
708 | 708 | } | |
709 | 709 | ||
710 | 710 | let actions = { | |
711 | 711 | let $l = priceAssets | |
712 | 712 | let $s = size($l) | |
713 | 713 | let $acc0 = unit | |
714 | 714 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
715 | 715 | then $a | |
716 | 716 | else cb($a, $l[$i]) | |
717 | 717 | ||
718 | 718 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
719 | 719 | then $a | |
720 | 720 | else throw("List size exceeds 1") | |
721 | 721 | ||
722 | 722 | $f0_2($f0_1($acc0, 0), 1) | |
723 | 723 | } | |
724 | 724 | if ((actions == actions)) | |
725 | 725 | then $Tuple2(nil, unit) | |
726 | 726 | else throw("Strict value is not equal to itself.") | |
727 | 727 | } | |
728 | 728 | else throw("Strict value is not equal to itself.") | |
729 | 729 | } | |
730 | 730 | else throw("Strict value is not equal to itself.") | |
731 | 731 | } | |
732 | 732 | ||
733 | 733 | ||
734 | 734 | ||
735 | 735 | @Callable(i) | |
736 | 736 | func isPoolOneTokenOperationsDisabledREADONLY (poolAddress) = { | |
737 | 737 | let poolConfig = getPoolConfig(poolAddress) | |
738 | 738 | let assetsInternal = $Tuple2(parseIntValue(poolConfig[idxIAmtAssetId]), parseIntValue(poolConfig[idxIPriceAssetId])) | |
739 | 739 | let poolOneTokenOperationsDisabled = valueOrElse(getBoolean(keyPoolOneTokenOperationsDisabled(assetsInternal)), false) | |
740 | 740 | let allPoolsOneTokenOperationsDisabled = valueOrElse(getBoolean(keyAllPoolsOneTokenOperationsDisabled()), false) | |
741 | 741 | $Tuple2(nil, if (allPoolsOneTokenOperationsDisabled) | |
742 | 742 | then true | |
743 | 743 | else poolOneTokenOperationsDisabled) | |
744 | 744 | } | |
745 | 745 | ||
746 | 746 | ||
747 | 747 | ||
748 | 748 | @Callable(i) | |
749 | 749 | func getInFeeREADONLY (poolAddress) = { | |
750 | 750 | let fee = intOrDefaultOrFallback(keyInFee(poolAddress), keyInFeeDefault(), 0) | |
751 | 751 | $Tuple2(nil, fee) | |
752 | 752 | } | |
753 | 753 | ||
754 | 754 | ||
755 | 755 | ||
756 | 756 | @Callable(i) | |
757 | 757 | func getOutFeeREADONLY (poolAddress) = { | |
758 | 758 | let fee = intOrDefaultOrFallback(keyOutFee(poolAddress), keyOutFeeDefault(), fraction(10, MULT8, 10000)) | |
759 | 759 | $Tuple2(nil, fee) | |
760 | 760 | } | |
761 | 761 | ||
762 | 762 | ||
763 | 763 | ||
764 | 764 | @Callable(i) | |
765 | 765 | func getPoolStatusREADONLY (poolAddress) = { | |
766 | 766 | let poolAssets = split(getStringOrFail(keyMappingPoolContractAddressToPoolAssets(poolAddress)), SEP) | |
767 | 767 | let amountAssetInternal = poolAssets[1] | |
768 | 768 | let priceAssetInternal = poolAssets[2] | |
769 | 769 | let cfg = split(getStringOrFail(keyPoolConfig(amountAssetInternal, priceAssetInternal)), SEP) | |
770 | 770 | $Tuple2(nil, parseIntValue(cfg[idxPoolStatus])) | |
771 | 771 | } | |
772 | 772 | ||
773 | 773 | ||
774 | 774 | @Verifier(tx) | |
775 | 775 | func verify () = { | |
776 | 776 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
777 | 777 | case pk: ByteVector => | |
778 | 778 | pk | |
779 | 779 | case _: Unit => | |
780 | 780 | tx.senderPublicKey | |
781 | 781 | case _ => | |
782 | 782 | throw("Match error") | |
783 | 783 | } | |
784 | 784 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
785 | 785 | } | |
786 | 786 |
github/deemru/w8io/026f985 86.37 ms ◑