tx · 69CV1wnJXRFtcAesAXc8s5LFPSJHDwjGF8nshnC6VuU1 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.00600000 Waves 2023.11.10 12:29 [2837071] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{ "type": 13, "id": "69CV1wnJXRFtcAesAXc8s5LFPSJHDwjGF8nshnC6VuU1", "fee": 600000, "feeAssetId": null, "timestamp": 1699608645936, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "299ypjZK5GYYRj2EWvjPskVQgqcFc5qPeNiLtn9q6Nmzv4p6fQ1LDTqT7QBvAzNzeSCCYX7rVHLmddnwXnvCiYxz" ], "script": "base64:BgISCAISABIAEgASAwoBCBIDCgEYEgACZDgAgMLXLwENdHJ5R2V0SW50ZWdlcgIHYWRkcmVzcwNrZXkEByRtYXRjaDAJAJoIAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYgUHJG1hdGNoMAUBYgAAAQx0cnlHZXRTdHJpbmcCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCdCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWIFByRtYXRjaDAFAWICAAAHYnVybnh0bgEgJE91eWp+Mzm4+wz/hKlxXF7KLd4zoMRdafnqRBHsTFQAA1BaMQEaAVeFnSww1fwDPmHFrd6Sv8UqkfOZrhpBQAoAA1BaMgEaAVf1RmgngA1o304mdXq0odMoMeAJv/V5eTcAA1BaMwEaAVdrUh3hZ11iM5xE9ppvCu7VVcjaIPzs5scAA1BaNAEaAVd8ufIkLHkd+cILYV2n5Ut+Pmb4MdnkIOIAA1BaNQEaAVdzM1uLVnknLEeNcZD2LCCz+T9Cl/2cRdIAA1BaNgEaAVdHHWb6sJR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", "height": 2837071, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E7M9R9qmhBAPGh1Pb4msHu85YJPUkVfubrVdb5UVsxSb Next: EaDf88YUqoRXULMj1nWorGbq8gaiVpiV4H3JcYeFzwkZ Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b,c) = { | |
5 | - | let d = getInteger(b, c) | |
6 | - | if ($isInstanceOf(d, "Int")) | |
4 | + | let a = 100000000 | |
5 | + | ||
6 | + | func b (c,d) = { | |
7 | + | let e = getInteger(c, d) | |
8 | + | if ($isInstanceOf(e, "Int")) | |
7 | 9 | then { | |
8 | - | let | |
9 | - | | |
10 | + | let f = e | |
11 | + | f | |
10 | 12 | } | |
11 | 13 | else 0 | |
12 | 14 | } | |
13 | 15 | ||
14 | 16 | ||
15 | - | func | |
16 | - | let | |
17 | - | if ($isInstanceOf( | |
17 | + | func g (c,d) = { | |
18 | + | let e = getString(c, d) | |
19 | + | if ($isInstanceOf(e, "String")) | |
18 | 20 | then { | |
19 | - | let | |
20 | - | | |
21 | + | let f = e | |
22 | + | f | |
21 | 23 | } | |
22 | 24 | else "" | |
23 | 25 | } | |
24 | 26 | ||
25 | 27 | ||
26 | - | let | |
28 | + | let h = base58'3SjxA2YLdfF9fTRbzLm9xFn27C6MW34W1YsdJ6Axefns' | |
27 | 29 | ||
28 | - | let | |
30 | + | let i = base58'3PE7NtJdmVq4yo47LKDqurQ8RLDCouvJCPB' | |
29 | 31 | ||
30 | - | let | |
32 | + | let j = base58'3PQHndCUVrv3wBuQjbvVP9SnGmfbfitGxfx' | |
31 | 33 | ||
32 | - | let | |
34 | + | let k = base58'3PBiMQLnX8wd4bssXCgF8KuUqHv1H4zWHGi' | |
33 | 35 | ||
34 | - | let | |
36 | + | let l = base58'3PDJPGn6vBEBqWN4E3fNcxoKBoDXbsmoaM7' | |
35 | 37 | ||
36 | - | let | |
38 | + | let m = base58'3PCS1xhGQi2eM5mYcCBhUSHvB31Kk5gZoCm' | |
37 | 39 | ||
38 | - | let | |
40 | + | let n = base58'3P8Quvmgt3VEWAjBR3bsfgCqzUh7zTmTC4q' | |
39 | 41 | ||
40 | - | let | |
42 | + | let o = base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV' | |
41 | 43 | ||
42 | - | let | |
44 | + | let p = base58'3P5vwLbXddLWpsRspftMxLuzfsjk3dLT3n5' | |
43 | 45 | ||
44 | - | let | |
46 | + | let q = "GyiHdcN59sZ46baFvj68ruLngrTPEvWDtsd6jHm4o46n" | |
45 | 47 | ||
46 | - | let | |
48 | + | let r = base58'3PKXseWa31VUSWUvm2YiRKxW2VM9RsVk3ry' | |
47 | 49 | ||
48 | - | let | |
50 | + | let s = "3MPHMJVwYGyeBLRsH1RsYhrTmemv752AEBwuFFV7g49Z" | |
49 | 51 | ||
50 | - | func | |
51 | - | let | |
52 | - | let | |
53 | - | let | |
54 | - | fraction( | |
52 | + | func t (u,c) = { | |
53 | + | let v = b(Address(u), (("global_" + toBase58String(h)) + "_balance")) | |
54 | + | let w = b(Address(u), (toString(c) + "_indexStaked")) | |
55 | + | let x = b(Address(u), "global_poolToken_amount") | |
56 | + | fraction(v, w, x) | |
55 | 57 | } | |
56 | 58 | ||
57 | 59 | ||
58 | - | func | |
59 | - | let | |
60 | - | let | |
61 | - | let | |
62 | - | fraction( | |
60 | + | func y (u,c,z) = { | |
61 | + | let A = assetBalance(Address(u), h) | |
62 | + | let B = b(Address(o), ((("%s%s%s__staked__" + toString(c)) + "__") + z)) | |
63 | + | let C = b(Address(o), ("%s%s%s__staked__total__" + z)) | |
64 | + | fraction(A, B, C) | |
63 | 65 | } | |
64 | 66 | ||
65 | 67 | ||
66 | - | func | |
67 | - | let | |
68 | - | let | |
69 | - | let | |
70 | - | let | |
71 | - | let | |
72 | - | let | |
73 | - | let | |
74 | - | let | |
75 | - | let | |
76 | - | let | |
77 | - | [IntegerEntry("burnxtnBalance", | |
68 | + | func D (c) = { | |
69 | + | let E = assetBalance(c, h) | |
70 | + | let F = t(i, c) | |
71 | + | let G = t(j, c) | |
72 | + | let H = t(k, c) | |
73 | + | let I = t(l, c) | |
74 | + | let J = t(m, c) | |
75 | + | let K = t(n, c) | |
76 | + | let L = y(p, c, q) | |
77 | + | let M = y(r, c, s) | |
78 | + | let N = ((((((((E + F) + G) + H) + I) + J) + K) + L) + M) | |
79 | + | [IntegerEntry("burnxtnBalance", E), IntegerEntry("PZ1balance", F), IntegerEntry("PZ2balance", G), IntegerEntry("PZ3balance", H), IntegerEntry("PZ4balance", I), IntegerEntry("PZ5balance", J), IntegerEntry("PZ6balance", K), IntegerEntry("WX1balance", L), IntegerEntry("WX2balance", M), IntegerEntry("total", N)] | |
78 | 80 | } | |
79 | 81 | ||
80 | 82 | ||
81 | - | @Callable( | |
82 | - | func register () = if (contains( | |
83 | + | @Callable(O) | |
84 | + | func register () = if (contains(g(this, "Address registered"), toString(O.caller))) | |
83 | 85 | then throw("already registered") | |
84 | 86 | else if ((height > 1)) | |
85 | 87 | then throw("registration closed") | |
86 | - | else [IntegerEntry("Amount Registered", ( | |
88 | + | else [IntegerEntry("Amount Registered", (b(this, "Amount Registered") + 1)), StringEntry(("Register address: " + toString((b(this, "Amount Registered") + 1))), toString(O.caller)), StringEntry("Address registered", ((g(this, "Address registered") + toString(O.caller)) + ","))] | |
87 | 89 | ||
88 | 90 | ||
89 | 91 | ||
90 | - | @Callable( | |
92 | + | @Callable(O) | |
91 | 93 | func makeList () = { | |
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 | - | func V (W,b) = (W ++ [IntegerEntry(b, wavesBalance(addressFromStringValue(b)).available)]) | |
94 | + | let P = dropRight(g(this, "Address registered"), 1) | |
95 | + | let Q = split(P, ",") | |
96 | + | let R = size(Q) | |
97 | + | func S (T,c) = if (((3 * a) > wavesBalance(addressFromStringValue(c)).available)) | |
98 | + | then nil | |
99 | + | else (T ++ [IntegerEntry(c, wavesBalance(addressFromStringValue(c)).available)]) | |
100 | 100 | ||
101 | - | let | |
102 | - | let | |
103 | - | let | |
104 | - | let | |
105 | - | func | |
106 | - | then | |
107 | - | else | |
101 | + | let U = { | |
102 | + | let V = Q | |
103 | + | let W = size(V) | |
104 | + | let X = nil | |
105 | + | func Y (Z,aa) = if ((aa >= W)) | |
106 | + | then Z | |
107 | + | else S(Z, V[aa]) | |
108 | 108 | ||
109 | - | func | |
110 | - | then | |
109 | + | func ab (Z,aa) = if ((aa >= W)) | |
110 | + | then Z | |
111 | 111 | else throw("List size exceeds 100") | |
112 | 112 | ||
113 | - | | |
113 | + | ab(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(X, 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), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
114 | 114 | } | |
115 | - | ( | |
115 | + | (nil ++ U) | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | ||
120 | - | @Callable( | |
121 | - | func totalBalanceCaller () = (nil ++ | |
120 | + | @Callable(O) | |
121 | + | func totalBalanceCaller () = (nil ++ D(O.caller)) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | ||
125 | - | @Callable( | |
126 | - | func totalBalanceAddress ( | |
125 | + | @Callable(O) | |
126 | + | func totalBalanceAddress (c) = (nil ++ D(value(addressFromString(c)))) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | ||
130 | - | @Callable( | |
131 | - | func transfer ( | |
132 | - | let | |
133 | - | let | |
134 | - | let | |
135 | - | func | |
130 | + | @Callable(O) | |
131 | + | func transfer (P) = { | |
132 | + | let ac = O.payments[0].assetId | |
133 | + | let ad = O.payments[0].amount | |
134 | + | let ae = (ad / size(P)) | |
135 | + | func S (T,c) = (T ++ [ScriptTransfer(addressFromStringValue(c), ae, ac)]) | |
136 | 136 | ||
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | func | |
141 | - | then | |
142 | - | else | |
137 | + | let V = P | |
138 | + | let W = size(V) | |
139 | + | let X = nil | |
140 | + | func Y (Z,aa) = if ((aa >= W)) | |
141 | + | then Z | |
142 | + | else S(Z, V[aa]) | |
143 | 143 | ||
144 | - | func | |
145 | - | then | |
144 | + | func ab (Z,aa) = if ((aa >= W)) | |
145 | + | then Z | |
146 | 146 | else throw("List size exceeds 100") | |
147 | 147 | ||
148 | - | | |
148 | + | ab(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(X, 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), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 |
github/deemru/w8io/026f985 245.56 ms ◑