tx · GYkYSaDkoqe3MjQ2xnfHkkQwJ8aoWbFpFUXWH4deSUfC

3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy:  -0.03700000 Waves

2024.12.28 20:05 [3434661] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves

{ "type": 13, "id": "GYkYSaDkoqe3MjQ2xnfHkkQwJ8aoWbFpFUXWH4deSUfC", "fee": 3700000, "feeAssetId": null, "timestamp": 1735405549824, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "4NmBkyFrCQ89naVwfE38oJ3JHV5uReBE5Y5CpAnzQkWR9u9SWXj6JJKRAqhKfdNiKajF7JNkCM5uRyWJzN6bB1g" ], "script": "base64:BgJSCAISBgoECAgICBIDCgEIEgMKAQESBAoCCAESAwoBARIECgIIARIAEgMKAQgSAwoBCBIDCgEBEgMKAQESAwoBCBIDCgEIEgMKAQESABIECgIIAb0BAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ4AIDC1y8ADk1JTlNIT1BQQVlNRU5UAKCNBgAKREFZX01JTExJUwCAuJkpABJBQ1JFU19XRUVLTFlfUFJJWkUAwPD1CwAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACkRBWV9CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAoAsDCQAAAgEBVAUHJG1hdGNoMAA8CQACAQINVW5rbm93biBjaGFpbgALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AClZSRl9PRkZTRVQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAAAMJAAACAQFUBQckb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0ZvcgIEYWRkcgxkZWx0YVRpY2tldHMDCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhFQZXJtaXNzaW9uIGRlbmllZAQEd2VlawkAaQIFBmhlaWdodAULV0VFS19CTE9DS1MECnRpY2tldHNLZXkJARJrZXlVc2VyV2Vla1RpY2tldHMCBQRhZGRyBQR3ZWVrBA9vbGRUb3RhbFRpY2tldHMJAQt2YWx1ZU9yRWxzZQIJAJ8IAQkBE2tleVRvdGFsV2Vla1RpY2tldHMBBQR3ZWVrAAAECm9sZFRpY2tldHMJAQt2YWx1ZU9yRWxzZQIJAJ8IAQUKdGlja2V0c0tleQAABA9vbGRQYXJ0aWNpcGFudHMJAQt2YWx1ZU9yRWxzZQIJAJ8IAQkBGGtleVRvdGFsV2Vla1BhcnRpY2lwYW50cwEFBHdlZWsAAAQSdXBkYXRlUGFydGljaXBhbnRzAwMJAAACBQpvbGRUaWNrZXRzAAAJAAACBQxkZWx0YVRpY2tldHMAAQcJAMwIAgkBDEludGVnZXJFbnRyeQIJARhrZXlUb3RhbFdlZWtQYXJ0aWNpcGFudHMBBQR3ZWVrCQBkAgUPb2xkUGFydGljaXBhbnRzAAEFA25pbAUDbmlsCQCUCgIJAM0IAgkAzQgCBRJ1cGRhdGVQYXJ0aWNpcGFudHMJAQxJbnRlZ2VyRW50cnkCBQp0aWNrZXRzS2V5CQBkAgUKb2xkVGlja2V0cwUMZGVsdGFUaWNrZXRzCQEMSW50ZWdlckVudHJ5AgkBE2tleVRvdGFsV2Vla1RpY2tldHMBBQR3ZWVrCQBkAgUPb2xkVG90YWxUaWNrZXRzBQxkZWx0YVRpY2tldHMFDGRlbHRhVGlja2V0cwByJY7L", "height": 3434661, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 29Y3hnroHbJGL9KGwhwpgLkVCXseW7E8SMLAcpRxP4ZD Next: Y7Un6nmDmfu8TJaaujeK7tFSLAMxjebWQ5EUY8Ls2q4 Diff:
OldNewDifferences
756756 func openChestInternal (addr,week,userTickets,totalTickets,lastWeekNumTx) = {
757757 let drawWeek = (week - 1)
758758 let numPrizes = valueOrElse(getInteger(keyNumPrizes2Draw(drawWeek)), DEFAULT_WEEKLY_PRIZES)
759- let nftKey = keyNumNFTDrawn(drawWeek)
760- let acresKey = keyAcresDrawn(drawWeek)
761759 let entropy = value(value(blockInfoByHeight((week * WEEK_BLOCKS))).vrf)
762760 let salt = fromBase58String(split(lastWeekNumTx, "_")[1])
763761 let random4 = getRandomNumber(M4, salt, entropy)
764762 if (isWin(userTickets, totalTickets, numPrizes, random4))
765763 then {
766764 let rnd = getRandomNumber(100, (base58'29' + salt), entropy)
767- let $t084228790 = if ((rnd >= 90))
768- then $Tuple2(invoke(acres2Contract, "issuePickC1", [addr], nil), IntegerEntry(nftKey, (valueOrElse(getInteger(nftKey), 0) + 1)))
769- else $Tuple2(invoke(acresContract, "sendAcresFor", [addr, ACRES_WEEKLY_PRIZE], nil), IntegerEntry(acresKey, (valueOrElse(getInteger(acresKey), 0) + ACRES_WEEKLY_PRIZE)))
770- let prizeResult = $t084228790._1
771- let prizeAction = $t084228790._2
765+ let $t083418798 = if ((rnd >= 90))
766+ then {
767+ let nftKey = keyNumNFTDrawn(drawWeek)
768+ $Tuple2(invoke(acres2Contract, "issuePickC1", [addr], nil), IntegerEntry(nftKey, (valueOrElse(getInteger(nftKey), 0) + 1)))
769+ }
770+ else {
771+ let acresKey = keyAcresDrawn(drawWeek)
772+ $Tuple2(invoke(acresContract, "sendAcresFor", [addr, ACRES_WEEKLY_PRIZE], nil), IntegerEntry(acresKey, (valueOrElse(getInteger(acresKey), 0) + ACRES_WEEKLY_PRIZE)))
773+ }
774+ let prizeResult = $t083418798._1
775+ let prizeAction = $t083418798._2
772776 let winners = getString(keyWeekWinners(drawWeek))
773777 let newWinners = if (isDefined(winners))
774778 then ((value(winners) + "_") + addr)
775779 else addr
776- $Tuple2([prizeAction, DeleteEntry(keyUserWeekTickets(addr, drawWeek)), StringEntry(keyWeekWinners(drawWeek), newWinners)], prizeResult)
780+ $Tuple2([prizeAction, DeleteEntry(keyUserWeekTickets(addr, drawWeek)), StringEntry(keyWeekWinners(drawWeek), newWinners)], $Tuple2(prizeResult, rnd))
777781 }
778782 else {
779783 let random1 = (getRandomNumber(9, (base58'29' + salt), entropy) + 1)
947951 then if ((size(i.payments) != 0))
948952 then throw("No payments required")
949953 else {
950- let $t01648116550 = claimInternal2(toString(i.caller))
951- let actions = $t01648116550._1
952- let wlgClaimedAmount = $t01648116550._2
954+ let $t01649616565 = claimInternal2(toString(i.caller))
955+ let actions = $t01649616565._1
956+ let wlgClaimedAmount = $t01649616565._2
953957 $Tuple2((actions :+ ScriptTransfer(i.caller, wlgClaimedAmount, wlgAssetId)), prologResult)
954958 }
955959 else throw("Strict value is not equal to itself.")
965969 else false)
966970 then throw("Permission denied")
967971 else {
968- let $t01687016927 = claimInternal2(addr)
969- if (($t01687016927 == $t01687016927))
972+ let $t01688516942 = claimInternal2(addr)
973+ if (($t01688516942 == $t01688516942))
970974 then {
971- let wlgClaimedAmount = $t01687016927._2
972- let actions = $t01687016927._1
975+ let wlgClaimedAmount = $t01688516942._2
976+ let actions = $t01688516942._1
973977 $Tuple2(if ((wlgClaimedAmount > 0))
974978 then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId))
975979 else actions, wlgClaimedAmount)
987991 else false)
988992 then throw("Permission denied")
989993 else {
990- let $t01731017366 = claimInternal(addr)
991- if (($t01731017366 == $t01731017366))
994+ let $t01732517381 = claimInternal(addr)
995+ if (($t01732517381 == $t01732517381))
992996 then {
993- let wlgClaimedAmount = $t01731017366._2
994- let actions = $t01731017366._1
997+ let wlgClaimedAmount = $t01732517381._2
998+ let actions = $t01732517381._1
995999 $Tuple2(if ((wlgClaimedAmount > 0))
9961000 then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId))
9971001 else nil, wlgClaimedAmount)
10721076 func takeWlgXp (addr) = if ((i.caller != stakingContract))
10731077 then throw("Permission denied")
10741078 else {
1075- let $t01999820041 = takeXpInternal(addr, 0)
1076- let actions = $t01999820041._1
1077- let xp = $t01999820041._2
1079+ let $t02001320056 = takeXpInternal(addr, 0)
1080+ let actions = $t02001320056._1
1081+ let xp = $t02001320056._2
10781082 $Tuple2(actions, xp)
10791083 }
10801084
10821086
10831087 @Callable(i)
10841088 func checkWlgXpREADONLY (addr) = {
1085- let $t02011820166 = takeXpInternal(addr, 0)
1086- let ignored = $t02011820166._1
1087- let deltaXP = $t02011820166._2
1089+ let $t02013320181 = takeXpInternal(addr, 0)
1090+ let ignored = $t02013320181._1
1091+ let deltaXP = $t02013320181._2
10881092 let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP)
10891093 let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP)
10901094 $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 ACRES_WEEKLY_PRIZE = 25000000
1515
1616 let chain = take(drop(this.bytes, 1), 1)
1717
1818 let DAY_BLOCKS = match chain {
1919 case _ =>
2020 if ((base58'2W' == $match0))
2121 then 1440
2222 else if ((base58'2T' == $match0))
2323 then 60
2424 else throw("Unknown chain")
2525 }
2626
2727 let WEEK_BLOCKS = match chain {
2828 case _ =>
2929 if ((base58'2W' == $match0))
3030 then 10080
3131 else if ((base58'2T' == $match0))
3232 then 180
3333 else throw("Unknown chain")
3434 }
3535
3636 let VRF_OFFSET = match chain {
3737 case _ =>
3838 if ((base58'2W' == $match0))
3939 then 0
4040 else if ((base58'2T' == $match0))
4141 then 1146000
4242 else throw("Unknown chain")
4343 }
4444
4545 let usdtAssetId = match chain {
4646 case _ =>
4747 if ((base58'2W' == $match0))
4848 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
4949 else if ((base58'2T' == $match0))
5050 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
5151 else throw("Unknown chain")
5252 }
5353
5454 let defaultRest2AddressStr = match chain {
5555 case _ =>
5656 if ((base58'2W' == $match0))
5757 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
5858 else if ((base58'2T' == $match0))
5959 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
6060 else throw("Unknown chain")
6161 }
6262
6363 let defaultRestAddressStr = match chain {
6464 case _ =>
6565 if ((base58'2W' == $match0))
6666 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
6767 else if ((base58'2T' == $match0))
6868 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
6969 else throw("Unknown chain")
7070 }
7171
7272 let economyContractStr = match chain {
7373 case _ =>
7474 if ((base58'2W' == $match0))
7575 then "3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D"
7676 else if ((base58'2T' == $match0))
7777 then "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep"
7878 else throw("Unknown chain")
7979 }
8080
8181 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
8282
8383
8484 let IdxCfgAcres2Dapp = 1
8585
8686 let IdxCfgWlgDapp = 2
8787
8888 let IdxCfgPuzzlePoolDapp = 4
8989
9090 let IdxCfgInvestFundDapp = 5
9191
9292 let IdxCfgMarketDapp = 6
9393
9494 func keyRestCfg () = "%s__restConfig"
9595
9696
9797 func keyRest2Address () = "%s__rest2Addr"
9898
9999
100100 func keyRestAddress () = "%s__restAddr"
101101
102102
103103 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
104104
105105 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
106106
107107
108108 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
109109
110110
111111 let IdxCfgStakingDapp = 1
112112
113113 let IdxCfgAcresDapp = 8
114114
115115 let restCfg = readRestCfgOrFail(restContract)
116116
117117 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
118118
119119 let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp)
120120
121121 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
122122
123123 let rest2Cfg = readRestCfgOrFail(rest2Contract)
124124
125125 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
126126
127127 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
128128
129129 let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp)
130130
131131 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
132132
133133 let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp)
134134
135135 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
136136
137137
138138 let wlgAssetIdKey = "wlg_assetId"
139139
140140 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
141141
142142 func keyUserBet (addr) = ("userBet_" + addr)
143143
144144
145145 func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
146146
147147
148148 func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
149149
150150
151151 func keyTotalWeekParticipants (week) = ("totalWeekParticipants_" + toString(week))
152152
153153
154154 func keyNumPrizes2Draw (week) = ("numPrizes2Draw_" + toString(week))
155155
156156
157157 func keyNumNFTDrawn (week) = ("numNFTDrawn_" + toString(week))
158158
159159
160160 func keyAcresDrawn (week) = ("acresDrawn_" + toString(week))
161161
162162
163163 func keyWeekWinners (week) = ("weekWinners_" + toString(week))
164164
165165
166166 func winningBet (day) = {
167167 let b = (day * DAY_BLOCKS)
168168 let h = if ((b > VRF_OFFSET))
169169 then b
170170 else (b + VRF_OFFSET)
171171 (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4)
172172 }
173173
174174
175175 let ixWlgAmount = 0
176176
177177 let ixWlgWlg = 1
178178
179179 let ixWlgPrice = 2
180180
181181 let ixWlgIssueTime = 8
182182
183183 let ixWlgTeamAmLeft = 11
184184
185185 let ixWlgTeamAmAvailNow = 12
186186
187187 let ixWlgActAmLeft = 15
188188
189189 let ixWlgActAmAvailNow = 16
190190
191191 let ixWlgAmLeftTotal = 19
192192
193193 let ixWlgUserAmAvailNow = 23
194194
195195 let ixWlgEffUserTime = 24
196196
197197 let ixWlgIssue10Amount = 25
198198
199199 let ixWlgMarketingIssue10Amount = 26
200200
201201 let ixWlgTeamIssue10Amount = 27
202202
203203 let ixWlgUser10part = 28
204204
205205 let ixWlgIssue10Time = 29
206206
207207 func asInt (v) = match v {
208208 case n: Int =>
209209 n
210210 case _ =>
211211 throw("fail to cast into Int")
212212 }
213213
214214
215215 func fixedPoint (val,decimals) = {
216216 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
217217 let lowPart = toString((val % tenPow))
218218 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
219219 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
220220 }
221221
222222
223223 func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue))
224224 then throw("maxValue should be > 0")
225225 else {
226226 let randomHash = sha256_16Kb((salt + entropy))
227227 (toInt(randomHash) % maxValue)
228228 }
229229
230230
231231 let M4 = 10000
232232
233233 let SCALE8 = 100000000
234234
235235 let xpLevelScale = 3200
236236
237237 let xpLevelRecipPow = 4000
238238
239239 let numPointsOnLevelUp = 3
240240
241241 let wlgBaseAmountXp = 100000000000
242242
243243 func keyUserXP (addr) = ("userXP_" + addr)
244244
245245
246246 func keyUserLevel (addr) = ("userLevel_" + addr)
247247
248248
249249 let xpWlg = 10000
250250
251251 func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8)
252252
253253
254254 func levelUp (currLevel,newXP) = {
255255 let newLevel = levelByXP(newXP)
256256 [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))]
257257 }
258258
259259
260260 func isWin (userTickets,totalTickets,numPrizes,random4) = {
261261 let a4 = fraction(M4, (totalTickets - userTickets), totalTickets)
262262 let p4 = pow(a4, 4, numPrizes, 0, 4, DOWN)
263263 ((M4 - random4) > p4)
264264 }
265265
266266
267267 let M6 = 1000000
268268
269269 let M8 = 100000000
270270
271271 let MILLION6 = 100000000000000
272272
273273 let TEAMSHARE = 200000
274274
275275 let ACTIVITYSHARE = 100000
276276
277277 let PLAYERSHARE = 400000
278278
279279 let YEARMILLIS = 31557600000
280280
281281 let DAYMILLIS = 86400000
282282
283283 let BANK_FEE = 50000
284284
285285 let ch = take(drop(this.bytes, 1), 1)
286286
287287 let USDT_TVL_CORRECTION = match ch {
288288 case _ =>
289289 if ((base58'2W' == $match0))
290290 then 1208630000
291291 else if ((base58'2T' == $match0))
292292 then 0
293293 else throw("Unknown chain")
294294 }
295295
296296 let teamAddrKey = "teamAddr"
297297
298298 let lastTeamTimeKey = "lastClaimedTime_team"
299299
300300 let teamAmountLeftKey = "teamAmountLeft"
301301
302302 let lastActivitiesTimeKey = "lastClaimedTime_activities"
303303
304304 let actAmountLeftKey = "activitiesAmountLeft"
305305
306306 let stakersAmountLeftKey = "stakersAmountLeft"
307307
308308 func keyLastClaimedTimeByUserOld (addr) = ("lastClaimedTimeUserOld_" + addr)
309309
310310
311311 func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr)
312312
313313
314314 func keyLastWlgTradeLimitByUser (addr) = ("lastWlgLimitUser_" + addr)
315315
316316
317317 func distributionByPeriod (period) = fraction(MILLION6, (PLAYERSHARE * (period + 1)), (6 * M6))
318318
319319
320320 let wlgIssueTimeKey = "wlg_issueTime"
321321
322322 let wlgIssuedAmountKey = "wlg_issuedAmount"
323323
324324 let zbIssuedAmountKey = "zbill_issuedAmount"
325325
326326 func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr)
327327
328328
329329 let acresStakedTotalKey = "acresStakedAmountTotal"
330330
331331 func keyWlgStakedAmountByUser (addr) = ("wlgStakedAmountByUser_" + addr)
332332
333333
334334 let wlgStakedTotalKey = "wlgStakedAmountTotal"
335335
336336 func keyWlgStakedTimeByUser (addr) = ("wlgStakedTimeByUser_" + addr)
337337
338338
339339 let dappRest = 0
340340
341341 let dappStaking = 1
342342
343343 let dappEconomy = 2
344344
345345 let dappWlg = 3
346346
347347 let dappPuzzle = 4
348348
349349 let dappInvestFund = 5
350350
351351 let dappAcres = 6
352352
353353 func getLands (userAddrStrOrEmpty,stakingContract,acresContract) = {
354354 let props = split(valueOrElse(getString(stakingContract, "resTypesProportions"), "0_0_0_0_0_0"), "_")
355355 func adder (acc,item) = (acc + parseIntValue(item))
356356
357357 let totalPieces = {
358358 let $l = props
359359 let $s = size($l)
360360 let $acc0 = 0
361361 func $f0_1 ($a,$i) = if (($i >= $s))
362362 then $a
363363 else adder($a, $l[$i])
364364
365365 func $f0_2 ($a,$i) = if (($i >= $s))
366366 then $a
367367 else throw("List size exceeds 6")
368368
369369 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
370370 }
371371 let userPieces = valueOrElse(getInteger(stakingContract, ("stakedPiecesByOwner_" + userAddrStrOrEmpty)), 0)
372372 let totalAcres = valueOrElse(getInteger(acresContract, acresStakedTotalKey), 0)
373373 let userAcres = valueOrElse(getInteger(acresContract, keyAcresStakedAmountByUser(userAddrStrOrEmpty)), 0)
374374 [totalPieces, userPieces, totalAcres, userAcres]
375375 }
376376
377377
378378 let idxTotalPieces = 0
379379
380380 let idxUserPieces = 1
381381
382382 let idxTotalAcres = 2
383383
384384 let idxUserAcres = 3
385385
386386 let OLD_STAKING_DEADL = 1733346000000
387387
388388 func getWlgStats (userAddrOpt,contracts,usdtId,usdtBalanceCorrection,userProportion6) = {
389389 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet")
390390 let economyUsd = assetBalance(contracts[dappEconomy], usdtId)
391391 let restUsd = assetBalance(contracts[dappRest], usdtId)
392392 let wlgUsd = (assetBalance(contracts[dappWlg], usdtId) - usdtBalanceCorrection)
393393 let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId)
394394 let investFndContract = contracts[dappInvestFund]
395395 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmountKey), 0))
396396 let totalFundsUsd = ((economyUsd + wlgUsd) + investFundTotal)
397397 let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet")
398398 let now = lastBlock.timestamp
399399 let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized")
400400 let bankWlgold = assetBalance(contracts[dappStaking], wlgId)
401401 let teamTotal = fraction(MILLION6, TEAMSHARE, M6)
402402 let teamAmountLeft = valueOrElse(getInteger(contracts[dappWlg], teamAmountLeftKey), teamTotal)
403403 let lastTeamTime = valueOrElse(getInteger(contracts[dappWlg], lastTeamTimeKey), issueTime)
404404 let teamAddr = addressFromStringValue(value(getString(contracts[dappWlg], teamAddrKey)))
405405 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEARMILLIS)), teamAmountLeft])
406406 let teamWlgold = assetBalance(teamAddr, wlgId)
407407 let actTotal = fraction(MILLION6, ACTIVITYSHARE, M6)
408408 let actAmountLeft = valueOrElse(getInteger(contracts[dappWlg], actAmountLeftKey), actTotal)
409409 let lastActivitiesTime = valueOrElse(getInteger(contracts[dappWlg], lastActivitiesTimeKey), issueTime)
410410 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEARMILLIS)), actAmountLeft])
411411 let actWlgold = assetBalance(contracts[dappRest], wlgId)
412412 let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUserOld(userAddrOpt)), issueTime)
413413 let lastUserPeriod = ((lastUserTime - issueTime) / YEARMILLIS)
414414 let nowLimited = min([min([now, (issueTime + (3 * YEARMILLIS))]), OLD_STAKING_DEADL])
415415 let curPeriod = min([((now - issueTime) / YEARMILLIS), 2])
416416 let eff = getLands(userAddrOpt, contracts[dappStaking], contracts[dappAcres])
417417 let curPeriodDistribution = distributionByPeriod(curPeriod)
418418 let $t079143 = if ((lastUserPeriod == curPeriod))
419419 then {
420420 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEARMILLIS)
421421 let userPart = fraction(a0, userProportion6, M6)
422422 let effTime = (lastUserTime + fraction((nowLimited - lastUserTime), userProportion6, M6))
423423 $Tuple3(userPart, a0, effTime)
424424 }
425425 else if ((lastUserPeriod == (curPeriod - 1)))
426426 then {
427427 let a1 = fraction(distributionByPeriod((curPeriod - 1)), ((issueTime + (YEARMILLIS * curPeriod)) - lastUserTime), YEARMILLIS)
428428 let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS)
429429 let avail = (a1 + a0)
430430 let userPart = fraction(avail, userProportion6, M6)
431431 let effTime = if ((a1 >= userPart))
432432 then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 1))))
433433 else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, (userPart - a1), curPeriodDistribution))
434434 $Tuple3(userPart, avail, effTime)
435435 }
436436 else {
437437 let a2 = fraction(distributionByPeriod((curPeriod - 2)), ((issueTime + (YEARMILLIS * (curPeriod - 1))) - lastUserTime), YEARMILLIS)
438438 let a1 = distributionByPeriod((curPeriod - 1))
439439 let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS)
440440 let avail = ((a2 + a1) + a0)
441441 let userPart = fraction(avail, userProportion6, M6)
442442 let effTime = if ((a2 >= userPart))
443443 then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 2))))
444444 else if (((a2 + a1) >= userPart))
445445 then ((issueTime + (YEARMILLIS * (curPeriod - 1))) + fraction(YEARMILLIS, (userPart - a2), distributionByPeriod((curPeriod - 1))))
446446 else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, ((userPart - a2) - a1), curPeriodDistribution))
447447 $Tuple3(userPart, avail, effTime)
448448 }
449449 let userAmount = $t079143._1
450450 let userAvailable = $t079143._2
451451 let effLastTime = $t079143._3
452452 let sLandDailyAmount = fraction(fraction(curPeriodDistribution, DAYMILLIS, YEARMILLIS), 25, eff[idxTotalPieces])
453453 let amountLeftTotal = valueOrElse(getInteger(contracts[dappWlg], stakersAmountLeftKey), 0)
454454 let userTemp = fraction(userAmount, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres]))
455455 let bankFromUser = fraction(userTemp, BANK_FEE, M6)
456456 let robbedUser = (userTemp - bankFromUser)
457457 let unrobbedUser = fraction(userAvailable, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres]))
458458 [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]
459459 }
460460
461461
462462 let M6_ = 1000000
463463
464464 let M8_ = 100000000
465465
466466 let TEAM_SHARE = 200000
467467
468468 let ACTIVITY_SHARE = 100000
469469
470470 let PLAYER_SHARE = 400000
471471
472472 let YEAR_MILLIS = 31557600000
473473
474474 let DAY_MS = 86400000
475475
476476 let ISSUE10 = 1000000000
477477
478478 let PLAYERS10_SHARE = 800000
479479
480480 let MARKETING10_SHARE = 100000
481481
482482 let TEAM10_SHARE = 100000
483483
484484 let NEW_STAKING_START = 1731279600000
485485
486486 let marketingAddrKey = "marketingAddr"
487487
488488 let teamAdrKey = "teamAddr"
489489
490490 let lastTeamTimKey = "lastClaimedTime_team"
491491
492492 let teamAmtLeftKey = "teamAmountLeft"
493493
494494 let lastActivitiesTimKey = "lastClaimedTime_activities"
495495
496496 let actAmtLeftKey = "activitiesAmountLeft"
497497
498498 let stakersAmtLeftKey = "stakersAmountLeft"
499499
500500 func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
501501
502502
503503 func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_))
504504
505505
506506 let wlgIssue10TimeKey = "wlg_issue10Time"
507507
508508 let wlgIssueTimKey = "wlg_issueTime"
509509
510510 let wlgIssuedAmtKey = "wlg_issuedAmount"
511511
512512 let zbIssuedAmtKey = "zbill_issuedAmount"
513513
514514 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
515515
516516
517517 let acresStakdTotalKey = "acresStakedAmountTotal"
518518
519519 let totalFarmingPowerKey = "totalFarmingPower"
520520
521521 let dapp2Rest = 0
522522
523523 let dapp2Staking = 1
524524
525525 let dapp2Wlg = 2
526526
527527 let dapp2Puzzle = 3
528528
529529 let dapp2InvestFund = 4
530530
531531 let DEFAULT_WEEKLY_PRIZES = 5
532532
533533 let ACRES_FOR_BET = 100000000
534534
535535 let keyNftTotalIssued = "nftTotalIssued"
536536
537537 let keyNftTotalBurned = "nftTotalBurned"
538538
539539 let keyWlNftTotalStaked = "WlNftTotalStaked"
540540
541541 func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr)
542542
543543
544544 func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
545545
546546
547547 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
548548
549549 func getLevelByAcres (acres) = {
550550 let acr = ((acres + 99999999) / M8_)
551551 func checker (acc,item) = if ((item >= acr))
552552 then acc
553553 else (acc + 1)
554554
555555 let $l = levelAcres
556556 let $s = size($l)
557557 let $acc0 = 0
558558 func $f0_1 ($a,$i) = if (($i >= $s))
559559 then $a
560560 else checker($a, $l[$i])
561561
562562 func $f0_2 ($a,$i) = if (($i >= $s))
563563 then $a
564564 else throw("List size exceeds 10")
565565
566566 $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)
567567 }
568568
569569
570570 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
571571
572572
573573 func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
574574 let notBonused = getFarmingPowerByAcres(acres)
575575 $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
576576 }
577577
578578
579579 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
580580 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
581581 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
582582 let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0)
583583 let $t079143 = getFarmingPowerByAcresAndBonus(userAcres, userBonus)
584584 let userFPbonused = $t079143._1
585585 let userFPnotBonused = $t079143._2
586586 [totalFP, userFPbonused, userFPnotBonused, userBonus]
587587 }
588588
589589
590590 let idxTotalFP = 0
591591
592592 let idxUserFPbonused = 1
593593
594594 func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = {
595595 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet")
596596 let restUsd = assetBalance(contracts[dapp2Rest], usdtId)
597597 let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection)
598598 let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId)
599599 let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId)
600600 let investFndContract = contracts[dapp2InvestFund]
601601 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0))
602602 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
603603 let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet")
604604 let now = lastBlock.timestamp
605605 let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized")
606606 let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId)
607607 let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_)
608608 let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal)
609609 let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime)
610610 let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey)))
611611 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft])
612612 let teamWlgold = assetBalance(teamAddr, wlgId)
613613 let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_)
614614 let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal)
615615 let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime)
616616 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft])
617617 let actWlgold = assetBalance(contracts[dapp2Rest], wlgId)
618618 let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime)
619619 let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS)
620620 let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))])
621621 let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2])
622622 let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking])
623623 let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod)
624624 let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod))
625625 let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1)))
626626 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS)
627627 let userAvailable = if ((lastUserPeriod == curPeriod))
628628 then a0
629629 else if ((lastUserPeriod == (curPeriod - 1)))
630630 then {
631631 let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS)
632632 (a1 + a0)
633633 }
634634 else {
635635 let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS)
636636 let a1 = distrByPeriod(issuedAmount, (curPeriod - 1))
637637 ((a2 + a1) + a0)
638638 }
639639 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
640640 let userAmount = if ((eff[idxTotalFP] != 0))
641641 then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP])
642642 else 0
643643 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
644644 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
645645 let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_)
646646 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
647647 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
648648 let user10part = if ((eff[idxTotalFP] != 0))
649649 then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
650650 else 0
651651 let newIssue10Time = max([NEW_STAKING_START, now])
652652 let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0)
653653 let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0)
654654 let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0)
655655 let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0)
656656 let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0)
657657 [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]
658658 }
659659
660660
661661 let profitAddrKey = "profitAddr"
662662
663663 let stakersAmountPaidTotalKey = "stakersAmountPaidTotal"
664664
665665 func keyStakersAmountPaidUser (addr) = ("stakersAmountPaidUser_" + addr)
666666
667667
668668 func prolog2 () = asInt(reentrantInvoke(acres2Contract, "saveLastTx", nil, nil))
669669
670670
671671 func getSwapLimitWlgold (addr) = {
672672 let lastTime = valueOrElse(getInteger(keyLastWlgTradeTimeByUser(addr)), 0)
673673 let defaultLimit = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmountByUser(addr)), 0)
674674 let lastLimitLeft = valueOrElse(getInteger(keyLastWlgTradeLimitByUser(addr)), defaultLimit)
675675 let currentLimit = (lastLimitLeft + fraction(defaultLimit, (lastBlock.timestamp - lastTime), DAY_MILLIS))
676676 min([currentLimit, defaultLimit])
677677 }
678678
679679
680680 let idxWlgTeamAmLeft = 10
681681
682682 let idxWlgTeamAmAvailNow = 11
683683
684684 let idxWlgActAmLeft = 14
685685
686686 let idxWlgActAmAvailNow = 15
687687
688688 let idxWlgAmLeftTotal = 18
689689
690690 let idxWlgUserTotalAvail = 24
691691
692692 let idxWlgEffUserTime = 25
693693
694694 func claimInternal (addr) = {
695695 let caller = addressFromStringValue(addr)
696696 let economyContract = addressFromStringValue(economyContractStr)
697697 let curStats = getWlgStats(addr, [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract, acresContract], usdtAssetId, 0, MULT6)
698698 let now = lastBlock.timestamp
699699 let teamAmountLeft = curStats[idxWlgTeamAmLeft]
700700 let teamAmount = curStats[idxWlgTeamAmAvailNow]
701701 let actAmountLeft = curStats[idxWlgActAmLeft]
702702 let actAmount = curStats[idxWlgActAmAvailNow]
703703 let userAmount = curStats[idxWlgUserTotalAvail]
704704 let userKey = keyStakersAmountPaidUser(addr)
705705 let userTotal = curStats[idxWlgUserTotalAvail]
706706 let userEffTime = curStats[idxWlgEffUserTime]
707707 $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)
708708 }
709709
710710
711711 func claimInternal2 (addr) = {
712712 let curStats = getWlgStats2(addr, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
713713 let userTimeKey = keyLastClaimTimeByUser(addr)
714714 let lastUserTime = valueOrElse(getInteger(userTimeKey), 0)
715715 let userEffTime = curStats[ixWlgEffUserTime]
716716 if ((lastUserTime == userEffTime))
717717 then $Tuple2(nil, 0)
718718 else {
719719 let now = lastBlock.timestamp
720720 let issueTime = curStats[ixWlgIssueTime]
721721 let teamAmountLeft = curStats[ixWlgTeamAmLeft]
722722 let teamAmount = (curStats[ixWlgTeamAmAvailNow] + curStats[ixWlgTeamIssue10Amount])
723723 let teamActions = if ((teamAmount > 0))
724724 then [IntegerEntry(teamAmountLeftKey, ((teamAmountLeft - teamAmount) + curStats[ixWlgTeamIssue10Amount])), IntegerEntry(lastTeamTimeKey, now), ScriptTransfer(addressFromStringValue(value(getString(teamAddrKey))), teamAmount, wlgAssetId)]
725725 else nil
726726 let actAmountLeft = curStats[ixWlgActAmLeft]
727727 let actAmount = curStats[ixWlgActAmAvailNow]
728728 let actActions = if ((actAmount > 0))
729729 then [IntegerEntry(actAmountLeftKey, (actAmountLeft - actAmount)), IntegerEntry(lastActivitiesTimeKey, now), ScriptTransfer(restContract, actAmount, wlgAssetId)]
730730 else nil
731731 let marketingAmount = curStats[ixWlgMarketingIssue10Amount]
732732 let marketingTransfer = if ((marketingAmount > 0))
733733 then [ScriptTransfer(addressFromStringValue(value(getString(marketingAddrKey))), marketingAmount, wlgAssetId)]
734734 else nil
735735 let userAmount = curStats[ixWlgUserAmAvailNow]
736736 let userKey = keyStakersAmountPaidUser(addr)
737737 let userTotal = (userAmount + curStats[ixWlgUser10part])
738738 let issued10Amount = curStats[ixWlgIssue10Amount]
739739 $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)
740740 }
741741 }
742742
743743
744744 func takeXpInternal (addr,delta) = {
745745 let now = lastBlock.timestamp
746746 let timeKey = keyWlgStakedTimeByUser(addr)
747747 let amountKey = keyWlgStakedAmountByUser(addr)
748748 let lastTime = valueOrElse(getInteger(timeKey), 0)
749749 let oldUser = valueOrElse(getInteger(amountKey), 0)
750750 let oldTotal = valueOrElse(getInteger(wlgStakedTotalKey), 0)
751751 let xp = fraction(fraction(xpWlg, oldUser, wlgBaseAmountXp), (lastTime - now), DAYMILLIS)
752752 $Tuple3([IntegerEntry(timeKey, now), IntegerEntry(amountKey, (oldUser + delta)), IntegerEntry(wlgStakedTotalKey, (oldTotal + delta))], xp, oldUser)
753753 }
754754
755755
756756 func openChestInternal (addr,week,userTickets,totalTickets,lastWeekNumTx) = {
757757 let drawWeek = (week - 1)
758758 let numPrizes = valueOrElse(getInteger(keyNumPrizes2Draw(drawWeek)), DEFAULT_WEEKLY_PRIZES)
759- let nftKey = keyNumNFTDrawn(drawWeek)
760- let acresKey = keyAcresDrawn(drawWeek)
761759 let entropy = value(value(blockInfoByHeight((week * WEEK_BLOCKS))).vrf)
762760 let salt = fromBase58String(split(lastWeekNumTx, "_")[1])
763761 let random4 = getRandomNumber(M4, salt, entropy)
764762 if (isWin(userTickets, totalTickets, numPrizes, random4))
765763 then {
766764 let rnd = getRandomNumber(100, (base58'29' + salt), entropy)
767- let $t084228790 = if ((rnd >= 90))
768- then $Tuple2(invoke(acres2Contract, "issuePickC1", [addr], nil), IntegerEntry(nftKey, (valueOrElse(getInteger(nftKey), 0) + 1)))
769- else $Tuple2(invoke(acresContract, "sendAcresFor", [addr, ACRES_WEEKLY_PRIZE], nil), IntegerEntry(acresKey, (valueOrElse(getInteger(acresKey), 0) + ACRES_WEEKLY_PRIZE)))
770- let prizeResult = $t084228790._1
771- let prizeAction = $t084228790._2
765+ let $t083418798 = if ((rnd >= 90))
766+ then {
767+ let nftKey = keyNumNFTDrawn(drawWeek)
768+ $Tuple2(invoke(acres2Contract, "issuePickC1", [addr], nil), IntegerEntry(nftKey, (valueOrElse(getInteger(nftKey), 0) + 1)))
769+ }
770+ else {
771+ let acresKey = keyAcresDrawn(drawWeek)
772+ $Tuple2(invoke(acresContract, "sendAcresFor", [addr, ACRES_WEEKLY_PRIZE], nil), IntegerEntry(acresKey, (valueOrElse(getInteger(acresKey), 0) + ACRES_WEEKLY_PRIZE)))
773+ }
774+ let prizeResult = $t083418798._1
775+ let prizeAction = $t083418798._2
772776 let winners = getString(keyWeekWinners(drawWeek))
773777 let newWinners = if (isDefined(winners))
774778 then ((value(winners) + "_") + addr)
775779 else addr
776- $Tuple2([prizeAction, DeleteEntry(keyUserWeekTickets(addr, drawWeek)), StringEntry(keyWeekWinners(drawWeek), newWinners)], prizeResult)
780+ $Tuple2([prizeAction, DeleteEntry(keyUserWeekTickets(addr, drawWeek)), StringEntry(keyWeekWinners(drawWeek), newWinners)], $Tuple2(prizeResult, rnd))
777781 }
778782 else {
779783 let random1 = (getRandomNumber(9, (base58'29' + salt), entropy) + 1)
780784 let consTickets = fraction(userTickets, random1, 10)
781785 let ticketsKey = keyUserWeekTickets(addr, week)
782786 let oldTickets = valueOrElse(getInteger(ticketsKey), 0)
783787 $Tuple2(((if ((consTickets == 0))
784788 then nil
785789 else {
786790 let commonActions = [IntegerEntry(keyTotalWeekTickets(week), (valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) + consTickets)), IntegerEntry(ticketsKey, (oldTickets + consTickets))]
787791 if ((oldTickets > 0))
788792 then commonActions
789793 else (commonActions :+ IntegerEntry(keyTotalWeekParticipants(week), (valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) + 1)))
790794 }) :+ DeleteEntry(keyUserWeekTickets(addr, drawWeek))), consTickets)
791795 }
792796 }
793797
794798
795799 func claimTicketsInternal (addr,userBetStr) = {
796800 let week = (height / WEEK_BLOCKS)
797801 let ticketsKey = keyUserWeekTickets(addr, week)
798802 let dayBet = split(userBetStr, "_")
799803 let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0)
800804 let oldTickets = valueOrElse(getInteger(ticketsKey), 0)
801805 let deltaTickets = if ((winningBet(parseIntValue(dayBet[0])) == parseIntValue(dayBet[1])))
802806 then 1
803807 else 0
804808 let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0)
805809 let updateParticipants = if (if ((oldTickets == 0))
806810 then (deltaTickets == 1)
807811 else false)
808812 then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))]
809813 else nil
810814 $Tuple2(if ((deltaTickets == 0))
811815 then nil
812816 else ((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets)
813817 }
814818
815819
816820 @Callable(i)
817821 func constructorV1 (restAddr,marketingAddr,teamAddr,profitAddr) = if ((i.caller != this))
818822 then throw("Permission denied")
819823 else if (isDefined(getBinary(wlgAssetIdKey)))
820824 then throw("Already initialized")
821825 else {
822826 let issuedAmount = MILLION6
823827 let issue = Issue("WLGOLD", "WavesLands Gold investment token", issuedAmount, 8, true, unit, 0)
824828 let assetId = calculateAssetId(issue)
825829 [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)]
826830 }
827831
828832
829833
830834 @Callable(i)
831835 func constructorV2 (rest2Addr) = if ((i.caller != this))
832836 then throw("Permission denied")
833837 else [StringEntry(keyRest2Address(), rest2Addr)]
834838
835839
836840
837841 @Callable(i)
838842 func buyWlg (minToReceive) = {
839843 let prologResult = prolog2()
840844 if ((prologResult == prologResult))
841845 then if ((size(i.payments) != 1))
842846 then throw("exactly 1 payment must be attached")
843847 else {
844848 let pmt = i.payments[0]
845849 let usdtAmt = pmt.amount
846850 if (if (!(isDefined(pmt.assetId)))
847851 then true
848852 else (value(pmt.assetId) != usdtAssetId))
849853 then throw("USDT payments only!")
850854 else {
851855 let caller = i.caller
852856 let addr = toString(caller)
853857 if ((MINSHOPPAYMENT > usdtAmt))
854858 then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT"))
855859 else {
856860 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt)
857861 let curWlgAmount = curStats[ixWlgAmount]
858862 let wlgPrice = curStats[ixWlgPrice]
859863 let buyPrice = fraction(wlgPrice, 6, 5, CEILING)
860864 let wlgAmount = fraction(usdtAmt, MULT8, buyPrice)
861865 let maxWlg = getSwapLimitWlgold(addr)
862866 if ((wlgAmount > maxWlg))
863867 then throw((("You can get max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment"))
864868 else if ((minToReceive > wlgAmount))
865869 then throw("Price changed during operation, please try again")
866870 else {
867871 let profitAmount = (usdtAmt / 6)
868872 $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)
869873 }
870874 }
871875 }
872876 }
873877 else throw("Strict value is not equal to itself.")
874878 }
875879
876880
877881
878882 @Callable(i)
879883 func buyWlgREADONLY (address,usdtAmt) = {
880884 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt)
881885 let wlgPrice = curStats[ixWlgPrice]
882886 let buyPrice = fraction(wlgPrice, 6, 5, CEILING)
883887 let wlgAmount = fraction(usdtAmt, MULT8, buyPrice)
884888 let maxWlg = getSwapLimitWlgold(address)
885889 let maxUsdt = fraction(maxWlg, buyPrice, MULT8)
886890 let profitAmount = (usdtAmt / 6)
887891 $Tuple2(nil, [wlgAmount, MINSHOPPAYMENT, maxUsdt, profitAmount])
888892 }
889893
890894
891895
892896 @Callable(i)
893897 func sellWlg (minAmount) = {
894898 let prologResult = prolog2()
895899 if ((prologResult == prologResult))
896900 then if ((size(i.payments) != 1))
897901 then throw("exactly 1 payment must be attached")
898902 else {
899903 let pmt = i.payments[0]
900904 let wlgAmt = pmt.amount
901905 let caller = i.caller
902906 let addr = toString(caller)
903907 let maxWlg = getSwapLimitWlgold(addr)
904908 if ((wlgAmt > maxWlg))
905909 then throw((("You can spend max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment"))
906910 else if (if (!(isDefined(pmt.assetId)))
907911 then true
908912 else (value(pmt.assetId) != wlgAssetId))
909913 then throw("WLGOLD payments only!")
910914 else {
911915 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
912916 let curWlgAmount = curStats[ixWlgAmount]
913917 let sellPrice = (curStats[ixWlgPrice] / 2)
914918 let usdtAmt = fraction(wlgAmt, sellPrice, MULT8)
915919 if ((MINSHOPPAYMENT > usdtAmt))
916920 then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT"))
917921 else if ((minAmount > usdtAmt))
918922 then throw("Price changed during operation, please try again")
919923 else {
920924 let profitAmount = (usdtAmt / 5)
921925 $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)
922926 }
923927 }
924928 }
925929 else throw("Strict value is not equal to itself.")
926930 }
927931
928932
929933
930934 @Callable(i)
931935 func sellWlgREADONLY (address,wlgAmt) = {
932936 let maxWlg = getSwapLimitWlgold(address)
933937 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
934938 let sellPrice = (curStats[ixWlgPrice] / 2)
935939 let usdtAmt = fraction(wlgAmt, sellPrice, MULT8)
936940 let minWlg = fraction(MINSHOPPAYMENT, MULT8, sellPrice)
937941 let profitAmount = (usdtAmt / 5)
938942 $Tuple2(nil, [usdtAmt, minWlg, maxWlg, profitAmount])
939943 }
940944
941945
942946
943947 @Callable(i)
944948 func claim () = {
945949 let prologResult = prolog2()
946950 if ((prologResult == prologResult))
947951 then if ((size(i.payments) != 0))
948952 then throw("No payments required")
949953 else {
950- let $t01648116550 = claimInternal2(toString(i.caller))
951- let actions = $t01648116550._1
952- let wlgClaimedAmount = $t01648116550._2
954+ let $t01649616565 = claimInternal2(toString(i.caller))
955+ let actions = $t01649616565._1
956+ let wlgClaimedAmount = $t01649616565._2
953957 $Tuple2((actions :+ ScriptTransfer(i.caller, wlgClaimedAmount, wlgAssetId)), prologResult)
954958 }
955959 else throw("Strict value is not equal to itself.")
956960 }
957961
958962
959963
960964 @Callable(i)
961965 func onStakeUnstakeLand (addr) = if (if (if ((i.caller != stakingContract))
962966 then (i.caller != acresContract)
963967 else false)
964968 then (i.caller != acres2Contract)
965969 else false)
966970 then throw("Permission denied")
967971 else {
968- let $t01687016927 = claimInternal2(addr)
969- if (($t01687016927 == $t01687016927))
972+ let $t01688516942 = claimInternal2(addr)
973+ if (($t01688516942 == $t01688516942))
970974 then {
971- let wlgClaimedAmount = $t01687016927._2
972- let actions = $t01687016927._1
975+ let wlgClaimedAmount = $t01688516942._2
976+ let actions = $t01688516942._1
973977 $Tuple2(if ((wlgClaimedAmount > 0))
974978 then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId))
975979 else actions, wlgClaimedAmount)
976980 }
977981 else throw("Strict value is not equal to itself.")
978982 }
979983
980984
981985
982986 @Callable(i)
983987 func onStakeUnstakeLandOld (addr) = if (if (if ((i.caller != stakingContract))
984988 then (i.caller != acresContract)
985989 else false)
986990 then (i.caller != acres2Contract)
987991 else false)
988992 then throw("Permission denied")
989993 else {
990- let $t01731017366 = claimInternal(addr)
991- if (($t01731017366 == $t01731017366))
994+ let $t01732517381 = claimInternal(addr)
995+ if (($t01732517381 == $t01732517381))
992996 then {
993- let wlgClaimedAmount = $t01731017366._2
994- let actions = $t01731017366._1
997+ let wlgClaimedAmount = $t01732517381._2
998+ let actions = $t01732517381._1
995999 $Tuple2(if ((wlgClaimedAmount > 0))
9961000 then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId))
9971001 else nil, wlgClaimedAmount)
9981002 }
9991003 else throw("Strict value is not equal to itself.")
10001004 }
10011005
10021006
10031007
10041008 @Callable(i)
10051009 func burnWlgold (wlgAmt) = if (if ((i.caller != acres2Contract))
10061010 then (i.caller != marketContract)
10071011 else false)
10081012 then throw("Permission denied")
10091013 else {
10101014 let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
10111015 if ((wlgAmt > curStats[ixWlgWlg]))
10121016 then throw(((("Only " + fixedPoint(curStats[ixWlgWlg], 8)) + " WLGOLD left on contract, can't burn ") + fixedPoint(wlgAmt, 8)))
10131017 else {
10141018 let wlgAmountLeft = (curStats[ixWlgAmount] - wlgAmt)
10151019 $Tuple2([Burn(wlgAssetId, wlgAmt), IntegerEntry(wlgIssuedAmountKey, wlgAmountLeft)], wlgAmountLeft)
10161020 }
10171021 }
10181022
10191023
10201024
10211025 @Callable(i)
10221026 func betForTicket (bet) = {
10231027 let prologResult = prolog2()
10241028 if ((prologResult == prologResult))
10251029 then if ((size(i.payments) != 0))
10261030 then throw("No payments required")
10271031 else {
10281032 let addr = toString(i.caller)
10291033 let drawWeek = ((height / WEEK_BLOCKS) - 1)
10301034 let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0)
10311035 let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0)
10321036 if (if ((userTickets > 0))
10331037 then (weekTickets > 0)
10341038 else false)
10351039 then throw("Please open the chest first")
10361040 else if (((bet / 4) != 0))
10371041 then throw("Invalid bet: should be 0..3")
10381042 else {
10391043 let moment = (height % DAY_BLOCKS)
10401044 if ((moment > (DAY_BLOCKS - 3)))
10411045 then throw((("Cannot bet: the day is almost ended, please wait " + toString((DAY_BLOCKS - moment))) + " blocks"))
10421046 else {
10431047 let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(addr)), 0)
10441048 if ((ACRES_FOR_BET > stakedAcres))
10451049 then throw((("You need to stake at least " + fixedPoint(ACRES_FOR_BET, 8)) + " ACRES to bet"))
10461050 else {
10471051 let tomorrow = ((height / DAY_BLOCKS) + 1)
10481052 let betKey = keyUserBet(addr)
10491053 let oldUserBetStr = getString(betKey)
10501054 let newBetEntry = StringEntry(betKey, ((toString(tomorrow) + "_") + toString(bet)))
10511055 if (isDefined(oldUserBetStr))
10521056 then {
10531057 let userBet = value(oldUserBetStr)
10541058 if ((split(userBet, "_")[0] == toString(tomorrow)))
10551059 then throw("You already bet for tomorrow")
10561060 else {
10571061 let r = claimTicketsInternal(addr, userBet)
10581062 $Tuple2((r._1 :+ newBetEntry), r._2)
10591063 }
10601064 }
10611065 else $Tuple2([newBetEntry], 0)
10621066 }
10631067 }
10641068 }
10651069 }
10661070 else throw("Strict value is not equal to itself.")
10671071 }
10681072
10691073
10701074
10711075 @Callable(i)
10721076 func takeWlgXp (addr) = if ((i.caller != stakingContract))
10731077 then throw("Permission denied")
10741078 else {
1075- let $t01999820041 = takeXpInternal(addr, 0)
1076- let actions = $t01999820041._1
1077- let xp = $t01999820041._2
1079+ let $t02001320056 = takeXpInternal(addr, 0)
1080+ let actions = $t02001320056._1
1081+ let xp = $t02001320056._2
10781082 $Tuple2(actions, xp)
10791083 }
10801084
10811085
10821086
10831087 @Callable(i)
10841088 func checkWlgXpREADONLY (addr) = {
1085- let $t02011820166 = takeXpInternal(addr, 0)
1086- let ignored = $t02011820166._1
1087- let deltaXP = $t02011820166._2
1089+ let $t02013320181 = takeXpInternal(addr, 0)
1090+ let ignored = $t02013320181._1
1091+ let deltaXP = $t02013320181._2
10881092 let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP)
10891093 let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP)
10901094 $Tuple2(nil, (lvlPoints :+ newXP))
10911095 }
10921096
10931097
10941098
10951099 @Callable(i)
10961100 func setNumPrizes (numPrizes) = if ((i.caller != this))
10971101 then throw("Permission denied")
10981102 else {
10991103 let week = (height / WEEK_BLOCKS)
11001104 $Tuple2([IntegerEntry(keyNumPrizes2Draw(week), numPrizes)], numPrizes)
11011105 }
11021106
11031107
11041108
11051109 @Callable(i)
11061110 func openChest () = {
11071111 let prologResult = prolog2()
11081112 if ((prologResult == prologResult))
11091113 then if ((size(i.payments) != 0))
11101114 then throw("No payments required")
11111115 else {
11121116 let week = (height / WEEK_BLOCKS)
11131117 let drawWeek = (week - 1)
11141118 let addr = toString(i.caller)
11151119 let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0)
11161120 if ((0 >= userTickets))
11171121 then throw("No gems to open the chest")
11181122 else {
11191123 let totalTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0)
11201124 if ((0 >= totalTickets))
11211125 then throw("No participants")
11221126 else {
11231127 let lastWeekNumTx = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(addr)), "42_DEFAULT")
11241128 openChestInternal(addr, week, userTickets, totalTickets, lastWeekNumTx)
11251129 }
11261130 }
11271131 }
11281132 else throw("Strict value is not equal to itself.")
11291133 }
11301134
11311135
11321136
11331137 @Callable(i)
11341138 func addGemsFor (addr,deltaTickets) = if ((i.caller != this))
11351139 then throw("Permission denied")
11361140 else {
11371141 let week = (height / WEEK_BLOCKS)
11381142 let ticketsKey = keyUserWeekTickets(addr, week)
11391143 let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0)
11401144 let oldTickets = valueOrElse(getInteger(ticketsKey), 0)
11411145 let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0)
11421146 let updateParticipants = if (if ((oldTickets == 0))
11431147 then (deltaTickets == 1)
11441148 else false)
11451149 then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))]
11461150 else nil
11471151 $Tuple2(((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets)
11481152 }
11491153
11501154

github/deemru/w8io/169f3d6 
111.75 ms