tx · 6pFs9KvsXyVLXmfK7N3Bau6hWrRcxeq61qXApLprsThV

3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq:  -0.02000000 Waves

2023.07.21 15:55 [2675643] smart account 3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq > SELF 0.00000000 Waves

{ "type": 13, "id": "6pFs9KvsXyVLXmfK7N3Bau6hWrRcxeq61qXApLprsThV", "fee": 2000000, "feeAssetId": null, "timestamp": 1689944189016, "version": 2, "chainId": 84, "sender": "3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq", "senderPublicKey": "57SkjQUEwC1ayCqLbXLuzBqifK6B6SR6rfxtGsbAo3zW", "proofs": [ "2XAK9j63ZnAtUajG3GbUMiNYZvZ3kx4skycbkCvH2DbrpBfPVb2whEXUskuDPtE9TDCnRyPGXAiPu7QNMg7gNusf" ], "script": "base64:BgIfCAISAwoBARIAEgMKAQgSAwoBARIDCgEIEgASAwoBCC8ADGNvbnRyYWN0RmlsZQIQbXB0X3N0YWtpbmcucmlkZQADU0VQAgJfXwAGc2NhbGU4AIDC1y8AEkFERFJFU1NfQllURVNfU0laRQAaAA1CTE9DS1NfSU5fREFZAKALAQh0aHJvd0VycgEDbXNnCQACAQkArAICCQCsAgIFDGNvbnRyYWN0RmlsZQICOiAFA21zZwAKa2V5QXNzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SWQFA25pbAUDU0VQABNrZXlFbWlzc2lvblBlckJsb2NrCQC5CQIJAMwIAgICJXMJAMwIAgIQZW1pc3Npb25QZXJCbG9jawUDbmlsBQNTRVAAGWtleUVtaXNzaW9uUGVyaW9kSW5CbG9ja3MJALkJAgkAzAgCAgIlcwkAzAgCAhZlbWlzc2lvblBlcmlvZEluQmxvY2tzBQNuaWwFA1NFUAANa2V5U3RhcnRCbG9jawkAuQkCCQDMCAICAiVzCQDMCAICCnN0YXJ0QmxvY2sFA25pbAUDU0VQABBrZXlUb3RhbExwQW1vdW50CQC5CQ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1ZQEFEWFsbG93ZWRUeElkT3B0aW9uBQR0eElkBgkBCHRocm93RXJyAQkArAICBQR0eElkAhMgaXMgYWxyZWFkeSBhbGxvd2VkBQNuaWwDCQAAAgUDZXJyBQNlcnIJAQx2b3RlSU5URVJOQUwEBRNjYWxsZXJBZGRyZXNzU3RyaW5nBQlrZXlQcmVmaXgFBlFVT1JVTQUGcmVzdWx0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQIYnlBZG1pbnMJAAACCAUCdHgCaWQJANkEAQkBC3ZhbHVlT3JFbHNlAgkAnQgCBQR0aGlzCQEOa2V5QWxsb3dlZFR4SWQAAgAEB2J5T3duZXIDCQBnAgkAkAMBCQENZ2V0QWRtaW5zTGlzdAAFBlFVT1JVTQcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkDBQhieUFkbWlucwYFB2J5T3duZXKK0ZJV", "height": 2675643, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hsg6jYUKLzTPdprb9HQy6se7vceLiAAMjJvCzGbJePSW Next: GNgVpsstBv7bavKTgTETGZYsy6cQaeSpTNXBXTYkAZgf Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "mpt_staking.ride"
55
66 let b = "__"
77
88 let c = 100000000
99
1010 let d = 26
1111
1212 let e = 1440
1313
1414 func f (g) = throw(((a + ": ") + g))
1515
1616
1717 let h = makeString(["%s", "assetId"], b)
1818
1919 let i = makeString(["%s", "emissionPerBlock"], b)
2020
2121 let j = makeString(["%s", "emissionPeriodInBlocks"], b)
2222
2323 let k = makeString(["%s", "startBlock"], b)
2424
2525 let l = makeString(["%s", "totalLpAmount"], b)
2626
2727 let m = makeString(["%s", "totalAssetAmount"], b)
2828
2929 func n (o) = makeString(["%s%s", "userLpAmount", o], b)
3030
3131
3232 func p (o) = makeString(["%s%s", "totalAssetWithdrawn", o], b)
3333
3434
3535 func q (o) = makeString(["%s%s", "totalAssetStaked", o], b)
3636
3737
3838 let r = valueOrElse(getInteger(this, l), 0)
3939
4040 let s = valueOrElse(getInteger(this, m), 0)
4141
4242 let t = valueOrElse(getString(this, h), "WAVES")
4343
4444 let u = if ((t == "WAVES"))
4545 then unit
4646 else fromBase58String(t)
4747
4848 let v = valueOrElse(getInteger(this, j), e)
4949
5050 let w = (valueOrElse(getInteger(this, i), 0) * v)
5151
5252 let x = fraction(height, 1, v)
5353
5454 let y = 5
5555
5656 let z = 3
5757
5858 let A = 32
5959
6060 func B (C) = makeString(["%s%s%s", "allowTxId", C], b)
6161
6262
6363 func D (E,F) = makeString([E, F], b)
6464
6565
6666 func G () = makeString(["%s", "adminAddressList"], b)
6767
6868
6969 func H () = makeString(["%s", "txId"], b)
7070
7171
7272 func I (E,J) = {
7373 let K = D(E, J)
7474 valueOrElse(getInteger(K), 0)
7575 }
7676
7777
7878 func L () = {
7979 let M = getString(this, G())
8080 if ($isInstanceOf(M, "String"))
8181 then {
8282 let N = M
8383 split(N, b)
8484 }
8585 else nil
8686 }
8787
8888
8989 func O (P) = containsElement(L(), P)
9090
9191
9292 func Q (R,F) = {
9393 let S = R
9494 let T = S._1
9595 let E = S._2
9696 $Tuple2((T :+ D(E, F)), E)
9797 }
9898
9999
100100 func U (V) = {
101101 let W = G()
102102 let X = {
103103 let Y = L()
104104 let Z = size(Y)
105105 let aa = $Tuple2(nil, V)
106106 func ab (ac,ad) = if ((ad >= Z))
107107 then ac
108108 else Q(ac, Y[ad])
109109
110110 func ae (ac,ad) = if ((ad >= Z))
111111 then ac
112112 else throw("List size exceeds 5")
113113
114114 ae(ab(ab(ab(ab(ab(aa, 0), 1), 2), 3), 4), 5)
115115 }
116116 let T = X._1
117117 let E = X._2
118118 T
119119 }
120120
121121
122122 func af (T,K) = (T + valueOrElse(getInteger(K), 0))
123123
124124
125125 func ag (E) = {
126126 let ah = U(E)
127127 let Y = ah
128128 let Z = size(Y)
129129 let aa = 0
130130 func ab (ac,ad) = if ((ad >= Z))
131131 then ac
132132 else af(ac, Y[ad])
133133
134134 func ae (ac,ad) = if ((ad >= Z))
135135 then ac
136136 else throw("List size exceeds 5")
137137
138138 ae(ab(ab(ab(ab(ab(aa, 0), 1), 2), 3), 4), 5)
139139 }
140140
141141
142142 func ai (T,aj) = (T :+ DeleteEntry(aj))
143143
144144
145145 func ak (E) = {
146146 let ah = U(E)
147147 let Y = ah
148148 let Z = size(Y)
149149 let aa = nil
150150 func ab (ac,ad) = if ((ad >= Z))
151151 then ac
152152 else ai(ac, Y[ad])
153153
154154 func ae (ac,ad) = if ((ad >= Z))
155155 then ac
156156 else throw("List size exceeds 5")
157157
158158 ae(ab(ab(ab(ab(ab(aa, 0), 1), 2), 3), 4), 5)
159159 }
160160
161161
162162 func al (am,V,an,ao) = {
163163 let K = D(V, am)
164164 let ap = I(V, am)
165165 let aq = if (!(O(am)))
166166 then f((("Address: " + am) + " not in Admin list"))
167167 else if ((ap == 1))
168168 then f((K + " you already voted"))
169169 else unit
170170 if ((aq == aq))
171171 then {
172172 let ah = ag(V)
173173 if (((ah + 1) >= an))
174174 then {
175175 let ar = ak(V)
176176 (ar ++ ao)
177177 }
178178 else [IntegerEntry(K, 1)]
179179 }
180180 else throw("Strict value is not equal to itself.")
181181 }
182182
183183
184184 func as () = {
185185 let at = valueOrElse(getInteger(this, k), 0)
186186 let au = fraction(at, 1, v)
187187 let av = (x - au)
188188 max([0, (w * av)])
189189 }
190190
191191
192192 func aw () = {
193193 let at = valueOrElse(getInteger(this, k), 0)
194194 let au = fraction(at, 1, v)
195195 let av = (x - au)
196196 $Tuple5(au, x, av, at, height)
197197 }
198198
199199
200200 func ax () = {
201201 let ay = (s + as())
202202 let az = {
203203 let M = u
204204 if ($isInstanceOf(M, "Unit"))
205205 then {
206206 let aA = M
207207 min([ay, wavesBalance(this).available])
208208 }
209209 else if ($isInstanceOf(M, "ByteVector"))
210210 then {
211211 let aB = M
212212 min([ay, assetBalance(this, aB)])
213213 }
214214 else throw("Match error")
215215 }
216216 if ((r == 0))
217217 then 0
218218 else az
219219 }
220220
221221
222222 func aC () = if ((r != 0))
223223 then fraction(ax(), c, r)
224224 else (1 * c)
225225
226226
227227 func aD (o) = valueOrElse(getInteger(this, n(o)), 0)
228228
229229
230230 func aE (o) = {
231231 let aF = aD(o)
232232 let aG = fraction(aF, aC(), c)
233233 if ((aC() > (aG * c)))
234234 then 0
235235 else aG
236236 }
237237
238238
239239 func aH (aI,o) = {
240240 let aJ = [if ((size(aI.payments) == 1))
241241 then true
242242 else f("should include 1 payment"), if ((aI.payments[0].assetId == u))
243243 then true
244244 else f(("payment should be in " + t)), if ((aI.payments[0].amount > 0))
245245 then true
246246 else "payment amount should be greater than 0"]
247247 if ((aJ == aJ))
248248 then {
249249 let aK = aI.payments[0].amount
250250 let aL = fraction(aK, c, aC())
251251 let aF = aD(o)
252252 let aM = valueOrElse(getInteger(this, q(o)), 0)
253253 let aN = (r + aL)
254254 let aO = (s + aK)
255255 let aP = (aF + aL)
256256 let aQ = (aM + aK)
257257 let aR = if ((r == 0))
258258 then [IntegerEntry(k, height)]
259259 else nil
260260 ([IntegerEntry(l, aN), IntegerEntry(m, aO), IntegerEntry(n(o), aP), IntegerEntry(q(o), aQ)] ++ aR)
261261 }
262262 else throw("Strict value is not equal to itself.")
263263 }
264264
265265
266266 func aS (aI,aT) = {
267267 let o = toString(aI.caller)
268268 let aF = aD(o)
269269 let aU = [if ((aT > 0))
270270 then true
271271 else f("LP amount should be more than 0"), if ((aF >= aT))
272272 then true
273273 else f((("cannot withdraw more than available LP (" + toString(aF)) + ")"))]
274274 if ((aU == aU))
275275 then {
276276 let aP = (aF - aT)
277277 let aV = fraction(aT, aC(), c)
278278 let aN = (r - aT)
279279 let aO = fraction(aN, aC(), c)
280280 let aW = valueOrElse(getInteger(this, p(o)), 0)
281281 let aX = (aW + aV)
282282 [IntegerEntry(l, aN), IntegerEntry(m, aO), IntegerEntry(n(o), aP), IntegerEntry(p(o), aX), IntegerEntry(k, height), ScriptTransfer(aI.caller, aV, u)]
283283 }
284284 else throw("Strict value is not equal to itself.")
285285 }
286286
287287
288288 @Callable(aI)
289289 func setEmissionPerBlock (aY) = {
290290 let aU = [if ((aI.caller == this))
291291 then true
292292 else f("permission denied")]
293293 if ((aU == aU))
294294 then [IntegerEntry(m, ax()), IntegerEntry(k, height), IntegerEntry(i, max([0, aY]))]
295295 else throw("Strict value is not equal to itself.")
296296 }
297297
298298
299299
300300 @Callable(aI)
301301 func stake () = aH(aI, toString(aI.caller))
302302
303303
304304
305305 @Callable(aI)
306306 func stakeFor (o) = {
307307 let aU = [if ((size(fromBase58String(o)) == d))
308308 then true
309309 else f("address is not valid")]
310310 if ((aU == aU))
311311 then aH(aI, o)
312312 else throw("Strict value is not equal to itself.")
313313 }
314314
315315
316316
317317 @Callable(aI)
318318 func withdraw (aV) = {
319319 let o = toString(aI.caller)
320320 let aF = aD(o)
321321 let aZ = fraction(aV, c, aC())
322322 let aG = aE(o)
323323 let aU = [if ((aV > 0))
324324 then true
325325 else f("withdraw amount should be more than 0"), if ((aG >= aV))
326326 then true
327327 else f((("cannot withdraw more than available (" + toString(aG)) + ")"))]
328328 if ((aU == aU))
329329 then aS(aI, aZ)
330330 else throw("Strict value is not equal to itself.")
331331 }
332332
333333
334334
335335 @Callable(aI)
336336 func getUserAssetsREADONLY (o) = {
337337 let aF = aD(o)
338338 let aG = aE(o)
339339 let aM = valueOrElse(getInteger(this, q(o)), 0)
340340 let aW = valueOrElse(getInteger(this, p(o)), 0)
341341 $Tuple2(nil, $Tuple5(aF, aG, aC(), aM, aW))
342342 }
343343
344344
345345
346346 @Callable(aI)
347347 func getTotalAssetsREADONLY () = $Tuple2(nil, $Tuple3(r, ax(), aC()))
348348
349349
350350
351351 @Callable(aI)
352352 func voteForTxId (C) = {
353353 let am = toBase58String(aI.caller.bytes)
354354 let V = B(C)
355355 let T = [StringEntry(H(), C)]
356356 let ba = getString(this, H())
357357 let aq = [if ((size(fromBase58String(C)) == A))
358358 then true
359359 else f((C + " is not valid txId")), if (if ((ba == unit))
360360 then true
361361 else (value(ba) != C))
362362 then true
363363 else f((C + " is already allowed"))]
364364 if ((aq == aq))
365365 then al(am, V, z, T)
366366 else throw("Strict value is not equal to itself.")
367367 }
368368
369369
370370 @Verifier(bb)
371371 func bc () = {
372372 let bd = (bb.id == fromBase58String(valueOrElse(getString(this, H()), "")))
373373 let be = if ((size(L()) >= z))
374374 then false
375375 else sigVerify(bb.bodyBytes, bb.proofs[0], bb.senderPublicKey)
376376 if (bd)
377377 then true
378378 else be
379379 }
380380

github/deemru/w8io/169f3d6 
39.23 ms