tx · D4X9oU19yFxnnFszRKAoPbZ8eu6UWbxLLU1yshMNdVXx

3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy:  -0.02000000 Waves

2023.10.07 15:30 [2788214] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves

{ "type": 13, "id": "D4X9oU19yFxnnFszRKAoPbZ8eu6UWbxLLU1yshMNdVXx", "fee": 2000000, "feeAssetId": null, "timestamp": 1696681863944, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "517amV1z1rYx9U3QrmhKVdr7GyvMBaNgcRS4YPzxaZ21s5PshQNpBbEmEj1tTCgboCnDr9QHnhrnLNZkrNMSCJzv" ], "script": "base64:BgIzCAISBgoECAgICBIDCgEBEgMKAQESABIDCgEIEgUKAwgIARIAEgMKAQESAwoBCBIDCgEIbQACTTYAwIQ9AAJNOACAwtcvAAhNSUxMSU9ONgCAgOmDsd4WAA5NQVJLRVRJTkdTSEFSRQCgjQYACVRFQU1TSEFSRQDAmgwADUFDVElWSVRZU0hBUkUAoI0GAAtQTEFZRVJTSEFSRQCAtRgACllFQVJNSUxMSVMAgIbrx3UACUNIRUNLVElNRQCAyeCrsAEACURBWU1JTExJUwCAuJkpABBtYXJrZXRpbmdBZGRyS2V5Ag1tYXJrZXRpbmdBZGRyAAt0ZWFtQWRkcktleQIIdGVhbUFkZHIAFGxhc3RNYXJrZXRpbmdUaW1lS2V5AhlsYXN0Q2xhaW1lZFRpbWVfbWFya2V0aW5nABZtYXJrZXRpbmdBbW91bnRMZWZ0S2V5AhNtYXJrZXRpbmdBbW91bnRMZWZ0AA9sYXN0VGVhbVRpbWVLZXkCFGxhc3RDbGFpbWVkVGltZV90ZWFtABF0ZWFtQW1vdW50TGVmdEtleQIOdGVhbUFtb3VudExlZnQAFW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kBBWFzSW50AQkA/AcEBQ9zdGFraW5nQ29udHJhY3QCDnVwZGF0ZUFjY1N0YXRzCQDMCAIFBGFkZHIJAMwIAgUCeHAFA25pbAUDbmlsCQCUCgIFB2FjdGlvbnMJAJQKAgUMcHJvbG9nUmVzdWx0BQ5hY2NTdGF0c1Jlc3VsdAFpAQl0YWtlV2xnWHABBGFkZHIDCQECIT0CCAUBaQZjYWxsZXIFD3N0YWtpbmdDb250cmFjdAkAAgECEVBlcm1pc3Npb24gZGVuaWVkBA0kdDAxMTAxMzExMDU2CQEOdGFrZVhwSW50ZXJuYWwCBQRhZGRyAAAEB2FjdGlvbnMIBQ0kdDAxMTAxMzExMDU2Al8xBAJ4cAgFDSR0MDExMDEzMTEwNTYCXzIJAJQKAgUHYWN0aW9ucwUCeHABaQESY2hlY2tXbGdYcFJFQURPTkxZAQRhZGRyBA0kdDAxMTEzMzExMTgxCQEOdGFrZVhwSW50ZXJuYWwCBQRhZGRyAAAEB2lnbm9yZWQIBQ0kdDAxMTEzMzExMTgxAl8xBAdkZWx0YVhQCAUNJHQwMTExMzMxMTE4MQJfMgQFbmV3WFAJAGQCCQELdmFsdWVPckVsc2UCCQCaCAIFD3N0YWtpbmdDb250cmFjdAkBCWtleVVzZXJYUAEFBGFkZHIAAAUHZGVsdGFYUAQJbHZsUG9pbnRzCQEHbGV2ZWxVcAIJAQt2YWx1ZU9yRWxzZQIJAJoIAgUPc3Rha2luZ0NvbnRyYWN0CQEMa2V5VXNlckxldmVsAQUEYWRkcgAABQVuZXdYUAkAlAoCBQNuaWwJAM0IAgUJbHZsUG9pbnRzBQVuZXdYUAANv+e0", "height": 2788214, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4t1JDHitYd8g9E5n4PB6XJiAiBmtW72kvkRfrf3U1MiL Next: 9seors8ogFEnc8RFauuLu5cp4ZDnWkXNBYs6TJBBSwkQ Diff:
OldNewDifferences
618618 func takeWlgXp (addr) = if ((i.caller != stakingContract))
619619 then throw("Permission denied")
620620 else {
621- let $t01095610999 = takeXpInternal(addr, 0)
622- let actions = $t01095610999._1
623- let xp = $t01095610999._2
621+ let $t01101311056 = takeXpInternal(addr, 0)
622+ let actions = $t01101311056._1
623+ let xp = $t01101311056._2
624624 $Tuple2(actions, xp)
625625 }
626626
628628
629629 @Callable(i)
630630 func checkWlgXpREADONLY (addr) = {
631- let $t01107611124 = takeXpInternal(addr, 0)
632- let ignored = $t01107611124._1
633- let deltaXP = $t01107611124._2
634- let lvlKey = keyUserLevel(addr)
635- let xpKey = keyUserXP(addr)
636- let xp = valueOrElse(getInteger(stakingContract, xpKey), 0)
637- let newXP = (xp + deltaXP)
638- let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, lvlKey), 0), newXP)
639- $Tuple2(nil, lvlPoints)
631+ let $t01113311181 = takeXpInternal(addr, 0)
632+ let ignored = $t01113311181._1
633+ let deltaXP = $t01113311181._2
634+ let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP)
635+ let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP)
636+ $Tuple2(nil, (lvlPoints :+ newXP))
640637 }
641638
642639
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let M6 = 1000000
55
66 let M8 = 100000000
77
88 let MILLION6 = 100000000000000
99
1010 let MARKETINGSHARE = 100000
1111
1212 let TEAMSHARE = 200000
1313
1414 let ACTIVITYSHARE = 100000
1515
1616 let PLAYERSHARE = 400000
1717
1818 let YEARMILLIS = 31557600000
1919
2020 let CHECKTIME = 47336400000
2121
2222 let DAYMILLIS = 86400000
2323
2424 let marketingAddrKey = "marketingAddr"
2525
2626 let teamAddrKey = "teamAddr"
2727
2828 let lastMarketingTimeKey = "lastClaimedTime_marketing"
2929
3030 let marketingAmountLeftKey = "marketingAmountLeft"
3131
3232 let lastTeamTimeKey = "lastClaimedTime_team"
3333
3434 let teamAmountLeftKey = "teamAmountLeft"
3535
3636 let lastActivitiesTimeKey = "lastClaimedTime_activities"
3737
3838 let actAmountLeftKey = "activitiesAmountLeft"
3939
4040 let stakersAmountLeftKey = "stakersAmountLeft"
4141
4242 func keyLastClaimedTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
4343
4444
4545 func keyLastArbTimeByUser (addr) = ("lastArbTimeUser_" + addr)
4646
4747
4848 func distributionByPeriod (period) = fraction(MILLION6, (PLAYERSHARE * (period + 1)), (6 * M6))
4949
5050
5151 let wlgIssueTimeKey = "wlg_issueTime"
5252
5353 let wlgIssuedAmountKey = "wlg_issuedAmount"
5454
5555 let zbIssuedAmountKey = "zbill_issuedAmount"
5656
5757 func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr)
5858
5959
6060 let acresStakedTotalKey = "acresStakedAmountTotal"
6161
6262 func keyWlgStakedAmountByUser (addr) = ("wlgStakedAmountByUser_" + addr)
6363
6464
6565 let wlgStakedTotalKey = "wlgStakedAmountTotal"
6666
6767 func keyWlgStakedTimeByUser (addr) = ("wlgStakedTimeByUser_" + addr)
6868
6969
7070 let dappRest = 0
7171
7272 let dappStaking = 1
7373
7474 let dappEconomy = 2
7575
7676 let dappWlg = 3
7777
7878 let dappPuzzle = 4
7979
8080 let dappInvestFund = 5
8181
8282 let dappAcres = 6
8383
8484 func getLands (userAddrStrOrEmpty,stakingContract,acresContract) = {
8585 let props = split(valueOrElse(getString(stakingContract, "resTypesProportions"), "0_0_0_0_0_0"), "_")
8686 func adder (acc,item) = (acc + parseIntValue(item))
8787
8888 let totalPieces = {
8989 let $l = props
9090 let $s = size($l)
9191 let $acc0 = 0
9292 func $f0_1 ($a,$i) = if (($i >= $s))
9393 then $a
9494 else adder($a, $l[$i])
9595
9696 func $f0_2 ($a,$i) = if (($i >= $s))
9797 then $a
9898 else throw("List size exceeds 6")
9999
100100 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
101101 }
102102 let userPieces = valueOrElse(getInteger(stakingContract, ("stakedPiecesByOwner_" + userAddrStrOrEmpty)), 0)
103103 let totalAcres = valueOrElse(getInteger(acresContract, acresStakedTotalKey), 0)
104104 let userAcres = valueOrElse(getInteger(acresContract, keyAcresStakedAmountByUser(userAddrStrOrEmpty)), 0)
105105 [totalPieces, userPieces, totalAcres, userAcres]
106106 }
107107
108108
109109 let idxTotalPieces = 0
110110
111111 let idxUserPieces = 1
112112
113113 let idxTotalAcres = 2
114114
115115 let idxUserAcres = 3
116116
117117 func getWlgStats (userAddrOpt,contracts,usdtId,usdtBalanceCorrection,userProportion6) = {
118118 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet")
119119 let economyUsd = assetBalance(contracts[dappEconomy], usdtId)
120120 let restUsd = assetBalance(contracts[dappRest], usdtId)
121121 let wlgUsd = (assetBalance(contracts[dappWlg], usdtId) - usdtBalanceCorrection)
122122 let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId)
123123 let investFundContract = contracts[dappInvestFund]
124124 let investFundTotal = (assetBalance(investFundContract, usdtId) + valueOrElse(getInteger(investFundContract, zbIssuedAmountKey), 0))
125125 let totalFundsUsd = ((economyUsd + wlgUsd) + investFundTotal)
126126 let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet")
127127 let now = lastBlock.timestamp
128128 let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized")
129129 let marketingTotal = fraction(MILLION6, MARKETINGSHARE, M6)
130130 let marketingAmountLeft = valueOrElse(getInteger(contracts[dappWlg], marketingAmountLeftKey), marketingTotal)
131131 let lastMarketingTime = valueOrElse(getInteger(contracts[dappWlg], lastMarketingTimeKey), issueTime)
132132 let marketingAddr = addressFromStringValue(value(getString(contracts[dappWlg], marketingAddrKey)))
133133 let marketingAmountAvailableNow = min([fraction(marketingTotal, (now - lastMarketingTime), YEARMILLIS), marketingAmountLeft])
134134 let marketingWlgold = assetBalance(marketingAddr, wlgId)
135135 let teamTotal = fraction(MILLION6, TEAMSHARE, M6)
136136 let teamAmountLeft = valueOrElse(getInteger(contracts[dappWlg], teamAmountLeftKey), teamTotal)
137137 let lastTeamTime = valueOrElse(getInteger(contracts[dappWlg], lastTeamTimeKey), issueTime)
138138 let teamAddr = addressFromStringValue(value(getString(contracts[dappWlg], teamAddrKey)))
139139 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEARMILLIS)), teamAmountLeft])
140140 let teamWlgold = assetBalance(teamAddr, wlgId)
141141 let actTotal = fraction(MILLION6, ACTIVITYSHARE, M6)
142142 let actAmountLeft = valueOrElse(getInteger(contracts[dappWlg], actAmountLeftKey), actTotal)
143143 let lastActivitiesTime = valueOrElse(getInteger(contracts[dappWlg], lastActivitiesTimeKey), issueTime)
144144 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEARMILLIS)), actAmountLeft])
145145 let actWlgold = assetBalance(contracts[dappRest], wlgId)
146146 let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUser(userAddrOpt)), issueTime)
147147 let lastUserPeriod = ((lastUserTime - issueTime) / YEARMILLIS)
148148 let nowLimited = min([now, (issueTime + (3 * YEARMILLIS))])
149149 let curPeriod = min([((now - issueTime) / YEARMILLIS), 2])
150150 let eff = getLands(userAddrOpt, contracts[dappStaking], contracts[dappAcres])
151151 let curPeriodDistribution = distributionByPeriod(curPeriod)
152152 let $t079142 = if ((lastUserPeriod == curPeriod))
153153 then {
154154 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEARMILLIS)
155155 let userPart = fraction(a0, userProportion6, M6)
156156 let effTime = (lastUserTime + fraction((nowLimited - lastUserTime), userProportion6, M6))
157157 $Tuple3(userPart, a0, effTime)
158158 }
159159 else if ((lastUserPeriod == (curPeriod - 1)))
160160 then {
161161 let a1 = fraction(distributionByPeriod((curPeriod - 1)), ((issueTime + (YEARMILLIS * curPeriod)) - lastUserTime), YEARMILLIS)
162162 let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS)
163163 let avail = (a1 + a0)
164164 let userPart = fraction(avail, userProportion6, M6)
165165 let effTime = if ((a1 >= userPart))
166166 then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 1))))
167167 else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, (userPart - a1), curPeriodDistribution))
168168 $Tuple3(userPart, avail, effTime)
169169 }
170170 else {
171171 let a2 = fraction(distributionByPeriod((curPeriod - 2)), ((issueTime + (YEARMILLIS * (curPeriod - 1))) - lastUserTime), YEARMILLIS)
172172 let a1 = distributionByPeriod((curPeriod - 1))
173173 let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS)
174174 let avail = ((a2 + a1) + a0)
175175 let userPart = fraction(avail, userProportion6, M6)
176176 let effTime = if ((a2 >= userPart))
177177 then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 2))))
178178 else if (((a2 + a1) >= userPart))
179179 then ((issueTime + (YEARMILLIS * (curPeriod - 1))) + fraction(YEARMILLIS, (userPart - a2), distributionByPeriod((curPeriod - 1))))
180180 else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, ((userPart - a2) - a1), curPeriodDistribution))
181181 $Tuple3(userPart, avail, effTime)
182182 }
183183 let userAmount = $t079142._1
184184 let userAvailable = $t079142._2
185185 let effLastTime = $t079142._3
186186 let sLandDailyAmount = fraction(fraction(curPeriodDistribution, DAYMILLIS, YEARMILLIS), 25, eff[idxTotalPieces])
187187 let amountLeftTotal = valueOrElse(getInteger(contracts[dappWlg], stakersAmountLeftKey), 0)
188188 let robbedUser = fraction(userAmount, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres]))
189189 let unrobbedUser = fraction(userAvailable, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres]))
190190 [issuedAmount, fraction(totalFundsUsd, M8, issuedAmount), totalFundsUsd, economyUsd, restUsd, wlgUsd, puzzleUsd, issueTime, lastMarketingTime, marketingTotal, marketingAmountLeft, marketingAmountAvailableNow, marketingWlgold, teamTotal, teamAmountLeft, teamAmountAvailableNow, teamWlgold, actTotal, actAmountLeft, actAmountAvailableNow, actWlgold, curPeriod, amountLeftTotal, curPeriodDistribution, lastUserTime, robbedUser, sLandDailyAmount, investFundTotal, unrobbedUser, effLastTime]
191191 }
192192
193193
194194 let SCALE8 = 100000000
195195
196196 let xpLevelScale = 3200
197197
198198 let xpLevelRecipPow = 4000
199199
200200 let numPointsOnLevelUp = 3
201201
202202 let wlgBaseAmountXp = 100000000000
203203
204204 func keyUserXP (addr) = ("userXP_" + addr)
205205
206206
207207 func keyUserLevel (addr) = ("userLevel_" + addr)
208208
209209
210210 let xpWlg = 10000
211211
212212 func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8)
213213
214214
215215 func levelUp (currLevel,newXP) = {
216216 let newLevel = levelByXP(newXP)
217217 [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))]
218218 }
219219
220220
221221 let chain = take(drop(this.bytes, 1), 1)
222222
223223 let usdtAssetId = match chain {
224224 case _ =>
225225 if ((base58'2W' == $match0))
226226 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
227227 else if ((base58'2T' == $match0))
228228 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
229229 else throw("Unknown chain")
230230 }
231231
232232 let defaultRestAddressStr = match chain {
233233 case _ =>
234234 if ((base58'2W' == $match0))
235235 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
236236 else if ((base58'2T' == $match0))
237237 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
238238 else throw("Unknown chain")
239239 }
240240
241241 let arbitrageDelay = match chain {
242242 case _ =>
243243 if ((base58'2W' == $match0))
244244 then 86400000
245245 else if ((base58'2T' == $match0))
246246 then 60000
247247 else throw("Unknown chain")
248248 }
249249
250250 let SEP = "__"
251251
252252 let MULT6 = 1000000
253253
254254 let MULT8 = 100000000
255255
256256 let MINSHOPPAYMENT = 100000
257257
258258 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
259259
260260
261261 let IdxCfgStakingDapp = 1
262262
263263 let IdxCfgEconomyDapp = 2
264264
265265 let IdxCfgWlgDapp = 4
266266
267267 let IdxCfgPuzzlePoolDapp = 5
268268
269269 let IdxCfgInvestFundDapp = 6
270270
271271 let IdxCfgAcresDapp = 8
272272
273273 func keyRestCfg () = "%s__restConfig"
274274
275275
276276 func keyRestAddress () = "%s__restAddr"
277277
278278
279279 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
280280
281281
282282 func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
283283
284284
285285 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
286286
287287 let restCfg = readRestCfgOrFail(restContract)
288288
289289 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
290290
291291 let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
292292
293293 let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp)
294294
295295 let puzzlePoolContract = getContractAddressOrFail(restCfg, IdxCfgPuzzlePoolDapp)
296296
297297 let investFundContract = getContractAddressOrFail(restCfg, IdxCfgInvestFundDapp)
298298
299299 let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp)
300300
301301 let wlgAssetIdKey = "wlg_assetId"
302302
303303 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
304304
305305 let idxWlgAmount = 0
306306
307307 let idxWlgPrice = 1
308308
309309 let idxWlgFunds = 2
310310
311311 let idxWlgIssueTime = 7
312312
313313 let idxWlgMarketingAmLeft = 10
314314
315315 let idxWlgMarketingAmAvailNow = 11
316316
317317 let idxWlgTeamAmLeft = 14
318318
319319 let idxWlgTeamAmAvailNow = 15
320320
321321 let idxWlgActAmLeft = 18
322322
323323 let idxWlgActAmAvailNow = 19
324324
325325 let idxWlgAmLeftTotal = 22
326326
327327 let idxWlgUserAmAvailNow = 25
328328
329329 let idxWlgUserTotalAvail = 28
330330
331331 let idxWlgEffUserTime = 29
332332
333333 let IdxEffUser = 1
334334
335335 func keyResProportions () = "resTypesProportions"
336336
337337
338338 func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr)
339339
340340
341341 func asInt (v) = match v {
342342 case n: Int =>
343343 n
344344 case _ =>
345345 throw("fail to cast into Int")
346346 }
347347
348348
349349 func getVotingPower (userAddrStrOrEmpty) = {
350350 let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_")
351351 func adder (acc,item) = (acc + parseIntValue(item))
352352
353353 let totalPower = {
354354 let $l = props
355355 let $s = size($l)
356356 let $acc0 = 0
357357 func $f0_1 ($a,$i) = if (($i >= $s))
358358 then $a
359359 else adder($a, $l[$i])
360360
361361 func $f0_2 ($a,$i) = if (($i >= $s))
362362 then $a
363363 else throw("List size exceeds 6")
364364
365365 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
366366 }
367367 let usersPower = valueOrElse(getInteger(stakingContract, keyStakedPiecesByOwner(userAddrStrOrEmpty)), 0)
368368 [totalPower, usersPower]
369369 }
370370
371371
372372 func fixedPoint (val,decimals) = {
373373 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
374374 let lowPart = toString((val % tenPow))
375375 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
376376 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
377377 }
378378
379379
380380 let profitAddrKey = "profitAddr"
381381
382382 let stakersAmountPaidTotalKey = "stakersAmountPaidTotal"
383383
384384 func keyStakersAmountPaidUser (addr) = ("stakersAmountPaidUser_" + addr)
385385
386386
387387 func prolog () = asInt(invoke(stakingContract, "saveLastTx", nil, nil))
388388
389389
390390 func getSwapLimitWlg (addr) = {
391391 let lastTime = valueOrElse(getInteger(keyLastArbTimeByUser(addr)), 0)
392392 let now = lastBlock.timestamp
393393 if ((arbitrageDelay > (now - lastTime)))
394394 then throw((("Arbitrages are possible once a " + toString((arbitrageDelay / 60000))) + "min"))
395395 else {
396396 let pieces = getVotingPower(addr)[IdxEffUser]
397397 let acresAmount = valueOrElse(getInteger(acresContract, keyAcresStakedAmountByUser(addr)), 0)
398398 ((pieces * MULT8) + acresAmount)
399399 }
400400 }
401401
402402
403403 func claimInternal (addr,proportion6) = {
404404 let caller = addressFromStringValue(addr)
405405 let curStats = getWlgStats(addr, [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract, acresContract], usdtAssetId, 0, proportion6)
406406 let now = lastBlock.timestamp
407407 let issueTime = curStats[idxWlgIssueTime]
408408 let marketingAmountLeft = curStats[idxWlgMarketingAmLeft]
409409 let marketingAmount = curStats[idxWlgMarketingAmAvailNow]
410410 let teamAmountLeft = curStats[idxWlgTeamAmLeft]
411411 let teamAmount = curStats[idxWlgTeamAmAvailNow]
412412 let actAmountLeft = curStats[idxWlgActAmLeft]
413413 let actAmount = curStats[idxWlgActAmAvailNow]
414414 if (((now - issueTime) > CHECKTIME))
415415 then throw("Please modify contract for next 1.5 years, according to stats")
416416 else {
417417 let userAmount = curStats[idxWlgUserAmAvailNow]
418418 let userKey = keyStakersAmountPaidUser(addr)
419419 let userTotal = curStats[idxWlgUserTotalAvail]
420420 let userEffTime = curStats[idxWlgEffUserTime]
421421 $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(marketingAddrKey))), marketingAmount, wlgAssetId), 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(marketingAmountLeftKey, (marketingAmountLeft - marketingAmount)), IntegerEntry(lastMarketingTimeKey, now), IntegerEntry(teamAmountLeftKey, (teamAmountLeft - teamAmount)), IntegerEntry(lastTeamTimeKey, now), IntegerEntry(actAmountLeftKey, (actAmountLeft - actAmount)), IntegerEntry(lastActivitiesTimeKey, now), IntegerEntry(keyLastClaimedTimeByUser(addr), userEffTime)], $Tuple2(userAmount, userTotal))
422422 }
423423 }
424424
425425
426426 func takeXpInternal (addr,delta) = {
427427 let now = lastBlock.timestamp
428428 let timeKey = keyWlgStakedTimeByUser(addr)
429429 let amountKey = keyWlgStakedAmountByUser(addr)
430430 let lastTime = valueOrElse(getInteger(timeKey), 0)
431431 let oldUser = valueOrElse(getInteger(amountKey), 0)
432432 let oldTotal = valueOrElse(getInteger(wlgStakedTotalKey), 0)
433433 let xp = fraction(fraction(xpWlg, oldUser, wlgBaseAmountXp), (lastTime - now), DAYMILLIS)
434434 $Tuple3([IntegerEntry(timeKey, now), IntegerEntry(amountKey, (oldUser + delta)), IntegerEntry(wlgStakedTotalKey, (oldTotal + delta))], xp, oldUser)
435435 }
436436
437437
438438 @Callable(i)
439439 func constructorV1 (restAddr,marketingAddr,teamAddr,profitAddr) = if ((i.caller != this))
440440 then throw("Permission denied")
441441 else if (isDefined(getBinary(wlgAssetIdKey)))
442442 then throw("Already initialized")
443443 else {
444444 let issuedAmount = MILLION6
445445 let issue = Issue("WLGOLD", "WavesLands Gold investment token", issuedAmount, 8, true, unit, 0)
446446 let assetId = calculateAssetId(issue)
447447 [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)]
448448 }
449449
450450
451451
452452 @Callable(i)
453453 func buyWlg (minAmount) = {
454454 let prologResult = prolog()
455455 if ((size(i.payments) != 1))
456456 then throw("exactly 1 payment must be attached")
457457 else {
458458 let pmt = i.payments[0]
459459 let usdtAmt = pmt.amount
460460 if (if (!(isDefined(pmt.assetId)))
461461 then true
462462 else (value(pmt.assetId) != usdtAssetId))
463463 then throw("USDT payments only!")
464464 else {
465465 let caller = i.caller
466466 let addr = toString(caller)
467467 if ((MINSHOPPAYMENT > usdtAmt))
468468 then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT"))
469469 else {
470470 let curStats = getWlgStats("", [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract, acresContract], usdtAssetId, usdtAmt, MULT6)
471471 let curWlgAmount = curStats[idxWlgAmount]
472472 let fundsUsd = curStats[idxWlgFunds]
473473 let wlgPrice = fraction(fundsUsd, MULT8, curWlgAmount)
474474 let buyPrice = fraction(wlgPrice, 6, 5)
475475 let wlgAmount = fraction(usdtAmt, MULT8, buyPrice)
476476 let maxWlg = getSwapLimitWlg(addr)
477477 if ((wlgAmount > maxWlg))
478478 then throw((("You can get max " + fixedPoint(maxWlg, 8)) + " WLGOLD"))
479479 else if ((minAmount > wlgAmount))
480480 then throw("Price changed during operation, please try again")
481481 else {
482482 let profitAmount = (usdtAmt / 6)
483483 let deltaFunds = (usdtAmt - profitAmount)
484484 let reissued = fraction(curWlgAmount, deltaFunds, fundsUsd)
485485 $Tuple2([Reissue(wlgAssetId, reissued, true), IntegerEntry(wlgIssuedAmountKey, (curWlgAmount + reissued)), IntegerEntry(keyLastArbTimeByUser(addr), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(profitAddrKey))), profitAmount, usdtAssetId), ScriptTransfer(caller, wlgAmount, wlgAssetId)], prologResult)
486486 }
487487 }
488488 }
489489 }
490490 }
491491
492492
493493
494494 @Callable(i)
495495 func sellWlg (minAmount) = {
496496 let prologResult = prolog()
497497 if ((size(i.payments) != 1))
498498 then throw("exactly 1 payment must be attached")
499499 else {
500500 let pmt = i.payments[0]
501501 let wlgAmt = pmt.amount
502502 let caller = i.caller
503503 let addr = toString(caller)
504504 let maxWlg = getSwapLimitWlg(addr)
505505 if ((wlgAmt > maxWlg))
506506 then throw((("You can spend max " + fixedPoint(maxWlg, 8)) + " WLGOLD"))
507507 else if (if (!(isDefined(pmt.assetId)))
508508 then true
509509 else (value(pmt.assetId) != wlgAssetId))
510510 then throw("WLGOLD payments only!")
511511 else {
512512 let curStats = getWlgStats("", [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract, acresContract], usdtAssetId, 0, MULT6)
513513 let curWlgAmount = curStats[idxWlgAmount]
514514 let sellPrice = fraction(curStats[idxWlgPrice], 4, 5)
515515 let usdtAmt = fraction(wlgAmt, sellPrice, MULT8)
516516 if ((MINSHOPPAYMENT > usdtAmt))
517517 then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT"))
518518 else if ((minAmount > usdtAmt))
519519 then throw("Price changed during operation, please try again")
520520 else {
521521 let profitAmount = (usdtAmt / 4)
522522 let burned = fraction((usdtAmt + profitAmount), curWlgAmount, curStats[idxWlgFunds])
523523 $Tuple2([Burn(wlgAssetId, burned), IntegerEntry(wlgIssuedAmountKey, (curWlgAmount - burned)), IntegerEntry(keyLastArbTimeByUser(addr), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(profitAddrKey))), profitAmount, usdtAssetId), ScriptTransfer(caller, usdtAmt, usdtAssetId)], prologResult)
524524 }
525525 }
526526 }
527527 }
528528
529529
530530
531531 @Callable(i)
532532 func claim () = {
533533 let prologResult = prolog()
534534 if ((size(i.payments) != 0))
535535 then throw("No payments required")
536536 else {
537537 let r = claimInternal(toString(i.caller), MULT6)
538538 let actions = r._1
539539 $Tuple2((actions :+ ScriptTransfer(i.caller, r._2._1, wlgAssetId)), prologResult)
540540 }
541541 }
542542
543543
544544
545545 @Callable(i)
546546 func onStakeUnstakeLand (addr) = if (if ((i.caller != stakingContract))
547547 then (i.caller != acresContract)
548548 else false)
549549 then throw("Permission denied")
550550 else {
551551 let r = claimInternal(addr, MULT6)
552552 let actions = r._1
553553 $Tuple2((actions :+ ScriptTransfer(addressFromStringValue(addr), r._2._1, wlgAssetId)), r._2)
554554 }
555555
556556
557557
558558 @Callable(i)
559559 func claimRob (owner,robber,ownerProportion6) = if ((i.caller != stakingContract))
560560 then throw("Permission denied")
561561 else {
562562 let r = claimInternal(owner, ownerProportion6)
563563 $Tuple2((r._1 :+ ScriptTransfer(addressFromStringValue(robber), (r._2._2 - r._2._1), wlgAssetId)), r._2)
564564 }
565565
566566
567567
568568 @Callable(i)
569569 func stakeWlgold () = {
570570 let prologResult = prolog()
571571 if ((size(i.payments) != 1))
572572 then throw("exactly 1 payment must be attached")
573573 else {
574574 let pmt = i.payments[0]
575575 let amt = pmt.amount
576576 let addr = toString(i.caller)
577577 if (if (!(isDefined(pmt.assetId)))
578578 then true
579579 else (value(pmt.assetId) != wlgAssetId))
580580 then throw("WLGOLD payments only!")
581581 else {
582582 let $t01003810083 = takeXpInternal(addr, amt)
583583 let actions = $t01003810083._1
584584 let xp = $t01003810083._2
585585 let accStatsResult = asInt(invoke(stakingContract, "updateAccStats", [addr, xp], nil))
586586 $Tuple2(actions, $Tuple2(prologResult, accStatsResult))
587587 }
588588 }
589589 }
590590
591591
592592
593593 @Callable(i)
594594 func unstakeWlgold (amount) = {
595595 let prologResult = prolog()
596596 if ((size(i.payments) != 0))
597597 then throw("No payments required")
598598 else if ((0 >= amount))
599599 then throw("Amount should be positive")
600600 else {
601601 let addr = toString(i.caller)
602602 let $t01046710525 = takeXpInternal(addr, -(amount))
603603 let actions = $t01046710525._1
604604 let xp = $t01046710525._2
605605 let oldUser = $t01046710525._3
606606 if ((amount > oldUser))
607607 then throw(((("You have only " + fixedPoint(oldUser, 8)) + " WLGOLD staked, tried to unstake ") + fixedPoint(amount, 8)))
608608 else {
609609 let accStatsResult = asInt(invoke(stakingContract, "updateAccStats", [addr, xp], nil))
610610 $Tuple2(actions, $Tuple2(prologResult, accStatsResult))
611611 }
612612 }
613613 }
614614
615615
616616
617617 @Callable(i)
618618 func takeWlgXp (addr) = if ((i.caller != stakingContract))
619619 then throw("Permission denied")
620620 else {
621- let $t01095610999 = takeXpInternal(addr, 0)
622- let actions = $t01095610999._1
623- let xp = $t01095610999._2
621+ let $t01101311056 = takeXpInternal(addr, 0)
622+ let actions = $t01101311056._1
623+ let xp = $t01101311056._2
624624 $Tuple2(actions, xp)
625625 }
626626
627627
628628
629629 @Callable(i)
630630 func checkWlgXpREADONLY (addr) = {
631- let $t01107611124 = takeXpInternal(addr, 0)
632- let ignored = $t01107611124._1
633- let deltaXP = $t01107611124._2
634- let lvlKey = keyUserLevel(addr)
635- let xpKey = keyUserXP(addr)
636- let xp = valueOrElse(getInteger(stakingContract, xpKey), 0)
637- let newXP = (xp + deltaXP)
638- let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, lvlKey), 0), newXP)
639- $Tuple2(nil, lvlPoints)
631+ let $t01113311181 = takeXpInternal(addr, 0)
632+ let ignored = $t01113311181._1
633+ let deltaXP = $t01113311181._2
634+ let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP)
635+ let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP)
636+ $Tuple2(nil, (lvlPoints :+ newXP))
640637 }
641638
642639

github/deemru/w8io/026f985 
67.59 ms