tx · AvCjaHJGtztMiGkai6bR623nehv9xKK7F26ns1zJCoWa 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv: -0.01700000 Waves 2024.11.23 13:39 [3384000] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves
{ "type": 13, "id": "AvCjaHJGtztMiGkai6bR623nehv9xKK7F26ns1zJCoWa", "fee": 1700000, "feeAssetId": null, "timestamp": 1732358379985, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "4bE9WYfQmmeu3Lct6SnXd5T3LscVSicR1CZV7HkKrBL5hXfinPCcoskhBtBdyht5oy8dibMaksrBGG8CFDkbVrWm" ], "script": "base64:BgIbCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIcAADU0VQAgJfXwAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECDVVua25vd24gY2hhaW4AFmRlZmF1bHRSZXN0MkFkZHJlc3NTdHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDACIzNQRndZdGE4YmlFejMxenBlRmU1REpLOHdFNXRyU3BRVkY4AwkAAAIBAVQFByRtYXRjaDACIzNON1V1WWFyNjI2NFA1OEZCaFZXS1BRQWg0WXVhMmhnbmd2CQACAQINVW5rbm93biBjaGFpbgAVb2xkU3Rha2luZ0NvbnRyYWN0U3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUExuY1h0UzFVODNENmNRYkZEM0g4ckJ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ZHJPcHQFCGxhc3RXZWVrAAAEE2N1cldlZWtUb3RhbFRpY2tldHMJAQt2YWx1ZU9yRWxzZQIJAJoIAgULd2xnQ29udHJhY3QJARNrZXlUb3RhbFdlZWtUaWNrZXRzAQUEd2VlawAABBRsYXN0V2Vla1RvdGFsVGlja2V0cwkBC3ZhbHVlT3JFbHNlAgkAmggCBQt3bGdDb250cmFjdAkBE2tleVRvdGFsV2Vla1RpY2tldHMBBQhsYXN0V2VlawAABAh1c2Vyc0JldAkBC3ZhbHVlT3JFbHNlAgkAnQgCBQt3bGdDb250cmFjdAkBCmtleVVzZXJCZXQBBQt1c2VyQWRkck9wdAIACQCUCgIFA25pbAkAzAgCCQCsAgIJAKwCAgkArAICAhYlcyVkJWRfX3RvdGFsVGlja2V0c19fCQCkAwEFFGxhc3RXZWVrVG90YWxUaWNrZXRzBQNTRVAJAKQDAQUTY3VyV2Vla1RvdGFsVGlja2V0cwkAzAgCCQCsAgIJAKwCAgkArAICAhUlcyVkJWRfX3VzZXJUaWNrZXRzX18JAKQDAQUPbGFzdFdlZWtUaWNrZXRzBQNTRVAJAKQDAQUOY3VyV2Vla1RpY2tldHMJAMwIAgkArAICAhYlcyVkX19ibG9ja2NoYWluV2Vla19fCQCkAwEFBHdlZWsJAMwIAgkArAICAhUlcyVkX19ibG9ja2NoYWluRGF5X18JAKQDAQUFdG9kYXkJAMwIAgkArAICAhglcyVkX19ibG9ja2NoYWluTWludXRlX18JAKQDAQkAagIFBmhlaWdodAUKREFZX0JMT0NLUwkAzAgCCQCsAgICFyVzJWRfX3dpbm5pbmdCZXRUb2RheV9fCQCkAwEJAQp3aW5uaW5nQmV0AQUFdG9kYXkJAMwIAgkArAICAhAlcyVzX191c2Vyc0JldF9fBQh1c2Vyc0JldAUDbmlsAAifhk4=", "height": 3384000, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: e8eP4mbhtjPhYtC9DJqEuHahczoCURWkQAkFvpxvftv Next: FDnMCRWyZePgfpPFvSBZkWsgkxV8tgimVc9YqnuNCzfZ Diff:
Old | New | Differences | |
---|---|---|---|
469 | 469 | let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0) | |
470 | 470 | let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0) | |
471 | 471 | let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "") | |
472 | - | $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString(lastWeekTotalTickets)) + SEP) + toString(curWeekTotalTickets)), ((("%s%d%d__userTickets__" + toString(lastWeekTickets)) + SEP) + toString(curWeekTickets)), ("%s%d__blockchainDay__" + toString(today)), ("%s%d__blockchainMinute__" + toString((height % DAY_BLOCKS))), ("%s%d__winningBetToday__" + toString(winningBet(today))), ("%s%s__usersBet__" + usersBet)]) | |
472 | + | $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString(lastWeekTotalTickets)) + SEP) + toString(curWeekTotalTickets)), ((("%s%d%d__userTickets__" + toString(lastWeekTickets)) + SEP) + toString(curWeekTickets)), ("%s%d__blockchainWeek__" + toString(week)), ("%s%d__blockchainDay__" + toString(today)), ("%s%d__blockchainMinute__" + toString((height % DAY_BLOCKS))), ("%s%d__winningBetToday__" + toString(winningBet(today))), ("%s%s__usersBet__" + usersBet)]) | |
473 | 473 | } | |
474 | 474 | ||
475 | 475 |
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 chain = take(drop(this.bytes, 1), 1) | |
7 | 7 | ||
8 | 8 | let usdtAssetId = match chain { | |
9 | 9 | case _ => | |
10 | 10 | if ((base58'2W' == $match0)) | |
11 | 11 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
12 | 12 | else if ((base58'2T' == $match0)) | |
13 | 13 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
14 | 14 | else throw("Unknown chain") | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | let defaultRest2AddressStr = match chain { | |
18 | 18 | case _ => | |
19 | 19 | if ((base58'2W' == $match0)) | |
20 | 20 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
21 | 21 | else if ((base58'2T' == $match0)) | |
22 | 22 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
23 | 23 | else throw("Unknown chain") | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | let oldStakingContractStr = match chain { | |
27 | 27 | case _ => | |
28 | 28 | if ((base58'2W' == $match0)) | |
29 | 29 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
30 | 30 | else if ((base58'2T' == $match0)) | |
31 | 31 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | let IdxCfgAcres2Dapp = 1 | |
39 | 39 | ||
40 | 40 | let IdxCfgWlgDapp = 2 | |
41 | 41 | ||
42 | 42 | let IdxCfgPuzzlePoolDapp = 4 | |
43 | 43 | ||
44 | 44 | let IdxCfgInvestFundDapp = 5 | |
45 | 45 | ||
46 | 46 | func keyRestCfg () = "%s__restConfig" | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func keyRest2Address () = "%s__rest2Addr" | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
59 | 59 | ||
60 | 60 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
61 | 61 | ||
62 | 62 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
63 | 63 | ||
64 | 64 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
65 | 65 | ||
66 | 66 | let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp) | |
67 | 67 | ||
68 | 68 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
69 | 69 | ||
70 | 70 | let oldAcresContractKey = "oldAcresContract" | |
71 | 71 | ||
72 | 72 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | let wlgAssetIdKey = "wlg_assetId" | |
79 | 79 | ||
80 | 80 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet") | |
81 | 81 | ||
82 | 82 | let acresAssetIdKey = "acresAssetId" | |
83 | 83 | ||
84 | 84 | let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet") | |
85 | 85 | ||
86 | 86 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func asTuple4Ints (val) = match val { | |
99 | 99 | case t: (Int, Int, Int, Int) => | |
100 | 100 | t | |
101 | 101 | case _ => | |
102 | 102 | throw("fail to cast into (Int, Int, Int, Int)") | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func asTuple3Ints (val) = match val { | |
107 | 107 | case t: (Int, Int, Int) => | |
108 | 108 | t | |
109 | 109 | case _ => | |
110 | 110 | throw("fail to cast into (Int, Int, Int)") | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func asTuple2Ints (val) = match val { | |
115 | 115 | case t: (Int, Int) => | |
116 | 116 | t | |
117 | 117 | case _ => | |
118 | 118 | throw("fail to cast into (Int, Int)") | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | let M6_ = 1000000 | |
123 | 123 | ||
124 | 124 | let M8_ = 100000000 | |
125 | 125 | ||
126 | 126 | let TEAM_SHARE = 200000 | |
127 | 127 | ||
128 | 128 | let ACTIVITY_SHARE = 100000 | |
129 | 129 | ||
130 | 130 | let PLAYER_SHARE = 400000 | |
131 | 131 | ||
132 | 132 | let YEAR_MILLIS = 31557600000 | |
133 | 133 | ||
134 | 134 | let DAY_MS = 86400000 | |
135 | 135 | ||
136 | 136 | let DAY_BLOCKS = 1440 | |
137 | 137 | ||
138 | 138 | let WEEK_BLOCKS = 10080 | |
139 | 139 | ||
140 | 140 | let ISSUE10 = 1000000000 | |
141 | 141 | ||
142 | 142 | let PLAYERS10_SHARE = 800000 | |
143 | 143 | ||
144 | 144 | let MARKETING10_SHARE = 100000 | |
145 | 145 | ||
146 | 146 | let TEAM10_SHARE = 100000 | |
147 | 147 | ||
148 | 148 | let NEW_STAKING_START = 1731279600000 | |
149 | 149 | ||
150 | 150 | let teamAdrKey = "teamAddr" | |
151 | 151 | ||
152 | 152 | let lastTeamTimKey = "lastClaimedTime_team" | |
153 | 153 | ||
154 | 154 | let teamAmtLeftKey = "teamAmountLeft" | |
155 | 155 | ||
156 | 156 | let lastActivitiesTimKey = "lastClaimedTime_activities" | |
157 | 157 | ||
158 | 158 | let actAmtLeftKey = "activitiesAmountLeft" | |
159 | 159 | ||
160 | 160 | let stakersAmtLeftKey = "stakersAmountLeft" | |
161 | 161 | ||
162 | 162 | func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_)) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | let wlgIssue10TimeKey = "wlg_issue10Time" | |
169 | 169 | ||
170 | 170 | let wlgIssueTimKey = "wlg_issueTime" | |
171 | 171 | ||
172 | 172 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
173 | 173 | ||
174 | 174 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
175 | 175 | ||
176 | 176 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
180 | 180 | ||
181 | 181 | let totalFarmingPowerKey = "totalFarmingPower" | |
182 | 182 | ||
183 | 183 | let dapp2Rest = 0 | |
184 | 184 | ||
185 | 185 | let dapp2Staking = 1 | |
186 | 186 | ||
187 | 187 | let dapp2Wlg = 2 | |
188 | 188 | ||
189 | 189 | let dapp2Puzzle = 3 | |
190 | 190 | ||
191 | 191 | let dapp2InvestFund = 4 | |
192 | 192 | ||
193 | 193 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
194 | 194 | ||
195 | 195 | func getLevelByAcres (acres) = { | |
196 | 196 | let acr = ((acres + 99999999) / M8_) | |
197 | 197 | func checker (acc,item) = if ((item >= acr)) | |
198 | 198 | then acc | |
199 | 199 | else (acc + 1) | |
200 | 200 | ||
201 | 201 | let $l = levelAcres | |
202 | 202 | let $s = size($l) | |
203 | 203 | let $acc0 = 0 | |
204 | 204 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
205 | 205 | then $a | |
206 | 206 | else checker($a, $l[$i]) | |
207 | 207 | ||
208 | 208 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
209 | 209 | then $a | |
210 | 210 | else throw("List size exceeds 10") | |
211 | 211 | ||
212 | 212 | $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) | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = { | |
220 | 220 | let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0) | |
221 | 221 | let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0) | |
222 | 222 | let userFP = getFarmingPowerByAcres(userAcres) | |
223 | 223 | [totalFP, userFP] | |
224 | 224 | } | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func keyUserBet (addr) = ("userBet_" + addr) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week)) | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week)) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func winningBet (day) = (toInt(value(value(blockInfoByHeight((day * DAY_BLOCKS))).vrf)) % 4) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | let idxTotalFP = 0 | |
240 | 240 | ||
241 | 241 | let idxUserFP = 1 | |
242 | 242 | ||
243 | 243 | let ixWlgAmount = 0 | |
244 | 244 | ||
245 | 245 | let ixWlgWlg = 1 | |
246 | 246 | ||
247 | 247 | let ixWlgPrice = 2 | |
248 | 248 | ||
249 | 249 | let ixWlgFunds = 3 | |
250 | 250 | ||
251 | 251 | let ixWlgActivity = 4 | |
252 | 252 | ||
253 | 253 | let ixWlgAcres2 = 5 | |
254 | 254 | ||
255 | 255 | let ixWlgArbitrage = 6 | |
256 | 256 | ||
257 | 257 | let ixWlgPool = 7 | |
258 | 258 | ||
259 | 259 | let ixWlgIssueTime = 8 | |
260 | 260 | ||
261 | 261 | let ixWlgLastTeamActTime = 9 | |
262 | 262 | ||
263 | 263 | let ixWlgTeamTotal = 10 | |
264 | 264 | ||
265 | 265 | let ixWlgTeamAmLeft = 11 | |
266 | 266 | ||
267 | 267 | let ixWlgTeamAmAvailNow = 12 | |
268 | 268 | ||
269 | 269 | let ixWlgTeamWlgold = 13 | |
270 | 270 | ||
271 | 271 | let ixWlgActTotal = 14 | |
272 | 272 | ||
273 | 273 | let ixWlgActAmLeft = 15 | |
274 | 274 | ||
275 | 275 | let ixWlgActAmAvailNow = 16 | |
276 | 276 | ||
277 | 277 | let ixWlgActWlgold = 17 | |
278 | 278 | ||
279 | 279 | let ixWlgCurPeriod = 18 | |
280 | 280 | ||
281 | 281 | let ixWlgAmLeftTotal = 19 | |
282 | 282 | ||
283 | 283 | let ixWlgCurPeriodDistribution = 20 | |
284 | 284 | ||
285 | 285 | let ixWlgLastUserTime = 21 | |
286 | 286 | ||
287 | 287 | let ixWlgInvestFundAmount = 22 | |
288 | 288 | ||
289 | 289 | let ixWlgUserAmAvailNow = 23 | |
290 | 290 | ||
291 | 291 | let ixWlgEffUserTime = 24 | |
292 | 292 | ||
293 | 293 | let ixWlgIssue10Amount = 25 | |
294 | 294 | ||
295 | 295 | let ixWlgMarketingIssue10Amount = 26 | |
296 | 296 | ||
297 | 297 | let ixWlgTeamIssue10Amount = 27 | |
298 | 298 | ||
299 | 299 | let ixWlgUser10part = 28 | |
300 | 300 | ||
301 | 301 | let ixWlgIssue10Time = 29 | |
302 | 302 | ||
303 | 303 | let ixWlgTotalFarmingPower = 30 | |
304 | 304 | ||
305 | 305 | let ixWlgAcresStakedTotal = 31 | |
306 | 306 | ||
307 | 307 | func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = { | |
308 | 308 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
309 | 309 | let restUsd = assetBalance(contracts[dapp2Rest], usdtId) | |
310 | 310 | let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection) | |
311 | 311 | let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId) | |
312 | 312 | let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId) | |
313 | 313 | let investFndContract = contracts[dapp2InvestFund] | |
314 | 314 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0)) | |
315 | 315 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
316 | 316 | let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet") | |
317 | 317 | let now = lastBlock.timestamp | |
318 | 318 | let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized") | |
319 | 319 | let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId) | |
320 | 320 | let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_) | |
321 | 321 | let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal) | |
322 | 322 | let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime) | |
323 | 323 | let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey))) | |
324 | 324 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft]) | |
325 | 325 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
326 | 326 | let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_) | |
327 | 327 | let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal) | |
328 | 328 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime) | |
329 | 329 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft]) | |
330 | 330 | let actWlgold = assetBalance(contracts[dapp2Rest], wlgId) | |
331 | 331 | let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime) | |
332 | 332 | let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS) | |
333 | 333 | let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))]) | |
334 | 334 | let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2]) | |
335 | 335 | let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking]) | |
336 | 336 | let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod) | |
337 | 337 | let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod)) | |
338 | 338 | let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1))) | |
339 | 339 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS) | |
340 | 340 | let userAvailable = if ((lastUserPeriod == curPeriod)) | |
341 | 341 | then a0 | |
342 | 342 | else if ((lastUserPeriod == (curPeriod - 1))) | |
343 | 343 | then { | |
344 | 344 | let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
345 | 345 | (a1 + a0) | |
346 | 346 | } | |
347 | 347 | else { | |
348 | 348 | let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
349 | 349 | let a1 = distrByPeriod(issuedAmount, (curPeriod - 1)) | |
350 | 350 | ((a2 + a1) + a0) | |
351 | 351 | } | |
352 | 352 | let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0) | |
353 | 353 | let userAmount = if ((eff[idxTotalFP] != 0)) | |
354 | 354 | then fraction(userAvailable, eff[idxUserFP], eff[idxTotalFP]) | |
355 | 355 | else 0 | |
356 | 356 | let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START) | |
357 | 357 | let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS) | |
358 | 358 | let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_) | |
359 | 359 | let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_) | |
360 | 360 | let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0]) | |
361 | 361 | let user10part = if ((eff[idxTotalFP] != 0)) | |
362 | 362 | then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFP], eff[idxTotalFP]), PLAYERS10_SHARE, M6_) | |
363 | 363 | else 0 | |
364 | 364 | let newIssue10Time = max([NEW_STAKING_START, now]) | |
365 | 365 | let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0) | |
366 | 366 | [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] | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | func walletInternal (userAddressOpt) = { | |
371 | 371 | let addr = addressFromString(userAddressOpt) | |
372 | 372 | let balance = if (isDefined(addr)) | |
373 | 373 | then wavesBalance(value(addr)) | |
374 | 374 | else BalanceDetails(0, 0, 0, 0) | |
375 | 375 | let usdtBalance = if (isDefined(addr)) | |
376 | 376 | then assetBalance(value(addr), usdtAssetId) | |
377 | 377 | else 0 | |
378 | 378 | let wlgoldBalance = if (isDefined(addr)) | |
379 | 379 | then assetBalance(value(addr), wlgAssetId) | |
380 | 380 | else 0 | |
381 | 381 | let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
382 | 382 | let refByKey = keyAddressRefBy(userAddressOpt) | |
383 | 383 | let refBy = getString(acres2Contract, refByKey) | |
384 | 384 | let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "") | |
385 | 385 | let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "") | |
386 | 386 | let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "") | |
387 | 387 | let acresBalance = if (isDefined(addr)) | |
388 | 388 | then assetBalance(value(addr), acresAssetId) | |
389 | 389 | else 0 | |
390 | 390 | let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0) | |
391 | 391 | let lvl = getLevelByAcres(stakedAcres) | |
392 | 392 | let fp = getFarmingPowers(userAddressOpt, acres2Contract) | |
393 | 393 | let acresToNextLvl = if ((lvl >= size(levelAcres))) | |
394 | 394 | then 0 | |
395 | 395 | else (((levelAcres[lvl] * M8_) + 1) - stakedAcres) | |
396 | 396 | [("%s%s__customName__" + customName), ("%s%s__referredBy__" + valueOrElse(refBy, "")), ("%s%s__referrals__" + refs), ("%s%s__lastWeekTxId__" + lastTxId), ("%s%s__curWeekTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__acresBalance__" + toString(acresBalance)), ("%s%d__stakedAcres__" + toString(stakedAcres)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__acresToNextLvl__" + toString(acresToNextLvl)), ("%s%d__userFarmingPower__" + toString(fp[idxUserFP])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))] | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | @Callable(i) | |
401 | 401 | func constructorV1 (contracts) = if ((i.caller != this)) | |
402 | 402 | then throw("permissions denied") | |
403 | 403 | else { | |
404 | 404 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
405 | 405 | ||
406 | 406 | let descr = { | |
407 | 407 | let $l = contracts | |
408 | 408 | let $s = size($l) | |
409 | 409 | let $acc0 = "" | |
410 | 410 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
411 | 411 | then $a | |
412 | 412 | else descriptor($a, $l[$i]) | |
413 | 413 | ||
414 | 414 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
415 | 415 | then $a | |
416 | 416 | else throw("List size exceeds 10") | |
417 | 417 | ||
418 | 418 | $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) | |
419 | 419 | } | |
420 | 420 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))] | |
421 | 421 | } | |
422 | 422 | ||
423 | 423 | ||
424 | 424 | ||
425 | 425 | @Callable(i) | |
426 | 426 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
427 | 427 | ||
428 | 428 | ||
429 | 429 | ||
430 | 430 | @Callable(i) | |
431 | 431 | func conversionInfoREADONLY (userAddressOpt) = { | |
432 | 432 | let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey)) | |
433 | 433 | let $t046894811 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil)) | |
434 | 434 | let unstakedAcres = $t046894811._1 | |
435 | 435 | let claimedAcres = $t046894811._2 | |
436 | 436 | let $t048144963 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil)) | |
437 | 437 | let acresFromPieces = $t048144963._1 | |
438 | 438 | let acresFromRes = $t048144963._2 | |
439 | 439 | let acresFromMat = $t048144963._3 | |
440 | 440 | let acresFromProd = $t048144963._4 | |
441 | 441 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
442 | 442 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "") | |
443 | 443 | let $t051415363 = if ((duckAssetId != "")) | |
444 | 444 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil)) | |
445 | 445 | else $Tuple3(0, 0, 0) | |
446 | 446 | let acresFromDuckRes = $t051415363._1 | |
447 | 447 | let acresFromDuckMat = $t051415363._2 | |
448 | 448 | let acresFromDuckProd = $t051415363._3 | |
449 | 449 | $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(unstakedAcres)), ("%s%d__claimedAcres__" + toString(claimedAcres)), ("%s%d__acresFromPieces__" + toString(acresFromPieces)), ("%s%d__acresFromRes__" + toString(acresFromRes)), ("%s%d__acresFromMat__" + toString(acresFromMat)), ("%s%d__acresFromProd__" + toString(acresFromProd)), ("%s%d__acresFromDuckRes__" + toString(acresFromDuckRes)), ("%s%d__acresFromDuckMat__" + toString(acresFromDuckMat)), ("%s%d__acresFromDuckProd__" + toString(acresFromDuckProd))]) | |
450 | 450 | } | |
451 | 451 | ||
452 | 452 | ||
453 | 453 | ||
454 | 454 | @Callable(i) | |
455 | 455 | func wlgStatsREADONLY (userAddrOpt) = { | |
456 | 456 | let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
457 | 457 | $Tuple2(nil, [("%s%d__wlgAmount__" + toString(curStats[ixWlgAmount])), ("%s%d__wlgWlg__" + toString(curStats[ixWlgWlg])), ("%s%d__wlgPrice__" + toString(curStats[ixWlgPrice])), ("%s%d__usdtFunds__" + toString(curStats[ixWlgFunds])), ("%s%d__usdtActivity__" + toString(curStats[ixWlgActivity])), ("%s%d__usdtStaking__" + toString(curStats[ixWlgAcres2])), ("%s%d__usdtArbitrage__" + toString(curStats[ixWlgArbitrage])), ("%s%d__usdtPool__" + toString(curStats[ixWlgPool])), ("%s%d__wlgIssueTime__" + toString(curStats[ixWlgIssueTime])), ("%s%d__wlgLastTeamActTime__" + toString(curStats[ixWlgLastTeamActTime])), ("%s%d__wlgTeamTotal__" + toString(curStats[ixWlgTeamTotal])), ("%s%d__wlgTeamAmLeft__" + toString(curStats[ixWlgTeamAmLeft])), ("%s%d__wlgTeamAmAvailNow__" + toString(curStats[ixWlgTeamAmAvailNow])), ("%s%d__wlgTeamWlgold__" + toString(curStats[ixWlgTeamWlgold])), ("%s%d__wlgActTotal__" + toString(curStats[ixWlgActTotal])), ("%s%d__wlgActAmLeft__" + toString(curStats[ixWlgActAmLeft])), ("%s%d__wlgActAmAvailNow__" + toString(curStats[ixWlgActAmAvailNow])), ("%s%d__wlgActWlgold__" + toString(curStats[ixWlgActWlgold])), ("%s%d__wlgCurPeriod__" + toString(curStats[ixWlgCurPeriod])), ("%s%d__wlgAmLeftTotal__" + toString(curStats[ixWlgAmLeftTotal])), ("%s%d__wlgCurPeriodDistribution__" + toString(curStats[ixWlgCurPeriodDistribution])), ("%s%d__wlgLastUserTime__" + toString(curStats[ixWlgLastUserTime])), ("%s%d__wlgInvestFundTotal__" + toString(curStats[ixWlgInvestFundAmount])), ("%s%d__wlgUserAmAvailNow__" + toString(curStats[ixWlgUserAmAvailNow])), ("%s%d__wlgEffUserTime__" + toString(curStats[ixWlgEffUserTime])), ("%s%d__wlgIssue10AvailNow__" + toString(curStats[ixWlgIssue10Amount])), ("%s%d__wlgMarketingIssue10AvailNow__" + toString(curStats[ixWlgMarketingIssue10Amount])), ("%s%d__wlgTeamIssue10AvailNow__" + toString(curStats[ixWlgTeamIssue10Amount])), ("%s%d__wlgUserIssue10AvailNow__" + toString(curStats[ixWlgUser10part])), ("%s%d__wlgLastIssue10Time__" + toString(curStats[ixWlgIssue10Time])), ("%s%d__wlgTotalFarmingPower__" + toString(curStats[ixWlgTotalFarmingPower])), ("%s%d__wlgAcresStakedTotal__" + toString(curStats[ixWlgAcresStakedTotal]))]) | |
458 | 458 | } | |
459 | 459 | ||
460 | 460 | ||
461 | 461 | ||
462 | 462 | @Callable(i) | |
463 | 463 | func lotteryStatsREADONLY (userAddrOpt) = { | |
464 | 464 | let today = (height / DAY_BLOCKS) | |
465 | 465 | let week = (height / WEEK_BLOCKS) | |
466 | 466 | let lastWeek = (week - 1) | |
467 | 467 | let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0) | |
468 | 468 | let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0) | |
469 | 469 | let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0) | |
470 | 470 | let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0) | |
471 | 471 | let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "") | |
472 | - | $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString(lastWeekTotalTickets)) + SEP) + toString(curWeekTotalTickets)), ((("%s%d%d__userTickets__" + toString(lastWeekTickets)) + SEP) + toString(curWeekTickets)), ("%s%d__blockchainDay__" + toString(today)), ("%s%d__blockchainMinute__" + toString((height % DAY_BLOCKS))), ("%s%d__winningBetToday__" + toString(winningBet(today))), ("%s%s__usersBet__" + usersBet)]) | |
472 | + | $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString(lastWeekTotalTickets)) + SEP) + toString(curWeekTotalTickets)), ((("%s%d%d__userTickets__" + toString(lastWeekTickets)) + SEP) + toString(curWeekTickets)), ("%s%d__blockchainWeek__" + toString(week)), ("%s%d__blockchainDay__" + toString(today)), ("%s%d__blockchainMinute__" + toString((height % DAY_BLOCKS))), ("%s%d__winningBetToday__" + toString(winningBet(today))), ("%s%s__usersBet__" + usersBet)]) | |
473 | 473 | } | |
474 | 474 | ||
475 | 475 |
github/deemru/w8io/026f985 79.55 ms ◑