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