tx · FDnMCRWyZePgfpPFvSBZkWsgkxV8tgimVc9YqnuNCzfZ

3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv:  -0.01800000 Waves

2024.11.25 15:14 [3386928] smart account 3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv > SELF 0.00000000 Waves

{ "type": 13, "id": "FDnMCRWyZePgfpPFvSBZkWsgkxV8tgimVc9YqnuNCzfZ", "fee": 1800000, "feeAssetId": null, "timestamp": 1732536936379, "version": 2, "chainId": 84, "sender": "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv", "senderPublicKey": "2fNSk5gmWbXBDTkSYSKd66xSgVvAYzrJnP9YSAFNvTwC", "proofs": [ "2ysJgZHVpFAnujukYCrq6h1DFFFhYBeMvPXyRgEE63bFmxHw2NRvnNRR57W8Jt5KeA8yPSCAdJcMw2yQUGRHdkKB" ], "script": "base64:BgIbCAISAwoBGBIDCgEIEgMKAQgSAwoBCBIDCgEIcgADU0VQAgJfXwAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACkRBWV9CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAoAsDCQAAAgEBVAUHJG1hdGNoMAA8CQACAQINVW5rbm93biBjaGFpbgALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECDVVua25vd24gY2hhaW4AFmRlZmF1bHRSZXN0MkFkZHJlc3NTdHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDACIzNQRndZdGE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GdDb250cmFjdAkBCmtleVVzZXJCZXQBBQt1c2VyQWRkck9wdAIACQCUCgIFA25pbAkAzAgCCQCsAgIJAKwCAgkArAICAhYlcyVkJWRfX3RvdGFsVGlja2V0c19fCQCkAwEFFGxhc3RXZWVrVG90YWxUaWNrZXRzBQNTRVAJAKQDAQUTY3VyV2Vla1RvdGFsVGlja2V0cwkAzAgCCQCsAgIJAKwCAgkArAICAhUlcyVkJWRfX3VzZXJUaWNrZXRzX18JAKQDAQUPbGFzdFdlZWtUaWNrZXRzBQNTRVAJAKQDAQUOY3VyV2Vla1RpY2tldHMJAMwIAgkArAICAhYlcyVkX19ibG9ja2NoYWluV2Vla19fCQCkAwEFBHdlZWsJAMwIAgkArAICAhUlcyVkX19ibG9ja2NoYWluRGF5X18JAKQDAQUFdG9kYXkJAMwIAgkArAICAhglcyVkX19ibG9ja2NoYWluTWludXRlX18JAKQDAQkAagIFBmhlaWdodAUKREFZX0JMT0NLUwkAzAgCCQCsAgICFyVzJWRfX3dpbm5pbmdCZXRUb2RheV9fCQCkAwEJAQp3aW5uaW5nQmV0AQUFdG9kYXkJAMwIAgkArAICAhAlcyVzX191c2Vyc0JldF9fBQh1c2Vyc0JldAUDbmlsAFa0Pe8=", "height": 3386928, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AvCjaHJGtztMiGkai6bR623nehv9xKK7F26ns1zJCoWa Next: GovWwQwuVtCwDcw3X3AXQkfYN9495bgKL75pnnifBvC4 Diff:
OldNewDifferences
44 let SEP = "__"
55
66 let chain = take(drop(this.bytes, 1), 1)
7+
8+let DAY_BLOCKS = match chain {
9+ case _ =>
10+ if ((base58'2W' == $match0))
11+ then 1440
12+ else if ((base58'2T' == $match0))
13+ then 60
14+ else throw("Unknown chain")
15+}
16+
17+let WEEK_BLOCKS = match chain {
18+ case _ =>
19+ if ((base58'2W' == $match0))
20+ then 10080
21+ else if ((base58'2T' == $match0))
22+ then 180
23+ else throw("Unknown chain")
24+}
725
826 let usdtAssetId = match chain {
927 case _ =>
95113 func keyAddressReferrals (addr) = ("accReferrals_" + addr)
96114
97115
116+func keyUserBet (addr) = ("userBet_" + addr)
117+
118+
119+func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
120+
121+
122+func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
123+
124+
125+func winningBet (day) = (toInt(value(value(blockInfoByHeight((day * DAY_BLOCKS))).vrf)) % 4)
126+
127+
98128 func asTuple4Ints (val) = match val {
99129 case t: (Int, Int, Int, Int) =>
100130 t
132162 let YEAR_MILLIS = 31557600000
133163
134164 let DAY_MS = 86400000
135-
136-let DAY_BLOCKS = 1440
137-
138-let WEEK_BLOCKS = 10080
139165
140166 let ISSUE10 = 1000000000
141167
190216
191217 let dapp2InvestFund = 4
192218
219+func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
220+
221+
193222 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
194223
195224 func getLevelByAcres (acres) = {
216245 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
217246
218247
248+func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
249+ let notBonused = getFarmingPowerByAcres(acres)
250+ $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
251+ }
252+
253+
219254 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
220255 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
221256 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
222- let userFP = getFarmingPowerByAcres(userAcres)
223-[totalFP, userFP]
257+ let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0)
258+ let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus)
259+ let userFPbonused = $t079119._1
260+ let userFPnotBonused = $t079119._2
261+[totalFP, userFPbonused, userFPnotBonused, userBonus]
224262 }
225-
226-
227-func keyUserBet (addr) = ("userBet_" + addr)
228-
229-
230-func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
231-
232-
233-func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
234-
235-
236-func winningBet (day) = (toInt(value(value(blockInfoByHeight((day * DAY_BLOCKS))).vrf)) % 4)
237263
238264
239265 let idxTotalFP = 0
240266
241-let idxUserFP = 1
267+let idxUserFPbonused = 1
242268
243269 let ixWlgAmount = 0
244270
351377 }
352378 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
353379 let userAmount = if ((eff[idxTotalFP] != 0))
354- then fraction(userAvailable, eff[idxUserFP], eff[idxTotalFP])
380+ then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP])
355381 else 0
356382 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
357383 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
359385 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
360386 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
361387 let user10part = if ((eff[idxTotalFP] != 0))
362- then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFP], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
388+ then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
363389 else 0
364390 let newIssue10Time = max([NEW_STAKING_START, now])
365391 let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0)
393419 let acresToNextLvl = if ((lvl >= size(levelAcres)))
394420 then 0
395421 else (((levelAcres[lvl] * M8_) + 1) - stakedAcres)
396-[("%s%s__customName__" + customName), ("%s%s__referredBy__" + valueOrElse(refBy, "")), ("%s%s__referrals__" + refs), ("%s%s__lastWeekTxId__" + lastTxId), ("%s%s__curWeekTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__acresBalance__" + toString(acresBalance)), ("%s%d__stakedAcres__" + toString(stakedAcres)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__acresToNextLvl__" + toString(acresToNextLvl)), ("%s%d__userFarmingPower__" + toString(fp[idxUserFP])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))]
422+[("%s%s__customName__" + customName), ("%s%s__referredBy__" + valueOrElse(refBy, "")), ("%s%s__referrals__" + refs), ("%s%s__lastWeekTxId__" + lastTxId), ("%s%s__curWeekTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__acresBalance__" + toString(acresBalance)), ("%s%d__stakedAcres__" + toString(stakedAcres)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__acresToNextLvl__" + toString(acresToNextLvl)), ("%s%d__userFarmingPower__" + toString(fp[idxUserFPbonused])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))]
397423 }
398424
399425
430456 @Callable(i)
431457 func conversionInfoREADONLY (userAddressOpt) = {
432458 let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey))
433- let $t046894811 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
434- let unstakedAcres = $t046894811._1
435- let claimedAcres = $t046894811._2
436- let $t048144963 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
437- let acresFromPieces = $t048144963._1
438- let acresFromRes = $t048144963._2
439- let acresFromMat = $t048144963._3
440- let acresFromProd = $t048144963._4
459+ let $t046954817 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
460+ let unstakedAcres = $t046954817._1
461+ let claimedAcres = $t046954817._2
462+ let $t048204969 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
463+ let acresFromPieces = $t048204969._1
464+ let acresFromRes = $t048204969._2
465+ let acresFromMat = $t048204969._3
466+ let acresFromProd = $t048204969._4
441467 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
442468 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "")
443- let $t051415363 = if ((duckAssetId != ""))
469+ let $t051475369 = if ((duckAssetId != ""))
444470 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil))
445471 else $Tuple3(0, 0, 0)
446- let acresFromDuckRes = $t051415363._1
447- let acresFromDuckMat = $t051415363._2
448- let acresFromDuckProd = $t051415363._3
472+ let acresFromDuckRes = $t051475369._1
473+ let acresFromDuckMat = $t051475369._2
474+ let acresFromDuckProd = $t051475369._3
449475 $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(unstakedAcres)), ("%s%d__claimedAcres__" + toString(claimedAcres)), ("%s%d__acresFromPieces__" + toString(acresFromPieces)), ("%s%d__acresFromRes__" + toString(acresFromRes)), ("%s%d__acresFromMat__" + toString(acresFromMat)), ("%s%d__acresFromProd__" + toString(acresFromProd)), ("%s%d__acresFromDuckRes__" + toString(acresFromDuckRes)), ("%s%d__acresFromDuckMat__" + toString(acresFromDuckMat)), ("%s%d__acresFromDuckProd__" + toString(acresFromDuckProd))])
450476 }
451477
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let chain = take(drop(this.bytes, 1), 1)
7+
8+let DAY_BLOCKS = match chain {
9+ case _ =>
10+ if ((base58'2W' == $match0))
11+ then 1440
12+ else if ((base58'2T' == $match0))
13+ then 60
14+ else throw("Unknown chain")
15+}
16+
17+let WEEK_BLOCKS = match chain {
18+ case _ =>
19+ if ((base58'2W' == $match0))
20+ then 10080
21+ else if ((base58'2T' == $match0))
22+ then 180
23+ else throw("Unknown chain")
24+}
725
826 let usdtAssetId = match chain {
927 case _ =>
1028 if ((base58'2W' == $match0))
1129 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
1230 else if ((base58'2T' == $match0))
1331 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
1432 else throw("Unknown chain")
1533 }
1634
1735 let defaultRest2AddressStr = match chain {
1836 case _ =>
1937 if ((base58'2W' == $match0))
2038 then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8"
2139 else if ((base58'2T' == $match0))
2240 then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv"
2341 else throw("Unknown chain")
2442 }
2543
2644 let oldStakingContractStr = match chain {
2745 case _ =>
2846 if ((base58'2W' == $match0))
2947 then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1"
3048 else if ((base58'2T' == $match0))
3149 then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm"
3250 else throw("Unknown chain")
3351 }
3452
3553 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
3654
3755
3856 let IdxCfgAcres2Dapp = 1
3957
4058 let IdxCfgWlgDapp = 2
4159
4260 let IdxCfgPuzzlePoolDapp = 4
4361
4462 let IdxCfgInvestFundDapp = 5
4563
4664 func keyRestCfg () = "%s__restConfig"
4765
4866
4967 func keyRest2Address () = "%s__rest2Addr"
5068
5169
5270 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
5371
5472
5573 func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
5674
5775
5876 let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr))
5977
6078 let rest2Cfg = readRestCfgOrFail(rest2Contract)
6179
6280 let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp)
6381
6482 let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp)
6583
6684 let puzzlePoolContract = getContractAddressOrFail(rest2Cfg, IdxCfgPuzzlePoolDapp)
6785
6886 let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp)
6987
7088 let oldAcresContractKey = "oldAcresContract"
7189
7290 func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr)
7391
7492
7593 func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr)
7694
7795
7896 let wlgAssetIdKey = "wlg_assetId"
7997
8098 let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet")
8199
82100 let acresAssetIdKey = "acresAssetId"
83101
84102 let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet")
85103
86104 func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr)
87105
88106
89107 func keyAddressToCustomName (addr) = ("accountCustomNameByAddr_" + addr)
90108
91109
92110 func keyAddressRefBy (addr) = ("accRefBy_" + addr)
93111
94112
95113 func keyAddressReferrals (addr) = ("accReferrals_" + addr)
96114
97115
116+func keyUserBet (addr) = ("userBet_" + addr)
117+
118+
119+func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
120+
121+
122+func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
123+
124+
125+func winningBet (day) = (toInt(value(value(blockInfoByHeight((day * DAY_BLOCKS))).vrf)) % 4)
126+
127+
98128 func asTuple4Ints (val) = match val {
99129 case t: (Int, Int, Int, Int) =>
100130 t
101131 case _ =>
102132 throw("fail to cast into (Int, Int, Int, Int)")
103133 }
104134
105135
106136 func asTuple3Ints (val) = match val {
107137 case t: (Int, Int, Int) =>
108138 t
109139 case _ =>
110140 throw("fail to cast into (Int, Int, Int)")
111141 }
112142
113143
114144 func asTuple2Ints (val) = match val {
115145 case t: (Int, Int) =>
116146 t
117147 case _ =>
118148 throw("fail to cast into (Int, Int)")
119149 }
120150
121151
122152 let M6_ = 1000000
123153
124154 let M8_ = 100000000
125155
126156 let TEAM_SHARE = 200000
127157
128158 let ACTIVITY_SHARE = 100000
129159
130160 let PLAYER_SHARE = 400000
131161
132162 let YEAR_MILLIS = 31557600000
133163
134164 let DAY_MS = 86400000
135-
136-let DAY_BLOCKS = 1440
137-
138-let WEEK_BLOCKS = 10080
139165
140166 let ISSUE10 = 1000000000
141167
142168 let PLAYERS10_SHARE = 800000
143169
144170 let MARKETING10_SHARE = 100000
145171
146172 let TEAM10_SHARE = 100000
147173
148174 let NEW_STAKING_START = 1731279600000
149175
150176 let teamAdrKey = "teamAddr"
151177
152178 let lastTeamTimKey = "lastClaimedTime_team"
153179
154180 let teamAmtLeftKey = "teamAmountLeft"
155181
156182 let lastActivitiesTimKey = "lastClaimedTime_activities"
157183
158184 let actAmtLeftKey = "activitiesAmountLeft"
159185
160186 let stakersAmtLeftKey = "stakersAmountLeft"
161187
162188 func keyLastClaimTimeByUser (addr) = ("lastClaimedTimeUser_" + addr)
163189
164190
165191 func distrByPeriod (issuedAmount,period) = fraction(issuedAmount, (PLAYER_SHARE * (period + 1)), (6 * M6_))
166192
167193
168194 let wlgIssue10TimeKey = "wlg_issue10Time"
169195
170196 let wlgIssueTimKey = "wlg_issueTime"
171197
172198 let wlgIssuedAmtKey = "wlg_issuedAmount"
173199
174200 let zbIssuedAmtKey = "zbill_issuedAmount"
175201
176202 func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr)
177203
178204
179205 let acresStakdTotalKey = "acresStakedAmountTotal"
180206
181207 let totalFarmingPowerKey = "totalFarmingPower"
182208
183209 let dapp2Rest = 0
184210
185211 let dapp2Staking = 1
186212
187213 let dapp2Wlg = 2
188214
189215 let dapp2Puzzle = 3
190216
191217 let dapp2InvestFund = 4
192218
219+func keyUserFullBonus (addr) = ("userFullBonus_" + addr)
220+
221+
193222 let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000]
194223
195224 func getLevelByAcres (acres) = {
196225 let acr = ((acres + 99999999) / M8_)
197226 func checker (acc,item) = if ((item >= acr))
198227 then acc
199228 else (acc + 1)
200229
201230 let $l = levelAcres
202231 let $s = size($l)
203232 let $acc0 = 0
204233 func $f0_1 ($a,$i) = if (($i >= $s))
205234 then $a
206235 else checker($a, $l[$i])
207236
208237 func $f0_2 ($a,$i) = if (($i >= $s))
209238 then $a
210239 else throw("List size exceeds 10")
211240
212241 $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)
213242 }
214243
215244
216245 func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4))
217246
218247
248+func getFarmingPowerByAcresAndBonus (acres,bonus6) = {
249+ let notBonused = getFarmingPowerByAcres(acres)
250+ $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused)
251+ }
252+
253+
219254 func getFarmingPowers (userAddrStrOrEmpty,acres2Contract) = {
220255 let totalFP = valueOrElse(getInteger(acres2Contract, totalFarmingPowerKey), 0)
221256 let userAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddrStrOrEmpty)), 0)
222- let userFP = getFarmingPowerByAcres(userAcres)
223-[totalFP, userFP]
257+ let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(userAddrStrOrEmpty)), 0)
258+ let $t079119 = getFarmingPowerByAcresAndBonus(userAcres, userBonus)
259+ let userFPbonused = $t079119._1
260+ let userFPnotBonused = $t079119._2
261+[totalFP, userFPbonused, userFPnotBonused, userBonus]
224262 }
225-
226-
227-func keyUserBet (addr) = ("userBet_" + addr)
228-
229-
230-func keyUserWeekTickets (addr,week) = ((("userWeekTickets_" + addr) + "_") + toString(week))
231-
232-
233-func keyTotalWeekTickets (week) = ("totalWeekTickets_" + toString(week))
234-
235-
236-func winningBet (day) = (toInt(value(value(blockInfoByHeight((day * DAY_BLOCKS))).vrf)) % 4)
237263
238264
239265 let idxTotalFP = 0
240266
241-let idxUserFP = 1
267+let idxUserFPbonused = 1
242268
243269 let ixWlgAmount = 0
244270
245271 let ixWlgWlg = 1
246272
247273 let ixWlgPrice = 2
248274
249275 let ixWlgFunds = 3
250276
251277 let ixWlgActivity = 4
252278
253279 let ixWlgAcres2 = 5
254280
255281 let ixWlgArbitrage = 6
256282
257283 let ixWlgPool = 7
258284
259285 let ixWlgIssueTime = 8
260286
261287 let ixWlgLastTeamActTime = 9
262288
263289 let ixWlgTeamTotal = 10
264290
265291 let ixWlgTeamAmLeft = 11
266292
267293 let ixWlgTeamAmAvailNow = 12
268294
269295 let ixWlgTeamWlgold = 13
270296
271297 let ixWlgActTotal = 14
272298
273299 let ixWlgActAmLeft = 15
274300
275301 let ixWlgActAmAvailNow = 16
276302
277303 let ixWlgActWlgold = 17
278304
279305 let ixWlgCurPeriod = 18
280306
281307 let ixWlgAmLeftTotal = 19
282308
283309 let ixWlgCurPeriodDistribution = 20
284310
285311 let ixWlgLastUserTime = 21
286312
287313 let ixWlgInvestFundAmount = 22
288314
289315 let ixWlgUserAmAvailNow = 23
290316
291317 let ixWlgEffUserTime = 24
292318
293319 let ixWlgIssue10Amount = 25
294320
295321 let ixWlgMarketingIssue10Amount = 26
296322
297323 let ixWlgTeamIssue10Amount = 27
298324
299325 let ixWlgUser10part = 28
300326
301327 let ixWlgIssue10Time = 29
302328
303329 let ixWlgTotalFarmingPower = 30
304330
305331 let ixWlgAcresStakedTotal = 31
306332
307333 func getWlgStats2 (userAddrOpt,contracts,usdtId,usdtBalanceCorrection) = {
308334 let issuedAmount = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssuedAmtKey), "WLGOLD is not issued yet")
309335 let restUsd = assetBalance(contracts[dapp2Rest], usdtId)
310336 let wlgUsd = (assetBalance(contracts[dapp2Wlg], usdtId) - usdtBalanceCorrection)
311337 let puzzleUsd = assetBalance(contracts[dapp2Puzzle], usdtId)
312338 let acres2Usd = assetBalance(contracts[dapp2Staking], usdtId)
313339 let investFndContract = contracts[dapp2InvestFund]
314340 let investFundTotal = (assetBalance(investFndContract, usdtId) + valueOrElse(getInteger(investFndContract, zbIssuedAmtKey), 0))
315341 let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal)
316342 let wlgId = valueOrErrorMessage(getBinary(contracts[dapp2Wlg], "wlg_assetId"), "Not initialized yet")
317343 let now = lastBlock.timestamp
318344 let issueTime = valueOrErrorMessage(getInteger(contracts[dapp2Wlg], wlgIssueTimKey), "Not initialized")
319345 let wlgWlg = assetBalance(contracts[dapp2Wlg], wlgId)
320346 let teamTotal = fraction(issuedAmount, TEAM_SHARE, M6_)
321347 let teamAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], teamAmtLeftKey), teamTotal)
322348 let lastTeamTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastTeamTimKey), issueTime)
323349 let teamAddr = addressFromStringValue(value(getString(contracts[dapp2Wlg], teamAdrKey)))
324350 let teamAmountAvailableNow = min([fraction(teamTotal, (now - lastTeamTime), (3 * YEAR_MILLIS)), teamAmountLeft])
325351 let teamWlgold = assetBalance(teamAddr, wlgId)
326352 let actTotal = fraction(issuedAmount, ACTIVITY_SHARE, M6_)
327353 let actAmountLeft = valueOrElse(getInteger(contracts[dapp2Wlg], actAmtLeftKey), actTotal)
328354 let lastActivitiesTime = valueOrElse(getInteger(contracts[dapp2Wlg], lastActivitiesTimKey), issueTime)
329355 let actAmountAvailableNow = min([fraction(actTotal, (now - lastActivitiesTime), (3 * YEAR_MILLIS)), actAmountLeft])
330356 let actWlgold = assetBalance(contracts[dapp2Rest], wlgId)
331357 let lastUserTime = valueOrElse(getInteger(contracts[dapp2Wlg], keyLastClaimTimeByUser(userAddrOpt)), issueTime)
332358 let lastUserPeriod = ((lastUserTime - issueTime) / YEAR_MILLIS)
333359 let nowLimited = min([now, (issueTime + (3 * YEAR_MILLIS))])
334360 let curPeriod = min([((now - issueTime) / YEAR_MILLIS), 2])
335361 let eff = getFarmingPowers(userAddrOpt, contracts[dapp2Staking])
336362 let curPeriodDistribution = distrByPeriod(issuedAmount, curPeriod)
337363 let prevPeriodEnd = (issueTime + (YEAR_MILLIS * curPeriod))
338364 let prevPrevPeriodEnd = (issueTime + (YEAR_MILLIS * (curPeriod - 1)))
339365 let a0 = fraction(curPeriodDistribution, (nowLimited - lastUserTime), YEAR_MILLIS)
340366 let userAvailable = if ((lastUserPeriod == curPeriod))
341367 then a0
342368 else if ((lastUserPeriod == (curPeriod - 1)))
343369 then {
344370 let a1 = fraction(distrByPeriod(issuedAmount, (curPeriod - 1)), (prevPeriodEnd - lastUserTime), YEAR_MILLIS)
345371 (a1 + a0)
346372 }
347373 else {
348374 let a2 = fraction(distrByPeriod(issuedAmount, (curPeriod - 2)), (prevPrevPeriodEnd - lastUserTime), YEAR_MILLIS)
349375 let a1 = distrByPeriod(issuedAmount, (curPeriod - 1))
350376 ((a2 + a1) + a0)
351377 }
352378 let amountLeftTotal = valueOrElse(getInteger(contracts[dapp2Wlg], stakersAmtLeftKey), 0)
353379 let userAmount = if ((eff[idxTotalFP] != 0))
354- then fraction(userAvailable, eff[idxUserFP], eff[idxTotalFP])
380+ then fraction(userAvailable, eff[idxUserFPbonused], eff[idxTotalFP])
355381 else 0
356382 let lastIssue10Time = valueOrElse(getInteger(contracts[dapp2Wlg], wlgIssue10TimeKey), NEW_STAKING_START)
357383 let issue10Amount = fraction(ISSUE10, max([(now - lastIssue10Time), 0]), DAY_MS)
358384 let marketingIssue10Amount = fraction(issue10Amount, MARKETING10_SHARE, M6_)
359385 let teamIssue10Amount = fraction(issue10Amount, TEAM10_SHARE, M6_)
360386 let user10Interval = max([(now - max([NEW_STAKING_START, lastUserTime])), 0])
361387 let user10part = if ((eff[idxTotalFP] != 0))
362- then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFP], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
388+ then fraction(fraction(fraction(ISSUE10, user10Interval, DAY_MS), eff[idxUserFPbonused], eff[idxTotalFP]), PLAYERS10_SHARE, M6_)
363389 else 0
364390 let newIssue10Time = max([NEW_STAKING_START, now])
365391 let acresStakedTotal = valueOrElse(getInteger(contracts[dapp2Staking], acresStakdTotalKey), 0)
366392 [issuedAmount, wlgWlg, fraction(totalFundsUsd, M8_, issuedAmount), totalFundsUsd, restUsd, acres2Usd, wlgUsd, puzzleUsd, issueTime, lastTeamTime, teamTotal, teamAmountLeft, teamAmountAvailableNow, teamWlgold, actTotal, actAmountLeft, actAmountAvailableNow, actWlgold, curPeriod, amountLeftTotal, curPeriodDistribution, lastUserTime, investFundTotal, userAmount, nowLimited, issue10Amount, marketingIssue10Amount, teamIssue10Amount, user10part, newIssue10Time, eff[idxTotalFP], acresStakedTotal]
367393 }
368394
369395
370396 func walletInternal (userAddressOpt) = {
371397 let addr = addressFromString(userAddressOpt)
372398 let balance = if (isDefined(addr))
373399 then wavesBalance(value(addr))
374400 else BalanceDetails(0, 0, 0, 0)
375401 let usdtBalance = if (isDefined(addr))
376402 then assetBalance(value(addr), usdtAssetId)
377403 else 0
378404 let wlgoldBalance = if (isDefined(addr))
379405 then assetBalance(value(addr), wlgAssetId)
380406 else 0
381407 let customName = valueOrElse(getString(acres2Contract, keyAddressToCustomName(userAddressOpt)), userAddressOpt)
382408 let refByKey = keyAddressRefBy(userAddressOpt)
383409 let refBy = getString(acres2Contract, refByKey)
384410 let refs = valueOrElse(getString(acres2Contract, keyAddressReferrals(userAddressOpt)), "")
385411 let lastTxId = valueOrElse(getString(acres2Contract, keyLastWeekTxIdByUser(userAddressOpt)), "")
386412 let curTxId = valueOrElse(getString(acres2Contract, keyCurWeekTxIdByUser(userAddressOpt)), "")
387413 let acresBalance = if (isDefined(addr))
388414 then assetBalance(value(addr), acresAssetId)
389415 else 0
390416 let stakedAcres = valueOrElse(getInteger(acres2Contract, keyAcresStakedAmtByUser(userAddressOpt)), 0)
391417 let lvl = getLevelByAcres(stakedAcres)
392418 let fp = getFarmingPowers(userAddressOpt, acres2Contract)
393419 let acresToNextLvl = if ((lvl >= size(levelAcres)))
394420 then 0
395421 else (((levelAcres[lvl] * M8_) + 1) - stakedAcres)
396-[("%s%s__customName__" + customName), ("%s%s__referredBy__" + valueOrElse(refBy, "")), ("%s%s__referrals__" + refs), ("%s%s__lastWeekTxId__" + lastTxId), ("%s%s__curWeekTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__acresBalance__" + toString(acresBalance)), ("%s%d__stakedAcres__" + toString(stakedAcres)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__acresToNextLvl__" + toString(acresToNextLvl)), ("%s%d__userFarmingPower__" + toString(fp[idxUserFP])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))]
422+[("%s%s__customName__" + customName), ("%s%s__referredBy__" + valueOrElse(refBy, "")), ("%s%s__referrals__" + refs), ("%s%s__lastWeekTxId__" + lastTxId), ("%s%s__curWeekTxId__" + lastTxId), ("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__usdtBalance__" + toString(usdtBalance)), ("%s%d__wlgoldBalance__" + toString(wlgoldBalance)), ("%s%d__acresBalance__" + toString(acresBalance)), ("%s%d__stakedAcres__" + toString(stakedAcres)), ("%s%d__currentLvl__" + toString(lvl)), ("%s%d__acresToNextLvl__" + toString(acresToNextLvl)), ("%s%d__userFarmingPower__" + toString(fp[idxUserFPbonused])), ("%s%d__totalFarmingPower__" + toString(fp[idxTotalFP]))]
397423 }
398424
399425
400426 @Callable(i)
401427 func constructorV1 (contracts) = if ((i.caller != this))
402428 then throw("permissions denied")
403429 else {
404430 func descriptor (acc,ignoredItem) = (acc + "%s")
405431
406432 let descr = {
407433 let $l = contracts
408434 let $s = size($l)
409435 let $acc0 = ""
410436 func $f0_1 ($a,$i) = if (($i >= $s))
411437 then $a
412438 else descriptor($a, $l[$i])
413439
414440 func $f0_2 ($a,$i) = if (($i >= $s))
415441 then $a
416442 else throw("List size exceeds 10")
417443
418444 $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)
419445 }
420446 [StringEntry(keyRestCfg(), makeString(descr :: contracts, SEP)), StringEntry(keyRest2Address(), toString(this))]
421447 }
422448
423449
424450
425451 @Callable(i)
426452 func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt))
427453
428454
429455
430456 @Callable(i)
431457 func conversionInfoREADONLY (userAddressOpt) = {
432458 let oldAcresAddress = addressFromStringValue(getStringValue(acres2Contract, oldAcresContractKey))
433- let $t046894811 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
434- let unstakedAcres = $t046894811._1
435- let claimedAcres = $t046894811._2
436- let $t048144963 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
437- let acresFromPieces = $t048144963._1
438- let acresFromRes = $t048144963._2
439- let acresFromMat = $t048144963._3
440- let acresFromProd = $t048144963._4
459+ let $t046954817 = asTuple2Ints(invoke(oldAcresAddress, "unstakeAllAcresREADONLY", [userAddressOpt], nil))
460+ let unstakedAcres = $t046954817._1
461+ let claimedAcres = $t046954817._2
462+ let $t048204969 = asTuple4Ints(invoke(acres2Contract, "unstakeLandsREADONLY", [userAddressOpt], nil))
463+ let acresFromPieces = $t048204969._1
464+ let acresFromRes = $t048204969._2
465+ let acresFromMat = $t048204969._3
466+ let acresFromProd = $t048204969._4
441467 let oldStakingAddress = addressFromStringValue(oldStakingContractStr)
442468 let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(userAddressOpt)), "")
443- let $t051415363 = if ((duckAssetId != ""))
469+ let $t051475369 = if ((duckAssetId != ""))
444470 then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckREADONLY", [duckAssetId, userAddressOpt], nil))
445471 else $Tuple3(0, 0, 0)
446- let acresFromDuckRes = $t051415363._1
447- let acresFromDuckMat = $t051415363._2
448- let acresFromDuckProd = $t051415363._3
472+ let acresFromDuckRes = $t051475369._1
473+ let acresFromDuckMat = $t051475369._2
474+ let acresFromDuckProd = $t051475369._3
449475 $Tuple2(nil, [("%s%d__unstakedAcres__" + toString(unstakedAcres)), ("%s%d__claimedAcres__" + toString(claimedAcres)), ("%s%d__acresFromPieces__" + toString(acresFromPieces)), ("%s%d__acresFromRes__" + toString(acresFromRes)), ("%s%d__acresFromMat__" + toString(acresFromMat)), ("%s%d__acresFromProd__" + toString(acresFromProd)), ("%s%d__acresFromDuckRes__" + toString(acresFromDuckRes)), ("%s%d__acresFromDuckMat__" + toString(acresFromDuckMat)), ("%s%d__acresFromDuckProd__" + toString(acresFromDuckProd))])
450476 }
451477
452478
453479
454480 @Callable(i)
455481 func wlgStatsREADONLY (userAddrOpt) = {
456482 let curStats = getWlgStats2(userAddrOpt, [rest2Contract, acres2Contract, wlgContract, puzzlePoolContract, investFundContract], usdtAssetId, 0)
457483 $Tuple2(nil, [("%s%d__wlgAmount__" + toString(curStats[ixWlgAmount])), ("%s%d__wlgWlg__" + toString(curStats[ixWlgWlg])), ("%s%d__wlgPrice__" + toString(curStats[ixWlgPrice])), ("%s%d__usdtFunds__" + toString(curStats[ixWlgFunds])), ("%s%d__usdtActivity__" + toString(curStats[ixWlgActivity])), ("%s%d__usdtStaking__" + toString(curStats[ixWlgAcres2])), ("%s%d__usdtArbitrage__" + toString(curStats[ixWlgArbitrage])), ("%s%d__usdtPool__" + toString(curStats[ixWlgPool])), ("%s%d__wlgIssueTime__" + toString(curStats[ixWlgIssueTime])), ("%s%d__wlgLastTeamActTime__" + toString(curStats[ixWlgLastTeamActTime])), ("%s%d__wlgTeamTotal__" + toString(curStats[ixWlgTeamTotal])), ("%s%d__wlgTeamAmLeft__" + toString(curStats[ixWlgTeamAmLeft])), ("%s%d__wlgTeamAmAvailNow__" + toString(curStats[ixWlgTeamAmAvailNow])), ("%s%d__wlgTeamWlgold__" + toString(curStats[ixWlgTeamWlgold])), ("%s%d__wlgActTotal__" + toString(curStats[ixWlgActTotal])), ("%s%d__wlgActAmLeft__" + toString(curStats[ixWlgActAmLeft])), ("%s%d__wlgActAmAvailNow__" + toString(curStats[ixWlgActAmAvailNow])), ("%s%d__wlgActWlgold__" + toString(curStats[ixWlgActWlgold])), ("%s%d__wlgCurPeriod__" + toString(curStats[ixWlgCurPeriod])), ("%s%d__wlgAmLeftTotal__" + toString(curStats[ixWlgAmLeftTotal])), ("%s%d__wlgCurPeriodDistribution__" + toString(curStats[ixWlgCurPeriodDistribution])), ("%s%d__wlgLastUserTime__" + toString(curStats[ixWlgLastUserTime])), ("%s%d__wlgInvestFundTotal__" + toString(curStats[ixWlgInvestFundAmount])), ("%s%d__wlgUserAmAvailNow__" + toString(curStats[ixWlgUserAmAvailNow])), ("%s%d__wlgEffUserTime__" + toString(curStats[ixWlgEffUserTime])), ("%s%d__wlgIssue10AvailNow__" + toString(curStats[ixWlgIssue10Amount])), ("%s%d__wlgMarketingIssue10AvailNow__" + toString(curStats[ixWlgMarketingIssue10Amount])), ("%s%d__wlgTeamIssue10AvailNow__" + toString(curStats[ixWlgTeamIssue10Amount])), ("%s%d__wlgUserIssue10AvailNow__" + toString(curStats[ixWlgUser10part])), ("%s%d__wlgLastIssue10Time__" + toString(curStats[ixWlgIssue10Time])), ("%s%d__wlgTotalFarmingPower__" + toString(curStats[ixWlgTotalFarmingPower])), ("%s%d__wlgAcresStakedTotal__" + toString(curStats[ixWlgAcresStakedTotal]))])
458484 }
459485
460486
461487
462488 @Callable(i)
463489 func lotteryStatsREADONLY (userAddrOpt) = {
464490 let today = (height / DAY_BLOCKS)
465491 let week = (height / WEEK_BLOCKS)
466492 let lastWeek = (week - 1)
467493 let curWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, week)), 0)
468494 let lastWeekTickets = valueOrElse(getInteger(wlgContract, keyUserWeekTickets(userAddrOpt, lastWeek)), 0)
469495 let curWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(week)), 0)
470496 let lastWeekTotalTickets = valueOrElse(getInteger(wlgContract, keyTotalWeekTickets(lastWeek)), 0)
471497 let usersBet = valueOrElse(getString(wlgContract, keyUserBet(userAddrOpt)), "")
472498 $Tuple2(nil, [((("%s%d%d__totalTickets__" + toString(lastWeekTotalTickets)) + SEP) + toString(curWeekTotalTickets)), ((("%s%d%d__userTickets__" + toString(lastWeekTickets)) + SEP) + toString(curWeekTickets)), ("%s%d__blockchainWeek__" + toString(week)), ("%s%d__blockchainDay__" + toString(today)), ("%s%d__blockchainMinute__" + toString((height % DAY_BLOCKS))), ("%s%d__winningBetToday__" + toString(winningBet(today))), ("%s%s__usersBet__" + usersBet)])
473499 }
474500
475501

github/deemru/w8io/026f985 
100.10 ms