tx · CWjo8tYroyjX4kYFFy7axZ5L9Dv2xk5WAAtPPryDhkFw 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.01200000 Waves 2023.11.12 15:16 [2840111] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{ "type": 13, "id": "CWjo8tYroyjX4kYFFy7axZ5L9Dv2xk5WAAtPPryDhkFw", "fee": 1200000, "feeAssetId": null, "timestamp": 1699791419514, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "2mxNchjT49dh1fpra6f1CVgzb2etS24aG5584tgrLDTwJ1seimjYXLNQ9pExzKNs6JcDm7vK6QXEUdAP5iQXXQYR" ], "script": "base64:BgIXCAISABIAEgASABIAEgASAwoBCBIAEgAWAAJkOACAwtcvABJyZWdpc3RyYXRpb25DbG9zZWQAAQAXcmVnaXN0cmF0aW9uUmVxdWlyZW1lbnQJAGgCAMC4AgUCZDgBDXRyeUdldEludGVnZXICB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCaCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAEMdHJ5R2V0U3RyaW5nAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAnQgCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFiBQckbWF0Y2gwBQFiAgAAB2J1cm54dG4BICRPdXlqfjM5uPsM/4SpcVxeyi3eM6DEXWn56kQR7ExUAAl3aGlybHBvb2wBIFnjjdzCtSO6ShTcxNCvFAnmZOYEviUGCyZO5VBtl1nHAANQWjEBGgFXhZ0sMNX8Az5hxa3ekr/FKpHzma4aQUAKAANQWjIBGgFX9UZoJ4ANaN9OJnV6tKHTKDHgCb/1eXk3AANQWjMBGgFXa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MQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4ATwBQAFEAUgBTAFQAVQBWAFcAWABZAFoAWwBcAF0AXgBfAGAAYQBiAGMAZABLz0yh", "height": 2840111, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GohtAhhtupwR9QxCKyCcX9MYuic4d8s2BpqKfHqhP6VP Next: ABPXjrStzEi51Mrz7qzYY2CmB7bKH4vByXRifoDuVHFm Diff:
Old | New | Differences | |
---|---|---|---|
232 | 232 | } | |
233 | 233 | let am = size(al) | |
234 | 234 | let an = fraction(am, 80, 100, DOWN) | |
235 | - | | |
236 | - | ||
237 | - | | |
235 | + | let ao = makeString(al, ",") | |
236 | + | [StringEntry("Filter", ao), IntegerEntry("list size filterList", am), IntegerEntry("cullSize", an)] | |
237 | + | } | |
238 | 238 | ||
239 | - | let ah = { | |
240 | - | let Y = U | |
241 | - | let Z = size(Y) | |
242 | - | let aa = "" | |
243 | - | func ap (ac,ad) = if ((ad >= Z)) | |
244 | - | then ac | |
245 | - | else ao(ac, Y[ad]) | |
246 | 239 | ||
247 | - | func aq (ac,ad) = if ((ad >= Z)) | |
248 | - | then ac | |
249 | - | else throw("List size exceeds 98") | |
250 | 240 | ||
251 | - | ||
252 | - | ||
253 | - | ||
254 | - | | |
241 | + | @Callable(S) | |
242 | + | func fAddress (e) = if ((S.caller != this)) | |
243 | + | then throw("access only by project owner") | |
244 | + | else [StringEntry("Filter address", ((i(this, "Filter address") + e) + ","))] | |
255 | 245 | ||
256 | 246 | ||
257 | 247 | ||
266 | 256 | func transfer () = if ((S.caller != this)) | |
267 | 257 | then throw("access only by project owner") | |
268 | 258 | else { | |
269 | - | let | |
270 | - | let | |
259 | + | let ap = k | |
260 | + | let aq = (2 * a) | |
271 | 261 | let T = dropRight(i(this, "winners"), 1) | |
272 | 262 | let U = split(T, ",") | |
273 | - | let | |
274 | - | func | |
263 | + | let ar = (aq / size(U)) | |
264 | + | func as (W,e) = (W ++ [ScriptTransfer(addressFromStringValue(e), ar, ap)]) | |
275 | 265 | ||
276 | 266 | let Y = U | |
277 | 267 | let Z = size(Y) | |
278 | 268 | let aa = nil | |
279 | 269 | func ab (ac,ad) = if ((ad >= Z)) | |
280 | 270 | then ac | |
281 | - | else | |
271 | + | else as(ac, Y[ad]) | |
282 | 272 | ||
283 | 273 | func ae (ac,ad) = if ((ad >= Z)) | |
284 | 274 | then ac |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = 1 | |
7 | 7 | ||
8 | 8 | let c = (40000 * a) | |
9 | 9 | ||
10 | 10 | func d (e,f) = { | |
11 | 11 | let g = getInteger(e, f) | |
12 | 12 | if ($isInstanceOf(g, "Int")) | |
13 | 13 | then { | |
14 | 14 | let h = g | |
15 | 15 | h | |
16 | 16 | } | |
17 | 17 | else 0 | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func i (e,f) = { | |
22 | 22 | let g = getString(e, f) | |
23 | 23 | if ($isInstanceOf(g, "String")) | |
24 | 24 | then { | |
25 | 25 | let h = g | |
26 | 26 | h | |
27 | 27 | } | |
28 | 28 | else "" | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | let j = base58'3SjxA2YLdfF9fTRbzLm9xFn27C6MW34W1YsdJ6Axefns' | |
33 | 33 | ||
34 | 34 | let k = base58'73tY3E6Gd5AWYmsuq8m8Kek7KnJNAYyS3GoveTbc6jCi' | |
35 | 35 | ||
36 | 36 | let l = base58'3PE7NtJdmVq4yo47LKDqurQ8RLDCouvJCPB' | |
37 | 37 | ||
38 | 38 | let m = base58'3PQHndCUVrv3wBuQjbvVP9SnGmfbfitGxfx' | |
39 | 39 | ||
40 | 40 | let n = base58'3PBiMQLnX8wd4bssXCgF8KuUqHv1H4zWHGi' | |
41 | 41 | ||
42 | 42 | let o = base58'3PDJPGn6vBEBqWN4E3fNcxoKBoDXbsmoaM7' | |
43 | 43 | ||
44 | 44 | let p = base58'3PCS1xhGQi2eM5mYcCBhUSHvB31Kk5gZoCm' | |
45 | 45 | ||
46 | 46 | let q = base58'3P8Quvmgt3VEWAjBR3bsfgCqzUh7zTmTC4q' | |
47 | 47 | ||
48 | 48 | let r = base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV' | |
49 | 49 | ||
50 | 50 | let s = base58'3P5vwLbXddLWpsRspftMxLuzfsjk3dLT3n5' | |
51 | 51 | ||
52 | 52 | let t = "GyiHdcN59sZ46baFvj68ruLngrTPEvWDtsd6jHm4o46n" | |
53 | 53 | ||
54 | 54 | let u = base58'3PKXseWa31VUSWUvm2YiRKxW2VM9RsVk3ry' | |
55 | 55 | ||
56 | 56 | let v = "3MPHMJVwYGyeBLRsH1RsYhrTmemv752AEBwuFFV7g49Z" | |
57 | 57 | ||
58 | 58 | func w (x,e) = { | |
59 | 59 | let y = d(Address(x), (("global_" + toBase58String(j)) + "_balance")) | |
60 | 60 | let z = d(Address(x), (toString(e) + "_indexStaked")) | |
61 | 61 | let A = d(Address(x), "global_poolToken_amount") | |
62 | 62 | fraction(y, z, A) | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func B (x,e,C) = { | |
67 | 67 | let D = assetBalance(Address(x), j) | |
68 | 68 | let E = d(Address(r), ((("%s%s%s__staked__" + toString(e)) + "__") + C)) | |
69 | 69 | let F = d(Address(r), ("%s%s%s__staked__total__" + C)) | |
70 | 70 | fraction(D, E, F) | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func G (e) = { | |
75 | 75 | let H = assetBalance(e, j) | |
76 | 76 | let I = w(l, e) | |
77 | 77 | let J = w(m, e) | |
78 | 78 | let K = w(n, e) | |
79 | 79 | let L = w(o, e) | |
80 | 80 | let M = w(p, e) | |
81 | 81 | let N = w(q, e) | |
82 | 82 | let O = B(s, e, t) | |
83 | 83 | let P = B(u, e, v) | |
84 | 84 | let Q = ((((((((H + I) + J) + K) + L) + M) + N) + O) + P) | |
85 | 85 | [IntegerEntry("burnxtnBalance", H), IntegerEntry("PZ1balance", I), IntegerEntry("PZ2balance", J), IntegerEntry("PZ3balance", K), IntegerEntry("PZ4balance", L), IntegerEntry("PZ5balance", M), IntegerEntry("PZ6balance", N), IntegerEntry("WX1balance", O), IntegerEntry("WX2balance", P), IntegerEntry("total", Q)] | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func R (e) = { | |
90 | 90 | let H = assetBalance(e, j) | |
91 | 91 | let I = w(l, e) | |
92 | 92 | let J = w(m, e) | |
93 | 93 | let K = w(n, e) | |
94 | 94 | let L = w(o, e) | |
95 | 95 | let M = w(p, e) | |
96 | 96 | let N = w(q, e) | |
97 | 97 | let O = B(s, e, t) | |
98 | 98 | let P = B(u, e, v) | |
99 | 99 | ((((((((H + I) + J) + K) + L) + M) + N) + O) + P) | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | @Callable(S) | |
104 | 104 | func register () = if (contains(i(this, "Address registered"), toString(S.caller))) | |
105 | 105 | then throw("already registered") | |
106 | 106 | else if ((height > b)) | |
107 | 107 | then throw("registration closed") | |
108 | 108 | else if ((c > R(S.caller))) | |
109 | 109 | then throw("have atleast 40k BURN-XTN in wallet and liquidity pools") | |
110 | 110 | else if ((d(this, "Amount Registered") == 99)) | |
111 | 111 | then throw("registration closed") | |
112 | 112 | else ([IntegerEntry("Amount Registered", (d(this, "Amount Registered") + 1)), StringEntry(("Register address: " + toString((d(this, "Amount Registered") + 1))), toString(S.caller)), StringEntry("Address registered", ((i(this, "Address registered") + toString(S.caller)) + ","))] ++ G(S.caller)) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | ||
116 | 116 | @Callable(S) | |
117 | 117 | func start () = if ((S.caller != this)) | |
118 | 118 | then throw("access only by project owner") | |
119 | 119 | else { | |
120 | 120 | let T = dropRight(i(this, "Address registered"), 1) | |
121 | 121 | let U = split(T, ",") | |
122 | 122 | func V (W,e) = (W ++ [IntegerEntry(e, wavesBalance(addressFromStringValue(e)).available)]) | |
123 | 123 | ||
124 | 124 | let X = { | |
125 | 125 | let Y = U | |
126 | 126 | let Z = size(Y) | |
127 | 127 | let aa = nil | |
128 | 128 | func ab (ac,ad) = if ((ad >= Z)) | |
129 | 129 | then ac | |
130 | 130 | else V(ac, Y[ad]) | |
131 | 131 | ||
132 | 132 | func ae (ac,ad) = if ((ad >= Z)) | |
133 | 133 | then ac | |
134 | 134 | else throw("List size exceeds 100") | |
135 | 135 | ||
136 | 136 | ae(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(aa, 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) | |
137 | 137 | } | |
138 | 138 | (nil ++ X) | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | ||
143 | 143 | @Callable(S) | |
144 | 144 | func currentPosition () = { | |
145 | 145 | let T = dropRight(i(this, "Address registered"), 1) | |
146 | 146 | let U = split(T, ",") | |
147 | 147 | func af (W,e) = (W ++ [IntegerEntry(("increase " + e), (wavesBalance(addressFromStringValue(e)).available - d(this, e)))]) | |
148 | 148 | ||
149 | 149 | let ag = { | |
150 | 150 | let Y = U | |
151 | 151 | let Z = size(Y) | |
152 | 152 | let aa = nil | |
153 | 153 | func ab (ac,ad) = if ((ad >= Z)) | |
154 | 154 | then ac | |
155 | 155 | else af(ac, Y[ad]) | |
156 | 156 | ||
157 | 157 | func ae (ac,ad) = if ((ad >= Z)) | |
158 | 158 | then ac | |
159 | 159 | else throw("List size exceeds 98") | |
160 | 160 | ||
161 | 161 | ae(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(aa, 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) | |
162 | 162 | } | |
163 | 163 | (nil ++ ag) | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | ||
168 | 168 | @Callable(S) | |
169 | 169 | func stop () = if ((S.caller != this)) | |
170 | 170 | then throw("access only by project owner") | |
171 | 171 | else { | |
172 | 172 | let T = dropRight(i(this, "Address registered"), 1) | |
173 | 173 | let U = split(T, ",") | |
174 | 174 | func af (W,e) = (W ++ [IntegerEntry(("stop " + e), (wavesBalance(addressFromStringValue(e)).available - d(this, e)))]) | |
175 | 175 | ||
176 | 176 | let ag = { | |
177 | 177 | let Y = U | |
178 | 178 | let Z = size(Y) | |
179 | 179 | let aa = nil | |
180 | 180 | func ab (ac,ad) = if ((ad >= Z)) | |
181 | 181 | then ac | |
182 | 182 | else af(ac, Y[ad]) | |
183 | 183 | ||
184 | 184 | func ae (ac,ad) = if ((ad >= Z)) | |
185 | 185 | then ac | |
186 | 186 | else throw("List size exceeds 98") | |
187 | 187 | ||
188 | 188 | ae(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(aa, 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) | |
189 | 189 | } | |
190 | 190 | (nil ++ ag) | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | ||
195 | 195 | @Callable(S) | |
196 | 196 | func winners () = if ((S.caller != this)) | |
197 | 197 | then throw("access only by project owner") | |
198 | 198 | else { | |
199 | 199 | let ah = invoke(this, "filter", nil, nil) | |
200 | 200 | if ((ah == ah)) | |
201 | 201 | then nil | |
202 | 202 | else throw("Strict value is not equal to itself.") | |
203 | 203 | } | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | ||
207 | 207 | @Callable(S) | |
208 | 208 | func filter () = if ((S.caller != this)) | |
209 | 209 | then throw("access only by project owner") | |
210 | 210 | else { | |
211 | 211 | let T = dropRight(i(this, "Address registered"), 1) | |
212 | 212 | let U = split(T, ",") | |
213 | 213 | let ai = size(U) | |
214 | 214 | let aj = 1 | |
215 | 215 | func ak (W,e) = if ((aj > d(this, ("stop " + e)))) | |
216 | 216 | then nil | |
217 | 217 | else (W :+ e) | |
218 | 218 | ||
219 | 219 | let al = { | |
220 | 220 | let Y = U | |
221 | 221 | let Z = size(Y) | |
222 | 222 | let aa = nil | |
223 | 223 | func ab (ac,ad) = if ((ad >= Z)) | |
224 | 224 | then ac | |
225 | 225 | else ak(ac, Y[ad]) | |
226 | 226 | ||
227 | 227 | func ae (ac,ad) = if ((ad >= Z)) | |
228 | 228 | then ac | |
229 | 229 | else throw("List size exceeds 98") | |
230 | 230 | ||
231 | 231 | ae(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(aa, 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) | |
232 | 232 | } | |
233 | 233 | let am = size(al) | |
234 | 234 | let an = fraction(am, 80, 100, DOWN) | |
235 | - | | |
236 | - | ||
237 | - | | |
235 | + | let ao = makeString(al, ",") | |
236 | + | [StringEntry("Filter", ao), IntegerEntry("list size filterList", am), IntegerEntry("cullSize", an)] | |
237 | + | } | |
238 | 238 | ||
239 | - | let ah = { | |
240 | - | let Y = U | |
241 | - | let Z = size(Y) | |
242 | - | let aa = "" | |
243 | - | func ap (ac,ad) = if ((ad >= Z)) | |
244 | - | then ac | |
245 | - | else ao(ac, Y[ad]) | |
246 | 239 | ||
247 | - | func aq (ac,ad) = if ((ad >= Z)) | |
248 | - | then ac | |
249 | - | else throw("List size exceeds 98") | |
250 | 240 | ||
251 | - | ||
252 | - | ||
253 | - | ||
254 | - | | |
241 | + | @Callable(S) | |
242 | + | func fAddress (e) = if ((S.caller != this)) | |
243 | + | then throw("access only by project owner") | |
244 | + | else [StringEntry("Filter address", ((i(this, "Filter address") + e) + ","))] | |
255 | 245 | ||
256 | 246 | ||
257 | 247 | ||
258 | 248 | @Callable(S) | |
259 | 249 | func remove () = if ((S.caller != this)) | |
260 | 250 | then throw("access only by project owner") | |
261 | 251 | else nil | |
262 | 252 | ||
263 | 253 | ||
264 | 254 | ||
265 | 255 | @Callable(S) | |
266 | 256 | func transfer () = if ((S.caller != this)) | |
267 | 257 | then throw("access only by project owner") | |
268 | 258 | else { | |
269 | - | let | |
270 | - | let | |
259 | + | let ap = k | |
260 | + | let aq = (2 * a) | |
271 | 261 | let T = dropRight(i(this, "winners"), 1) | |
272 | 262 | let U = split(T, ",") | |
273 | - | let | |
274 | - | func | |
263 | + | let ar = (aq / size(U)) | |
264 | + | func as (W,e) = (W ++ [ScriptTransfer(addressFromStringValue(e), ar, ap)]) | |
275 | 265 | ||
276 | 266 | let Y = U | |
277 | 267 | let Z = size(Y) | |
278 | 268 | let aa = nil | |
279 | 269 | func ab (ac,ad) = if ((ad >= Z)) | |
280 | 270 | then ac | |
281 | - | else | |
271 | + | else as(ac, Y[ad]) | |
282 | 272 | ||
283 | 273 | func ae (ac,ad) = if ((ad >= Z)) | |
284 | 274 | then ac | |
285 | 275 | else throw("List size exceeds 100") | |
286 | 276 | ||
287 | 277 | ae(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(aa, 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) | |
288 | 278 | } | |
289 | 279 | ||
290 | 280 |
github/deemru/w8io/169f3d6 188.11 ms ◑