tx · D7EPDCo2wA3xFc7aLesPMdwBveC9U9XEY13vHGEZ2aSF 3MtCM7htKGSBcfYQ6GCYRGfihHiNAAjeYdF: -0.02800000 Waves 2023.02.22 15:00 [2460827] smart account 3MtCM7htKGSBcfYQ6GCYRGfihHiNAAjeYdF > SELF 0.00000000 Waves
{ "type": 13, "id": "D7EPDCo2wA3xFc7aLesPMdwBveC9U9XEY13vHGEZ2aSF", "fee": 2800000, "feeAssetId": null, "timestamp": 1677067228969, "version": 1, "sender": "3MtCM7htKGSBcfYQ6GCYRGfihHiNAAjeYdF", "senderPublicKey": "4CNnZMAvCWj8716jHBDymA8JdEGyrPv1kepQg6qZkyTy", "proofs": [ "2XY82rgAHakJNjLLsNEjE5euPqA59PeFMJ2Pgc5UryLRNLjJiC35bp8KeorKwzVGGRVvhn8mXRL2tF28ko8vfSyv" ], "script": "base64:BgJcCAISAwoBCBIAEgQKAggBEgcKBQgICAgBEgQKAggIEgUKAwgIARIECgIICBIDCgEBEgMKAQESBAoCCAgSBAoCCAQSABIDCgEBEgASBAoCCAgSBAoCCAgSBAoCCAgyAAlzZXBhcmF0b3ICAl9fAA5wb29sV2VpZ2h0TXVsdACAwtcvAA9tYXhEZXB0aERlZmF1bHQACgAWZmluYWxpemF0aW9uU3RhZ2VUb3RhbAAAABdmaW5hbGl6YXRpb25TdGFnZVNoYXJlcwABAA5rZXlFcG9jaExlbmd0aAkAuQkCCQDMCAICAiVzCQDMCAICC2Vwb2NoTGVuZ3RoBQNuaWwFCXNlcGFyYXRvcgAPa2V5Q3VycmVudEVwb2NoCQC5CQIJAMwIAgICJXMJAMwIAgIMY3VycmVudEVwb2NoBQNuaWwFCXNlcGFyYXRvcgALa2V5TWF4RGVwdGgJALkJAgkAzAgCAgIlcwkAzAgCAghtYXhEZXB0aAUDbmlsBQlzZXBhcmF0b3IAImtleVZvdGluZ0VtaXNzaW9uQ2FuZGlkYXRlQ29udHJhY3QJALkJAgkAzAgCAgIlcwkAzAgCAh92b3RpbmdF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WxldGVOb2RlAghsaXN0TmFtZQJpZAQLY2hlY2tDYWxsZXIJAQttdXN0TWFuYWdlcgEFAWkDCQAAAgULY2hlY2tDYWxsZXIFC2NoZWNrQ2FsbGVyCQCUCgIJARFkZWxldGVOb2RlQWN0aW9ucwIFCGxpc3ROYW1lBQJpZAUEdW5pdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleeRpCD0=", "chainId": 84, "height": 2460827, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HXzAhfLHH1t7JZXsav7AsCjP9UqReHPStM3sNABvtnC9 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let separator = "__" | |
5 | + | ||
6 | + | let poolWeightMult = 100000000 | |
7 | + | ||
8 | + | let maxDepthDefault = 10 | |
9 | + | ||
10 | + | let finalizationStageTotal = 0 | |
11 | + | ||
12 | + | let finalizationStageShares = 1 | |
13 | + | ||
14 | + | let keyEpochLength = makeString(["%s", "epochLength"], separator) | |
15 | + | ||
16 | + | let keyCurrentEpoch = makeString(["%s", "currentEpoch"], separator) | |
17 | + | ||
18 | + | let keyMaxDepth = makeString(["%s", "maxDepth"], separator) | |
19 | + | ||
20 | + | let keyVotingEmissionCandidateContract = makeString(["%s", "votingEmissionCandidateContract"], separator) | |
21 | + | ||
22 | + | let keyFactoryContract = makeString(["%s", "factoryContract"], separator) | |
23 | + | ||
24 | + | let keyBoostingContract = makeString(["%s", "boostingContract"], separator) | |
25 | + | ||
26 | + | let keyStakingContract = makeString(["%s", "stakingContract"], separator) | |
27 | + | ||
28 | + | let keyFinalizationStage = makeString(["%s", "finalizationStage"], separator) | |
29 | + | ||
30 | + | let keyNextPool = makeString(["%s", "nextPool"], separator) | |
31 | + | ||
32 | + | let keyNextUser = makeString(["%s", "nextUser"], separator) | |
33 | + | ||
34 | + | let keyStartHeight = makeString(["%s", "startHeight"], separator) | |
35 | + | ||
36 | + | let keyCurrentEpochUi = makeString(["%s", "currentEpochUi"], separator) | |
37 | + | ||
38 | + | let keyStartHeightUi = makeString(["%s", "startHeightUi"], separator) | |
39 | + | ||
40 | + | let keyFinalizationShouldBeForced = makeString(["%s", "force"], separator) | |
41 | + | ||
42 | + | func keyStartHeightByEpoch (epoch) = makeString(["%s%d", "startHeight", toString(epoch)], separator) | |
43 | + | ||
44 | + | ||
45 | + | func keyFinalized (epoch) = makeString(["%s%d", "finalized", toString(epoch)], separator) | |
46 | + | ||
47 | + | ||
48 | + | func keyInList (pool) = { | |
49 | + | let $t015411581 = pool | |
50 | + | let amountAssetId = $t015411581._1 | |
51 | + | let priceAssetId = $t015411581._2 | |
52 | + | makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator) | |
53 | + | } | |
54 | + | ||
55 | + | ||
56 | + | func keyUsed (address,epoch) = makeString(["%s%s%d", "used", toString(address), toString(epoch)], separator) | |
57 | + | ||
58 | + | ||
59 | + | func keyVote (pool,address,epoch) = { | |
60 | + | let $t018611901 = pool | |
61 | + | let amountAssetId = $t018611901._1 | |
62 | + | let priceAssetId = $t018611901._2 | |
63 | + | makeString(["%s%s%s%s%d", "vote", amountAssetId, priceAssetId, toString(address), toString(epoch)], separator) | |
64 | + | } | |
65 | + | ||
66 | + | ||
67 | + | func keyVotingResult (pool,epoch) = { | |
68 | + | let $t020892129 = pool | |
69 | + | let amountAssetId = $t020892129._1 | |
70 | + | let priceAssetId = $t020892129._2 | |
71 | + | makeString(["%s%s%s%d", "votingResult", amountAssetId, priceAssetId, toString(epoch)], separator) | |
72 | + | } | |
73 | + | ||
74 | + | ||
75 | + | func keyPoolShare (pool,epoch) = { | |
76 | + | let $t023002340 = pool | |
77 | + | let amountAssetId = $t023002340._1 | |
78 | + | let priceAssetId = $t023002340._2 | |
79 | + | makeString(["%s%s%s%d", "poolShare", amountAssetId, priceAssetId, toString(epoch)], separator) | |
80 | + | } | |
81 | + | ||
82 | + | ||
83 | + | func keyTotalVotes (epoch) = makeString(["%s%d", "totalVotes", toString(epoch)], separator) | |
84 | + | ||
85 | + | ||
86 | + | func getValueOrFail (address,key,type) = { | |
87 | + | let error = makeString(["mandatory ", toString(address), ".", key, " is not defined"], "") | |
88 | + | valueOrErrorMessage( match type { | |
89 | + | case str: String => | |
90 | + | getString(address, key) | |
91 | + | case int: Int => | |
92 | + | getInteger(address, key) | |
93 | + | case _ => | |
94 | + | throw("invalid entry type") | |
95 | + | }, error) | |
96 | + | } | |
97 | + | ||
98 | + | ||
99 | + | func getStrOrFail (address,key) = { | |
100 | + | let @ = getValueOrFail(address, key, "") | |
101 | + | if ($isInstanceOf(@, "String")) | |
102 | + | then @ | |
103 | + | else throw(($getType(@) + " couldn't be cast to String")) | |
104 | + | } | |
105 | + | ||
106 | + | ||
107 | + | func getIntOrFail (address,key) = { | |
108 | + | let @ = getValueOrFail(address, key, 0) | |
109 | + | if ($isInstanceOf(@, "Int")) | |
110 | + | then @ | |
111 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
112 | + | } | |
113 | + | ||
114 | + | ||
115 | + | func poolToString (pool) = ((pool._1 + separator) + pool._2) | |
116 | + | ||
117 | + | ||
118 | + | func stringToPool (str) = { | |
119 | + | let parts = split(str, separator) | |
120 | + | if ((size(parts) == 2)) | |
121 | + | then $Tuple2(parts[0], parts[1]) | |
122 | + | else throw("invalid pool string") | |
123 | + | } | |
124 | + | ||
125 | + | ||
126 | + | func getLpAssetByPoolAssets (amountAssetId,priceAssetId) = { | |
127 | + | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
128 | + | ||
129 | + | func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract") | |
130 | + | ||
131 | + | func keyMappingPoolContractToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
132 | + | ||
133 | + | let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract)) | |
134 | + | let amountAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amountAssetId)) | |
135 | + | let priceAssetInternalId = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAssetId)) | |
136 | + | let poolContractAddress = getStrOrFail(factoryContract, keyMappingPoolAssetsToPoolContractAddress(amountAssetInternalId, priceAssetInternalId)) | |
137 | + | let lpAssetId = getStrOrFail(factoryContract, keyMappingPoolContractToLPAsset(poolContractAddress)) | |
138 | + | lpAssetId | |
139 | + | } | |
140 | + | ||
141 | + | ||
142 | + | func checkWxEmissionPoolLabel (pool) = { | |
143 | + | let $t046334673 = pool | |
144 | + | let amountAssetId = $t046334673._1 | |
145 | + | let priceAssetId = $t046334673._2 | |
146 | + | let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract)) | |
147 | + | let @ = invoke(factoryContract, "checkWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil) | |
148 | + | if ($isInstanceOf(@, "Boolean")) | |
149 | + | then @ | |
150 | + | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
151 | + | } | |
152 | + | ||
153 | + | ||
154 | + | let poolsListName = "pools" | |
155 | + | ||
156 | + | func getVotesListName (pool) = { | |
157 | + | let $t049835023 = pool | |
158 | + | let amountAssetId = $t049835023._1 | |
159 | + | let priceAssetId = $t049835023._2 | |
160 | + | makeString(["votes", amountAssetId, priceAssetId], separator) | |
161 | + | } | |
162 | + | ||
163 | + | ||
164 | + | func keyListHead (listName) = { | |
165 | + | let meta = if ((listName == poolsListName)) | |
166 | + | then "%s%s" | |
167 | + | else "%s%s%s%s" | |
168 | + | makeString([meta, listName, "head"], separator) | |
169 | + | } | |
170 | + | ||
171 | + | ||
172 | + | func keyListSize (listName) = { | |
173 | + | let meta = if ((listName == poolsListName)) | |
174 | + | then "%s%s" | |
175 | + | else "%s%s%s%s" | |
176 | + | makeString([meta, listName, "size"], separator) | |
177 | + | } | |
178 | + | ||
179 | + | ||
180 | + | func keyListPrev (listName,id) = { | |
181 | + | let meta = if ((listName == poolsListName)) | |
182 | + | then "%s%s%s%s" | |
183 | + | else "%s%s%s%s%s" | |
184 | + | makeString([meta, listName, id, "prev"], separator) | |
185 | + | } | |
186 | + | ||
187 | + | ||
188 | + | func keyListNext (listName,id) = { | |
189 | + | let meta = if ((listName == poolsListName)) | |
190 | + | then "%s%s%s%s" | |
191 | + | else "%s%s%s%s%s" | |
192 | + | makeString([meta, listName, id, "next"], separator) | |
193 | + | } | |
194 | + | ||
195 | + | ||
196 | + | func containsNode (listName,id) = { | |
197 | + | let headOrUnit = getString(this, keyListHead(listName)) | |
198 | + | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
199 | + | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
200 | + | if (if ((id == valueOrElse(headOrUnit, ""))) | |
201 | + | then true | |
202 | + | else (prevOrUnit != unit)) | |
203 | + | then true | |
204 | + | else (nextOrUnit != unit) | |
205 | + | } | |
206 | + | ||
207 | + | ||
208 | + | func insertNodeActions (listName,id) = { | |
209 | + | let headOrUnit = getString(this, keyListHead(listName)) | |
210 | + | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
211 | + | let checkNode = if (!(containsNode(listName, id))) | |
212 | + | then true | |
213 | + | else throw("Node exists") | |
214 | + | if ((checkNode == checkNode)) | |
215 | + | then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if ((headOrUnit != unit)) | |
216 | + | then [StringEntry(keyListNext(listName, id), value(headOrUnit)), StringEntry(keyListPrev(listName, value(headOrUnit)), id)] | |
217 | + | else nil)) ++ [StringEntry(keyListHead(listName), id)]) | |
218 | + | else throw("Strict value is not equal to itself.") | |
219 | + | } | |
220 | + | ||
221 | + | ||
222 | + | func deleteNodeActions (listName,id) = { | |
223 | + | let headOrUnit = getString(this, keyListHead(listName)) | |
224 | + | let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0) | |
225 | + | let prevOrUnit = getString(this, keyListPrev(listName, id)) | |
226 | + | let nextOrUnit = getString(this, keyListNext(listName, id)) | |
227 | + | ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if ((prevOrUnit != unit)) | |
228 | + | then (nextOrUnit != unit) | |
229 | + | else false) | |
230 | + | then [StringEntry(keyListNext(listName, value(prevOrUnit)), value(nextOrUnit)), StringEntry(keyListPrev(listName, value(nextOrUnit)), value(prevOrUnit)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))] | |
231 | + | else if ((nextOrUnit != unit)) | |
232 | + | then [StringEntry(keyListHead(listName), value(nextOrUnit)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(nextOrUnit)))] | |
233 | + | else if ((prevOrUnit != unit)) | |
234 | + | then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prevOrUnit)))] | |
235 | + | else if ((id == valueOrElse(headOrUnit, ""))) | |
236 | + | then [DeleteEntry(keyListHead(listName))] | |
237 | + | else throw(((("invalid node: " + listName) + ".") + id)))) | |
238 | + | } | |
239 | + | ||
240 | + | ||
241 | + | func keyManagerPublicKey () = "%s__managerPublicKey" | |
242 | + | ||
243 | + | ||
244 | + | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
245 | + | ||
246 | + | ||
247 | + | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
248 | + | case s: String => | |
249 | + | fromBase58String(s) | |
250 | + | case _: Unit => | |
251 | + | unit | |
252 | + | case _ => | |
253 | + | throw("Match error") | |
254 | + | } | |
255 | + | ||
256 | + | ||
257 | + | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
258 | + | case s: String => | |
259 | + | fromBase58String(s) | |
260 | + | case _: Unit => | |
261 | + | unit | |
262 | + | case _ => | |
263 | + | throw("Match error") | |
264 | + | } | |
265 | + | ||
266 | + | ||
267 | + | let permissionDeniedError = throw("Permission denied") | |
268 | + | ||
269 | + | func mustThis (i) = if ((i.caller == this)) | |
270 | + | then true | |
271 | + | else permissionDeniedError | |
272 | + | ||
273 | + | ||
274 | + | func mustManager (i) = match managerPublicKeyOrUnit() { | |
275 | + | case pk: ByteVector => | |
276 | + | if ((i.callerPublicKey == pk)) | |
277 | + | then true | |
278 | + | else permissionDeniedError | |
279 | + | case _: Unit => | |
280 | + | mustThis(i) | |
281 | + | case _ => | |
282 | + | throw("Match error") | |
283 | + | } | |
284 | + | ||
285 | + | ||
286 | + | @Callable(i) | |
287 | + | func setManager (pendingManagerPublicKey) = { | |
288 | + | let checkCaller = mustManager(i) | |
289 | + | if ((checkCaller == checkCaller)) | |
290 | + | then { | |
291 | + | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
292 | + | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
293 | + | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
294 | + | else throw("Strict value is not equal to itself.") | |
295 | + | } | |
296 | + | else throw("Strict value is not equal to itself.") | |
297 | + | } | |
298 | + | ||
299 | + | ||
300 | + | ||
301 | + | @Callable(i) | |
302 | + | func confirmManager () = { | |
303 | + | let pm = pendingManagerPublicKeyOrUnit() | |
304 | + | let hasPM = if (isDefined(pm)) | |
305 | + | then true | |
306 | + | else throw("No pending manager") | |
307 | + | if ((hasPM == hasPM)) | |
308 | + | then { | |
309 | + | let checkPM = if ((i.callerPublicKey == value(pm))) | |
310 | + | then true | |
311 | + | else throw("You are not pending manager") | |
312 | + | if ((checkPM == checkPM)) | |
313 | + | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
314 | + | else throw("Strict value is not equal to itself.") | |
315 | + | } | |
316 | + | else throw("Strict value is not equal to itself.") | |
317 | + | } | |
318 | + | ||
319 | + | ||
320 | + | ||
321 | + | @Callable(i) | |
322 | + | func getUserGwxAmountAtHeight (userAddress,targetHeight) = { | |
323 | + | let boostingContractAddress = valueOrErrorMessage(addressFromString(getStrOrFail(this, keyBoostingContract)), "invalid boosting contract address") | |
324 | + | $Tuple2(nil, { | |
325 | + | let @ = invoke(boostingContractAddress, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil) | |
326 | + | if ($isInstanceOf(@, "Int")) | |
327 | + | then @ | |
328 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
329 | + | }) | |
330 | + | } | |
331 | + | ||
332 | + | ||
333 | + | ||
334 | + | @Callable(i) | |
335 | + | func constructor (factoryContract,votingEmissionCandidateContract,boostingContract,stakingContract,epochLength) = { | |
336 | + | let checks = [mustManager(i), if ((addressFromString(factoryContract) != unit)) | |
337 | + | then true | |
338 | + | else "invalid factory contract address", if ((addressFromString(votingEmissionCandidateContract) != unit)) | |
339 | + | then true | |
340 | + | else "invalid voting emission candidate contract address", if ((addressFromString(boostingContract) != unit)) | |
341 | + | then true | |
342 | + | else "invalid boosting contract address", if ((addressFromString(stakingContract) != unit)) | |
343 | + | then true | |
344 | + | else "invalid staking contract address", if ((epochLength > 0)) | |
345 | + | then true | |
346 | + | else throw("invalid epoch length")] | |
347 | + | if ((checks == checks)) | |
348 | + | then $Tuple2([StringEntry(keyFactoryContract, factoryContract), StringEntry(keyVotingEmissionCandidateContract, votingEmissionCandidateContract), StringEntry(keyBoostingContract, boostingContract), StringEntry(keyStakingContract, stakingContract), IntegerEntry(keyEpochLength, epochLength)], unit) | |
349 | + | else throw("Strict value is not equal to itself.") | |
350 | + | } | |
351 | + | ||
352 | + | ||
353 | + | ||
354 | + | @Callable(i) | |
355 | + | func create (amountAssetId,priceAssetId) = { | |
356 | + | let checks = [if ((toBase58String(i.caller.bytes) == valueOrElse(getString(this, keyVotingEmissionCandidateContract), ""))) | |
357 | + | then true | |
358 | + | else mustManager(i)] | |
359 | + | if ((checks == checks)) | |
360 | + | then { | |
361 | + | let pool = $Tuple2(amountAssetId, priceAssetId) | |
362 | + | let inListActions = ([BooleanEntry(keyInList(pool), true)] ++ insertNodeActions(poolsListName, poolToString(pool))) | |
363 | + | let currentEpochIsNotDefined = (getInteger(this, keyCurrentEpoch) == unit) | |
364 | + | let startHeightActions = if (currentEpochIsNotDefined) | |
365 | + | then { | |
366 | + | let epoch = 0 | |
367 | + | [IntegerEntry(keyCurrentEpoch, epoch), IntegerEntry(keyStartHeightByEpoch(epoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, height)] | |
368 | + | } | |
369 | + | else nil | |
370 | + | $Tuple2((inListActions ++ startHeightActions), unit) | |
371 | + | } | |
372 | + | else throw("Strict value is not equal to itself.") | |
373 | + | } | |
374 | + | ||
375 | + | ||
376 | + | ||
377 | + | @Callable(i) | |
378 | + | func vote (amountAssetId,priceAssetId,amount) = { | |
379 | + | let pool = $Tuple2(amountAssetId, priceAssetId) | |
380 | + | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
381 | + | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
382 | + | let epochLength = getIntOrFail(this, keyEpochLength) | |
383 | + | let endHeight = (startHeight + epochLength) | |
384 | + | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
385 | + | let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0) | |
386 | + | let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0) | |
387 | + | let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0) | |
388 | + | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0) | |
389 | + | let gwxAmountAtEndTotal = { | |
390 | + | let @ = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(i.caller.bytes), endHeight], nil) | |
391 | + | if ($isInstanceOf(@, "Int")) | |
392 | + | then @ | |
393 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
394 | + | } | |
395 | + | let available = (gwxAmountAtEndTotal - used) | |
396 | + | let newVote = (vote + amount) | |
397 | + | let wxEmission = checkWxEmissionPoolLabel(pool) | |
398 | + | let checks = [if ((getBoolean(keyInList(pool)) != unit)) | |
399 | + | then true | |
400 | + | else throw("invalid assets"), if ((endHeight > height)) | |
401 | + | then true | |
402 | + | else throw("invalid height"), if ((finalizationStageOrUnit == unit)) | |
403 | + | then true | |
404 | + | else throw("finalization in progress"), if ((gwxAmountAtEndTotal > 0)) | |
405 | + | then true | |
406 | + | else throw("you do not have gWX"), if (if ((amount > 0)) | |
407 | + | then (available >= amount) | |
408 | + | else false) | |
409 | + | then true | |
410 | + | else throw("invalid amount"), if (wxEmission) | |
411 | + | then true | |
412 | + | else throw("pool hasn't WX_EMISSION label")] | |
413 | + | if ((checks == checks)) | |
414 | + | then { | |
415 | + | let votesListName = getVotesListName(pool) | |
416 | + | let userAddressStr = toString(i.caller) | |
417 | + | let votesListActions = if (containsNode(votesListName, userAddressStr)) | |
418 | + | then nil | |
419 | + | else insertNodeActions(votesListName, userAddressStr) | |
420 | + | $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) | |
421 | + | } | |
422 | + | else throw("Strict value is not equal to itself.") | |
423 | + | } | |
424 | + | ||
425 | + | ||
426 | + | ||
427 | + | @Callable(i) | |
428 | + | func cancelVote (amountAssetId,priceAssetId) = { | |
429 | + | let pool = $Tuple2(amountAssetId, priceAssetId) | |
430 | + | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
431 | + | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
432 | + | let epochLength = getIntOrFail(this, keyEpochLength) | |
433 | + | let endHeight = (startHeight + epochLength) | |
434 | + | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
435 | + | let used = valueOrElse(getInteger(this, keyUsed(i.caller, epoch)), 0) | |
436 | + | let vote = valueOrElse(getInteger(this, keyVote(pool, i.caller, epoch)), 0) | |
437 | + | let poolResult = valueOrElse(getInteger(this, keyVotingResult(pool, epoch)), 0) | |
438 | + | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(epoch)), 0) | |
439 | + | let checks = [if ((getBoolean(keyInList(pool)) != unit)) | |
440 | + | then true | |
441 | + | else throw("invalid assets"), if ((endHeight > height)) | |
442 | + | then true | |
443 | + | else throw("invalid height"), if ((finalizationStageOrUnit == unit)) | |
444 | + | then true | |
445 | + | else throw("finalization in progress"), if ((vote > 0)) | |
446 | + | then true | |
447 | + | else throw("no vote")] | |
448 | + | if ((checks == checks)) | |
449 | + | then { | |
450 | + | let votesListName = getVotesListName(pool) | |
451 | + | let userAddressStr = toString(i.caller) | |
452 | + | $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) | |
453 | + | } | |
454 | + | else throw("Strict value is not equal to itself.") | |
455 | + | } | |
456 | + | ||
457 | + | ||
458 | + | ||
459 | + | @Callable(i) | |
460 | + | func setEpochLength (newEpochLength) = { | |
461 | + | let checks = [mustManager(i), if ((newEpochLength > 0)) | |
462 | + | then true | |
463 | + | else throw("invalid epoch length")] | |
464 | + | if ((checks == checks)) | |
465 | + | then $Tuple2([IntegerEntry(keyEpochLength, newEpochLength)], unit) | |
466 | + | else throw("Strict value is not equal to itself.") | |
467 | + | } | |
468 | + | ||
469 | + | ||
470 | + | ||
471 | + | @Callable(i) | |
472 | + | func setMaxDepth (newMaxDepth) = { | |
473 | + | let checks = [mustManager(i), if ((newMaxDepth > 0)) | |
474 | + | then true | |
475 | + | else throw("invalid max depth")] | |
476 | + | if ((checks == checks)) | |
477 | + | then $Tuple2([IntegerEntry(keyMaxDepth, newMaxDepth)], unit) | |
478 | + | else throw("Strict value is not equal to itself.") | |
479 | + | } | |
480 | + | ||
481 | + | ||
482 | + | ||
483 | + | @Callable(i) | |
484 | + | func processVoteINTERNAL (poolStr,userAddressStr) = { | |
485 | + | let checkCaller = mustThis(i) | |
486 | + | if ((checkCaller == checkCaller)) | |
487 | + | then { | |
488 | + | let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), ("processVoteINTERNAL: invalid user address " + userAddressStr)) | |
489 | + | let epoch = getIntOrFail(this, keyCurrentEpoch) | |
490 | + | let epochPrevious = (epoch - 1) | |
491 | + | let epochLength = getIntOrFail(this, keyEpochLength) | |
492 | + | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
493 | + | let endHeight = (startHeight + epochLength) | |
494 | + | let startHeightPrevious = getIntOrFail(this, keyStartHeightByEpoch(epochPrevious)) | |
495 | + | let endHeightPrevious = (startHeightPrevious + epochLength) | |
496 | + | let checkTargetEpoch = if ((epochPrevious >= 0)) | |
497 | + | then true | |
498 | + | else throw("processVoteINTERNAL: invalid previous epoch") | |
499 | + | if ((checkTargetEpoch == checkTargetEpoch)) | |
500 | + | then { | |
501 | + | let pool = stringToPool(poolStr) | |
502 | + | let $t01771317753 = pool | |
503 | + | let amountAssetId = $t01771317753._1 | |
504 | + | let priceAssetId = $t01771317753._2 | |
505 | + | let wxEmission = checkWxEmissionPoolLabel(pool) | |
506 | + | let gwxAmountAtEndTotal = { | |
507 | + | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeight], nil) | |
508 | + | if ($isInstanceOf(@, "Int")) | |
509 | + | then @ | |
510 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
511 | + | } | |
512 | + | let gwxAmountAtEndTotalPrevious = { | |
513 | + | let @ = invoke(this, "getUserGwxAmountAtHeight", [userAddressStr, endHeightPrevious], nil) | |
514 | + | if ($isInstanceOf(@, "Int")) | |
515 | + | then @ | |
516 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
517 | + | } | |
518 | + | let totalVotes = valueOrElse(getInteger(keyTotalVotes(epoch)), 0) | |
519 | + | let votingResult = valueOrElse(getInteger(keyVotingResult(pool, epoch)), 0) | |
520 | + | let votePrevious = valueOrErrorMessage(getInteger(keyVote(pool, userAddress, epochPrevious)), (((("processVoteINTERNAL " + poolStr) + " ") + userAddressStr) + ": no previous vote")) | |
521 | + | let used = valueOrElse(getInteger(this, keyUsed(userAddress, epoch)), 0) | |
522 | + | let newVote = if ((gwxAmountAtEndTotalPrevious > 0)) | |
523 | + | then fraction(votePrevious, gwxAmountAtEndTotal, gwxAmountAtEndTotalPrevious) | |
524 | + | else 0 | |
525 | + | let actions = if (if ((newVote > 0)) | |
526 | + | then wxEmission | |
527 | + | else false) | |
528 | + | then [IntegerEntry(keyVote(pool, userAddress, epoch), newVote), IntegerEntry(keyTotalVotes(epoch), (totalVotes + newVote)), IntegerEntry(keyVotingResult(pool, epoch), (votingResult + newVote)), IntegerEntry(keyUsed(userAddress, epoch), (used + newVote))] | |
529 | + | else deleteNodeActions(getVotesListName(pool), userAddressStr) | |
530 | + | $Tuple2(actions, unit) | |
531 | + | } | |
532 | + | else throw("Strict value is not equal to itself.") | |
533 | + | } | |
534 | + | else throw("Strict value is not equal to itself.") | |
535 | + | } | |
536 | + | ||
537 | + | ||
538 | + | ||
539 | + | @Callable(i) | |
540 | + | func processPoolINTERNAL (poolStr,force) = { | |
541 | + | let checkCaller = mustThis(i) | |
542 | + | if ((checkCaller == checkCaller)) | |
543 | + | then { | |
544 | + | let targetEpoch = { | |
545 | + | let currentEpoch = getIntOrFail(this, keyCurrentEpoch) | |
546 | + | if (force) | |
547 | + | then currentEpoch | |
548 | + | else (currentEpoch - 1) | |
549 | + | } | |
550 | + | let checkTargetEpoch = if ((targetEpoch >= 0)) | |
551 | + | then true | |
552 | + | else throw("processPoolINTERNAL: invalid target epoch") | |
553 | + | if ((checkTargetEpoch == checkTargetEpoch)) | |
554 | + | then { | |
555 | + | let pool = stringToPool(poolStr) | |
556 | + | let $t01951719557 = pool | |
557 | + | let amountAssetId = $t01951719557._1 | |
558 | + | let priceAssetId = $t01951719557._2 | |
559 | + | let stakingContract = addressFromStringValue(getStrOrFail(this, keyStakingContract)) | |
560 | + | let factoryContract = addressFromStringValue(getStrOrFail(this, keyFactoryContract)) | |
561 | + | let lpAssetId = getLpAssetByPoolAssets(amountAssetId, priceAssetId) | |
562 | + | let r = { | |
563 | + | let @ = invoke(stakingContract, "usersListTraversal", [lpAssetId], nil) | |
564 | + | if ($isInstanceOf(@, "Boolean")) | |
565 | + | then @ | |
566 | + | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
567 | + | } | |
568 | + | if ((r == r)) | |
569 | + | then if (r) | |
570 | + | then $Tuple2(nil, true) | |
571 | + | else { | |
572 | + | let wxEmission = checkWxEmissionPoolLabel(pool) | |
573 | + | let totalVotes = valueOrElse(getInteger(this, keyTotalVotes(targetEpoch)), 0) | |
574 | + | let votingResult = valueOrElse(getInteger(this, keyVotingResult(pool, targetEpoch)), 0) | |
575 | + | let share = if (if ((totalVotes == 0)) | |
576 | + | then true | |
577 | + | else !(wxEmission)) | |
578 | + | then 0 | |
579 | + | else fraction(votingResult, poolWeightMult, totalVotes) | |
580 | + | let modifyWeightInv = invoke(factoryContract, "modifyWeight", [lpAssetId, share], nil) | |
581 | + | if ((modifyWeightInv == modifyWeightInv)) | |
582 | + | then { | |
583 | + | let poolsListActions = if (if (wxEmission) | |
584 | + | then true | |
585 | + | else force) | |
586 | + | then nil | |
587 | + | else ([DeleteEntry(keyInList(pool))] ++ deleteNodeActions(poolsListName, poolStr)) | |
588 | + | $Tuple2(([IntegerEntry(keyPoolShare(pool, targetEpoch), share)] ++ poolsListActions), false) | |
589 | + | } | |
590 | + | else throw("Strict value is not equal to itself.") | |
591 | + | } | |
592 | + | else throw("Strict value is not equal to itself.") | |
593 | + | } | |
594 | + | else throw("Strict value is not equal to itself.") | |
595 | + | } | |
596 | + | else throw("Strict value is not equal to itself.") | |
597 | + | } | |
598 | + | ||
599 | + | ||
600 | + | ||
601 | + | @Callable(i) | |
602 | + | func finalizeHelper () = { | |
603 | + | let force = valueOrElse(getBoolean(keyFinalizationShouldBeForced), false) | |
604 | + | let epoch = valueOrElse(getInteger(this, keyCurrentEpoch), 0) | |
605 | + | let previousEpoch = (epoch - 1) | |
606 | + | let startHeight = getIntOrFail(this, keyStartHeightByEpoch(epoch)) | |
607 | + | let epochLength = getIntOrFail(this, keyEpochLength) | |
608 | + | let endHeight = (startHeight + epochLength) | |
609 | + | let finalizationStageOrUnit = getInteger(this, keyFinalizationStage) | |
610 | + | if (if (if ((height >= endHeight)) | |
611 | + | then (finalizationStageOrUnit == unit) | |
612 | + | else false) | |
613 | + | then !(force) | |
614 | + | else false) | |
615 | + | then { | |
616 | + | let newEpoch = (epoch + 1) | |
617 | + | $Tuple2([IntegerEntry(keyStartHeightByEpoch(newEpoch), height), IntegerEntry(keyStartHeight, height), IntegerEntry(keyCurrentEpoch, newEpoch), IntegerEntry(keyFinalizationStage, finalizationStageTotal)], true) | |
618 | + | } | |
619 | + | else if (if (force) | |
620 | + | then (finalizationStageOrUnit == unit) | |
621 | + | else false) | |
622 | + | then $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares)], true) | |
623 | + | else if ((finalizationStageOrUnit == unit)) | |
624 | + | then $Tuple2(nil, false) | |
625 | + | else if ((finalizationStageOrUnit == finalizationStageTotal)) | |
626 | + | then { | |
627 | + | let poolOrUnit = getString(keyNextPool) | |
628 | + | let userOrUnit = getString(keyNextUser) | |
629 | + | match poolOrUnit { | |
630 | + | case _: Unit => | |
631 | + | match getString(keyListHead(poolsListName)) { | |
632 | + | case _: Unit => | |
633 | + | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true) | |
634 | + | case poolsHeadStr: String => | |
635 | + | $Tuple2([StringEntry(keyNextPool, poolsHeadStr)], true) | |
636 | + | case _ => | |
637 | + | throw("Match error") | |
638 | + | } | |
639 | + | case poolStr: String => | |
640 | + | let pool = stringToPool(poolStr) | |
641 | + | let nextUserOrUnit = match userOrUnit { | |
642 | + | case _: Unit => | |
643 | + | getString(keyListHead(getVotesListName(pool))) | |
644 | + | case user: String => | |
645 | + | let next = getString(keyListNext(getVotesListName(pool), user)) | |
646 | + | if ((next == next)) | |
647 | + | then { | |
648 | + | let processVoteInv = invoke(this, "processVoteINTERNAL", [poolStr, user], nil) | |
649 | + | if ((processVoteInv == processVoteInv)) | |
650 | + | then next | |
651 | + | else throw("Strict value is not equal to itself.") | |
652 | + | } | |
653 | + | else throw("Strict value is not equal to itself.") | |
654 | + | case _ => | |
655 | + | throw("Match error") | |
656 | + | } | |
657 | + | match nextUserOrUnit { | |
658 | + | case _: Unit => | |
659 | + | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
660 | + | match nextPoolOrUnit { | |
661 | + | case _: Unit => | |
662 | + | $Tuple2([IntegerEntry(keyFinalizationStage, finalizationStageShares), DeleteEntry(keyNextPool), DeleteEntry(keyNextUser)], true) | |
663 | + | case s: String => | |
664 | + | $Tuple2([StringEntry(keyNextPool, s), DeleteEntry(keyNextUser)], true) | |
665 | + | case _ => | |
666 | + | throw("Match error") | |
667 | + | } | |
668 | + | case nextUser: String => | |
669 | + | $Tuple2([StringEntry(keyNextUser, nextUser)], true) | |
670 | + | case _ => | |
671 | + | throw("Match error") | |
672 | + | } | |
673 | + | case _ => | |
674 | + | throw("Match error") | |
675 | + | } | |
676 | + | } | |
677 | + | else if ((finalizationStageOrUnit == finalizationStageShares)) | |
678 | + | then { | |
679 | + | let poolOrUnit = getString(keyNextPool) | |
680 | + | match poolOrUnit { | |
681 | + | case _: Unit => | |
682 | + | match getString(keyListHead(poolsListName)) { | |
683 | + | case _: Unit => | |
684 | + | let actions = if (force) | |
685 | + | then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced)] | |
686 | + | else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight)] | |
687 | + | $Tuple2(actions, true) | |
688 | + | case nextPoolStr: String => | |
689 | + | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
690 | + | case _ => | |
691 | + | throw("Match error") | |
692 | + | } | |
693 | + | case poolStr: String => | |
694 | + | let nextPoolOrUnit = getString(keyListNext(poolsListName, poolStr)) | |
695 | + | if ((nextPoolOrUnit == nextPoolOrUnit)) | |
696 | + | then { | |
697 | + | let r = { | |
698 | + | let @ = invoke(this, "processPoolINTERNAL", [poolStr, force], nil) | |
699 | + | if ($isInstanceOf(@, "Boolean")) | |
700 | + | then @ | |
701 | + | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
702 | + | } | |
703 | + | if ((r == r)) | |
704 | + | then if (r) | |
705 | + | then $Tuple2(nil, true) | |
706 | + | else match nextPoolOrUnit { | |
707 | + | case _: Unit => | |
708 | + | let actions = if (force) | |
709 | + | then [DeleteEntry(keyFinalizationStage), DeleteEntry(keyFinalizationShouldBeForced), DeleteEntry(keyNextPool)] | |
710 | + | else [DeleteEntry(keyFinalizationStage), BooleanEntry(keyFinalized(previousEpoch), true), IntegerEntry(keyCurrentEpochUi, epoch), IntegerEntry(keyStartHeightUi, startHeight), DeleteEntry(keyNextPool)] | |
711 | + | $Tuple2(actions, true) | |
712 | + | case nextPoolStr: String => | |
713 | + | $Tuple2([StringEntry(keyNextPool, nextPoolStr)], true) | |
714 | + | case _ => | |
715 | + | throw("Match error") | |
716 | + | } | |
717 | + | else throw("Strict value is not equal to itself.") | |
718 | + | } | |
719 | + | else throw("Strict value is not equal to itself.") | |
720 | + | case _ => | |
721 | + | throw("Match error") | |
722 | + | } | |
723 | + | } | |
724 | + | else throw("finalization is broken") | |
725 | + | } | |
726 | + | ||
727 | + | ||
728 | + | ||
729 | + | @Callable(i) | |
730 | + | func finalizeWrapper (counter) = { | |
731 | + | let result = { | |
732 | + | let @ = invoke(this, "finalizeHelper", nil, nil) | |
733 | + | if ($isInstanceOf(@, "Boolean")) | |
734 | + | then @ | |
735 | + | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
736 | + | } | |
737 | + | if ((result == result)) | |
738 | + | then if (!(result)) | |
739 | + | then if ((counter == 0)) | |
740 | + | then throw("Current voting is not over yet") | |
741 | + | else $Tuple2(nil, unit) | |
742 | + | else { | |
743 | + | let maxDepth = valueOrElse(getInteger(this, keyMaxDepth), maxDepthDefault) | |
744 | + | if ((maxDepth > counter)) | |
745 | + | then { | |
746 | + | let inv = invoke(this, "finalizeWrapper", [(counter + 1)], nil) | |
747 | + | if ((inv == inv)) | |
748 | + | then $Tuple2(nil, unit) | |
749 | + | else throw("Strict value is not equal to itself.") | |
750 | + | } | |
751 | + | else $Tuple2(nil, unit) | |
752 | + | } | |
753 | + | else throw("Strict value is not equal to itself.") | |
754 | + | } | |
755 | + | ||
756 | + | ||
757 | + | ||
758 | + | @Callable(i) | |
759 | + | func finalize () = { | |
760 | + | let inv = invoke(this, "finalizeWrapper", [0], nil) | |
761 | + | if ((inv == inv)) | |
762 | + | then $Tuple2(nil, unit) | |
763 | + | else throw("Strict value is not equal to itself.") | |
764 | + | } | |
765 | + | ||
766 | + | ||
767 | + | ||
768 | + | @Callable(i) | |
769 | + | func containsNodeREADONLY (listName,id) = $Tuple2(nil, containsNode(listName, id)) | |
770 | + | ||
771 | + | ||
772 | + | ||
773 | + | @Callable(i) | |
774 | + | func insertNode (listName,id) = { | |
775 | + | let checkCaller = mustManager(i) | |
776 | + | if ((checkCaller == checkCaller)) | |
777 | + | then $Tuple2(insertNodeActions(listName, id), unit) | |
778 | + | else throw("Strict value is not equal to itself.") | |
779 | + | } | |
780 | + | ||
781 | + | ||
782 | + | ||
783 | + | @Callable(i) | |
784 | + | func deleteNode (listName,id) = { | |
785 | + | let checkCaller = mustManager(i) | |
786 | + | if ((checkCaller == checkCaller)) | |
787 | + | then $Tuple2(deleteNodeActions(listName, id), unit) | |
788 | + | else throw("Strict value is not equal to itself.") | |
789 | + | } | |
790 | + | ||
791 | + | ||
792 | + | @Verifier(tx) | |
793 | + | func verify () = { | |
794 | + | let targetPublicKey = match managerPublicKeyOrUnit() { | |
795 | + | case pk: ByteVector => | |
796 | + | pk | |
797 | + | case _: Unit => | |
798 | + | tx.senderPublicKey | |
799 | + | case _ => | |
800 | + | throw("Match error") | |
801 | + | } | |
802 | + | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
803 | + | } | |
804 | + |
github/deemru/w8io/026f985 42.28 ms ◑