tx · CVuXANUvarirc2GyPHyFQfsLjEUcyCEY6JNZWGkVChZn

3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg:  -0.00800000 Waves

2024.12.04 13:22 [3399782] smart account 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg > SELF 0.00000000 Waves

{ "type": 13, "id": "CVuXANUvarirc2GyPHyFQfsLjEUcyCEY6JNZWGkVChZn", "fee": 800000, "feeAssetId": null, "timestamp": 1733307768359, "version": 2, "chainId": 84, "sender": "3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg", "senderPublicKey": "5BN6FQeKuMm2XJYToUZvbBX4UELGpE3Z47P4q6sP46PG", "proofs": [ "2anbq6zCqFso4Ss3i3SrVdximFfonxRo4bxf3BeiEAN5q7CboYj2V7xxvd8xBYLNgozWfyrTM6nCYh2SUjYTTrhB" ], "script": "base64:BgIdCAISBAoCCAESBAoCAQgSAwoBCBIDCgEBEgMKAQguABRPTERfU1RBS0lOR19ERUFETElORQCA4tCWuTIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABABVkZWZhdWx0UmVzdEFkZHJlc3NTdHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDACIzNQUUN1dkZidmg0TGtQVW5yblUxejNqbmJBMXA5bTNXTmh2AwkAAAIBAVQFByRtYXRjaDACIzNNdW1rR0d6dENLQVhwV0RxeGtkZG9mcVhTVWJxUWt2U0p5CQACAQINVW5rbm93biBjaGFpbgAQYWNyZXMyQWRkcmVzc1N0cgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAIjM1A0VUgzVDluWHBNTnBVbVNtUWpQbUV6M0c4NXQzem42ZUEDCQAAAgEBVAUHJG1hdGNoMAIjM05CUHgxRmNpdTNKUU5FR1oyMWpTblRkdXRMTkdHQlVTWGgJAAIBAg1Vbmtub3duIGNoYWluAANTRVACAl9fAAVNVUxUOACAwtcvAQ9nZXRTdHJ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hbHVlT3JFbHNlAgkAnwgBBQlhbW91bnRLZXkAAAQIbGFzdFRpbWUJAQt2YWx1ZU9yRWxzZQIJAJ8IAQUHdGltZUtleQAABAxjbGFpbWVkQWNyZXMJARJjbGFpbUFjcmVzSW50ZXJuYWwDBQdhZGRyZXNzBQthY3Jlc0Ftb3VudAUIbGFzdFRpbWUJAJQKAgUDbmlsCQDMCAIFDGNsYWltZWRBY3JlcwkAzAgCBQhsYXN0VGltZQUDbmlsANbDKYo=", "height": 3399782, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 13sYgRg5XMBsFnoDDVCpjYPBcWxuJV4V5q3qfy1CHjUS Next: 3C5FJ9ftQyDRLTDtXPwMQRgm88zXMT7putrp6dgE9e2x Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let OLD_STAKING_DEADLINE = 1733256000000
4+let OLD_STAKING_DEADLINE = 1733335200000
55
66 let chain = take(drop(this.bytes, 1), 1)
77
179179 }
180180
181181
182-func unstakeAcresRO (amount,address) = {
183- let timeKey = keyAcresStakedTimeByUser(address)
184- let claimedAcres = claimAcresInternal(address, amount, valueOrElse(getInteger(timeKey), 0))
185- $Tuple2(amount, claimedAcres)
186- }
187-
188-
189182 @Callable(i)
190183 func constructorV1 (restAddr,unstakedPieces) = if ((i.caller != this))
191184 then throw("Permission denied")
237230 @Callable(i)
238231 func unstakeAllAcresREADONLY (address) = {
239232 let amount = valueOrElse(getInteger(keyAcresStakedAmountByUser(address)), 0)
240- let unstakedWithClaimed = unstakeAcresRO(amount, address)
241- $Tuple2(nil, unstakedWithClaimed)
233+ let claimedAcres = claimAcresInternal(address, amount, valueOrElse(getInteger(keyAcresStakedTimeByUser(address)), 0))
234+ $Tuple2(nil, $Tuple2(amount, claimedAcres))
242235 }
243236
244237
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let OLD_STAKING_DEADLINE = 1733256000000
4+let OLD_STAKING_DEADLINE = 1733335200000
55
66 let chain = take(drop(this.bytes, 1), 1)
77
88 let defaultRestAddressStr = match chain {
99 case _ =>
1010 if ((base58'2W' == $match0))
1111 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
1212 else if ((base58'2T' == $match0))
1313 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
1414 else throw("Unknown chain")
1515 }
1616
1717 let acres2AddressStr = match chain {
1818 case _ =>
1919 if ((base58'2W' == $match0))
2020 then "3P4UH3T9nXpMNpUmSmQjPmEz3G85t3zn6eA"
2121 else if ((base58'2T' == $match0))
2222 then "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh"
2323 else throw("Unknown chain")
2424 }
2525
2626 let SEP = "__"
2727
2828 let MULT8 = 100000000
2929
3030 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
3131
3232
3333 let IdxCfgStakingDapp = 1
3434
3535 let IdxCfgEconomyDapp = 2
3636
3737 let IdxCfgWlgDapp = 4
3838
3939 let IdxCfgAcresDapp = 8
4040
4141 func keyRestCfg () = "%s__restConfig"
4242
4343
4444 func keyRestAddress () = "%s__restAddr"
4545
4646
4747 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
4848
4949
5050 func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
5151
5252
5353 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
5454
5555 let restCfg = readRestCfgOrFail(restContract)
5656
5757 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
5858
5959 let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
6060
6161 let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp)
6262
6363 let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp)
6464
6565 let acresIssuedAmountKey = "acresIssuedAmount"
6666
6767 let acresAssetIdKey = "acresAssetId"
6868
6969 let acresAssetId = valueOrErrorMessage(getBinary(acresContract, acresAssetIdKey), "ACRES is not issued yet")
7070
7171 func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr)
7272
7373
7474 let IdxEffTotal = 0
7575
7676 func keyResProportions () = "resTypesProportions"
7777
7878
7979 func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr)
8080
8181
8282 func asInt (v) = match v {
8383 case n: Int =>
8484 n
8585 case _ =>
8686 throw("fail to cast into Int")
8787 }
8888
8989
9090 func asTwoIntsTuple (val) = match val {
9191 case t2: (Int, Int) =>
9292 t2
9393 case _ =>
9494 throw("fail to cast into (Int, Int)")
9595 }
9696
9797
9898 func getVotingPower (userAddrStrOrEmpty) = {
9999 let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_")
100100 func adder (acc,item) = (acc + parseIntValue(item))
101101
102102 let totalPower = {
103103 let $l = props
104104 let $s = size($l)
105105 let $acc0 = 0
106106 func $f0_1 ($a,$i) = if (($i >= $s))
107107 then $a
108108 else adder($a, $l[$i])
109109
110110 func $f0_2 ($a,$i) = if (($i >= $s))
111111 then $a
112112 else throw("List size exceeds 6")
113113
114114 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
115115 }
116116 let usersPower = valueOrElse(getInteger(stakingContract, keyStakedPiecesByOwner(userAddrStrOrEmpty)), 0)
117117 [totalPower, usersPower]
118118 }
119119
120120
121121 func fixedPoint (val,decimals) = {
122122 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
123123 let lowPart = toString((val % tenPow))
124124 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
125125 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
126126 }
127127
128128
129129 func finalTime () = min([lastBlock.timestamp, OLD_STAKING_DEADLINE])
130130
131131
132132 let DAILYRESBYPIECE = 3456000
133133
134134 let USDT2ACRES_MULTIPLIER = 10
135135
136136 let MILLION6 = 100000000000000
137137
138138 let DAYMILLIS = 86400000
139139
140140 func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr)
141141
142142
143143 func keyAcresLockedAmountByUser (addr) = ("acresLockedAmountByUser_" + addr)
144144
145145
146146 func keyAcresLockedEtaByUser (addr) = ("acresLockedEtaByUser_" + addr)
147147
148148
149149 let acresStakedTotalKey = "acresStakedAmountTotal"
150150
151151 let BLACKLISTED1 = "3P2NGX4Q5nge1MCauwQW5aqYLdkccSGj1Ep_3P2xFAHW9yhyNohYozWd4HFhEXZu3bsNSoR_3P2yKaZ2gvn9Xe5tti81a7P9LZhHgjvToV9_3P37zQ3cf2ecu55RmJqEiGSivdzN9avt3m9_3P4az6dtzsvGCWFAxa94UdevKzXyEwxEiFG_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9cPEmvVvhXUr8SvhANKhsa_3PDGE9tKQizaeZFeDDq5aYSv89nwYbfirpZ_3PDMKQTCrUPZECVXEJJ8m1sHtutSu1naSf1_3PGh2Qu6Yvx8GTCRRVNvBUVZLdaidYSaxo5_3PKkmAtbSK5D2hQdo1RfEg8eXyMbDcRUc92_3PLMnbxzssP8W8E8XjJ1RLBBg8UZL8Cz3P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e"
152152
153153 let PROMO1_AMOUNT = 4970178
154154
155155 func isBlacklistedPromo1 (addr) = contains(BLACKLISTED1, addr)
156156
157157
158158 func claimAcresInternal (addr,acresAmount,lastClaimTime) = {
159159 let deltaTime = (finalTime() - lastClaimTime)
160160 let availRes = fraction(deltaTime, (DAILYRESBYPIECE * acresAmount), (DAYMILLIS * MULT8))
161161 let canGetUsdt = asInt(invoke(economyContract, "sellResourcesWorldREADONLY", [availRes], nil))
162162 let gotUsdt = max([0, canGetUsdt])
163163 (gotUsdt * USDT2ACRES_MULTIPLIER)
164164 }
165165
166166
167167 func claimInternal (addr,acresAmount,lastClaimTime) = {
168168 let deltaTime = (finalTime() - lastClaimTime)
169169 if ((0 > deltaTime))
170170 then throw(((("Saved timestamp is in future, saved = " + toString(lastClaimTime)) + ", final = ") + toString(finalTime())))
171171 else {
172172 let availRes = fraction(deltaTime, (DAILYRESBYPIECE * acresAmount), (DAYMILLIS * MULT8))
173173 let canGetUsdt = asInt(invoke(economyContract, "sellResourcesWorldREADONLY", [availRes], nil))
174174 let gotUsdt = if ((0 >= canGetUsdt))
175175 then 0
176176 else asTwoIntsTuple(invoke(economyContract, "sellResourcesWorld", [addr, availRes], nil))._1
177177 (gotUsdt * USDT2ACRES_MULTIPLIER)
178178 }
179179 }
180180
181181
182-func unstakeAcresRO (amount,address) = {
183- let timeKey = keyAcresStakedTimeByUser(address)
184- let claimedAcres = claimAcresInternal(address, amount, valueOrElse(getInteger(timeKey), 0))
185- $Tuple2(amount, claimedAcres)
186- }
187-
188-
189182 @Callable(i)
190183 func constructorV1 (restAddr,unstakedPieces) = if ((i.caller != this))
191184 then throw("Permission denied")
192185 else if (isDefined(getBinary(acresAssetIdKey)))
193186 then throw("Already initialized")
194187 else {
195188 let nftAcres = (getVotingPower("")[IdxEffTotal] + unstakedPieces)
196189 let issuedAmount = (MILLION6 - (nftAcres * MULT8))
197190 let issue = Issue("ACRES", "WavesLands land acres investment token", issuedAmount, 8, false, unit, 0)
198191 let assetId = calculateAssetId(issue)
199192 [issue, IntegerEntry(acresIssuedAmountKey, issuedAmount), BinaryEntry(acresAssetIdKey, assetId), StringEntry(keyRestAddress(), restAddr)]
200193 }
201194
202195
203196
204197 @Callable(i)
205198 func unstakeAcresCallback (amount,address) = if ((toString(i.caller) != acres2AddressStr))
206199 then throw("Permission denied")
207200 else if ((0 >= amount))
208201 then throw("Amount should be positive")
209202 else {
210203 let timeKey = keyAcresStakedTimeByUser(address)
211204 let amountKey = keyAcresStakedAmountByUser(address)
212205 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
213206 if ((amount > oldAcresAmount))
214207 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(amount, 8)))
215208 else {
216209 let lockedAmount = valueOrElse(getInteger(keyAcresLockedAmountByUser(address)), 0)
217210 let lockedETA = valueOrElse(getInteger(keyAcresLockedEtaByUser(address)), 0)
218211 let now = lastBlock.timestamp
219212 let unstakableAmount = if (isBlacklistedPromo1(address))
220213 then ((oldAcresAmount - lockedAmount) - PROMO1_AMOUNT)
221214 else (oldAcresAmount - lockedAmount)
222215 if (if ((lockedETA > now))
223216 then (amount > unstakableAmount)
224217 else false)
225218 then throw(((("Only " + fixedPoint(unstakableAmount, 8)) + " ACRES can be unstaked now, wait until ") + toString(lockedETA)))
226219 else {
227220 let oldTotal = valueOrElse(getInteger(acresStakedTotalKey), 0)
228221 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address, false], nil)
229222 let claimedAcres = claimInternal(address, oldAcresAmount, valueOrElse(getInteger(timeKey), 0))
230223 $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(amountKey, (oldAcresAmount - amount)), IntegerEntry(acresStakedTotalKey, (oldTotal - amount)), ScriptTransfer(i.caller, (amount + claimedAcres), acresAssetId)], $Tuple2((amount + claimedAcres), wlgResult))
231224 }
232225 }
233226 }
234227
235228
236229
237230 @Callable(i)
238231 func unstakeAllAcresREADONLY (address) = {
239232 let amount = valueOrElse(getInteger(keyAcresStakedAmountByUser(address)), 0)
240- let unstakedWithClaimed = unstakeAcresRO(amount, address)
241- $Tuple2(nil, unstakedWithClaimed)
233+ let claimedAcres = claimAcresInternal(address, amount, valueOrElse(getInteger(keyAcresStakedTimeByUser(address)), 0))
234+ $Tuple2(nil, $Tuple2(amount, claimedAcres))
242235 }
243236
244237
245238
246239 @Callable(i)
247240 func requestAcresCallback (amount) = {
248241 let caller = i.caller
249242 if (if ((toString(caller) != acres2AddressStr))
250243 then (caller != stakingContract)
251244 else false)
252245 then throw("Permission denied")
253246 else $Tuple2([ScriptTransfer(caller, amount, acresAssetId)], amount)
254247 }
255248
256249
257250
258251 @Callable(i)
259252 func claimAcresREADONLY (address) = {
260253 let timeKey = keyAcresStakedTimeByUser(address)
261254 let amountKey = keyAcresStakedAmountByUser(address)
262255 let acresAmount = valueOrElse(getInteger(amountKey), 0)
263256 let lastTime = valueOrElse(getInteger(timeKey), 0)
264257 let claimedAcres = claimAcresInternal(address, acresAmount, lastTime)
265258 $Tuple2(nil, [claimedAcres, lastTime])
266259 }
267260
268261

github/deemru/w8io/026f985 
36.82 ms