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