tx · 53rW9Ba4zwe6GQjwSpduXNstE5AytXWAybVmptYug5aP

3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy:  -0.03600000 Waves

2024.12.15 15:49 [3415701] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves

{ "type": 13, "id": "53rW9Ba4zwe6GQjwSpduXNstE5AytXWAybVmptYug5aP", "fee": 3600000, "feeAssetId": null, "timestamp": 1734267002280, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "2zGCgujbTwwWiFkYXe6idUYQE9cUzUy1oXXrDawL424Wj5jnLmuz34Scnot4PgfL4anFcdtteH4ruy1aGiTtmFXu" ], "script": "base64:BgJSCAISBgoECAgICBIDCgEIEgMKAQESBAoCCAESAwoBARIECgIIARIAEgMKAQgSAwoBCBIDCgEBEgMKAQESAwoBCBIDCgEIEgMKAQESABIECgIIAbkBAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ4AIDC1y8ADk1JTlNIT1BQQVlNRU5UAKCNBgAKREFZX01JTExJUwCAuJkpAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAKREFZX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACgCwMJAAACAQFUBQckbWF0Y2gwADwJAAIBAg1Vbmtub3duIGNoYWluAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgAKVlJGX09GRlNFVAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAAAAwkAAAIBAVQFByRtYXRjaDAAkPlFCQACAQINVW5rbm93biBjaGFpbgALdXN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QDNCAIJAM0IAgUSdXBkYXRlUGFydGljaXBhbnRzCQEMSW50ZWdlckVudHJ5AgUKdGlja2V0c0tleQkAZAIFCm9sZFRpY2tldHMFDGRlbHRhVGlja2V0cwkBDEludGVnZXJFbnRyeQIJARNrZXlUb3RhbFdlZWtUaWNrZXRzAQUEd2VlawkAZAIFD29sZFRvdGFsVGlja2V0cwUMZGVsdGFUaWNrZXRzBQxkZWx0YVRpY2tldHMApTUtJQ==", "height": 3415701, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fv5kpH7SLtaykk6Jh46YWctaXLcZDnzU6jZR3Gu6nwhk Next: none Diff:
OldNewDifferences
8787
8888 let IdxCfgInvestFundDapp = 5
8989
90+let IdxCfgMarketDapp = 6
91+
9092 func keyRestCfg () = "%s__restConfig"
9193
9294
125127 let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp)
126128
127129 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
130+
131+let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp)
128132
129133 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
130134
989993
990994
991995 @Callable(i)
992-func burnWlgold (wlgAmt) = if ((i.caller != acres2Contract))
996+func burnWlgold (wlgAmt) = if (if ((i.caller != acres2Contract))
997+ then (i.caller != marketContract)
998+ else false)
993999 then throw("Permission denied")
9941000 else {
9951001 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
10571063 func takeWlgXp (addr) = if ((i.caller != stakingContract))
10581064 then throw("Permission denied")
10591065 else {
1060- let $t01992619969 = takeXpInternal(addr, 0)
1061- let actions = $t01992619969._1
1062- let xp = $t01992619969._2
1066+ let $t01995619999 = takeXpInternal(addr, 0)
1067+ let actions = $t01995619999._1
1068+ let xp = $t01995619999._2
10631069 $Tuple2(actions, xp)
10641070 }
10651071
10671073
10681074 @Callable(i)
10691075 func checkWlgXpREADONLY (addr) = {
1070- let $t02004620094 = takeXpInternal(addr, 0)
1071- let ignored = $t02004620094._1
1072- let deltaXP = $t02004620094._2
1076+ let $t02007620124 = takeXpInternal(addr, 0)
1077+ let ignored = $t02007620124._1
1078+ let deltaXP = $t02007620124._2
10731079 let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP)
10741080 let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP)
10751081 $Tuple2(nil, (lvlPoints :+ newXP))
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
90+let IdxCfgMarketDapp = 6
91+
9092 func keyRestCfg () = "%s__restConfig"
9193
9294
9395 func keyRest2Address () = "%s__rest2Addr"
9496
9597
9698 func keyRestAddress () = "%s__restAddr"
9799
98100
99101 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
100102
101103 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
102104
103105
104106 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
105107
106108
107109 let IdxCfgStakingDapp = 1
108110
109111 let IdxCfgAcresDapp = 8
110112
111113 let restCfg = readRestCfgOrFail(restContract)
112114
113115 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
114116
115117 let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp)
116118
117119 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
118120
119121 let rest2Cfg = readRestCfgOrFail(rest2Contract)
120122
121123 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
122124
123125 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
124126
125127 let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp)
126128
127129 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
130+
131+let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp)
128132
129133 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
130134
131135
132136 let wlgAssetIdKey = "wlg_assetId"
133137
134138 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
135139
136140 func keyUserBet (addr) = ("userBet_" + addr)
137141
138142
139143 func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
140144
141145
142146 func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
143147
144148
145149 func keyTotalWeekParticipants (week) = ("totalWeekParticipants_" + toString(week))
146150
147151
148152 func keyNumNFT2Draw (week) = ("numNFT2Draw_" + toString(week))
149153
150154
151155 func keyNumNFTDrawn (week) = ("numNFTDrawn_" + toString(week))
152156
153157
154158 func keyWeekWinners (week) = ("weekWinners_" + toString(week))
155159
156160
157161 func winningBet (day) = {
158162 let b = (day * DAY_BLOCKS)
159163 let h = if ((b > VRF_OFFSET))
160164 then b
161165 else (b + VRF_OFFSET)
162166 (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4)
163167 }
164168
165169
166170 let ixWlgAmount = 0
167171
168172 let ixWlgWlg = 1
169173
170174 let ixWlgPrice = 2
171175
172176 let ixWlgIssueTime = 8
173177
174178 let ixWlgTeamAmLeft = 11
175179
176180 let ixWlgTeamAmAvailNow = 12
177181
178182 let ixWlgActAmLeft = 15
179183
180184 let ixWlgActAmAvailNow = 16
181185
182186 let ixWlgAmLeftTotal = 19
183187
184188 let ixWlgUserAmAvailNow = 23
185189
186190 let ixWlgEffUserTime = 24
187191
188192 let ixWlgIssue10Amount = 25
189193
190194 let ixWlgMarketingIssue10Amount = 26
191195
192196 let ixWlgTeamIssue10Amount = 27
193197
194198 let ixWlgUser10part = 28
195199
196200 let ixWlgIssue10Time = 29
197201
198202 func asInt (v) = match v {
199203 case n: Int =>
200204 n
201205 case _ =>
202206 throw("fail to cast into Int")
203207 }
204208
205209
206210 func fixedPoint (val,decimals) = {
207211 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
208212 let lowPart = toString((val % tenPow))
209213 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
210214 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
211215 }
212216
213217
214218 func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue))
215219 then throw("maxValue should be > 0")
216220 else {
217221 let randomHash = sha256_16Kb((salt + entropy))
218222 (toInt(randomHash) % maxValue)
219223 }
220224
221225
222226 let SCALE8 = 100000000
223227
224228 let xpLevelScale = 3200
225229
226230 let xpLevelRecipPow = 4000
227231
228232 let numPointsOnLevelUp = 3
229233
230234 let wlgBaseAmountXp = 100000000000
231235
232236 func keyUserXP (addr) = ("userXP_" + addr)
233237
234238
235239 func keyUserLevel (addr) = ("userLevel_" + addr)
236240
237241
238242 let xpWlg = 10000
239243
240244 func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8)
241245
242246
243247 func levelUp (currLevel,newXP) = {
244248 let newLevel = levelByXP(newXP)
245249 [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))]
246250 }
247251
248252
249253 let M6 = 1000000
250254
251255 let M8 = 100000000
252256
253257 let MILLION6 = 100000000000000
254258
255259 let TEAMSHARE = 200000
256260
257261 let ACTIVITYSHARE = 100000
258262
259263 let PLAYERSHARE = 400000
260264
261265 let YEARMILLIS = 31557600000
262266
263267 let DAYMILLIS = 86400000
264268
265269 let BANK_FEE = 50000
266270
267271 let ch = take(drop(this.bytes, 1), 1)
268272
269273 let USDT_TVL_CORRECTION = match ch {
270274 case _ =>
271275 if ((base58'2W' == $match0))
272276 then 1208630000
273277 else if ((base58'2T' == $match0))
274278 then 0
275279 else throw("Unknown chain")
276280 }
277281
278282 let teamAddrKey = "teamAddr"
279283
280284 let lastTeamTimeKey = "lastClaimedTime_team"
281285
282286 let teamAmountLeftKey = "teamAmountLeft"
283287
284288 let lastActivitiesTimeKey = "lastClaimedTime_activities"
285289
286290 let actAmountLeftKey = "activitiesAmountLeft"
287291
288292 let stakersAmountLeftKey = "stakersAmountLeft"
289293
290294 func keyLastClaimedTimeByUserOld (addr) = ("lastClaimedTimeUserOld_" + addr)
291295
292296
293297 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
294298
295299
296300 func keyLastWlgTradeLimitByUser (addr) = ("lastWlgLimitUser_" + addr)
297301
298302
299303 func distributionByPeriod (period) = fraction(MILLION6, (PLAYERSHARE * (period + 1)), (6 * M6))
300304
301305
302306 let wlgIssueTimeKey = "wlg_issueTime"
303307
304308 let wlgIssuedAmountKey = "wlg_issuedAmount"
305309
306310 let zbIssuedAmountKey = "zbill_issuedAmount"
307311
308312 func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr)
309313
310314
311315 let acresStakedTotalKey = "acresStakedAmountTotal"
312316
313317 func keyWlgStakedAmountByUser (addr) = ("wlgStakedAmountByUser_" + addr)
314318
315319
316320 let wlgStakedTotalKey = "wlgStakedAmountTotal"
317321
318322 func keyWlgStakedTimeByUser (addr) = ("wlgStakedTimeByUser_" + addr)
319323
320324
321325 let dappRest = 0
322326
323327 let dappStaking = 1
324328
325329 let dappEconomy = 2
326330
327331 let dappWlg = 3
328332
329333 let dappPuzzle = 4
330334
331335 let dappInvestFund = 5
332336
333337 let dappAcres = 6
334338
335339 func getLands (userAddrStrOrEmpty,stakingContract,acresContract) = {
336340 let props = split(valueOrElse(getString(stakingContract, "resTypesProportions"), "0_0_0_0_0_0"), "_")
337341 func adder (acc,item) = (acc + parseIntValue(item))
338342
339343 let totalPieces = {
340344 let $l = props
341345 let $s = size($l)
342346 let $acc0 = 0
343347 func $f0_1 ($a,$i) = if (($i >= $s))
344348 then $a
345349 else adder($a, $l[$i])
346350
347351 func $f0_2 ($a,$i) = if (($i >= $s))
348352 then $a
349353 else throw("List size exceeds 6")
350354
351355 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
352356 }
353357 let userPieces = valueOrElse(getInteger(stakingContract, ("stakedPiecesByOwner_" + userAddrStrOrEmpty)), 0)
354358 let totalAcres = valueOrElse(getInteger(acresContract, acresStakedTotalKey), 0)
355359 let userAcres = valueOrElse(getInteger(acresContract, keyAcresStakedAmountByUser(userAddrStrOrEmpty)), 0)
356360 [totalPieces, userPieces, totalAcres, userAcres]
357361 }
358362
359363
360364 let idxTotalPieces = 0
361365
362366 let idxUserPieces = 1
363367
364368 let idxTotalAcres = 2
365369
366370 let idxUserAcres = 3
367371
368372 let OLD_STAKING_DEADL = 1733346000000
369373
370374 func getWlgStats (userAddrOpt,contracts,usdtId,usdtBalanceCorrection,userProportion6) = {
371375 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet")
372376 let economyUsd = assetBalance(contracts[dappEconomy], usdtId)
373377 let restUsd = assetBalance(contracts[dappRest], usdtId)
374378 let wlgUsd = (assetBalance(contracts[dappWlg], usdtId) - usdtBalanceCorrection)
375379 let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId)
376380 let investFndContract = contracts[dappInvestFund]
377381 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmountKey), 0))
378382 let totalFundsUsd = ((economyUsd + wlgUsd) + investFundTotal)
379383 let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet")
380384 let now = lastBlock.timestamp
381385 let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized")
382386 let bankWlgold = assetBalance(contracts[dappStaking], wlgId)
383387 let teamTotal = fraction(MILLION6, TEAMSHARE, M6)
384388 let teamAmountLeft = valueOrElse(getInteger(contracts[dappWlg], teamAmountLeftKey), teamTotal)
385389 let lastTeamTime = valueOrElse(getInteger(contracts[dappWlg], lastTeamTimeKey), issueTime)
386390 let teamAddr = addressFromStringValue(value(getString(contracts[dappWlg], teamAddrKey)))
387391 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEARMILLIS)), teamAmountLeft])
388392 let teamWlgold = assetBalance(teamAddr, wlgId)
389393 let actTotal = fraction(MILLION6, ACTIVITYSHARE, M6)
390394 let actAmountLeft = valueOrElse(getInteger(contracts[dappWlg], actAmountLeftKey), actTotal)
391395 let lastActivitiesTime = valueOrElse(getInteger(contracts[dappWlg], lastActivitiesTimeKey), issueTime)
392396 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEARMILLIS)), actAmountLeft])
393397 let actWlgold = assetBalance(contracts[dappRest], wlgId)
394398 let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUserOld(userAddrOpt)), issueTime)
395399 let lastUserPeriod = ((lastUserTime - issueTime) / YEARMILLIS)
396400 let nowLimited = min([min([now, (issueTime + (3 * YEARMILLIS))]), OLD_STAKING_DEADL])
397401 let curPeriod = min([((now - issueTime) / YEARMILLIS), 2])
398402 let eff = getLands(userAddrOpt, contracts[dappStaking], contracts[dappAcres])
399403 let curPeriodDistribution = distributionByPeriod(curPeriod)
400404 let $t079143 = if ((lastUserPeriod == curPeriod))
401405 then {
402406 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEARMILLIS)
403407 let userPart = fraction(a0, userProportion6, M6)
404408 let effTime = (lastUserTime + fraction((nowLimited - lastUserTime), userProportion6, M6))
405409 $Tuple3(userPart, a0, effTime)
406410 }
407411 else if ((lastUserPeriod == (curPeriod - 1)))
408412 then {
409413 let a1 = fraction(distributionByPeriod((curPeriod - 1)), ((issueTime + (YEARMILLIS * curPeriod)) - lastUserTime), YEARMILLIS)
410414 let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS)
411415 let avail = (a1 + a0)
412416 let userPart = fraction(avail, userProportion6, M6)
413417 let effTime = if ((a1 >= userPart))
414418 then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 1))))
415419 else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, (userPart - a1), curPeriodDistribution))
416420 $Tuple3(userPart, avail, effTime)
417421 }
418422 else {
419423 let a2 = fraction(distributionByPeriod((curPeriod - 2)), ((issueTime + (YEARMILLIS * (curPeriod - 1))) - lastUserTime), YEARMILLIS)
420424 let a1 = distributionByPeriod((curPeriod - 1))
421425 let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS)
422426 let avail = ((a2 + a1) + a0)
423427 let userPart = fraction(avail, userProportion6, M6)
424428 let effTime = if ((a2 >= userPart))
425429 then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 2))))
426430 else if (((a2 + a1) >= userPart))
427431 then ((issueTime + (YEARMILLIS * (curPeriod - 1))) + fraction(YEARMILLIS, (userPart - a2), distributionByPeriod((curPeriod - 1))))
428432 else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, ((userPart - a2) - a1), curPeriodDistribution))
429433 $Tuple3(userPart, avail, effTime)
430434 }
431435 let userAmount = $t079143._1
432436 let userAvailable = $t079143._2
433437 let effLastTime = $t079143._3
434438 let sLandDailyAmount = fraction(fraction(curPeriodDistribution, DAYMILLIS, YEARMILLIS), 25, eff[idxTotalPieces])
435439 let amountLeftTotal = valueOrElse(getInteger(contracts[dappWlg], stakersAmountLeftKey), 0)
436440 let userTemp = fraction(userAmount, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres]))
437441 let bankFromUser = fraction(userTemp, BANK_FEE, M6)
438442 let robbedUser = (userTemp - bankFromUser)
439443 let unrobbedUser = fraction(userAvailable, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres]))
440444 [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]
441445 }
442446
443447
444448 let M6_ = 1000000
445449
446450 let M8_ = 100000000
447451
448452 let TEAM_SHARE = 200000
449453
450454 let ACTIVITY_SHARE = 100000
451455
452456 let PLAYER_SHARE = 400000
453457
454458 let YEAR_MILLIS = 31557600000
455459
456460 let DAY_MS = 86400000
457461
458462 let ISSUE10 = 1000000000
459463
460464 let PLAYERS10_SHARE = 800000
461465
462466 let MARKETING10_SHARE = 100000
463467
464468 let TEAM10_SHARE = 100000
465469
466470 let NEW_STAKING_START = 1731279600000
467471
468472 let marketingAddrKey = "marketingAddr"
469473
470474 let teamAdrKey = "teamAddr"
471475
472476 let lastTeamTimKey = "lastClaimedTime_team"
473477
474478 let teamAmtLeftKey = "teamAmountLeft"
475479
476480 let lastActivitiesTimKey = "lastClaimedTime_activities"
477481
478482 let actAmtLeftKey = "activitiesAmountLeft"
479483
480484 let stakersAmtLeftKey = "stakersAmountLeft"
481485
482486 func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
483487
484488
485489 func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_))
486490
487491
488492 let wlgIssue10TimeKey = "wlg_issue10Time"
489493
490494 let wlgIssueTimKey = "wlg_issueTime"
491495
492496 let wlgIssuedAmtKey = "wlg_issuedAmount"
493497
494498 let zbIssuedAmtKey = "zbill_issuedAmount"
495499
496500 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
497501
498502
499503 let acresStakdTotalKey = "acresStakedAmountTotal"
500504
501505 let totalFarmingPowerKey = "totalFarmingPower"
502506
503507 let dapp2Rest = 0
504508
505509 let dapp2Staking = 1
506510
507511 let dapp2Wlg = 2
508512
509513 let dapp2Puzzle = 3
510514
511515 let dapp2InvestFund = 4
512516
513517 let DEFAULT_WEEKLY_PRIZES = 5
514518
515519 let ACRES_FOR_BET = 100000000
516520
517521 let keyNftTotalIssued = "nftTotalIssued"
518522
519523 let keyNftTotalBurned = "nftTotalBurned"
520524
521525 let keyWlNftTotalStaked = "WlNftTotalStaked"
522526
523527 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
524528
525529
526530 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
527531
528532
529533 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
530534
531535 func getLevelByAcres (acres) = {
532536 let acr = ((acres + 99999999) / M8_)
533537 func checker (acc,item) = if ((item >= acr))
534538 then acc
535539 else (acc + 1)
536540
537541 let $l = levelAcres
538542 let $s = size($l)
539543 let $acc0 = 0
540544 func $f0_1 ($a,$i) = if (($i >= $s))
541545 then $a
542546 else checker($a, $l[$i])
543547
544548 func $f0_2 ($a,$i) = if (($i >= $s))
545549 then $a
546550 else throw("List size exceeds 10")
547551
548552 $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)
549553 }
550554
551555
552556 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
553557
554558
555559 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
556560 let notBonused = getFarmingPowerByAcres(acres)
557561 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
558562 }
559563
560564
561565 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
562566 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
563567 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
564568 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0)
565569 let $t079143 = getFarmingPowerByAcresAndBonus(userAcres, userBonus)
566570 let userFPbonused = $t079143._1
567571 let userFPnotBonused = $t079143._2
568572 [totalFP, userFPbonused, userFPnotBonused, userBonus]
569573 }
570574
571575
572576 let idxTotalFP = 0
573577
574578 let idxUserFPbonused = 1
575579
576580 func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = {
577581 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet")
578582 let restUsd = assetBalance(contracts[dapp2Rest], usdtId)
579583 let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection)
580584 let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId)
581585 let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId)
582586 let investFndContract = contracts[dapp2InvestFund]
583587 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0))
584588 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
585589 let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet")
586590 let now = lastBlock.timestamp
587591 let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized")
588592 let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId)
589593 let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_)
590594 let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal)
591595 let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime)
592596 let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey)))
593597 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft])
594598 let teamWlgold = assetBalance(teamAddr, wlgId)
595599 let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_)
596600 let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal)
597601 let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime)
598602 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft])
599603 let actWlgold = assetBalance(contracts[dapp2Rest], wlgId)
600604 let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime)
601605 let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS)
602606 let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))])
603607 let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2])
604608 let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking])
605609 let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod)
606610 let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod))
607611 let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1)))
608612 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS)
609613 let userAvailable = if ((lastUserPeriod == curPeriod))
610614 then a0
611615 else if ((lastUserPeriod == (curPeriod - 1)))
612616 then {
613617 let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS)
614618 (a1 + a0)
615619 }
616620 else {
617621 let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS)
618622 let a1 = distrByPeriod(issuedAmount, (curPeriod - 1))
619623 ((a2 + a1) + a0)
620624 }
621625 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
622626 let userAmount = if ((eff[idxTotalFP] != 0))
623627 then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP])
624628 else 0
625629 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
626630 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
627631 let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_)
628632 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
629633 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
630634 let user10part = if ((eff[idxTotalFP] != 0))
631635 then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
632636 else 0
633637 let newIssue10Time = max([NEW_STAKING_START, now])
634638 let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0)
635639 let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0)
636640 let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0)
637641 let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0)
638642 let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0)
639643 [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]
640644 }
641645
642646
643647 let profitAddrKey = "profitAddr"
644648
645649 let stakersAmountPaidTotalKey = "stakersAmountPaidTotal"
646650
647651 func keyStakersAmountPaidUser (addr) = ("stakersAmountPaidUser_" + addr)
648652
649653
650654 func prolog2 () = asInt(reentrantInvoke(acres2Contract, "saveLastTx", nil, nil))
651655
652656
653657 func getSwapLimitWlgold (addr) = {
654658 let lastTime = valueOrElse(getInteger(keyLastWlgTradeTimeByUser(addr)), 0)
655659 let defaultLimit = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmountByUser(addr)), 0)
656660 let lastLimitLeft = valueOrElse(getInteger(keyLastWlgTradeLimitByUser(addr)), defaultLimit)
657661 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (lastBlock.timestamp - lastTime), DAY_MILLIS))
658662 min([currentLimit, defaultLimit])
659663 }
660664
661665
662666 let idxWlgTeamAmLeft = 10
663667
664668 let idxWlgTeamAmAvailNow = 11
665669
666670 let idxWlgActAmLeft = 14
667671
668672 let idxWlgActAmAvailNow = 15
669673
670674 let idxWlgAmLeftTotal = 18
671675
672676 let idxWlgUserTotalAvail = 24
673677
674678 let idxWlgEffUserTime = 25
675679
676680 func claimInternal (addr) = {
677681 let caller = addressFromStringValue(addr)
678682 let economyContract = addressFromStringValue(economyContractStr)
679683 let curStats = getWlgStats(addr, [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract, acresContract], usdtAssetId, 0, MULT6)
680684 let now = lastBlock.timestamp
681685 let teamAmountLeft = curStats[idxWlgTeamAmLeft]
682686 let teamAmount = curStats[idxWlgTeamAmAvailNow]
683687 let actAmountLeft = curStats[idxWlgActAmLeft]
684688 let actAmount = curStats[idxWlgActAmAvailNow]
685689 let userAmount = curStats[idxWlgUserTotalAvail]
686690 let userKey = keyStakersAmountPaidUser(addr)
687691 let userTotal = curStats[idxWlgUserTotalAvail]
688692 let userEffTime = curStats[idxWlgEffUserTime]
689693 $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)
690694 }
691695
692696
693697 func claimInternal2 (addr) = {
694698 let curStats = getWlgStats2(addr, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
695699 let userTimeKey = keyLastClaimTimeByUser(addr)
696700 let lastUserTime = valueOrElse(getInteger(userTimeKey), 0)
697701 let userEffTime = curStats[ixWlgEffUserTime]
698702 if ((lastUserTime == userEffTime))
699703 then $Tuple2(nil, 0)
700704 else {
701705 let now = lastBlock.timestamp
702706 let issueTime = curStats[ixWlgIssueTime]
703707 let teamAmountLeft = curStats[ixWlgTeamAmLeft]
704708 let teamAmount = (curStats[ixWlgTeamAmAvailNow] + curStats[ixWlgTeamIssue10Amount])
705709 let teamActions = if ((teamAmount > 0))
706710 then [IntegerEntry(teamAmountLeftKey, ((teamAmountLeft - teamAmount) + curStats[ixWlgTeamIssue10Amount])), IntegerEntry(lastTeamTimeKey, now), ScriptTransfer(addressFromStringValue(value(getString(teamAddrKey))), teamAmount, wlgAssetId)]
707711 else nil
708712 let actAmountLeft = curStats[ixWlgActAmLeft]
709713 let actAmount = curStats[ixWlgActAmAvailNow]
710714 let actActions = if ((actAmount > 0))
711715 then [IntegerEntry(actAmountLeftKey, (actAmountLeft - actAmount)), IntegerEntry(lastActivitiesTimeKey, now), ScriptTransfer(restContract, actAmount, wlgAssetId)]
712716 else nil
713717 let marketingAmount = curStats[ixWlgMarketingIssue10Amount]
714718 let marketingTransfer = if ((marketingAmount > 0))
715719 then [ScriptTransfer(addressFromStringValue(value(getString(marketingAddrKey))), marketingAmount, wlgAssetId)]
716720 else nil
717721 let userAmount = curStats[ixWlgUserAmAvailNow]
718722 let userKey = keyStakersAmountPaidUser(addr)
719723 let userTotal = (userAmount + curStats[ixWlgUser10part])
720724 let issued10Amount = curStats[ixWlgIssue10Amount]
721725 $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(userTimeKey, userEffTime)] ++ teamActions) ++ actActions) ++ marketingTransfer), userTotal)
722726 }
723727 }
724728
725729
726730 func takeXpInternal (addr,delta) = {
727731 let now = lastBlock.timestamp
728732 let timeKey = keyWlgStakedTimeByUser(addr)
729733 let amountKey = keyWlgStakedAmountByUser(addr)
730734 let lastTime = valueOrElse(getInteger(timeKey), 0)
731735 let oldUser = valueOrElse(getInteger(amountKey), 0)
732736 let oldTotal = valueOrElse(getInteger(wlgStakedTotalKey), 0)
733737 let xp = fraction(fraction(xpWlg, oldUser, wlgBaseAmountXp), (lastTime - now), DAYMILLIS)
734738 $Tuple3([IntegerEntry(timeKey, now), IntegerEntry(amountKey, (oldUser + delta)), IntegerEntry(wlgStakedTotalKey, (oldTotal + delta))], xp, oldUser)
735739 }
736740
737741
738742 func openChestInternal (addr) = {
739743 let week = (height / WEEK_BLOCKS)
740744 let drawWeek = (week - 1)
741745 let numPrizes = valueOrElse(getInteger(keyNumNFT2Draw(drawWeek)), DEFAULT_WEEKLY_PRIZES)
742746 let prizesDrawn = valueOrElse(getInteger(keyNumNFTDrawn(drawWeek)), 0)
743747 let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0)
744748 if ((0 >= userTickets))
745749 then $Tuple2(nil, unit)
746750 else {
747751 let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0)
748752 if ((0 >= weekTickets))
749753 then $Tuple2([DeleteEntry(keyUserWeekTickets(addr, drawWeek))], unit)
750754 else {
751755 let entropy = value(value(blockInfoByHeight((week * WEEK_BLOCKS))).vrf)
752756 let salt = fromBase58String(split(valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1])
753757 let random = getRandomNumber(weekTickets, salt, entropy)
754758 if (((userTickets * numPrizes) > random))
755759 then {
756760 let issueResult = invoke(acres2Contract, "issuePickC1", [addr], nil)
757761 let winners = getString(keyWeekWinners(drawWeek))
758762 let newWinners = if (isDefined(winners))
759763 then ((value(winners) + "_") + addr)
760764 else addr
761765 $Tuple2([IntegerEntry(keyNumNFTDrawn(drawWeek), (prizesDrawn + 1)), DeleteEntry(keyUserWeekTickets(addr, drawWeek)), StringEntry(keyWeekWinners(drawWeek), newWinners)], issueResult)
762766 }
763767 else {
764768 let random1 = (getRandomNumber(9, (base58'29' + salt), entropy) + 1)
765769 let consTickets = fraction(userTickets, random1, 10)
766770 let ticketsKey = keyUserWeekTickets(addr, week)
767771 let oldTickets = valueOrElse(getInteger(ticketsKey), 0)
768772 $Tuple2(((if ((consTickets == 0))
769773 then nil
770774 else {
771775 let commonActions = [IntegerEntry(keyTotalWeekTickets(week), (valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) + consTickets)), IntegerEntry(ticketsKey, (oldTickets + consTickets))]
772776 if ((oldTickets > 0))
773777 then commonActions
774778 else (commonActions :+ IntegerEntry(keyTotalWeekParticipants(week), (valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) + 1)))
775779 }) :+ DeleteEntry(keyUserWeekTickets(addr, drawWeek))), consTickets)
776780 }
777781 }
778782 }
779783 }
780784
781785
782786 func claimTicketsInternal (addr,userBetStr) = {
783787 let week = (height / WEEK_BLOCKS)
784788 let ticketsKey = keyUserWeekTickets(addr, week)
785789 let dayBet = split(userBetStr, "_")
786790 let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0)
787791 let oldTickets = valueOrElse(getInteger(ticketsKey), 0)
788792 let deltaTickets = if ((winningBet(parseIntValue(dayBet[0])) == parseIntValue(dayBet[1])))
789793 then 1
790794 else 0
791795 let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0)
792796 let updateParticipants = if (if ((oldTickets == 0))
793797 then (deltaTickets == 1)
794798 else false)
795799 then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))]
796800 else nil
797801 $Tuple2(if ((deltaTickets == 0))
798802 then nil
799803 else ((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets)
800804 }
801805
802806
803807 @Callable(i)
804808 func constructorV1 (restAddr,marketingAddr,teamAddr,profitAddr) = if ((i.caller != this))
805809 then throw("Permission denied")
806810 else if (isDefined(getBinary(wlgAssetIdKey)))
807811 then throw("Already initialized")
808812 else {
809813 let issuedAmount = MILLION6
810814 let issue = Issue("WLGOLD", "WavesLands Gold investment token", issuedAmount, 8, true, unit, 0)
811815 let assetId = calculateAssetId(issue)
812816 [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)]
813817 }
814818
815819
816820
817821 @Callable(i)
818822 func constructorV2 (rest2Addr) = if ((i.caller != this))
819823 then throw("Permission denied")
820824 else [StringEntry(keyRest2Address(), rest2Addr)]
821825
822826
823827
824828 @Callable(i)
825829 func buyWlg (minToReceive) = {
826830 let prologResult = prolog2()
827831 if ((prologResult == prologResult))
828832 then if ((size(i.payments) != 1))
829833 then throw("exactly 1 payment must be attached")
830834 else {
831835 let pmt = i.payments[0]
832836 let usdtAmt = pmt.amount
833837 if (if (!(isDefined(pmt.assetId)))
834838 then true
835839 else (value(pmt.assetId) != usdtAssetId))
836840 then throw("USDT payments only!")
837841 else {
838842 let caller = i.caller
839843 let addr = toString(caller)
840844 if ((MINSHOPPAYMENT > usdtAmt))
841845 then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT"))
842846 else {
843847 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt)
844848 let curWlgAmount = curStats[ixWlgAmount]
845849 let wlgPrice = curStats[ixWlgPrice]
846850 let buyPrice = fraction(wlgPrice, 6, 5, CEILING)
847851 let wlgAmount = fraction(usdtAmt, MULT8, buyPrice)
848852 let maxWlg = getSwapLimitWlgold(addr)
849853 if ((wlgAmount > maxWlg))
850854 then throw((("You can get max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment"))
851855 else if ((minToReceive > wlgAmount))
852856 then throw("Price changed during operation, please try again")
853857 else {
854858 let profitAmount = (usdtAmt / 6)
855859 $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)
856860 }
857861 }
858862 }
859863 }
860864 else throw("Strict value is not equal to itself.")
861865 }
862866
863867
864868
865869 @Callable(i)
866870 func buyWlgREADONLY (address,usdtAmt) = {
867871 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt)
868872 let wlgPrice = curStats[ixWlgPrice]
869873 let buyPrice = fraction(wlgPrice, 6, 5, CEILING)
870874 let wlgAmount = fraction(usdtAmt, MULT8, buyPrice)
871875 let maxWlg = getSwapLimitWlgold(address)
872876 let maxUsdt = fraction(maxWlg, buyPrice, MULT8)
873877 let profitAmount = (usdtAmt / 6)
874878 $Tuple2(nil, [wlgAmount, MINSHOPPAYMENT, maxUsdt, profitAmount])
875879 }
876880
877881
878882
879883 @Callable(i)
880884 func sellWlg (minAmount) = {
881885 let prologResult = prolog2()
882886 if ((prologResult == prologResult))
883887 then if ((size(i.payments) != 1))
884888 then throw("exactly 1 payment must be attached")
885889 else {
886890 let pmt = i.payments[0]
887891 let wlgAmt = pmt.amount
888892 let caller = i.caller
889893 let addr = toString(caller)
890894 let maxWlg = getSwapLimitWlgold(addr)
891895 if ((wlgAmt > maxWlg))
892896 then throw((("You can spend max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment"))
893897 else if (if (!(isDefined(pmt.assetId)))
894898 then true
895899 else (value(pmt.assetId) != wlgAssetId))
896900 then throw("WLGOLD payments only!")
897901 else {
898902 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
899903 let curWlgAmount = curStats[ixWlgAmount]
900904 let sellPrice = (curStats[ixWlgPrice] / 2)
901905 let usdtAmt = fraction(wlgAmt, sellPrice, MULT8)
902906 if ((MINSHOPPAYMENT > usdtAmt))
903907 then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT"))
904908 else if ((minAmount > usdtAmt))
905909 then throw("Price changed during operation, please try again")
906910 else {
907911 let profitAmount = (usdtAmt / 5)
908912 $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)
909913 }
910914 }
911915 }
912916 else throw("Strict value is not equal to itself.")
913917 }
914918
915919
916920
917921 @Callable(i)
918922 func sellWlgREADONLY (address,wlgAmt) = {
919923 let maxWlg = getSwapLimitWlgold(address)
920924 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
921925 let sellPrice = (curStats[ixWlgPrice] / 2)
922926 let usdtAmt = fraction(wlgAmt, sellPrice, MULT8)
923927 let minWlg = fraction(MINSHOPPAYMENT, MULT8, sellPrice)
924928 let profitAmount = (usdtAmt / 5)
925929 $Tuple2(nil, [usdtAmt, minWlg, maxWlg, profitAmount])
926930 }
927931
928932
929933
930934 @Callable(i)
931935 func claim () = {
932936 let prologResult = prolog2()
933937 if ((prologResult == prologResult))
934938 then if ((size(i.payments) != 0))
935939 then throw("No payments required")
936940 else {
937941 let $t01643916508 = claimInternal2(toString(i.caller))
938942 let actions = $t01643916508._1
939943 let wlgClaimedAmount = $t01643916508._2
940944 $Tuple2((actions :+ ScriptTransfer(i.caller, wlgClaimedAmount, wlgAssetId)), prologResult)
941945 }
942946 else throw("Strict value is not equal to itself.")
943947 }
944948
945949
946950
947951 @Callable(i)
948952 func onStakeUnstakeLand (addr) = if (if (if ((i.caller != stakingContract))
949953 then (i.caller != acresContract)
950954 else false)
951955 then (i.caller != acres2Contract)
952956 else false)
953957 then throw("Permission denied")
954958 else {
955959 let $t01682816885 = claimInternal2(addr)
956960 if (($t01682816885 == $t01682816885))
957961 then {
958962 let wlgClaimedAmount = $t01682816885._2
959963 let actions = $t01682816885._1
960964 $Tuple2(if ((wlgClaimedAmount > 0))
961965 then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId))
962966 else actions, wlgClaimedAmount)
963967 }
964968 else throw("Strict value is not equal to itself.")
965969 }
966970
967971
968972
969973 @Callable(i)
970974 func onStakeUnstakeLandOld (addr) = if (if (if ((i.caller != stakingContract))
971975 then (i.caller != acresContract)
972976 else false)
973977 then (i.caller != acres2Contract)
974978 else false)
975979 then throw("Permission denied")
976980 else {
977981 let $t01726817324 = claimInternal(addr)
978982 if (($t01726817324 == $t01726817324))
979983 then {
980984 let wlgClaimedAmount = $t01726817324._2
981985 let actions = $t01726817324._1
982986 $Tuple2(if ((wlgClaimedAmount > 0))
983987 then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId))
984988 else nil, wlgClaimedAmount)
985989 }
986990 else throw("Strict value is not equal to itself.")
987991 }
988992
989993
990994
991995 @Callable(i)
992-func burnWlgold (wlgAmt) = if ((i.caller != acres2Contract))
996+func burnWlgold (wlgAmt) = if (if ((i.caller != acres2Contract))
997+ then (i.caller != marketContract)
998+ else false)
993999 then throw("Permission denied")
9941000 else {
9951001 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
9961002 if ((wlgAmt > curStats[ixWlgWlg]))
9971003 then throw(((("Only " + fixedPoint(curStats[ixWlgWlg], 8)) + " WLGOLD left on contract, can't burn ") + fixedPoint(wlgAmt, 8)))
9981004 else {
9991005 let wlgAmountLeft = (curStats[ixWlgAmount] - wlgAmt)
10001006 $Tuple2([Burn(wlgAssetId, wlgAmt), IntegerEntry(wlgIssuedAmountKey, wlgAmountLeft)], wlgAmountLeft)
10011007 }
10021008 }
10031009
10041010
10051011
10061012 @Callable(i)
10071013 func betForTicket (bet) = {
10081014 let prologResult = prolog2()
10091015 if ((prologResult == prologResult))
10101016 then if ((size(i.payments) != 0))
10111017 then throw("No payments required")
10121018 else {
10131019 let addr = toString(i.caller)
10141020 let drawWeek = ((height / WEEK_BLOCKS) - 1)
10151021 let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0)
10161022 let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0)
10171023 if (if ((userTickets > 0))
10181024 then (weekTickets > 0)
10191025 else false)
10201026 then throw("Please open the chest first")
10211027 else if (((bet / 4) != 0))
10221028 then throw("Invalid bet: should be 0..3")
10231029 else {
10241030 let moment = (height % DAY_BLOCKS)
10251031 if ((moment > (DAY_BLOCKS - 3)))
10261032 then throw((("Cannot bet: the day is almost ended, please wait " + toString((DAY_BLOCKS - moment))) + " blocks"))
10271033 else {
10281034 let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(addr)), 0)
10291035 if ((ACRES_FOR_BET > stakedAcres))
10301036 then throw((("You need to stake at least " + fixedPoint(ACRES_FOR_BET, 8)) + " ACRES to bet"))
10311037 else {
10321038 let tomorrow = ((height / DAY_BLOCKS) + 1)
10331039 let betKey = keyUserBet(addr)
10341040 let oldUserBetStr = getString(betKey)
10351041 let newBetEntry = StringEntry(betKey, ((toString(tomorrow) + "_") + toString(bet)))
10361042 if (isDefined(oldUserBetStr))
10371043 then {
10381044 let userBet = value(oldUserBetStr)
10391045 if ((split(userBet, "_")[0] == toString(tomorrow)))
10401046 then throw("You already bet for tomorrow")
10411047 else {
10421048 let r = claimTicketsInternal(addr, userBet)
10431049 $Tuple2((r._1 :+ newBetEntry), r._2)
10441050 }
10451051 }
10461052 else $Tuple2([newBetEntry], 0)
10471053 }
10481054 }
10491055 }
10501056 }
10511057 else throw("Strict value is not equal to itself.")
10521058 }
10531059
10541060
10551061
10561062 @Callable(i)
10571063 func takeWlgXp (addr) = if ((i.caller != stakingContract))
10581064 then throw("Permission denied")
10591065 else {
1060- let $t01992619969 = takeXpInternal(addr, 0)
1061- let actions = $t01992619969._1
1062- let xp = $t01992619969._2
1066+ let $t01995619999 = takeXpInternal(addr, 0)
1067+ let actions = $t01995619999._1
1068+ let xp = $t01995619999._2
10631069 $Tuple2(actions, xp)
10641070 }
10651071
10661072
10671073
10681074 @Callable(i)
10691075 func checkWlgXpREADONLY (addr) = {
1070- let $t02004620094 = takeXpInternal(addr, 0)
1071- let ignored = $t02004620094._1
1072- let deltaXP = $t02004620094._2
1076+ let $t02007620124 = takeXpInternal(addr, 0)
1077+ let ignored = $t02007620124._1
1078+ let deltaXP = $t02007620124._2
10731079 let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP)
10741080 let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP)
10751081 $Tuple2(nil, (lvlPoints :+ newXP))
10761082 }
10771083
10781084
10791085
10801086 @Callable(i)
10811087 func setNumPrizes (numPrizes) = if ((i.caller != this))
10821088 then throw("Permission denied")
10831089 else {
10841090 let week = (height / WEEK_BLOCKS)
10851091 $Tuple2([IntegerEntry(keyNumNFT2Draw(week), numPrizes)], numPrizes)
10861092 }
10871093
10881094
10891095
10901096 @Callable(i)
10911097 func openChest () = {
10921098 let prologResult = prolog2()
10931099 if ((prologResult == prologResult))
10941100 then if ((size(i.payments) != 0))
10951101 then throw("No payments required")
10961102 else {
10971103 let drawWeek = ((height / WEEK_BLOCKS) - 1)
10981104 let addr = toString(i.caller)
10991105 let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0)
11001106 if ((0 >= userTickets))
11011107 then throw("No gems to open the chest")
11021108 else openChestInternal(addr)
11031109 }
11041110 else throw("Strict value is not equal to itself.")
11051111 }
11061112
11071113
11081114
11091115 @Callable(i)
11101116 func addGemsFor (addr,deltaTickets) = if ((i.caller != this))
11111117 then throw("Permission denied")
11121118 else {
11131119 let week = (height / WEEK_BLOCKS)
11141120 let ticketsKey = keyUserWeekTickets(addr, week)
11151121 let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0)
11161122 let oldTickets = valueOrElse(getInteger(ticketsKey), 0)
11171123 let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0)
11181124 let updateParticipants = if (if ((oldTickets == 0))
11191125 then (deltaTickets == 1)
11201126 else false)
11211127 then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))]
11221128 else nil
11231129 $Tuple2(((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets)
11241130 }
11251131
11261132

github/deemru/w8io/169f3d6 
103.18 ms