tx · HufQu1DVfAEaEuuLoxtc6rQ1qUonBdJXMiXcidcbEtsP

3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy:  -0.02200000 Waves

2024.11.11 01:54 [3365978] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves

{ "type": 13, "id": "HufQu1DVfAEaEuuLoxtc6rQ1qUonBdJXMiXcidcbEtsP", "fee": 2200000, "feeAssetId": null, "timestamp": 1731279287474, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "AtSc8HJowVfiWUyY37f6xEHQX6JKrUN1hhqfyr5y2FFezZdfXuGwse4Xue5aVxiQtMWeg9M3TC4q7WpHNSq2KR1" ], "script": "base64:BgJCCAISBgoECAgICBIDCgEIEgMKAQESBAoCCAESAwoBARIECgIIARIAEgMKAQgSAwoBARIDCgEBEgASAwoBCBIDCgEIggEACkRBWV9NSUxMSVMAgLiZKQAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECDVVua25vd24gY2hhaW4AFWRlZmF1bHRSZXN0QWRkcmVzc1N0cgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAIjM1BRQ3V2RmJ2aDRMa1BVbnJuVTF6M2puYkExcDltM1dOaHYDCQAAAgEBVAUHJG1hdGNoMAIjM011bWtHR3p0Q0tBWHBXRHF4a2Rkb2ZxWFNVYnFRa3ZTSnkJAAIBAg1Vbmtub3duIGNoYWluABBhY3JlczJBZ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/E=", "height": 3365978, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4zrpgvkKSbPSNSYzyD5RCXUQ2CkMbK67EmRnVbSt4QF Next: Dheq9Gk5fXDhVgC4STbA5oqVKC1Wxaurk1Vz4yK8Et7Y Diff:
OldNewDifferences
198198
199199 let TEAM10_SHARE = 100000
200200
201-let NEW_STAKING_START = 1727740800000
201+let NEW_STAKING_START = 1731279600000
202202
203203 let marketingAddrKey = "marketingAddr"
204204
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let DAY_MILLIS = 86400000
55
66 let chain = take(drop(this.bytes, 1), 1)
77
88 let usdtAssetId = match chain {
99 case _ =>
1010 if ((base58'2W' == $match0))
1111 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
1212 else if ((base58'2T' == $match0))
1313 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
1414 else throw("Unknown chain")
1515 }
1616
1717 let defaultRestAddressStr = match chain {
1818 case _ =>
1919 if ((base58'2W' == $match0))
2020 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
2121 else if ((base58'2T' == $match0))
2222 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
2323 else throw("Unknown chain")
2424 }
2525
2626 let acres2AddressStr = match chain {
2727 case _ =>
2828 if ((base58'2W' == $match0))
2929 then "3P4UH3T9nXpMNpUmSmQjPmEz3G85t3zn6eA"
3030 else if ((base58'2T' == $match0))
3131 then "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh"
3232 else throw("Unknown chain")
3333 }
3434
3535 let arbitrageDelay = match chain {
3636 case _ =>
3737 if ((base58'2W' == $match0))
3838 then DAY_MILLIS
3939 else if ((base58'2T' == $match0))
4040 then 60000
4141 else throw("Unknown chain")
4242 }
4343
4444 let SEP = "__"
4545
4646 let MULT6 = 1000000
4747
4848 let MULT8 = 100000000
4949
5050 let MINSHOPPAYMENT = 100000
5151
5252 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
5353
5454
5555 let IdxCfgStakingDapp = 1
5656
5757 let IdxCfgWlgDapp = 4
5858
5959 let IdxCfgPuzzlePoolDapp = 5
6060
6161 let IdxCfgInvestFundDapp = 6
6262
6363 let IdxCfgAcresDapp = 8
6464
6565 func keyRestCfg () = "%s__restConfig"
6666
6767
6868 func keyRestAddress () = "%s__restAddr"
6969
7070
7171 func keyRest2Address () = "%s__rest2Addr"
7272
7373
7474 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
7575
7676
7777 func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
7878
7979
8080 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
8181
8282 let restCfg = readRestCfgOrFail(restContract)
8383
8484 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
8585
8686 let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp)
8787
8888 let puzzlePoolContract = getContractAddressOrFail(restCfg, IdxCfgPuzzlePoolDapp)
8989
9090 let investFundContract = getContractAddressOrFail(restCfg, IdxCfgInvestFundDapp)
9191
9292 let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp)
9393
9494 let wlgAssetIdKey = "wlg_assetId"
9595
9696 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
9797
9898 func asInt (v) = match v {
9999 case n: Int =>
100100 n
101101 case _ =>
102102 throw("fail to cast into Int")
103103 }
104104
105105
106106 func fixedPoint (val,decimals) = {
107107 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
108108 let lowPart = toString((val % tenPow))
109109 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
110110 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
111111 }
112112
113113
114114 let SCALE8 = 100000000
115115
116116 let xpLevelScale = 3200
117117
118118 let xpLevelRecipPow = 4000
119119
120120 let numPointsOnLevelUp = 3
121121
122122 let wlgBaseAmountXp = 100000000000
123123
124124 func keyUserXP (addr) = ("userXP_" + addr)
125125
126126
127127 func keyUserLevel (addr) = ("userLevel_" + addr)
128128
129129
130130 let xpWlg = 10000
131131
132132 func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8)
133133
134134
135135 func levelUp (currLevel,newXP) = {
136136 let newLevel = levelByXP(newXP)
137137 [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))]
138138 }
139139
140140
141141 let MILLION6 = 100000000000000
142142
143143 let PLAYERSHARE = 400000
144144
145145 let DAYMILLIS = 86400000
146146
147147 let teamAddrKey = "teamAddr"
148148
149149 let lastTeamTimeKey = "lastClaimedTime_team"
150150
151151 let teamAmountLeftKey = "teamAmountLeft"
152152
153153 let lastActivitiesTimeKey = "lastClaimedTime_activities"
154154
155155 let actAmountLeftKey = "activitiesAmountLeft"
156156
157157 let stakersAmountLeftKey = "stakersAmountLeft"
158158
159159 func keyLastArbTimeByUser (addr) = ("lastArbTimeUser_" + addr)
160160
161161
162162 let wlgIssueTimeKey = "wlg_issueTime"
163163
164164 let wlgIssuedAmountKey = "wlg_issuedAmount"
165165
166166 func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr)
167167
168168
169169 func keyWlgStakedAmountByUser (addr) = ("wlgStakedAmountByUser_" + addr)
170170
171171
172172 let wlgStakedTotalKey = "wlgStakedAmountTotal"
173173
174174 func keyWlgStakedTimeByUser (addr) = ("wlgStakedTimeByUser_" + addr)
175175
176176
177177 let M6_ = 1000000
178178
179179 let M8_ = 100000000
180180
181181 let TEAM_SHARE = 200000
182182
183183 let ACTIVITY_SHARE = 100000
184184
185185 let PLAYER_SHARE = 400000
186186
187187 let YEAR_MILLIS = 31557600000
188188
189189 let DAY_MS = 86400000
190190
191191 let DAY_BLOCKS = 1440
192192
193193 let ISSUE10 = 1000000000
194194
195195 let PLAYERS10_SHARE = 800000
196196
197197 let MARKETING10_SHARE = 100000
198198
199199 let TEAM10_SHARE = 100000
200200
201-let NEW_STAKING_START = 1727740800000
201+let NEW_STAKING_START = 1731279600000
202202
203203 let marketingAddrKey = "marketingAddr"
204204
205205 let teamAdrKey = "teamAddr"
206206
207207 let lastTeamTimKey = "lastClaimedTime_team"
208208
209209 let teamAmtLeftKey = "teamAmountLeft"
210210
211211 let lastActivitiesTimKey = "lastClaimedTime_activities"
212212
213213 let actAmtLeftKey = "activitiesAmountLeft"
214214
215215 let stakersAmtLeftKey = "stakersAmountLeft"
216216
217217 func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
218218
219219
220220 func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_))
221221
222222
223223 let wlgIssue10TimeKey = "wlg_issue10Time"
224224
225225 let wlgIssueTimKey = "wlg_issueTime"
226226
227227 let wlgIssuedAmtKey = "wlg_issuedAmount"
228228
229229 let zbIssuedAmtKey = "zbill_issuedAmount"
230230
231231 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
232232
233233
234234 let totalFarmingPowerKey = "totalFarmingPower"
235235
236236 let dapp2Rest = 0
237237
238238 let dapp2Staking = 1
239239
240240 let dapp2Wlg = 2
241241
242242 let dapp2Puzzle = 3
243243
244244 let dapp2InvestFund = 4
245245
246246 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
247247
248248 func getLevelByAcres (acres) = {
249249 let acr = ((acres + 99999999) / M8_)
250250 func checker (acc,item) = if ((item >= acr))
251251 then acc
252252 else (acc + 1)
253253
254254 let $l = levelAcres
255255 let $s = size($l)
256256 let $acc0 = 0
257257 func $f0_1 ($a,$i) = if (($i >= $s))
258258 then $a
259259 else checker($a, $l[$i])
260260
261261 func $f0_2 ($a,$i) = if (($i >= $s))
262262 then $a
263263 else throw("List size exceeds 10")
264264
265265 $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)
266266 }
267267
268268
269269 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
270270
271271
272272 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
273273 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
274274 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
275275 let userFP = getFarmingPowerByAcres(userAcres)
276276 [totalFP, userFP]
277277 }
278278
279279
280280 func keyUserBet (addr) = ("userBet_" + addr)
281281
282282
283283 func keyUserTickets (addr) = ("userTickets_" + addr)
284284
285285
286286 let keyTotalTickets = "totalTickets"
287287
288288 func winningBet (day) = (toInt(value(value(blockInfoByHeight((day * DAY_BLOCKS))).vrf)) % 4)
289289
290290
291291 let idxTotalFP = 0
292292
293293 let idxUserFP = 1
294294
295295 let ixWlgAmount = 0
296296
297297 let ixWlgWlg = 1
298298
299299 let ixWlgPrice = 2
300300
301301 let ixWlgIssueTime = 8
302302
303303 let ixWlgTeamAmLeft = 11
304304
305305 let ixWlgTeamAmAvailNow = 12
306306
307307 let ixWlgActAmLeft = 15
308308
309309 let ixWlgActAmAvailNow = 16
310310
311311 let ixWlgAmLeftTotal = 19
312312
313313 let ixWlgUserAmAvailNow = 23
314314
315315 let ixWlgEffUserTime = 24
316316
317317 let ixWlgIssue10Amount = 25
318318
319319 let ixWlgMarketingIssue10Amount = 26
320320
321321 let ixWlgTeamIssue10Amount = 27
322322
323323 let ixWlgUser10part = 28
324324
325325 let ixWlgIssue10Time = 29
326326
327327 func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = {
328328 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet")
329329 let restUsd = assetBalance(contracts[dapp2Rest], usdtId)
330330 let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection)
331331 let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId)
332332 let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId)
333333 let investFndContract = contracts[dapp2InvestFund]
334334 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0))
335335 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
336336 let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet")
337337 let now = lastBlock.timestamp
338338 let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized")
339339 let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId)
340340 let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_)
341341 let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal)
342342 let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime)
343343 let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey)))
344344 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft])
345345 let teamWlgold = assetBalance(teamAddr, wlgId)
346346 let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_)
347347 let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal)
348348 let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime)
349349 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft])
350350 let actWlgold = assetBalance(contracts[dapp2Rest], wlgId)
351351 let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime)
352352 let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS)
353353 let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))])
354354 let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2])
355355 let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking])
356356 let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod)
357357 let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod))
358358 let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1)))
359359 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS)
360360 let userAvailable = if ((lastUserPeriod == curPeriod))
361361 then a0
362362 else if ((lastUserPeriod == (curPeriod - 1)))
363363 then {
364364 let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS)
365365 (a1 + a0)
366366 }
367367 else {
368368 let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS)
369369 let a1 = distrByPeriod(issuedAmount, (curPeriod - 1))
370370 ((a2 + a1) + a0)
371371 }
372372 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
373373 let userAmount = if ((eff[idxTotalFP] != 0))
374374 then fraction(userAvailable, eff[idxUserFP], eff[idxTotalFP])
375375 else 0
376376 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
377377 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
378378 let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_)
379379 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
380380 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
381381 let user10part = if ((eff[idxTotalFP] != 0))
382382 then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFP], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
383383 else 0
384384 let newIssue10Time = max([NEW_STAKING_START, now])
385385 [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]]
386386 }
387387
388388
389389 let net = take(drop(this.bytes, 1), 1)
390390
391391 let defaultRest2AddressStr = match net {
392392 case _ =>
393393 if ((base58'2W' == $match0))
394394 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
395395 else if ((base58'2T' == $match0))
396396 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
397397 else throw("Unknown chain")
398398 }
399399
400400 let profitAddrKey = "profitAddr"
401401
402402 let stakersAmountPaidTotalKey = "stakersAmountPaidTotal"
403403
404404 func keyStakersAmountPaidUser (addr) = ("stakersAmountPaidUser_" + addr)
405405
406406
407407 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
408408
409409 let acres2Contract = addressFromStringValue(acres2AddressStr)
410410
411411 func prolog2 () = asInt(reentrantInvoke(acres2Contract, "saveLastTx", nil, nil))
412412
413413
414414 func getSwapLimitWlg (addr) = {
415415 let lastTime = valueOrElse(getInteger(keyLastArbTimeByUser(addr)), 0)
416416 let now = lastBlock.timestamp
417417 if ((arbitrageDelay > (now - lastTime)))
418418 then throw((("Arbitrages are possible once a " + toString((arbitrageDelay / 60000))) + "min"))
419419 else valueOrElse(getInteger(acres2Contract, keyAcresStakedAmountByUser(addr)), 0)
420420 }
421421
422422
423423 func claimInternal2 (addr) = {
424424 let curStats = getWlgStats2(addr, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
425425 let userTimeKey = keyLastClaimTimeByUser(addr)
426426 let lastUserTime = valueOrElse(getInteger(userTimeKey), 0)
427427 let userEffTime = curStats[ixWlgEffUserTime]
428428 if ((lastUserTime == userEffTime))
429429 then $Tuple2(nil, 0)
430430 else {
431431 let now = lastBlock.timestamp
432432 let issueTime = curStats[ixWlgIssueTime]
433433 let teamAmountLeft = curStats[ixWlgTeamAmLeft]
434434 let teamAmount = (curStats[ixWlgTeamAmAvailNow] + curStats[ixWlgTeamIssue10Amount])
435435 let teamTransfer = if ((teamAmount > 0))
436436 then [ScriptTransfer(addressFromStringValue(value(getString(teamAddrKey))), teamAmount, wlgAssetId)]
437437 else nil
438438 let actAmountLeft = curStats[ixWlgActAmLeft]
439439 let actAmount = curStats[ixWlgActAmAvailNow]
440440 let actTransfer = if ((actAmount > 0))
441441 then [ScriptTransfer(restContract, actAmount, wlgAssetId)]
442442 else nil
443443 let marketingAmount = curStats[ixWlgMarketingIssue10Amount]
444444 let marketingTransfer = if ((marketingAmount > 0))
445445 then [ScriptTransfer(addressFromStringValue(value(getString(marketingAddrKey))), marketingAmount, wlgAssetId)]
446446 else nil
447447 let userAmount = curStats[ixWlgUserAmAvailNow]
448448 let userKey = keyStakersAmountPaidUser(addr)
449449 let userTotal = (userAmount + curStats[ixWlgUser10part])
450450 let issued10Amount = curStats[ixWlgIssue10Amount]
451451 $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)
452452 }
453453 }
454454
455455
456456 func takeXpInternal (addr,delta) = {
457457 let now = lastBlock.timestamp
458458 let timeKey = keyWlgStakedTimeByUser(addr)
459459 let amountKey = keyWlgStakedAmountByUser(addr)
460460 let lastTime = valueOrElse(getInteger(timeKey), 0)
461461 let oldUser = valueOrElse(getInteger(amountKey), 0)
462462 let oldTotal = valueOrElse(getInteger(wlgStakedTotalKey), 0)
463463 let xp = fraction(fraction(xpWlg, oldUser, wlgBaseAmountXp), (lastTime - now), DAYMILLIS)
464464 $Tuple3([IntegerEntry(timeKey, now), IntegerEntry(amountKey, (oldUser + delta)), IntegerEntry(wlgStakedTotalKey, (oldTotal + delta))], xp, oldUser)
465465 }
466466
467467
468468 func claimTicketsInternal (addr,userBetStr) = {
469469 let totalTicketsKey = keyTotalTickets
470470 let ticketsKey = keyUserTickets(addr)
471471 let betKey = keyUserBet(addr)
472472 let dayBet = split(userBetStr, "_")
473473 let oldTotalTickets = valueOrElse(getInteger(totalTicketsKey), 0)
474474 let oldTickets = valueOrElse(getInteger(ticketsKey), 0)
475475 let deltaTickets = if ((winningBet(parseIntValue(dayBet[0])) == parseIntValue(dayBet[1])))
476476 then 1
477477 else 0
478478 $Tuple2([IntegerEntry(ticketsKey, (oldTickets + deltaTickets)), IntegerEntry(totalTicketsKey, (oldTotalTickets + deltaTickets)), DeleteEntry(betKey)], deltaTickets)
479479 }
480480
481481
482482 @Callable(i)
483483 func constructorV1 (restAddr,marketingAddr,teamAddr,profitAddr) = if ((i.caller != this))
484484 then throw("Permission denied")
485485 else if (isDefined(getBinary(wlgAssetIdKey)))
486486 then throw("Already initialized")
487487 else {
488488 let issuedAmount = MILLION6
489489 let issue = Issue("WLGOLD", "WavesLands Gold investment token", issuedAmount, 8, true, unit, 0)
490490 let assetId = calculateAssetId(issue)
491491 [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)]
492492 }
493493
494494
495495
496496 @Callable(i)
497497 func constructorV2 (rest2Addr) = if ((i.caller != this))
498498 then throw("Permission denied")
499499 else [StringEntry(keyRest2Address(), rest2Addr)]
500500
501501
502502
503503 @Callable(i)
504504 func buyWlg (minAmount) = {
505505 let prologResult = prolog2()
506506 if ((prologResult == prologResult))
507507 then if ((size(i.payments) != 1))
508508 then throw("exactly 1 payment must be attached")
509509 else {
510510 let pmt = i.payments[0]
511511 let usdtAmt = pmt.amount
512512 if (if (!(isDefined(pmt.assetId)))
513513 then true
514514 else (value(pmt.assetId) != usdtAssetId))
515515 then throw("USDT payments only!")
516516 else {
517517 let caller = i.caller
518518 let addr = toString(caller)
519519 if ((MINSHOPPAYMENT > usdtAmt))
520520 then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT"))
521521 else {
522522 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt)
523523 let curWlgAmount = curStats[ixWlgAmount]
524524 let wlgPrice = curStats[ixWlgPrice]
525525 let buyPrice = fraction(wlgPrice, 6, 5)
526526 let wlgAmount = fraction(usdtAmt, MULT8, buyPrice)
527527 let maxWlg = getSwapLimitWlg(addr)
528528 if ((wlgAmount > maxWlg))
529529 then throw((("You can get max " + fixedPoint(maxWlg, 8)) + " WLGOLD"))
530530 else if ((minAmount > wlgAmount))
531531 then throw("Price changed during operation, please try again")
532532 else {
533533 let profitAmount = (usdtAmt / 6)
534534 $Tuple2([Reissue(wlgAssetId, wlgAmount, true), IntegerEntry(wlgIssuedAmountKey, (curWlgAmount + wlgAmount)), IntegerEntry(keyLastArbTimeByUser(addr), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(profitAddrKey))), profitAmount, usdtAssetId), ScriptTransfer(caller, wlgAmount, wlgAssetId)], prologResult)
535535 }
536536 }
537537 }
538538 }
539539 else throw("Strict value is not equal to itself.")
540540 }
541541
542542
543543
544544 @Callable(i)
545545 func buyWlgREADONLY (address,usdtAmt) = {
546546 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt)
547547 let curWlgAmount = curStats[ixWlgAmount]
548548 let wlgPrice = curStats[ixWlgPrice]
549549 let buyPrice = fraction(wlgPrice, 6, 5)
550550 let wlgAmount = fraction(usdtAmt, MULT8, buyPrice)
551551 let maxWlg = getSwapLimitWlg(address)
552552 let profitAmount = (usdtAmt / 6)
553553 $Tuple2(nil, [wlgAmount, MINSHOPPAYMENT, maxWlg, profitAmount])
554554 }
555555
556556
557557
558558 @Callable(i)
559559 func sellWlg (minAmount) = {
560560 let prologResult = prolog2()
561561 if ((prologResult == prologResult))
562562 then if ((size(i.payments) != 1))
563563 then throw("exactly 1 payment must be attached")
564564 else {
565565 let pmt = i.payments[0]
566566 let wlgAmt = pmt.amount
567567 let caller = i.caller
568568 let addr = toString(caller)
569569 let maxWlg = getSwapLimitWlg(addr)
570570 if ((wlgAmt > maxWlg))
571571 then throw((("You can spend max " + fixedPoint(maxWlg, 8)) + " WLGOLD"))
572572 else if (if (!(isDefined(pmt.assetId)))
573573 then true
574574 else (value(pmt.assetId) != wlgAssetId))
575575 then throw("WLGOLD payments only!")
576576 else {
577577 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
578578 let curWlgAmount = curStats[ixWlgAmount]
579579 let sellPrice = (curStats[ixWlgPrice] / 2)
580580 let usdtAmt = fraction(wlgAmt, sellPrice, MULT8)
581581 if ((MINSHOPPAYMENT > usdtAmt))
582582 then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT"))
583583 else if ((minAmount > usdtAmt))
584584 then throw("Price changed during operation, please try again")
585585 else {
586586 let profitAmount = (usdtAmt / 5)
587587 $Tuple2([Burn(wlgAssetId, wlgAmt), IntegerEntry(wlgIssuedAmountKey, (curWlgAmount - wlgAmt)), IntegerEntry(keyLastArbTimeByUser(addr), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(profitAddrKey))), profitAmount, usdtAssetId), ScriptTransfer(caller, usdtAmt, usdtAssetId)], prologResult)
588588 }
589589 }
590590 }
591591 else throw("Strict value is not equal to itself.")
592592 }
593593
594594
595595
596596 @Callable(i)
597597 func sellWlgREADONLY (address,wlgAmt) = {
598598 let maxWlg = getSwapLimitWlg(address)
599599 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
600600 let curWlgAmount = curStats[ixWlgAmount]
601601 let sellPrice = (curStats[ixWlgPrice] / 2)
602602 let usdtAmt = fraction(wlgAmt, sellPrice, MULT8)
603603 let minWlg = fraction(MINSHOPPAYMENT, MULT8, sellPrice)
604604 let profitAmount = (usdtAmt / 5)
605605 $Tuple2(nil, [usdtAmt, minWlg, maxWlg, profitAmount])
606606 }
607607
608608
609609
610610 @Callable(i)
611611 func claim () = {
612612 let prologResult = prolog2()
613613 if ((prologResult == prologResult))
614614 then if ((size(i.payments) != 0))
615615 then throw("No payments required")
616616 else {
617617 let $t01122111290 = claimInternal2(toString(i.caller))
618618 let actions = $t01122111290._1
619619 let wlgClaimedAmount = $t01122111290._2
620620 $Tuple2((actions :+ ScriptTransfer(i.caller, wlgClaimedAmount, wlgAssetId)), prologResult)
621621 }
622622 else throw("Strict value is not equal to itself.")
623623 }
624624
625625
626626
627627 @Callable(i)
628628 func onStakeUnstakeLand (addr) = if (if (if ((i.caller != stakingContract))
629629 then (i.caller != acresContract)
630630 else false)
631631 then (i.caller != acres2Contract)
632632 else false)
633633 then throw("Permission denied")
634634 else {
635635 let $t01160911663 = claimInternal2(addr)
636636 let actions = $t01160911663._1
637637 let wlgClaimedAmount = $t01160911663._2
638638 $Tuple2(if ((wlgClaimedAmount > 0))
639639 then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId))
640640 else actions, wlgClaimedAmount)
641641 }
642642
643643
644644
645645 @Callable(i)
646646 func burnWlgold (wlgAmt) = if ((i.caller != acres2Contract))
647647 then throw("Permission denied")
648648 else {
649649 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
650650 if ((wlgAmt > curStats[ixWlgWlg]))
651651 then throw(((("Only " + fixedPoint(curStats[ixWlgWlg], 8)) + " WLGOLD left on contract, can't burn ") + fixedPoint(wlgAmt, 8)))
652652 else {
653653 let wlgAmountLeft = (curStats[ixWlgAmount] - wlgAmt)
654654 $Tuple2([Burn(wlgAssetId, wlgAmt), IntegerEntry(wlgIssuedAmountKey, wlgAmountLeft)], wlgAmountLeft)
655655 }
656656 }
657657
658658
659659
660660 @Callable(i)
661661 func betForTicket (bet) = {
662662 let prologResult = prolog2()
663663 if ((prologResult == prologResult))
664664 then if ((size(i.payments) != 0))
665665 then throw("No payments required")
666666 else if (((bet / 4) != 0))
667667 then throw("Invalid bet: should be 0..3")
668668 else {
669669 let moment = (height % DAY_BLOCKS)
670670 if ((moment > (DAY_BLOCKS - 3)))
671671 then throw((("Cannot bet: the day is almost ended, please wait " + toString((DAY_BLOCKS - moment))) + " blocks"))
672672 else {
673673 let addr = toString(i.caller)
674674 let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(addr)), 0)
675675 let lvl = getLevelByAcres(stakedAcres)
676676 if ((lvl == 0))
677677 then throw("You need to stake some ACRES to bet")
678678 else {
679679 let tomorrow = ((height / DAY_BLOCKS) + 1)
680680 let betKey = keyUserBet(addr)
681681 let userBetStr = getString(betKey)
682682 let newBetEntry = StringEntry(betKey, ((toString(tomorrow) + "_") + toString(bet)))
683683 if (isDefined(userBetStr))
684684 then {
685685 let userBet = value(userBetStr)
686686 if ((split(userBet, "_")[0] == toString(tomorrow)))
687687 then throw("You already bet for tomorrow")
688688 else {
689689 let r = claimTicketsInternal(addr, userBet)
690690 $Tuple2([r._1[0], r._1[1], newBetEntry], r._2)
691691 }
692692 }
693693 else $Tuple2([newBetEntry], 0)
694694 }
695695 }
696696 }
697697 else throw("Strict value is not equal to itself.")
698698 }
699699
700700
701701
702702 @Callable(i)
703703 func claimTickets () = {
704704 let prologResult = prolog2()
705705 if ((prologResult == prologResult))
706706 then if ((size(i.payments) != 0))
707707 then throw("No payments required")
708708 else {
709709 let addr = toString(i.caller)
710710 let userBetStr = valueOrErrorMessage(getString(keyUserBet(addr)), "You have no tickets to claim")
711711 claimTicketsInternal(addr, userBetStr)
712712 }
713713 else throw("Strict value is not equal to itself.")
714714 }
715715
716716
717717
718718 @Callable(i)
719719 func takeWlgXp (addr) = if ((i.caller != stakingContract))
720720 then throw("Permission denied")
721721 else {
722722 let $t01974119784 = takeXpInternal(addr, 0)
723723 let actions = $t01974119784._1
724724 let xp = $t01974119784._2
725725 $Tuple2(actions, xp)
726726 }
727727
728728
729729
730730 @Callable(i)
731731 func checkWlgXpREADONLY (addr) = {
732732 let $t01986119909 = takeXpInternal(addr, 0)
733733 let ignored = $t01986119909._1
734734 let deltaXP = $t01986119909._2
735735 let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP)
736736 let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP)
737737 $Tuple2(nil, (lvlPoints :+ newXP))
738738 }
739739
740740

github/deemru/w8io/026f985 
65.55 ms