tx · Hsg6jYUKLzTPdprb9HQy6se7vceLiAAMjJvCzGbJePSW

3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq:  -0.02000000 Waves

2023.07.21 15:24 [2675607] smart account 3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq > SELF 0.00000000 Waves

{ "type": 13, "id": "Hsg6jYUKLzTPdprb9HQy6se7vceLiAAMjJvCzGbJePSW", "fee": 2000000, "feeAssetId": null, "timestamp": 1689942251525, "version": 2, "chainId": 84, "sender": "3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq", "senderPublicKey": "57SkjQUEwC1ayCqLbXLuzBqifK6B6SR6rfxtGsbAo3zW", "proofs": [ "4Dot4qa7HtgbSubYT31XZoWYcNoqEfb3cFAtZyqxWNKMzajoJPFj9iiGhBf3dQMbZL39PNgC4UT63PnRdWWVmV1R" ], "script": "base64:BgIfCAISAwoBARIAEgMKAQgSAwoBARIDCgEIEgASAwoBCC8ADGNvbnRyYWN0RmlsZQIQbXB0X3N0YWtpbmcucmlkZQADU0VQAgJfXwAGc2NhbGU4AIDC1y8AEkFERFJFU1NfQllURVNfU0laRQAaAA1CTE9DS1NfSU5fREFZAKALAQh0aHJvd0VycgEDbXNnCQACAQkArAICCQCsAgIFDGNvbnRyYWN0RmlsZQICOiAFA21zZwAKa2V5QXNzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SWQFA25pbAUDU0VQABNrZXlFbWlzc2lvblBlckJsb2NrCQC5CQIJAMwIAgICJXMJAMwIAgIQZW1pc3Npb25QZXJCbG9jawUDbmlsBQNTRVAAGWtleUVtaXNzaW9uUGVyaW9kSW5CbG9ja3MJALkJAgkAzAgCAgIlcwkAzAgCAhZlbWlzc2lvblBlcmlvZEluQmxvY2tzBQNuaWwFA1NFUAANa2V5U3RhcnRCbG9jawkAuQkCCQDMCAICAiVzCQDMCAICCnN0YXJ0QmxvY2sFA25pbAUDU0VQABBrZXlUb3RhbExwQW1vdW50CQC5C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AYJAQh0aHJvd0VycgEJAKwCAgUEdHhJZAITIGlzIGFscmVhZHkgYWxsb3dlZAUDbmlsAwkAAAIFA2VycgUDZXJyCQEMdm90ZUlOVEVSTkFMBAUTY2FsbGVyQWRkcmVzc1N0cmluZwUJa2V5UHJlZml4BQZRVU9SVU0FBnJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAECGJ5QWRtaW5zCQAAAggFAnR4AmlkCQDZBAEJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwkBDmtleUFsbG93ZWRUeElkAAIABAdieU93bmVyAwkAZwIJAJADAQkBDWdldEFkbWluc0xpc3QABQZRVU9SVU0HCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwUIYnlBZG1pbnMGBQdieU93bmVyiHUOoA==", "height": 2675607, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FFoWS1oHzoqnYQchnxygtgTm36PgxzCFRGYRRswxVRQW Next: 6pFs9KvsXyVLXmfK7N3Bau6hWrRcxeq61qXApLprsThV 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 
40.55 ms