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