tx · 6jygPk1vZcRyMffmD1MKm9JxZjpRvBvBmgr4UXMauREN 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy: -0.03600000 Waves 2024.12.05 07:11 [3400835] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves
{ "type": 13, "id": "6jygPk1vZcRyMffmD1MKm9JxZjpRvBvBmgr4UXMauREN", "fee": 3600000, "feeAssetId": null, "timestamp": 1733371876096, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "4uipbyrZfMFzRAN9Efj5njH8c6rpFzQKP7CkPUa7YG1cCAfSTiR2CpDKW6wsq8SwwXh4dfFWyYctmFgj3J4nu5eE" ], "script": "base64:BgJSCAISBgoECAgICBIDCgEIEgMKAQESBAoCCAESAwoBARIECgIIARIAEgMKAQgSAwoBCBIDCgEBEgMKAQESAwoBCBIDCgEIEgMKAQESABIECgIIAbcBAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ4AIDC1y8ADk1JTlNIT1BQQVlNRU5UAKCNBgAKREFZX01JTExJUwCAuJkpAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAKREFZX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACgCwMJAAACAQFUBQckbWF0Y2gwADwJAAIBAg1Vbmtub3duIGNoYWluAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgAKVlJGX09GRlNFVAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAAAAwkAAAIBAVQFByRtYXRjaDAAkPlFCQACAQINVW5rbm93biBjaG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nRyeQIJARNrZXlUb3RhbFdlZWtUaWNrZXRzAQUEd2VlawkAZAIFD29sZFRvdGFsVGlja2V0cwUMZGVsdGFUaWNrZXRzBQxkZWx0YVRpY2tldHMAs9xAwg==", "height": 3400835, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CfVXcwyF2E7mZ7cmCCh6YGwZMsHAQypiBxPDfWDjSHcg Next: Fv5kpH7SLtaykk6Jh46YWctaXLcZDnzU6jZR3Gu6nwhk Diff:
Old | New | Differences | |
---|---|---|---|
669 | 669 | ||
670 | 670 | let idxWlgAmLeftTotal = 18 | |
671 | 671 | ||
672 | - | let idxWlgUserAmAvailNow = 21 | |
673 | - | ||
674 | 672 | let idxWlgUserTotalAvail = 24 | |
675 | 673 | ||
676 | 674 | let idxWlgEffUserTime = 25 | |
684 | 682 | let teamAmount = curStats[idxWlgTeamAmAvailNow] | |
685 | 683 | let actAmountLeft = curStats[idxWlgActAmLeft] | |
686 | 684 | let actAmount = curStats[idxWlgActAmAvailNow] | |
687 | - | let userAmount = curStats[ | |
685 | + | let userAmount = curStats[idxWlgUserTotalAvail] | |
688 | 686 | let userKey = keyStakersAmountPaidUser(addr) | |
689 | 687 | let userTotal = curStats[idxWlgUserTotalAvail] | |
690 | 688 | let userEffTime = curStats[idxWlgEffUserTime] |
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 MULT6 = 1000000 | |
7 | 7 | ||
8 | 8 | let MULT8 = 100000000 | |
9 | 9 | ||
10 | 10 | let MINSHOPPAYMENT = 100000 | |
11 | 11 | ||
12 | 12 | let DAY_MILLIS = 86400000 | |
13 | 13 | ||
14 | 14 | let chain = take(drop(this.bytes, 1), 1) | |
15 | 15 | ||
16 | 16 | let DAY_BLOCKS = match chain { | |
17 | 17 | case _ => | |
18 | 18 | if ((base58'2W' == $match0)) | |
19 | 19 | then 1440 | |
20 | 20 | else if ((base58'2T' == $match0)) | |
21 | 21 | then 60 | |
22 | 22 | else throw("Unknown chain") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | let WEEK_BLOCKS = match chain { | |
26 | 26 | case _ => | |
27 | 27 | if ((base58'2W' == $match0)) | |
28 | 28 | then 10080 | |
29 | 29 | else if ((base58'2T' == $match0)) | |
30 | 30 | then 180 | |
31 | 31 | else throw("Unknown chain") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | let VRF_OFFSET = match chain { | |
35 | 35 | case _ => | |
36 | 36 | if ((base58'2W' == $match0)) | |
37 | 37 | then 0 | |
38 | 38 | else if ((base58'2T' == $match0)) | |
39 | 39 | then 1146000 | |
40 | 40 | else throw("Unknown chain") | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | let usdtAssetId = match chain { | |
44 | 44 | case _ => | |
45 | 45 | if ((base58'2W' == $match0)) | |
46 | 46 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
47 | 47 | else if ((base58'2T' == $match0)) | |
48 | 48 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
49 | 49 | else throw("Unknown chain") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | let defaultRest2AddressStr = match chain { | |
53 | 53 | case _ => | |
54 | 54 | if ((base58'2W' == $match0)) | |
55 | 55 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
56 | 56 | else if ((base58'2T' == $match0)) | |
57 | 57 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
58 | 58 | else throw("Unknown chain") | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | let defaultRestAddressStr = match chain { | |
62 | 62 | case _ => | |
63 | 63 | if ((base58'2W' == $match0)) | |
64 | 64 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
65 | 65 | else if ((base58'2T' == $match0)) | |
66 | 66 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
67 | 67 | else throw("Unknown chain") | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | let economyContractStr = match chain { | |
71 | 71 | case _ => | |
72 | 72 | if ((base58'2W' == $match0)) | |
73 | 73 | then "3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D" | |
74 | 74 | else if ((base58'2T' == $match0)) | |
75 | 75 | then "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep" | |
76 | 76 | else throw("Unknown chain") | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | let IdxCfgAcres2Dapp = 1 | |
83 | 83 | ||
84 | 84 | let IdxCfgWlgDapp = 2 | |
85 | 85 | ||
86 | 86 | let IdxCfgPuzzlePoolDapp = 4 | |
87 | 87 | ||
88 | 88 | let IdxCfgInvestFundDapp = 5 | |
89 | 89 | ||
90 | 90 | func keyRestCfg () = "%s__restConfig" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyRest2Address () = "%s__rest2Addr" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyRestAddress () = "%s__restAddr" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
100 | 100 | ||
101 | 101 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | let IdxCfgStakingDapp = 1 | |
108 | 108 | ||
109 | 109 | let IdxCfgAcresDapp = 8 | |
110 | 110 | ||
111 | 111 | let restCfg = readRestCfgOrFail(restContract) | |
112 | 112 | ||
113 | 113 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
114 | 114 | ||
115 | 115 | let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp) | |
116 | 116 | ||
117 | 117 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
118 | 118 | ||
119 | 119 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
120 | 120 | ||
121 | 121 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
122 | 122 | ||
123 | 123 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
124 | 124 | ||
125 | 125 | let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp) | |
126 | 126 | ||
127 | 127 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
128 | 128 | ||
129 | 129 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | let wlgAssetIdKey = "wlg_assetId" | |
133 | 133 | ||
134 | 134 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet") | |
135 | 135 | ||
136 | 136 | func keyUserBet (addr) = ("userBet_" + addr) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week)) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week)) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func keyTotalWeekParticipants (week) = ("totalWeekParticipants_" + toString(week)) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func keyNumNFT2Draw (week) = ("numNFT2Draw_" + toString(week)) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func keyNumNFTDrawn (week) = ("numNFTDrawn_" + toString(week)) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func keyWeekWinners (week) = ("weekWinners_" + toString(week)) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func winningBet (day) = { | |
158 | 158 | let b = (day * DAY_BLOCKS) | |
159 | 159 | let h = if ((b > VRF_OFFSET)) | |
160 | 160 | then b | |
161 | 161 | else (b + VRF_OFFSET) | |
162 | 162 | (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4) | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | let ixWlgAmount = 0 | |
167 | 167 | ||
168 | 168 | let ixWlgWlg = 1 | |
169 | 169 | ||
170 | 170 | let ixWlgPrice = 2 | |
171 | 171 | ||
172 | 172 | let ixWlgIssueTime = 8 | |
173 | 173 | ||
174 | 174 | let ixWlgTeamAmLeft = 11 | |
175 | 175 | ||
176 | 176 | let ixWlgTeamAmAvailNow = 12 | |
177 | 177 | ||
178 | 178 | let ixWlgActAmLeft = 15 | |
179 | 179 | ||
180 | 180 | let ixWlgActAmAvailNow = 16 | |
181 | 181 | ||
182 | 182 | let ixWlgAmLeftTotal = 19 | |
183 | 183 | ||
184 | 184 | let ixWlgUserAmAvailNow = 23 | |
185 | 185 | ||
186 | 186 | let ixWlgEffUserTime = 24 | |
187 | 187 | ||
188 | 188 | let ixWlgIssue10Amount = 25 | |
189 | 189 | ||
190 | 190 | let ixWlgMarketingIssue10Amount = 26 | |
191 | 191 | ||
192 | 192 | let ixWlgTeamIssue10Amount = 27 | |
193 | 193 | ||
194 | 194 | let ixWlgUser10part = 28 | |
195 | 195 | ||
196 | 196 | let ixWlgIssue10Time = 29 | |
197 | 197 | ||
198 | 198 | func asInt (v) = match v { | |
199 | 199 | case n: Int => | |
200 | 200 | n | |
201 | 201 | case _ => | |
202 | 202 | throw("fail to cast into Int") | |
203 | 203 | } | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func fixedPoint (val,decimals) = { | |
207 | 207 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
208 | 208 | let lowPart = toString((val % tenPow)) | |
209 | 209 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
210 | 210 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue)) | |
215 | 215 | then throw("maxValue should be > 0") | |
216 | 216 | else { | |
217 | 217 | let randomHash = sha256_16Kb((salt + entropy)) | |
218 | 218 | (toInt(randomHash) % maxValue) | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | let SCALE8 = 100000000 | |
223 | 223 | ||
224 | 224 | let xpLevelScale = 3200 | |
225 | 225 | ||
226 | 226 | let xpLevelRecipPow = 4000 | |
227 | 227 | ||
228 | 228 | let numPointsOnLevelUp = 3 | |
229 | 229 | ||
230 | 230 | let wlgBaseAmountXp = 100000000000 | |
231 | 231 | ||
232 | 232 | func keyUserXP (addr) = ("userXP_" + addr) | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | let xpWlg = 10000 | |
239 | 239 | ||
240 | 240 | func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func levelUp (currLevel,newXP) = { | |
244 | 244 | let newLevel = levelByXP(newXP) | |
245 | 245 | [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))] | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | let M6 = 1000000 | |
250 | 250 | ||
251 | 251 | let M8 = 100000000 | |
252 | 252 | ||
253 | 253 | let MILLION6 = 100000000000000 | |
254 | 254 | ||
255 | 255 | let TEAMSHARE = 200000 | |
256 | 256 | ||
257 | 257 | let ACTIVITYSHARE = 100000 | |
258 | 258 | ||
259 | 259 | let PLAYERSHARE = 400000 | |
260 | 260 | ||
261 | 261 | let YEARMILLIS = 31557600000 | |
262 | 262 | ||
263 | 263 | let DAYMILLIS = 86400000 | |
264 | 264 | ||
265 | 265 | let BANK_FEE = 50000 | |
266 | 266 | ||
267 | 267 | let ch = take(drop(this.bytes, 1), 1) | |
268 | 268 | ||
269 | 269 | let USDT_TVL_CORRECTION = match ch { | |
270 | 270 | case _ => | |
271 | 271 | if ((base58'2W' == $match0)) | |
272 | 272 | then 1208630000 | |
273 | 273 | else if ((base58'2T' == $match0)) | |
274 | 274 | then 0 | |
275 | 275 | else throw("Unknown chain") | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 | let teamAddrKey = "teamAddr" | |
279 | 279 | ||
280 | 280 | let lastTeamTimeKey = "lastClaimedTime_team" | |
281 | 281 | ||
282 | 282 | let teamAmountLeftKey = "teamAmountLeft" | |
283 | 283 | ||
284 | 284 | let lastActivitiesTimeKey = "lastClaimedTime_activities" | |
285 | 285 | ||
286 | 286 | let actAmountLeftKey = "activitiesAmountLeft" | |
287 | 287 | ||
288 | 288 | let stakersAmountLeftKey = "stakersAmountLeft" | |
289 | 289 | ||
290 | 290 | func keyLastClaimedTimeByUserOld (addr) = ("lastClaimedTimeUserOld_" + addr) | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func keyLastWlgTradeLimitByUser (addr) = ("lastWlgLimitUser_" + addr) | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func distributionByPeriod (period) = fraction(MILLION6, (PLAYERSHARE * (period + 1)), (6 * M6)) | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | let wlgIssueTimeKey = "wlg_issueTime" | |
303 | 303 | ||
304 | 304 | let wlgIssuedAmountKey = "wlg_issuedAmount" | |
305 | 305 | ||
306 | 306 | let zbIssuedAmountKey = "zbill_issuedAmount" | |
307 | 307 | ||
308 | 308 | func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | let acresStakedTotalKey = "acresStakedAmountTotal" | |
312 | 312 | ||
313 | 313 | func keyWlgStakedAmountByUser (addr) = ("wlgStakedAmountByUser_" + addr) | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | let wlgStakedTotalKey = "wlgStakedAmountTotal" | |
317 | 317 | ||
318 | 318 | func keyWlgStakedTimeByUser (addr) = ("wlgStakedTimeByUser_" + addr) | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | let dappRest = 0 | |
322 | 322 | ||
323 | 323 | let dappStaking = 1 | |
324 | 324 | ||
325 | 325 | let dappEconomy = 2 | |
326 | 326 | ||
327 | 327 | let dappWlg = 3 | |
328 | 328 | ||
329 | 329 | let dappPuzzle = 4 | |
330 | 330 | ||
331 | 331 | let dappInvestFund = 5 | |
332 | 332 | ||
333 | 333 | let dappAcres = 6 | |
334 | 334 | ||
335 | 335 | func getLands (userAddrStrOrEmpty,stakingContract,acresContract) = { | |
336 | 336 | let props = split(valueOrElse(getString(stakingContract, "resTypesProportions"), "0_0_0_0_0_0"), "_") | |
337 | 337 | func adder (acc,item) = (acc + parseIntValue(item)) | |
338 | 338 | ||
339 | 339 | let totalPieces = { | |
340 | 340 | let $l = props | |
341 | 341 | let $s = size($l) | |
342 | 342 | let $acc0 = 0 | |
343 | 343 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
344 | 344 | then $a | |
345 | 345 | else adder($a, $l[$i]) | |
346 | 346 | ||
347 | 347 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
348 | 348 | then $a | |
349 | 349 | else throw("List size exceeds 6") | |
350 | 350 | ||
351 | 351 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
352 | 352 | } | |
353 | 353 | let userPieces = valueOrElse(getInteger(stakingContract, ("stakedPiecesByOwner_" + userAddrStrOrEmpty)), 0) | |
354 | 354 | let totalAcres = valueOrElse(getInteger(acresContract, acresStakedTotalKey), 0) | |
355 | 355 | let userAcres = valueOrElse(getInteger(acresContract, keyAcresStakedAmountByUser(userAddrStrOrEmpty)), 0) | |
356 | 356 | [totalPieces, userPieces, totalAcres, userAcres] | |
357 | 357 | } | |
358 | 358 | ||
359 | 359 | ||
360 | 360 | let idxTotalPieces = 0 | |
361 | 361 | ||
362 | 362 | let idxUserPieces = 1 | |
363 | 363 | ||
364 | 364 | let idxTotalAcres = 2 | |
365 | 365 | ||
366 | 366 | let idxUserAcres = 3 | |
367 | 367 | ||
368 | 368 | let OLD_STAKING_DEADL = 1733346000000 | |
369 | 369 | ||
370 | 370 | func getWlgStats (userAddrOpt,contracts,usdtId,usdtBalanceCorrection,userProportion6) = { | |
371 | 371 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet") | |
372 | 372 | let economyUsd = assetBalance(contracts[dappEconomy], usdtId) | |
373 | 373 | let restUsd = assetBalance(contracts[dappRest], usdtId) | |
374 | 374 | let wlgUsd = (assetBalance(contracts[dappWlg], usdtId) - usdtBalanceCorrection) | |
375 | 375 | let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId) | |
376 | 376 | let investFndContract = contracts[dappInvestFund] | |
377 | 377 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmountKey), 0)) | |
378 | 378 | let totalFundsUsd = ((economyUsd + wlgUsd) + investFundTotal) | |
379 | 379 | let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet") | |
380 | 380 | let now = lastBlock.timestamp | |
381 | 381 | let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized") | |
382 | 382 | let bankWlgold = assetBalance(contracts[dappStaking], wlgId) | |
383 | 383 | let teamTotal = fraction(MILLION6, TEAMSHARE, M6) | |
384 | 384 | let teamAmountLeft = valueOrElse(getInteger(contracts[dappWlg], teamAmountLeftKey), teamTotal) | |
385 | 385 | let lastTeamTime = valueOrElse(getInteger(contracts[dappWlg], lastTeamTimeKey), issueTime) | |
386 | 386 | let teamAddr = addressFromStringValue(value(getString(contracts[dappWlg], teamAddrKey))) | |
387 | 387 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEARMILLIS)), teamAmountLeft]) | |
388 | 388 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
389 | 389 | let actTotal = fraction(MILLION6, ACTIVITYSHARE, M6) | |
390 | 390 | let actAmountLeft = valueOrElse(getInteger(contracts[dappWlg], actAmountLeftKey), actTotal) | |
391 | 391 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dappWlg], lastActivitiesTimeKey), issueTime) | |
392 | 392 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEARMILLIS)), actAmountLeft]) | |
393 | 393 | let actWlgold = assetBalance(contracts[dappRest], wlgId) | |
394 | 394 | let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUserOld(userAddrOpt)), issueTime) | |
395 | 395 | let lastUserPeriod = ((lastUserTime - issueTime) / YEARMILLIS) | |
396 | 396 | let nowLimited = min([min([now, (issueTime + (3 * YEARMILLIS))]), OLD_STAKING_DEADL]) | |
397 | 397 | let curPeriod = min([((now - issueTime) / YEARMILLIS), 2]) | |
398 | 398 | let eff = getLands(userAddrOpt, contracts[dappStaking], contracts[dappAcres]) | |
399 | 399 | let curPeriodDistribution = distributionByPeriod(curPeriod) | |
400 | 400 | let $t079143 = if ((lastUserPeriod == curPeriod)) | |
401 | 401 | then { | |
402 | 402 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEARMILLIS) | |
403 | 403 | let userPart = fraction(a0, userProportion6, M6) | |
404 | 404 | let effTime = (lastUserTime + fraction((nowLimited - lastUserTime), userProportion6, M6)) | |
405 | 405 | $Tuple3(userPart, a0, effTime) | |
406 | 406 | } | |
407 | 407 | else if ((lastUserPeriod == (curPeriod - 1))) | |
408 | 408 | then { | |
409 | 409 | let a1 = fraction(distributionByPeriod((curPeriod - 1)), ((issueTime + (YEARMILLIS * curPeriod)) - lastUserTime), YEARMILLIS) | |
410 | 410 | let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS) | |
411 | 411 | let avail = (a1 + a0) | |
412 | 412 | let userPart = fraction(avail, userProportion6, M6) | |
413 | 413 | let effTime = if ((a1 >= userPart)) | |
414 | 414 | then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 1)))) | |
415 | 415 | else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, (userPart - a1), curPeriodDistribution)) | |
416 | 416 | $Tuple3(userPart, avail, effTime) | |
417 | 417 | } | |
418 | 418 | else { | |
419 | 419 | let a2 = fraction(distributionByPeriod((curPeriod - 2)), ((issueTime + (YEARMILLIS * (curPeriod - 1))) - lastUserTime), YEARMILLIS) | |
420 | 420 | let a1 = distributionByPeriod((curPeriod - 1)) | |
421 | 421 | let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS) | |
422 | 422 | let avail = ((a2 + a1) + a0) | |
423 | 423 | let userPart = fraction(avail, userProportion6, M6) | |
424 | 424 | let effTime = if ((a2 >= userPart)) | |
425 | 425 | then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 2)))) | |
426 | 426 | else if (((a2 + a1) >= userPart)) | |
427 | 427 | then ((issueTime + (YEARMILLIS * (curPeriod - 1))) + fraction(YEARMILLIS, (userPart - a2), distributionByPeriod((curPeriod - 1)))) | |
428 | 428 | else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, ((userPart - a2) - a1), curPeriodDistribution)) | |
429 | 429 | $Tuple3(userPart, avail, effTime) | |
430 | 430 | } | |
431 | 431 | let userAmount = $t079143._1 | |
432 | 432 | let userAvailable = $t079143._2 | |
433 | 433 | let effLastTime = $t079143._3 | |
434 | 434 | let sLandDailyAmount = fraction(fraction(curPeriodDistribution, DAYMILLIS, YEARMILLIS), 25, eff[idxTotalPieces]) | |
435 | 435 | let amountLeftTotal = valueOrElse(getInteger(contracts[dappWlg], stakersAmountLeftKey), 0) | |
436 | 436 | let userTemp = fraction(userAmount, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres])) | |
437 | 437 | let bankFromUser = fraction(userTemp, BANK_FEE, M6) | |
438 | 438 | let robbedUser = (userTemp - bankFromUser) | |
439 | 439 | let unrobbedUser = fraction(userAvailable, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres])) | |
440 | 440 | [issuedAmount, fraction((totalFundsUsd - USDT_TVL_CORRECTION), M8, issuedAmount), totalFundsUsd, economyUsd, restUsd, wlgUsd, puzzleUsd, issueTime, lastTeamTime, teamTotal, teamAmountLeft, teamAmountAvailableNow, teamWlgold, actTotal, actAmountLeft, actAmountAvailableNow, actWlgold, curPeriod, amountLeftTotal, curPeriodDistribution, lastUserTime, robbedUser, sLandDailyAmount, investFundTotal, unrobbedUser, effLastTime, bankWlgold] | |
441 | 441 | } | |
442 | 442 | ||
443 | 443 | ||
444 | 444 | let M6_ = 1000000 | |
445 | 445 | ||
446 | 446 | let M8_ = 100000000 | |
447 | 447 | ||
448 | 448 | let TEAM_SHARE = 200000 | |
449 | 449 | ||
450 | 450 | let ACTIVITY_SHARE = 100000 | |
451 | 451 | ||
452 | 452 | let PLAYER_SHARE = 400000 | |
453 | 453 | ||
454 | 454 | let YEAR_MILLIS = 31557600000 | |
455 | 455 | ||
456 | 456 | let DAY_MS = 86400000 | |
457 | 457 | ||
458 | 458 | let ISSUE10 = 1000000000 | |
459 | 459 | ||
460 | 460 | let PLAYERS10_SHARE = 800000 | |
461 | 461 | ||
462 | 462 | let MARKETING10_SHARE = 100000 | |
463 | 463 | ||
464 | 464 | let TEAM10_SHARE = 100000 | |
465 | 465 | ||
466 | 466 | let NEW_STAKING_START = 1731279600000 | |
467 | 467 | ||
468 | 468 | let marketingAddrKey = "marketingAddr" | |
469 | 469 | ||
470 | 470 | let teamAdrKey = "teamAddr" | |
471 | 471 | ||
472 | 472 | let lastTeamTimKey = "lastClaimedTime_team" | |
473 | 473 | ||
474 | 474 | let teamAmtLeftKey = "teamAmountLeft" | |
475 | 475 | ||
476 | 476 | let lastActivitiesTimKey = "lastClaimedTime_activities" | |
477 | 477 | ||
478 | 478 | let actAmtLeftKey = "activitiesAmountLeft" | |
479 | 479 | ||
480 | 480 | let stakersAmtLeftKey = "stakersAmountLeft" | |
481 | 481 | ||
482 | 482 | func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
483 | 483 | ||
484 | 484 | ||
485 | 485 | func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_)) | |
486 | 486 | ||
487 | 487 | ||
488 | 488 | let wlgIssue10TimeKey = "wlg_issue10Time" | |
489 | 489 | ||
490 | 490 | let wlgIssueTimKey = "wlg_issueTime" | |
491 | 491 | ||
492 | 492 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
493 | 493 | ||
494 | 494 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
495 | 495 | ||
496 | 496 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
497 | 497 | ||
498 | 498 | ||
499 | 499 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
500 | 500 | ||
501 | 501 | let totalFarmingPowerKey = "totalFarmingPower" | |
502 | 502 | ||
503 | 503 | let dapp2Rest = 0 | |
504 | 504 | ||
505 | 505 | let dapp2Staking = 1 | |
506 | 506 | ||
507 | 507 | let dapp2Wlg = 2 | |
508 | 508 | ||
509 | 509 | let dapp2Puzzle = 3 | |
510 | 510 | ||
511 | 511 | let dapp2InvestFund = 4 | |
512 | 512 | ||
513 | 513 | let DEFAULT_WEEKLY_PRIZES = 5 | |
514 | 514 | ||
515 | 515 | let ACRES_FOR_BET = 100000000 | |
516 | 516 | ||
517 | 517 | let keyNftTotalIssued = "nftTotalIssued" | |
518 | 518 | ||
519 | 519 | let keyNftTotalBurned = "nftTotalBurned" | |
520 | 520 | ||
521 | 521 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
522 | 522 | ||
523 | 523 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
524 | 524 | ||
525 | 525 | ||
526 | 526 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
527 | 527 | ||
528 | 528 | ||
529 | 529 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
530 | 530 | ||
531 | 531 | func getLevelByAcres (acres) = { | |
532 | 532 | let acr = ((acres + 99999999) / M8_) | |
533 | 533 | func checker (acc,item) = if ((item >= acr)) | |
534 | 534 | then acc | |
535 | 535 | else (acc + 1) | |
536 | 536 | ||
537 | 537 | let $l = levelAcres | |
538 | 538 | let $s = size($l) | |
539 | 539 | let $acc0 = 0 | |
540 | 540 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
541 | 541 | then $a | |
542 | 542 | else checker($a, $l[$i]) | |
543 | 543 | ||
544 | 544 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
545 | 545 | then $a | |
546 | 546 | else throw("List size exceeds 10") | |
547 | 547 | ||
548 | 548 | $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) | |
549 | 549 | } | |
550 | 550 | ||
551 | 551 | ||
552 | 552 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
553 | 553 | ||
554 | 554 | ||
555 | 555 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
556 | 556 | let notBonused = getFarmingPowerByAcres(acres) | |
557 | 557 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
558 | 558 | } | |
559 | 559 | ||
560 | 560 | ||
561 | 561 | func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = { | |
562 | 562 | let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0) | |
563 | 563 | let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0) | |
564 | 564 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0) | |
565 | 565 | let $t079143 = getFarmingPowerByAcresAndBonus(userAcres, userBonus) | |
566 | 566 | let userFPbonused = $t079143._1 | |
567 | 567 | let userFPnotBonused = $t079143._2 | |
568 | 568 | [totalFP, userFPbonused, userFPnotBonused, userBonus] | |
569 | 569 | } | |
570 | 570 | ||
571 | 571 | ||
572 | 572 | let idxTotalFP = 0 | |
573 | 573 | ||
574 | 574 | let idxUserFPbonused = 1 | |
575 | 575 | ||
576 | 576 | func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = { | |
577 | 577 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
578 | 578 | let restUsd = assetBalance(contracts[dapp2Rest], usdtId) | |
579 | 579 | let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection) | |
580 | 580 | let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId) | |
581 | 581 | let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId) | |
582 | 582 | let investFndContract = contracts[dapp2InvestFund] | |
583 | 583 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0)) | |
584 | 584 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
585 | 585 | let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet") | |
586 | 586 | let now = lastBlock.timestamp | |
587 | 587 | let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized") | |
588 | 588 | let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId) | |
589 | 589 | let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_) | |
590 | 590 | let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal) | |
591 | 591 | let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime) | |
592 | 592 | let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey))) | |
593 | 593 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft]) | |
594 | 594 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
595 | 595 | let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_) | |
596 | 596 | let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal) | |
597 | 597 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime) | |
598 | 598 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft]) | |
599 | 599 | let actWlgold = assetBalance(contracts[dapp2Rest], wlgId) | |
600 | 600 | let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime) | |
601 | 601 | let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS) | |
602 | 602 | let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))]) | |
603 | 603 | let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2]) | |
604 | 604 | let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking]) | |
605 | 605 | let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod) | |
606 | 606 | let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod)) | |
607 | 607 | let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1))) | |
608 | 608 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS) | |
609 | 609 | let userAvailable = if ((lastUserPeriod == curPeriod)) | |
610 | 610 | then a0 | |
611 | 611 | else if ((lastUserPeriod == (curPeriod - 1))) | |
612 | 612 | then { | |
613 | 613 | let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
614 | 614 | (a1 + a0) | |
615 | 615 | } | |
616 | 616 | else { | |
617 | 617 | let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
618 | 618 | let a1 = distrByPeriod(issuedAmount, (curPeriod - 1)) | |
619 | 619 | ((a2 + a1) + a0) | |
620 | 620 | } | |
621 | 621 | let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0) | |
622 | 622 | let userAmount = if ((eff[idxTotalFP] != 0)) | |
623 | 623 | then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP]) | |
624 | 624 | else 0 | |
625 | 625 | let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START) | |
626 | 626 | let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS) | |
627 | 627 | let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_) | |
628 | 628 | let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_) | |
629 | 629 | let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0]) | |
630 | 630 | let user10part = if ((eff[idxTotalFP] != 0)) | |
631 | 631 | then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_) | |
632 | 632 | else 0 | |
633 | 633 | let newIssue10Time = max([NEW_STAKING_START, now]) | |
634 | 634 | let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0) | |
635 | 635 | let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0) | |
636 | 636 | let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0) | |
637 | 637 | let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0) | |
638 | 638 | let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0) | |
639 | 639 | [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] | |
640 | 640 | } | |
641 | 641 | ||
642 | 642 | ||
643 | 643 | let profitAddrKey = "profitAddr" | |
644 | 644 | ||
645 | 645 | let stakersAmountPaidTotalKey = "stakersAmountPaidTotal" | |
646 | 646 | ||
647 | 647 | func keyStakersAmountPaidUser (addr) = ("stakersAmountPaidUser_" + addr) | |
648 | 648 | ||
649 | 649 | ||
650 | 650 | func prolog2 () = asInt(reentrantInvoke(acres2Contract, "saveLastTx", nil, nil)) | |
651 | 651 | ||
652 | 652 | ||
653 | 653 | func getSwapLimitWlgold (addr) = { | |
654 | 654 | let lastTime = valueOrElse(getInteger(keyLastWlgTradeTimeByUser(addr)), 0) | |
655 | 655 | let defaultLimit = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmountByUser(addr)), 0) | |
656 | 656 | let lastLimitLeft = valueOrElse(getInteger(keyLastWlgTradeLimitByUser(addr)), defaultLimit) | |
657 | 657 | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (lastBlock.timestamp - lastTime), DAY_MILLIS)) | |
658 | 658 | min([currentLimit, defaultLimit]) | |
659 | 659 | } | |
660 | 660 | ||
661 | 661 | ||
662 | 662 | let idxWlgTeamAmLeft = 10 | |
663 | 663 | ||
664 | 664 | let idxWlgTeamAmAvailNow = 11 | |
665 | 665 | ||
666 | 666 | let idxWlgActAmLeft = 14 | |
667 | 667 | ||
668 | 668 | let idxWlgActAmAvailNow = 15 | |
669 | 669 | ||
670 | 670 | let idxWlgAmLeftTotal = 18 | |
671 | 671 | ||
672 | - | let idxWlgUserAmAvailNow = 21 | |
673 | - | ||
674 | 672 | let idxWlgUserTotalAvail = 24 | |
675 | 673 | ||
676 | 674 | let idxWlgEffUserTime = 25 | |
677 | 675 | ||
678 | 676 | func claimInternal (addr) = { | |
679 | 677 | let caller = addressFromStringValue(addr) | |
680 | 678 | let economyContract = addressFromStringValue(economyContractStr) | |
681 | 679 | let curStats = getWlgStats(addr, [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract, acresContract], usdtAssetId, 0, MULT6) | |
682 | 680 | let now = lastBlock.timestamp | |
683 | 681 | let teamAmountLeft = curStats[idxWlgTeamAmLeft] | |
684 | 682 | let teamAmount = curStats[idxWlgTeamAmAvailNow] | |
685 | 683 | let actAmountLeft = curStats[idxWlgActAmLeft] | |
686 | 684 | let actAmount = curStats[idxWlgActAmAvailNow] | |
687 | - | let userAmount = curStats[ | |
685 | + | let userAmount = curStats[idxWlgUserTotalAvail] | |
688 | 686 | let userKey = keyStakersAmountPaidUser(addr) | |
689 | 687 | let userTotal = curStats[idxWlgUserTotalAvail] | |
690 | 688 | let userEffTime = curStats[idxWlgEffUserTime] | |
691 | 689 | $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(teamAddrKey))), teamAmount, wlgAssetId), ScriptTransfer(restContract, actAmount, wlgAssetId), IntegerEntry(userKey, (valueOrElse(getInteger(userKey), 0) + userAmount)), IntegerEntry(stakersAmountPaidTotalKey, (valueOrElse(getInteger(stakersAmountPaidTotalKey), 0) + userTotal)), IntegerEntry(stakersAmountLeftKey, (curStats[idxWlgAmLeftTotal] - userTotal)), IntegerEntry(teamAmountLeftKey, (teamAmountLeft - teamAmount)), IntegerEntry(lastTeamTimeKey, now), IntegerEntry(actAmountLeftKey, (actAmountLeft - actAmount)), IntegerEntry(lastActivitiesTimeKey, now), IntegerEntry(keyLastClaimedTimeByUserOld(addr), userEffTime)], userAmount) | |
692 | 690 | } | |
693 | 691 | ||
694 | 692 | ||
695 | 693 | func claimInternal2 (addr) = { | |
696 | 694 | let curStats = getWlgStats2(addr, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
697 | 695 | let userTimeKey = keyLastClaimTimeByUser(addr) | |
698 | 696 | let lastUserTime = valueOrElse(getInteger(userTimeKey), 0) | |
699 | 697 | let userEffTime = curStats[ixWlgEffUserTime] | |
700 | 698 | if ((lastUserTime == userEffTime)) | |
701 | 699 | then $Tuple2(nil, 0) | |
702 | 700 | else { | |
703 | 701 | let now = lastBlock.timestamp | |
704 | 702 | let issueTime = curStats[ixWlgIssueTime] | |
705 | 703 | let teamAmountLeft = curStats[ixWlgTeamAmLeft] | |
706 | 704 | let teamAmount = (curStats[ixWlgTeamAmAvailNow] + curStats[ixWlgTeamIssue10Amount]) | |
707 | 705 | let teamTransfer = if ((teamAmount > 0)) | |
708 | 706 | then [ScriptTransfer(addressFromStringValue(value(getString(teamAddrKey))), teamAmount, wlgAssetId)] | |
709 | 707 | else nil | |
710 | 708 | let actAmountLeft = curStats[ixWlgActAmLeft] | |
711 | 709 | let actAmount = curStats[ixWlgActAmAvailNow] | |
712 | 710 | let actTransfer = if ((actAmount > 0)) | |
713 | 711 | then [ScriptTransfer(restContract, actAmount, wlgAssetId)] | |
714 | 712 | else nil | |
715 | 713 | let marketingAmount = curStats[ixWlgMarketingIssue10Amount] | |
716 | 714 | let marketingTransfer = if ((marketingAmount > 0)) | |
717 | 715 | then [ScriptTransfer(addressFromStringValue(value(getString(marketingAddrKey))), marketingAmount, wlgAssetId)] | |
718 | 716 | else nil | |
719 | 717 | let userAmount = curStats[ixWlgUserAmAvailNow] | |
720 | 718 | let userKey = keyStakersAmountPaidUser(addr) | |
721 | 719 | let userTotal = (userAmount + curStats[ixWlgUser10part]) | |
722 | 720 | let issued10Amount = curStats[ixWlgIssue10Amount] | |
723 | 721 | $Tuple2(((([Reissue(wlgAssetId, issued10Amount, true), IntegerEntry(wlgIssuedAmountKey, (curStats[ixWlgAmount] + issued10Amount)), IntegerEntry(wlgIssue10TimeKey, curStats[ixWlgIssue10Time]), IntegerEntry(userKey, (valueOrElse(getInteger(userKey), 0) + userAmount)), IntegerEntry(stakersAmountPaidTotalKey, (valueOrElse(getInteger(stakersAmountPaidTotalKey), 0) + userAmount)), IntegerEntry(stakersAmountLeftKey, (curStats[ixWlgAmLeftTotal] - userAmount)), IntegerEntry(teamAmountLeftKey, ((teamAmountLeft - teamAmount) + curStats[ixWlgTeamIssue10Amount])), IntegerEntry(lastTeamTimeKey, now), IntegerEntry(actAmountLeftKey, (actAmountLeft - actAmount)), IntegerEntry(lastActivitiesTimeKey, now), IntegerEntry(userTimeKey, userEffTime)] ++ teamTransfer) ++ actTransfer) ++ marketingTransfer), userTotal) | |
724 | 722 | } | |
725 | 723 | } | |
726 | 724 | ||
727 | 725 | ||
728 | 726 | func takeXpInternal (addr,delta) = { | |
729 | 727 | let now = lastBlock.timestamp | |
730 | 728 | let timeKey = keyWlgStakedTimeByUser(addr) | |
731 | 729 | let amountKey = keyWlgStakedAmountByUser(addr) | |
732 | 730 | let lastTime = valueOrElse(getInteger(timeKey), 0) | |
733 | 731 | let oldUser = valueOrElse(getInteger(amountKey), 0) | |
734 | 732 | let oldTotal = valueOrElse(getInteger(wlgStakedTotalKey), 0) | |
735 | 733 | let xp = fraction(fraction(xpWlg, oldUser, wlgBaseAmountXp), (lastTime - now), DAYMILLIS) | |
736 | 734 | $Tuple3([IntegerEntry(timeKey, now), IntegerEntry(amountKey, (oldUser + delta)), IntegerEntry(wlgStakedTotalKey, (oldTotal + delta))], xp, oldUser) | |
737 | 735 | } | |
738 | 736 | ||
739 | 737 | ||
740 | 738 | func openChestInternal (addr) = { | |
741 | 739 | let week = (height / WEEK_BLOCKS) | |
742 | 740 | let drawWeek = (week - 1) | |
743 | 741 | let numPrizes = valueOrElse(getInteger(keyNumNFT2Draw(drawWeek)), DEFAULT_WEEKLY_PRIZES) | |
744 | 742 | let prizesDrawn = valueOrElse(getInteger(keyNumNFTDrawn(drawWeek)), 0) | |
745 | 743 | let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0) | |
746 | 744 | if ((0 >= userTickets)) | |
747 | 745 | then $Tuple2(nil, unit) | |
748 | 746 | else { | |
749 | 747 | let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0) | |
750 | 748 | if ((0 >= weekTickets)) | |
751 | 749 | then $Tuple2([DeleteEntry(keyUserWeekTickets(addr, drawWeek))], unit) | |
752 | 750 | else { | |
753 | 751 | let entropy = value(value(blockInfoByHeight((week * WEEK_BLOCKS))).vrf) | |
754 | 752 | let salt = fromBase58String(split(valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
755 | 753 | let random = getRandomNumber(weekTickets, salt, entropy) | |
756 | 754 | if (((userTickets * numPrizes) > random)) | |
757 | 755 | then { | |
758 | 756 | let issueResult = invoke(acres2Contract, "issuePickC1", [addr], nil) | |
759 | 757 | let winners = getString(keyWeekWinners(drawWeek)) | |
760 | 758 | let newWinners = if (isDefined(winners)) | |
761 | 759 | then ((value(winners) + "_") + addr) | |
762 | 760 | else addr | |
763 | 761 | $Tuple2([IntegerEntry(keyNumNFTDrawn(drawWeek), (prizesDrawn + 1)), DeleteEntry(keyUserWeekTickets(addr, drawWeek)), StringEntry(keyWeekWinners(drawWeek), newWinners)], issueResult) | |
764 | 762 | } | |
765 | 763 | else { | |
766 | 764 | let random1 = (getRandomNumber(9, (base58'29' + salt), entropy) + 1) | |
767 | 765 | let consTickets = fraction(userTickets, random1, 10) | |
768 | 766 | let ticketsKey = keyUserWeekTickets(addr, week) | |
769 | 767 | let oldTickets = valueOrElse(getInteger(ticketsKey), 0) | |
770 | 768 | $Tuple2(((if ((consTickets == 0)) | |
771 | 769 | then nil | |
772 | 770 | else { | |
773 | 771 | let commonActions = [IntegerEntry(keyTotalWeekTickets(week), (valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) + consTickets)), IntegerEntry(ticketsKey, (oldTickets + consTickets))] | |
774 | 772 | if ((oldTickets > 0)) | |
775 | 773 | then commonActions | |
776 | 774 | else (commonActions :+ IntegerEntry(keyTotalWeekParticipants(week), (valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) + 1))) | |
777 | 775 | }) :+ DeleteEntry(keyUserWeekTickets(addr, drawWeek))), consTickets) | |
778 | 776 | } | |
779 | 777 | } | |
780 | 778 | } | |
781 | 779 | } | |
782 | 780 | ||
783 | 781 | ||
784 | 782 | func claimTicketsInternal (addr,userBetStr) = { | |
785 | 783 | let week = (height / WEEK_BLOCKS) | |
786 | 784 | let ticketsKey = keyUserWeekTickets(addr, week) | |
787 | 785 | let dayBet = split(userBetStr, "_") | |
788 | 786 | let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) | |
789 | 787 | let oldTickets = valueOrElse(getInteger(ticketsKey), 0) | |
790 | 788 | let deltaTickets = if ((winningBet(parseIntValue(dayBet[0])) == parseIntValue(dayBet[1]))) | |
791 | 789 | then 1 | |
792 | 790 | else 0 | |
793 | 791 | let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) | |
794 | 792 | let updateParticipants = if (if ((oldTickets == 0)) | |
795 | 793 | then (deltaTickets == 1) | |
796 | 794 | else false) | |
797 | 795 | then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))] | |
798 | 796 | else nil | |
799 | 797 | $Tuple2(if ((deltaTickets == 0)) | |
800 | 798 | then nil | |
801 | 799 | else ((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets) | |
802 | 800 | } | |
803 | 801 | ||
804 | 802 | ||
805 | 803 | @Callable(i) | |
806 | 804 | func constructorV1 (restAddr,marketingAddr,teamAddr,profitAddr) = if ((i.caller != this)) | |
807 | 805 | then throw("Permission denied") | |
808 | 806 | else if (isDefined(getBinary(wlgAssetIdKey))) | |
809 | 807 | then throw("Already initialized") | |
810 | 808 | else { | |
811 | 809 | let issuedAmount = MILLION6 | |
812 | 810 | let issue = Issue("WLGOLD", "WavesLands Gold investment token", issuedAmount, 8, true, unit, 0) | |
813 | 811 | let assetId = calculateAssetId(issue) | |
814 | 812 | [issue, IntegerEntry(wlgIssueTimeKey, lastBlock.timestamp), IntegerEntry(wlgIssuedAmountKey, issuedAmount), IntegerEntry(stakersAmountPaidTotalKey, 0), IntegerEntry(stakersAmountLeftKey, fraction(MILLION6, PLAYERSHARE, MULT6)), BinaryEntry(wlgAssetIdKey, assetId), StringEntry(keyRestAddress(), restAddr), StringEntry(marketingAddrKey, marketingAddr), StringEntry(teamAddrKey, teamAddr), StringEntry(profitAddrKey, profitAddr)] | |
815 | 813 | } | |
816 | 814 | ||
817 | 815 | ||
818 | 816 | ||
819 | 817 | @Callable(i) | |
820 | 818 | func constructorV2 (rest2Addr) = if ((i.caller != this)) | |
821 | 819 | then throw("Permission denied") | |
822 | 820 | else [StringEntry(keyRest2Address(), rest2Addr)] | |
823 | 821 | ||
824 | 822 | ||
825 | 823 | ||
826 | 824 | @Callable(i) | |
827 | 825 | func buyWlg (minToReceive) = { | |
828 | 826 | let prologResult = prolog2() | |
829 | 827 | if ((prologResult == prologResult)) | |
830 | 828 | then if ((size(i.payments) != 1)) | |
831 | 829 | then throw("exactly 1 payment must be attached") | |
832 | 830 | else { | |
833 | 831 | let pmt = i.payments[0] | |
834 | 832 | let usdtAmt = pmt.amount | |
835 | 833 | if (if (!(isDefined(pmt.assetId))) | |
836 | 834 | then true | |
837 | 835 | else (value(pmt.assetId) != usdtAssetId)) | |
838 | 836 | then throw("USDT payments only!") | |
839 | 837 | else { | |
840 | 838 | let caller = i.caller | |
841 | 839 | let addr = toString(caller) | |
842 | 840 | if ((MINSHOPPAYMENT > usdtAmt)) | |
843 | 841 | then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT")) | |
844 | 842 | else { | |
845 | 843 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt) | |
846 | 844 | let curWlgAmount = curStats[ixWlgAmount] | |
847 | 845 | let wlgPrice = curStats[ixWlgPrice] | |
848 | 846 | let buyPrice = fraction(wlgPrice, 6, 5, CEILING) | |
849 | 847 | let wlgAmount = fraction(usdtAmt, MULT8, buyPrice) | |
850 | 848 | let maxWlg = getSwapLimitWlgold(addr) | |
851 | 849 | if ((wlgAmount > maxWlg)) | |
852 | 850 | then throw((("You can get max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment")) | |
853 | 851 | else if ((minToReceive > wlgAmount)) | |
854 | 852 | then throw("Price changed during operation, please try again") | |
855 | 853 | else { | |
856 | 854 | let profitAmount = (usdtAmt / 6) | |
857 | 855 | $Tuple2([Reissue(wlgAssetId, wlgAmount, true), IntegerEntry(wlgIssuedAmountKey, (curWlgAmount + wlgAmount)), IntegerEntry(keyLastWlgTradeTimeByUser(addr), lastBlock.timestamp), IntegerEntry(keyLastWlgTradeLimitByUser(addr), (maxWlg - wlgAmount)), ScriptTransfer(addressFromStringValue(value(getString(profitAddrKey))), profitAmount, usdtAssetId), ScriptTransfer(caller, wlgAmount, wlgAssetId)], prologResult) | |
858 | 856 | } | |
859 | 857 | } | |
860 | 858 | } | |
861 | 859 | } | |
862 | 860 | else throw("Strict value is not equal to itself.") | |
863 | 861 | } | |
864 | 862 | ||
865 | 863 | ||
866 | 864 | ||
867 | 865 | @Callable(i) | |
868 | 866 | func buyWlgREADONLY (address,usdtAmt) = { | |
869 | 867 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt) | |
870 | 868 | let wlgPrice = curStats[ixWlgPrice] | |
871 | 869 | let buyPrice = fraction(wlgPrice, 6, 5, CEILING) | |
872 | 870 | let wlgAmount = fraction(usdtAmt, MULT8, buyPrice) | |
873 | 871 | let maxWlg = getSwapLimitWlgold(address) | |
874 | 872 | let maxUsdt = fraction(maxWlg, buyPrice, MULT8) | |
875 | 873 | let profitAmount = (usdtAmt / 6) | |
876 | 874 | $Tuple2(nil, [wlgAmount, MINSHOPPAYMENT, maxUsdt, profitAmount]) | |
877 | 875 | } | |
878 | 876 | ||
879 | 877 | ||
880 | 878 | ||
881 | 879 | @Callable(i) | |
882 | 880 | func sellWlg (minAmount) = { | |
883 | 881 | let prologResult = prolog2() | |
884 | 882 | if ((prologResult == prologResult)) | |
885 | 883 | then if ((size(i.payments) != 1)) | |
886 | 884 | then throw("exactly 1 payment must be attached") | |
887 | 885 | else { | |
888 | 886 | let pmt = i.payments[0] | |
889 | 887 | let wlgAmt = pmt.amount | |
890 | 888 | let caller = i.caller | |
891 | 889 | let addr = toString(caller) | |
892 | 890 | let maxWlg = getSwapLimitWlgold(addr) | |
893 | 891 | if ((wlgAmt > maxWlg)) | |
894 | 892 | then throw((("You can spend max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment")) | |
895 | 893 | else if (if (!(isDefined(pmt.assetId))) | |
896 | 894 | then true | |
897 | 895 | else (value(pmt.assetId) != wlgAssetId)) | |
898 | 896 | then throw("WLGOLD payments only!") | |
899 | 897 | else { | |
900 | 898 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
901 | 899 | let curWlgAmount = curStats[ixWlgAmount] | |
902 | 900 | let sellPrice = (curStats[ixWlgPrice] / 2) | |
903 | 901 | let usdtAmt = fraction(wlgAmt, sellPrice, MULT8) | |
904 | 902 | if ((MINSHOPPAYMENT > usdtAmt)) | |
905 | 903 | then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT")) | |
906 | 904 | else if ((minAmount > usdtAmt)) | |
907 | 905 | then throw("Price changed during operation, please try again") | |
908 | 906 | else { | |
909 | 907 | let profitAmount = (usdtAmt / 5) | |
910 | 908 | $Tuple2([Burn(wlgAssetId, wlgAmt), IntegerEntry(wlgIssuedAmountKey, (curWlgAmount - wlgAmt)), IntegerEntry(keyLastWlgTradeTimeByUser(addr), lastBlock.timestamp), IntegerEntry(keyLastWlgTradeLimitByUser(addr), (maxWlg - wlgAmt)), ScriptTransfer(addressFromStringValue(value(getString(profitAddrKey))), profitAmount, usdtAssetId), ScriptTransfer(caller, usdtAmt, usdtAssetId)], prologResult) | |
911 | 909 | } | |
912 | 910 | } | |
913 | 911 | } | |
914 | 912 | else throw("Strict value is not equal to itself.") | |
915 | 913 | } | |
916 | 914 | ||
917 | 915 | ||
918 | 916 | ||
919 | 917 | @Callable(i) | |
920 | 918 | func sellWlgREADONLY (address,wlgAmt) = { | |
921 | 919 | let maxWlg = getSwapLimitWlgold(address) | |
922 | 920 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
923 | 921 | let sellPrice = (curStats[ixWlgPrice] / 2) | |
924 | 922 | let usdtAmt = fraction(wlgAmt, sellPrice, MULT8) | |
925 | 923 | let minWlg = fraction(MINSHOPPAYMENT, MULT8, sellPrice) | |
926 | 924 | let profitAmount = (usdtAmt / 5) | |
927 | 925 | $Tuple2(nil, [usdtAmt, minWlg, maxWlg, profitAmount]) | |
928 | 926 | } | |
929 | 927 | ||
930 | 928 | ||
931 | 929 | ||
932 | 930 | @Callable(i) | |
933 | 931 | func claim () = { | |
934 | 932 | let prologResult = prolog2() | |
935 | 933 | if ((prologResult == prologResult)) | |
936 | 934 | then if ((size(i.payments) != 0)) | |
937 | 935 | then throw("No payments required") | |
938 | 936 | else { | |
939 | 937 | let $t01640016469 = claimInternal2(toString(i.caller)) | |
940 | 938 | let actions = $t01640016469._1 | |
941 | 939 | let wlgClaimedAmount = $t01640016469._2 | |
942 | 940 | $Tuple2((actions :+ ScriptTransfer(i.caller, wlgClaimedAmount, wlgAssetId)), prologResult) | |
943 | 941 | } | |
944 | 942 | else throw("Strict value is not equal to itself.") | |
945 | 943 | } | |
946 | 944 | ||
947 | 945 | ||
948 | 946 | ||
949 | 947 | @Callable(i) | |
950 | 948 | func onStakeUnstakeLand (addr) = if (if (if ((i.caller != stakingContract)) | |
951 | 949 | then (i.caller != acresContract) | |
952 | 950 | else false) | |
953 | 951 | then (i.caller != acres2Contract) | |
954 | 952 | else false) | |
955 | 953 | then throw("Permission denied") | |
956 | 954 | else { | |
957 | 955 | let $t01678916846 = claimInternal2(addr) | |
958 | 956 | if (($t01678916846 == $t01678916846)) | |
959 | 957 | then { | |
960 | 958 | let wlgClaimedAmount = $t01678916846._2 | |
961 | 959 | let actions = $t01678916846._1 | |
962 | 960 | $Tuple2(if ((wlgClaimedAmount > 0)) | |
963 | 961 | then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId)) | |
964 | 962 | else actions, wlgClaimedAmount) | |
965 | 963 | } | |
966 | 964 | else throw("Strict value is not equal to itself.") | |
967 | 965 | } | |
968 | 966 | ||
969 | 967 | ||
970 | 968 | ||
971 | 969 | @Callable(i) | |
972 | 970 | func onStakeUnstakeLandOld (addr) = if (if (if ((i.caller != stakingContract)) | |
973 | 971 | then (i.caller != acresContract) | |
974 | 972 | else false) | |
975 | 973 | then (i.caller != acres2Contract) | |
976 | 974 | else false) | |
977 | 975 | then throw("Permission denied") | |
978 | 976 | else { | |
979 | 977 | let $t01720317259 = claimInternal(addr) | |
980 | 978 | if (($t01720317259 == $t01720317259)) | |
981 | 979 | then { | |
982 | 980 | let wlgClaimedAmount = $t01720317259._2 | |
983 | 981 | let actions = $t01720317259._1 | |
984 | 982 | $Tuple2(if ((wlgClaimedAmount > 0)) | |
985 | 983 | then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId)) | |
986 | 984 | else nil, wlgClaimedAmount) | |
987 | 985 | } | |
988 | 986 | else throw("Strict value is not equal to itself.") | |
989 | 987 | } | |
990 | 988 | ||
991 | 989 | ||
992 | 990 | ||
993 | 991 | @Callable(i) | |
994 | 992 | func burnWlgold (wlgAmt) = if ((i.caller != acres2Contract)) | |
995 | 993 | then throw("Permission denied") | |
996 | 994 | else { | |
997 | 995 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
998 | 996 | if ((wlgAmt > curStats[ixWlgWlg])) | |
999 | 997 | then throw(((("Only " + fixedPoint(curStats[ixWlgWlg], 8)) + " WLGOLD left on contract, can't burn ") + fixedPoint(wlgAmt, 8))) | |
1000 | 998 | else { | |
1001 | 999 | let wlgAmountLeft = (curStats[ixWlgAmount] - wlgAmt) | |
1002 | 1000 | $Tuple2([Burn(wlgAssetId, wlgAmt), IntegerEntry(wlgIssuedAmountKey, wlgAmountLeft)], wlgAmountLeft) | |
1003 | 1001 | } | |
1004 | 1002 | } | |
1005 | 1003 | ||
1006 | 1004 | ||
1007 | 1005 | ||
1008 | 1006 | @Callable(i) | |
1009 | 1007 | func betForTicket (bet) = { | |
1010 | 1008 | let prologResult = prolog2() | |
1011 | 1009 | if ((prologResult == prologResult)) | |
1012 | 1010 | then if ((size(i.payments) != 0)) | |
1013 | 1011 | then throw("No payments required") | |
1014 | 1012 | else { | |
1015 | 1013 | let addr = toString(i.caller) | |
1016 | 1014 | let drawWeek = ((height / WEEK_BLOCKS) - 1) | |
1017 | 1015 | let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0) | |
1018 | 1016 | let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0) | |
1019 | 1017 | if (if ((userTickets > 0)) | |
1020 | 1018 | then (weekTickets > 0) | |
1021 | 1019 | else false) | |
1022 | 1020 | then throw("Please open the chest first") | |
1023 | 1021 | else if (((bet / 4) != 0)) | |
1024 | 1022 | then throw("Invalid bet: should be 0..3") | |
1025 | 1023 | else { | |
1026 | 1024 | let moment = (height % DAY_BLOCKS) | |
1027 | 1025 | if ((moment > (DAY_BLOCKS - 3))) | |
1028 | 1026 | then throw((("Cannot bet: the day is almost ended, please wait " + toString((DAY_BLOCKS - moment))) + " blocks")) | |
1029 | 1027 | else { | |
1030 | 1028 | let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(addr)), 0) | |
1031 | 1029 | if ((ACRES_FOR_BET > stakedAcres)) | |
1032 | 1030 | then throw((("You need to stake at least " + fixedPoint(ACRES_FOR_BET, 8)) + " ACRES to bet")) | |
1033 | 1031 | else { | |
1034 | 1032 | let tomorrow = ((height / DAY_BLOCKS) + 1) | |
1035 | 1033 | let betKey = keyUserBet(addr) | |
1036 | 1034 | let oldUserBetStr = getString(betKey) | |
1037 | 1035 | let newBetEntry = StringEntry(betKey, ((toString(tomorrow) + "_") + toString(bet))) | |
1038 | 1036 | if (isDefined(oldUserBetStr)) | |
1039 | 1037 | then { | |
1040 | 1038 | let userBet = value(oldUserBetStr) | |
1041 | 1039 | if ((split(userBet, "_")[0] == toString(tomorrow))) | |
1042 | 1040 | then throw("You already bet for tomorrow") | |
1043 | 1041 | else { | |
1044 | 1042 | let r = claimTicketsInternal(addr, userBet) | |
1045 | 1043 | $Tuple2((r._1 :+ newBetEntry), r._2) | |
1046 | 1044 | } | |
1047 | 1045 | } | |
1048 | 1046 | else $Tuple2([newBetEntry], 0) | |
1049 | 1047 | } | |
1050 | 1048 | } | |
1051 | 1049 | } | |
1052 | 1050 | } | |
1053 | 1051 | else throw("Strict value is not equal to itself.") | |
1054 | 1052 | } | |
1055 | 1053 | ||
1056 | 1054 | ||
1057 | 1055 | ||
1058 | 1056 | @Callable(i) | |
1059 | 1057 | func takeWlgXp (addr) = if ((i.caller != stakingContract)) | |
1060 | 1058 | then throw("Permission denied") | |
1061 | 1059 | else { | |
1062 | 1060 | let $t01986119904 = takeXpInternal(addr, 0) | |
1063 | 1061 | let actions = $t01986119904._1 | |
1064 | 1062 | let xp = $t01986119904._2 | |
1065 | 1063 | $Tuple2(actions, xp) | |
1066 | 1064 | } | |
1067 | 1065 | ||
1068 | 1066 | ||
1069 | 1067 | ||
1070 | 1068 | @Callable(i) | |
1071 | 1069 | func checkWlgXpREADONLY (addr) = { | |
1072 | 1070 | let $t01998120029 = takeXpInternal(addr, 0) | |
1073 | 1071 | let ignored = $t01998120029._1 | |
1074 | 1072 | let deltaXP = $t01998120029._2 | |
1075 | 1073 | let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP) | |
1076 | 1074 | let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP) | |
1077 | 1075 | $Tuple2(nil, (lvlPoints :+ newXP)) | |
1078 | 1076 | } | |
1079 | 1077 | ||
1080 | 1078 | ||
1081 | 1079 | ||
1082 | 1080 | @Callable(i) | |
1083 | 1081 | func setNumPrizes (numPrizes) = if ((i.caller != this)) | |
1084 | 1082 | then throw("Permission denied") | |
1085 | 1083 | else { | |
1086 | 1084 | let week = (height / WEEK_BLOCKS) | |
1087 | 1085 | $Tuple2([IntegerEntry(keyNumNFT2Draw(week), numPrizes)], numPrizes) | |
1088 | 1086 | } | |
1089 | 1087 | ||
1090 | 1088 | ||
1091 | 1089 | ||
1092 | 1090 | @Callable(i) | |
1093 | 1091 | func openChest () = { | |
1094 | 1092 | let prologResult = prolog2() | |
1095 | 1093 | if ((prologResult == prologResult)) | |
1096 | 1094 | then if ((size(i.payments) != 0)) | |
1097 | 1095 | then throw("No payments required") | |
1098 | 1096 | else { | |
1099 | 1097 | let drawWeek = ((height / WEEK_BLOCKS) - 1) | |
1100 | 1098 | let addr = toString(i.caller) | |
1101 | 1099 | let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0) | |
1102 | 1100 | if ((0 >= userTickets)) | |
1103 | 1101 | then throw("No gems to open the chest") | |
1104 | 1102 | else openChestInternal(addr) | |
1105 | 1103 | } | |
1106 | 1104 | else throw("Strict value is not equal to itself.") | |
1107 | 1105 | } | |
1108 | 1106 | ||
1109 | 1107 | ||
1110 | 1108 | ||
1111 | 1109 | @Callable(i) | |
1112 | 1110 | func addGemsFor (addr,deltaTickets) = if ((i.caller != this)) | |
1113 | 1111 | then throw("Permission denied") | |
1114 | 1112 | else { | |
1115 | 1113 | let week = (height / WEEK_BLOCKS) | |
1116 | 1114 | let ticketsKey = keyUserWeekTickets(addr, week) | |
1117 | 1115 | let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) | |
1118 | 1116 | let oldTickets = valueOrElse(getInteger(ticketsKey), 0) | |
1119 | 1117 | let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) | |
1120 | 1118 | let updateParticipants = if (if ((oldTickets == 0)) | |
1121 | 1119 | then (deltaTickets == 1) | |
1122 | 1120 | else false) | |
1123 | 1121 | then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))] | |
1124 | 1122 | else nil | |
1125 | 1123 | $Tuple2(((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets) | |
1126 | 1124 | } | |
1127 | 1125 | ||
1128 | 1126 |
github/deemru/w8io/169f3d6 103.60 ms ◑