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:BgJSCAISBgoECAgICBIDCgEIEgMKAQESBAoCCAESAwoBARIECgIIARIAEgMKAQgSAwoBCBIDCgEBEgMKAQESAwoBCBIDCgEIEgMKAQESABIECgIIAbcBAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ4AIDC1y8ADk1JTlNIT1BQQVlNRU5UAKCNBgAKREFZX01JTExJUwCAuJkpAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAKREFZX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACgCwMJAAACAQFUBQckbWF0Y2gwADwJAAIBAg1Vbmtub3duIGNoYWluAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgAKVlJGX09GRlNFVAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAAAAwkAAAIBAVQFByRtYXRjaDAAkPlFCQACAQINVW5rbm93biBja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bnRyeQIJARNrZXlUb3RhbFdlZWtUaWNrZXRzAQUEd2VlawkAZAIFD29sZFRvdGFsVGlja2V0cwUMZGVsdGFUaWNrZXRzBQxkZWx0YVRpY2tldHMAs9xAwg==", "height": 3400835, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CfVXcwyF2E7mZ7cmCCh6YGwZMsHAQypiBxPDfWDjSHcg Next: Fv5kpH7SLtaykk6Jh46YWctaXLcZDnzU6jZR3Gu6nwhk Diff:
OldNewDifferences
669669
670670 let idxWlgAmLeftTotal = 18
671671
672-let idxWlgUserAmAvailNow = 21
673-
674672 let idxWlgUserTotalAvail = 24
675673
676674 let idxWlgEffUserTime = 25
684682 let teamAmount = curStats[idxWlgTeamAmAvailNow]
685683 let actAmountLeft = curStats[idxWlgActAmLeft]
686684 let actAmount = curStats[idxWlgActAmAvailNow]
687- let userAmount = curStats[idxWlgUserAmAvailNow]
685+ let userAmount = curStats[idxWlgUserTotalAvail]
688686 let userKey = keyStakersAmountPaidUser(addr)
689687 let userTotal = curStats[idxWlgUserTotalAvail]
690688 let userEffTime = curStats[idxWlgEffUserTime]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let MULT6 = 1000000
77
88 let MULT8 = 100000000
99
1010 let MINSHOPPAYMENT = 100000
1111
1212 let DAY_MILLIS = 86400000
1313
1414 let chain = take(drop(this.bytes, 1), 1)
1515
1616 let DAY_BLOCKS = match chain {
1717 case _ =>
1818 if ((base58'2W' == $match0))
1919 then 1440
2020 else if ((base58'2T' == $match0))
2121 then 60
2222 else throw("Unknown chain")
2323 }
2424
2525 let WEEK_BLOCKS = match chain {
2626 case _ =>
2727 if ((base58'2W' == $match0))
2828 then 10080
2929 else if ((base58'2T' == $match0))
3030 then 180
3131 else throw("Unknown chain")
3232 }
3333
3434 let VRF_OFFSET = match chain {
3535 case _ =>
3636 if ((base58'2W' == $match0))
3737 then 0
3838 else if ((base58'2T' == $match0))
3939 then 1146000
4040 else throw("Unknown chain")
4141 }
4242
4343 let usdtAssetId = match chain {
4444 case _ =>
4545 if ((base58'2W' == $match0))
4646 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
4747 else if ((base58'2T' == $match0))
4848 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
4949 else throw("Unknown chain")
5050 }
5151
5252 let defaultRest2AddressStr = match chain {
5353 case _ =>
5454 if ((base58'2W' == $match0))
5555 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
5656 else if ((base58'2T' == $match0))
5757 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
5858 else throw("Unknown chain")
5959 }
6060
6161 let defaultRestAddressStr = match chain {
6262 case _ =>
6363 if ((base58'2W' == $match0))
6464 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
6565 else if ((base58'2T' == $match0))
6666 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
6767 else throw("Unknown chain")
6868 }
6969
7070 let economyContractStr = match chain {
7171 case _ =>
7272 if ((base58'2W' == $match0))
7373 then "3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D"
7474 else if ((base58'2T' == $match0))
7575 then "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep"
7676 else throw("Unknown chain")
7777 }
7878
7979 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
8080
8181
8282 let IdxCfgAcres2Dapp = 1
8383
8484 let IdxCfgWlgDapp = 2
8585
8686 let IdxCfgPuzzlePoolDapp = 4
8787
8888 let IdxCfgInvestFundDapp = 5
8989
9090 func keyRestCfg () = "%s__restConfig"
9191
9292
9393 func keyRest2Address () = "%s__rest2Addr"
9494
9595
9696 func keyRestAddress () = "%s__restAddr"
9797
9898
9999 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
100100
101101 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
102102
103103
104104 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
105105
106106
107107 let IdxCfgStakingDapp = 1
108108
109109 let IdxCfgAcresDapp = 8
110110
111111 let restCfg = readRestCfgOrFail(restContract)
112112
113113 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
114114
115115 let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp)
116116
117117 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
118118
119119 let rest2Cfg = readRestCfgOrFail(rest2Contract)
120120
121121 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
122122
123123 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
124124
125125 let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp)
126126
127127 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
128128
129129 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
130130
131131
132132 let wlgAssetIdKey = "wlg_assetId"
133133
134134 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
135135
136136 func keyUserBet (addr) = ("userBet_" + addr)
137137
138138
139139 func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
140140
141141
142142 func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
143143
144144
145145 func keyTotalWeekParticipants (week) = ("totalWeekParticipants_" + toString(week))
146146
147147
148148 func keyNumNFT2Draw (week) = ("numNFT2Draw_" + toString(week))
149149
150150
151151 func keyNumNFTDrawn (week) = ("numNFTDrawn_" + toString(week))
152152
153153
154154 func keyWeekWinners (week) = ("weekWinners_" + toString(week))
155155
156156
157157 func winningBet (day) = {
158158 let b = (day * DAY_BLOCKS)
159159 let h = if ((b > VRF_OFFSET))
160160 then b
161161 else (b + VRF_OFFSET)
162162 (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4)
163163 }
164164
165165
166166 let ixWlgAmount = 0
167167
168168 let ixWlgWlg = 1
169169
170170 let ixWlgPrice = 2
171171
172172 let ixWlgIssueTime = 8
173173
174174 let ixWlgTeamAmLeft = 11
175175
176176 let ixWlgTeamAmAvailNow = 12
177177
178178 let ixWlgActAmLeft = 15
179179
180180 let ixWlgActAmAvailNow = 16
181181
182182 let ixWlgAmLeftTotal = 19
183183
184184 let ixWlgUserAmAvailNow = 23
185185
186186 let ixWlgEffUserTime = 24
187187
188188 let ixWlgIssue10Amount = 25
189189
190190 let ixWlgMarketingIssue10Amount = 26
191191
192192 let ixWlgTeamIssue10Amount = 27
193193
194194 let ixWlgUser10part = 28
195195
196196 let ixWlgIssue10Time = 29
197197
198198 func asInt (v) = match v {
199199 case n: Int =>
200200 n
201201 case _ =>
202202 throw("fail to cast into Int")
203203 }
204204
205205
206206 func fixedPoint (val,decimals) = {
207207 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
208208 let lowPart = toString((val % tenPow))
209209 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
210210 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
211211 }
212212
213213
214214 func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue))
215215 then throw("maxValue should be > 0")
216216 else {
217217 let randomHash = sha256_16Kb((salt + entropy))
218218 (toInt(randomHash) % maxValue)
219219 }
220220
221221
222222 let SCALE8 = 100000000
223223
224224 let xpLevelScale = 3200
225225
226226 let xpLevelRecipPow = 4000
227227
228228 let numPointsOnLevelUp = 3
229229
230230 let wlgBaseAmountXp = 100000000000
231231
232232 func keyUserXP (addr) = ("userXP_" + addr)
233233
234234
235235 func keyUserLevel (addr) = ("userLevel_" + addr)
236236
237237
238238 let xpWlg = 10000
239239
240240 func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8)
241241
242242
243243 func levelUp (currLevel,newXP) = {
244244 let newLevel = levelByXP(newXP)
245245 [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))]
246246 }
247247
248248
249249 let M6 = 1000000
250250
251251 let M8 = 100000000
252252
253253 let MILLION6 = 100000000000000
254254
255255 let TEAMSHARE = 200000
256256
257257 let ACTIVITYSHARE = 100000
258258
259259 let PLAYERSHARE = 400000
260260
261261 let YEARMILLIS = 31557600000
262262
263263 let DAYMILLIS = 86400000
264264
265265 let BANK_FEE = 50000
266266
267267 let ch = take(drop(this.bytes, 1), 1)
268268
269269 let USDT_TVL_CORRECTION = match ch {
270270 case _ =>
271271 if ((base58'2W' == $match0))
272272 then 1208630000
273273 else if ((base58'2T' == $match0))
274274 then 0
275275 else throw("Unknown chain")
276276 }
277277
278278 let teamAddrKey = "teamAddr"
279279
280280 let lastTeamTimeKey = "lastClaimedTime_team"
281281
282282 let teamAmountLeftKey = "teamAmountLeft"
283283
284284 let lastActivitiesTimeKey = "lastClaimedTime_activities"
285285
286286 let actAmountLeftKey = "activitiesAmountLeft"
287287
288288 let stakersAmountLeftKey = "stakersAmountLeft"
289289
290290 func keyLastClaimedTimeByUserOld (addr) = ("lastClaimedTimeUserOld_" + addr)
291291
292292
293293 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
294294
295295
296296 func keyLastWlgTradeLimitByUser (addr) = ("lastWlgLimitUser_" + addr)
297297
298298
299299 func distributionByPeriod (period) = fraction(MILLION6, (PLAYERSHARE * (period + 1)), (6 * M6))
300300
301301
302302 let wlgIssueTimeKey = "wlg_issueTime"
303303
304304 let wlgIssuedAmountKey = "wlg_issuedAmount"
305305
306306 let zbIssuedAmountKey = "zbill_issuedAmount"
307307
308308 func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr)
309309
310310
311311 let acresStakedTotalKey = "acresStakedAmountTotal"
312312
313313 func keyWlgStakedAmountByUser (addr) = ("wlgStakedAmountByUser_" + addr)
314314
315315
316316 let wlgStakedTotalKey = "wlgStakedAmountTotal"
317317
318318 func keyWlgStakedTimeByUser (addr) = ("wlgStakedTimeByUser_" + addr)
319319
320320
321321 let dappRest = 0
322322
323323 let dappStaking = 1
324324
325325 let dappEconomy = 2
326326
327327 let dappWlg = 3
328328
329329 let dappPuzzle = 4
330330
331331 let dappInvestFund = 5
332332
333333 let dappAcres = 6
334334
335335 func getLands (userAddrStrOrEmpty,stakingContract,acresContract) = {
336336 let props = split(valueOrElse(getString(stakingContract, "resTypesProportions"), "0_0_0_0_0_0"), "_")
337337 func adder (acc,item) = (acc + parseIntValue(item))
338338
339339 let totalPieces = {
340340 let $l = props
341341 let $s = size($l)
342342 let $acc0 = 0
343343 func $f0_1 ($a,$i) = if (($i >= $s))
344344 then $a
345345 else adder($a, $l[$i])
346346
347347 func $f0_2 ($a,$i) = if (($i >= $s))
348348 then $a
349349 else throw("List size exceeds 6")
350350
351351 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
352352 }
353353 let userPieces = valueOrElse(getInteger(stakingContract, ("stakedPiecesByOwner_" + userAddrStrOrEmpty)), 0)
354354 let totalAcres = valueOrElse(getInteger(acresContract, acresStakedTotalKey), 0)
355355 let userAcres = valueOrElse(getInteger(acresContract, keyAcresStakedAmountByUser(userAddrStrOrEmpty)), 0)
356356 [totalPieces, userPieces, totalAcres, userAcres]
357357 }
358358
359359
360360 let idxTotalPieces = 0
361361
362362 let idxUserPieces = 1
363363
364364 let idxTotalAcres = 2
365365
366366 let idxUserAcres = 3
367367
368368 let OLD_STAKING_DEADL = 1733346000000
369369
370370 func getWlgStats (userAddrOpt,contracts,usdtId,usdtBalanceCorrection,userProportion6) = {
371371 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet")
372372 let economyUsd = assetBalance(contracts[dappEconomy], usdtId)
373373 let restUsd = assetBalance(contracts[dappRest], usdtId)
374374 let wlgUsd = (assetBalance(contracts[dappWlg], usdtId) - usdtBalanceCorrection)
375375 let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId)
376376 let investFndContract = contracts[dappInvestFund]
377377 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmountKey), 0))
378378 let totalFundsUsd = ((economyUsd + wlgUsd) + investFundTotal)
379379 let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet")
380380 let now = lastBlock.timestamp
381381 let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized")
382382 let bankWlgold = assetBalance(contracts[dappStaking], wlgId)
383383 let teamTotal = fraction(MILLION6, TEAMSHARE, M6)
384384 let teamAmountLeft = valueOrElse(getInteger(contracts[dappWlg], teamAmountLeftKey), teamTotal)
385385 let lastTeamTime = valueOrElse(getInteger(contracts[dappWlg], lastTeamTimeKey), issueTime)
386386 let teamAddr = addressFromStringValue(value(getString(contracts[dappWlg], teamAddrKey)))
387387 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEARMILLIS)), teamAmountLeft])
388388 let teamWlgold = assetBalance(teamAddr, wlgId)
389389 let actTotal = fraction(MILLION6, ACTIVITYSHARE, M6)
390390 let actAmountLeft = valueOrElse(getInteger(contracts[dappWlg], actAmountLeftKey), actTotal)
391391 let lastActivitiesTime = valueOrElse(getInteger(contracts[dappWlg], lastActivitiesTimeKey), issueTime)
392392 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEARMILLIS)), actAmountLeft])
393393 let actWlgold = assetBalance(contracts[dappRest], wlgId)
394394 let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUserOld(userAddrOpt)), issueTime)
395395 let lastUserPeriod = ((lastUserTime - issueTime) / YEARMILLIS)
396396 let nowLimited = min([min([now, (issueTime + (3 * YEARMILLIS))]), OLD_STAKING_DEADL])
397397 let curPeriod = min([((now - issueTime) / YEARMILLIS), 2])
398398 let eff = getLands(userAddrOpt, contracts[dappStaking], contracts[dappAcres])
399399 let curPeriodDistribution = distributionByPeriod(curPeriod)
400400 let $t079143 = if ((lastUserPeriod == curPeriod))
401401 then {
402402 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEARMILLIS)
403403 let userPart = fraction(a0, userProportion6, M6)
404404 let effTime = (lastUserTime + fraction((nowLimited - lastUserTime), userProportion6, M6))
405405 $Tuple3(userPart, a0, effTime)
406406 }
407407 else if ((lastUserPeriod == (curPeriod - 1)))
408408 then {
409409 let a1 = fraction(distributionByPeriod((curPeriod - 1)), ((issueTime + (YEARMILLIS * curPeriod)) - lastUserTime), YEARMILLIS)
410410 let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS)
411411 let avail = (a1 + a0)
412412 let userPart = fraction(avail, userProportion6, M6)
413413 let effTime = if ((a1 >= userPart))
414414 then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 1))))
415415 else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, (userPart - a1), curPeriodDistribution))
416416 $Tuple3(userPart, avail, effTime)
417417 }
418418 else {
419419 let a2 = fraction(distributionByPeriod((curPeriod - 2)), ((issueTime + (YEARMILLIS * (curPeriod - 1))) - lastUserTime), YEARMILLIS)
420420 let a1 = distributionByPeriod((curPeriod - 1))
421421 let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS)
422422 let avail = ((a2 + a1) + a0)
423423 let userPart = fraction(avail, userProportion6, M6)
424424 let effTime = if ((a2 >= userPart))
425425 then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 2))))
426426 else if (((a2 + a1) >= userPart))
427427 then ((issueTime + (YEARMILLIS * (curPeriod - 1))) + fraction(YEARMILLIS, (userPart - a2), distributionByPeriod((curPeriod - 1))))
428428 else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, ((userPart - a2) - a1), curPeriodDistribution))
429429 $Tuple3(userPart, avail, effTime)
430430 }
431431 let userAmount = $t079143._1
432432 let userAvailable = $t079143._2
433433 let effLastTime = $t079143._3
434434 let sLandDailyAmount = fraction(fraction(curPeriodDistribution, DAYMILLIS, YEARMILLIS), 25, eff[idxTotalPieces])
435435 let amountLeftTotal = valueOrElse(getInteger(contracts[dappWlg], stakersAmountLeftKey), 0)
436436 let userTemp = fraction(userAmount, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres]))
437437 let bankFromUser = fraction(userTemp, BANK_FEE, M6)
438438 let robbedUser = (userTemp - bankFromUser)
439439 let unrobbedUser = fraction(userAvailable, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres]))
440440 [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]
441441 }
442442
443443
444444 let M6_ = 1000000
445445
446446 let M8_ = 100000000
447447
448448 let TEAM_SHARE = 200000
449449
450450 let ACTIVITY_SHARE = 100000
451451
452452 let PLAYER_SHARE = 400000
453453
454454 let YEAR_MILLIS = 31557600000
455455
456456 let DAY_MS = 86400000
457457
458458 let ISSUE10 = 1000000000
459459
460460 let PLAYERS10_SHARE = 800000
461461
462462 let MARKETING10_SHARE = 100000
463463
464464 let TEAM10_SHARE = 100000
465465
466466 let NEW_STAKING_START = 1731279600000
467467
468468 let marketingAddrKey = "marketingAddr"
469469
470470 let teamAdrKey = "teamAddr"
471471
472472 let lastTeamTimKey = "lastClaimedTime_team"
473473
474474 let teamAmtLeftKey = "teamAmountLeft"
475475
476476 let lastActivitiesTimKey = "lastClaimedTime_activities"
477477
478478 let actAmtLeftKey = "activitiesAmountLeft"
479479
480480 let stakersAmtLeftKey = "stakersAmountLeft"
481481
482482 func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
483483
484484
485485 func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_))
486486
487487
488488 let wlgIssue10TimeKey = "wlg_issue10Time"
489489
490490 let wlgIssueTimKey = "wlg_issueTime"
491491
492492 let wlgIssuedAmtKey = "wlg_issuedAmount"
493493
494494 let zbIssuedAmtKey = "zbill_issuedAmount"
495495
496496 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
497497
498498
499499 let acresStakdTotalKey = "acresStakedAmountTotal"
500500
501501 let totalFarmingPowerKey = "totalFarmingPower"
502502
503503 let dapp2Rest = 0
504504
505505 let dapp2Staking = 1
506506
507507 let dapp2Wlg = 2
508508
509509 let dapp2Puzzle = 3
510510
511511 let dapp2InvestFund = 4
512512
513513 let DEFAULT_WEEKLY_PRIZES = 5
514514
515515 let ACRES_FOR_BET = 100000000
516516
517517 let keyNftTotalIssued = "nftTotalIssued"
518518
519519 let keyNftTotalBurned = "nftTotalBurned"
520520
521521 let keyWlNftTotalStaked = "WlNftTotalStaked"
522522
523523 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
524524
525525
526526 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
527527
528528
529529 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
530530
531531 func getLevelByAcres (acres) = {
532532 let acr = ((acres + 99999999) / M8_)
533533 func checker (acc,item) = if ((item >= acr))
534534 then acc
535535 else (acc + 1)
536536
537537 let $l = levelAcres
538538 let $s = size($l)
539539 let $acc0 = 0
540540 func $f0_1 ($a,$i) = if (($i >= $s))
541541 then $a
542542 else checker($a, $l[$i])
543543
544544 func $f0_2 ($a,$i) = if (($i >= $s))
545545 then $a
546546 else throw("List size exceeds 10")
547547
548548 $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)
549549 }
550550
551551
552552 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
553553
554554
555555 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
556556 let notBonused = getFarmingPowerByAcres(acres)
557557 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
558558 }
559559
560560
561561 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
562562 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
563563 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
564564 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0)
565565 let $t079143 = getFarmingPowerByAcresAndBonus(userAcres, userBonus)
566566 let userFPbonused = $t079143._1
567567 let userFPnotBonused = $t079143._2
568568 [totalFP, userFPbonused, userFPnotBonused, userBonus]
569569 }
570570
571571
572572 let idxTotalFP = 0
573573
574574 let idxUserFPbonused = 1
575575
576576 func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = {
577577 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet")
578578 let restUsd = assetBalance(contracts[dapp2Rest], usdtId)
579579 let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection)
580580 let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId)
581581 let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId)
582582 let investFndContract = contracts[dapp2InvestFund]
583583 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0))
584584 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
585585 let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet")
586586 let now = lastBlock.timestamp
587587 let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized")
588588 let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId)
589589 let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_)
590590 let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal)
591591 let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime)
592592 let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey)))
593593 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft])
594594 let teamWlgold = assetBalance(teamAddr, wlgId)
595595 let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_)
596596 let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal)
597597 let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime)
598598 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft])
599599 let actWlgold = assetBalance(contracts[dapp2Rest], wlgId)
600600 let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime)
601601 let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS)
602602 let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))])
603603 let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2])
604604 let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking])
605605 let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod)
606606 let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod))
607607 let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1)))
608608 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS)
609609 let userAvailable = if ((lastUserPeriod == curPeriod))
610610 then a0
611611 else if ((lastUserPeriod == (curPeriod - 1)))
612612 then {
613613 let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS)
614614 (a1 + a0)
615615 }
616616 else {
617617 let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS)
618618 let a1 = distrByPeriod(issuedAmount, (curPeriod - 1))
619619 ((a2 + a1) + a0)
620620 }
621621 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
622622 let userAmount = if ((eff[idxTotalFP] != 0))
623623 then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP])
624624 else 0
625625 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
626626 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
627627 let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_)
628628 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
629629 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
630630 let user10part = if ((eff[idxTotalFP] != 0))
631631 then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
632632 else 0
633633 let newIssue10Time = max([NEW_STAKING_START, now])
634634 let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0)
635635 let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0)
636636 let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0)
637637 let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0)
638638 let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0)
639639 [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]
640640 }
641641
642642
643643 let profitAddrKey = "profitAddr"
644644
645645 let stakersAmountPaidTotalKey = "stakersAmountPaidTotal"
646646
647647 func keyStakersAmountPaidUser (addr) = ("stakersAmountPaidUser_" + addr)
648648
649649
650650 func prolog2 () = asInt(reentrantInvoke(acres2Contract, "saveLastTx", nil, nil))
651651
652652
653653 func getSwapLimitWlgold (addr) = {
654654 let lastTime = valueOrElse(getInteger(keyLastWlgTradeTimeByUser(addr)), 0)
655655 let defaultLimit = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmountByUser(addr)), 0)
656656 let lastLimitLeft = valueOrElse(getInteger(keyLastWlgTradeLimitByUser(addr)), defaultLimit)
657657 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (lastBlock.timestamp - lastTime), DAY_MILLIS))
658658 min([currentLimit, defaultLimit])
659659 }
660660
661661
662662 let idxWlgTeamAmLeft = 10
663663
664664 let idxWlgTeamAmAvailNow = 11
665665
666666 let idxWlgActAmLeft = 14
667667
668668 let idxWlgActAmAvailNow = 15
669669
670670 let idxWlgAmLeftTotal = 18
671671
672-let idxWlgUserAmAvailNow = 21
673-
674672 let idxWlgUserTotalAvail = 24
675673
676674 let idxWlgEffUserTime = 25
677675
678676 func claimInternal (addr) = {
679677 let caller = addressFromStringValue(addr)
680678 let economyContract = addressFromStringValue(economyContractStr)
681679 let curStats = getWlgStats(addr, [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract, acresContract], usdtAssetId, 0, MULT6)
682680 let now = lastBlock.timestamp
683681 let teamAmountLeft = curStats[idxWlgTeamAmLeft]
684682 let teamAmount = curStats[idxWlgTeamAmAvailNow]
685683 let actAmountLeft = curStats[idxWlgActAmLeft]
686684 let actAmount = curStats[idxWlgActAmAvailNow]
687- let userAmount = curStats[idxWlgUserAmAvailNow]
685+ let userAmount = curStats[idxWlgUserTotalAvail]
688686 let userKey = keyStakersAmountPaidUser(addr)
689687 let userTotal = curStats[idxWlgUserTotalAvail]
690688 let userEffTime = curStats[idxWlgEffUserTime]
691689 $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)
692690 }
693691
694692
695693 func claimInternal2 (addr) = {
696694 let curStats = getWlgStats2(addr, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
697695 let userTimeKey = keyLastClaimTimeByUser(addr)
698696 let lastUserTime = valueOrElse(getInteger(userTimeKey), 0)
699697 let userEffTime = curStats[ixWlgEffUserTime]
700698 if ((lastUserTime == userEffTime))
701699 then $Tuple2(nil, 0)
702700 else {
703701 let now = lastBlock.timestamp
704702 let issueTime = curStats[ixWlgIssueTime]
705703 let teamAmountLeft = curStats[ixWlgTeamAmLeft]
706704 let teamAmount = (curStats[ixWlgTeamAmAvailNow] + curStats[ixWlgTeamIssue10Amount])
707705 let teamTransfer = if ((teamAmount > 0))
708706 then [ScriptTransfer(addressFromStringValue(value(getString(teamAddrKey))), teamAmount, wlgAssetId)]
709707 else nil
710708 let actAmountLeft = curStats[ixWlgActAmLeft]
711709 let actAmount = curStats[ixWlgActAmAvailNow]
712710 let actTransfer = if ((actAmount > 0))
713711 then [ScriptTransfer(restContract, actAmount, wlgAssetId)]
714712 else nil
715713 let marketingAmount = curStats[ixWlgMarketingIssue10Amount]
716714 let marketingTransfer = if ((marketingAmount > 0))
717715 then [ScriptTransfer(addressFromStringValue(value(getString(marketingAddrKey))), marketingAmount, wlgAssetId)]
718716 else nil
719717 let userAmount = curStats[ixWlgUserAmAvailNow]
720718 let userKey = keyStakersAmountPaidUser(addr)
721719 let userTotal = (userAmount + curStats[ixWlgUser10part])
722720 let issued10Amount = curStats[ixWlgIssue10Amount]
723721 $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)
724722 }
725723 }
726724
727725
728726 func takeXpInternal (addr,delta) = {
729727 let now = lastBlock.timestamp
730728 let timeKey = keyWlgStakedTimeByUser(addr)
731729 let amountKey = keyWlgStakedAmountByUser(addr)
732730 let lastTime = valueOrElse(getInteger(timeKey), 0)
733731 let oldUser = valueOrElse(getInteger(amountKey), 0)
734732 let oldTotal = valueOrElse(getInteger(wlgStakedTotalKey), 0)
735733 let xp = fraction(fraction(xpWlg, oldUser, wlgBaseAmountXp), (lastTime - now), DAYMILLIS)
736734 $Tuple3([IntegerEntry(timeKey, now), IntegerEntry(amountKey, (oldUser + delta)), IntegerEntry(wlgStakedTotalKey, (oldTotal + delta))], xp, oldUser)
737735 }
738736
739737
740738 func openChestInternal (addr) = {
741739 let week = (height / WEEK_BLOCKS)
742740 let drawWeek = (week - 1)
743741 let numPrizes = valueOrElse(getInteger(keyNumNFT2Draw(drawWeek)), DEFAULT_WEEKLY_PRIZES)
744742 let prizesDrawn = valueOrElse(getInteger(keyNumNFTDrawn(drawWeek)), 0)
745743 let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0)
746744 if ((0 >= userTickets))
747745 then $Tuple2(nil, unit)
748746 else {
749747 let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0)
750748 if ((0 >= weekTickets))
751749 then $Tuple2([DeleteEntry(keyUserWeekTickets(addr, drawWeek))], unit)
752750 else {
753751 let entropy = value(value(blockInfoByHeight((week * WEEK_BLOCKS))).vrf)
754752 let salt = fromBase58String(split(valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
755753 let random = getRandomNumber(weekTickets, salt, entropy)
756754 if (((userTickets * numPrizes) > random))
757755 then {
758756 let issueResult = invoke(acres2Contract, "issuePickC1", [addr], nil)
759757 let winners = getString(keyWeekWinners(drawWeek))
760758 let newWinners = if (isDefined(winners))
761759 then ((value(winners) + "_") + addr)
762760 else addr
763761 $Tuple2([IntegerEntry(keyNumNFTDrawn(drawWeek), (prizesDrawn + 1)), DeleteEntry(keyUserWeekTickets(addr, drawWeek)), StringEntry(keyWeekWinners(drawWeek), newWinners)], issueResult)
764762 }
765763 else {
766764 let random1 = (getRandomNumber(9, (base58'29' + salt), entropy) + 1)
767765 let consTickets = fraction(userTickets, random1, 10)
768766 let ticketsKey = keyUserWeekTickets(addr, week)
769767 let oldTickets = valueOrElse(getInteger(ticketsKey), 0)
770768 $Tuple2(((if ((consTickets == 0))
771769 then nil
772770 else {
773771 let commonActions = [IntegerEntry(keyTotalWeekTickets(week), (valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) + consTickets)), IntegerEntry(ticketsKey, (oldTickets + consTickets))]
774772 if ((oldTickets > 0))
775773 then commonActions
776774 else (commonActions :+ IntegerEntry(keyTotalWeekParticipants(week), (valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) + 1)))
777775 }) :+ DeleteEntry(keyUserWeekTickets(addr, drawWeek))), consTickets)
778776 }
779777 }
780778 }
781779 }
782780
783781
784782 func claimTicketsInternal (addr,userBetStr) = {
785783 let week = (height / WEEK_BLOCKS)
786784 let ticketsKey = keyUserWeekTickets(addr, week)
787785 let dayBet = split(userBetStr, "_")
788786 let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0)
789787 let oldTickets = valueOrElse(getInteger(ticketsKey), 0)
790788 let deltaTickets = if ((winningBet(parseIntValue(dayBet[0])) == parseIntValue(dayBet[1])))
791789 then 1
792790 else 0
793791 let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0)
794792 let updateParticipants = if (if ((oldTickets == 0))
795793 then (deltaTickets == 1)
796794 else false)
797795 then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))]
798796 else nil
799797 $Tuple2(if ((deltaTickets == 0))
800798 then nil
801799 else ((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets)
802800 }
803801
804802
805803 @Callable(i)
806804 func constructorV1 (restAddr,marketingAddr,teamAddr,profitAddr) = if ((i.caller != this))
807805 then throw("Permission denied")
808806 else if (isDefined(getBinary(wlgAssetIdKey)))
809807 then throw("Already initialized")
810808 else {
811809 let issuedAmount = MILLION6
812810 let issue = Issue("WLGOLD", "WavesLands Gold investment token", issuedAmount, 8, true, unit, 0)
813811 let assetId = calculateAssetId(issue)
814812 [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)]
815813 }
816814
817815
818816
819817 @Callable(i)
820818 func constructorV2 (rest2Addr) = if ((i.caller != this))
821819 then throw("Permission denied")
822820 else [StringEntry(keyRest2Address(), rest2Addr)]
823821
824822
825823
826824 @Callable(i)
827825 func buyWlg (minToReceive) = {
828826 let prologResult = prolog2()
829827 if ((prologResult == prologResult))
830828 then if ((size(i.payments) != 1))
831829 then throw("exactly 1 payment must be attached")
832830 else {
833831 let pmt = i.payments[0]
834832 let usdtAmt = pmt.amount
835833 if (if (!(isDefined(pmt.assetId)))
836834 then true
837835 else (value(pmt.assetId) != usdtAssetId))
838836 then throw("USDT payments only!")
839837 else {
840838 let caller = i.caller
841839 let addr = toString(caller)
842840 if ((MINSHOPPAYMENT > usdtAmt))
843841 then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT"))
844842 else {
845843 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt)
846844 let curWlgAmount = curStats[ixWlgAmount]
847845 let wlgPrice = curStats[ixWlgPrice]
848846 let buyPrice = fraction(wlgPrice, 6, 5, CEILING)
849847 let wlgAmount = fraction(usdtAmt, MULT8, buyPrice)
850848 let maxWlg = getSwapLimitWlgold(addr)
851849 if ((wlgAmount > maxWlg))
852850 then throw((("You can get max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment"))
853851 else if ((minToReceive > wlgAmount))
854852 then throw("Price changed during operation, please try again")
855853 else {
856854 let profitAmount = (usdtAmt / 6)
857855 $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)
858856 }
859857 }
860858 }
861859 }
862860 else throw("Strict value is not equal to itself.")
863861 }
864862
865863
866864
867865 @Callable(i)
868866 func buyWlgREADONLY (address,usdtAmt) = {
869867 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt)
870868 let wlgPrice = curStats[ixWlgPrice]
871869 let buyPrice = fraction(wlgPrice, 6, 5, CEILING)
872870 let wlgAmount = fraction(usdtAmt, MULT8, buyPrice)
873871 let maxWlg = getSwapLimitWlgold(address)
874872 let maxUsdt = fraction(maxWlg, buyPrice, MULT8)
875873 let profitAmount = (usdtAmt / 6)
876874 $Tuple2(nil, [wlgAmount, MINSHOPPAYMENT, maxUsdt, profitAmount])
877875 }
878876
879877
880878
881879 @Callable(i)
882880 func sellWlg (minAmount) = {
883881 let prologResult = prolog2()
884882 if ((prologResult == prologResult))
885883 then if ((size(i.payments) != 1))
886884 then throw("exactly 1 payment must be attached")
887885 else {
888886 let pmt = i.payments[0]
889887 let wlgAmt = pmt.amount
890888 let caller = i.caller
891889 let addr = toString(caller)
892890 let maxWlg = getSwapLimitWlgold(addr)
893891 if ((wlgAmt > maxWlg))
894892 then throw((("You can spend max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment"))
895893 else if (if (!(isDefined(pmt.assetId)))
896894 then true
897895 else (value(pmt.assetId) != wlgAssetId))
898896 then throw("WLGOLD payments only!")
899897 else {
900898 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
901899 let curWlgAmount = curStats[ixWlgAmount]
902900 let sellPrice = (curStats[ixWlgPrice] / 2)
903901 let usdtAmt = fraction(wlgAmt, sellPrice, MULT8)
904902 if ((MINSHOPPAYMENT > usdtAmt))
905903 then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT"))
906904 else if ((minAmount > usdtAmt))
907905 then throw("Price changed during operation, please try again")
908906 else {
909907 let profitAmount = (usdtAmt / 5)
910908 $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)
911909 }
912910 }
913911 }
914912 else throw("Strict value is not equal to itself.")
915913 }
916914
917915
918916
919917 @Callable(i)
920918 func sellWlgREADONLY (address,wlgAmt) = {
921919 let maxWlg = getSwapLimitWlgold(address)
922920 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
923921 let sellPrice = (curStats[ixWlgPrice] / 2)
924922 let usdtAmt = fraction(wlgAmt, sellPrice, MULT8)
925923 let minWlg = fraction(MINSHOPPAYMENT, MULT8, sellPrice)
926924 let profitAmount = (usdtAmt / 5)
927925 $Tuple2(nil, [usdtAmt, minWlg, maxWlg, profitAmount])
928926 }
929927
930928
931929
932930 @Callable(i)
933931 func claim () = {
934932 let prologResult = prolog2()
935933 if ((prologResult == prologResult))
936934 then if ((size(i.payments) != 0))
937935 then throw("No payments required")
938936 else {
939937 let $t01640016469 = claimInternal2(toString(i.caller))
940938 let actions = $t01640016469._1
941939 let wlgClaimedAmount = $t01640016469._2
942940 $Tuple2((actions :+ ScriptTransfer(i.caller, wlgClaimedAmount, wlgAssetId)), prologResult)
943941 }
944942 else throw("Strict value is not equal to itself.")
945943 }
946944
947945
948946
949947 @Callable(i)
950948 func onStakeUnstakeLand (addr) = if (if (if ((i.caller != stakingContract))
951949 then (i.caller != acresContract)
952950 else false)
953951 then (i.caller != acres2Contract)
954952 else false)
955953 then throw("Permission denied")
956954 else {
957955 let $t01678916846 = claimInternal2(addr)
958956 if (($t01678916846 == $t01678916846))
959957 then {
960958 let wlgClaimedAmount = $t01678916846._2
961959 let actions = $t01678916846._1
962960 $Tuple2(if ((wlgClaimedAmount > 0))
963961 then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId))
964962 else actions, wlgClaimedAmount)
965963 }
966964 else throw("Strict value is not equal to itself.")
967965 }
968966
969967
970968
971969 @Callable(i)
972970 func onStakeUnstakeLandOld (addr) = if (if (if ((i.caller != stakingContract))
973971 then (i.caller != acresContract)
974972 else false)
975973 then (i.caller != acres2Contract)
976974 else false)
977975 then throw("Permission denied")
978976 else {
979977 let $t01720317259 = claimInternal(addr)
980978 if (($t01720317259 == $t01720317259))
981979 then {
982980 let wlgClaimedAmount = $t01720317259._2
983981 let actions = $t01720317259._1
984982 $Tuple2(if ((wlgClaimedAmount > 0))
985983 then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId))
986984 else nil, wlgClaimedAmount)
987985 }
988986 else throw("Strict value is not equal to itself.")
989987 }
990988
991989
992990
993991 @Callable(i)
994992 func burnWlgold (wlgAmt) = if ((i.caller != acres2Contract))
995993 then throw("Permission denied")
996994 else {
997995 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
998996 if ((wlgAmt > curStats[ixWlgWlg]))
999997 then throw(((("Only " + fixedPoint(curStats[ixWlgWlg], 8)) + " WLGOLD left on contract, can't burn ") + fixedPoint(wlgAmt, 8)))
1000998 else {
1001999 let wlgAmountLeft = (curStats[ixWlgAmount] - wlgAmt)
10021000 $Tuple2([Burn(wlgAssetId, wlgAmt), IntegerEntry(wlgIssuedAmountKey, wlgAmountLeft)], wlgAmountLeft)
10031001 }
10041002 }
10051003
10061004
10071005
10081006 @Callable(i)
10091007 func betForTicket (bet) = {
10101008 let prologResult = prolog2()
10111009 if ((prologResult == prologResult))
10121010 then if ((size(i.payments) != 0))
10131011 then throw("No payments required")
10141012 else {
10151013 let addr = toString(i.caller)
10161014 let drawWeek = ((height / WEEK_BLOCKS) - 1)
10171015 let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0)
10181016 let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0)
10191017 if (if ((userTickets > 0))
10201018 then (weekTickets > 0)
10211019 else false)
10221020 then throw("Please open the chest first")
10231021 else if (((bet / 4) != 0))
10241022 then throw("Invalid bet: should be 0..3")
10251023 else {
10261024 let moment = (height % DAY_BLOCKS)
10271025 if ((moment > (DAY_BLOCKS - 3)))
10281026 then throw((("Cannot bet: the day is almost ended, please wait " + toString((DAY_BLOCKS - moment))) + " blocks"))
10291027 else {
10301028 let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(addr)), 0)
10311029 if ((ACRES_FOR_BET > stakedAcres))
10321030 then throw((("You need to stake at least " + fixedPoint(ACRES_FOR_BET, 8)) + " ACRES to bet"))
10331031 else {
10341032 let tomorrow = ((height / DAY_BLOCKS) + 1)
10351033 let betKey = keyUserBet(addr)
10361034 let oldUserBetStr = getString(betKey)
10371035 let newBetEntry = StringEntry(betKey, ((toString(tomorrow) + "_") + toString(bet)))
10381036 if (isDefined(oldUserBetStr))
10391037 then {
10401038 let userBet = value(oldUserBetStr)
10411039 if ((split(userBet, "_")[0] == toString(tomorrow)))
10421040 then throw("You already bet for tomorrow")
10431041 else {
10441042 let r = claimTicketsInternal(addr, userBet)
10451043 $Tuple2((r._1 :+ newBetEntry), r._2)
10461044 }
10471045 }
10481046 else $Tuple2([newBetEntry], 0)
10491047 }
10501048 }
10511049 }
10521050 }
10531051 else throw("Strict value is not equal to itself.")
10541052 }
10551053
10561054
10571055
10581056 @Callable(i)
10591057 func takeWlgXp (addr) = if ((i.caller != stakingContract))
10601058 then throw("Permission denied")
10611059 else {
10621060 let $t01986119904 = takeXpInternal(addr, 0)
10631061 let actions = $t01986119904._1
10641062 let xp = $t01986119904._2
10651063 $Tuple2(actions, xp)
10661064 }
10671065
10681066
10691067
10701068 @Callable(i)
10711069 func checkWlgXpREADONLY (addr) = {
10721070 let $t01998120029 = takeXpInternal(addr, 0)
10731071 let ignored = $t01998120029._1
10741072 let deltaXP = $t01998120029._2
10751073 let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP)
10761074 let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP)
10771075 $Tuple2(nil, (lvlPoints :+ newXP))
10781076 }
10791077
10801078
10811079
10821080 @Callable(i)
10831081 func setNumPrizes (numPrizes) = if ((i.caller != this))
10841082 then throw("Permission denied")
10851083 else {
10861084 let week = (height / WEEK_BLOCKS)
10871085 $Tuple2([IntegerEntry(keyNumNFT2Draw(week), numPrizes)], numPrizes)
10881086 }
10891087
10901088
10911089
10921090 @Callable(i)
10931091 func openChest () = {
10941092 let prologResult = prolog2()
10951093 if ((prologResult == prologResult))
10961094 then if ((size(i.payments) != 0))
10971095 then throw("No payments required")
10981096 else {
10991097 let drawWeek = ((height / WEEK_BLOCKS) - 1)
11001098 let addr = toString(i.caller)
11011099 let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0)
11021100 if ((0 >= userTickets))
11031101 then throw("No gems to open the chest")
11041102 else openChestInternal(addr)
11051103 }
11061104 else throw("Strict value is not equal to itself.")
11071105 }
11081106
11091107
11101108
11111109 @Callable(i)
11121110 func addGemsFor (addr,deltaTickets) = if ((i.caller != this))
11131111 then throw("Permission denied")
11141112 else {
11151113 let week = (height / WEEK_BLOCKS)
11161114 let ticketsKey = keyUserWeekTickets(addr, week)
11171115 let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0)
11181116 let oldTickets = valueOrElse(getInteger(ticketsKey), 0)
11191117 let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0)
11201118 let updateParticipants = if (if ((oldTickets == 0))
11211119 then (deltaTickets == 1)
11221120 else false)
11231121 then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))]
11241122 else nil
11251123 $Tuple2(((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets)
11261124 }
11271125
11281126

github/deemru/w8io/169f3d6 
103.60 ms