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