tx · AD1yy84NgB3UNpyKryCJTDD6pqGyKCm22BovMbXr8F5j 3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE: -0.02300000 Waves 2023.10.17 09:50 [2802280] smart account 3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE > SELF 0.00000000 Waves
{ "type": 13, "id": "AD1yy84NgB3UNpyKryCJTDD6pqGyKCm22BovMbXr8F5j", "fee": 2300000, "feeAssetId": null, "timestamp": 1697525446471, "version": 2, "chainId": 84, "sender": "3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE", "senderPublicKey": "6t3vrhP1jCmG7CeKBmL8hUibtdP3cMXGC2XtPYEPPC5w", "proofs": [ "5Zsw6b3GaJTvK5LWt5knqiJY97grqK4bf2RVS2aixxzKWNnpmG4mV2s5fuuMUXRHbRpp4xrqRSA9sk4FAEKTMWKW" ], "script": "base64:BgIrCAISBQoDCAEIEgMKAQgSBAoCCAQSAwoBCBIDCgEIEgUKAwgBCBIECgIIATYACXNlcGFyYXRvcgICX18ABU1VTFQ4AIDC1y8AC3dhdmVzU3RyaW5nAgVXQVZFUwAQc3RhdHVzSW5Qcm9ncmVzcwIKaW5Qcm9ncmVzcwAOc3RhdHVzQWNjZXB0ZWQCCGFjY2VwdGVkAA5zdGF0dXNSZWplY3RlZAIIcmVqZWN0ZWQBB3dyYXBFcnIBA21zZwkAuQkCCQDMCAICGHZvdGluZ192ZXJpZmllZF92Mi5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnAQVhc0ludAEDdmFsBAckbWF0Y2gwBQN2YWwDCQABAgUHJG1hdGNoMAIDSW50BAZ2YWxJbnQFByRtYXRjaDAFBnZhbEludAkAAgECG0ZhaWxlZCB0byBjYXN0IGludG8gSW50ZWdlcgEMcGFyc2VBc3NldElkAQVpbnB1dAMJAAACBQVpbnB1dAULd2F2ZXNTdHJpbmcFBHVuaXQJANkEAQUFaW5w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jaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXk+OaFQ", "height": 2802280, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HWRVNKksKRyErxvrkwAf8rVMTEMyGvCfkRPvFeVdmHKA Next: CN8pxEUGxWwQTBLb5JpN4huLZfzWk5tU6no8RX71duEP Diff:
Old | New | Differences | |
---|---|---|---|
435 | 435 | then { | |
436 | 436 | let votingAcceptedInvokes = if ((votingType == "verification")) | |
437 | 437 | then invoke(assetsStoreContract, "createOrUpdate", [assetId, assetImage, true], nil) | |
438 | - | else invoke(assetsStoreContract, "setVerified", [assetId, false], nil) | |
438 | + | else [invoke(assetsStoreContract, "setVerified", [assetId, false], nil), invoke(assetsStoreContract, "onEliminate", [assetId], nil)] | |
439 | 439 | votingAcceptedInvokes | |
440 | 440 | } | |
441 | 441 | else nil | |
484 | 484 | else throwErr("already claimed")] | |
485 | 485 | if ((checks == checks)) | |
486 | 486 | then { | |
487 | - | let $ | |
488 | - | let rewardAmount = $ | |
489 | - | let canClaim = $ | |
487 | + | let $t01960019677 = calculateReward(callerAddress, assetId, index) | |
488 | + | let rewardAmount = $t01960019677._1 | |
489 | + | let canClaim = $t01960019677._2 | |
490 | 490 | if (!(canClaim)) | |
491 | 491 | then throwErr("nothing to claim") | |
492 | 492 | else { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "__" | |
5 | 5 | ||
6 | 6 | let MULT8 = 100000000 | |
7 | 7 | ||
8 | 8 | let wavesString = "WAVES" | |
9 | 9 | ||
10 | 10 | let statusInProgress = "inProgress" | |
11 | 11 | ||
12 | 12 | let statusAccepted = "accepted" | |
13 | 13 | ||
14 | 14 | let statusRejected = "rejected" | |
15 | 15 | ||
16 | 16 | func wrapErr (msg) = makeString(["voting_verified_v2.ride:", msg], " ") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func throwErr (msg) = throw(wrapErr(msg)) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func asInt (val) = match val { | |
23 | 23 | case valInt: Int => | |
24 | 24 | valInt | |
25 | 25 | case _ => | |
26 | 26 | throw("Failed to cast into Integer") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func parseAssetId (input) = if ((input == wavesString)) | |
31 | 31 | then unit | |
32 | 32 | else fromBase58String(input) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func assetIdToString (input) = if ((input == unit)) | |
36 | 36 | then wavesString | |
37 | 37 | else toBase58String(value(input)) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func getIntegerOrZero (address,key) = valueOrElse(getInteger(address, key), 0) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func getIntegerOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), wrapErr((key + " is not defined"))) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func getStringOrEmpty (address,key) = valueOrElse(getString(address, key), "") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), wrapErr((key + " is not defined"))) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | let keyBoostingContract = makeString(["%s", "boostingContract"], separator) | |
53 | 53 | ||
54 | 54 | let keyEmissionContract = makeString(["%s", "emissionContract"], separator) | |
55 | 55 | ||
56 | 56 | let keyAssetsStoreContract = makeString(["%s", "assetsStoreContract"], separator) | |
57 | 57 | ||
58 | 58 | let boostingContract = addressFromStringValue(getStringValue(keyBoostingContract)) | |
59 | 59 | ||
60 | 60 | let emissionContract = addressFromStringValue(getStringValue(keyEmissionContract)) | |
61 | 61 | ||
62 | 62 | let assetsStoreContract = addressFromStringValue(getStringValue(keyAssetsStoreContract)) | |
63 | 63 | ||
64 | 64 | let keyEmissionConfig = makeString(["%s", "config"], separator) | |
65 | 65 | ||
66 | 66 | let wxAssetIdStr = split(getStringOrFail(emissionContract, keyEmissionConfig), separator)[1] | |
67 | 67 | ||
68 | 68 | let wxAssetId = fromBase58String(wxAssetIdStr) | |
69 | 69 | ||
70 | 70 | let keyVotingThresholdAdd = makeString(["%s%s", "votingThreshold", "add"], separator) | |
71 | 71 | ||
72 | 72 | let keyVotingThresholdRemove = makeString(["%s%s", "votingThreshold", "remove"], separator) | |
73 | 73 | ||
74 | 74 | let keyPeriodLengthRemove = makeString(["%s", "periodLengthRemove"], separator) | |
75 | 75 | ||
76 | 76 | let keyMaxPeriodLength = makeString(["%s", "maxPeriodLength"], separator) | |
77 | 77 | ||
78 | 78 | let keyMinPeriodLength = makeString(["%s", "minPeriodLength"], separator) | |
79 | 79 | ||
80 | 80 | func keyVotingRewardAssetId (assetId,index) = makeString(["%s%s%d", "votingRewardAssetId", assetId, toString(index)], separator) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyVotingReward (userAddress,assetId,index) = makeString(["%s%s%s%d", "votingReward", toString(userAddress), assetId, toString(index)], separator) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keyTotalVotingReward (assetId,index) = makeString(["%s%s%d", "totalVotingReward", assetId, toString(index)], separator) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | let keyFinalizeCallRewardAmount = makeString(["%s", "finalizeCallRewardAmount"], separator) | |
90 | 90 | ||
91 | 91 | let keyMinSuggestRemoveBalance = makeString(["%s", "minSuggestRemoveBalance"], separator) | |
92 | 92 | ||
93 | 93 | func keyCurrentIndex (assetId) = makeString(["%s%s", "currentIndex", assetId], separator) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyVote (assetId,index,caller) = makeString(["%s%s%d%s", "vote", assetId, toString(index), toString(caller)], separator) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func voteValue (inFavor,gwxAmount) = makeString(["%s%d", toString(inFavor), toString(gwxAmount)], separator) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keySuggestIssuer (assetId,index) = makeString(["%s%s%d", "suggestIssuer", assetId, toString(index)], separator) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyClaimHistory (userAddress,assetId,index) = makeString(["%s%s%s%d", "history", toString(userAddress), assetId, toString(index)], separator) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let keyFeePerBlock = makeString(["%s", "feePerBlock"], separator) | |
109 | 109 | ||
110 | 110 | let feePerBlock = getIntegerOrFail(this, keyFeePerBlock) | |
111 | 111 | ||
112 | 112 | let keyMinWxMinForSuggestAddAmountRequired = makeString(["%s", "wxMinForSuggestAddAmountRequired"], separator) | |
113 | 113 | ||
114 | 114 | let keyWxForSuggestRemoveAmountRequired = makeString(["%s", "wxForSuggestRemoveAmountRequired"], separator) | |
115 | 115 | ||
116 | 116 | func keyVotingInfo (assetId,index) = makeString(["%s%s%d", "votingInfo", assetId, toString(index)], separator) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | 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) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func keyAssetImage (assetId) = makeString(["%s%s", "assetImage", assetId], separator) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func getUserGwxAmountAtHeight (userAddress,targetHeight) = { | |
126 | 126 | let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [userAddress, targetHeight], nil) | |
127 | 127 | asInt(gwxAmount) | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func keyManagerVaultAddress () = "%s__managerVaultAddress" | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) { | |
138 | 138 | case s: String => | |
139 | 139 | addressFromStringValue(s) | |
140 | 140 | case _ => | |
141 | 141 | this | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func managerPublicKeyOrUnit () = { | |
146 | 146 | let managerVaultAddress = getManagerVaultAddressOrThis() | |
147 | 147 | match getString(managerVaultAddress, keyManagerPublicKey()) { | |
148 | 148 | case s: String => | |
149 | 149 | fromBase58String(s) | |
150 | 150 | case _: Unit => | |
151 | 151 | unit | |
152 | 152 | case _ => | |
153 | 153 | throw("Match error") | |
154 | 154 | } | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func getVotingInfoParts (votingInfo) = { | |
159 | 159 | let votingInfoParts = split(votingInfo, separator) | |
160 | 160 | let isRewardExistStr = votingInfoParts[1] | |
161 | 161 | let isRewardExist = if ((isRewardExistStr == "true")) | |
162 | 162 | then true | |
163 | 163 | else false | |
164 | 164 | let rewardAssetId = votingInfoParts[2] | |
165 | 165 | let rewardAmount = parseIntValue(votingInfoParts[3]) | |
166 | 166 | let votingType = votingInfoParts[4] | |
167 | 167 | let status = votingInfoParts[5] | |
168 | 168 | let votingStartHeight = parseIntValue(votingInfoParts[6]) | |
169 | 169 | let votingEndHeight = parseIntValue(votingInfoParts[7]) | |
170 | 170 | let votesQuorum = parseIntValue(votingInfoParts[8]) | |
171 | 171 | let votesFor = parseIntValue(votingInfoParts[9]) | |
172 | 172 | let votesAgainst = parseIntValue(votingInfoParts[10]) | |
173 | 173 | $Tuple10(isRewardExist, rewardAssetId, rewardAmount, votingType, status, votingStartHeight, votingEndHeight, votesQuorum, votesFor, votesAgainst) | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func votingExistChecks (assetId,currentIndex) = { | |
178 | 178 | let votingInfo = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found")) | |
179 | 179 | let votingInfoArray = split(votingInfo, separator) | |
180 | 180 | let status = votingInfoArray[5] | |
181 | 181 | let votingEndHeight = valueOrErrorMessage(parseIntValue(votingInfoArray[7]), wrapErr("voting start height not found")) | |
182 | 182 | let suggestIssuer = valueOrErrorMessage(getString(keySuggestIssuer(assetId, currentIndex)), wrapErr("voting issuer not found")) | |
183 | 183 | let checks = [if ((status == statusInProgress)) | |
184 | 184 | then true | |
185 | 185 | else throwErr("no voting in progress"), if ((votingEndHeight > height)) | |
186 | 186 | then true | |
187 | 187 | else throwErr("voting expired")] | |
188 | 188 | if ((checks == checks)) | |
189 | 189 | then $Tuple3(status, votingEndHeight, suggestIssuer) | |
190 | 190 | else throw("Strict value is not equal to itself.") | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func calculateReward (voter,assetId,index) = { | |
195 | 195 | let voteKey = keyVote(assetId, index, voter) | |
196 | 196 | let lastVote = valueOrErrorMessage(getString(voteKey), wrapErr("you have not voted")) | |
197 | 197 | let lastVoteParts = split(lastVote, separator) | |
198 | 198 | let gwxAmount = parseIntValue(lastVoteParts[2]) | |
199 | 199 | let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, index)), wrapErr("voting info not found")) | |
200 | 200 | let votingParts = getVotingInfoParts(votingInfoStr) | |
201 | 201 | let status = votingParts._5 | |
202 | 202 | let votesFor = votingParts._9 | |
203 | 203 | let votesAgainst = votingParts._10 | |
204 | 204 | let partOfTheTotalVotesX8 = fraction(gwxAmount, MULT8, (votesFor + votesAgainst)) | |
205 | 205 | let totalVotingReward = valueOrElse(getInteger(keyTotalVotingReward(assetId, index)), 0) | |
206 | 206 | let voterRewardAmount = fraction(partOfTheTotalVotesX8, totalVotingReward, MULT8, FLOOR) | |
207 | 207 | let canClaim = if ((status == statusAccepted)) | |
208 | 208 | then (voterRewardAmount > 0) | |
209 | 209 | else false | |
210 | 210 | $Tuple2(voterRewardAmount, canClaim) | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(i) | |
215 | 215 | func suggestAdd (assetId,periodLength,assetImage) = { | |
216 | 216 | let wxPayment = i.payments[0] | |
217 | 217 | let wxPaymentAssetId = value(wxPayment.assetId) | |
218 | 218 | let wxPaymentAmount = value(wxPayment.amount) | |
219 | 219 | let minPeriodLength = getIntegerValue(keyMinPeriodLength) | |
220 | 220 | let maxPeriodLength = getIntegerValue(keyMaxPeriodLength) | |
221 | 221 | let tokenIsVerified = { | |
222 | 222 | let @ = invoke(assetsStoreContract, "isVerifiedREADONLY", [assetId], nil) | |
223 | 223 | if ($isInstanceOf(@, "Boolean")) | |
224 | 224 | then @ | |
225 | 225 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
226 | 226 | } | |
227 | 227 | let checks = [if (if ((periodLength >= minPeriodLength)) | |
228 | 228 | then (maxPeriodLength >= periodLength) | |
229 | 229 | else false) | |
230 | 230 | then true | |
231 | 231 | else throwErr("invalid periodLength"), if ((tokenIsVerified == false)) | |
232 | 232 | then true | |
233 | 233 | else throwErr("token already verified"), if ((wxPaymentAmount >= (periodLength * feePerBlock))) | |
234 | 234 | then true | |
235 | 235 | else throwErr("not enough wx for given period"), if ((wxPaymentAmount >= getIntegerValue(keyMinWxMinForSuggestAddAmountRequired))) | |
236 | 236 | then true | |
237 | 237 | else throwErr("payment less then min for suggest")] | |
238 | 238 | if ((checks == checks)) | |
239 | 239 | then { | |
240 | 240 | let currentIndexKey = keyCurrentIndex(assetId) | |
241 | 241 | let currentIndex = getInteger(currentIndexKey) | |
242 | 242 | let newIndex = if (isDefined(currentIndex)) | |
243 | 243 | then (value(currentIndex) + 1) | |
244 | 244 | else 0 | |
245 | 245 | let $t092599899 = if ((size(i.payments) > 1)) | |
246 | 246 | then { | |
247 | 247 | let votingRewardPayment = i.payments[1] | |
248 | 248 | let votingRewardPaymentAssetId = toBase58String(value(votingRewardPayment.assetId)) | |
249 | 249 | let votingRewardPaymentAmount = value(votingRewardPayment.amount) | |
250 | 250 | $Tuple4(true, votingRewardPaymentAssetId, votingRewardPaymentAmount, [StringEntry(keyVotingRewardAssetId(assetId, newIndex), votingRewardPaymentAssetId), IntegerEntry(keyTotalVotingReward(assetId, newIndex), votingRewardPaymentAmount)]) | |
251 | 251 | } | |
252 | 252 | else $Tuple4(false, "EMPTY", 0, nil) | |
253 | 253 | let isRewardExist = $t092599899._1 | |
254 | 254 | let rewardAssetId = $t092599899._2 | |
255 | 255 | let rewardAmount = $t092599899._3 | |
256 | 256 | let votingRewardActions = $t092599899._4 | |
257 | 257 | let votesQuorum = valueOrErrorMessage(getInteger(keyVotingThresholdAdd), wrapErr("votingThresholdAdd not set")) | |
258 | 258 | let votingInfo = votingInfoValue(isRewardExist, rewardAssetId, rewardAmount, "verification", statusInProgress, height, (height + periodLength), votesQuorum, 0, 0) | |
259 | 259 | let finalizeCallRewardAmount = getIntegerValue(keyFinalizeCallRewardAmount) | |
260 | 260 | let burnWxAmount = (wxPaymentAmount - finalizeCallRewardAmount) | |
261 | 261 | ([IntegerEntry(currentIndexKey, newIndex), StringEntry(keySuggestIssuer(assetId, newIndex), toString(i.caller)), StringEntry(keyVotingInfo(assetId, newIndex), votingInfo), StringEntry(keyAssetImage(assetId), assetImage), Burn(wxPaymentAssetId, burnWxAmount)] ++ votingRewardActions) | |
262 | 262 | } | |
263 | 263 | else throw("Strict value is not equal to itself.") | |
264 | 264 | } | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | ||
268 | 268 | @Callable(i) | |
269 | 269 | func suggestRemove (assetId) = { | |
270 | 270 | let gwxAmountAtNow = getUserGwxAmountAtHeight(toString(i.caller), height) | |
271 | 271 | let minSuggestRemoveBalance = getIntegerValue(keyMinSuggestRemoveBalance) | |
272 | 272 | let wxPayment = i.payments[0] | |
273 | 273 | let wxPaymentAssetId = value(wxPayment.assetId) | |
274 | 274 | let wxPaymentAmount = value(wxPayment.amount) | |
275 | 275 | let tokenIsVerified = { | |
276 | 276 | let @ = invoke(assetsStoreContract, "isVerifiedREADONLY", [assetId], nil) | |
277 | 277 | if ($isInstanceOf(@, "Boolean")) | |
278 | 278 | then @ | |
279 | 279 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
280 | 280 | } | |
281 | 281 | let checks = [if (tokenIsVerified) | |
282 | 282 | then true | |
283 | 283 | else throwErr("token not verified"), if ((gwxAmountAtNow >= minSuggestRemoveBalance)) | |
284 | 284 | then true | |
285 | 285 | else throwErr("not enough gWXes"), if ((wxPaymentAmount >= getIntegerValue(keyWxForSuggestRemoveAmountRequired))) | |
286 | 286 | then true | |
287 | 287 | else throwErr("payment less then min for suggest")] | |
288 | 288 | if ((checks == checks)) | |
289 | 289 | then { | |
290 | 290 | let currentIndexKey = keyCurrentIndex(assetId) | |
291 | 291 | let currentIndex = getInteger(currentIndexKey) | |
292 | 292 | let newIndex = if (isDefined(currentIndex)) | |
293 | 293 | then (value(currentIndex) + 1) | |
294 | 294 | else 0 | |
295 | 295 | let periodLength = valueOrErrorMessage(getInteger(keyPeriodLengthRemove), wrapErr("periodLengthRemove not set")) | |
296 | 296 | let votingEndHeight = (height + periodLength) | |
297 | 297 | let votesQuorum = valueOrErrorMessage(getInteger(keyVotingThresholdRemove), wrapErr("votingThresholdRemove not set")) | |
298 | 298 | let votingInfo = votingInfoValue(false, "EMPTY", 0, "deverification", statusInProgress, height, (height + periodLength), votesQuorum, 0, 0) | |
299 | 299 | let setAssetImageAction = match getString(keyAssetImage(assetId)) { | |
300 | 300 | case s: String => | |
301 | 301 | nil | |
302 | 302 | case _: Unit => | |
303 | 303 | let assetsStoreAssetImage = { | |
304 | 304 | let @ = invoke(assetsStoreContract, "getAssetLogoREADONLY", [assetId], nil) | |
305 | 305 | if ($isInstanceOf(@, "String")) | |
306 | 306 | then @ | |
307 | 307 | else throw(($getType(@) + " couldn't be cast to String")) | |
308 | 308 | } | |
309 | 309 | [StringEntry(keyAssetImage(assetId), assetsStoreAssetImage)] | |
310 | 310 | case _ => | |
311 | 311 | throw("Match error") | |
312 | 312 | } | |
313 | 313 | ([IntegerEntry(currentIndexKey, newIndex), StringEntry(keySuggestIssuer(assetId, newIndex), toString(i.caller)), StringEntry(keyVotingInfo(assetId, newIndex), votingInfo)] ++ setAssetImageAction) | |
314 | 314 | } | |
315 | 315 | else throw("Strict value is not equal to itself.") | |
316 | 316 | } | |
317 | 317 | ||
318 | 318 | ||
319 | 319 | ||
320 | 320 | @Callable(i) | |
321 | 321 | func vote (assetId,inFavor) = { | |
322 | 322 | let currentIndexKey = keyCurrentIndex(assetId) | |
323 | 323 | let currentIndex = valueOrErrorMessage(getInteger(currentIndexKey), wrapErr("voting does not exist")) | |
324 | 324 | let votingInfo = votingExistChecks(assetId, currentIndex) | |
325 | 325 | if ((votingInfo == votingInfo)) | |
326 | 326 | then { | |
327 | 327 | let currentVotingEndHeight = votingInfo._2 | |
328 | 328 | let gwxAmountAtEnd = getUserGwxAmountAtHeight(toString(i.caller), currentVotingEndHeight) | |
329 | 329 | let voteKey = keyVote(assetId, currentIndex, i.caller) | |
330 | 330 | let checks = [if ((getString(voteKey) == unit)) | |
331 | 331 | then true | |
332 | 332 | else throwErr("You have already voted"), if ((gwxAmountAtEnd > 0)) | |
333 | 333 | then true | |
334 | 334 | else throw("You'll not have gWX at the end of voting")] | |
335 | 335 | if ((checks == checks)) | |
336 | 336 | then { | |
337 | 337 | let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found")) | |
338 | 338 | let votingInfoParts = getVotingInfoParts(votingInfoStr) | |
339 | 339 | let votesFor = votingInfoParts._9 | |
340 | 340 | let votesAgainst = votingInfoParts._10 | |
341 | 341 | let $t01356313724 = if (inFavor) | |
342 | 342 | then $Tuple2((votesFor + gwxAmountAtEnd), votesAgainst) | |
343 | 343 | else $Tuple2(votesFor, (votesAgainst + gwxAmountAtEnd)) | |
344 | 344 | let newVotesFor = $t01356313724._1 | |
345 | 345 | let newVotesAgainst = $t01356313724._2 | |
346 | 346 | let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, votingInfoParts._5, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, newVotesFor, newVotesAgainst) | |
347 | 347 | let votingRewardAction = match getString(keyVotingRewardAssetId(assetId, currentIndex)) { | |
348 | 348 | case pk: String => | |
349 | 349 | [StringEntry(keyVotingReward(i.caller, assetId, currentIndex), voteValue(inFavor, gwxAmountAtEnd))] | |
350 | 350 | case _: Unit => | |
351 | 351 | nil | |
352 | 352 | case _ => | |
353 | 353 | throw("Match error") | |
354 | 354 | } | |
355 | 355 | ([StringEntry(voteKey, voteValue(inFavor, gwxAmountAtEnd)), StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue)] ++ votingRewardAction) | |
356 | 356 | } | |
357 | 357 | else throw("Strict value is not equal to itself.") | |
358 | 358 | } | |
359 | 359 | else throw("Strict value is not equal to itself.") | |
360 | 360 | } | |
361 | 361 | ||
362 | 362 | ||
363 | 363 | ||
364 | 364 | @Callable(i) | |
365 | 365 | func cancelVote (assetId) = { | |
366 | 366 | let currentIndexKey = keyCurrentIndex(assetId) | |
367 | 367 | let currentIndex = valueOrErrorMessage(getInteger(currentIndexKey), wrapErr("voting does not exist")) | |
368 | 368 | let voteKey = keyVote(assetId, currentIndex, i.caller) | |
369 | 369 | let lastVote = valueOrErrorMessage(getString(voteKey), wrapErr("you have not voted")) | |
370 | 370 | let lastVoteParts = split(lastVote, separator) | |
371 | 371 | let inFavor = lastVoteParts[1] | |
372 | 372 | let gwxAmount = parseIntValue(lastVoteParts[2]) | |
373 | 373 | let votingInfo = votingExistChecks(assetId, currentIndex) | |
374 | 374 | if ((votingInfo == votingInfo)) | |
375 | 375 | then { | |
376 | 376 | let checks = [if (if ((inFavor == "true")) | |
377 | 377 | then true | |
378 | 378 | else (inFavor == "false")) | |
379 | 379 | then true | |
380 | 380 | else throwErr("invalid vote")] | |
381 | 381 | if ((checks == checks)) | |
382 | 382 | then { | |
383 | 383 | let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found")) | |
384 | 384 | let votingInfoParts = getVotingInfoParts(votingInfoStr) | |
385 | 385 | let votesFor = votingInfoParts._9 | |
386 | 386 | let votesAgainst = votingInfoParts._10 | |
387 | 387 | let $t01534915510 = if ((inFavor == "true")) | |
388 | 388 | then $Tuple2((votesFor - gwxAmount), votesAgainst) | |
389 | 389 | else $Tuple2(votesFor, (votesAgainst - gwxAmount)) | |
390 | 390 | let newVotesFor = $t01534915510._1 | |
391 | 391 | let newVotesAgainst = $t01534915510._2 | |
392 | 392 | let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, votingInfoParts._5, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, newVotesFor, newVotesAgainst) | |
393 | 393 | [StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue), DeleteEntry(voteKey), DeleteEntry(keyVotingReward(i.caller, assetId, currentIndex))] | |
394 | 394 | } | |
395 | 395 | else throw("Strict value is not equal to itself.") | |
396 | 396 | } | |
397 | 397 | else throw("Strict value is not equal to itself.") | |
398 | 398 | } | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | ||
402 | 402 | @Callable(i) | |
403 | 403 | func finalize (assetId) = { | |
404 | 404 | let currentIndexKey = keyCurrentIndex(assetId) | |
405 | 405 | let currentIndex = valueOrElse(getInteger(currentIndexKey), 0) | |
406 | 406 | let votingThresholdAdd = valueOrErrorMessage(getInteger(keyVotingThresholdAdd), wrapErr("votingThresholdAdd not set")) | |
407 | 407 | let votingThresholdRemove = valueOrErrorMessage(getInteger(keyVotingThresholdRemove), wrapErr("votingThresholdRemove not set")) | |
408 | 408 | let votingInfoStr = valueOrErrorMessage(getString(keyVotingInfo(assetId, currentIndex)), wrapErr("voting info not found")) | |
409 | 409 | let votingInfoParts = getVotingInfoParts(votingInfoStr) | |
410 | 410 | let votingType = votingInfoParts._4 | |
411 | 411 | let status = votingInfoParts._5 | |
412 | 412 | let votingEndHeight = votingInfoParts._7 | |
413 | 413 | let votingQuorum = votingInfoParts._8 | |
414 | 414 | let votesFor = votingInfoParts._9 | |
415 | 415 | let votesAgainst = votingInfoParts._10 | |
416 | 416 | let checks = [if ((status == statusInProgress)) | |
417 | 417 | then true | |
418 | 418 | else throwErr("voting not in progress"), if ((height >= votingEndHeight)) | |
419 | 419 | then true | |
420 | 420 | else throwErr("voting not finished"), if (isDefined(getString(keyAssetImage(assetId)))) | |
421 | 421 | then true | |
422 | 422 | else throwErr("asset image not set")] | |
423 | 423 | if ((checks == checks)) | |
424 | 424 | then { | |
425 | 425 | let votingAccepted = if (if (((votesFor + votesAgainst) >= votingQuorum)) | |
426 | 426 | then (votesFor > votesAgainst) | |
427 | 427 | else false) | |
428 | 428 | then true | |
429 | 429 | else false | |
430 | 430 | let newStatus = if (votingAccepted) | |
431 | 431 | then statusAccepted | |
432 | 432 | else statusRejected | |
433 | 433 | let assetImage = getStringValue(keyAssetImage(assetId)) | |
434 | 434 | let isVotingAccepted = if (votingAccepted) | |
435 | 435 | then { | |
436 | 436 | let votingAcceptedInvokes = if ((votingType == "verification")) | |
437 | 437 | then invoke(assetsStoreContract, "createOrUpdate", [assetId, assetImage, true], nil) | |
438 | - | else invoke(assetsStoreContract, "setVerified", [assetId, false], nil) | |
438 | + | else [invoke(assetsStoreContract, "setVerified", [assetId, false], nil), invoke(assetsStoreContract, "onEliminate", [assetId], nil)] | |
439 | 439 | votingAcceptedInvokes | |
440 | 440 | } | |
441 | 441 | else nil | |
442 | 442 | if ((isVotingAccepted == isVotingAccepted)) | |
443 | 443 | then { | |
444 | 444 | let newVotingInfoValue = votingInfoValue(votingInfoParts._1, votingInfoParts._2, votingInfoParts._3, votingInfoParts._4, newStatus, votingInfoParts._6, votingInfoParts._7, votingInfoParts._8, votingInfoParts._9, votingInfoParts._10) | |
445 | 445 | let finalizeCallRewardAmount = getIntegerValue(keyFinalizeCallRewardAmount) | |
446 | 446 | let suggestIssuerAddress = addressFromStringValue(getStringValue(keySuggestIssuer(assetId, currentIndex))) | |
447 | 447 | let votingRewardAssetIdOption = getString(keyVotingRewardAssetId(assetId, currentIndex)) | |
448 | 448 | let totalVotingRewardOption = getInteger(keyTotalVotingReward(assetId, currentIndex)) | |
449 | 449 | let returnRewardActions = if (if (if (votingAccepted) | |
450 | 450 | then true | |
451 | 451 | else (votingRewardAssetIdOption == unit)) | |
452 | 452 | then true | |
453 | 453 | else (totalVotingRewardOption == unit)) | |
454 | 454 | then nil | |
455 | 455 | else [ScriptTransfer(suggestIssuerAddress, value(totalVotingRewardOption), parseAssetId(value(votingRewardAssetIdOption)))] | |
456 | 456 | ([StringEntry(keyVotingInfo(assetId, currentIndex), newVotingInfoValue), ScriptTransfer(i.caller, finalizeCallRewardAmount, wxAssetId)] ++ returnRewardActions) | |
457 | 457 | } | |
458 | 458 | else throw("Strict value is not equal to itself.") | |
459 | 459 | } | |
460 | 460 | else throw("Strict value is not equal to itself.") | |
461 | 461 | } | |
462 | 462 | ||
463 | 463 | ||
464 | 464 | ||
465 | 465 | @Callable(i) | |
466 | 466 | func claimREADONLY (assetId,index,userAddressStr) = { | |
467 | 467 | let userAddress = valueOrErrorMessage(addressFromString(userAddressStr), wrapErr("invalid address")) | |
468 | 468 | let votingRewardAssetIdStr = getString(keyVotingRewardAssetId(assetId, index)) | |
469 | 469 | let rewardAmount = if (isDefined(votingRewardAssetIdStr)) | |
470 | 470 | then calculateReward(userAddress, assetId, index)._1 | |
471 | 471 | else 0 | |
472 | 472 | $Tuple2(nil, rewardAmount) | |
473 | 473 | } | |
474 | 474 | ||
475 | 475 | ||
476 | 476 | ||
477 | 477 | @Callable(i) | |
478 | 478 | func claim (assetId,index) = { | |
479 | 479 | let callerAddress = i.caller | |
480 | 480 | let claimHistoryKey = keyClaimHistory(callerAddress, assetId, index) | |
481 | 481 | let claimHistory = getInteger(claimHistoryKey) | |
482 | 482 | let checks = [if ((claimHistory == unit)) | |
483 | 483 | then true | |
484 | 484 | else throwErr("already claimed")] | |
485 | 485 | if ((checks == checks)) | |
486 | 486 | then { | |
487 | - | let $ | |
488 | - | let rewardAmount = $ | |
489 | - | let canClaim = $ | |
487 | + | let $t01960019677 = calculateReward(callerAddress, assetId, index) | |
488 | + | let rewardAmount = $t01960019677._1 | |
489 | + | let canClaim = $t01960019677._2 | |
490 | 490 | if (!(canClaim)) | |
491 | 491 | then throwErr("nothing to claim") | |
492 | 492 | else { | |
493 | 493 | let votingRewardAssetIdStr = getString(keyVotingRewardAssetId(assetId, index)) | |
494 | 494 | let rewardAction = if (isDefined(votingRewardAssetIdStr)) | |
495 | 495 | then { | |
496 | 496 | let votingRewardAssetId = fromBase58String(value(votingRewardAssetIdStr)) | |
497 | 497 | [ScriptTransfer(callerAddress, rewardAmount, votingRewardAssetId), IntegerEntry(claimHistoryKey, rewardAmount), DeleteEntry(keyVotingReward(callerAddress, assetId, index))] | |
498 | 498 | } | |
499 | 499 | else throwErr("nothing to claim") | |
500 | 500 | rewardAction | |
501 | 501 | } | |
502 | 502 | } | |
503 | 503 | else throw("Strict value is not equal to itself.") | |
504 | 504 | } | |
505 | 505 | ||
506 | 506 | ||
507 | 507 | @Verifier(tx) | |
508 | 508 | func verify () = { | |
509 | 509 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
510 | 510 | case pk: ByteVector => | |
511 | 511 | pk | |
512 | 512 | case _: Unit => | |
513 | 513 | tx.senderPublicKey | |
514 | 514 | case _ => | |
515 | 515 | throw("Match error") | |
516 | 516 | } | |
517 | 517 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
518 | 518 | } | |
519 | 519 |
github/deemru/w8io/169f3d6 64.15 ms ◑