tx · 2tjMSqrWLnexghr5w7aoHzWiwZ9ZyCLV85dhGNZQ8KU5

3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE:  -0.02200000 Waves

2023.06.23 16:38 [2635308] smart account 3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE > SELF 0.00000000 Waves

{ "type": 13, "id": "2tjMSqrWLnexghr5w7aoHzWiwZ9ZyCLV85dhGNZQ8KU5", "fee": 2200000, "feeAssetId": null, "timestamp": 1687527540542, "version": 2, "chainId": 84, "sender": "3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE", "senderPublicKey": "6t3vrhP1jCmG7CeKBmL8hUibtdP3cMXGC2XtPYEPPC5w", "proofs": [ "32KYUcin21qenwMtJkVobKZUR87hCd5NQ7qyzSPRmNdYGhXbZnD5cZqzszPbgECgUMGVeCQxxrWEyw8pf1EYXnby" ], "script": "base64:BgIrCAISBQoDCAEIEgMKAQgSBAoCCAQSAwoBCBIDCgEIEgUKAwgBCBIECgIIATAACXNlcGFyYXRvcgICX18ABU1VTFQ4AIDC1y8BB3dyYXBFcnIBA21zZwkAuQkCCQDMCAICGHZvdGluZ192ZXJpZmllZF92Mi5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnAQVhc0ludAEDdmFsBAckbWF0Y2gwBQN2YWwDCQABAgUHJG1hdGNoMAIDSW50BAZ2YWxJbnQFByRtYXRjaDAFBnZhbEludAkAAgECG0ZhaWxlZCB0byBjYXN0IGludG8gSW50ZWdlcgEQZ2V0SW50ZWdlck9yWmVybwIHYWRkcmVzcwNrZXkJAQt2YWx1ZU9yRWxzZQIJAJoIAgUHYWRkcmVzcwUDa2V5AAABEGdldEludGVnZXJPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJoIAgUHYWRkcmVzcwUDa2V5CQEHd3JhcEVycgEJAKwCAgUDa2V5Ag8gaX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NldElkBQVpbmRleAkBCHRocm93RXJyAQIQbm90aGluZyB0byBjbGFpbQQWdm90aW5nUmV3YXJkQXNzZXRJZFN0cgkAoggBCQEWa2V5Vm90aW5nUmV3YXJkQXNzZXRJZAIFB2Fzc2V0SWQFBWluZGV4BAxyZXdhcmRBY3Rpb24DCQEJaXNEZWZpbmVkAQUWdm90aW5nUmV3YXJkQXNzZXRJZFN0cgQTdm90aW5nUmV3YXJkQXNzZXRJZAkA2QQBCQEFdmFsdWUBBRZ2b3RpbmdSZXdhcmRBc3NldElkU3RyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFDWNhbGxlckFkZHJlc3MFDHJld2FyZEFtb3VudAUTdm90aW5nUmV3YXJkQXNzZXRJZAkAzAgCCQEMSW50ZWdlckVudHJ5AgUPY2xhaW1IaXN0b3J5S2V5BQxyZXdhcmRBbW91bnQJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBD2tleVZvdGluZ1Jld2FyZAMFDWNhbGxlckFkZHJlc3MFB2Fzc2V0SWQFBWluZGV4BQNuaWwJAQh0aHJvd0VycgECEG5vdGhpbmcgdG8gY2xhaW0FDHJld2FyZEFjdGlvbgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleRRvZe4=", "height": 2635308, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3CVN6t9ecxcc5Qm214oH5rL3wxGVTewtjMAbBQcsfJdE Next: G2yWA1R4CANYmg5Gc8jJFim3wcLGZ6FcgLhPqV7RwT8F Diff:
OldNewDifferences
274274 let votingEndHeight = (height + periodLength)
275275 let votesQuorum = valueOrErrorMessage(getInteger(keyVotingThresholdRemove), wrapErr("votingThresholdRemove not set"))
276276 let votingInfo = votingInfoValue(false, "EMPTY", 0, "deverification", "inProgress", height, (height + periodLength), votesQuorum, 0, 0)
277-[IntegerEntry(currentIndexKey, newIndex), StringEntry(keySuggestIssuer(assetId, newIndex), toString(i.caller)), StringEntry(keyVotingInfo(assetId, newIndex), votingInfo)]
277+ let setAssetImageAction = match getString(keyAssetImage(assetId)) {
278+ case s: String =>
279+ nil
280+ case _: Unit =>
281+ let assetsStoreAssetImage = {
282+ let @ = invoke(assetsStoreContract, "getAssetLogoREADONLY", [assetId], nil)
283+ if ($isInstanceOf(@, "String"))
284+ then @
285+ else throw(($getType(@) + " couldn't be cast to String"))
286+ }
287+[StringEntry(keyAssetImage(assetId), assetsStoreAssetImage)]
288+ case _ =>
289+ throw("Match error")
290+ }
291+ ([IntegerEntry(currentIndexKey, newIndex), StringEntry(keySuggestIssuer(assetId, newIndex), toString(i.caller)), StringEntry(keyVotingInfo(assetId, newIndex), votingInfo)] ++ setAssetImageAction)
278292 }
279293 else throw("Strict value is not equal to itself.")
280294 }
302316 let votingInfoParts = getVotingInfoParts(votingInfoStr)
303317 let votesFor = votingInfoParts._9
304318 let votesAgainst = votingInfoParts._10
305- let $t01274512906 = if (inFavor)
319+ let $t01308013241 = if (inFavor)
306320 then $Tuple2((votesFor + gwxAmountAtEnd), votesAgainst)
307321 else $Tuple2(votesFor, (votesAgainst + gwxAmountAtEnd))
308- let newVotesFor = $t01274512906._1
309- let newVotesAgainst = $t01274512906._2
322+ let newVotesFor = $t01308013241._1
323+ let newVotesAgainst = $t01308013241._2
310324 let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, votingInfoParts._5, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, newVotesFor, newVotesAgainst)
311325 let votingRewardAction = match getString(keyVotingRewardAssetId(assetId, currentIndex)) {
312326 case pk: String =>
348362 let votingInfoParts = getVotingInfoParts(votingInfoStr)
349363 let votesFor = votingInfoParts._9
350364 let votesAgainst = votingInfoParts._10
351- let $t01453114692 = if ((inFavor == "true"))
365+ let $t01486615027 = if ((inFavor == "true"))
352366 then $Tuple2((votesFor - gwxAmount), votesAgainst)
353367 else $Tuple2(votesFor, (votesAgainst - gwxAmount))
354- let newVotesFor = $t01453114692._1
355- let newVotesAgainst = $t01453114692._2
368+ let newVotesFor = $t01486615027._1
369+ let newVotesAgainst = $t01486615027._2
356370 let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, votingInfoParts._5, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, newVotesFor, newVotesAgainst)
357371 [StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue), DeleteEntry(voteKey), DeleteEntry(keyVotingReward(i.caller, assetId, currentIndex))]
358372 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let MULT8 = 100000000
77
88 func wrapErr (msg) = makeString(["voting_verified_v2.ride:", msg], " ")
99
1010
1111 func throwErr (msg) = throw(wrapErr(msg))
1212
1313
1414 func asInt (val) = match val {
1515 case valInt: Int =>
1616 valInt
1717 case _ =>
1818 throw("Failed to cast into Integer")
1919 }
2020
2121
2222 func getIntegerOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
2323
2424
2525 func getIntegerOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), wrapErr((key + " is not defined")))
2626
2727
2828 func getStringOrEmpty (address,key) = valueOrElse(getString(address, key), "")
2929
3030
3131 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), wrapErr((key + " is not defined")))
3232
3333
3434 let keyBoostingContract = makeString(["%s", "boostingContract"], separator)
3535
3636 let keyEmissionContract = makeString(["%s", "emissionContract"], separator)
3737
3838 let keyAssetsStoreContract = makeString(["%s", "assetsStoreContract"], separator)
3939
4040 let boostingContract = addressFromStringValue(getStringValue(keyBoostingContract))
4141
4242 let emissionContract = addressFromStringValue(getStringValue(keyEmissionContract))
4343
4444 let assetsStoreContract = addressFromStringValue(getStringValue(keyAssetsStoreContract))
4545
4646 let keyEmissionConfig = makeString(["%s", "config"], separator)
4747
4848 let wxAssetIdStr = split(getStringOrFail(emissionContract, keyEmissionConfig), separator)[1]
4949
5050 let wxAssetId = fromBase58String(wxAssetIdStr)
5151
5252 let keyVotingThresholdAdd = makeString(["%s%s", "votingThreshold", "add"], separator)
5353
5454 let keyVotingThresholdRemove = makeString(["%s%s", "votingThreshold", "remove"], separator)
5555
5656 let keyPeriodLengthRemove = makeString(["%s", "periodLengthRemove"], separator)
5757
5858 let keyMaxPeriodLength = makeString(["%s", "maxPeriodLength"], separator)
5959
6060 let keyMinPeriodLength = makeString(["%s", "minPeriodLength"], separator)
6161
6262 func keyVotingRewardAssetId (assetId,index) = makeString(["%s%s%d", "votingRewardAssetId", assetId, toString(index)], separator)
6363
6464
6565 func keyVotingReward (userAddress,assetId,index) = makeString(["%s%s%s%d", "votingReward", toString(userAddress), assetId, toString(index)], separator)
6666
6767
6868 func keyTotalVotingReward (assetId,index) = makeString(["%s%s%d", "totalVotingReward", assetId, toString(index)], separator)
6969
7070
7171 let keyFinalizeCallRewardAmount = makeString(["%s", "finalizeCallRewardAmount"], separator)
7272
7373 let keyMinSuggestRemoveBalance = makeString(["%s", "minSuggestRemoveBalance"], separator)
7474
7575 func keyCurrentIndex (assetId) = makeString(["%s%s", "currentIndex", assetId], separator)
7676
7777
7878 func keyVote (assetId,index,caller) = makeString(["%s%s%d%s", "vote", assetId, toString(index), toString(caller)], separator)
7979
8080
8181 func voteValue (inFavor,gwxAmount) = makeString(["%s%d", toString(inFavor), toString(gwxAmount)], separator)
8282
8383
8484 func keySuggestIssuer (assetId,index) = makeString(["%s%s%d", "suggestIssuer", assetId, toString(index)], separator)
8585
8686
8787 func keyClaimHistory (userAddress,assetId,index) = makeString(["%s%s%s%d", "history", toString(userAddress), assetId, toString(index)], separator)
8888
8989
9090 let keyFeePerBlock = makeString(["%s", "feePerBlock"], separator)
9191
9292 let feePerBlock = getIntegerOrFail(this, keyFeePerBlock)
9393
9494 let keyMinWxMinForSuggestAddAmountRequired = makeString(["%s", "wxMinForSuggestAddAmountRequired"], separator)
9595
9696 let keyWxForSuggestRemoveAmountRequired = makeString(["%s", "wxForSuggestRemoveAmountRequired"], separator)
9797
9898 func keyVotingInfo (assetId,index) = makeString(["%s%s%d", "votingInfo", assetId, toString(index)], separator)
9999
100100
101101 func votingInfoValue (isRewardExist,rewardAssetId,rewardAmount,votingType,status,votingStartHeight,votingEndHeight,votesQuorum,votesFor,votesAgainst) = makeString(["%s%s%d%s%s%d%d%d%d%d", toString(isRewardExist), rewardAssetId, toString(rewardAmount), votingType, status, toString(votingStartHeight), toString(votingEndHeight), toString(votesQuorum), toString(votesFor), toString(votesAgainst)], separator)
102102
103103
104104 func keyAssetImage (assetId) = makeString(["%s%s", "assetImage", assetId], separator)
105105
106106
107107 func getUserGwxAmountAtHeight (userAddress,targetHeight) = {
108108 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
109109 asInt(gwxAmount)
110110 }
111111
112112
113113 func keyManagerVaultAddress () = "%s__managerVaultAddress"
114114
115115
116116 func keyManagerPublicKey () = "%s__managerPublicKey"
117117
118118
119119 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
120120 case s: String =>
121121 addressFromStringValue(s)
122122 case _ =>
123123 this
124124 }
125125
126126
127127 func managerPublicKeyOrUnit () = {
128128 let managerVaultAddress = getManagerVaultAddressOrThis()
129129 match getString(managerVaultAddress, keyManagerPublicKey()) {
130130 case s: String =>
131131 fromBase58String(s)
132132 case _: Unit =>
133133 unit
134134 case _ =>
135135 throw("Match error")
136136 }
137137 }
138138
139139
140140 func getVotingInfoParts (votingInfo) = {
141141 let votingInfoParts = split(votingInfo, separator)
142142 let isRewardExistStr = votingInfoParts[1]
143143 let isRewardExist = if ((isRewardExistStr == "true"))
144144 then true
145145 else false
146146 let rewardAssetId = votingInfoParts[2]
147147 let rewardAmount = parseIntValue(votingInfoParts[3])
148148 let votingType = votingInfoParts[4]
149149 let status = votingInfoParts[5]
150150 let votingStartHeight = parseIntValue(votingInfoParts[6])
151151 let votingEndHeight = parseIntValue(votingInfoParts[7])
152152 let votesQuorum = parseIntValue(votingInfoParts[8])
153153 let votesFor = parseIntValue(votingInfoParts[9])
154154 let votesAgainst = parseIntValue(votingInfoParts[10])
155155 $Tuple10(isRewardExist, rewardAssetId, rewardAmount, votingType, status, votingStartHeight, votingEndHeight, votesQuorum, votesFor, votesAgainst)
156156 }
157157
158158
159159 func votingExistChecks (assetId,currentIndex) = {
160160 let votingInfo = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found"))
161161 let votingInfoArray = split(votingInfo, separator)
162162 let status = votingInfoArray[5]
163163 let votingEndHeight = valueOrErrorMessage(parseIntValue(votingInfoArray[7]), wrapErr("voting start height not found"))
164164 let suggestIssuer = valueOrErrorMessage(getString(keySuggestIssuer(assetId, currentIndex)), wrapErr("voting issuer not found"))
165165 let checks = [if ((status == "inProgress"))
166166 then true
167167 else throwErr("no voting in progress"), if ((votingEndHeight > height))
168168 then true
169169 else throwErr("voting expired")]
170170 if ((checks == checks))
171171 then $Tuple3(status, votingEndHeight, suggestIssuer)
172172 else throw("Strict value is not equal to itself.")
173173 }
174174
175175
176176 func calculateReward (voter,assetId,index) = {
177177 let voteKey = keyVote(assetId, index, voter)
178178 let lastVote = valueOrErrorMessage(getString(voteKey), wrapErr("you have not voted"))
179179 let lastVoteParts = split(lastVote, separator)
180180 let gwxAmount = parseIntValue(lastVoteParts[2])
181181 let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, index)), wrapErr("voting info not found"))
182182 let votingParts = getVotingInfoParts(votingInfoStr)
183183 let votesFor = votingParts._9
184184 let votesAgainst = votingParts._10
185185 let partOfTheTotalVotesX8 = fraction(gwxAmount, MULT8, (votesFor + votesAgainst))
186186 let totalVotingReward = valueOrElse(getInteger(keyTotalVotingReward(assetId, index)), 0)
187187 let voterRewardAmount = fraction(partOfTheTotalVotesX8, totalVotingReward, MULT8, FLOOR)
188188 voterRewardAmount
189189 }
190190
191191
192192 @Callable(i)
193193 func suggestAdd (assetId,periodLength,assetImage) = {
194194 let wxPayment = i.payments[0]
195195 let wxPaymentAssetId = value(wxPayment.assetId)
196196 let wxPaymentAmount = value(wxPayment.amount)
197197 let minPeriodLength = getIntegerValue(keyMinPeriodLength)
198198 let maxPeriodLength = getIntegerValue(keyMaxPeriodLength)
199199 let tokenIsVerified = {
200200 let @ = invoke(assetsStoreContract, "isVerifiedREADONLY", [assetId], nil)
201201 if ($isInstanceOf(@, "Boolean"))
202202 then @
203203 else throw(($getType(@) + " couldn't be cast to Boolean"))
204204 }
205205 let checks = [if (if ((periodLength >= minPeriodLength))
206206 then (maxPeriodLength >= periodLength)
207207 else false)
208208 then true
209209 else throwErr("invalid periodLength"), if ((tokenIsVerified == false))
210210 then true
211211 else throwErr("token already verified"), if ((wxPaymentAmount > (periodLength * feePerBlock)))
212212 then true
213213 else throwErr("not enough wx for given period"), if ((wxPaymentAmount >= getIntegerValue(keyMinWxMinForSuggestAddAmountRequired)))
214214 then true
215215 else throwErr("payment less then min for suggest")]
216216 if ((checks == checks))
217217 then {
218218 let currentIndexKey = keyCurrentIndex(assetId)
219219 let currentIndex = getInteger(currentIndexKey)
220220 let newIndex = if (isDefined(currentIndex))
221221 then (value(currentIndex) + 1)
222222 else 0
223223 let $t087849424 = if ((size(i.payments) > 1))
224224 then {
225225 let votingRewardPayment = i.payments[1]
226226 let votingRewardPaymentAssetId = toBase58String(value(votingRewardPayment.assetId))
227227 let votingRewardPaymentAmount = value(votingRewardPayment.amount)
228228 $Tuple4(true, votingRewardPaymentAssetId, votingRewardPaymentAmount, [StringEntry(keyVotingRewardAssetId(assetId, newIndex), votingRewardPaymentAssetId), IntegerEntry(keyTotalVotingReward(assetId, newIndex), votingRewardPaymentAmount)])
229229 }
230230 else $Tuple4(false, "EMPTY", 0, nil)
231231 let isRewardExist = $t087849424._1
232232 let rewardAssetId = $t087849424._2
233233 let rewardAmount = $t087849424._3
234234 let votingRewardActions = $t087849424._4
235235 let votesQuorum = valueOrErrorMessage(getInteger(keyVotingThresholdAdd), wrapErr("votingThresholdAdd not set"))
236236 let votingInfo = votingInfoValue(isRewardExist, rewardAssetId, rewardAmount, "verification", "inProgress", height, (height + periodLength), votesQuorum, 0, 0)
237237 let finalizeCallRewardAmount = getIntegerValue(keyFinalizeCallRewardAmount)
238238 let burnWxAmount = (wxPaymentAmount - finalizeCallRewardAmount)
239239 ([IntegerEntry(currentIndexKey, newIndex), StringEntry(keySuggestIssuer(assetId, newIndex), toString(i.caller)), StringEntry(keyVotingInfo(assetId, newIndex), votingInfo), StringEntry(keyAssetImage(assetId), assetImage), Burn(wxPaymentAssetId, burnWxAmount)] ++ votingRewardActions)
240240 }
241241 else throw("Strict value is not equal to itself.")
242242 }
243243
244244
245245
246246 @Callable(i)
247247 func suggestRemove (assetId) = {
248248 let gwxAmountAtNow = getUserGwxAmountAtHeight(toString(i.caller), height)
249249 let minSuggestRemoveBalance = getIntegerValue(keyMinSuggestRemoveBalance)
250250 let wxPayment = i.payments[0]
251251 let wxPaymentAssetId = value(wxPayment.assetId)
252252 let wxPaymentAmount = value(wxPayment.amount)
253253 let tokenIsVerified = {
254254 let @ = invoke(assetsStoreContract, "isVerifiedREADONLY", [assetId], nil)
255255 if ($isInstanceOf(@, "Boolean"))
256256 then @
257257 else throw(($getType(@) + " couldn't be cast to Boolean"))
258258 }
259259 let checks = [if (tokenIsVerified)
260260 then true
261261 else throwErr("token not verified"), if ((gwxAmountAtNow >= minSuggestRemoveBalance))
262262 then true
263263 else throwErr("not enough gWXes"), if ((wxPaymentAmount >= getIntegerValue(keyWxForSuggestRemoveAmountRequired)))
264264 then true
265265 else throwErr("payment less then min for suggest")]
266266 if ((checks == checks))
267267 then {
268268 let currentIndexKey = keyCurrentIndex(assetId)
269269 let currentIndex = getInteger(currentIndexKey)
270270 let newIndex = if (isDefined(currentIndex))
271271 then (value(currentIndex) + 1)
272272 else 0
273273 let periodLength = valueOrErrorMessage(getInteger(keyPeriodLengthRemove), wrapErr("periodLengthRemove not set"))
274274 let votingEndHeight = (height + periodLength)
275275 let votesQuorum = valueOrErrorMessage(getInteger(keyVotingThresholdRemove), wrapErr("votingThresholdRemove not set"))
276276 let votingInfo = votingInfoValue(false, "EMPTY", 0, "deverification", "inProgress", height, (height + periodLength), votesQuorum, 0, 0)
277-[IntegerEntry(currentIndexKey, newIndex), StringEntry(keySuggestIssuer(assetId, newIndex), toString(i.caller)), StringEntry(keyVotingInfo(assetId, newIndex), votingInfo)]
277+ let setAssetImageAction = match getString(keyAssetImage(assetId)) {
278+ case s: String =>
279+ nil
280+ case _: Unit =>
281+ let assetsStoreAssetImage = {
282+ let @ = invoke(assetsStoreContract, "getAssetLogoREADONLY", [assetId], nil)
283+ if ($isInstanceOf(@, "String"))
284+ then @
285+ else throw(($getType(@) + " couldn't be cast to String"))
286+ }
287+[StringEntry(keyAssetImage(assetId), assetsStoreAssetImage)]
288+ case _ =>
289+ throw("Match error")
290+ }
291+ ([IntegerEntry(currentIndexKey, newIndex), StringEntry(keySuggestIssuer(assetId, newIndex), toString(i.caller)), StringEntry(keyVotingInfo(assetId, newIndex), votingInfo)] ++ setAssetImageAction)
278292 }
279293 else throw("Strict value is not equal to itself.")
280294 }
281295
282296
283297
284298 @Callable(i)
285299 func vote (assetId,inFavor) = {
286300 let currentIndexKey = keyCurrentIndex(assetId)
287301 let currentIndex = valueOrErrorMessage(getInteger(currentIndexKey), wrapErr("voting does not exist"))
288302 let votingInfo = votingExistChecks(assetId, currentIndex)
289303 if ((votingInfo == votingInfo))
290304 then {
291305 let currentVotingEndHeight = votingInfo._2
292306 let gwxAmountAtEnd = getUserGwxAmountAtHeight(toString(i.caller), currentVotingEndHeight)
293307 let voteKey = keyVote(assetId, currentIndex, i.caller)
294308 let checks = [if ((getString(voteKey) == unit))
295309 then true
296310 else throwErr("You have already voted"), if ((gwxAmountAtEnd > 0))
297311 then true
298312 else throw("You'll not have gWX at the end of voting")]
299313 if ((checks == checks))
300314 then {
301315 let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found"))
302316 let votingInfoParts = getVotingInfoParts(votingInfoStr)
303317 let votesFor = votingInfoParts._9
304318 let votesAgainst = votingInfoParts._10
305- let $t01274512906 = if (inFavor)
319+ let $t01308013241 = if (inFavor)
306320 then $Tuple2((votesFor + gwxAmountAtEnd), votesAgainst)
307321 else $Tuple2(votesFor, (votesAgainst + gwxAmountAtEnd))
308- let newVotesFor = $t01274512906._1
309- let newVotesAgainst = $t01274512906._2
322+ let newVotesFor = $t01308013241._1
323+ let newVotesAgainst = $t01308013241._2
310324 let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, votingInfoParts._5, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, newVotesFor, newVotesAgainst)
311325 let votingRewardAction = match getString(keyVotingRewardAssetId(assetId, currentIndex)) {
312326 case pk: String =>
313327 [StringEntry(keyVotingReward(i.caller, assetId, currentIndex), voteValue(inFavor, gwxAmountAtEnd))]
314328 case _: Unit =>
315329 nil
316330 case _ =>
317331 throw("Match error")
318332 }
319333 ([StringEntry(voteKey, voteValue(inFavor, gwxAmountAtEnd)), StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue)] ++ votingRewardAction)
320334 }
321335 else throw("Strict value is not equal to itself.")
322336 }
323337 else throw("Strict value is not equal to itself.")
324338 }
325339
326340
327341
328342 @Callable(i)
329343 func cancelVote (assetId) = {
330344 let currentIndexKey = keyCurrentIndex(assetId)
331345 let currentIndex = valueOrErrorMessage(getInteger(currentIndexKey), wrapErr("voting does not exist"))
332346 let voteKey = keyVote(assetId, currentIndex, i.caller)
333347 let lastVote = valueOrErrorMessage(getString(voteKey), wrapErr("you have not voted"))
334348 let lastVoteParts = split(lastVote, separator)
335349 let inFavor = lastVoteParts[1]
336350 let gwxAmount = parseIntValue(lastVoteParts[2])
337351 let votingInfo = votingExistChecks(assetId, currentIndex)
338352 if ((votingInfo == votingInfo))
339353 then {
340354 let checks = [if (if ((inFavor == "true"))
341355 then true
342356 else (inFavor == "false"))
343357 then true
344358 else throwErr("invalid vote")]
345359 if ((checks == checks))
346360 then {
347361 let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found"))
348362 let votingInfoParts = getVotingInfoParts(votingInfoStr)
349363 let votesFor = votingInfoParts._9
350364 let votesAgainst = votingInfoParts._10
351- let $t01453114692 = if ((inFavor == "true"))
365+ let $t01486615027 = if ((inFavor == "true"))
352366 then $Tuple2((votesFor - gwxAmount), votesAgainst)
353367 else $Tuple2(votesFor, (votesAgainst - gwxAmount))
354- let newVotesFor = $t01453114692._1
355- let newVotesAgainst = $t01453114692._2
368+ let newVotesFor = $t01486615027._1
369+ let newVotesAgainst = $t01486615027._2
356370 let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, votingInfoParts._5, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, newVotesFor, newVotesAgainst)
357371 [StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue), DeleteEntry(voteKey), DeleteEntry(keyVotingReward(i.caller, assetId, currentIndex))]
358372 }
359373 else throw("Strict value is not equal to itself.")
360374 }
361375 else throw("Strict value is not equal to itself.")
362376 }
363377
364378
365379
366380 @Callable(i)
367381 func finalize (assetId) = {
368382 let currentIndexKey = keyCurrentIndex(assetId)
369383 let currentIndex = valueOrElse(getInteger(currentIndexKey), 0)
370384 let votingThresholdAdd = valueOrErrorMessage(getInteger(keyVotingThresholdAdd), wrapErr("votingThresholdAdd not set"))
371385 let votingThresholdRemove = valueOrErrorMessage(getInteger(keyVotingThresholdRemove), wrapErr("votingThresholdRemove not set"))
372386 let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found"))
373387 let votingInfoParts = getVotingInfoParts(votingInfoStr)
374388 let votingType = votingInfoParts._4
375389 let status = votingInfoParts._5
376390 let votingEndHeight = votingInfoParts._7
377391 let votingQuorum = votingInfoParts._8
378392 let votesFor = votingInfoParts._9
379393 let votesAgainst = votingInfoParts._10
380394 let checks = [if ((status == "inProgress"))
381395 then true
382396 else throwErr("voting not in progress"), if ((height >= votingEndHeight))
383397 then true
384398 else throwErr("voting not finished"), if (isDefined(getString(keyAssetImage(assetId))))
385399 then true
386400 else throwErr("asset image not set")]
387401 if ((checks == checks))
388402 then {
389403 let votingAccepted = if (if (((votesFor + votesAgainst) >= votingQuorum))
390404 then (votesFor > votesAgainst)
391405 else false)
392406 then true
393407 else false
394408 let newStatus = if (votingAccepted)
395409 then "accepted"
396410 else "rejected"
397411 let assetImage = getStringValue(keyAssetImage(assetId))
398412 let isVotingAccepted = if (votingAccepted)
399413 then {
400414 let votingAcceptedInvokes = if ((votingType == "verification"))
401415 then invoke(assetsStoreContract, "createOrUpdate", [assetId, assetImage, true], nil)
402416 else invoke(assetsStoreContract, "setVerified", [assetId, false], nil)
403417 votingAcceptedInvokes
404418 }
405419 else nil
406420 if ((isVotingAccepted == isVotingAccepted))
407421 then {
408422 let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, newStatus, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, votingInfoParts._9, votingInfoParts._10)
409423 let finalizeCallRewardAmount = getIntegerValue(keyFinalizeCallRewardAmount)
410424 [StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue), ScriptTransfer(i.caller, finalizeCallRewardAmount, wxAssetId)]
411425 }
412426 else throw("Strict value is not equal to itself.")
413427 }
414428 else throw("Strict value is not equal to itself.")
415429 }
416430
417431
418432
419433 @Callable(i)
420434 func claimREADONLY (assetId,index,userAddressStr) = {
421435 let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid address"))
422436 let votingRewardAssetIdStr = getString(keyVotingRewardAssetId(assetId, index))
423437 let rewardAmount = if (isDefined(votingRewardAssetIdStr))
424438 then calculateReward(userAddress, assetId, index)
425439 else 0
426440 $Tuple2(nil, rewardAmount)
427441 }
428442
429443
430444
431445 @Callable(i)
432446 func claim (assetId,index) = {
433447 let callerAddress = i.caller
434448 let claimHistoryKey = keyClaimHistory(callerAddress, assetId, index)
435449 let claimHistory = getInteger(claimHistoryKey)
436450 let checks = [if ((claimHistory == unit))
437451 then true
438452 else throwErr("already claimed")]
439453 if ((checks == checks))
440454 then {
441455 let rewardAmount = if ((calculateReward(callerAddress, assetId, index) > 0))
442456 then calculateReward(callerAddress, assetId, index)
443457 else throwErr("nothing to claim")
444458 let votingRewardAssetIdStr = getString(keyVotingRewardAssetId(assetId, index))
445459 let rewardAction = if (isDefined(votingRewardAssetIdStr))
446460 then {
447461 let votingRewardAssetId = fromBase58String(value(votingRewardAssetIdStr))
448462 [ScriptTransfer(callerAddress, rewardAmount, votingRewardAssetId), IntegerEntry(claimHistoryKey, rewardAmount), DeleteEntry(keyVotingReward(callerAddress, assetId, index))]
449463 }
450464 else throwErr("nothing to claim")
451465 rewardAction
452466 }
453467 else throw("Strict value is not equal to itself.")
454468 }
455469
456470
457471 @Verifier(tx)
458472 func verify () = {
459473 let targetPublicKey = match managerPublicKeyOrUnit() {
460474 case pk: ByteVector =>
461475 pk
462476 case _: Unit =>
463477 tx.senderPublicKey
464478 case _ =>
465479 throw("Match error")
466480 }
467481 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
468482 }
469483

github/deemru/w8io/026f985 
89.45 ms