tx · 95ubc5EYtRyPPJgZokfyZ1SMfA8MXfRCn9XuJDXWckAh

3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg:  -0.00900000 Waves

2024.09.12 20:21 [3280713] smart account 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg > SELF 0.00000000 Waves

{ "type": 13, "id": "95ubc5EYtRyPPJgZokfyZ1SMfA8MXfRCn9XuJDXWckAh", "fee": 900000, "feeAssetId": null, "timestamp": 1726161765744, "version": 2, "chainId": 84, "sender": "3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg", "senderPublicKey": "5BN6FQeKuMm2XJYToUZvbBX4UELGpE3Z47P4q6sP46PG", "proofs": [ "3KHHoMGie1HPeRLRLCMq9nJpQ2GtZKvMsaee28ArAeAzCsfyD4E1QjzmRXYHWcCLbDJ9k5QmwgHSjweMPYhgfgeC" ], "script": "base64:BgIeCAISBAoCCAESBAoCAQgSAwoBCBIECgIBCBIDCgEIMQAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAFWRlZmF1bHRSZXN0QWRkcmVzc1N0cgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAIjM1BRQ3V2RmJ2aDRMa1BVbnJuVTF6M2puYkExcDltM1dOaHYDCQAAAgEBVAUHJG1hdGNoMAIjM011bWtHR3p0Q0tBWHBXRHF4a2Rkb2ZxWFNVYnFRa3ZTSnkJAAIBAg1Vbmtub3duIGNoYWluABBhY3JlczJBZGRyZXNzU3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUDRVSDNUOW5YcE1OcFVtU21RalBtRXozRzg1dDN6bjZlQQMJAAACAQFUBQckbWF0Y2gwAiMzTkJQeDFGY2l1M0pRTkVHWjIxalNuVGR1dExOR0dCVVNYaAkAAgECDVVua25vd24gY2hhaW4AA1NFUAICX18ABU1VTFQ4AIDC1y8BD2dldFN0cmluZ09yRmFpbAIHYWR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wQGYW1vdW50CQELdmFsdWVPckVsc2UCCQCfCAEJARprZXlBY3Jlc1N0YWtlZEFtb3VudEJ5VXNlcgEFB2FkZHJlc3MAAAQTdW5zdGFrZWRXaXRoQ2xhaW1lZAkBDnVuc3Rha2VBY3Jlc1JPAgUGYW1vdW50BQdhZGRyZXNzCQCUCgIFA25pbAUTdW5zdGFrZWRXaXRoQ2xhaW1lZAFpARRyZXF1ZXN0QWNyZXNDYWxsYmFjawIGYW1vdW50B2FkZHJlc3MDCQECIT0CCQClCAEIBQFpBmNhbGxlcgUQYWNyZXMyQWRkcmVzc1N0cgkAAgECEVBlcm1pc3Npb24gZGVuaWVkCQCUCgIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBEUBleHRyTmF0aXZlKDEwNjIpAQUHYWRkcmVzcwUGYW1vdW50BQxhY3Jlc0Fzc2V0SWQFA25pbAUGYW1vdW50AWkBEmNsYWltQWNyZXNSRUFET05MWQEHYWRkcmVzcwQHdGltZUtleQkBGGtleUFjcmVzU3Rha2VkVGltZUJ5VXNlcgEFB2FkZHJlc3MECWFtb3VudEtleQkBGmtleUFjcmVzU3Rha2VkQW1vdW50QnlVc2VyAQUHYWRkcmVzcwQLYWNyZXNBbW91bnQJAQt2YWx1ZU9yRWxzZQIJAJ8IAQUJYW1vdW50S2V5AAAECGxhc3RUaW1lCQELdmFsdWVPckVsc2UCCQCfCAEFB3RpbWVLZXkAAAQMY2xhaW1lZEFjcmVzCQESY2xhaW1BY3Jlc0ludGVybmFsAwUHYWRkcmVzcwULYWNyZXNBbW91bnQFCGxhc3RUaW1lCQCUCgIFA25pbAkAzAgCBQxjbGFpbWVkQWNyZXMJAMwIAgUIbGFzdFRpbWUFA25pbAA2Phre", "height": 3280713, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5q1z9XkgMREj4uSPoFtLQZPaNBHEBoG5Pf4uFbEjtsRf Next: 7BL5dmwEYLNmezGLzG7RY1Beb1cJYrMb367BmnhYesBF Diff:
OldNewDifferences
198198 func unstakeAcresRO (amount,address) = {
199199 let timeKey = keyAcresStakedTimeByUser(address)
200200 let claimedAcres = claimAcresInternal(address, amount, valueOrElse(getInteger(timeKey), 0))
201- (amount + claimedAcres)
201+ $Tuple2(amount, claimedAcres)
202202 }
203203
204204
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let chain = take(drop(this.bytes, 1), 1)
55
66 let defaultRestAddressStr = match chain {
77 case _ =>
88 if ((base58'2W' == $match0))
99 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
1010 else if ((base58'2T' == $match0))
1111 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
1212 else throw("Unknown chain")
1313 }
1414
1515 let acres2AddressStr = match chain {
1616 case _ =>
1717 if ((base58'2W' == $match0))
1818 then "3P4UH3T9nXpMNpUmSmQjPmEz3G85t3zn6eA"
1919 else if ((base58'2T' == $match0))
2020 then "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh"
2121 else throw("Unknown chain")
2222 }
2323
2424 let SEP = "__"
2525
2626 let MULT8 = 100000000
2727
2828 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
2929
3030
3131 let IdxCfgStakingDapp = 1
3232
3333 let IdxCfgEconomyDapp = 2
3434
3535 let IdxCfgWlgDapp = 4
3636
3737 let IdxCfgAcresDapp = 8
3838
3939 func keyRestCfg () = "%s__restConfig"
4040
4141
4242 func keyRestAddress () = "%s__restAddr"
4343
4444
4545 func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP)
4646
4747
4848 func getContractAddressOrFail (restCfg,idx) = valueOrErrorMessage(addressFromString(restCfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx)))
4949
5050
5151 let restContract = addressFromStringValue(valueOrElse(getString(this, keyRestAddress()), defaultRestAddressStr))
5252
5353 let restCfg = readRestCfgOrFail(restContract)
5454
5555 let stakingContract = getContractAddressOrFail(restCfg, IdxCfgStakingDapp)
5656
5757 let economyContract = getContractAddressOrFail(restCfg, IdxCfgEconomyDapp)
5858
5959 let wlgContract = getContractAddressOrFail(restCfg, IdxCfgWlgDapp)
6060
6161 let acresContract = getContractAddressOrFail(restCfg, IdxCfgAcresDapp)
6262
6363 let acresIssuedAmountKey = "acresIssuedAmount"
6464
6565 let acresAssetIdKey = "acresAssetId"
6666
6767 let acresAssetId = valueOrErrorMessage(getBinary(acresContract, acresAssetIdKey), "ACRES is not issued yet")
6868
6969 func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr)
7070
7171
7272 let IdxEffTotal = 0
7373
7474 func keyResProportions () = "resTypesProportions"
7575
7676
7777 func keyStakedPiecesByOwner (ownerAddr) = ("stakedPiecesByOwner_" + ownerAddr)
7878
7979
8080 func asInt (v) = match v {
8181 case n: Int =>
8282 n
8383 case _ =>
8484 throw("fail to cast into Int")
8585 }
8686
8787
8888 func asTwoIntsTuple (val) = match val {
8989 case t2: (Int, Int) =>
9090 t2
9191 case _ =>
9292 throw("fail to cast into (Int, Int)")
9393 }
9494
9595
9696 func getVotingPower (userAddrStrOrEmpty) = {
9797 let props = split(valueOrElse(getString(stakingContract, keyResProportions()), "0_0_0_0_0_0"), "_")
9898 func adder (acc,item) = (acc + parseIntValue(item))
9999
100100 let totalPower = {
101101 let $l = props
102102 let $s = size($l)
103103 let $acc0 = 0
104104 func $f0_1 ($a,$i) = if (($i >= $s))
105105 then $a
106106 else adder($a, $l[$i])
107107
108108 func $f0_2 ($a,$i) = if (($i >= $s))
109109 then $a
110110 else throw("List size exceeds 6")
111111
112112 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
113113 }
114114 let usersPower = valueOrElse(getInteger(stakingContract, keyStakedPiecesByOwner(userAddrStrOrEmpty)), 0)
115115 [totalPower, usersPower]
116116 }
117117
118118
119119 func fixedPoint (val,decimals) = {
120120 let tenPow = pow(10, 0, decimals, 0, 0, DOWN)
121121 let lowPart = toString((val % tenPow))
122122 let zeroes = drop(toString(tenPow), (1 + size(lowPart)))
123123 (((toString((val / tenPow)) + ".") + zeroes) + lowPart)
124124 }
125125
126126
127127 func finalTime () = min([lastBlock.timestamp, 1727740799000])
128128
129129
130130 let DAILYRESBYPIECE = 3456000
131131
132132 let USDT2ACRES_MULTIPLIER = 10
133133
134134 let MILLION6 = 100000000000000
135135
136136 let DAYMILLIS = 86400000
137137
138138 func keyAcresStakedAmountByUser (addr) = ("acresStakedAmountByUser_" + addr)
139139
140140
141141 func keyAcresLockedAmountByUser (addr) = ("acresLockedAmountByUser_" + addr)
142142
143143
144144 func keyAcresLockedEtaByUser (addr) = ("acresLockedEtaByUser_" + addr)
145145
146146
147147 let acresStakedTotalKey = "acresStakedAmountTotal"
148148
149149 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"
150150
151151 let PROMO1_AMOUNT = 4970178
152152
153153 let PROMO_2_START_TIMESTAMP = match chain {
154154 case _ =>
155155 if ((base58'2W' == $match0))
156156 then 1700524800000
157157 else if ((base58'2T' == $match0))
158158 then 1700420400000
159159 else throw("Unknown chain")
160160 }
161161
162162 let PROMO_2_END_TIMESTAMP = match chain {
163163 case _ =>
164164 if ((base58'2W' == $match0))
165165 then 1701043199999
166166 else if ((base58'2T' == $match0))
167167 then 1700496000000
168168 else throw("Unknown chain")
169169 }
170170
171171 func isBlacklistedPromo1 (addr) = contains(BLACKLISTED1, addr)
172172
173173
174174 func claimAcresInternal (addr,acresAmount,lastClaimTime) = {
175175 let deltaTime = (finalTime() - lastClaimTime)
176176 let availRes = fraction(deltaTime, (DAILYRESBYPIECE * acresAmount), (DAYMILLIS * MULT8))
177177 let canGetUsdt = asInt(invoke(economyContract, "sellResourcesWorldREADONLY", [availRes], nil))
178178 let gotUsdt = max([0, canGetUsdt])
179179 (gotUsdt * USDT2ACRES_MULTIPLIER)
180180 }
181181
182182
183183 func claimInternal (addr,acresAmount,lastClaimTime) = {
184184 let deltaTime = (finalTime() - lastClaimTime)
185185 if ((0 > deltaTime))
186186 then throw(((("Saved timestamp is in future, saved = " + toString(lastClaimTime)) + ", final = ") + toString(finalTime())))
187187 else {
188188 let availRes = fraction(deltaTime, (DAILYRESBYPIECE * acresAmount), (DAYMILLIS * MULT8))
189189 let canGetUsdt = asInt(invoke(economyContract, "sellResourcesWorldREADONLY", [availRes], nil))
190190 let gotUsdt = if ((0 >= canGetUsdt))
191191 then 0
192192 else asTwoIntsTuple(invoke(economyContract, "sellResourcesWorld", [addr, availRes], nil))._1
193193 (gotUsdt * USDT2ACRES_MULTIPLIER)
194194 }
195195 }
196196
197197
198198 func unstakeAcresRO (amount,address) = {
199199 let timeKey = keyAcresStakedTimeByUser(address)
200200 let claimedAcres = claimAcresInternal(address, amount, valueOrElse(getInteger(timeKey), 0))
201- (amount + claimedAcres)
201+ $Tuple2(amount, claimedAcres)
202202 }
203203
204204
205205 func unstakeAcresInternal (amount,address) = if ((0 >= amount))
206206 then throw("Amount should be positive")
207207 else {
208208 let timeKey = keyAcresStakedTimeByUser(address)
209209 let amountKey = keyAcresStakedAmountByUser(address)
210210 let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
211211 if ((amount > oldAcresAmount))
212212 then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(amount, 8)))
213213 else {
214214 let lockedAmount = valueOrElse(getInteger(keyAcresLockedAmountByUser(address)), 0)
215215 let lockedETA = valueOrElse(getInteger(keyAcresLockedEtaByUser(address)), 0)
216216 let now = lastBlock.timestamp
217217 if (if ((now >= PROMO_2_START_TIMESTAMP))
218218 then (PROMO_2_END_TIMESTAMP >= now)
219219 else false)
220220 then throw("You cannot unstake ACRES during Promo2")
221221 else {
222222 let unstakableAmount = if (isBlacklistedPromo1(address))
223223 then ((oldAcresAmount - lockedAmount) - PROMO1_AMOUNT)
224224 else (oldAcresAmount - lockedAmount)
225225 if (if ((lockedETA > now))
226226 then (amount > unstakableAmount)
227227 else false)
228228 then throw(((("Only " + fixedPoint(unstakableAmount, 8)) + " ACRES can be unstaked now, wait until ") + toString(lockedETA)))
229229 else {
230230 let oldTotal = valueOrElse(getInteger(acresStakedTotalKey), 0)
231231 let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
232232 let claimedAcres = claimInternal(address, oldAcresAmount, valueOrElse(getInteger(timeKey), 0))
233233 $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(amountKey, (oldAcresAmount - amount)), IntegerEntry(acresStakedTotalKey, (oldTotal - amount)), ScriptTransfer(addressFromStringValue(address), (amount + claimedAcres), acresAssetId)], $Tuple2((amount + claimedAcres), wlgResult))
234234 }
235235 }
236236 }
237237 }
238238
239239
240240 @Callable(i)
241241 func constructorV1 (restAddr,unstakedPieces) = if ((i.caller != this))
242242 then throw("Permission denied")
243243 else if (isDefined(getBinary(acresAssetIdKey)))
244244 then throw("Already initialized")
245245 else {
246246 let nftAcres = (getVotingPower("")[IdxEffTotal] + unstakedPieces)
247247 let issuedAmount = (MILLION6 - (nftAcres * MULT8))
248248 let issue = Issue("ACRES", "WavesLands land acres investment token", issuedAmount, 8, false, unit, 0)
249249 let assetId = calculateAssetId(issue)
250250 [issue, IntegerEntry(acresIssuedAmountKey, issuedAmount), BinaryEntry(acresAssetIdKey, assetId), StringEntry(keyRestAddress(), restAddr)]
251251 }
252252
253253
254254
255255 @Callable(i)
256256 func unstakeAcresCallback (amount,address) = if ((toString(i.caller) != acres2AddressStr))
257257 then throw("Permission denied")
258258 else unstakeAcresInternal(amount, address)
259259
260260
261261
262262 @Callable(i)
263263 func unstakeAllAcresREADONLY (address) = {
264264 let amount = valueOrElse(getInteger(keyAcresStakedAmountByUser(address)), 0)
265265 let unstakedWithClaimed = unstakeAcresRO(amount, address)
266266 $Tuple2(nil, unstakedWithClaimed)
267267 }
268268
269269
270270
271271 @Callable(i)
272272 func requestAcresCallback (amount,address) = if ((toString(i.caller) != acres2AddressStr))
273273 then throw("Permission denied")
274274 else $Tuple2([ScriptTransfer(addressFromStringValue(address), amount, acresAssetId)], amount)
275275
276276
277277
278278 @Callable(i)
279279 func claimAcresREADONLY (address) = {
280280 let timeKey = keyAcresStakedTimeByUser(address)
281281 let amountKey = keyAcresStakedAmountByUser(address)
282282 let acresAmount = valueOrElse(getInteger(amountKey), 0)
283283 let lastTime = valueOrElse(getInteger(timeKey), 0)
284284 let claimedAcres = claimAcresInternal(address, acresAmount, lastTime)
285285 $Tuple2(nil, [claimedAcres, lastTime])
286286 }
287287
288288

github/deemru/w8io/026f985 
32.53 ms