tx · D7VgU9j62reDEHokTuj67449V5P1TRpvZWdGUrueMCUP 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.01400000 Waves 2023.11.12 12:36 [2839956] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{ "type": 13, "id": "D7VgU9j62reDEHokTuj67449V5P1TRpvZWdGUrueMCUP", "fee": 1400000, "feeAssetId": null, "timestamp": 1699781858929, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "3yPT628LHq1JrBprwEsxHNUJnoMgo3jMc4aQjVpQcVYQ3ekcCqyV9AZJo9dBrP2QiFgCFNpnWZeKrGYJyfNJkgRp" ], "script": "base64:BgISCAISABIAEgASABIAEgASABIAFgACZDgAgMLXLwAScmVnaXN0cmF0aW9uQ2xvc2VkAAEAF3JlZ2lzdHJhdGlvblJlcXVpcmVtZW50CQBoAgDAuAIFAmQ4AQ10cnlHZXRJbnRlZ2VyAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAmggCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAABDHRyeUdldFN0cmluZwIHYWRkcmVzcwNrZXkEByRtYXRjaDAJAJ0IAgUHYWRkcmVzcwUDa2V5AwkAAQIFByRtYXRjaDACBlN0cmluZwQBYgUHJG1hdGNoMAUBYgIAAAdidXJueHRuASAkT3V5an4zObj7DP+EqXFcXsot3jOgxF1p+epEEexMVAAJd2hpcmxwb29sASBZ443cwrUjukoU3MTQrxQJ5mTmBL4lBgsmTuVQbZdZxwADUFoxARoBV4WdLDDV/AM+YcWt3pK/xSqR85muGkFACgADUFoyARoBV/VGaCeADWjfTiZ1erSh0ygx4Am/9Xl5NwADUFozARoBV2tSHeFnXWIznET2mm8K7tVVyNog/Ozmx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ECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeAB8AIAAhACIAIwAkACUAJgAnACgAKQAqACsALAAtAC4ALwAwADEAMgAzADQANQA2ADcAOAA5ADoAOwA8AD0APgA/AEAAQQBCAEMARABFAEYARwBIAEkASgBLAEwATQBOAE8AUABRAFIAUwBUAFUAVgBXAFgAWQBaAFsAXABdAF4AXwBgAGEAYgBjAGQAmhDJEQ==", "height": 2839956, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GPq8cq65kwMz5RA5rcmu962ESQGi52KxXaGvXuE14BBz Next: CUpLHDJ29EMLobR2zYb97anpekYoF9fFWU267VAiYVLm Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | let d8 = 100000000 | |
5 | 5 | ||
6 | 6 | let registrationClosed = 1 | |
7 | + | ||
8 | + | let registrationRequirement = (40000 * d8) | |
7 | 9 | ||
8 | 10 | func tryGetInteger (address,key) = match getInteger(address, key) { | |
9 | 11 | case b: Int => | |
63 | 65 | } | |
64 | 66 | ||
65 | 67 | ||
68 | + | func totalBalance (address) = { | |
69 | + | let burnxtnBalance = assetBalance(address, burnxtn) | |
70 | + | let PZ1balance = PZbal(PZ1, address) | |
71 | + | let PZ2balance = PZbal(PZ2, address) | |
72 | + | let PZ3balance = PZbal(PZ3, address) | |
73 | + | let PZ4balance = PZbal(PZ4, address) | |
74 | + | let PZ5balance = PZbal(PZ5, address) | |
75 | + | let PZ6balance = PZbal(PZ6, address) | |
76 | + | let WX1balance = WXbal(WX1, address, LP1) | |
77 | + | let WX2balance = WXbal(WX2, address, LP2) | |
78 | + | let total = ((((((((burnxtnBalance + PZ1balance) + PZ2balance) + PZ3balance) + PZ4balance) + PZ5balance) + PZ6balance) + WX1balance) + WX2balance) | |
79 | + | [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)] | |
80 | + | } | |
81 | + | ||
82 | + | ||
66 | 83 | func totalBalance2 (address) = { | |
67 | 84 | let burnxtnBalance = assetBalance(address, burnxtn) | |
68 | 85 | let PZ1balance = PZbal(PZ1, address) | |
82 | 99 | then throw("already registered") | |
83 | 100 | else if ((height > registrationClosed)) | |
84 | 101 | then throw("registration closed") | |
85 | - | else if ((tryGetInteger(this, "Amount Registered") == 99)) | |
86 | - | then throw("registration closed") | |
87 | - | 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)) + ","))] | |
102 | + | else if ((registrationRequirement > totalBalance2(i.caller))) | |
103 | + | then throw("have atleast 40k BURN-XTN in wallet and liquidity pools") | |
104 | + | else if ((tryGetInteger(this, "Amount Registered") == 99)) | |
105 | + | then throw("registration closed") | |
106 | + | 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)) + ","))] ++ totalBalance(i.caller)) | |
88 | 107 | ||
89 | 108 | ||
90 | 109 | ||
171 | 190 | func winners () = if ((i.caller != this)) | |
172 | 191 | then throw("access only by project owner") | |
173 | 192 | else { | |
193 | + | let filter = invoke(this, "filter", nil, nil) | |
194 | + | if ((filter == filter)) | |
195 | + | then nil | |
196 | + | else throw("Strict value is not equal to itself.") | |
197 | + | } | |
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | @Callable(i) | |
202 | + | func filter () = if ((i.caller != this)) | |
203 | + | then throw("access only by project owner") | |
204 | + | else { | |
174 | 205 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
175 | 206 | let list = split(addresses, ",") | |
176 | 207 | let listSize = size(list) | |
177 | 208 | let requirement = 1 | |
178 | - | func | |
209 | + | func fList (accum,address) = if ((requirement > tryGetInteger(this, ("stop " + address)))) | |
179 | 210 | then nil | |
180 | 211 | else (accum :+ address) | |
181 | 212 | ||
185 | 216 | let $acc0 = nil | |
186 | 217 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
187 | 218 | then $a | |
188 | - | else | |
219 | + | else fList($a, $l[$i]) | |
189 | 220 | ||
190 | 221 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
191 | 222 | then $a | |
194 | 225 | $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) | |
195 | 226 | } | |
196 | 227 | let filterListSize = size(filterList) | |
197 | - | let diff = tryGetInteger(this, ("stop " + "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez")) | |
198 | - | let diff2 = tryGetInteger(this, ("stop " + "3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH")) | |
199 | - | let diff3 = tryGetInteger(this, ("stop " + "3N8ueTAufEUYDKWJDbfK7aZ4HHxBkX4DXA6")) | |
200 | 228 | let cullSize = fraction(filterListSize, 80, 100, DOWN) | |
201 | - | let amountCull = (filterListSize - cullSize) | |
202 | - | [IntegerEntry("list size filterList", filterListSize), IntegerEntry("diff 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", diff), IntegerEntry("diff 3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH", diff2), IntegerEntry("diff 3N8ueTAufEUYDKWJDbfK7aZ4HHxBkX4DXA6", diff3), IntegerEntry("cullSize", cullSize), IntegerEntry("amountCull", amountCull)] | |
229 | + | func fAddress (accum,address) = if ((requirement > tryGetInteger(this, ("stop " + address)))) | |
230 | + | then nil | |
231 | + | else (accum + (address + ",")) | |
232 | + | ||
233 | + | let filter = { | |
234 | + | let $l = list | |
235 | + | let $s = size($l) | |
236 | + | let $acc0 = "" | |
237 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
238 | + | then $a | |
239 | + | else fAddress($a, $l[$i]) | |
240 | + | ||
241 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
242 | + | then $a | |
243 | + | else throw("List size exceeds 98") | |
244 | + | ||
245 | + | $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) | |
246 | + | } | |
247 | + | [StringEntry("Filter", filter), IntegerEntry("list size filterList", filterListSize), IntegerEntry("cullSize", cullSize)] | |
203 | 248 | } | |
204 | 249 | ||
205 | 250 | ||
206 | 251 | ||
207 | 252 | @Callable(i) | |
208 | - | func | |
253 | + | func remove () = if ((i.caller != this)) | |
209 | 254 | then throw("access only by project owner") | |
210 | - | else { | |
211 | - | let addresses = dropRight(tryGetString(this, "winners"), 1) | |
212 | - | let list = split(addresses, ",") | |
213 | - | func nextBal (accum,address) = (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
214 | - | ||
215 | - | let enterNextBal = { | |
216 | - | let $l = list | |
217 | - | let $s = size($l) | |
218 | - | let $acc0 = nil | |
219 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
220 | - | then $a | |
221 | - | else nextBal($a, $l[$i]) | |
222 | - | ||
223 | - | func $f0_2 ($a,$i) = if (($i >= $s)) | |
224 | - | then $a | |
225 | - | else throw("List size exceeds 100") | |
226 | - | ||
227 | - | $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) | |
228 | - | } | |
229 | - | func n (accum,address) = (accum + (address + ",")) | |
230 | - | ||
231 | - | let next = { | |
232 | - | let $l = list | |
233 | - | let $s = size($l) | |
234 | - | let $acc0 = "" | |
235 | - | func $f1_1 ($a,$i) = if (($i >= $s)) | |
236 | - | then $a | |
237 | - | else n($a, $l[$i]) | |
238 | - | ||
239 | - | func $f1_2 ($a,$i) = if (($i >= $s)) | |
240 | - | then $a | |
241 | - | else throw("List size exceeds 100") | |
242 | - | ||
243 | - | $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) | |
244 | - | } | |
245 | - | ([StringEntry("next round", next)] ++ enterNextBal) | |
246 | - | } | |
255 | + | else nil | |
247 | 256 | ||
248 | 257 | ||
249 | 258 |
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 | + | ||
8 | + | let registrationRequirement = (40000 * d8) | |
7 | 9 | ||
8 | 10 | func tryGetInteger (address,key) = match getInteger(address, key) { | |
9 | 11 | case b: Int => | |
10 | 12 | b | |
11 | 13 | case _ => | |
12 | 14 | 0 | |
13 | 15 | } | |
14 | 16 | ||
15 | 17 | ||
16 | 18 | func tryGetString (address,key) = match getString(address, key) { | |
17 | 19 | case b: String => | |
18 | 20 | b | |
19 | 21 | case _ => | |
20 | 22 | "" | |
21 | 23 | } | |
22 | 24 | ||
23 | 25 | ||
24 | 26 | let burnxtn = base58'3SjxA2YLdfF9fTRbzLm9xFn27C6MW34W1YsdJ6Axefns' | |
25 | 27 | ||
26 | 28 | let whirlpool = base58'73tY3E6Gd5AWYmsuq8m8Kek7KnJNAYyS3GoveTbc6jCi' | |
27 | 29 | ||
28 | 30 | let PZ1 = base58'3PE7NtJdmVq4yo47LKDqurQ8RLDCouvJCPB' | |
29 | 31 | ||
30 | 32 | let PZ2 = base58'3PQHndCUVrv3wBuQjbvVP9SnGmfbfitGxfx' | |
31 | 33 | ||
32 | 34 | let PZ3 = base58'3PBiMQLnX8wd4bssXCgF8KuUqHv1H4zWHGi' | |
33 | 35 | ||
34 | 36 | let PZ4 = base58'3PDJPGn6vBEBqWN4E3fNcxoKBoDXbsmoaM7' | |
35 | 37 | ||
36 | 38 | let PZ5 = base58'3PCS1xhGQi2eM5mYcCBhUSHvB31Kk5gZoCm' | |
37 | 39 | ||
38 | 40 | let PZ6 = base58'3P8Quvmgt3VEWAjBR3bsfgCqzUh7zTmTC4q' | |
39 | 41 | ||
40 | 42 | let WXstake = base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV' | |
41 | 43 | ||
42 | 44 | let WX1 = base58'3P5vwLbXddLWpsRspftMxLuzfsjk3dLT3n5' | |
43 | 45 | ||
44 | 46 | let LP1 = "GyiHdcN59sZ46baFvj68ruLngrTPEvWDtsd6jHm4o46n" | |
45 | 47 | ||
46 | 48 | let WX2 = base58'3PKXseWa31VUSWUvm2YiRKxW2VM9RsVk3ry' | |
47 | 49 | ||
48 | 50 | let LP2 = "3MPHMJVwYGyeBLRsH1RsYhrTmemv752AEBwuFFV7g49Z" | |
49 | 51 | ||
50 | 52 | func PZbal (Pooladdress,address) = { | |
51 | 53 | let burnxtnInPZ = tryGetInteger(Address(Pooladdress), (("global_" + toBase58String(burnxtn)) + "_balance")) | |
52 | 54 | let addressStakePZ = tryGetInteger(Address(Pooladdress), (toString(address) + "_indexStaked")) | |
53 | 55 | let totalStakePZ = tryGetInteger(Address(Pooladdress), "global_poolToken_amount") | |
54 | 56 | fraction(burnxtnInPZ, addressStakePZ, totalStakePZ) | |
55 | 57 | } | |
56 | 58 | ||
57 | 59 | ||
58 | 60 | func WXbal (Pooladdress,address,LPstr) = { | |
59 | 61 | let burnxtnInWX = assetBalance(Address(Pooladdress), burnxtn) | |
60 | 62 | let addressStakeWX = tryGetInteger(Address(WXstake), ((("%s%s%s__staked__" + toString(address)) + "__") + LPstr)) | |
61 | 63 | let totalStakeWX = tryGetInteger(Address(WXstake), ("%s%s%s__staked__total__" + LPstr)) | |
62 | 64 | fraction(burnxtnInWX, addressStakeWX, totalStakeWX) | |
63 | 65 | } | |
64 | 66 | ||
65 | 67 | ||
68 | + | func totalBalance (address) = { | |
69 | + | let burnxtnBalance = assetBalance(address, burnxtn) | |
70 | + | let PZ1balance = PZbal(PZ1, address) | |
71 | + | let PZ2balance = PZbal(PZ2, address) | |
72 | + | let PZ3balance = PZbal(PZ3, address) | |
73 | + | let PZ4balance = PZbal(PZ4, address) | |
74 | + | let PZ5balance = PZbal(PZ5, address) | |
75 | + | let PZ6balance = PZbal(PZ6, address) | |
76 | + | let WX1balance = WXbal(WX1, address, LP1) | |
77 | + | let WX2balance = WXbal(WX2, address, LP2) | |
78 | + | let total = ((((((((burnxtnBalance + PZ1balance) + PZ2balance) + PZ3balance) + PZ4balance) + PZ5balance) + PZ6balance) + WX1balance) + WX2balance) | |
79 | + | [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)] | |
80 | + | } | |
81 | + | ||
82 | + | ||
66 | 83 | func totalBalance2 (address) = { | |
67 | 84 | let burnxtnBalance = assetBalance(address, burnxtn) | |
68 | 85 | let PZ1balance = PZbal(PZ1, address) | |
69 | 86 | let PZ2balance = PZbal(PZ2, address) | |
70 | 87 | let PZ3balance = PZbal(PZ3, address) | |
71 | 88 | let PZ4balance = PZbal(PZ4, address) | |
72 | 89 | let PZ5balance = PZbal(PZ5, address) | |
73 | 90 | let PZ6balance = PZbal(PZ6, address) | |
74 | 91 | let WX1balance = WXbal(WX1, address, LP1) | |
75 | 92 | let WX2balance = WXbal(WX2, address, LP2) | |
76 | 93 | ((((((((burnxtnBalance + PZ1balance) + PZ2balance) + PZ3balance) + PZ4balance) + PZ5balance) + PZ6balance) + WX1balance) + WX2balance) | |
77 | 94 | } | |
78 | 95 | ||
79 | 96 | ||
80 | 97 | @Callable(i) | |
81 | 98 | func register () = if (contains(tryGetString(this, "Address registered"), toString(i.caller))) | |
82 | 99 | then throw("already registered") | |
83 | 100 | else if ((height > registrationClosed)) | |
84 | 101 | then throw("registration closed") | |
85 | - | else if ((tryGetInteger(this, "Amount Registered") == 99)) | |
86 | - | then throw("registration closed") | |
87 | - | 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)) + ","))] | |
102 | + | else if ((registrationRequirement > totalBalance2(i.caller))) | |
103 | + | then throw("have atleast 40k BURN-XTN in wallet and liquidity pools") | |
104 | + | else if ((tryGetInteger(this, "Amount Registered") == 99)) | |
105 | + | then throw("registration closed") | |
106 | + | 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)) + ","))] ++ totalBalance(i.caller)) | |
88 | 107 | ||
89 | 108 | ||
90 | 109 | ||
91 | 110 | @Callable(i) | |
92 | 111 | func start () = if ((i.caller != this)) | |
93 | 112 | then throw("access only by project owner") | |
94 | 113 | else { | |
95 | 114 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
96 | 115 | let list = split(addresses, ",") | |
97 | 116 | func bal (accum,address) = (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
98 | 117 | ||
99 | 118 | let enterIntegers = { | |
100 | 119 | let $l = list | |
101 | 120 | let $s = size($l) | |
102 | 121 | let $acc0 = nil | |
103 | 122 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
104 | 123 | then $a | |
105 | 124 | else bal($a, $l[$i]) | |
106 | 125 | ||
107 | 126 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
108 | 127 | then $a | |
109 | 128 | else throw("List size exceeds 100") | |
110 | 129 | ||
111 | 130 | $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) | |
112 | 131 | } | |
113 | 132 | (nil ++ enterIntegers) | |
114 | 133 | } | |
115 | 134 | ||
116 | 135 | ||
117 | 136 | ||
118 | 137 | @Callable(i) | |
119 | 138 | func currentPosition () = { | |
120 | 139 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
121 | 140 | let list = split(addresses, ",") | |
122 | 141 | func dif (accum,address) = (accum ++ [IntegerEntry(("increase " + address), (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
123 | 142 | ||
124 | 143 | let enterDif = { | |
125 | 144 | let $l = list | |
126 | 145 | let $s = size($l) | |
127 | 146 | let $acc0 = nil | |
128 | 147 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
129 | 148 | then $a | |
130 | 149 | else dif($a, $l[$i]) | |
131 | 150 | ||
132 | 151 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
133 | 152 | then $a | |
134 | 153 | else throw("List size exceeds 98") | |
135 | 154 | ||
136 | 155 | $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) | |
137 | 156 | } | |
138 | 157 | (nil ++ enterDif) | |
139 | 158 | } | |
140 | 159 | ||
141 | 160 | ||
142 | 161 | ||
143 | 162 | @Callable(i) | |
144 | 163 | func stop () = if ((i.caller != this)) | |
145 | 164 | then throw("access only by project owner") | |
146 | 165 | else { | |
147 | 166 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
148 | 167 | let list = split(addresses, ",") | |
149 | 168 | func dif (accum,address) = (accum ++ [IntegerEntry(("stop " + address), (wavesBalance(addressFromStringValue(address)).available - tryGetInteger(this, address)))]) | |
150 | 169 | ||
151 | 170 | let enterDif = { | |
152 | 171 | let $l = list | |
153 | 172 | let $s = size($l) | |
154 | 173 | let $acc0 = nil | |
155 | 174 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
156 | 175 | then $a | |
157 | 176 | else dif($a, $l[$i]) | |
158 | 177 | ||
159 | 178 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
160 | 179 | then $a | |
161 | 180 | else throw("List size exceeds 98") | |
162 | 181 | ||
163 | 182 | $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) | |
164 | 183 | } | |
165 | 184 | (nil ++ enterDif) | |
166 | 185 | } | |
167 | 186 | ||
168 | 187 | ||
169 | 188 | ||
170 | 189 | @Callable(i) | |
171 | 190 | func winners () = if ((i.caller != this)) | |
172 | 191 | then throw("access only by project owner") | |
173 | 192 | else { | |
193 | + | let filter = invoke(this, "filter", nil, nil) | |
194 | + | if ((filter == filter)) | |
195 | + | then nil | |
196 | + | else throw("Strict value is not equal to itself.") | |
197 | + | } | |
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | @Callable(i) | |
202 | + | func filter () = if ((i.caller != this)) | |
203 | + | then throw("access only by project owner") | |
204 | + | else { | |
174 | 205 | let addresses = dropRight(tryGetString(this, "Address registered"), 1) | |
175 | 206 | let list = split(addresses, ",") | |
176 | 207 | let listSize = size(list) | |
177 | 208 | let requirement = 1 | |
178 | - | func | |
209 | + | func fList (accum,address) = if ((requirement > tryGetInteger(this, ("stop " + address)))) | |
179 | 210 | then nil | |
180 | 211 | else (accum :+ address) | |
181 | 212 | ||
182 | 213 | let filterList = { | |
183 | 214 | let $l = list | |
184 | 215 | let $s = size($l) | |
185 | 216 | let $acc0 = nil | |
186 | 217 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
187 | 218 | then $a | |
188 | - | else | |
219 | + | else fList($a, $l[$i]) | |
189 | 220 | ||
190 | 221 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
191 | 222 | then $a | |
192 | 223 | else throw("List size exceeds 98") | |
193 | 224 | ||
194 | 225 | $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) | |
195 | 226 | } | |
196 | 227 | let filterListSize = size(filterList) | |
197 | - | let diff = tryGetInteger(this, ("stop " + "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez")) | |
198 | - | let diff2 = tryGetInteger(this, ("stop " + "3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH")) | |
199 | - | let diff3 = tryGetInteger(this, ("stop " + "3N8ueTAufEUYDKWJDbfK7aZ4HHxBkX4DXA6")) | |
200 | 228 | let cullSize = fraction(filterListSize, 80, 100, DOWN) | |
201 | - | let amountCull = (filterListSize - cullSize) | |
202 | - | [IntegerEntry("list size filterList", filterListSize), IntegerEntry("diff 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", diff), IntegerEntry("diff 3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH", diff2), IntegerEntry("diff 3N8ueTAufEUYDKWJDbfK7aZ4HHxBkX4DXA6", diff3), IntegerEntry("cullSize", cullSize), IntegerEntry("amountCull", amountCull)] | |
229 | + | func fAddress (accum,address) = if ((requirement > tryGetInteger(this, ("stop " + address)))) | |
230 | + | then nil | |
231 | + | else (accum + (address + ",")) | |
232 | + | ||
233 | + | let filter = { | |
234 | + | let $l = list | |
235 | + | let $s = size($l) | |
236 | + | let $acc0 = "" | |
237 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
238 | + | then $a | |
239 | + | else fAddress($a, $l[$i]) | |
240 | + | ||
241 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
242 | + | then $a | |
243 | + | else throw("List size exceeds 98") | |
244 | + | ||
245 | + | $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) | |
246 | + | } | |
247 | + | [StringEntry("Filter", filter), IntegerEntry("list size filterList", filterListSize), IntegerEntry("cullSize", cullSize)] | |
203 | 248 | } | |
204 | 249 | ||
205 | 250 | ||
206 | 251 | ||
207 | 252 | @Callable(i) | |
208 | - | func | |
253 | + | func remove () = if ((i.caller != this)) | |
209 | 254 | then throw("access only by project owner") | |
210 | - | else { | |
211 | - | let addresses = dropRight(tryGetString(this, "winners"), 1) | |
212 | - | let list = split(addresses, ",") | |
213 | - | func nextBal (accum,address) = (accum ++ [IntegerEntry(address, wavesBalance(addressFromStringValue(address)).available)]) | |
214 | - | ||
215 | - | let enterNextBal = { | |
216 | - | let $l = list | |
217 | - | let $s = size($l) | |
218 | - | let $acc0 = nil | |
219 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
220 | - | then $a | |
221 | - | else nextBal($a, $l[$i]) | |
222 | - | ||
223 | - | func $f0_2 ($a,$i) = if (($i >= $s)) | |
224 | - | then $a | |
225 | - | else throw("List size exceeds 100") | |
226 | - | ||
227 | - | $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) | |
228 | - | } | |
229 | - | func n (accum,address) = (accum + (address + ",")) | |
230 | - | ||
231 | - | let next = { | |
232 | - | let $l = list | |
233 | - | let $s = size($l) | |
234 | - | let $acc0 = "" | |
235 | - | func $f1_1 ($a,$i) = if (($i >= $s)) | |
236 | - | then $a | |
237 | - | else n($a, $l[$i]) | |
238 | - | ||
239 | - | func $f1_2 ($a,$i) = if (($i >= $s)) | |
240 | - | then $a | |
241 | - | else throw("List size exceeds 100") | |
242 | - | ||
243 | - | $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) | |
244 | - | } | |
245 | - | ([StringEntry("next round", next)] ++ enterNextBal) | |
246 | - | } | |
255 | + | else nil | |
247 | 256 | ||
248 | 257 | ||
249 | 258 | ||
250 | 259 | @Callable(i) | |
251 | 260 | func transfer () = if ((i.caller != this)) | |
252 | 261 | then throw("access only by project owner") | |
253 | 262 | else { | |
254 | 263 | let assetId = whirlpool | |
255 | 264 | let amount = (2 * d8) | |
256 | 265 | let addresses = dropRight(tryGetString(this, "winners"), 1) | |
257 | 266 | let list = split(addresses, ",") | |
258 | 267 | let amountPerAddress = (amount / size(list)) | |
259 | 268 | func f (accum,address) = (accum ++ [ScriptTransfer(addressFromStringValue(address), amountPerAddress, assetId)]) | |
260 | 269 | ||
261 | 270 | let $l = list | |
262 | 271 | let $s = size($l) | |
263 | 272 | let $acc0 = nil | |
264 | 273 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
265 | 274 | then $a | |
266 | 275 | else f($a, $l[$i]) | |
267 | 276 | ||
268 | 277 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
269 | 278 | then $a | |
270 | 279 | else throw("List size exceeds 100") | |
271 | 280 | ||
272 | 281 | $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) | |
273 | 282 | } | |
274 | 283 | ||
275 | 284 |
github/deemru/w8io/026f985 74.30 ms ◑