tx · 5Lrz9ARrmWLs4a4SSf12xH6ApDgh6XHk2Mm5bsL1RaAo 3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr: -0.02800000 Waves 2024.04.22 17:24 [3074113] smart account 3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr > SELF 0.00000000 Waves
{ "type": 13, "id": "5Lrz9ARrmWLs4a4SSf12xH6ApDgh6XHk2Mm5bsL1RaAo", "fee": 2800000, "feeAssetId": null, "timestamp": 1713795855619, "version": 2, "chainId": 84, "sender": "3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr", "senderPublicKey": "GFbasS3jufhZkK4xR7tdTjjnP8K33KvJFEDHRtxXDkaJ", "proofs": [ "5meqj8xQ5cddJ3MmKL1TeW64a2VHCDFyae6JHpTPxjaScBXp3sDgrXuHoAStXGBAB5juoRfz83feBLzFmbbpB2Rt" ], "script": "base64:BgKGHQgCEgQKAggBEgcKBQgICAgBEgQKAggIEgUKAwgIARIECgIICBIDCgEBEgMKAQESAwoBCBIECgIICBIECgIIBBIAEgMKAQESABIECgIICBIECgIICBIECgIICBIAEgQKAggIEgUKAwgIASIJc2VwYXJhdG9yIg5wb29sV2VpZ2h0TXVsdCIPbWF4RGVwdGhEZWZhdWx0IhlmaW5hbGl6YXRpb25TdGFnZUJhbGFuY2VzIhZmaW5hbGl6YXRpb25TdGFnZVRvdGFsIhdmaW5hbGl6YXRpb25TdGFnZVNoYXJlcyILd2F2ZXNTdHJpbmciEHBvb2xTdGF0dXNBY3RpdmUiFXBvb2xTdGF0dXNQdXREaXNhYmxlZCIZcG9vbFN0YXR1c01hdGNoZXJEaXNhYmxlZCIScG9vbFN0YXR1c1NodXRkb3duIg5rZXlFcG9jaExlbmd0aCIRa2V5RXBvY2hMZW5ndGhOZXciFWtleUVwb2NoTGVuZ3RoQnlFcG9jaCIFZXBvY2giD2tleUN1cnJlbnRFcG9jaCILa2V5TWF4RGVwdGgiEGtleVJlc3VtcHRpb25GZWUiImtle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WwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECZHMBAmR0AAQCZHUEAmFpCQECYm8AAwkAAQIFAmFpAgpCeXRlVmVjdG9yBAJicwUCYWkFAmJzAwkAAQIFAmFpAgRVbml0CAUCZHMPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmRzCWJvZHlCeXRlcwkAkQMCCAUCZHMGcHJvb2ZzAAAFAmR1uodZfQ==", "height": 3074113, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5HmkgC4yPdmKxBECrSjaNrXpyJUdUC5mTa1Xgq85b2ru Next: 92ea3wYcCXBKmFveQCqZYdk1c1BdNCBy77wUCXKQj3FL Diff:
Old | New | Differences | |
---|---|---|---|
535 | 535 | let epoch = getIntOrFail(this, keyCurrentEpoch) | |
536 | 536 | let epochPrevious = (epoch - 1) | |
537 | 537 | let pool = stringToPool(poolStr) | |
538 | - | let $ | |
539 | - | let amountAssetId = $ | |
540 | - | let priceAssetId = $ | |
538 | + | let $t01724217282 = pool | |
539 | + | let amountAssetId = $t01724217282._1 | |
540 | + | let priceAssetId = $t01724217282._2 | |
541 | 541 | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
542 | 542 | let balanceIsOk = { | |
543 | 543 | let @ = invoke(factoryContract, "checkBalance", [lpAssetId], nil) | |
594 | 594 | if ((checkTargetEpoch == checkTargetEpoch)) | |
595 | 595 | then { | |
596 | 596 | let pool = stringToPool(poolStr) | |
597 | - | let $ | |
598 | - | let amountAssetId = $ | |
599 | - | let priceAssetId = $ | |
597 | + | let $t01910819148 = pool | |
598 | + | let amountAssetId = $t01910819148._1 | |
599 | + | let priceAssetId = $t01910819148._2 | |
600 | 600 | let gwxAmountAtEndTotal = { | |
601 | 601 | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil) | |
602 | 602 | if ($isInstanceOf(@, "Int")) | |
658 | 658 | if ((checkTargetEpoch == checkTargetEpoch)) | |
659 | 659 | then { | |
660 | 660 | let pool = stringToPool(poolStr) | |
661 | - | let $ | |
662 | - | let amountAssetId = $ | |
663 | - | let priceAssetId = $ | |
661 | + | let $t02161821658 = pool | |
662 | + | let amountAssetId = $t02161821658._1 | |
663 | + | let priceAssetId = $t02161821658._2 | |
664 | 664 | let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract)) | |
665 | 665 | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
666 | 666 | let r = { | |
974 | 974 | @Callable(i) | |
975 | 975 | func resume (amountAssetId,priceAssetId,slippageToleranceOrMinOutAmount) = { | |
976 | 976 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
977 | - | let $ | |
978 | - | let poolAddress = $ | |
979 | - | let lpAssetId = $ | |
977 | + | let $t03161931749 = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets")) | |
978 | + | let poolAddress = $t03161931749._1 | |
979 | + | let lpAssetId = $t03161931749._2 | |
980 | 980 | let feePayment = i.payments[0] | |
981 | 981 | let assetsStoreContract = addressFromStringValue(getStringValue(this, keyAssetsStoreContract)) | |
982 | 982 | let kBoostingConfig = "%s__config" |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "__" | |
5 | 5 | ||
6 | 6 | let poolWeightMult = 100000000 | |
7 | 7 | ||
8 | 8 | let maxDepthDefault = 10 | |
9 | 9 | ||
10 | 10 | let finalizationStageBalances = 0 | |
11 | 11 | ||
12 | 12 | let finalizationStageTotal = 1 | |
13 | 13 | ||
14 | 14 | let finalizationStageShares = 2 | |
15 | 15 | ||
16 | 16 | let wavesString = "WAVES" | |
17 | 17 | ||
18 | 18 | let poolStatusActive = 1 | |
19 | 19 | ||
20 | 20 | let poolStatusPutDisabled = 2 | |
21 | 21 | ||
22 | 22 | let poolStatusMatcherDisabled = 3 | |
23 | 23 | ||
24 | 24 | let poolStatusShutdown = 4 | |
25 | 25 | ||
26 | 26 | let keyEpochLength = makeString(["%s", "epochLength"], separator) | |
27 | 27 | ||
28 | 28 | let keyEpochLengthNew = makeString(["%s%s", "epochLength__new"], separator) | |
29 | 29 | ||
30 | 30 | func keyEpochLengthByEpoch (epoch) = makeString(["%s%d", "epochLength", toString(epoch)], separator) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | let keyCurrentEpoch = makeString(["%s", "currentEpoch"], separator) | |
34 | 34 | ||
35 | 35 | let keyMaxDepth = makeString(["%s", "maxDepth"], separator) | |
36 | 36 | ||
37 | 37 | let keyResumptionFee = makeString(["%s", "resumptionFee"], separator) | |
38 | 38 | ||
39 | 39 | let keyVotingEmissionCandidateContract = makeString(["%s", "votingEmissionCandidateContract"], separator) | |
40 | 40 | ||
41 | 41 | let keyVotingEmissionRateContract = makeString(["%s", "votingEmissionRateContract"], separator) | |
42 | 42 | ||
43 | 43 | let keyFactoryContract = makeString(["%s", "factoryContract"], separator) | |
44 | 44 | ||
45 | 45 | let keyBoostingContract = makeString(["%s", "boostingContract"], separator) | |
46 | 46 | ||
47 | 47 | let keyStakingContract = makeString(["%s", "stakingContract"], separator) | |
48 | 48 | ||
49 | 49 | let keyAssetsStoreContract = makeString(["%s", "assetsStoreContract"], separator) | |
50 | 50 | ||
51 | 51 | let keyFinalizationStage = makeString(["%s", "finalizationStage"], separator) | |
52 | 52 | ||
53 | 53 | let keyNextPool = makeString(["%s", "nextPool"], separator) | |
54 | 54 | ||
55 | 55 | let keyNextUser = makeString(["%s", "nextUser"], separator) | |
56 | 56 | ||
57 | 57 | let keyStartHeight = makeString(["%s", "startHeight"], separator) | |
58 | 58 | ||
59 | 59 | let keyCurrentEpochUi = makeString(["%s", "currentEpochUi"], separator) | |
60 | 60 | ||
61 | 61 | let keyStartHeightUi = makeString(["%s", "startHeightUi"], separator) | |
62 | 62 | ||
63 | 63 | let keyFinalizationShouldBeForced = makeString(["%s", "force"], separator) | |
64 | 64 | ||
65 | 65 | func keyAllowedLpScriptHash () = "%s__allowedLpScriptHash" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyAllowedLpStableScriptHash () = "%s__allowedLpStableScriptHash" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyStartHeightByEpoch (epoch) = makeString(["%s%d", "startHeight", toString(epoch)], separator) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyFinalized (epoch) = makeString(["%s%d", "finalized", toString(epoch)], separator) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyInList (pool) = { | |
78 | 78 | let $t022442284 = pool | |
79 | 79 | let amountAssetId = $t022442284._1 | |
80 | 80 | let priceAssetId = $t022442284._2 | |
81 | 81 | makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator) | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyUsed (address,epoch) = makeString(["%s%s%d", "used", toString(address), toString(epoch)], separator) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyVote (pool,address,epoch) = { | |
89 | 89 | let $t025582598 = pool | |
90 | 90 | let amountAssetId = $t025582598._1 | |
91 | 91 | let priceAssetId = $t025582598._2 | |
92 | 92 | makeString(["%s%s%s%s%d", "vote", amountAssetId, priceAssetId, toString(address), toString(epoch)], separator) | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyVotingResult (pool,epoch) = { | |
97 | 97 | let $t027802820 = pool | |
98 | 98 | let amountAssetId = $t027802820._1 | |
99 | 99 | let priceAssetId = $t027802820._2 | |
100 | 100 | makeString(["%s%s%s%d", "votingResult", amountAssetId, priceAssetId, toString(epoch)], separator) | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyVotingResultStaked (lpAssetIdStr,epoch) = makeString(["%s%s%d", "votingResultStaked", lpAssetIdStr, toString(epoch)], separator) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyPoolShare (pool,epoch) = { | |
108 | 108 | let $t031413181 = pool | |
109 | 109 | let amountAssetId = $t031413181._1 | |
110 | 110 | let priceAssetId = $t031413181._2 | |
111 | 111 | makeString(["%s%s%s%d", "poolShare", amountAssetId, priceAssetId, toString(epoch)], separator) | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyTotalVotes (epoch) = makeString(["%s%d", "totalVotes", toString(epoch)], separator) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func keyStakedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s", "staked", userAddressStr, lpAssetIdStr], separator) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func wrapErr (msg) = makeString(["voting_emission.ride:", msg], " ") | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func throwErr (msg) = throw(wrapErr(msg)) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getValueOrFail (address,key,type) = { | |
128 | 128 | let error = wrapErr(makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
129 | 129 | valueOrErrorMessage( match type { | |
130 | 130 | case str: String => | |
131 | 131 | getString(address, key) | |
132 | 132 | case int: Int => | |
133 | 133 | getInteger(address, key) | |
134 | 134 | case _ => | |
135 | 135 | throwErr("invalid entry type") | |
136 | 136 | }, error) | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func getStrOrFail (address,key) = { | |
141 | 141 | let @ = getValueOrFail(address, key, "") | |
142 | 142 | if ($isInstanceOf(@, "String")) | |
143 | 143 | then @ | |
144 | 144 | else throw(($getType(@) + " couldn't be cast to String")) | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func getIntOrFail (address,key) = { | |
149 | 149 | let @ = getValueOrFail(address, key, 0) | |
150 | 150 | if ($isInstanceOf(@, "Int")) | |
151 | 151 | then @ | |
152 | 152 | else throw(($getType(@) + " couldn't be cast to Int")) | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func poolToString (pool) = ((pool._1 + separator) + pool._2) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func stringToPool (str) = { | |
160 | 160 | let parts = split(str, separator) | |
161 | 161 | if ((size(parts) == 2)) | |
162 | 162 | then $Tuple2(parts[0], parts[1]) | |
163 | 163 | else throwErr("invalid pool string") | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract)) | |
168 | 168 | ||
169 | 169 | let IdxFactoryCfgGwxRewardDapp = 10 | |
170 | 170 | ||
171 | 171 | func keyFactoryCfg () = "%s__factoryConfig" | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func readFactoryCfgOrFail (factory) = split(getStrOrFail(factory, keyFactoryCfg()), separator) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func getGwxRewardAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgGwxRewardDapp]) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func parseAssetId (input) = if ((input == wavesString)) | |
181 | 181 | then unit | |
182 | 182 | else fromBase58String(input) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func assetIdToString (input) = if ((input == unit)) | |
186 | 186 | then wavesString | |
187 | 187 | else toBase58String(value(input)) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func getPoolInfo (amountAssetId,priceAssetId) = { | |
191 | 191 | let poolInfoOption = { | |
192 | 192 | let @ = invoke(factoryContract, "poolInfoREADONLY", [amountAssetId, priceAssetId], nil) | |
193 | 193 | if ($isInstanceOf(@, "(Address, ByteVector)")) | |
194 | 194 | then @ | |
195 | 195 | else unit | |
196 | 196 | } | |
197 | 197 | poolInfoOption | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func getLpAssetByPoolAssets (amountAssetId,priceAssetId) = { | |
202 | 202 | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
203 | 203 | ||
204 | 204 | func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract") | |
205 | 205 | ||
206 | 206 | func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
207 | 207 | ||
208 | 208 | let amountAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amountAssetId)) | |
209 | 209 | let priceAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAssetId)) | |
210 | 210 | let poolContractAddress = getStrOrFail(factoryContract, keyMappingPoolAssetsToPoolContractAddress(amountAssetInternalId, priceAssetInternalId)) | |
211 | 211 | let lpAssetId = getStrOrFail(factoryContract, keyMappingPoolContractToLPAsset(poolContractAddress)) | |
212 | 212 | lpAssetId | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func checkWxEmissionPoolLabel (pool) = { | |
217 | 217 | let $t065416581 = pool | |
218 | 218 | let amountAssetId = $t065416581._1 | |
219 | 219 | let priceAssetId = $t065416581._2 | |
220 | 220 | let @ = invoke(factoryContract, "checkWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil) | |
221 | 221 | if ($isInstanceOf(@, "Boolean")) | |
222 | 222 | then @ | |
223 | 223 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
224 | 224 | } | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func gwxRewardDeposit () = { | |
228 | 228 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
229 | 229 | let gwxRewardsContract = getGwxRewardAddressOrFail(factoryCfg) | |
230 | 230 | invoke(gwxRewardsContract, "deposit", nil, nil) | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | let poolsListName = "pools" | |
235 | 235 | ||
236 | 236 | func getVotesListName (pool) = { | |
237 | 237 | let $t069987038 = pool | |
238 | 238 | let amountAssetId = $t069987038._1 | |
239 | 239 | let priceAssetId = $t069987038._2 | |
240 | 240 | makeString(["votes", amountAssetId, priceAssetId], separator) | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func keyListHead (listName) = { | |
245 | 245 | let meta = if ((listName == poolsListName)) | |
246 | 246 | then "%s%s" | |
247 | 247 | else "%s%s%s%s" | |
248 | 248 | makeString([meta, listName, "head"], separator) | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func keyListSize (listName) = { | |
253 | 253 | let meta = if ((listName == poolsListName)) | |
254 | 254 | then "%s%s" | |
255 | 255 | else "%s%s%s%s" | |
256 | 256 | makeString([meta, listName, "size"], separator) | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func keyListPrev (listName,id) = { | |
261 | 261 | let meta = if ((listName == poolsListName)) | |
262 | 262 | then "%s%s%s%s" | |
263 | 263 | else "%s%s%s%s%s" | |
264 | 264 | makeString([meta, listName, id, "prev"], separator) | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func keyListNext (listName,id) = { | |
269 | 269 | let meta = if ((listName == poolsListName)) | |
270 | 270 | then "%s%s%s%s" | |
271 | 271 | else "%s%s%s%s%s" | |
272 | 272 | makeString([meta, listName, id, "next"], separator) | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | func containsNode (listName,id) = { | |
277 | 277 | let headOrUnit = getString(this, keyListHead(listName)) | |
278 | 278 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
279 | 279 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
280 | 280 | if (if ((id == valueOrElse(headOrUnit, ""))) | |
281 | 281 | then true | |
282 | 282 | else (prevOrUnit != unit)) | |
283 | 283 | then true | |
284 | 284 | else (nextOrUnit != unit) | |
285 | 285 | } | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | func insertNodeActions (listName,id) = { | |
289 | 289 | let headOrUnit = getString(this, keyListHead(listName)) | |
290 | 290 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
291 | 291 | let checkNode = if (!(containsNode(listName, id))) | |
292 | 292 | then true | |
293 | 293 | else throwErr("Node exists") | |
294 | 294 | if ((checkNode == checkNode)) | |
295 | 295 | then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit)) | |
296 | 296 | then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)] | |
297 | 297 | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
298 | 298 | else throw("Strict value is not equal to itself.") | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func deleteNodeActions (listName,id) = { | |
303 | 303 | let headOrUnit = getString(this, keyListHead(listName)) | |
304 | 304 | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
305 | 305 | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
306 | 306 | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
307 | 307 | ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit)) | |
308 | 308 | then (nextOrUnit != unit) | |
309 | 309 | else false) | |
310 | 310 | then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))] | |
311 | 311 | else if ((nextOrUnit != unit)) | |
312 | 312 | then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))] | |
313 | 313 | else if ((prevOrUnit != unit)) | |
314 | 314 | then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))] | |
315 | 315 | else if ((id == valueOrElse(headOrUnit, ""))) | |
316 | 316 | then [DeleteEntry(keyListHead(listName))] | |
317 | 317 | else throwErr(((("invalid node: " + listName) + ".") + id)))) | |
318 | 318 | } | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | func keyManagerVaultAddress () = "%s__managerVaultAddress" | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
325 | 325 | ||
326 | 326 | ||
327 | 327 | func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) { | |
328 | 328 | case s: String => | |
329 | 329 | addressFromStringValue(s) | |
330 | 330 | case _ => | |
331 | 331 | this | |
332 | 332 | } | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | func managerPublicKeyOrUnit () = { | |
336 | 336 | let managerVaultAddress = getManagerVaultAddressOrThis() | |
337 | 337 | match getString(managerVaultAddress, keyManagerPublicKey()) { | |
338 | 338 | case s: String => | |
339 | 339 | fromBase58String(s) | |
340 | 340 | case _: Unit => | |
341 | 341 | unit | |
342 | 342 | case _ => | |
343 | 343 | throw("Match error") | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | func isManager (i) = match managerPublicKeyOrUnit() { | |
349 | 349 | case pk: ByteVector => | |
350 | 350 | (i.callerPublicKey == pk) | |
351 | 351 | case _: Unit => | |
352 | 352 | (i.caller == this) | |
353 | 353 | case _ => | |
354 | 354 | throw("Match error") | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 | ||
358 | 358 | func mustManager (i) = if (isManager(i)) | |
359 | 359 | then true | |
360 | 360 | else throw("permission denied") | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | func mustThis (i) = if ((i.caller == this)) | |
364 | 364 | then true | |
365 | 365 | else throw("permission denied") | |
366 | 366 | ||
367 | 367 | ||
368 | 368 | @Callable(i) | |
369 | 369 | func getUserGwxAmountAtHeight (userAddress,targetHeight) = { | |
370 | 370 | let boostingContractAddress = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyBoostingContract)), wrapErr("invalid boosting contract address")) | |
371 | 371 | $Tuple2(nil, { | |
372 | 372 | let @ = invoke(boostingContractAddress, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil) | |
373 | 373 | if ($isInstanceOf(@, "Int")) | |
374 | 374 | then @ | |
375 | 375 | else throw(($getType(@) + " couldn't be cast to Int")) | |
376 | 376 | }) | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | ||
381 | 381 | @Callable(i) | |
382 | 382 | func constructor (factoryContract,votingEmissionCandidateContract,boostingContract,stakingContract,epochLength) = { | |
383 | 383 | let checks = [mustManager(i), if ((addressFromString(factoryContract) != unit)) | |
384 | 384 | then true | |
385 | 385 | else "invalid factory contract address", if ((addressFromString(votingEmissionCandidateContract) != unit)) | |
386 | 386 | then true | |
387 | 387 | else "invalid voting emission candidate contract address", if ((addressFromString(boostingContract) != unit)) | |
388 | 388 | then true | |
389 | 389 | else "invalid boosting contract address", if ((addressFromString(stakingContract) != unit)) | |
390 | 390 | then true | |
391 | 391 | else "invalid staking contract address", if ((epochLength > 0)) | |
392 | 392 | then true | |
393 | 393 | else throwErr("invalid epoch length")] | |
394 | 394 | if ((checks == checks)) | |
395 | 395 | then $Tuple2([StringEntry(keyFactoryContract, factoryContract), StringEntry(keyVotingEmissionCandidateContract, votingEmissionCandidateContract), StringEntry(keyBoostingContract, boostingContract), StringEntry(keyStakingContract, stakingContract), IntegerEntry(keyEpochLength, epochLength)], unit) | |
396 | 396 | else throw("Strict value is not equal to itself.") | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | ||
401 | 401 | @Callable(i) | |
402 | 402 | func create (amountAssetId,priceAssetId) = { | |
403 | 403 | let checks = [if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionCandidateContract), ""))) | |
404 | 404 | then true | |
405 | 405 | else mustManager(i)] | |
406 | 406 | if ((checks == checks)) | |
407 | 407 | then { | |
408 | 408 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
409 | 409 | let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool))) | |
410 | 410 | let currentEpochIsNotDefined = (getInteger(this, keyCurrentEpoch) == unit) | |
411 | 411 | let startHeightActions = if (currentEpochIsNotDefined) | |
412 | 412 | then { | |
413 | 413 | let epoch = 0 | |
414 | 414 | [IntegerEntry(keyCurrentEpoch, epoch), IntegerEntry(keyStartHeightByEpoch(epoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, height)] | |
415 | 415 | } | |
416 | 416 | else nil | |
417 | 417 | $Tuple2((inListActions ++ startHeightActions), unit) | |
418 | 418 | } | |
419 | 419 | else throw("Strict value is not equal to itself.") | |
420 | 420 | } | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | ||
424 | 424 | @Callable(i) | |
425 | 425 | func vote (amountAssetId,priceAssetId,amount) = { | |
426 | 426 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
427 | 427 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
428 | 428 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
429 | 429 | let epochLength = getIntOrFail(this, keyEpochLength) | |
430 | 430 | let endHeight = (startHeight + epochLength) | |
431 | 431 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
432 | 432 | let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0) | |
433 | 433 | let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0) | |
434 | 434 | let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0) | |
435 | 435 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0) | |
436 | 436 | let gwxAmountAtEndTotal = { | |
437 | 437 | let @ = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(i.caller.bytes), endHeight], nil) | |
438 | 438 | if ($isInstanceOf(@, "Int")) | |
439 | 439 | then @ | |
440 | 440 | else throw(($getType(@) + " couldn't be cast to Int")) | |
441 | 441 | } | |
442 | 442 | let available = (gwxAmountAtEndTotal - used) | |
443 | 443 | let newVote = (vote + amount) | |
444 | 444 | let wxEmission = checkWxEmissionPoolLabel(pool) | |
445 | 445 | let checks = [if ((getBoolean(keyInList(pool)) != unit)) | |
446 | 446 | then true | |
447 | 447 | else throwErr("invalid assets"), if ((endHeight > height)) | |
448 | 448 | then true | |
449 | 449 | else throwErr("invalid height"), if ((finalizationStageOrUnit == unit)) | |
450 | 450 | then true | |
451 | 451 | else throwErr("finalization in progress"), if ((gwxAmountAtEndTotal > 0)) | |
452 | 452 | then true | |
453 | 453 | else throwErr("you do not have gWX"), if (if ((amount > 0)) | |
454 | 454 | then (available >= amount) | |
455 | 455 | else false) | |
456 | 456 | then true | |
457 | 457 | else throwErr("invalid amount"), if (wxEmission) | |
458 | 458 | then true | |
459 | 459 | else throwErr("pool hasn't WX_EMISSION label")] | |
460 | 460 | if ((checks == checks)) | |
461 | 461 | then { | |
462 | 462 | let votesListName = getVotesListName(pool) | |
463 | 463 | let userAddressStr = toString(i.caller) | |
464 | 464 | let votesListActions = if (containsNode(votesListName, userAddressStr)) | |
465 | 465 | then nil | |
466 | 466 | else insertNodeActions(votesListName, userAddressStr) | |
467 | 467 | $Tuple2(([IntegerEntry(keyUsed(i.caller, epoch), (used + amount)), IntegerEntry(keyVote(pool, i.caller, epoch), newVote), IntegerEntry(keyVotingResult(pool, epoch), (poolResult + amount)), IntegerEntry(keyTotalVotes(epoch), (totalVotes + amount))] ++ votesListActions), unit) | |
468 | 468 | } | |
469 | 469 | else throw("Strict value is not equal to itself.") | |
470 | 470 | } | |
471 | 471 | ||
472 | 472 | ||
473 | 473 | ||
474 | 474 | @Callable(i) | |
475 | 475 | func cancelVote (amountAssetId,priceAssetId) = { | |
476 | 476 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
477 | 477 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
478 | 478 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
479 | 479 | let epochLength = getIntOrFail(this, keyEpochLength) | |
480 | 480 | let endHeight = (startHeight + epochLength) | |
481 | 481 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
482 | 482 | let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0) | |
483 | 483 | let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0) | |
484 | 484 | let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0) | |
485 | 485 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0) | |
486 | 486 | let checks = [if ((getBoolean(keyInList(pool)) != unit)) | |
487 | 487 | then true | |
488 | 488 | else throwErr("invalid assets"), if ((endHeight > height)) | |
489 | 489 | then true | |
490 | 490 | else throwErr("invalid height"), if ((finalizationStageOrUnit == unit)) | |
491 | 491 | then true | |
492 | 492 | else throwErr("finalization in progress"), if ((vote > 0)) | |
493 | 493 | then true | |
494 | 494 | else throwErr("no vote")] | |
495 | 495 | if ((checks == checks)) | |
496 | 496 | then { | |
497 | 497 | let votesListName = getVotesListName(pool) | |
498 | 498 | let userAddressStr = toString(i.caller) | |
499 | 499 | $Tuple2(([IntegerEntry(keyUsed(i.caller, epoch), max([(used - vote), 0])), DeleteEntry(keyVote(pool, i.caller, epoch)), IntegerEntry(keyVotingResult(pool, epoch), (poolResult - vote)), IntegerEntry(keyTotalVotes(epoch), (totalVotes - vote))] ++ deleteNodeActions(votesListName, userAddressStr)), unit) | |
500 | 500 | } | |
501 | 501 | else throw("Strict value is not equal to itself.") | |
502 | 502 | } | |
503 | 503 | ||
504 | 504 | ||
505 | 505 | ||
506 | 506 | @Callable(i) | |
507 | 507 | func setEpochLength (newEpochLength) = { | |
508 | 508 | let checks = [mustManager(i), if ((newEpochLength > 0)) | |
509 | 509 | then true | |
510 | 510 | else throwErr("invalid epoch length")] | |
511 | 511 | if ((checks == checks)) | |
512 | 512 | then $Tuple2([IntegerEntry(keyEpochLengthNew, newEpochLength)], unit) | |
513 | 513 | else throw("Strict value is not equal to itself.") | |
514 | 514 | } | |
515 | 515 | ||
516 | 516 | ||
517 | 517 | ||
518 | 518 | @Callable(i) | |
519 | 519 | func setMaxDepth (newMaxDepth) = { | |
520 | 520 | let checks = [mustManager(i), if ((newMaxDepth > 0)) | |
521 | 521 | then true | |
522 | 522 | else throwErr("invalid max depth")] | |
523 | 523 | if ((checks == checks)) | |
524 | 524 | then $Tuple2([IntegerEntry(keyMaxDepth, newMaxDepth)], unit) | |
525 | 525 | else throw("Strict value is not equal to itself.") | |
526 | 526 | } | |
527 | 527 | ||
528 | 528 | ||
529 | 529 | ||
530 | 530 | @Callable(i) | |
531 | 531 | func processPoolBalanceINTERNAL (poolStr) = { | |
532 | 532 | let checkCaller = mustThis(i) | |
533 | 533 | if ((checkCaller == checkCaller)) | |
534 | 534 | then { | |
535 | 535 | let epoch = getIntOrFail(this, keyCurrentEpoch) | |
536 | 536 | let epochPrevious = (epoch - 1) | |
537 | 537 | let pool = stringToPool(poolStr) | |
538 | - | let $ | |
539 | - | let amountAssetId = $ | |
540 | - | let priceAssetId = $ | |
538 | + | let $t01724217282 = pool | |
539 | + | let amountAssetId = $t01724217282._1 | |
540 | + | let priceAssetId = $t01724217282._2 | |
541 | 541 | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
542 | 542 | let balanceIsOk = { | |
543 | 543 | let @ = invoke(factoryContract, "checkBalance", [lpAssetId], nil) | |
544 | 544 | if ($isInstanceOf(@, "Boolean")) | |
545 | 545 | then @ | |
546 | 546 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
547 | 547 | } | |
548 | 548 | let actions = if (!(balanceIsOk)) | |
549 | 549 | then { | |
550 | 550 | let deleteWxEmissionInv = invoke(factoryContract, "deleteWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil) | |
551 | 551 | if ((deleteWxEmissionInv == deleteWxEmissionInv)) | |
552 | 552 | then { | |
553 | 553 | let modifyWeightInv = invoke(factoryContract, "modifyWeight", [lpAssetId, 0], nil) | |
554 | 554 | if ((modifyWeightInv == modifyWeightInv)) | |
555 | 555 | then { | |
556 | 556 | let poolAddress = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets"))._1 | |
557 | 557 | let setPoolStatusInv = invoke(factoryContract, "managePool", [toString(poolAddress), poolStatusMatcherDisabled], nil) | |
558 | 558 | if ((setPoolStatusInv == setPoolStatusInv)) | |
559 | 559 | then { | |
560 | 560 | let listActions = ([DeleteEntry(keyInList(pool))] ++ deleteNodeActions(poolsListName, poolToString(pool))) | |
561 | 561 | ([IntegerEntry(keyPoolShare(pool, epochPrevious), 0)] ++ listActions) | |
562 | 562 | } | |
563 | 563 | else throw("Strict value is not equal to itself.") | |
564 | 564 | } | |
565 | 565 | else throw("Strict value is not equal to itself.") | |
566 | 566 | } | |
567 | 567 | else throw("Strict value is not equal to itself.") | |
568 | 568 | } | |
569 | 569 | else nil | |
570 | 570 | $Tuple2(actions, unit) | |
571 | 571 | } | |
572 | 572 | else throw("Strict value is not equal to itself.") | |
573 | 573 | } | |
574 | 574 | ||
575 | 575 | ||
576 | 576 | ||
577 | 577 | @Callable(i) | |
578 | 578 | func processVoteINTERNAL (poolStr,userAddressStr) = { | |
579 | 579 | let checkCaller = mustThis(i) | |
580 | 580 | if ((checkCaller == checkCaller)) | |
581 | 581 | then { | |
582 | 582 | let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), wrapErr(("processVoteINTERNAL: invalid user address " + userAddressStr))) | |
583 | 583 | let epoch = getIntOrFail(this, keyCurrentEpoch) | |
584 | 584 | let epochPrevious = (epoch - 1) | |
585 | 585 | let epochLength = getIntOrFail(this, keyEpochLength) | |
586 | 586 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
587 | 587 | let endHeight = (startHeight + epochLength) | |
588 | 588 | let startHeightPrevious = getIntOrFail(this, keyStartHeightByEpoch(epochPrevious)) | |
589 | 589 | let epochLengthPrevious = getIntOrFail(this, keyEpochLengthByEpoch(epochPrevious)) | |
590 | 590 | let endHeightPrevious = (startHeightPrevious + epochLengthPrevious) | |
591 | 591 | let checkTargetEpoch = if ((epochPrevious >= 0)) | |
592 | 592 | then true | |
593 | 593 | else throwErr("processVoteINTERNAL: invalid previous epoch") | |
594 | 594 | if ((checkTargetEpoch == checkTargetEpoch)) | |
595 | 595 | then { | |
596 | 596 | let pool = stringToPool(poolStr) | |
597 | - | let $ | |
598 | - | let amountAssetId = $ | |
599 | - | let priceAssetId = $ | |
597 | + | let $t01910819148 = pool | |
598 | + | let amountAssetId = $t01910819148._1 | |
599 | + | let priceAssetId = $t01910819148._2 | |
600 | 600 | let gwxAmountAtEndTotal = { | |
601 | 601 | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil) | |
602 | 602 | if ($isInstanceOf(@, "Int")) | |
603 | 603 | then @ | |
604 | 604 | else throw(($getType(@) + " couldn't be cast to Int")) | |
605 | 605 | } | |
606 | 606 | let gwxAmountAtEndTotalPrevious = { | |
607 | 607 | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeightPrevious], nil) | |
608 | 608 | if ($isInstanceOf(@, "Int")) | |
609 | 609 | then @ | |
610 | 610 | else throw(($getType(@) + " couldn't be cast to Int")) | |
611 | 611 | } | |
612 | 612 | let totalVotes = valueOrElse(getInteger(keyTotalVotes(epoch)), 0) | |
613 | 613 | let votingResult = valueOrElse(getInteger(keyVotingResult(pool, epoch)), 0) | |
614 | 614 | let votePreviousOption = getInteger(keyVote(pool, userAddress, epochPrevious)) | |
615 | 615 | let votePrevious = valueOrErrorMessage(votePreviousOption, wrapErr((((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote"))) | |
616 | 616 | let used = valueOrElse(getInteger(this, keyUsed(userAddress, epoch)), 0) | |
617 | 617 | let lpAssetIdStr = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
618 | 618 | let votingResultStakedPrevious = valueOrElse(getInteger(keyVotingResultStaked(lpAssetIdStr, epochPrevious)), 0) | |
619 | 619 | let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract)) | |
620 | 620 | let stakedByUser = valueOrElse(getInteger(stakingContract, keyStakedByUser(lpAssetIdStr, userAddressStr)), 0) | |
621 | 621 | let votingResultStakedActions = if (if ((stakedByUser == 0)) | |
622 | 622 | then true | |
623 | 623 | else (votePreviousOption == unit)) | |
624 | 624 | then nil | |
625 | 625 | else [IntegerEntry(keyVotingResultStaked(lpAssetIdStr, epochPrevious), (votingResultStakedPrevious + votePrevious))] | |
626 | 626 | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
627 | 627 | let newVote = if ((gwxAmountAtEndTotalPrevious > 0)) | |
628 | 628 | then fraction(votePrevious, gwxAmountAtEndTotal, gwxAmountAtEndTotalPrevious) | |
629 | 629 | else 0 | |
630 | 630 | let actions = if (if ((votePreviousOption == unit)) | |
631 | 631 | then true | |
632 | 632 | else (0 >= newVote)) | |
633 | 633 | then deleteNodeActions(getVotesListName(pool), userAddressStr) | |
634 | 634 | else [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))] | |
635 | 635 | $Tuple2((actions ++ votingResultStakedActions), unit) | |
636 | 636 | } | |
637 | 637 | else throw("Strict value is not equal to itself.") | |
638 | 638 | } | |
639 | 639 | else throw("Strict value is not equal to itself.") | |
640 | 640 | } | |
641 | 641 | ||
642 | 642 | ||
643 | 643 | ||
644 | 644 | @Callable(i) | |
645 | 645 | func processPoolINTERNAL (poolStr,force) = { | |
646 | 646 | let checkCaller = mustThis(i) | |
647 | 647 | if ((checkCaller == checkCaller)) | |
648 | 648 | then { | |
649 | 649 | let targetEpoch = { | |
650 | 650 | let currentEpoch = getIntOrFail(this, keyCurrentEpoch) | |
651 | 651 | if (force) | |
652 | 652 | then currentEpoch | |
653 | 653 | else (currentEpoch - 1) | |
654 | 654 | } | |
655 | 655 | let checkTargetEpoch = if ((targetEpoch >= 0)) | |
656 | 656 | then true | |
657 | 657 | else throwErr("processPoolINTERNAL: invalid target epoch") | |
658 | 658 | if ((checkTargetEpoch == checkTargetEpoch)) | |
659 | 659 | then { | |
660 | 660 | let pool = stringToPool(poolStr) | |
661 | - | let $ | |
662 | - | let amountAssetId = $ | |
663 | - | let priceAssetId = $ | |
661 | + | let $t02161821658 = pool | |
662 | + | let amountAssetId = $t02161821658._1 | |
663 | + | let priceAssetId = $t02161821658._2 | |
664 | 664 | let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract)) | |
665 | 665 | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
666 | 666 | let r = { | |
667 | 667 | let @ = invoke(stakingContract, "usersListTraversal", [lpAssetId], nil) | |
668 | 668 | if ($isInstanceOf(@, "Boolean")) | |
669 | 669 | then @ | |
670 | 670 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
671 | 671 | } | |
672 | 672 | if ((r == r)) | |
673 | 673 | then if (r) | |
674 | 674 | then $Tuple2(nil, true) | |
675 | 675 | else { | |
676 | 676 | let assetsStoreContract = addressFromStringValue(valueOrErrorMessage(getString(factoryContract, keyAssetsStoreContract), "invalid assets store contract")) | |
677 | 677 | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(targetEpoch)), 0) | |
678 | 678 | let votingResult = valueOrElse(getInteger(this, keyVotingResult(pool, targetEpoch)), 0) | |
679 | 679 | let share = if ((totalVotes == 0)) | |
680 | 680 | then 0 | |
681 | 681 | else fraction(votingResult, poolWeightMult, totalVotes) | |
682 | 682 | let modifyWeightInv = invoke(factoryContract, "modifyWeight", [lpAssetId, share], nil) | |
683 | 683 | if ((modifyWeightInv == modifyWeightInv)) | |
684 | 684 | then $Tuple2([IntegerEntry(keyPoolShare(pool, targetEpoch), share)], false) | |
685 | 685 | else throw("Strict value is not equal to itself.") | |
686 | 686 | } | |
687 | 687 | else throw("Strict value is not equal to itself.") | |
688 | 688 | } | |
689 | 689 | else throw("Strict value is not equal to itself.") | |
690 | 690 | } | |
691 | 691 | else throw("Strict value is not equal to itself.") | |
692 | 692 | } | |
693 | 693 | ||
694 | 694 | ||
695 | 695 | ||
696 | 696 | @Callable(i) | |
697 | 697 | func finalizeHelper () = { | |
698 | 698 | let force = valueOrElse(getBoolean(keyFinalizationShouldBeForced), false) | |
699 | 699 | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
700 | 700 | let previousEpoch = (epoch - 1) | |
701 | 701 | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
702 | 702 | let epochLength = getIntOrFail(this, keyEpochLength) | |
703 | 703 | let endHeight = (startHeight + epochLength) | |
704 | 704 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
705 | 705 | if (if (if ((height >= endHeight)) | |
706 | 706 | then (finalizationStageOrUnit == unit) | |
707 | 707 | else false) | |
708 | 708 | then !(force) | |
709 | 709 | else false) | |
710 | 710 | then { | |
711 | 711 | let newEpoch = (epoch + 1) | |
712 | 712 | let newEpochLengthOption = getInteger(this, keyEpochLengthNew) | |
713 | 713 | let newEpochLengthActions = match newEpochLengthOption { | |
714 | 714 | case newEpochLength: Int => | |
715 | 715 | [IntegerEntry(keyEpochLength, newEpochLength), DeleteEntry(keyEpochLengthNew)] | |
716 | 716 | case _: Unit => | |
717 | 717 | nil | |
718 | 718 | case _ => | |
719 | 719 | throw("Match error") | |
720 | 720 | } | |
721 | 721 | $Tuple2(([IntegerEntry(keyStartHeightByEpoch(newEpoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpoch, newEpoch), IntegerEntry(keyFinalizationStage, finalizationStageBalances), IntegerEntry(keyEpochLengthByEpoch(epoch), epochLength)] ++ newEpochLengthActions), true) | |
722 | 722 | } | |
723 | 723 | else if (if (force) | |
724 | 724 | then (finalizationStageOrUnit == unit) | |
725 | 725 | else false) | |
726 | 726 | then $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares)], true) | |
727 | 727 | else if ((finalizationStageOrUnit == unit)) | |
728 | 728 | then $Tuple2(nil, false) | |
729 | 729 | else if ((finalizationStageOrUnit == finalizationStageBalances)) | |
730 | 730 | then { | |
731 | 731 | let poolOrUnit = getString(keyNextPool) | |
732 | 732 | match poolOrUnit { | |
733 | 733 | case _: Unit => | |
734 | 734 | match getString(keyListHead(poolsListName)) { | |
735 | 735 | case _: Unit => | |
736 | 736 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageTotal), DeleteEntry(keyNextPool)], true) | |
737 | 737 | case nextPoolStr: String => | |
738 | 738 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
739 | 739 | case _ => | |
740 | 740 | throw("Match error") | |
741 | 741 | } | |
742 | 742 | case poolStr: String => | |
743 | 743 | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
744 | 744 | if ((nextPoolOrUnit == nextPoolOrUnit)) | |
745 | 745 | then { | |
746 | 746 | let r = invoke(this, "processPoolBalanceINTERNAL", [poolStr], nil) | |
747 | 747 | if ((r == r)) | |
748 | 748 | then match nextPoolOrUnit { | |
749 | 749 | case _: Unit => | |
750 | 750 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageTotal), DeleteEntry(keyNextPool)], true) | |
751 | 751 | case nextPoolStr: String => | |
752 | 752 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
753 | 753 | case _ => | |
754 | 754 | throw("Match error") | |
755 | 755 | } | |
756 | 756 | else throw("Strict value is not equal to itself.") | |
757 | 757 | } | |
758 | 758 | else throw("Strict value is not equal to itself.") | |
759 | 759 | case _ => | |
760 | 760 | throw("Match error") | |
761 | 761 | } | |
762 | 762 | } | |
763 | 763 | else if ((finalizationStageOrUnit == finalizationStageTotal)) | |
764 | 764 | then { | |
765 | 765 | let poolOrUnit = getString(keyNextPool) | |
766 | 766 | let userOrUnit = getString(keyNextUser) | |
767 | 767 | match poolOrUnit { | |
768 | 768 | case _: Unit => | |
769 | 769 | match getString(keyListHead(poolsListName)) { | |
770 | 770 | case _: Unit => | |
771 | 771 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true) | |
772 | 772 | case poolsHeadStr: String => | |
773 | 773 | $Tuple2([StringEntry(keyNextPool, poolsHeadStr)], true) | |
774 | 774 | case _ => | |
775 | 775 | throw("Match error") | |
776 | 776 | } | |
777 | 777 | case poolStr: String => | |
778 | 778 | let pool = stringToPool(poolStr) | |
779 | 779 | let nextUserOrUnit = match userOrUnit { | |
780 | 780 | case _: Unit => | |
781 | 781 | getString(keyListHead(getVotesListName(pool))) | |
782 | 782 | case user: String => | |
783 | 783 | let next = getString(keyListNext(getVotesListName(pool), user)) | |
784 | 784 | if ((next == next)) | |
785 | 785 | then { | |
786 | 786 | let processVoteInv = invoke(this, "processVoteINTERNAL", [poolStr, user], nil) | |
787 | 787 | if ((processVoteInv == processVoteInv)) | |
788 | 788 | then next | |
789 | 789 | else throw("Strict value is not equal to itself.") | |
790 | 790 | } | |
791 | 791 | else throw("Strict value is not equal to itself.") | |
792 | 792 | case _ => | |
793 | 793 | throw("Match error") | |
794 | 794 | } | |
795 | 795 | match nextUserOrUnit { | |
796 | 796 | case _: Unit => | |
797 | 797 | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
798 | 798 | match nextPoolOrUnit { | |
799 | 799 | case _: Unit => | |
800 | 800 | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true) | |
801 | 801 | case s: String => | |
802 | 802 | $Tuple2([StringEntry(keyNextPool, s), DeleteEntry(keyNextUser)], true) | |
803 | 803 | case _ => | |
804 | 804 | throw("Match error") | |
805 | 805 | } | |
806 | 806 | case nextUser: String => | |
807 | 807 | $Tuple2([StringEntry(keyNextUser, nextUser)], true) | |
808 | 808 | case _ => | |
809 | 809 | throw("Match error") | |
810 | 810 | } | |
811 | 811 | case _ => | |
812 | 812 | throw("Match error") | |
813 | 813 | } | |
814 | 814 | } | |
815 | 815 | else if ((finalizationStageOrUnit == finalizationStageShares)) | |
816 | 816 | then { | |
817 | 817 | let poolOrUnit = getString(keyNextPool) | |
818 | 818 | match poolOrUnit { | |
819 | 819 | case _: Unit => | |
820 | 820 | match getString(keyListHead(poolsListName)) { | |
821 | 821 | case _: Unit => | |
822 | 822 | let actions = if (force) | |
823 | 823 | then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced)] | |
824 | 824 | else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight)] | |
825 | 825 | let gwxRewardDepositInv = gwxRewardDeposit() | |
826 | 826 | if ((gwxRewardDepositInv == gwxRewardDepositInv)) | |
827 | 827 | then $Tuple2(actions, true) | |
828 | 828 | else throw("Strict value is not equal to itself.") | |
829 | 829 | case nextPoolStr: String => | |
830 | 830 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
831 | 831 | case _ => | |
832 | 832 | throw("Match error") | |
833 | 833 | } | |
834 | 834 | case poolStr: String => | |
835 | 835 | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
836 | 836 | if ((nextPoolOrUnit == nextPoolOrUnit)) | |
837 | 837 | then { | |
838 | 838 | let r = { | |
839 | 839 | let @ = invoke(this, "processPoolINTERNAL", [poolStr, force], nil) | |
840 | 840 | if ($isInstanceOf(@, "Boolean")) | |
841 | 841 | then @ | |
842 | 842 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
843 | 843 | } | |
844 | 844 | if ((r == r)) | |
845 | 845 | then if (r) | |
846 | 846 | then $Tuple2(nil, true) | |
847 | 847 | else match nextPoolOrUnit { | |
848 | 848 | case _: Unit => | |
849 | 849 | let actions = if (force) | |
850 | 850 | then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced), DeleteEntry(keyNextPool)] | |
851 | 851 | else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight), DeleteEntry(keyNextPool)] | |
852 | 852 | let gwxRewardDepositInv = gwxRewardDeposit() | |
853 | 853 | if ((gwxRewardDepositInv == gwxRewardDepositInv)) | |
854 | 854 | then $Tuple2(actions, true) | |
855 | 855 | else throw("Strict value is not equal to itself.") | |
856 | 856 | case nextPoolStr: String => | |
857 | 857 | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
858 | 858 | case _ => | |
859 | 859 | throw("Match error") | |
860 | 860 | } | |
861 | 861 | else throw("Strict value is not equal to itself.") | |
862 | 862 | } | |
863 | 863 | else throw("Strict value is not equal to itself.") | |
864 | 864 | case _ => | |
865 | 865 | throw("Match error") | |
866 | 866 | } | |
867 | 867 | } | |
868 | 868 | else throwErr("finalization is broken") | |
869 | 869 | } | |
870 | 870 | ||
871 | 871 | ||
872 | 872 | ||
873 | 873 | @Callable(i) | |
874 | 874 | func finalizeWrapper (counter) = { | |
875 | 875 | let votingEmissionRateContract = addressFromStringValue(getStringValue(this, keyVotingEmissionRateContract)) | |
876 | 876 | let result = { | |
877 | 877 | let @ = invoke(this, "finalizeHelper", nil, nil) | |
878 | 878 | if ($isInstanceOf(@, "Boolean")) | |
879 | 879 | then @ | |
880 | 880 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
881 | 881 | } | |
882 | 882 | if ((result == result)) | |
883 | 883 | then if (!(result)) | |
884 | 884 | then if ((counter == 0)) | |
885 | 885 | then throwErr("Current voting is not over yet") | |
886 | 886 | else { | |
887 | 887 | let inv = invoke(votingEmissionRateContract, "finalize", nil, nil) | |
888 | 888 | if ((inv == inv)) | |
889 | 889 | then $Tuple2(nil, unit) | |
890 | 890 | else throw("Strict value is not equal to itself.") | |
891 | 891 | } | |
892 | 892 | else { | |
893 | 893 | let maxDepth = valueOrElse(getInteger(this, keyMaxDepth), maxDepthDefault) | |
894 | 894 | if ((maxDepth > counter)) | |
895 | 895 | then { | |
896 | 896 | let inv = invoke(this, "finalizeWrapper", [(counter + 1)], nil) | |
897 | 897 | if ((inv == inv)) | |
898 | 898 | then $Tuple2(nil, unit) | |
899 | 899 | else throw("Strict value is not equal to itself.") | |
900 | 900 | } | |
901 | 901 | else $Tuple2(nil, unit) | |
902 | 902 | } | |
903 | 903 | else throw("Strict value is not equal to itself.") | |
904 | 904 | } | |
905 | 905 | ||
906 | 906 | ||
907 | 907 | ||
908 | 908 | @Callable(i) | |
909 | 909 | func finalize () = { | |
910 | 910 | let inv = invoke(this, "finalizeWrapper", [0], nil) | |
911 | 911 | if ((inv == inv)) | |
912 | 912 | then $Tuple2(nil, unit) | |
913 | 913 | else throw("Strict value is not equal to itself.") | |
914 | 914 | } | |
915 | 915 | ||
916 | 916 | ||
917 | 917 | ||
918 | 918 | @Callable(i) | |
919 | 919 | func containsNodeREADONLY (listName,id) = $Tuple2(nil, containsNode(listName, id)) | |
920 | 920 | ||
921 | 921 | ||
922 | 922 | ||
923 | 923 | @Callable(i) | |
924 | 924 | func insertNode (listName,id) = { | |
925 | 925 | let checkCaller = mustManager(i) | |
926 | 926 | if ((checkCaller == checkCaller)) | |
927 | 927 | then $Tuple2(insertNodeActions(listName, id), unit) | |
928 | 928 | else throw("Strict value is not equal to itself.") | |
929 | 929 | } | |
930 | 930 | ||
931 | 931 | ||
932 | 932 | ||
933 | 933 | @Callable(i) | |
934 | 934 | func deleteNode (listName,id) = { | |
935 | 935 | let checkCaller = mustManager(i) | |
936 | 936 | if ((checkCaller == checkCaller)) | |
937 | 937 | then $Tuple2(deleteNodeActions(listName, id), unit) | |
938 | 938 | else throw("Strict value is not equal to itself.") | |
939 | 939 | } | |
940 | 940 | ||
941 | 941 | ||
942 | 942 | ||
943 | 943 | @Callable(i) | |
944 | 944 | func isFinalizationInProgress () = { | |
945 | 945 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
946 | 946 | let finalizationInProgress = (finalizationStageOrUnit != unit) | |
947 | 947 | $Tuple2(nil, finalizationInProgress) | |
948 | 948 | } | |
949 | 949 | ||
950 | 950 | ||
951 | 951 | ||
952 | 952 | @Callable(i) | |
953 | 953 | func deletePool (amountAssetId,priceAssetId) = { | |
954 | 954 | let checkCaller = if (if ((i.caller == factoryContract)) | |
955 | 955 | then true | |
956 | 956 | else mustManager(i)) | |
957 | 957 | then true | |
958 | 958 | else throwErr("Permission denied") | |
959 | 959 | if ((checkCaller == checkCaller)) | |
960 | 960 | then { | |
961 | 961 | let listName = "pools" | |
962 | 962 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
963 | 963 | let id = makeString([amountAssetId, priceAssetId], separator) | |
964 | 964 | let actions = if (containsNode(listName, id)) | |
965 | 965 | then deleteNodeActions(listName, id) | |
966 | 966 | else nil | |
967 | 967 | ([DeleteEntry(keyInList(pool))] ++ actions) | |
968 | 968 | } | |
969 | 969 | else throw("Strict value is not equal to itself.") | |
970 | 970 | } | |
971 | 971 | ||
972 | 972 | ||
973 | 973 | ||
974 | 974 | @Callable(i) | |
975 | 975 | func resume (amountAssetId,priceAssetId,slippageToleranceOrMinOutAmount) = { | |
976 | 976 | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
977 | - | let $ | |
978 | - | let poolAddress = $ | |
979 | - | let lpAssetId = $ | |
977 | + | let $t03161931749 = valueOrErrorMessage(getPoolInfo(amountAssetId, priceAssetId), wrapErr("invalid assets")) | |
978 | + | let poolAddress = $t03161931749._1 | |
979 | + | let lpAssetId = $t03161931749._2 | |
980 | 980 | let feePayment = i.payments[0] | |
981 | 981 | let assetsStoreContract = addressFromStringValue(getStringValue(this, keyAssetsStoreContract)) | |
982 | 982 | let kBoostingConfig = "%s__config" | |
983 | 983 | let idxCfgAssetId = 1 | |
984 | 984 | let boostingContract = addressFromStringValue(getStrOrFail(this, keyBoostingContract)) | |
985 | 985 | let wxAssetId = fromBase58String(split(getStringValue(boostingContract, kBoostingConfig), separator)[idxCfgAssetId]) | |
986 | 986 | let amountAssetVerified = { | |
987 | 987 | let @ = invoke(assetsStoreContract, "isVerifiedREADONLY", [amountAssetId], nil) | |
988 | 988 | if ($isInstanceOf(@, "Boolean")) | |
989 | 989 | then @ | |
990 | 990 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
991 | 991 | } | |
992 | 992 | let priceAssetVerified = { | |
993 | 993 | let @ = invoke(assetsStoreContract, "isVerifiedREADONLY", [priceAssetId], nil) | |
994 | 994 | if ($isInstanceOf(@, "Boolean")) | |
995 | 995 | then @ | |
996 | 996 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
997 | 997 | } | |
998 | 998 | let resumptionFee = valueOrErrorMessage(getInteger(this, keyResumptionFee), "invalid resumption fee") | |
999 | 999 | let checks = [if ((finalizationStageOrUnit == unit)) | |
1000 | 1000 | then true | |
1001 | 1001 | else throwErr("finalization is in progress"), if ((feePayment.assetId == wxAssetId)) | |
1002 | 1002 | then true | |
1003 | 1003 | else throwErr("invalid fee payment asset id"), if ((feePayment.amount == resumptionFee)) | |
1004 | 1004 | then true | |
1005 | 1005 | else throwErr("invalid fee payment amount"), if (if (amountAssetVerified) | |
1006 | 1006 | then priceAssetVerified | |
1007 | 1007 | else false) | |
1008 | 1008 | then true | |
1009 | 1009 | else throwErr("both assets should be verified")] | |
1010 | 1010 | if ((checks == checks)) | |
1011 | 1011 | then { | |
1012 | 1012 | let lpAssetBalanceBefore = assetBalance(this, lpAssetId) | |
1013 | 1013 | if ((lpAssetBalanceBefore == lpAssetBalanceBefore)) | |
1014 | 1014 | then { | |
1015 | 1015 | let autoStake = false | |
1016 | 1016 | let put = if ((size(i.payments) == 1)) | |
1017 | 1017 | then { | |
1018 | 1018 | let balanceIsOk = { | |
1019 | 1019 | let @ = invoke(factoryContract, "checkBalance", [assetIdToString(lpAssetId)], nil) | |
1020 | 1020 | if ($isInstanceOf(@, "Boolean")) | |
1021 | 1021 | then @ | |
1022 | 1022 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
1023 | 1023 | } | |
1024 | 1024 | if (balanceIsOk) | |
1025 | 1025 | then true | |
1026 | 1026 | else throwErr("assets should be attached") | |
1027 | 1027 | } | |
1028 | 1028 | else if ((size(i.payments) == 2)) | |
1029 | 1029 | then { | |
1030 | 1030 | let poolScriptHash = valueOrErrorMessage(scriptHash(poolAddress), wrapErr("pool address is not scripted")) | |
1031 | 1031 | let allowedScriptHash = fromBase64String(valueOrErrorMessage(getString(factoryContract, keyAllowedLpStableScriptHash()), wrapErr("allowed lp stable script hash is not set"))) | |
1032 | 1032 | let isStable = (poolScriptHash == allowedScriptHash) | |
1033 | 1033 | let functionName = if (isStable) | |
1034 | 1034 | then "putOneTknV2" | |
1035 | 1035 | else "putOneTkn" | |
1036 | 1036 | invoke(poolAddress, functionName, [slippageToleranceOrMinOutAmount, autoStake], [i.payments[1]]) | |
1037 | 1037 | } | |
1038 | 1038 | else if ((size(i.payments) == 3)) | |
1039 | 1039 | then invoke(poolAddress, "put", [slippageToleranceOrMinOutAmount, autoStake], [i.payments[1], i.payments[2]]) | |
1040 | 1040 | else throwErr("invalid payments size") | |
1041 | 1041 | if ((put == put)) | |
1042 | 1042 | then { | |
1043 | 1043 | let lpAssetBalanceAfter = assetBalance(this, lpAssetId) | |
1044 | 1044 | if ((lpAssetBalanceAfter == lpAssetBalanceAfter)) | |
1045 | 1045 | then { | |
1046 | 1046 | let lpAssetBalanceDiff = (lpAssetBalanceAfter - lpAssetBalanceBefore) | |
1047 | 1047 | let lpAssetTransferActions = if ((lpAssetBalanceDiff > 0)) | |
1048 | 1048 | then [ScriptTransfer(i.caller, lpAssetBalanceDiff, lpAssetId)] | |
1049 | 1049 | else nil | |
1050 | 1050 | let setWxEmissionInv = invoke(factoryContract, "setWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil) | |
1051 | 1051 | if ((setWxEmissionInv == setWxEmissionInv)) | |
1052 | 1052 | then { | |
1053 | 1053 | let poolStatus = { | |
1054 | 1054 | let @ = invoke(factoryContract, "getPoolStatusREADONLY", [toString(poolAddress)], nil) | |
1055 | 1055 | if ($isInstanceOf(@, "Int")) | |
1056 | 1056 | then @ | |
1057 | 1057 | else throw(($getType(@) + " couldn't be cast to Int")) | |
1058 | 1058 | } | |
1059 | 1059 | let setPoolStatusInv = if ((poolStatus == poolStatusMatcherDisabled)) | |
1060 | 1060 | then invoke(factoryContract, "managePool", [toString(poolAddress), poolStatusActive], nil) | |
1061 | 1061 | else unit | |
1062 | 1062 | if ((setPoolStatusInv == setPoolStatusInv)) | |
1063 | 1063 | then { | |
1064 | 1064 | let pool = $Tuple2(amountAssetId, priceAssetId) | |
1065 | 1065 | let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool))) | |
1066 | 1066 | $Tuple2((inListActions ++ lpAssetTransferActions), unit) | |
1067 | 1067 | } | |
1068 | 1068 | else throw("Strict value is not equal to itself.") | |
1069 | 1069 | } | |
1070 | 1070 | else throw("Strict value is not equal to itself.") | |
1071 | 1071 | } | |
1072 | 1072 | else throw("Strict value is not equal to itself.") | |
1073 | 1073 | } | |
1074 | 1074 | else throw("Strict value is not equal to itself.") | |
1075 | 1075 | } | |
1076 | 1076 | else throw("Strict value is not equal to itself.") | |
1077 | 1077 | } | |
1078 | 1078 | else throw("Strict value is not equal to itself.") | |
1079 | 1079 | } | |
1080 | 1080 | ||
1081 | 1081 | ||
1082 | 1082 | @Verifier(tx) | |
1083 | 1083 | func verify () = { | |
1084 | 1084 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
1085 | 1085 | case pk: ByteVector => | |
1086 | 1086 | pk | |
1087 | 1087 | case _: Unit => | |
1088 | 1088 | tx.senderPublicKey | |
1089 | 1089 | case _ => | |
1090 | 1090 | throw("Match error") | |
1091 | 1091 | } | |
1092 | 1092 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
1093 | 1093 | } | |
1094 | 1094 |
github/deemru/w8io/fabc49c 92.87 ms ◑