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