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:BgIbCAISBwoFCAgIAQESABIDCgEBEgASAwoBARIAIAAJc2VwYXJhdG9yAgJfXwAQY29udHJhY3RGaWxlbmFtZQIZdm90aW5nX2VtaXNzaW9uX3JhdGUucmlkZQALRVBPQ0hfQ09VTlQABAAOa2V5RXBvY2hMZW5ndGgJALkJAgkAzAgCAgIlcwkAzAgCAgtlcG9jaExlbmd0aAUDbmlsBQlzZXBhcmF0b3IAE2tleUVtaXNzaW9uQ29udHJhY3QJALkJAgkAzAgCAgIlcwkAzAgCAhBlbWlzc2lvbkNvbnRyYWN0BQNuaWwFCXNlcGFyYXRvcgAZa2V5Vm90aW5nRW1pc3Npb25Db250cmFjdAkAuQkCCQDMCAICAiVzCQDMCAICFnZvdGluZ0VtaXNzaW9uQ29udHJhY3QFA25pbAUJc2VwYXJhdG9yABNrZXlCb29zdGluZ0NvbnRyYWN0CQC5CQIJAMwIAgICJXMJAMwIAgIQYm9vc3RpbmdDb250cmFjdAUDbmlsBQlzZXBhcmF0b3IADGtleVRocmVzaG9sZAkAuQkCCQDMCAICAiVzCQDMCAICD3ZvdGluZ1RocmVzaG9sZAUD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CQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXkBPHYX", "height": 2602129, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6vhLGh96MbmdqQWmujMthfGUM6XwRatwQJYQ9mMgmP58 Next: CvjWeA2JMAzanMMp8WVvmZKEZ4wg5uCKufHnVdJNLPtn 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 = 4
99
1010 let d = makeString(["%s", "epochLength"], a)
1111
1212 let e = makeString(["%s", "emissionContract"], a)
1313
1414 let f = makeString(["%s", "votingEmissionContract"], a)
1515
1616 let g = makeString(["%s", "boostingContract"], a)
1717
1818 let h = makeString(["%s", "votingThreshold"], a)
1919
2020 let i = makeString(["%s%s", "ratePerBlock", "current"], a)
2121
2222 let j = makeString(["%s%s", "ratePerBlockMax", "current"], a)
2323
2424 let k = makeString(["%s", "rateChangeStep"], a)
2525
2626 let l = makeString(["%s", "startHeight"], a)
2727
2828 let m = makeString(["%s", "votingResult"], a)
2929
3030 func n (o) = throw(((b + ": ") + o))
3131
3232
3333 func p (q) = valueOrErrorMessage(getString(this, q), (q + " is not defined"))
3434
3535
3636 func r (q) = valueOrErrorMessage(getInteger(this, q), (q + " is not defined"))
3737
3838
3939 func s (t,u,v) = makeString(["%d%d%d", t, u, v], a)
4040
4141
4242 func w (x,y) = makeString(["%s%s%d", "vote", x, toString(y)], a)
4343
4444
4545 func z (A,B) = {
4646 let q = if ((B == 1))
4747 then makeString(["%d%s", A, "increase"], a)
4848 else if ((B == -1))
4949 then makeString(["%d%s", A, "decrease"], a)
5050 else makeString(["%d%s", A, "current"], a)
5151 q
5252 }
5353
5454
5555 let C = addressFromStringValue(p(g))
5656
5757 let D = addressFromStringValue(p(e))
5858
5959 let E = addressFromStringValue(p(f))
6060
6161 func F () = "%s__managerPublicKey"
6262
6363
6464 func G () = "%s__managerVaultAddress"
6565
6666
6767 func H () = {
6868 let I = getString(G())
6969 if ($isInstanceOf(I, "String"))
7070 then {
7171 let o = I
7272 addressFromStringValue(o)
7373 }
7474 else this
7575 }
7676
7777
7878 func J () = {
7979 let K = H()
8080 let I = getString(K, F())
8181 if ($isInstanceOf(I, "String"))
8282 then {
8383 let o = I
8484 fromBase58String(o)
8585 }
8686 else if ($isInstanceOf(I, "Unit"))
8787 then unit
8888 else throw("Match error")
8989 }
9090
9191
9292 func L (M) = {
9393 let I = J()
9494 if ($isInstanceOf(I, "ByteVector"))
9595 then {
9696 let N = I
9797 (M.callerPublicKey == N)
9898 }
9999 else if ($isInstanceOf(I, "Unit"))
100100 then (M.caller == this)
101101 else throw("Match error")
102102 }
103103
104104
105105 func O (M) = if (L(M))
106106 then true
107107 else n("permission denied")
108108
109109
110110 func P (Q) = {
111111 let I = Q
112112 if ($isInstanceOf(I, "Int"))
113113 then {
114114 let R = I
115115 R
116116 }
117117 else n("failed to cast into Integer")
118118 }
119119
120120
121121 func S (T,U,V) = {
122122 let W = fraction(100, T, 120)
123123 let X = min([fraction((100 + V), U, 100), W])
124124 let Y = max([fraction((100 - V), U, 100), 0])
125125 $Tuple3(X, U, Y)
126126 }
127127
128128
129129 func Z () = {
130130 let T = getIntegerValue(D, j)
131131 let U = getIntegerValue(D, i)
132132 let aa = getIntegerValue(this, k)
133133 S(T, U, aa)
134134 }
135135
136136
137137 func ab (E) = {
138138 let ac = getIntegerValue(E, d)
139139 let ad = getIntegerValue(E, l)
140140 (((ad + (ac * c)) - height) - 1)
141141 }
142142
143143
144144 @Callable(M)
145145 func constructor (ae,af,ag,ah,aa) = {
146146 let ai = [O(M), if (isDefined(addressFromString(ae)))
147147 then true
148148 else n("Invalid boosting contract address"), if (isDefined(addressFromString(af)))
149149 then true
150150 else n("Invalid emission contract address"), if (isDefined(addressFromString(ag)))
151151 then true
152152 else n("Invalid emission contract address"), if ((ah > 0))
153153 then true
154154 else n("invalid threshold"), if ((aa > 0))
155155 then true
156156 else n("invalid rateChangeStep")]
157157 if ((ai == ai))
158158 then {
159159 let aj = addressFromStringValue(ag)
160160 $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)
161161 }
162162 else throw("Strict value is not equal to itself.")
163163 }
164164
165165
166166
167167 @Callable(M)
168168 func getRateChangeAmountsREADONLY () = $Tuple2(nil, Z())
169169
170170
171171
172172 @Callable(M)
173173 func vote (ak) = {
174174 let y = getIntegerValue(l)
175175 let al = (y + getIntegerValue(d))
176176 let am = toString(M.caller)
177177 let ai = [if ((al > height))
178178 then true
179179 else n("too late to vote"), if (containsElement([1, 0, -1], ak))
180180 then true
181181 else n("not valid argument"), if (!(isDefined(getString(w(am, y)))))
182182 then true
183183 else n("you already voted")]
184184 if ((ai == ai))
185185 then {
186186 let A = invoke(C, "getUserGwxAmountAtHeightREADONLY", [am, al], nil)
187187 let an = if ((P(A) > 0))
188188 then true
189189 else n("you don't have gwx")
190190 if ((an == an))
191191 then {
192192 let ao = split(getStringValue(m), a)
193193 let ap = ao[1]
194194 let aq = ao[2]
195195 let ar = ao[3]
196196 let as = if ((ak == 1))
197197 then {
198198 let at = (parseIntValue(ap) + P(A))
199199 [toString(at), aq, ar]
200200 }
201201 else if ((ak == -1))
202202 then {
203203 let au = (parseIntValue(ar) + P(A))
204204 [ap, aq, toString(au)]
205205 }
206206 else {
207207 let av = (parseIntValue(aq) + P(A))
208208 [ap, toString(av), ar]
209209 }
210210 let aw = w(toString(M.caller), y)
211211 let ax = z(toString(P(A)), ak)
212212 $Tuple2([StringEntry(m, s(as[0], as[1], as[2])), StringEntry(aw, ax)], unit)
213213 }
214214 else throw("Strict value is not equal to itself.")
215215 }
216216 else throw("Strict value is not equal to itself.")
217217 }
218218
219219
220220
221221 @Callable(M)
222222 func cancelVote () = {
223223 let y = getIntegerValue(l)
224224 let al = (y + getIntegerValue(d))
225225 let am = if ((M.caller == this))
226226 then toString(M.originCaller)
227227 else toString(M.caller)
228228 let ai = [if ((al > height))
229229 then true
230230 else n("too late to cancel vote"), if (isDefined(getString(m)))
231231 then true
232232 else n("no vote"), if (isDefined(getString(w(am, y))))
233233 then true
234234 else n("no user vote")]
235235 if ((ai == ai))
236236 then {
237237 let B = split(getStringValue(w(am, y)), a)
238238 let ax = B[1]
239239 let ay = B[2]
240240 let ao = split(getStringValue(m), a)
241241 let ap = ao[1]
242242 let aq = ao[2]
243243 let ar = ao[3]
244244 let az = if ((ay == "increase"))
245245 then {
246246 let at = (parseIntValue(ap) - parseIntValue(ax))
247247 [StringEntry(m, s(toString(at), aq, ar))]
248248 }
249249 else if ((ay == "decrease"))
250250 then {
251251 let au = (parseIntValue(ar) - parseIntValue(ax))
252252 [StringEntry(m, s(ap, aq, toString(au)))]
253253 }
254254 else {
255255 let av = (parseIntValue(aq) - parseIntValue(ax))
256256 [StringEntry(m, s(ap, toString(av), ar))]
257257 }
258258 let aA = [DeleteEntry(w(am, y))]
259259 (az ++ aA)
260260 }
261261 else throw("Strict value is not equal to itself.")
262262 }
263263
264264
265265
266266 @Callable(M)
267267 func setThreshold (aB) = {
268268 let ai = [O(M), if ((aB > 0))
269269 then true
270270 else n("invalid threshold")]
271271 if ((ai == ai))
272272 then $Tuple2([IntegerEntry(h, aB)], unit)
273273 else throw("Strict value is not equal to itself.")
274274 }
275275
276276
277277
278278 @Callable(M)
279279 func finalize () = {
280280 let al = (getIntegerValue(l) + value(getInteger(d)))
281281 if ((height >= al))
282282 then {
283283 let ao = split(value(getString(m)), a)
284284 let ap = parseIntValue(ao[1])
285285 let aq = parseIntValue(ao[2])
286286 let ar = parseIntValue(ao[3])
287287 let aC = ((ap + aq) + ar)
288288 let ah = r(h)
289289 let aD = Z()
290290 let X = aD._1
291291 let aE = aD._2
292292 let Y = aD._3
293293 let aF = [ap, aq, ar]
294294 let aG = if (if ((ah > aC))
295295 then true
296296 else (aq == max(aF)))
297297 then unit
298298 else if ((ap == max(aF)))
299299 then X
300300 else Y
301301 let aH = {
302302 let I = aG
303303 if ($isInstanceOf(I, "Int"))
304304 then {
305305 let aI = I
306306 let aJ = invoke(D, "changeRatePerBlock", [aI], nil)
307307 if ((aJ == aJ))
308308 then aJ
309309 else throw("Strict value is not equal to itself.")
310310 }
311311 else unit
312312 }
313313 if ((aH == aH))
314314 then [IntegerEntry(l, height), IntegerEntry(d, ab(E)), StringEntry(m, s("0", "0", "0"))]
315315 else throw("Strict value is not equal to itself.")
316316 }
317317 else nil
318318 }
319319
320320
321321 @Verifier(aK)
322322 func aL () = {
323323 let aM = {
324324 let I = J()
325325 if ($isInstanceOf(I, "ByteVector"))
326326 then {
327327 let N = I
328328 N
329329 }
330330 else if ($isInstanceOf(I, "Unit"))
331331 then aK.senderPublicKey
332332 else throw("Match error")
333333 }
334334 sigVerify(aK.bodyBytes, aK.proofs[0], aM)
335335 }
336336

github/deemru/w8io/169f3d6 
41.15 ms