tx · JD1XYdQBNzPFc11KUp5ey2kskimBWLRYkraZ3FRzLHR3

3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez:  -0.00400000 Waves

2023.11.10 11:04 [2836987] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves

{ "type": 13, "id": "JD1XYdQBNzPFc11KUp5ey2kskimBWLRYkraZ3FRzLHR3", "fee": 400000, "feeAssetId": null, "timestamp": 1699603529353, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "2FfkV2DfxnfFVSCsnCNLprCdTU1mPiETgRtKtLR5B1dy12t9ZnFG1TYfnN1piM3kXjGabPoUk7hzRh9CQNh7spqZ" ], "script": "base64:BgIGCAISABIAEQENdHJ5R2V0SW50ZWdlcgIHYWRkcmVzcwNrZXkEByRtYXRjaDAJAJoIAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYgUHJG1hdGNoMAUBYgAAAQx0cnlHZXRTdHJpbmcCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCdCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWIFByRtYXRjaDAFAWICAAAHYnVybnh0bgEgJE91eWp+Mzm4+wz/hKlxXF7KLd4zoMRdafnqRBHsTFQAA1BaMQEaAVeFnSww1fwDPmHFrd6Sv8UqkfOZrhpBQAoAA1BaMgEaAVf1RmgngA1o304mdXq0odMoMeAJv/V5eTcAA1BaMwEaAVdrUh3hZ11iM5xE9ppvCu7VVcjaIPzs5scAA1BaNAEaAVd8ufIkLHkd+cILYV2n5Ut+Pmb4MdnkIOIAA1BaNQEaAVdzM1uLVnknLEeNcZD2LCCz+T9Cl/2cRdIAA1BaNgEaAVdHHWb6sJRhaJYHMq62QOOh/3POTybYR7oAB1dYc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RyZXNzIHJlZ2lzdGVyZWQAAQQEbGlzdAkAtQkCBQlhZGRyZXNzZXMCASwECGxpc3RTaXplCQCQAwEFBGxpc3QEC2ZpcnN0T2ZMaXN0CQCRAwIFBGxpc3QAAAQKbGFzdE9mTGlzdAkAkQMCBQRsaXN0CQBlAgUIbGlzdFNpemUAAQQIYWRkcmVzczEJAQV2YWx1ZQEJAKYIAQULZmlyc3RPZkxpc3QECGJhbGFuY2UxCAkA7wcBBQhhZGRyZXNzMQlhdmFpbGFibGUJAMwIAgkBC1N0cmluZ0VudHJ5AgIJYWRkcmVzc2VzBQlhZGRyZXNzZXMJAMwIAgkBDEludGVnZXJFbnRyeQICCGxpc3RTaXplBQhsaXN0U2l6ZQkAzAgCCQELU3RyaW5nRW50cnkCAgtmaXJzdE9mTGlzdAULZmlyc3RPZkxpc3QJAMwIAgkBC1N0cmluZ0VudHJ5AgIKbGFzdE9mTGlzdAUKbGFzdE9mTGlzdAkAzAgCCQEMSW50ZWdlckVudHJ5AgIIYmFsYW5jZTEFCGJhbGFuY2UxBQNuaWwATb6X6Q==", "height": 2836987, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HgBAhsfCrhbVoMnnmrc9YSkXcbmctqBiKH4cMD4GgCcR Next: E7M9R9qmhBAPGh1Pb4msHu85YJPUkVfubrVdb5UVsxSb Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func a (b) = {
5- let c = getInteger(this, b)
6- if ($isInstanceOf(c, "Int"))
4+func a (b,c) = {
5+ let d = getInteger(b, c)
6+ if ($isInstanceOf(d, "Int"))
77 then {
8- let d = c
9- d
8+ let e = d
9+ e
1010 }
1111 else 0
1212 }
1313
1414
15-func e (b) = {
16- let c = getString(this, b)
17- if ($isInstanceOf(c, "String"))
15+func f (b,c) = {
16+ let d = getString(b, c)
17+ if ($isInstanceOf(d, "String"))
1818 then {
19- let d = c
20- d
19+ let e = d
20+ e
2121 }
2222 else ""
2323 }
2424
2525
26-@Callable(f)
27-func register () = [IntegerEntry("Amount Registered", (a("Amount Registered") + 1)), StringEntry(("Register address: " + toString((a("Amount Registered") + 1))), toString(f.caller)), StringEntry("Address registered", ((e("Address registered") + toString(f.caller)) + ","))]
26+let g = base58'3SjxA2YLdfF9fTRbzLm9xFn27C6MW34W1YsdJ6Axefns'
27+
28+let h = base58'3PE7NtJdmVq4yo47LKDqurQ8RLDCouvJCPB'
29+
30+let i = base58'3PQHndCUVrv3wBuQjbvVP9SnGmfbfitGxfx'
31+
32+let j = base58'3PBiMQLnX8wd4bssXCgF8KuUqHv1H4zWHGi'
33+
34+let k = base58'3PDJPGn6vBEBqWN4E3fNcxoKBoDXbsmoaM7'
35+
36+let l = base58'3PCS1xhGQi2eM5mYcCBhUSHvB31Kk5gZoCm'
37+
38+let m = base58'3P8Quvmgt3VEWAjBR3bsfgCqzUh7zTmTC4q'
39+
40+let n = base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'
41+
42+let o = base58'3P5vwLbXddLWpsRspftMxLuzfsjk3dLT3n5'
43+
44+let p = "GyiHdcN59sZ46baFvj68ruLngrTPEvWDtsd6jHm4o46n"
45+
46+let q = base58'3PKXseWa31VUSWUvm2YiRKxW2VM9RsVk3ry'
47+
48+let r = "3MPHMJVwYGyeBLRsH1RsYhrTmemv752AEBwuFFV7g49Z"
49+
50+func s (t,b) = {
51+ let u = a(Address(t), (("global_" + toBase58String(g)) + "_balance"))
52+ let v = a(Address(t), (toString(b) + "_indexStaked"))
53+ let w = a(Address(t), "global_poolToken_amount")
54+ fraction(u, v, w)
55+ }
56+
57+
58+func x (t,b,y) = {
59+ let z = assetBalance(Address(t), g)
60+ let A = a(Address(n), ((("%s%s%s__staked__" + toString(b)) + "__") + y))
61+ let B = a(Address(t), ("%s%s%s__staked__total__" + y))
62+ fraction(z, A, B)
63+ }
64+
65+
66+func C (b) = {
67+ let D = assetBalance(b, g)
68+ let E = s(h, b)
69+ let F = s(i, b)
70+ let G = s(j, b)
71+ let H = s(k, b)
72+ let I = s(l, b)
73+ let J = s(m, b)
74+ let K = x(o, b, p)
75+ let L = x(q, b, r)
76+ let M = ((((((((D + E) + F) + G) + H) + I) + J) + K) + L)
77+[IntegerEntry("burnxtnBalance", D), IntegerEntry("PZ1balance", E), IntegerEntry("PZ2balance", F), IntegerEntry("PZ3balance", G), IntegerEntry("PZ4balance", H), IntegerEntry("PZ5balance", I), IntegerEntry("PZ6balance", J), IntegerEntry("WX1balance", K), IntegerEntry("WX2balance", L), IntegerEntry("total", M)]
78+ }
79+
80+
81+@Callable(N)
82+func register () = if (contains(f(this, "Address registered"), toString(N.caller)))
83+ then throw("already registered")
84+ else if ((height > 1))
85+ then throw("registration closed")
86+ else [IntegerEntry("Amount Registered", (a(this, "Amount Registered") + 1)), StringEntry(("Register address: " + toString((a(this, "Amount Registered") + 1))), toString(N.caller)), StringEntry("Address registered", ((f(this, "Address registered") + toString(N.caller)) + ","))]
2887
2988
3089
31-@Callable(f)
90+@Callable(N)
3291 func makeList () = {
33- let g = dropRight(e("Address registered"), 1)
34- let h = split(g, ",")
35- let i = size(h)
36- let j = h[0]
37- let k = h[(i - 1)]
38- let l = value(addressFromString(j))
39- let m = wavesBalance(l).available
40-[StringEntry("addresses", g), IntegerEntry("listSize", i), StringEntry("firstOfList", j), StringEntry("lastOfList", k), IntegerEntry("balance1", m)]
92+ let O = dropRight(f(this, "Address registered"), 1)
93+ let P = split(O, ",")
94+ let Q = size(P)
95+ let R = P[0]
96+ let S = P[(Q - 1)]
97+ let T = value(addressFromString(R))
98+ let U = wavesBalance(T).available
99+[StringEntry("addresses", O), IntegerEntry("listSize", Q), StringEntry("firstOfList", R), StringEntry("lastOfList", S), IntegerEntry("balance1", U)]
41100 }
42101
43102

github/deemru/w8io/169f3d6 
39.48 ms