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