tx · F2awhYBrUQEwZzFCogY57dpFn8dvCMc4zZvvoGwNL4d1 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv: -0.02200000 Waves 2024.12.15 17:46 [3415817] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves
{ "type": 13, "id": "F2awhYBrUQEwZzFCogY57dpFn8dvCMc4zZvvoGwNL4d1", "fee": 2200000, "feeAssetId": null, "timestamp": 1734274024784, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "2qhkVsa5FgTs26o3Rbt2B4sQkYgkS1oBftvTj3GZGfKcXp65xwAcy7PiGvJg9u5aJPARqATGpUTuHjUS2AeyLSmx" ], "script": "base64:BgIqCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIiAEAA1NFUAICX18ABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABABdEQUlMWV9QUk9NT19TVEFSVF9CTE9DSwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACA75ECAwkAAAIBAVQFByRtYXRjaDAAwKbQAQkAAgECDVVua25vd24gY2hhaW4ACkRBWV9CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAoAsDCQAAAgEBVAUHJG1hdGNoMAA8CQACAQINVW5rbm93biBjaGFpbgALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AClZSRl9PRkZTRVQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAAAMJAAACAQFUBQckbWF0Y2gwAJD5RQkAAgECDVVua25vd24gY2hhaW4AC3VzZHRBc3N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W9UaWNrZXRzX18JAKQDAQULdXNlclRpY2tldHMJAMwIAgkArAICAhUlcyVkX19ibG9ja2NoYWluRGF5X18JAKQDAQUFdG9kYXkJAMwIAgkArAICAhklcyVzX19wcm9tb1dpbm5lcnNUb2RheV9fBQx3aW5uZXJzVG9kYXkJAMwIAgkArAICCQCsAgIJAKwCAgIjJXMlZCVkX191c2VyUHJvbW9Qcml6ZXNBY3Jlc1NvRmFyX18JAKQDAQUKdXNlclByaXplcwUDU0VQCQCkAwEFCXVzZXJBY3JlcwUDbmlsAMGj/EY=", "height": 3415817, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7xcNHzGsiPJoyDnsiuaofjp366X2PNDR2q6nMST4VncS Next: none Diff:
Old | New | Differences | |
---|---|---|---|
172 | 172 | ||
173 | 173 | let keyPromoMap = "promoMap" | |
174 | 174 | ||
175 | - | func keyPromoRoundWinners (day) = (" | |
175 | + | func keyPromoRoundWinners (day) = ("promoRoundWinners_" + toString(day)) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | let promoAwardPerRound = [0, 500000000, 100000000, 100000000, 100000000, 100000000] |
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 DAILY_PROMO_START_BLOCK = match chain { | |
9 | 9 | case _ => | |
10 | 10 | if ((base58'2W' == $match0)) | |
11 | 11 | then 4487040 | |
12 | 12 | else if ((base58'2T' == $match0)) | |
13 | 13 | then 3412800 | |
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 | - | func keyPromoRoundWinners (day) = (" | |
175 | + | func keyPromoRoundWinners (day) = ("promoRoundWinners_" + toString(day)) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | let promoAwardPerRound = [0, 500000000, 100000000, 100000000, 100000000, 100000000] | |
179 | 179 | ||
180 | 180 | let ixWlgAmount = 0 | |
181 | 181 | ||
182 | 182 | let ixWlgWlg = 1 | |
183 | 183 | ||
184 | 184 | let ixWlgPrice = 2 | |
185 | 185 | ||
186 | 186 | let ixWlgFunds = 3 | |
187 | 187 | ||
188 | 188 | let ixWlgActivity = 4 | |
189 | 189 | ||
190 | 190 | let ixWlgAcres2 = 5 | |
191 | 191 | ||
192 | 192 | let ixWlgArbitrage = 6 | |
193 | 193 | ||
194 | 194 | let ixWlgPool = 7 | |
195 | 195 | ||
196 | 196 | let ixWlgIssueTime = 8 | |
197 | 197 | ||
198 | 198 | let ixWlgLastTeamActTime = 9 | |
199 | 199 | ||
200 | 200 | let ixWlgTeamTotal = 10 | |
201 | 201 | ||
202 | 202 | let ixWlgTeamAmLeft = 11 | |
203 | 203 | ||
204 | 204 | let ixWlgTeamAmAvailNow = 12 | |
205 | 205 | ||
206 | 206 | let ixWlgTeamWlgold = 13 | |
207 | 207 | ||
208 | 208 | let ixWlgActTotal = 14 | |
209 | 209 | ||
210 | 210 | let ixWlgActAmLeft = 15 | |
211 | 211 | ||
212 | 212 | let ixWlgActAmAvailNow = 16 | |
213 | 213 | ||
214 | 214 | let ixWlgActWlgold = 17 | |
215 | 215 | ||
216 | 216 | let ixWlgCurPeriod = 18 | |
217 | 217 | ||
218 | 218 | let ixWlgAmLeftTotal = 19 | |
219 | 219 | ||
220 | 220 | let ixWlgCurPeriodDistribution = 20 | |
221 | 221 | ||
222 | 222 | let ixWlgLastUserTime = 21 | |
223 | 223 | ||
224 | 224 | let ixWlgInvestFundAmount = 22 | |
225 | 225 | ||
226 | 226 | let ixWlgUserAmAvailNow = 23 | |
227 | 227 | ||
228 | 228 | let ixWlgEffUserTime = 24 | |
229 | 229 | ||
230 | 230 | let ixWlgIssue10Amount = 25 | |
231 | 231 | ||
232 | 232 | let ixWlgMarketingIssue10Amount = 26 | |
233 | 233 | ||
234 | 234 | let ixWlgTeamIssue10Amount = 27 | |
235 | 235 | ||
236 | 236 | let ixWlgUser10part = 28 | |
237 | 237 | ||
238 | 238 | let ixWlgIssue10Time = 29 | |
239 | 239 | ||
240 | 240 | let ixWlgTotalFarmingPower = 30 | |
241 | 241 | ||
242 | 242 | let ixWlgAcresStakedTotal = 31 | |
243 | 243 | ||
244 | 244 | let ixWlgNftTotalIssued = 32 | |
245 | 245 | ||
246 | 246 | let ixWlgNftTotalBurned = 33 | |
247 | 247 | ||
248 | 248 | let ixWlgWlNftTotalStaked = 34 | |
249 | 249 | ||
250 | 250 | let ixWlgWlNftUserStaked = 35 | |
251 | 251 | ||
252 | 252 | func asTuple4Ints (val) = match val { | |
253 | 253 | case t: (Int, Int, Int, Int) => | |
254 | 254 | t | |
255 | 255 | case _ => | |
256 | 256 | throw("fail to cast into (Int, Int, Int, Int)") | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func asTuple3Ints (val) = match val { | |
261 | 261 | case t: (Int, Int, Int) => | |
262 | 262 | t | |
263 | 263 | case _ => | |
264 | 264 | throw("fail to cast into (Int, Int, Int)") | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func asTuple2Ints (val) = match val { | |
269 | 269 | case t: (Int, Int) => | |
270 | 270 | t | |
271 | 271 | case _ => | |
272 | 272 | throw("fail to cast into (Int, Int)") | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | let M6_ = 1000000 | |
277 | 277 | ||
278 | 278 | let M8_ = 100000000 | |
279 | 279 | ||
280 | 280 | let TEAM_SHARE = 200000 | |
281 | 281 | ||
282 | 282 | let ACTIVITY_SHARE = 100000 | |
283 | 283 | ||
284 | 284 | let PLAYER_SHARE = 400000 | |
285 | 285 | ||
286 | 286 | let YEAR_MILLIS = 31557600000 | |
287 | 287 | ||
288 | 288 | let DAY_MS = 86400000 | |
289 | 289 | ||
290 | 290 | let ISSUE10 = 1000000000 | |
291 | 291 | ||
292 | 292 | let PLAYERS10_SHARE = 800000 | |
293 | 293 | ||
294 | 294 | let MARKETING10_SHARE = 100000 | |
295 | 295 | ||
296 | 296 | let TEAM10_SHARE = 100000 | |
297 | 297 | ||
298 | 298 | let NEW_STAKING_START = 1731279600000 | |
299 | 299 | ||
300 | 300 | let teamAdrKey = "teamAddr" | |
301 | 301 | ||
302 | 302 | let lastTeamTimKey = "lastClaimedTime_team" | |
303 | 303 | ||
304 | 304 | let teamAmtLeftKey = "teamAmountLeft" | |
305 | 305 | ||
306 | 306 | let lastActivitiesTimKey = "lastClaimedTime_activities" | |
307 | 307 | ||
308 | 308 | let actAmtLeftKey = "activitiesAmountLeft" | |
309 | 309 | ||
310 | 310 | let stakersAmtLeftKey = "stakersAmountLeft" | |
311 | 311 | ||
312 | 312 | func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_)) | |
316 | 316 | ||
317 | 317 | ||
318 | 318 | let wlgIssue10TimeKey = "wlg_issue10Time" | |
319 | 319 | ||
320 | 320 | let wlgIssueTimKey = "wlg_issueTime" | |
321 | 321 | ||
322 | 322 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
323 | 323 | ||
324 | 324 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
325 | 325 | ||
326 | 326 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
330 | 330 | ||
331 | 331 | let totalFarmingPowerKey = "totalFarmingPower" | |
332 | 332 | ||
333 | 333 | let dapp2Rest = 0 | |
334 | 334 | ||
335 | 335 | let dapp2Staking = 1 | |
336 | 336 | ||
337 | 337 | let dapp2Wlg = 2 | |
338 | 338 | ||
339 | 339 | let dapp2Puzzle = 3 | |
340 | 340 | ||
341 | 341 | let dapp2InvestFund = 4 | |
342 | 342 | ||
343 | 343 | let keyNftTotalIssued = "nftTotalIssued" | |
344 | 344 | ||
345 | 345 | let keyNftTotalBurned = "nftTotalBurned" | |
346 | 346 | ||
347 | 347 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
348 | 348 | ||
349 | 349 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
350 | 350 | ||
351 | 351 | ||
352 | 352 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
353 | 353 | ||
354 | 354 | ||
355 | 355 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
356 | 356 | ||
357 | 357 | func getLevelByAcres (acres) = { | |
358 | 358 | let acr = ((acres + 99999999) / M8_) | |
359 | 359 | func checker (acc,item) = if ((item >= acr)) | |
360 | 360 | then acc | |
361 | 361 | else (acc + 1) | |
362 | 362 | ||
363 | 363 | let $l = levelAcres | |
364 | 364 | let $s = size($l) | |
365 | 365 | let $acc0 = 0 | |
366 | 366 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
367 | 367 | then $a | |
368 | 368 | else checker($a, $l[$i]) | |
369 | 369 | ||
370 | 370 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
371 | 371 | then $a | |
372 | 372 | else throw("List size exceeds 10") | |
373 | 373 | ||
374 | 374 | $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) | |
375 | 375 | } | |
376 | 376 | ||
377 | 377 | ||
378 | 378 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
379 | 379 | ||
380 | 380 | ||
381 | 381 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
382 | 382 | let notBonused = getFarmingPowerByAcres(acres) | |
383 | 383 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
384 | 384 | } | |
385 | 385 | ||
386 | 386 | ||
387 | 387 | func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = { | |
388 | 388 | let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0) | |
389 | 389 | let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0) | |
390 | 390 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0) | |
391 | 391 | let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus) | |
392 | 392 | let userFPbonused = $t079119._1 | |
393 | 393 | let userFPnotBonused = $t079119._2 | |
394 | 394 | [totalFP, userFPbonused, userFPnotBonused, userBonus] | |
395 | 395 | } | |
396 | 396 | ||
397 | 397 | ||
398 | 398 | let idxTotalFP = 0 | |
399 | 399 | ||
400 | 400 | let idxUserFPbonused = 1 | |
401 | 401 | ||
402 | 402 | let idxUserFPnotBonused = 2 | |
403 | 403 | ||
404 | 404 | func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = { | |
405 | 405 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
406 | 406 | let restUsd = assetBalance(contracts[dapp2Rest], usdtId) | |
407 | 407 | let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection) | |
408 | 408 | let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId) | |
409 | 409 | let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId) | |
410 | 410 | let investFndContract = contracts[dapp2InvestFund] | |
411 | 411 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0)) | |
412 | 412 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
413 | 413 | let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet") | |
414 | 414 | let now = lastBlock.timestamp | |
415 | 415 | let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized") | |
416 | 416 | let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId) | |
417 | 417 | let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_) | |
418 | 418 | let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal) | |
419 | 419 | let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime) | |
420 | 420 | let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey))) | |
421 | 421 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft]) | |
422 | 422 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
423 | 423 | let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_) | |
424 | 424 | let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal) | |
425 | 425 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime) | |
426 | 426 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft]) | |
427 | 427 | let actWlgold = assetBalance(contracts[dapp2Rest], wlgId) | |
428 | 428 | let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime) | |
429 | 429 | let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS) | |
430 | 430 | let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))]) | |
431 | 431 | let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2]) | |
432 | 432 | let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking]) | |
433 | 433 | let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod) | |
434 | 434 | let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod)) | |
435 | 435 | let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1))) | |
436 | 436 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS) | |
437 | 437 | let userAvailable = if ((lastUserPeriod == curPeriod)) | |
438 | 438 | then a0 | |
439 | 439 | else if ((lastUserPeriod == (curPeriod - 1))) | |
440 | 440 | then { | |
441 | 441 | let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
442 | 442 | (a1 + a0) | |
443 | 443 | } | |
444 | 444 | else { | |
445 | 445 | let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
446 | 446 | let a1 = distrByPeriod(issuedAmount, (curPeriod - 1)) | |
447 | 447 | ((a2 + a1) + a0) | |
448 | 448 | } | |
449 | 449 | let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0) | |
450 | 450 | let userAmount = if ((eff[idxTotalFP] != 0)) | |
451 | 451 | then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP]) | |
452 | 452 | else 0 | |
453 | 453 | let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START) | |
454 | 454 | let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS) | |
455 | 455 | let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_) | |
456 | 456 | let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_) | |
457 | 457 | let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0]) | |
458 | 458 | let user10part = if ((eff[idxTotalFP] != 0)) | |
459 | 459 | then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_) | |
460 | 460 | else 0 | |
461 | 461 | let newIssue10Time = max([NEW_STAKING_START, now]) | |
462 | 462 | let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0) | |
463 | 463 | let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0) | |
464 | 464 | let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0) | |
465 | 465 | let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0) | |
466 | 466 | let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0) | |
467 | 467 | [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] | |
468 | 468 | } | |
469 | 469 | ||
470 | 470 | ||
471 | 471 | func walletInternal (userAddressOpt) = { | |
472 | 472 | let addr = addressFromString(userAddressOpt) | |
473 | 473 | let balance = if (isDefined(addr)) | |
474 | 474 | then wavesBalance(value(addr)) | |
475 | 475 | else BalanceDetails(0, 0, 0, 0) | |
476 | 476 | let usdtBalance = if (isDefined(addr)) | |
477 | 477 | then assetBalance(value(addr), usdtAssetId) | |
478 | 478 | else 0 | |
479 | 479 | let wlgoldBalance = if (isDefined(addr)) | |
480 | 480 | then assetBalance(value(addr), wlgAssetId) | |
481 | 481 | else 0 | |
482 | 482 | let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
483 | 483 | let refByKey = keyAddressRefBy(userAddressOpt) | |
484 | 484 | let refBy = getString(acres2Contract, refByKey) | |
485 | 485 | let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "") | |
486 | 486 | let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "") | |
487 | 487 | let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "") | |
488 | 488 | let acresBalance = if (isDefined(addr)) | |
489 | 489 | then assetBalance(value(addr), acresAssetId) | |
490 | 490 | else 0 | |
491 | 491 | let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0) | |
492 | 492 | let lvl = getLevelByAcres(stakedAcres) | |
493 | 493 | let fp = getFarmingPowers(userAddressOpt, acres2Contract) | |
494 | 494 | let acresToNextLvl = if ((lvl >= size(levelAcres))) | |
495 | 495 | then 0 | |
496 | 496 | else (((levelAcres[lvl] * M8_) + 1) - stakedAcres) | |
497 | 497 | let nfts = valueOrElse(getString(acres2Contract, keyStakedNFTsByOwner(userAddressOpt)), "") | |
498 | 498 | let bonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddressOpt)), 0) | |
499 | 499 | [("%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]))] | |
500 | 500 | } | |
501 | 501 | ||
502 | 502 | ||
503 | 503 | @Callable(i) | |
504 | 504 | func constructorV1 (contracts) = if ((i.caller != this)) | |
505 | 505 | then throw("permissions denied") | |
506 | 506 | else { | |
507 | 507 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
508 | 508 | ||
509 | 509 | let descr = { | |
510 | 510 | let $l = contracts | |
511 | 511 | let $s = size($l) | |
512 | 512 | let $acc0 = "" | |
513 | 513 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
514 | 514 | then $a | |
515 | 515 | else descriptor($a, $l[$i]) | |
516 | 516 | ||
517 | 517 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
518 | 518 | then $a | |
519 | 519 | else throw("List size exceeds 10") | |
520 | 520 | ||
521 | 521 | $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) | |
522 | 522 | } | |
523 | 523 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))] | |
524 | 524 | } | |
525 | 525 | ||
526 | 526 | ||
527 | 527 | ||
528 | 528 | @Callable(i) | |
529 | 529 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
530 | 530 | ||
531 | 531 | ||
532 | 532 | ||
533 | 533 | @Callable(i) | |
534 | 534 | func conversionInfoREADONLY (userAddressOpt) = { | |
535 | 535 | let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey)) | |
536 | 536 | let $t050515173 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil)) | |
537 | 537 | let unstakedAcres = $t050515173._1 | |
538 | 538 | let claimedAcres = $t050515173._2 | |
539 | 539 | let $t051765325 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil)) | |
540 | 540 | let acresFromPieces = $t051765325._1 | |
541 | 541 | let acresFromRes = $t051765325._2 | |
542 | 542 | let acresFromMat = $t051765325._3 | |
543 | 543 | let acresFromProd = $t051765325._4 | |
544 | 544 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
545 | 545 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "") | |
546 | 546 | let $t055035725 = if ((duckAssetId != "")) | |
547 | 547 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil)) | |
548 | 548 | else $Tuple3(0, 0, 0) | |
549 | 549 | let acresFromDuckRes = $t055035725._1 | |
550 | 550 | let acresFromDuckMat = $t055035725._2 | |
551 | 551 | let acresFromDuckProd = $t055035725._3 | |
552 | 552 | $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%d__acresFromDuckRes__" + toString(acresFromDuckRes)), ("%s%d__acresFromDuckMat__" + toString(acresFromDuckMat)), ("%s%d__acresFromDuckProd__" + toString(acresFromDuckProd))]) | |
553 | 553 | } | |
554 | 554 | ||
555 | 555 | ||
556 | 556 | ||
557 | 557 | @Callable(i) | |
558 | 558 | func wlgStatsREADONLY (userAddrOpt) = { | |
559 | 559 | let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
560 | 560 | $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]))]) | |
561 | 561 | } | |
562 | 562 | ||
563 | 563 | ||
564 | 564 | ||
565 | 565 | @Callable(i) | |
566 | 566 | func lotteryStatsREADONLY (userAddrOpt) = { | |
567 | 567 | let today = (height / DAY_BLOCKS) | |
568 | 568 | let week = (height / WEEK_BLOCKS) | |
569 | 569 | let lastWeek = (week - 1) | |
570 | 570 | let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0) | |
571 | 571 | let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0) | |
572 | 572 | let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0) | |
573 | 573 | let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0) | |
574 | 574 | let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "") | |
575 | 575 | $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)]) | |
576 | 576 | } | |
577 | 577 | ||
578 | 578 | ||
579 | 579 | ||
580 | 580 | @Callable(i) | |
581 | 581 | func userOrdersREADONLY (userAddrOpt) = { | |
582 | 582 | let nftsKey = keyAssetIdsBySeller(userAddrOpt) | |
583 | 583 | let nftsStr = valueOrElse(getString(marketContract, nftsKey), "") | |
584 | 584 | $Tuple2(nil, [("%s%s__userSaleNfts__" + nftsStr)]) | |
585 | 585 | } | |
586 | 586 | ||
587 | 587 | ||
588 | 588 | ||
589 | 589 | @Callable(i) | |
590 | 590 | func orderInfoREADONLY (assetIdOpt) = { | |
591 | 591 | let price = valueOrElse(getInteger(marketContract, keyPriceByAssetId(assetIdOpt)), 0) | |
592 | 592 | let seller = valueOrElse(getString(marketContract, keySellerByAssetId(assetIdOpt)), "") | |
593 | 593 | $Tuple2(nil, [("%s%d__marketNftPrice__" + toString(price)), ("%s%s__marketNftSeller__" + seller)]) | |
594 | 594 | } | |
595 | 595 | ||
596 | 596 | ||
597 | 597 | ||
598 | 598 | @Callable(i) | |
599 | 599 | func promoStatsREADONLY (userAddrOpt) = { | |
600 | 600 | let today = (height / DAY_BLOCKS) | |
601 | 601 | let userTickets = valueOrElse(getInteger(acres2Contract, keyUserPromoTickets(userAddrOpt)), 0) | |
602 | 602 | let totalTickets = valueOrElse(getInteger(acres2Contract, keyTotalPromoTickets), 0) | |
603 | 603 | let promoMap = valueOrElse(getString(acres2Contract, keyPromoMap), "") | |
604 | 604 | let winnersToday = valueOrElse(getString(acres2Contract, keyPromoRoundWinners(today)), "") | |
605 | 605 | func sum (acc,j) = { | |
606 | 606 | let day = ((DAILY_PROMO_START_BLOCK / DAY_BLOCKS) + j) | |
607 | 607 | if ((day > today)) | |
608 | 608 | then acc | |
609 | 609 | else { | |
610 | 610 | let winners = valueOrElse(getString(acres2Contract, keyPromoRoundWinners(day)), "") | |
611 | 611 | if ((winners == "")) | |
612 | 612 | then acc | |
613 | 613 | else { | |
614 | 614 | let winnersList = split(winners, "_") | |
615 | 615 | let idx = indexOf(winnersList, userAddrOpt) | |
616 | 616 | if (isDefined(idx)) | |
617 | 617 | then $Tuple2((acc._1 + 1), (acc._2 + promoAwardPerRound[value(idx)])) | |
618 | 618 | else acc | |
619 | 619 | } | |
620 | 620 | } | |
621 | 621 | } | |
622 | 622 | ||
623 | 623 | let $t01185912027 = { | |
624 | 624 | let $l = [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] | |
625 | 625 | let $s = size($l) | |
626 | 626 | let $acc0 = $Tuple2(0, 0) | |
627 | 627 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
628 | 628 | then $a | |
629 | 629 | else sum($a, $l[$i]) | |
630 | 630 | ||
631 | 631 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
632 | 632 | then $a | |
633 | 633 | else throw("List size exceeds 30") | |
634 | 634 | ||
635 | 635 | $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($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) | |
636 | 636 | } | |
637 | 637 | let userPrizes = $t01185912027._1 | |
638 | 638 | let userAcres = $t01185912027._2 | |
639 | 639 | $Tuple2(nil, [("%s%d__totalPromoTickets__" + toString(totalTickets)), ("%s%d__userPromoTickets__" + toString(userTickets)), ("%s%d__blockchainDay__" + toString(today)), ("%s%s__promoWinnersToday__" + winnersToday), ((("%s%d%d__userPromoPrizesAcresSoFar__" + toString(userPrizes)) + SEP) + toString(userAcres))]) | |
640 | 640 | } | |
641 | 641 | ||
642 | 642 |
github/deemru/w8io/169f3d6 69.12 ms ◑