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