tx · DpKsZzT4vJhy2oahk5SHHU4LYS24oVaVRkrTdz6sKHLG 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T: -0.01400000 Waves 2022.05.12 11:16 [2048207] smart account 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T > SELF 0.00000000 Waves
{ "type": 13, "id": "DpKsZzT4vJhy2oahk5SHHU4LYS24oVaVRkrTdz6sKHLG", "fee": 1400000, "feeAssetId": null, "timestamp": 1652343380190, "version": 1, "sender": "3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T", "senderPublicKey": "7iXEgsFNsnbLZ3ca4tmz8jffnyxMu9keuBV6CuQPJLuA", "proofs": [ "5B5dQSVdXqzdv5B3nyuhPw6SBghS2t5R8jBWEAo3LGBQNNBj4Fzw1qj1Q8tZofXyeP3na9z9Dy12vSCBxB5tMrSg" ], "script": "base64:AAIFAAAAAAAAADQIAhILCgkICAgIAQgBCAESBAoCCAgSBQoDCAgEEgQKAggIEgMKAQESBAoCCAgSAwoBCBIAAAAAHAAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAAMa2V5RmVlQW1vdW50CQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAADZmVlBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAAOa2V5VXNkbkFzc2V0SWQJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAt1c2RuQXNzZXRJZAUAAAADbmlsBQAAAAlzZXBhcmF0b3IAAAAADmtleUVwb2NoTGVuZ3RoCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAALZXBvY2hMZW5ndGgFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAABFrZXlGaW5hbGl6ZVJld2FyZAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAADmZpbmFsaXplUmV3YXJkBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAAMa2V5V3hBc3NldElkCQAE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kAAAAAAAACBQAAAAVoYXNQTQUAAAAFaGFzUE0EAAAAB2NoZWNrUE0DCQAAAAAAAAIIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkBAAAABXZhbHVlAAAAAQUAAAACcG0GCQAAAgAAAAECAAAAG3lvdSBhcmUgbm90IHBlbmRpbmcgbWFuYWdlcgMJAAAAAAAAAgUAAAAHY2hlY2tQTQUAAAAHY2hlY2tQTQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAJAAJYAAAAAQkBAAAABXZhbHVlAAAAAQUAAAACcG0JAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V53/2P4g==", "chainId": 84, "height": 2048207, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EMY3noiCERkeoHPvN2aneYMCDo5RXpxNNbLDchkTnzxr Next: GzeGrLMgzM9o1KRvP8fxuWx7gdsjZAzjDuy8KbiEM2qF Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let keyUsdnAssetId = makeString(["%s", "usdnAssetId"], separator) | |
9 | 9 | ||
10 | - | let | |
10 | + | let keyEpochLength = makeString(["%s", "epochLength"], separator) | |
11 | 11 | ||
12 | 12 | let keyFinalizeReward = makeString(["%s", "finalizeReward"], separator) | |
13 | 13 | ||
27 | 27 | func keyInListAssetId (amountAssetId,priceAssetId) = makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator) | |
28 | 28 | ||
29 | 29 | ||
30 | - | func keyStartHeight (amountAssetId,priceAssetId) = makeString(["%s%s%s", "startHeight", amountAssetId, priceAssetId], separator) | |
30 | + | func keyStartHeight (amountAssetId,priceAssetId,suggestIndex) = makeString(["%s%s%s", "startHeight", amountAssetId, priceAssetId, toString(suggestIndex)], separator) | |
31 | 31 | ||
32 | 32 | ||
33 | - | func keyVotingResult (amountAssetId,priceAssetId) = makeString(["%s%s%s", "votingResult", amountAssetId, priceAssetId], separator) | |
33 | + | func keyVotingResult (amountAssetId,priceAssetId,suggestIndex) = makeString(["%s%s%s", "votingResult", amountAssetId, priceAssetId, toString(suggestIndex)], separator) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func totalVotes (totalYes,totalNo) = makeString(["%d%d", totalYes, totalNo], separator) | |
37 | 37 | ||
38 | 38 | ||
39 | - | func keyVote (amountAssetId,priceAssetId,voterAddress) = makeString(["%s%s%s%s", "vote", amountAssetId, priceAssetId, voterAddress], separator) | |
39 | + | func keyVote (amountAssetId,priceAssetId,suggestIndex,voterAddress) = makeString(["%s%s%s%s", "vote", amountAssetId, priceAssetId, toString(suggestIndex), voterAddress], separator) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func keyVoteValue (gwxAmount,vote) = { | |
45 | 45 | else makeString(["%d%s", gwxAmount, "no"], separator) | |
46 | 46 | key | |
47 | 47 | } | |
48 | + | ||
49 | + | ||
50 | + | func keyAssetsSuggestIndex (amountAssetId,priceAssetId) = makeString(["%s%s%s", "index", amountAssetId, priceAssetId], separator) | |
48 | 51 | ||
49 | 52 | ||
50 | 53 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
59 | 62 | ||
60 | 63 | let boostingContract = addressFromStringValue(getStringOrFail(keyBoostingContract)) | |
61 | 64 | ||
62 | - | let | |
65 | + | let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract)) | |
63 | 66 | ||
64 | 67 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
65 | 68 | case s: String => | |
128 | 131 | then true | |
129 | 132 | else throw("Invalid USDN asset ID")] | |
130 | 133 | if ((checks == checks)) | |
131 | - | then $Tuple2([StringEntry(keyAssetsStoreContract, assetsStoreContractPrm), StringEntry(keyuserPoolContract, userPoolContractPrm), StringEntry(keyEmissionContract, emissionContractPrm), IntegerEntry(keyFeeAmount, feeAmountPrm), IntegerEntry( | |
134 | + | then $Tuple2([StringEntry(keyAssetsStoreContract, assetsStoreContractPrm), StringEntry(keyuserPoolContract, userPoolContractPrm), StringEntry(keyEmissionContract, emissionContractPrm), IntegerEntry(keyFeeAmount, feeAmountPrm), IntegerEntry(keyEpochLength, votingDurationPrm), IntegerEntry(keyFinalizeReward, finalizeRewardPrm), StringEntry(keyWxAssetId, wxAssetIdPrm), StringEntry(keyUsdnAssetId, usdnAssetIdPrm), StringEntry(keyBoostingContract, boostingContractPrm)], unit) | |
132 | 135 | else throw("Strict value is not equal to itself.") | |
133 | 136 | } | |
134 | 137 | ||
163 | 166 | } | |
164 | 167 | if ((ensureActive == ensureActive)) | |
165 | 168 | then { | |
166 | - | let ensureAmountAssetVerified = match invoke( | |
169 | + | let ensureAmountAssetVerified = match invoke(assetsStoreContract, "isVerifiedREADONLY", [amountAssetId], nil) { | |
167 | 170 | case b: Boolean => | |
168 | 171 | b | |
169 | 172 | case _ => | |
173 | 176 | then { | |
174 | 177 | let burnFeeInv = invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)]) | |
175 | 178 | if ((burnFeeInv == burnFeeInv)) | |
176 | - | then [BooleanEntry(keyInListAssetId(amountAssetId, priceAssetId), true), IntegerEntry(keyStartHeight(amountAssetId, priceAssetId), height), StringEntry(keyVotingResult(amountAssetId, priceAssetId), totalVotes("0", "0"))] | |
179 | + | then { | |
180 | + | let newSuggestIndex = match getInteger(keyAssetsSuggestIndex(amountAssetId, priceAssetId)) { | |
181 | + | case int: Int => | |
182 | + | (int + 1) | |
183 | + | case _ => | |
184 | + | 0 | |
185 | + | } | |
186 | + | $Tuple2([BooleanEntry(keyInListAssetId(amountAssetId, priceAssetId), true), IntegerEntry(keyStartHeight(amountAssetId, priceAssetId, newSuggestIndex), height), StringEntry(keyVotingResult(amountAssetId, priceAssetId, newSuggestIndex), totalVotes("0", "0")), IntegerEntry(keyAssetsSuggestIndex(amountAssetId, priceAssetId), newSuggestIndex)], unit) | |
187 | + | } | |
177 | 188 | else throw("Strict value is not equal to itself.") | |
178 | 189 | } | |
179 | 190 | else throw("Strict value is not equal to itself.") | |
187 | 198 | ||
188 | 199 | @Callable(i) | |
189 | 200 | func vote (amountAssetId,priceAssetId,inFavor) = { | |
190 | - | let votingFinishHeight = (value(getInteger(keyStartHeight(amountAssetId, priceAssetId))) + value(getInteger(keyVotingDuration))) | |
191 | - | let checks = [if ((getString(keyVote(amountAssetId, priceAssetId, toString(i.caller))) == unit)) | |
201 | + | let suggestIndex = value(getInteger(keyAssetsSuggestIndex(amountAssetId, priceAssetId))) | |
202 | + | let votingFinishHeight = (value(getInteger(keyStartHeight(amountAssetId, priceAssetId, suggestIndex))) + value(getInteger(keyEpochLength))) | |
203 | + | let checks = [if ((getString(keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller))) == unit)) | |
192 | 204 | then true | |
193 | 205 | else throw("you already voted"), if (valueOrElse(getBoolean(keyInListAssetId(amountAssetId, priceAssetId)), false)) | |
194 | 206 | then true | |
197 | 209 | else throw("too late to vote")] | |
198 | 210 | if ((checks == checks)) | |
199 | 211 | then { | |
200 | - | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId))), separator) | |
212 | + | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex))), separator) | |
201 | 213 | let positiveVotes = votingResult[1] | |
202 | 214 | let negativeVotes = votingResult[2] | |
203 | 215 | let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [toString(i.caller), votingFinishHeight], nil) | |
209 | 221 | let entries = if (inFavor) | |
210 | 222 | then { | |
211 | 223 | let newPositiveVotes = (parseIntValue(positiveVotes) + asInt(gwxAmount)) | |
212 | - | let yesVoteKey = keyVote(amountAssetId, priceAssetId, toString(i.caller)) | |
224 | + | let yesVoteKey = keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller)) | |
213 | 225 | let yesVoteValue = keyVoteValue(toString(asInt(gwxAmount)), inFavor) | |
214 | - | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId), totalVotes(toString(newPositiveVotes), negativeVotes)), StringEntry(yesVoteKey, yesVoteValue)], unit) | |
226 | + | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(toString(newPositiveVotes), negativeVotes)), StringEntry(yesVoteKey, yesVoteValue)], unit) | |
215 | 227 | } | |
216 | 228 | else { | |
217 | 229 | let newNegativeVotes = (parseIntValue(negativeVotes) + asInt(gwxAmount)) | |
218 | - | let noVoteKey = keyVote(amountAssetId, priceAssetId, toString(i.caller)) | |
230 | + | let noVoteKey = keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller)) | |
219 | 231 | let noVoteValue = keyVoteValue(toString(asInt(gwxAmount)), inFavor) | |
220 | - | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId), totalVotes(positiveVotes, toString(newNegativeVotes))), StringEntry(noVoteKey, noVoteValue)], unit) | |
232 | + | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(positiveVotes, toString(newNegativeVotes))), StringEntry(noVoteKey, noVoteValue)], unit) | |
221 | 233 | } | |
222 | 234 | entries | |
223 | 235 | } | |
230 | 242 | ||
231 | 243 | @Callable(i) | |
232 | 244 | func cancelVote (amountAssetId,priceAssetId) = { | |
233 | - | let checks = [if (isDefined(getString(keyVotingResult(amountAssetId, priceAssetId)))) | |
245 | + | let suggestIndex = value(getInteger(keyAssetsSuggestIndex(amountAssetId, priceAssetId))) | |
246 | + | let checks = [if (isDefined(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex)))) | |
234 | 247 | then true | |
235 | 248 | else throw("no vote for assets pair")] | |
236 | 249 | if ((checks == checks)) | |
237 | 250 | then { | |
238 | - | let vote = split(value(getString(keyVote(amountAssetId, priceAssetId, toString(i.caller)))), separator) | |
251 | + | let vote = split(value(getString(keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller)))), separator) | |
239 | 252 | let voteValue = vote[1] | |
240 | 253 | let voteType = vote[2] | |
241 | - | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId))), separator) | |
254 | + | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex))), separator) | |
242 | 255 | let positiveVotes = votingResult[1] | |
243 | 256 | let negativeVotes = votingResult[2] | |
244 | 257 | let actions = if ((voteType == "yes")) | |
245 | 258 | then { | |
246 | 259 | let newPositiveVotes = (parseIntValue(positiveVotes) - parseIntValue(voteValue)) | |
247 | - | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId), totalVotes(toString(newPositiveVotes), negativeVotes)), DeleteEntry(keyVote(amountAssetId, priceAssetId, toString(i.caller)))], unit) | |
260 | + | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(toString(newPositiveVotes), negativeVotes)), DeleteEntry(keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller)))], unit) | |
248 | 261 | } | |
249 | 262 | else { | |
250 | 263 | let newNegativeVotes = (parseIntValue(negativeVotes) - parseIntValue(voteValue)) | |
251 | - | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId), totalVotes(positiveVotes, toString(newNegativeVotes))), DeleteEntry(keyVote(amountAssetId, priceAssetId, toString(i.caller)))], unit) | |
264 | + | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(positiveVotes, toString(newNegativeVotes))), DeleteEntry(keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller)))], unit) | |
252 | 265 | } | |
253 | 266 | actions | |
254 | 267 | } | |
269 | 282 | ||
270 | 283 | @Callable(i) | |
271 | 284 | func finalize (amountAssetId,priceAssetId) = { | |
272 | - | let votingFinishHeight = (value(getInteger(keyStartHeight(amountAssetId, priceAssetId))) + value(getInteger(keyVotingDuration))) | |
285 | + | let suggestIndex = value(getInteger(keyAssetsSuggestIndex(amountAssetId, priceAssetId))) | |
286 | + | let votingFinishHeight = (value(getInteger(keyStartHeight(amountAssetId, priceAssetId, suggestIndex))) + value(getInteger(keyEpochLength))) | |
273 | 287 | let checks = [if (isDefined(getBoolean(keyInListAssetId(amountAssetId, priceAssetId)))) | |
274 | 288 | then true | |
275 | 289 | else throw("no assets pair"), if ((height >= votingFinishHeight)) | |
277 | 291 | else throw("insufficient height for completion")] | |
278 | 292 | if ((checks == checks)) | |
279 | 293 | then { | |
280 | - | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId))), separator) | |
294 | + | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex))), separator) | |
281 | 295 | let positiveVotes = parseIntValue(votingResult[1]) | |
282 | 296 | let negativeVotes = parseIntValue(votingResult[2]) | |
283 | 297 | let actions = if ((positiveVotes > negativeVotes)) | |
284 | 298 | then { | |
285 | - | let res = invoke( | |
299 | + | let res = invoke(assetsStoreContract, "setPoolLabels", [amountAssetId, priceAssetId, "WX_EMISSION"], nil) | |
286 | 300 | if ((res == res)) | |
287 | 301 | then $Tuple2([DeleteEntry(keyInListAssetId(amountAssetId, priceAssetId))], unit) | |
288 | 302 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let separator = "__" | |
5 | 5 | ||
6 | 6 | let keyFeeAmount = makeString(["%s", "fee"], separator) | |
7 | 7 | ||
8 | 8 | let keyUsdnAssetId = makeString(["%s", "usdnAssetId"], separator) | |
9 | 9 | ||
10 | - | let | |
10 | + | let keyEpochLength = makeString(["%s", "epochLength"], separator) | |
11 | 11 | ||
12 | 12 | let keyFinalizeReward = makeString(["%s", "finalizeReward"], separator) | |
13 | 13 | ||
14 | 14 | let keyWxAssetId = makeString(["%s", "wxAssetId"], separator) | |
15 | 15 | ||
16 | 16 | let keyAssetsStoreContract = makeString(["%s", "assetsStoreContract"], separator) | |
17 | 17 | ||
18 | 18 | let keyuserPoolContract = makeString(["%s", "userPoolContract"], separator) | |
19 | 19 | ||
20 | 20 | let keyEmissionContract = makeString(["%s", "emissionContract"], separator) | |
21 | 21 | ||
22 | 22 | let keyBoostingContract = makeString(["%s", "boostingContract"], separator) | |
23 | 23 | ||
24 | 24 | func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (key + " is not defined")) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func keyInListAssetId (amountAssetId,priceAssetId) = makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator) | |
28 | 28 | ||
29 | 29 | ||
30 | - | func keyStartHeight (amountAssetId,priceAssetId) = makeString(["%s%s%s", "startHeight", amountAssetId, priceAssetId], separator) | |
30 | + | func keyStartHeight (amountAssetId,priceAssetId,suggestIndex) = makeString(["%s%s%s", "startHeight", amountAssetId, priceAssetId, toString(suggestIndex)], separator) | |
31 | 31 | ||
32 | 32 | ||
33 | - | func keyVotingResult (amountAssetId,priceAssetId) = makeString(["%s%s%s", "votingResult", amountAssetId, priceAssetId], separator) | |
33 | + | func keyVotingResult (amountAssetId,priceAssetId,suggestIndex) = makeString(["%s%s%s", "votingResult", amountAssetId, priceAssetId, toString(suggestIndex)], separator) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func totalVotes (totalYes,totalNo) = makeString(["%d%d", totalYes, totalNo], separator) | |
37 | 37 | ||
38 | 38 | ||
39 | - | func keyVote (amountAssetId,priceAssetId,voterAddress) = makeString(["%s%s%s%s", "vote", amountAssetId, priceAssetId, voterAddress], separator) | |
39 | + | func keyVote (amountAssetId,priceAssetId,suggestIndex,voterAddress) = makeString(["%s%s%s%s", "vote", amountAssetId, priceAssetId, toString(suggestIndex), voterAddress], separator) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func keyVoteValue (gwxAmount,vote) = { | |
43 | 43 | let key = if (vote) | |
44 | 44 | then makeString(["%d%s", gwxAmount, "yes"], separator) | |
45 | 45 | else makeString(["%d%s", gwxAmount, "no"], separator) | |
46 | 46 | key | |
47 | 47 | } | |
48 | + | ||
49 | + | ||
50 | + | func keyAssetsSuggestIndex (amountAssetId,priceAssetId) = makeString(["%s%s%s", "index", amountAssetId, priceAssetId], separator) | |
48 | 51 | ||
49 | 52 | ||
50 | 53 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
51 | 54 | ||
52 | 55 | ||
53 | 56 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
54 | 57 | ||
55 | 58 | ||
56 | 59 | let emissionContract = addressFromStringValue(getStringOrFail(keyEmissionContract)) | |
57 | 60 | ||
58 | 61 | let userPoolContract = addressFromStringValue(getStringOrFail(keyuserPoolContract)) | |
59 | 62 | ||
60 | 63 | let boostingContract = addressFromStringValue(getStringOrFail(keyBoostingContract)) | |
61 | 64 | ||
62 | - | let | |
65 | + | let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract)) | |
63 | 66 | ||
64 | 67 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
65 | 68 | case s: String => | |
66 | 69 | fromBase58String(s) | |
67 | 70 | case _: Unit => | |
68 | 71 | unit | |
69 | 72 | case _ => | |
70 | 73 | throw("Match error") | |
71 | 74 | } | |
72 | 75 | ||
73 | 76 | ||
74 | 77 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
75 | 78 | case s: String => | |
76 | 79 | fromBase58String(s) | |
77 | 80 | case _: Unit => | |
78 | 81 | unit | |
79 | 82 | case _ => | |
80 | 83 | throw("Match error") | |
81 | 84 | } | |
82 | 85 | ||
83 | 86 | ||
84 | 87 | func mustManager (i) = { | |
85 | 88 | let pd = throw("permission denied") | |
86 | 89 | match managerPublicKeyOrUnit() { | |
87 | 90 | case pk: ByteVector => | |
88 | 91 | if ((i.callerPublicKey == pk)) | |
89 | 92 | then true | |
90 | 93 | else pd | |
91 | 94 | case _: Unit => | |
92 | 95 | if ((i.caller == this)) | |
93 | 96 | then true | |
94 | 97 | else pd | |
95 | 98 | case _ => | |
96 | 99 | throw("Match error") | |
97 | 100 | } | |
98 | 101 | } | |
99 | 102 | ||
100 | 103 | ||
101 | 104 | func asInt (val) = match val { | |
102 | 105 | case valInt: Int => | |
103 | 106 | valInt | |
104 | 107 | case _ => | |
105 | 108 | throw("failed to cast into Integer") | |
106 | 109 | } | |
107 | 110 | ||
108 | 111 | ||
109 | 112 | @Callable(i) | |
110 | 113 | func constructor (assetsStoreContractPrm,userPoolContractPrm,boostingContractPrm,emissionContractPrm,feeAmountPrm,wxAssetIdPrm,votingDurationPrm,usdnAssetIdPrm,finalizeRewardPrm) = { | |
111 | 114 | let checks = [mustManager(i), if (isDefined(addressFromString(assetsStoreContractPrm))) | |
112 | 115 | then true | |
113 | 116 | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(boostingContractPrm))) | |
114 | 117 | then true | |
115 | 118 | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(userPoolContractPrm))) | |
116 | 119 | then true | |
117 | 120 | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString(emissionContractPrm))) | |
118 | 121 | then true | |
119 | 122 | else throw("Invalid emission contract address"), if ((feeAmountPrm >= 0)) | |
120 | 123 | then true | |
121 | 124 | else throw("Invalid fee amount"), if ((votingDurationPrm > 0)) | |
122 | 125 | then true | |
123 | 126 | else throw("Invalid voting duration"), if ((finalizeRewardPrm > 0)) | |
124 | 127 | then true | |
125 | 128 | else throw("Invalid finalize reward"), if (isDefined(assetInfo(fromBase58String(wxAssetIdPrm)))) | |
126 | 129 | then true | |
127 | 130 | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String(usdnAssetIdPrm)))) | |
128 | 131 | then true | |
129 | 132 | else throw("Invalid USDN asset ID")] | |
130 | 133 | if ((checks == checks)) | |
131 | - | then $Tuple2([StringEntry(keyAssetsStoreContract, assetsStoreContractPrm), StringEntry(keyuserPoolContract, userPoolContractPrm), StringEntry(keyEmissionContract, emissionContractPrm), IntegerEntry(keyFeeAmount, feeAmountPrm), IntegerEntry( | |
134 | + | then $Tuple2([StringEntry(keyAssetsStoreContract, assetsStoreContractPrm), StringEntry(keyuserPoolContract, userPoolContractPrm), StringEntry(keyEmissionContract, emissionContractPrm), IntegerEntry(keyFeeAmount, feeAmountPrm), IntegerEntry(keyEpochLength, votingDurationPrm), IntegerEntry(keyFinalizeReward, finalizeRewardPrm), StringEntry(keyWxAssetId, wxAssetIdPrm), StringEntry(keyUsdnAssetId, usdnAssetIdPrm), StringEntry(keyBoostingContract, boostingContractPrm)], unit) | |
132 | 135 | else throw("Strict value is not equal to itself.") | |
133 | 136 | } | |
134 | 137 | ||
135 | 138 | ||
136 | 139 | ||
137 | 140 | @Callable(i) | |
138 | 141 | func suggest (amountAssetId,priceAssetId) = { | |
139 | 142 | let payment = value(i.payments[0]) | |
140 | 143 | let info = valueOrErrorMessage(assetInfo(fromBase58String(amountAssetId)), "invalid amountAssetId ID") | |
141 | 144 | let checks = [if ((info.issuer == i.caller)) | |
142 | 145 | then true | |
143 | 146 | else throw("asset can only be suggested by its issuer"), if ((info.scripted == false)) | |
144 | 147 | then true | |
145 | 148 | else throw("asset is smart"), if ((toBase58String(value(payment.assetId)) == value(getString(keyWxAssetId)))) | |
146 | 149 | then true | |
147 | 150 | else throw("invalid fee asset"), if ((payment.amount == value(getInteger(keyFeeAmount)))) | |
148 | 151 | then true | |
149 | 152 | else throw("invalid fee amount"), if ((priceAssetId == value(getString(keyUsdnAssetId)))) | |
150 | 153 | then true | |
151 | 154 | else throw("priceAssetId is not USDN"), if ((getBoolean(keyInListAssetId(amountAssetId, priceAssetId)) == unit)) | |
152 | 155 | then true | |
153 | 156 | else throw("already in voting list")] | |
154 | 157 | if ((checks == checks)) | |
155 | 158 | then { | |
156 | 159 | let ensureActive = match invoke(userPoolContract, "statusREADONLY", [amountAssetId, priceAssetId], nil) { | |
157 | 160 | case s: String => | |
158 | 161 | if ((s == "active")) | |
159 | 162 | then true | |
160 | 163 | else throw("user pool is not active") | |
161 | 164 | case _ => | |
162 | 165 | throw("user pool is not active") | |
163 | 166 | } | |
164 | 167 | if ((ensureActive == ensureActive)) | |
165 | 168 | then { | |
166 | - | let ensureAmountAssetVerified = match invoke( | |
169 | + | let ensureAmountAssetVerified = match invoke(assetsStoreContract, "isVerifiedREADONLY", [amountAssetId], nil) { | |
167 | 170 | case b: Boolean => | |
168 | 171 | b | |
169 | 172 | case _ => | |
170 | 173 | throw("asset is not verified") | |
171 | 174 | } | |
172 | 175 | if ((ensureAmountAssetVerified == ensureAmountAssetVerified)) | |
173 | 176 | then { | |
174 | 177 | let burnFeeInv = invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)]) | |
175 | 178 | if ((burnFeeInv == burnFeeInv)) | |
176 | - | then [BooleanEntry(keyInListAssetId(amountAssetId, priceAssetId), true), IntegerEntry(keyStartHeight(amountAssetId, priceAssetId), height), StringEntry(keyVotingResult(amountAssetId, priceAssetId), totalVotes("0", "0"))] | |
179 | + | then { | |
180 | + | let newSuggestIndex = match getInteger(keyAssetsSuggestIndex(amountAssetId, priceAssetId)) { | |
181 | + | case int: Int => | |
182 | + | (int + 1) | |
183 | + | case _ => | |
184 | + | 0 | |
185 | + | } | |
186 | + | $Tuple2([BooleanEntry(keyInListAssetId(amountAssetId, priceAssetId), true), IntegerEntry(keyStartHeight(amountAssetId, priceAssetId, newSuggestIndex), height), StringEntry(keyVotingResult(amountAssetId, priceAssetId, newSuggestIndex), totalVotes("0", "0")), IntegerEntry(keyAssetsSuggestIndex(amountAssetId, priceAssetId), newSuggestIndex)], unit) | |
187 | + | } | |
177 | 188 | else throw("Strict value is not equal to itself.") | |
178 | 189 | } | |
179 | 190 | else throw("Strict value is not equal to itself.") | |
180 | 191 | } | |
181 | 192 | else throw("Strict value is not equal to itself.") | |
182 | 193 | } | |
183 | 194 | else throw("Strict value is not equal to itself.") | |
184 | 195 | } | |
185 | 196 | ||
186 | 197 | ||
187 | 198 | ||
188 | 199 | @Callable(i) | |
189 | 200 | func vote (amountAssetId,priceAssetId,inFavor) = { | |
190 | - | let votingFinishHeight = (value(getInteger(keyStartHeight(amountAssetId, priceAssetId))) + value(getInteger(keyVotingDuration))) | |
191 | - | let checks = [if ((getString(keyVote(amountAssetId, priceAssetId, toString(i.caller))) == unit)) | |
201 | + | let suggestIndex = value(getInteger(keyAssetsSuggestIndex(amountAssetId, priceAssetId))) | |
202 | + | let votingFinishHeight = (value(getInteger(keyStartHeight(amountAssetId, priceAssetId, suggestIndex))) + value(getInteger(keyEpochLength))) | |
203 | + | let checks = [if ((getString(keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller))) == unit)) | |
192 | 204 | then true | |
193 | 205 | else throw("you already voted"), if (valueOrElse(getBoolean(keyInListAssetId(amountAssetId, priceAssetId)), false)) | |
194 | 206 | then true | |
195 | 207 | else throw("the token isn't on the voting list"), if ((votingFinishHeight > height)) | |
196 | 208 | then true | |
197 | 209 | else throw("too late to vote")] | |
198 | 210 | if ((checks == checks)) | |
199 | 211 | then { | |
200 | - | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId))), separator) | |
212 | + | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex))), separator) | |
201 | 213 | let positiveVotes = votingResult[1] | |
202 | 214 | let negativeVotes = votingResult[2] | |
203 | 215 | let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [toString(i.caller), votingFinishHeight], nil) | |
204 | 216 | let notZero = if ((asInt(gwxAmount) > 0)) | |
205 | 217 | then true | |
206 | 218 | else throw("you don't have gwx") | |
207 | 219 | if ((notZero == notZero)) | |
208 | 220 | then { | |
209 | 221 | let entries = if (inFavor) | |
210 | 222 | then { | |
211 | 223 | let newPositiveVotes = (parseIntValue(positiveVotes) + asInt(gwxAmount)) | |
212 | - | let yesVoteKey = keyVote(amountAssetId, priceAssetId, toString(i.caller)) | |
224 | + | let yesVoteKey = keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller)) | |
213 | 225 | let yesVoteValue = keyVoteValue(toString(asInt(gwxAmount)), inFavor) | |
214 | - | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId), totalVotes(toString(newPositiveVotes), negativeVotes)), StringEntry(yesVoteKey, yesVoteValue)], unit) | |
226 | + | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(toString(newPositiveVotes), negativeVotes)), StringEntry(yesVoteKey, yesVoteValue)], unit) | |
215 | 227 | } | |
216 | 228 | else { | |
217 | 229 | let newNegativeVotes = (parseIntValue(negativeVotes) + asInt(gwxAmount)) | |
218 | - | let noVoteKey = keyVote(amountAssetId, priceAssetId, toString(i.caller)) | |
230 | + | let noVoteKey = keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller)) | |
219 | 231 | let noVoteValue = keyVoteValue(toString(asInt(gwxAmount)), inFavor) | |
220 | - | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId), totalVotes(positiveVotes, toString(newNegativeVotes))), StringEntry(noVoteKey, noVoteValue)], unit) | |
232 | + | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(positiveVotes, toString(newNegativeVotes))), StringEntry(noVoteKey, noVoteValue)], unit) | |
221 | 233 | } | |
222 | 234 | entries | |
223 | 235 | } | |
224 | 236 | else throw("Strict value is not equal to itself.") | |
225 | 237 | } | |
226 | 238 | else throw("Strict value is not equal to itself.") | |
227 | 239 | } | |
228 | 240 | ||
229 | 241 | ||
230 | 242 | ||
231 | 243 | @Callable(i) | |
232 | 244 | func cancelVote (amountAssetId,priceAssetId) = { | |
233 | - | let checks = [if (isDefined(getString(keyVotingResult(amountAssetId, priceAssetId)))) | |
245 | + | let suggestIndex = value(getInteger(keyAssetsSuggestIndex(amountAssetId, priceAssetId))) | |
246 | + | let checks = [if (isDefined(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex)))) | |
234 | 247 | then true | |
235 | 248 | else throw("no vote for assets pair")] | |
236 | 249 | if ((checks == checks)) | |
237 | 250 | then { | |
238 | - | let vote = split(value(getString(keyVote(amountAssetId, priceAssetId, toString(i.caller)))), separator) | |
251 | + | let vote = split(value(getString(keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller)))), separator) | |
239 | 252 | let voteValue = vote[1] | |
240 | 253 | let voteType = vote[2] | |
241 | - | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId))), separator) | |
254 | + | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex))), separator) | |
242 | 255 | let positiveVotes = votingResult[1] | |
243 | 256 | let negativeVotes = votingResult[2] | |
244 | 257 | let actions = if ((voteType == "yes")) | |
245 | 258 | then { | |
246 | 259 | let newPositiveVotes = (parseIntValue(positiveVotes) - parseIntValue(voteValue)) | |
247 | - | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId), totalVotes(toString(newPositiveVotes), negativeVotes)), DeleteEntry(keyVote(amountAssetId, priceAssetId, toString(i.caller)))], unit) | |
260 | + | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(toString(newPositiveVotes), negativeVotes)), DeleteEntry(keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller)))], unit) | |
248 | 261 | } | |
249 | 262 | else { | |
250 | 263 | let newNegativeVotes = (parseIntValue(negativeVotes) - parseIntValue(voteValue)) | |
251 | - | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId), totalVotes(positiveVotes, toString(newNegativeVotes))), DeleteEntry(keyVote(amountAssetId, priceAssetId, toString(i.caller)))], unit) | |
264 | + | $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(positiveVotes, toString(newNegativeVotes))), DeleteEntry(keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller)))], unit) | |
252 | 265 | } | |
253 | 266 | actions | |
254 | 267 | } | |
255 | 268 | else throw("Strict value is not equal to itself.") | |
256 | 269 | } | |
257 | 270 | ||
258 | 271 | ||
259 | 272 | ||
260 | 273 | @Callable(i) | |
261 | 274 | func setFee (newFee) = { | |
262 | 275 | let checks = [mustManager(i)] | |
263 | 276 | if ((checks == checks)) | |
264 | 277 | then [IntegerEntry(keyFeeAmount, newFee)] | |
265 | 278 | else throw("Strict value is not equal to itself.") | |
266 | 279 | } | |
267 | 280 | ||
268 | 281 | ||
269 | 282 | ||
270 | 283 | @Callable(i) | |
271 | 284 | func finalize (amountAssetId,priceAssetId) = { | |
272 | - | let votingFinishHeight = (value(getInteger(keyStartHeight(amountAssetId, priceAssetId))) + value(getInteger(keyVotingDuration))) | |
285 | + | let suggestIndex = value(getInteger(keyAssetsSuggestIndex(amountAssetId, priceAssetId))) | |
286 | + | let votingFinishHeight = (value(getInteger(keyStartHeight(amountAssetId, priceAssetId, suggestIndex))) + value(getInteger(keyEpochLength))) | |
273 | 287 | let checks = [if (isDefined(getBoolean(keyInListAssetId(amountAssetId, priceAssetId)))) | |
274 | 288 | then true | |
275 | 289 | else throw("no assets pair"), if ((height >= votingFinishHeight)) | |
276 | 290 | then true | |
277 | 291 | else throw("insufficient height for completion")] | |
278 | 292 | if ((checks == checks)) | |
279 | 293 | then { | |
280 | - | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId))), separator) | |
294 | + | let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex))), separator) | |
281 | 295 | let positiveVotes = parseIntValue(votingResult[1]) | |
282 | 296 | let negativeVotes = parseIntValue(votingResult[2]) | |
283 | 297 | let actions = if ((positiveVotes > negativeVotes)) | |
284 | 298 | then { | |
285 | - | let res = invoke( | |
299 | + | let res = invoke(assetsStoreContract, "setPoolLabels", [amountAssetId, priceAssetId, "WX_EMISSION"], nil) | |
286 | 300 | if ((res == res)) | |
287 | 301 | then $Tuple2([DeleteEntry(keyInListAssetId(amountAssetId, priceAssetId))], unit) | |
288 | 302 | else throw("Strict value is not equal to itself.") | |
289 | 303 | } | |
290 | 304 | else $Tuple2([DeleteEntry(keyInListAssetId(amountAssetId, priceAssetId))], unit) | |
291 | 305 | actions | |
292 | 306 | } | |
293 | 307 | else throw("Strict value is not equal to itself.") | |
294 | 308 | } | |
295 | 309 | ||
296 | 310 | ||
297 | 311 | ||
298 | 312 | @Callable(i) | |
299 | 313 | func setManager (pendingManagerPublicKey) = { | |
300 | 314 | let checkCaller = mustManager(i) | |
301 | 315 | if ((checkCaller == checkCaller)) | |
302 | 316 | then { | |
303 | 317 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
304 | 318 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
305 | 319 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
306 | 320 | else throw("Strict value is not equal to itself.") | |
307 | 321 | } | |
308 | 322 | else throw("Strict value is not equal to itself.") | |
309 | 323 | } | |
310 | 324 | ||
311 | 325 | ||
312 | 326 | ||
313 | 327 | @Callable(i) | |
314 | 328 | func confirmManager () = { | |
315 | 329 | let pm = pendingManagerPublicKeyOrUnit() | |
316 | 330 | let hasPM = if (isDefined(pm)) | |
317 | 331 | then true | |
318 | 332 | else throw("no pending manager") | |
319 | 333 | if ((hasPM == hasPM)) | |
320 | 334 | then { | |
321 | 335 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
322 | 336 | then true | |
323 | 337 | else throw("you are not pending manager") | |
324 | 338 | if ((checkPM == checkPM)) | |
325 | 339 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
326 | 340 | else throw("Strict value is not equal to itself.") | |
327 | 341 | } | |
328 | 342 | else throw("Strict value is not equal to itself.") | |
329 | 343 | } | |
330 | 344 | ||
331 | 345 | ||
332 | 346 | @Verifier(tx) | |
333 | 347 | func verify () = { | |
334 | 348 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
335 | 349 | case pk: ByteVector => | |
336 | 350 | pk | |
337 | 351 | case _: Unit => | |
338 | 352 | tx.senderPublicKey | |
339 | 353 | case _ => | |
340 | 354 | throw("Match error") | |
341 | 355 | } | |
342 | 356 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
343 | 357 | } | |
344 | 358 |
github/deemru/w8io/169f3d6 63.84 ms ◑