tx · 75H7XxBiqjXVS1RAzut7RK42aV16oZ1xhQGzPfdHXfD9

3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh:  -0.01000000 Waves

2023.05.17 11:54 [2581734] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves

{ "type": 13, "id": "75H7XxBiqjXVS1RAzut7RK42aV16oZ1xhQGzPfdHXfD9", "fee": 1000000, "feeAssetId": null, "timestamp": 1684313664477, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "4dzbctMzVYvh9F9crFk96BgGDnr5NcdCik8hdcZsKAiv5MmXoVZdjk25i3sJUKnathGNpcmJNzP26Fs7yuV8hRin" ], "script": "base64:BgIbCAISBwoFCAgBAQESABIDCgEBEgASAwoBARIAHAAJc2VwYXJhdG9yAgJfXwAQY29udHJhY3RGaWxlbmFtZQIZdm90aW5nX2VtaXNzaW9uX3JhdGUucmlkZQAOa2V5RXBvY2hMZW5ndGgJALkJAgkAzAgCAgIlcwkAzAgCAgtlcG9jaExlbmd0aAUDbmlsBQlzZXBhcmF0b3IAE2tleUVtaXNzaW9uQ29udHJhY3QJALkJAgkAzAgCAgIlcwkAzAgCAhBlbWlzc2lvbkNvbnRyYWN0BQNuaWwFCXNlcGFyYXRvcgATa2V5Qm9vc3RpbmdDb250cmFjdAkAuQkCCQDMCAICAiVzCQDMCAICEGJvb3N0aW5nQ29udHJhY3QFA25pbAUJc2VwYXJhdG9yAAxrZXlUaHJlc2hvbGQJALkJAgkAzAgCAgIlcwkAzAgCAg92b3RpbmdUaHJlc2hvbGQFA25pbAUJc2VwYXJhdG9yAA9rZXlSYXRlUGVyQmxvY2sJALkJAgkAzAgCAgQlcyVzCQDMCAICDHJhdGVQZXJCbG9jawkAzAgCAgdjdXJyZW50BQNuaWwFCXNlcGFyYXR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KU3YyEyXRLTfK1G5S5TnkVVtM Next: 7ZVgY8jEJDCALb44jGL7Varwv6yL21rwCsaATfF7SH6g Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
5+
6+let contractFilename = "voting_emission_rate.ride"
57
68 let keyEpochLength = makeString(["%s", "epochLength"], separator)
79
1618 let keyRatePerBlockMax = makeString(["%s%s", "ratePerBlockMax", "current"], separator)
1719
1820 let keyRateChangeStep = makeString(["%s", "rateChangeStep"], separator)
21+
22+func throwErr (s) = throw(((contractFilename + ": ") + s))
23+
1924
2025 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (key + " is not defined"))
2126
8893
8994 func mustManager (i) = if (isManager(i))
9095 then true
91- else throw("permission denied")
96+ else throwErr("permission denied")
9297
9398
9499 func asInt (val) = match val {
95100 case valInt: Int =>
96101 valInt
97102 case _ =>
98- throw("failed to cast into Integer")
103+ throwErr("failed to cast into Integer")
99104 }
100105
101106
119124 func constructor (boostingContractPrm,emissionContractPrm,votingDurationPrm,threshold,rateChangeStep) = {
120125 let checks = [if (isDefined(addressFromString(boostingContractPrm)))
121126 then true
122- else throw("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm)))
127+ else throwErr("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm)))
123128 then true
124- else throw("Invalid emission contract address"), if ((votingDurationPrm > 0))
129+ else throwErr("Invalid emission contract address"), if ((votingDurationPrm > 0))
125130 then true
126- else throw("Invalid voting duration"), if ((threshold > 0))
131+ else throwErr("Invalid voting duration"), if ((threshold > 0))
127132 then true
128- else throw("invalid threshold"), if ((rateChangeStep > 0))
133+ else throwErr("invalid threshold"), if ((rateChangeStep > 0))
129134 then true
130- else throw("invalid rateChangeStep")]
135+ else throwErr("invalid rateChangeStep")]
131136 if ((checks == checks))
132137 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)
133138 else throw("Strict value is not equal to itself.")
145150 let votingFinishHeight = (value(getInteger(keyStartHeight())) + value(getInteger(keyEpochLength)))
146151 let checks = [if ((votingFinishHeight > height))
147152 then true
148- else throw("too late to vote"), if (containsElement([1, 0, -1], inFavor))
153+ else throwErr("too late to vote"), if (containsElement([1, 0, -1], inFavor))
149154 then true
150- else throw("not valid argument")]
155+ else throwErr("not valid argument")]
151156 if ((checks == checks))
152157 then {
153158 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [toString(i.caller), votingFinishHeight], nil)
154159 let notZero = if ((asInt(gwxAmount) > 0))
155160 then true
156- else throw("you don't have gwx")
161+ else throwErr("you don't have gwx")
157162 if ((notZero == notZero))
158163 then {
159164 let vote = match getString(keyVote(toString(i.caller))) {
178183 let isNewVoteSimilar = if (if (isVoteTypeSimilar)
179184 then isVoteValueSimilar
180185 else false)
181- then throw("you already voted")
186+ then throwErr("you already voted")
182187 else invoke(this, "cancelVote", nil, nil)
183188 isNewVoteSimilar
184189 case u: Unit =>
226231 else toString(i.caller)
227232 let checks = [if (isDefined(getString(keyVotingResult())))
228233 then true
229- else throw("no vote")]
234+ else throwErr("no vote")]
230235 if ((checks == checks))
231236 then {
232237 let vote = split(value(getString(keyVote(userAddress))), separator)
261266 func setThreshold (newThreshold) = {
262267 let checks = [mustManager(i), if ((newThreshold > 0))
263268 then true
264- else throw("invalid threshold")]
269+ else throwErr("invalid threshold")]
265270 if ((checks == checks))
266271 then $Tuple2([IntegerEntry(keyThreshold, newThreshold)], unit)
267272 else throw("Strict value is not equal to itself.")
274279 let votingFinishHeight = (value(getInteger(keyStartHeight())) + value(getInteger(keyEpochLength)))
275280 let checks = [if ((height >= votingFinishHeight))
276281 then true
277- else throw("insufficient height for completion")]
282+ else throwErr("insufficient height for completion")]
278283 if ((checks == checks))
279284 then {
280285 let votingResult = split(value(getString(keyVotingResult())), separator)
283288 let votesToDecrease = parseIntValue(votingResult[3])
284289 let allVotes = ((votesToIncrease + votesToNone) + votesToDecrease)
285290 let threshold = getIntOrFail(keyThreshold)
286- let $t088098889 = getRateChangeAmountsINTERNAL()
287- let increasedRate = $t088098889._1
288- let currentRate = $t088098889._2
289- let decreasedRate = $t088098889._3
291+ let $t090759155 = getRateChangeAmountsINTERNAL()
292+ let increasedRate = $t090759155._1
293+ let currentRate = $t090759155._2
294+ let decreasedRate = $t090759155._3
290295 let votesList = [votesToIncrease, votesToNone, votesToDecrease]
291296 let actions = if ((threshold > allVotes))
292297 then nil
293298 else if ((votesToNone == max(votesList)))
294- then [StringEntry("foo", "NONE")]
299+ then [StringEntry("foo", "NONE"), IntegerEntry("bar", currentRate)]
295300 else if ((votesToIncrease == max(votesList)))
296- then [StringEntry("foo", "INC")]
297- else [StringEntry("foo", "DEC")]
301+ then [StringEntry("foo", "INC"), IntegerEntry("bar", increasedRate)]
302+ else [StringEntry("foo", "DEC"), IntegerEntry("bar", decreasedRate)]
298303 (actions ++ [IntegerEntry(keyStartHeight(), height)])
299304 }
300305 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
5+
6+let contractFilename = "voting_emission_rate.ride"
57
68 let keyEpochLength = makeString(["%s", "epochLength"], separator)
79
810 let keyEmissionContract = makeString(["%s", "emissionContract"], separator)
911
1012 let keyBoostingContract = makeString(["%s", "boostingContract"], separator)
1113
1214 let keyThreshold = makeString(["%s", "votingThreshold"], separator)
1315
1416 let keyRatePerBlock = makeString(["%s%s", "ratePerBlock", "current"], separator)
1517
1618 let keyRatePerBlockMax = makeString(["%s%s", "ratePerBlockMax", "current"], separator)
1719
1820 let keyRateChangeStep = makeString(["%s", "rateChangeStep"], separator)
21+
22+func throwErr (s) = throw(((contractFilename + ": ") + s))
23+
1924
2025 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (key + " is not defined"))
2126
2227
2328 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (key + " is not defined"))
2429
2530
2631 func keyStartHeight () = makeString(["%s", "startHeight"], separator)
2732
2833
2934 func keyVotingResult () = makeString(["%s", "votingResult"], separator)
3035
3136
3237 func totalVotes (totalIncrease,totalNone,totalDecrease) = makeString(["%d%d%d", totalIncrease, totalNone, totalDecrease], separator)
3338
3439
3540 func keyVote (voterAddress) = makeString(["%s%s", "vote", voterAddress], separator)
3641
3742
3843 func keyVoteValue (gwxAmount,vote) = {
3944 let key = if ((vote == 1))
4045 then makeString(["%d%s", gwxAmount, "increase"], separator)
4146 else if ((vote == -1))
4247 then makeString(["%d%s", gwxAmount, "decrease"], separator)
4348 else makeString(["%d%s", gwxAmount, "none"], separator)
4449 key
4550 }
4651
4752
4853 let boostingContract = addressFromStringValue(getStringOrFail(keyBoostingContract))
4954
5055 let emissionContract = addressFromStringValue(getStringOrFail(keyEmissionContract))
5156
5257 func keyManagerPublicKey () = "%s__managerPublicKey"
5358
5459
5560 func keyManagerVaultAddress () = "%s__managerVaultAddress"
5661
5762
5863 func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) {
5964 case s: String =>
6065 addressFromStringValue(s)
6166 case _ =>
6267 this
6368 }
6469
6570
6671 func managerPublicKeyOrUnit () = {
6772 let managerVaultAddress = getManagerVaultAddressOrThis()
6873 match getString(managerVaultAddress, keyManagerPublicKey()) {
6974 case s: String =>
7075 fromBase58String(s)
7176 case _: Unit =>
7277 unit
7378 case _ =>
7479 throw("Match error")
7580 }
7681 }
7782
7883
7984 func isManager (i) = match managerPublicKeyOrUnit() {
8085 case pk: ByteVector =>
8186 (i.callerPublicKey == pk)
8287 case _: Unit =>
8388 (i.caller == this)
8489 case _ =>
8590 throw("Match error")
8691 }
8792
8893
8994 func mustManager (i) = if (isManager(i))
9095 then true
91- else throw("permission denied")
96+ else throwErr("permission denied")
9297
9398
9499 func asInt (val) = match val {
95100 case valInt: Int =>
96101 valInt
97102 case _ =>
98- throw("failed to cast into Integer")
103+ throwErr("failed to cast into Integer")
99104 }
100105
101106
102107 func calcNewRate (ratePerBlockMax,ratePerBlock,changeStep) = {
103108 let maxAllowed = fraction(100, ratePerBlockMax, 120)
104109 let increasedRate = min([fraction((100 + changeStep), ratePerBlock, 100), maxAllowed])
105110 let decreasedRate = max([fraction((100 - changeStep), ratePerBlock, 100), 0])
106111 $Tuple3(increasedRate, ratePerBlock, decreasedRate)
107112 }
108113
109114
110115 func getRateChangeAmountsINTERNAL () = {
111116 let ratePerBlockMax = getIntegerValue(emissionContract, keyRatePerBlockMax)
112117 let ratePerBlock = getIntegerValue(emissionContract, keyRatePerBlock)
113118 let rateChangeStep = getIntegerValue(this, keyRateChangeStep)
114119 calcNewRate(ratePerBlockMax, ratePerBlock, rateChangeStep)
115120 }
116121
117122
118123 @Callable(i)
119124 func constructor (boostingContractPrm,emissionContractPrm,votingDurationPrm,threshold,rateChangeStep) = {
120125 let checks = [if (isDefined(addressFromString(boostingContractPrm)))
121126 then true
122- else throw("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm)))
127+ else throwErr("Invalid boosting contract address"), if (isDefined(addressFromString(emissionContractPrm)))
123128 then true
124- else throw("Invalid emission contract address"), if ((votingDurationPrm > 0))
129+ else throwErr("Invalid emission contract address"), if ((votingDurationPrm > 0))
125130 then true
126- else throw("Invalid voting duration"), if ((threshold > 0))
131+ else throwErr("Invalid voting duration"), if ((threshold > 0))
127132 then true
128- else throw("invalid threshold"), if ((rateChangeStep > 0))
133+ else throwErr("invalid threshold"), if ((rateChangeStep > 0))
129134 then true
130- else throw("invalid rateChangeStep")]
135+ else throwErr("invalid rateChangeStep")]
131136 if ((checks == checks))
132137 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)
133138 else throw("Strict value is not equal to itself.")
134139 }
135140
136141
137142
138143 @Callable(i)
139144 func getRateChangeAmountsREADONLY () = $Tuple2(nil, getRateChangeAmountsINTERNAL())
140145
141146
142147
143148 @Callable(i)
144149 func vote (inFavor) = {
145150 let votingFinishHeight = (value(getInteger(keyStartHeight())) + value(getInteger(keyEpochLength)))
146151 let checks = [if ((votingFinishHeight > height))
147152 then true
148- else throw("too late to vote"), if (containsElement([1, 0, -1], inFavor))
153+ else throwErr("too late to vote"), if (containsElement([1, 0, -1], inFavor))
149154 then true
150- else throw("not valid argument")]
155+ else throwErr("not valid argument")]
151156 if ((checks == checks))
152157 then {
153158 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [toString(i.caller), votingFinishHeight], nil)
154159 let notZero = if ((asInt(gwxAmount) > 0))
155160 then true
156- else throw("you don't have gwx")
161+ else throwErr("you don't have gwx")
157162 if ((notZero == notZero))
158163 then {
159164 let vote = match getString(keyVote(toString(i.caller))) {
160165 case s: String =>
161166 let vote = split(s, separator)
162167 let voteValue = vote[1]
163168 let voteType = vote[2]
164169 let isVoteTypeSimilar = if (if (if ((voteType == "increase"))
165170 then (inFavor == 1)
166171 else false)
167172 then true
168173 else if ((voteType == "decrease"))
169174 then (inFavor == -1)
170175 else false)
171176 then true
172177 else if ((voteType == "none"))
173178 then (inFavor == 0)
174179 else false
175180 let isVoteValueSimilar = if (isVoteTypeSimilar)
176181 then (asInt(gwxAmount) == parseIntValue(voteValue))
177182 else false
178183 let isNewVoteSimilar = if (if (isVoteTypeSimilar)
179184 then isVoteValueSimilar
180185 else false)
181- then throw("you already voted")
186+ then throwErr("you already voted")
182187 else invoke(this, "cancelVote", nil, nil)
183188 isNewVoteSimilar
184189 case u: Unit =>
185190 u
186191 case _ =>
187192 throw("Match error")
188193 }
189194 if ((vote == vote))
190195 then {
191196 let votingResult = split(value(getString(keyVotingResult())), separator)
192197 let votesToIncrease = votingResult[1]
193198 let votesToNone = votingResult[2]
194199 let votesToDecrease = votingResult[3]
195200 let newPositiveAndNegativeVotes = if ((inFavor == 1))
196201 then {
197202 let newPositiveVotes = (parseIntValue(votesToIncrease) + asInt(gwxAmount))
198203 [toString(newPositiveVotes), votesToNone, votesToDecrease]
199204 }
200205 else if ((inFavor == -1))
201206 then {
202207 let newNegativeVotes = (parseIntValue(votesToNone) + asInt(gwxAmount))
203208 [votesToIncrease, votesToNone, toString(newNegativeVotes)]
204209 }
205210 else {
206211 let newNoneVotes = (parseIntValue(votesToNone) + asInt(gwxAmount))
207212 [votesToIncrease, toString(newNoneVotes), votesToDecrease]
208213 }
209214 let voteKey = keyVote(toString(i.caller))
210215 let voteValue = keyVoteValue(toString(asInt(gwxAmount)), inFavor)
211216 $Tuple2([StringEntry(keyVotingResult(), totalVotes(newPositiveAndNegativeVotes[0], newPositiveAndNegativeVotes[1], newPositiveAndNegativeVotes[2])), StringEntry(voteKey, voteValue)], unit)
212217 }
213218 else throw("Strict value is not equal to itself.")
214219 }
215220 else throw("Strict value is not equal to itself.")
216221 }
217222 else throw("Strict value is not equal to itself.")
218223 }
219224
220225
221226
222227 @Callable(i)
223228 func cancelVote () = {
224229 let userAddress = if ((i.caller == this))
225230 then toString(i.originCaller)
226231 else toString(i.caller)
227232 let checks = [if (isDefined(getString(keyVotingResult())))
228233 then true
229- else throw("no vote")]
234+ else throwErr("no vote")]
230235 if ((checks == checks))
231236 then {
232237 let vote = split(value(getString(keyVote(userAddress))), separator)
233238 let voteValue = vote[1]
234239 let voteType = vote[2]
235240 let votingResult = split(value(getString(keyVotingResult())), separator)
236241 let votesToIncrease = votingResult[1]
237242 let votesToNone = votingResult[2]
238243 let votesToDecrease = votingResult[3]
239244 let actions = if ((voteType == "increase"))
240245 then {
241246 let newIncreaseVotes = (parseIntValue(votesToIncrease) - parseIntValue(voteValue))
242247 $Tuple2([StringEntry(keyVotingResult(), totalVotes(toString(newIncreaseVotes), votesToNone, votesToDecrease)), DeleteEntry(keyVote(userAddress))], unit)
243248 }
244249 else if ((voteType == "decrease"))
245250 then {
246251 let newDecreaseVotes = (parseIntValue(votesToDecrease) - parseIntValue(voteValue))
247252 $Tuple2([StringEntry(keyVotingResult(), totalVotes(votesToIncrease, votesToNone, toString(newDecreaseVotes))), DeleteEntry(keyVote(userAddress))], unit)
248253 }
249254 else {
250255 let newNoneVotes = (parseIntValue(votesToNone) - parseIntValue(voteValue))
251256 $Tuple2([StringEntry(keyVotingResult(), totalVotes(votesToIncrease, toString(newNoneVotes), votesToDecrease)), DeleteEntry(keyVote(userAddress))], unit)
252257 }
253258 actions
254259 }
255260 else throw("Strict value is not equal to itself.")
256261 }
257262
258263
259264
260265 @Callable(i)
261266 func setThreshold (newThreshold) = {
262267 let checks = [mustManager(i), if ((newThreshold > 0))
263268 then true
264- else throw("invalid threshold")]
269+ else throwErr("invalid threshold")]
265270 if ((checks == checks))
266271 then $Tuple2([IntegerEntry(keyThreshold, newThreshold)], unit)
267272 else throw("Strict value is not equal to itself.")
268273 }
269274
270275
271276
272277 @Callable(i)
273278 func finalize () = {
274279 let votingFinishHeight = (value(getInteger(keyStartHeight())) + value(getInteger(keyEpochLength)))
275280 let checks = [if ((height >= votingFinishHeight))
276281 then true
277- else throw("insufficient height for completion")]
282+ else throwErr("insufficient height for completion")]
278283 if ((checks == checks))
279284 then {
280285 let votingResult = split(value(getString(keyVotingResult())), separator)
281286 let votesToIncrease = parseIntValue(votingResult[1])
282287 let votesToNone = parseIntValue(votingResult[2])
283288 let votesToDecrease = parseIntValue(votingResult[3])
284289 let allVotes = ((votesToIncrease + votesToNone) + votesToDecrease)
285290 let threshold = getIntOrFail(keyThreshold)
286- let $t088098889 = getRateChangeAmountsINTERNAL()
287- let increasedRate = $t088098889._1
288- let currentRate = $t088098889._2
289- let decreasedRate = $t088098889._3
291+ let $t090759155 = getRateChangeAmountsINTERNAL()
292+ let increasedRate = $t090759155._1
293+ let currentRate = $t090759155._2
294+ let decreasedRate = $t090759155._3
290295 let votesList = [votesToIncrease, votesToNone, votesToDecrease]
291296 let actions = if ((threshold > allVotes))
292297 then nil
293298 else if ((votesToNone == max(votesList)))
294- then [StringEntry("foo", "NONE")]
299+ then [StringEntry("foo", "NONE"), IntegerEntry("bar", currentRate)]
295300 else if ((votesToIncrease == max(votesList)))
296- then [StringEntry("foo", "INC")]
297- else [StringEntry("foo", "DEC")]
301+ then [StringEntry("foo", "INC"), IntegerEntry("bar", increasedRate)]
302+ else [StringEntry("foo", "DEC"), IntegerEntry("bar", decreasedRate)]
298303 (actions ++ [IntegerEntry(keyStartHeight(), height)])
299304 }
300305 else throw("Strict value is not equal to itself.")
301306 }
302307
303308

github/deemru/w8io/026f985 
47.28 ms