tx · Gm1pYpHu5Wsovqg8f6Rofb5zvFQQwhBZhc6CF5eqDwJ4 3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH: -0.00900000 Waves 2023.11.08 17:17 [2834482] smart account 3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH > SELF 0.00000000 Waves
{ "type": 13, "id": "Gm1pYpHu5Wsovqg8f6Rofb5zvFQQwhBZhc6CF5eqDwJ4", "fee": 900000, "feeAssetId": null, "timestamp": 1699453026449, "version": 2, "chainId": 84, "sender": "3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH", "senderPublicKey": "9ggtmbyecVRfUY2zeZhNaoLBp2iymhnQhffXQhemTJaG", "proofs": [ "4XwmL8cNRTQvQM9n9F6Y2ABrWmtTRWFjx7PAzrSGAcE4TKSznUU7TrVSX5xG8pt9adVEBeqPNLFE9LaP9eQpGmsM" ], "script": "base64:BgIlCAISBAoCCAESAwoBCBIAEgMKAQgSABIDCgEIEgMKAQgSAwoBCAkAAmxpCQDMCAICATEJAMwIAgIBMgkAzAgCAgEzCQDMCAICATQJAMwIAgIBNQkAzAgCAgE2CQDMCAICATcJAMwIAgIBOAkAzAgCAgE5CQDMCAICAjEwCQDMCAICAjExCQDMCAICAjEyCQDMCAICAjEzCQDMCAICAjE0CQDMCAICAjE1CQDMCAICAjE2CQDMCAICAjE3CQDMCAICAjE4CQDMCAICAjE5CQDMCAICAjIwCQDMCAICAjIxCQDMCAICAjIyCQDMCAICAjIzCQDMCAICAjI0CQDMCAICAjI1CQDMCAICAjI2CQDMCAICAjI3CQDMCAICAjI4CQDMCAICAjI5CQDMCAICAjMwCQDMCAICAjMxCQDMCAICAjMyCQDMCAICAjMzCQDMCAICAjM0CQDMCAICAjM1CQDMCAICAjM2CQDMCAICAjM3CQDMCAICAjM4CQDMCAICAjM5CQDMCAICAjQwCQDMCAICAjQxCQDMCAICAjQyCQDMCAICAjQzCQDMCAICAjQ0CQDMCAICAjQ1CQDMCAICAjQ2CQD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bmRleAAAAAIAAQQHbGVmdFN0cgkArwICBRBnZXRQb29sQm9vc3RpbmdzCQBlAgUHc2l6ZVN0cgkAZAIJAGUCBQdzaXplU3RyBQlmaW5kSW5kZXgFDG1vZGlmaWVyTGVmdAQIcmlnaHRTdHIJALICAgUQZ2V0UG9vbEJvb3N0aW5ncwkAZQIFB3NpemVTdHIJAGQCBQlmaW5kSW5kZXgFDW1vZGlmaWVyUmlnaHQEEG9wZW5Cb29zdGluZ3NJZHMJAKwCAgUHbGVmdFN0cgUIcmlnaHRTdHIJAMwIAgkBC1N0cmluZ0VudHJ5AgIRZ2V0RmluaXNoZWRQb29sSWQFEWdldEZpbmlzaGVkUG9vbElkCQDMCAIJAQtTdHJpbmdFbnRyeQICEGdldFBvb2xCb29zdGluZ3MFEGdldFBvb2xCb29zdGluZ3MJAMwIAgkBDEludGVnZXJFbnRyeQICCWZpbmRJbmRleAUJZmluZEluZGV4CQDMCAIJAQxJbnRlZ2VyRW50cnkCAgdzaXplU3RyBQdzaXplU3RyCQDMCAIJAQtTdHJpbmdFbnRyeQICC2xlZnQgc3RyaW5nBQdsZWZ0U3RyCQDMCAIJAQtTdHJpbmdFbnRyeQICDHJpZ2h0IHN0cmluZwUIcmlnaHRTdHIJAMwIAgkBC1N0cmluZ0VudHJ5AgIQb3BlbkJvb3N0aW5nc0lkcwUQb3BlbkJvb3N0aW5nc0lkcwkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgIFcG9vbF8FEWdldEZpbmlzaGVkUG9vbElkAgpfYm9vc3RpbmdzBRBvcGVuQm9vc3RpbmdzSWRzBQNuaWwA0X6dPg==", "height": 2834482, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2tnMxHbUKtcAaDsNtSNRSRKPmAZj21wuu57XHg4zqUC6 Next: Cf4zs8fS3VHjh5C5t8SNk8SQ2ujTKovFD6KjPpz9pxkF Diff:
Old | New | Differences | |
---|---|---|---|
58 | 58 | let leftStr = take(getPoolBoostings, (sizeStr - ((sizeStr - findIndex) + modifierLeft))) | |
59 | 59 | let rightStr = takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight))) | |
60 | 60 | let openBoostingsIds = (leftStr + rightStr) | |
61 | - | [IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId")))), StringEntry("getFinishedPoolId", getFinishedPoolId), StringEntry("getPoolBoostings", getPoolBoostings), IntegerEntry("findIndex", findIndex), IntegerEntry("sizeStr", sizeStr), StringEntry("left string", leftStr), StringEntry("right string", rightStr), StringEntry("openBoostingsIds", openBoostingsIds)] | |
61 | + | [IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId")))), StringEntry((("pool_" + getFinishedPoolId) + "_boostings"), if ((finishHeight > height)) | |
62 | + | then tryGetString((("pool_" + getFinishedPoolId) + "_boostings")) | |
63 | + | else openBoostingsIds)] | |
62 | 64 | } | |
63 | 65 | else nil | |
64 | 66 | } | |
204 | 206 | } | |
205 | 207 | ||
206 | 208 | ||
209 | + | ||
210 | + | @Callable(i) | |
211 | + | func remove (boostingId) = { | |
212 | + | let getFinishedPoolId = tryGetString((("boosting_" + boostingId) + "_poolId")) | |
213 | + | let getPoolBoostings = tryGetString((("pool_" + getFinishedPoolId) + "_boostings")) | |
214 | + | let sizeStr = size(getPoolBoostings) | |
215 | + | let findIndex = value(indexOf(getPoolBoostings, boostingId)) | |
216 | + | let modifierLeft = if ((findIndex == 0)) | |
217 | + | then 0 | |
218 | + | else 1 | |
219 | + | let modifierRight = if ((findIndex == 0)) | |
220 | + | then 2 | |
221 | + | else 1 | |
222 | + | let leftStr = take(getPoolBoostings, (sizeStr - ((sizeStr - findIndex) + modifierLeft))) | |
223 | + | let rightStr = takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight))) | |
224 | + | let openBoostingsIds = (leftStr + rightStr) | |
225 | + | [StringEntry("getFinishedPoolId", getFinishedPoolId), StringEntry("getPoolBoostings", getPoolBoostings), IntegerEntry("findIndex", findIndex), IntegerEntry("sizeStr", sizeStr), StringEntry("left string", leftStr), StringEntry("right string", rightStr), StringEntry("openBoostingsIds", openBoostingsIds), StringEntry((("pool_" + getFinishedPoolId) + "_boostings"), openBoostingsIds)] | |
226 | + | } | |
227 | + | ||
228 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let li = ["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", "55", "56"] | |
5 | 5 | ||
6 | 6 | let hours = 1 | |
7 | 7 | ||
8 | 8 | let minutes = 10 | |
9 | 9 | ||
10 | 10 | func tryGetInteger (key) = match getInteger(this, 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 (key) = match getString(this, key) { | |
19 | 19 | case b: String => | |
20 | 20 | b | |
21 | 21 | case _ => | |
22 | 22 | "" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func getAssetString (assetId) = match assetId { | |
27 | 27 | case b: ByteVector => | |
28 | 28 | toBase58String(b) | |
29 | 29 | case _ => | |
30 | 30 | "WAVES" | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func getAssetBytes (assetIdStr) = if ((assetIdStr == "WAVES")) | |
35 | 35 | then unit | |
36 | 36 | else fromBase58String(assetIdStr) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func payBoostingResult (boostingId) = { | |
40 | 40 | let lastHeight = tryGetInteger((("boosting_" + boostingId) + "_lastHeight")) | |
41 | 41 | let finishHeight = tryGetInteger((("boosting_" + boostingId) + "_finishHeight")) | |
42 | 42 | if (if ((lastHeight != 0)) | |
43 | 43 | then (finishHeight > lastHeight) | |
44 | 44 | else false) | |
45 | 45 | then { | |
46 | 46 | let blockReward = (tryGetInteger((("boosting_" + boostingId) + "_totalAmount")) / ((tryGetInteger((("boosting_" + boostingId) + "_days")) * hours) * minutes)) | |
47 | 47 | let toPay = fraction((min([finishHeight, height]) - lastHeight), blockReward, 1) | |
48 | 48 | let getFinishedPoolId = tryGetString((("boosting_" + boostingId) + "_poolId")) | |
49 | 49 | let getPoolBoostings = tryGetString((("pool_" + getFinishedPoolId) + "_boostings")) | |
50 | 50 | let sizeStr = size(getPoolBoostings) | |
51 | 51 | let findIndex = value(indexOf(getPoolBoostings, boostingId)) | |
52 | 52 | let modifierLeft = if ((findIndex == 0)) | |
53 | 53 | then 0 | |
54 | 54 | else 1 | |
55 | 55 | let modifierRight = if ((findIndex == 0)) | |
56 | 56 | then 2 | |
57 | 57 | else 1 | |
58 | 58 | let leftStr = take(getPoolBoostings, (sizeStr - ((sizeStr - findIndex) + modifierLeft))) | |
59 | 59 | let rightStr = takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight))) | |
60 | 60 | let openBoostingsIds = (leftStr + rightStr) | |
61 | - | [IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId")))), StringEntry("getFinishedPoolId", getFinishedPoolId), StringEntry("getPoolBoostings", getPoolBoostings), IntegerEntry("findIndex", findIndex), IntegerEntry("sizeStr", sizeStr), StringEntry("left string", leftStr), StringEntry("right string", rightStr), StringEntry("openBoostingsIds", openBoostingsIds)] | |
61 | + | [IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId")))), StringEntry((("pool_" + getFinishedPoolId) + "_boostings"), if ((finishHeight > height)) | |
62 | + | then tryGetString((("pool_" + getFinishedPoolId) + "_boostings")) | |
63 | + | else openBoostingsIds)] | |
62 | 64 | } | |
63 | 65 | else nil | |
64 | 66 | } | |
65 | 67 | ||
66 | 68 | ||
67 | 69 | func endedBoostingIds (boostingId) = { | |
68 | 70 | let lastHeight = tryGetInteger((("boosting_" + boostingId) + "_lastHeight")) | |
69 | 71 | let finishHeight = tryGetInteger((("boosting_" + boostingId) + "_finishHeight")) | |
70 | 72 | if ((lastHeight >= finishHeight)) | |
71 | 73 | then [StringEntry((("list ended " + toString(height)) + " boostingIds"), ((tryGetString((("list ended " + toString(height)) + " boostingIds")) + boostingId) + ","))] | |
72 | 74 | else [StringEntry((("list ongoing boosts " + toString(height)) + " boostingIds"), ((tryGetString((("list ongoing boosts " + toString(height)) + " boostingIds")) + boostingId) + ","))] | |
73 | 75 | } | |
74 | 76 | ||
75 | 77 | ||
76 | 78 | @Callable(i) | |
77 | 79 | func addBoosting (poolId,days) = if ((1 > days)) | |
78 | 80 | then throw("amount of days has to be between 1 and 365") | |
79 | 81 | else if ((days > 365)) | |
80 | 82 | then throw("amount of days has to be between 1 and 365") | |
81 | 83 | else if (false) | |
82 | 84 | then throw("under maintenance until further notice") | |
83 | 85 | else { | |
84 | 86 | let fullAmount = i.payments[0].amount | |
85 | 87 | if ((1440 > (fullAmount / days))) | |
86 | 88 | then throw((("boosting amount too small, minimum is " + toString((1440 * days))) + " of the smallest unit of payment asset")) | |
87 | 89 | else { | |
88 | 90 | let assetId = getAssetString(i.payments[0].assetId) | |
89 | 91 | if ((height == tryGetInteger("height"))) | |
90 | 92 | then throw("wait 1 minute") | |
91 | 93 | else { | |
92 | 94 | let entry = if ((size(tryGetString((("pool_" + poolId) + "_boostings"))) > 11)) | |
93 | 95 | then throw("max 5 boosts per pool") | |
94 | 96 | else invoke(this, "entryEnded", nil, nil) | |
95 | 97 | if ((entry == entry)) | |
96 | 98 | then { | |
97 | 99 | let boostingId = if ((size((("list ongoing boosts " + toString(height)) + " boostingIds")) > 112)) | |
98 | 100 | then throw("wait till other boosts are finished") | |
99 | 101 | else take(tryGetString((("list ended " + toString(height)) + " boostingIds")), 1) | |
100 | 102 | if ((addressFromString(poolId) == unit)) | |
101 | 103 | then throw("incorrect pool address") | |
102 | 104 | else [IntegerEntry((("boosting_" + boostingId) + "_days"), days), IntegerEntry((("boosting_" + boostingId) + "_totalAmount"), fullAmount), IntegerEntry((("boosting_" + boostingId) + "_dailyAmount"), (fullAmount / days)), IntegerEntry((("boosting_" + boostingId) + "_startHeight"), height), IntegerEntry((("boosting_" + boostingId) + "_finishHeight"), (height + ((days * hours) * minutes))), IntegerEntry((("boosting_" + boostingId) + "_finishTimestamp"), (lastBlock.timestamp + ((((days * hours) * minutes) * 60) * 1000))), IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), StringEntry((("boosting_" + boostingId) + "_assetId"), assetId), StringEntry((("boosting_" + boostingId) + "_owner"), toString(i.caller)), StringEntry((("boosting_" + boostingId) + "_poolId"), poolId), StringEntry((("pool_" + poolId) + "_boostings"), ((tryGetString((("pool_" + poolId) + "_boostings")) + boostingId) + ","))] | |
103 | 105 | } | |
104 | 106 | else throw("Strict value is not equal to itself.") | |
105 | 107 | } | |
106 | 108 | } | |
107 | 109 | } | |
108 | 110 | ||
109 | 111 | ||
110 | 112 | ||
111 | 113 | @Callable(i) | |
112 | 114 | func payBoosting (boostingId) = payBoostingResult(boostingId) | |
113 | 115 | ||
114 | 116 | ||
115 | 117 | ||
116 | 118 | @Callable(i) | |
117 | 119 | func payBoostings () = { | |
118 | 120 | func f (accum,next) = { | |
119 | 121 | let in = invoke(this, "payBoosting", [next], nil) | |
120 | 122 | if ((in == in)) | |
121 | 123 | then in | |
122 | 124 | else throw("Strict value is not equal to itself.") | |
123 | 125 | } | |
124 | 126 | ||
125 | 127 | let payments = { | |
126 | 128 | let $l = li | |
127 | 129 | let $s = size($l) | |
128 | 130 | let $acc0 = 0 | |
129 | 131 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
130 | 132 | then $a | |
131 | 133 | else f($a, $l[$i]) | |
132 | 134 | ||
133 | 135 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
134 | 136 | then $a | |
135 | 137 | else throw("List size exceeds 56") | |
136 | 138 | ||
137 | 139 | $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($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) | |
138 | 140 | } | |
139 | 141 | if ((payments == payments)) | |
140 | 142 | then nil | |
141 | 143 | else throw("Strict value is not equal to itself.") | |
142 | 144 | } | |
143 | 145 | ||
144 | 146 | ||
145 | 147 | ||
146 | 148 | @Callable(i) | |
147 | 149 | func endedBoostings (boostingId) = endedBoostingIds(boostingId) | |
148 | 150 | ||
149 | 151 | ||
150 | 152 | ||
151 | 153 | @Callable(i) | |
152 | 154 | func entryEnded () = { | |
153 | 155 | func f (accum,next) = { | |
154 | 156 | let in = invoke(this, "endedBoostings", [next], nil) | |
155 | 157 | if ((in == in)) | |
156 | 158 | then in | |
157 | 159 | else throw("Strict value is not equal to itself.") | |
158 | 160 | } | |
159 | 161 | ||
160 | 162 | let end = { | |
161 | 163 | let $l = li | |
162 | 164 | let $s = size($l) | |
163 | 165 | let $acc0 = 0 | |
164 | 166 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
165 | 167 | then $a | |
166 | 168 | else f($a, $l[$i]) | |
167 | 169 | ||
168 | 170 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
169 | 171 | then $a | |
170 | 172 | else throw("List size exceeds 56") | |
171 | 173 | ||
172 | 174 | $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($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) | |
173 | 175 | } | |
174 | 176 | if ((end == end)) | |
175 | 177 | then [IntegerEntry("height", height)] | |
176 | 178 | else throw("Strict value is not equal to itself.") | |
177 | 179 | } | |
178 | 180 | ||
179 | 181 | ||
180 | 182 | ||
181 | 183 | @Callable(i) | |
182 | 184 | func deleteEntr (poolId) = [DeleteEntry((("pool_" + poolId) + "_boostings"))] | |
183 | 185 | ||
184 | 186 | ||
185 | 187 | ||
186 | 188 | @Callable(i) | |
187 | 189 | func checkStr (boostingId) = { | |
188 | 190 | let getFinishedPoolId1 = tryGetString((("boosting_" + boostingId) + "_poolId")) | |
189 | 191 | let getPoolBoostings = tryGetString((("pool_" + getFinishedPoolId1) + "_boostings")) | |
190 | 192 | let sizeStr = size(getPoolBoostings) | |
191 | 193 | if ((indexOf(getPoolBoostings, boostingId) == unit)) | |
192 | 194 | then nil | |
193 | 195 | else { | |
194 | 196 | let findIndex = value(indexOf(getPoolBoostings, boostingId)) | |
195 | 197 | let modifierRight = if ((findIndex == 0)) | |
196 | 198 | then 2 | |
197 | 199 | else 1 | |
198 | 200 | let modifierLeft = if ((findIndex == 0)) | |
199 | 201 | then 0 | |
200 | 202 | else 1 | |
201 | 203 | let removeEndedBoostingID = (take(getPoolBoostings, (sizeStr - ((sizeStr - findIndex) + modifierLeft))) + takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight)))) | |
202 | 204 | [StringEntry("getFinishedPoolId", getFinishedPoolId1), StringEntry("getPoolBoostings", getPoolBoostings), IntegerEntry("findIndex", findIndex), IntegerEntry("sizeStr", sizeStr), StringEntry("left string", take(getPoolBoostings, (sizeStr - (sizeStr - findIndex)))), StringEntry("right string", takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight)))), StringEntry((("pool_" + getFinishedPoolId1) + "_boostings"), removeEndedBoostingID)] | |
203 | 205 | } | |
204 | 206 | } | |
205 | 207 | ||
206 | 208 | ||
209 | + | ||
210 | + | @Callable(i) | |
211 | + | func remove (boostingId) = { | |
212 | + | let getFinishedPoolId = tryGetString((("boosting_" + boostingId) + "_poolId")) | |
213 | + | let getPoolBoostings = tryGetString((("pool_" + getFinishedPoolId) + "_boostings")) | |
214 | + | let sizeStr = size(getPoolBoostings) | |
215 | + | let findIndex = value(indexOf(getPoolBoostings, boostingId)) | |
216 | + | let modifierLeft = if ((findIndex == 0)) | |
217 | + | then 0 | |
218 | + | else 1 | |
219 | + | let modifierRight = if ((findIndex == 0)) | |
220 | + | then 2 | |
221 | + | else 1 | |
222 | + | let leftStr = take(getPoolBoostings, (sizeStr - ((sizeStr - findIndex) + modifierLeft))) | |
223 | + | let rightStr = takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight))) | |
224 | + | let openBoostingsIds = (leftStr + rightStr) | |
225 | + | [StringEntry("getFinishedPoolId", getFinishedPoolId), StringEntry("getPoolBoostings", getPoolBoostings), IntegerEntry("findIndex", findIndex), IntegerEntry("sizeStr", sizeStr), StringEntry("left string", leftStr), StringEntry("right string", rightStr), StringEntry("openBoostingsIds", openBoostingsIds), StringEntry((("pool_" + getFinishedPoolId) + "_boostings"), openBoostingsIds)] | |
226 | + | } | |
227 | + | ||
228 | + |
github/deemru/w8io/169f3d6 50.98 ms ◑