tx · 6kXfN63sqGkNqDVBco8UbUow111eoYfyWoAL53Pn1AWP

3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx:  -0.05000000 Waves

2022.06.07 00:27 [2085030] smart account 3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx > SELF 0.00000000 Waves

{ "type": 13, "id": "6kXfN63sqGkNqDVBco8UbUow111eoYfyWoAL53Pn1AWP", "fee": 5000000, "feeAssetId": null, "timestamp": 1654550776579, "version": 2, "chainId": 84, "sender": "3N9eLqWNqb7jeF383m9qsXEBqpp8qfQmfbx", "senderPublicKey": "5cWdpE4X7mfNkLmxJ389ws6qGZof4fwydqMcqPexhJ7w", "proofs": [ "33AusR7FBY72FXJbHXvYFKnx4jcM1EbUqNsjhVwpyZMiCq93PzAoDYmHUuzTzbAbdgabysdPtonGmUu1CSffjrfX" ], "script": "base64:AAIFAAAAAAAAAEoIAhIHCgUICAgBARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAkSAwoBCBIFCgMBCAESAwoBCAAAACMAAAAADGxvY2tpbmdTdG9yZQUAAAAEdGhpcwAAAAAMc3Rha2luZ1N0b3JlAgAAAAhfUmVzZXJ2ZQAAAAARbWluaW11bUxvY2tBbW91bnQCAAAADl9NaW5Mb2NrQW1vdW50AAAAABFtYXhpbXVtTG9ja0Ftb3VudAIAAAAOX01heExvY2tBbW91bnQAAAAACWFzc2V0TGlzdAUAAAADbmlsAAAAABF1bmxvY2tFbGlnaWJpbGl0eQIAAAAcX0VsaWdpYmxlX3RvX3VubG9ja19hdF9ibG9jawAAAAAMbG9ja2VkQW1vdW50AgAAAA5fQW1vdW50X2xvY2tlZAAAAAALbG9ja2VkQXNzZXQCAAAADV9Bc3NldF9sb2NrZWQAAAAABHVzZXICAAAABV9Vc2VyAAAAAApBUFlfQW1vdW50AgAAAAtfQVBZX2Ftb3VudAAAAAARdG90YWxMb2NrZWRBTW91bnQCAAAAFF9Ub3Rh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AAAEXRyYW5zZmVyQVBZQW1vdW50BQAAABF0cmFuc2ZlckFQWUFtb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAZ1c2VySWQFAAAADXVMb2NrZWRBbW91bnQJAAGbAAAAAQUAAAAGdUFzc2V0CQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAABJ1QWxyZWFkeUNsYWltZWRLZXkGBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAACrxSYQ==", "height": 2085030, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DNfsYMPKfTH7hjDG76QyLiGVgZ5MFH34ixLNWo1N2LMJ Next: Dwh6P3PtMRuJqm2ndYycTHFvsRfNpJeaKztYUXdTvB4M Diff:
OldNewDifferences
199199
200200
201201 @Callable(R)
202-func _getAssetIdByTicker (ab) = {
202+func getAssetIdByTicker (ab) = {
203203 let ag = Q(R)
204204 if ((ag == ag))
205205 then {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = this
55
66 let b = "_Reserve"
77
88 let c = "_MinLockAmount"
99
1010 let d = "_MaxLockAmount"
1111
1212 let e = nil
1313
1414 let f = "_Eligible_to_unlock_at_block"
1515
1616 let g = "_Amount_locked"
1717
1818 let h = "_Asset_locked"
1919
2020 let i = "_User"
2121
2222 let j = "_APY_amount"
2323
2424 let k = "_Total_Locked_Amount"
2525
2626 let l = "_Days_locked"
2727
2828 let m = "_Entry_Index"
2929
3030 let n = "_Already_Claimed"
3131
3232 let o = "admin_"
3333
3434 let p = 1440
3535
3636 let q = 30
3737
3838 let r = 60
3939
4040 let s = 90
4141
4242 func t (u) = getInteger(this, u)
4343
4444
4545 func v (u) = getString(this, u)
4646
4747
4848 func w (u) = value(getInteger(this, u))
4949
5050
5151 func x (u) = value(getString(this, u))
5252
5353
5454 func y (z,A) = if (z)
5555 then throw(A)
5656 else true
5757
5858
5959 func B (C,A) = {
6060 let D = C
6161 if ($isInstanceOf(D, "Int"))
6262 then {
6363 let C = D
6464 C
6565 }
6666 else throw(A)
6767 }
6868
6969
7070 func E (C,A) = {
7171 let D = C
7272 if ($isInstanceOf(D, "String"))
7373 then {
7474 let C = D
7575 C
7676 }
7777 else throw(A)
7878 }
7979
8080
8181 func F (u,G) = if ((0 > G))
8282 then throw(((("writing negative value " + toString(G)) + " for key ") + u))
8383 else IntegerEntry(u, G)
8484
8585
8686 func H (u,G) = if ((" " == G))
8787 then throw(("writing an empty string " + G))
8888 else StringEntry(u, G)
8989
9090
9191 func I (J) = if (if (if ((J != q))
9292 then true
9393 else (J != r))
9494 then true
9595 else (J != s))
9696 then throw("invalid Lock Period")
9797 else (((J + 1) * p) + height)
9898
9999
100100 func K (L) = if ((0 >= L))
101101 then 0
102102 else {
103103 let M = pow(10, 0, 3, 0, 0, CEILING)
104104 let N = fraction(L, M, p)
105105 N
106106 }
107107
108108
109109 func O (u,G) = if (!(isDefined(v(u))))
110110 then H(u, G)
111111 else throw(("already initialized: " + u))
112112
113113
114114 func P (u,G) = if (!(isDefined(v(u))))
115115 then F(u, G)
116116 else throw(("already initialized: " + u))
117117
118118
119119 func Q (R) = {
120120 let S = toBase58String(R.caller.bytes)
121121 let T = (o + S)
122122 let D = v(o)
123123 if ($isInstanceOf(D, "String"))
124124 then {
125125 let U = D
126126 if ((S != v(o)))
127127 then throw("unauthorized")
128128 else true
129129 }
130130 else {
131131 let V = v(T)
132132 if ($isInstanceOf(V, "String"))
133133 then {
134134 let W = V
135135 if ((S != v(T)))
136136 then throw("unauthorized")
137137 else true
138138 }
139139 else throw("unauthorizd")
140140 }
141141 }
142142
143143
144144 func X (u,Y) = {
145145 let D = Y
146146 if ($isInstanceOf(D, "String"))
147147 then {
148148 let Y = D
149149 O(u, Y)
150150 }
151151 else if ($isInstanceOf(D, "Int"))
152152 then {
153153 let Y = D
154154 P(u, Y)
155155 }
156156 else throw("unsupported config type")
157157 }
158158
159159
160160 func Z (u) = {
161161 let aa = t(u)
162162 if (isDefined(aa))
163163 then (value(aa) + 1)
164164 else 0
165165 }
166166
167167
168168 @Callable(R)
169169 func addAsset (ab,ac,ad,ae,af) = {
170170 let ag = Q(R)
171171 if ((ag == ag))
172172 then {
173173 let ah = (ab + b)
174174 let ai = (ab + c)
175175 let aj = (ab + d)
176176 let ak = if ((af > ae))
177177 then [P(ai, ae), P(aj, af)]
178178 else [P(ai, af), P(aj, ae)]
179179 ([O(ab, ac), O(ah, ad)] ++ ak)
180180 }
181181 else throw("Strict value is not equal to itself.")
182182 }
183183
184184
185185
186186 @Callable(R)
187187 func deleteAsset (ab) = {
188188 let ag = Q(R)
189189 if ((ag == ag))
190190 then {
191191 let al = E(v(ab), (("asset with ticker " + ab) + "not found"))
192192 if ((al == al))
193193 then [DeleteEntry(ab), DeleteEntry((ab + c)), DeleteEntry((ab + d)), DeleteEntry((ab + b))]
194194 else throw("Strict value is not equal to itself.")
195195 }
196196 else throw("Strict value is not equal to itself.")
197197 }
198198
199199
200200
201201 @Callable(R)
202-func _getAssetIdByTicker (ab) = {
202+func getAssetIdByTicker (ab) = {
203203 let ag = Q(R)
204204 if ((ag == ag))
205205 then {
206206 let U = E(v(ab), "asset not found")
207207 $Tuple2(nil, U)
208208 }
209209 else throw("Strict value is not equal to itself.")
210210 }
211211
212212
213213
214214 @Callable(R)
215215 func init (am) = {
216216 let an = valueOrErrorMessage(addressFromString(am), "invalid address")
217217 [O(o, toString(an))]
218218 }
219219
220220
221221
222222 @Callable(R)
223223 func _deleteEntry (u) = {
224224 let ag = Q(R)
225225 if ((ag == ag))
226226 then [DeleteEntry(u)]
227227 else throw("Strict value is not equal to itself.")
228228 }
229229
230230
231231
232232 @Callable(R)
233233 func addAdmin (am) = {
234234 let ag = Q(R)
235235 if ((ag == ag))
236236 then {
237237 let an = valueOrErrorMessage(addressFromString(am), "invalid address")
238238 let ao = (o + toString(an))
239239 [O(ao, am)]
240240 }
241241 else throw("Strict value is not equal to itself.")
242242 }
243243
244244
245245
246246 @Callable(R)
247247 func changeMainAdmin (ap) = {
248248 let aq = Q(R)
249249 if ((aq == aq))
250250 then {
251251 let an = valueOrErrorMessage(addressFromString(ap), "invalid address")
252252 let ar = DeleteEntry(o)
253253 if ((ar == ar))
254254 then [O(o, toString(an))]
255255 else throw("Strict value is not equal to itself.")
256256 }
257257 else throw("Strict value is not equal to itself.")
258258 }
259259
260260
261261
262262 @Callable(R)
263263 func updateOtherAdminAddress (ap) = {
264264 let aq = Q(R)
265265 if ((aq == aq))
266266 then {
267267 let an = valueOrErrorMessage(addressFromString(ap), "invalid address")
268268 let as = toString(R.caller)
269269 let T = (o + as)
270270 let at = E(v(T), "no previous address found")
271271 if ((at == at))
272272 then {
273273 let au = DeleteEntry(T)
274274 if ((au == au))
275275 then [O(T, toString(an))]
276276 else throw("Strict value is not equal to itself.")
277277 }
278278 else throw("Strict value is not equal to itself.")
279279 }
280280 else throw("Strict value is not equal to itself.")
281281 }
282282
283283
284284
285285 @Callable(R)
286286 func removeOtherAdmin (av) = {
287287 let aq = Q(R)
288288 if ((aq == aq))
289289 then {
290290 let an = valueOrErrorMessage(addressFromString(av), "invalid address")
291291 let aw = (o + toString(an))
292292 let ax = DeleteEntry(aw)
293293 if ((ax == ax))
294294 then nil
295295 else throw("Strict value is not equal to itself.")
296296 }
297297 else throw("Strict value is not equal to itself.")
298298 }
299299
300300
301301
302302 @Callable(R)
303303 func updateConfigValue (u,Y) = {
304304 let aq = Q(R)
305305 if ((aq == aq))
306306 then {
307307 let ar = DeleteEntry(u)
308308 if ((ar == ar))
309309 then [X(u, Y)]
310310 else throw("Strict value is not equal to itself.")
311311 }
312312 else throw("Strict value is not equal to itself.")
313313 }
314314
315315
316316
317317 @Callable(R)
318318 func getDaysLeftToClaim (ay) = {
319319 let az = Q(R)
320320 if ((az == az))
321321 then {
322322 let aA = valueOrErrorMessage(addressFromString(ay), "invalid address")
323323 if ((aA == aA))
324324 then {
325325 let aB = ("_" + toString(B(t((ay + m)), ("no entry found for " + ay))))
326326 let aC = ((ay + aB) + f)
327327 let aD = B(t(aC), "internal error")
328328 let aE = I((height - aD))
329329 $Tuple2(nil, aE)
330330 }
331331 else throw("Strict value is not equal to itself.")
332332 }
333333 else throw("Strict value is not equal to itself.")
334334 }
335335
336336
337337
338338 @Callable(R)
339339 func Lock (aF,ab,aG) = {
340340 let aA = y((1 != size(R.payments)), "attach amount you want to lock")
341341 if ((aA == aA))
342342 then {
343343 let aH = toBase58String(value(R.payments[0].assetId))
344344 let aI = y((v(ab) != aH), "asset not supported")
345345 if ((aI == aI))
346346 then {
347347 let aJ = aF
348348 let aK = toBase58String(R.caller.bytes)
349349 let aL = R.payments[0].amount
350350 let aM = B(t((ab + c)), "internal error: minimum stacking amount not specified")
351351 let aN = B(t((ab + d)), "internal error: maximum staking amount not specified")
352352 let aO = y(if ((aM > aL))
353353 then true
354354 else (aL > aN), "staking amount is out of range")
355355 if ((aO == aO))
356356 then {
357357 let aP = (aK + k)
358358 let aQ = if (!(isDefined(t(aP))))
359359 then 0
360360 else (aL + value(t(aP)))
361361 let aR = y((aQ > aN), "you have maxed out your quota")
362362 if ((aR == aR))
363363 then {
364364 let aB = ((aK + ab) + m)
365365 let aS = Z(aB)
366366 let aT = ((("_" + ab) + "_") + toString(aS))
367367 let aU = ((aK + aT) + i)
368368 let aV = ((aK + aT) + h)
369369 let aW = ((aK + aT) + l)
370370 let aX = ((aK + aT) + g)
371371 let aY = ((aK + aT) + j)
372372 let aC = ((aK + aT) + f)
373373 let aZ = ((aK + aT) + n)
374374 [P(aB, aS), O(aU, aK), O(aV, aH), P(aW, aJ), P(aX, R.payments[0].amount), P(aP, aQ), P(aC, I(aF)), P(aY, aG), BooleanEntry(aZ, false)]
375375 }
376376 else throw("Strict value is not equal to itself.")
377377 }
378378 else throw("Strict value is not equal to itself.")
379379 }
380380 else throw("Strict value is not equal to itself.")
381381 }
382382 else throw("Strict value is not equal to itself.")
383383 }
384384
385385
386386
387387 @Callable(R)
388388 func Claim (ab) = {
389389 let aK = toString(R.caller)
390390 let aB = ((("_" + ab) + "_") + toString(B(t(((aK + ab) + m)), "no entry found for user")))
391391 let ba = ((aK + aB) + n)
392392 let az = y((valueOrErrorMessage(getBoolean(ba), "cannot ascertain claimability") == true), (("user + " + aK) + " already claimed"))
393393 if ((az == az))
394394 then {
395395 let aV = x(((aK + aB) + h))
396396 let aX = w(((aK + aB) + g))
397397 let bb = addressFromStringValue(E(v((ab + b)), "internal error: no reserve found"))
398398 let bc = w(((aK + aB) + j))
399399 let bd = w(((aK + aB) + f))
400400 let L = if ((0 >= (bd - height)))
401401 then 0
402402 else (bd - height)
403403 let be = K(L)
404404 let aA = y((bd > height), (toString(be) + "/1000 days left to claim"))
405405 if ((aA == aA))
406406 then {
407407 let bf = invoke(bb, "transferInterest", [aK, bc, toBytes(aV)], nil)
408408 if ((bf == bf))
409409 then [ScriptTransfer(addressFromStringValue(aK), aX, toBytes(aV)), BooleanEntry(ba, true)]
410410 else throw("Strict value is not equal to itself.")
411411 }
412412 else throw("Strict value is not equal to itself.")
413413 }
414414 else throw("Strict value is not equal to itself.")
415415 }
416416
417417

github/deemru/w8io/169f3d6 
76.59 ms