tx · N3A7LTRZkq68FhKbLU5XXyb9YRLfFRFXtv4MrBrpqs7 3MuqubsQAq9mrsN65SePHeThcN3JVAbgZ9d: -0.01500000 Waves 2023.08.16 14:12 [2713052] smart account 3MuqubsQAq9mrsN65SePHeThcN3JVAbgZ9d > SELF 0.00000000 Waves
{ "type": 13, "id": "N3A7LTRZkq68FhKbLU5XXyb9YRLfFRFXtv4MrBrpqs7", "fee": 1500000, "feeAssetId": null, "timestamp": 1692184324049, "version": 2, "chainId": 84, "sender": "3MuqubsQAq9mrsN65SePHeThcN3JVAbgZ9d", "senderPublicKey": "GWTozVWP9MvUxrEuz1BPrNAbtLYAec9LrT4U82jWG6KX", "proofs": [ "A5c8CFo7jeEq1nANPJme7Cuv1CxJj6WBrpG3JpNNevDiwCWtuLXZBvuHQU4bKwqmSyzzuWVN51QpXUmjWcFuAWK" ], "script": "base64:BgIhCAISCAoGCAgIAQEBEgASAwoBARIAEgMKAQESABIDCgEIIQAJc2VwYXJhdG9yAgJfXwAQY29udHJhY3RGaWxlbmFtZQIZdm90aW5nX2VtaXNzaW9uX3JhdGUucmlkZQATREVGQVVMVF9FUE9DSF9DT1VOVAAEAA5rZXlFcG9jaExlbmd0aAkAuQkCCQDMCAICAiVzCQDMCAICC2Vwb2NoTGVuZ3RoBQNuaWwFCXNlcGFyYXRvcgATa2V5RW1pc3Npb25Db250cmFjdAkAuQkCCQDMCAICAiVzCQDMCAICEGVtaXNzaW9uQ29udHJhY3QFA25pbAUJc2VwYXJhdG9yABlrZXlWb3RpbmdFbWlzc2lvbkNvbnRyYWN0CQC5CQIJAMwIAgICJXMJAMwIAgIWdm90aW5nRW1pc3Npb25Db250cmFjdAUDbmlsBQlzZXBhcmF0b3IAE2tleUJvb3N0aW5nQ29udHJhY3QJALkJAgkAzAgCAgIlcwkAzAgCAhBib29zdGluZ0NvbnRyYWN0BQNuaWwFCXNlcGFyYXRvcgAMa2V5VGhyZXNob2xkCQC5CQIJAMwIAgICJXMJAMwIAgIPdm90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leU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCcGsFByRtYXRjaDAFAnBrAwkAAQIFByRtYXRjaDACBFVuaXQIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V59dAdIQ==", "height": 2713052, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cb7QST4hcfjiVuWc3YBMLKmSrkGpyWwroqHHRiSQfKjz Next: ExZC2eVXxqQFAGtvkHsd1w49UzxSP6osqz2P9gzcZDts Diff:
Old | New | Differences | |
---|---|---|---|
332 | 332 | } | |
333 | 333 | ||
334 | 334 | ||
335 | - | @Verifier(aN) | |
336 | - | func aO () = { | |
337 | - | let aP = { | |
335 | + | ||
336 | + | @Callable(N) | |
337 | + | func getLockedGwxAmount (aN) = { | |
338 | + | let z = getIntegerValue(l) | |
339 | + | let B = { | |
340 | + | let J = getString(this, x(aN, z)) | |
341 | + | if ($isInstanceOf(J, "Unit")) | |
342 | + | then 0 | |
343 | + | else if ($isInstanceOf(J, "String")) | |
344 | + | then { | |
345 | + | let p = J | |
346 | + | valueOrElse(parseInt(split(p, a)[1]), 0) | |
347 | + | } | |
348 | + | else throw("Match error") | |
349 | + | } | |
350 | + | $Tuple2(nil, B) | |
351 | + | } | |
352 | + | ||
353 | + | ||
354 | + | @Verifier(aO) | |
355 | + | func aP () = { | |
356 | + | let aQ = { | |
338 | 357 | let J = K() | |
339 | 358 | if ($isInstanceOf(J, "ByteVector")) | |
340 | 359 | then { | |
342 | 361 | O | |
343 | 362 | } | |
344 | 363 | else if ($isInstanceOf(J, "Unit")) | |
345 | - | then | |
364 | + | then aO.senderPublicKey | |
346 | 365 | else throw("Match error") | |
347 | 366 | } | |
348 | - | sigVerify( | |
367 | + | sigVerify(aO.bodyBytes, aO.proofs[0], aQ) | |
349 | 368 | } | |
350 | 369 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "voting_emission_rate.ride" | |
7 | 7 | ||
8 | 8 | let c = 4 | |
9 | 9 | ||
10 | 10 | let d = makeString(["%s", "epochLength"], a) | |
11 | 11 | ||
12 | 12 | let e = makeString(["%s", "emissionContract"], a) | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s", "votingEmissionContract"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s", "boostingContract"], a) | |
17 | 17 | ||
18 | 18 | let h = makeString(["%s", "votingThreshold"], a) | |
19 | 19 | ||
20 | 20 | let i = makeString(["%s%s", "ratePerBlock", "current"], a) | |
21 | 21 | ||
22 | 22 | let j = makeString(["%s%s", "ratePerBlockMax", "current"], a) | |
23 | 23 | ||
24 | 24 | let k = makeString(["%s", "rateChangeStep"], a) | |
25 | 25 | ||
26 | 26 | let l = makeString(["%s", "startHeight"], a) | |
27 | 27 | ||
28 | 28 | let m = makeString(["%s", "votingResult"], a) | |
29 | 29 | ||
30 | 30 | let n = makeString(["%s", "votingEmissionEpochCount"], a) | |
31 | 31 | ||
32 | 32 | func o (p) = throw(((b + ": ") + p)) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func q (r) = valueOrErrorMessage(getString(this, r), (r + " is not defined")) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func s (r) = valueOrErrorMessage(getInteger(this, r), (r + " is not defined")) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func t (u,v,w) = makeString(["%d%d%d", u, v, w], a) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func x (y,z) = makeString(["%s%s%d", "vote", y, toString(z)], a) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func A (B,C) = { | |
48 | 48 | let r = if ((C == 1)) | |
49 | 49 | then makeString(["%d%s", B, "increase"], a) | |
50 | 50 | else if ((C == -1)) | |
51 | 51 | then makeString(["%d%s", B, "decrease"], a) | |
52 | 52 | else makeString(["%d%s", B, "current"], a) | |
53 | 53 | r | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | let D = addressFromStringValue(q(g)) | |
58 | 58 | ||
59 | 59 | let E = addressFromStringValue(q(e)) | |
60 | 60 | ||
61 | 61 | let F = addressFromStringValue(q(f)) | |
62 | 62 | ||
63 | 63 | func G () = "%s__managerPublicKey" | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func H () = "%s__managerVaultAddress" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func I () = { | |
70 | 70 | let J = getString(H()) | |
71 | 71 | if ($isInstanceOf(J, "String")) | |
72 | 72 | then { | |
73 | 73 | let p = J | |
74 | 74 | addressFromStringValue(p) | |
75 | 75 | } | |
76 | 76 | else this | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func K () = { | |
81 | 81 | let L = I() | |
82 | 82 | let J = getString(L, G()) | |
83 | 83 | if ($isInstanceOf(J, "String")) | |
84 | 84 | then { | |
85 | 85 | let p = J | |
86 | 86 | fromBase58String(p) | |
87 | 87 | } | |
88 | 88 | else if ($isInstanceOf(J, "Unit")) | |
89 | 89 | then unit | |
90 | 90 | else throw("Match error") | |
91 | 91 | } | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func M (N) = { | |
95 | 95 | let J = K() | |
96 | 96 | if ($isInstanceOf(J, "ByteVector")) | |
97 | 97 | then { | |
98 | 98 | let O = J | |
99 | 99 | (N.callerPublicKey == O) | |
100 | 100 | } | |
101 | 101 | else if ($isInstanceOf(J, "Unit")) | |
102 | 102 | then (N.caller == this) | |
103 | 103 | else throw("Match error") | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func P (N) = if (M(N)) | |
108 | 108 | then true | |
109 | 109 | else o("permission denied") | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func Q (R) = { | |
113 | 113 | let J = R | |
114 | 114 | if ($isInstanceOf(J, "Int")) | |
115 | 115 | then { | |
116 | 116 | let S = J | |
117 | 117 | S | |
118 | 118 | } | |
119 | 119 | else o("failed to cast into Integer") | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func T (U,V,W) = { | |
124 | 124 | let X = fraction(100, U, 120) | |
125 | 125 | let Y = min([fraction((100 + W), V, 100), X]) | |
126 | 126 | let Z = max([fraction((100 - W), V, 100), 0]) | |
127 | 127 | $Tuple3(Y, V, Z) | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func aa () = { | |
132 | 132 | let U = getIntegerValue(E, j) | |
133 | 133 | let V = getIntegerValue(E, i) | |
134 | 134 | let ab = getIntegerValue(this, k) | |
135 | 135 | T(U, V, ab) | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func ac (F) = { | |
140 | 140 | let ad = getIntegerValue(F, d) | |
141 | 141 | let ae = getIntegerValue(F, l) | |
142 | 142 | let af = valueOrElse(getInteger(this, n), c) | |
143 | 143 | (((ae + (ad * af)) - height) - 1) | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | @Callable(N) | |
148 | 148 | func constructor (ag,ah,ai,aj,ab,af) = { | |
149 | 149 | let ak = [P(N), if (isDefined(addressFromString(ag))) | |
150 | 150 | then true | |
151 | 151 | else o("Invalid boosting contract address"), if (isDefined(addressFromString(ah))) | |
152 | 152 | then true | |
153 | 153 | else o("Invalid emission contract address"), if (isDefined(addressFromString(ai))) | |
154 | 154 | then true | |
155 | 155 | else o("Invalid emission contract address"), if ((aj > 0)) | |
156 | 156 | then true | |
157 | 157 | else o("invalid threshold"), if ((ab > 0)) | |
158 | 158 | then true | |
159 | 159 | else o("invalid rateChangeStep"), if ((af > 0)) | |
160 | 160 | then true | |
161 | 161 | else o("invalid votingEmissionEpochCount")] | |
162 | 162 | if ((ak == ak)) | |
163 | 163 | then { | |
164 | 164 | let al = addressFromStringValue(ai) | |
165 | 165 | $Tuple2([StringEntry(g, ag), StringEntry(e, ah), StringEntry(f, ai), IntegerEntry(d, ac(al)), IntegerEntry(h, aj), IntegerEntry(k, ab), IntegerEntry(n, af), IntegerEntry(l, height), StringEntry(m, t("0", "0", "0"))], unit) | |
166 | 166 | } | |
167 | 167 | else throw("Strict value is not equal to itself.") | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(N) | |
173 | 173 | func getRateChangeAmountsREADONLY () = $Tuple2(nil, aa()) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | ||
177 | 177 | @Callable(N) | |
178 | 178 | func vote (am) = { | |
179 | 179 | let z = getIntegerValue(l) | |
180 | 180 | let an = (z + getIntegerValue(d)) | |
181 | 181 | let ao = toString(N.caller) | |
182 | 182 | let ak = [if ((an > height)) | |
183 | 183 | then true | |
184 | 184 | else o("too late to vote"), if (containsElement([1, 0, -1], am)) | |
185 | 185 | then true | |
186 | 186 | else o("not valid argument"), if (!(isDefined(getString(x(ao, z))))) | |
187 | 187 | then true | |
188 | 188 | else o("you already voted")] | |
189 | 189 | if ((ak == ak)) | |
190 | 190 | then { | |
191 | 191 | let B = invoke(D, "getUserGwxAmountAtHeightREADONLY", [ao, an], nil) | |
192 | 192 | let ap = if ((Q(B) > 0)) | |
193 | 193 | then true | |
194 | 194 | else o("you don't have gwx") | |
195 | 195 | if ((ap == ap)) | |
196 | 196 | then { | |
197 | 197 | let aq = split(getStringValue(m), a) | |
198 | 198 | let ar = aq[1] | |
199 | 199 | let as = aq[2] | |
200 | 200 | let at = aq[3] | |
201 | 201 | let au = if ((am == 1)) | |
202 | 202 | then { | |
203 | 203 | let av = (parseIntValue(ar) + Q(B)) | |
204 | 204 | [toString(av), as, at] | |
205 | 205 | } | |
206 | 206 | else if ((am == -1)) | |
207 | 207 | then { | |
208 | 208 | let aw = (parseIntValue(at) + Q(B)) | |
209 | 209 | [ar, as, toString(aw)] | |
210 | 210 | } | |
211 | 211 | else { | |
212 | 212 | let ax = (parseIntValue(as) + Q(B)) | |
213 | 213 | [ar, toString(ax), at] | |
214 | 214 | } | |
215 | 215 | let ay = x(toString(N.caller), z) | |
216 | 216 | let az = A(toString(Q(B)), am) | |
217 | 217 | $Tuple2([StringEntry(m, t(au[0], au[1], au[2])), StringEntry(ay, az)], unit) | |
218 | 218 | } | |
219 | 219 | else throw("Strict value is not equal to itself.") | |
220 | 220 | } | |
221 | 221 | else throw("Strict value is not equal to itself.") | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | ||
226 | 226 | @Callable(N) | |
227 | 227 | func cancelVote () = { | |
228 | 228 | let z = getIntegerValue(l) | |
229 | 229 | let an = (z + getIntegerValue(d)) | |
230 | 230 | let ao = if ((N.caller == this)) | |
231 | 231 | then toString(N.originCaller) | |
232 | 232 | else toString(N.caller) | |
233 | 233 | let ak = [if ((an > height)) | |
234 | 234 | then true | |
235 | 235 | else o("too late to cancel vote"), if (isDefined(getString(m))) | |
236 | 236 | then true | |
237 | 237 | else o("no vote"), if (isDefined(getString(x(ao, z)))) | |
238 | 238 | then true | |
239 | 239 | else o("no user vote")] | |
240 | 240 | if ((ak == ak)) | |
241 | 241 | then { | |
242 | 242 | let C = split(getStringValue(x(ao, z)), a) | |
243 | 243 | let az = C[1] | |
244 | 244 | let aA = C[2] | |
245 | 245 | let aq = split(getStringValue(m), a) | |
246 | 246 | let ar = aq[1] | |
247 | 247 | let as = aq[2] | |
248 | 248 | let at = aq[3] | |
249 | 249 | let aB = if ((aA == "increase")) | |
250 | 250 | then { | |
251 | 251 | let av = (parseIntValue(ar) - parseIntValue(az)) | |
252 | 252 | [StringEntry(m, t(toString(av), as, at))] | |
253 | 253 | } | |
254 | 254 | else if ((aA == "decrease")) | |
255 | 255 | then { | |
256 | 256 | let aw = (parseIntValue(at) - parseIntValue(az)) | |
257 | 257 | [StringEntry(m, t(ar, as, toString(aw)))] | |
258 | 258 | } | |
259 | 259 | else { | |
260 | 260 | let ax = (parseIntValue(as) - parseIntValue(az)) | |
261 | 261 | [StringEntry(m, t(ar, toString(ax), at))] | |
262 | 262 | } | |
263 | 263 | let aC = [DeleteEntry(x(ao, z))] | |
264 | 264 | (aB ++ aC) | |
265 | 265 | } | |
266 | 266 | else throw("Strict value is not equal to itself.") | |
267 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | ||
271 | 271 | @Callable(N) | |
272 | 272 | func setThreshold (aD) = { | |
273 | 273 | let ak = [P(N), if ((aD > 0)) | |
274 | 274 | then true | |
275 | 275 | else o("invalid threshold")] | |
276 | 276 | if ((ak == ak)) | |
277 | 277 | then $Tuple2([IntegerEntry(h, aD)], unit) | |
278 | 278 | else throw("Strict value is not equal to itself.") | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | ||
283 | 283 | @Callable(N) | |
284 | 284 | func finalize () = { | |
285 | 285 | let aE = if (if ((N.caller == F)) | |
286 | 286 | then true | |
287 | 287 | else P(N)) | |
288 | 288 | then true | |
289 | 289 | else o("Permission denied") | |
290 | 290 | if ((aE == aE)) | |
291 | 291 | then { | |
292 | 292 | let an = (getIntegerValue(l) + value(getInteger(d))) | |
293 | 293 | if ((height >= an)) | |
294 | 294 | then { | |
295 | 295 | let aq = split(value(getString(m)), a) | |
296 | 296 | let ar = parseIntValue(aq[1]) | |
297 | 297 | let as = parseIntValue(aq[2]) | |
298 | 298 | let at = parseIntValue(aq[3]) | |
299 | 299 | let aF = ((ar + as) + at) | |
300 | 300 | let aj = s(h) | |
301 | 301 | let aG = aa() | |
302 | 302 | let Y = aG._1 | |
303 | 303 | let aH = aG._2 | |
304 | 304 | let Z = aG._3 | |
305 | 305 | let aI = [ar, as, at] | |
306 | 306 | let aJ = if (if ((aj > aF)) | |
307 | 307 | then true | |
308 | 308 | else (as == max(aI))) | |
309 | 309 | then unit | |
310 | 310 | else if ((ar == max(aI))) | |
311 | 311 | then Y | |
312 | 312 | else Z | |
313 | 313 | let aK = { | |
314 | 314 | let J = aJ | |
315 | 315 | if ($isInstanceOf(J, "Int")) | |
316 | 316 | then { | |
317 | 317 | let aL = J | |
318 | 318 | let aM = invoke(E, "changeRatePerBlock", [aL], nil) | |
319 | 319 | if ((aM == aM)) | |
320 | 320 | then aM | |
321 | 321 | else throw("Strict value is not equal to itself.") | |
322 | 322 | } | |
323 | 323 | else unit | |
324 | 324 | } | |
325 | 325 | if ((aK == aK)) | |
326 | 326 | then [IntegerEntry(l, height), IntegerEntry(d, ac(F)), StringEntry(m, t("0", "0", "0"))] | |
327 | 327 | else throw("Strict value is not equal to itself.") | |
328 | 328 | } | |
329 | 329 | else nil | |
330 | 330 | } | |
331 | 331 | else throw("Strict value is not equal to itself.") | |
332 | 332 | } | |
333 | 333 | ||
334 | 334 | ||
335 | - | @Verifier(aN) | |
336 | - | func aO () = { | |
337 | - | let aP = { | |
335 | + | ||
336 | + | @Callable(N) | |
337 | + | func getLockedGwxAmount (aN) = { | |
338 | + | let z = getIntegerValue(l) | |
339 | + | let B = { | |
340 | + | let J = getString(this, x(aN, z)) | |
341 | + | if ($isInstanceOf(J, "Unit")) | |
342 | + | then 0 | |
343 | + | else if ($isInstanceOf(J, "String")) | |
344 | + | then { | |
345 | + | let p = J | |
346 | + | valueOrElse(parseInt(split(p, a)[1]), 0) | |
347 | + | } | |
348 | + | else throw("Match error") | |
349 | + | } | |
350 | + | $Tuple2(nil, B) | |
351 | + | } | |
352 | + | ||
353 | + | ||
354 | + | @Verifier(aO) | |
355 | + | func aP () = { | |
356 | + | let aQ = { | |
338 | 357 | let J = K() | |
339 | 358 | if ($isInstanceOf(J, "ByteVector")) | |
340 | 359 | then { | |
341 | 360 | let O = J | |
342 | 361 | O | |
343 | 362 | } | |
344 | 363 | else if ($isInstanceOf(J, "Unit")) | |
345 | - | then | |
364 | + | then aO.senderPublicKey | |
346 | 365 | else throw("Match error") | |
347 | 366 | } | |
348 | - | sigVerify( | |
367 | + | sigVerify(aO.bodyBytes, aO.proofs[0], aQ) | |
349 | 368 | } | |
350 | 369 |
github/deemru/w8io/026f985 71.92 ms ◑