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