tx · Ha51a6tmTwi8QBQAPQiLmMvVdmnNyQRYii4b7W4iV2Gp 3Mvsbd5G4Xoyy4ib7gLCVSix21CyMr4K7jb: -0.01500000 Waves 2023.07.26 17:26 [2682949] smart account 3Mvsbd5G4Xoyy4ib7gLCVSix21CyMr4K7jb > SELF 0.00000000 Waves
{ "type": 13, "id": "Ha51a6tmTwi8QBQAPQiLmMvVdmnNyQRYii4b7W4iV2Gp", "fee": 1500000, "feeAssetId": null, "timestamp": 1690381585737, "version": 2, "chainId": 84, "sender": "3Mvsbd5G4Xoyy4ib7gLCVSix21CyMr4K7jb", "senderPublicKey": "8fnW16MobFGpeokNqZLUEqPaJUXn5zaSGf4ch9A3Ctk7", "proofs": [ "4eTXWABjm9UWPQUVfag5X8QAuAZvg1p6hY1VnLiwCsPuudWP2ofA7o9UuneBxDFNcBw3ChwnFeE8jvdr3QqHjwzs" ], "script": "base64:BgIfCAISAwoBARIAEgMKAQgSAwoBARIDCgEIEgASAwoBCC4ADGNvbnRyYWN0RmlsZQIRbDJtcF9zdGFraW5nLnJpZGUAA1NFUAICX18ABnNjYWxlOACAwtcvABJBRERSRVNTX0JZVEVTX1NJWkUAGgANQkxPQ0tTX0lOX0RBWQCgCwEIdGhyb3dFcnIBA21zZwkAAgEJAKwCAgkArAICBQxjb250cmFjdEZpbGUCAjogBQNtc2cACmtleUFzc2V0SWQJALkJAgkAzAgCAgIlcwkAzAgCAgdhc3NldElkBQNuaWwFA1NFUAATa2V5RW1pc3Npb25QZXJCbG9jawkAuQkCCQDMCAICAiVzCQDMCAICEGVtaXNzaW9uUGVyQmxvY2sFA25pbAUDU0VQABlrZXlFbWlzc2lvblBlcmlvZEluQmxvY2tzCQC5CQIJAMwIAgICJXMJAMwIAgIWZW1pc3Npb25QZXJpb2RJbkJsb2NrcwUDbmlsBQNTRVAADWtleVN0YXJ0QmxvY2sJALkJAgkAzAgCAgIlcwkAzAgCAgpzdGFydEJsb2NrBQNuaWwFA1NFUAAQa2V5VG90YWxM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IGlzIGFscmVhZHkgYWxsb3dlZAUDbmlsAwkAAAIFA2VycgUDZXJyCQEMdm90ZUlOVEVSTkFMBAUTY2FsbGVyQWRkcmVzc1N0cmluZwUJa2V5UHJlZml4BQZRVU9SVU0FBnJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAECGJ5QWRtaW5zCQAAAggFAnR4AmlkCQDZBAEJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwkBDmtleUFsbG93ZWRUeElkAAIABAdieU93bmVyAwkAZwIJAJADAQkBDWdldEFkbWluc0xpc3QABQZRVU9SVU0HCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwUIYnlBZG1pbnMGBQdieU93bmVyDjHUaQ==", "height": 2682949, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: BHEjHgmBh55akQ9VE6ibfAYhfiSwqmW8uNYMb2gh8n63 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "l2mp_staking.ride" | |
5 | + | ||
6 | + | let b = "__" | |
7 | + | ||
8 | + | let c = 100000000 | |
9 | + | ||
10 | + | let d = 26 | |
11 | + | ||
12 | + | let e = 1440 | |
13 | + | ||
14 | + | func f (g) = throw(((a + ": ") + g)) | |
15 | + | ||
16 | + | ||
17 | + | let h = makeString(["%s", "assetId"], b) | |
18 | + | ||
19 | + | let i = makeString(["%s", "emissionPerBlock"], b) | |
20 | + | ||
21 | + | let j = makeString(["%s", "emissionPeriodInBlocks"], b) | |
22 | + | ||
23 | + | let k = makeString(["%s", "startBlock"], b) | |
24 | + | ||
25 | + | let l = makeString(["%s", "totalLpAmount"], b) | |
26 | + | ||
27 | + | let m = makeString(["%s", "totalAssetAmount"], b) | |
28 | + | ||
29 | + | func n (o) = makeString(["%s%s", "userLpAmount", o], b) | |
30 | + | ||
31 | + | ||
32 | + | func p (o) = makeString(["%s%s", "totalAssetWithdrawn", o], b) | |
33 | + | ||
34 | + | ||
35 | + | func q (o) = makeString(["%s%s", "totalAssetStaked", o], b) | |
36 | + | ||
37 | + | ||
38 | + | let r = valueOrElse(getInteger(this, l), 0) | |
39 | + | ||
40 | + | let s = valueOrElse(getInteger(this, m), 0) | |
41 | + | ||
42 | + | let t = valueOrElse(getString(this, h), "WAVES") | |
43 | + | ||
44 | + | let u = if ((t == "WAVES")) | |
45 | + | then unit | |
46 | + | else fromBase58String(t) | |
47 | + | ||
48 | + | let v = valueOrElse(getInteger(this, j), e) | |
49 | + | ||
50 | + | let w = (valueOrElse(getInteger(this, i), 0) * v) | |
51 | + | ||
52 | + | let x = fraction(height, 1, v) | |
53 | + | ||
54 | + | let y = 5 | |
55 | + | ||
56 | + | let z = 3 | |
57 | + | ||
58 | + | let A = 32 | |
59 | + | ||
60 | + | func B (C) = makeString(["%s%s%s", "allowTxId", C], b) | |
61 | + | ||
62 | + | ||
63 | + | func D (E,F) = makeString([E, F], b) | |
64 | + | ||
65 | + | ||
66 | + | func G () = makeString(["%s", "adminAddressList"], b) | |
67 | + | ||
68 | + | ||
69 | + | func H () = makeString(["%s", "txId"], b) | |
70 | + | ||
71 | + | ||
72 | + | func I (E,J) = { | |
73 | + | let K = D(E, J) | |
74 | + | valueOrElse(getInteger(K), 0) | |
75 | + | } | |
76 | + | ||
77 | + | ||
78 | + | func L () = { | |
79 | + | let M = getString(this, G()) | |
80 | + | if ($isInstanceOf(M, "String")) | |
81 | + | then { | |
82 | + | let N = M | |
83 | + | split(N, b) | |
84 | + | } | |
85 | + | else nil | |
86 | + | } | |
87 | + | ||
88 | + | ||
89 | + | func O (P) = containsElement(L(), P) | |
90 | + | ||
91 | + | ||
92 | + | func Q (R,F) = { | |
93 | + | let S = R | |
94 | + | let T = S._1 | |
95 | + | let E = S._2 | |
96 | + | $Tuple2((T :+ D(E, F)), E) | |
97 | + | } | |
98 | + | ||
99 | + | ||
100 | + | func U (V) = { | |
101 | + | let W = G() | |
102 | + | let X = { | |
103 | + | let Y = L() | |
104 | + | let Z = size(Y) | |
105 | + | let aa = $Tuple2(nil, V) | |
106 | + | func ab (ac,ad) = if ((ad >= Z)) | |
107 | + | then ac | |
108 | + | else Q(ac, Y[ad]) | |
109 | + | ||
110 | + | func ae (ac,ad) = if ((ad >= Z)) | |
111 | + | then ac | |
112 | + | else throw("List size exceeds 5") | |
113 | + | ||
114 | + | ae(ab(ab(ab(ab(ab(aa, 0), 1), 2), 3), 4), 5) | |
115 | + | } | |
116 | + | let T = X._1 | |
117 | + | let E = X._2 | |
118 | + | T | |
119 | + | } | |
120 | + | ||
121 | + | ||
122 | + | func af (T,K) = (T + valueOrElse(getInteger(K), 0)) | |
123 | + | ||
124 | + | ||
125 | + | func ag (E) = { | |
126 | + | let ah = U(E) | |
127 | + | let Y = ah | |
128 | + | let Z = size(Y) | |
129 | + | let aa = 0 | |
130 | + | func ab (ac,ad) = if ((ad >= Z)) | |
131 | + | then ac | |
132 | + | else af(ac, Y[ad]) | |
133 | + | ||
134 | + | func ae (ac,ad) = if ((ad >= Z)) | |
135 | + | then ac | |
136 | + | else throw("List size exceeds 5") | |
137 | + | ||
138 | + | ae(ab(ab(ab(ab(ab(aa, 0), 1), 2), 3), 4), 5) | |
139 | + | } | |
140 | + | ||
141 | + | ||
142 | + | func ai (T,aj) = (T :+ DeleteEntry(aj)) | |
143 | + | ||
144 | + | ||
145 | + | func ak (E) = { | |
146 | + | let ah = U(E) | |
147 | + | let Y = ah | |
148 | + | let Z = size(Y) | |
149 | + | let aa = nil | |
150 | + | func ab (ac,ad) = if ((ad >= Z)) | |
151 | + | then ac | |
152 | + | else ai(ac, Y[ad]) | |
153 | + | ||
154 | + | func ae (ac,ad) = if ((ad >= Z)) | |
155 | + | then ac | |
156 | + | else throw("List size exceeds 5") | |
157 | + | ||
158 | + | ae(ab(ab(ab(ab(ab(aa, 0), 1), 2), 3), 4), 5) | |
159 | + | } | |
160 | + | ||
161 | + | ||
162 | + | func al (am,V,an,ao) = { | |
163 | + | let K = D(V, am) | |
164 | + | let ap = I(V, am) | |
165 | + | let aq = if (!(O(am))) | |
166 | + | then f((("Address: " + am) + " not in Admin list")) | |
167 | + | else if ((ap == 1)) | |
168 | + | then f((K + " you already voted")) | |
169 | + | else unit | |
170 | + | if ((aq == aq)) | |
171 | + | then { | |
172 | + | let ah = ag(V) | |
173 | + | if (((ah + 1) >= an)) | |
174 | + | then { | |
175 | + | let ar = ak(V) | |
176 | + | (ar ++ ao) | |
177 | + | } | |
178 | + | else [IntegerEntry(K, 1)] | |
179 | + | } | |
180 | + | else throw("Strict value is not equal to itself.") | |
181 | + | } | |
182 | + | ||
183 | + | ||
184 | + | func as () = { | |
185 | + | let at = valueOrElse(getInteger(this, k), 0) | |
186 | + | let au = fraction(at, 1, v) | |
187 | + | let av = (x - au) | |
188 | + | max([0, (w * av)]) | |
189 | + | } | |
190 | + | ||
191 | + | ||
192 | + | func aw () = { | |
193 | + | let ax = (s + as()) | |
194 | + | let ay = { | |
195 | + | let M = u | |
196 | + | if ($isInstanceOf(M, "Unit")) | |
197 | + | then { | |
198 | + | let az = M | |
199 | + | min([ax, wavesBalance(this).available]) | |
200 | + | } | |
201 | + | else if ($isInstanceOf(M, "ByteVector")) | |
202 | + | then { | |
203 | + | let aA = M | |
204 | + | min([ax, assetBalance(this, aA)]) | |
205 | + | } | |
206 | + | else throw("Match error") | |
207 | + | } | |
208 | + | if ((r == 0)) | |
209 | + | then 0 | |
210 | + | else ay | |
211 | + | } | |
212 | + | ||
213 | + | ||
214 | + | func aB () = if ((r != 0)) | |
215 | + | then fraction(aw(), c, r) | |
216 | + | else (1 * c) | |
217 | + | ||
218 | + | ||
219 | + | func aC (o) = valueOrElse(getInteger(this, n(o)), 0) | |
220 | + | ||
221 | + | ||
222 | + | func aD (o) = { | |
223 | + | let aE = aC(o) | |
224 | + | let aF = fraction(aE, aB(), c) | |
225 | + | if ((0 > aF)) | |
226 | + | then 0 | |
227 | + | else aF | |
228 | + | } | |
229 | + | ||
230 | + | ||
231 | + | func aG (aH,o) = { | |
232 | + | let aI = [if ((size(aH.payments) == 1)) | |
233 | + | then true | |
234 | + | else f("should include 1 payment"), if ((aH.payments[0].assetId == u)) | |
235 | + | then true | |
236 | + | else f(("payment should be in " + t)), if ((aH.payments[0].amount > 0)) | |
237 | + | then true | |
238 | + | else "payment amount should be greater than 0"] | |
239 | + | if ((aI == aI)) | |
240 | + | then { | |
241 | + | let aJ = aH.payments[0].amount | |
242 | + | let aK = fraction(aJ, c, aB()) | |
243 | + | let aE = aC(o) | |
244 | + | let aL = valueOrElse(getInteger(this, q(o)), 0) | |
245 | + | let aM = (r + aK) | |
246 | + | let aN = (s + aJ) | |
247 | + | let aO = (aE + aK) | |
248 | + | let aP = (aL + aJ) | |
249 | + | let aQ = if ((r == 0)) | |
250 | + | then [IntegerEntry(k, height)] | |
251 | + | else nil | |
252 | + | ([IntegerEntry(l, aM), IntegerEntry(m, aN), IntegerEntry(n(o), aO), IntegerEntry(q(o), aP)] ++ aQ) | |
253 | + | } | |
254 | + | else throw("Strict value is not equal to itself.") | |
255 | + | } | |
256 | + | ||
257 | + | ||
258 | + | func aR (aH,aS) = { | |
259 | + | let o = toString(aH.caller) | |
260 | + | let aE = aC(o) | |
261 | + | let aT = [if ((aS > 0)) | |
262 | + | then true | |
263 | + | else f("LP amount should be more than 0"), if ((aE >= aS)) | |
264 | + | then true | |
265 | + | else f((("cannot withdraw more than available LP (" + toString(aE)) + ")"))] | |
266 | + | if ((aT == aT)) | |
267 | + | then { | |
268 | + | let aO = (aE - aS) | |
269 | + | let aU = fraction(aS, aB(), c) | |
270 | + | let aM = (r - aS) | |
271 | + | let aN = fraction(aM, aB(), c) | |
272 | + | let aV = valueOrElse(getInteger(this, p(o)), 0) | |
273 | + | let aW = (aV + aU) | |
274 | + | [IntegerEntry(l, aM), IntegerEntry(m, aN), IntegerEntry(n(o), aO), IntegerEntry(p(o), aW), IntegerEntry(k, height), ScriptTransfer(aH.caller, aU, u)] | |
275 | + | } | |
276 | + | else throw("Strict value is not equal to itself.") | |
277 | + | } | |
278 | + | ||
279 | + | ||
280 | + | @Callable(aH) | |
281 | + | func setEmissionPerBlock (aX) = { | |
282 | + | let aT = [if ((aH.caller == this)) | |
283 | + | then true | |
284 | + | else f("permission denied")] | |
285 | + | if ((aT == aT)) | |
286 | + | then [IntegerEntry(m, aw()), IntegerEntry(k, height), IntegerEntry(i, max([0, aX]))] | |
287 | + | else throw("Strict value is not equal to itself.") | |
288 | + | } | |
289 | + | ||
290 | + | ||
291 | + | ||
292 | + | @Callable(aH) | |
293 | + | func stake () = aG(aH, toString(aH.caller)) | |
294 | + | ||
295 | + | ||
296 | + | ||
297 | + | @Callable(aH) | |
298 | + | func stakeFor (o) = { | |
299 | + | let aT = [if ((size(fromBase58String(o)) == d)) | |
300 | + | then true | |
301 | + | else f("address is not valid")] | |
302 | + | if ((aT == aT)) | |
303 | + | then aG(aH, o) | |
304 | + | else throw("Strict value is not equal to itself.") | |
305 | + | } | |
306 | + | ||
307 | + | ||
308 | + | ||
309 | + | @Callable(aH) | |
310 | + | func withdraw (aU) = { | |
311 | + | let o = toString(aH.caller) | |
312 | + | let aE = aC(o) | |
313 | + | let aY = fraction(aU, c, aB()) | |
314 | + | let aF = aD(o) | |
315 | + | let aZ = fraction(aB(), 1, c, CEILING) | |
316 | + | let aT = [if ((aU > 0)) | |
317 | + | then true | |
318 | + | else f("withdraw amount should be more than 0"), if ((aF >= aU)) | |
319 | + | then true | |
320 | + | else f((("cannot withdraw more than available (" + toString(aF)) + ")")), if ((aU >= aZ)) | |
321 | + | then true | |
322 | + | else f((("withdraw amount is too small. Min: (" + toString(aZ)) + ")"))] | |
323 | + | if ((aT == aT)) | |
324 | + | then aR(aH, aY) | |
325 | + | else throw("Strict value is not equal to itself.") | |
326 | + | } | |
327 | + | ||
328 | + | ||
329 | + | ||
330 | + | @Callable(aH) | |
331 | + | func getUserAssetsREADONLY (o) = { | |
332 | + | let aE = aC(o) | |
333 | + | let aF = aD(o) | |
334 | + | let aL = valueOrElse(getInteger(this, q(o)), 0) | |
335 | + | let aV = valueOrElse(getInteger(this, p(o)), 0) | |
336 | + | $Tuple2(nil, $Tuple5(aE, aF, aB(), aL, aV)) | |
337 | + | } | |
338 | + | ||
339 | + | ||
340 | + | ||
341 | + | @Callable(aH) | |
342 | + | func getTotalAssetsREADONLY () = $Tuple2(nil, $Tuple3(r, aw(), aB())) | |
343 | + | ||
344 | + | ||
345 | + | ||
346 | + | @Callable(aH) | |
347 | + | func voteForTxId (C) = { | |
348 | + | let am = toBase58String(aH.caller.bytes) | |
349 | + | let V = B(C) | |
350 | + | let T = [StringEntry(H(), C)] | |
351 | + | let ba = getString(this, H()) | |
352 | + | let aq = [if ((size(fromBase58String(C)) == A)) | |
353 | + | then true | |
354 | + | else f((C + " is not valid txId")), if (if ((ba == unit)) | |
355 | + | then true | |
356 | + | else (value(ba) != C)) | |
357 | + | then true | |
358 | + | else f((C + " is already allowed"))] | |
359 | + | if ((aq == aq)) | |
360 | + | then al(am, V, z, T) | |
361 | + | else throw("Strict value is not equal to itself.") | |
362 | + | } | |
363 | + | ||
364 | + | ||
365 | + | @Verifier(bb) | |
366 | + | func bc () = { | |
367 | + | let bd = (bb.id == fromBase58String(valueOrElse(getString(this, H()), ""))) | |
368 | + | let be = if ((size(L()) >= z)) | |
369 | + | then false | |
370 | + | else sigVerify(bb.bodyBytes, bb.proofs[0], bb.senderPublicKey) | |
371 | + | if (bd) | |
372 | + | then true | |
373 | + | else be | |
374 | + | } | |
375 | + |
github/deemru/w8io/169f3d6 23.46 ms ◑