tx · 6RNRqCj1LTgWaaRHMrGMajtzNZ5n4ZAXtnL6ASP2Qqh9 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.01500000 Waves 2023.11.11 18:42 [2838889] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{ "type": 13, "id": "6RNRqCj1LTgWaaRHMrGMajtzNZ5n4ZAXtnL6ASP2Qqh9", "fee": 1500000, "feeAssetId": null, "timestamp": 1699717367406, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "4ZtxT6Gjs2LBpnxCAu5nKAtcZDmHd2tCbkrcqceacFFzVQacGD5a4pG4hJ7xnqEwEMdoUjAm4ic9uuYDeatdkPXK" ], "script": "base64:BgIXCAISABIAEgASABIAEgASABIDCgEIEgAVAAJkOACAwtcvABJyZWdpc3RyYXRpb25DbG9zZWQAAQENdHJ5R2V0SW50ZWdlcgIHYWRkcmVzcwNrZXkEByRtYXRjaDAJAJoIAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYgUHJG1hdGNoMAUBYgAAAQx0cnlHZXRTdHJpbmcCB2FkZHJlc3MDa2V5BAckbWF0Y2gwCQCdCAIFB2FkZHJlc3MFA2tleQMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAWIFByRtYXRjaDAFAWICAAAHYnVybnh0bgEgJE91eWp+Mzm4+wz/hKlxXF7KLd4zoMRdafnqRBHsTFQACXdoaXJscG9vbAEgWeON3MK1I7pKFNzE0K8UCeZk5gS+JQYLJk7lUG2XWccAA1BaMQEaAVeFnSww1fwDPmHFrd6Sv8UqkfOZrhpBQAoAA1BaMgEaAVf1RmgngA1o304mdXq0odMoMeAJv/V5eTcAA1BaMwEaAVdrUh3hZ11iM5xE9ppvCu7VVcjaIPzs5scAA1BaNAEa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bAFwAXQBeAF8AYABhAGIAYwBkANh5EJY=", "height": 2838889, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5wutJV3FotLv98AX6uHZvTqur5D9CY8qK4tYrQLgST6B Next: 7CG3WVHm8uQkwwpCaHkPH4i2wD1GhFwoBcM1B62dLoSV Diff:
Old | New | Differences | |
---|---|---|---|
109 | 109 | else { | |
110 | 110 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
111 | 111 | let list = split(addresses, ",") | |
112 | - | let listSize = size(list) | |
113 | 112 | func bal (accum,address) = (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
114 | 113 | ||
115 | 114 | let enterIntegers = { | |
190 | 189 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
191 | 190 | let list = split(addresses, ",") | |
192 | 191 | let listSize = size(list) | |
193 | - | func | |
192 | + | func filter (accum,address) = if (((1 * d8) > (tryGetInteger(this, ("stop " + address)) - tryGetInteger(this, address)))) | |
194 | 193 | then nil | |
195 | - | else (accum + | |
194 | + | else (accum :+ address) | |
196 | 195 | ||
197 | - | let | |
196 | + | let filterList = { | |
198 | 197 | let $l = list | |
199 | 198 | let $s = size($l) | |
200 | - | let $acc0 = | |
199 | + | let $acc0 = nil | |
201 | 200 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
202 | 201 | then $a | |
203 | - | else | |
202 | + | else filter($a, $l[$i]) | |
204 | 203 | ||
205 | 204 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
206 | 205 | then $a | |
208 | 207 | ||
209 | 208 | $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) | |
210 | 209 | } | |
211 | - | let addresses3 = dropRight(eligible2, 1) | |
212 | - | let list3 = split(addresses3, ",") | |
213 | - | let list3Size = size(list3) | |
214 | - | [IntegerEntry("list size list 3", list3Size), StringEntry("firstOfList 3", list3[0]), StringEntry("lastOfList 3", list3[(list3Size - 1)])] | |
210 | + | let filterListSize = size(filterList) | |
211 | + | [IntegerEntry("list size filterList", filterListSize), StringEntry("firstOfList filterList", filterList[0]), StringEntry("lastOfList filterList", filterList[(filterListSize - 1)])] | |
215 | 212 | } | |
216 | 213 | ||
217 | 214 |
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 | - | let listSize = size(list) | |
113 | 112 | func bal (accum,address) = (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
114 | 113 | ||
115 | 114 | let enterIntegers = { | |
116 | 115 | let $l = list | |
117 | 116 | let $s = size($l) | |
118 | 117 | let $acc0 = nil | |
119 | 118 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
120 | 119 | then $a | |
121 | 120 | else bal($a, $l[$i]) | |
122 | 121 | ||
123 | 122 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
124 | 123 | then $a | |
125 | 124 | else throw("List size exceeds 100") | |
126 | 125 | ||
127 | 126 | $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) | |
128 | 127 | } | |
129 | 128 | (nil ++ enterIntegers) | |
130 | 129 | } | |
131 | 130 | ||
132 | 131 | ||
133 | 132 | ||
134 | 133 | @Callable(i) | |
135 | 134 | func currentPosition () = { | |
136 | 135 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
137 | 136 | let list = split(addresses, ",") | |
138 | 137 | func dif (accum,address) = (accum ++ [IntegerEntry(("increase " + address), (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
139 | 138 | ||
140 | 139 | let enterDif = { | |
141 | 140 | let $l = list | |
142 | 141 | let $s = size($l) | |
143 | 142 | let $acc0 = nil | |
144 | 143 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
145 | 144 | then $a | |
146 | 145 | else dif($a, $l[$i]) | |
147 | 146 | ||
148 | 147 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
149 | 148 | then $a | |
150 | 149 | else throw("List size exceeds 98") | |
151 | 150 | ||
152 | 151 | $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) | |
153 | 152 | } | |
154 | 153 | (nil ++ enterDif) | |
155 | 154 | } | |
156 | 155 | ||
157 | 156 | ||
158 | 157 | ||
159 | 158 | @Callable(i) | |
160 | 159 | func stop () = if ((i.caller != this)) | |
161 | 160 | then throw("access only by project owner") | |
162 | 161 | else { | |
163 | 162 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
164 | 163 | let list = split(addresses, ",") | |
165 | 164 | func dif (accum,address) = (accum ++ [IntegerEntry(("stop " + address), (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
166 | 165 | ||
167 | 166 | let enterDif = { | |
168 | 167 | let $l = list | |
169 | 168 | let $s = size($l) | |
170 | 169 | let $acc0 = nil | |
171 | 170 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
172 | 171 | then $a | |
173 | 172 | else dif($a, $l[$i]) | |
174 | 173 | ||
175 | 174 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
176 | 175 | then $a | |
177 | 176 | else throw("List size exceeds 98") | |
178 | 177 | ||
179 | 178 | $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) | |
180 | 179 | } | |
181 | 180 | (nil ++ enterDif) | |
182 | 181 | } | |
183 | 182 | ||
184 | 183 | ||
185 | 184 | ||
186 | 185 | @Callable(i) | |
187 | 186 | func winners () = if ((i.caller != this)) | |
188 | 187 | then throw("access only by project owner") | |
189 | 188 | else { | |
190 | 189 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
191 | 190 | let list = split(addresses, ",") | |
192 | 191 | let listSize = size(list) | |
193 | - | func | |
192 | + | func filter (accum,address) = if (((1 * d8) > (tryGetInteger(this, ("stop " + address)) - tryGetInteger(this, address)))) | |
194 | 193 | then nil | |
195 | - | else (accum + | |
194 | + | else (accum :+ address) | |
196 | 195 | ||
197 | - | let | |
196 | + | let filterList = { | |
198 | 197 | let $l = list | |
199 | 198 | let $s = size($l) | |
200 | - | let $acc0 = | |
199 | + | let $acc0 = nil | |
201 | 200 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
202 | 201 | then $a | |
203 | - | else | |
202 | + | else filter($a, $l[$i]) | |
204 | 203 | ||
205 | 204 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
206 | 205 | then $a | |
207 | 206 | else throw("List size exceeds 98") | |
208 | 207 | ||
209 | 208 | $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) | |
210 | 209 | } | |
211 | - | let addresses3 = dropRight(eligible2, 1) | |
212 | - | let list3 = split(addresses3, ",") | |
213 | - | let list3Size = size(list3) | |
214 | - | [IntegerEntry("list size list 3", list3Size), StringEntry("firstOfList 3", list3[0]), StringEntry("lastOfList 3", list3[(list3Size - 1)])] | |
210 | + | let filterListSize = size(filterList) | |
211 | + | [IntegerEntry("list size filterList", filterListSize), StringEntry("firstOfList filterList", filterList[0]), StringEntry("lastOfList filterList", filterList[(filterListSize - 1)])] | |
215 | 212 | } | |
216 | 213 | ||
217 | 214 | ||
218 | 215 | ||
219 | 216 | @Callable(i) | |
220 | 217 | func startNext () = if ((i.caller != this)) | |
221 | 218 | then throw("access only by project owner") | |
222 | 219 | else { | |
223 | 220 | let addresses = dropRight(tryGetString(this, "winners"), 1) | |
224 | 221 | let list = split(addresses, ",") | |
225 | 222 | func nextBal (accum,address) = (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
226 | 223 | ||
227 | 224 | let enterNextBal = { | |
228 | 225 | let $l = list | |
229 | 226 | let $s = size($l) | |
230 | 227 | let $acc0 = nil | |
231 | 228 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
232 | 229 | then $a | |
233 | 230 | else nextBal($a, $l[$i]) | |
234 | 231 | ||
235 | 232 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
236 | 233 | then $a | |
237 | 234 | else throw("List size exceeds 100") | |
238 | 235 | ||
239 | 236 | $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) | |
240 | 237 | } | |
241 | 238 | func n (accum,address) = (accum + (address + ",")) | |
242 | 239 | ||
243 | 240 | let next = { | |
244 | 241 | let $l = list | |
245 | 242 | let $s = size($l) | |
246 | 243 | let $acc0 = "" | |
247 | 244 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
248 | 245 | then $a | |
249 | 246 | else n($a, $l[$i]) | |
250 | 247 | ||
251 | 248 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
252 | 249 | then $a | |
253 | 250 | else throw("List size exceeds 100") | |
254 | 251 | ||
255 | 252 | $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) | |
256 | 253 | } | |
257 | 254 | ([StringEntry("next round", next)] ++ enterNextBal) | |
258 | 255 | } | |
259 | 256 | ||
260 | 257 | ||
261 | 258 | ||
262 | 259 | @Callable(i) | |
263 | 260 | func totalBalanceCaller () = if ((i.caller != this)) | |
264 | 261 | then throw("access only by project owner") | |
265 | 262 | else (nil ++ totalBalance(i.caller)) | |
266 | 263 | ||
267 | 264 | ||
268 | 265 | ||
269 | 266 | @Callable(i) | |
270 | 267 | func totalBalanceAddress (address) = if ((i.caller != this)) | |
271 | 268 | then throw("access only by project owner") | |
272 | 269 | else (nil ++ totalBalance(value(addressFromString(address)))) | |
273 | 270 | ||
274 | 271 | ||
275 | 272 | ||
276 | 273 | @Callable(i) | |
277 | 274 | func transfer () = if ((i.caller != this)) | |
278 | 275 | then throw("access only by project owner") | |
279 | 276 | else { | |
280 | 277 | let assetId = whirlpool | |
281 | 278 | let amount = (2 * d8) | |
282 | 279 | let addresses = dropRight(tryGetString(this, "winners"), 1) | |
283 | 280 | let list = split(addresses, ",") | |
284 | 281 | let amountPerAddress = (amount / size(list)) | |
285 | 282 | func f (accum,address) = (accum ++ [ScriptTransfer(addressFromStringValue(address), amountPerAddress, assetId)]) | |
286 | 283 | ||
287 | 284 | let $l = list | |
288 | 285 | let $s = size($l) | |
289 | 286 | let $acc0 = nil | |
290 | 287 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
291 | 288 | then $a | |
292 | 289 | else f($a, $l[$i]) | |
293 | 290 | ||
294 | 291 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
295 | 292 | then $a | |
296 | 293 | else throw("List size exceeds 100") | |
297 | 294 | ||
298 | 295 | $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) | |
299 | 296 | } | |
300 | 297 | ||
301 | 298 |
github/deemru/w8io/026f985 77.30 ms ◑