tx · EAmYFzeoPoe26PAmNtN9n9bGCHK2exKVQhnC1HBCmjdL

3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE:  -0.02100000 Waves

2023.06.08 18:43 [2613890] smart account 3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE > SELF 0.00000000 Waves

{ "type": 13, "id": "EAmYFzeoPoe26PAmNtN9n9bGCHK2exKVQhnC1HBCmjdL", "fee": 2100000, "feeAssetId": null, "timestamp": 1686239047973, "version": 2, "chainId": 84, "sender": "3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE", "senderPublicKey": "6t3vrhP1jCmG7CeKBmL8hUibtdP3cMXGC2XtPYEPPC5w", "proofs": [ "57ugHp3ECdwTpNc8eaPqwZPqS9ARH4SYbFTyYKTDGT9SRvTkXggsTSL8WTyaXLdESe5L5aBVvkyefsHtoALrL9Mr" ], "script": "base64:BgIrCAISBQoDCAEIEgMKAQgSBAoCCAQSAwoBCBIDCgEIEgUKAwgBCBIECgIIAS8ACXNlcGFyYXRvcgICX18ABU1VTFQ4AIDC1y8BB3dyYXBFcnIBA21zZwkAuQkCCQDMCAICGHZvdGluZ192ZXJpZmllZF92Mi5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnAQVhc0ludAEDdmFsBAckbWF0Y2gwBQN2YWwDCQABAgUHJG1hdGNoMAIDSW50BAZ2YWxJbnQFByRtYXRjaDAFBnZhbEludAkAAgECG0ZhaWxlZCB0byBjYXN0IGludG8gSW50ZWdlcgEQZ2V0SW50ZWdlck9yWmVybwIHYWRkcmVzcwNrZXkJAQt2YWx1ZU9yRWxzZQIJAJoIAgUHYWRkcmVzcwUDa2V5AAABEGdldEludGVnZXJPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJoIAgUHYWRkcmVzcwUDa2V5CQEHd3JhcEVycgEJAKwCAgUDa2V5Ag8ga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WdlckVudHJ5AgUPY2xhaW1IaXN0b3J5S2V5BQxyZXdhcmRBbW91bnQJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBD2tleVZvdGluZ1Jld2FyZAMFDWNhbGxlckFkZHJlc3MFB2Fzc2V0SWQFBWluZGV4BQNuaWwJAQh0aHJvd0VycgECEG5vdGhpbmcgdG8gY2xhaW0FDHJld2FyZEFjdGlvbgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleQmWb08=", "height": 2613890, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: hR4KL3FKMExdrcwZyu9Rs5HPqk5HHFkWR4eSusEQsy5 Next: 3qHfMPkCgVRxyJQVfDonoBEbkyHPT4VEkrk86HaiH8vY Diff:
OldNewDifferences
292292 let newVotesFor = $t01253412695._1
293293 let newVotesAgainst = $t01253412695._2
294294 let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, votingInfoParts._5, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, newVotesFor, newVotesAgainst)
295- let votingRewardAction = match getBoolean(keyVotingRewardAssetId(assetId, currentIndex)) {
296- case pk: Boolean =>
297-[BooleanEntry(keyVotingReward(i.caller, assetId, currentIndex), true)]
298- case _: Unit =>
299- nil
300- case _ =>
301- throw("Match error")
302- }
295+ let votingRewardAction = if ((getBoolean(keyVotingRewardAssetId(assetId, currentIndex)) != unit))
296+ then [BooleanEntry(keyVotingReward(i.caller, assetId, currentIndex), true)]
297+ else nil
303298 ([StringEntry(voteKey, voteValue(inFavor, gwxAmountAtEnd)), StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue)] ++ votingRewardAction)
304299 }
305300 else throw("Strict value is not equal to itself.")
332327 let votingInfoParts = getVotingInfoParts(votingInfoStr)
333328 let votesFor = votingInfoParts._9
334329 let votesAgainst = votingInfoParts._10
335- let $t01427514436 = if ((inFavor == "true"))
330+ let $t01426014421 = if ((inFavor == "true"))
336331 then $Tuple2((votesFor - gwxAmount), votesAgainst)
337332 else $Tuple2(votesFor, (votesAgainst - gwxAmount))
338- let newVotesFor = $t01427514436._1
339- let newVotesAgainst = $t01427514436._2
333+ let newVotesFor = $t01426014421._1
334+ let newVotesAgainst = $t01426014421._2
340335 let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, votingInfoParts._5, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, newVotesFor, newVotesAgainst)
341336 [StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue), DeleteEntry(voteKey), DeleteEntry(keyVotingReward(i.caller, assetId, currentIndex))]
342337 }
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 getUserGwxAmountAtHeight (userAddress,targetHeight) = {
105105 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil)
106106 asInt(gwxAmount)
107107 }
108108
109109
110110 func keyManagerVaultAddress () = "%s__managerVaultAddress"
111111
112112
113113 func keyManagerPublicKey () = "%s__managerPublicKey"
114114
115115
116116 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
117117 case s: String =>
118118 addressFromStringValue(s)
119119 case _ =>
120120 this
121121 }
122122
123123
124124 func managerPublicKeyOrUnit () = {
125125 let managerVaultAddress = getManagerVaultAddressOrThis()
126126 match getString(managerVaultAddress, keyManagerPublicKey()) {
127127 case s: String =>
128128 fromBase58String(s)
129129 case _: Unit =>
130130 unit
131131 case _ =>
132132 throw("Match error")
133133 }
134134 }
135135
136136
137137 func getVotingInfoParts (votingInfo) = {
138138 let votingInfoParts = split(votingInfo, separator)
139139 let isRewardExistStr = votingInfoParts[1]
140140 let isRewardExist = if ((isRewardExistStr == "true"))
141141 then true
142142 else false
143143 let rewardAssetId = votingInfoParts[2]
144144 let rewardAmount = parseIntValue(votingInfoParts[3])
145145 let votingType = votingInfoParts[4]
146146 let status = votingInfoParts[5]
147147 let votingStartHeight = parseIntValue(votingInfoParts[6])
148148 let votingEndHeight = parseIntValue(votingInfoParts[7])
149149 let votesQuorum = parseIntValue(votingInfoParts[8])
150150 let votesFor = parseIntValue(votingInfoParts[9])
151151 let votesAgainst = parseIntValue(votingInfoParts[10])
152152 $Tuple10(isRewardExist, rewardAssetId, rewardAmount, votingType, status, votingStartHeight, votingEndHeight, votesQuorum, votesFor, votesAgainst)
153153 }
154154
155155
156156 func votingExistChecks (assetId,currentIndex) = {
157157 let votingInfo = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found"))
158158 let votingInfoArray = split(votingInfo, separator)
159159 let status = votingInfoArray[5]
160160 let votingEndHeight = valueOrErrorMessage(parseIntValue(votingInfoArray[7]), wrapErr("voting start height not found"))
161161 let suggestIssuer = valueOrErrorMessage(getString(keySuggestIssuer(assetId, currentIndex)), wrapErr("voting issuer not found"))
162162 let checks = [if ((status == "inProgress"))
163163 then true
164164 else throwErr("no voting in progress"), if ((votingEndHeight > height))
165165 then true
166166 else throwErr("voting expired")]
167167 if ((checks == checks))
168168 then $Tuple3(status, votingEndHeight, suggestIssuer)
169169 else throw("Strict value is not equal to itself.")
170170 }
171171
172172
173173 func calculateReward (voter,assetId,index) = {
174174 let voteKey = keyVote(assetId, index, voter)
175175 let lastVote = valueOrErrorMessage(getString(voteKey), wrapErr("you have not voted"))
176176 let lastVoteParts = split(lastVote, separator)
177177 let gwxAmount = parseIntValue(lastVoteParts[2])
178178 let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, index)), wrapErr("voting info not found"))
179179 let votingParts = getVotingInfoParts(votingInfoStr)
180180 let votesFor = votingParts._9
181181 let votesAgainst = votingParts._10
182182 let partOfTheTotalVotesX8 = fraction(gwxAmount, MULT8, (votesFor + votesAgainst))
183183 let totalVotingReward = valueOrElse(getInteger(keyTotalVotingReward(assetId, index)), 0)
184184 let voterRewardAmount = fraction(partOfTheTotalVotesX8, totalVotingReward, MULT8, FLOOR)
185185 voterRewardAmount
186186 }
187187
188188
189189 @Callable(i)
190190 func suggestAdd (assetId,periodLength,assetImage) = {
191191 let wxPayment = i.payments[0]
192192 let wxPaymentAssetId = value(wxPayment.assetId)
193193 let wxPaymentAmount = value(wxPayment.amount)
194194 let minPeriodLength = getIntegerValue(keyMinPeriodLength)
195195 let maxPeriodLength = getIntegerValue(keyMaxPeriodLength)
196196 let checks = [if (if ((periodLength >= minPeriodLength))
197197 then (maxPeriodLength >= periodLength)
198198 else false)
199199 then true
200200 else throwErr("invalid periodLength"), if ((wxPaymentAmount > (periodLength * feePerBlock)))
201201 then true
202202 else throwErr("not enough wx for given period"), if ((wxPaymentAmount >= getIntegerValue(keyMinWxMinForSuggestAddAmountRequired)))
203203 then true
204204 else throwErr("payment less then min for suggest")]
205205 if ((checks == checks))
206206 then {
207207 let currentIndexKey = keyCurrentIndex(assetId)
208208 let currentIndex = getInteger(currentIndexKey)
209209 let newIndex = if (isDefined(currentIndex))
210210 then (value(currentIndex) + 1)
211211 else 0
212212 let $t085839223 = if ((size(i.payments) > 1))
213213 then {
214214 let votingRewardPayment = i.payments[1]
215215 let votingRewardPaymentAssetId = toBase58String(value(votingRewardPayment.assetId))
216216 let votingRewardPaymentAmount = value(votingRewardPayment.amount)
217217 $Tuple4(true, votingRewardPaymentAssetId, votingRewardPaymentAmount, [StringEntry(keyVotingRewardAssetId(assetId, newIndex), votingRewardPaymentAssetId), IntegerEntry(keyTotalVotingReward(assetId, newIndex), votingRewardPaymentAmount)])
218218 }
219219 else $Tuple4(false, "EMPTY", 0, nil)
220220 let isRewardExist = $t085839223._1
221221 let rewardAssetId = $t085839223._2
222222 let rewardAmount = $t085839223._3
223223 let votingRewardActions = $t085839223._4
224224 let votesQuorum = valueOrErrorMessage(getInteger(keyVotingThresholdAdd), wrapErr("votingThresholdAdd not set"))
225225 let votingInfo = votingInfoValue(isRewardExist, rewardAssetId, rewardAmount, "verification", "inProgress", height, (height + periodLength), votesQuorum, 0, 0)
226226 let finalizeCallRewardAmount = valueOrElse(getInteger(keyFinalizeCallRewardAmount), 0)
227227 let burnWxAmount = (wxPaymentAmount - finalizeCallRewardAmount)
228228 let assetsStoreCreateOrUpdateInv = invoke(assetsStoreContract, "createOrUpdate", [assetId, assetImage, false], nil)
229229 if ((assetsStoreCreateOrUpdateInv == assetsStoreCreateOrUpdateInv))
230230 then ([IntegerEntry(currentIndexKey, newIndex), StringEntry(keySuggestIssuer(assetId, newIndex), toString(i.caller)), StringEntry(keyVotingInfo(assetId, newIndex), votingInfo), Burn(wxPaymentAssetId, burnWxAmount)] ++ votingRewardActions)
231231 else throw("Strict value is not equal to itself.")
232232 }
233233 else throw("Strict value is not equal to itself.")
234234 }
235235
236236
237237
238238 @Callable(i)
239239 func suggestRemove (assetId) = {
240240 let gwxAmountAtNow = getUserGwxAmountAtHeight(toString(i.caller), height)
241241 let minSuggestRemoveBalance = getIntegerValue(keyMinSuggestRemoveBalance)
242242 let wxPayment = i.payments[0]
243243 let wxPaymentAssetId = value(wxPayment.assetId)
244244 let wxPaymentAmount = value(wxPayment.amount)
245245 let checks = [if ((gwxAmountAtNow >= minSuggestRemoveBalance))
246246 then true
247247 else throwErr("not enough gWXes"), if ((wxPaymentAmount >= getIntegerValue(keyWxForSuggestRemoveAmountRequired)))
248248 then true
249249 else throwErr("payment less then min for suggest")]
250250 if ((checks == checks))
251251 then {
252252 let currentIndexKey = keyCurrentIndex(assetId)
253253 let currentIndex = getInteger(currentIndexKey)
254254 let newIndex = if (isDefined(currentIndex))
255255 then (value(currentIndex) + 1)
256256 else 0
257257 let periodLength = valueOrErrorMessage(getInteger(keyPeriodLengthRemove), wrapErr("periodLengthRemove not set"))
258258 let votingEndHeight = (height + periodLength)
259259 let votesQuorum = valueOrErrorMessage(getInteger(keyVotingThresholdRemove), wrapErr("votingThresholdRemove not set"))
260260 let votingInfo = votingInfoValue(false, "EMPTY", 0, "deverification", "inProgress", height, (height + periodLength), votesQuorum, 0, 0)
261261 [IntegerEntry(currentIndexKey, newIndex), StringEntry(keySuggestIssuer(assetId, newIndex), toString(i.caller)), StringEntry(keyVotingInfo(assetId, newIndex), votingInfo)]
262262 }
263263 else throw("Strict value is not equal to itself.")
264264 }
265265
266266
267267
268268 @Callable(i)
269269 func vote (assetId,inFavor) = {
270270 let currentIndexKey = keyCurrentIndex(assetId)
271271 let currentIndex = valueOrErrorMessage(getInteger(currentIndexKey), wrapErr("voting does not exist"))
272272 let votingInfo = votingExistChecks(assetId, currentIndex)
273273 if ((votingInfo == votingInfo))
274274 then {
275275 let currentVotingEndHeight = votingInfo._2
276276 let gwxAmountAtEnd = getUserGwxAmountAtHeight(toString(i.caller), currentVotingEndHeight)
277277 let voteKey = keyVote(assetId, currentIndex, i.caller)
278278 let checks = [if ((getString(voteKey) == unit))
279279 then true
280280 else throwErr("You have already voted"), if ((gwxAmountAtEnd > 0))
281281 then true
282282 else throw("You'll not have gWX at the end of voting")]
283283 if ((checks == checks))
284284 then {
285285 let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found"))
286286 let votingInfoParts = getVotingInfoParts(votingInfoStr)
287287 let votesFor = votingInfoParts._9
288288 let votesAgainst = votingInfoParts._10
289289 let $t01253412695 = if (inFavor)
290290 then $Tuple2((votesFor + gwxAmountAtEnd), votesAgainst)
291291 else $Tuple2(votesFor, (votesAgainst + gwxAmountAtEnd))
292292 let newVotesFor = $t01253412695._1
293293 let newVotesAgainst = $t01253412695._2
294294 let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, votingInfoParts._5, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, newVotesFor, newVotesAgainst)
295- let votingRewardAction = match getBoolean(keyVotingRewardAssetId(assetId, currentIndex)) {
296- case pk: Boolean =>
297-[BooleanEntry(keyVotingReward(i.caller, assetId, currentIndex), true)]
298- case _: Unit =>
299- nil
300- case _ =>
301- throw("Match error")
302- }
295+ let votingRewardAction = if ((getBoolean(keyVotingRewardAssetId(assetId, currentIndex)) != unit))
296+ then [BooleanEntry(keyVotingReward(i.caller, assetId, currentIndex), true)]
297+ else nil
303298 ([StringEntry(voteKey, voteValue(inFavor, gwxAmountAtEnd)), StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue)] ++ votingRewardAction)
304299 }
305300 else throw("Strict value is not equal to itself.")
306301 }
307302 else throw("Strict value is not equal to itself.")
308303 }
309304
310305
311306
312307 @Callable(i)
313308 func cancelVote (assetId) = {
314309 let currentIndexKey = keyCurrentIndex(assetId)
315310 let currentIndex = valueOrErrorMessage(getInteger(currentIndexKey), wrapErr("voting does not exist"))
316311 let voteKey = keyVote(assetId, currentIndex, i.caller)
317312 let lastVote = valueOrErrorMessage(getString(voteKey), wrapErr("you have not voted"))
318313 let lastVoteParts = split(lastVote, separator)
319314 let inFavor = lastVoteParts[1]
320315 let gwxAmount = parseIntValue(lastVoteParts[2])
321316 let votingInfo = votingExistChecks(assetId, currentIndex)
322317 if ((votingInfo == votingInfo))
323318 then {
324319 let checks = [if (if ((inFavor == "true"))
325320 then true
326321 else (inFavor == "false"))
327322 then true
328323 else throwErr("invalid vote")]
329324 if ((checks == checks))
330325 then {
331326 let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found"))
332327 let votingInfoParts = getVotingInfoParts(votingInfoStr)
333328 let votesFor = votingInfoParts._9
334329 let votesAgainst = votingInfoParts._10
335- let $t01427514436 = if ((inFavor == "true"))
330+ let $t01426014421 = if ((inFavor == "true"))
336331 then $Tuple2((votesFor - gwxAmount), votesAgainst)
337332 else $Tuple2(votesFor, (votesAgainst - gwxAmount))
338- let newVotesFor = $t01427514436._1
339- let newVotesAgainst = $t01427514436._2
333+ let newVotesFor = $t01426014421._1
334+ let newVotesAgainst = $t01426014421._2
340335 let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, votingInfoParts._5, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, newVotesFor, newVotesAgainst)
341336 [StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue), DeleteEntry(voteKey), DeleteEntry(keyVotingReward(i.caller, assetId, currentIndex))]
342337 }
343338 else throw("Strict value is not equal to itself.")
344339 }
345340 else throw("Strict value is not equal to itself.")
346341 }
347342
348343
349344
350345 @Callable(i)
351346 func finalize (assetId) = {
352347 let currentIndexKey = keyCurrentIndex(assetId)
353348 let currentIndex = valueOrElse(getInteger(currentIndexKey), 0)
354349 let votingThresholdAdd = valueOrErrorMessage(getInteger(keyVotingThresholdAdd), wrapErr("votingThresholdAdd not set"))
355350 let votingThresholdRemove = valueOrErrorMessage(getInteger(keyVotingThresholdRemove), wrapErr("votingThresholdRemove not set"))
356351 let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found"))
357352 let votingInfoParts = getVotingInfoParts(votingInfoStr)
358353 let votingType = votingInfoParts._4
359354 let status = votingInfoParts._5
360355 let votingEndHeight = votingInfoParts._7
361356 let votingQuorum = votingInfoParts._8
362357 let votesFor = votingInfoParts._9
363358 let votesAgainst = votingInfoParts._10
364359 let checks = [if ((status == "inProgress"))
365360 then true
366361 else throwErr("voting not in progress"), if ((height >= votingEndHeight))
367362 then true
368363 else throwErr("voting not finished")]
369364 if ((checks == checks))
370365 then {
371366 let newStatus = if (((votesFor + votesAgainst) >= votingQuorum))
372367 then "accepted"
373368 else "rejected"
374369 let verified = if ((votingType == "verification"))
375370 then true
376371 else false
377372 let finalizeCallRewardAction = if ((votesAgainst > votesFor))
378373 then {
379374 let setVerifiedInvoke = invoke(assetsStoreContract, "setVerified", [assetId, verified], nil)
380375 if ((setVerifiedInvoke == setVerifiedInvoke))
381376 then {
382377 let finalizeCallRewardAmount = valueOrElse(getInteger(keyFinalizeCallRewardAmount), 0)
383378 [ScriptTransfer(i.caller, finalizeCallRewardAmount, wxAssetId)]
384379 }
385380 else throw("Strict value is not equal to itself.")
386381 }
387382 else nil
388383 let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, newStatus, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, votingInfoParts._9, votingInfoParts._10)
389384 ([StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue)] ++ finalizeCallRewardAction)
390385 }
391386 else throw("Strict value is not equal to itself.")
392387 }
393388
394389
395390
396391 @Callable(i)
397392 func claimREADONLY (assetId,index,userAddressStr) = {
398393 let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid address"))
399394 let votingRewardAssetIdStr = getString(keyVotingRewardAssetId(assetId, index))
400395 let rewardAmount = if (isDefined(votingRewardAssetIdStr))
401396 then calculateReward(userAddress, assetId, index)
402397 else 0
403398 $Tuple2(nil, rewardAmount)
404399 }
405400
406401
407402
408403 @Callable(i)
409404 func claim (assetId,index) = {
410405 let callerAddress = i.caller
411406 let claimHistoryKey = keyClaimHistory(callerAddress, assetId, index)
412407 let claimHistory = getInteger(claimHistoryKey)
413408 let checks = [if ((claimHistory == unit))
414409 then true
415410 else throwErr("already claimed")]
416411 if ((checks == checks))
417412 then {
418413 let rewardAmount = if ((calculateReward(callerAddress, assetId, index) > 0))
419414 then calculateReward(callerAddress, assetId, index)
420415 else throwErr("nothing to claim")
421416 let votingRewardAssetIdStr = getString(keyVotingRewardAssetId(assetId, index))
422417 let rewardAction = if (isDefined(votingRewardAssetIdStr))
423418 then {
424419 let votingRewardAssetId = fromBase58String(value(votingRewardAssetIdStr))
425420 [ScriptTransfer(callerAddress, rewardAmount, votingRewardAssetId), IntegerEntry(claimHistoryKey, rewardAmount), DeleteEntry(keyVotingReward(callerAddress, assetId, index))]
426421 }
427422 else throwErr("nothing to claim")
428423 rewardAction
429424 }
430425 else throw("Strict value is not equal to itself.")
431426 }
432427
433428
434429 @Verifier(tx)
435430 func verify () = {
436431 let targetPublicKey = match managerPublicKeyOrUnit() {
437432 case pk: ByteVector =>
438433 pk
439434 case _: Unit =>
440435 tx.senderPublicKey
441436 case _ =>
442437 throw("Match error")
443438 }
444439 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
445440 }
446441

github/deemru/w8io/fabc49c 
48.04 ms