tx · 6kBmQ9Ho1j94DnBprWjzxwx9LjUQwtddodnYQCHcmAwr 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv: -0.02200000 Waves 2024.12.22 17:51 [3425878] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves
{ "type": 13, "id": "6kBmQ9Ho1j94DnBprWjzxwx9LjUQwtddodnYQCHcmAwr", "fee": 2200000, "feeAssetId": null, "timestamp": 1734879075777, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "4JCSKg9vdfWvVXay3BHHx7oie9PcsjLbPUFz7U2WpodqcCUi5y6HzqetjQHK6YkXHPpFhrGxNvd9iFr7mBhiRRfy" ], "script": "base64:BgIqCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIhwEAA1NFUAICX18ABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAtwcm9tb0Jsb2NrcwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAkAzAgCAKCBkwIFA25pbAMJAAACAQFUBQckbWF0Y2gwCQDMCAIAnY3RAQUDbmlsCQACAQINVW5rbm93biBjaGFpbgAKREFZX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACgCwMJAAACAQFUBQckbWF0Y2gwADwJAAIBAg1Vbmtub3duIGNoYWluAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgAKVlJGX09GRlNFVAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAAAAwkAAAIBAVQFByRtYXRjaDAAkPlFCQACAQINVW5r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XJQcml6ZXNMaXN0CAUNJHQwMTIwOTIxMjE2MQJfMQQLd2lubmVyc0xpc3QIBQ0kdDAxMjA5MjEyMTYxAl8yCQCUCgIFA25pbAkAzAgCCQCsAgICECVzJXNfX3Byb21vTWFwX18FCHByb21vTWFwCQDMCAIJAKwCAgIZJXMlZF9fdG90YWxQcm9tb1RpY2tldHNfXwkApAMBBQx0b3RhbFRpY2tldHMJAMwIAgkArAICAhglcyVkX191c2VyUHJvbW9UaWNrZXRzX18JAKQDAQULdXNlclRpY2tldHMJAMwIAgkArAICAhUlcyVkX19ibG9ja2NoYWluRGF5X18JAKQDAQUFdG9kYXkJAMwIAgkArAICAhQlcyVzX19wcm9tb1dpbm5lcnNfXwkAugkCBQt3aW5uZXJzTGlzdAIBOgkAzAgCCQCsAgICFyVzJXNfX3VzZXJQcm9tb1ByaXplc19fCQC5CQIFDnVzZXJQcml6ZXNMaXN0AgFfBQNuaWwA5u3Rjw==", "height": 3425878, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GebhiQgpsGtToPHqPUDvrwSbacHAPApdVUScKLMcLhtn Next: 86aDmSdb2esrjPNXrgXopEu98xLHjAptjFiD4FCamcta Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | let promoBlocks = match chain { | |
9 | 9 | case _ => | |
10 | 10 | if ((base58'2W' == $match0)) | |
11 | - | then [ | |
11 | + | then [4505760] | |
12 | 12 | else if ((base58'2T' == $match0)) | |
13 | - | then [ | |
13 | + | then [3425949] | |
14 | 14 | else throw("Unknown chain") | |
15 | 15 | } | |
16 | 16 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let chain = take(drop(this.bytes, 1), 1) | |
7 | 7 | ||
8 | 8 | let promoBlocks = match chain { | |
9 | 9 | case _ => | |
10 | 10 | if ((base58'2W' == $match0)) | |
11 | - | then [ | |
11 | + | then [4505760] | |
12 | 12 | else if ((base58'2T' == $match0)) | |
13 | - | then [ | |
13 | + | then [3425949] | |
14 | 14 | else throw("Unknown chain") | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | let DAY_BLOCKS = match chain { | |
18 | 18 | case _ => | |
19 | 19 | if ((base58'2W' == $match0)) | |
20 | 20 | then 1440 | |
21 | 21 | else if ((base58'2T' == $match0)) | |
22 | 22 | then 60 | |
23 | 23 | else throw("Unknown chain") | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | let WEEK_BLOCKS = match chain { | |
27 | 27 | case _ => | |
28 | 28 | if ((base58'2W' == $match0)) | |
29 | 29 | then 10080 | |
30 | 30 | else if ((base58'2T' == $match0)) | |
31 | 31 | then 180 | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | let VRF_OFFSET = match chain { | |
36 | 36 | case _ => | |
37 | 37 | if ((base58'2W' == $match0)) | |
38 | 38 | then 0 | |
39 | 39 | else if ((base58'2T' == $match0)) | |
40 | 40 | then 1146000 | |
41 | 41 | else throw("Unknown chain") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let usdtAssetId = match chain { | |
45 | 45 | case _ => | |
46 | 46 | if ((base58'2W' == $match0)) | |
47 | 47 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
48 | 48 | else if ((base58'2T' == $match0)) | |
49 | 49 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
50 | 50 | else throw("Unknown chain") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | let defaultRest2AddressStr = match chain { | |
54 | 54 | case _ => | |
55 | 55 | if ((base58'2W' == $match0)) | |
56 | 56 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
57 | 57 | else if ((base58'2T' == $match0)) | |
58 | 58 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
59 | 59 | else throw("Unknown chain") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | let oldStakingContractStr = match chain { | |
63 | 63 | case _ => | |
64 | 64 | if ((base58'2W' == $match0)) | |
65 | 65 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
66 | 66 | else if ((base58'2T' == $match0)) | |
67 | 67 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
68 | 68 | else throw("Unknown chain") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | let IdxCfgAcres2Dapp = 1 | |
75 | 75 | ||
76 | 76 | let IdxCfgWlgDapp = 2 | |
77 | 77 | ||
78 | 78 | let IdxCfgPuzzlePoolDapp = 4 | |
79 | 79 | ||
80 | 80 | let IdxCfgInvestFundDapp = 5 | |
81 | 81 | ||
82 | 82 | let IdxCfgMarketDapp = 6 | |
83 | 83 | ||
84 | 84 | func keyRestCfg () = "%s__restConfig" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func keyRest2Address () = "%s__rest2Addr" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
97 | 97 | ||
98 | 98 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
99 | 99 | ||
100 | 100 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
101 | 101 | ||
102 | 102 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
103 | 103 | ||
104 | 104 | let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp) | |
105 | 105 | ||
106 | 106 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
107 | 107 | ||
108 | 108 | let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp) | |
109 | 109 | ||
110 | 110 | let oldAcresContractKey = "oldAcresContract" | |
111 | 111 | ||
112 | 112 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | let wlgAssetIdKey = "wlg_assetId" | |
119 | 119 | ||
120 | 120 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet") | |
121 | 121 | ||
122 | 122 | let acresAssetIdKey = "acresAssetId" | |
123 | 123 | ||
124 | 124 | let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet") | |
125 | 125 | ||
126 | 126 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyUserBet (addr) = ("userBet_" + addr) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week)) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week)) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func winningBet (day) = { | |
151 | 151 | let b = (day * DAY_BLOCKS) | |
152 | 152 | let h = if ((b > VRF_OFFSET)) | |
153 | 153 | then b | |
154 | 154 | else (b + VRF_OFFSET) | |
155 | 155 | (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4) | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func keySellerByAssetId (assetId) = ("seller_" + assetId) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func keyPriceByAssetId (assetId) = ("price_" + assetId) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func keyAssetIdsBySeller (addr) = ("assetIds_" + addr) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func keyUserPromoTickets (address) = ("promoTickets_" + address) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | let keyTotalPromoTickets = "totalPromoTickets" | |
172 | 172 | ||
173 | 173 | let keyPromoMap = "promoMap" | |
174 | 174 | ||
175 | 175 | func keyPromoRoundWinners (roundId) = ("promoRoundWinners_" + toString(roundId)) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | let ixWlgAmount = 0 | |
179 | 179 | ||
180 | 180 | let ixWlgWlg = 1 | |
181 | 181 | ||
182 | 182 | let ixWlgPrice = 2 | |
183 | 183 | ||
184 | 184 | let ixWlgFunds = 3 | |
185 | 185 | ||
186 | 186 | let ixWlgActivity = 4 | |
187 | 187 | ||
188 | 188 | let ixWlgAcres2 = 5 | |
189 | 189 | ||
190 | 190 | let ixWlgArbitrage = 6 | |
191 | 191 | ||
192 | 192 | let ixWlgPool = 7 | |
193 | 193 | ||
194 | 194 | let ixWlgIssueTime = 8 | |
195 | 195 | ||
196 | 196 | let ixWlgLastTeamActTime = 9 | |
197 | 197 | ||
198 | 198 | let ixWlgTeamTotal = 10 | |
199 | 199 | ||
200 | 200 | let ixWlgTeamAmLeft = 11 | |
201 | 201 | ||
202 | 202 | let ixWlgTeamAmAvailNow = 12 | |
203 | 203 | ||
204 | 204 | let ixWlgTeamWlgold = 13 | |
205 | 205 | ||
206 | 206 | let ixWlgActTotal = 14 | |
207 | 207 | ||
208 | 208 | let ixWlgActAmLeft = 15 | |
209 | 209 | ||
210 | 210 | let ixWlgActAmAvailNow = 16 | |
211 | 211 | ||
212 | 212 | let ixWlgActWlgold = 17 | |
213 | 213 | ||
214 | 214 | let ixWlgCurPeriod = 18 | |
215 | 215 | ||
216 | 216 | let ixWlgAmLeftTotal = 19 | |
217 | 217 | ||
218 | 218 | let ixWlgCurPeriodDistribution = 20 | |
219 | 219 | ||
220 | 220 | let ixWlgLastUserTime = 21 | |
221 | 221 | ||
222 | 222 | let ixWlgInvestFundAmount = 22 | |
223 | 223 | ||
224 | 224 | let ixWlgUserAmAvailNow = 23 | |
225 | 225 | ||
226 | 226 | let ixWlgEffUserTime = 24 | |
227 | 227 | ||
228 | 228 | let ixWlgIssue10Amount = 25 | |
229 | 229 | ||
230 | 230 | let ixWlgMarketingIssue10Amount = 26 | |
231 | 231 | ||
232 | 232 | let ixWlgTeamIssue10Amount = 27 | |
233 | 233 | ||
234 | 234 | let ixWlgUser10part = 28 | |
235 | 235 | ||
236 | 236 | let ixWlgIssue10Time = 29 | |
237 | 237 | ||
238 | 238 | let ixWlgTotalFarmingPower = 30 | |
239 | 239 | ||
240 | 240 | let ixWlgAcresStakedTotal = 31 | |
241 | 241 | ||
242 | 242 | let ixWlgNftTotalIssued = 32 | |
243 | 243 | ||
244 | 244 | let ixWlgNftTotalBurned = 33 | |
245 | 245 | ||
246 | 246 | let ixWlgWlNftTotalStaked = 34 | |
247 | 247 | ||
248 | 248 | let ixWlgWlNftUserStaked = 35 | |
249 | 249 | ||
250 | 250 | func asTuple4Ints (val) = match val { | |
251 | 251 | case t: (Int, Int, Int, Int) => | |
252 | 252 | t | |
253 | 253 | case _ => | |
254 | 254 | throw("fail to cast into (Int, Int, Int, Int)") | |
255 | 255 | } | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func asTuple3Ints (val) = match val { | |
259 | 259 | case t: (Int, Int, Int) => | |
260 | 260 | t | |
261 | 261 | case _ => | |
262 | 262 | throw("fail to cast into (Int, Int, Int)") | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func asTuple2Ints (val) = match val { | |
267 | 267 | case t: (Int, Int) => | |
268 | 268 | t | |
269 | 269 | case _ => | |
270 | 270 | throw("fail to cast into (Int, Int)") | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | let M6_ = 1000000 | |
275 | 275 | ||
276 | 276 | let M8_ = 100000000 | |
277 | 277 | ||
278 | 278 | let TEAM_SHARE = 200000 | |
279 | 279 | ||
280 | 280 | let ACTIVITY_SHARE = 100000 | |
281 | 281 | ||
282 | 282 | let PLAYER_SHARE = 400000 | |
283 | 283 | ||
284 | 284 | let YEAR_MILLIS = 31557600000 | |
285 | 285 | ||
286 | 286 | let DAY_MS = 86400000 | |
287 | 287 | ||
288 | 288 | let ISSUE10 = 1000000000 | |
289 | 289 | ||
290 | 290 | let PLAYERS10_SHARE = 800000 | |
291 | 291 | ||
292 | 292 | let MARKETING10_SHARE = 100000 | |
293 | 293 | ||
294 | 294 | let TEAM10_SHARE = 100000 | |
295 | 295 | ||
296 | 296 | let NEW_STAKING_START = 1731279600000 | |
297 | 297 | ||
298 | 298 | let teamAdrKey = "teamAddr" | |
299 | 299 | ||
300 | 300 | let lastTeamTimKey = "lastClaimedTime_team" | |
301 | 301 | ||
302 | 302 | let teamAmtLeftKey = "teamAmountLeft" | |
303 | 303 | ||
304 | 304 | let lastActivitiesTimKey = "lastClaimedTime_activities" | |
305 | 305 | ||
306 | 306 | let actAmtLeftKey = "activitiesAmountLeft" | |
307 | 307 | ||
308 | 308 | let stakersAmtLeftKey = "stakersAmountLeft" | |
309 | 309 | ||
310 | 310 | func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_)) | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | let wlgIssue10TimeKey = "wlg_issue10Time" | |
317 | 317 | ||
318 | 318 | let wlgIssueTimKey = "wlg_issueTime" | |
319 | 319 | ||
320 | 320 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
321 | 321 | ||
322 | 322 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
323 | 323 | ||
324 | 324 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
325 | 325 | ||
326 | 326 | ||
327 | 327 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
328 | 328 | ||
329 | 329 | let totalFarmingPowerKey = "totalFarmingPower" | |
330 | 330 | ||
331 | 331 | let dapp2Rest = 0 | |
332 | 332 | ||
333 | 333 | let dapp2Staking = 1 | |
334 | 334 | ||
335 | 335 | let dapp2Wlg = 2 | |
336 | 336 | ||
337 | 337 | let dapp2Puzzle = 3 | |
338 | 338 | ||
339 | 339 | let dapp2InvestFund = 4 | |
340 | 340 | ||
341 | 341 | let keyNftTotalIssued = "nftTotalIssued" | |
342 | 342 | ||
343 | 343 | let keyNftTotalBurned = "nftTotalBurned" | |
344 | 344 | ||
345 | 345 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
346 | 346 | ||
347 | 347 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
351 | 351 | ||
352 | 352 | ||
353 | 353 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
354 | 354 | ||
355 | 355 | func getLevelByAcres (acres) = { | |
356 | 356 | let acr = ((acres + 99999999) / M8_) | |
357 | 357 | func checker (acc,item) = if ((item >= acr)) | |
358 | 358 | then acc | |
359 | 359 | else (acc + 1) | |
360 | 360 | ||
361 | 361 | let $l = levelAcres | |
362 | 362 | let $s = size($l) | |
363 | 363 | let $acc0 = 0 | |
364 | 364 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
365 | 365 | then $a | |
366 | 366 | else checker($a, $l[$i]) | |
367 | 367 | ||
368 | 368 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
369 | 369 | then $a | |
370 | 370 | else throw("List size exceeds 10") | |
371 | 371 | ||
372 | 372 | $f0_2($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) | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
380 | 380 | let notBonused = getFarmingPowerByAcres(acres) | |
381 | 381 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
382 | 382 | } | |
383 | 383 | ||
384 | 384 | ||
385 | 385 | func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = { | |
386 | 386 | let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0) | |
387 | 387 | let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0) | |
388 | 388 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0) | |
389 | 389 | let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus) | |
390 | 390 | let userFPbonused = $t079119._1 | |
391 | 391 | let userFPnotBonused = $t079119._2 | |
392 | 392 | [totalFP, userFPbonused, userFPnotBonused, userBonus] | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | let idxTotalFP = 0 | |
397 | 397 | ||
398 | 398 | let idxUserFPbonused = 1 | |
399 | 399 | ||
400 | 400 | let idxUserFPnotBonused = 2 | |
401 | 401 | ||
402 | 402 | func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = { | |
403 | 403 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
404 | 404 | let restUsd = assetBalance(contracts[dapp2Rest], usdtId) | |
405 | 405 | let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection) | |
406 | 406 | let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId) | |
407 | 407 | let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId) | |
408 | 408 | let investFndContract = contracts[dapp2InvestFund] | |
409 | 409 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0)) | |
410 | 410 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
411 | 411 | let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet") | |
412 | 412 | let now = lastBlock.timestamp | |
413 | 413 | let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized") | |
414 | 414 | let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId) | |
415 | 415 | let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_) | |
416 | 416 | let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal) | |
417 | 417 | let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime) | |
418 | 418 | let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey))) | |
419 | 419 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft]) | |
420 | 420 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
421 | 421 | let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_) | |
422 | 422 | let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal) | |
423 | 423 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime) | |
424 | 424 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft]) | |
425 | 425 | let actWlgold = assetBalance(contracts[dapp2Rest], wlgId) | |
426 | 426 | let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime) | |
427 | 427 | let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS) | |
428 | 428 | let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))]) | |
429 | 429 | let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2]) | |
430 | 430 | let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking]) | |
431 | 431 | let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod) | |
432 | 432 | let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod)) | |
433 | 433 | let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1))) | |
434 | 434 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS) | |
435 | 435 | let userAvailable = if ((lastUserPeriod == curPeriod)) | |
436 | 436 | then a0 | |
437 | 437 | else if ((lastUserPeriod == (curPeriod - 1))) | |
438 | 438 | then { | |
439 | 439 | let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
440 | 440 | (a1 + a0) | |
441 | 441 | } | |
442 | 442 | else { | |
443 | 443 | let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
444 | 444 | let a1 = distrByPeriod(issuedAmount, (curPeriod - 1)) | |
445 | 445 | ((a2 + a1) + a0) | |
446 | 446 | } | |
447 | 447 | let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0) | |
448 | 448 | let userAmount = if ((eff[idxTotalFP] != 0)) | |
449 | 449 | then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP]) | |
450 | 450 | else 0 | |
451 | 451 | let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START) | |
452 | 452 | let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS) | |
453 | 453 | let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_) | |
454 | 454 | let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_) | |
455 | 455 | let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0]) | |
456 | 456 | let user10part = if ((eff[idxTotalFP] != 0)) | |
457 | 457 | then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_) | |
458 | 458 | else 0 | |
459 | 459 | let newIssue10Time = max([NEW_STAKING_START, now]) | |
460 | 460 | let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0) | |
461 | 461 | let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0) | |
462 | 462 | let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0) | |
463 | 463 | let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0) | |
464 | 464 | let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0) | |
465 | 465 | [issuedAmount, wlgWlg, fraction(totalFundsUsd, M8_, issuedAmount), totalFundsUsd, restUsd, acres2Usd, wlgUsd, puzzleUsd, issueTime, lastTeamTime, teamTotal, teamAmountLeft, teamAmountAvailableNow, teamWlgold, actTotal, actAmountLeft, actAmountAvailableNow, actWlgold, curPeriod, amountLeftTotal, curPeriodDistribution, lastUserTime, investFundTotal, userAmount, nowLimited, issue10Amount, marketingIssue10Amount, teamIssue10Amount, user10part, newIssue10Time, eff[idxTotalFP], acresStakedTotal, nftTotalIssued, nftTotalBurned, wlNftTotalStaked, wlNftUserStaked] | |
466 | 466 | } | |
467 | 467 | ||
468 | 468 | ||
469 | 469 | func walletInternal (userAddressOpt) = { | |
470 | 470 | let addr = addressFromString(userAddressOpt) | |
471 | 471 | let balance = if (isDefined(addr)) | |
472 | 472 | then wavesBalance(value(addr)) | |
473 | 473 | else BalanceDetails(0, 0, 0, 0) | |
474 | 474 | let usdtBalance = if (isDefined(addr)) | |
475 | 475 | then assetBalance(value(addr), usdtAssetId) | |
476 | 476 | else 0 | |
477 | 477 | let wlgoldBalance = if (isDefined(addr)) | |
478 | 478 | then assetBalance(value(addr), wlgAssetId) | |
479 | 479 | else 0 | |
480 | 480 | let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
481 | 481 | let refByKey = keyAddressRefBy(userAddressOpt) | |
482 | 482 | let refBy = getString(acres2Contract, refByKey) | |
483 | 483 | let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "") | |
484 | 484 | let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "") | |
485 | 485 | let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "") | |
486 | 486 | let acresBalance = if (isDefined(addr)) | |
487 | 487 | then assetBalance(value(addr), acresAssetId) | |
488 | 488 | else 0 | |
489 | 489 | let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0) | |
490 | 490 | let lvl = getLevelByAcres(stakedAcres) | |
491 | 491 | let fp = getFarmingPowers(userAddressOpt, acres2Contract) | |
492 | 492 | let acresToNextLvl = if ((lvl >= size(levelAcres))) | |
493 | 493 | then 0 | |
494 | 494 | else (((levelAcres[lvl] * M8_) + 1) - stakedAcres) | |
495 | 495 | let nfts = valueOrElse(getString(acres2Contract, keyStakedNFTsByOwner(userAddressOpt)), "") | |
496 | 496 | let bonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddressOpt)), 0) | |
497 | 497 | [("%s%s__customName__" + customName), ("%s%s__referredBy__" + valueOrElse(refBy, "")), ("%s%s__referrals__" + refs), ("%s%s__lastWeekTxId__" + lastTxId), ("%s%s__curWeekTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__acresBalance__" + toString(acresBalance)), ("%s%d__stakedAcres__" + toString(stakedAcres)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__acresToNextLvl__" + toString(acresToNextLvl)), ("%s%s__userNFTs__" + nfts), ("%s%d__userBonus__" + toString(bonus)), ("%s%d__userBaseFarmingPower__" + toString(fp[idxUserFPnotBonused])), ("%s%d__userFarmingPower__" + toString(fp[idxUserFPbonused])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))] | |
498 | 498 | } | |
499 | 499 | ||
500 | 500 | ||
501 | 501 | @Callable(i) | |
502 | 502 | func constructorV1 (contracts) = if ((i.caller != this)) | |
503 | 503 | then throw("permissions denied") | |
504 | 504 | else { | |
505 | 505 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
506 | 506 | ||
507 | 507 | let descr = { | |
508 | 508 | let $l = contracts | |
509 | 509 | let $s = size($l) | |
510 | 510 | let $acc0 = "" | |
511 | 511 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
512 | 512 | then $a | |
513 | 513 | else descriptor($a, $l[$i]) | |
514 | 514 | ||
515 | 515 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
516 | 516 | then $a | |
517 | 517 | else throw("List size exceeds 10") | |
518 | 518 | ||
519 | 519 | $f0_2($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) | |
520 | 520 | } | |
521 | 521 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))] | |
522 | 522 | } | |
523 | 523 | ||
524 | 524 | ||
525 | 525 | ||
526 | 526 | @Callable(i) | |
527 | 527 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
528 | 528 | ||
529 | 529 | ||
530 | 530 | ||
531 | 531 | @Callable(i) | |
532 | 532 | func conversionInfoREADONLY (userAddressOpt) = { | |
533 | 533 | let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey)) | |
534 | 534 | let $t050515173 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil)) | |
535 | 535 | let unstakedAcres = $t050515173._1 | |
536 | 536 | let claimedAcres = $t050515173._2 | |
537 | 537 | let $t051765325 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil)) | |
538 | 538 | let acresFromPieces = $t051765325._1 | |
539 | 539 | let acresFromRes = $t051765325._2 | |
540 | 540 | let acresFromMat = $t051765325._3 | |
541 | 541 | let acresFromProd = $t051765325._4 | |
542 | 542 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
543 | 543 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "") | |
544 | 544 | let $t055035725 = if ((duckAssetId != "")) | |
545 | 545 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil)) | |
546 | 546 | else $Tuple3(0, 0, 0) | |
547 | 547 | let acresFromDuckRes = $t055035725._1 | |
548 | 548 | let acresFromDuckMat = $t055035725._2 | |
549 | 549 | let acresFromDuckProd = $t055035725._3 | |
550 | 550 | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(unstakedAcres)), ("%s%d__claimedAcres__" + toString(claimedAcres)), ("%s%d__acresFromPieces__" + toString(acresFromPieces)), ("%s%d__acresFromRes__" + toString(acresFromRes)), ("%s%d__acresFromMat__" + toString(acresFromMat)), ("%s%d__acresFromProd__" + toString(acresFromProd)), ("%s%s__duckAssetId__" + duckAssetId), ("%s%d__acresFromDuckRes__" + toString(acresFromDuckRes)), ("%s%d__acresFromDuckMat__" + toString(acresFromDuckMat)), ("%s%d__acresFromDuckProd__" + toString(acresFromDuckProd))]) | |
551 | 551 | } | |
552 | 552 | ||
553 | 553 | ||
554 | 554 | ||
555 | 555 | @Callable(i) | |
556 | 556 | func wlgStatsREADONLY (userAddrOpt) = { | |
557 | 557 | let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
558 | 558 | $Tuple2(nil, [("%s%d__wlgAmount__" + toString(curStats[ixWlgAmount])), ("%s%d__wlgWlg__" + toString(curStats[ixWlgWlg])), ("%s%d__wlgPrice__" + toString(curStats[ixWlgPrice])), ("%s%d__usdtFunds__" + toString(curStats[ixWlgFunds])), ("%s%d__usdtActivity__" + toString(curStats[ixWlgActivity])), ("%s%d__usdtStaking__" + toString(curStats[ixWlgAcres2])), ("%s%d__usdtArbitrage__" + toString(curStats[ixWlgArbitrage])), ("%s%d__usdtPool__" + toString(curStats[ixWlgPool])), ("%s%d__wlgIssueTime__" + toString(curStats[ixWlgIssueTime])), ("%s%d__wlgLastTeamActTime__" + toString(curStats[ixWlgLastTeamActTime])), ("%s%d__wlgTeamTotal__" + toString(curStats[ixWlgTeamTotal])), ("%s%d__wlgTeamAmLeft__" + toString(curStats[ixWlgTeamAmLeft])), ("%s%d__wlgTeamAmAvailNow__" + toString(curStats[ixWlgTeamAmAvailNow])), ("%s%d__wlgTeamWlgold__" + toString(curStats[ixWlgTeamWlgold])), ("%s%d__wlgActTotal__" + toString(curStats[ixWlgActTotal])), ("%s%d__wlgActAmLeft__" + toString(curStats[ixWlgActAmLeft])), ("%s%d__wlgActAmAvailNow__" + toString(curStats[ixWlgActAmAvailNow])), ("%s%d__wlgActWlgold__" + toString(curStats[ixWlgActWlgold])), ("%s%d__wlgCurPeriod__" + toString(curStats[ixWlgCurPeriod])), ("%s%d__wlgAmLeftTotal__" + toString(curStats[ixWlgAmLeftTotal])), ("%s%d__wlgCurPeriodDistribution__" + toString(curStats[ixWlgCurPeriodDistribution])), ("%s%d__wlgLastUserTime__" + toString(curStats[ixWlgLastUserTime])), ("%s%d__wlgInvestFundTotal__" + toString(curStats[ixWlgInvestFundAmount])), ("%s%d__wlgUserAmAvailNow__" + toString(curStats[ixWlgUserAmAvailNow])), ("%s%d__wlgEffUserTime__" + toString(curStats[ixWlgEffUserTime])), ("%s%d__wlgIssue10AvailNow__" + toString(curStats[ixWlgIssue10Amount])), ("%s%d__wlgMarketingIssue10AvailNow__" + toString(curStats[ixWlgMarketingIssue10Amount])), ("%s%d__wlgTeamIssue10AvailNow__" + toString(curStats[ixWlgTeamIssue10Amount])), ("%s%d__wlgUserIssue10AvailNow__" + toString(curStats[ixWlgUser10part])), ("%s%d__wlgLastIssue10Time__" + toString(curStats[ixWlgIssue10Time])), ("%s%d__wlgTotalFarmingPower__" + toString(curStats[ixWlgTotalFarmingPower])), ("%s%d__wlgAcresStakedTotal__" + toString(curStats[ixWlgAcresStakedTotal])), ("%s%d__nftTotalIssued__" + toString(curStats[ixWlgNftTotalIssued])), ("%s%d__nftTotalBurned__" + toString(curStats[ixWlgNftTotalBurned])), ("%s%d__wlNftTotalStaked__" + toString(curStats[ixWlgWlNftTotalStaked])), ("%s%d__wlNftUserStaked__" + toString(curStats[ixWlgWlNftUserStaked]))]) | |
559 | 559 | } | |
560 | 560 | ||
561 | 561 | ||
562 | 562 | ||
563 | 563 | @Callable(i) | |
564 | 564 | func lotteryStatsREADONLY (userAddrOpt) = { | |
565 | 565 | let today = (height / DAY_BLOCKS) | |
566 | 566 | let week = (height / WEEK_BLOCKS) | |
567 | 567 | let lastWeek = (week - 1) | |
568 | 568 | let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0) | |
569 | 569 | let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0) | |
570 | 570 | let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0) | |
571 | 571 | let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0) | |
572 | 572 | let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "") | |
573 | 573 | $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString(lastWeekTotalTickets)) + SEP) + toString(curWeekTotalTickets)), ((("%s%d%d__userTickets__" + toString(lastWeekTickets)) + SEP) + toString(curWeekTickets)), ("%s%d__blockchainWeek__" + toString(week)), ("%s%d__blockchainDay__" + toString(today)), ("%s%d__blockchainMinute__" + toString((height % DAY_BLOCKS))), ("%s%d__winningBetToday__" + toString(winningBet(today))), ("%s%s__usersBet__" + usersBet)]) | |
574 | 574 | } | |
575 | 575 | ||
576 | 576 | ||
577 | 577 | ||
578 | 578 | @Callable(i) | |
579 | 579 | func userOrdersREADONLY (userAddrOpt) = { | |
580 | 580 | let nftsKey = keyAssetIdsBySeller(userAddrOpt) | |
581 | 581 | let nftsStr = valueOrElse(getString(marketContract, nftsKey), "") | |
582 | 582 | $Tuple2(nil, [("%s%s__userSaleNfts__" + nftsStr)]) | |
583 | 583 | } | |
584 | 584 | ||
585 | 585 | ||
586 | 586 | ||
587 | 587 | @Callable(i) | |
588 | 588 | func orderInfoREADONLY (assetIdOpt) = { | |
589 | 589 | let price = valueOrElse(getInteger(marketContract, keyPriceByAssetId(assetIdOpt)), 0) | |
590 | 590 | let seller = valueOrElse(getString(marketContract, keySellerByAssetId(assetIdOpt)), "") | |
591 | 591 | $Tuple2(nil, [("%s%d__marketNftPrice__" + toString(price)), ("%s%s__marketNftSeller__" + seller)]) | |
592 | 592 | } | |
593 | 593 | ||
594 | 594 | ||
595 | 595 | ||
596 | 596 | @Callable(i) | |
597 | 597 | func promoStatsREADONLY (userAddrOpt) = { | |
598 | 598 | let today = (height / DAY_BLOCKS) | |
599 | 599 | let userTickets = valueOrElse(getInteger(acres2Contract, keyUserPromoTickets(userAddrOpt)), 0) | |
600 | 600 | let totalTickets = valueOrElse(getInteger(acres2Contract, keyTotalPromoTickets), 0) | |
601 | 601 | let promoMap = valueOrElse(getString(acres2Contract, keyPromoMap), "") | |
602 | 602 | func sum (acc,roundId) = if ((promoBlocks[roundId] > height)) | |
603 | 603 | then acc | |
604 | 604 | else { | |
605 | 605 | let winners = valueOrElse(getString(acres2Contract, keyPromoRoundWinners(roundId)), "") | |
606 | 606 | if ((winners == "")) | |
607 | 607 | then acc | |
608 | 608 | else { | |
609 | 609 | let idx = indexOf(split(winners, "_"), userAddrOpt) | |
610 | 610 | if (isDefined(idx)) | |
611 | 611 | then $Tuple2((acc._1 :+ toString(value(idx))), (acc._2 :+ winners)) | |
612 | 612 | else $Tuple2((acc._1 :+ ""), (acc._2 :+ winners)) | |
613 | 613 | } | |
614 | 614 | } | |
615 | 615 | ||
616 | 616 | let $t01209212161 = { | |
617 | 617 | let $l = [0, 1, 2] | |
618 | 618 | let $s = size($l) | |
619 | 619 | let $acc0 = $Tuple2(nil, nil) | |
620 | 620 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
621 | 621 | then $a | |
622 | 622 | else sum($a, $l[$i]) | |
623 | 623 | ||
624 | 624 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
625 | 625 | then $a | |
626 | 626 | else throw("List size exceeds 3") | |
627 | 627 | ||
628 | 628 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
629 | 629 | } | |
630 | 630 | let userPrizesList = $t01209212161._1 | |
631 | 631 | let winnersList = $t01209212161._2 | |
632 | 632 | $Tuple2(nil, [("%s%s__promoMap__" + promoMap), ("%s%d__totalPromoTickets__" + toString(totalTickets)), ("%s%d__userPromoTickets__" + toString(userTickets)), ("%s%d__blockchainDay__" + toString(today)), ("%s%s__promoWinners__" + makeString_2C(winnersList, ":")), ("%s%s__userPromoPrizes__" + makeString(userPrizesList, "_"))]) | |
633 | 633 | } | |
634 | 634 | ||
635 | 635 |
github/deemru/w8io/169f3d6 269.57 ms ◑