tx · 5wutJV3FotLv98AX6uHZvTqur5D9CY8qK4tYrQLgST6B 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.01500000 Waves 2023.11.11 18:04 [2838847] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{ "type": 13, "id": "5wutJV3FotLv98AX6uHZvTqur5D9CY8qK4tYrQLgST6B", "fee": 1500000, "feeAssetId": null, "timestamp": 1699715119649, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "3t7iaqtE5VcNiLvnP3qXQ9Dvy8CdBMcjsd8PPPp6oQB5MHyH7q6ztXsB7ccDSQQBJ5UK6qZFWrXQe3yKEKks1TXQ" ], "script": "base64:BgIXCAISABIAEgASABIAEgASABIDCgEIEgAVAAJkOACAwtcvABJyZWdpc3RyYXRpb25DbG9zZWQAAQENdHJ5R2V0SW50ZWdlcgIHYWRkcmVzcwNrZXkEByRtYXRjaDAJAJoIAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYgUHJG1hdGNoMAUBYgAAAQx0cnlHZXRTdHJpbmcCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCdCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWIFByRtYXRjaDAFAWICAAAHYnVybnh0bgEgJE91eWp+Mzm4+wz/hKlxXF7KLd4zoMRdafnqRBHsTFQACXdoaXJscG9vbAEgWeON3MK1I7pKFNzE0K8UCeZk5gS+JQYLJk7lUG2XWccAA1BaMQEaAVeFnSww1fwDPmHFrd6Sv8UqkfOZrhpBQAoAA1BaMgEaAVf1RmgngA1o304mdXq0odMoMeAJv/V5eTcAA1BaMwEaAVdrUh3hZ11iM5xE9ppvCu7VVcjaIPzs5scAA1BaNAEaAVd8ufIkLH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FJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeAB8AIAAhACIAIwAkACUAJgAnACgAKQAqACsALAAtAC4ALwAwADEAMgAzADQANQA2ADcAOAA5ADoAOwA8AD0APgA/AEAAQQBCAEMARABFAEYARwBIAEkASgBLAEwATQBOAE8AUABRAFIAUwBUAFUAVgBXAFgAWQBaAFsAXABdAF4AXwBgAGEAYgBjAGQAsRnUOw==", "height": 2838847, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3dpAKiPuZT4R3oFSXToKaQwYYVHjTdrkQVNp5AyKne7B Next: 6RNRqCj1LTgWaaRHMrGMajtzNZ5n4ZAXtnL6ASP2Qqh9 Diff:
Old | New | Differences | |
---|---|---|---|
110 | 110 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
111 | 111 | let list = split(addresses, ",") | |
112 | 112 | let listSize = size(list) | |
113 | - | let requirement = (1 * d8) | |
114 | - | func bal (accum,address) = if ((requirement > wavesBalance(addressFromStringValue(address)).available)) | |
115 | - | then nil | |
116 | - | else (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
113 | + | func bal (accum,address) = (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
117 | 114 | ||
118 | 115 | let enterIntegers = { | |
119 | 116 | let $l = list | |
129 | 126 | ||
130 | 127 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
131 | 128 | } | |
132 | - | func eli (accum,address) = if ((requirement > wavesBalance(addressFromStringValue(address)).available)) | |
133 | - | then nil | |
134 | - | else (accum + (address + ",")) | |
135 | - | ||
136 | - | let eligible = { | |
137 | - | let $l = list | |
138 | - | let $s = size($l) | |
139 | - | let $acc0 = "" | |
140 | - | func $f1_1 ($a,$i) = if (($i >= $s)) | |
141 | - | then $a | |
142 | - | else eli($a, $l[$i]) | |
143 | - | ||
144 | - | func $f1_2 ($a,$i) = if (($i >= $s)) | |
145 | - | then $a | |
146 | - | else throw("List size exceeds 98") | |
147 | - | ||
148 | - | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 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) | |
149 | - | } | |
150 | - | ([StringEntry("eligible", eligible)] ++ enterIntegers) | |
129 | + | (nil ++ enterIntegers) | |
151 | 130 | } | |
152 | 131 | ||
153 | 132 | ||
154 | 133 | ||
155 | 134 | @Callable(i) | |
156 | - | func | |
157 | - | let addresses = dropRight(tryGetString(this, " | |
135 | + | func currentPosition () = { | |
136 | + | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
158 | 137 | let list = split(addresses, ",") | |
159 | - | func dif (accum,address) = (accum ++ [IntegerEntry((" | |
138 | + | func dif (accum,address) = (accum ++ [IntegerEntry(("increase " + address), (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
160 | 139 | ||
161 | 140 | let enterDif = { | |
162 | 141 | let $l = list | |
181 | 160 | func stop () = if ((i.caller != this)) | |
182 | 161 | then throw("access only by project owner") | |
183 | 162 | else { | |
184 | - | let addresses = dropRight(tryGetString(this, " | |
163 | + | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
185 | 164 | let list = split(addresses, ",") | |
186 | 165 | func dif (accum,address) = (accum ++ [IntegerEntry(("stop " + address), (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
187 | 166 | ||
211 | 190 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
212 | 191 | let list = split(addresses, ",") | |
213 | 192 | let listSize = size(list) | |
214 | - | let addresses2 = dropRight(tryGetString(this, "eligible"), 1) | |
215 | - | let list2 = split(addresses, ",") | |
216 | - | func eli2 (accum,address) = if ((1 > (tryGetInteger(this, ("stop " + address)) - tryGetInteger(this, address)))) | |
193 | + | func eli2 (accum,address) = if (((1 * d8) > (tryGetInteger(this, ("stop " + address)) - tryGetInteger(this, address)))) | |
217 | 194 | then nil | |
218 | 195 | else (accum + (address + ",")) | |
219 | 196 | ||
220 | 197 | let eligible2 = { | |
221 | - | let $l = | |
198 | + | let $l = list | |
222 | 199 | let $s = size($l) | |
223 | 200 | let $acc0 = "" | |
224 | 201 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
231 | 208 | ||
232 | 209 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
233 | 210 | } | |
234 | - | let | |
235 | - | let list3 = split( | |
211 | + | let addresses3 = dropRight(eligible2, 1) | |
212 | + | let list3 = split(addresses3, ",") | |
236 | 213 | let list3Size = size(list3) | |
237 | 214 | [IntegerEntry("list size list 3", list3Size), StringEntry("firstOfList 3", list3[0]), StringEntry("lastOfList 3", list3[(list3Size - 1)])] | |
238 | 215 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let d8 = 100000000 | |
5 | 5 | ||
6 | 6 | let registrationClosed = 1 | |
7 | 7 | ||
8 | 8 | func tryGetInteger (address,key) = match getInteger(address, key) { | |
9 | 9 | case b: Int => | |
10 | 10 | b | |
11 | 11 | case _ => | |
12 | 12 | 0 | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func tryGetString (address,key) = match getString(address, key) { | |
17 | 17 | case b: String => | |
18 | 18 | b | |
19 | 19 | case _ => | |
20 | 20 | "" | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | let burnxtn = base58'3SjxA2YLdfF9fTRbzLm9xFn27C6MW34W1YsdJ6Axefns' | |
25 | 25 | ||
26 | 26 | let whirlpool = base58'73tY3E6Gd5AWYmsuq8m8Kek7KnJNAYyS3GoveTbc6jCi' | |
27 | 27 | ||
28 | 28 | let PZ1 = base58'3PE7NtJdmVq4yo47LKDqurQ8RLDCouvJCPB' | |
29 | 29 | ||
30 | 30 | let PZ2 = base58'3PQHndCUVrv3wBuQjbvVP9SnGmfbfitGxfx' | |
31 | 31 | ||
32 | 32 | let PZ3 = base58'3PBiMQLnX8wd4bssXCgF8KuUqHv1H4zWHGi' | |
33 | 33 | ||
34 | 34 | let PZ4 = base58'3PDJPGn6vBEBqWN4E3fNcxoKBoDXbsmoaM7' | |
35 | 35 | ||
36 | 36 | let PZ5 = base58'3PCS1xhGQi2eM5mYcCBhUSHvB31Kk5gZoCm' | |
37 | 37 | ||
38 | 38 | let PZ6 = base58'3P8Quvmgt3VEWAjBR3bsfgCqzUh7zTmTC4q' | |
39 | 39 | ||
40 | 40 | let WXstake = base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV' | |
41 | 41 | ||
42 | 42 | let WX1 = base58'3P5vwLbXddLWpsRspftMxLuzfsjk3dLT3n5' | |
43 | 43 | ||
44 | 44 | let LP1 = "GyiHdcN59sZ46baFvj68ruLngrTPEvWDtsd6jHm4o46n" | |
45 | 45 | ||
46 | 46 | let WX2 = base58'3PKXseWa31VUSWUvm2YiRKxW2VM9RsVk3ry' | |
47 | 47 | ||
48 | 48 | let LP2 = "3MPHMJVwYGyeBLRsH1RsYhrTmemv752AEBwuFFV7g49Z" | |
49 | 49 | ||
50 | 50 | func PZbal (Pooladdress,address) = { | |
51 | 51 | let burnxtnInPZ = tryGetInteger(Address(Pooladdress), (("global_" + toBase58String(burnxtn)) + "_balance")) | |
52 | 52 | let addressStakePZ = tryGetInteger(Address(Pooladdress), (toString(address) + "_indexStaked")) | |
53 | 53 | let totalStakePZ = tryGetInteger(Address(Pooladdress), "global_poolToken_amount") | |
54 | 54 | fraction(burnxtnInPZ, addressStakePZ, totalStakePZ) | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func WXbal (Pooladdress,address,LPstr) = { | |
59 | 59 | let burnxtnInWX = assetBalance(Address(Pooladdress), burnxtn) | |
60 | 60 | let addressStakeWX = tryGetInteger(Address(WXstake), ((("%s%s%s__staked__" + toString(address)) + "__") + LPstr)) | |
61 | 61 | let totalStakeWX = tryGetInteger(Address(WXstake), ("%s%s%s__staked__total__" + LPstr)) | |
62 | 62 | fraction(burnxtnInWX, addressStakeWX, totalStakeWX) | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func totalBalance (address) = { | |
67 | 67 | let burnxtnBalance = assetBalance(address, burnxtn) | |
68 | 68 | let PZ1balance = PZbal(PZ1, address) | |
69 | 69 | let PZ2balance = PZbal(PZ2, address) | |
70 | 70 | let PZ3balance = PZbal(PZ3, address) | |
71 | 71 | let PZ4balance = PZbal(PZ4, address) | |
72 | 72 | let PZ5balance = PZbal(PZ5, address) | |
73 | 73 | let PZ6balance = PZbal(PZ6, address) | |
74 | 74 | let WX1balance = WXbal(WX1, address, LP1) | |
75 | 75 | let WX2balance = WXbal(WX2, address, LP2) | |
76 | 76 | let total = ((((((((burnxtnBalance + PZ1balance) + PZ2balance) + PZ3balance) + PZ4balance) + PZ5balance) + PZ6balance) + WX1balance) + WX2balance) | |
77 | 77 | [IntegerEntry("burnxtnBalance", burnxtnBalance), IntegerEntry("PZ1balance", PZ1balance), IntegerEntry("PZ2balance", PZ2balance), IntegerEntry("PZ3balance", PZ3balance), IntegerEntry("PZ4balance", PZ4balance), IntegerEntry("PZ5balance", PZ5balance), IntegerEntry("PZ6balance", PZ6balance), IntegerEntry("WX1balance", WX1balance), IntegerEntry("WX2balance", WX2balance), IntegerEntry("total", total)] | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func totalBalance2 (address) = { | |
82 | 82 | let burnxtnBalance = assetBalance(address, burnxtn) | |
83 | 83 | let PZ1balance = PZbal(PZ1, address) | |
84 | 84 | let PZ2balance = PZbal(PZ2, address) | |
85 | 85 | let PZ3balance = PZbal(PZ3, address) | |
86 | 86 | let PZ4balance = PZbal(PZ4, address) | |
87 | 87 | let PZ5balance = PZbal(PZ5, address) | |
88 | 88 | let PZ6balance = PZbal(PZ6, address) | |
89 | 89 | let WX1balance = WXbal(WX1, address, LP1) | |
90 | 90 | let WX2balance = WXbal(WX2, address, LP2) | |
91 | 91 | ((((((((burnxtnBalance + PZ1balance) + PZ2balance) + PZ3balance) + PZ4balance) + PZ5balance) + PZ6balance) + WX1balance) + WX2balance) | |
92 | 92 | } | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | @Callable(i) | |
96 | 96 | func register () = if (contains(tryGetString(this, "Address registered"), toString(i.caller))) | |
97 | 97 | then throw("already registered") | |
98 | 98 | else if ((height > registrationClosed)) | |
99 | 99 | then throw("registration closed") | |
100 | 100 | else if ((tryGetInteger(this, "Amount Registered") == 99)) | |
101 | 101 | then throw("registration closed") | |
102 | 102 | else [IntegerEntry("Amount Registered", (tryGetInteger(this, "Amount Registered") + 1)), StringEntry(("Register address: " + toString((tryGetInteger(this, "Amount Registered") + 1))), toString(i.caller)), StringEntry("Address registered", ((tryGetString(this, "Address registered") + toString(i.caller)) + ","))] | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | ||
106 | 106 | @Callable(i) | |
107 | 107 | func start () = if ((i.caller != this)) | |
108 | 108 | then throw("access only by project owner") | |
109 | 109 | else { | |
110 | 110 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
111 | 111 | let list = split(addresses, ",") | |
112 | 112 | let listSize = size(list) | |
113 | - | let requirement = (1 * d8) | |
114 | - | func bal (accum,address) = if ((requirement > wavesBalance(addressFromStringValue(address)).available)) | |
115 | - | then nil | |
116 | - | else (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
113 | + | func bal (accum,address) = (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
117 | 114 | ||
118 | 115 | let enterIntegers = { | |
119 | 116 | let $l = list | |
120 | 117 | let $s = size($l) | |
121 | 118 | let $acc0 = nil | |
122 | 119 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
123 | 120 | then $a | |
124 | 121 | else bal($a, $l[$i]) | |
125 | 122 | ||
126 | 123 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
127 | 124 | then $a | |
128 | 125 | else throw("List size exceeds 100") | |
129 | 126 | ||
130 | 127 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
131 | 128 | } | |
132 | - | func eli (accum,address) = if ((requirement > wavesBalance(addressFromStringValue(address)).available)) | |
133 | - | then nil | |
134 | - | else (accum + (address + ",")) | |
135 | - | ||
136 | - | let eligible = { | |
137 | - | let $l = list | |
138 | - | let $s = size($l) | |
139 | - | let $acc0 = "" | |
140 | - | func $f1_1 ($a,$i) = if (($i >= $s)) | |
141 | - | then $a | |
142 | - | else eli($a, $l[$i]) | |
143 | - | ||
144 | - | func $f1_2 ($a,$i) = if (($i >= $s)) | |
145 | - | then $a | |
146 | - | else throw("List size exceeds 98") | |
147 | - | ||
148 | - | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 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) | |
149 | - | } | |
150 | - | ([StringEntry("eligible", eligible)] ++ enterIntegers) | |
129 | + | (nil ++ enterIntegers) | |
151 | 130 | } | |
152 | 131 | ||
153 | 132 | ||
154 | 133 | ||
155 | 134 | @Callable(i) | |
156 | - | func | |
157 | - | let addresses = dropRight(tryGetString(this, " | |
135 | + | func currentPosition () = { | |
136 | + | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
158 | 137 | let list = split(addresses, ",") | |
159 | - | func dif (accum,address) = (accum ++ [IntegerEntry((" | |
138 | + | func dif (accum,address) = (accum ++ [IntegerEntry(("increase " + address), (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
160 | 139 | ||
161 | 140 | let enterDif = { | |
162 | 141 | let $l = list | |
163 | 142 | let $s = size($l) | |
164 | 143 | let $acc0 = nil | |
165 | 144 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
166 | 145 | then $a | |
167 | 146 | else dif($a, $l[$i]) | |
168 | 147 | ||
169 | 148 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
170 | 149 | then $a | |
171 | 150 | else throw("List size exceeds 98") | |
172 | 151 | ||
173 | 152 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
174 | 153 | } | |
175 | 154 | (nil ++ enterDif) | |
176 | 155 | } | |
177 | 156 | ||
178 | 157 | ||
179 | 158 | ||
180 | 159 | @Callable(i) | |
181 | 160 | func stop () = if ((i.caller != this)) | |
182 | 161 | then throw("access only by project owner") | |
183 | 162 | else { | |
184 | - | let addresses = dropRight(tryGetString(this, " | |
163 | + | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
185 | 164 | let list = split(addresses, ",") | |
186 | 165 | func dif (accum,address) = (accum ++ [IntegerEntry(("stop " + address), (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
187 | 166 | ||
188 | 167 | let enterDif = { | |
189 | 168 | let $l = list | |
190 | 169 | let $s = size($l) | |
191 | 170 | let $acc0 = nil | |
192 | 171 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
193 | 172 | then $a | |
194 | 173 | else dif($a, $l[$i]) | |
195 | 174 | ||
196 | 175 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
197 | 176 | then $a | |
198 | 177 | else throw("List size exceeds 98") | |
199 | 178 | ||
200 | 179 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
201 | 180 | } | |
202 | 181 | (nil ++ enterDif) | |
203 | 182 | } | |
204 | 183 | ||
205 | 184 | ||
206 | 185 | ||
207 | 186 | @Callable(i) | |
208 | 187 | func winners () = if ((i.caller != this)) | |
209 | 188 | then throw("access only by project owner") | |
210 | 189 | else { | |
211 | 190 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
212 | 191 | let list = split(addresses, ",") | |
213 | 192 | let listSize = size(list) | |
214 | - | let addresses2 = dropRight(tryGetString(this, "eligible"), 1) | |
215 | - | let list2 = split(addresses, ",") | |
216 | - | func eli2 (accum,address) = if ((1 > (tryGetInteger(this, ("stop " + address)) - tryGetInteger(this, address)))) | |
193 | + | func eli2 (accum,address) = if (((1 * d8) > (tryGetInteger(this, ("stop " + address)) - tryGetInteger(this, address)))) | |
217 | 194 | then nil | |
218 | 195 | else (accum + (address + ",")) | |
219 | 196 | ||
220 | 197 | let eligible2 = { | |
221 | - | let $l = | |
198 | + | let $l = list | |
222 | 199 | let $s = size($l) | |
223 | 200 | let $acc0 = "" | |
224 | 201 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
225 | 202 | then $a | |
226 | 203 | else eli2($a, $l[$i]) | |
227 | 204 | ||
228 | 205 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
229 | 206 | then $a | |
230 | 207 | else throw("List size exceeds 98") | |
231 | 208 | ||
232 | 209 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
233 | 210 | } | |
234 | - | let | |
235 | - | let list3 = split( | |
211 | + | let addresses3 = dropRight(eligible2, 1) | |
212 | + | let list3 = split(addresses3, ",") | |
236 | 213 | let list3Size = size(list3) | |
237 | 214 | [IntegerEntry("list size list 3", list3Size), StringEntry("firstOfList 3", list3[0]), StringEntry("lastOfList 3", list3[(list3Size - 1)])] | |
238 | 215 | } | |
239 | 216 | ||
240 | 217 | ||
241 | 218 | ||
242 | 219 | @Callable(i) | |
243 | 220 | func startNext () = if ((i.caller != this)) | |
244 | 221 | then throw("access only by project owner") | |
245 | 222 | else { | |
246 | 223 | let addresses = dropRight(tryGetString(this, "winners"), 1) | |
247 | 224 | let list = split(addresses, ",") | |
248 | 225 | func nextBal (accum,address) = (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
249 | 226 | ||
250 | 227 | let enterNextBal = { | |
251 | 228 | let $l = list | |
252 | 229 | let $s = size($l) | |
253 | 230 | let $acc0 = nil | |
254 | 231 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
255 | 232 | then $a | |
256 | 233 | else nextBal($a, $l[$i]) | |
257 | 234 | ||
258 | 235 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
259 | 236 | then $a | |
260 | 237 | else throw("List size exceeds 100") | |
261 | 238 | ||
262 | 239 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
263 | 240 | } | |
264 | 241 | func n (accum,address) = (accum + (address + ",")) | |
265 | 242 | ||
266 | 243 | let next = { | |
267 | 244 | let $l = list | |
268 | 245 | let $s = size($l) | |
269 | 246 | let $acc0 = "" | |
270 | 247 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
271 | 248 | then $a | |
272 | 249 | else n($a, $l[$i]) | |
273 | 250 | ||
274 | 251 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
275 | 252 | then $a | |
276 | 253 | else throw("List size exceeds 100") | |
277 | 254 | ||
278 | 255 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 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) | |
279 | 256 | } | |
280 | 257 | ([StringEntry("next round", next)] ++ enterNextBal) | |
281 | 258 | } | |
282 | 259 | ||
283 | 260 | ||
284 | 261 | ||
285 | 262 | @Callable(i) | |
286 | 263 | func totalBalanceCaller () = if ((i.caller != this)) | |
287 | 264 | then throw("access only by project owner") | |
288 | 265 | else (nil ++ totalBalance(i.caller)) | |
289 | 266 | ||
290 | 267 | ||
291 | 268 | ||
292 | 269 | @Callable(i) | |
293 | 270 | func totalBalanceAddress (address) = if ((i.caller != this)) | |
294 | 271 | then throw("access only by project owner") | |
295 | 272 | else (nil ++ totalBalance(value(addressFromString(address)))) | |
296 | 273 | ||
297 | 274 | ||
298 | 275 | ||
299 | 276 | @Callable(i) | |
300 | 277 | func transfer () = if ((i.caller != this)) | |
301 | 278 | then throw("access only by project owner") | |
302 | 279 | else { | |
303 | 280 | let assetId = whirlpool | |
304 | 281 | let amount = (2 * d8) | |
305 | 282 | let addresses = dropRight(tryGetString(this, "winners"), 1) | |
306 | 283 | let list = split(addresses, ",") | |
307 | 284 | let amountPerAddress = (amount / size(list)) | |
308 | 285 | func f (accum,address) = (accum ++ [ScriptTransfer(addressFromStringValue(address), amountPerAddress, assetId)]) | |
309 | 286 | ||
310 | 287 | let $l = list | |
311 | 288 | let $s = size($l) | |
312 | 289 | let $acc0 = nil | |
313 | 290 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
314 | 291 | then $a | |
315 | 292 | else f($a, $l[$i]) | |
316 | 293 | ||
317 | 294 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
318 | 295 | then $a | |
319 | 296 | else throw("List size exceeds 100") | |
320 | 297 | ||
321 | 298 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
322 | 299 | } | |
323 | 300 | ||
324 | 301 |
github/deemru/w8io/026f985 86.87 ms ◑