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