tx · 53rW9Ba4zwe6GQjwSpduXNstE5AytXWAybVmptYug5aP 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy: -0.03600000 Waves 2024.12.15 15:49 [3415701] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves
{ "type": 13, "id": "53rW9Ba4zwe6GQjwSpduXNstE5AytXWAybVmptYug5aP", "fee": 3600000, "feeAssetId": null, "timestamp": 1734267002280, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "2zGCgujbTwwWiFkYXe6idUYQE9cUzUy1oXXrDawL424Wj5jnLmuz34Scnot4PgfL4anFcdtteH4ruy1aGiTtmFXu" ], "script": "base64:BgJSCAISBgoECAgICBIDCgEIEgMKAQESBAoCCAESAwoBARIECgIIARIAEgMKAQgSAwoBCBIDCgEBEgMKAQESAwoBCBIDCgEIEgMKAQESABIECgIIAbkBAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ4AIDC1y8ADk1JTlNIT1BQQVlNRU5UAKCNBgAKREFZX01JTExJUwCAuJkpAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAKREFZX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACgCwMJAAACAQFUBQckbWF0Y2gwADwJAAIBAg1Vbmtub3duIGNoYWluAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgAKVlJGX09GRlNFVAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAAAAwkAAAIBAVQFByRtYXRjaDAAkPlFCQACAQINVW5rbm93biBjaGFpbgALdXNk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DNCAIJAM0IAgUSdXBkYXRlUGFydGljaXBhbnRzCQEMSW50ZWdlckVudHJ5AgUKdGlja2V0c0tleQkAZAIFCm9sZFRpY2tldHMFDGRlbHRhVGlja2V0cwkBDEludGVnZXJFbnRyeQIJARNrZXlUb3RhbFdlZWtUaWNrZXRzAQUEd2VlawkAZAIFD29sZFRvdGFsVGlja2V0cwUMZGVsdGFUaWNrZXRzBQxkZWx0YVRpY2tldHMApTUtJQ==", "height": 3415701, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fv5kpH7SLtaykk6Jh46YWctaXLcZDnzU6jZR3Gu6nwhk Next: none Diff:
Old | New | Differences | |
---|---|---|---|
87 | 87 | ||
88 | 88 | let IdxCfgInvestFundDapp = 5 | |
89 | 89 | ||
90 | + | let IdxCfgMarketDapp = 6 | |
91 | + | ||
90 | 92 | func keyRestCfg () = "%s__restConfig" | |
91 | 93 | ||
92 | 94 | ||
125 | 127 | let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp) | |
126 | 128 | ||
127 | 129 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
130 | + | ||
131 | + | let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp) | |
128 | 132 | ||
129 | 133 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
130 | 134 | ||
989 | 993 | ||
990 | 994 | ||
991 | 995 | @Callable(i) | |
992 | - | func burnWlgold (wlgAmt) = if ((i.caller != acres2Contract)) | |
996 | + | func burnWlgold (wlgAmt) = if (if ((i.caller != acres2Contract)) | |
997 | + | then (i.caller != marketContract) | |
998 | + | else false) | |
993 | 999 | then throw("Permission denied") | |
994 | 1000 | else { | |
995 | 1001 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
1057 | 1063 | func takeWlgXp (addr) = if ((i.caller != stakingContract)) | |
1058 | 1064 | then throw("Permission denied") | |
1059 | 1065 | else { | |
1060 | - | let $ | |
1061 | - | let actions = $ | |
1062 | - | let xp = $ | |
1066 | + | let $t01995619999 = takeXpInternal(addr, 0) | |
1067 | + | let actions = $t01995619999._1 | |
1068 | + | let xp = $t01995619999._2 | |
1063 | 1069 | $Tuple2(actions, xp) | |
1064 | 1070 | } | |
1065 | 1071 | ||
1067 | 1073 | ||
1068 | 1074 | @Callable(i) | |
1069 | 1075 | func checkWlgXpREADONLY (addr) = { | |
1070 | - | let $ | |
1071 | - | let ignored = $ | |
1072 | - | let deltaXP = $ | |
1076 | + | let $t02007620124 = takeXpInternal(addr, 0) | |
1077 | + | let ignored = $t02007620124._1 | |
1078 | + | let deltaXP = $t02007620124._2 | |
1073 | 1079 | let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP) | |
1074 | 1080 | let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP) | |
1075 | 1081 | $Tuple2(nil, (lvlPoints :+ newXP)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let MULT6 = 1000000 | |
7 | 7 | ||
8 | 8 | let MULT8 = 100000000 | |
9 | 9 | ||
10 | 10 | let MINSHOPPAYMENT = 100000 | |
11 | 11 | ||
12 | 12 | let DAY_MILLIS = 86400000 | |
13 | 13 | ||
14 | 14 | let chain = take(drop(this.bytes, 1), 1) | |
15 | 15 | ||
16 | 16 | let DAY_BLOCKS = match chain { | |
17 | 17 | case _ => | |
18 | 18 | if ((base58'2W' == $match0)) | |
19 | 19 | then 1440 | |
20 | 20 | else if ((base58'2T' == $match0)) | |
21 | 21 | then 60 | |
22 | 22 | else throw("Unknown chain") | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | let WEEK_BLOCKS = match chain { | |
26 | 26 | case _ => | |
27 | 27 | if ((base58'2W' == $match0)) | |
28 | 28 | then 10080 | |
29 | 29 | else if ((base58'2T' == $match0)) | |
30 | 30 | then 180 | |
31 | 31 | else throw("Unknown chain") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | let VRF_OFFSET = match chain { | |
35 | 35 | case _ => | |
36 | 36 | if ((base58'2W' == $match0)) | |
37 | 37 | then 0 | |
38 | 38 | else if ((base58'2T' == $match0)) | |
39 | 39 | then 1146000 | |
40 | 40 | else throw("Unknown chain") | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | let usdtAssetId = match chain { | |
44 | 44 | case _ => | |
45 | 45 | if ((base58'2W' == $match0)) | |
46 | 46 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
47 | 47 | else if ((base58'2T' == $match0)) | |
48 | 48 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
49 | 49 | else throw("Unknown chain") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | let defaultRest2AddressStr = match chain { | |
53 | 53 | case _ => | |
54 | 54 | if ((base58'2W' == $match0)) | |
55 | 55 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
56 | 56 | else if ((base58'2T' == $match0)) | |
57 | 57 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
58 | 58 | else throw("Unknown chain") | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | let defaultRestAddressStr = match chain { | |
62 | 62 | case _ => | |
63 | 63 | if ((base58'2W' == $match0)) | |
64 | 64 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
65 | 65 | else if ((base58'2T' == $match0)) | |
66 | 66 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
67 | 67 | else throw("Unknown chain") | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | let economyContractStr = match chain { | |
71 | 71 | case _ => | |
72 | 72 | if ((base58'2W' == $match0)) | |
73 | 73 | then "3P2sk1KncSxRaZs8b4CWGPw2jkvvav74u4D" | |
74 | 74 | else if ((base58'2T' == $match0)) | |
75 | 75 | then "3N8y4wxX3JC4TdrCJBXX16SjWf6X256hrep" | |
76 | 76 | else throw("Unknown chain") | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | let IdxCfgAcres2Dapp = 1 | |
83 | 83 | ||
84 | 84 | let IdxCfgWlgDapp = 2 | |
85 | 85 | ||
86 | 86 | let IdxCfgPuzzlePoolDapp = 4 | |
87 | 87 | ||
88 | 88 | let IdxCfgInvestFundDapp = 5 | |
89 | 89 | ||
90 | + | let IdxCfgMarketDapp = 6 | |
91 | + | ||
90 | 92 | func keyRestCfg () = "%s__restConfig" | |
91 | 93 | ||
92 | 94 | ||
93 | 95 | func keyRest2Address () = "%s__rest2Addr" | |
94 | 96 | ||
95 | 97 | ||
96 | 98 | func keyRestAddress () = "%s__restAddr" | |
97 | 99 | ||
98 | 100 | ||
99 | 101 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
100 | 102 | ||
101 | 103 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
102 | 104 | ||
103 | 105 | ||
104 | 106 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
105 | 107 | ||
106 | 108 | ||
107 | 109 | let IdxCfgStakingDapp = 1 | |
108 | 110 | ||
109 | 111 | let IdxCfgAcresDapp = 8 | |
110 | 112 | ||
111 | 113 | let restCfg = readRestCfgOrFail(restContract) | |
112 | 114 | ||
113 | 115 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
114 | 116 | ||
115 | 117 | let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp) | |
116 | 118 | ||
117 | 119 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
118 | 120 | ||
119 | 121 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
120 | 122 | ||
121 | 123 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
122 | 124 | ||
123 | 125 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
124 | 126 | ||
125 | 127 | let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp) | |
126 | 128 | ||
127 | 129 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
130 | + | ||
131 | + | let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp) | |
128 | 132 | ||
129 | 133 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
130 | 134 | ||
131 | 135 | ||
132 | 136 | let wlgAssetIdKey = "wlg_assetId" | |
133 | 137 | ||
134 | 138 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet") | |
135 | 139 | ||
136 | 140 | func keyUserBet (addr) = ("userBet_" + addr) | |
137 | 141 | ||
138 | 142 | ||
139 | 143 | func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week)) | |
140 | 144 | ||
141 | 145 | ||
142 | 146 | func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week)) | |
143 | 147 | ||
144 | 148 | ||
145 | 149 | func keyTotalWeekParticipants (week) = ("totalWeekParticipants_" + toString(week)) | |
146 | 150 | ||
147 | 151 | ||
148 | 152 | func keyNumNFT2Draw (week) = ("numNFT2Draw_" + toString(week)) | |
149 | 153 | ||
150 | 154 | ||
151 | 155 | func keyNumNFTDrawn (week) = ("numNFTDrawn_" + toString(week)) | |
152 | 156 | ||
153 | 157 | ||
154 | 158 | func keyWeekWinners (week) = ("weekWinners_" + toString(week)) | |
155 | 159 | ||
156 | 160 | ||
157 | 161 | func winningBet (day) = { | |
158 | 162 | let b = (day * DAY_BLOCKS) | |
159 | 163 | let h = if ((b > VRF_OFFSET)) | |
160 | 164 | then b | |
161 | 165 | else (b + VRF_OFFSET) | |
162 | 166 | (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4) | |
163 | 167 | } | |
164 | 168 | ||
165 | 169 | ||
166 | 170 | let ixWlgAmount = 0 | |
167 | 171 | ||
168 | 172 | let ixWlgWlg = 1 | |
169 | 173 | ||
170 | 174 | let ixWlgPrice = 2 | |
171 | 175 | ||
172 | 176 | let ixWlgIssueTime = 8 | |
173 | 177 | ||
174 | 178 | let ixWlgTeamAmLeft = 11 | |
175 | 179 | ||
176 | 180 | let ixWlgTeamAmAvailNow = 12 | |
177 | 181 | ||
178 | 182 | let ixWlgActAmLeft = 15 | |
179 | 183 | ||
180 | 184 | let ixWlgActAmAvailNow = 16 | |
181 | 185 | ||
182 | 186 | let ixWlgAmLeftTotal = 19 | |
183 | 187 | ||
184 | 188 | let ixWlgUserAmAvailNow = 23 | |
185 | 189 | ||
186 | 190 | let ixWlgEffUserTime = 24 | |
187 | 191 | ||
188 | 192 | let ixWlgIssue10Amount = 25 | |
189 | 193 | ||
190 | 194 | let ixWlgMarketingIssue10Amount = 26 | |
191 | 195 | ||
192 | 196 | let ixWlgTeamIssue10Amount = 27 | |
193 | 197 | ||
194 | 198 | let ixWlgUser10part = 28 | |
195 | 199 | ||
196 | 200 | let ixWlgIssue10Time = 29 | |
197 | 201 | ||
198 | 202 | func asInt (v) = match v { | |
199 | 203 | case n: Int => | |
200 | 204 | n | |
201 | 205 | case _ => | |
202 | 206 | throw("fail to cast into Int") | |
203 | 207 | } | |
204 | 208 | ||
205 | 209 | ||
206 | 210 | func fixedPoint (val,decimals) = { | |
207 | 211 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
208 | 212 | let lowPart = toString((val % tenPow)) | |
209 | 213 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
210 | 214 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
211 | 215 | } | |
212 | 216 | ||
213 | 217 | ||
214 | 218 | func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue)) | |
215 | 219 | then throw("maxValue should be > 0") | |
216 | 220 | else { | |
217 | 221 | let randomHash = sha256_16Kb((salt + entropy)) | |
218 | 222 | (toInt(randomHash) % maxValue) | |
219 | 223 | } | |
220 | 224 | ||
221 | 225 | ||
222 | 226 | let SCALE8 = 100000000 | |
223 | 227 | ||
224 | 228 | let xpLevelScale = 3200 | |
225 | 229 | ||
226 | 230 | let xpLevelRecipPow = 4000 | |
227 | 231 | ||
228 | 232 | let numPointsOnLevelUp = 3 | |
229 | 233 | ||
230 | 234 | let wlgBaseAmountXp = 100000000000 | |
231 | 235 | ||
232 | 236 | func keyUserXP (addr) = ("userXP_" + addr) | |
233 | 237 | ||
234 | 238 | ||
235 | 239 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
236 | 240 | ||
237 | 241 | ||
238 | 242 | let xpWlg = 10000 | |
239 | 243 | ||
240 | 244 | func levelByXP (xp) = fraction(xpLevelScale, pow(xp, 4, xpLevelRecipPow, 4, 4, DOWN), SCALE8) | |
241 | 245 | ||
242 | 246 | ||
243 | 247 | func levelUp (currLevel,newXP) = { | |
244 | 248 | let newLevel = levelByXP(newXP) | |
245 | 249 | [newLevel, (numPointsOnLevelUp * (newLevel - currLevel))] | |
246 | 250 | } | |
247 | 251 | ||
248 | 252 | ||
249 | 253 | let M6 = 1000000 | |
250 | 254 | ||
251 | 255 | let M8 = 100000000 | |
252 | 256 | ||
253 | 257 | let MILLION6 = 100000000000000 | |
254 | 258 | ||
255 | 259 | let TEAMSHARE = 200000 | |
256 | 260 | ||
257 | 261 | let ACTIVITYSHARE = 100000 | |
258 | 262 | ||
259 | 263 | let PLAYERSHARE = 400000 | |
260 | 264 | ||
261 | 265 | let YEARMILLIS = 31557600000 | |
262 | 266 | ||
263 | 267 | let DAYMILLIS = 86400000 | |
264 | 268 | ||
265 | 269 | let BANK_FEE = 50000 | |
266 | 270 | ||
267 | 271 | let ch = take(drop(this.bytes, 1), 1) | |
268 | 272 | ||
269 | 273 | let USDT_TVL_CORRECTION = match ch { | |
270 | 274 | case _ => | |
271 | 275 | if ((base58'2W' == $match0)) | |
272 | 276 | then 1208630000 | |
273 | 277 | else if ((base58'2T' == $match0)) | |
274 | 278 | then 0 | |
275 | 279 | else throw("Unknown chain") | |
276 | 280 | } | |
277 | 281 | ||
278 | 282 | let teamAddrKey = "teamAddr" | |
279 | 283 | ||
280 | 284 | let lastTeamTimeKey = "lastClaimedTime_team" | |
281 | 285 | ||
282 | 286 | let teamAmountLeftKey = "teamAmountLeft" | |
283 | 287 | ||
284 | 288 | let lastActivitiesTimeKey = "lastClaimedTime_activities" | |
285 | 289 | ||
286 | 290 | let actAmountLeftKey = "activitiesAmountLeft" | |
287 | 291 | ||
288 | 292 | let stakersAmountLeftKey = "stakersAmountLeft" | |
289 | 293 | ||
290 | 294 | func keyLastClaimedTimeByUserOld (addr) = ("lastClaimedTimeUserOld_" + addr) | |
291 | 295 | ||
292 | 296 | ||
293 | 297 | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
294 | 298 | ||
295 | 299 | ||
296 | 300 | func keyLastWlgTradeLimitByUser (addr) = ("lastWlgLimitUser_" + addr) | |
297 | 301 | ||
298 | 302 | ||
299 | 303 | func distributionByPeriod (period) = fraction(MILLION6, (PLAYERSHARE * (period + 1)), (6 * M6)) | |
300 | 304 | ||
301 | 305 | ||
302 | 306 | let wlgIssueTimeKey = "wlg_issueTime" | |
303 | 307 | ||
304 | 308 | let wlgIssuedAmountKey = "wlg_issuedAmount" | |
305 | 309 | ||
306 | 310 | let zbIssuedAmountKey = "zbill_issuedAmount" | |
307 | 311 | ||
308 | 312 | func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
309 | 313 | ||
310 | 314 | ||
311 | 315 | let acresStakedTotalKey = "acresStakedAmountTotal" | |
312 | 316 | ||
313 | 317 | func keyWlgStakedAmountByUser (addr) = ("wlgStakedAmountByUser_" + addr) | |
314 | 318 | ||
315 | 319 | ||
316 | 320 | let wlgStakedTotalKey = "wlgStakedAmountTotal" | |
317 | 321 | ||
318 | 322 | func keyWlgStakedTimeByUser (addr) = ("wlgStakedTimeByUser_" + addr) | |
319 | 323 | ||
320 | 324 | ||
321 | 325 | let dappRest = 0 | |
322 | 326 | ||
323 | 327 | let dappStaking = 1 | |
324 | 328 | ||
325 | 329 | let dappEconomy = 2 | |
326 | 330 | ||
327 | 331 | let dappWlg = 3 | |
328 | 332 | ||
329 | 333 | let dappPuzzle = 4 | |
330 | 334 | ||
331 | 335 | let dappInvestFund = 5 | |
332 | 336 | ||
333 | 337 | let dappAcres = 6 | |
334 | 338 | ||
335 | 339 | func getLands (userAddrStrOrEmpty,stakingContract,acresContract) = { | |
336 | 340 | let props = split(valueOrElse(getString(stakingContract, "resTypesProportions"), "0_0_0_0_0_0"), "_") | |
337 | 341 | func adder (acc,item) = (acc + parseIntValue(item)) | |
338 | 342 | ||
339 | 343 | let totalPieces = { | |
340 | 344 | let $l = props | |
341 | 345 | let $s = size($l) | |
342 | 346 | let $acc0 = 0 | |
343 | 347 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
344 | 348 | then $a | |
345 | 349 | else adder($a, $l[$i]) | |
346 | 350 | ||
347 | 351 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
348 | 352 | then $a | |
349 | 353 | else throw("List size exceeds 6") | |
350 | 354 | ||
351 | 355 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
352 | 356 | } | |
353 | 357 | let userPieces = valueOrElse(getInteger(stakingContract, ("stakedPiecesByOwner_" + userAddrStrOrEmpty)), 0) | |
354 | 358 | let totalAcres = valueOrElse(getInteger(acresContract, acresStakedTotalKey), 0) | |
355 | 359 | let userAcres = valueOrElse(getInteger(acresContract, keyAcresStakedAmountByUser(userAddrStrOrEmpty)), 0) | |
356 | 360 | [totalPieces, userPieces, totalAcres, userAcres] | |
357 | 361 | } | |
358 | 362 | ||
359 | 363 | ||
360 | 364 | let idxTotalPieces = 0 | |
361 | 365 | ||
362 | 366 | let idxUserPieces = 1 | |
363 | 367 | ||
364 | 368 | let idxTotalAcres = 2 | |
365 | 369 | ||
366 | 370 | let idxUserAcres = 3 | |
367 | 371 | ||
368 | 372 | let OLD_STAKING_DEADL = 1733346000000 | |
369 | 373 | ||
370 | 374 | func getWlgStats (userAddrOpt,contracts,usdtId,usdtBalanceCorrection,userProportion6) = { | |
371 | 375 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet") | |
372 | 376 | let economyUsd = assetBalance(contracts[dappEconomy], usdtId) | |
373 | 377 | let restUsd = assetBalance(contracts[dappRest], usdtId) | |
374 | 378 | let wlgUsd = (assetBalance(contracts[dappWlg], usdtId) - usdtBalanceCorrection) | |
375 | 379 | let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId) | |
376 | 380 | let investFndContract = contracts[dappInvestFund] | |
377 | 381 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmountKey), 0)) | |
378 | 382 | let totalFundsUsd = ((economyUsd + wlgUsd) + investFundTotal) | |
379 | 383 | let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet") | |
380 | 384 | let now = lastBlock.timestamp | |
381 | 385 | let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized") | |
382 | 386 | let bankWlgold = assetBalance(contracts[dappStaking], wlgId) | |
383 | 387 | let teamTotal = fraction(MILLION6, TEAMSHARE, M6) | |
384 | 388 | let teamAmountLeft = valueOrElse(getInteger(contracts[dappWlg], teamAmountLeftKey), teamTotal) | |
385 | 389 | let lastTeamTime = valueOrElse(getInteger(contracts[dappWlg], lastTeamTimeKey), issueTime) | |
386 | 390 | let teamAddr = addressFromStringValue(value(getString(contracts[dappWlg], teamAddrKey))) | |
387 | 391 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEARMILLIS)), teamAmountLeft]) | |
388 | 392 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
389 | 393 | let actTotal = fraction(MILLION6, ACTIVITYSHARE, M6) | |
390 | 394 | let actAmountLeft = valueOrElse(getInteger(contracts[dappWlg], actAmountLeftKey), actTotal) | |
391 | 395 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dappWlg], lastActivitiesTimeKey), issueTime) | |
392 | 396 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEARMILLIS)), actAmountLeft]) | |
393 | 397 | let actWlgold = assetBalance(contracts[dappRest], wlgId) | |
394 | 398 | let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUserOld(userAddrOpt)), issueTime) | |
395 | 399 | let lastUserPeriod = ((lastUserTime - issueTime) / YEARMILLIS) | |
396 | 400 | let nowLimited = min([min([now, (issueTime + (3 * YEARMILLIS))]), OLD_STAKING_DEADL]) | |
397 | 401 | let curPeriod = min([((now - issueTime) / YEARMILLIS), 2]) | |
398 | 402 | let eff = getLands(userAddrOpt, contracts[dappStaking], contracts[dappAcres]) | |
399 | 403 | let curPeriodDistribution = distributionByPeriod(curPeriod) | |
400 | 404 | let $t079143 = if ((lastUserPeriod == curPeriod)) | |
401 | 405 | then { | |
402 | 406 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEARMILLIS) | |
403 | 407 | let userPart = fraction(a0, userProportion6, M6) | |
404 | 408 | let effTime = (lastUserTime + fraction((nowLimited - lastUserTime), userProportion6, M6)) | |
405 | 409 | $Tuple3(userPart, a0, effTime) | |
406 | 410 | } | |
407 | 411 | else if ((lastUserPeriod == (curPeriod - 1))) | |
408 | 412 | then { | |
409 | 413 | let a1 = fraction(distributionByPeriod((curPeriod - 1)), ((issueTime + (YEARMILLIS * curPeriod)) - lastUserTime), YEARMILLIS) | |
410 | 414 | let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS) | |
411 | 415 | let avail = (a1 + a0) | |
412 | 416 | let userPart = fraction(avail, userProportion6, M6) | |
413 | 417 | let effTime = if ((a1 >= userPart)) | |
414 | 418 | then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 1)))) | |
415 | 419 | else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, (userPart - a1), curPeriodDistribution)) | |
416 | 420 | $Tuple3(userPart, avail, effTime) | |
417 | 421 | } | |
418 | 422 | else { | |
419 | 423 | let a2 = fraction(distributionByPeriod((curPeriod - 2)), ((issueTime + (YEARMILLIS * (curPeriod - 1))) - lastUserTime), YEARMILLIS) | |
420 | 424 | let a1 = distributionByPeriod((curPeriod - 1)) | |
421 | 425 | let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS) | |
422 | 426 | let avail = ((a2 + a1) + a0) | |
423 | 427 | let userPart = fraction(avail, userProportion6, M6) | |
424 | 428 | let effTime = if ((a2 >= userPart)) | |
425 | 429 | then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 2)))) | |
426 | 430 | else if (((a2 + a1) >= userPart)) | |
427 | 431 | then ((issueTime + (YEARMILLIS * (curPeriod - 1))) + fraction(YEARMILLIS, (userPart - a2), distributionByPeriod((curPeriod - 1)))) | |
428 | 432 | else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, ((userPart - a2) - a1), curPeriodDistribution)) | |
429 | 433 | $Tuple3(userPart, avail, effTime) | |
430 | 434 | } | |
431 | 435 | let userAmount = $t079143._1 | |
432 | 436 | let userAvailable = $t079143._2 | |
433 | 437 | let effLastTime = $t079143._3 | |
434 | 438 | let sLandDailyAmount = fraction(fraction(curPeriodDistribution, DAYMILLIS, YEARMILLIS), 25, eff[idxTotalPieces]) | |
435 | 439 | let amountLeftTotal = valueOrElse(getInteger(contracts[dappWlg], stakersAmountLeftKey), 0) | |
436 | 440 | let userTemp = fraction(userAmount, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres])) | |
437 | 441 | let bankFromUser = fraction(userTemp, BANK_FEE, M6) | |
438 | 442 | let robbedUser = (userTemp - bankFromUser) | |
439 | 443 | let unrobbedUser = fraction(userAvailable, ((eff[idxUserPieces] * M8) + eff[idxUserAcres]), ((eff[idxTotalPieces] * M8) + eff[idxTotalAcres])) | |
440 | 444 | [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] | |
441 | 445 | } | |
442 | 446 | ||
443 | 447 | ||
444 | 448 | let M6_ = 1000000 | |
445 | 449 | ||
446 | 450 | let M8_ = 100000000 | |
447 | 451 | ||
448 | 452 | let TEAM_SHARE = 200000 | |
449 | 453 | ||
450 | 454 | let ACTIVITY_SHARE = 100000 | |
451 | 455 | ||
452 | 456 | let PLAYER_SHARE = 400000 | |
453 | 457 | ||
454 | 458 | let YEAR_MILLIS = 31557600000 | |
455 | 459 | ||
456 | 460 | let DAY_MS = 86400000 | |
457 | 461 | ||
458 | 462 | let ISSUE10 = 1000000000 | |
459 | 463 | ||
460 | 464 | let PLAYERS10_SHARE = 800000 | |
461 | 465 | ||
462 | 466 | let MARKETING10_SHARE = 100000 | |
463 | 467 | ||
464 | 468 | let TEAM10_SHARE = 100000 | |
465 | 469 | ||
466 | 470 | let NEW_STAKING_START = 1731279600000 | |
467 | 471 | ||
468 | 472 | let marketingAddrKey = "marketingAddr" | |
469 | 473 | ||
470 | 474 | let teamAdrKey = "teamAddr" | |
471 | 475 | ||
472 | 476 | let lastTeamTimKey = "lastClaimedTime_team" | |
473 | 477 | ||
474 | 478 | let teamAmtLeftKey = "teamAmountLeft" | |
475 | 479 | ||
476 | 480 | let lastActivitiesTimKey = "lastClaimedTime_activities" | |
477 | 481 | ||
478 | 482 | let actAmtLeftKey = "activitiesAmountLeft" | |
479 | 483 | ||
480 | 484 | let stakersAmtLeftKey = "stakersAmountLeft" | |
481 | 485 | ||
482 | 486 | func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
483 | 487 | ||
484 | 488 | ||
485 | 489 | func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_)) | |
486 | 490 | ||
487 | 491 | ||
488 | 492 | let wlgIssue10TimeKey = "wlg_issue10Time" | |
489 | 493 | ||
490 | 494 | let wlgIssueTimKey = "wlg_issueTime" | |
491 | 495 | ||
492 | 496 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
493 | 497 | ||
494 | 498 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
495 | 499 | ||
496 | 500 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
497 | 501 | ||
498 | 502 | ||
499 | 503 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
500 | 504 | ||
501 | 505 | let totalFarmingPowerKey = "totalFarmingPower" | |
502 | 506 | ||
503 | 507 | let dapp2Rest = 0 | |
504 | 508 | ||
505 | 509 | let dapp2Staking = 1 | |
506 | 510 | ||
507 | 511 | let dapp2Wlg = 2 | |
508 | 512 | ||
509 | 513 | let dapp2Puzzle = 3 | |
510 | 514 | ||
511 | 515 | let dapp2InvestFund = 4 | |
512 | 516 | ||
513 | 517 | let DEFAULT_WEEKLY_PRIZES = 5 | |
514 | 518 | ||
515 | 519 | let ACRES_FOR_BET = 100000000 | |
516 | 520 | ||
517 | 521 | let keyNftTotalIssued = "nftTotalIssued" | |
518 | 522 | ||
519 | 523 | let keyNftTotalBurned = "nftTotalBurned" | |
520 | 524 | ||
521 | 525 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
522 | 526 | ||
523 | 527 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
524 | 528 | ||
525 | 529 | ||
526 | 530 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
527 | 531 | ||
528 | 532 | ||
529 | 533 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
530 | 534 | ||
531 | 535 | func getLevelByAcres (acres) = { | |
532 | 536 | let acr = ((acres + 99999999) / M8_) | |
533 | 537 | func checker (acc,item) = if ((item >= acr)) | |
534 | 538 | then acc | |
535 | 539 | else (acc + 1) | |
536 | 540 | ||
537 | 541 | let $l = levelAcres | |
538 | 542 | let $s = size($l) | |
539 | 543 | let $acc0 = 0 | |
540 | 544 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
541 | 545 | then $a | |
542 | 546 | else checker($a, $l[$i]) | |
543 | 547 | ||
544 | 548 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
545 | 549 | then $a | |
546 | 550 | else throw("List size exceeds 10") | |
547 | 551 | ||
548 | 552 | $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) | |
549 | 553 | } | |
550 | 554 | ||
551 | 555 | ||
552 | 556 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
553 | 557 | ||
554 | 558 | ||
555 | 559 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
556 | 560 | let notBonused = getFarmingPowerByAcres(acres) | |
557 | 561 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
558 | 562 | } | |
559 | 563 | ||
560 | 564 | ||
561 | 565 | func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = { | |
562 | 566 | let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0) | |
563 | 567 | let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0) | |
564 | 568 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0) | |
565 | 569 | let $t079143 = getFarmingPowerByAcresAndBonus(userAcres, userBonus) | |
566 | 570 | let userFPbonused = $t079143._1 | |
567 | 571 | let userFPnotBonused = $t079143._2 | |
568 | 572 | [totalFP, userFPbonused, userFPnotBonused, userBonus] | |
569 | 573 | } | |
570 | 574 | ||
571 | 575 | ||
572 | 576 | let idxTotalFP = 0 | |
573 | 577 | ||
574 | 578 | let idxUserFPbonused = 1 | |
575 | 579 | ||
576 | 580 | func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = { | |
577 | 581 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
578 | 582 | let restUsd = assetBalance(contracts[dapp2Rest], usdtId) | |
579 | 583 | let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection) | |
580 | 584 | let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId) | |
581 | 585 | let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId) | |
582 | 586 | let investFndContract = contracts[dapp2InvestFund] | |
583 | 587 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0)) | |
584 | 588 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
585 | 589 | let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet") | |
586 | 590 | let now = lastBlock.timestamp | |
587 | 591 | let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized") | |
588 | 592 | let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId) | |
589 | 593 | let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_) | |
590 | 594 | let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal) | |
591 | 595 | let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime) | |
592 | 596 | let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey))) | |
593 | 597 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft]) | |
594 | 598 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
595 | 599 | let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_) | |
596 | 600 | let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal) | |
597 | 601 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime) | |
598 | 602 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft]) | |
599 | 603 | let actWlgold = assetBalance(contracts[dapp2Rest], wlgId) | |
600 | 604 | let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime) | |
601 | 605 | let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS) | |
602 | 606 | let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))]) | |
603 | 607 | let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2]) | |
604 | 608 | let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking]) | |
605 | 609 | let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod) | |
606 | 610 | let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod)) | |
607 | 611 | let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1))) | |
608 | 612 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS) | |
609 | 613 | let userAvailable = if ((lastUserPeriod == curPeriod)) | |
610 | 614 | then a0 | |
611 | 615 | else if ((lastUserPeriod == (curPeriod - 1))) | |
612 | 616 | then { | |
613 | 617 | let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
614 | 618 | (a1 + a0) | |
615 | 619 | } | |
616 | 620 | else { | |
617 | 621 | let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
618 | 622 | let a1 = distrByPeriod(issuedAmount, (curPeriod - 1)) | |
619 | 623 | ((a2 + a1) + a0) | |
620 | 624 | } | |
621 | 625 | let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0) | |
622 | 626 | let userAmount = if ((eff[idxTotalFP] != 0)) | |
623 | 627 | then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP]) | |
624 | 628 | else 0 | |
625 | 629 | let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START) | |
626 | 630 | let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS) | |
627 | 631 | let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_) | |
628 | 632 | let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_) | |
629 | 633 | let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0]) | |
630 | 634 | let user10part = if ((eff[idxTotalFP] != 0)) | |
631 | 635 | then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_) | |
632 | 636 | else 0 | |
633 | 637 | let newIssue10Time = max([NEW_STAKING_START, now]) | |
634 | 638 | let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0) | |
635 | 639 | let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0) | |
636 | 640 | let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0) | |
637 | 641 | let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0) | |
638 | 642 | let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0) | |
639 | 643 | [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] | |
640 | 644 | } | |
641 | 645 | ||
642 | 646 | ||
643 | 647 | let profitAddrKey = "profitAddr" | |
644 | 648 | ||
645 | 649 | let stakersAmountPaidTotalKey = "stakersAmountPaidTotal" | |
646 | 650 | ||
647 | 651 | func keyStakersAmountPaidUser (addr) = ("stakersAmountPaidUser_" + addr) | |
648 | 652 | ||
649 | 653 | ||
650 | 654 | func prolog2 () = asInt(reentrantInvoke(acres2Contract, "saveLastTx", nil, nil)) | |
651 | 655 | ||
652 | 656 | ||
653 | 657 | func getSwapLimitWlgold (addr) = { | |
654 | 658 | let lastTime = valueOrElse(getInteger(keyLastWlgTradeTimeByUser(addr)), 0) | |
655 | 659 | let defaultLimit = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmountByUser(addr)), 0) | |
656 | 660 | let lastLimitLeft = valueOrElse(getInteger(keyLastWlgTradeLimitByUser(addr)), defaultLimit) | |
657 | 661 | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (lastBlock.timestamp - lastTime), DAY_MILLIS)) | |
658 | 662 | min([currentLimit, defaultLimit]) | |
659 | 663 | } | |
660 | 664 | ||
661 | 665 | ||
662 | 666 | let idxWlgTeamAmLeft = 10 | |
663 | 667 | ||
664 | 668 | let idxWlgTeamAmAvailNow = 11 | |
665 | 669 | ||
666 | 670 | let idxWlgActAmLeft = 14 | |
667 | 671 | ||
668 | 672 | let idxWlgActAmAvailNow = 15 | |
669 | 673 | ||
670 | 674 | let idxWlgAmLeftTotal = 18 | |
671 | 675 | ||
672 | 676 | let idxWlgUserTotalAvail = 24 | |
673 | 677 | ||
674 | 678 | let idxWlgEffUserTime = 25 | |
675 | 679 | ||
676 | 680 | func claimInternal (addr) = { | |
677 | 681 | let caller = addressFromStringValue(addr) | |
678 | 682 | let economyContract = addressFromStringValue(economyContractStr) | |
679 | 683 | let curStats = getWlgStats(addr, [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract, acresContract], usdtAssetId, 0, MULT6) | |
680 | 684 | let now = lastBlock.timestamp | |
681 | 685 | let teamAmountLeft = curStats[idxWlgTeamAmLeft] | |
682 | 686 | let teamAmount = curStats[idxWlgTeamAmAvailNow] | |
683 | 687 | let actAmountLeft = curStats[idxWlgActAmLeft] | |
684 | 688 | let actAmount = curStats[idxWlgActAmAvailNow] | |
685 | 689 | let userAmount = curStats[idxWlgUserTotalAvail] | |
686 | 690 | let userKey = keyStakersAmountPaidUser(addr) | |
687 | 691 | let userTotal = curStats[idxWlgUserTotalAvail] | |
688 | 692 | let userEffTime = curStats[idxWlgEffUserTime] | |
689 | 693 | $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) | |
690 | 694 | } | |
691 | 695 | ||
692 | 696 | ||
693 | 697 | func claimInternal2 (addr) = { | |
694 | 698 | let curStats = getWlgStats2(addr, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
695 | 699 | let userTimeKey = keyLastClaimTimeByUser(addr) | |
696 | 700 | let lastUserTime = valueOrElse(getInteger(userTimeKey), 0) | |
697 | 701 | let userEffTime = curStats[ixWlgEffUserTime] | |
698 | 702 | if ((lastUserTime == userEffTime)) | |
699 | 703 | then $Tuple2(nil, 0) | |
700 | 704 | else { | |
701 | 705 | let now = lastBlock.timestamp | |
702 | 706 | let issueTime = curStats[ixWlgIssueTime] | |
703 | 707 | let teamAmountLeft = curStats[ixWlgTeamAmLeft] | |
704 | 708 | let teamAmount = (curStats[ixWlgTeamAmAvailNow] + curStats[ixWlgTeamIssue10Amount]) | |
705 | 709 | let teamActions = if ((teamAmount > 0)) | |
706 | 710 | then [IntegerEntry(teamAmountLeftKey, ((teamAmountLeft - teamAmount) + curStats[ixWlgTeamIssue10Amount])), IntegerEntry(lastTeamTimeKey, now), ScriptTransfer(addressFromStringValue(value(getString(teamAddrKey))), teamAmount, wlgAssetId)] | |
707 | 711 | else nil | |
708 | 712 | let actAmountLeft = curStats[ixWlgActAmLeft] | |
709 | 713 | let actAmount = curStats[ixWlgActAmAvailNow] | |
710 | 714 | let actActions = if ((actAmount > 0)) | |
711 | 715 | then [IntegerEntry(actAmountLeftKey, (actAmountLeft - actAmount)), IntegerEntry(lastActivitiesTimeKey, now), ScriptTransfer(restContract, actAmount, wlgAssetId)] | |
712 | 716 | else nil | |
713 | 717 | let marketingAmount = curStats[ixWlgMarketingIssue10Amount] | |
714 | 718 | let marketingTransfer = if ((marketingAmount > 0)) | |
715 | 719 | then [ScriptTransfer(addressFromStringValue(value(getString(marketingAddrKey))), marketingAmount, wlgAssetId)] | |
716 | 720 | else nil | |
717 | 721 | let userAmount = curStats[ixWlgUserAmAvailNow] | |
718 | 722 | let userKey = keyStakersAmountPaidUser(addr) | |
719 | 723 | let userTotal = (userAmount + curStats[ixWlgUser10part]) | |
720 | 724 | let issued10Amount = curStats[ixWlgIssue10Amount] | |
721 | 725 | $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) | |
722 | 726 | } | |
723 | 727 | } | |
724 | 728 | ||
725 | 729 | ||
726 | 730 | func takeXpInternal (addr,delta) = { | |
727 | 731 | let now = lastBlock.timestamp | |
728 | 732 | let timeKey = keyWlgStakedTimeByUser(addr) | |
729 | 733 | let amountKey = keyWlgStakedAmountByUser(addr) | |
730 | 734 | let lastTime = valueOrElse(getInteger(timeKey), 0) | |
731 | 735 | let oldUser = valueOrElse(getInteger(amountKey), 0) | |
732 | 736 | let oldTotal = valueOrElse(getInteger(wlgStakedTotalKey), 0) | |
733 | 737 | let xp = fraction(fraction(xpWlg, oldUser, wlgBaseAmountXp), (lastTime - now), DAYMILLIS) | |
734 | 738 | $Tuple3([IntegerEntry(timeKey, now), IntegerEntry(amountKey, (oldUser + delta)), IntegerEntry(wlgStakedTotalKey, (oldTotal + delta))], xp, oldUser) | |
735 | 739 | } | |
736 | 740 | ||
737 | 741 | ||
738 | 742 | func openChestInternal (addr) = { | |
739 | 743 | let week = (height / WEEK_BLOCKS) | |
740 | 744 | let drawWeek = (week - 1) | |
741 | 745 | let numPrizes = valueOrElse(getInteger(keyNumNFT2Draw(drawWeek)), DEFAULT_WEEKLY_PRIZES) | |
742 | 746 | let prizesDrawn = valueOrElse(getInteger(keyNumNFTDrawn(drawWeek)), 0) | |
743 | 747 | let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0) | |
744 | 748 | if ((0 >= userTickets)) | |
745 | 749 | then $Tuple2(nil, unit) | |
746 | 750 | else { | |
747 | 751 | let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0) | |
748 | 752 | if ((0 >= weekTickets)) | |
749 | 753 | then $Tuple2([DeleteEntry(keyUserWeekTickets(addr, drawWeek))], unit) | |
750 | 754 | else { | |
751 | 755 | let entropy = value(value(blockInfoByHeight((week * WEEK_BLOCKS))).vrf) | |
752 | 756 | let salt = fromBase58String(split(valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
753 | 757 | let random = getRandomNumber(weekTickets, salt, entropy) | |
754 | 758 | if (((userTickets * numPrizes) > random)) | |
755 | 759 | then { | |
756 | 760 | let issueResult = invoke(acres2Contract, "issuePickC1", [addr], nil) | |
757 | 761 | let winners = getString(keyWeekWinners(drawWeek)) | |
758 | 762 | let newWinners = if (isDefined(winners)) | |
759 | 763 | then ((value(winners) + "_") + addr) | |
760 | 764 | else addr | |
761 | 765 | $Tuple2([IntegerEntry(keyNumNFTDrawn(drawWeek), (prizesDrawn + 1)), DeleteEntry(keyUserWeekTickets(addr, drawWeek)), StringEntry(keyWeekWinners(drawWeek), newWinners)], issueResult) | |
762 | 766 | } | |
763 | 767 | else { | |
764 | 768 | let random1 = (getRandomNumber(9, (base58'29' + salt), entropy) + 1) | |
765 | 769 | let consTickets = fraction(userTickets, random1, 10) | |
766 | 770 | let ticketsKey = keyUserWeekTickets(addr, week) | |
767 | 771 | let oldTickets = valueOrElse(getInteger(ticketsKey), 0) | |
768 | 772 | $Tuple2(((if ((consTickets == 0)) | |
769 | 773 | then nil | |
770 | 774 | else { | |
771 | 775 | let commonActions = [IntegerEntry(keyTotalWeekTickets(week), (valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) + consTickets)), IntegerEntry(ticketsKey, (oldTickets + consTickets))] | |
772 | 776 | if ((oldTickets > 0)) | |
773 | 777 | then commonActions | |
774 | 778 | else (commonActions :+ IntegerEntry(keyTotalWeekParticipants(week), (valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) + 1))) | |
775 | 779 | }) :+ DeleteEntry(keyUserWeekTickets(addr, drawWeek))), consTickets) | |
776 | 780 | } | |
777 | 781 | } | |
778 | 782 | } | |
779 | 783 | } | |
780 | 784 | ||
781 | 785 | ||
782 | 786 | func claimTicketsInternal (addr,userBetStr) = { | |
783 | 787 | let week = (height / WEEK_BLOCKS) | |
784 | 788 | let ticketsKey = keyUserWeekTickets(addr, week) | |
785 | 789 | let dayBet = split(userBetStr, "_") | |
786 | 790 | let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) | |
787 | 791 | let oldTickets = valueOrElse(getInteger(ticketsKey), 0) | |
788 | 792 | let deltaTickets = if ((winningBet(parseIntValue(dayBet[0])) == parseIntValue(dayBet[1]))) | |
789 | 793 | then 1 | |
790 | 794 | else 0 | |
791 | 795 | let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) | |
792 | 796 | let updateParticipants = if (if ((oldTickets == 0)) | |
793 | 797 | then (deltaTickets == 1) | |
794 | 798 | else false) | |
795 | 799 | then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))] | |
796 | 800 | else nil | |
797 | 801 | $Tuple2(if ((deltaTickets == 0)) | |
798 | 802 | then nil | |
799 | 803 | else ((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets) | |
800 | 804 | } | |
801 | 805 | ||
802 | 806 | ||
803 | 807 | @Callable(i) | |
804 | 808 | func constructorV1 (restAddr,marketingAddr,teamAddr,profitAddr) = if ((i.caller != this)) | |
805 | 809 | then throw("Permission denied") | |
806 | 810 | else if (isDefined(getBinary(wlgAssetIdKey))) | |
807 | 811 | then throw("Already initialized") | |
808 | 812 | else { | |
809 | 813 | let issuedAmount = MILLION6 | |
810 | 814 | let issue = Issue("WLGOLD", "WavesLands Gold investment token", issuedAmount, 8, true, unit, 0) | |
811 | 815 | let assetId = calculateAssetId(issue) | |
812 | 816 | [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)] | |
813 | 817 | } | |
814 | 818 | ||
815 | 819 | ||
816 | 820 | ||
817 | 821 | @Callable(i) | |
818 | 822 | func constructorV2 (rest2Addr) = if ((i.caller != this)) | |
819 | 823 | then throw("Permission denied") | |
820 | 824 | else [StringEntry(keyRest2Address(), rest2Addr)] | |
821 | 825 | ||
822 | 826 | ||
823 | 827 | ||
824 | 828 | @Callable(i) | |
825 | 829 | func buyWlg (minToReceive) = { | |
826 | 830 | let prologResult = prolog2() | |
827 | 831 | if ((prologResult == prologResult)) | |
828 | 832 | then if ((size(i.payments) != 1)) | |
829 | 833 | then throw("exactly 1 payment must be attached") | |
830 | 834 | else { | |
831 | 835 | let pmt = i.payments[0] | |
832 | 836 | let usdtAmt = pmt.amount | |
833 | 837 | if (if (!(isDefined(pmt.assetId))) | |
834 | 838 | then true | |
835 | 839 | else (value(pmt.assetId) != usdtAssetId)) | |
836 | 840 | then throw("USDT payments only!") | |
837 | 841 | else { | |
838 | 842 | let caller = i.caller | |
839 | 843 | let addr = toString(caller) | |
840 | 844 | if ((MINSHOPPAYMENT > usdtAmt)) | |
841 | 845 | then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT")) | |
842 | 846 | else { | |
843 | 847 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt) | |
844 | 848 | let curWlgAmount = curStats[ixWlgAmount] | |
845 | 849 | let wlgPrice = curStats[ixWlgPrice] | |
846 | 850 | let buyPrice = fraction(wlgPrice, 6, 5, CEILING) | |
847 | 851 | let wlgAmount = fraction(usdtAmt, MULT8, buyPrice) | |
848 | 852 | let maxWlg = getSwapLimitWlgold(addr) | |
849 | 853 | if ((wlgAmount > maxWlg)) | |
850 | 854 | then throw((("You can get max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment")) | |
851 | 855 | else if ((minToReceive > wlgAmount)) | |
852 | 856 | then throw("Price changed during operation, please try again") | |
853 | 857 | else { | |
854 | 858 | let profitAmount = (usdtAmt / 6) | |
855 | 859 | $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) | |
856 | 860 | } | |
857 | 861 | } | |
858 | 862 | } | |
859 | 863 | } | |
860 | 864 | else throw("Strict value is not equal to itself.") | |
861 | 865 | } | |
862 | 866 | ||
863 | 867 | ||
864 | 868 | ||
865 | 869 | @Callable(i) | |
866 | 870 | func buyWlgREADONLY (address,usdtAmt) = { | |
867 | 871 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, usdtAmt) | |
868 | 872 | let wlgPrice = curStats[ixWlgPrice] | |
869 | 873 | let buyPrice = fraction(wlgPrice, 6, 5, CEILING) | |
870 | 874 | let wlgAmount = fraction(usdtAmt, MULT8, buyPrice) | |
871 | 875 | let maxWlg = getSwapLimitWlgold(address) | |
872 | 876 | let maxUsdt = fraction(maxWlg, buyPrice, MULT8) | |
873 | 877 | let profitAmount = (usdtAmt / 6) | |
874 | 878 | $Tuple2(nil, [wlgAmount, MINSHOPPAYMENT, maxUsdt, profitAmount]) | |
875 | 879 | } | |
876 | 880 | ||
877 | 881 | ||
878 | 882 | ||
879 | 883 | @Callable(i) | |
880 | 884 | func sellWlg (minAmount) = { | |
881 | 885 | let prologResult = prolog2() | |
882 | 886 | if ((prologResult == prologResult)) | |
883 | 887 | then if ((size(i.payments) != 1)) | |
884 | 888 | then throw("exactly 1 payment must be attached") | |
885 | 889 | else { | |
886 | 890 | let pmt = i.payments[0] | |
887 | 891 | let wlgAmt = pmt.amount | |
888 | 892 | let caller = i.caller | |
889 | 893 | let addr = toString(caller) | |
890 | 894 | let maxWlg = getSwapLimitWlgold(addr) | |
891 | 895 | if ((wlgAmt > maxWlg)) | |
892 | 896 | then throw((("You can spend max " + fixedPoint(maxWlg, 8)) + " WLGOLD at the moment")) | |
893 | 897 | else if (if (!(isDefined(pmt.assetId))) | |
894 | 898 | then true | |
895 | 899 | else (value(pmt.assetId) != wlgAssetId)) | |
896 | 900 | then throw("WLGOLD payments only!") | |
897 | 901 | else { | |
898 | 902 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
899 | 903 | let curWlgAmount = curStats[ixWlgAmount] | |
900 | 904 | let sellPrice = (curStats[ixWlgPrice] / 2) | |
901 | 905 | let usdtAmt = fraction(wlgAmt, sellPrice, MULT8) | |
902 | 906 | if ((MINSHOPPAYMENT > usdtAmt)) | |
903 | 907 | then throw((("You can trade min " + fixedPoint(MINSHOPPAYMENT, 6)) + " USDT")) | |
904 | 908 | else if ((minAmount > usdtAmt)) | |
905 | 909 | then throw("Price changed during operation, please try again") | |
906 | 910 | else { | |
907 | 911 | let profitAmount = (usdtAmt / 5) | |
908 | 912 | $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) | |
909 | 913 | } | |
910 | 914 | } | |
911 | 915 | } | |
912 | 916 | else throw("Strict value is not equal to itself.") | |
913 | 917 | } | |
914 | 918 | ||
915 | 919 | ||
916 | 920 | ||
917 | 921 | @Callable(i) | |
918 | 922 | func sellWlgREADONLY (address,wlgAmt) = { | |
919 | 923 | let maxWlg = getSwapLimitWlgold(address) | |
920 | 924 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
921 | 925 | let sellPrice = (curStats[ixWlgPrice] / 2) | |
922 | 926 | let usdtAmt = fraction(wlgAmt, sellPrice, MULT8) | |
923 | 927 | let minWlg = fraction(MINSHOPPAYMENT, MULT8, sellPrice) | |
924 | 928 | let profitAmount = (usdtAmt / 5) | |
925 | 929 | $Tuple2(nil, [usdtAmt, minWlg, maxWlg, profitAmount]) | |
926 | 930 | } | |
927 | 931 | ||
928 | 932 | ||
929 | 933 | ||
930 | 934 | @Callable(i) | |
931 | 935 | func claim () = { | |
932 | 936 | let prologResult = prolog2() | |
933 | 937 | if ((prologResult == prologResult)) | |
934 | 938 | then if ((size(i.payments) != 0)) | |
935 | 939 | then throw("No payments required") | |
936 | 940 | else { | |
937 | 941 | let $t01643916508 = claimInternal2(toString(i.caller)) | |
938 | 942 | let actions = $t01643916508._1 | |
939 | 943 | let wlgClaimedAmount = $t01643916508._2 | |
940 | 944 | $Tuple2((actions :+ ScriptTransfer(i.caller, wlgClaimedAmount, wlgAssetId)), prologResult) | |
941 | 945 | } | |
942 | 946 | else throw("Strict value is not equal to itself.") | |
943 | 947 | } | |
944 | 948 | ||
945 | 949 | ||
946 | 950 | ||
947 | 951 | @Callable(i) | |
948 | 952 | func onStakeUnstakeLand (addr) = if (if (if ((i.caller != stakingContract)) | |
949 | 953 | then (i.caller != acresContract) | |
950 | 954 | else false) | |
951 | 955 | then (i.caller != acres2Contract) | |
952 | 956 | else false) | |
953 | 957 | then throw("Permission denied") | |
954 | 958 | else { | |
955 | 959 | let $t01682816885 = claimInternal2(addr) | |
956 | 960 | if (($t01682816885 == $t01682816885)) | |
957 | 961 | then { | |
958 | 962 | let wlgClaimedAmount = $t01682816885._2 | |
959 | 963 | let actions = $t01682816885._1 | |
960 | 964 | $Tuple2(if ((wlgClaimedAmount > 0)) | |
961 | 965 | then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId)) | |
962 | 966 | else actions, wlgClaimedAmount) | |
963 | 967 | } | |
964 | 968 | else throw("Strict value is not equal to itself.") | |
965 | 969 | } | |
966 | 970 | ||
967 | 971 | ||
968 | 972 | ||
969 | 973 | @Callable(i) | |
970 | 974 | func onStakeUnstakeLandOld (addr) = if (if (if ((i.caller != stakingContract)) | |
971 | 975 | then (i.caller != acresContract) | |
972 | 976 | else false) | |
973 | 977 | then (i.caller != acres2Contract) | |
974 | 978 | else false) | |
975 | 979 | then throw("Permission denied") | |
976 | 980 | else { | |
977 | 981 | let $t01726817324 = claimInternal(addr) | |
978 | 982 | if (($t01726817324 == $t01726817324)) | |
979 | 983 | then { | |
980 | 984 | let wlgClaimedAmount = $t01726817324._2 | |
981 | 985 | let actions = $t01726817324._1 | |
982 | 986 | $Tuple2(if ((wlgClaimedAmount > 0)) | |
983 | 987 | then (actions :+ ScriptTransfer(addressFromStringValue(addr), wlgClaimedAmount, wlgAssetId)) | |
984 | 988 | else nil, wlgClaimedAmount) | |
985 | 989 | } | |
986 | 990 | else throw("Strict value is not equal to itself.") | |
987 | 991 | } | |
988 | 992 | ||
989 | 993 | ||
990 | 994 | ||
991 | 995 | @Callable(i) | |
992 | - | func burnWlgold (wlgAmt) = if ((i.caller != acres2Contract)) | |
996 | + | func burnWlgold (wlgAmt) = if (if ((i.caller != acres2Contract)) | |
997 | + | then (i.caller != marketContract) | |
998 | + | else false) | |
993 | 999 | then throw("Permission denied") | |
994 | 1000 | else { | |
995 | 1001 | let curStats = getWlgStats2("", [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
996 | 1002 | if ((wlgAmt > curStats[ixWlgWlg])) | |
997 | 1003 | then throw(((("Only " + fixedPoint(curStats[ixWlgWlg], 8)) + " WLGOLD left on contract, can't burn ") + fixedPoint(wlgAmt, 8))) | |
998 | 1004 | else { | |
999 | 1005 | let wlgAmountLeft = (curStats[ixWlgAmount] - wlgAmt) | |
1000 | 1006 | $Tuple2([Burn(wlgAssetId, wlgAmt), IntegerEntry(wlgIssuedAmountKey, wlgAmountLeft)], wlgAmountLeft) | |
1001 | 1007 | } | |
1002 | 1008 | } | |
1003 | 1009 | ||
1004 | 1010 | ||
1005 | 1011 | ||
1006 | 1012 | @Callable(i) | |
1007 | 1013 | func betForTicket (bet) = { | |
1008 | 1014 | let prologResult = prolog2() | |
1009 | 1015 | if ((prologResult == prologResult)) | |
1010 | 1016 | then if ((size(i.payments) != 0)) | |
1011 | 1017 | then throw("No payments required") | |
1012 | 1018 | else { | |
1013 | 1019 | let addr = toString(i.caller) | |
1014 | 1020 | let drawWeek = ((height / WEEK_BLOCKS) - 1) | |
1015 | 1021 | let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0) | |
1016 | 1022 | let weekTickets = valueOrElse(getInteger(keyTotalWeekTickets(drawWeek)), 0) | |
1017 | 1023 | if (if ((userTickets > 0)) | |
1018 | 1024 | then (weekTickets > 0) | |
1019 | 1025 | else false) | |
1020 | 1026 | then throw("Please open the chest first") | |
1021 | 1027 | else if (((bet / 4) != 0)) | |
1022 | 1028 | then throw("Invalid bet: should be 0..3") | |
1023 | 1029 | else { | |
1024 | 1030 | let moment = (height % DAY_BLOCKS) | |
1025 | 1031 | if ((moment > (DAY_BLOCKS - 3))) | |
1026 | 1032 | then throw((("Cannot bet: the day is almost ended, please wait " + toString((DAY_BLOCKS - moment))) + " blocks")) | |
1027 | 1033 | else { | |
1028 | 1034 | let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(addr)), 0) | |
1029 | 1035 | if ((ACRES_FOR_BET > stakedAcres)) | |
1030 | 1036 | then throw((("You need to stake at least " + fixedPoint(ACRES_FOR_BET, 8)) + " ACRES to bet")) | |
1031 | 1037 | else { | |
1032 | 1038 | let tomorrow = ((height / DAY_BLOCKS) + 1) | |
1033 | 1039 | let betKey = keyUserBet(addr) | |
1034 | 1040 | let oldUserBetStr = getString(betKey) | |
1035 | 1041 | let newBetEntry = StringEntry(betKey, ((toString(tomorrow) + "_") + toString(bet))) | |
1036 | 1042 | if (isDefined(oldUserBetStr)) | |
1037 | 1043 | then { | |
1038 | 1044 | let userBet = value(oldUserBetStr) | |
1039 | 1045 | if ((split(userBet, "_")[0] == toString(tomorrow))) | |
1040 | 1046 | then throw("You already bet for tomorrow") | |
1041 | 1047 | else { | |
1042 | 1048 | let r = claimTicketsInternal(addr, userBet) | |
1043 | 1049 | $Tuple2((r._1 :+ newBetEntry), r._2) | |
1044 | 1050 | } | |
1045 | 1051 | } | |
1046 | 1052 | else $Tuple2([newBetEntry], 0) | |
1047 | 1053 | } | |
1048 | 1054 | } | |
1049 | 1055 | } | |
1050 | 1056 | } | |
1051 | 1057 | else throw("Strict value is not equal to itself.") | |
1052 | 1058 | } | |
1053 | 1059 | ||
1054 | 1060 | ||
1055 | 1061 | ||
1056 | 1062 | @Callable(i) | |
1057 | 1063 | func takeWlgXp (addr) = if ((i.caller != stakingContract)) | |
1058 | 1064 | then throw("Permission denied") | |
1059 | 1065 | else { | |
1060 | - | let $ | |
1061 | - | let actions = $ | |
1062 | - | let xp = $ | |
1066 | + | let $t01995619999 = takeXpInternal(addr, 0) | |
1067 | + | let actions = $t01995619999._1 | |
1068 | + | let xp = $t01995619999._2 | |
1063 | 1069 | $Tuple2(actions, xp) | |
1064 | 1070 | } | |
1065 | 1071 | ||
1066 | 1072 | ||
1067 | 1073 | ||
1068 | 1074 | @Callable(i) | |
1069 | 1075 | func checkWlgXpREADONLY (addr) = { | |
1070 | - | let $ | |
1071 | - | let ignored = $ | |
1072 | - | let deltaXP = $ | |
1076 | + | let $t02007620124 = takeXpInternal(addr, 0) | |
1077 | + | let ignored = $t02007620124._1 | |
1078 | + | let deltaXP = $t02007620124._2 | |
1073 | 1079 | let newXP = (valueOrElse(getInteger(stakingContract, keyUserXP(addr)), 0) + deltaXP) | |
1074 | 1080 | let lvlPoints = levelUp(valueOrElse(getInteger(stakingContract, keyUserLevel(addr)), 0), newXP) | |
1075 | 1081 | $Tuple2(nil, (lvlPoints :+ newXP)) | |
1076 | 1082 | } | |
1077 | 1083 | ||
1078 | 1084 | ||
1079 | 1085 | ||
1080 | 1086 | @Callable(i) | |
1081 | 1087 | func setNumPrizes (numPrizes) = if ((i.caller != this)) | |
1082 | 1088 | then throw("Permission denied") | |
1083 | 1089 | else { | |
1084 | 1090 | let week = (height / WEEK_BLOCKS) | |
1085 | 1091 | $Tuple2([IntegerEntry(keyNumNFT2Draw(week), numPrizes)], numPrizes) | |
1086 | 1092 | } | |
1087 | 1093 | ||
1088 | 1094 | ||
1089 | 1095 | ||
1090 | 1096 | @Callable(i) | |
1091 | 1097 | func openChest () = { | |
1092 | 1098 | let prologResult = prolog2() | |
1093 | 1099 | if ((prologResult == prologResult)) | |
1094 | 1100 | then if ((size(i.payments) != 0)) | |
1095 | 1101 | then throw("No payments required") | |
1096 | 1102 | else { | |
1097 | 1103 | let drawWeek = ((height / WEEK_BLOCKS) - 1) | |
1098 | 1104 | let addr = toString(i.caller) | |
1099 | 1105 | let userTickets = valueOrElse(getInteger(keyUserWeekTickets(addr, drawWeek)), 0) | |
1100 | 1106 | if ((0 >= userTickets)) | |
1101 | 1107 | then throw("No gems to open the chest") | |
1102 | 1108 | else openChestInternal(addr) | |
1103 | 1109 | } | |
1104 | 1110 | else throw("Strict value is not equal to itself.") | |
1105 | 1111 | } | |
1106 | 1112 | ||
1107 | 1113 | ||
1108 | 1114 | ||
1109 | 1115 | @Callable(i) | |
1110 | 1116 | func addGemsFor (addr,deltaTickets) = if ((i.caller != this)) | |
1111 | 1117 | then throw("Permission denied") | |
1112 | 1118 | else { | |
1113 | 1119 | let week = (height / WEEK_BLOCKS) | |
1114 | 1120 | let ticketsKey = keyUserWeekTickets(addr, week) | |
1115 | 1121 | let oldTotalTickets = valueOrElse(getInteger(keyTotalWeekTickets(week)), 0) | |
1116 | 1122 | let oldTickets = valueOrElse(getInteger(ticketsKey), 0) | |
1117 | 1123 | let oldParticipants = valueOrElse(getInteger(keyTotalWeekParticipants(week)), 0) | |
1118 | 1124 | let updateParticipants = if (if ((oldTickets == 0)) | |
1119 | 1125 | then (deltaTickets == 1) | |
1120 | 1126 | else false) | |
1121 | 1127 | then [IntegerEntry(keyTotalWeekParticipants(week), (oldParticipants + 1))] | |
1122 | 1128 | else nil | |
1123 | 1129 | $Tuple2(((updateParticipants :+ IntegerEntry(ticketsKey, (oldTickets + deltaTickets))) :+ IntegerEntry(keyTotalWeekTickets(week), (oldTotalTickets + deltaTickets))), deltaTickets) | |
1124 | 1130 | } | |
1125 | 1131 | ||
1126 | 1132 |
github/deemru/w8io/169f3d6 103.18 ms ◑