tx · C5rgyD29q6DLn7ADrwUXuRumqRgxmvmxJ9rexbsCpR9s 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv: -0.01800000 Waves 2024.11.25 21:08 [3387280] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves
{ "type": 13, "id": "C5rgyD29q6DLn7ADrwUXuRumqRgxmvmxJ9rexbsCpR9s", "fee": 1800000, "feeAssetId": null, "timestamp": 1732558140648, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "5y5pByq4M8SRvURUQywqWR2kYo86dgkdGknZb7EdPQND4UPLrqgV2dZtwCFB1foGMus6fozw6HPpQrpt5EwYjjH6" ], "script": "base64:BgIbCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIdQADU0VQAgJfXwAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACkRBWV9CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAoAsDCQAAAgEBVAUHJG1hdGNoMAA8CQACAQINVW5rbm93biBjaGFpbgALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AClZSRl9PRkZTRVQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAAAMJAAACAQFUBQckbWF0Y2gwAJD5RQkAAgECDVVua25vd24gY2hhaW4AC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECD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Y2hhaW5EYXlfXwkApAMBBQV0b2RheQkAzAgCCQCsAgICGCVzJWRfX2Jsb2NrY2hhaW5NaW51dGVfXwkApAMBCQBqAgUGaGVpZ2h0BQpEQVlfQkxPQ0tTCQDMCAIJAKwCAgIXJXMlZF9fd2lubmluZ0JldFRvZGF5X18JAKQDAQkBCndpbm5pbmdCZXQBBQV0b2RheQkAzAgCCQCsAgICECVzJXNfX3VzZXJzQmV0X18FCHVzZXJzQmV0BQNuaWwAgea0TQ==", "height": 3387280, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: UqrozsgTZ92X1uRfjLAZBpXUKAY1j7N66L2ndipXxop Next: 2mxtuXXuX1pRqThqTgdY1JsWbqU8E4f3LZkAmCyJYLZG Diff:
Old | New | Differences | |
---|---|---|---|
440 | 440 | then 0 | |
441 | 441 | else (((levelAcres[lvl] * M8_) + 1) - stakedAcres) | |
442 | 442 | let nfts = valueOrElse(getString(acres2Contract, keyStakedNFTsByOwner(userAddressOpt)), "") | |
443 | - | [("%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__userBaseFarmingPower__" + toString(fp[idxUserFPnotBonused])), ("%s%d__userFarmingPower__" + toString(fp[idxUserFPbonused])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))] | |
443 | + | let bonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddressOpt)), 0) | |
444 | + | [("%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]))] | |
444 | 445 | } | |
445 | 446 | ||
446 | 447 | ||
477 | 478 | @Callable(i) | |
478 | 479 | func conversionInfoREADONLY (userAddressOpt) = { | |
479 | 480 | let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey)) | |
480 | - | let $ | |
481 | - | let unstakedAcres = $ | |
482 | - | let claimedAcres = $ | |
483 | - | let $ | |
484 | - | let acresFromPieces = $ | |
485 | - | let acresFromRes = $ | |
486 | - | let acresFromMat = $ | |
487 | - | let acresFromProd = $ | |
481 | + | let $t050245146 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil)) | |
482 | + | let unstakedAcres = $t050245146._1 | |
483 | + | let claimedAcres = $t050245146._2 | |
484 | + | let $t051495298 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil)) | |
485 | + | let acresFromPieces = $t051495298._1 | |
486 | + | let acresFromRes = $t051495298._2 | |
487 | + | let acresFromMat = $t051495298._3 | |
488 | + | let acresFromProd = $t051495298._4 | |
488 | 489 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
489 | 490 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "") | |
490 | - | let $ | |
491 | + | let $t054765698 = if ((duckAssetId != "")) | |
491 | 492 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil)) | |
492 | 493 | else $Tuple3(0, 0, 0) | |
493 | - | let acresFromDuckRes = $ | |
494 | - | let acresFromDuckMat = $ | |
495 | - | let acresFromDuckProd = $ | |
494 | + | let acresFromDuckRes = $t054765698._1 | |
495 | + | let acresFromDuckMat = $t054765698._2 | |
496 | + | let acresFromDuckProd = $t054765698._3 | |
496 | 497 | $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))]) | |
497 | 498 | } | |
498 | 499 |
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 | 144 | ||
145 | 145 | ||
146 | 146 | func asTuple4Ints (val) = match val { | |
147 | 147 | case t: (Int, Int, Int, Int) => | |
148 | 148 | t | |
149 | 149 | case _ => | |
150 | 150 | throw("fail to cast into (Int, Int, Int, Int)") | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func asTuple3Ints (val) = match val { | |
155 | 155 | case t: (Int, Int, Int) => | |
156 | 156 | t | |
157 | 157 | case _ => | |
158 | 158 | throw("fail to cast into (Int, Int, Int)") | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func asTuple2Ints (val) = match val { | |
163 | 163 | case t: (Int, Int) => | |
164 | 164 | t | |
165 | 165 | case _ => | |
166 | 166 | throw("fail to cast into (Int, Int)") | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | let M6_ = 1000000 | |
171 | 171 | ||
172 | 172 | let M8_ = 100000000 | |
173 | 173 | ||
174 | 174 | let TEAM_SHARE = 200000 | |
175 | 175 | ||
176 | 176 | let ACTIVITY_SHARE = 100000 | |
177 | 177 | ||
178 | 178 | let PLAYER_SHARE = 400000 | |
179 | 179 | ||
180 | 180 | let YEAR_MILLIS = 31557600000 | |
181 | 181 | ||
182 | 182 | let DAY_MS = 86400000 | |
183 | 183 | ||
184 | 184 | let ISSUE10 = 1000000000 | |
185 | 185 | ||
186 | 186 | let PLAYERS10_SHARE = 800000 | |
187 | 187 | ||
188 | 188 | let MARKETING10_SHARE = 100000 | |
189 | 189 | ||
190 | 190 | let TEAM10_SHARE = 100000 | |
191 | 191 | ||
192 | 192 | let NEW_STAKING_START = 1731279600000 | |
193 | 193 | ||
194 | 194 | let teamAdrKey = "teamAddr" | |
195 | 195 | ||
196 | 196 | let lastTeamTimKey = "lastClaimedTime_team" | |
197 | 197 | ||
198 | 198 | let teamAmtLeftKey = "teamAmountLeft" | |
199 | 199 | ||
200 | 200 | let lastActivitiesTimKey = "lastClaimedTime_activities" | |
201 | 201 | ||
202 | 202 | let actAmtLeftKey = "activitiesAmountLeft" | |
203 | 203 | ||
204 | 204 | let stakersAmtLeftKey = "stakersAmountLeft" | |
205 | 205 | ||
206 | 206 | func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_)) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | let wlgIssue10TimeKey = "wlg_issue10Time" | |
213 | 213 | ||
214 | 214 | let wlgIssueTimKey = "wlg_issueTime" | |
215 | 215 | ||
216 | 216 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
217 | 217 | ||
218 | 218 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
219 | 219 | ||
220 | 220 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
224 | 224 | ||
225 | 225 | let totalFarmingPowerKey = "totalFarmingPower" | |
226 | 226 | ||
227 | 227 | let dapp2Rest = 0 | |
228 | 228 | ||
229 | 229 | let dapp2Staking = 1 | |
230 | 230 | ||
231 | 231 | let dapp2Wlg = 2 | |
232 | 232 | ||
233 | 233 | let dapp2Puzzle = 3 | |
234 | 234 | ||
235 | 235 | let dapp2InvestFund = 4 | |
236 | 236 | ||
237 | 237 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
241 | 241 | ||
242 | 242 | func getLevelByAcres (acres) = { | |
243 | 243 | let acr = ((acres + 99999999) / M8_) | |
244 | 244 | func checker (acc,item) = if ((item >= acr)) | |
245 | 245 | then acc | |
246 | 246 | else (acc + 1) | |
247 | 247 | ||
248 | 248 | let $l = levelAcres | |
249 | 249 | let $s = size($l) | |
250 | 250 | let $acc0 = 0 | |
251 | 251 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
252 | 252 | then $a | |
253 | 253 | else checker($a, $l[$i]) | |
254 | 254 | ||
255 | 255 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
256 | 256 | then $a | |
257 | 257 | else throw("List size exceeds 10") | |
258 | 258 | ||
259 | 259 | $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) | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
267 | 267 | let notBonused = getFarmingPowerByAcres(acres) | |
268 | 268 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = { | |
273 | 273 | let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0) | |
274 | 274 | let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0) | |
275 | 275 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0) | |
276 | 276 | let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus) | |
277 | 277 | let userFPbonused = $t079119._1 | |
278 | 278 | let userFPnotBonused = $t079119._2 | |
279 | 279 | [totalFP, userFPbonused, userFPnotBonused, userBonus] | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | let idxTotalFP = 0 | |
284 | 284 | ||
285 | 285 | let idxUserFPbonused = 1 | |
286 | 286 | ||
287 | 287 | let idxUserFPnotBonused = 2 | |
288 | 288 | ||
289 | 289 | let ixWlgAmount = 0 | |
290 | 290 | ||
291 | 291 | let ixWlgWlg = 1 | |
292 | 292 | ||
293 | 293 | let ixWlgPrice = 2 | |
294 | 294 | ||
295 | 295 | let ixWlgFunds = 3 | |
296 | 296 | ||
297 | 297 | let ixWlgActivity = 4 | |
298 | 298 | ||
299 | 299 | let ixWlgAcres2 = 5 | |
300 | 300 | ||
301 | 301 | let ixWlgArbitrage = 6 | |
302 | 302 | ||
303 | 303 | let ixWlgPool = 7 | |
304 | 304 | ||
305 | 305 | let ixWlgIssueTime = 8 | |
306 | 306 | ||
307 | 307 | let ixWlgLastTeamActTime = 9 | |
308 | 308 | ||
309 | 309 | let ixWlgTeamTotal = 10 | |
310 | 310 | ||
311 | 311 | let ixWlgTeamAmLeft = 11 | |
312 | 312 | ||
313 | 313 | let ixWlgTeamAmAvailNow = 12 | |
314 | 314 | ||
315 | 315 | let ixWlgTeamWlgold = 13 | |
316 | 316 | ||
317 | 317 | let ixWlgActTotal = 14 | |
318 | 318 | ||
319 | 319 | let ixWlgActAmLeft = 15 | |
320 | 320 | ||
321 | 321 | let ixWlgActAmAvailNow = 16 | |
322 | 322 | ||
323 | 323 | let ixWlgActWlgold = 17 | |
324 | 324 | ||
325 | 325 | let ixWlgCurPeriod = 18 | |
326 | 326 | ||
327 | 327 | let ixWlgAmLeftTotal = 19 | |
328 | 328 | ||
329 | 329 | let ixWlgCurPeriodDistribution = 20 | |
330 | 330 | ||
331 | 331 | let ixWlgLastUserTime = 21 | |
332 | 332 | ||
333 | 333 | let ixWlgInvestFundAmount = 22 | |
334 | 334 | ||
335 | 335 | let ixWlgUserAmAvailNow = 23 | |
336 | 336 | ||
337 | 337 | let ixWlgEffUserTime = 24 | |
338 | 338 | ||
339 | 339 | let ixWlgIssue10Amount = 25 | |
340 | 340 | ||
341 | 341 | let ixWlgMarketingIssue10Amount = 26 | |
342 | 342 | ||
343 | 343 | let ixWlgTeamIssue10Amount = 27 | |
344 | 344 | ||
345 | 345 | let ixWlgUser10part = 28 | |
346 | 346 | ||
347 | 347 | let ixWlgIssue10Time = 29 | |
348 | 348 | ||
349 | 349 | let ixWlgTotalFarmingPower = 30 | |
350 | 350 | ||
351 | 351 | let ixWlgAcresStakedTotal = 31 | |
352 | 352 | ||
353 | 353 | func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = { | |
354 | 354 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
355 | 355 | let restUsd = assetBalance(contracts[dapp2Rest], usdtId) | |
356 | 356 | let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection) | |
357 | 357 | let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId) | |
358 | 358 | let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId) | |
359 | 359 | let investFndContract = contracts[dapp2InvestFund] | |
360 | 360 | let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0)) | |
361 | 361 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
362 | 362 | let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet") | |
363 | 363 | let now = lastBlock.timestamp | |
364 | 364 | let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized") | |
365 | 365 | let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId) | |
366 | 366 | let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_) | |
367 | 367 | let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal) | |
368 | 368 | let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime) | |
369 | 369 | let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey))) | |
370 | 370 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft]) | |
371 | 371 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
372 | 372 | let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_) | |
373 | 373 | let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal) | |
374 | 374 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime) | |
375 | 375 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft]) | |
376 | 376 | let actWlgold = assetBalance(contracts[dapp2Rest], wlgId) | |
377 | 377 | let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime) | |
378 | 378 | let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS) | |
379 | 379 | let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))]) | |
380 | 380 | let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2]) | |
381 | 381 | let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking]) | |
382 | 382 | let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod) | |
383 | 383 | let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod)) | |
384 | 384 | let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1))) | |
385 | 385 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS) | |
386 | 386 | let userAvailable = if ((lastUserPeriod == curPeriod)) | |
387 | 387 | then a0 | |
388 | 388 | else if ((lastUserPeriod == (curPeriod - 1))) | |
389 | 389 | then { | |
390 | 390 | let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
391 | 391 | (a1 + a0) | |
392 | 392 | } | |
393 | 393 | else { | |
394 | 394 | let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS) | |
395 | 395 | let a1 = distrByPeriod(issuedAmount, (curPeriod - 1)) | |
396 | 396 | ((a2 + a1) + a0) | |
397 | 397 | } | |
398 | 398 | let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0) | |
399 | 399 | let userAmount = if ((eff[idxTotalFP] != 0)) | |
400 | 400 | then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP]) | |
401 | 401 | else 0 | |
402 | 402 | let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START) | |
403 | 403 | let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS) | |
404 | 404 | let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_) | |
405 | 405 | let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_) | |
406 | 406 | let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0]) | |
407 | 407 | let user10part = if ((eff[idxTotalFP] != 0)) | |
408 | 408 | then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_) | |
409 | 409 | else 0 | |
410 | 410 | let newIssue10Time = max([NEW_STAKING_START, now]) | |
411 | 411 | let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0) | |
412 | 412 | [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] | |
413 | 413 | } | |
414 | 414 | ||
415 | 415 | ||
416 | 416 | func walletInternal (userAddressOpt) = { | |
417 | 417 | let addr = addressFromString(userAddressOpt) | |
418 | 418 | let balance = if (isDefined(addr)) | |
419 | 419 | then wavesBalance(value(addr)) | |
420 | 420 | else BalanceDetails(0, 0, 0, 0) | |
421 | 421 | let usdtBalance = if (isDefined(addr)) | |
422 | 422 | then assetBalance(value(addr), usdtAssetId) | |
423 | 423 | else 0 | |
424 | 424 | let wlgoldBalance = if (isDefined(addr)) | |
425 | 425 | then assetBalance(value(addr), wlgAssetId) | |
426 | 426 | else 0 | |
427 | 427 | let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
428 | 428 | let refByKey = keyAddressRefBy(userAddressOpt) | |
429 | 429 | let refBy = getString(acres2Contract, refByKey) | |
430 | 430 | let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "") | |
431 | 431 | let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "") | |
432 | 432 | let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "") | |
433 | 433 | let acresBalance = if (isDefined(addr)) | |
434 | 434 | then assetBalance(value(addr), acresAssetId) | |
435 | 435 | else 0 | |
436 | 436 | let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0) | |
437 | 437 | let lvl = getLevelByAcres(stakedAcres) | |
438 | 438 | let fp = getFarmingPowers(userAddressOpt, acres2Contract) | |
439 | 439 | let acresToNextLvl = if ((lvl >= size(levelAcres))) | |
440 | 440 | then 0 | |
441 | 441 | else (((levelAcres[lvl] * M8_) + 1) - stakedAcres) | |
442 | 442 | let nfts = valueOrElse(getString(acres2Contract, keyStakedNFTsByOwner(userAddressOpt)), "") | |
443 | - | [("%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__userBaseFarmingPower__" + toString(fp[idxUserFPnotBonused])), ("%s%d__userFarmingPower__" + toString(fp[idxUserFPbonused])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))] | |
443 | + | let bonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddressOpt)), 0) | |
444 | + | [("%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]))] | |
444 | 445 | } | |
445 | 446 | ||
446 | 447 | ||
447 | 448 | @Callable(i) | |
448 | 449 | func constructorV1 (contracts) = if ((i.caller != this)) | |
449 | 450 | then throw("permissions denied") | |
450 | 451 | else { | |
451 | 452 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
452 | 453 | ||
453 | 454 | let descr = { | |
454 | 455 | let $l = contracts | |
455 | 456 | let $s = size($l) | |
456 | 457 | let $acc0 = "" | |
457 | 458 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
458 | 459 | then $a | |
459 | 460 | else descriptor($a, $l[$i]) | |
460 | 461 | ||
461 | 462 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
462 | 463 | then $a | |
463 | 464 | else throw("List size exceeds 10") | |
464 | 465 | ||
465 | 466 | $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) | |
466 | 467 | } | |
467 | 468 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))] | |
468 | 469 | } | |
469 | 470 | ||
470 | 471 | ||
471 | 472 | ||
472 | 473 | @Callable(i) | |
473 | 474 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
474 | 475 | ||
475 | 476 | ||
476 | 477 | ||
477 | 478 | @Callable(i) | |
478 | 479 | func conversionInfoREADONLY (userAddressOpt) = { | |
479 | 480 | let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey)) | |
480 | - | let $ | |
481 | - | let unstakedAcres = $ | |
482 | - | let claimedAcres = $ | |
483 | - | let $ | |
484 | - | let acresFromPieces = $ | |
485 | - | let acresFromRes = $ | |
486 | - | let acresFromMat = $ | |
487 | - | let acresFromProd = $ | |
481 | + | let $t050245146 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil)) | |
482 | + | let unstakedAcres = $t050245146._1 | |
483 | + | let claimedAcres = $t050245146._2 | |
484 | + | let $t051495298 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil)) | |
485 | + | let acresFromPieces = $t051495298._1 | |
486 | + | let acresFromRes = $t051495298._2 | |
487 | + | let acresFromMat = $t051495298._3 | |
488 | + | let acresFromProd = $t051495298._4 | |
488 | 489 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
489 | 490 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "") | |
490 | - | let $ | |
491 | + | let $t054765698 = if ((duckAssetId != "")) | |
491 | 492 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil)) | |
492 | 493 | else $Tuple3(0, 0, 0) | |
493 | - | let acresFromDuckRes = $ | |
494 | - | let acresFromDuckMat = $ | |
495 | - | let acresFromDuckProd = $ | |
494 | + | let acresFromDuckRes = $t054765698._1 | |
495 | + | let acresFromDuckMat = $t054765698._2 | |
496 | + | let acresFromDuckProd = $t054765698._3 | |
496 | 497 | $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))]) | |
497 | 498 | } | |
498 | 499 | ||
499 | 500 | ||
500 | 501 | ||
501 | 502 | @Callable(i) | |
502 | 503 | func wlgStatsREADONLY (userAddrOpt) = { | |
503 | 504 | let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0) | |
504 | 505 | $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]))]) | |
505 | 506 | } | |
506 | 507 | ||
507 | 508 | ||
508 | 509 | ||
509 | 510 | @Callable(i) | |
510 | 511 | func lotteryStatsREADONLY (userAddrOpt) = { | |
511 | 512 | let today = (height / DAY_BLOCKS) | |
512 | 513 | let week = (height / WEEK_BLOCKS) | |
513 | 514 | let lastWeek = (week - 1) | |
514 | 515 | let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0) | |
515 | 516 | let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0) | |
516 | 517 | let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0) | |
517 | 518 | let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0) | |
518 | 519 | let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "") | |
519 | 520 | $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)]) | |
520 | 521 | } | |
521 | 522 | ||
522 | 523 |
github/deemru/w8io/026f985 108.30 ms ◑