tx · 87VvY6ExSGAtoTNUxg4mLQ38jwEoj6cMbbpTFLQ54AXf

3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg:  -0.01000000 Waves

2022.04.08 17:32 [1999713] smart account 3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg > SELF 0.00000000 Waves

{ "type": 13, "id": "87VvY6ExSGAtoTNUxg4mLQ38jwEoj6cMbbpTFLQ54AXf", "fee": 1000000, "feeAssetId": null, "timestamp": 1649428421432, "version": 2, "chainId": 84, "sender": "3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg", "senderPublicKey": "C2aAS9D6FqfbrkCuCQCtPWAiopjyagvitFLjRuLcRPYt", "proofs": [ "DcUb168ibtRVHzogkf7mqBiL6KJaZGGVFb1Y3Tj9ARN4JUWraVi5P4aRV7VNWBJcBntNiTd5NNdrrk3onmYeQDX" ], "script": "base64:AAIFAAAAAAAAAE8IAhIMCgoICAgBCAEBAQEBEgQKAggIEgQKAggEEgMKAQgSBAoCCAESBQoDCAgIEgASAwoBARIAEgASAwoBARIAEgMKAQESAwoBARIDCgEIAAAAPwAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAAPbWF4RGVwdGhEZWZhdWx0AAAAAAAAAAAKAQAAAAVhc0ludAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAAAN2YWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAAGdmFsSW50BQAAAAckbWF0Y2gwBQAAAAZ2YWxJbnQJAAACAAAAAQIAAAAbRmFpbGVkIHRvIGNhc3QgaW50byBJbnRlZ2VyAQAAAAZhc0Jvb2wAAAABAAAAA3ZhbAQAAAAHJG1hdGNoMAUAAAADdmFsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAd2YWxCb29sBQAAAAckbWF0Y2gwBQAAAAd2YWxCb29sCQAAAgAAAAECAAAAG0ZhaWxlZCB0byBjYXN0IGludG8gQm9vbGV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dmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAGc2V0RmVlAAAAAQAAAAZuZXdGZWUEAAAAC2NoZWNrQ2FsbGVyCQEAAAAIdGhpc09ubHkAAAABBQAAAAFpAwkAAAAAAAACBQAAAAtjaGVja0NhbGxlcgUAAAALY2hlY2tDYWxsZXIJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAMa2V5RmVlQW1vdW50BQAAAAZuZXdGZWUFAAAAA25pbAUAAAAEdW5pdAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAbZ3d4QXZhaWxhYmxlRm9yVm90ZVJFQURPTkxZAAAAAQAAAAt1c2VyQWRkcmVzcwQAAAAOZ3d4QW1vdW50QXRFbmQJAQAAABhnZXRVc2VyR3d4QW1vdW50QXRIZWlnaHQAAAACBQAAAAt1c2VyQWRkcmVzcwUAAAAJZW5kSGVpZ2h0CQAFFAAAAAIFAAAAA25pbAUAAAAOZ3d4QW1vdW50QXRFbmQAAAAAsbQOPQ==", "height": 1999713, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6s9MnprM9DZ6PBmvegTgSg3hM7P3zrUHwDaMM8kTj5NJ Next: E8FKCUusBHkMbm8LzopAoxe4sxMZX1pbxEsAZjpt6aww Diff:
OldNewDifferences
4545
4646 let keyLatestProcessedUser = makeString(["%s", "latestProcessedUser"], separator)
4747
48+let keyLatestProcessedUserRemove = makeString(["%s", "latestProcessedUserRemove"], separator)
49+
4850 let keyLatestProcessedAssetTransfer = makeString(["%s", "latestProcessedAssetTransfer"], separator)
4951
5052 let keyLatestProcessedUserTransfer = makeString(["%s", "latestProcessedUserTransfer"], separator)
53+
54+let keyLatestProcessedUserRemoveTransfer = makeString(["%s", "latestProcessedUserRemoveTransfer"], separator)
5155
5256 let keyMaxDepth = makeString(["%s", "maxDepth"], separator)
5357
194198
195199 func getVoteResultAction (assetId,total,inFavor,period,verified) = {
196200 let voteResultKey = keyVoteResultByPeriod(assetId, period)
197- let $t059616264 = match getString(voteResultKey) {
201+ let $t061636466 = match getString(voteResultKey) {
198202 case s: String =>
199203 parseVoteResult(s)
200204 case _: Unit =>
209213 case _ =>
210214 throw("Match error")
211215 }
212- let oldTotalYes = $t059616264._1
213- let oldTotalNo = $t059616264._2
214- let oldVerified = $t059616264._3
216+ let oldTotalYes = $t061636466._1
217+ let oldTotalNo = $t061636466._2
218+ let oldVerified = $t061636466._3
215219 StringEntry(voteResultKey, formatVoteResult((oldTotalYes + (if (inFavor)
216220 then total
217221 else 0)), (oldTotalNo + (if (inFavor)
267271 }
268272
269273
270-func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey) = {
274+func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey,latestProcessedUserRemoveKey) = {
271275 let updateLatestProcessedAssetAction = StringEntry(latestProcessedAssetKey, assetId)
272276 let deleteLatestProcessedUserAction = DeleteEntry(latestProcessedUserKey)
273277 if ((userAddressOrUnit == unit))
277281 let updateLatestProcessedUserAction = StringEntry(latestProcessedUserKey, userAddress)
278282 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
279283 let userVoteOrUnit = getString(userVoteKey)
280- let userGwxAmountAtEndHeight = getUserGwxAmountAtHeight(userAddress, endHeight)
281- let voteActions = if ((userGwxAmountAtEndHeight == 0))
284+ let voteActions = if ((userVoteOrUnit == unit))
282285 then {
283- let votesListName = getVotesListName(assetId)
284- deleteNode(votesListName, userAddress)
286+ let userGwxAmountAtEndHeight = getUserGwxAmountAtHeight(userAddress, endHeight)
287+ if ((userGwxAmountAtEndHeight == 0))
288+ then [BooleanEntry(latestProcessedUserRemoveKey, true)]
289+ else {
290+ let previousPeriod = (currentPeriod - 1)
291+ let assetWasEliminated = valueOrElse(getBoolean(keyAssetWasEliminated(assetId, previousPeriod)), false)
292+ let userPreviousVoteOrUnit = if (assetWasEliminated)
293+ then unit
294+ else getString(keyUserVoteByPeriod(userAddress, assetId, previousPeriod))
295+ if ((userPreviousVoteOrUnit == unit))
296+ then nil
297+ else {
298+ let $t01052110594 = parseUserVote(value(userPreviousVoteOrUnit))
299+ let prevTotal = $t01052110594._1
300+ let inFavor = $t01052110594._2
301+ let total = min([prevTotal, userGwxAmountAtEndHeight])
302+[StringEntry(userVoteKey, formatUserVote(total, inFavor)), getVoteResultAction(assetId, total, inFavor, currentPeriod, unit)]
303+ }
304+ }
285305 }
286- else if ((userVoteOrUnit == unit))
287- then {
288- let previousPeriod = (currentPeriod - 1)
289- let assetWasEliminated = valueOrElse(getBoolean(keyAssetWasEliminated(assetId, previousPeriod)), false)
290- let userPreviousVoteOrUnit = if (assetWasEliminated)
291- then unit
292- else getString(keyUserVoteByPeriod(userAddress, assetId, previousPeriod))
293- if ((userPreviousVoteOrUnit == unit))
294- then nil
295- else {
296- let $t01030310376 = parseUserVote(value(userPreviousVoteOrUnit))
297- let prevTotal = $t01030310376._1
298- let inFavor = $t01030310376._2
299- let total = min([prevTotal, userGwxAmountAtEndHeight])
300-[StringEntry(userVoteKey, formatUserVote(total, inFavor)), getVoteResultAction(assetId, total, inFavor, currentPeriod, unit)]
301- }
302- }
303- else nil
306+ else nil
304307 ((voteActions :+ updateLatestProcessedAssetAction) :+ updateLatestProcessedUserAction)
305308 }
306309 }
432435 let checkVote = valueOrElse(getString(userVoteKey), "Nothing to cancel")
433436 if ((checkVote == checkVote))
434437 then {
435- let $t01577515836 = parseUserVote(value(userVoteOrUnit))
436- let total = $t01577515836._1
437- let inFavor = $t01577515836._2
438+ let $t01598116042 = parseUserVote(value(userVoteOrUnit))
439+ let total = $t01598116042._1
440+ let inFavor = $t01598116042._2
438441 let votesListActions = deleteNode(votesListName, userAddress)
439442 let userVoteActions = [DeleteEntry(userVoteKey), StringEntry(keyUserVoteHistory("cancelVote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(0, true)), getVoteResultAction(assetId, -(total), inFavor, currentPeriod, unit)]
440443 $Tuple2((votesListActions ++ userVoteActions), unit)
450453 if ((checkCaller == checkCaller))
451454 then {
452455 let voteResultKey = keyVoteResultByPeriod(assetId, period)
453- let $t01649616669 = match getString(voteResultKey) {
456+ let $t01670216875 = match getString(voteResultKey) {
454457 case s: String =>
455458 let r = parseVoteResult(s)
456459 $Tuple2(r._1, r._2)
459462 case _ =>
460463 throw("Match error")
461464 }
462- let totalYes = $t01649616669._1
463- let totalNo = $t01649616669._2
465+ let totalYes = $t01670216875._1
466+ let totalNo = $t01670216875._2
464467 let total = (totalYes + totalNo)
465468 let verified = if ((total >= votingThreshold))
466469 then (totalYes > totalNo)
493496
494497
495498 @Callable(i)
499+func deleteUserNodeINTERNAL (assetId,userAddress,latestProcessedUserRemoveKey) = {
500+ let checkCaller = thisOnly(i)
501+ if ((checkCaller == checkCaller))
502+ then $Tuple2((deleteNode(getVotesListName(assetId), userAddress) :+ DeleteEntry(latestProcessedUserRemoveKey)), unit)
503+ else throw("Strict value is not equal to itself.")
504+ }
505+
506+
507+
508+@Callable(i)
496509 func finalizeVotingHelper () = if ((endHeight > height))
497510 then $Tuple2(nil, false)
498511 else {
508521 else {
509522 let asset = value(assetsHeadOrUnit)
510523 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
511- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
524+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
512525 $Tuple2(processVoteActions, true)
513526 }
514527 }
526539 else {
527540 let asset = value(assetOrUnit)
528541 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
529- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
542+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
530543 $Tuple2(processVoteActions, true)
531544 }
532545 else throw("Strict value is not equal to itself.")
536549 else {
537550 let latestProcessedUser = value(latestProcessedUserOrUnit)
538551 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
539- let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
540- $Tuple2(processVoteActions, true)
552+ if ((userAddressOrUnit == userAddressOrUnit))
553+ then {
554+ let removeLatestUser = valueOrElse(getBoolean(keyLatestProcessedUserRemove), false)
555+ let deleteUserInv = if (removeLatestUser)
556+ then invoke(this, "deleteUserNodeINTERNAL", [latestProcessedAsset, latestProcessedUser, keyLatestProcessedUserRemove], nil)
557+ else unit
558+ if ((deleteUserInv == deleteUserInv))
559+ then {
560+ let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
561+ $Tuple2(processVoteActions, true)
562+ }
563+ else throw("Strict value is not equal to itself.")
564+ }
565+ else throw("Strict value is not equal to itself.")
541566 }
542567 }
543568 }
597622 else {
598623 let asset = value(assetsHeadOrUnit)
599624 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
600- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
625+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
601626 $Tuple2(processVoteActions, true)
602627 }
603628 }
611636 else {
612637 let asset = value(assetOrUnit)
613638 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
614- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
639+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
615640 $Tuple2(processVoteActions, true)
616641 }
617642 }
618643 else {
619644 let latestProcessedUser = value(latestProcessedUserOrUnit)
620645 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
621- let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
622- $Tuple2(processVoteActions, true)
646+ if ((userAddressOrUnit == userAddressOrUnit))
647+ then {
648+ let removeLatestUser = valueOrElse(getBoolean(keyLatestProcessedUserRemoveTransfer), false)
649+ let deleteUserInv = if (removeLatestUser)
650+ then invoke(this, "deleteUserNodeINTERNAL", [latestProcessedAsset, latestProcessedUser, keyLatestProcessedUserRemoveTransfer], nil)
651+ else unit
652+ if ((deleteUserInv == deleteUserInv))
653+ then {
654+ let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
655+ $Tuple2(processVoteActions, true)
656+ }
657+ else throw("Strict value is not equal to itself.")
658+ }
659+ else throw("Strict value is not equal to itself.")
623660 }
624661 }
625662 }
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
48+let keyLatestProcessedUserRemove = makeString(["%s", "latestProcessedUserRemove"], separator)
49+
4850 let keyLatestProcessedAssetTransfer = makeString(["%s", "latestProcessedAssetTransfer"], separator)
4951
5052 let keyLatestProcessedUserTransfer = makeString(["%s", "latestProcessedUserTransfer"], separator)
53+
54+let keyLatestProcessedUserRemoveTransfer = makeString(["%s", "latestProcessedUserRemoveTransfer"], separator)
5155
5256 let keyMaxDepth = makeString(["%s", "maxDepth"], separator)
5357
5458 func keyVotesTransferFinishedByPeriod (period) = makeString(["%s", "votesTransferFinished", toString(period)], separator)
5559
5660
5761 let assetsListName = "__assets"
5862
5963 func getVotesListName (assetId) = ("%s__votes__" + assetId)
6064
6165
6266 func keyListHead (listName) = makeString([("%s%s" + listName), "head"], separator)
6367
6468
6569 func keyListSize (listName) = makeString([("%s%s" + listName), "size"], separator)
6670
6771
6872 func keyListPrev (listName,id) = makeString([("%s%s%s" + listName), id, "prev"], separator)
6973
7074
7175 func keyListNext (listName,id) = makeString([("%s%s%s" + listName), id, "next"], separator)
7276
7377
7478 func keyAssetVerifiedByPeriod (assetId,period) = makeString(["%s%d%s", "verifiedAt", toString(period), assetId], separator)
7579
7680
7781 func keyAssetVerified (assetId) = makeString(["%s%s", "verified", assetId], separator)
7882
7983
8084 func keyAssetWasEliminated (assetId,period) = makeString(["%s%s%d", "eliminated", assetId, toString(period)], separator)
8185
8286
8387 func keyVoteResultByPeriod (assetId,period) = makeString(["%s%d%s", "votingResultAtAsset", toString(period), assetId], separator)
8488
8589
8690 func formatVoteResult (totalYes,totalNo,verified) = makeString(["%d%d%s", toString(totalYes), toString(totalNo), toString(verified)], separator)
8791
8892
8993 func parseVoteResult (input) = {
9094 let parts = split(input, separator)
9195 let totalYesIdx = 1
9296 let totalNoIdx = 2
9397 let verifiedIdx = 3
9498 let totalYes = parseIntValue(parts[totalYesIdx])
9599 let totalNo = parseIntValue(parts[totalNoIdx])
96100 let verified = if ((size(parts) == 4))
97101 then (parts[verifiedIdx] == "true")
98102 else false
99103 $Tuple3(totalYes, totalNo, verified)
100104 }
101105
102106
103107 func keyUserVoteByPeriod (userAddress,assetId,period) = makeString(["%s%d%s%s", "vru", toString(period), assetId, userAddress], separator)
104108
105109
106110 func formatUserVote (total,inFavor) = {
107111 let totalYes = if (inFavor)
108112 then total
109113 else 0
110114 let totalNo = if (inFavor)
111115 then 0
112116 else total
113117 makeString(["%d%d", toString(totalYes), toString(totalNo)], separator)
114118 }
115119
116120
117121 func parseUserVote (input) = {
118122 let parts = split(input, separator)
119123 let totalYesIdx = 1
120124 let totalNoIdx = 2
121125 let totalYes = parseIntValue(parts[totalYesIdx])
122126 let totalNo = parseIntValue(parts[totalNoIdx])
123127 let inFavor = if ((totalYes > 0))
124128 then (totalNo == 0)
125129 else false
126130 let against = if ((totalYes == 0))
127131 then (totalNo > 0)
128132 else false
129133 let checkTotals = if (if (inFavor)
130134 then true
131135 else against)
132136 then true
133137 else throw("Invalid user vote value")
134138 if ((checkTotals == checkTotals))
135139 then {
136140 let total = if (inFavor)
137141 then totalYes
138142 else totalNo
139143 $Tuple2(total, inFavor)
140144 }
141145 else throw("Strict value is not equal to itself.")
142146 }
143147
144148
145149 func keyUserVoteHistory (type,userAddress,assetId,txId,period) = makeString(["%s%s%s%s%s%d", "history", type, assetId, userAddress, txId, toString(period)], separator)
146150
147151
148152 func thisOnly (i) = if ((i.caller == this))
149153 then true
150154 else throw("Permission denied")
151155
152156
153157 func getIntegerOrZero (key) = valueOrElse(getInteger(this, key), 0)
154158
155159
156160 func getIntegerOrFail (key) = valueOrErrorMessage(getInteger(this, key), (key + " is not defined"))
157161
158162
159163 func getStringOrEmpty (key) = valueOrElse(getString(this, key), "")
160164
161165
162166 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (key + " is not defined"))
163167
164168
165169 let feeAmount = getIntegerOrFail(keyFeeAmount)
166170
167171 let wxAssetId = fromBase58String(getStringOrFail(keyWxAssetId))
168172
169173 let votingThreshold = getIntegerOrFail(keyVotingThreshold)
170174
171175 let votingDuration = getIntegerOrFail(keyVotingDuration)
172176
173177 let voteBeforeElimination = getIntegerOrFail(keyVoteBeforeElimination)
174178
175179 let startHeight = getIntegerOrFail(keyStartHeight)
176180
177181 let currentPeriod = getIntegerOrFail(keyCurrentPeriod)
178182
179183 let boostingContract = addressFromStringValue(getStringOrFail(keyBoostingContract))
180184
181185 let emissionContract = addressFromStringValue(getStringOrFail(keyEmissionContract))
182186
183187 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract))
184188
185189 let maxDepth = valueOrElse(getInteger(keyMaxDepth), maxDepthDefault)
186190
187191 let endHeight = (startHeight + votingDuration)
188192
189193 func getUserGwxAmountAtHeight (userAddress,targetHeight) = {
190194 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
191195 asInt(gwxAmount)
192196 }
193197
194198
195199 func getVoteResultAction (assetId,total,inFavor,period,verified) = {
196200 let voteResultKey = keyVoteResultByPeriod(assetId, period)
197- let $t059616264 = match getString(voteResultKey) {
201+ let $t061636466 = match getString(voteResultKey) {
198202 case s: String =>
199203 parseVoteResult(s)
200204 case _: Unit =>
201205 match getString(keyVoteResultByPeriod(assetId, (period - 1))) {
202206 case s: String =>
203207 $Tuple3(0, 0, parseVoteResult(s)._3)
204208 case _: Unit =>
205209 $Tuple3(0, 0, false)
206210 case _ =>
207211 throw("Match error")
208212 }
209213 case _ =>
210214 throw("Match error")
211215 }
212- let oldTotalYes = $t059616264._1
213- let oldTotalNo = $t059616264._2
214- let oldVerified = $t059616264._3
216+ let oldTotalYes = $t061636466._1
217+ let oldTotalNo = $t061636466._2
218+ let oldVerified = $t061636466._3
215219 StringEntry(voteResultKey, formatVoteResult((oldTotalYes + (if (inFavor)
216220 then total
217221 else 0)), (oldTotalNo + (if (inFavor)
218222 then 0
219223 else total)), if ((verified == unit))
220224 then oldVerified
221225 else value(verified)))
222226 }
223227
224228
225229 func containsNode (listName,id) = {
226230 let head = getString(this, keyListHead(listName))
227231 let prev = getString(this, keyListPrev(listName, id))
228232 let next = getString(this, keyListNext(listName, id))
229233 if (if ((id == head))
230234 then true
231235 else (prev != unit))
232236 then true
233237 else (next != unit)
234238 }
235239
236240
237241 func insertNode (listName,id) = {
238242 let head = getString(this, keyListHead(listName))
239243 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
240244 let checkNode = if (!(containsNode(listName, id)))
241245 then true
242246 else throw("Node exists")
243247 if ((checkNode == checkNode))
244248 then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if (isDefined(head))
245249 then [StringEntry(keyListNext(listName, id), value(head)), StringEntry(keyListPrev(listName, value(head)), id)]
246250 else nil)) ++ [StringEntry(keyListHead(listName), id)])
247251 else throw("Strict value is not equal to itself.")
248252 }
249253
250254
251255 func deleteNode (listName,id) = {
252256 let head = getString(this, keyListHead(listName))
253257 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
254258 let prev = getString(this, keyListPrev(listName, id))
255259 let next = getString(this, keyListNext(listName, id))
256260 ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if (isDefined(prev))
257261 then isDefined(next)
258262 else false)
259263 then [StringEntry(keyListNext(listName, value(prev)), value(next)), StringEntry(keyListPrev(listName, value(next)), value(prev)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))]
260264 else if (isDefined(next))
261265 then [StringEntry(keyListHead(listName), value(next)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(next)))]
262266 else if (isDefined(prev))
263267 then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prev)))]
264268 else if ((id == head))
265269 then [DeleteEntry(keyListHead(listName))]
266270 else throw("Invalid node")))
267271 }
268272
269273
270-func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey) = {
274+func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey,latestProcessedUserRemoveKey) = {
271275 let updateLatestProcessedAssetAction = StringEntry(latestProcessedAssetKey, assetId)
272276 let deleteLatestProcessedUserAction = DeleteEntry(latestProcessedUserKey)
273277 if ((userAddressOrUnit == unit))
274278 then [updateLatestProcessedAssetAction, deleteLatestProcessedUserAction]
275279 else {
276280 let userAddress = value(userAddressOrUnit)
277281 let updateLatestProcessedUserAction = StringEntry(latestProcessedUserKey, userAddress)
278282 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
279283 let userVoteOrUnit = getString(userVoteKey)
280- let userGwxAmountAtEndHeight = getUserGwxAmountAtHeight(userAddress, endHeight)
281- let voteActions = if ((userGwxAmountAtEndHeight == 0))
284+ let voteActions = if ((userVoteOrUnit == unit))
282285 then {
283- let votesListName = getVotesListName(assetId)
284- deleteNode(votesListName, userAddress)
286+ let userGwxAmountAtEndHeight = getUserGwxAmountAtHeight(userAddress, endHeight)
287+ if ((userGwxAmountAtEndHeight == 0))
288+ then [BooleanEntry(latestProcessedUserRemoveKey, true)]
289+ else {
290+ let previousPeriod = (currentPeriod - 1)
291+ let assetWasEliminated = valueOrElse(getBoolean(keyAssetWasEliminated(assetId, previousPeriod)), false)
292+ let userPreviousVoteOrUnit = if (assetWasEliminated)
293+ then unit
294+ else getString(keyUserVoteByPeriod(userAddress, assetId, previousPeriod))
295+ if ((userPreviousVoteOrUnit == unit))
296+ then nil
297+ else {
298+ let $t01052110594 = parseUserVote(value(userPreviousVoteOrUnit))
299+ let prevTotal = $t01052110594._1
300+ let inFavor = $t01052110594._2
301+ let total = min([prevTotal, userGwxAmountAtEndHeight])
302+[StringEntry(userVoteKey, formatUserVote(total, inFavor)), getVoteResultAction(assetId, total, inFavor, currentPeriod, unit)]
303+ }
304+ }
285305 }
286- else if ((userVoteOrUnit == unit))
287- then {
288- let previousPeriod = (currentPeriod - 1)
289- let assetWasEliminated = valueOrElse(getBoolean(keyAssetWasEliminated(assetId, previousPeriod)), false)
290- let userPreviousVoteOrUnit = if (assetWasEliminated)
291- then unit
292- else getString(keyUserVoteByPeriod(userAddress, assetId, previousPeriod))
293- if ((userPreviousVoteOrUnit == unit))
294- then nil
295- else {
296- let $t01030310376 = parseUserVote(value(userPreviousVoteOrUnit))
297- let prevTotal = $t01030310376._1
298- let inFavor = $t01030310376._2
299- let total = min([prevTotal, userGwxAmountAtEndHeight])
300-[StringEntry(userVoteKey, formatUserVote(total, inFavor)), getVoteResultAction(assetId, total, inFavor, currentPeriod, unit)]
301- }
302- }
303- else nil
306+ else nil
304307 ((voteActions :+ updateLatestProcessedAssetAction) :+ updateLatestProcessedUserAction)
305308 }
306309 }
307310
308311
309312 func assetShouldBeEliminated (assetId,period) = !(valueOrElse(getBoolean(keyAssetVerifiedByPeriod(assetId, period)), true))
310313
311314
312315 func eliminationCheck (assetId) = if (if (assetShouldBeEliminated(assetId, (currentPeriod - 1)))
313316 then assetShouldBeEliminated(assetId, (currentPeriod - 2))
314317 else false)
315318 then assetShouldBeEliminated(assetId, (currentPeriod - 3))
316319 else false
317320
318321
319322 @Callable(i)
320323 func constructor (boostingContractPrm,emissionContractPrm,assetsStoreContractPrm,feeAmountPrm,wxAssetIdPrm,votingThresholdPrm,votingDurationPrm,voteBeforeEliminationPrm,startHeightPrm,maxDepthPrm) = {
321324 let checks = [thisOnly(i), if (isDefined(addressFromString(boostingContractPrm)))
322325 then true
323326 else throw("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm)))
324327 then true
325328 else throw("Invalid emission contract address"), if (isDefined(addressFromString(assetsStoreContractPrm)))
326329 then true
327330 else throw("Invalid asset_store contract address"), if ((feeAmountPrm >= 0))
328331 then true
329332 else throw("Invalid fee amount"), if (isDefined(assetInfo(fromBase58String(wxAssetIdPrm))))
330333 then true
331334 else throw("Invalid WX asset ID"), if ((votingThresholdPrm >= 0))
332335 then true
333336 else throw("Invalid voting threshold"), if ((votingDurationPrm > 0))
334337 then true
335338 else throw("Invalid voting duration"), if (((startHeightPrm + votingDurationPrm) > height))
336339 then true
337340 else throw("Invalid start height")]
338341 if ((checks == checks))
339342 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)
340343 else throw("Strict value is not equal to itself.")
341344 }
342345
343346
344347
345348 @Callable(i)
346349 func suggest (assetId,assetImage) = {
347350 let info = valueOrErrorMessage(assetInfo(fromBase58String(assetId)), "Invalid asset ID")
348351 let payment = value(i.payments[0])
349352 let checks = [if ((info.issuer == i.caller))
350353 then true
351354 else throw("Asset can only be suggested by its issuer"), if ((value(payment.assetId) == wxAssetId))
352355 then true
353356 else throw("Invalid fee asset"), if ((payment.amount == feeAmount))
354357 then true
355358 else throw("Invalid fee amount")]
356359 if ((checks == checks))
357360 then {
358361 let assetsStoreCreateOrUpdateInv = invoke(assetsStoreContract, "createOrUpdate", [assetId, "", assetImage, false], nil)
359362 if ((assetsStoreCreateOrUpdateInv == assetsStoreCreateOrUpdateInv))
360363 then {
361364 let burnFeeInv = invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)])
362365 if ((burnFeeInv == burnFeeInv))
363366 then {
364367 let addAssetActions = insertNode(assetsListName, assetId)
365368 let nextPeriod = (currentPeriod + 1)
366369 let targetPeriod = if ((endHeight > height))
367370 then currentPeriod
368371 else nextPeriod
369372 $Tuple2((addAssetActions :+ getVoteResultAction(assetId, 0, true, targetPeriod, false)), unit)
370373 }
371374 else throw("Strict value is not equal to itself.")
372375 }
373376 else throw("Strict value is not equal to itself.")
374377 }
375378 else throw("Strict value is not equal to itself.")
376379 }
377380
378381
379382
380383 @Callable(i)
381384 func vote (assetId,inFavor) = {
382385 let checkAsset = if (containsNode(assetsListName, assetId))
383386 then true
384387 else throw("Invalid asset")
385388 if ((checkAsset == checkAsset))
386389 then {
387390 let checkHeight = if ((endHeight > height))
388391 then true
389392 else throw("Current voting is over but results are not finalized")
390393 if ((checkHeight == checkHeight))
391394 then {
392395 let userAddress = toString(i.caller)
393396 let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight)
394397 let checkGwxAmountAtEnd = if ((gwxAmountAtEnd > 0))
395398 then true
396399 else throw("You'll not have gWX at the end of voting")
397400 if ((checkGwxAmountAtEnd == checkGwxAmountAtEnd))
398401 then {
399402 let votesListName = getVotesListName(assetId)
400403 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
401404 let userVoteOrUnit = getString(userVoteKey)
402405 let cancelVoteInv = if ((userVoteOrUnit == unit))
403406 then unit
404407 else invoke(this, "cancelVote", [assetId], nil)
405408 if ((cancelVoteInv == cancelVoteInv))
406409 then {
407410 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)]
408411 let votesListActions = if (containsNode(votesListName, userAddress))
409412 then nil
410413 else insertNode(votesListName, userAddress)
411414 $Tuple2((votesListActions ++ userVoteActions), unit)
412415 }
413416 else throw("Strict value is not equal to itself.")
414417 }
415418 else throw("Strict value is not equal to itself.")
416419 }
417420 else throw("Strict value is not equal to itself.")
418421 }
419422 else throw("Strict value is not equal to itself.")
420423 }
421424
422425
423426
424427 @Callable(i)
425428 func cancelVote (assetId) = {
426429 let userAddress = if ((i.caller == this))
427430 then toString(i.originCaller)
428431 else toString(i.caller)
429432 let votesListName = getVotesListName(assetId)
430433 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
431434 let userVoteOrUnit = getString(userVoteKey)
432435 let checkVote = valueOrElse(getString(userVoteKey), "Nothing to cancel")
433436 if ((checkVote == checkVote))
434437 then {
435- let $t01577515836 = parseUserVote(value(userVoteOrUnit))
436- let total = $t01577515836._1
437- let inFavor = $t01577515836._2
438+ let $t01598116042 = parseUserVote(value(userVoteOrUnit))
439+ let total = $t01598116042._1
440+ let inFavor = $t01598116042._2
438441 let votesListActions = deleteNode(votesListName, userAddress)
439442 let userVoteActions = [DeleteEntry(userVoteKey), StringEntry(keyUserVoteHistory("cancelVote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(0, true)), getVoteResultAction(assetId, -(total), inFavor, currentPeriod, unit)]
440443 $Tuple2((votesListActions ++ userVoteActions), unit)
441444 }
442445 else throw("Strict value is not equal to itself.")
443446 }
444447
445448
446449
447450 @Callable(i)
448451 func finalizeAssetINTERNAL (assetId,period) = {
449452 let checkCaller = thisOnly(i)
450453 if ((checkCaller == checkCaller))
451454 then {
452455 let voteResultKey = keyVoteResultByPeriod(assetId, period)
453- let $t01649616669 = match getString(voteResultKey) {
456+ let $t01670216875 = match getString(voteResultKey) {
454457 case s: String =>
455458 let r = parseVoteResult(s)
456459 $Tuple2(r._1, r._2)
457460 case _: Unit =>
458461 $Tuple2(0, 0)
459462 case _ =>
460463 throw("Match error")
461464 }
462- let totalYes = $t01649616669._1
463- let totalNo = $t01649616669._2
465+ let totalYes = $t01670216875._1
466+ let totalNo = $t01670216875._2
464467 let total = (totalYes + totalNo)
465468 let verified = if ((total >= votingThreshold))
466469 then (totalYes > totalNo)
467470 else false
468471 let assetVerifiedActions = [BooleanEntry(keyAssetVerifiedByPeriod(assetId, period), verified), if (verified)
469472 then BooleanEntry(keyAssetVerified(assetId), true)
470473 else DeleteEntry(keyAssetVerified(assetId))]
471474 let assetsStoreSetVerifiedInv = invoke(assetsStoreContract, "setVerified", [assetId, verified], nil)
472475 if ((assetsStoreSetVerifiedInv == assetsStoreSetVerifiedInv))
473476 then {
474477 let eliminate = if (verified)
475478 then false
476479 else eliminationCheck(assetId)
477480 let assetWasEliminatedActions = if (eliminate)
478481 then [BooleanEntry(keyAssetWasEliminated(assetId, currentPeriod), true)]
479482 else nil
480483 let voteResultActions = if (eliminate)
481484 then nil
482485 else [getVoteResultAction(assetId, 0, true, (currentPeriod + 1), verified)]
483486 let votesListActions = if (eliminate)
484487 then deleteNode(assetsListName, assetId)
485488 else nil
486489 $Tuple2(((votesListActions ++ voteResultActions) ++ assetVerifiedActions), unit)
487490 }
488491 else throw("Strict value is not equal to itself.")
489492 }
490493 else throw("Strict value is not equal to itself.")
491494 }
492495
493496
494497
495498 @Callable(i)
499+func deleteUserNodeINTERNAL (assetId,userAddress,latestProcessedUserRemoveKey) = {
500+ let checkCaller = thisOnly(i)
501+ if ((checkCaller == checkCaller))
502+ then $Tuple2((deleteNode(getVotesListName(assetId), userAddress) :+ DeleteEntry(latestProcessedUserRemoveKey)), unit)
503+ else throw("Strict value is not equal to itself.")
504+ }
505+
506+
507+
508+@Callable(i)
496509 func finalizeVotingHelper () = if ((endHeight > height))
497510 then $Tuple2(nil, false)
498511 else {
499512 let latestProcessedAssetOrUnit = getString(keyLatestProcessedAsset)
500513 let latestProcessedUserOrUnit = getString(keyLatestProcessedUser)
501514 let nextPeriodDelay = 0
502515 let finish = $Tuple2([IntegerEntry(keyStartHeight, (height + nextPeriodDelay)), IntegerEntry(keyCurrentPeriod, (currentPeriod + 1)), DeleteEntry(keyLatestProcessedAsset), DeleteEntry(keyLatestProcessedUser), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true)
503516 if ((latestProcessedAssetOrUnit == unit))
504517 then {
505518 let assetsHeadOrUnit = getString(keyListHead(assetsListName))
506519 if ((assetsHeadOrUnit == unit))
507520 then finish
508521 else {
509522 let asset = value(assetsHeadOrUnit)
510523 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
511- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
524+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
512525 $Tuple2(processVoteActions, true)
513526 }
514527 }
515528 else {
516529 let latestProcessedAsset = value(latestProcessedAssetOrUnit)
517530 if ((latestProcessedUserOrUnit == unit))
518531 then {
519532 let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset))
520533 if ((assetOrUnit == assetOrUnit))
521534 then {
522535 let finalizeAssetInv = invoke(this, "finalizeAssetINTERNAL", [latestProcessedAsset, currentPeriod], nil)
523536 if ((finalizeAssetInv == finalizeAssetInv))
524537 then if ((assetOrUnit == unit))
525538 then finish
526539 else {
527540 let asset = value(assetOrUnit)
528541 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
529- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
542+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
530543 $Tuple2(processVoteActions, true)
531544 }
532545 else throw("Strict value is not equal to itself.")
533546 }
534547 else throw("Strict value is not equal to itself.")
535548 }
536549 else {
537550 let latestProcessedUser = value(latestProcessedUserOrUnit)
538551 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
539- let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
540- $Tuple2(processVoteActions, true)
552+ if ((userAddressOrUnit == userAddressOrUnit))
553+ then {
554+ let removeLatestUser = valueOrElse(getBoolean(keyLatestProcessedUserRemove), false)
555+ let deleteUserInv = if (removeLatestUser)
556+ then invoke(this, "deleteUserNodeINTERNAL", [latestProcessedAsset, latestProcessedUser, keyLatestProcessedUserRemove], nil)
557+ else unit
558+ if ((deleteUserInv == deleteUserInv))
559+ then {
560+ let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
561+ $Tuple2(processVoteActions, true)
562+ }
563+ else throw("Strict value is not equal to itself.")
564+ }
565+ else throw("Strict value is not equal to itself.")
541566 }
542567 }
543568 }
544569
545570
546571
547572 @Callable(i)
548573 func finalizeVotingWrapper (counter) = {
549574 let result = asBool(invoke(this, "finalizeVotingHelper", nil, nil))
550575 if ((result == result))
551576 then if (!(result))
552577 then if ((counter == 0))
553578 then throw("Current voting is not over yet")
554579 else $Tuple2(nil, unit)
555580 else if ((maxDepth > counter))
556581 then {
557582 let inv = invoke(this, "finalizeVotingWrapper", [(counter + 1)], nil)
558583 if ((inv == inv))
559584 then $Tuple2(nil, unit)
560585 else throw("Strict value is not equal to itself.")
561586 }
562587 else $Tuple2(nil, unit)
563588 else throw("Strict value is not equal to itself.")
564589 }
565590
566591
567592
568593 @Callable(i)
569594 func finalizeVoting () = {
570595 let inv = invoke(this, "finalizeVotingWrapper", [0], nil)
571596 if ((inv == inv))
572597 then $Tuple2(nil, unit)
573598 else throw("Strict value is not equal to itself.")
574599 }
575600
576601
577602
578603 @Callable(i)
579604 func transferVotesHelper () = {
580605 let votesTransferFinishedKey = keyVotesTransferFinishedByPeriod(currentPeriod)
581606 let votesTransferFinished = valueOrElse(getBoolean(votesTransferFinishedKey), false)
582607 if (if (if ((startHeight > height))
583608 then true
584609 else (height >= endHeight))
585610 then true
586611 else votesTransferFinished)
587612 then $Tuple2(nil, false)
588613 else {
589614 let latestProcessedAssetOrUnit = getString(keyLatestProcessedAssetTransfer)
590615 let latestProcessedUserOrUnit = getString(keyLatestProcessedUserTransfer)
591616 let finish = $Tuple2([BooleanEntry(votesTransferFinishedKey, true), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true)
592617 if ((latestProcessedAssetOrUnit == unit))
593618 then {
594619 let assetsHeadOrUnit = getString(keyListHead(assetsListName))
595620 if ((assetsHeadOrUnit == unit))
596621 then finish
597622 else {
598623 let asset = value(assetsHeadOrUnit)
599624 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
600- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
625+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
601626 $Tuple2(processVoteActions, true)
602627 }
603628 }
604629 else {
605630 let latestProcessedAsset = value(latestProcessedAssetOrUnit)
606631 if ((latestProcessedUserOrUnit == unit))
607632 then {
608633 let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset))
609634 if ((assetOrUnit == unit))
610635 then finish
611636 else {
612637 let asset = value(assetOrUnit)
613638 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
614- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
639+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
615640 $Tuple2(processVoteActions, true)
616641 }
617642 }
618643 else {
619644 let latestProcessedUser = value(latestProcessedUserOrUnit)
620645 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
621- let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
622- $Tuple2(processVoteActions, true)
646+ if ((userAddressOrUnit == userAddressOrUnit))
647+ then {
648+ let removeLatestUser = valueOrElse(getBoolean(keyLatestProcessedUserRemoveTransfer), false)
649+ let deleteUserInv = if (removeLatestUser)
650+ then invoke(this, "deleteUserNodeINTERNAL", [latestProcessedAsset, latestProcessedUser, keyLatestProcessedUserRemoveTransfer], nil)
651+ else unit
652+ if ((deleteUserInv == deleteUserInv))
653+ then {
654+ let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
655+ $Tuple2(processVoteActions, true)
656+ }
657+ else throw("Strict value is not equal to itself.")
658+ }
659+ else throw("Strict value is not equal to itself.")
623660 }
624661 }
625662 }
626663 }
627664
628665
629666
630667 @Callable(i)
631668 func transferVotesWrapper (counter) = {
632669 let result = asBool(invoke(this, "transferVotesHelper", nil, nil))
633670 if ((result == result))
634671 then if (!(result))
635672 then if ((counter == 0))
636673 then throw("Voting is not started yet")
637674 else $Tuple2(nil, unit)
638675 else if ((maxDepth > counter))
639676 then {
640677 let inv = invoke(this, "transferVotesWrapper", [(counter + 1)], nil)
641678 if ((inv == inv))
642679 then $Tuple2(nil, unit)
643680 else throw("Strict value is not equal to itself.")
644681 }
645682 else $Tuple2(nil, unit)
646683 else throw("Strict value is not equal to itself.")
647684 }
648685
649686
650687
651688 @Callable(i)
652689 func transferVotes () = {
653690 let inv = invoke(this, "transferVotesWrapper", [0], nil)
654691 if ((inv == inv))
655692 then $Tuple2(nil, unit)
656693 else throw("Strict value is not equal to itself.")
657694 }
658695
659696
660697
661698 @Callable(i)
662699 func setVotingThreshold (newThreshold) = {
663700 let checkCaller = thisOnly(i)
664701 if ((checkCaller == checkCaller))
665702 then $Tuple2([IntegerEntry(keyVotingThreshold, newThreshold)], unit)
666703 else throw("Strict value is not equal to itself.")
667704 }
668705
669706
670707
671708 @Callable(i)
672709 func setFee (newFee) = {
673710 let checkCaller = thisOnly(i)
674711 if ((checkCaller == checkCaller))
675712 then $Tuple2([IntegerEntry(keyFeeAmount, newFee)], unit)
676713 else throw("Strict value is not equal to itself.")
677714 }
678715
679716
680717
681718 @Callable(i)
682719 func gwxAvailableForVoteREADONLY (userAddress) = {
683720 let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight)
684721 $Tuple2(nil, gwxAmountAtEnd)
685722 }
686723
687724

github/deemru/w8io/026f985 
92.72 ms