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