tx · 6wif2yK6gcf6RCoMe3aT1deE2gfFyxrL75DfaDgeUmyJ 3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt: -0.01300000 Waves 2023.12.11 10:41 [2881747] smart account 3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt > SELF 0.00000000 Waves
{ "type": 13, "id": "6wif2yK6gcf6RCoMe3aT1deE2gfFyxrL75DfaDgeUmyJ", "fee": 1300000, "feeAssetId": null, "timestamp": 1702280580211, "version": 1, "sender": "3N3irEKCdj77h97aEbfj3fa3uMXCNCXVhKt", "senderPublicKey": "FACNGaFYnR8yFbQFg9sRBpzGVCyzMyLeVw3JMhGQT1wn", "proofs": [ "2iThgyQGKdWbWhc4xw3rTu28AvpWmXmvhDcVomZWcfuADdGEMpdjBDRZUAqT9Dj3cFsvo1RdVFoPAkfAb1uJ1MMR" ], "script": "base64:BgIWCAISBAoCCAESBQoDGBEBEgMKAQgSADAADGNvbnRyYWN0RmlsZQIRbDJtcF9zdGFraW5nLnJpZGUAA1NFUAICX18ABnNjYWxlOACAwtcvAAdzY2FsZTE4AICAkLu61q3wDQANc2NhbGUxOEJpZ0ludAkAtgIBBQdzY2FsZTE4ABJBRERSRVNTX0JZVEVTX1NJWkUAGgANQkxPQ0tTX0lOX0RBWQCgCwAMYWRtaW5BZGRyZXNzCQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTXBzN0NacUI5blViRWlyWXlDTU1vQTdWYnFyeEx2SkZTQgEIdGhyb3dFcnIBA21zZwkAAgEJAKwCAgkArAICBQxjb250cmFjdEZpbGUCAjogBQNtc2cACmtleUFzc2V0SWQJALkJAgkAzAgCAgIlcwkAzAgCAgdhc3NldElkBQNuaWwFA1NFUAATa2V5RW1pc3Npb25QZXJCbG9jawkAuQkCCQDMCAICAiVzCQDMCAICEGVtaXNzaW9uUGVyQmxvY2sFA25pbAUDU0VQABlrZXlFbWlzc2lvblBlcmlvZEluQmxvY2tzCQC5CQIJAMwIAgICJXMJAMwIAgIWZW1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lVc2VyVG90YWxBc3NldFdpdGhkcmF3bgEFC3VzZXJBZGRyZXNzAAAEDSR0MDEwNzg4MTA4ODAJARdnZXRVc2VyU3Rha2luZ05vZGVzRGF0YQEFC3VzZXJBZGRyZXNzBBR1c2VyU3Rha2luZ05vZGVzTGlzdAgFDSR0MDEwNzg4MTA4ODACXzEEGXVzZXJTdGFraW5nTm9kZVNoYXJlc0xpc3QIBQ0kdDAxMDc4ODEwODgwAl8yCQCUCgIFA25pbAkAnAoKBQx1c2VyTHBBbW91bnQFHHVzZXJBdmFpbGFibGVBc3NldFRvV2l0aGRyYXcJAQ9nZXRDdXJyZW50UHJpY2UABRV1c2VyVG90YWxTdGFrZWRBbW91bnQFF3VzZXJUb3RhbEFzc2V0V2l0aGRyYXduBRJ1c2VyTG9ja2VkTHBBbW91bnQFFXVzZXJMb2NrZWRBc3NldEFtb3VudAUUdXNlclN0YWtpbmdOb2Rlc0xpc3QFGXVzZXJTdGFraW5nTm9kZVNoYXJlc0xpc3QJARJnZXRSZW1haW5pbmdCbG9ja3MAAWkBFmdldFRvdGFsQXNzZXRzUkVBRE9OTFkACQCUCgIFA25pbAkAmAoGBQ10b3RhbExwQW1vdW50CQErZ2V0VG90YWxBc3NldEFtb3VudFdpdGhQcm9maXRPck1heEF2YWlsYWJsZQEFBmhlaWdodAkBD2dldEN1cnJlbnRQcmljZQAFE3RvdGFsTG9ja2VkTHBBbW91bnQJAQ9jYWxjQXNzZXRGcm9tTHACBRN0b3RhbExvY2tlZExwQW1vdW50BQZoZWlnaHQJARJnZXRSZW1haW5pbmdCbG9ja3MAAAQ+V/4=", "chainId": 84, "height": 2881747, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3bYHppvuGMPf4D2KpSxGmrc5ka1ccq6UBsabKgr1j2aH Next: none Diff:
Old | New | Differences | |
---|---|---|---|
15 | 15 | ||
16 | 16 | let g = 1440 | |
17 | 17 | ||
18 | - | let h = addressFromStringValue(" | |
18 | + | let h = addressFromStringValue("3Mps7CZqB9nUbEirYyCMMoA7VbqrxLvJFSB") | |
19 | 19 | ||
20 | 20 | func i (j) = throw(((a + ": ") + j)) | |
21 | 21 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "l2mp_staking.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = 1000000000000000000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(d) | |
13 | 13 | ||
14 | 14 | let f = 26 | |
15 | 15 | ||
16 | 16 | let g = 1440 | |
17 | 17 | ||
18 | - | let h = addressFromStringValue(" | |
18 | + | let h = addressFromStringValue("3Mps7CZqB9nUbEirYyCMMoA7VbqrxLvJFSB") | |
19 | 19 | ||
20 | 20 | func i (j) = throw(((a + ": ") + j)) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | let k = makeString(["%s", "assetId"], b) | |
24 | 24 | ||
25 | 25 | let l = makeString(["%s", "emissionPerBlock"], b) | |
26 | 26 | ||
27 | 27 | let m = makeString(["%s", "emissionPeriodInBlocks"], b) | |
28 | 28 | ||
29 | 29 | let n = makeString(["%s", "startBlock"], b) | |
30 | 30 | ||
31 | 31 | let o = makeString(["%s", "totalLpAmount"], b) | |
32 | 32 | ||
33 | 33 | let p = makeString(["%s", "totalAssetAmount"], b) | |
34 | 34 | ||
35 | 35 | let q = makeString(["%s", "totalLockedLpAmount"], b) | |
36 | 36 | ||
37 | 37 | func r (s) = makeString(["%s%s", "userLpAmount", s], b) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func t (s) = makeString(["%s%s", "userLockedLpAmount", s], b) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func u (s) = makeString(["%s%s", "userStakingNodes", s], b) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func v (s) = makeString(["%s%s", "userStakingNodesShares", s], b) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func w (s) = makeString(["%s%s", "totalAssetWithdrawn", s], b) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func x (s) = makeString(["%s%s", "totalAssetStaked", s], b) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func y (z,s,A) = makeString(["%s%s%s", z, s, toBase58String(A)], b) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func B (C,D,E,F) = makeString(["%d%d%d%d", toString(C), toString(D), toString(E), toString(F)], b) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | let F = valueOrElse(getInteger(this, o), 0) | |
62 | 62 | ||
63 | 63 | let E = valueOrElse(getInteger(this, p), 0) | |
64 | 64 | ||
65 | 65 | let G = valueOrElse(getInteger(this, q), 0) | |
66 | 66 | ||
67 | 67 | let H = valueOrElse(getString(this, k), "WAVES") | |
68 | 68 | ||
69 | 69 | let I = if ((H == "WAVES")) | |
70 | 70 | then unit | |
71 | 71 | else fromBase58String(H) | |
72 | 72 | ||
73 | 73 | let J = valueOrElse(getInteger(this, m), g) | |
74 | 74 | ||
75 | 75 | let K = valueOrElse(getInteger(this, l), 0) | |
76 | 76 | ||
77 | 77 | let L = (K * J) | |
78 | 78 | ||
79 | 79 | let M = valueOrElse(getInteger(this, n), height) | |
80 | 80 | ||
81 | 81 | func N (O,P) = (O :+ parseIntValue(P)) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func Q (R) = { | |
85 | 85 | let S = fraction(M, 1, J) | |
86 | 86 | let T = ((R / J) - S) | |
87 | 87 | max([0, (L * T)]) | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func U () = Q(height) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func V () = { | |
95 | 95 | let W = I | |
96 | 96 | if ($isInstanceOf(W, "Unit")) | |
97 | 97 | then { | |
98 | 98 | let X = W | |
99 | 99 | wavesBalance(this).available | |
100 | 100 | } | |
101 | 101 | else if ($isInstanceOf(W, "ByteVector")) | |
102 | 102 | then { | |
103 | 103 | let Y = W | |
104 | 104 | assetBalance(this, Y) | |
105 | 105 | } | |
106 | 106 | else throw("Match error") | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func Z (aa) = { | |
111 | 111 | let ab = (E + Q(aa)) | |
112 | 112 | let ac = min([ab, V()]) | |
113 | 113 | if ((F == 0)) | |
114 | 114 | then 0 | |
115 | 115 | else ac | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func ad (R) = if ((F != 0)) | |
120 | 120 | then fraction(toBigInt(Z(R)), e, toBigInt(F)) | |
121 | 121 | else e | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func ae () = ad(height) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func af () = if ((K == 0)) | |
128 | 128 | then 0 | |
129 | 129 | else fraction((V() - Z(height)), 1, K) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ag (s) = { | |
133 | 133 | let ah = valueOrElse(getString(this, u(s)), "") | |
134 | 134 | let ai = valueOrElse(getString(this, v(s)), "") | |
135 | 135 | let aj = if ((ah == "")) | |
136 | 136 | then nil | |
137 | 137 | else split(ah, b) | |
138 | 138 | let ak = if ((ai == "")) | |
139 | 139 | then nil | |
140 | 140 | else split(ai, b) | |
141 | 141 | let al = { | |
142 | 142 | let am = ak | |
143 | 143 | let an = size(am) | |
144 | 144 | let ao = nil | |
145 | 145 | func ap (aq,ar) = if ((ar >= an)) | |
146 | 146 | then aq | |
147 | 147 | else N(aq, am[ar]) | |
148 | 148 | ||
149 | 149 | func as (aq,ar) = if ((ar >= an)) | |
150 | 150 | then aq | |
151 | 151 | else throw("List size exceeds 20") | |
152 | 152 | ||
153 | 153 | as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
154 | 154 | } | |
155 | 155 | $Tuple2(aj, al) | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func at (au,aa) = max([0, toInt(fraction(toBigInt(au), ad(aa), e))]) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func av (aw,aa) = max([0, toInt(fraction(toBigInt(aw), e, ad(aa)))]) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ax (s) = valueOrElse(getInteger(this, r(s)), 0) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ay (s) = valueOrElse(getInteger(this, t(s)), 0) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func az (s) = { | |
172 | 172 | let aA = ax(s) | |
173 | 173 | at(aA, height) | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aB (aC,s,aD) = { | |
178 | 178 | let aE = [if ((aD >= M)) | |
179 | 179 | then true | |
180 | 180 | else i(makeString(["stakeHeight(", toString(aD), ") is lower than startBlock(", toString(M), ")"], "")), if ((size(aC.payments) == 1)) | |
181 | 181 | then true | |
182 | 182 | else i("should include 1 payment"), if ((aC.payments[0].assetId == I)) | |
183 | 183 | then true | |
184 | 184 | else i(("payment should be in " + H)), if ((aC.payments[0].amount > 0)) | |
185 | 185 | then true | |
186 | 186 | else "payment amount should be greater than 0", if ((size(fromBase58String(s)) == f)) | |
187 | 187 | then true | |
188 | 188 | else i("user address is not valid")] | |
189 | 189 | if ((aE == aE)) | |
190 | 190 | then { | |
191 | 191 | let aF = aC.payments[0].amount | |
192 | 192 | let aG = av(aF, aD) | |
193 | 193 | let aA = ax(s) | |
194 | 194 | let aH = valueOrElse(getInteger(this, x(s)), 0) | |
195 | 195 | let aI = (F + aG) | |
196 | 196 | let aJ = at(aI, aD) | |
197 | 197 | let aK = (aA + aG) | |
198 | 198 | let aL = (aH + aF) | |
199 | 199 | [StringEntry(y("stake", s, aC.transactionId), B(Q(aD), ad(aD), F, E)), IntegerEntry(o, aI), IntegerEntry(p, aJ), IntegerEntry(r(s), aK), IntegerEntry(x(s), aL), IntegerEntry(n, aD)] | |
200 | 200 | } | |
201 | 201 | else throw("Strict value is not equal to itself.") | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | @Callable(aC) | |
206 | 206 | func adminStakeFor (s,aD) = { | |
207 | 207 | let aM = [if ((aC.caller == h)) | |
208 | 208 | then true | |
209 | 209 | else i("permission denied")] | |
210 | 210 | if ((aM == aM)) | |
211 | 211 | then aB(aC, s, aD) | |
212 | 212 | else throw("Strict value is not equal to itself.") | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | ||
217 | 217 | @Callable(aC) | |
218 | 218 | func airdrop (aN,aO,aP) = { | |
219 | 219 | func aQ (aR,aS) = if ((0 > aS)) | |
220 | 220 | then i("negative amount value in amountList") | |
221 | 221 | else (aR + aS) | |
222 | 222 | ||
223 | 223 | let aT = { | |
224 | 224 | let am = aO | |
225 | 225 | let an = size(am) | |
226 | 226 | let ao = 0 | |
227 | 227 | func ap (aq,ar) = if ((ar >= an)) | |
228 | 228 | then aq | |
229 | 229 | else aQ(aq, am[ar]) | |
230 | 230 | ||
231 | 231 | func as (aq,ar) = if ((ar >= an)) | |
232 | 232 | then aq | |
233 | 233 | else throw("List size exceeds 90") | |
234 | 234 | ||
235 | 235 | as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90) | |
236 | 236 | } | |
237 | 237 | let aM = [if ((aC.caller == h)) | |
238 | 238 | then true | |
239 | 239 | else i("permission denied"), if ((aP >= M)) | |
240 | 240 | then true | |
241 | 241 | else i(makeString(["airdropHeight(", toString(aP), ") is lower than startBlock(", toString(M), ")"], "")), if ((size(aC.payments) == 1)) | |
242 | 242 | then true | |
243 | 243 | else i("should include 1 payment"), if ((aC.payments[0].assetId == I)) | |
244 | 244 | then true | |
245 | 245 | else i(("payment should be in " + H)), if ((aC.payments[0].amount > 0)) | |
246 | 246 | then true | |
247 | 247 | else "payment amount should be greater than 0", if ((size(aN) == size(aO))) | |
248 | 248 | then true | |
249 | 249 | else i("addressList should be same size as amountList"), if ((aC.payments[0].amount >= aT)) | |
250 | 250 | then true | |
251 | 251 | else i("payment amount is less than sum of amountList")] | |
252 | 252 | if ((aM == aM)) | |
253 | 253 | then { | |
254 | 254 | func aU (aR,aw) = { | |
255 | 255 | let aV = aR | |
256 | 256 | let aW = aV._1 | |
257 | 257 | let aX = aV._2 | |
258 | 258 | let aY = aV._3 | |
259 | 259 | let aZ = aV._4 | |
260 | 260 | let ba = aN[aX] | |
261 | 261 | let bb = { | |
262 | 262 | let W = addressFromString(ba) | |
263 | 263 | if ($isInstanceOf(W, "Address")) | |
264 | 264 | then { | |
265 | 265 | let bc = W | |
266 | 266 | bc | |
267 | 267 | } | |
268 | 268 | else i("invalid address in addressList") | |
269 | 269 | } | |
270 | 270 | let bd = [if (!(containsElement(aZ, bb))) | |
271 | 271 | then true | |
272 | 272 | else i("duplicate address is addressList")] | |
273 | 273 | if ((bd == bd)) | |
274 | 274 | then { | |
275 | 275 | let be = av(aw, aP) | |
276 | 276 | let bf = t(ba) | |
277 | 277 | let bg = valueOrElse(getInteger(this, bf), 0) | |
278 | 278 | $Tuple4((aW :+ IntegerEntry(bf, (bg + be))), (aX + 1), (aY + be), (aZ :+ bb)) | |
279 | 279 | } | |
280 | 280 | else throw("Strict value is not equal to itself.") | |
281 | 281 | } | |
282 | 282 | ||
283 | 283 | let bh = { | |
284 | 284 | let am = aO | |
285 | 285 | let an = size(am) | |
286 | 286 | let ao = $Tuple4(nil, 0, 0, nil) | |
287 | 287 | func bi (aq,ar) = if ((ar >= an)) | |
288 | 288 | then aq | |
289 | 289 | else aU(aq, am[ar]) | |
290 | 290 | ||
291 | 291 | func bj (aq,ar) = if ((ar >= an)) | |
292 | 292 | then aq | |
293 | 293 | else throw("List size exceeds 90") | |
294 | 294 | ||
295 | 295 | bj(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(bi(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90) | |
296 | 296 | } | |
297 | 297 | let bk = bh._1 | |
298 | 298 | let bl = bh._2 | |
299 | 299 | let bm = bh._3 | |
300 | 300 | let bn = bh._4 | |
301 | 301 | let bo = at((F + bm), aP) | |
302 | 302 | ([IntegerEntry(q, (G + bm)), IntegerEntry(o, (F + bm)), IntegerEntry(p, bo), IntegerEntry(n, aP)] ++ bk) | |
303 | 303 | } | |
304 | 304 | else throw("Strict value is not equal to itself.") | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Callable(aC) | |
310 | 310 | func getUserAssetsREADONLY (s) = { | |
311 | 311 | let aA = ax(s) | |
312 | 312 | let bp = ay(s) | |
313 | 313 | let bq = at(bp, height) | |
314 | 314 | let br = az(s) | |
315 | 315 | let aH = valueOrElse(getInteger(this, x(s)), 0) | |
316 | 316 | let bs = valueOrElse(getInteger(this, w(s)), 0) | |
317 | 317 | let bt = ag(s) | |
318 | 318 | let bu = bt._1 | |
319 | 319 | let bv = bt._2 | |
320 | 320 | $Tuple2(nil, $Tuple10(aA, br, ae(), aH, bs, bp, bq, bu, bv, af())) | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | ||
325 | 325 | @Callable(aC) | |
326 | 326 | func getTotalAssetsREADONLY () = $Tuple2(nil, $Tuple6(F, Z(height), ae(), G, at(G, height), af())) | |
327 | 327 | ||
328 | 328 |
github/deemru/w8io/169f3d6 48.77 ms ◑