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