tx · CyfxP9B3vhXMPjF8MnhyRmAMPPdYKh1VcCjhEX618h6j 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy: -0.04200000 Waves 2023.09.05 16:25 [2742135] smart account 3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy > SELF 0.00000000 Waves
{ "type": 13, "id": "CyfxP9B3vhXMPjF8MnhyRmAMPPdYKh1VcCjhEX618h6j", "fee": 4200000, "feeAssetId": null, "timestamp": 1693920385800, "version": 2, "chainId": 84, "sender": "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy", "senderPublicKey": "C3PaRKeL8AUKbwUqdniMQtThgcTh5DYHV1777Hkxy7rp", "proofs": [ "2s17RYhRgfTfbbfXzrqWGMkdSbRmKH3eNdHbtXeFTNPqH1e7zLzHre5DgYs5zeepS7QoPqNKJALtFWjyFbkRstxv" ], "script": "base64:BgJpCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBGBIDCgEIEgMKARgSAwoBGBIDCgEYEgMKARgSAwoBGBIDCgEIEgASAwoBCBIDCgEBEgASBAoCAQgSAwoBCBIGCgQYGAEBzAEAAk02AMCEPQACTTgAgMLXLwAITUlMTElPTjYAgIDpg7HeFgAOTUFSS0VUSU5HU0hBUkUAoI0GAAlURUFNU0hBUkUAwJoMAA1BQ1RJVklUWVNIQVJFAKCNBgALUExBWUVSU0hBUkUAgLUYAApZRUFSTUlMTElTAICG68d1AANEQVkAgLiZKQAQbWFya2V0aW5nQWRkcktleQINbWFya2V0aW5nQWRkcgALdGVhbUFkZHJLZXkCCHRlYW1BZGRyABRsYXN0TWFya2V0aW5nVGltZUtleQIZbGFzdENsYWltZWRUaW1lX21hcmtldGluZwAWbWFya2V0aW5nQW1vdW50TGVmdEtleQITbWFya2V0aW5nQW1vdW50TGVmdAAPbGFzdFRlYW1UaW1lS2V5AhRsYXN0Q2xhaW1lZFRpbWVfdGVhbQARdGVhbUFtb3VudExlZnRLZXkCDnRlYW1BbW91bnR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kBEGRhbWFnZUFic29ycHRpb24DBQVjaGFycwUFYnVmZnMFDmVxdWlwbWVudEFic29yCQCUCgIFA25pbAkAzAgCCQCsAgICGCVzJWRfX2RvZGdlUHJvYmFiaWxpdHlfXwkApAMBBQVkb2RnZQkAzAgCCQCsAgICGCVzJWRfX2RhbWFnZUFic29ycHRpb25fXwkApAMBBQZhYnNvcmIFA25pbADmO4AO", "height": 2742135, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8NnadiuBdfSxu8NRtkvgScQJ9tuUrJw5bo7Zy6iCSXgq Next: JBmaw9z2Phq37p5ZEq3vh4fhqQJbA2ikY4F37qNkG4Qe Diff:
Old | New | Differences | |
---|---|---|---|
444 | 444 | let tStaticStart = 5 | |
445 | 445 | ||
446 | 446 | let tStaticEnd = 6 | |
447 | + | ||
448 | + | let tStaticNumGrands = 7 | |
447 | 449 | ||
448 | 450 | let tDynamicStatus = 1 | |
449 | 451 | ||
1171 | 1173 | then " " | |
1172 | 1174 | else dynamic[tDynamicWinDuck] | |
1173 | 1175 | let scoreBoard = valueOrElse(getString(tournamentContract, keyScoreBoardByTour(tournamentId)), "") | |
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)]) | |
1176 | + | $Tuple2(nil, [("%s%s__tournamentStaticData__" + makeString([static[tStaticRegisterCost], static[tStaticAttemptCost], static[tStaticStart], static[tStaticEnd], static[tStaticNumGrands]], "_")), ("%s%s__tournamentDynamicData__" + makeString([dynamic[tDynamicStatus], winDuck, dynamic[tDynamicWinResult], dynamic[tDynamicTotalRegCount], dynamic[tDynamicTotalAttempts]], "_")), ("%s%s__tournamentScoreBoard__" + scoreBoard)]) | |
1175 | 1177 | } | |
1176 | 1178 | ||
1177 | 1179 | ||
1179 | 1181 | @Callable(i) | |
1180 | 1182 | func lastTournamentStatsREADONLY () = { | |
1181 | 1183 | let tournamentId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
1182 | - | let static = split(valueOrElse(getString(tournamentContract, keyTourStaticDataById(tournamentId)), "%s%d%d%d%d%d____________"), SEP) | |
1184 | + | let static = split(valueOrElse(getString(tournamentContract, keyTourStaticDataById(tournamentId)), "%s%d%d%d%d%d%d______________"), SEP) | |
1183 | 1185 | let dynamic = split(valueOrElse(getString(tournamentContract, keyTourDynamicDataById(tournamentId)), "%s%s%d%d%d__________"), SEP) | |
1184 | 1186 | let winDuck = if ((dynamic[tDynamicWinDuck] == "")) | |
1185 | 1187 | then " " | |
1186 | 1188 | else dynamic[tDynamicWinDuck] | |
1187 | 1189 | let scoreBoard = valueOrElse(getString(tournamentContract, keyScoreBoardByTour(tournamentId)), "") | |
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)]) | |
1190 | + | $Tuple2(nil, [("%s%s__lastTournamentId__" + toString(tournamentId)), ("%s%s__tournamentStaticData__" + makeString([static[tStaticRegisterCost], static[tStaticAttemptCost], static[tStaticStart], static[tStaticEnd], static[tStaticNumGrands]], "_")), ("%s%s__tournamentDynamicData__" + makeString([dynamic[tDynamicStatus], winDuck, dynamic[tDynamicWinResult], dynamic[tDynamicTotalRegCount], dynamic[tDynamicTotalAttempts]], "_")), ("%s%s__tournamentScoreBoard__" + scoreBoard)]) | |
1189 | 1191 | } | |
1190 | 1192 | ||
1191 | 1193 | ||
1213 | 1215 | } | |
1214 | 1216 | ||
1215 | 1217 | ||
1218 | + | ||
1219 | + | @Callable(i) | |
1220 | + | func customDuckStatsCalculatorREADONLY (chars,buffs,equipmentPerc,equipmentAbsor) = { | |
1221 | + | let dodge = dodgeProbability(chars, buffs, equipmentPerc) | |
1222 | + | let absorb = damageAbsorption(chars, buffs, equipmentAbsor) | |
1223 | + | $Tuple2(nil, [("%s%d__dodgeProbability__" + toString(dodge)), ("%s%d__damageAbsorption__" + toString(absorb))]) | |
1224 | + | } | |
1225 | + | ||
1226 | + |
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 | 218 | let SCALE8 = 100000000 | |
219 | 219 | ||
220 | 220 | let robberyCostMin = 100000000 | |
221 | 221 | ||
222 | 222 | let robberyCooldownCoeff = 400 | |
223 | 223 | ||
224 | 224 | let charIntellect = 2 | |
225 | 225 | ||
226 | 226 | let charEndurance = 3 | |
227 | 227 | ||
228 | 228 | let charDexterity = 4 | |
229 | 229 | ||
230 | 230 | let segBack = 1 | |
231 | 231 | ||
232 | 232 | let segBelt = 2 | |
233 | 233 | ||
234 | 234 | let landRobStates = ["free", "locked", "afterLockCooldown", "robbedCooldown", "defendedCooldown"] | |
235 | 235 | ||
236 | 236 | let duckRobStates = ["free", "preparingRob"] | |
237 | 237 | ||
238 | 238 | func keyDuckHealth (duckAssetId) = ("duckHealth_" + duckAssetId) | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func keyDuckChars (duckAssetId) = ("duckChars_" + duckAssetId) | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func keyDuckXP (duckAssetId) = ("duckXP_" + duckAssetId) | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | func keyDuckLevel (duckAssetId) = ("duckLevel_" + duckAssetId) | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func keyDuckFreePoints (duckAssetId) = ("duckFreePoints_" + duckAssetId) | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func keyDuckEquipment (duckAssetId) = ("duckEquipment_" + duckAssetId) | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func keyUserXP (addr) = ("userXP_" + addr) | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func keyUserLevel (addr) = ("userLevel_" + addr) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func keyUserFreePoints (addr) = ("userFreePoints_" + addr) | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func keyDuckBuffs (duckAssetId) = ("duckBuffs_" + duckAssetId) | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func keyLastRobberyTimeByDuck (duckAssetId) = ("lastRobberyTime_" + duckAssetId) | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func keyLastRobberyCostByDuck (duckAssetId) = ("lastRobberyCost_" + duckAssetId) | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func keyLandRobberyState (landAssetId) = ("landRobberyState_" + landAssetId) | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func keyLandCooldownETA (landAssetId) = ("landCooldownETA_" + landAssetId) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func keyDuckRobberyState (duckAssetId) = ("duckRobberyState_" + duckAssetId) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func keyLockedLandByDuck (duckAssetId) = ("lockedLandByDuck_" + duckAssetId) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func maxHealth (level) = (100 + level) | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func getRobberyData (stakingContract,duckAssetId) = { | |
290 | 290 | let lastRobCost = valueOrElse(getInteger(stakingContract, keyLastRobberyCostByDuck(duckAssetId)), 0) | |
291 | 291 | let lastRobTime = valueOrElse(getInteger(stakingContract, keyLastRobberyTimeByDuck(duckAssetId)), 0) | |
292 | 292 | let now = lastBlock.timestamp | |
293 | 293 | let robCost = max([robberyCostMin, (lastRobCost - (robberyCooldownCoeff * (now - lastRobTime)))]) | |
294 | 294 | let duckState = valueOrElse(getInteger(stakingContract, keyDuckRobberyState(duckAssetId)), 0) | |
295 | 295 | let lockedLand = valueOrElse(getString(stakingContract, keyLockedLandByDuck(duckAssetId)), "") | |
296 | 296 | let landETA = valueOrElse(getInteger(stakingContract, keyLandCooldownETA(lockedLand)), 0) | |
297 | 297 | $Tuple5(robCost, lastRobTime, duckState, lockedLand, landETA) | |
298 | 298 | } | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | func tanh (v) = { | |
302 | 302 | let double = (2 * v) | |
303 | 303 | let exp2 = pow(271828183, 8, double, 8, 8, HALFUP) | |
304 | 304 | fraction((exp2 - SCALE8), SCALE8, (exp2 + SCALE8), HALFUP) | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func dodgeProbability (chars,buffs,equipmentPerc) = { | |
309 | 309 | let intel = (parseIntValue(chars[charIntellect]) + parseIntValue(buffs[charIntellect])) | |
310 | 310 | let dex = (parseIntValue(chars[charDexterity]) + parseIntValue(buffs[charDexterity])) | |
311 | 311 | let first8 = (tanh(fraction(dex, SCALE8, 200)) / 4) | |
312 | 312 | let second8 = fraction(equipmentPerc, (SCALE8 + fraction(7000000, intel, (1 + intel), HALFUP)), 100, HALFUP) | |
313 | 313 | (first8 + second8) | |
314 | 314 | } | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | func damageAbsorption (chars,buffs,equipmentAbsor) = { | |
318 | 318 | let intel = (parseIntValue(chars[charIntellect]) + parseIntValue(buffs[charIntellect])) | |
319 | 319 | let endur = (parseIntValue(chars[charEndurance]) + parseIntValue(buffs[charEndurance])) | |
320 | 320 | let dex = (parseIntValue(chars[charDexterity]) + parseIntValue(buffs[charDexterity])) | |
321 | 321 | let first8 = (equipmentAbsor * (SCALE8 + fraction(14000000, intel, (1 + intel), HALFUP))) | |
322 | 322 | let second8 = (sqrt(dex, 0, 8, HALFUP) / 10) | |
323 | 323 | let third8 = ((SCALE8 / 5) * endur) | |
324 | 324 | ((first8 + second8) + third8) | |
325 | 325 | } | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | let ARTPRESALE = "PRESALE" | |
329 | 329 | ||
330 | 330 | let ARTONBOARD = "ONBOARD" | |
331 | 331 | ||
332 | 332 | let NUMRES = 6 | |
333 | 333 | ||
334 | 334 | let DAILYRESBYPIECE = 3456000 | |
335 | 335 | ||
336 | 336 | let DAYMILLIS = 86400000 | |
337 | 337 | ||
338 | 338 | let WHMULTIPLIER = 10000000000 | |
339 | 339 | ||
340 | 340 | let RESOURCEPRICEMIN = 39637 | |
341 | 341 | ||
342 | 342 | let ESMAXPACKAGES = 3 | |
343 | 343 | ||
344 | 344 | let ESBUYCOEF = 4 | |
345 | 345 | ||
346 | 346 | let ESSELLCOEF = 10 | |
347 | 347 | ||
348 | 348 | let COEFF2MAT = 10000000 | |
349 | 349 | ||
350 | 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_"] | |
351 | 351 | ||
352 | 352 | let rIdxCoeff = 6 | |
353 | 353 | ||
354 | 354 | let rIdxEffect = 8 | |
355 | 355 | ||
356 | 356 | let PRODUCTPKGSIZE = 10 | |
357 | 357 | ||
358 | 358 | func keyLandAssetIdToOwner (assetId) = ("nftOwner_" + assetId) | |
359 | 359 | ||
360 | 360 | ||
361 | 361 | func keyLandAssetIdToCustomName (assetId) = ("landCustomNameByAssetId_" + assetId) | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | func keyStakedTimeByAssetId (assetId) = ("stakedTime_" + assetId) | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | func keyLandArtStatusByTypeAndAssetId (type,assetId) = makeString(["landArtStatus", type, assetId], "_") | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | func keyWarehouseByLand (landAssetId) = ("wareHouse_" + landAssetId) | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | func keyInfraLevelByAssetId (assetId) = ("infraLevel_" + assetId) | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | func keyFortificationsByLand (landAssetId) = ("fortifications_" + landAssetId) | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | func keyDuckAssetIdToCustomName (assetId) = ("duckCustomNameByAssetId_" + assetId) | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr) | |
383 | 383 | ||
384 | 384 | ||
385 | 385 | func keyAddressRefBy (addr) = ("accRefBy_" + addr) | |
386 | 386 | ||
387 | 387 | ||
388 | 388 | func keyOnboardArtDuckActivatedBy (addr) = ("onboardArtActivatedDuckBy_" + addr) | |
389 | 389 | ||
390 | 390 | ||
391 | 391 | func keyAddressReferrals (addr) = ("accReferrals_" + addr) | |
392 | 392 | ||
393 | 393 | ||
394 | 394 | func keyDuckIdToOwner (assetId) = ("duckOwner_" + assetId) | |
395 | 395 | ||
396 | 396 | ||
397 | 397 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | func keyDuckLocation (duckAssetId) = ("duckLocation_" + duckAssetId) | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | func keyOrderByLand (landAssetId) = ("landOrder_" + landAssetId) | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | func keyEsWarehouse () = "emergencyWarehouseProducts" | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | let lastTourIdKey = "%s__lastTourId" | |
410 | 410 | ||
411 | 411 | func keyTourStaticDataById (tId) = ("%s%d__tourStaticData__" + toString(tId)) | |
412 | 412 | ||
413 | 413 | ||
414 | 414 | func keyTourDynamicDataById (tId) = ("%s%d__tourDynamicData__" + toString(tId)) | |
415 | 415 | ||
416 | 416 | ||
417 | 417 | func keyScoreBoardByTour (tId) = ("%s%d__scoreBoard__" + toString(tId)) | |
418 | 418 | ||
419 | 419 | ||
420 | 420 | func keyIsRegisteredByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__isRegisteredByTourAndDuck", toString(tId), duckAssetId], "__") | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | func keyLastAttemptByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__lastAttemptByTourAndDuck", toString(tId), duckAssetId], "__") | |
424 | 424 | ||
425 | 425 | ||
426 | 426 | func keyBestResultByTourAndDuck (tId,duckAssetId) = makeString(["%s%d%s__bestResultByTourAndDuck", toString(tId), duckAssetId], "__") | |
427 | 427 | ||
428 | 428 | ||
429 | 429 | let idxStatic = 0 | |
430 | 430 | ||
431 | 431 | let idxDynamic = 1 | |
432 | 432 | ||
433 | 433 | func getTourData (tourContract,tId) = { | |
434 | 434 | let static = split(valueOrErrorMessage(getString(tourContract, keyTourStaticDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
435 | 435 | let dynamic = split(valueOrErrorMessage(getString(tourContract, keyTourDynamicDataById(tId)), (("Error reading tournament " + toString(tId)) + " data")), "__") | |
436 | 436 | [static, dynamic] | |
437 | 437 | } | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | let tStaticRegisterCost = 2 | |
441 | 441 | ||
442 | 442 | let tStaticAttemptCost = 3 | |
443 | 443 | ||
444 | 444 | let tStaticStart = 5 | |
445 | 445 | ||
446 | 446 | let tStaticEnd = 6 | |
447 | + | ||
448 | + | let tStaticNumGrands = 7 | |
447 | 449 | ||
448 | 450 | let tDynamicStatus = 1 | |
449 | 451 | ||
450 | 452 | let tDynamicWinDuck = 2 | |
451 | 453 | ||
452 | 454 | let tDynamicWinResult = 3 | |
453 | 455 | ||
454 | 456 | let tDynamicTotalRegCount = 4 | |
455 | 457 | ||
456 | 458 | let tDynamicTotalAttempts = 5 | |
457 | 459 | ||
458 | 460 | func getRecipeMaterials (recipe) = (parseIntValue(recipe[rIdxCoeff]) * COEFF2MAT) | |
459 | 461 | ||
460 | 462 | ||
461 | 463 | let chain = take(drop(this.bytes, 1), 1) | |
462 | 464 | ||
463 | 465 | let usdtAssetId = match chain { | |
464 | 466 | case _ => | |
465 | 467 | if ((base58'2W' == $match0)) | |
466 | 468 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
467 | 469 | else if ((base58'2T' == $match0)) | |
468 | 470 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
469 | 471 | else throw("Unknown chain") | |
470 | 472 | } | |
471 | 473 | ||
472 | 474 | let defaultRestAddressStr = match chain { | |
473 | 475 | case _ => | |
474 | 476 | if ((base58'2W' == $match0)) | |
475 | 477 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
476 | 478 | else if ((base58'2T' == $match0)) | |
477 | 479 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
478 | 480 | else throw("Unknown chain") | |
479 | 481 | } | |
480 | 482 | ||
481 | 483 | let InfraUpgradeCostS = match chain { | |
482 | 484 | case _ => | |
483 | 485 | if ((base58'2W' == $match0)) | |
484 | 486 | then 10000000000 | |
485 | 487 | else if ((base58'2T' == $match0)) | |
486 | 488 | then 100000000 | |
487 | 489 | else throw("Unknown chain") | |
488 | 490 | } | |
489 | 491 | ||
490 | 492 | let SEP = "__" | |
491 | 493 | ||
492 | 494 | let MULT6 = 1000000 | |
493 | 495 | ||
494 | 496 | let MULT8 = 100000000 | |
495 | 497 | ||
496 | 498 | let SSIZE = 25 | |
497 | 499 | ||
498 | 500 | let MSIZE = 100 | |
499 | 501 | ||
500 | 502 | let LSIZE = 225 | |
501 | 503 | ||
502 | 504 | let XLSIZE = 400 | |
503 | 505 | ||
504 | 506 | let XXLSIZE = 625 | |
505 | 507 | ||
506 | 508 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
507 | 509 | ||
508 | 510 | ||
509 | 511 | let IdxCfgStakingDapp = 1 | |
510 | 512 | ||
511 | 513 | let IdxCfgEconomyDapp = 2 | |
512 | 514 | ||
513 | 515 | let IdxCfgWlgDapp = 4 | |
514 | 516 | ||
515 | 517 | let IdxCfgPuzzlePoolDapp = 5 | |
516 | 518 | ||
517 | 519 | let IdxCfgInvestFundDapp = 6 | |
518 | 520 | ||
519 | 521 | let IdxCfgTournamentDapp = 7 | |
520 | 522 | ||
521 | 523 | func keyRestCfg () = "%s__restConfig" | |
522 | 524 | ||
523 | 525 | ||
524 | 526 | func keyRestAddress () = "%s__restAddr" | |
525 | 527 | ||
526 | 528 | ||
527 | 529 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
528 | 530 | ||
529 | 531 | ||
530 | 532 | func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
531 | 533 | ||
532 | 534 | ||
533 | 535 | let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr)) | |
534 | 536 | ||
535 | 537 | let restCfg = readRestCfgOrFail(restContract) | |
536 | 538 | ||
537 | 539 | let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp) | |
538 | 540 | ||
539 | 541 | let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp) | |
540 | 542 | ||
541 | 543 | let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp) | |
542 | 544 | ||
543 | 545 | let puzzlePoolContract = getContractAddressOrFail(restCfg, IdxCfgPuzzlePoolDapp) | |
544 | 546 | ||
545 | 547 | let investFundContract = getContractAddressOrFail(restCfg, IdxCfgInvestFundDapp) | |
546 | 548 | ||
547 | 549 | let tournamentContract = getContractAddressOrFail(restCfg, IdxCfgTournamentDapp) | |
548 | 550 | ||
549 | 551 | let recLandNum = 0 | |
550 | 552 | ||
551 | 553 | let recLandSize = 1 | |
552 | 554 | ||
553 | 555 | let recTerrains = 2 | |
554 | 556 | ||
555 | 557 | let recContinent = 3 | |
556 | 558 | ||
557 | 559 | let wlgAssetIdKey = "wlg_assetId" | |
558 | 560 | ||
559 | 561 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "Not initialized yet") | |
560 | 562 | ||
561 | 563 | let IdxEffUser = 1 | |
562 | 564 | ||
563 | 565 | func keyResProportions () = "resTypesProportions" | |
564 | 566 | ||
565 | 567 | ||
566 | 568 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
567 | 569 | ||
568 | 570 | ||
569 | 571 | func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr) | |
570 | 572 | ||
571 | 573 | ||
572 | 574 | func asString (v) = match v { | |
573 | 575 | case s: String => | |
574 | 576 | s | |
575 | 577 | case _ => | |
576 | 578 | throw("fail to cast into String") | |
577 | 579 | } | |
578 | 580 | ||
579 | 581 | ||
580 | 582 | func asInt (v) = match v { | |
581 | 583 | case n: Int => | |
582 | 584 | n | |
583 | 585 | case _ => | |
584 | 586 | throw("fail to cast into Int") | |
585 | 587 | } | |
586 | 588 | ||
587 | 589 | ||
588 | 590 | func asBoolean (v) = match v { | |
589 | 591 | case s: Boolean => | |
590 | 592 | s | |
591 | 593 | case _ => | |
592 | 594 | throw("fail to cast into Boolean") | |
593 | 595 | } | |
594 | 596 | ||
595 | 597 | ||
596 | 598 | func numPiecesBySize (landSize) = match landSize { | |
597 | 599 | case _ => | |
598 | 600 | if (("S" == $match0)) | |
599 | 601 | then SSIZE | |
600 | 602 | else if (("M" == $match0)) | |
601 | 603 | then MSIZE | |
602 | 604 | else if (("L" == $match0)) | |
603 | 605 | then LSIZE | |
604 | 606 | else if (("XL" == $match0)) | |
605 | 607 | then XLSIZE | |
606 | 608 | else if (("XXL" == $match0)) | |
607 | 609 | then XXLSIZE | |
608 | 610 | else throw("Unknown land size") | |
609 | 611 | } | |
610 | 612 | ||
611 | 613 | ||
612 | 614 | func keyBlocked () = "contractsBlocked" | |
613 | 615 | ||
614 | 616 | ||
615 | 617 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
616 | 618 | ||
617 | 619 | ||
618 | 620 | func getVotingPower (userAddrStrOrEmpty) = { | |
619 | 621 | let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_") | |
620 | 622 | func adder (acc,item) = (acc + parseIntValue(item)) | |
621 | 623 | ||
622 | 624 | let totalPower = { | |
623 | 625 | let $l = props | |
624 | 626 | let $s = size($l) | |
625 | 627 | let $acc0 = 0 | |
626 | 628 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
627 | 629 | then $a | |
628 | 630 | else adder($a, $l[$i]) | |
629 | 631 | ||
630 | 632 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
631 | 633 | then $a | |
632 | 634 | else throw("List size exceeds 6") | |
633 | 635 | ||
634 | 636 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
635 | 637 | } | |
636 | 638 | let usersPower = valueOrElse(getInteger(stakingContract, keyStakedPiecesByOwner(userAddrStrOrEmpty)), 0) | |
637 | 639 | [totalPower, usersPower] | |
638 | 640 | } | |
639 | 641 | ||
640 | 642 | ||
641 | 643 | let USDTPRIZEPART = 500000 | |
642 | 644 | ||
643 | 645 | let adminsList = [toString(this), match chain { | |
644 | 646 | case _ => | |
645 | 647 | if ((base58'2W' == $match0)) | |
646 | 648 | then "3P64qEVzuGzBJuYfDXYisFtokJChSRa8uja" | |
647 | 649 | else if ((base58'2T' == $match0)) | |
648 | 650 | then "3N3gSFrTwgiLAFZHMuJrEttht1nPhnkpvjs" | |
649 | 651 | else throw("Unknown chain") | |
650 | 652 | }] | |
651 | 653 | ||
652 | 654 | func asListIntCompacted (val) = match val { | |
653 | 655 | case valAnyList: List[Any] => | |
654 | 656 | if ((size(valAnyList) != NUMRES)) | |
655 | 657 | then throw(("Array size is " + toString(size(valAnyList)))) | |
656 | 658 | else { | |
657 | 659 | func conv (acc,item) = match item { | |
658 | 660 | case it: Int => | |
659 | 661 | (acc :+ toString(it)) | |
660 | 662 | case _ => | |
661 | 663 | throw("List type is not Int") | |
662 | 664 | } | |
663 | 665 | ||
664 | 666 | let r = { | |
665 | 667 | let $l = valAnyList | |
666 | 668 | let $s = size($l) | |
667 | 669 | let $acc0 = nil | |
668 | 670 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
669 | 671 | then $a | |
670 | 672 | else conv($a, $l[$i]) | |
671 | 673 | ||
672 | 674 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
673 | 675 | then $a | |
674 | 676 | else throw("List size exceeds 6") | |
675 | 677 | ||
676 | 678 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
677 | 679 | } | |
678 | 680 | makeString(r, "_") | |
679 | 681 | } | |
680 | 682 | case _ => | |
681 | 683 | throw("fail to cast into List") | |
682 | 684 | } | |
683 | 685 | ||
684 | 686 | ||
685 | 687 | func asSplitResult (val) = match val { | |
686 | 688 | case t2: (List[Any], List[Any]) => | |
687 | 689 | $Tuple2(asListIntCompacted(t2._1), asListIntCompacted(t2._2)) | |
688 | 690 | case _ => | |
689 | 691 | throw("fail to cast into (List, List)") | |
690 | 692 | } | |
691 | 693 | ||
692 | 694 | ||
693 | 695 | func walletInternal (userAddressOpt) = { | |
694 | 696 | let addr = addressFromString(userAddressOpt) | |
695 | 697 | let balance = if (isDefined(addr)) | |
696 | 698 | then wavesBalance(value(addr)) | |
697 | 699 | else BalanceDetails(0, 0, 0, 0) | |
698 | 700 | let usdtBalance = if (isDefined(addr)) | |
699 | 701 | then assetBalance(value(addr), usdtAssetId) | |
700 | 702 | else 0 | |
701 | 703 | let wlgoldBalance = if (isDefined(addr)) | |
702 | 704 | then assetBalance(value(addr), wlgAssetId) | |
703 | 705 | else 0 | |
704 | 706 | let customName = valueOrElse(getString(stakingContract, keyAddressToCustomName(userAddressOpt)), userAddressOpt) | |
705 | 707 | let refByKey = keyAddressRefBy(userAddressOpt) | |
706 | 708 | let refBy = getString(stakingContract, refByKey) | |
707 | 709 | let refs = valueOrElse(getString(stakingContract, keyAddressReferrals(userAddressOpt)), "") | |
708 | 710 | let lastTxId = valueOrElse(getString(stakingContract, keyLastTxIdByUser(userAddressOpt)), "") | |
709 | 711 | let pieces = getVotingPower(userAddressOpt)[IdxEffUser] | |
710 | 712 | let xp = valueOrElse(getInteger(stakingContract, keyUserXP(userAddressOpt)), 0) | |
711 | 713 | let lvl = valueOrElse(getInteger(stakingContract, keyUserLevel(userAddressOpt)), 0) | |
712 | 714 | let freePoints = valueOrElse(getInteger(stakingContract, keyUserFreePoints(userAddressOpt)), 0) | |
713 | 715 | let onboard = if (isDefined(refBy)) | |
714 | 716 | then (ARTONBOARD + (if (if (isDefined(addr)) | |
715 | 717 | then isDefined(getString(stakingContract, keyOnboardArtDuckActivatedBy(userAddressOpt))) | |
716 | 718 | else false) | |
717 | 719 | then ":1" | |
718 | 720 | else ":0")) | |
719 | 721 | else "" | |
720 | 722 | [("%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)] | |
721 | 723 | } | |
722 | 724 | ||
723 | 725 | ||
724 | 726 | func applyBonuses (landAssetId,pieces) = { | |
725 | 727 | let infraLevel = valueOrElse(getInteger(stakingContract, keyInfraLevelByAssetId(landAssetId)), 0) | |
726 | 728 | let artPieces = valueOrElse(getInteger(stakingContract, keyLandArtStatusByTypeAndAssetId(ARTPRESALE, landAssetId)), 0) | |
727 | 729 | let add6 = (infraLevel / 6) | |
728 | 730 | let add7 = (infraLevel / 7) | |
729 | 731 | $Tuple3(infraLevel, artPieces, ((DAILYRESBYPIECE + fraction(DAILYRESBYPIECE, ((infraLevel + add6) + (2 * add7)), 5)) + fraction(DAILYRESBYPIECE, artPieces, (pieces * 5)))) | |
730 | 732 | } | |
731 | 733 | ||
732 | 734 | ||
733 | 735 | func getWarehouseTotalVolume (volPrefix) = { | |
734 | 736 | let parts = split(volPrefix, "_") | |
735 | 737 | ((WHMULTIPLIER * (parseIntValue(parts[1]) + 1)) * parseIntValue(parts[0])) | |
736 | 738 | } | |
737 | 739 | ||
738 | 740 | ||
739 | 741 | func getWarehouse (whKey,landIndex,infraLevel) = { | |
740 | 742 | let volPrefix = ((toString(landIndex) + "_") + toString(infraLevel)) | |
741 | 743 | let totS = toString(getWarehouseTotalVolume(volPrefix)) | |
742 | 744 | let whStr = valueOrElse(getString(stakingContract, whKey), ((((volPrefix + ":0_0_0_0_0_0:0_0_0_0_0_0::0_0_") + totS) + "_") + totS)) | |
743 | 745 | split(whStr, ":") | |
744 | 746 | } | |
745 | 747 | ||
746 | 748 | ||
747 | 749 | func duckInfoTuple (duckAssetId) = { | |
748 | 750 | let maxHP = maxHealth(valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0)) | |
749 | 751 | $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))) | |
750 | 752 | } | |
751 | 753 | ||
752 | 754 | ||
753 | 755 | func duckInfoArray (duckAssetId,owner,duckInf) = { | |
754 | 756 | let customName = valueOrElse(getString(stakingContract, keyDuckAssetIdToCustomName(duckAssetId)), duckInf._2) | |
755 | 757 | let chars = valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0") | |
756 | 758 | let xp = valueOrElse(getInteger(stakingContract, keyDuckXP(duckAssetId)), 0) | |
757 | 759 | let lvl = valueOrElse(getInteger(stakingContract, keyDuckLevel(duckAssetId)), 0) | |
758 | 760 | let freePoints = valueOrElse(getInteger(stakingContract, keyDuckFreePoints(duckAssetId)), 0) | |
759 | 761 | let equipm = valueOrElse(getString(stakingContract, keyDuckEquipment(duckAssetId)), ";_;_;_;_;_;") | |
760 | 762 | let buffs = valueOrElse(getString(stakingContract, keyDuckBuffs(duckAssetId)), "0_0_0_0_0") | |
761 | 763 | let $t056165721 = getRobberyData(stakingContract, duckAssetId) | |
762 | 764 | let robCost = $t056165721._1 | |
763 | 765 | let lastRobTime = $t056165721._2 | |
764 | 766 | let duckState = $t056165721._3 | |
765 | 767 | let lockedLand = $t056165721._4 | |
766 | 768 | let landETA = $t056165721._5 | |
767 | 769 | [("%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))] | |
768 | 770 | } | |
769 | 771 | ||
770 | 772 | ||
771 | 773 | func landInfoArray (landAssetId,owner,stakedTime) = if ((landAssetId == "")) | |
772 | 774 | then throw("landAssetId is required") | |
773 | 775 | else { | |
774 | 776 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
775 | 777 | let d = split(a.description, "_") | |
776 | 778 | let landNum = if ((a.quantity > 0)) | |
777 | 779 | then d[recLandNum] | |
778 | 780 | else ("-" + d[recLandNum]) | |
779 | 781 | let pieces = numPiecesBySize(d[recLandSize]) | |
780 | 782 | let productivity = applyBonuses(landAssetId, pieces) | |
781 | 783 | let deltaTime = (lastBlock.timestamp - stakedTime) | |
782 | 784 | let availRes = if ((stakedTime > 0)) | |
783 | 785 | then fraction(deltaTime, (productivity._3 * pieces), DAYMILLIS) | |
784 | 786 | else 0 | |
785 | 787 | let needMat = fraction(InfraUpgradeCostS, (pieces * (productivity._1 + 1)), SSIZE) | |
786 | 788 | let globalAndLocal = if ((stakedTime > 0)) | |
787 | 789 | then asSplitResult(invoke(stakingContract, "splitByGlobalAndLocalWeightsREADONLY", [needMat, availRes, d[recTerrains]], nil)) | |
788 | 790 | else $Tuple2(asListIntCompacted(invoke(stakingContract, "splitByGlobalWeightsREADONLY", [needMat], nil)), "") | |
789 | 791 | let customName = valueOrElse(getString(stakingContract, keyLandAssetIdToCustomName(landAssetId)), ((d[recContinent] + "-") + d[recLandNum])) | |
790 | 792 | let fort = valueOrElse(getString(stakingContract, keyFortificationsByLand(landAssetId)), ":0_15:0_18:0") | |
791 | 793 | let state = valueOrElse(getInteger(stakingContract, keyLandRobberyState(landAssetId)), 0) | |
792 | 794 | let cooldownETA = valueOrElse(getInteger(stakingContract, keyLandCooldownETA(landAssetId)), 0) | |
793 | 795 | [("%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))] | |
794 | 796 | } | |
795 | 797 | ||
796 | 798 | ||
797 | 799 | func landOrderInfoArray (landAssetId,owner) = if ((landAssetId == "")) | |
798 | 800 | then throw("landAssetId is required") | |
799 | 801 | else { | |
800 | 802 | let a = value(assetInfo(fromBase58String(landAssetId))) | |
801 | 803 | let d = split(a.description, "_") | |
802 | 804 | let pieces = numPiecesBySize(d[recLandSize]) | |
803 | 805 | let productivity = applyBonuses(landAssetId, pieces) | |
804 | 806 | [("%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:"))] | |
805 | 807 | } | |
806 | 808 | ||
807 | 809 | ||
808 | 810 | func slotEffect (slot) = if ((slot == "")) | |
809 | 811 | then 0 | |
810 | 812 | else { | |
811 | 813 | let prod = split(slot, ":") | |
812 | 814 | if (if ((prod[1] == "")) | |
813 | 815 | then true | |
814 | 816 | else (parseIntValue(prod[1]) == 0)) | |
815 | 817 | then 0 | |
816 | 818 | else parseIntValue(split(productionMatrix[parseIntValue(prod[0])], "_")[rIdxEffect]) | |
817 | 819 | } | |
818 | 820 | ||
819 | 821 | ||
820 | 822 | @Callable(i) | |
821 | 823 | func constructorV1 (contracts) = if ((i.caller != this)) | |
822 | 824 | then throw("permissions denied") | |
823 | 825 | else { | |
824 | 826 | func descriptor (acc,ignoredItem) = (acc + "%s") | |
825 | 827 | ||
826 | 828 | let descr = { | |
827 | 829 | let $l = contracts | |
828 | 830 | let $s = size($l) | |
829 | 831 | let $acc0 = "" | |
830 | 832 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
831 | 833 | then $a | |
832 | 834 | else descriptor($a, $l[$i]) | |
833 | 835 | ||
834 | 836 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
835 | 837 | then $a | |
836 | 838 | else throw("List size exceeds 10") | |
837 | 839 | ||
838 | 840 | $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) | |
839 | 841 | } | |
840 | 842 | [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRestAddress(), toString(this))] | |
841 | 843 | } | |
842 | 844 | ||
843 | 845 | ||
844 | 846 | ||
845 | 847 | @Callable(i) | |
846 | 848 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
847 | 849 | ||
848 | 850 | ||
849 | 851 | ||
850 | 852 | @Callable(i) | |
851 | 853 | func duckByOwnerInfoREADONLY (userAddress) = { | |
852 | 854 | let stakedDuck = getString(stakingContract, keyStakedDuckByOwner(userAddress)) | |
853 | 855 | $Tuple2(nil, if (if (isDefined(addressFromString(userAddress))) | |
854 | 856 | then isDefined(stakedDuck) | |
855 | 857 | else false) | |
856 | 858 | then { | |
857 | 859 | let duckAssetId = value(stakedDuck) | |
858 | 860 | duckInfoArray(duckAssetId, userAddress, duckInfoTuple(duckAssetId)) | |
859 | 861 | } | |
860 | 862 | else duckInfoArray("", userAddress, $Tuple5(-1, "", "", -1, ""))) | |
861 | 863 | } | |
862 | 864 | ||
863 | 865 | ||
864 | 866 | ||
865 | 867 | @Callable(i) | |
866 | 868 | func duckByAssetIdInfoREADONLY (duckAssetId) = { | |
867 | 869 | let owner = getString(stakingContract, keyDuckIdToOwner(duckAssetId)) | |
868 | 870 | $Tuple2(nil, duckInfoArray(duckAssetId, if (isDefined(owner)) | |
869 | 871 | then value(owner) | |
870 | 872 | else "", duckInfoTuple(duckAssetId))) | |
871 | 873 | } | |
872 | 874 | ||
873 | 875 | ||
874 | 876 | ||
875 | 877 | @Callable(i) | |
876 | 878 | func landByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
877 | 879 | then throw("landAssetId is required") | |
878 | 880 | else { | |
879 | 881 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
880 | 882 | let owner = if ((stakedTime > 0)) | |
881 | 883 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
882 | 884 | else "" | |
883 | 885 | $Tuple2(nil, landInfoArray(landAssetId, owner, stakedTime)) | |
884 | 886 | } | |
885 | 887 | ||
886 | 888 | ||
887 | 889 | ||
888 | 890 | @Callable(i) | |
889 | 891 | func stakedLandsByOwnerInfoREADONLY (landOwnerAddress) = if ((landOwnerAddress == "")) | |
890 | 892 | then throw("landOwnerAddress is required") | |
891 | 893 | else { | |
892 | 894 | let landsStr = getString(stakingContract, keyStakedLandsByOwner(landOwnerAddress)) | |
893 | 895 | let lands = if (isDefined(landsStr)) | |
894 | 896 | then split_51C(value(landsStr), "_") | |
895 | 897 | else nil | |
896 | 898 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
897 | 899 | then throw("landAssetId is required") | |
898 | 900 | else { | |
899 | 901 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
900 | 902 | (acc :+ landInfoArray(landAssetId, landOwnerAddress, stakedTime)) | |
901 | 903 | } | |
902 | 904 | ||
903 | 905 | let r = { | |
904 | 906 | let $l = lands | |
905 | 907 | let $s = size($l) | |
906 | 908 | let $acc0 = nil | |
907 | 909 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
908 | 910 | then $a | |
909 | 911 | else oneLand($a, $l[$i]) | |
910 | 912 | ||
911 | 913 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
912 | 914 | then $a | |
913 | 915 | else throw("List size exceeds 100") | |
914 | 916 | ||
915 | 917 | $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) | |
916 | 918 | } | |
917 | 919 | $Tuple2(nil, r) | |
918 | 920 | } | |
919 | 921 | ||
920 | 922 | ||
921 | 923 | ||
922 | 924 | @Callable(i) | |
923 | 925 | func landsByIdsInfoREADONLY (landAssetIds) = { | |
924 | 926 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
925 | 927 | then throw("landAssetId is required") | |
926 | 928 | else { | |
927 | 929 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
928 | 930 | let owner = if ((stakedTime > 0)) | |
929 | 931 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
930 | 932 | else "" | |
931 | 933 | (acc :+ landInfoArray(landAssetId, owner, stakedTime)) | |
932 | 934 | } | |
933 | 935 | ||
934 | 936 | let r = { | |
935 | 937 | let $l = landAssetIds | |
936 | 938 | let $s = size($l) | |
937 | 939 | let $acc0 = nil | |
938 | 940 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
939 | 941 | then $a | |
940 | 942 | else oneLand($a, $l[$i]) | |
941 | 943 | ||
942 | 944 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
943 | 945 | then $a | |
944 | 946 | else throw("List size exceeds 100") | |
945 | 947 | ||
946 | 948 | $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) | |
947 | 949 | } | |
948 | 950 | $Tuple2(nil, r) | |
949 | 951 | } | |
950 | 952 | ||
951 | 953 | ||
952 | 954 | ||
953 | 955 | @Callable(i) | |
954 | 956 | func warehouseOrderByAssetIdInfoREADONLY (landAssetId) = if ((landAssetId == "")) | |
955 | 957 | then throw("landAssetId is required") | |
956 | 958 | else { | |
957 | 959 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
958 | 960 | let owner = if ((stakedTime > 0)) | |
959 | 961 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
960 | 962 | else "" | |
961 | 963 | $Tuple2(nil, landOrderInfoArray(landAssetId, owner)) | |
962 | 964 | } | |
963 | 965 | ||
964 | 966 | ||
965 | 967 | ||
966 | 968 | @Callable(i) | |
967 | 969 | func ordersByLandIdsInfoREADONLY (landAssetIds) = { | |
968 | 970 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
969 | 971 | then throw("landAssetId is required") | |
970 | 972 | else { | |
971 | 973 | let stakedTime = valueOrElse(getInteger(stakingContract, keyStakedTimeByAssetId(landAssetId)), -1) | |
972 | 974 | let owner = if ((stakedTime > 0)) | |
973 | 975 | then value(getString(stakingContract, keyLandAssetIdToOwner(landAssetId))) | |
974 | 976 | else "" | |
975 | 977 | (acc :+ landOrderInfoArray(landAssetId, owner)) | |
976 | 978 | } | |
977 | 979 | ||
978 | 980 | let r = { | |
979 | 981 | let $l = landAssetIds | |
980 | 982 | let $s = size($l) | |
981 | 983 | let $acc0 = nil | |
982 | 984 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
983 | 985 | then $a | |
984 | 986 | else oneLand($a, $l[$i]) | |
985 | 987 | ||
986 | 988 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
987 | 989 | then $a | |
988 | 990 | else throw("List size exceeds 40") | |
989 | 991 | ||
990 | 992 | $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) | |
991 | 993 | } | |
992 | 994 | $Tuple2(nil, r) | |
993 | 995 | } | |
994 | 996 | ||
995 | 997 | ||
996 | 998 | ||
997 | 999 | @Callable(i) | |
998 | 1000 | func cancelWarehouseOrders (landAssetIds) = if ((i.caller != this)) | |
999 | 1001 | then throw("permission denied") | |
1000 | 1002 | else { | |
1001 | 1003 | let blocked = getBoolean(stakingContract, keyBlocked()) | |
1002 | 1004 | if (if (!(isDefined(blocked))) | |
1003 | 1005 | then true | |
1004 | 1006 | else (value(blocked) == false)) | |
1005 | 1007 | then throw("Contracts should be blocked before canceling orders") | |
1006 | 1008 | else { | |
1007 | 1009 | func oneLand (a,landAssetId) = if ((landAssetId == "")) | |
1008 | 1010 | then throw("landAssetId is required") | |
1009 | 1011 | else { | |
1010 | 1012 | 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)) | |
1011 | 1013 | if (if (a) | |
1012 | 1014 | then true | |
1013 | 1015 | else c) | |
1014 | 1016 | then !(if (a) | |
1015 | 1017 | then c | |
1016 | 1018 | else false) | |
1017 | 1019 | else false | |
1018 | 1020 | } | |
1019 | 1021 | ||
1020 | 1022 | let r = { | |
1021 | 1023 | let $l = landAssetIds | |
1022 | 1024 | let $s = size($l) | |
1023 | 1025 | let $acc0 = false | |
1024 | 1026 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1025 | 1027 | then $a | |
1026 | 1028 | else oneLand($a, $l[$i]) | |
1027 | 1029 | ||
1028 | 1030 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1029 | 1031 | then $a | |
1030 | 1032 | else throw("List size exceeds 30") | |
1031 | 1033 | ||
1032 | 1034 | $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) | |
1033 | 1035 | } | |
1034 | 1036 | $Tuple2(nil, r) | |
1035 | 1037 | } | |
1036 | 1038 | } | |
1037 | 1039 | ||
1038 | 1040 | ||
1039 | 1041 | ||
1040 | 1042 | @Callable(i) | |
1041 | 1043 | func fixWarehouseFormats (landAssetIds) = if ((i.caller != this)) | |
1042 | 1044 | then throw("permission denied") | |
1043 | 1045 | else { | |
1044 | 1046 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
1045 | 1047 | then throw("landAssetId is required") | |
1046 | 1048 | else (acc + size(asString(invoke(stakingContract, "fixWarehouseFormat", [landAssetId], nil)))) | |
1047 | 1049 | ||
1048 | 1050 | let r = { | |
1049 | 1051 | let $l = landAssetIds | |
1050 | 1052 | let $s = size($l) | |
1051 | 1053 | let $acc0 = 0 | |
1052 | 1054 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1053 | 1055 | then $a | |
1054 | 1056 | else oneLand($a, $l[$i]) | |
1055 | 1057 | ||
1056 | 1058 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1057 | 1059 | then $a | |
1058 | 1060 | else throw("List size exceeds 25") | |
1059 | 1061 | ||
1060 | 1062 | $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) | |
1061 | 1063 | } | |
1062 | 1064 | $Tuple2(nil, r) | |
1063 | 1065 | } | |
1064 | 1066 | ||
1065 | 1067 | ||
1066 | 1068 | ||
1067 | 1069 | @Callable(i) | |
1068 | 1070 | func fixStakedPieces (users) = if ((i.caller != this)) | |
1069 | 1071 | then throw("permission denied") | |
1070 | 1072 | else { | |
1071 | 1073 | func oneUser (acc,addr) = if ((addr == "")) | |
1072 | 1074 | then throw("address is required") | |
1073 | 1075 | else (acc + asInt(invoke(stakingContract, "fixStakedPieces", [addr], nil))) | |
1074 | 1076 | ||
1075 | 1077 | let r = { | |
1076 | 1078 | let $l = users | |
1077 | 1079 | let $s = size($l) | |
1078 | 1080 | let $acc0 = 0 | |
1079 | 1081 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1080 | 1082 | then $a | |
1081 | 1083 | else oneUser($a, $l[$i]) | |
1082 | 1084 | ||
1083 | 1085 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1084 | 1086 | then $a | |
1085 | 1087 | else throw("List size exceeds 16") | |
1086 | 1088 | ||
1087 | 1089 | $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) | |
1088 | 1090 | } | |
1089 | 1091 | $Tuple2(nil, r) | |
1090 | 1092 | } | |
1091 | 1093 | ||
1092 | 1094 | ||
1093 | 1095 | ||
1094 | 1096 | @Callable(i) | |
1095 | 1097 | func fixStakedLands (landAssetIds) = { | |
1096 | 1098 | let caller = toString(i.caller) | |
1097 | 1099 | if (!(containsElement(adminsList, caller))) | |
1098 | 1100 | then throw("Permission denied") | |
1099 | 1101 | else { | |
1100 | 1102 | let r = asInt(invoke(stakingContract, "fixContinentProportions", [landAssetIds], nil)) | |
1101 | 1103 | $Tuple2(nil, r) | |
1102 | 1104 | } | |
1103 | 1105 | } | |
1104 | 1106 | ||
1105 | 1107 | ||
1106 | 1108 | ||
1107 | 1109 | @Callable(i) | |
1108 | 1110 | func sendUsdtPrize (userAddress) = if ((i.caller != stakingContract)) | |
1109 | 1111 | then throw("permission denied") | |
1110 | 1112 | else { | |
1111 | 1113 | let amt = fraction(assetBalance(this, usdtAssetId), USDTPRIZEPART, MULT6) | |
1112 | 1114 | $Tuple2([ScriptTransfer(addressFromStringValue(userAddress), amt, usdtAssetId)], amt) | |
1113 | 1115 | } | |
1114 | 1116 | ||
1115 | 1117 | ||
1116 | 1118 | ||
1117 | 1119 | @Callable(i) | |
1118 | 1120 | func getEmergencyServiceDataREADONLY () = { | |
1119 | 1121 | let existStr = getString(economyContract, keyEsWarehouse()) | |
1120 | 1122 | let existAmounts = if (isDefined(existStr)) | |
1121 | 1123 | then split_4C(value(existStr), "_") | |
1122 | 1124 | else nil | |
1123 | 1125 | func singleProd (acc,recipeStr) = { | |
1124 | 1126 | let n = acc._2 | |
1125 | 1127 | let recipe = split(recipeStr, "_") | |
1126 | 1128 | let maxAmount = if ((n == 0)) | |
1127 | 1129 | then (ESMAXPACKAGES * PRODUCTPKGSIZE) | |
1128 | 1130 | else 0 | |
1129 | 1131 | let existAmount = if ((size(existAmounts) > n)) | |
1130 | 1132 | then parseIntValue(existAmounts[n]) | |
1131 | 1133 | else 0 | |
1132 | 1134 | let totalMat = getRecipeMaterials(recipe) | |
1133 | 1135 | let buyPrice = fraction((totalMat * ESBUYCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
1134 | 1136 | let sellPrice = fraction((totalMat * ESSELLCOEF), RESOURCEPRICEMIN, (MULT8 * PRODUCTPKGSIZE)) | |
1135 | 1137 | let y = makeString([toString(maxAmount), toString(existAmount), toString(buyPrice), toString(sellPrice)], "_") | |
1136 | 1138 | $Tuple2((acc._1 :+ y), (n + 1)) | |
1137 | 1139 | } | |
1138 | 1140 | ||
1139 | 1141 | let s = makeString_2C(( let $l = productionMatrix | |
1140 | 1142 | let $s = size($l) | |
1141 | 1143 | let $acc0 = $Tuple2(nil, 0) | |
1142 | 1144 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1143 | 1145 | then $a | |
1144 | 1146 | else singleProd($a, $l[$i]) | |
1145 | 1147 | ||
1146 | 1148 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1147 | 1149 | then $a | |
1148 | 1150 | else throw("List size exceeds 50") | |
1149 | 1151 | ||
1150 | 1152 | $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, ":") | |
1151 | 1153 | let result = ("%s%s__emergencyServiceData__" + s) | |
1152 | 1154 | $Tuple2(nil, result) | |
1153 | 1155 | } | |
1154 | 1156 | ||
1155 | 1157 | ||
1156 | 1158 | ||
1157 | 1159 | @Callable(i) | |
1158 | 1160 | func wlgStatsREADONLY (userAddrOpt) = { | |
1159 | 1161 | let curStats = getWlgStats(userAddrOpt, [restContract, stakingContract, economyContract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0, MULT6) | |
1160 | 1162 | $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]))]) | |
1161 | 1163 | } | |
1162 | 1164 | ||
1163 | 1165 | ||
1164 | 1166 | ||
1165 | 1167 | @Callable(i) | |
1166 | 1168 | func tournamentStatsREADONLY (tournamentId) = { | |
1167 | 1169 | let tData = getTourData(tournamentContract, tournamentId) | |
1168 | 1170 | let static = tData[idxStatic] | |
1169 | 1171 | let dynamic = tData[idxDynamic] | |
1170 | 1172 | let winDuck = if ((dynamic[tDynamicWinDuck] == "")) | |
1171 | 1173 | then " " | |
1172 | 1174 | else dynamic[tDynamicWinDuck] | |
1173 | 1175 | let scoreBoard = valueOrElse(getString(tournamentContract, keyScoreBoardByTour(tournamentId)), "") | |
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)]) | |
1176 | + | $Tuple2(nil, [("%s%s__tournamentStaticData__" + makeString([static[tStaticRegisterCost], static[tStaticAttemptCost], static[tStaticStart], static[tStaticEnd], static[tStaticNumGrands]], "_")), ("%s%s__tournamentDynamicData__" + makeString([dynamic[tDynamicStatus], winDuck, dynamic[tDynamicWinResult], dynamic[tDynamicTotalRegCount], dynamic[tDynamicTotalAttempts]], "_")), ("%s%s__tournamentScoreBoard__" + scoreBoard)]) | |
1175 | 1177 | } | |
1176 | 1178 | ||
1177 | 1179 | ||
1178 | 1180 | ||
1179 | 1181 | @Callable(i) | |
1180 | 1182 | func lastTournamentStatsREADONLY () = { | |
1181 | 1183 | let tournamentId = valueOrElse(getInteger(tournamentContract, lastTourIdKey), 0) | |
1182 | - | let static = split(valueOrElse(getString(tournamentContract, keyTourStaticDataById(tournamentId)), "%s%d%d%d%d%d____________"), SEP) | |
1184 | + | let static = split(valueOrElse(getString(tournamentContract, keyTourStaticDataById(tournamentId)), "%s%d%d%d%d%d%d______________"), SEP) | |
1183 | 1185 | let dynamic = split(valueOrElse(getString(tournamentContract, keyTourDynamicDataById(tournamentId)), "%s%s%d%d%d__________"), SEP) | |
1184 | 1186 | let winDuck = if ((dynamic[tDynamicWinDuck] == "")) | |
1185 | 1187 | then " " | |
1186 | 1188 | else dynamic[tDynamicWinDuck] | |
1187 | 1189 | let scoreBoard = valueOrElse(getString(tournamentContract, keyScoreBoardByTour(tournamentId)), "") | |
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)]) | |
1190 | + | $Tuple2(nil, [("%s%s__lastTournamentId__" + toString(tournamentId)), ("%s%s__tournamentStaticData__" + makeString([static[tStaticRegisterCost], static[tStaticAttemptCost], static[tStaticStart], static[tStaticEnd], static[tStaticNumGrands]], "_")), ("%s%s__tournamentDynamicData__" + makeString([dynamic[tDynamicStatus], winDuck, dynamic[tDynamicWinResult], dynamic[tDynamicTotalRegCount], dynamic[tDynamicTotalAttempts]], "_")), ("%s%s__tournamentScoreBoard__" + scoreBoard)]) | |
1189 | 1191 | } | |
1190 | 1192 | ||
1191 | 1193 | ||
1192 | 1194 | ||
1193 | 1195 | @Callable(i) | |
1194 | 1196 | func tournamentDuckStatsREADONLY (tId,duckAssetId) = { | |
1195 | 1197 | let isDuckReg = valueOrElse(getBoolean(tournamentContract, keyIsRegisteredByTourAndDuck(tId, duckAssetId)), false) | |
1196 | 1198 | let lastDuckAttempt = valueOrElse(getInteger(tournamentContract, keyLastAttemptByTourAndDuck(tId, duckAssetId)), -1) | |
1197 | 1199 | let bestDuckResult = valueOrElse(getInteger(tournamentContract, keyBestResultByTourAndDuck(tId, duckAssetId)), 0) | |
1198 | 1200 | $Tuple2(nil, [("%s%s__tournamentDuckStats__" + makeString([toString(isDuckReg), toString(lastDuckAttempt), toString(bestDuckResult)], "_"))]) | |
1199 | 1201 | } | |
1200 | 1202 | ||
1201 | 1203 | ||
1202 | 1204 | ||
1203 | 1205 | @Callable(i) | |
1204 | 1206 | func duckStatsCalculatorREADONLY (duckAssetId) = { | |
1205 | 1207 | let chars = split(valueOrElse(getString(stakingContract, keyDuckChars(duckAssetId)), "0_0_0_0_0"), "_") | |
1206 | 1208 | let buffs = split(valueOrElse(getString(stakingContract, keyDuckBuffs(duckAssetId)), "0_0_0_0_0"), "_") | |
1207 | 1209 | let equipm = split(valueOrElse(getString(stakingContract, keyDuckEquipment(duckAssetId)), ";_;_;_;_;_;"), "_") | |
1208 | 1210 | let equipmentPerc = slotEffect(split(equipm[segBack], ";")[1]) | |
1209 | 1211 | let equipmentAbsor = slotEffect(split(equipm[segBelt], ";")[0]) | |
1210 | 1212 | let dodge = dodgeProbability(chars, buffs, equipmentPerc) | |
1211 | 1213 | let absorb = damageAbsorption(chars, buffs, equipmentAbsor) | |
1212 | 1214 | $Tuple2(nil, [("%s%d__dodgeProbability__" + toString(dodge)), ("%s%d__damageAbsorption__" + toString(absorb))]) | |
1213 | 1215 | } | |
1214 | 1216 | ||
1215 | 1217 | ||
1218 | + | ||
1219 | + | @Callable(i) | |
1220 | + | func customDuckStatsCalculatorREADONLY (chars,buffs,equipmentPerc,equipmentAbsor) = { | |
1221 | + | let dodge = dodgeProbability(chars, buffs, equipmentPerc) | |
1222 | + | let absorb = damageAbsorption(chars, buffs, equipmentAbsor) | |
1223 | + | $Tuple2(nil, [("%s%d__dodgeProbability__" + toString(dodge)), ("%s%d__damageAbsorption__" + toString(absorb))]) | |
1224 | + | } | |
1225 | + | ||
1226 | + |
github/deemru/w8io/026f985 142.91 ms ◑