tx · 7ZVgY8jEJDCALb44jGL7Varwv6yL21rwCsaATfF7SH6g

3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh:  -0.01000000 Waves

2023.05.18 16:07 [2583437] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves

{ "type": 13, "id": "7ZVgY8jEJDCALb44jGL7Varwv6yL21rwCsaATfF7SH6g", "fee": 1000000, "feeAssetId": null, "timestamp": 1684415309570, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "62F3cYFDpF6CKpHLCdPs5YMukhzEmMmUMYi3Uo5vhzCzkLqzeSNUbSEhXQVoExLodiN7pXuGDQAHKtKWgKpU64SK" ], "script": "base64:BgIbCAISBwoFCAgBAQESABIDCgEBEgASAwoBARIAHAAJc2VwYXJhdG9yAgJfXwAQY29udHJhY3RGaWxlbmFtZQIZdm90aW5nX2VtaXNzaW9uX3JhdGUucmlkZQAOa2V5RXBvY2hMZW5ndGgJALkJAgkAzAgCAgIlcwkAzAgCAgtlcG9jaExlbmd0aAUDbmlsBQlzZXBhcmF0b3IAE2tleUVtaXNzaW9uQ29udHJhY3QJALkJAgkAzAgCAgIlcwkAzAgCAhBlbWlzc2lvbkNvbnRyYWN0BQNuaWwFCXNlcGFyYXRvcgATa2V5Qm9vc3RpbmdDb250cmFjdAkAuQkCCQDMCAICAiVzCQDMCAICEGJvb3N0aW5nQ29udHJhY3QFA25pbAUJc2VwYXJhdG9yAAxrZXlUaHJlc2hvbGQJALkJAgkAzAgCAgIlcwkAzAgCAg92b3RpbmdUaHJlc2hvbGQFA25pbAUJc2VwYXJhdG9yAA9rZXlSYXRlUGVyQmxvY2sJALkJAgkAzAgCAgQlcyVzCQDMCAICDHJhdGVQZXJCbG9jawkAzAgCAgdjdXJyZW50BQNuaWwFCXNlcGFyY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WxWb3RlcwMCATACATACATAFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgDT7wz0", "height": 2583437, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 75H7XxBiqjXVS1RAzut7RK42aV16oZ1xhQGzPfdHXfD9 Next: 5DHqA3M2YdRrmdfsQpq33J9SEPAjaTbp5wQLUFoUQrem Diff:
OldNewDifferences
4545 then makeString(["%d%s", x, "increase"], a)
4646 else if ((y == -1))
4747 then makeString(["%d%s", x, "decrease"], a)
48- else makeString(["%d%s", x, "none"], a)
48+ else makeString(["%d%s", x, "current"], a)
4949 m
5050 }
5151
187187 then (ac == -1)
188188 else false)
189189 then true
190- else if ((ag == "none"))
190+ else if ((ag == "current"))
191191 then (ac == 0)
192192 else false
193193 let ai = if (ah)
268268 $Tuple2([StringEntry(p(), q(am, an, toString(ax))), DeleteEntry(u(au))], unit)
269269 }
270270 else {
271- let as = (parseIntValue(an) - parseIntValue(af))
272- $Tuple2([StringEntry(p(), q(am, toString(as), ao)), DeleteEntry(u(au))], unit)
271+ let ay = (parseIntValue(an) - parseIntValue(af))
272+ $Tuple2([StringEntry(p(), q(am, toString(ay), ao)), DeleteEntry(u(au))], unit)
273273 }
274274 av
275275 }
279279
280280
281281 @Callable(I)
282-func setThreshold (ay) = {
283- let ab = [K(I), if ((ay > 0))
282+func setThreshold (az) = {
283+ let ab = [K(I), if ((az > 0))
284284 then true
285285 else j("invalid threshold")]
286286 if ((ab == ab))
287- then $Tuple2([IntegerEntry(f, ay)], unit)
287+ then $Tuple2([IntegerEntry(f, az)], unit)
288288 else throw("Strict value is not equal to itself.")
289289 }
290290
302302 let am = parseIntValue(al[1])
303303 let an = parseIntValue(al[2])
304304 let ao = parseIntValue(al[3])
305- let az = ((am + an) + ao)
305+ let aA = ((am + an) + ao)
306306 let aa = n(f)
307- let aA = V()
308- let T = aA._1
309- let aB = aA._2
310- let U = aA._3
311- let aC = [am, an, ao]
312- let av = if ((aa > az))
313- then nil
314- else if ((an == max(aC)))
315- then [StringEntry("foo", "NONE"), IntegerEntry("bar", aB)]
316- else if ((am == max(aC)))
317- then [StringEntry("foo", "INC"), IntegerEntry("bar", T)]
318- else [StringEntry("foo", "DEC"), IntegerEntry("bar", U)]
319- (av ++ [IntegerEntry(o(), height)])
307+ let aB = V()
308+ let T = aB._1
309+ let aC = aB._2
310+ let U = aB._3
311+ let aD = [am, an, ao]
312+ let aE = if (if ((aa > aA))
313+ then true
314+ else (an == max(aD)))
315+ then unit
316+ else if ((am == max(aD)))
317+ then T
318+ else U
319+ let aF = {
320+ let E = aE
321+ if ($isInstanceOf(E, "Int"))
322+ then {
323+ let aG = E
324+ invoke(A, "changeRatePerBlock", [aG], nil)
325+ }
326+ else unit
327+ }
328+ if ((aF == aF))
329+ then [IntegerEntry(o(), height), StringEntry(p(), q("0", "0", "0"))]
330+ else throw("Strict value is not equal to itself.")
320331 }
321332 else throw("Strict value is not equal to itself.")
322333 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = "voting_emission_rate.ride"
77
88 let c = makeString(["%s", "epochLength"], a)
99
1010 let d = makeString(["%s", "emissionContract"], a)
1111
1212 let e = makeString(["%s", "boostingContract"], a)
1313
1414 let f = makeString(["%s", "votingThreshold"], a)
1515
1616 let g = makeString(["%s%s", "ratePerBlock", "current"], a)
1717
1818 let h = makeString(["%s%s", "ratePerBlockMax", "current"], a)
1919
2020 let i = makeString(["%s", "rateChangeStep"], a)
2121
2222 func j (k) = throw(((b + ": ") + k))
2323
2424
2525 func l (m) = valueOrErrorMessage(getString(this, m), (m + " is not defined"))
2626
2727
2828 func n (m) = valueOrErrorMessage(getInteger(this, m), (m + " is not defined"))
2929
3030
3131 func o () = makeString(["%s", "startHeight"], a)
3232
3333
3434 func p () = makeString(["%s", "votingResult"], a)
3535
3636
3737 func q (r,s,t) = makeString(["%d%d%d", r, s, t], a)
3838
3939
4040 func u (v) = makeString(["%s%s", "vote", v], a)
4141
4242
4343 func w (x,y) = {
4444 let m = if ((y == 1))
4545 then makeString(["%d%s", x, "increase"], a)
4646 else if ((y == -1))
4747 then makeString(["%d%s", x, "decrease"], a)
48- else makeString(["%d%s", x, "none"], a)
48+ else makeString(["%d%s", x, "current"], a)
4949 m
5050 }
5151
5252
5353 let z = addressFromStringValue(l(e))
5454
5555 let A = addressFromStringValue(l(d))
5656
5757 func B () = "%s__managerPublicKey"
5858
5959
6060 func C () = "%s__managerVaultAddress"
6161
6262
6363 func D () = {
6464 let E = getString(C())
6565 if ($isInstanceOf(E, "String"))
6666 then {
6767 let k = E
6868 addressFromStringValue(k)
6969 }
7070 else this
7171 }
7272
7373
7474 func F () = {
7575 let G = D()
7676 let E = getString(G, B())
7777 if ($isInstanceOf(E, "String"))
7878 then {
7979 let k = E
8080 fromBase58String(k)
8181 }
8282 else if ($isInstanceOf(E, "Unit"))
8383 then unit
8484 else throw("Match error")
8585 }
8686
8787
8888 func H (I) = {
8989 let E = F()
9090 if ($isInstanceOf(E, "ByteVector"))
9191 then {
9292 let J = E
9393 (I.callerPublicKey == J)
9494 }
9595 else if ($isInstanceOf(E, "Unit"))
9696 then (I.caller == this)
9797 else throw("Match error")
9898 }
9999
100100
101101 func K (I) = if (H(I))
102102 then true
103103 else j("permission denied")
104104
105105
106106 func L (M) = {
107107 let E = M
108108 if ($isInstanceOf(E, "Int"))
109109 then {
110110 let N = E
111111 N
112112 }
113113 else j("failed to cast into Integer")
114114 }
115115
116116
117117 func O (P,Q,R) = {
118118 let S = fraction(100, P, 120)
119119 let T = min([fraction((100 + R), Q, 100), S])
120120 let U = max([fraction((100 - R), Q, 100), 0])
121121 $Tuple3(T, Q, U)
122122 }
123123
124124
125125 func V () = {
126126 let P = getIntegerValue(A, h)
127127 let Q = getIntegerValue(A, g)
128128 let W = getIntegerValue(this, i)
129129 O(P, Q, W)
130130 }
131131
132132
133133 @Callable(I)
134134 func constructor (X,Y,Z,aa,W) = {
135135 let ab = [if (isDefined(addressFromString(X)))
136136 then true
137137 else j("Invalid boosting contract address"), if (isDefined(addressFromString(Y)))
138138 then true
139139 else j("Invalid emission contract address"), if ((Z > 0))
140140 then true
141141 else j("Invalid voting duration"), if ((aa > 0))
142142 then true
143143 else j("invalid threshold"), if ((W > 0))
144144 then true
145145 else j("invalid rateChangeStep")]
146146 if ((ab == ab))
147147 then $Tuple2([StringEntry(e, X), StringEntry(d, Y), IntegerEntry(c, Z), IntegerEntry(f, aa), IntegerEntry(i, W), IntegerEntry(o(), height), StringEntry(p(), q("0", "0", "0"))], unit)
148148 else throw("Strict value is not equal to itself.")
149149 }
150150
151151
152152
153153 @Callable(I)
154154 func getRateChangeAmountsREADONLY () = $Tuple2(nil, V())
155155
156156
157157
158158 @Callable(I)
159159 func vote (ac) = {
160160 let ad = (value(getInteger(o())) + value(getInteger(c)))
161161 let ab = [if ((ad > height))
162162 then true
163163 else j("too late to vote"), if (containsElement([1, 0, -1], ac))
164164 then true
165165 else j("not valid argument")]
166166 if ((ab == ab))
167167 then {
168168 let x = invoke(z, "getUserGwxAmountAtHeightREADONLY", [toString(I.caller), ad], nil)
169169 let ae = if ((L(x) > 0))
170170 then true
171171 else j("you don't have gwx")
172172 if ((ae == ae))
173173 then {
174174 let y = {
175175 let E = getString(u(toString(I.caller)))
176176 if ($isInstanceOf(E, "String"))
177177 then {
178178 let k = E
179179 let y = split(k, a)
180180 let af = y[1]
181181 let ag = y[2]
182182 let ah = if (if (if ((ag == "increase"))
183183 then (ac == 1)
184184 else false)
185185 then true
186186 else if ((ag == "decrease"))
187187 then (ac == -1)
188188 else false)
189189 then true
190- else if ((ag == "none"))
190+ else if ((ag == "current"))
191191 then (ac == 0)
192192 else false
193193 let ai = if (ah)
194194 then (L(x) == parseIntValue(af))
195195 else false
196196 let aj = if (if (ah)
197197 then ai
198198 else false)
199199 then j("you already voted")
200200 else invoke(this, "cancelVote", nil, nil)
201201 aj
202202 }
203203 else if ($isInstanceOf(E, "Unit"))
204204 then {
205205 let ak = E
206206 ak
207207 }
208208 else throw("Match error")
209209 }
210210 if ((y == y))
211211 then {
212212 let al = split(value(getString(p())), a)
213213 let am = al[1]
214214 let an = al[2]
215215 let ao = al[3]
216216 let ap = if ((ac == 1))
217217 then {
218218 let aq = (parseIntValue(am) + L(x))
219219 [toString(aq), an, ao]
220220 }
221221 else if ((ac == -1))
222222 then {
223223 let ar = (parseIntValue(an) + L(x))
224224 [am, an, toString(ar)]
225225 }
226226 else {
227227 let as = (parseIntValue(an) + L(x))
228228 [am, toString(as), ao]
229229 }
230230 let at = u(toString(I.caller))
231231 let af = w(toString(L(x)), ac)
232232 $Tuple2([StringEntry(p(), q(ap[0], ap[1], ap[2])), StringEntry(at, af)], unit)
233233 }
234234 else throw("Strict value is not equal to itself.")
235235 }
236236 else throw("Strict value is not equal to itself.")
237237 }
238238 else throw("Strict value is not equal to itself.")
239239 }
240240
241241
242242
243243 @Callable(I)
244244 func cancelVote () = {
245245 let au = if ((I.caller == this))
246246 then toString(I.originCaller)
247247 else toString(I.caller)
248248 let ab = [if (isDefined(getString(p())))
249249 then true
250250 else j("no vote")]
251251 if ((ab == ab))
252252 then {
253253 let y = split(value(getString(u(au))), a)
254254 let af = y[1]
255255 let ag = y[2]
256256 let al = split(value(getString(p())), a)
257257 let am = al[1]
258258 let an = al[2]
259259 let ao = al[3]
260260 let av = if ((ag == "increase"))
261261 then {
262262 let aw = (parseIntValue(am) - parseIntValue(af))
263263 $Tuple2([StringEntry(p(), q(toString(aw), an, ao)), DeleteEntry(u(au))], unit)
264264 }
265265 else if ((ag == "decrease"))
266266 then {
267267 let ax = (parseIntValue(ao) - parseIntValue(af))
268268 $Tuple2([StringEntry(p(), q(am, an, toString(ax))), DeleteEntry(u(au))], unit)
269269 }
270270 else {
271- let as = (parseIntValue(an) - parseIntValue(af))
272- $Tuple2([StringEntry(p(), q(am, toString(as), ao)), DeleteEntry(u(au))], unit)
271+ let ay = (parseIntValue(an) - parseIntValue(af))
272+ $Tuple2([StringEntry(p(), q(am, toString(ay), ao)), DeleteEntry(u(au))], unit)
273273 }
274274 av
275275 }
276276 else throw("Strict value is not equal to itself.")
277277 }
278278
279279
280280
281281 @Callable(I)
282-func setThreshold (ay) = {
283- let ab = [K(I), if ((ay > 0))
282+func setThreshold (az) = {
283+ let ab = [K(I), if ((az > 0))
284284 then true
285285 else j("invalid threshold")]
286286 if ((ab == ab))
287- then $Tuple2([IntegerEntry(f, ay)], unit)
287+ then $Tuple2([IntegerEntry(f, az)], unit)
288288 else throw("Strict value is not equal to itself.")
289289 }
290290
291291
292292
293293 @Callable(I)
294294 func finalize () = {
295295 let ad = (value(getInteger(o())) + value(getInteger(c)))
296296 let ab = [if ((height >= ad))
297297 then true
298298 else j("insufficient height for completion")]
299299 if ((ab == ab))
300300 then {
301301 let al = split(value(getString(p())), a)
302302 let am = parseIntValue(al[1])
303303 let an = parseIntValue(al[2])
304304 let ao = parseIntValue(al[3])
305- let az = ((am + an) + ao)
305+ let aA = ((am + an) + ao)
306306 let aa = n(f)
307- let aA = V()
308- let T = aA._1
309- let aB = aA._2
310- let U = aA._3
311- let aC = [am, an, ao]
312- let av = if ((aa > az))
313- then nil
314- else if ((an == max(aC)))
315- then [StringEntry("foo", "NONE"), IntegerEntry("bar", aB)]
316- else if ((am == max(aC)))
317- then [StringEntry("foo", "INC"), IntegerEntry("bar", T)]
318- else [StringEntry("foo", "DEC"), IntegerEntry("bar", U)]
319- (av ++ [IntegerEntry(o(), height)])
307+ let aB = V()
308+ let T = aB._1
309+ let aC = aB._2
310+ let U = aB._3
311+ let aD = [am, an, ao]
312+ let aE = if (if ((aa > aA))
313+ then true
314+ else (an == max(aD)))
315+ then unit
316+ else if ((am == max(aD)))
317+ then T
318+ else U
319+ let aF = {
320+ let E = aE
321+ if ($isInstanceOf(E, "Int"))
322+ then {
323+ let aG = E
324+ invoke(A, "changeRatePerBlock", [aG], nil)
325+ }
326+ else unit
327+ }
328+ if ((aF == aF))
329+ then [IntegerEntry(o(), height), StringEntry(p(), q("0", "0", "0"))]
330+ else throw("Strict value is not equal to itself.")
320331 }
321332 else throw("Strict value is not equal to itself.")
322333 }
323334
324335

github/deemru/w8io/169f3d6 
62.57 ms