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