tx · 8NnadiuBdfSxu8NRtkvgScQJ9tuUrJw5bo7Zy6iCSXgq 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy: -0.04100000 Waves 2023.09.05 13:00 [2741936] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves
{ "type": 13, "id": "8NnadiuBdfSxu8NRtkvgScQJ9tuUrJw5bo7Zy6iCSXgq", "fee": 4100000, "feeAssetId": null, "timestamp": 1693907953100, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "2L9zKQ1285DZN4VxG5HnoXD1eQg8HQbWmMwVFVSrKarQSTTM3PrSGAHrqz26YCHgpg2QUVcUzTFGh4ZGYSqrKzJ5" ], "script": "base64:BgJhCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBGBIDCgEIEgMKARgSAwoBGBIDCgEYEgMKARgSAwoBGBIDCgEIEgASAwoBCBIDCgEBEgASBAoCAQgSAwoBCMsBAAJNNgDAhD0AAk04AIDC1y8ACE1JTExJT042AICA6YOx3hYADk1BUktFVElOR1NIQVJFAKCNBgAJVEVBTVNIQVJFAMCaDAANQUNUSVZJVFlTSEFSRQCgjQYAC1BMQVlFUlNIQVJFAIC1GAAKWUVBUk1JTExJUwCAhuvHdQADREFZAIC4mSkAEG1hcmtldGluZ0FkZHJLZXkCDW1hcmtldGluZ0FkZHIAC3RlYW1BZGRyS2V5Agh0ZWFtQWRkcgAUbGFzdE1hcmtldGluZ1RpbWVLZXkCGWxhc3RDbGFpbWVkVGltZV9tYXJrZXRpbmcAFm1hcmtldGluZ0Ftb3VudExlZnRLZXkCE21hcmtldGluZ0Ftb3VudExlZnQAD2xhc3RUZWFtVGltZUtleQIUbGFzdENsYWltZWRUaW1lX3RlYW0AEXRlYW1BbW91bnRMZWZ0S2V5Ag50Z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AgkwXzBfMF8wXzACAV8EBWJ1ZmZzCQC1CQIJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUPc3Rha2luZ0NvbnRyYWN0CQEMa2V5RHVja0J1ZmZzAQULZHVja0Fzc2V0SWQCCTBfMF8wXzBfMAIBXwQGZXF1aXBtCQC1CQIJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUPc3Rha2luZ0NvbnRyYWN0CQEQa2V5RHVja0VxdWlwbWVudAEFC2R1Y2tBc3NldElkAgs7XztfO187XztfOwIBXwQNZXF1aXBtZW50UGVyYwkBCnNsb3RFZmZlY3QBCQCRAwIJALUJAgkAkQMCBQZlcXVpcG0FB3NlZ0JhY2sCATsAAQQOZXF1aXBtZW50QWJzb3IJAQpzbG90RWZmZWN0AQkAkQMCCQC1CQIJAJEDAgUGZXF1aXBtBQdzZWdCZWx0AgE7AAAEBWRvZGdlCQEQZG9kZ2VQcm9iYWJpbGl0eQMFBWNoYXJzBQVidWZmcwUNZXF1aXBtZW50UGVyYwQGYWJzb3JiCQEQZGFtYWdlQWJzb3JwdGlvbgMFBWNoYXJzBQVidWZmcwUOZXF1aXBtZW50QWJzb3IJAJQKAgUDbmlsCQDMCAIJAKwCAgIYJXMlZF9fZG9kZ2VQcm9iYWJpbGl0eV9fCQCkAwEFBWRvZGdlCQDMCAIJAKwCAgIYJXMlZF9fZGFtYWdlQWJzb3JwdGlvbl9fCQCkAwEFBmFic29yYgUDbmlsAHTuVok=", "height": 2741936, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DDm1JpgttuCCDucFxk9hCFsMrjzbHQD4NHKNKCZX1U3H Next: CyfxP9B3vhXMPjF8MnhyRmAMPPdYKh1VcCjhEX618h6j Diff:
Old | New | Differences | |
---|---|---|---|
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | + | let SCALE8 = 100000000 | |
219 | + | ||
218 | 220 | let robberyCostMin = 100000000 | |
219 | 221 | ||
220 | 222 | let robberyCooldownCoeff = 400 | |
223 | + | ||
224 | + | let charIntellect = 2 | |
225 | + | ||
226 | + | let charEndurance = 3 | |
227 | + | ||
228 | + | let charDexterity = 4 | |
229 | + | ||
230 | + | let segBack = 1 | |
231 | + | ||
232 | + | let segBelt = 2 | |
221 | 233 | ||
222 | 234 | let landRobStates = ["free", "locked", "afterLockCooldown", "robbedCooldown", "defendedCooldown"] | |
223 | 235 | ||
286 | 298 | } | |
287 | 299 | ||
288 | 300 | ||
301 | + | func tanh (v) = { | |
302 | + | let double = (2 * v) | |
303 | + | let exp2 = pow(271828183, 8, double, 8, 8, HALFUP) | |
304 | + | fraction((exp2 - SCALE8), SCALE8, (exp2 + SCALE8), HALFUP) | |
305 | + | } | |
306 | + | ||
307 | + | ||
308 | + | func dodgeProbability (chars,buffs,equipmentPerc) = { | |
309 | + | let intel = (parseIntValue(chars[charIntellect]) + parseIntValue(buffs[charIntellect])) | |
310 | + | let dex = (parseIntValue(chars[charDexterity]) + parseIntValue(buffs[charDexterity])) | |
311 | + | let first8 = (tanh(fraction(dex, SCALE8, 200)) / 4) | |
312 | + | let second8 = fraction(equipmentPerc, (SCALE8 + fraction(7000000, intel, (1 + intel), HALFUP)), 100, HALFUP) | |
313 | + | (first8 + second8) | |
314 | + | } | |
315 | + | ||
316 | + | ||
317 | + | func damageAbsorption (chars,buffs,equipmentAbsor) = { | |
318 | + | let intel = (parseIntValue(chars[charIntellect]) + parseIntValue(buffs[charIntellect])) | |
319 | + | let endur = (parseIntValue(chars[charEndurance]) + parseIntValue(buffs[charEndurance])) | |
320 | + | let dex = (parseIntValue(chars[charDexterity]) + parseIntValue(buffs[charDexterity])) | |
321 | + | let first8 = (equipmentAbsor * (SCALE8 + fraction(14000000, intel, (1 + intel), HALFUP))) | |
322 | + | let second8 = (sqrt(dex, 0, 8, HALFUP) / 10) | |
323 | + | let third8 = ((SCALE8 / 5) * endur) | |
324 | + | ((first8 + second8) + third8) | |
325 | + | } | |
326 | + | ||
327 | + | ||
289 | 328 | let ARTPRESALE = "PRESALE" | |
290 | 329 | ||
291 | 330 | let ARTONBOARD = "ONBOARD" | |
311 | 350 | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_011", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_10_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_20_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_30_0,0,0,0,0,0,0_201", "4_13_22_4_35_22_23_0_50,1,0_0,0,0,0,0,0,0_", "4_13_22_4_35_22_46_0_50,1,1_0,2,5,0,0,0,0_", "4_13_22_4_35_22_69_0_50,2,1_0,5,10,0,0,0,0_", "5_25_40_5_10_15_20_1_30,1,1_0,0,0,0,0,0,0_", "5_25_40_5_10_15_40_1_30,1,2_2,1,3,0,0,0,0_", "5_25_40_5_10_15_60_1_30,1,3_5,2,8,0,0,0,0_"] | |
312 | 351 | ||
313 | 352 | let rIdxCoeff = 6 | |
353 | + | ||
354 | + | let rIdxEffect = 8 | |
314 | 355 | ||
315 | 356 | let PRODUCTPKGSIZE = 10 | |
316 | 357 | ||
764 | 805 | } | |
765 | 806 | ||
766 | 807 | ||
808 | + | func slotEffect (slot) = if ((slot == "")) | |
809 | + | then 0 | |
810 | + | else { | |
811 | + | let prod = split(slot, ":") | |
812 | + | if (if ((prod[1] == "")) | |
813 | + | then true | |
814 | + | else (parseIntValue(prod[1]) == 0)) | |
815 | + | then 0 | |
816 | + | else parseIntValue(split(productionMatrix[parseIntValue(prod[0])], "_")[rIdxEffect]) | |
817 | + | } | |
818 | + | ||
819 | + | ||
767 | 820 | @Callable(i) | |
768 | 821 | func constructorV1 (contracts) = if ((i.caller != this)) | |
769 | 822 | then throw("permissions denied") | |
1146 | 1199 | } | |
1147 | 1200 | ||
1148 | 1201 | ||
1202 | + | ||
1203 | + | @Callable(i) | |
1204 | + | func duckStatsCalculatorREADONLY (duckAssetId) = { | |
1205 | + | let chars = split(valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0"), "_") | |
1206 | + | let buffs = split(valueOrElse(getString(stakingContract, keyDuckBuffs(duckAssetId)), "0_0_0_0_0"), "_") | |
1207 | + | let equipm = split(valueOrElse(getString(stakingContract, keyDuckEquipment(duckAssetId)), ";_;_;_;_;_;"), "_") | |
1208 | + | let equipmentPerc = slotEffect(split(equipm[segBack], ";")[1]) | |
1209 | + | let equipmentAbsor = slotEffect(split(equipm[segBelt], ";")[0]) | |
1210 | + | let dodge = dodgeProbability(chars, buffs, equipmentPerc) | |
1211 | + | let absorb = damageAbsorption(chars, buffs, equipmentAbsor) | |
1212 | + | $Tuple2(nil, [("%s%d__dodgeProbability__" + toString(dodge)), ("%s%d__damageAbsorption__" + toString(absorb))]) | |
1213 | + | } | |
1214 | + | ||
1215 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let M6 = 1000000 | |
5 | 5 | ||
6 | 6 | let M8 = 100000000 | |
7 | 7 | ||
8 | 8 | let MILLION6 = 100000000000000 | |
9 | 9 | ||
10 | 10 | let MARKETINGSHARE = 100000 | |
11 | 11 | ||
12 | 12 | let TEAMSHARE = 200000 | |
13 | 13 | ||
14 | 14 | let ACTIVITYSHARE = 100000 | |
15 | 15 | ||
16 | 16 | let PLAYERSHARE = 400000 | |
17 | 17 | ||
18 | 18 | let YEARMILLIS = 31557600000 | |
19 | 19 | ||
20 | 20 | let DAY = 86400000 | |
21 | 21 | ||
22 | 22 | let marketingAddrKey = "marketingAddr" | |
23 | 23 | ||
24 | 24 | let teamAddrKey = "teamAddr" | |
25 | 25 | ||
26 | 26 | let lastMarketingTimeKey = "lastClaimedTime_marketing" | |
27 | 27 | ||
28 | 28 | let marketingAmountLeftKey = "marketingAmountLeft" | |
29 | 29 | ||
30 | 30 | let lastTeamTimeKey = "lastClaimedTime_team" | |
31 | 31 | ||
32 | 32 | let teamAmountLeftKey = "teamAmountLeft" | |
33 | 33 | ||
34 | 34 | let lastActivitiesTimeKey = "lastClaimedTime_activities" | |
35 | 35 | ||
36 | 36 | let actAmountLeftKey = "activitiesAmountLeft" | |
37 | 37 | ||
38 | 38 | let stakersAmountLeftKey = "stakersAmountLeft" | |
39 | 39 | ||
40 | 40 | func keyLastClaimedTimeByUser (addr) = ("lastClaimedTimeUser_" + addr) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func distributionByPeriod (period) = fraction(MILLION6, (PLAYERSHARE * (period + 1)), (6 * M6)) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | let wlgIssueTimeKey = "wlg_issueTime" | |
47 | 47 | ||
48 | 48 | let wlgIssuedAmountKey = "wlg_issuedAmount" | |
49 | 49 | ||
50 | 50 | let zbIssuedAmountKey = "zbill_issuedAmount" | |
51 | 51 | ||
52 | 52 | let idxWlgAmount = 0 | |
53 | 53 | ||
54 | 54 | let idxWlgPrice = 1 | |
55 | 55 | ||
56 | 56 | let idxWlgFunds = 2 | |
57 | 57 | ||
58 | 58 | let idxWlgEconomy = 3 | |
59 | 59 | ||
60 | 60 | let idxWlgActivity = 4 | |
61 | 61 | ||
62 | 62 | let idxWlgArbitrage = 5 | |
63 | 63 | ||
64 | 64 | let idxWlgPool = 6 | |
65 | 65 | ||
66 | 66 | let idxWlgIssueTime = 7 | |
67 | 67 | ||
68 | 68 | let idxWlgLastMTATime = 8 | |
69 | 69 | ||
70 | 70 | let idxWlgMarketingTotal = 9 | |
71 | 71 | ||
72 | 72 | let idxWlgMarketingAmLeft = 10 | |
73 | 73 | ||
74 | 74 | let idxWlgMarketingAmAvailNow = 11 | |
75 | 75 | ||
76 | 76 | let idxWlgMarketingWlgold = 12 | |
77 | 77 | ||
78 | 78 | let idxWlgTeamTotal = 13 | |
79 | 79 | ||
80 | 80 | let idxWlgTeamAmLeft = 14 | |
81 | 81 | ||
82 | 82 | let idxWlgTeamAmAvailNow = 15 | |
83 | 83 | ||
84 | 84 | let idxWlgTeamWlgold = 16 | |
85 | 85 | ||
86 | 86 | let idxWlgActTotal = 17 | |
87 | 87 | ||
88 | 88 | let idxWlgActAmLeft = 18 | |
89 | 89 | ||
90 | 90 | let idxWlgActAmAvailNow = 19 | |
91 | 91 | ||
92 | 92 | let idxWlgActWlgold = 20 | |
93 | 93 | ||
94 | 94 | let idxWlgCurPeriod = 21 | |
95 | 95 | ||
96 | 96 | let idxWlgAmLeftTotal = 22 | |
97 | 97 | ||
98 | 98 | let idxWlgCurPeriodDistribution = 23 | |
99 | 99 | ||
100 | 100 | let idxWlgLastUserTime = 24 | |
101 | 101 | ||
102 | 102 | let idxWlgUserAmAvailNow = 25 | |
103 | 103 | ||
104 | 104 | let idxWlgSLandDailyAmount = 26 | |
105 | 105 | ||
106 | 106 | let idxWlgInvestFundAmount = 27 | |
107 | 107 | ||
108 | 108 | let dappRest = 0 | |
109 | 109 | ||
110 | 110 | let dappStaking = 1 | |
111 | 111 | ||
112 | 112 | let dappEconomy = 2 | |
113 | 113 | ||
114 | 114 | let dappWlg = 3 | |
115 | 115 | ||
116 | 116 | let dappPuzzle = 4 | |
117 | 117 | ||
118 | 118 | let dappInvestFund = 5 | |
119 | 119 | ||
120 | 120 | func getPieces (userAddrStrOrEmpty,stakingContract) = { | |
121 | 121 | let props = split(valueOrElse(getString(stakingContract, "resTypesProportions"), "0_0_0_0_0_0"), "_") | |
122 | 122 | func adder (acc,item) = (acc + parseIntValue(item)) | |
123 | 123 | ||
124 | 124 | let totalPower = { | |
125 | 125 | let $l = props | |
126 | 126 | let $s = size($l) | |
127 | 127 | let $acc0 = 0 | |
128 | 128 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
129 | 129 | then $a | |
130 | 130 | else adder($a, $l[$i]) | |
131 | 131 | ||
132 | 132 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
133 | 133 | then $a | |
134 | 134 | else throw("List size exceeds 6") | |
135 | 135 | ||
136 | 136 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
137 | 137 | } | |
138 | 138 | let usersPower = valueOrElse(getInteger(stakingContract, ("stakedPiecesByOwner_" + userAddrStrOrEmpty)), 0) | |
139 | 139 | [totalPower, usersPower] | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func getWlgStats (userAddrOpt,contracts,usdtId,usdtBalanceCorrection,userProportion6) = { | |
144 | 144 | let issuedAmount = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssuedAmountKey), "WLGOLD is not issued yet") | |
145 | 145 | let economyUsd = assetBalance(contracts[dappEconomy], usdtId) | |
146 | 146 | let restUsd = assetBalance(contracts[dappRest], usdtId) | |
147 | 147 | let wlgUsd = (assetBalance(contracts[dappWlg], usdtId) - usdtBalanceCorrection) | |
148 | 148 | let puzzleUsd = assetBalance(contracts[dappPuzzle], usdtId) | |
149 | 149 | let investFundContract = contracts[dappInvestFund] | |
150 | 150 | let investFundTotal = (assetBalance(investFundContract, usdtId) + valueOrElse(getInteger(investFundContract, zbIssuedAmountKey), 0)) | |
151 | 151 | let totalFundsUsd = ((economyUsd + wlgUsd) + investFundTotal) | |
152 | 152 | let wlgId = valueOrErrorMessage(getBinary(contracts[dappWlg], "wlg_assetId"), "Not initialized yet") | |
153 | 153 | let now = lastBlock.timestamp | |
154 | 154 | let issueTime = valueOrErrorMessage(getInteger(contracts[dappWlg], wlgIssueTimeKey), "Not initialized") | |
155 | 155 | let marketingTotal = fraction(MILLION6, MARKETINGSHARE, M6) | |
156 | 156 | let marketingAmountLeft = valueOrElse(getInteger(contracts[dappWlg], marketingAmountLeftKey), marketingTotal) | |
157 | 157 | let lastMarketingTime = valueOrElse(getInteger(contracts[dappWlg], lastMarketingTimeKey), issueTime) | |
158 | 158 | let marketingAddr = addressFromStringValue(value(getString(contracts[dappWlg], marketingAddrKey))) | |
159 | 159 | let marketingAmountAvailableNow = min([fraction(marketingTotal, (now - lastMarketingTime), YEARMILLIS), marketingAmountLeft]) | |
160 | 160 | let marketingWlgold = assetBalance(marketingAddr, wlgId) | |
161 | 161 | let teamTotal = fraction(MILLION6, TEAMSHARE, M6) | |
162 | 162 | let teamAmountLeft = valueOrElse(getInteger(contracts[dappWlg], teamAmountLeftKey), teamTotal) | |
163 | 163 | let lastTeamTime = valueOrElse(getInteger(contracts[dappWlg], lastTeamTimeKey), issueTime) | |
164 | 164 | let teamAddr = addressFromStringValue(value(getString(contracts[dappWlg], teamAddrKey))) | |
165 | 165 | let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEARMILLIS)), teamAmountLeft]) | |
166 | 166 | let teamWlgold = assetBalance(teamAddr, wlgId) | |
167 | 167 | let actTotal = fraction(MILLION6, ACTIVITYSHARE, M6) | |
168 | 168 | let actAmountLeft = valueOrElse(getInteger(contracts[dappWlg], actAmountLeftKey), actTotal) | |
169 | 169 | let lastActivitiesTime = valueOrElse(getInteger(contracts[dappWlg], lastActivitiesTimeKey), issueTime) | |
170 | 170 | let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEARMILLIS)), actAmountLeft]) | |
171 | 171 | let actWlgold = assetBalance(contracts[dappRest], wlgId) | |
172 | 172 | let lastUserTime = valueOrElse(getInteger(contracts[dappWlg], keyLastClaimedTimeByUser(userAddrOpt)), issueTime) | |
173 | 173 | let lastUserPeriod = ((lastUserTime - issueTime) / YEARMILLIS) | |
174 | 174 | let nowLimited = min([now, (issueTime + (3 * YEARMILLIS))]) | |
175 | 175 | let curPeriod = min([((now - issueTime) / YEARMILLIS), 2]) | |
176 | 176 | let eff = getPieces(userAddrOpt, contracts[dappStaking]) | |
177 | 177 | let curPeriodDistribution = distributionByPeriod(curPeriod) | |
178 | 178 | let $t079142 = if ((lastUserPeriod == curPeriod)) | |
179 | 179 | then { | |
180 | 180 | let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEARMILLIS) | |
181 | 181 | let userPart = fraction(a0, userProportion6, M6) | |
182 | 182 | let effTime = (lastUserTime + fraction((nowLimited - lastUserTime), userProportion6, M6)) | |
183 | 183 | $Tuple3(userPart, a0, effTime) | |
184 | 184 | } | |
185 | 185 | else if ((lastUserPeriod == (curPeriod - 1))) | |
186 | 186 | then { | |
187 | 187 | let a1 = fraction(distributionByPeriod((curPeriod - 1)), ((issueTime + (YEARMILLIS * curPeriod)) - lastUserTime), YEARMILLIS) | |
188 | 188 | let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS) | |
189 | 189 | let avail = (a1 + a0) | |
190 | 190 | let userPart = fraction(avail, userProportion6, M6) | |
191 | 191 | let effTime = if ((a1 >= userPart)) | |
192 | 192 | then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 1)))) | |
193 | 193 | else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, (userPart - a1), curPeriodDistribution)) | |
194 | 194 | $Tuple3(userPart, avail, effTime) | |
195 | 195 | } | |
196 | 196 | else { | |
197 | 197 | let a2 = fraction(distributionByPeriod((curPeriod - 2)), ((issueTime + (YEARMILLIS * (curPeriod - 1))) - lastUserTime), YEARMILLIS) | |
198 | 198 | let a1 = distributionByPeriod((curPeriod - 1)) | |
199 | 199 | let a0 = fraction(curPeriodDistribution, (nowLimited - (issueTime + (YEARMILLIS * curPeriod))), YEARMILLIS) | |
200 | 200 | let avail = ((a2 + a1) + a0) | |
201 | 201 | let userPart = fraction(avail, userProportion6, M6) | |
202 | 202 | let effTime = if ((a2 >= userPart)) | |
203 | 203 | then (lastUserTime + fraction(YEARMILLIS, userPart, distributionByPeriod((curPeriod - 2)))) | |
204 | 204 | else if (((a2 + a1) >= userPart)) | |
205 | 205 | then ((issueTime + (YEARMILLIS * (curPeriod - 1))) + fraction(YEARMILLIS, (userPart - a2), distributionByPeriod((curPeriod - 1)))) | |
206 | 206 | else ((issueTime + (YEARMILLIS * curPeriod)) + fraction(YEARMILLIS, ((userPart - a2) - a1), curPeriodDistribution)) | |
207 | 207 | $Tuple3(userPart, avail, effTime) | |
208 | 208 | } | |
209 | 209 | let userAmount = $t079142._1 | |
210 | 210 | let userAvailable = $t079142._2 | |
211 | 211 | let effLastTime = $t079142._3 | |
212 | 212 | let sLandDailyAmount = fraction(fraction(curPeriodDistribution, DAY, YEARMILLIS), 25, eff[0]) | |
213 | 213 | let amountLeftTotal = valueOrElse(getInteger(contracts[dappWlg], stakersAmountLeftKey), 0) | |
214 | 214 | [issuedAmount, fraction(totalFundsUsd, M8, issuedAmount), totalFundsUsd, economyUsd, restUsd, wlgUsd, puzzleUsd, issueTime, lastMarketingTime, marketingTotal, marketingAmountLeft, marketingAmountAvailableNow, marketingWlgold, teamTotal, teamAmountLeft, teamAmountAvailableNow, teamWlgold, actTotal, actAmountLeft, actAmountAvailableNow, actWlgold, curPeriod, amountLeftTotal, curPeriodDistribution, lastUserTime, fraction(userAmount, eff[1], eff[0]), sLandDailyAmount, investFundTotal, fraction(userAvailable, eff[1], eff[0]), effLastTime] | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | + | let SCALE8 = 100000000 | |
219 | + | ||
218 | 220 | let robberyCostMin = 100000000 | |
219 | 221 | ||
220 | 222 | let robberyCooldownCoeff = 400 | |
223 | + | ||
224 | + | let charIntellect = 2 | |
225 | + | ||
226 | + | let charEndurance = 3 | |
227 | + | ||
228 | + | let charDexterity = 4 | |
229 | + | ||
230 | + | let segBack = 1 | |
231 | + | ||
232 | + | let segBelt = 2 | |
221 | 233 | ||
222 | 234 | let landRobStates = ["free", "locked", "afterLockCooldown", "robbedCooldown", "defendedCooldown"] | |
223 | 235 | ||
224 | 236 | let duckRobStates = ["free", "preparingRob"] | |
225 | 237 | ||
226 | 238 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
227 | 239 | ||
228 | 240 | ||
229 | 241 | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
230 | 242 | ||
231 | 243 | ||
232 | 244 | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
233 | 245 | ||
234 | 246 | ||
235 | 247 | func keyDuckLevel (duckAssetId) = ("duckLevel_" + duckAssetId) | |
236 | 248 | ||
237 | 249 | ||
238 | 250 | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
239 | 251 | ||
240 | 252 | ||
241 | 253 | func keyDuckEquipment (duckAssetId) = ("duckEquipment_" + duckAssetId) | |
242 | 254 | ||
243 | 255 | ||
244 | 256 | func keyUserXP (addr) = ("userXP_" + addr) | |
245 | 257 | ||
246 | 258 | ||
247 | 259 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
248 | 260 | ||
249 | 261 | ||
250 | 262 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
251 | 263 | ||
252 | 264 | ||
253 | 265 | func keyDuckBuffs (duckAssetId) = ("duckBuffs_" + duckAssetId) | |
254 | 266 | ||
255 | 267 | ||
256 | 268 | func keyLastRobberyTimeByDuck (duckAssetId) = ("lastRobberyTime_" + duckAssetId) | |
257 | 269 | ||
258 | 270 | ||
259 | 271 | func keyLastRobberyCostByDuck (duckAssetId) = ("lastRobberyCost_" + duckAssetId) | |
260 | 272 | ||
261 | 273 | ||
262 | 274 | func keyLandRobberyState (landAssetId) = ("landRobberyState_" + landAssetId) | |
263 | 275 | ||
264 | 276 | ||
265 | 277 | func keyLandCooldownETA (landAssetId) = ("landCooldownETA_" + landAssetId) | |
266 | 278 | ||
267 | 279 | ||
268 | 280 | func keyDuckRobberyState (duckAssetId) = ("duckRobberyState_" + duckAssetId) | |
269 | 281 | ||
270 | 282 | ||
271 | 283 | func keyLockedLandByDuck (duckAssetId) = ("lockedLandByDuck_" + duckAssetId) | |
272 | 284 | ||
273 | 285 | ||
274 | 286 | func maxHealth (level) = (100 + level) | |
275 | 287 | ||
276 | 288 | ||
277 | 289 | func getRobberyData (stakingContract,duckAssetId) = { | |
278 | 290 | let lastRobCost = valueOrElse(getInteger(stakingContract, keyLastRobberyCostByDuck(duckAssetId)), 0) | |
279 | 291 | let lastRobTime = valueOrElse(getInteger(stakingContract, keyLastRobberyTimeByDuck(duckAssetId)), 0) | |
280 | 292 | let now = lastBlock.timestamp | |
281 | 293 | let robCost = max([robberyCostMin, (lastRobCost - (robberyCooldownCoeff * (now - lastRobTime)))]) | |
282 | 294 | let duckState = valueOrElse(getInteger(stakingContract, keyDuckRobberyState(duckAssetId)), 0) | |
283 | 295 | let lockedLand = valueOrElse(getString(stakingContract, keyLockedLandByDuck(duckAssetId)), "") | |
284 | 296 | let landETA = valueOrElse(getInteger(stakingContract, keyLandCooldownETA(lockedLand)), 0) | |
285 | 297 | $Tuple5(robCost, lastRobTime, duckState, lockedLand, landETA) | |
286 | 298 | } | |
287 | 299 | ||
288 | 300 | ||
301 | + | func tanh (v) = { | |
302 | + | let double = (2 * v) | |
303 | + | let exp2 = pow(271828183, 8, double, 8, 8, HALFUP) | |
304 | + | fraction((exp2 - SCALE8), SCALE8, (exp2 + SCALE8), HALFUP) | |
305 | + | } | |
306 | + | ||
307 | + | ||
308 | + | func dodgeProbability (chars,buffs,equipmentPerc) = { | |
309 | + | let intel = (parseIntValue(chars[charIntellect]) + parseIntValue(buffs[charIntellect])) | |
310 | + | let dex = (parseIntValue(chars[charDexterity]) + parseIntValue(buffs[charDexterity])) | |
311 | + | let first8 = (tanh(fraction(dex, SCALE8, 200)) / 4) | |
312 | + | let second8 = fraction(equipmentPerc, (SCALE8 + fraction(7000000, intel, (1 + intel), HALFUP)), 100, HALFUP) | |
313 | + | (first8 + second8) | |
314 | + | } | |
315 | + | ||
316 | + | ||
317 | + | func damageAbsorption (chars,buffs,equipmentAbsor) = { | |
318 | + | let intel = (parseIntValue(chars[charIntellect]) + parseIntValue(buffs[charIntellect])) | |
319 | + | let endur = (parseIntValue(chars[charEndurance]) + parseIntValue(buffs[charEndurance])) | |
320 | + | let dex = (parseIntValue(chars[charDexterity]) + parseIntValue(buffs[charDexterity])) | |
321 | + | let first8 = (equipmentAbsor * (SCALE8 + fraction(14000000, intel, (1 + intel), HALFUP))) | |
322 | + | let second8 = (sqrt(dex, 0, 8, HALFUP) / 10) | |
323 | + | let third8 = ((SCALE8 / 5) * endur) | |
324 | + | ((first8 + second8) + third8) | |
325 | + | } | |
326 | + | ||
327 | + | ||
289 | 328 | let ARTPRESALE = "PRESALE" | |
290 | 329 | ||
291 | 330 | let ARTONBOARD = "ONBOARD" | |
292 | 331 | ||
293 | 332 | let NUMRES = 6 | |
294 | 333 | ||
295 | 334 | let DAILYRESBYPIECE = 3456000 | |
296 | 335 | ||
297 | 336 | let DAYMILLIS = 86400000 | |
298 | 337 | ||
299 | 338 | let WHMULTIPLIER = 10000000000 | |
300 | 339 | ||
301 | 340 | let RESOURCEPRICEMIN = 39637 | |
302 | 341 | ||
303 | 342 | let ESMAXPACKAGES = 3 | |
304 | 343 | ||
305 | 344 | let ESBUYCOEF = 4 | |
306 | 345 | ||
307 | 346 | let ESSELLCOEF = 10 | |
308 | 347 | ||
309 | 348 | let COEFF2MAT = 10000000 | |
310 | 349 | ||
311 | 350 | let productionMatrix = ["8_8_8_17_17_42_12_0_30_0,0,0,0,0,0,0_", "8_8_8_17_17_42_24_0_60_0,0,5,2,0,0,0_", "8_8_8_17_17_42_36_0_120_0,0,10,4,0,0,0_", "8_19_19_8_27_19_26_1_20_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_52_1_40_0,0,0,0,0,0,0_001", "8_19_19_8_27_19_78_1_80_0,0,0,0,0,0,0_001", "8_8_8_8_8_60_13_2_2_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_26_2_4_0,0,0,0,0,0,0_011", "8_8_8_8_8_60_39_2_8_0,0,0,0,0,0,0_011", "30_30_3_17_17_3_30_3_30_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_60_3_50_0,0,0,0,0,0,0_111", "30_30_3_17_17_3_90_3_70_0,0,0,0,0,0,0_111", "18_18_10_18_18_18_11_4_10_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_22_4_20_0,0,0,0,0,0,0_201", "18_18_10_18_18_18_33_4_30_0,0,0,0,0,0,0_201", "4_13_22_4_35_22_23_0_50,1,0_0,0,0,0,0,0,0_", "4_13_22_4_35_22_46_0_50,1,1_0,2,5,0,0,0,0_", "4_13_22_4_35_22_69_0_50,2,1_0,5,10,0,0,0,0_", "5_25_40_5_10_15_20_1_30,1,1_0,0,0,0,0,0,0_", "5_25_40_5_10_15_40_1_30,1,2_2,1,3,0,0,0,0_", "5_25_40_5_10_15_60_1_30,1,3_5,2,8,0,0,0,0_"] | |
312 | 351 | ||
313 | 352 | let rIdxCoeff = 6 | |
353 | + | ||
354 | + | let rIdxEffect = 8 | |
314 | 355 | ||
315 | 356 | let PRODUCTPKGSIZE = 10 | |
316 | 357 | ||
317 | 358 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
318 | 359 | ||
319 | 360 | ||
320 | 361 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
321 | 362 | ||
322 | 363 | ||
323 | 364 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
324 | 365 | ||
325 | 366 | ||
326 | 367 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
327 | 368 | ||
328 | 369 | ||
329 | 370 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
330 | 371 | ||
331 | 372 | ||
332 | 373 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
333 | 374 | ||
334 | 375 | ||
335 | 376 | func keyFortificationsByLand (landAssetId) = ("fortifications_" + landAssetId) | |
336 | 377 | ||
337 | 378 | ||
338 | 379 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
339 | 380 | ||
340 | 381 | ||
341 | 382 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
342 | 383 | ||
343 | 384 | ||
344 | 385 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
345 | 386 | ||
346 | 387 | ||
347 | 388 | func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr) | |
348 | 389 | ||
349 | 390 | ||
350 | 391 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
351 | 392 | ||
352 | 393 | ||
353 | 394 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
354 | 395 | ||
355 | 396 | ||
356 | 397 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
357 | 398 | ||
358 | 399 | ||
359 | 400 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
360 | 401 | ||
361 | 402 | ||
362 | 403 | func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId) | |
363 | 404 | ||
364 | 405 | ||
365 | 406 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
366 | 407 | ||
367 | 408 | ||
368 | 409 | let lastTourIdKey = "%s__lastTourId" | |
369 | 410 | ||
370 | 411 | func keyTourStaticDataById (tId) = ("%s%d__tourStaticData__" + toString(tId)) | |
371 | 412 | ||
372 | 413 | ||
373 | 414 | func keyTourDynamicDataById (tId) = ("%s%d__tourDynamicData__" + toString(tId)) | |
374 | 415 | ||
375 | 416 | ||
376 | 417 | func keyScoreBoardByTour (tId) = ("%s%d__scoreBoard__" + toString(tId)) | |
377 | 418 | ||
378 | 419 | ||
379 | 420 | func keyIsRegisteredByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__isRegisteredByTourAndDuck", toString(tId), duckAssetId], "__") | |
380 | 421 | ||
381 | 422 | ||
382 | 423 | func keyLastAttemptByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__lastAttemptByTourAndDuck", toString(tId), duckAssetId], "__") | |
383 | 424 | ||
384 | 425 | ||
385 | 426 | func keyBestResultByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__bestResultByTourAndDuck", toString(tId), duckAssetId], "__") | |
386 | 427 | ||
387 | 428 | ||
388 | 429 | let idxStatic = 0 | |
389 | 430 | ||
390 | 431 | let idxDynamic = 1 | |
391 | 432 | ||
392 | 433 | func getTourData (tourContract,tId) = { | |
393 | 434 | let static = split(valueOrErrorMessage(getString(tourContract, keyTourStaticDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
394 | 435 | let dynamic = split(valueOrErrorMessage(getString(tourContract, keyTourDynamicDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
395 | 436 | [static, dynamic] | |
396 | 437 | } | |
397 | 438 | ||
398 | 439 | ||
399 | 440 | let tStaticRegisterCost = 2 | |
400 | 441 | ||
401 | 442 | let tStaticAttemptCost = 3 | |
402 | 443 | ||
403 | 444 | let tStaticStart = 5 | |
404 | 445 | ||
405 | 446 | let tStaticEnd = 6 | |
406 | 447 | ||
407 | 448 | let tDynamicStatus = 1 | |
408 | 449 | ||
409 | 450 | let tDynamicWinDuck = 2 | |
410 | 451 | ||
411 | 452 | let tDynamicWinResult = 3 | |
412 | 453 | ||
413 | 454 | let tDynamicTotalRegCount = 4 | |
414 | 455 | ||
415 | 456 | let tDynamicTotalAttempts = 5 | |
416 | 457 | ||
417 | 458 | func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT) | |
418 | 459 | ||
419 | 460 | ||
420 | 461 | let chain = take(drop(this.bytes, 1), 1) | |
421 | 462 | ||
422 | 463 | let usdtAssetId = match chain { | |
423 | 464 | case _ => | |
424 | 465 | if ((base58'2W' == $match0)) | |
425 | 466 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
426 | 467 | else if ((base58'2T' == $match0)) | |
427 | 468 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
428 | 469 | else throw("Unknown chain") | |
429 | 470 | } | |
430 | 471 | ||
431 | 472 | let defaultRestAddressStr = match chain { | |
432 | 473 | case _ => | |
433 | 474 | if ((base58'2W' == $match0)) | |
434 | 475 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
435 | 476 | else if ((base58'2T' == $match0)) | |
436 | 477 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
437 | 478 | else throw("Unknown chain") | |
438 | 479 | } | |
439 | 480 | ||
440 | 481 | let InfraUpgradeCostS = match chain { | |
441 | 482 | case _ => | |
442 | 483 | if ((base58'2W' == $match0)) | |
443 | 484 | then 10000000000 | |
444 | 485 | else if ((base58'2T' == $match0)) | |
445 | 486 | then 100000000 | |
446 | 487 | else throw("Unknown chain") | |
447 | 488 | } | |
448 | 489 | ||
449 | 490 | let SEP = "__" | |
450 | 491 | ||
451 | 492 | let MULT6 = 1000000 | |
452 | 493 | ||
453 | 494 | let MULT8 = 100000000 | |
454 | 495 | ||
455 | 496 | let SSIZE = 25 | |
456 | 497 | ||
457 | 498 | let MSIZE = 100 | |
458 | 499 | ||
459 | 500 | let LSIZE = 225 | |
460 | 501 | ||
461 | 502 | let XLSIZE = 400 | |
462 | 503 | ||
463 | 504 | let XXLSIZE = 625 | |
464 | 505 | ||
465 | 506 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
466 | 507 | ||
467 | 508 | ||
468 | 509 | let IdxCfgStakingDapp = 1 | |
469 | 510 | ||
470 | 511 | let IdxCfgEconomyDapp = 2 | |
471 | 512 | ||
472 | 513 | let IdxCfgWlgDapp = 4 | |
473 | 514 | ||
474 | 515 | let IdxCfgPuzzlePoolDapp = 5 | |
475 | 516 | ||
476 | 517 | let IdxCfgInvestFundDapp = 6 | |
477 | 518 | ||
478 | 519 | let IdxCfgTournamentDapp = 7 | |
479 | 520 | ||
480 | 521 | func keyRestCfg () = "%s__restConfig" | |
481 | 522 | ||
482 | 523 | ||
483 | 524 | func keyRestAddress () = "%s__restAddr" | |
484 | 525 | ||
485 | 526 | ||
486 | 527 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
487 | 528 | ||
488 | 529 | ||
489 | 530 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
490 | 531 | ||
491 | 532 | ||
492 | 533 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
493 | 534 | ||
494 | 535 | let restCfg = readRestCfgOrFail(restContract) | |
495 | 536 | ||
496 | 537 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
497 | 538 | ||
498 | 539 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
499 | 540 | ||
500 | 541 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
501 | 542 | ||
502 | 543 | let puzzlePoolContract = getContractAddressOrFail(restCfg, IdxCfgPuzzlePoolDapp) | |
503 | 544 | ||
504 | 545 | let investFundContract = getContractAddressOrFail(restCfg, IdxCfgInvestFundDapp) | |
505 | 546 | ||
506 | 547 | let tournamentContract = getContractAddressOrFail(restCfg, IdxCfgTournamentDapp) | |
507 | 548 | ||
508 | 549 | let recLandNum = 0 | |
509 | 550 | ||
510 | 551 | let recLandSize = 1 | |
511 | 552 | ||
512 | 553 | let recTerrains = 2 | |
513 | 554 | ||
514 | 555 | let recContinent = 3 | |
515 | 556 | ||
516 | 557 | let wlgAssetIdKey = "wlg_assetId" | |
517 | 558 | ||
518 | 559 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "Not initialized yet") | |
519 | 560 | ||
520 | 561 | let IdxEffUser = 1 | |
521 | 562 | ||
522 | 563 | func keyResProportions () = "resTypesProportions" | |
523 | 564 | ||
524 | 565 | ||
525 | 566 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
526 | 567 | ||
527 | 568 | ||
528 | 569 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
529 | 570 | ||
530 | 571 | ||
531 | 572 | func asString (v) = match v { | |
532 | 573 | case s: String => | |
533 | 574 | s | |
534 | 575 | case _ => | |
535 | 576 | throw("fail to cast into String") | |
536 | 577 | } | |
537 | 578 | ||
538 | 579 | ||
539 | 580 | func asInt (v) = match v { | |
540 | 581 | case n: Int => | |
541 | 582 | n | |
542 | 583 | case _ => | |
543 | 584 | throw("fail to cast into Int") | |
544 | 585 | } | |
545 | 586 | ||
546 | 587 | ||
547 | 588 | func asBoolean (v) = match v { | |
548 | 589 | case s: Boolean => | |
549 | 590 | s | |
550 | 591 | case _ => | |
551 | 592 | throw("fail to cast into Boolean") | |
552 | 593 | } | |
553 | 594 | ||
554 | 595 | ||
555 | 596 | func numPiecesBySize (landSize) = match landSize { | |
556 | 597 | case _ => | |
557 | 598 | if (("S" == $match0)) | |
558 | 599 | then SSIZE | |
559 | 600 | else if (("M" == $match0)) | |
560 | 601 | then MSIZE | |
561 | 602 | else if (("L" == $match0)) | |
562 | 603 | then LSIZE | |
563 | 604 | else if (("XL" == $match0)) | |
564 | 605 | then XLSIZE | |
565 | 606 | else if (("XXL" == $match0)) | |
566 | 607 | then XXLSIZE | |
567 | 608 | else throw("Unknown land size") | |
568 | 609 | } | |
569 | 610 | ||
570 | 611 | ||
571 | 612 | func keyBlocked () = "contractsBlocked" | |
572 | 613 | ||
573 | 614 | ||
574 | 615 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
575 | 616 | ||
576 | 617 | ||
577 | 618 | func getVotingPower (userAddrStrOrEmpty) = { | |
578 | 619 | let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_") | |
579 | 620 | func adder (acc,item) = (acc + parseIntValue(item)) | |
580 | 621 | ||
581 | 622 | let totalPower = { | |
582 | 623 | let $l = props | |
583 | 624 | let $s = size($l) | |
584 | 625 | let $acc0 = 0 | |
585 | 626 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
586 | 627 | then $a | |
587 | 628 | else adder($a, $l[$i]) | |
588 | 629 | ||
589 | 630 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
590 | 631 | then $a | |
591 | 632 | else throw("List size exceeds 6") | |
592 | 633 | ||
593 | 634 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
594 | 635 | } | |
595 | 636 | let usersPower = valueOrElse(getInteger(stakingContract, keyStakedPiecesByOwner(userAddrStrOrEmpty)), 0) | |
596 | 637 | [totalPower, usersPower] | |
597 | 638 | } | |
598 | 639 | ||
599 | 640 | ||
600 | 641 | let USDTPRIZEPART = 500000 | |
601 | 642 | ||
602 | 643 | let adminsList = [toString(this), match chain { | |
603 | 644 | case _ => | |
604 | 645 | if ((base58'2W' == $match0)) | |
605 | 646 | then "3P64qEVzuGzBJuYfDXYisFtokJChSRa8uja" | |
606 | 647 | else if ((base58'2T' == $match0)) | |
607 | 648 | then "3N3gSFrTwgiLAFZHMuJrEttht1nPhnkpvjs" | |
608 | 649 | else throw("Unknown chain") | |
609 | 650 | }] | |
610 | 651 | ||
611 | 652 | func asListIntCompacted (val) = match val { | |
612 | 653 | case valAnyList: List[Any] => | |
613 | 654 | if ((size(valAnyList) != NUMRES)) | |
614 | 655 | then throw(("Array size is " + toString(size(valAnyList)))) | |
615 | 656 | else { | |
616 | 657 | func conv (acc,item) = match item { | |
617 | 658 | case it: Int => | |
618 | 659 | (acc :+ toString(it)) | |
619 | 660 | case _ => | |
620 | 661 | throw("List type is not Int") | |
621 | 662 | } | |
622 | 663 | ||
623 | 664 | let r = { | |
624 | 665 | let $l = valAnyList | |
625 | 666 | let $s = size($l) | |
626 | 667 | let $acc0 = nil | |
627 | 668 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
628 | 669 | then $a | |
629 | 670 | else conv($a, $l[$i]) | |
630 | 671 | ||
631 | 672 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
632 | 673 | then $a | |
633 | 674 | else throw("List size exceeds 6") | |
634 | 675 | ||
635 | 676 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
636 | 677 | } | |
637 | 678 | makeString(r, "_") | |
638 | 679 | } | |
639 | 680 | case _ => | |
640 | 681 | throw("fail to cast into List") | |
641 | 682 | } | |
642 | 683 | ||
643 | 684 | ||
644 | 685 | func asSplitResult (val) = match val { | |
645 | 686 | case t2: (List[Any], List[Any]) => | |
646 | 687 | $Tuple2(asListIntCompacted(t2._1), asListIntCompacted(t2._2)) | |
647 | 688 | case _ => | |
648 | 689 | throw("fail to cast into (List, List)") | |
649 | 690 | } | |
650 | 691 | ||
651 | 692 | ||
652 | 693 | func walletInternal (userAddressOpt) = { | |
653 | 694 | let addr = addressFromString(userAddressOpt) | |
654 | 695 | let balance = if (isDefined(addr)) | |
655 | 696 | then wavesBalance(value(addr)) | |
656 | 697 | else BalanceDetails(0, 0, 0, 0) | |
657 | 698 | let usdtBalance = if (isDefined(addr)) | |
658 | 699 | then assetBalance(value(addr), usdtAssetId) | |
659 | 700 | else 0 | |
660 | 701 | let wlgoldBalance = if (isDefined(addr)) | |
661 | 702 | then assetBalance(value(addr), wlgAssetId) | |
662 | 703 | else 0 | |
663 | 704 | let customName = valueOrElse(getString(stakingContract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
664 | 705 | let refByKey = keyAddressRefBy(userAddressOpt) | |
665 | 706 | let refBy = getString(stakingContract, refByKey) | |
666 | 707 | let refs = valueOrElse(getString(stakingContract, keyAddressReferrals(userAddressOpt)), "") | |
667 | 708 | let lastTxId = valueOrElse(getString(stakingContract, keyLastTxIdByUser(userAddressOpt)), "") | |
668 | 709 | let pieces = getVotingPower(userAddressOpt)[IdxEffUser] | |
669 | 710 | let xp = valueOrElse(getInteger(stakingContract, keyUserXP(userAddressOpt)), 0) | |
670 | 711 | let lvl = valueOrElse(getInteger(stakingContract, keyUserLevel(userAddressOpt)), 0) | |
671 | 712 | let freePoints = valueOrElse(getInteger(stakingContract, keyUserFreePoints(userAddressOpt)), 0) | |
672 | 713 | let onboard = if (isDefined(refBy)) | |
673 | 714 | then (ARTONBOARD + (if (if (isDefined(addr)) | |
674 | 715 | then isDefined(getString(stakingContract, keyOnboardArtDuckActivatedBy(userAddressOpt))) | |
675 | 716 | else false) | |
676 | 717 | then ":1" | |
677 | 718 | else ":0")) | |
678 | 719 | else "" | |
679 | 720 | [("%s%s__customName__" + customName), ("%s%s__referredBy__" + valueOrElse(refBy, "")), ("%s%s__referrals__" + refs), ("%s%s__lastTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__stakedPieces__" + toString(pieces)), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints)), ("%s%s__walletArtefacts__" + onboard)] | |
680 | 721 | } | |
681 | 722 | ||
682 | 723 | ||
683 | 724 | func applyBonuses (landAssetId,pieces) = { | |
684 | 725 | let infraLevel = valueOrElse(getInteger(stakingContract, keyInfraLevelByAssetId(landAssetId)), 0) | |
685 | 726 | let artPieces = valueOrElse(getInteger(stakingContract, keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
686 | 727 | let add6 = (infraLevel / 6) | |
687 | 728 | let add7 = (infraLevel / 7) | |
688 | 729 | $Tuple3(infraLevel, artPieces, ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5)))) | |
689 | 730 | } | |
690 | 731 | ||
691 | 732 | ||
692 | 733 | func getWarehouseTotalVolume (volPrefix) = { | |
693 | 734 | let parts = split(volPrefix, "_") | |
694 | 735 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
695 | 736 | } | |
696 | 737 | ||
697 | 738 | ||
698 | 739 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
699 | 740 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
700 | 741 | let totS = toString(getWarehouseTotalVolume(volPrefix)) | |
701 | 742 | let whStr = valueOrElse(getString(stakingContract, whKey), ((((volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0_0_") + totS) + "_") + totS)) | |
702 | 743 | split(whStr, ":") | |
703 | 744 | } | |
704 | 745 | ||
705 | 746 | ||
706 | 747 | func duckInfoTuple (duckAssetId) = { | |
707 | 748 | let maxHP = maxHealth(valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0)) | |
708 | 749 | $Tuple5(valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(duckAssetId)), -1), value(assetInfo(fromBase58String(duckAssetId))).name, valueOrElse(getString(stakingContract, keyDuckLocation(duckAssetId)), ""), valueOrElse(getInteger(stakingContract, keyDuckHealth(duckAssetId)), maxHP), asString(invoke(stakingContract, "getBackpackREADONLY", [duckAssetId], nil))) | |
709 | 750 | } | |
710 | 751 | ||
711 | 752 | ||
712 | 753 | func duckInfoArray (duckAssetId,owner,duckInf) = { | |
713 | 754 | let customName = valueOrElse(getString(stakingContract, keyDuckAssetIdToCustomName(duckAssetId)), duckInf._2) | |
714 | 755 | let chars = valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0") | |
715 | 756 | let xp = valueOrElse(getInteger(stakingContract, keyDuckXP(duckAssetId)), 0) | |
716 | 757 | let lvl = valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0) | |
717 | 758 | let freePoints = valueOrElse(getInteger(stakingContract, keyDuckFreePoints(duckAssetId)), 0) | |
718 | 759 | let equipm = valueOrElse(getString(stakingContract, keyDuckEquipment(duckAssetId)), ";_;_;_;_;_;") | |
719 | 760 | let buffs = valueOrElse(getString(stakingContract, keyDuckBuffs(duckAssetId)), "0_0_0_0_0") | |
720 | 761 | let $t056165721 = getRobberyData(stakingContract, duckAssetId) | |
721 | 762 | let robCost = $t056165721._1 | |
722 | 763 | let lastRobTime = $t056165721._2 | |
723 | 764 | let duckState = $t056165721._3 | |
724 | 765 | let lockedLand = $t056165721._4 | |
725 | 766 | let landETA = $t056165721._5 | |
726 | 767 | [("%s%s__assetId__" + duckAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(duckInf._1)), ("%s%s__name__" + duckInf._2), ("%s%s__location__" + duckInf._3), ("%s%d__health__" + toString(duckInf._4)), ("%s%d__maxHealth__" + toString(maxHealth(lvl))), ("%s%s__characteristics__" + chars), ("%s%d__currentXp__" + toString(xp)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__pointsToDistribute__" + toString(freePoints)), ("%s%s__backPack__" + duckInf._5), ("%s%s__equipment__" + equipm), ("%s%s__buffs__" + buffs), ("%s%d__robberyCost__" + toString(robCost)), ("%s%d__robberyTime__" + toString(lastRobTime)), ("%s%s__robberyState__" + duckRobStates[duckState]), ("%s%s__robberyLastLand__" + lockedLand), ("%s%d__robberyLastLandReleaseTime__" + toString(landETA))] | |
727 | 768 | } | |
728 | 769 | ||
729 | 770 | ||
730 | 771 | func landInfoArray (landAssetId,owner,stakedTime) = if ((landAssetId == "")) | |
731 | 772 | then throw("landAssetId is required") | |
732 | 773 | else { | |
733 | 774 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
734 | 775 | let d = split(a.description, "_") | |
735 | 776 | let landNum = if ((a.quantity > 0)) | |
736 | 777 | then d[recLandNum] | |
737 | 778 | else ("-" + d[recLandNum]) | |
738 | 779 | let pieces = numPiecesBySize(d[recLandSize]) | |
739 | 780 | let productivity = applyBonuses(landAssetId, pieces) | |
740 | 781 | let deltaTime = (lastBlock.timestamp - stakedTime) | |
741 | 782 | let availRes = if ((stakedTime > 0)) | |
742 | 783 | then fraction(deltaTime, (productivity._3 * pieces), DAYMILLIS) | |
743 | 784 | else 0 | |
744 | 785 | let needMat = fraction(InfraUpgradeCostS, (pieces * (productivity._1 + 1)), SSIZE) | |
745 | 786 | let globalAndLocal = if ((stakedTime > 0)) | |
746 | 787 | then asSplitResult(invoke(stakingContract, "splitByGlobalAndLocalWeightsREADONLY", [needMat, availRes, d[recTerrains]], nil)) | |
747 | 788 | else $Tuple2(asListIntCompacted(invoke(stakingContract, "splitByGlobalWeightsREADONLY", [needMat], nil)), "") | |
748 | 789 | let customName = valueOrElse(getString(stakingContract, keyLandAssetIdToCustomName(landAssetId)), ((d[recContinent] + "-") + d[recLandNum])) | |
749 | 790 | let fort = valueOrElse(getString(stakingContract, keyFortificationsByLand(landAssetId)), ":0_15:0_18:0") | |
750 | 791 | let state = valueOrElse(getInteger(stakingContract, keyLandRobberyState(landAssetId)), 0) | |
751 | 792 | let cooldownETA = valueOrElse(getInteger(stakingContract, keyLandCooldownETA(landAssetId)), 0) | |
752 | 793 | [("%s%s__assetId__" + landAssetId), ("%s%s__owner__" + owner), ("%s%s__customName__" + customName), ("%s%d__stakedTime__" + toString(stakedTime)), ("%s%s__description__" + makeString([landNum, d[recLandSize], d[recTerrains], d[recContinent]], "_")), ("%s%d__infraLevel__" + toString(productivity._1)), ("%s%s__availResByType__" + globalAndLocal._2), ("%s%d__availResTotal__" + toString(availRes)), ("%s%s__needMaterial__" + globalAndLocal._1), ("%s%s__landArtefacts__PRESALE:" + toString(productivity._2)), ("%s%s__warehouse__" + makeString(getWarehouse(keyWarehouseByLand(landAssetId), (pieces / SSIZE), productivity._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(economyContract, keyOrderByLand(landAssetId)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:")), ("%s%s__fortifications__" + fort), ("%s%s__robberyState__" + landRobStates[state]), ("%s%d__canBeRobbedAfter__" + toString(cooldownETA))] | |
753 | 794 | } | |
754 | 795 | ||
755 | 796 | ||
756 | 797 | func landOrderInfoArray (landAssetId,owner) = if ((landAssetId == "")) | |
757 | 798 | then throw("landAssetId is required") | |
758 | 799 | else { | |
759 | 800 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
760 | 801 | let d = split(a.description, "_") | |
761 | 802 | let pieces = numPiecesBySize(d[recLandSize]) | |
762 | 803 | let productivity = applyBonuses(landAssetId, pieces) | |
763 | 804 | [("%s%s__assetId__" + landAssetId), ("%s%s__owner__" + owner), ("%s%s__warehouse__" + makeString(getWarehouse(keyWarehouseByLand(landAssetId), (pieces / SSIZE), productivity._1), ":")), ("%s%s__landOrder__" + valueOrElse(getString(economyContract, keyOrderByLand(landAssetId)), "0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:"))] | |
764 | 805 | } | |
765 | 806 | ||
766 | 807 | ||
808 | + | func slotEffect (slot) = if ((slot == "")) | |
809 | + | then 0 | |
810 | + | else { | |
811 | + | let prod = split(slot, ":") | |
812 | + | if (if ((prod[1] == "")) | |
813 | + | then true | |
814 | + | else (parseIntValue(prod[1]) == 0)) | |
815 | + | then 0 | |
816 | + | else parseIntValue(split(productionMatrix[parseIntValue(prod[0])], "_")[rIdxEffect]) | |
817 | + | } | |
818 | + | ||
819 | + | ||
767 | 820 | @Callable(i) | |
768 | 821 | func constructorV1 (contracts) = if ((i.caller != this)) | |
769 | 822 | then throw("permissions denied") | |
770 | 823 | else { | |
771 | 824 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
772 | 825 | ||
773 | 826 | let descr = { | |
774 | 827 | let $l = contracts | |
775 | 828 | let $s = size($l) | |
776 | 829 | let $acc0 = "" | |
777 | 830 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
778 | 831 | then $a | |
779 | 832 | else descriptor($a, $l[$i]) | |
780 | 833 | ||
781 | 834 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
782 | 835 | then $a | |
783 | 836 | else throw("List size exceeds 10") | |
784 | 837 | ||
785 | 838 | $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) | |
786 | 839 | } | |
787 | 840 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRestAddress(), toString(this))] | |
788 | 841 | } | |
789 | 842 | ||
790 | 843 | ||
791 | 844 | ||
792 | 845 | @Callable(i) | |
793 | 846 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
794 | 847 | ||
795 | 848 | ||
796 | 849 | ||
797 | 850 | @Callable(i) | |
798 | 851 | func duckByOwnerInfoREADONLY (userAddress) = { | |
799 | 852 | let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(userAddress)) | |
800 | 853 | $Tuple2(nil, if (if (isDefined(addressFromString(userAddress))) | |
801 | 854 | then isDefined(stakedDuck) | |
802 | 855 | else false) | |
803 | 856 | then { | |
804 | 857 | let duckAssetId = value(stakedDuck) | |
805 | 858 | duckInfoArray(duckAssetId, userAddress, duckInfoTuple(duckAssetId)) | |
806 | 859 | } | |
807 | 860 | else duckInfoArray("", userAddress, $Tuple5(-1, "", "", -1, ""))) | |
808 | 861 | } | |
809 | 862 | ||
810 | 863 | ||
811 | 864 | ||
812 | 865 | @Callable(i) | |
813 | 866 | func duckByAssetIdInfoREADONLY (duckAssetId) = { | |
814 | 867 | let owner = getString(stakingContract, keyDuckIdToOwner(duckAssetId)) | |
815 | 868 | $Tuple2(nil, duckInfoArray(duckAssetId, if (isDefined(owner)) | |
816 | 869 | then value(owner) | |
817 | 870 | else "", duckInfoTuple(duckAssetId))) | |
818 | 871 | } | |
819 | 872 | ||
820 | 873 | ||
821 | 874 | ||
822 | 875 | @Callable(i) | |
823 | 876 | func landByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
824 | 877 | then throw("landAssetId is required") | |
825 | 878 | else { | |
826 | 879 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
827 | 880 | let owner = if ((stakedTime > 0)) | |
828 | 881 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
829 | 882 | else "" | |
830 | 883 | $Tuple2(nil, landInfoArray(landAssetId, owner, stakedTime)) | |
831 | 884 | } | |
832 | 885 | ||
833 | 886 | ||
834 | 887 | ||
835 | 888 | @Callable(i) | |
836 | 889 | func stakedLandsByOwnerInfoREADONLY (landOwnerAddress) = if ((landOwnerAddress == "")) | |
837 | 890 | then throw("landOwnerAddress is required") | |
838 | 891 | else { | |
839 | 892 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(landOwnerAddress)) | |
840 | 893 | let lands = if (isDefined(landsStr)) | |
841 | 894 | then split_51C(value(landsStr), "_") | |
842 | 895 | else nil | |
843 | 896 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
844 | 897 | then throw("landAssetId is required") | |
845 | 898 | else { | |
846 | 899 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
847 | 900 | (acc :+ landInfoArray(landAssetId, landOwnerAddress, stakedTime)) | |
848 | 901 | } | |
849 | 902 | ||
850 | 903 | let r = { | |
851 | 904 | let $l = lands | |
852 | 905 | let $s = size($l) | |
853 | 906 | let $acc0 = nil | |
854 | 907 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
855 | 908 | then $a | |
856 | 909 | else oneLand($a, $l[$i]) | |
857 | 910 | ||
858 | 911 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
859 | 912 | then $a | |
860 | 913 | else throw("List size exceeds 100") | |
861 | 914 | ||
862 | 915 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
863 | 916 | } | |
864 | 917 | $Tuple2(nil, r) | |
865 | 918 | } | |
866 | 919 | ||
867 | 920 | ||
868 | 921 | ||
869 | 922 | @Callable(i) | |
870 | 923 | func landsByIdsInfoREADONLY (landAssetIds) = { | |
871 | 924 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
872 | 925 | then throw("landAssetId is required") | |
873 | 926 | else { | |
874 | 927 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
875 | 928 | let owner = if ((stakedTime > 0)) | |
876 | 929 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
877 | 930 | else "" | |
878 | 931 | (acc :+ landInfoArray(landAssetId, owner, stakedTime)) | |
879 | 932 | } | |
880 | 933 | ||
881 | 934 | let r = { | |
882 | 935 | let $l = landAssetIds | |
883 | 936 | let $s = size($l) | |
884 | 937 | let $acc0 = nil | |
885 | 938 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
886 | 939 | then $a | |
887 | 940 | else oneLand($a, $l[$i]) | |
888 | 941 | ||
889 | 942 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
890 | 943 | then $a | |
891 | 944 | else throw("List size exceeds 100") | |
892 | 945 | ||
893 | 946 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
894 | 947 | } | |
895 | 948 | $Tuple2(nil, r) | |
896 | 949 | } | |
897 | 950 | ||
898 | 951 | ||
899 | 952 | ||
900 | 953 | @Callable(i) | |
901 | 954 | func warehouseOrderByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
902 | 955 | then throw("landAssetId is required") | |
903 | 956 | else { | |
904 | 957 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
905 | 958 | let owner = if ((stakedTime > 0)) | |
906 | 959 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
907 | 960 | else "" | |
908 | 961 | $Tuple2(nil, landOrderInfoArray(landAssetId, owner)) | |
909 | 962 | } | |
910 | 963 | ||
911 | 964 | ||
912 | 965 | ||
913 | 966 | @Callable(i) | |
914 | 967 | func ordersByLandIdsInfoREADONLY (landAssetIds) = { | |
915 | 968 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
916 | 969 | then throw("landAssetId is required") | |
917 | 970 | else { | |
918 | 971 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
919 | 972 | let owner = if ((stakedTime > 0)) | |
920 | 973 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
921 | 974 | else "" | |
922 | 975 | (acc :+ landOrderInfoArray(landAssetId, owner)) | |
923 | 976 | } | |
924 | 977 | ||
925 | 978 | let r = { | |
926 | 979 | let $l = landAssetIds | |
927 | 980 | let $s = size($l) | |
928 | 981 | let $acc0 = nil | |
929 | 982 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
930 | 983 | then $a | |
931 | 984 | else oneLand($a, $l[$i]) | |
932 | 985 | ||
933 | 986 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
934 | 987 | then $a | |
935 | 988 | else throw("List size exceeds 40") | |
936 | 989 | ||
937 | 990 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40) | |
938 | 991 | } | |
939 | 992 | $Tuple2(nil, r) | |
940 | 993 | } | |
941 | 994 | ||
942 | 995 | ||
943 | 996 | ||
944 | 997 | @Callable(i) | |
945 | 998 | func cancelWarehouseOrders (landAssetIds) = if ((i.caller != this)) | |
946 | 999 | then throw("permission denied") | |
947 | 1000 | else { | |
948 | 1001 | let blocked = getBoolean(stakingContract, keyBlocked()) | |
949 | 1002 | if (if (!(isDefined(blocked))) | |
950 | 1003 | then true | |
951 | 1004 | else (value(blocked) == false)) | |
952 | 1005 | then throw("Contracts should be blocked before canceling orders") | |
953 | 1006 | else { | |
954 | 1007 | func oneLand (a,landAssetId) = if ((landAssetId == "")) | |
955 | 1008 | then throw("landAssetId is required") | |
956 | 1009 | else { | |
957 | 1010 | let c = asBoolean(invoke(economyContract, "setWarehouseOrder", ["0@0_0@0_0@0_0@0_0@0_0@0:0@0_0@0_0@0_0@0_0@0_0@0:", landAssetId], nil)) | |
958 | 1011 | if (if (a) | |
959 | 1012 | then true | |
960 | 1013 | else c) | |
961 | 1014 | then !(if (a) | |
962 | 1015 | then c | |
963 | 1016 | else false) | |
964 | 1017 | else false | |
965 | 1018 | } | |
966 | 1019 | ||
967 | 1020 | let r = { | |
968 | 1021 | let $l = landAssetIds | |
969 | 1022 | let $s = size($l) | |
970 | 1023 | let $acc0 = false | |
971 | 1024 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
972 | 1025 | then $a | |
973 | 1026 | else oneLand($a, $l[$i]) | |
974 | 1027 | ||
975 | 1028 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
976 | 1029 | then $a | |
977 | 1030 | else throw("List size exceeds 30") | |
978 | 1031 | ||
979 | 1032 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30) | |
980 | 1033 | } | |
981 | 1034 | $Tuple2(nil, r) | |
982 | 1035 | } | |
983 | 1036 | } | |
984 | 1037 | ||
985 | 1038 | ||
986 | 1039 | ||
987 | 1040 | @Callable(i) | |
988 | 1041 | func fixWarehouseFormats (landAssetIds) = if ((i.caller != this)) | |
989 | 1042 | then throw("permission denied") | |
990 | 1043 | else { | |
991 | 1044 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
992 | 1045 | then throw("landAssetId is required") | |
993 | 1046 | else (acc + size(asString(invoke(stakingContract, "fixWarehouseFormat", [landAssetId], nil)))) | |
994 | 1047 | ||
995 | 1048 | let r = { | |
996 | 1049 | let $l = landAssetIds | |
997 | 1050 | let $s = size($l) | |
998 | 1051 | let $acc0 = 0 | |
999 | 1052 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1000 | 1053 | then $a | |
1001 | 1054 | else oneLand($a, $l[$i]) | |
1002 | 1055 | ||
1003 | 1056 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1004 | 1057 | then $a | |
1005 | 1058 | else throw("List size exceeds 25") | |
1006 | 1059 | ||
1007 | 1060 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25) | |
1008 | 1061 | } | |
1009 | 1062 | $Tuple2(nil, r) | |
1010 | 1063 | } | |
1011 | 1064 | ||
1012 | 1065 | ||
1013 | 1066 | ||
1014 | 1067 | @Callable(i) | |
1015 | 1068 | func fixStakedPieces (users) = if ((i.caller != this)) | |
1016 | 1069 | then throw("permission denied") | |
1017 | 1070 | else { | |
1018 | 1071 | func oneUser (acc,addr) = if ((addr == "")) | |
1019 | 1072 | then throw("address is required") | |
1020 | 1073 | else (acc + asInt(invoke(stakingContract, "fixStakedPieces", [addr], nil))) | |
1021 | 1074 | ||
1022 | 1075 | let r = { | |
1023 | 1076 | let $l = users | |
1024 | 1077 | let $s = size($l) | |
1025 | 1078 | let $acc0 = 0 | |
1026 | 1079 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1027 | 1080 | then $a | |
1028 | 1081 | else oneUser($a, $l[$i]) | |
1029 | 1082 | ||
1030 | 1083 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1031 | 1084 | then $a | |
1032 | 1085 | else throw("List size exceeds 16") | |
1033 | 1086 | ||
1034 | 1087 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16) | |
1035 | 1088 | } | |
1036 | 1089 | $Tuple2(nil, r) | |
1037 | 1090 | } | |
1038 | 1091 | ||
1039 | 1092 | ||
1040 | 1093 | ||
1041 | 1094 | @Callable(i) | |
1042 | 1095 | func fixStakedLands (landAssetIds) = { | |
1043 | 1096 | let caller = toString(i.caller) | |
1044 | 1097 | if (!(containsElement(adminsList, caller))) | |
1045 | 1098 | then throw("Permission denied") | |
1046 | 1099 | else { | |
1047 | 1100 | let r = asInt(invoke(stakingContract, "fixContinentProportions", [landAssetIds], nil)) | |
1048 | 1101 | $Tuple2(nil, r) | |
1049 | 1102 | } | |
1050 | 1103 | } | |
1051 | 1104 | ||
1052 | 1105 | ||
1053 | 1106 | ||
1054 | 1107 | @Callable(i) | |
1055 | 1108 | func sendUsdtPrize (userAddress) = if ((i.caller != stakingContract)) | |
1056 | 1109 | then throw("permission denied") | |
1057 | 1110 | else { | |
1058 | 1111 | let amt = fraction(assetBalance(this, usdtAssetId), USDTPRIZEPART, MULT6) | |
1059 | 1112 | $Tuple2([ScriptTransfer(addressFromStringValue(userAddress), amt, usdtAssetId)], amt) | |
1060 | 1113 | } | |
1061 | 1114 | ||
1062 | 1115 | ||
1063 | 1116 | ||
1064 | 1117 | @Callable(i) | |
1065 | 1118 | func getEmergencyServiceDataREADONLY () = { | |
1066 | 1119 | let existStr = getString(economyContract, keyEsWarehouse()) | |
1067 | 1120 | let existAmounts = if (isDefined(existStr)) | |
1068 | 1121 | then split_4C(value(existStr), "_") | |
1069 | 1122 | else nil | |
1070 | 1123 | func singleProd (acc,recipeStr) = { | |
1071 | 1124 | let n = acc._2 | |
1072 | 1125 | let recipe = split(recipeStr, "_") | |
1073 | 1126 | let maxAmount = if ((n == 0)) | |
1074 | 1127 | then (ESMAXPACKAGES * PRODUCTPKGSIZE) | |
1075 | 1128 | else 0 | |
1076 | 1129 | let existAmount = if ((size(existAmounts) > n)) | |
1077 | 1130 | then parseIntValue(existAmounts[n]) | |
1078 | 1131 | else 0 | |
1079 | 1132 | let totalMat = getRecipeMaterials(recipe) | |
1080 | 1133 | let buyPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
1081 | 1134 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
1082 | 1135 | let y = makeString([toString(maxAmount), toString(existAmount), toString(buyPrice), toString(sellPrice)], "_") | |
1083 | 1136 | $Tuple2((acc._1 :+ y), (n + 1)) | |
1084 | 1137 | } | |
1085 | 1138 | ||
1086 | 1139 | let s = makeString_2C(( let $l = productionMatrix | |
1087 | 1140 | let $s = size($l) | |
1088 | 1141 | let $acc0 = $Tuple2(nil, 0) | |
1089 | 1142 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1090 | 1143 | then $a | |
1091 | 1144 | else singleProd($a, $l[$i]) | |
1092 | 1145 | ||
1093 | 1146 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1094 | 1147 | then $a | |
1095 | 1148 | else throw("List size exceeds 50") | |
1096 | 1149 | ||
1097 | 1150 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($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), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50))._1, ":") | |
1098 | 1151 | let result = ("%s%s__emergencyServiceData__" + s) | |
1099 | 1152 | $Tuple2(nil, result) | |
1100 | 1153 | } | |
1101 | 1154 | ||
1102 | 1155 | ||
1103 | 1156 | ||
1104 | 1157 | @Callable(i) | |
1105 | 1158 | func wlgStatsREADONLY (userAddrOpt) = { | |
1106 | 1159 | let curStats = getWlgStats(userAddrOpt, [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0, MULT6) | |
1107 | 1160 | $Tuple2(nil, [("%s%d__wlgAmount__" + toString(curStats[idxWlgAmount])), ("%s%d__wlgPrice__" + toString(curStats[idxWlgPrice])), ("%s%d__usdtFunds__" + toString(curStats[idxWlgFunds])), ("%s%d__usdtEconomy__" + toString(curStats[idxWlgEconomy])), ("%s%d__usdtActivity__" + toString(curStats[idxWlgActivity])), ("%s%d__usdtArbitrage__" + toString(curStats[idxWlgArbitrage])), ("%s%d__usdtPool__" + toString(curStats[idxWlgPool])), ("%s%d__wlgIssueTime__" + toString(curStats[idxWlgIssueTime])), ("%s%d__wlgLastMarketingTeamActTime__" + toString(curStats[idxWlgLastMTATime])), ("%s%d__wlgMarketingTotal__" + toString(curStats[idxWlgMarketingTotal])), ("%s%d__wlgMarketingAmLeft__" + toString(curStats[idxWlgMarketingAmLeft])), ("%s%d__wlgMarketingAmAvailNow__" + toString(curStats[idxWlgMarketingAmAvailNow])), ("%s%d__wlgMarketingWlgold__" + toString(curStats[idxWlgMarketingWlgold])), ("%s%d__wlgTeamTotal__" + toString(curStats[idxWlgTeamTotal])), ("%s%d__wlgTeamAmLeft__" + toString(curStats[idxWlgTeamAmLeft])), ("%s%d__wlgTeamAmAvailNow__" + toString(curStats[idxWlgTeamAmAvailNow])), ("%s%d__wlgTeamWlgold__" + toString(curStats[idxWlgTeamWlgold])), ("%s%d__wlgActTotal__" + toString(curStats[idxWlgActTotal])), ("%s%d__wlgActAmLeft__" + toString(curStats[idxWlgActAmLeft])), ("%s%d__wlgActAmAvailNow__" + toString(curStats[idxWlgActAmAvailNow])), ("%s%d__wlgActWlgold__" + toString(curStats[idxWlgActWlgold])), ("%s%d__wlgCurPeriod__" + toString(curStats[idxWlgCurPeriod])), ("%s%d__wlgAmLeftTotal__" + toString(curStats[idxWlgAmLeftTotal])), ("%s%d__wlgCurPeriodDistribution__" + toString(curStats[idxWlgCurPeriodDistribution])), ("%s%d__wlgLastUserTime__" + toString(curStats[idxWlgLastUserTime])), ("%s%d__wlgUserAmAvailNow__" + toString(curStats[idxWlgUserAmAvailNow])), ("%s%d__wlgGuestSLandDaily__" + toString(curStats[idxWlgSLandDailyAmount])), ("%s%d__wlgInvestFundTotal__" + toString(curStats[idxWlgInvestFundAmount]))]) | |
1108 | 1161 | } | |
1109 | 1162 | ||
1110 | 1163 | ||
1111 | 1164 | ||
1112 | 1165 | @Callable(i) | |
1113 | 1166 | func tournamentStatsREADONLY (tournamentId) = { | |
1114 | 1167 | let tData = getTourData(tournamentContract, tournamentId) | |
1115 | 1168 | let static = tData[idxStatic] | |
1116 | 1169 | let dynamic = tData[idxDynamic] | |
1117 | 1170 | let winDuck = if ((dynamic[tDynamicWinDuck] == "")) | |
1118 | 1171 | then " " | |
1119 | 1172 | else dynamic[tDynamicWinDuck] | |
1120 | 1173 | let scoreBoard = valueOrElse(getString(tournamentContract, keyScoreBoardByTour(tournamentId)), "") | |
1121 | 1174 | $Tuple2(nil, [("%s%s__tournamentStaticData__" + makeString([static[tStaticRegisterCost], static[tStaticAttemptCost], static[tStaticStart], static[tStaticEnd]], "_")), ("%s%s__tournamentDynamicData__" + makeString([dynamic[tDynamicStatus], winDuck, dynamic[tDynamicWinResult], dynamic[tDynamicTotalRegCount], dynamic[tDynamicTotalAttempts]], "_")), ("%s%s__tournamentScoreBoard__" + scoreBoard)]) | |
1122 | 1175 | } | |
1123 | 1176 | ||
1124 | 1177 | ||
1125 | 1178 | ||
1126 | 1179 | @Callable(i) | |
1127 | 1180 | func lastTournamentStatsREADONLY () = { | |
1128 | 1181 | let tournamentId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
1129 | 1182 | let static = split(valueOrElse(getString(tournamentContract, keyTourStaticDataById(tournamentId)), "%s%d%d%d%d%d____________"), SEP) | |
1130 | 1183 | let dynamic = split(valueOrElse(getString(tournamentContract, keyTourDynamicDataById(tournamentId)), "%s%s%d%d%d__________"), SEP) | |
1131 | 1184 | let winDuck = if ((dynamic[tDynamicWinDuck] == "")) | |
1132 | 1185 | then " " | |
1133 | 1186 | else dynamic[tDynamicWinDuck] | |
1134 | 1187 | let scoreBoard = valueOrElse(getString(tournamentContract, keyScoreBoardByTour(tournamentId)), "") | |
1135 | 1188 | $Tuple2(nil, [("%s%s__lastTournamentId__" + toString(tournamentId)), ("%s%s__tournamentStaticData__" + makeString([static[tStaticRegisterCost], static[tStaticAttemptCost], static[tStaticStart], static[tStaticEnd]], "_")), ("%s%s__tournamentDynamicData__" + makeString([dynamic[tDynamicStatus], winDuck, dynamic[tDynamicWinResult], dynamic[tDynamicTotalRegCount], dynamic[tDynamicTotalAttempts]], "_")), ("%s%s__tournamentScoreBoard__" + scoreBoard)]) | |
1136 | 1189 | } | |
1137 | 1190 | ||
1138 | 1191 | ||
1139 | 1192 | ||
1140 | 1193 | @Callable(i) | |
1141 | 1194 | func tournamentDuckStatsREADONLY (tId,duckAssetId) = { | |
1142 | 1195 | let isDuckReg = valueOrElse(getBoolean(tournamentContract, keyIsRegisteredByTourAndDuck(tId, duckAssetId)), false) | |
1143 | 1196 | let lastDuckAttempt = valueOrElse(getInteger(tournamentContract, keyLastAttemptByTourAndDuck(tId, duckAssetId)), -1) | |
1144 | 1197 | let bestDuckResult = valueOrElse(getInteger(tournamentContract, keyBestResultByTourAndDuck(tId, duckAssetId)), 0) | |
1145 | 1198 | $Tuple2(nil, [("%s%s__tournamentDuckStats__" + makeString([toString(isDuckReg), toString(lastDuckAttempt), toString(bestDuckResult)], "_"))]) | |
1146 | 1199 | } | |
1147 | 1200 | ||
1148 | 1201 | ||
1202 | + | ||
1203 | + | @Callable(i) | |
1204 | + | func duckStatsCalculatorREADONLY (duckAssetId) = { | |
1205 | + | let chars = split(valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0"), "_") | |
1206 | + | let buffs = split(valueOrElse(getString(stakingContract, keyDuckBuffs(duckAssetId)), "0_0_0_0_0"), "_") | |
1207 | + | let equipm = split(valueOrElse(getString(stakingContract, keyDuckEquipment(duckAssetId)), ";_;_;_;_;_;"), "_") | |
1208 | + | let equipmentPerc = slotEffect(split(equipm[segBack], ";")[1]) | |
1209 | + | let equipmentAbsor = slotEffect(split(equipm[segBelt], ";")[0]) | |
1210 | + | let dodge = dodgeProbability(chars, buffs, equipmentPerc) | |
1211 | + | let absorb = damageAbsorption(chars, buffs, equipmentAbsor) | |
1212 | + | $Tuple2(nil, [("%s%d__dodgeProbability__" + toString(dodge)), ("%s%d__damageAbsorption__" + toString(absorb))]) | |
1213 | + | } | |
1214 | + | ||
1215 | + |
github/deemru/w8io/026f985 141.47 ms ◑