tx · DpmvtTasrt98ejUqEgP7ocHmstWxCAMJf5kLLgK9RQnz 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh: -0.01000000 Waves 2023.05.17 10:52 [2581673] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves
{ "type": 13, "id": "DpmvtTasrt98ejUqEgP7ocHmstWxCAMJf5kLLgK9RQnz", "fee": 1000000, "feeAssetId": null, "timestamp": 1684309944443, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "2XQhZT4ccmAQXfHaET3xT8eBHyCATenN5jiBPCLcHhzJ9cfSVUCYLS88MXrVR2aL5qPaJ6aMRG8YZKrm7zDzj9qn" ], "script": "base64:BgIbCAISBwoFCAgBAQESABIDCgEBEgASAwoBARIAGQAJc2VwYXJhdG9yAgJfXwAOa2V5RXBvY2hMZW5ndGgJALkJAgkAzAgCAgIlcwkAzAgCAgtlcG9jaExlbmd0aAUDbmlsBQlzZXBhcmF0b3IAE2tleUVtaXNzaW9uQ29udHJhY3QJALkJAgkAzAgCAgIlcwkAzAgCAhBlbWlzc2lvbkNvbnRyYWN0BQNuaWwFCXNlcGFyYXRvcgATa2V5Qm9vc3RpbmdDb250cmFjdAkAuQkCCQDMCAICAiVzCQDMCAICEGJvb3N0aW5nQ29udHJhY3QFA25pbAUJc2VwYXJhdG9yAAxrZXlUaHJlc2hvbGQJALkJAgkAzAgCAgIlcwkAzAgCAg92b3RpbmdUaHJlc2hvbGQFA25pbAUJc2VwYXJhdG9yAA9rZXlSYXRlUGVyQmxvY2sJALkJAgkAzAgCAgQlcyVzCQDMCAICDHJhdGVQZXJCbG9jawkAzAgCAgdjdXJyZW50BQNuaWwFCXNlcGFyYXRvcgASa2V5UmF0ZVBlckJsb2NrTWF4CQC5CQIJAMwIAgIEJXMlcwkA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j6QFirWw72dUrnBugoEkG5231xGq Diff:
Old | New | Differences | |
---|---|---|---|
131 | 131 | then true | |
132 | 132 | else throw("invalid rateChangeStep")] | |
133 | 133 | if ((Y == Y)) | |
134 | - | then $Tuple2([StringEntry(d, T), StringEntry(c, U), IntegerEntry(b, V), IntegerEntry(e, W), IntegerEntry(h, X), IntegerEntry(l(), height), StringEntry(m(), | |
134 | + | then $Tuple2([StringEntry(d, T), StringEntry(c, U), IntegerEntry(b, V), IntegerEntry(e, W), IntegerEntry(h, X), IntegerEntry(l(), height), StringEntry(m(), n("0", "0", "0"))], unit) | |
135 | 135 | else throw("Strict value is not equal to itself.") | |
136 | 136 | } | |
137 | 137 |
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 = makeString(["%s", "epochLength"], a) | |
7 | 7 | ||
8 | 8 | let c = makeString(["%s", "emissionContract"], a) | |
9 | 9 | ||
10 | 10 | let d = makeString(["%s", "boostingContract"], a) | |
11 | 11 | ||
12 | 12 | let e = makeString(["%s", "votingThreshold"], a) | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s%s", "ratePerBlock", "current"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s%s", "ratePerBlockMax", "current"], a) | |
17 | 17 | ||
18 | 18 | let h = makeString(["%s", "rateChangeStep"], a) | |
19 | 19 | ||
20 | 20 | func i (j) = valueOrErrorMessage(getString(this, j), (j + " is not defined")) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func k (j) = valueOrErrorMessage(getInteger(this, j), (j + " is not defined")) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func l () = makeString(["%s", "startHeight"], a) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func m () = makeString(["%s", "votingResult"], a) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func n (o,p,q) = makeString(["%d%d%d", o, p, q], a) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func r (s) = makeString(["%s%s", "vote", s], a) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func t (u,v) = { | |
39 | 39 | let j = if ((v == 1)) | |
40 | 40 | then makeString(["%d%s", u, "increase"], a) | |
41 | 41 | else if ((v == -1)) | |
42 | 42 | then makeString(["%d%s", u, "decrease"], a) | |
43 | 43 | else makeString(["%d%s", u, "none"], a) | |
44 | 44 | j | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | let w = addressFromStringValue(i(d)) | |
49 | 49 | ||
50 | 50 | let x = addressFromStringValue(i(c)) | |
51 | 51 | ||
52 | 52 | func y () = "%s__managerPublicKey" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func z () = "%s__managerVaultAddress" | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func A () = { | |
59 | 59 | let B = getString(z()) | |
60 | 60 | if ($isInstanceOf(B, "String")) | |
61 | 61 | then { | |
62 | 62 | let C = B | |
63 | 63 | addressFromStringValue(C) | |
64 | 64 | } | |
65 | 65 | else this | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func D () = { | |
70 | 70 | let E = A() | |
71 | 71 | let B = getString(E, y()) | |
72 | 72 | if ($isInstanceOf(B, "String")) | |
73 | 73 | then { | |
74 | 74 | let C = B | |
75 | 75 | fromBase58String(C) | |
76 | 76 | } | |
77 | 77 | else if ($isInstanceOf(B, "Unit")) | |
78 | 78 | then unit | |
79 | 79 | else throw("Match error") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func F (G) = { | |
84 | 84 | let B = D() | |
85 | 85 | if ($isInstanceOf(B, "ByteVector")) | |
86 | 86 | then { | |
87 | 87 | let H = B | |
88 | 88 | (G.callerPublicKey == H) | |
89 | 89 | } | |
90 | 90 | else if ($isInstanceOf(B, "Unit")) | |
91 | 91 | then (G.caller == this) | |
92 | 92 | else throw("Match error") | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func I (G) = if (F(G)) | |
97 | 97 | then true | |
98 | 98 | else throw("permission denied") | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func J (K) = { | |
102 | 102 | let B = K | |
103 | 103 | if ($isInstanceOf(B, "Int")) | |
104 | 104 | then { | |
105 | 105 | let L = B | |
106 | 106 | L | |
107 | 107 | } | |
108 | 108 | else throw("failed to cast into Integer") | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func M (N,O,P) = { | |
113 | 113 | let Q = fraction(100, N, 120) | |
114 | 114 | let R = min([fraction((100 + P), O, 100), Q]) | |
115 | 115 | let S = max([fraction((100 - P), O, 100), 0]) | |
116 | 116 | $Tuple3(R, O, S) | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | @Callable(G) | |
121 | 121 | func constructor (T,U,V,W,X) = { | |
122 | 122 | let Y = [if (isDefined(addressFromString(T))) | |
123 | 123 | then true | |
124 | 124 | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(U))) | |
125 | 125 | then true | |
126 | 126 | else throw("Invalid emission contract address"), if ((V > 0)) | |
127 | 127 | then true | |
128 | 128 | else throw("Invalid voting duration"), if ((W > 0)) | |
129 | 129 | then true | |
130 | 130 | else throw("invalid threshold"), if ((X > 0)) | |
131 | 131 | then true | |
132 | 132 | else throw("invalid rateChangeStep")] | |
133 | 133 | if ((Y == Y)) | |
134 | - | then $Tuple2([StringEntry(d, T), StringEntry(c, U), IntegerEntry(b, V), IntegerEntry(e, W), IntegerEntry(h, X), IntegerEntry(l(), height), StringEntry(m(), | |
134 | + | then $Tuple2([StringEntry(d, T), StringEntry(c, U), IntegerEntry(b, V), IntegerEntry(e, W), IntegerEntry(h, X), IntegerEntry(l(), height), StringEntry(m(), n("0", "0", "0"))], unit) | |
135 | 135 | else throw("Strict value is not equal to itself.") | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(G) | |
141 | 141 | func getRateChangeAmountsREADONLY () = { | |
142 | 142 | let N = getIntegerValue(x, g) | |
143 | 143 | let O = getIntegerValue(x, f) | |
144 | 144 | let X = getIntegerValue(this, h) | |
145 | 145 | $Tuple2(nil, M(N, O, X)) | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | ||
150 | 150 | @Callable(G) | |
151 | 151 | func vote (Z) = { | |
152 | 152 | let aa = (value(getInteger(l())) + value(getInteger(b))) | |
153 | 153 | let Y = [if ((aa > height)) | |
154 | 154 | then true | |
155 | 155 | else throw("too late to vote"), if (containsElement([1, 0, -1], Z)) | |
156 | 156 | then true | |
157 | 157 | else throw("not valid argument")] | |
158 | 158 | if ((Y == Y)) | |
159 | 159 | then { | |
160 | 160 | let u = invoke(w, "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), aa], nil) | |
161 | 161 | let ab = if ((J(u) > 0)) | |
162 | 162 | then true | |
163 | 163 | else throw("you don't have gwx") | |
164 | 164 | if ((ab == ab)) | |
165 | 165 | then { | |
166 | 166 | let v = { | |
167 | 167 | let B = getString(r(toString(G.caller))) | |
168 | 168 | if ($isInstanceOf(B, "String")) | |
169 | 169 | then { | |
170 | 170 | let C = B | |
171 | 171 | let v = split(C, a) | |
172 | 172 | let ac = v[1] | |
173 | 173 | let ad = v[2] | |
174 | 174 | let ae = if (if (if ((ad == "increase")) | |
175 | 175 | then (Z == 1) | |
176 | 176 | else false) | |
177 | 177 | then true | |
178 | 178 | else if ((ad == "decrease")) | |
179 | 179 | then (Z == -1) | |
180 | 180 | else false) | |
181 | 181 | then true | |
182 | 182 | else if ((ad == "none")) | |
183 | 183 | then (Z == 0) | |
184 | 184 | else false | |
185 | 185 | let af = if (ae) | |
186 | 186 | then (J(u) == parseIntValue(ac)) | |
187 | 187 | else false | |
188 | 188 | let ag = if (if (ae) | |
189 | 189 | then af | |
190 | 190 | else false) | |
191 | 191 | then throw("you already voted") | |
192 | 192 | else invoke(this, "cancelVote", nil, nil) | |
193 | 193 | ag | |
194 | 194 | } | |
195 | 195 | else if ($isInstanceOf(B, "Unit")) | |
196 | 196 | then { | |
197 | 197 | let ah = B | |
198 | 198 | ah | |
199 | 199 | } | |
200 | 200 | else throw("Match error") | |
201 | 201 | } | |
202 | 202 | if ((v == v)) | |
203 | 203 | then { | |
204 | 204 | let ai = split(value(getString(m())), a) | |
205 | 205 | let aj = ai[1] | |
206 | 206 | let ak = ai[2] | |
207 | 207 | let al = ai[3] | |
208 | 208 | let am = if ((Z == 1)) | |
209 | 209 | then { | |
210 | 210 | let an = (parseIntValue(aj) + J(u)) | |
211 | 211 | [toString(an), ak, al] | |
212 | 212 | } | |
213 | 213 | else if ((Z == -1)) | |
214 | 214 | then { | |
215 | 215 | let ao = (parseIntValue(ak) + J(u)) | |
216 | 216 | [aj, ak, toString(ao)] | |
217 | 217 | } | |
218 | 218 | else { | |
219 | 219 | let ap = (parseIntValue(ak) + J(u)) | |
220 | 220 | [aj, toString(ap), al] | |
221 | 221 | } | |
222 | 222 | let aq = r(toString(G.caller)) | |
223 | 223 | let ac = t(toString(J(u)), Z) | |
224 | 224 | $Tuple2([StringEntry(m(), n(am[0], am[1], am[2])), StringEntry(aq, ac)], unit) | |
225 | 225 | } | |
226 | 226 | else throw("Strict value is not equal to itself.") | |
227 | 227 | } | |
228 | 228 | else throw("Strict value is not equal to itself.") | |
229 | 229 | } | |
230 | 230 | else throw("Strict value is not equal to itself.") | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | ||
235 | 235 | @Callable(G) | |
236 | 236 | func cancelVote () = { | |
237 | 237 | let ar = if ((G.caller == this)) | |
238 | 238 | then toString(G.originCaller) | |
239 | 239 | else toString(G.caller) | |
240 | 240 | let Y = [if (isDefined(getString(m()))) | |
241 | 241 | then true | |
242 | 242 | else throw("no vote")] | |
243 | 243 | if ((Y == Y)) | |
244 | 244 | then { | |
245 | 245 | let v = split(value(getString(r(ar))), a) | |
246 | 246 | let ac = v[1] | |
247 | 247 | let ad = v[2] | |
248 | 248 | let ai = split(value(getString(m())), a) | |
249 | 249 | let aj = ai[1] | |
250 | 250 | let ak = ai[2] | |
251 | 251 | let al = ai[3] | |
252 | 252 | let as = if ((ad == "increase")) | |
253 | 253 | then { | |
254 | 254 | let at = (parseIntValue(aj) - parseIntValue(ac)) | |
255 | 255 | $Tuple2([StringEntry(m(), n(toString(at), ak, al)), DeleteEntry(r(ar))], unit) | |
256 | 256 | } | |
257 | 257 | else if ((ad == "decrease")) | |
258 | 258 | then { | |
259 | 259 | let au = (parseIntValue(al) - parseIntValue(ac)) | |
260 | 260 | $Tuple2([StringEntry(m(), n(aj, ak, toString(au))), DeleteEntry(r(ar))], unit) | |
261 | 261 | } | |
262 | 262 | else { | |
263 | 263 | let ap = (parseIntValue(ak) - parseIntValue(ac)) | |
264 | 264 | $Tuple2([StringEntry(m(), n(aj, toString(ap), al)), DeleteEntry(r(ar))], unit) | |
265 | 265 | } | |
266 | 266 | as | |
267 | 267 | } | |
268 | 268 | else throw("Strict value is not equal to itself.") | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | ||
273 | 273 | @Callable(G) | |
274 | 274 | func setThreshold (av) = { | |
275 | 275 | let Y = [I(G), if ((av > 0)) | |
276 | 276 | then true | |
277 | 277 | else throw("invalid threshold")] | |
278 | 278 | if ((Y == Y)) | |
279 | 279 | then $Tuple2([IntegerEntry(e, av)], unit) | |
280 | 280 | else throw("Strict value is not equal to itself.") | |
281 | 281 | } | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | ||
285 | 285 | @Callable(G) | |
286 | 286 | func finalize () = { | |
287 | 287 | let aa = (value(getInteger(l())) + value(getInteger(b))) | |
288 | 288 | let Y = [if ((height >= aa)) | |
289 | 289 | then true | |
290 | 290 | else throw("insufficient height for completion")] | |
291 | 291 | if ((Y == Y)) | |
292 | 292 | then { | |
293 | 293 | let ai = split(value(getString(m())), a) | |
294 | 294 | let aj = parseIntValue(ai[1]) | |
295 | 295 | let ak = parseIntValue(ai[2]) | |
296 | 296 | let al = parseIntValue(ai[3]) | |
297 | 297 | let aw = ((aj + ak) + al) | |
298 | 298 | let W = k(e) | |
299 | 299 | let as = if (if ((aw >= W)) | |
300 | 300 | then true | |
301 | 301 | else false) | |
302 | 302 | then nil | |
303 | 303 | else nil | |
304 | 304 | as | |
305 | 305 | } | |
306 | 306 | else throw("Strict value is not equal to itself.") | |
307 | 307 | } | |
308 | 308 | ||
309 | 309 |
github/deemru/w8io/026f985 38.18 ms ◑