tx · GR17wbVxzeYae8UseLbVESLGaVZKufkd8QuxFjaP55TY

3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg:  -0.02700000 Waves

2022.10.20 11:14 [2280469] smart account 3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg > SELF 0.00000000 Waves

{ "type": 13, "id": "GR17wbVxzeYae8UseLbVESLGaVZKufkd8QuxFjaP55TY", "fee": 2700000, "feeAssetId": null, "timestamp": 1666253781520, "version": 1, "sender": "3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg", "senderPublicKey": "C2aAS9D6FqfbrkCuCQCtPWAiopjyagvitFLjRuLcRPYt", "proofs": [ "4rTNF4ZsFutusyvJgbjEzDrhn9KsUU2JNSKxwXq8kDTtGvCzjK1PpkUmiSXWGQdgQccbpSGNWPuVa8DdgHzVUKq2" ], "script": "base64:AAIFAAAAAAAACzcIAhIMCgoICAgBCAEBAQEBEgQKAggIEgQKAggEEgMKAQgSBAoCCAESBQoDCAgIEgASAwoBARIAEgASAwoBARIAEgMKAQESAwoBARIDCgEIIglzZXBhcmF0b3IiD21heERlcHRoRGVmYXVsdCIFYXNJbnQiA3ZhbCIHJG1hdGNoMCIGdmFsSW50IgZhc0Jvb2wiB3ZhbEJvb2wiDGtleUZlZUFtb3VudCIMa2V5V3hBc3NldElkIhJrZXlWb3RpbmdUaHJlc2hvbGQiEWtleVZvdGluZ0R1cmF0aW9uIhhrZXlWb3RlQmVmb3JlRWxpbWluYXRpb24iDmtleVN0YXJ0SGVpZ2h0IhBrZXlDdXJyZW50UGVyaW9kIhNrZXlCb29zdGluZ0NvbnRyYWN0IhNrZXlFbWlzc2lvbkNvbnRyYWN0IhZrZXlBc3NldHNTdG9yZUNvbnRyYWN0IhdrZXlMYXRlc3RQcm9jZXNzZWRBc3NldCIWa2V5TGF0ZXN0UHJvY2Vzc2VkVXNlciIca2V5TGF0ZXN0UHJvY2Vzc2VkVXNlclJlbW92ZSIfa2V5TGF0ZXN0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QEAAAACYUMAAAACBQAAAAFaBQAAAAJhQgkABRQAAAACBQAAAANuaWwFAAAAAmJKAAAAAMA9VH8=", "chainId": 84, "height": 2280469, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CYhCfNavdQakQ3gciqyEwkGp3J82MLcjU5oZXWoH8mmf Next: DGKdArHbB7whryfLh5fUP5eAdNykC77oLXCBZy6ok5yo Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let maxDepthDefault = 10
77
88 func asInt (val) = match val {
99 case valInt: Int =>
1010 valInt
1111 case _ =>
1212 throw("Failed to cast into Integer")
1313 }
1414
1515
1616 func asBool (val) = match val {
1717 case valBool: Boolean =>
1818 valBool
1919 case _ =>
2020 throw("Failed to cast into Boolean")
2121 }
2222
2323
2424 let keyFeeAmount = makeString(["%s", "fee"], separator)
2525
2626 let keyWxAssetId = makeString(["%s", "wxAssetId"], separator)
2727
2828 let keyVotingThreshold = makeString(["%s", "votingThreshold"], separator)
2929
3030 let keyVotingDuration = makeString(["%s", "epochLength"], separator)
3131
3232 let keyVoteBeforeElimination = makeString(["%s", "voteBeforeElimination"], separator)
3333
3434 let keyStartHeight = makeString(["%s", "currentVotingHeightStart"], separator)
3535
3636 let keyCurrentPeriod = makeString(["%s", "currentEpoch"], separator)
3737
3838 let keyBoostingContract = makeString(["%s", "boostingContract"], separator)
3939
4040 let keyEmissionContract = makeString(["%s", "emissionContract"], separator)
4141
4242 let keyAssetsStoreContract = makeString(["%s", "assetsStoreContract"], separator)
4343
4444 let keyLatestProcessedAsset = makeString(["%s", "latestProcessedAsset"], separator)
4545
4646 let keyLatestProcessedUser = makeString(["%s", "latestProcessedUser"], separator)
4747
4848 let keyLatestProcessedUserRemove = makeString(["%s", "latestProcessedUserRemove"], separator)
4949
5050 let keyLatestProcessedAssetTransfer = makeString(["%s", "latestProcessedAssetTransfer"], separator)
5151
5252 let keyLatestProcessedUserTransfer = makeString(["%s", "latestProcessedUserTransfer"], separator)
5353
5454 let keyLatestProcessedUserRemoveTransfer = makeString(["%s", "latestProcessedUserRemoveTransfer"], separator)
5555
5656 let keyMaxDepth = makeString(["%s", "maxDepth"], separator)
5757
5858 func keyVotesTransferFinishedByPeriod (period) = makeString(["%s", "votesTransferFinished", toString(period)], separator)
5959
6060
6161 let assetsListName = "__assets"
6262
6363 func getVotesListName (assetId) = ("%s__votes__" + assetId)
6464
6565
6666 func keyListHead (listName) = makeString([("%s%s" + listName), "head"], separator)
6767
6868
6969 func keyListSize (listName) = makeString([("%s%s" + listName), "size"], separator)
7070
7171
7272 func keyListPrev (listName,id) = makeString([("%s%s%s" + listName), id, "prev"], separator)
7373
7474
7575 func keyListNext (listName,id) = makeString([("%s%s%s" + listName), id, "next"], separator)
7676
7777
7878 func keyAssetVerifiedByPeriod (assetId,period) = makeString(["%s%d%s", "verifiedAt", toString(period), assetId], separator)
7979
8080
8181 func keyAssetVerified (assetId) = makeString(["%s%s", "verified", assetId], separator)
8282
8383
8484 func keyAssetWasEliminated (assetId,period) = makeString(["%s%s%d", "eliminated", assetId, toString(period)], separator)
8585
8686
8787 func keyVoteResultByPeriod (assetId,period) = makeString(["%s%d%s", "votingResultAtAsset", toString(period), assetId], separator)
8888
8989
9090 func formatVoteResult (totalYes,totalNo,verified) = makeString(["%d%d%s", toString(totalYes), toString(totalNo), toString(verified)], separator)
9191
9292
9393 func parseVoteResult (input) = {
9494 let parts = split(input, separator)
9595 let totalYesIdx = 1
9696 let totalNoIdx = 2
9797 let verifiedIdx = 3
9898 let totalYes = parseIntValue(parts[totalYesIdx])
9999 let totalNo = parseIntValue(parts[totalNoIdx])
100100 let verified = if ((size(parts) == 4))
101101 then (parts[verifiedIdx] == "true")
102102 else false
103103 $Tuple3(totalYes, totalNo, verified)
104104 }
105105
106106
107107 func keyUserVoteByPeriod (userAddress,assetId,period) = makeString(["%s%d%s%s", "vru", toString(period), assetId, userAddress], separator)
108108
109109
110110 func formatUserVote (total,inFavor) = {
111111 let totalYes = if (inFavor)
112112 then total
113113 else 0
114114 let totalNo = if (inFavor)
115115 then 0
116116 else total
117117 makeString(["%d%d", toString(totalYes), toString(totalNo)], separator)
118118 }
119119
120120
121121 func parseUserVote (input) = {
122122 let parts = split(input, separator)
123123 let totalYesIdx = 1
124124 let totalNoIdx = 2
125125 let totalYes = parseIntValue(parts[totalYesIdx])
126126 let totalNo = parseIntValue(parts[totalNoIdx])
127127 let inFavor = if ((totalYes > 0))
128128 then (totalNo == 0)
129129 else false
130130 let against = if ((totalYes == 0))
131131 then (totalNo > 0)
132132 else false
133133 let checkTotals = if (if (inFavor)
134134 then true
135135 else against)
136136 then true
137137 else throw("Invalid user vote value")
138138 if ((checkTotals == checkTotals))
139139 then {
140140 let total = if (inFavor)
141141 then totalYes
142142 else totalNo
143143 $Tuple2(total, inFavor)
144144 }
145145 else throw("Strict value is not equal to itself.")
146146 }
147147
148148
149149 func keyUserVoteHistory (type,userAddress,assetId,txId,period) = makeString(["%s%s%s%s%s%d", "history", type, assetId, userAddress, txId, toString(period)], separator)
150150
151151
152152 func thisOnly (i) = if ((i.caller == this))
153153 then true
154154 else throw("Permission denied")
155155
156156
157157 func getIntegerOrZero (key) = valueOrElse(getInteger(this, key), 0)
158158
159159
160160 func getIntegerOrFail (key) = valueOrErrorMessage(getInteger(this, key), (key + " is not defined"))
161161
162162
163163 func getStringOrEmpty (key) = valueOrElse(getString(this, key), "")
164164
165165
166166 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (key + " is not defined"))
167167
168168
169169 let feeAmount = getIntegerOrFail(keyFeeAmount)
170170
171171 let wxAssetId = fromBase58String(getStringOrFail(keyWxAssetId))
172172
173173 let votingThreshold = getIntegerOrFail(keyVotingThreshold)
174174
175175 let votingDuration = getIntegerOrFail(keyVotingDuration)
176176
177177 let voteBeforeElimination = getIntegerOrFail(keyVoteBeforeElimination)
178178
179179 let startHeight = getIntegerOrFail(keyStartHeight)
180180
181181 let currentPeriod = getIntegerOrFail(keyCurrentPeriod)
182182
183183 let boostingContract = addressFromStringValue(getStringOrFail(keyBoostingContract))
184184
185185 let emissionContract = addressFromStringValue(getStringOrFail(keyEmissionContract))
186186
187187 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract))
188188
189189 let maxDepth = valueOrElse(getInteger(keyMaxDepth), maxDepthDefault)
190190
191191 let endHeight = (startHeight + votingDuration)
192192
193193 func getUserGwxAmountAtHeight (userAddress,targetHeight) = {
194194 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
195195 asInt(gwxAmount)
196196 }
197197
198198
199199 func getVoteResultAction (assetId,total,inFavor,period,verified) = {
200200 let voteResultKey = keyVoteResultByPeriod(assetId, period)
201201 let $t061636466 = match getString(voteResultKey) {
202202 case s: String =>
203203 parseVoteResult(s)
204204 case _: Unit =>
205205 match getString(keyVoteResultByPeriod(assetId, (period - 1))) {
206206 case s: String =>
207207 $Tuple3(0, 0, parseVoteResult(s)._3)
208208 case _: Unit =>
209209 $Tuple3(0, 0, false)
210210 case _ =>
211211 throw("Match error")
212212 }
213213 case _ =>
214214 throw("Match error")
215215 }
216216 let oldTotalYes = $t061636466._1
217217 let oldTotalNo = $t061636466._2
218218 let oldVerified = $t061636466._3
219219 StringEntry(voteResultKey, formatVoteResult((oldTotalYes + (if (inFavor)
220220 then total
221221 else 0)), (oldTotalNo + (if (inFavor)
222222 then 0
223223 else total)), if ((verified == unit))
224224 then oldVerified
225225 else value(verified)))
226226 }
227227
228228
229229 func containsNode (listName,id) = {
230230 let head = getString(this, keyListHead(listName))
231231 let prev = getString(this, keyListPrev(listName, id))
232232 let next = getString(this, keyListNext(listName, id))
233233 if (if ((id == head))
234234 then true
235235 else (prev != unit))
236236 then true
237237 else (next != unit)
238238 }
239239
240240
241241 func insertNode (listName,id) = {
242242 let head = getString(this, keyListHead(listName))
243243 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
244244 let checkNode = if (!(containsNode(listName, id)))
245245 then true
246246 else throw("Node exists")
247247 if ((checkNode == checkNode))
248248 then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if (isDefined(head))
249249 then [StringEntry(keyListNext(listName, id), value(head)), StringEntry(keyListPrev(listName, value(head)), id)]
250250 else nil)) ++ [StringEntry(keyListHead(listName), id)])
251251 else throw("Strict value is not equal to itself.")
252252 }
253253
254254
255255 func deleteNode (listName,id) = {
256256 let head = getString(this, keyListHead(listName))
257257 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
258258 let prev = getString(this, keyListPrev(listName, id))
259259 let next = getString(this, keyListNext(listName, id))
260260 ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if (isDefined(prev))
261261 then isDefined(next)
262262 else false)
263263 then [StringEntry(keyListNext(listName, value(prev)), value(next)), StringEntry(keyListPrev(listName, value(next)), value(prev)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))]
264264 else if (isDefined(next))
265265 then [StringEntry(keyListHead(listName), value(next)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(next)))]
266266 else if (isDefined(prev))
267267 then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prev)))]
268268 else if ((id == head))
269269 then [DeleteEntry(keyListHead(listName))]
270270 else throw("Invalid node")))
271271 }
272272
273273
274274 func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey,latestProcessedUserRemoveKey) = {
275275 let updateLatestProcessedAssetAction = StringEntry(latestProcessedAssetKey, assetId)
276276 let deleteLatestProcessedUserAction = DeleteEntry(latestProcessedUserKey)
277277 if ((userAddressOrUnit == unit))
278278 then [updateLatestProcessedAssetAction, deleteLatestProcessedUserAction]
279279 else {
280280 let userAddress = value(userAddressOrUnit)
281281 let updateLatestProcessedUserAction = StringEntry(latestProcessedUserKey, userAddress)
282282 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
283283 let userVoteOrUnit = getString(userVoteKey)
284284 let voteActions = if ((userVoteOrUnit == unit))
285285 then {
286286 let userGwxAmountAtEndHeight = getUserGwxAmountAtHeight(userAddress, endHeight)
287287 if ((userGwxAmountAtEndHeight == 0))
288288 then [BooleanEntry(latestProcessedUserRemoveKey, true)]
289289 else {
290290 let previousPeriod = (currentPeriod - 1)
291291 let assetWasEliminated = valueOrElse(getBoolean(keyAssetWasEliminated(assetId, previousPeriod)), false)
292292 let userPreviousVoteOrUnit = if (assetWasEliminated)
293293 then unit
294294 else getString(keyUserVoteByPeriod(userAddress, assetId, previousPeriod))
295295 if ((userPreviousVoteOrUnit == unit))
296296 then nil
297297 else {
298298 let $t01057710650 = parseUserVote(value(userPreviousVoteOrUnit))
299299 let prevTotal = $t01057710650._1
300300 let inFavor = $t01057710650._2
301301 let total = min([prevTotal, userGwxAmountAtEndHeight])
302302 [StringEntry(userVoteKey, formatUserVote(total, inFavor)), getVoteResultAction(assetId, total, inFavor, currentPeriod, unit)]
303303 }
304304 }
305305 }
306306 else nil
307307 ((voteActions :+ updateLatestProcessedAssetAction) :+ updateLatestProcessedUserAction)
308308 }
309309 }
310310
311311
312312 func assetShouldBeEliminated (assetId,period) = !(valueOrElse(getBoolean(keyAssetVerifiedByPeriod(assetId, period)), true))
313313
314314
315315 func eliminationCheck (assetId) = if (if (assetShouldBeEliminated(assetId, (currentPeriod - 1)))
316316 then assetShouldBeEliminated(assetId, (currentPeriod - 2))
317317 else false)
318318 then assetShouldBeEliminated(assetId, (currentPeriod - 3))
319319 else false
320320
321321
322322 @Callable(i)
323323 func constructor (boostingContractPrm,emissionContractPrm,assetsStoreContractPrm,feeAmountPrm,wxAssetIdPrm,votingThresholdPrm,votingDurationPrm,voteBeforeEliminationPrm,startHeightPrm,maxDepthPrm) = {
324324 let checks = [thisOnly(i), if (isDefined(addressFromString(boostingContractPrm)))
325325 then true
326326 else throw("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm)))
327327 then true
328328 else throw("Invalid emission contract address"), if (isDefined(addressFromString(assetsStoreContractPrm)))
329329 then true
330330 else throw("Invalid asset_store contract address"), if ((feeAmountPrm >= 0))
331331 then true
332332 else throw("Invalid fee amount"), if (isDefined(assetInfo(fromBase58String(wxAssetIdPrm))))
333333 then true
334334 else throw("Invalid WX asset ID"), if ((votingThresholdPrm >= 0))
335335 then true
336336 else throw("Invalid voting threshold"), if ((votingDurationPrm > 0))
337337 then true
338338 else throw("Invalid voting duration"), if (((startHeightPrm + votingDurationPrm) > height))
339339 then true
340340 else throw("Invalid start height")]
341341 if ((checks == checks))
342342 then $Tuple2([StringEntry(keyBoostingContract, boostingContractPrm), StringEntry(keyEmissionContract, emissionContractPrm), StringEntry(keyAssetsStoreContract, assetsStoreContractPrm), IntegerEntry(keyFeeAmount, feeAmountPrm), StringEntry(keyWxAssetId, wxAssetIdPrm), IntegerEntry(keyVotingThreshold, votingThresholdPrm), IntegerEntry(keyVotingDuration, votingDurationPrm), IntegerEntry(keyVoteBeforeElimination, voteBeforeEliminationPrm), IntegerEntry(keyStartHeight, startHeightPrm), IntegerEntry(keyCurrentPeriod, 0), IntegerEntry(keyMaxDepth, maxDepthPrm)], unit)
343343 else throw("Strict value is not equal to itself.")
344344 }
345345
346346
347347
348348 @Callable(i)
349349 func suggest (assetId,assetImage) = {
350350 let info = valueOrErrorMessage(assetInfo(fromBase58String(assetId)), "Invalid asset ID")
351351 let payment = value(i.payments[0])
352352 let checks = [if ((info.issuer == i.caller))
353353 then true
354354 else throw("Asset can only be suggested by its issuer"), if ((value(payment.assetId) == wxAssetId))
355355 then true
356356 else throw("Invalid fee asset"), if ((payment.amount == feeAmount))
357357 then true
358358 else throw("Invalid fee amount")]
359359 if ((checks == checks))
360360 then {
361361 let assetsStoreCreateOrUpdateInv = invoke(assetsStoreContract, "createOrUpdate", [assetId, assetImage, false], nil)
362362 if ((assetsStoreCreateOrUpdateInv == assetsStoreCreateOrUpdateInv))
363363 then {
364364 let burnFeeInv = invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)])
365365 if ((burnFeeInv == burnFeeInv))
366366 then {
367367 let addAssetActions = insertNode(assetsListName, assetId)
368368 let nextPeriod = (currentPeriod + 1)
369369 let targetPeriod = if ((endHeight > height))
370370 then currentPeriod
371371 else nextPeriod
372372 $Tuple2((addAssetActions :+ getVoteResultAction(assetId, 0, true, targetPeriod, false)), unit)
373373 }
374374 else throw("Strict value is not equal to itself.")
375375 }
376376 else throw("Strict value is not equal to itself.")
377377 }
378378 else throw("Strict value is not equal to itself.")
379379 }
380380
381381
382382
383383 @Callable(i)
384384 func vote (assetId,inFavor) = {
385385 let checkAsset = if (containsNode(assetsListName, assetId))
386386 then true
387387 else throw("Invalid asset")
388388 if ((checkAsset == checkAsset))
389389 then {
390390 let checkHeight = if ((endHeight > height))
391391 then true
392392 else throw("Current voting is over but results are not finalized")
393393 if ((checkHeight == checkHeight))
394394 then {
395395 let userAddress = toString(i.caller)
396396 let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight)
397397 let checkGwxAmountAtEnd = if ((gwxAmountAtEnd > 0))
398398 then true
399399 else throw("You'll not have gWX at the end of voting")
400400 if ((checkGwxAmountAtEnd == checkGwxAmountAtEnd))
401401 then {
402402 let votesListName = getVotesListName(assetId)
403403 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
404404 let userVoteOrUnit = getString(userVoteKey)
405405 let cancelVoteInv = if ((userVoteOrUnit == unit))
406406 then unit
407407 else invoke(this, "cancelVote", [assetId], nil)
408408 if ((cancelVoteInv == cancelVoteInv))
409409 then {
410410 let userVoteActions = [StringEntry(userVoteKey, formatUserVote(gwxAmountAtEnd, inFavor)), StringEntry(keyUserVoteHistory("vote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(gwxAmountAtEnd, inFavor)), getVoteResultAction(assetId, gwxAmountAtEnd, inFavor, currentPeriod, unit)]
411411 let votesListActions = if (containsNode(votesListName, userAddress))
412412 then nil
413413 else insertNode(votesListName, userAddress)
414414 $Tuple2((votesListActions ++ userVoteActions), unit)
415415 }
416416 else throw("Strict value is not equal to itself.")
417417 }
418418 else throw("Strict value is not equal to itself.")
419419 }
420420 else throw("Strict value is not equal to itself.")
421421 }
422422 else throw("Strict value is not equal to itself.")
423423 }
424424
425425
426426
427427 @Callable(i)
428428 func cancelVote (assetId) = {
429429 let userAddress = if ((i.caller == this))
430430 then toString(i.originCaller)
431431 else toString(i.caller)
432432 let votesListName = getVotesListName(assetId)
433433 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
434434 let userVoteOrUnit = getString(userVoteKey)
435435 let $t01595516049 = parseUserVote(valueOrErrorMessage(userVoteOrUnit, "Nothing to cancel"))
436436 let total = $t01595516049._1
437437 let inFavor = $t01595516049._2
438438 let votesListActions = deleteNode(votesListName, userAddress)
439439 let userVoteActions = [DeleteEntry(userVoteKey), StringEntry(keyUserVoteHistory("cancelVote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(0, true)), getVoteResultAction(assetId, -(total), inFavor, currentPeriod, unit)]
440440 $Tuple2((votesListActions ++ userVoteActions), unit)
441441 }
442442
443443
444444
445445 @Callable(i)
446446 func finalizeAssetINTERNAL (assetId,period) = {
447447 let checkCaller = thisOnly(i)
448448 if ((checkCaller == checkCaller))
449449 then {
450450 let voteResultKey = keyVoteResultByPeriod(assetId, period)
451451 let $t01668016853 = match getString(voteResultKey) {
452452 case s: String =>
453453 let r = parseVoteResult(s)
454454 $Tuple2(r._1, r._2)
455455 case _: Unit =>
456456 $Tuple2(0, 0)
457457 case _ =>
458458 throw("Match error")
459459 }
460460 let totalYes = $t01668016853._1
461461 let totalNo = $t01668016853._2
462462 let total = (totalYes + totalNo)
463463 let verified = if ((total >= votingThreshold))
464464 then (totalYes > totalNo)
465465 else false
466466 let assetVerifiedActions = [BooleanEntry(keyAssetVerifiedByPeriod(assetId, period), verified), if (verified)
467467 then BooleanEntry(keyAssetVerified(assetId), true)
468468 else DeleteEntry(keyAssetVerified(assetId))]
469469 let assetsStoreSetVerifiedInv = invoke(assetsStoreContract, "setVerified", [assetId, verified], nil)
470470 if ((assetsStoreSetVerifiedInv == assetsStoreSetVerifiedInv))
471471 then {
472472 let eliminate = if (verified)
473473 then false
474474 else eliminationCheck(assetId)
475475 let assetWasEliminatedActions = if (eliminate)
476476 then [BooleanEntry(keyAssetWasEliminated(assetId, currentPeriod), true)]
477477 else nil
478478 let voteResultActions = if (eliminate)
479479 then nil
480480 else [getVoteResultAction(assetId, 0, true, (currentPeriod + 1), verified)]
481481 let votesListActions = if (eliminate)
482482 then deleteNode(assetsListName, assetId)
483483 else nil
484484 let onEliminationInv = if (eliminate)
485485 then invoke(assetsStoreContract, "onEliminate", [assetId], nil)
486486 else unit
487487 if ((onEliminationInv == onEliminationInv))
488488 then $Tuple2(((votesListActions ++ voteResultActions) ++ assetVerifiedActions), unit)
489489 else throw("Strict value is not equal to itself.")
490490 }
491491 else throw("Strict value is not equal to itself.")
492492 }
493493 else throw("Strict value is not equal to itself.")
494494 }
495495
496496
497497
498498 @Callable(i)
499499 func deleteUserNodeINTERNAL (assetId,userAddress,latestProcessedUserRemoveKey) = {
500500 let checkCaller = thisOnly(i)
501501 if ((checkCaller == checkCaller))
502502 then $Tuple2((deleteNode(getVotesListName(assetId), userAddress) :+ DeleteEntry(latestProcessedUserRemoveKey)), unit)
503503 else throw("Strict value is not equal to itself.")
504504 }
505505
506506
507507
508508 @Callable(i)
509509 func finalizeVotingHelper () = if ((endHeight > height))
510510 then $Tuple2(nil, false)
511511 else {
512512 let latestProcessedAssetOrUnit = getString(keyLatestProcessedAsset)
513513 let latestProcessedUserOrUnit = getString(keyLatestProcessedUser)
514514 let nextPeriodDelay = 0
515515 let finish = $Tuple2([IntegerEntry(keyStartHeight, (height + nextPeriodDelay)), IntegerEntry(keyCurrentPeriod, (currentPeriod + 1)), DeleteEntry(keyLatestProcessedAsset), DeleteEntry(keyLatestProcessedUser), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true)
516516 if ((latestProcessedAssetOrUnit == unit))
517517 then {
518518 let assetsHeadOrUnit = getString(keyListHead(assetsListName))
519519 if ((assetsHeadOrUnit == unit))
520520 then finish
521521 else {
522522 let asset = value(assetsHeadOrUnit)
523523 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
524524 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
525525 $Tuple2(processVoteActions, true)
526526 }
527527 }
528528 else {
529529 let latestProcessedAsset = value(latestProcessedAssetOrUnit)
530530 if ((latestProcessedUserOrUnit == unit))
531531 then {
532532 let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset))
533533 if ((assetOrUnit == assetOrUnit))
534534 then {
535535 let finalizeAssetInv = invoke(this, "finalizeAssetINTERNAL", [latestProcessedAsset, currentPeriod], nil)
536536 if ((finalizeAssetInv == finalizeAssetInv))
537537 then if ((assetOrUnit == unit))
538538 then finish
539539 else {
540540 let asset = value(assetOrUnit)
541541 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
542542 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
543543 $Tuple2(processVoteActions, true)
544544 }
545545 else throw("Strict value is not equal to itself.")
546546 }
547547 else throw("Strict value is not equal to itself.")
548548 }
549549 else {
550550 let latestProcessedUser = value(latestProcessedUserOrUnit)
551551 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
552552 if ((userAddressOrUnit == userAddressOrUnit))
553553 then {
554554 let removeLatestUser = valueOrElse(getBoolean(keyLatestProcessedUserRemove), false)
555555 let deleteUserInv = if (removeLatestUser)
556556 then invoke(this, "deleteUserNodeINTERNAL", [latestProcessedAsset, latestProcessedUser, keyLatestProcessedUserRemove], nil)
557557 else unit
558558 if ((deleteUserInv == deleteUserInv))
559559 then {
560560 let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
561561 $Tuple2(processVoteActions, true)
562562 }
563563 else throw("Strict value is not equal to itself.")
564564 }
565565 else throw("Strict value is not equal to itself.")
566566 }
567567 }
568568 }
569569
570570
571571
572572 @Callable(i)
573573 func finalizeVotingWrapper (counter) = {
574574 let result = asBool(invoke(this, "finalizeVotingHelper", nil, nil))
575575 if ((result == result))
576576 then if (!(result))
577577 then if ((counter == 0))
578578 then throw("Current voting is not over yet")
579579 else $Tuple2(nil, unit)
580580 else if ((maxDepth > counter))
581581 then {
582582 let inv = invoke(this, "finalizeVotingWrapper", [(counter + 1)], nil)
583583 if ((inv == inv))
584584 then $Tuple2(nil, unit)
585585 else throw("Strict value is not equal to itself.")
586586 }
587587 else $Tuple2(nil, unit)
588588 else throw("Strict value is not equal to itself.")
589589 }
590590
591591
592592
593593 @Callable(i)
594594 func finalizeVoting () = {
595595 let inv = invoke(this, "finalizeVotingWrapper", [0], nil)
596596 if ((inv == inv))
597597 then $Tuple2(nil, unit)
598598 else throw("Strict value is not equal to itself.")
599599 }
600600
601601
602602
603603 @Callable(i)
604604 func transferVotesHelper () = {
605605 let votesTransferFinishedKey = keyVotesTransferFinishedByPeriod(currentPeriod)
606606 let votesTransferFinished = valueOrElse(getBoolean(votesTransferFinishedKey), false)
607607 if (if (if ((startHeight > height))
608608 then true
609609 else (height >= endHeight))
610610 then true
611611 else votesTransferFinished)
612612 then $Tuple2(nil, false)
613613 else {
614614 let latestProcessedAssetOrUnit = getString(keyLatestProcessedAssetTransfer)
615615 let latestProcessedUserOrUnit = getString(keyLatestProcessedUserTransfer)
616616 let finish = $Tuple2([BooleanEntry(votesTransferFinishedKey, true), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true)
617617 if ((latestProcessedAssetOrUnit == unit))
618618 then {
619619 let assetsHeadOrUnit = getString(keyListHead(assetsListName))
620620 if ((assetsHeadOrUnit == unit))
621621 then finish
622622 else {
623623 let asset = value(assetsHeadOrUnit)
624624 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
625625 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
626626 $Tuple2(processVoteActions, true)
627627 }
628628 }
629629 else {
630630 let latestProcessedAsset = value(latestProcessedAssetOrUnit)
631631 if ((latestProcessedUserOrUnit == unit))
632632 then {
633633 let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset))
634634 if ((assetOrUnit == unit))
635635 then finish
636636 else {
637637 let asset = value(assetOrUnit)
638638 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
639639 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
640640 $Tuple2(processVoteActions, true)
641641 }
642642 }
643643 else {
644644 let latestProcessedUser = value(latestProcessedUserOrUnit)
645645 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
646646 if ((userAddressOrUnit == userAddressOrUnit))
647647 then {
648648 let removeLatestUser = valueOrElse(getBoolean(keyLatestProcessedUserRemoveTransfer), false)
649649 let deleteUserInv = if (removeLatestUser)
650650 then invoke(this, "deleteUserNodeINTERNAL", [latestProcessedAsset, latestProcessedUser, keyLatestProcessedUserRemoveTransfer], nil)
651651 else unit
652652 if ((deleteUserInv == deleteUserInv))
653653 then {
654654 let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
655655 $Tuple2(processVoteActions, true)
656656 }
657657 else throw("Strict value is not equal to itself.")
658658 }
659659 else throw("Strict value is not equal to itself.")
660660 }
661661 }
662662 }
663663 }
664664
665665
666666
667667 @Callable(i)
668668 func transferVotesWrapper (counter) = {
669669 let result = asBool(invoke(this, "transferVotesHelper", nil, nil))
670670 if ((result == result))
671671 then if (!(result))
672672 then if ((counter == 0))
673673 then throw("Voting is not started yet")
674674 else $Tuple2(nil, unit)
675675 else if ((maxDepth > counter))
676676 then {
677677 let inv = invoke(this, "transferVotesWrapper", [(counter + 1)], nil)
678678 if ((inv == inv))
679679 then $Tuple2(nil, unit)
680680 else throw("Strict value is not equal to itself.")
681681 }
682682 else $Tuple2(nil, unit)
683683 else throw("Strict value is not equal to itself.")
684684 }
685685
686686
687687
688688 @Callable(i)
689689 func transferVotes () = {
690690 let inv = invoke(this, "transferVotesWrapper", [0], nil)
691691 if ((inv == inv))
692692 then $Tuple2(nil, unit)
693693 else throw("Strict value is not equal to itself.")
694694 }
695695
696696
697697
698698 @Callable(i)
699699 func setVotingThreshold (newThreshold) = {
700700 let checkCaller = thisOnly(i)
701701 if ((checkCaller == checkCaller))
702702 then $Tuple2([IntegerEntry(keyVotingThreshold, newThreshold)], unit)
703703 else throw("Strict value is not equal to itself.")
704704 }
705705
706706
707707
708708 @Callable(i)
709709 func setFee (newFee) = {
710710 let checkCaller = thisOnly(i)
711711 if ((checkCaller == checkCaller))
712712 then $Tuple2([IntegerEntry(keyFeeAmount, newFee)], unit)
713713 else throw("Strict value is not equal to itself.")
714714 }
715715
716716
717717
718718 @Callable(i)
719719 func gwxAvailableForVoteREADONLY (userAddress) = {
720720 let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight)
721721 $Tuple2(nil, gwxAmountAtEnd)
722722 }
723723
724724

github/deemru/w8io/fabc49c 
77.58 ms