tx · EkigtXR54sN3P2SpugWLUV7EeoMQYcb1MXtfaJsCMWUr 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy: -0.03500000 Waves 2024.12.04 13:21 [3399781] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves
{ "type": 13, "id": "EkigtXR54sN3P2SpugWLUV7EeoMQYcb1MXtfaJsCMWUr", "fee": 3500000, "feeAssetId": null, "timestamp": 1733307726434, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "3rW1KRnzLb9VMwpyJSqUb9Sz4apQuit6RSqRm8T2HQfGwVB2xhL9EgGDnmxa4d1RcZ2ZiN449YMJmhJdmehRb1gd" ], "script": "base64:BgJOCAISBgoECAgICBIDCgEIEgMKAQESBAoCCAESAwoBARIECgIIARIAEgQKAggEEgMKAQESAwoBARIDCgEIEgMKAQgSAwoBARIAEgQKAggBuAEAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDgAgMLXLwAOTUlOU0hPUFBBWU1FTlQAoI0GAApEQVlfTUlMTElTAIC4mSkABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAApEQVlfQkxPQ0tTBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAKALAwkAAAIBAVQFByRtYXRjaDAAPAkAAgECDVVua25vd24gY2hhaW4AC1dFRUtfQkxPQ0tTBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAOBOAwkAAAIBAVQFByRtYXRjaDAAtAEJAAIBAg1Vbmtub3duIGNoYWluAApWUkZfT0ZGU0VUBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAAADCQAAAgEBVAUHJG1hdGNoMACQ+UUJAAIBAg1Vbmtub3duIGNoY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cGFudHMDAwkAAAIFCm9sZFRpY2tldHMAAAkAAAIFDGRlbHRhVGlja2V0cwABBwkAzAgCCQEMSW50ZWdlckVudHJ5AgkBGGtleVRvdGFsV2Vla1BhcnRpY2lwYW50cwEFBHdlZWsJAGQCBQ9vbGRQYXJ0aWNpcGFudHMAAQUDbmlsBQNuaWwJAJQKAgkAzQgCCQDNCAIFEnVwZGF0ZVBhcnRpY2lwYW50cwkBDEludGVnZXJFbnRyeQIFCnRpY2tldHNLZXkJAGQCBQpvbGRUaWNrZXRzBQxkZWx0YVRpY2tldHMJAQxJbnRlZ2VyRW50cnkCCQETa2V5VG90YWxXZWVrVGlja2V0cwEFBHdlZWsJAGQCBQ9vbGRUb3RhbFRpY2tldHMFDGRlbHRhVGlja2V0cwUMZGVsdGFUaWNrZXRzALKwxgM=", "height": 3399781, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DjvJTxECEqNT2eT1T1BYXAFRmrwEgFHFQoaR7up1QfP6 Next: 3FvJxmJR9sgBtD197FaZNXvGHBau9GFUq8weBbWd2LC4 Diff:
Old | New | Differences | |
---|---|---|---|
365 | 365 | ||
366 | 366 | let idxUserAcres = 3 | |
367 | 367 | ||
368 | + | let OLD_STAKING_DEADL = 1733335200000 | |
369 | + | ||
368 | 370 | func getWlgStats (userAddrOpt,contracts,usdtId,usdtBalanceCorrection,userProportion6) = { | |
369 | 371 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet") | |
370 | 372 | let economyUsd = assetBalance(contracts[dappEconomy], usdtId) | |
391 | 393 | let actWlgold = assetBalance(contracts[dappRest], wlgId) | |
392 | 394 | let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUserOld(userAddrOpt)), issueTime) | |
393 | 395 | let lastUserPeriod = ((lastUserTime - issueTime) / YEARMILLIS) | |
394 | - | let nowLimited = min([now, (issueTime + (3 * YEARMILLIS))]) | |
396 | + | let nowLimited = min([min([now, (issueTime + (3 * YEARMILLIS))]), OLD_STAKING_DEADL]) | |
395 | 397 | let curPeriod = min([((now - issueTime) / YEARMILLIS), 2]) | |
396 | 398 | let eff = getLands(userAddrOpt, contracts[dappStaking], contracts[dappAcres]) | |
397 | 399 | let curPeriodDistribution = distributionByPeriod(curPeriod) |
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 | + | let OLD_STAKING_DEADL = 1733335200000 | |
369 | + | ||
368 | 370 | func getWlgStats (userAddrOpt,contracts,usdtId,usdtBalanceCorrection,userProportion6) = { | |
369 | 371 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet") | |
370 | 372 | let economyUsd = assetBalance(contracts[dappEconomy], usdtId) | |
371 | 373 | let restUsd = assetBalance(contracts[dappRest], usdtId) | |
372 | 374 | let wlgUsd = (assetBalance(contracts[dappWlg], usdtId) - usdtBalanceCorrection) | |
373 | 375 | let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId) | |
374 | 376 | let investFndContract = contracts[dappInvestFund] | |
375 | 377 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmountKey), 0)) | |
376 | 378 | let totalFundsUsd = ((economyUsd + wlgUsd) + investFundTotal) | |
377 | 379 | let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet") | |
378 | 380 | let now = lastBlock.timestamp | |
379 | 381 | let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized") | |
380 | 382 | let bankWlgold = assetBalance(contracts[dappStaking], wlgId) | |
381 | 383 | let teamTotal = fraction(MILLION6, TEAMSHARE, M6) | |
382 | 384 | let teamAmountLeft = valueOrElse(getInteger(contracts[dappWlg], teamAmountLeftKey), teamTotal) | |
383 | 385 | let lastTeamTime = valueOrElse(getInteger(contracts[dappWlg], lastTeamTimeKey), issueTime) | |
384 | 386 | let teamAddr = addressFromStringValue(value(getString(contracts[dappWlg], teamAddrKey))) | |
385 | 387 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEARMILLIS)), teamAmountLeft]) | |
386 | 388 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
387 | 389 | let actTotal = fraction(MILLION6, ACTIVITYSHARE, M6) | |
388 | 390 | let actAmountLeft = valueOrElse(getInteger(contracts[dappWlg], actAmountLeftKey), actTotal) | |
389 | 391 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dappWlg], lastActivitiesTimeKey), issueTime) | |
390 | 392 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEARMILLIS)), actAmountLeft]) | |
391 | 393 | let actWlgold = assetBalance(contracts[dappRest], wlgId) | |
392 | 394 | let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUserOld(userAddrOpt)), issueTime) | |
393 | 395 | let lastUserPeriod = ((lastUserTime - issueTime) / YEARMILLIS) | |
394 | - | let nowLimited = min([now, (issueTime + (3 * YEARMILLIS))]) | |
396 | + | let nowLimited = min([min([now, (issueTime + (3 * YEARMILLIS))]), OLD_STAKING_DEADL]) | |
395 | 397 | let curPeriod = min([((now - issueTime) / YEARMILLIS), 2]) | |
396 | 398 | let eff = getLands(userAddrOpt, contracts[dappStaking], contracts[dappAcres]) | |
397 | 399 | let curPeriodDistribution = distributionByPeriod(curPeriod) | |
398 | 400 | let $t079143 = if ((lastUserPeriod == curPeriod)) | |
399 | 401 | then { | |
400 | 402 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEARMILLIS) | |
401 | 403 | let userPart = fraction(a0, userProportion6, M6) | |
402 | 404 | let effTime = (lastUserTime + fraction((nowLimited - lastUserTime), userProportion6, M6)) | |
403 | 405 | $Tuple3(userPart, a0, effTime) | |
404 | 406 | } | |
405 | 407 | else if ((lastUserPeriod == (curPeriod - 1))) | |
406 | 408 | then { | |
407 | 409 | let a1 = fraction(distributionByPeriod((curPeriod - 1)), ((issueTime + (YEARMILLIS * curPeriod)) - lastUserTime), YEARMILLIS) | |
408 | 410 | let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS) | |
409 | 411 | let avail = (a1 + a0) | |
410 | 412 | let userPart = fraction(avail, userProportion6, M6) | |
411 | 413 | let effTime = if ((a1 >= userPart)) | |
412 | 414 | then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 1)))) | |
413 | 415 | else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, (userPart - a1), curPeriodDistribution)) | |
414 | 416 | $Tuple3(userPart, avail, effTime) | |
415 | 417 | } | |
416 | 418 | else { | |
417 | 419 | let a2 = fraction(distributionByPeriod((curPeriod - 2)), ((issueTime + (YEARMILLIS * (curPeriod - 1))) - lastUserTime), YEARMILLIS) | |
418 | 420 | let a1 = distributionByPeriod((curPeriod - 1)) | |
419 | 421 | let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS) | |
420 | 422 | let avail = ((a2 + a1) + a0) | |
421 | 423 | let userPart = fraction(avail, userProportion6, M6) | |
422 | 424 | let effTime = if ((a2 >= userPart)) | |
423 | 425 | then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 2)))) | |
424 | 426 | else if (((a2 + a1) >= userPart)) | |
425 | 427 | then ((issueTime + (YEARMILLIS * (curPeriod - 1))) + fraction(YEARMILLIS, (userPart - a2), distributionByPeriod((curPeriod - 1)))) | |
426 | 428 | else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, ((userPart - a2) - a1), curPeriodDistribution)) | |
427 | 429 | $Tuple3(userPart, avail, effTime) | |
428 | 430 | } | |
429 | 431 | let userAmount = $t079143._1 | |
430 | 432 | let userAvailable = $t079143._2 | |
431 | 433 | let effLastTime = $t079143._3 | |
432 | 434 | let sLandDailyAmount = fraction(fraction(curPeriodDistribution, DAYMILLIS, YEARMILLIS), 25, eff[idxTotalPieces]) | |
433 | 435 | let amountLeftTotal = valueOrElse(getInteger(contracts[dappWlg], stakersAmountLeftKey), 0) | |
434 | 436 | let userTemp = fraction(userAmount, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres])) | |
435 | 437 | let bankFromUser = fraction(userTemp, BANK_FEE, M6) | |
436 | 438 | let robbedUser = (userTemp - bankFromUser) | |
437 | 439 | let unrobbedUser = fraction(userAvailable, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres])) | |
438 | 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] | |
439 | 441 | } | |
440 | 442 | ||
441 | 443 | ||
442 | 444 | let M6_ = 1000000 | |
443 | 445 | ||
444 | 446 | let M8_ = 100000000 | |
445 | 447 | ||
446 | 448 | let TEAM_SHARE = 200000 | |
447 | 449 | ||
448 | 450 | let ACTIVITY_SHARE = 100000 | |
449 | 451 | ||
450 | 452 | let PLAYER_SHARE = 400000 | |
451 | 453 | ||
452 | 454 | let YEAR_MILLIS = 31557600000 | |
453 | 455 | ||
454 | 456 | let DAY_MS = 86400000 | |
455 | 457 | ||
456 | 458 | let ISSUE10 = 1000000000 | |
457 | 459 | ||
458 | 460 | let PLAYERS10_SHARE = 800000 | |
459 | 461 | ||
460 | 462 | let MARKETING10_SHARE = 100000 | |
461 | 463 | ||
462 | 464 | let TEAM10_SHARE = 100000 | |
463 | 465 | ||
464 | 466 | let NEW_STAKING_START = 1731279600000 | |
465 | 467 | ||
466 | 468 | let marketingAddrKey = "marketingAddr" | |
467 | 469 | ||
468 | 470 | let teamAdrKey = "teamAddr" | |
469 | 471 | ||
470 | 472 | let lastTeamTimKey = "lastClaimedTime_team" | |
471 | 473 | ||
472 | 474 | let teamAmtLeftKey = "teamAmountLeft" | |
473 | 475 | ||
474 | 476 | let lastActivitiesTimKey = "lastClaimedTime_activities" | |
475 | 477 | ||
476 | 478 | let actAmtLeftKey = "activitiesAmountLeft" | |
477 | 479 | ||
478 | 480 | let stakersAmtLeftKey = "stakersAmountLeft" | |
479 | 481 | ||
480 | 482 | func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
481 | 483 | ||
482 | 484 | ||
483 | 485 | func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_)) | |
484 | 486 | ||
485 | 487 | ||
486 | 488 | let wlgIssue10TimeKey = "wlg_issue10Time" | |
487 | 489 | ||
488 | 490 | let wlgIssueTimKey = "wlg_issueTime" | |
489 | 491 | ||
490 | 492 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
491 | 493 | ||
492 | 494 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
493 | 495 | ||
494 | 496 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
495 | 497 | ||
496 | 498 | ||
497 | 499 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
498 | 500 | ||
499 | 501 | let totalFarmingPowerKey = "totalFarmingPower" | |
500 | 502 | ||
501 | 503 | let dapp2Rest = 0 | |
502 | 504 | ||
503 | 505 | let dapp2Staking = 1 | |
504 | 506 | ||
505 | 507 | let dapp2Wlg = 2 | |
506 | 508 | ||
507 | 509 | let dapp2Puzzle = 3 | |
508 | 510 | ||
509 | 511 | let dapp2InvestFund = 4 | |
510 | 512 | ||
511 | 513 | let DEFAULT_WEEKLY_PRIZES = 5 | |
512 | 514 | ||
513 | 515 | let ACRES_FOR_BET = 100000000 | |
514 | 516 | ||
515 | 517 | let keyNftTotalIssued = "nftTotalIssued" | |
516 | 518 | ||
517 | 519 | let keyNftTotalBurned = "nftTotalBurned" | |
518 | 520 | ||
519 | 521 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
520 | 522 | ||
521 | 523 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
522 | 524 | ||
523 | 525 | ||
524 | 526 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
525 | 527 | ||
526 | 528 | ||
527 | 529 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
528 | 530 | ||
529 | 531 | func getLevelByAcres (acres) = { | |
530 | 532 | let acr = ((acres + 99999999) / M8_) | |
531 | 533 | func checker (acc,item) = if ((item >= acr)) | |
532 | 534 | then acc | |
533 | 535 | else (acc + 1) | |
534 | 536 | ||
535 | 537 | let $l = levelAcres | |
536 | 538 | let $s = size($l) | |
537 | 539 | let $acc0 = 0 | |
538 | 540 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
539 | 541 | then $a | |
540 | 542 | else checker($a, $l[$i]) | |
541 | 543 | ||
542 | 544 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
543 | 545 | then $a | |
544 | 546 | else throw("List size exceeds 10") | |
545 | 547 | ||
546 | 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) | |
547 | 549 | } | |
548 | 550 | ||
549 | 551 | ||
550 | 552 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
551 | 553 | ||
552 | 554 | ||
553 | 555 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
554 | 556 | let notBonused = getFarmingPowerByAcres(acres) | |
555 | 557 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
556 | 558 | } | |
557 | 559 | ||
558 | 560 | ||
559 | 561 | func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = { | |
560 | 562 | let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0) | |
561 | 563 | let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0) | |
562 | 564 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0) | |
563 | 565 | let $t079143 = getFarmingPowerByAcresAndBonus(userAcres, userBonus) | |
564 | 566 | let userFPbonused = $t079143._1 | |
565 | 567 | let userFPnotBonused = $t079143._2 | |
566 | 568 | [totalFP, userFPbonused, userFPnotBonused, userBonus] | |
567 | 569 | } | |
568 | 570 | ||
569 | 571 | ||
570 | 572 | let idxTotalFP = 0 | |
571 | 573 | ||
572 | 574 | let idxUserFPbonused = 1 | |
573 | 575 | ||
574 | 576 | func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = { | |
575 | 577 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
576 | 578 | let restUsd = assetBalance(contracts[dapp2Rest], usdtId) | |
577 | 579 | let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection) | |
578 | 580 | let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId) | |
579 | 581 | let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId) | |
580 | 582 | let investFndContract = contracts[dapp2InvestFund] | |
581 | 583 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0)) | |
582 | 584 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
583 | 585 | let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet") | |
584 | 586 | let now = lastBlock.timestamp | |
585 | 587 | let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized") | |
586 | 588 | let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId) | |
587 | 589 | let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_) | |
588 | 590 | let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal) | |
589 | 591 | let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime) | |
590 | 592 | let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey))) | |
591 | 593 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft]) | |
592 | 594 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
593 | 595 | let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_) | |
594 | 596 | let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal) | |
595 | 597 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime) | |
596 | 598 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft]) | |
597 | 599 | let actWlgold = assetBalance(contracts[dapp2Rest], wlgId) | |
598 | 600 | let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime) | |
599 | 601 | let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS) | |
600 | 602 | let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))]) | |
601 | 603 | let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2]) | |
602 | 604 | let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking]) | |
603 | 605 | let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod) | |
604 | 606 | let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod)) | |
605 | 607 | let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1))) | |
606 | 608 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS) | |
607 | 609 | let userAvailable = if ((lastUserPeriod == curPeriod)) | |
608 | 610 | then a0 | |
609 | 611 | else if ((lastUserPeriod == (curPeriod - 1))) | |
610 | 612 | then { | |
611 | 613 | let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
612 | 614 | (a1 + a0) | |
613 | 615 | } | |
614 | 616 | else { | |
615 | 617 | let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
616 | 618 | let a1 = distrByPeriod(issuedAmount, (curPeriod - 1)) | |
617 | 619 | ((a2 + a1) + a0) | |
618 | 620 | } | |
619 | 621 | let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0) | |
620 | 622 | let userAmount = if ((eff[idxTotalFP] != 0)) | |
621 | 623 | then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP]) | |
622 | 624 | else 0 | |
623 | 625 | let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START) | |
624 | 626 | let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS) | |
625 | 627 | let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_) | |
626 | 628 | let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_) | |
627 | 629 | let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0]) | |
628 | 630 | let user10part = if ((eff[idxTotalFP] != 0)) | |
629 | 631 | then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_) | |
630 | 632 | else 0 | |
631 | 633 | let newIssue10Time = max([NEW_STAKING_START, now]) | |
632 | 634 | let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0) | |
633 | 635 | let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0) | |
634 | 636 | let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0) | |
635 | 637 | let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0) | |
636 | 638 | let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0) | |
637 | 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] | |
638 | 640 | } | |
639 | 641 | ||
640 | 642 | ||
641 | 643 | let profitAddrKey = "profitAddr" | |
642 | 644 | ||
643 | 645 | let stakersAmountPaidTotalKey = "stakersAmountPaidTotal" | |
644 | 646 | ||
645 | 647 | func keyStakersAmountPaidUser (addr) = ("stakersAmountPaidUser_" + addr) | |
646 | 648 | ||
647 | 649 | ||
648 | 650 | func prolog2 () = asInt(reentrantInvoke(acres2Contract, "saveLastTx", nil, nil)) | |
649 | 651 | ||
650 | 652 | ||
651 | 653 | func getSwapLimitWlgold (addr) = { | |
652 | 654 | let lastTime = valueOrElse(getInteger(keyLastWlgTradeTimeByUser(addr)), 0) | |
653 | 655 | let defaultLimit = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmountByUser(addr)), 0) | |
654 | 656 | let lastLimitLeft = valueOrElse(getInteger(keyLastWlgTradeLimitByUser(addr)), defaultLimit) | |
655 | 657 | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (lastBlock.timestamp - lastTime), DAY_MILLIS)) | |
656 | 658 | min([currentLimit, defaultLimit]) | |
657 | 659 | } | |
658 | 660 | ||
659 | 661 | ||
660 | 662 | let idxWlgTeamAmLeft = 10 | |
661 | 663 | ||
662 | 664 | let idxWlgTeamAmAvailNow = 11 | |
663 | 665 | ||
664 | 666 | let idxWlgActAmLeft = 14 | |
665 | 667 | ||
666 | 668 | let idxWlgActAmAvailNow = 15 | |
667 | 669 | ||
668 | 670 | let idxWlgAmLeftTotal = 18 | |
669 | 671 | ||
670 | 672 | let idxWlgUserAmAvailNow = 21 | |
671 | 673 | ||
672 | 674 | let idxWlgUserTotalAvail = 24 | |
673 | 675 | ||
674 | 676 | let idxWlgEffUserTime = 25 | |
675 | 677 | ||
676 | 678 | func claimInternal (addr) = { | |
677 | 679 | let caller = addressFromStringValue(addr) | |
678 | 680 | let economyContract = addressFromStringValue(economyContractStr) | |
679 | 681 | let curStats = getWlgStats(addr, [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract, acresContract], usdtAssetId, 0, MULT6) | |
680 | 682 | let now = lastBlock.timestamp | |
681 | 683 | let teamAmountLeft = curStats[idxWlgTeamAmLeft] | |
682 | 684 | let teamAmount = curStats[idxWlgTeamAmAvailNow] | |
683 | 685 | let actAmountLeft = curStats[idxWlgActAmLeft] | |
684 | 686 | let actAmount = curStats[idxWlgActAmAvailNow] | |
685 | 687 | let userAmount = curStats[idxWlgUserAmAvailNow] | |
686 | 688 | let userKey = keyStakersAmountPaidUser(addr) | |
687 | 689 | let userTotal = curStats[idxWlgUserTotalAvail] | |
688 | 690 | let userEffTime = curStats[idxWlgEffUserTime] | |
689 | 691 | $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) | |
690 | 692 | } | |
691 | 693 | ||
692 | 694 | ||
693 | 695 | func claimInternal2 (addr) = { | |
694 | 696 | let curStats = getWlgStats2(addr, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
695 | 697 | let userTimeKey = keyLastClaimTimeByUser(addr) | |
696 | 698 | let lastUserTime = valueOrElse(getInteger(userTimeKey), 0) | |
697 | 699 | let userEffTime = curStats[ixWlgEffUserTime] | |
698 | 700 | if ((lastUserTime == userEffTime)) | |
699 | 701 | then $Tuple2(nil, 0) | |
700 | 702 | else { | |
701 | 703 | let now = lastBlock.timestamp | |
702 | 704 | let issueTime = curStats[ixWlgIssueTime] | |
703 | 705 | let teamAmountLeft = curStats[ixWlgTeamAmLeft] | |
704 | 706 | let teamAmount = (curStats[ixWlgTeamAmAvailNow] + curStats[ixWlgTeamIssue10Amount]) | |
705 | 707 | let teamTransfer = if ((teamAmount > 0)) | |
706 | 708 | then [ScriptTransfer(addressFromStringValue(value(getString(teamAddrKey))), teamAmount, wlgAssetId)] | |
707 | 709 | else nil | |
708 | 710 | let actAmountLeft = curStats[ixWlgActAmLeft] | |
709 | 711 | let actAmount = curStats[ixWlgActAmAvailNow] | |
710 | 712 | let actTransfer = if ((actAmount > 0)) | |
711 | 713 | then [ScriptTransfer(restContract, actAmount, wlgAssetId)] | |
712 | 714 | else nil | |
713 | 715 | let marketingAmount = curStats[ixWlgMarketingIssue10Amount] | |
714 | 716 | let marketingTransfer = if ((marketingAmount > 0)) | |
715 | 717 | then [ScriptTransfer(addressFromStringValue(value(getString(marketingAddrKey))), marketingAmount, wlgAssetId)] | |
716 | 718 | else nil | |
717 | 719 | let userAmount = curStats[ixWlgUserAmAvailNow] | |
718 | 720 | let userKey = keyStakersAmountPaidUser(addr) | |
719 | 721 | let userTotal = (userAmount + curStats[ixWlgUser10part]) | |
720 | 722 | let issued10Amount = curStats[ixWlgIssue10Amount] | |
721 | 723 | $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) | |
722 | 724 | } | |
723 | 725 | } | |
724 | 726 | ||
725 | 727 | ||
726 | 728 | func takeXpInternal (addr,delta) = { | |
727 | 729 | let now = lastBlock.timestamp | |
728 | 730 | let timeKey = keyWlgStakedTimeByUser(addr) | |
729 | 731 | let amountKey = keyWlgStakedAmountByUser(addr) | |
730 | 732 | let lastTime = valueOrElse(getInteger(timeKey), 0) | |
731 | 733 | let oldUser = valueOrElse(getInteger(amountKey), 0) | |
732 | 734 | let oldTotal = valueOrElse(getInteger(wlgStakedTotalKey), 0) | |
733 | 735 | let xp = fraction(fraction(xpWlg, oldUser, wlgBaseAmountXp), (lastTime - now), DAYMILLIS) | |
734 | 736 | $Tuple3([IntegerEntry(timeKey, now), IntegerEntry(amountKey, (oldUser + delta)), IntegerEntry(wlgStakedTotalKey, (oldTotal + delta))], xp, oldUser) | |
735 | 737 | } | |
736 | 738 | ||
737 | 739 | ||
738 | 740 | func openChestInternal (addr) = { | |
739 | 741 | let week = (height / WEEK_BLOCKS) | |
740 | 742 | let drawWeek = (week - 1) | |
741 | 743 | let numPrizes = valueOrElse(getInteger(keyNumNFT2Draw(drawWeek)), DEFAULT_WEEKLY_PRIZES) | |
742 | 744 | let prizesDrawn = valueOrElse(getInteger(keyNumNFTDrawn(drawWeek)), 0) | |
743 | 745 | let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0) | |
744 | 746 | if ((0 >= userTickets)) | |
745 | 747 | then $Tuple2(nil, unit) | |
746 | 748 | else { | |
747 | 749 | let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0) | |
748 | 750 | if ((0 >= weekTickets)) | |
749 | 751 | then $Tuple2([DeleteEntry(keyUserWeekTickets(addr, drawWeek))], unit) | |
750 | 752 | else { | |
751 | 753 | let entropy = value(value(blockInfoByHeight((week * WEEK_BLOCKS))).vrf) | |
752 | 754 | let salt = fromBase58String(split(valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
753 | 755 | let random = getRandomNumber(weekTickets, salt, entropy) | |
754 | 756 | if (((userTickets * numPrizes) > random)) | |
755 | 757 | then { | |
756 | 758 | let issueResult = invoke(acres2Contract, "issuePickC1", [addr], nil) | |
757 | 759 | let winners = getString(keyWeekWinners(drawWeek)) | |
758 | 760 | let newWinners = if (isDefined(winners)) | |
759 | 761 | then ((value(winners) + "_") + addr) | |
760 | 762 | else addr | |
761 | 763 | $Tuple2([IntegerEntry(keyNumNFTDrawn(drawWeek), (prizesDrawn + 1)), DeleteEntry(keyUserWeekTickets(addr, drawWeek)), StringEntry(keyWeekWinners(drawWeek), newWinners)], issueResult) | |
762 | 764 | } | |
763 | 765 | else { | |
764 | 766 | let random1 = (getRandomNumber(9, (base58'29' + salt), entropy) + 1) | |
765 | 767 | let consTickets = fraction(userTickets, random1, 10) | |
766 | 768 | let ticketsKey = keyUserWeekTickets(addr, week) | |
767 | 769 | let oldTickets = valueOrElse(getInteger(ticketsKey), 0) | |
768 | 770 | $Tuple2(((if ((consTickets == 0)) | |
769 | 771 | then nil | |
770 | 772 | else { | |
771 | 773 | let commonActions = [IntegerEntry(keyTotalWeekTickets(week), (valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) + consTickets)), IntegerEntry(ticketsKey, (oldTickets + consTickets))] | |
772 | 774 | if ((oldTickets > 0)) | |
773 | 775 | then commonActions | |
774 | 776 | else (commonActions :+ IntegerEntry(keyTotalWeekParticipants(week), (valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) + 1))) | |
775 | 777 | }) :+ DeleteEntry(keyUserWeekTickets(addr, drawWeek))), consTickets) | |
776 | 778 | } | |
777 | 779 | } | |
778 | 780 | } | |
779 | 781 | } | |
780 | 782 | ||
781 | 783 | ||
782 | 784 | func claimTicketsInternal (addr,userBetStr) = { | |
783 | 785 | let week = (height / WEEK_BLOCKS) | |
784 | 786 | let ticketsKey = keyUserWeekTickets(addr, week) | |
785 | 787 | let dayBet = split(userBetStr, "_") | |
786 | 788 | let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) | |
787 | 789 | let oldTickets = valueOrElse(getInteger(ticketsKey), 0) | |
788 | 790 | let deltaTickets = if ((winningBet(parseIntValue(dayBet[0])) == parseIntValue(dayBet[1]))) | |
789 | 791 | then 1 | |
790 | 792 | else 0 | |
791 | 793 | let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) | |
792 | 794 | let updateParticipants = if (if ((oldTickets == 0)) | |
793 | 795 | then (deltaTickets == 1) | |
794 | 796 | else false) | |
795 | 797 | then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))] | |
796 | 798 | else nil | |
797 | 799 | $Tuple2(if ((deltaTickets == 0)) | |
798 | 800 | then nil | |
799 | 801 | else ((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets) | |
800 | 802 | } | |
801 | 803 | ||
802 | 804 | ||
803 | 805 | @Callable(i) | |
804 | 806 | func constructorV1 (restAddr,marketingAddr,teamAddr,profitAddr) = if ((i.caller != this)) | |
805 | 807 | then throw("Permission denied") | |
806 | 808 | else if (isDefined(getBinary(wlgAssetIdKey))) | |
807 | 809 | then throw("Already initialized") | |
808 | 810 | else { | |
809 | 811 | let issuedAmount = MILLION6 | |
810 | 812 | let issue = Issue("WLGOLD", "WavesLands Gold investment token", issuedAmount, 8, true, unit, 0) | |
811 | 813 | let assetId = calculateAssetId(issue) | |
812 | 814 | [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)] | |
813 | 815 | } | |
814 | 816 | ||
815 | 817 | ||
816 | 818 | ||
817 | 819 | @Callable(i) | |
818 | 820 | func constructorV2 (rest2Addr) = if ((i.caller != this)) | |
819 | 821 | then throw("Permission denied") | |
820 | 822 | else [StringEntry(keyRest2Address(), rest2Addr)] | |
821 | 823 | ||
822 | 824 | ||
823 | 825 | ||
824 | 826 | @Callable(i) | |
825 | 827 | func buyWlg (minToReceive) = { | |
826 | 828 | let prologResult = prolog2() | |
827 | 829 | if ((prologResult == prologResult)) | |
828 | 830 | then if ((size(i.payments) != 1)) | |
829 | 831 | then throw("exactly 1 payment must be attached") | |
830 | 832 | else { | |
831 | 833 | let pmt = i.payments[0] | |
832 | 834 | let usdtAmt = pmt.amount | |
833 | 835 | if (if (!(isDefined(pmt.assetId))) | |
834 | 836 | then true | |
835 | 837 | else (value(pmt.assetId) != usdtAssetId)) | |
836 | 838 | then throw("USDT payments only!") | |
837 | 839 | else { | |
838 | 840 | let caller = i.caller | |
839 | 841 | let addr = toString(caller) | |
840 | 842 | if ((MINSHOPPAYMENT > usdtAmt)) | |
841 | 843 | then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT")) | |
842 | 844 | else { | |
843 | 845 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt) | |
844 | 846 | let curWlgAmount = curStats[ixWlgAmount] | |
845 | 847 | let wlgPrice = curStats[ixWlgPrice] | |
846 | 848 | let buyPrice = fraction(wlgPrice, 6, 5, CEILING) | |
847 | 849 | let wlgAmount = fraction(usdtAmt, MULT8, buyPrice) | |
848 | 850 | let maxWlg = getSwapLimitWlgold(addr) | |
849 | 851 | if ((wlgAmount > maxWlg)) | |
850 | 852 | then throw((("You can get max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment")) | |
851 | 853 | else if ((minToReceive > wlgAmount)) | |
852 | 854 | then throw("Price changed during operation, please try again") | |
853 | 855 | else { | |
854 | 856 | let profitAmount = (usdtAmt / 6) | |
855 | 857 | $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) | |
856 | 858 | } | |
857 | 859 | } | |
858 | 860 | } | |
859 | 861 | } | |
860 | 862 | else throw("Strict value is not equal to itself.") | |
861 | 863 | } | |
862 | 864 | ||
863 | 865 | ||
864 | 866 | ||
865 | 867 | @Callable(i) | |
866 | 868 | func buyWlgREADONLY (address,usdtAmt) = { | |
867 | 869 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt) | |
868 | 870 | let wlgPrice = curStats[ixWlgPrice] | |
869 | 871 | let buyPrice = fraction(wlgPrice, 6, 5, CEILING) | |
870 | 872 | let wlgAmount = fraction(usdtAmt, MULT8, buyPrice) | |
871 | 873 | let maxWlg = getSwapLimitWlgold(address) | |
872 | 874 | let maxUsdt = fraction(maxWlg, buyPrice, MULT8) | |
873 | 875 | let profitAmount = (usdtAmt / 6) | |
874 | 876 | $Tuple2(nil, [wlgAmount, MINSHOPPAYMENT, maxUsdt, profitAmount]) | |
875 | 877 | } | |
876 | 878 | ||
877 | 879 | ||
878 | 880 | ||
879 | 881 | @Callable(i) | |
880 | 882 | func sellWlg (minAmount) = { | |
881 | 883 | let prologResult = prolog2() | |
882 | 884 | if ((prologResult == prologResult)) | |
883 | 885 | then if ((size(i.payments) != 1)) | |
884 | 886 | then throw("exactly 1 payment must be attached") | |
885 | 887 | else { | |
886 | 888 | let pmt = i.payments[0] | |
887 | 889 | let wlgAmt = pmt.amount | |
888 | 890 | let caller = i.caller | |
889 | 891 | let addr = toString(caller) | |
890 | 892 | let maxWlg = getSwapLimitWlgold(addr) | |
891 | 893 | if ((wlgAmt > maxWlg)) | |
892 | 894 | then throw((("You can spend max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment")) | |
893 | 895 | else if (if (!(isDefined(pmt.assetId))) | |
894 | 896 | then true | |
895 | 897 | else (value(pmt.assetId) != wlgAssetId)) | |
896 | 898 | then throw("WLGOLD payments only!") | |
897 | 899 | else { | |
898 | 900 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
899 | 901 | let curWlgAmount = curStats[ixWlgAmount] | |
900 | 902 | let sellPrice = (curStats[ixWlgPrice] / 2) | |
901 | 903 | let usdtAmt = fraction(wlgAmt, sellPrice, MULT8) | |
902 | 904 | if ((MINSHOPPAYMENT > usdtAmt)) | |
903 | 905 | then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT")) | |
904 | 906 | else if ((minAmount > usdtAmt)) | |
905 | 907 | then throw("Price changed during operation, please try again") | |
906 | 908 | else { | |
907 | 909 | let profitAmount = (usdtAmt / 5) | |
908 | 910 | $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) | |
909 | 911 | } | |
910 | 912 | } | |
911 | 913 | } | |
912 | 914 | else throw("Strict value is not equal to itself.") | |
913 | 915 | } | |
914 | 916 | ||
915 | 917 | ||
916 | 918 | ||
917 | 919 | @Callable(i) | |
918 | 920 | func sellWlgREADONLY (address,wlgAmt) = { | |
919 | 921 | let maxWlg = getSwapLimitWlgold(address) | |
920 | 922 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
921 | 923 | let sellPrice = (curStats[ixWlgPrice] / 2) | |
922 | 924 | let usdtAmt = fraction(wlgAmt, sellPrice, MULT8) | |
923 | 925 | let minWlg = fraction(MINSHOPPAYMENT, MULT8, sellPrice) | |
924 | 926 | let profitAmount = (usdtAmt / 5) | |
925 | 927 | $Tuple2(nil, [usdtAmt, minWlg, maxWlg, profitAmount]) | |
926 | 928 | } | |
927 | 929 | ||
928 | 930 | ||
929 | 931 | ||
930 | 932 | @Callable(i) | |
931 | 933 | func claim () = { | |
932 | 934 | let prologResult = prolog2() | |
933 | 935 | if ((prologResult == prologResult)) | |
934 | 936 | then if ((size(i.payments) != 0)) | |
935 | 937 | then throw("No payments required") | |
936 | 938 | else { | |
937 | 939 | let $t01640016469 = claimInternal2(toString(i.caller)) | |
938 | 940 | let actions = $t01640016469._1 | |
939 | 941 | let wlgClaimedAmount = $t01640016469._2 | |
940 | 942 | $Tuple2((actions :+ ScriptTransfer(i.caller, wlgClaimedAmount, wlgAssetId)), prologResult) | |
941 | 943 | } | |
942 | 944 | else throw("Strict value is not equal to itself.") | |
943 | 945 | } | |
944 | 946 | ||
945 | 947 | ||
946 | 948 | ||
947 | 949 | @Callable(i) | |
948 | 950 | func onStakeUnstakeLand (addr,isNew) = if (if (if ((i.caller != stakingContract)) | |
949 | 951 | then (i.caller != acresContract) | |
950 | 952 | else false) | |
951 | 953 | then (i.caller != acres2Contract) | |
952 | 954 | else false) | |
953 | 955 | then throw("Permission denied") | |
954 | 956 | else { | |
955 | 957 | let $t01680516900 = if (isNew) | |
956 | 958 | then claimInternal2(addr) | |
957 | 959 | else claimInternal(addr) | |
958 | 960 | let actions = $t01680516900._1 | |
959 | 961 | let wlgClaimedAmount = $t01680516900._2 | |
960 | 962 | $Tuple2(if ((wlgClaimedAmount > 0)) | |
961 | 963 | then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId)) | |
962 | 964 | else actions, wlgClaimedAmount) | |
963 | 965 | } | |
964 | 966 | ||
965 | 967 | ||
966 | 968 | ||
967 | 969 | @Callable(i) | |
968 | 970 | func burnWlgold (wlgAmt) = if ((i.caller != acres2Contract)) | |
969 | 971 | then throw("Permission denied") | |
970 | 972 | else { | |
971 | 973 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
972 | 974 | if ((wlgAmt > curStats[ixWlgWlg])) | |
973 | 975 | then throw(((("Only " + fixedPoint(curStats[ixWlgWlg], 8)) + " WLGOLD left on contract, can't burn ") + fixedPoint(wlgAmt, 8))) | |
974 | 976 | else { | |
975 | 977 | let wlgAmountLeft = (curStats[ixWlgAmount] - wlgAmt) | |
976 | 978 | $Tuple2([Burn(wlgAssetId, wlgAmt), IntegerEntry(wlgIssuedAmountKey, wlgAmountLeft)], wlgAmountLeft) | |
977 | 979 | } | |
978 | 980 | } | |
979 | 981 | ||
980 | 982 | ||
981 | 983 | ||
982 | 984 | @Callable(i) | |
983 | 985 | func betForTicket (bet) = { | |
984 | 986 | let prologResult = prolog2() | |
985 | 987 | if ((prologResult == prologResult)) | |
986 | 988 | then if ((size(i.payments) != 0)) | |
987 | 989 | then throw("No payments required") | |
988 | 990 | else { | |
989 | 991 | let addr = toString(i.caller) | |
990 | 992 | let drawWeek = ((height / WEEK_BLOCKS) - 1) | |
991 | 993 | let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0) | |
992 | 994 | let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0) | |
993 | 995 | if (if ((userTickets > 0)) | |
994 | 996 | then (weekTickets > 0) | |
995 | 997 | else false) | |
996 | 998 | then throw("Please open the chest first") | |
997 | 999 | else if (((bet / 4) != 0)) | |
998 | 1000 | then throw("Invalid bet: should be 0..3") | |
999 | 1001 | else { | |
1000 | 1002 | let moment = (height % DAY_BLOCKS) | |
1001 | 1003 | if ((moment > (DAY_BLOCKS - 3))) | |
1002 | 1004 | then throw((("Cannot bet: the day is almost ended, please wait " + toString((DAY_BLOCKS - moment))) + " blocks")) | |
1003 | 1005 | else { | |
1004 | 1006 | let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(addr)), 0) | |
1005 | 1007 | if ((ACRES_FOR_BET > stakedAcres)) | |
1006 | 1008 | then throw((("You need to stake at least " + fixedPoint(ACRES_FOR_BET, 8)) + " ACRES to bet")) | |
1007 | 1009 | else { | |
1008 | 1010 | let tomorrow = ((height / DAY_BLOCKS) + 1) | |
1009 | 1011 | let betKey = keyUserBet(addr) | |
1010 | 1012 | let oldUserBetStr = getString(betKey) | |
1011 | 1013 | let newBetEntry = StringEntry(betKey, ((toString(tomorrow) + "_") + toString(bet))) | |
1012 | 1014 | if (isDefined(oldUserBetStr)) | |
1013 | 1015 | then { | |
1014 | 1016 | let userBet = value(oldUserBetStr) | |
1015 | 1017 | if ((split(userBet, "_")[0] == toString(tomorrow))) | |
1016 | 1018 | then throw("You already bet for tomorrow") | |
1017 | 1019 | else { | |
1018 | 1020 | let r = claimTicketsInternal(addr, userBet) | |
1019 | 1021 | $Tuple2((r._1 :+ newBetEntry), r._2) | |
1020 | 1022 | } | |
1021 | 1023 | } | |
1022 | 1024 | else $Tuple2([newBetEntry], 0) | |
1023 | 1025 | } | |
1024 | 1026 | } | |
1025 | 1027 | } | |
1026 | 1028 | } | |
1027 | 1029 | else throw("Strict value is not equal to itself.") | |
1028 | 1030 | } | |
1029 | 1031 | ||
1030 | 1032 | ||
1031 | 1033 | ||
1032 | 1034 | @Callable(i) | |
1033 | 1035 | func takeWlgXp (addr) = if ((i.caller != stakingContract)) | |
1034 | 1036 | then throw("Permission denied") | |
1035 | 1037 | else { | |
1036 | 1038 | let $t01951019553 = takeXpInternal(addr, 0) | |
1037 | 1039 | let actions = $t01951019553._1 | |
1038 | 1040 | let xp = $t01951019553._2 | |
1039 | 1041 | $Tuple2(actions, xp) | |
1040 | 1042 | } | |
1041 | 1043 | ||
1042 | 1044 | ||
1043 | 1045 | ||
1044 | 1046 | @Callable(i) | |
1045 | 1047 | func checkWlgXpREADONLY (addr) = { | |
1046 | 1048 | let $t01963019678 = takeXpInternal(addr, 0) | |
1047 | 1049 | let ignored = $t01963019678._1 | |
1048 | 1050 | let deltaXP = $t01963019678._2 | |
1049 | 1051 | let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP) | |
1050 | 1052 | let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP) | |
1051 | 1053 | $Tuple2(nil, (lvlPoints :+ newXP)) | |
1052 | 1054 | } | |
1053 | 1055 | ||
1054 | 1056 | ||
1055 | 1057 | ||
1056 | 1058 | @Callable(i) | |
1057 | 1059 | func setNumPrizes (numPrizes) = if ((i.caller != this)) | |
1058 | 1060 | then throw("Permission denied") | |
1059 | 1061 | else { | |
1060 | 1062 | let week = (height / WEEK_BLOCKS) | |
1061 | 1063 | $Tuple2([IntegerEntry(keyNumNFT2Draw(week), numPrizes)], numPrizes) | |
1062 | 1064 | } | |
1063 | 1065 | ||
1064 | 1066 | ||
1065 | 1067 | ||
1066 | 1068 | @Callable(i) | |
1067 | 1069 | func openChest () = { | |
1068 | 1070 | let prologResult = prolog2() | |
1069 | 1071 | if ((prologResult == prologResult)) | |
1070 | 1072 | then if ((size(i.payments) != 0)) | |
1071 | 1073 | then throw("No payments required") | |
1072 | 1074 | else { | |
1073 | 1075 | let drawWeek = ((height / WEEK_BLOCKS) - 1) | |
1074 | 1076 | let addr = toString(i.caller) | |
1075 | 1077 | let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0) | |
1076 | 1078 | if ((0 >= userTickets)) | |
1077 | 1079 | then throw("No gems to open the chest") | |
1078 | 1080 | else openChestInternal(addr) | |
1079 | 1081 | } | |
1080 | 1082 | else throw("Strict value is not equal to itself.") | |
1081 | 1083 | } | |
1082 | 1084 | ||
1083 | 1085 | ||
1084 | 1086 | ||
1085 | 1087 | @Callable(i) | |
1086 | 1088 | func addGemsFor (addr,deltaTickets) = if ((i.caller != this)) | |
1087 | 1089 | then throw("Permission denied") | |
1088 | 1090 | else { | |
1089 | 1091 | let week = (height / WEEK_BLOCKS) | |
1090 | 1092 | let ticketsKey = keyUserWeekTickets(addr, week) | |
1091 | 1093 | let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) | |
1092 | 1094 | let oldTickets = valueOrElse(getInteger(ticketsKey), 0) | |
1093 | 1095 | let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) | |
1094 | 1096 | let updateParticipants = if (if ((oldTickets == 0)) | |
1095 | 1097 | then (deltaTickets == 1) | |
1096 | 1098 | else false) | |
1097 | 1099 | then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))] | |
1098 | 1100 | else nil | |
1099 | 1101 | $Tuple2(((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets) | |
1100 | 1102 | } | |
1101 | 1103 | ||
1102 | 1104 |
github/deemru/w8io/169f3d6 124.48 ms ◑