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