tx · DCyBZynMgARuzqqSwLknsHaTeHRjCRBozND1rXCfifMY

3N2FGM7wrwgm6K2XyxMN2YHnPgRxHHbNgLk:  -0.03400000 Waves

2023.05.04 13:15 [2562881] smart account 3N2FGM7wrwgm6K2XyxMN2YHnPgRxHHbNgLk > SELF 0.00000000 Waves

{ "type": 13, "id": "DCyBZynMgARuzqqSwLknsHaTeHRjCRBozND1rXCfifMY", "fee": 3400000, "feeAssetId": null, "timestamp": 1683195341818, "version": 2, "chainId": 84, "sender": "3N2FGM7wrwgm6K2XyxMN2YHnPgRxHHbNgLk", "senderPublicKey": "75QPrVthbCVbT7B1oZsnwtGJxTMgcnYjFzVLgL7n3goy", "proofs": [ "3r2QKFKXf1V1JwQ34DZxsqM9MbXMkpanHqri44SvJcgAGeBpvk3ph1gyLCPWT2EwGCSAESomy6CxybUky2uRb6Kw" ], "script": "base64:AAIFAAAAAAAAAE8IAhIMCgoICAgBCAEBAQEBEgQKAggIEgQKAggEEgMKAQgSBAoCCAESBQoDCAgIEgASAwoBARIAEgASAwoBARIAEgMKAQESAwoBARIDCgEIAAAAPwAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAAPbWF4RGVwdGhEZWZhdWx0AAAAAAAAAAAKAQAAAAVhc0ludAAAAAEAAAADdmFsBAAAAAckbWF0Y2gwBQAAAAN2YWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAAGdmFsSW50BQAAAAckbWF0Y2gwBQAAAAZ2YWxJbnQJAAACAAAAAQIAAAAbRmFpbGVkIHRvIGNhc3QgaW50byBJbnRlZ2VyAQAAAAZhc0Jvb2wAAAABAAAAA3ZhbAQAAAAHJG1hdGNoMAUAAAADdmFsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAd2YWxCb29sBQAAAAckbWF0Y2gwBQAAAAd2YWxCb29sCQAAAgAAAAECAAAAG0ZhaWxlZCB0byBjYXN0IGludG8gQm9vbGVhbgAAAAAMa2V5Rm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XIJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAASa2V5Vm90aW5nVGhyZXNob2xkBQAAAAxuZXdUaHJlc2hvbGQFAAAAA25pbAUAAAAEdW5pdAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAGc2V0RmVlAAAAAQAAAAZuZXdGZWUEAAAAC2NoZWNrQ2FsbGVyCQEAAAAIdGhpc09ubHkAAAABBQAAAAFpAwkAAAAAAAACBQAAAAtjaGVja0NhbGxlcgUAAAALY2hlY2tDYWxsZXIJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAMa2V5RmVlQW1vdW50BQAAAAZuZXdGZWUFAAAAA25pbAUAAAAEdW5pdAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAbZ3d4QXZhaWxhYmxlRm9yVm90ZVJFQURPTkxZAAAAAQAAAAt1c2VyQWRkcmVzcwQAAAAOZ3d4QW1vdW50QXRFbmQJAQAAABhnZXRVc2VyR3d4QW1vdW50QXRIZWlnaHQAAAACBQAAAAt1c2VyQWRkcmVzcwUAAAAJZW5kSGVpZ2h0CQAFFAAAAAIFAAAAA25pbAUAAAAOZ3d4QW1vdW50QXRFbmQAAAAAbiRbCw==", "height": 2562881, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3BmQnjYnmCEF5jpYPzu9jnvJHBZ51RB99j3uvJeY65LB Next: none Diff:
OldNewDifferences
348348 @Callable(i)
349349 func suggest (assetId,assetImage) = {
350350 let info = valueOrErrorMessage(assetInfo(fromBase58String(assetId)), "Invalid asset ID")
351- let payment = value(i.payments[0])
352- let checks = [if ((info.issuer == i.caller))
353- then true
354- else throw("Asset can only be suggested by its issuer"), if ((value(payment.assetId) == wxAssetId))
355- then true
356- else throw("Invalid fee asset"), if ((payment.amount == feeAmount))
357- then true
358- else throw("Invalid fee amount")]
359- if ((checks == checks))
351+ if ((info == info))
360352 then {
361- let assetsStoreCreateOrUpdateInv = invoke(assetsStoreContract, "createOrUpdate", [assetId, assetImage, false], nil)
362- if ((assetsStoreCreateOrUpdateInv == assetsStoreCreateOrUpdateInv))
353+ let payment = value(i.payments[0])
354+ let isThis = (i.caller == this)
355+ let checks = [if (if (isThis)
356+ then true
357+ else (value(payment.assetId) == wxAssetId))
358+ then true
359+ else throw("Invalid fee asset"), if (if (isThis)
360+ then true
361+ else (payment.amount == feeAmount))
362+ then true
363+ else throw("Invalid fee amount")]
364+ if ((checks == checks))
363365 then {
364- let burnFeeInv = invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)])
365- if ((burnFeeInv == burnFeeInv))
366+ let assetsStoreCreateOrUpdateInv = invoke(assetsStoreContract, "createOrUpdate", [assetId, assetImage, false], nil)
367+ if ((assetsStoreCreateOrUpdateInv == assetsStoreCreateOrUpdateInv))
366368 then {
367- let addAssetActions = insertNode(assetsListName, assetId)
368- let nextPeriod = (currentPeriod + 1)
369- let targetPeriod = if ((endHeight > height))
370- then currentPeriod
371- else nextPeriod
372- $Tuple2((addAssetActions :+ getVoteResultAction(assetId, 0, true, targetPeriod, false)), unit)
369+ let burnFeeInv = if (isThis)
370+ then unit
371+ else invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)])
372+ if ((burnFeeInv == burnFeeInv))
373+ then {
374+ let addAssetActions = insertNode(assetsListName, assetId)
375+ let nextPeriod = (currentPeriod + 1)
376+ let targetPeriod = if ((endHeight > height))
377+ then currentPeriod
378+ else nextPeriod
379+ $Tuple2((addAssetActions :+ getVoteResultAction(assetId, 0, true, targetPeriod, false)), unit)
380+ }
381+ else throw("Strict value is not equal to itself.")
373382 }
374383 else throw("Strict value is not equal to itself.")
375384 }
432441 let votesListName = getVotesListName(assetId)
433442 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
434443 let userVoteOrUnit = getString(userVoteKey)
435- let $t01595516049 = parseUserVote(valueOrErrorMessage(userVoteOrUnit, "Nothing to cancel"))
436- let total = $t01595516049._1
437- let inFavor = $t01595516049._2
444+ let $t01597316067 = parseUserVote(valueOrErrorMessage(userVoteOrUnit, "Nothing to cancel"))
445+ let total = $t01597316067._1
446+ let inFavor = $t01597316067._2
438447 let votesListActions = deleteNode(votesListName, userAddress)
439448 let userVoteActions = [DeleteEntry(userVoteKey), StringEntry(keyUserVoteHistory("cancelVote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(0, true)), getVoteResultAction(assetId, -(total), inFavor, currentPeriod, unit)]
440449 $Tuple2((votesListActions ++ userVoteActions), unit)
448457 if ((checkCaller == checkCaller))
449458 then {
450459 let voteResultKey = keyVoteResultByPeriod(assetId, period)
451- let $t01668016853 = match getString(voteResultKey) {
460+ let $t01669816871 = match getString(voteResultKey) {
452461 case s: String =>
453462 let r = parseVoteResult(s)
454463 $Tuple2(r._1, r._2)
457466 case _ =>
458467 throw("Match error")
459468 }
460- let totalYes = $t01668016853._1
461- let totalNo = $t01668016853._2
469+ let totalYes = $t01669816871._1
470+ let totalNo = $t01669816871._2
462471 let total = (totalYes + totalNo)
463472 let verified = if ((total >= votingThreshold))
464473 then (totalYes > totalNo)
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")
351- let payment = value(i.payments[0])
352- let checks = [if ((info.issuer == i.caller))
353- then true
354- else throw("Asset can only be suggested by its issuer"), if ((value(payment.assetId) == wxAssetId))
355- then true
356- else throw("Invalid fee asset"), if ((payment.amount == feeAmount))
357- then true
358- else throw("Invalid fee amount")]
359- if ((checks == checks))
351+ if ((info == info))
360352 then {
361- let assetsStoreCreateOrUpdateInv = invoke(assetsStoreContract, "createOrUpdate", [assetId, assetImage, false], nil)
362- if ((assetsStoreCreateOrUpdateInv == assetsStoreCreateOrUpdateInv))
353+ let payment = value(i.payments[0])
354+ let isThis = (i.caller == this)
355+ let checks = [if (if (isThis)
356+ then true
357+ else (value(payment.assetId) == wxAssetId))
358+ then true
359+ else throw("Invalid fee asset"), if (if (isThis)
360+ then true
361+ else (payment.amount == feeAmount))
362+ then true
363+ else throw("Invalid fee amount")]
364+ if ((checks == checks))
363365 then {
364- let burnFeeInv = invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)])
365- if ((burnFeeInv == burnFeeInv))
366+ let assetsStoreCreateOrUpdateInv = invoke(assetsStoreContract, "createOrUpdate", [assetId, assetImage, false], nil)
367+ if ((assetsStoreCreateOrUpdateInv == assetsStoreCreateOrUpdateInv))
366368 then {
367- let addAssetActions = insertNode(assetsListName, assetId)
368- let nextPeriod = (currentPeriod + 1)
369- let targetPeriod = if ((endHeight > height))
370- then currentPeriod
371- else nextPeriod
372- $Tuple2((addAssetActions :+ getVoteResultAction(assetId, 0, true, targetPeriod, false)), unit)
369+ let burnFeeInv = if (isThis)
370+ then unit
371+ else invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)])
372+ if ((burnFeeInv == burnFeeInv))
373+ then {
374+ let addAssetActions = insertNode(assetsListName, assetId)
375+ let nextPeriod = (currentPeriod + 1)
376+ let targetPeriod = if ((endHeight > height))
377+ then currentPeriod
378+ else nextPeriod
379+ $Tuple2((addAssetActions :+ getVoteResultAction(assetId, 0, true, targetPeriod, false)), unit)
380+ }
381+ else throw("Strict value is not equal to itself.")
373382 }
374383 else throw("Strict value is not equal to itself.")
375384 }
376385 else throw("Strict value is not equal to itself.")
377386 }
378387 else throw("Strict value is not equal to itself.")
379388 }
380389
381390
382391
383392 @Callable(i)
384393 func vote (assetId,inFavor) = {
385394 let checkAsset = if (containsNode(assetsListName, assetId))
386395 then true
387396 else throw("Invalid asset")
388397 if ((checkAsset == checkAsset))
389398 then {
390399 let checkHeight = if ((endHeight > height))
391400 then true
392401 else throw("Current voting is over but results are not finalized")
393402 if ((checkHeight == checkHeight))
394403 then {
395404 let userAddress = toString(i.caller)
396405 let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight)
397406 let checkGwxAmountAtEnd = if ((gwxAmountAtEnd > 0))
398407 then true
399408 else throw("You'll not have gWX at the end of voting")
400409 if ((checkGwxAmountAtEnd == checkGwxAmountAtEnd))
401410 then {
402411 let votesListName = getVotesListName(assetId)
403412 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
404413 let userVoteOrUnit = getString(userVoteKey)
405414 let cancelVoteInv = if ((userVoteOrUnit == unit))
406415 then unit
407416 else invoke(this, "cancelVote", [assetId], nil)
408417 if ((cancelVoteInv == cancelVoteInv))
409418 then {
410419 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)]
411420 let votesListActions = if (containsNode(votesListName, userAddress))
412421 then nil
413422 else insertNode(votesListName, userAddress)
414423 $Tuple2((votesListActions ++ userVoteActions), unit)
415424 }
416425 else throw("Strict value is not equal to itself.")
417426 }
418427 else throw("Strict value is not equal to itself.")
419428 }
420429 else throw("Strict value is not equal to itself.")
421430 }
422431 else throw("Strict value is not equal to itself.")
423432 }
424433
425434
426435
427436 @Callable(i)
428437 func cancelVote (assetId) = {
429438 let userAddress = if ((i.caller == this))
430439 then toString(i.originCaller)
431440 else toString(i.caller)
432441 let votesListName = getVotesListName(assetId)
433442 let userVoteKey = keyUserVoteByPeriod(userAddress, assetId, currentPeriod)
434443 let userVoteOrUnit = getString(userVoteKey)
435- let $t01595516049 = parseUserVote(valueOrErrorMessage(userVoteOrUnit, "Nothing to cancel"))
436- let total = $t01595516049._1
437- let inFavor = $t01595516049._2
444+ let $t01597316067 = parseUserVote(valueOrErrorMessage(userVoteOrUnit, "Nothing to cancel"))
445+ let total = $t01597316067._1
446+ let inFavor = $t01597316067._2
438447 let votesListActions = deleteNode(votesListName, userAddress)
439448 let userVoteActions = [DeleteEntry(userVoteKey), StringEntry(keyUserVoteHistory("cancelVote", userAddress, assetId, toBase58String(i.transactionId), currentPeriod), formatUserVote(0, true)), getVoteResultAction(assetId, -(total), inFavor, currentPeriod, unit)]
440449 $Tuple2((votesListActions ++ userVoteActions), unit)
441450 }
442451
443452
444453
445454 @Callable(i)
446455 func finalizeAssetINTERNAL (assetId,period) = {
447456 let checkCaller = thisOnly(i)
448457 if ((checkCaller == checkCaller))
449458 then {
450459 let voteResultKey = keyVoteResultByPeriod(assetId, period)
451- let $t01668016853 = match getString(voteResultKey) {
460+ let $t01669816871 = match getString(voteResultKey) {
452461 case s: String =>
453462 let r = parseVoteResult(s)
454463 $Tuple2(r._1, r._2)
455464 case _: Unit =>
456465 $Tuple2(0, 0)
457466 case _ =>
458467 throw("Match error")
459468 }
460- let totalYes = $t01668016853._1
461- let totalNo = $t01668016853._2
469+ let totalYes = $t01669816871._1
470+ let totalNo = $t01669816871._2
462471 let total = (totalYes + totalNo)
463472 let verified = if ((total >= votingThreshold))
464473 then (totalYes > totalNo)
465474 else false
466475 let assetVerifiedActions = [BooleanEntry(keyAssetVerifiedByPeriod(assetId, period), verified), if (verified)
467476 then BooleanEntry(keyAssetVerified(assetId), true)
468477 else DeleteEntry(keyAssetVerified(assetId))]
469478 let assetsStoreSetVerifiedInv = invoke(assetsStoreContract, "setVerified", [assetId, verified], nil)
470479 if ((assetsStoreSetVerifiedInv == assetsStoreSetVerifiedInv))
471480 then {
472481 let eliminate = if (verified)
473482 then false
474483 else eliminationCheck(assetId)
475484 let assetWasEliminatedActions = if (eliminate)
476485 then [BooleanEntry(keyAssetWasEliminated(assetId, currentPeriod), true)]
477486 else nil
478487 let voteResultActions = if (eliminate)
479488 then nil
480489 else [getVoteResultAction(assetId, 0, true, (currentPeriod + 1), verified)]
481490 let votesListActions = if (eliminate)
482491 then deleteNode(assetsListName, assetId)
483492 else nil
484493 let onEliminationInv = if (eliminate)
485494 then invoke(assetsStoreContract, "onEliminate", [assetId], nil)
486495 else unit
487496 if ((onEliminationInv == onEliminationInv))
488497 then $Tuple2(((votesListActions ++ voteResultActions) ++ assetVerifiedActions), unit)
489498 else throw("Strict value is not equal to itself.")
490499 }
491500 else throw("Strict value is not equal to itself.")
492501 }
493502 else throw("Strict value is not equal to itself.")
494503 }
495504
496505
497506
498507 @Callable(i)
499508 func deleteUserNodeINTERNAL (assetId,userAddress,latestProcessedUserRemoveKey) = {
500509 let checkCaller = thisOnly(i)
501510 if ((checkCaller == checkCaller))
502511 then $Tuple2((deleteNode(getVotesListName(assetId), userAddress) :+ DeleteEntry(latestProcessedUserRemoveKey)), unit)
503512 else throw("Strict value is not equal to itself.")
504513 }
505514
506515
507516
508517 @Callable(i)
509518 func finalizeVotingHelper () = if ((endHeight > height))
510519 then $Tuple2(nil, false)
511520 else {
512521 let latestProcessedAssetOrUnit = getString(keyLatestProcessedAsset)
513522 let latestProcessedUserOrUnit = getString(keyLatestProcessedUser)
514523 let nextPeriodDelay = 0
515524 let finish = $Tuple2([IntegerEntry(keyStartHeight, (height + nextPeriodDelay)), IntegerEntry(keyCurrentPeriod, (currentPeriod + 1)), DeleteEntry(keyLatestProcessedAsset), DeleteEntry(keyLatestProcessedUser), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true)
516525 if ((latestProcessedAssetOrUnit == unit))
517526 then {
518527 let assetsHeadOrUnit = getString(keyListHead(assetsListName))
519528 if ((assetsHeadOrUnit == unit))
520529 then finish
521530 else {
522531 let asset = value(assetsHeadOrUnit)
523532 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
524533 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
525534 $Tuple2(processVoteActions, true)
526535 }
527536 }
528537 else {
529538 let latestProcessedAsset = value(latestProcessedAssetOrUnit)
530539 if ((latestProcessedUserOrUnit == unit))
531540 then {
532541 let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset))
533542 if ((assetOrUnit == assetOrUnit))
534543 then {
535544 let finalizeAssetInv = invoke(this, "finalizeAssetINTERNAL", [latestProcessedAsset, currentPeriod], nil)
536545 if ((finalizeAssetInv == finalizeAssetInv))
537546 then if ((assetOrUnit == unit))
538547 then finish
539548 else {
540549 let asset = value(assetOrUnit)
541550 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
542551 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
543552 $Tuple2(processVoteActions, true)
544553 }
545554 else throw("Strict value is not equal to itself.")
546555 }
547556 else throw("Strict value is not equal to itself.")
548557 }
549558 else {
550559 let latestProcessedUser = value(latestProcessedUserOrUnit)
551560 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
552561 if ((userAddressOrUnit == userAddressOrUnit))
553562 then {
554563 let removeLatestUser = valueOrElse(getBoolean(keyLatestProcessedUserRemove), false)
555564 let deleteUserInv = if (removeLatestUser)
556565 then invoke(this, "deleteUserNodeINTERNAL", [latestProcessedAsset, latestProcessedUser, keyLatestProcessedUserRemove], nil)
557566 else unit
558567 if ((deleteUserInv == deleteUserInv))
559568 then {
560569 let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAsset, keyLatestProcessedUser, keyLatestProcessedUserRemove)
561570 $Tuple2(processVoteActions, true)
562571 }
563572 else throw("Strict value is not equal to itself.")
564573 }
565574 else throw("Strict value is not equal to itself.")
566575 }
567576 }
568577 }
569578
570579
571580
572581 @Callable(i)
573582 func finalizeVotingWrapper (counter) = {
574583 let result = asBool(invoke(this, "finalizeVotingHelper", nil, nil))
575584 if ((result == result))
576585 then if (!(result))
577586 then if ((counter == 0))
578587 then throw("Current voting is not over yet")
579588 else $Tuple2(nil, unit)
580589 else if ((maxDepth > counter))
581590 then {
582591 let inv = invoke(this, "finalizeVotingWrapper", [(counter + 1)], nil)
583592 if ((inv == inv))
584593 then $Tuple2(nil, unit)
585594 else throw("Strict value is not equal to itself.")
586595 }
587596 else $Tuple2(nil, unit)
588597 else throw("Strict value is not equal to itself.")
589598 }
590599
591600
592601
593602 @Callable(i)
594603 func finalizeVoting () = {
595604 let inv = invoke(this, "finalizeVotingWrapper", [0], nil)
596605 if ((inv == inv))
597606 then $Tuple2(nil, unit)
598607 else throw("Strict value is not equal to itself.")
599608 }
600609
601610
602611
603612 @Callable(i)
604613 func transferVotesHelper () = {
605614 let votesTransferFinishedKey = keyVotesTransferFinishedByPeriod(currentPeriod)
606615 let votesTransferFinished = valueOrElse(getBoolean(votesTransferFinishedKey), false)
607616 if (if (if ((startHeight > height))
608617 then true
609618 else (height >= endHeight))
610619 then true
611620 else votesTransferFinished)
612621 then $Tuple2(nil, false)
613622 else {
614623 let latestProcessedAssetOrUnit = getString(keyLatestProcessedAssetTransfer)
615624 let latestProcessedUserOrUnit = getString(keyLatestProcessedUserTransfer)
616625 let finish = $Tuple2([BooleanEntry(votesTransferFinishedKey, true), DeleteEntry(keyLatestProcessedAssetTransfer), DeleteEntry(keyLatestProcessedUserTransfer)], true)
617626 if ((latestProcessedAssetOrUnit == unit))
618627 then {
619628 let assetsHeadOrUnit = getString(keyListHead(assetsListName))
620629 if ((assetsHeadOrUnit == unit))
621630 then finish
622631 else {
623632 let asset = value(assetsHeadOrUnit)
624633 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
625634 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
626635 $Tuple2(processVoteActions, true)
627636 }
628637 }
629638 else {
630639 let latestProcessedAsset = value(latestProcessedAssetOrUnit)
631640 if ((latestProcessedUserOrUnit == unit))
632641 then {
633642 let assetOrUnit = getString(keyListNext(assetsListName, latestProcessedAsset))
634643 if ((assetOrUnit == unit))
635644 then finish
636645 else {
637646 let asset = value(assetOrUnit)
638647 let userAddressOrUnit = getString(keyListHead(getVotesListName(asset)))
639648 let processVoteActions = processVote(asset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
640649 $Tuple2(processVoteActions, true)
641650 }
642651 }
643652 else {
644653 let latestProcessedUser = value(latestProcessedUserOrUnit)
645654 let userAddressOrUnit = getString(keyListNext(getVotesListName(latestProcessedAsset), latestProcessedUser))
646655 if ((userAddressOrUnit == userAddressOrUnit))
647656 then {
648657 let removeLatestUser = valueOrElse(getBoolean(keyLatestProcessedUserRemoveTransfer), false)
649658 let deleteUserInv = if (removeLatestUser)
650659 then invoke(this, "deleteUserNodeINTERNAL", [latestProcessedAsset, latestProcessedUser, keyLatestProcessedUserRemoveTransfer], nil)
651660 else unit
652661 if ((deleteUserInv == deleteUserInv))
653662 then {
654663 let processVoteActions = processVote(latestProcessedAsset, userAddressOrUnit, keyLatestProcessedAssetTransfer, keyLatestProcessedUserTransfer, keyLatestProcessedUserRemoveTransfer)
655664 $Tuple2(processVoteActions, true)
656665 }
657666 else throw("Strict value is not equal to itself.")
658667 }
659668 else throw("Strict value is not equal to itself.")
660669 }
661670 }
662671 }
663672 }
664673
665674
666675
667676 @Callable(i)
668677 func transferVotesWrapper (counter) = {
669678 let result = asBool(invoke(this, "transferVotesHelper", nil, nil))
670679 if ((result == result))
671680 then if (!(result))
672681 then if ((counter == 0))
673682 then throw("Voting is not started yet")
674683 else $Tuple2(nil, unit)
675684 else if ((maxDepth > counter))
676685 then {
677686 let inv = invoke(this, "transferVotesWrapper", [(counter + 1)], nil)
678687 if ((inv == inv))
679688 then $Tuple2(nil, unit)
680689 else throw("Strict value is not equal to itself.")
681690 }
682691 else $Tuple2(nil, unit)
683692 else throw("Strict value is not equal to itself.")
684693 }
685694
686695
687696
688697 @Callable(i)
689698 func transferVotes () = {
690699 let inv = invoke(this, "transferVotesWrapper", [0], nil)
691700 if ((inv == inv))
692701 then $Tuple2(nil, unit)
693702 else throw("Strict value is not equal to itself.")
694703 }
695704
696705
697706
698707 @Callable(i)
699708 func setVotingThreshold (newThreshold) = {
700709 let checkCaller = thisOnly(i)
701710 if ((checkCaller == checkCaller))
702711 then $Tuple2([IntegerEntry(keyVotingThreshold, newThreshold)], unit)
703712 else throw("Strict value is not equal to itself.")
704713 }
705714
706715
707716
708717 @Callable(i)
709718 func setFee (newFee) = {
710719 let checkCaller = thisOnly(i)
711720 if ((checkCaller == checkCaller))
712721 then $Tuple2([IntegerEntry(keyFeeAmount, newFee)], unit)
713722 else throw("Strict value is not equal to itself.")
714723 }
715724
716725
717726
718727 @Callable(i)
719728 func gwxAvailableForVoteREADONLY (userAddress) = {
720729 let gwxAmountAtEnd = getUserGwxAmountAtHeight(userAddress, endHeight)
721730 $Tuple2(nil, gwxAmountAtEnd)
722731 }
723732
724733

github/deemru/w8io/026f985 
80.83 ms