tx · 5DHqA3M2YdRrmdfsQpq33J9SEPAjaTbp5wQLUFoUQrem

3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh:  -0.01000000 Waves

2023.05.18 16:32 [2583460] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves

{ "type": 13, "id": "5DHqA3M2YdRrmdfsQpq33J9SEPAjaTbp5wQLUFoUQrem", "fee": 1000000, "feeAssetId": null, "timestamp": 1684416758290, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "q6oYP7LuyFrrX18GJQyEtUw2GapGuY24iYNhexhZbyexwDyPJoAcE5CeihHHj2fQCSRKr7UcCi4wCS4YA9AwPrU" ], "script": "base64:BgIbCAISBwoFCAgBAQESABIDCgEBEgASAwoBARIAHAAJc2VwYXJhdG9yAgJfXwAQY29udHJhY3RGaWxlbmFtZQIZdm90aW5nX2VtaXNzaW9uX3JhdGUucmlkZQAOa2V5RXBvY2hMZW5ndGgJALkJAgkAzAgCAgIlcwkAzAgCAgtlcG9jaExlbmd0aAUDbmlsBQlzZXBhcmF0b3IAE2tleUVtaXNzaW9uQ29udHJhY3QJALkJAgkAzAgCAgIlcwkAzAgCAhBlbWlzc2lvbkNvbnRyYWN0BQNuaWwFCXNlcGFyYXRvcgATa2V5Qm9vc3RpbmdDb250cmFjdAkAuQkCCQDMCAICAiVzCQDMCAICEGJvb3N0aW5nQ29udHJhY3QFA25pbAUJc2VwYXJhdG9yAAxrZXlUaHJlc2hvbGQJALkJAgkAzAgCAgIlcwkAzAgCAg92b3RpbmdUaHJlc2hvbGQFA25pbAUJc2VwYXJhdG9yAA9rZXlSYXRlUGVyQmxvY2sJALkJAgkAzAgCAgQlcyVzCQDMCAICDHJhdGVQZXJCbG9jawkAzAgCAgdjdXJyZW50BQNuaWwFCXNlcGFy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RlSW52b2tlCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQEOa2V5U3RhcnRIZWlnaHQABQZoZWlnaHQJAMwIAgkBC1N0cmluZ0VudHJ5AgkBD2tleVZvdGluZ1Jlc3VsdAAJAQp0b3RhbFZvdGVzAwIBMAIBMAIBMAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuANd5PrQ=", "height": 2583460, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7ZVgY8jEJDCALb44jGL7Varwv6yL21rwCsaATfF7SH6g Next: 5xyV5DreQwUrG6MptNFBGysfgzpq4U1WF4Bc4AhsAsjn Diff:
OldNewDifferences
3737 func totalVotes (totalIncrease,totalNone,totalDecrease) = makeString(["%d%d%d", totalIncrease, totalNone, totalDecrease], separator)
3838
3939
40-func keyVote (voterAddress) = makeString(["%s%s", "vote", voterAddress], separator)
40+func keyVote (voterAddress,startHeight) = makeString(["%s%s%d", "vote", voterAddress, toString(startHeight)], separator)
4141
4242
4343 func keyVoteValue (gwxAmount,vote) = {
147147
148148 @Callable(i)
149149 func vote (inFavor) = {
150- let votingFinishHeight = (value(getInteger(keyStartHeight())) + value(getInteger(keyEpochLength)))
150+ let startHeight = getIntegerValue(keyStartHeight())
151+ let votingFinishHeight = (startHeight + value(getInteger(keyEpochLength)))
151152 let checks = [if ((votingFinishHeight > height))
152153 then true
153154 else throwErr("too late to vote"), if (containsElement([1, 0, -1], inFavor))
161162 else throwErr("you don't have gwx")
162163 if ((notZero == notZero))
163164 then {
164- let vote = match getString(keyVote(toString(i.caller))) {
165+ let vote = match getString(keyVote(toString(i.caller), startHeight)) {
165166 case s: String =>
166167 let vote = split(s, separator)
167168 let voteValue = vote[1]
211212 let newNoneVotes = (parseIntValue(votesForCurrent) + asInt(gwxAmount))
212213 [votesForIncrease, toString(newNoneVotes), votesForDecrease]
213214 }
214- let voteKey = keyVote(toString(i.caller))
215+ let voteKey = keyVote(toString(i.caller), startHeight)
215216 let voteValue = keyVoteValue(toString(asInt(gwxAmount)), inFavor)
216217 $Tuple2([StringEntry(keyVotingResult(), totalVotes(newPositiveAndNegativeVotes[0], newPositiveAndNegativeVotes[1], newPositiveAndNegativeVotes[2])), StringEntry(voteKey, voteValue)], unit)
217218 }
226227
227228 @Callable(i)
228229 func cancelVote () = {
230+ let startHeight = getIntegerValue(keyStartHeight())
229231 let userAddress = if ((i.caller == this))
230232 then toString(i.originCaller)
231233 else toString(i.caller)
234236 else throwErr("no vote")]
235237 if ((checks == checks))
236238 then {
237- let vote = split(value(getString(keyVote(userAddress))), separator)
239+ let vote = split(value(getString(keyVote(userAddress, startHeight))), separator)
238240 let voteValue = vote[1]
239241 let voteType = vote[2]
240242 let votingResult = split(value(getString(keyVotingResult())), separator)
244246 let actions = if ((voteType == "increase"))
245247 then {
246248 let newIncreaseVotes = (parseIntValue(votesForIncrease) - parseIntValue(voteValue))
247- $Tuple2([StringEntry(keyVotingResult(), totalVotes(toString(newIncreaseVotes), votesForCurrent, votesForDecrease)), DeleteEntry(keyVote(userAddress))], unit)
249+[StringEntry(keyVotingResult(), totalVotes(toString(newIncreaseVotes), votesForCurrent, votesForDecrease))]
248250 }
249251 else if ((voteType == "decrease"))
250252 then {
251253 let newDecreaseVotes = (parseIntValue(votesForDecrease) - parseIntValue(voteValue))
252- $Tuple2([StringEntry(keyVotingResult(), totalVotes(votesForIncrease, votesForCurrent, toString(newDecreaseVotes))), DeleteEntry(keyVote(userAddress))], unit)
254+[StringEntry(keyVotingResult(), totalVotes(votesForIncrease, votesForCurrent, toString(newDecreaseVotes)))]
253255 }
254256 else {
255257 let newCurrentVotes = (parseIntValue(votesForCurrent) - parseIntValue(voteValue))
256- $Tuple2([StringEntry(keyVotingResult(), totalVotes(votesForIncrease, toString(newCurrentVotes), votesForDecrease)), DeleteEntry(keyVote(userAddress))], unit)
258+[StringEntry(keyVotingResult(), totalVotes(votesForIncrease, toString(newCurrentVotes), votesForDecrease))]
257259 }
258- actions
260+ let defaultActions = [DeleteEntry(keyVote(userAddress, startHeight))]
261+ (actions ++ defaultActions)
259262 }
260263 else throw("Strict value is not equal to itself.")
261264 }
288291 let votesForDecrease = parseIntValue(votingResult[3])
289292 let allVotes = ((votesForIncrease + votesForCurrent) + votesForDecrease)
290293 let threshold = getIntOrFail(keyThreshold)
291- let $t091419221 = getRateChangeAmountsINTERNAL()
292- let increasedRate = $t091419221._1
293- let currentRate = $t091419221._2
294- let decreasedRate = $t091419221._3
294+ let $t092319311 = getRateChangeAmountsINTERNAL()
295+ let increasedRate = $t092319311._1
296+ let currentRate = $t092319311._2
297+ let decreasedRate = $t092319311._3
295298 let votesList = [votesForIncrease, votesForCurrent, votesForDecrease]
296299 let newRate = if (if ((threshold > allVotes))
297300 then true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let contractFilename = "voting_emission_rate.ride"
77
88 let keyEpochLength = makeString(["%s", "epochLength"], separator)
99
1010 let keyEmissionContract = makeString(["%s", "emissionContract"], separator)
1111
1212 let keyBoostingContract = makeString(["%s", "boostingContract"], separator)
1313
1414 let keyThreshold = makeString(["%s", "votingThreshold"], separator)
1515
1616 let keyRatePerBlock = makeString(["%s%s", "ratePerBlock", "current"], separator)
1717
1818 let keyRatePerBlockMax = makeString(["%s%s", "ratePerBlockMax", "current"], separator)
1919
2020 let keyRateChangeStep = makeString(["%s", "rateChangeStep"], separator)
2121
2222 func throwErr (s) = throw(((contractFilename + ": ") + s))
2323
2424
2525 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (key + " is not defined"))
2626
2727
2828 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (key + " is not defined"))
2929
3030
3131 func keyStartHeight () = makeString(["%s", "startHeight"], separator)
3232
3333
3434 func keyVotingResult () = makeString(["%s", "votingResult"], separator)
3535
3636
3737 func totalVotes (totalIncrease,totalNone,totalDecrease) = makeString(["%d%d%d", totalIncrease, totalNone, totalDecrease], separator)
3838
3939
40-func keyVote (voterAddress) = makeString(["%s%s", "vote", voterAddress], separator)
40+func keyVote (voterAddress,startHeight) = makeString(["%s%s%d", "vote", voterAddress, toString(startHeight)], separator)
4141
4242
4343 func keyVoteValue (gwxAmount,vote) = {
4444 let key = if ((vote == 1))
4545 then makeString(["%d%s", gwxAmount, "increase"], separator)
4646 else if ((vote == -1))
4747 then makeString(["%d%s", gwxAmount, "decrease"], separator)
4848 else makeString(["%d%s", gwxAmount, "current"], separator)
4949 key
5050 }
5151
5252
5353 let boostingContract = addressFromStringValue(getStringOrFail(keyBoostingContract))
5454
5555 let emissionContract = addressFromStringValue(getStringOrFail(keyEmissionContract))
5656
5757 func keyManagerPublicKey () = "%s__managerPublicKey"
5858
5959
6060 func keyManagerVaultAddress () = "%s__managerVaultAddress"
6161
6262
6363 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
6464 case s: String =>
6565 addressFromStringValue(s)
6666 case _ =>
6767 this
6868 }
6969
7070
7171 func managerPublicKeyOrUnit () = {
7272 let managerVaultAddress = getManagerVaultAddressOrThis()
7373 match getString(managerVaultAddress, keyManagerPublicKey()) {
7474 case s: String =>
7575 fromBase58String(s)
7676 case _: Unit =>
7777 unit
7878 case _ =>
7979 throw("Match error")
8080 }
8181 }
8282
8383
8484 func isManager (i) = match managerPublicKeyOrUnit() {
8585 case pk: ByteVector =>
8686 (i.callerPublicKey == pk)
8787 case _: Unit =>
8888 (i.caller == this)
8989 case _ =>
9090 throw("Match error")
9191 }
9292
9393
9494 func mustManager (i) = if (isManager(i))
9595 then true
9696 else throwErr("permission denied")
9797
9898
9999 func asInt (val) = match val {
100100 case valInt: Int =>
101101 valInt
102102 case _ =>
103103 throwErr("failed to cast into Integer")
104104 }
105105
106106
107107 func calcNewRate (ratePerBlockMax,ratePerBlock,changeStep) = {
108108 let maxAllowed = fraction(100, ratePerBlockMax, 120)
109109 let increasedRate = min([fraction((100 + changeStep), ratePerBlock, 100), maxAllowed])
110110 let decreasedRate = max([fraction((100 - changeStep), ratePerBlock, 100), 0])
111111 $Tuple3(increasedRate, ratePerBlock, decreasedRate)
112112 }
113113
114114
115115 func getRateChangeAmountsINTERNAL () = {
116116 let ratePerBlockMax = getIntegerValue(emissionContract, keyRatePerBlockMax)
117117 let ratePerBlock = getIntegerValue(emissionContract, keyRatePerBlock)
118118 let rateChangeStep = getIntegerValue(this, keyRateChangeStep)
119119 calcNewRate(ratePerBlockMax, ratePerBlock, rateChangeStep)
120120 }
121121
122122
123123 @Callable(i)
124124 func constructor (boostingContractPrm,emissionContractPrm,votingDurationPrm,threshold,rateChangeStep) = {
125125 let checks = [if (isDefined(addressFromString(boostingContractPrm)))
126126 then true
127127 else throwErr("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm)))
128128 then true
129129 else throwErr("Invalid emission contract address"), if ((votingDurationPrm > 0))
130130 then true
131131 else throwErr("Invalid voting duration"), if ((threshold > 0))
132132 then true
133133 else throwErr("invalid threshold"), if ((rateChangeStep > 0))
134134 then true
135135 else throwErr("invalid rateChangeStep")]
136136 if ((checks == checks))
137137 then $Tuple2([StringEntry(keyBoostingContract, boostingContractPrm), StringEntry(keyEmissionContract, emissionContractPrm), IntegerEntry(keyEpochLength, votingDurationPrm), IntegerEntry(keyThreshold, threshold), IntegerEntry(keyRateChangeStep, rateChangeStep), IntegerEntry(keyStartHeight(), height), StringEntry(keyVotingResult(), totalVotes("0", "0", "0"))], unit)
138138 else throw("Strict value is not equal to itself.")
139139 }
140140
141141
142142
143143 @Callable(i)
144144 func getRateChangeAmountsREADONLY () = $Tuple2(nil, getRateChangeAmountsINTERNAL())
145145
146146
147147
148148 @Callable(i)
149149 func vote (inFavor) = {
150- let votingFinishHeight = (value(getInteger(keyStartHeight())) + value(getInteger(keyEpochLength)))
150+ let startHeight = getIntegerValue(keyStartHeight())
151+ let votingFinishHeight = (startHeight + value(getInteger(keyEpochLength)))
151152 let checks = [if ((votingFinishHeight > height))
152153 then true
153154 else throwErr("too late to vote"), if (containsElement([1, 0, -1], inFavor))
154155 then true
155156 else throwErr("not valid argument")]
156157 if ((checks == checks))
157158 then {
158159 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [toString(i.caller), votingFinishHeight], nil)
159160 let notZero = if ((asInt(gwxAmount) > 0))
160161 then true
161162 else throwErr("you don't have gwx")
162163 if ((notZero == notZero))
163164 then {
164- let vote = match getString(keyVote(toString(i.caller))) {
165+ let vote = match getString(keyVote(toString(i.caller), startHeight)) {
165166 case s: String =>
166167 let vote = split(s, separator)
167168 let voteValue = vote[1]
168169 let voteType = vote[2]
169170 let isVoteTypeSimilar = if (if (if ((voteType == "increase"))
170171 then (inFavor == 1)
171172 else false)
172173 then true
173174 else if ((voteType == "decrease"))
174175 then (inFavor == -1)
175176 else false)
176177 then true
177178 else if ((voteType == "current"))
178179 then (inFavor == 0)
179180 else false
180181 let isVoteValueSimilar = if (isVoteTypeSimilar)
181182 then (asInt(gwxAmount) == parseIntValue(voteValue))
182183 else false
183184 let isNewVoteSimilar = if (if (isVoteTypeSimilar)
184185 then isVoteValueSimilar
185186 else false)
186187 then throwErr("you already voted")
187188 else invoke(this, "cancelVote", nil, nil)
188189 isNewVoteSimilar
189190 case u: Unit =>
190191 u
191192 case _ =>
192193 throw("Match error")
193194 }
194195 if ((vote == vote))
195196 then {
196197 let votingResult = split(value(getString(keyVotingResult())), separator)
197198 let votesForIncrease = votingResult[1]
198199 let votesForCurrent = votingResult[2]
199200 let votesForDecrease = votingResult[3]
200201 let newPositiveAndNegativeVotes = if ((inFavor == 1))
201202 then {
202203 let newPositiveVotes = (parseIntValue(votesForIncrease) + asInt(gwxAmount))
203204 [toString(newPositiveVotes), votesForCurrent, votesForDecrease]
204205 }
205206 else if ((inFavor == -1))
206207 then {
207208 let newNegativeVotes = (parseIntValue(votesForCurrent) + asInt(gwxAmount))
208209 [votesForIncrease, votesForCurrent, toString(newNegativeVotes)]
209210 }
210211 else {
211212 let newNoneVotes = (parseIntValue(votesForCurrent) + asInt(gwxAmount))
212213 [votesForIncrease, toString(newNoneVotes), votesForDecrease]
213214 }
214- let voteKey = keyVote(toString(i.caller))
215+ let voteKey = keyVote(toString(i.caller), startHeight)
215216 let voteValue = keyVoteValue(toString(asInt(gwxAmount)), inFavor)
216217 $Tuple2([StringEntry(keyVotingResult(), totalVotes(newPositiveAndNegativeVotes[0], newPositiveAndNegativeVotes[1], newPositiveAndNegativeVotes[2])), StringEntry(voteKey, voteValue)], unit)
217218 }
218219 else throw("Strict value is not equal to itself.")
219220 }
220221 else throw("Strict value is not equal to itself.")
221222 }
222223 else throw("Strict value is not equal to itself.")
223224 }
224225
225226
226227
227228 @Callable(i)
228229 func cancelVote () = {
230+ let startHeight = getIntegerValue(keyStartHeight())
229231 let userAddress = if ((i.caller == this))
230232 then toString(i.originCaller)
231233 else toString(i.caller)
232234 let checks = [if (isDefined(getString(keyVotingResult())))
233235 then true
234236 else throwErr("no vote")]
235237 if ((checks == checks))
236238 then {
237- let vote = split(value(getString(keyVote(userAddress))), separator)
239+ let vote = split(value(getString(keyVote(userAddress, startHeight))), separator)
238240 let voteValue = vote[1]
239241 let voteType = vote[2]
240242 let votingResult = split(value(getString(keyVotingResult())), separator)
241243 let votesForIncrease = votingResult[1]
242244 let votesForCurrent = votingResult[2]
243245 let votesForDecrease = votingResult[3]
244246 let actions = if ((voteType == "increase"))
245247 then {
246248 let newIncreaseVotes = (parseIntValue(votesForIncrease) - parseIntValue(voteValue))
247- $Tuple2([StringEntry(keyVotingResult(), totalVotes(toString(newIncreaseVotes), votesForCurrent, votesForDecrease)), DeleteEntry(keyVote(userAddress))], unit)
249+[StringEntry(keyVotingResult(), totalVotes(toString(newIncreaseVotes), votesForCurrent, votesForDecrease))]
248250 }
249251 else if ((voteType == "decrease"))
250252 then {
251253 let newDecreaseVotes = (parseIntValue(votesForDecrease) - parseIntValue(voteValue))
252- $Tuple2([StringEntry(keyVotingResult(), totalVotes(votesForIncrease, votesForCurrent, toString(newDecreaseVotes))), DeleteEntry(keyVote(userAddress))], unit)
254+[StringEntry(keyVotingResult(), totalVotes(votesForIncrease, votesForCurrent, toString(newDecreaseVotes)))]
253255 }
254256 else {
255257 let newCurrentVotes = (parseIntValue(votesForCurrent) - parseIntValue(voteValue))
256- $Tuple2([StringEntry(keyVotingResult(), totalVotes(votesForIncrease, toString(newCurrentVotes), votesForDecrease)), DeleteEntry(keyVote(userAddress))], unit)
258+[StringEntry(keyVotingResult(), totalVotes(votesForIncrease, toString(newCurrentVotes), votesForDecrease))]
257259 }
258- actions
260+ let defaultActions = [DeleteEntry(keyVote(userAddress, startHeight))]
261+ (actions ++ defaultActions)
259262 }
260263 else throw("Strict value is not equal to itself.")
261264 }
262265
263266
264267
265268 @Callable(i)
266269 func setThreshold (newThreshold) = {
267270 let checks = [mustManager(i), if ((newThreshold > 0))
268271 then true
269272 else throwErr("invalid threshold")]
270273 if ((checks == checks))
271274 then $Tuple2([IntegerEntry(keyThreshold, newThreshold)], unit)
272275 else throw("Strict value is not equal to itself.")
273276 }
274277
275278
276279
277280 @Callable(i)
278281 func finalize () = {
279282 let votingFinishHeight = (value(getInteger(keyStartHeight())) + value(getInteger(keyEpochLength)))
280283 let checks = [if ((height >= votingFinishHeight))
281284 then true
282285 else throwErr("insufficient height for completion")]
283286 if ((checks == checks))
284287 then {
285288 let votingResult = split(value(getString(keyVotingResult())), separator)
286289 let votesForIncrease = parseIntValue(votingResult[1])
287290 let votesForCurrent = parseIntValue(votingResult[2])
288291 let votesForDecrease = parseIntValue(votingResult[3])
289292 let allVotes = ((votesForIncrease + votesForCurrent) + votesForDecrease)
290293 let threshold = getIntOrFail(keyThreshold)
291- let $t091419221 = getRateChangeAmountsINTERNAL()
292- let increasedRate = $t091419221._1
293- let currentRate = $t091419221._2
294- let decreasedRate = $t091419221._3
294+ let $t092319311 = getRateChangeAmountsINTERNAL()
295+ let increasedRate = $t092319311._1
296+ let currentRate = $t092319311._2
297+ let decreasedRate = $t092319311._3
295298 let votesList = [votesForIncrease, votesForCurrent, votesForDecrease]
296299 let newRate = if (if ((threshold > allVotes))
297300 then true
298301 else (votesForCurrent == max(votesList)))
299302 then unit
300303 else if ((votesForIncrease == max(votesList)))
301304 then increasedRate
302305 else decreasedRate
303306 let changeRateInvoke = match newRate {
304307 case rate: Int =>
305308 invoke(emissionContract, "changeRatePerBlock", [rate], nil)
306309 case _ =>
307310 unit
308311 }
309312 if ((changeRateInvoke == changeRateInvoke))
310313 then [IntegerEntry(keyStartHeight(), height), StringEntry(keyVotingResult(), totalVotes("0", "0", "0"))]
311314 else throw("Strict value is not equal to itself.")
312315 }
313316 else throw("Strict value is not equal to itself.")
314317 }
315318
316319

github/deemru/w8io/026f985 
44.85 ms