tx · 6s9MnprM9DZ6PBmvegTgSg3hM7P3zrUHwDaMM8kTj5NJ

3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg:  -0.01000000 Waves

2022.04.08 17:11 [1999692] smart account 3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg > SELF 0.00000000 Waves

{ "type": 13, "id": "6s9MnprM9DZ6PBmvegTgSg3hM7P3zrUHwDaMM8kTj5NJ", "fee": 1000000, "feeAssetId": null, "timestamp": 1649427111419, "version": 2, "chainId": 84, "sender": "3N9yMmmL5cJ7LJxr8o6GFbKFUbGz4XcAjeg", "senderPublicKey": "C2aAS9D6FqfbrkCuCQCtPWAiopjyagvitFLjRuLcRPYt", "proofs": [ "562tUYwVdji3jvPMYRZtTkGMvYQz3jsGnFRMruWTxmbzWU81n61rbNEMcdPBEcTqYm7zqLbEgHWQVZRECPU8auHa" ], "script": "base64:AAIFAAAAAAAAAEgIAhIMCgoICAgBCAEBAQEBEgQKAggIEgQKAggEEgMKAQgSBAoCCAESABIDCgEBEgASABIDCgEBEgASAwoBARIDCgEBEgMKAQgAAAA9AAAAAAlzZXBhcmF0b3ICAAAAAl9fAAAAAA9tYXhEZXB0aERlZmF1bHQAAAAAAAAAAAoBAAAABWFzSW50AAAAAQAAAAN2YWwEAAAAByRtYXRjaDAFAAAAA3ZhbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAZ2YWxJbnQFAAAAByRtYXRjaDAFAAAABnZhbEludAkAAAIAAAABAgAAABtGYWlsZWQgdG8gY2FzdCBpbnRvIEludGVnZXIBAAAABmFzQm9vbAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAAAN2YWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAB3ZhbEJvb2wFAAAAByRtYXRjaDAFAAAAB3ZhbEJvb2wJAAACAAAAAQIAAAAbRmFpbGVkIHRvIGNhc3QgaW50byBCb29sZWFuAAAAAAxrZXlG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c2VsZi4AAAABaQEAAAAbZ3d4QXZhaWxhYmxlRm9yVm90ZVJFQURPTkxZAAAAAQAAAAt1c2VyQWRkcmVzcwQAAAAOZ3d4QW1vdW50QXRFbmQJAQAAABhnZXRVc2VyR3d4QW1vdW50QXRIZWlnaHQAAAACBQAAAAt1c2VyQWRkcmVzcwUAAAAJZW5kSGVpZ2h0CQAFFAAAAAIFAAAAA25pbAUAAAAOZ3d4QW1vdW50QXRFbmQAAAAA6QFDBA==", "height": 1999692, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HQp5zXSxM92vp2PZgLjPRo32ehQMtVWHLofqe16pz1ih Next: 87VvY6ExSGAtoTNUxg4mLQ38jwEoj6cMbbpTFLQ54AXf Diff:
OldNewDifferences
4545
4646 let keyLatestProcessedUser = makeString(["%s", "latestProcessedUser"], separator)
4747
48-let keyLatestProcessedUserRemove = makeString(["%s", "latestProcessedUserRemove"], separator)
49-
5048 let keyLatestProcessedAssetTransfer = makeString(["%s", "latestProcessedAssetTransfer"], separator)
5149
5250 let keyLatestProcessedUserTransfer = makeString(["%s", "latestProcessedUserTransfer"], separator)
53-
54-let keyLatestProcessedUserRemoveTransfer = makeString(["%s", "latestProcessedUserRemoveTransfer"], separator)
5551
5652 let keyMaxDepth = makeString(["%s", "maxDepth"], separator)
5753
198194
199195 func getVoteResultAction (assetId,total,inFavor,period,verified) = {
200196 let voteResultKey = keyVoteResultByPeriod(assetId, period)
201- let $t061636466 = match getString(voteResultKey) {
197+ let $t059616264 = match getString(voteResultKey) {
202198 case s: String =>
203199 parseVoteResult(s)
204200 case _: Unit =>
213209 case _ =>
214210 throw("Match error")
215211 }
216- let oldTotalYes = $t061636466._1
217- let oldTotalNo = $t061636466._2
218- let oldVerified = $t061636466._3
212+ let oldTotalYes = $t059616264._1
213+ let oldTotalNo = $t059616264._2
214+ let oldVerified = $t059616264._3
219215 StringEntry(voteResultKey, formatVoteResult((oldTotalYes + (if (inFavor)
220216 then total
221217 else 0)), (oldTotalNo + (if (inFavor)
271267 }
272268
273269
274-func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey,latestProcessedUserRemoveKey) = {
270+func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey) = {
275271 let updateLatestProcessedAssetAction = StringEntry(latestProcessedAssetKey, assetId)
276272 let deleteLatestProcessedUserAction = DeleteEntry(latestProcessedUserKey)
277273 if ((userAddressOrUnit == unit))
281277 let updateLatestProcessedUserAction = StringEntry(latestProcessedUserKey, userAddress)
282278 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
283279 let userVoteOrUnit = getString(userVoteKey)
284- let voteActions = if ((userVoteOrUnit == unit))
280+ let userGwxAmountAtEndHeight = getUserGwxAmountAtHeight(userAddress, endHeight)
281+ let voteActions = if ((userGwxAmountAtEndHeight == 0))
285282 then {
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])
283+ let votesListName = getVotesListName(assetId)
284+ deleteNode(votesListName, userAddress)
285+ }
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])
302300 [StringEntry(userVoteKey, formatUserVote(total, inFavor)), getVoteResultAction(assetId, total, inFavor, currentPeriod, unit)]
303- }
304- }
305- }
306- else nil
301+ }
302+ }
303+ else nil
307304 ((voteActions :+ updateLatestProcessedAssetAction) :+ updateLatestProcessedUserAction)
308305 }
309306 }
435432 let checkVote = valueOrElse(getString(userVoteKey), "Nothing to cancel")
436433 if ((checkVote == checkVote))
437434 then {
438- let $t01598116042 = parseUserVote(value(userVoteOrUnit))
439- let total = $t01598116042._1
440- let inFavor = $t01598116042._2
435+ let $t01577515836 = parseUserVote(value(userVoteOrUnit))
436+ let total = $t01577515836._1
437+ let inFavor = $t01577515836._2
441438 let votesListActions = deleteNode(votesListName, userAddress)
442439 let userVoteActions = [DeleteEntry(userVoteKey), StringEntry(keyUserVoteHistory("cancelVote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(0, true)), getVoteResultAction(assetId, -(total), inFavor, currentPeriod, unit)]
443440 $Tuple2((votesListActions ++ userVoteActions), unit)
453450 if ((checkCaller == checkCaller))
454451 then {
455452 let voteResultKey = keyVoteResultByPeriod(assetId, period)
456- let $t01670216875 = match getString(voteResultKey) {
453+ let $t01649616669 = match getString(voteResultKey) {
457454 case s: String =>
458455 let r = parseVoteResult(s)
459456 $Tuple2(r._1, r._2)
462459 case _ =>
463460 throw("Match error")
464461 }
465- let totalYes = $t01670216875._1
466- let totalNo = $t01670216875._2
462+ let totalYes = $t01649616669._1
463+ let totalNo = $t01649616669._2
467464 let total = (totalYes + totalNo)
468465 let verified = if ((total >= votingThreshold))
469466 then (totalYes > totalNo)
496493
497494
498495 @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)
509496 func finalizeVotingHelper () = if ((endHeight > height))
510497 then $Tuple2(nil, false)
511498 else {
521508 else {
522509 let asset = value(assetsHeadOrUnit)
523510 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
524- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
511+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
525512 $Tuple2(processVoteActions, true)
526513 }
527514 }
539526 else {
540527 let asset = value(assetOrUnit)
541528 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
542- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
529+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
543530 $Tuple2(processVoteActions, true)
544531 }
545532 else throw("Strict value is not equal to itself.")
549536 else {
550537 let latestProcessedUser = value(latestProcessedUserOrUnit)
551538 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
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.")
539+ let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
540+ $Tuple2(processVoteActions, true)
566541 }
567542 }
568543 }
622597 else {
623598 let asset = value(assetsHeadOrUnit)
624599 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
625- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
600+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
626601 $Tuple2(processVoteActions, true)
627602 }
628603 }
636611 else {
637612 let asset = value(assetOrUnit)
638613 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
639- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
614+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
640615 $Tuple2(processVoteActions, true)
641616 }
642617 }
643618 else {
644619 let latestProcessedUser = value(latestProcessedUserOrUnit)
645620 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
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.")
621+ let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
622+ $Tuple2(processVoteActions, true)
660623 }
661624 }
662625 }
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-
5048 let keyLatestProcessedAssetTransfer = makeString(["%s", "latestProcessedAssetTransfer"], separator)
5149
5250 let keyLatestProcessedUserTransfer = makeString(["%s", "latestProcessedUserTransfer"], separator)
53-
54-let keyLatestProcessedUserRemoveTransfer = makeString(["%s", "latestProcessedUserRemoveTransfer"], separator)
5551
5652 let keyMaxDepth = makeString(["%s", "maxDepth"], separator)
5753
5854 func keyVotesTransferFinishedByPeriod (period) = makeString(["%s", "votesTransferFinished", toString(period)], separator)
5955
6056
6157 let assetsListName = "__assets"
6258
6359 func getVotesListName (assetId) = ("%s__votes__" + assetId)
6460
6561
6662 func keyListHead (listName) = makeString([("%s%s" + listName), "head"], separator)
6763
6864
6965 func keyListSize (listName) = makeString([("%s%s" + listName), "size"], separator)
7066
7167
7268 func keyListPrev (listName,id) = makeString([("%s%s%s" + listName), id, "prev"], separator)
7369
7470
7571 func keyListNext (listName,id) = makeString([("%s%s%s" + listName), id, "next"], separator)
7672
7773
7874 func keyAssetVerifiedByPeriod (assetId,period) = makeString(["%s%d%s", "verifiedAt", toString(period), assetId], separator)
7975
8076
8177 func keyAssetVerified (assetId) = makeString(["%s%s", "verified", assetId], separator)
8278
8379
8480 func keyAssetWasEliminated (assetId,period) = makeString(["%s%s%d", "eliminated", assetId, toString(period)], separator)
8581
8682
8783 func keyVoteResultByPeriod (assetId,period) = makeString(["%s%d%s", "votingResultAtAsset", toString(period), assetId], separator)
8884
8985
9086 func formatVoteResult (totalYes,totalNo,verified) = makeString(["%d%d%s", toString(totalYes), toString(totalNo), toString(verified)], separator)
9187
9288
9389 func parseVoteResult (input) = {
9490 let parts = split(input, separator)
9591 let totalYesIdx = 1
9692 let totalNoIdx = 2
9793 let verifiedIdx = 3
9894 let totalYes = parseIntValue(parts[totalYesIdx])
9995 let totalNo = parseIntValue(parts[totalNoIdx])
10096 let verified = if ((size(parts) == 4))
10197 then (parts[verifiedIdx] == "true")
10298 else false
10399 $Tuple3(totalYes, totalNo, verified)
104100 }
105101
106102
107103 func keyUserVoteByPeriod (userAddress,assetId,period) = makeString(["%s%d%s%s", "vru", toString(period), assetId, userAddress], separator)
108104
109105
110106 func formatUserVote (total,inFavor) = {
111107 let totalYes = if (inFavor)
112108 then total
113109 else 0
114110 let totalNo = if (inFavor)
115111 then 0
116112 else total
117113 makeString(["%d%d", toString(totalYes), toString(totalNo)], separator)
118114 }
119115
120116
121117 func parseUserVote (input) = {
122118 let parts = split(input, separator)
123119 let totalYesIdx = 1
124120 let totalNoIdx = 2
125121 let totalYes = parseIntValue(parts[totalYesIdx])
126122 let totalNo = parseIntValue(parts[totalNoIdx])
127123 let inFavor = if ((totalYes > 0))
128124 then (totalNo == 0)
129125 else false
130126 let against = if ((totalYes == 0))
131127 then (totalNo > 0)
132128 else false
133129 let checkTotals = if (if (inFavor)
134130 then true
135131 else against)
136132 then true
137133 else throw("Invalid user vote value")
138134 if ((checkTotals == checkTotals))
139135 then {
140136 let total = if (inFavor)
141137 then totalYes
142138 else totalNo
143139 $Tuple2(total, inFavor)
144140 }
145141 else throw("Strict value is not equal to itself.")
146142 }
147143
148144
149145 func keyUserVoteHistory (type,userAddress,assetId,txId,period) = makeString(["%s%s%s%s%s%d", "history", type, assetId, userAddress, txId, toString(period)], separator)
150146
151147
152148 func thisOnly (i) = if ((i.caller == this))
153149 then true
154150 else throw("Permission denied")
155151
156152
157153 func getIntegerOrZero (key) = valueOrElse(getInteger(this, key), 0)
158154
159155
160156 func getIntegerOrFail (key) = valueOrErrorMessage(getInteger(this, key), (key + " is not defined"))
161157
162158
163159 func getStringOrEmpty (key) = valueOrElse(getString(this, key), "")
164160
165161
166162 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (key + " is not defined"))
167163
168164
169165 let feeAmount = getIntegerOrFail(keyFeeAmount)
170166
171167 let wxAssetId = fromBase58String(getStringOrFail(keyWxAssetId))
172168
173169 let votingThreshold = getIntegerOrFail(keyVotingThreshold)
174170
175171 let votingDuration = getIntegerOrFail(keyVotingDuration)
176172
177173 let voteBeforeElimination = getIntegerOrFail(keyVoteBeforeElimination)
178174
179175 let startHeight = getIntegerOrFail(keyStartHeight)
180176
181177 let currentPeriod = getIntegerOrFail(keyCurrentPeriod)
182178
183179 let boostingContract = addressFromStringValue(getStringOrFail(keyBoostingContract))
184180
185181 let emissionContract = addressFromStringValue(getStringOrFail(keyEmissionContract))
186182
187183 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract))
188184
189185 let maxDepth = valueOrElse(getInteger(keyMaxDepth), maxDepthDefault)
190186
191187 let endHeight = (startHeight + votingDuration)
192188
193189 func getUserGwxAmountAtHeight (userAddress,targetHeight) = {
194190 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
195191 asInt(gwxAmount)
196192 }
197193
198194
199195 func getVoteResultAction (assetId,total,inFavor,period,verified) = {
200196 let voteResultKey = keyVoteResultByPeriod(assetId, period)
201- let $t061636466 = match getString(voteResultKey) {
197+ let $t059616264 = match getString(voteResultKey) {
202198 case s: String =>
203199 parseVoteResult(s)
204200 case _: Unit =>
205201 match getString(keyVoteResultByPeriod(assetId, (period - 1))) {
206202 case s: String =>
207203 $Tuple3(0, 0, parseVoteResult(s)._3)
208204 case _: Unit =>
209205 $Tuple3(0, 0, false)
210206 case _ =>
211207 throw("Match error")
212208 }
213209 case _ =>
214210 throw("Match error")
215211 }
216- let oldTotalYes = $t061636466._1
217- let oldTotalNo = $t061636466._2
218- let oldVerified = $t061636466._3
212+ let oldTotalYes = $t059616264._1
213+ let oldTotalNo = $t059616264._2
214+ let oldVerified = $t059616264._3
219215 StringEntry(voteResultKey, formatVoteResult((oldTotalYes + (if (inFavor)
220216 then total
221217 else 0)), (oldTotalNo + (if (inFavor)
222218 then 0
223219 else total)), if ((verified == unit))
224220 then oldVerified
225221 else value(verified)))
226222 }
227223
228224
229225 func containsNode (listName,id) = {
230226 let head = getString(this, keyListHead(listName))
231227 let prev = getString(this, keyListPrev(listName, id))
232228 let next = getString(this, keyListNext(listName, id))
233229 if (if ((id == head))
234230 then true
235231 else (prev != unit))
236232 then true
237233 else (next != unit)
238234 }
239235
240236
241237 func insertNode (listName,id) = {
242238 let head = getString(this, keyListHead(listName))
243239 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
244240 let checkNode = if (!(containsNode(listName, id)))
245241 then true
246242 else throw("Node exists")
247243 if ((checkNode == checkNode))
248244 then (([IntegerEntry(keyListSize(listName), (listSize + 1))] ++ (if (isDefined(head))
249245 then [StringEntry(keyListNext(listName, id), value(head)), StringEntry(keyListPrev(listName, value(head)), id)]
250246 else nil)) ++ [StringEntry(keyListHead(listName), id)])
251247 else throw("Strict value is not equal to itself.")
252248 }
253249
254250
255251 func deleteNode (listName,id) = {
256252 let head = getString(this, keyListHead(listName))
257253 let listSize = valueOrElse(getInteger(this, keyListSize(listName)), 0)
258254 let prev = getString(this, keyListPrev(listName, id))
259255 let next = getString(this, keyListNext(listName, id))
260256 ([IntegerEntry(keyListSize(listName), (listSize - 1))] ++ (if (if (isDefined(prev))
261257 then isDefined(next)
262258 else false)
263259 then [StringEntry(keyListNext(listName, value(prev)), value(next)), StringEntry(keyListPrev(listName, value(next)), value(prev)), DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, id))]
264260 else if (isDefined(next))
265261 then [StringEntry(keyListHead(listName), value(next)), DeleteEntry(keyListNext(listName, id)), DeleteEntry(keyListPrev(listName, value(next)))]
266262 else if (isDefined(prev))
267263 then [DeleteEntry(keyListPrev(listName, id)), DeleteEntry(keyListNext(listName, value(prev)))]
268264 else if ((id == head))
269265 then [DeleteEntry(keyListHead(listName))]
270266 else throw("Invalid node")))
271267 }
272268
273269
274-func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey,latestProcessedUserRemoveKey) = {
270+func processVote (assetId,userAddressOrUnit,latestProcessedAssetKey,latestProcessedUserKey) = {
275271 let updateLatestProcessedAssetAction = StringEntry(latestProcessedAssetKey, assetId)
276272 let deleteLatestProcessedUserAction = DeleteEntry(latestProcessedUserKey)
277273 if ((userAddressOrUnit == unit))
278274 then [updateLatestProcessedAssetAction, deleteLatestProcessedUserAction]
279275 else {
280276 let userAddress = value(userAddressOrUnit)
281277 let updateLatestProcessedUserAction = StringEntry(latestProcessedUserKey, userAddress)
282278 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
283279 let userVoteOrUnit = getString(userVoteKey)
284- let voteActions = if ((userVoteOrUnit == unit))
280+ let userGwxAmountAtEndHeight = getUserGwxAmountAtHeight(userAddress, endHeight)
281+ let voteActions = if ((userGwxAmountAtEndHeight == 0))
285282 then {
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])
283+ let votesListName = getVotesListName(assetId)
284+ deleteNode(votesListName, userAddress)
285+ }
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])
302300 [StringEntry(userVoteKey, formatUserVote(total, inFavor)), getVoteResultAction(assetId, total, inFavor, currentPeriod, unit)]
303- }
304- }
305- }
306- else nil
301+ }
302+ }
303+ else nil
307304 ((voteActions :+ updateLatestProcessedAssetAction) :+ updateLatestProcessedUserAction)
308305 }
309306 }
310307
311308
312309 func assetShouldBeEliminated (assetId,period) = !(valueOrElse(getBoolean(keyAssetVerifiedByPeriod(assetId, period)), true))
313310
314311
315312 func eliminationCheck (assetId) = if (if (assetShouldBeEliminated(assetId, (currentPeriod - 1)))
316313 then assetShouldBeEliminated(assetId, (currentPeriod - 2))
317314 else false)
318315 then assetShouldBeEliminated(assetId, (currentPeriod - 3))
319316 else false
320317
321318
322319 @Callable(i)
323320 func constructor (boostingContractPrm,emissionContractPrm,assetsStoreContractPrm,feeAmountPrm,wxAssetIdPrm,votingThresholdPrm,votingDurationPrm,voteBeforeEliminationPrm,startHeightPrm,maxDepthPrm) = {
324321 let checks = [thisOnly(i), if (isDefined(addressFromString(boostingContractPrm)))
325322 then true
326323 else throw("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm)))
327324 then true
328325 else throw("Invalid emission contract address"), if (isDefined(addressFromString(assetsStoreContractPrm)))
329326 then true
330327 else throw("Invalid asset_store contract address"), if ((feeAmountPrm >= 0))
331328 then true
332329 else throw("Invalid fee amount"), if (isDefined(assetInfo(fromBase58String(wxAssetIdPrm))))
333330 then true
334331 else throw("Invalid WX asset ID"), if ((votingThresholdPrm >= 0))
335332 then true
336333 else throw("Invalid voting threshold"), if ((votingDurationPrm > 0))
337334 then true
338335 else throw("Invalid voting duration"), if (((startHeightPrm + votingDurationPrm) > height))
339336 then true
340337 else throw("Invalid start height")]
341338 if ((checks == checks))
342339 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)
343340 else throw("Strict value is not equal to itself.")
344341 }
345342
346343
347344
348345 @Callable(i)
349346 func suggest (assetId,assetImage) = {
350347 let info = valueOrErrorMessage(assetInfo(fromBase58String(assetId)), "Invalid asset ID")
351348 let payment = value(i.payments[0])
352349 let checks = [if ((info.issuer == i.caller))
353350 then true
354351 else throw("Asset can only be suggested by its issuer"), if ((value(payment.assetId) == wxAssetId))
355352 then true
356353 else throw("Invalid fee asset"), if ((payment.amount == feeAmount))
357354 then true
358355 else throw("Invalid fee amount")]
359356 if ((checks == checks))
360357 then {
361358 let assetsStoreCreateOrUpdateInv = invoke(assetsStoreContract, "createOrUpdate", [assetId, "", assetImage, false], nil)
362359 if ((assetsStoreCreateOrUpdateInv == assetsStoreCreateOrUpdateInv))
363360 then {
364361 let burnFeeInv = invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)])
365362 if ((burnFeeInv == burnFeeInv))
366363 then {
367364 let addAssetActions = insertNode(assetsListName, assetId)
368365 let nextPeriod = (currentPeriod + 1)
369366 let targetPeriod = if ((endHeight > height))
370367 then currentPeriod
371368 else nextPeriod
372369 $Tuple2((addAssetActions :+ getVoteResultAction(assetId, 0, true, targetPeriod, false)), unit)
373370 }
374371 else throw("Strict value is not equal to itself.")
375372 }
376373 else throw("Strict value is not equal to itself.")
377374 }
378375 else throw("Strict value is not equal to itself.")
379376 }
380377
381378
382379
383380 @Callable(i)
384381 func vote (assetId,inFavor) = {
385382 let checkAsset = if (containsNode(assetsListName, assetId))
386383 then true
387384 else throw("Invalid asset")
388385 if ((checkAsset == checkAsset))
389386 then {
390387 let checkHeight = if ((endHeight > height))
391388 then true
392389 else throw("Current voting is over but results are not finalized")
393390 if ((checkHeight == checkHeight))
394391 then {
395392 let userAddress = toString(i.caller)
396393 let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight)
397394 let checkGwxAmountAtEnd = if ((gwxAmountAtEnd > 0))
398395 then true
399396 else throw("You'll not have gWX at the end of voting")
400397 if ((checkGwxAmountAtEnd == checkGwxAmountAtEnd))
401398 then {
402399 let votesListName = getVotesListName(assetId)
403400 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
404401 let userVoteOrUnit = getString(userVoteKey)
405402 let cancelVoteInv = if ((userVoteOrUnit == unit))
406403 then unit
407404 else invoke(this, "cancelVote", [assetId], nil)
408405 if ((cancelVoteInv == cancelVoteInv))
409406 then {
410407 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)]
411408 let votesListActions = if (containsNode(votesListName, userAddress))
412409 then nil
413410 else insertNode(votesListName, userAddress)
414411 $Tuple2((votesListActions ++ userVoteActions), unit)
415412 }
416413 else throw("Strict value is not equal to itself.")
417414 }
418415 else throw("Strict value is not equal to itself.")
419416 }
420417 else throw("Strict value is not equal to itself.")
421418 }
422419 else throw("Strict value is not equal to itself.")
423420 }
424421
425422
426423
427424 @Callable(i)
428425 func cancelVote (assetId) = {
429426 let userAddress = if ((i.caller == this))
430427 then toString(i.originCaller)
431428 else toString(i.caller)
432429 let votesListName = getVotesListName(assetId)
433430 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
434431 let userVoteOrUnit = getString(userVoteKey)
435432 let checkVote = valueOrElse(getString(userVoteKey), "Nothing to cancel")
436433 if ((checkVote == checkVote))
437434 then {
438- let $t01598116042 = parseUserVote(value(userVoteOrUnit))
439- let total = $t01598116042._1
440- let inFavor = $t01598116042._2
435+ let $t01577515836 = parseUserVote(value(userVoteOrUnit))
436+ let total = $t01577515836._1
437+ let inFavor = $t01577515836._2
441438 let votesListActions = deleteNode(votesListName, userAddress)
442439 let userVoteActions = [DeleteEntry(userVoteKey), StringEntry(keyUserVoteHistory("cancelVote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(0, true)), getVoteResultAction(assetId, -(total), inFavor, currentPeriod, unit)]
443440 $Tuple2((votesListActions ++ userVoteActions), unit)
444441 }
445442 else throw("Strict value is not equal to itself.")
446443 }
447444
448445
449446
450447 @Callable(i)
451448 func finalizeAssetINTERNAL (assetId,period) = {
452449 let checkCaller = thisOnly(i)
453450 if ((checkCaller == checkCaller))
454451 then {
455452 let voteResultKey = keyVoteResultByPeriod(assetId, period)
456- let $t01670216875 = match getString(voteResultKey) {
453+ let $t01649616669 = match getString(voteResultKey) {
457454 case s: String =>
458455 let r = parseVoteResult(s)
459456 $Tuple2(r._1, r._2)
460457 case _: Unit =>
461458 $Tuple2(0, 0)
462459 case _ =>
463460 throw("Match error")
464461 }
465- let totalYes = $t01670216875._1
466- let totalNo = $t01670216875._2
462+ let totalYes = $t01649616669._1
463+ let totalNo = $t01649616669._2
467464 let total = (totalYes + totalNo)
468465 let verified = if ((total >= votingThreshold))
469466 then (totalYes > totalNo)
470467 else false
471468 let assetVerifiedActions = [BooleanEntry(keyAssetVerifiedByPeriod(assetId, period), verified), if (verified)
472469 then BooleanEntry(keyAssetVerified(assetId), true)
473470 else DeleteEntry(keyAssetVerified(assetId))]
474471 let assetsStoreSetVerifiedInv = invoke(assetsStoreContract, "setVerified", [assetId, verified], nil)
475472 if ((assetsStoreSetVerifiedInv == assetsStoreSetVerifiedInv))
476473 then {
477474 let eliminate = if (verified)
478475 then false
479476 else eliminationCheck(assetId)
480477 let assetWasEliminatedActions = if (eliminate)
481478 then [BooleanEntry(keyAssetWasEliminated(assetId, currentPeriod), true)]
482479 else nil
483480 let voteResultActions = if (eliminate)
484481 then nil
485482 else [getVoteResultAction(assetId, 0, true, (currentPeriod + 1), verified)]
486483 let votesListActions = if (eliminate)
487484 then deleteNode(assetsListName, assetId)
488485 else nil
489486 $Tuple2(((votesListActions ++ voteResultActions) ++ assetVerifiedActions), unit)
490487 }
491488 else throw("Strict value is not equal to itself.")
492489 }
493490 else throw("Strict value is not equal to itself.")
494491 }
495492
496493
497494
498495 @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)
509496 func finalizeVotingHelper () = if ((endHeight > height))
510497 then $Tuple2(nil, false)
511498 else {
512499 let latestProcessedAssetOrUnit = getString(keyLatestProcessedAsset)
513500 let latestProcessedUserOrUnit = getString(keyLatestProcessedUser)
514501 let nextPeriodDelay = 0
515502 let finish = $Tuple2([IntegerEntry(keyStartHeight, (height + nextPeriodDelay)), IntegerEntry(keyCurrentPeriod, (currentPeriod + 1)), DeleteEntry(keyLatestProcessedAsset), DeleteEntry(keyLatestProcessedUser), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true)
516503 if ((latestProcessedAssetOrUnit == unit))
517504 then {
518505 let assetsHeadOrUnit = getString(keyListHead(assetsListName))
519506 if ((assetsHeadOrUnit == unit))
520507 then finish
521508 else {
522509 let asset = value(assetsHeadOrUnit)
523510 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
524- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
511+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
525512 $Tuple2(processVoteActions, true)
526513 }
527514 }
528515 else {
529516 let latestProcessedAsset = value(latestProcessedAssetOrUnit)
530517 if ((latestProcessedUserOrUnit == unit))
531518 then {
532519 let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset))
533520 if ((assetOrUnit == assetOrUnit))
534521 then {
535522 let finalizeAssetInv = invoke(this, "finalizeAssetINTERNAL", [latestProcessedAsset, currentPeriod], nil)
536523 if ((finalizeAssetInv == finalizeAssetInv))
537524 then if ((assetOrUnit == unit))
538525 then finish
539526 else {
540527 let asset = value(assetOrUnit)
541528 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
542- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
529+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
543530 $Tuple2(processVoteActions, true)
544531 }
545532 else throw("Strict value is not equal to itself.")
546533 }
547534 else throw("Strict value is not equal to itself.")
548535 }
549536 else {
550537 let latestProcessedUser = value(latestProcessedUserOrUnit)
551538 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
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.")
539+ let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser)
540+ $Tuple2(processVoteActions, true)
566541 }
567542 }
568543 }
569544
570545
571546
572547 @Callable(i)
573548 func finalizeVotingWrapper (counter) = {
574549 let result = asBool(invoke(this, "finalizeVotingHelper", nil, nil))
575550 if ((result == result))
576551 then if (!(result))
577552 then if ((counter == 0))
578553 then throw("Current voting is not over yet")
579554 else $Tuple2(nil, unit)
580555 else if ((maxDepth > counter))
581556 then {
582557 let inv = invoke(this, "finalizeVotingWrapper", [(counter + 1)], nil)
583558 if ((inv == inv))
584559 then $Tuple2(nil, unit)
585560 else throw("Strict value is not equal to itself.")
586561 }
587562 else $Tuple2(nil, unit)
588563 else throw("Strict value is not equal to itself.")
589564 }
590565
591566
592567
593568 @Callable(i)
594569 func finalizeVoting () = {
595570 let inv = invoke(this, "finalizeVotingWrapper", [0], nil)
596571 if ((inv == inv))
597572 then $Tuple2(nil, unit)
598573 else throw("Strict value is not equal to itself.")
599574 }
600575
601576
602577
603578 @Callable(i)
604579 func transferVotesHelper () = {
605580 let votesTransferFinishedKey = keyVotesTransferFinishedByPeriod(currentPeriod)
606581 let votesTransferFinished = valueOrElse(getBoolean(votesTransferFinishedKey), false)
607582 if (if (if ((startHeight > height))
608583 then true
609584 else (height >= endHeight))
610585 then true
611586 else votesTransferFinished)
612587 then $Tuple2(nil, false)
613588 else {
614589 let latestProcessedAssetOrUnit = getString(keyLatestProcessedAssetTransfer)
615590 let latestProcessedUserOrUnit = getString(keyLatestProcessedUserTransfer)
616591 let finish = $Tuple2([BooleanEntry(votesTransferFinishedKey, true), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true)
617592 if ((latestProcessedAssetOrUnit == unit))
618593 then {
619594 let assetsHeadOrUnit = getString(keyListHead(assetsListName))
620595 if ((assetsHeadOrUnit == unit))
621596 then finish
622597 else {
623598 let asset = value(assetsHeadOrUnit)
624599 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
625- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
600+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
626601 $Tuple2(processVoteActions, true)
627602 }
628603 }
629604 else {
630605 let latestProcessedAsset = value(latestProcessedAssetOrUnit)
631606 if ((latestProcessedUserOrUnit == unit))
632607 then {
633608 let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset))
634609 if ((assetOrUnit == unit))
635610 then finish
636611 else {
637612 let asset = value(assetOrUnit)
638613 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
639- let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
614+ let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
640615 $Tuple2(processVoteActions, true)
641616 }
642617 }
643618 else {
644619 let latestProcessedUser = value(latestProcessedUserOrUnit)
645620 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
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.")
621+ let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer)
622+ $Tuple2(processVoteActions, true)
660623 }
661624 }
662625 }
663626 }
664627
665628
666629
667630 @Callable(i)
668631 func transferVotesWrapper (counter) = {
669632 let result = asBool(invoke(this, "transferVotesHelper", nil, nil))
670633 if ((result == result))
671634 then if (!(result))
672635 then if ((counter == 0))
673636 then throw("Voting is not started yet")
674637 else $Tuple2(nil, unit)
675638 else if ((maxDepth > counter))
676639 then {
677640 let inv = invoke(this, "transferVotesWrapper", [(counter + 1)], nil)
678641 if ((inv == inv))
679642 then $Tuple2(nil, unit)
680643 else throw("Strict value is not equal to itself.")
681644 }
682645 else $Tuple2(nil, unit)
683646 else throw("Strict value is not equal to itself.")
684647 }
685648
686649
687650
688651 @Callable(i)
689652 func transferVotes () = {
690653 let inv = invoke(this, "transferVotesWrapper", [0], nil)
691654 if ((inv == inv))
692655 then $Tuple2(nil, unit)
693656 else throw("Strict value is not equal to itself.")
694657 }
695658
696659
697660
698661 @Callable(i)
699662 func setVotingThreshold (newThreshold) = {
700663 let checkCaller = thisOnly(i)
701664 if ((checkCaller == checkCaller))
702665 then $Tuple2([IntegerEntry(keyVotingThreshold, newThreshold)], unit)
703666 else throw("Strict value is not equal to itself.")
704667 }
705668
706669
707670
708671 @Callable(i)
709672 func setFee (newFee) = {
710673 let checkCaller = thisOnly(i)
711674 if ((checkCaller == checkCaller))
712675 then $Tuple2([IntegerEntry(keyFeeAmount, newFee)], unit)
713676 else throw("Strict value is not equal to itself.")
714677 }
715678
716679
717680
718681 @Callable(i)
719682 func gwxAvailableForVoteREADONLY (userAddress) = {
720683 let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight)
721684 $Tuple2(nil, gwxAmountAtEnd)
722685 }
723686
724687

github/deemru/w8io/026f985 
77.55 ms