tx · F5d59R2TiRxKNPrNtvWPi9ku8jADqj96cPAzWV3cGE96 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv: -0.02000000 Waves 2024.12.08 04:17 [3404985] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves
{ "type": 13, "id": "F5d59R2TiRxKNPrNtvWPi9ku8jADqj96cPAzWV3cGE96", "fee": 2000000, "feeAssetId": null, "timestamp": 1733620641090, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "5dnDwEosLPA8MpUDYvWBJ2RST3TZnt25GfZRWsmvvBRFTsqBx3Vvx7fRN2FYNYPFkNpuhpzJJjsJAUH1exv4pMQL" ], "script": "base64:BgIgCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQh+AANTRVACAl9fAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAKREFZX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACgCwMJAAACAQFUBQckbWF0Y2gwADwJAAIBAg1Vbmtub3duIGNoYWluAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgAKVlJGX09GRlNFVAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAAAAwkAAAIBAVQFByRtYXRjaDAAkPlFCQACAQINVW5rbm93biBjaGFpbgALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOhL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bnRyYWN0CQEKa2V5VXNlckJldAEFC3VzZXJBZGRyT3B0AgAJAJQKAgUDbmlsCQDMCAIJAKwCAgkArAICCQCsAgICFiVzJWQlZF9fdG90YWxUaWNrZXRzX18JAKQDAQUUbGFzdFdlZWtUb3RhbFRpY2tldHMFA1NFUAkApAMBBRNjdXJXZWVrVG90YWxUaWNrZXRzCQDMCAIJAKwCAgkArAICCQCsAgICFSVzJWQlZF9fdXNlclRpY2tldHNfXwkApAMBBQ9sYXN0V2Vla1RpY2tldHMFA1NFUAkApAMBBQ5jdXJXZWVrVGlja2V0cwkAzAgCCQCsAgICFiVzJWRfX2Jsb2NrY2hhaW5XZWVrX18JAKQDAQUEd2VlawkAzAgCCQCsAgICFSVzJWRfX2Jsb2NrY2hhaW5EYXlfXwkApAMBBQV0b2RheQkAzAgCCQCsAgICGCVzJWRfX2Jsb2NrY2hhaW5NaW51dGVfXwkApAMBCQBqAgUGaGVpZ2h0BQpEQVlfQkxPQ0tTCQDMCAIJAKwCAgIXJXMlZF9fd2lubmluZ0JldFRvZGF5X18JAKQDAQkBCndpbm5pbmdCZXQBBQV0b2RheQkAzAgCCQCsAgICECVzJXNfX3VzZXJzQmV0X18FCHVzZXJzQmV0BQNuaWwBaQESdXNlck9yZGVyc1JFQURPTkxZAQt1c2VyQWRkck9wdAQHbmZ0c0tleQkBE2tleUFzc2V0SWRzQnlTZWxsZXIBBQt1c2VyQWRkck9wdAQHbmZ0c1N0cgkBC3ZhbHVlT3JFbHNlAgkAoggBBQduZnRzS2V5AgAJAJQKAgUDbmlsCQDMCAIJAKwCAgIUJXMlc19fdXNlclNhbGVOZnRzX18FB25mdHNTdHIFA25pbABJnm25", "height": 3404985, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2mxtuXXuX1pRqThqTgdY1JsWbqU8E4f3LZkAmCyJYLZG Next: AMidN9DMzPGBuZnBsfkgFLxPYRQ1mycgQu1FMiAYcdTk Diff:
Old | New | Differences | |
---|---|---|---|
141 | 141 | else (b + VRF_OFFSET) | |
142 | 142 | (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4) | |
143 | 143 | } | |
144 | + | ||
145 | + | ||
146 | + | func keyAssetIdsBySeller (addr) = ("assetIds_" + addr) | |
144 | 147 | ||
145 | 148 | ||
146 | 149 | let ixWlgAmount = 0 | |
499 | 502 | @Callable(i) | |
500 | 503 | func conversionInfoREADONLY (userAddressOpt) = { | |
501 | 504 | let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey)) | |
502 | - | let $ | |
503 | - | let unstakedAcres = $ | |
504 | - | let claimedAcres = $ | |
505 | - | let $ | |
506 | - | let acresFromPieces = $ | |
507 | - | let acresFromRes = $ | |
508 | - | let acresFromMat = $ | |
509 | - | let acresFromProd = $ | |
505 | + | let $t050515173 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil)) | |
506 | + | let unstakedAcres = $t050515173._1 | |
507 | + | let claimedAcres = $t050515173._2 | |
508 | + | let $t051765325 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil)) | |
509 | + | let acresFromPieces = $t051765325._1 | |
510 | + | let acresFromRes = $t051765325._2 | |
511 | + | let acresFromMat = $t051765325._3 | |
512 | + | let acresFromProd = $t051765325._4 | |
510 | 513 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
511 | 514 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "") | |
512 | - | let $ | |
515 | + | let $t055035725 = if ((duckAssetId != "")) | |
513 | 516 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil)) | |
514 | 517 | else $Tuple3(0, 0, 0) | |
515 | - | let acresFromDuckRes = $ | |
516 | - | let acresFromDuckMat = $ | |
517 | - | let acresFromDuckProd = $ | |
518 | + | let acresFromDuckRes = $t055035725._1 | |
519 | + | let acresFromDuckMat = $t055035725._2 | |
520 | + | let acresFromDuckProd = $t055035725._3 | |
518 | 521 | $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))]) | |
519 | 522 | } | |
520 | 523 | ||
542 | 545 | } | |
543 | 546 | ||
544 | 547 | ||
548 | + | ||
549 | + | @Callable(i) | |
550 | + | func userOrdersREADONLY (userAddrOpt) = { | |
551 | + | let nftsKey = keyAssetIdsBySeller(userAddrOpt) | |
552 | + | let nftsStr = valueOrElse(getString(nftsKey), "") | |
553 | + | $Tuple2(nil, [("%s%s__userSaleNfts__" + nftsStr)]) | |
554 | + | } | |
555 | + | ||
556 | + |
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 DAY_BLOCKS = match chain { | |
9 | 9 | case _ => | |
10 | 10 | if ((base58'2W' == $match0)) | |
11 | 11 | then 1440 | |
12 | 12 | else if ((base58'2T' == $match0)) | |
13 | 13 | then 60 | |
14 | 14 | else throw("Unknown chain") | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | let WEEK_BLOCKS = match chain { | |
18 | 18 | case _ => | |
19 | 19 | if ((base58'2W' == $match0)) | |
20 | 20 | then 10080 | |
21 | 21 | else if ((base58'2T' == $match0)) | |
22 | 22 | then 180 | |
23 | 23 | else throw("Unknown chain") | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | let VRF_OFFSET = match chain { | |
27 | 27 | case _ => | |
28 | 28 | if ((base58'2W' == $match0)) | |
29 | 29 | then 0 | |
30 | 30 | else if ((base58'2T' == $match0)) | |
31 | 31 | then 1146000 | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | let usdtAssetId = match chain { | |
36 | 36 | case _ => | |
37 | 37 | if ((base58'2W' == $match0)) | |
38 | 38 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
39 | 39 | else if ((base58'2T' == $match0)) | |
40 | 40 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
41 | 41 | else throw("Unknown chain") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let defaultRest2AddressStr = match chain { | |
45 | 45 | case _ => | |
46 | 46 | if ((base58'2W' == $match0)) | |
47 | 47 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
48 | 48 | else if ((base58'2T' == $match0)) | |
49 | 49 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
50 | 50 | else throw("Unknown chain") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | let oldStakingContractStr = match chain { | |
54 | 54 | case _ => | |
55 | 55 | if ((base58'2W' == $match0)) | |
56 | 56 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
57 | 57 | else if ((base58'2T' == $match0)) | |
58 | 58 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
59 | 59 | else throw("Unknown chain") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | let IdxCfgAcres2Dapp = 1 | |
66 | 66 | ||
67 | 67 | let IdxCfgWlgDapp = 2 | |
68 | 68 | ||
69 | 69 | let IdxCfgPuzzlePoolDapp = 4 | |
70 | 70 | ||
71 | 71 | let IdxCfgInvestFundDapp = 5 | |
72 | 72 | ||
73 | 73 | func keyRestCfg () = "%s__restConfig" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func keyRest2Address () = "%s__rest2Addr" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
86 | 86 | ||
87 | 87 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
88 | 88 | ||
89 | 89 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
90 | 90 | ||
91 | 91 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
92 | 92 | ||
93 | 93 | let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp) | |
94 | 94 | ||
95 | 95 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
96 | 96 | ||
97 | 97 | let oldAcresContractKey = "oldAcresContract" | |
98 | 98 | ||
99 | 99 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | let wlgAssetIdKey = "wlg_assetId" | |
106 | 106 | ||
107 | 107 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet") | |
108 | 108 | ||
109 | 109 | let acresAssetIdKey = "acresAssetId" | |
110 | 110 | ||
111 | 111 | let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet") | |
112 | 112 | ||
113 | 113 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func keyUserBet (addr) = ("userBet_" + addr) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week)) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week)) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func winningBet (day) = { | |
138 | 138 | let b = (day * DAY_BLOCKS) | |
139 | 139 | let h = if ((b > VRF_OFFSET)) | |
140 | 140 | then b | |
141 | 141 | else (b + VRF_OFFSET) | |
142 | 142 | (toInt(value(value(blockInfoByHeight(h)).vrf)) % 4) | |
143 | 143 | } | |
144 | + | ||
145 | + | ||
146 | + | func keyAssetIdsBySeller (addr) = ("assetIds_" + addr) | |
144 | 147 | ||
145 | 148 | ||
146 | 149 | let ixWlgAmount = 0 | |
147 | 150 | ||
148 | 151 | let ixWlgWlg = 1 | |
149 | 152 | ||
150 | 153 | let ixWlgPrice = 2 | |
151 | 154 | ||
152 | 155 | let ixWlgFunds = 3 | |
153 | 156 | ||
154 | 157 | let ixWlgActivity = 4 | |
155 | 158 | ||
156 | 159 | let ixWlgAcres2 = 5 | |
157 | 160 | ||
158 | 161 | let ixWlgArbitrage = 6 | |
159 | 162 | ||
160 | 163 | let ixWlgPool = 7 | |
161 | 164 | ||
162 | 165 | let ixWlgIssueTime = 8 | |
163 | 166 | ||
164 | 167 | let ixWlgLastTeamActTime = 9 | |
165 | 168 | ||
166 | 169 | let ixWlgTeamTotal = 10 | |
167 | 170 | ||
168 | 171 | let ixWlgTeamAmLeft = 11 | |
169 | 172 | ||
170 | 173 | let ixWlgTeamAmAvailNow = 12 | |
171 | 174 | ||
172 | 175 | let ixWlgTeamWlgold = 13 | |
173 | 176 | ||
174 | 177 | let ixWlgActTotal = 14 | |
175 | 178 | ||
176 | 179 | let ixWlgActAmLeft = 15 | |
177 | 180 | ||
178 | 181 | let ixWlgActAmAvailNow = 16 | |
179 | 182 | ||
180 | 183 | let ixWlgActWlgold = 17 | |
181 | 184 | ||
182 | 185 | let ixWlgCurPeriod = 18 | |
183 | 186 | ||
184 | 187 | let ixWlgAmLeftTotal = 19 | |
185 | 188 | ||
186 | 189 | let ixWlgCurPeriodDistribution = 20 | |
187 | 190 | ||
188 | 191 | let ixWlgLastUserTime = 21 | |
189 | 192 | ||
190 | 193 | let ixWlgInvestFundAmount = 22 | |
191 | 194 | ||
192 | 195 | let ixWlgUserAmAvailNow = 23 | |
193 | 196 | ||
194 | 197 | let ixWlgEffUserTime = 24 | |
195 | 198 | ||
196 | 199 | let ixWlgIssue10Amount = 25 | |
197 | 200 | ||
198 | 201 | let ixWlgMarketingIssue10Amount = 26 | |
199 | 202 | ||
200 | 203 | let ixWlgTeamIssue10Amount = 27 | |
201 | 204 | ||
202 | 205 | let ixWlgUser10part = 28 | |
203 | 206 | ||
204 | 207 | let ixWlgIssue10Time = 29 | |
205 | 208 | ||
206 | 209 | let ixWlgTotalFarmingPower = 30 | |
207 | 210 | ||
208 | 211 | let ixWlgAcresStakedTotal = 31 | |
209 | 212 | ||
210 | 213 | let ixWlgNftTotalIssued = 32 | |
211 | 214 | ||
212 | 215 | let ixWlgNftTotalBurned = 33 | |
213 | 216 | ||
214 | 217 | let ixWlgWlNftTotalStaked = 34 | |
215 | 218 | ||
216 | 219 | let ixWlgWlNftUserStaked = 35 | |
217 | 220 | ||
218 | 221 | func asTuple4Ints (val) = match val { | |
219 | 222 | case t: (Int, Int, Int, Int) => | |
220 | 223 | t | |
221 | 224 | case _ => | |
222 | 225 | throw("fail to cast into (Int, Int, Int, Int)") | |
223 | 226 | } | |
224 | 227 | ||
225 | 228 | ||
226 | 229 | func asTuple3Ints (val) = match val { | |
227 | 230 | case t: (Int, Int, Int) => | |
228 | 231 | t | |
229 | 232 | case _ => | |
230 | 233 | throw("fail to cast into (Int, Int, Int)") | |
231 | 234 | } | |
232 | 235 | ||
233 | 236 | ||
234 | 237 | func asTuple2Ints (val) = match val { | |
235 | 238 | case t: (Int, Int) => | |
236 | 239 | t | |
237 | 240 | case _ => | |
238 | 241 | throw("fail to cast into (Int, Int)") | |
239 | 242 | } | |
240 | 243 | ||
241 | 244 | ||
242 | 245 | let M6_ = 1000000 | |
243 | 246 | ||
244 | 247 | let M8_ = 100000000 | |
245 | 248 | ||
246 | 249 | let TEAM_SHARE = 200000 | |
247 | 250 | ||
248 | 251 | let ACTIVITY_SHARE = 100000 | |
249 | 252 | ||
250 | 253 | let PLAYER_SHARE = 400000 | |
251 | 254 | ||
252 | 255 | let YEAR_MILLIS = 31557600000 | |
253 | 256 | ||
254 | 257 | let DAY_MS = 86400000 | |
255 | 258 | ||
256 | 259 | let ISSUE10 = 1000000000 | |
257 | 260 | ||
258 | 261 | let PLAYERS10_SHARE = 800000 | |
259 | 262 | ||
260 | 263 | let MARKETING10_SHARE = 100000 | |
261 | 264 | ||
262 | 265 | let TEAM10_SHARE = 100000 | |
263 | 266 | ||
264 | 267 | let NEW_STAKING_START = 1731279600000 | |
265 | 268 | ||
266 | 269 | let teamAdrKey = "teamAddr" | |
267 | 270 | ||
268 | 271 | let lastTeamTimKey = "lastClaimedTime_team" | |
269 | 272 | ||
270 | 273 | let teamAmtLeftKey = "teamAmountLeft" | |
271 | 274 | ||
272 | 275 | let lastActivitiesTimKey = "lastClaimedTime_activities" | |
273 | 276 | ||
274 | 277 | let actAmtLeftKey = "activitiesAmountLeft" | |
275 | 278 | ||
276 | 279 | let stakersAmtLeftKey = "stakersAmountLeft" | |
277 | 280 | ||
278 | 281 | func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
279 | 282 | ||
280 | 283 | ||
281 | 284 | func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_)) | |
282 | 285 | ||
283 | 286 | ||
284 | 287 | let wlgIssue10TimeKey = "wlg_issue10Time" | |
285 | 288 | ||
286 | 289 | let wlgIssueTimKey = "wlg_issueTime" | |
287 | 290 | ||
288 | 291 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
289 | 292 | ||
290 | 293 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
291 | 294 | ||
292 | 295 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
293 | 296 | ||
294 | 297 | ||
295 | 298 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
296 | 299 | ||
297 | 300 | let totalFarmingPowerKey = "totalFarmingPower" | |
298 | 301 | ||
299 | 302 | let dapp2Rest = 0 | |
300 | 303 | ||
301 | 304 | let dapp2Staking = 1 | |
302 | 305 | ||
303 | 306 | let dapp2Wlg = 2 | |
304 | 307 | ||
305 | 308 | let dapp2Puzzle = 3 | |
306 | 309 | ||
307 | 310 | let dapp2InvestFund = 4 | |
308 | 311 | ||
309 | 312 | let keyNftTotalIssued = "nftTotalIssued" | |
310 | 313 | ||
311 | 314 | let keyNftTotalBurned = "nftTotalBurned" | |
312 | 315 | ||
313 | 316 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
314 | 317 | ||
315 | 318 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
316 | 319 | ||
317 | 320 | ||
318 | 321 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
319 | 322 | ||
320 | 323 | ||
321 | 324 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
322 | 325 | ||
323 | 326 | func getLevelByAcres (acres) = { | |
324 | 327 | let acr = ((acres + 99999999) / M8_) | |
325 | 328 | func checker (acc,item) = if ((item >= acr)) | |
326 | 329 | then acc | |
327 | 330 | else (acc + 1) | |
328 | 331 | ||
329 | 332 | let $l = levelAcres | |
330 | 333 | let $s = size($l) | |
331 | 334 | let $acc0 = 0 | |
332 | 335 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
333 | 336 | then $a | |
334 | 337 | else checker($a, $l[$i]) | |
335 | 338 | ||
336 | 339 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
337 | 340 | then $a | |
338 | 341 | else throw("List size exceeds 10") | |
339 | 342 | ||
340 | 343 | $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) | |
341 | 344 | } | |
342 | 345 | ||
343 | 346 | ||
344 | 347 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
345 | 348 | ||
346 | 349 | ||
347 | 350 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
348 | 351 | let notBonused = getFarmingPowerByAcres(acres) | |
349 | 352 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
350 | 353 | } | |
351 | 354 | ||
352 | 355 | ||
353 | 356 | func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = { | |
354 | 357 | let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0) | |
355 | 358 | let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0) | |
356 | 359 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0) | |
357 | 360 | let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus) | |
358 | 361 | let userFPbonused = $t079119._1 | |
359 | 362 | let userFPnotBonused = $t079119._2 | |
360 | 363 | [totalFP, userFPbonused, userFPnotBonused, userBonus] | |
361 | 364 | } | |
362 | 365 | ||
363 | 366 | ||
364 | 367 | let idxTotalFP = 0 | |
365 | 368 | ||
366 | 369 | let idxUserFPbonused = 1 | |
367 | 370 | ||
368 | 371 | let idxUserFPnotBonused = 2 | |
369 | 372 | ||
370 | 373 | func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = { | |
371 | 374 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
372 | 375 | let restUsd = assetBalance(contracts[dapp2Rest], usdtId) | |
373 | 376 | let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection) | |
374 | 377 | let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId) | |
375 | 378 | let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId) | |
376 | 379 | let investFndContract = contracts[dapp2InvestFund] | |
377 | 380 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0)) | |
378 | 381 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
379 | 382 | let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet") | |
380 | 383 | let now = lastBlock.timestamp | |
381 | 384 | let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized") | |
382 | 385 | let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId) | |
383 | 386 | let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_) | |
384 | 387 | let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal) | |
385 | 388 | let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime) | |
386 | 389 | let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey))) | |
387 | 390 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft]) | |
388 | 391 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
389 | 392 | let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_) | |
390 | 393 | let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal) | |
391 | 394 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime) | |
392 | 395 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft]) | |
393 | 396 | let actWlgold = assetBalance(contracts[dapp2Rest], wlgId) | |
394 | 397 | let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime) | |
395 | 398 | let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS) | |
396 | 399 | let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))]) | |
397 | 400 | let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2]) | |
398 | 401 | let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking]) | |
399 | 402 | let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod) | |
400 | 403 | let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod)) | |
401 | 404 | let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1))) | |
402 | 405 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS) | |
403 | 406 | let userAvailable = if ((lastUserPeriod == curPeriod)) | |
404 | 407 | then a0 | |
405 | 408 | else if ((lastUserPeriod == (curPeriod - 1))) | |
406 | 409 | then { | |
407 | 410 | let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
408 | 411 | (a1 + a0) | |
409 | 412 | } | |
410 | 413 | else { | |
411 | 414 | let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
412 | 415 | let a1 = distrByPeriod(issuedAmount, (curPeriod - 1)) | |
413 | 416 | ((a2 + a1) + a0) | |
414 | 417 | } | |
415 | 418 | let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0) | |
416 | 419 | let userAmount = if ((eff[idxTotalFP] != 0)) | |
417 | 420 | then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP]) | |
418 | 421 | else 0 | |
419 | 422 | let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START) | |
420 | 423 | let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS) | |
421 | 424 | let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_) | |
422 | 425 | let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_) | |
423 | 426 | let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0]) | |
424 | 427 | let user10part = if ((eff[idxTotalFP] != 0)) | |
425 | 428 | then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_) | |
426 | 429 | else 0 | |
427 | 430 | let newIssue10Time = max([NEW_STAKING_START, now]) | |
428 | 431 | let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0) | |
429 | 432 | let nftTotalIssued = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalIssued), 0) | |
430 | 433 | let nftTotalBurned = valueOrElse(getInteger(contracts[dapp2Staking], keyNftTotalBurned), 0) | |
431 | 434 | let wlNftTotalStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyWlNftTotalStaked), 0) | |
432 | 435 | let wlNftUserStaked = valueOrElse(getInteger(contracts[dapp2Staking], keyUserWlNftNumber(valueOrElse(userAddrOpt, ""))), 0) | |
433 | 436 | [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] | |
434 | 437 | } | |
435 | 438 | ||
436 | 439 | ||
437 | 440 | func walletInternal (userAddressOpt) = { | |
438 | 441 | let addr = addressFromString(userAddressOpt) | |
439 | 442 | let balance = if (isDefined(addr)) | |
440 | 443 | then wavesBalance(value(addr)) | |
441 | 444 | else BalanceDetails(0, 0, 0, 0) | |
442 | 445 | let usdtBalance = if (isDefined(addr)) | |
443 | 446 | then assetBalance(value(addr), usdtAssetId) | |
444 | 447 | else 0 | |
445 | 448 | let wlgoldBalance = if (isDefined(addr)) | |
446 | 449 | then assetBalance(value(addr), wlgAssetId) | |
447 | 450 | else 0 | |
448 | 451 | let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
449 | 452 | let refByKey = keyAddressRefBy(userAddressOpt) | |
450 | 453 | let refBy = getString(acres2Contract, refByKey) | |
451 | 454 | let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "") | |
452 | 455 | let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "") | |
453 | 456 | let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "") | |
454 | 457 | let acresBalance = if (isDefined(addr)) | |
455 | 458 | then assetBalance(value(addr), acresAssetId) | |
456 | 459 | else 0 | |
457 | 460 | let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0) | |
458 | 461 | let lvl = getLevelByAcres(stakedAcres) | |
459 | 462 | let fp = getFarmingPowers(userAddressOpt, acres2Contract) | |
460 | 463 | let acresToNextLvl = if ((lvl >= size(levelAcres))) | |
461 | 464 | then 0 | |
462 | 465 | else (((levelAcres[lvl] * M8_) + 1) - stakedAcres) | |
463 | 466 | let nfts = valueOrElse(getString(acres2Contract, keyStakedNFTsByOwner(userAddressOpt)), "") | |
464 | 467 | let bonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddressOpt)), 0) | |
465 | 468 | [("%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%s__userNFTs__" + nfts), ("%s%d__userBonus__" + toString(bonus)), ("%s%d__userBaseFarmingPower__" + toString(fp[idxUserFPnotBonused])), ("%s%d__userFarmingPower__" + toString(fp[idxUserFPbonused])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))] | |
466 | 469 | } | |
467 | 470 | ||
468 | 471 | ||
469 | 472 | @Callable(i) | |
470 | 473 | func constructorV1 (contracts) = if ((i.caller != this)) | |
471 | 474 | then throw("permissions denied") | |
472 | 475 | else { | |
473 | 476 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
474 | 477 | ||
475 | 478 | let descr = { | |
476 | 479 | let $l = contracts | |
477 | 480 | let $s = size($l) | |
478 | 481 | let $acc0 = "" | |
479 | 482 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
480 | 483 | then $a | |
481 | 484 | else descriptor($a, $l[$i]) | |
482 | 485 | ||
483 | 486 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
484 | 487 | then $a | |
485 | 488 | else throw("List size exceeds 10") | |
486 | 489 | ||
487 | 490 | $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) | |
488 | 491 | } | |
489 | 492 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))] | |
490 | 493 | } | |
491 | 494 | ||
492 | 495 | ||
493 | 496 | ||
494 | 497 | @Callable(i) | |
495 | 498 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
496 | 499 | ||
497 | 500 | ||
498 | 501 | ||
499 | 502 | @Callable(i) | |
500 | 503 | func conversionInfoREADONLY (userAddressOpt) = { | |
501 | 504 | let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey)) | |
502 | - | let $ | |
503 | - | let unstakedAcres = $ | |
504 | - | let claimedAcres = $ | |
505 | - | let $ | |
506 | - | let acresFromPieces = $ | |
507 | - | let acresFromRes = $ | |
508 | - | let acresFromMat = $ | |
509 | - | let acresFromProd = $ | |
505 | + | let $t050515173 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil)) | |
506 | + | let unstakedAcres = $t050515173._1 | |
507 | + | let claimedAcres = $t050515173._2 | |
508 | + | let $t051765325 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil)) | |
509 | + | let acresFromPieces = $t051765325._1 | |
510 | + | let acresFromRes = $t051765325._2 | |
511 | + | let acresFromMat = $t051765325._3 | |
512 | + | let acresFromProd = $t051765325._4 | |
510 | 513 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
511 | 514 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "") | |
512 | - | let $ | |
515 | + | let $t055035725 = if ((duckAssetId != "")) | |
513 | 516 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil)) | |
514 | 517 | else $Tuple3(0, 0, 0) | |
515 | - | let acresFromDuckRes = $ | |
516 | - | let acresFromDuckMat = $ | |
517 | - | let acresFromDuckProd = $ | |
518 | + | let acresFromDuckRes = $t055035725._1 | |
519 | + | let acresFromDuckMat = $t055035725._2 | |
520 | + | let acresFromDuckProd = $t055035725._3 | |
518 | 521 | $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))]) | |
519 | 522 | } | |
520 | 523 | ||
521 | 524 | ||
522 | 525 | ||
523 | 526 | @Callable(i) | |
524 | 527 | func wlgStatsREADONLY (userAddrOpt) = { | |
525 | 528 | let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
526 | 529 | $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])), ("%s%d__nftTotalIssued__" + toString(curStats[ixWlgNftTotalIssued])), ("%s%d__nftTotalBurned__" + toString(curStats[ixWlgNftTotalBurned])), ("%s%d__wlNftTotalStaked__" + toString(curStats[ixWlgWlNftTotalStaked])), ("%s%d__wlNftUserStaked__" + toString(curStats[ixWlgWlNftUserStaked]))]) | |
527 | 530 | } | |
528 | 531 | ||
529 | 532 | ||
530 | 533 | ||
531 | 534 | @Callable(i) | |
532 | 535 | func lotteryStatsREADONLY (userAddrOpt) = { | |
533 | 536 | let today = (height / DAY_BLOCKS) | |
534 | 537 | let week = (height / WEEK_BLOCKS) | |
535 | 538 | let lastWeek = (week - 1) | |
536 | 539 | let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0) | |
537 | 540 | let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0) | |
538 | 541 | let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0) | |
539 | 542 | let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0) | |
540 | 543 | let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "") | |
541 | 544 | $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)]) | |
542 | 545 | } | |
543 | 546 | ||
544 | 547 | ||
548 | + | ||
549 | + | @Callable(i) | |
550 | + | func userOrdersREADONLY (userAddrOpt) = { | |
551 | + | let nftsKey = keyAssetIdsBySeller(userAddrOpt) | |
552 | + | let nftsStr = valueOrElse(getString(nftsKey), "") | |
553 | + | $Tuple2(nil, [("%s%s__userSaleNfts__" + nftsStr)]) | |
554 | + | } | |
555 | + | ||
556 | + |
github/deemru/w8io/169f3d6 116.22 ms ◑