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