tx · 7BL5dmwEYLNmezGLzG7RY1Beb1cJYrMb367BmnhYesBF

3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg:  -0.00800000 Waves

2024.09.13 17:17 [3281975] smart account 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg > SELF 0.00000000 Waves

{ "type": 13, "id": "7BL5dmwEYLNmezGLzG7RY1Beb1cJYrMb367BmnhYesBF", "fee": 800000, "feeAssetId": null, "timestamp": 1726237108572, "version": 2, "chainId": 84, "sender": "3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg", "senderPublicKey": "5BN6FQeKuMm2XJYToUZvbBX4UELGpE3Z47P4q6sP46PG", "proofs": [ "5ggAMFxNJERQFKPo6UKPh7BLKfqg94gyELFGvwz2CysYLgiUtNEzEGYDn1B4PN54izKEXSRbZ1xgEjFHj6kiQQVn" ], "script": "base64:BgIdCAISBAoCCAESBAoCAQgSAwoBCBIDCgEBEgMKAQguAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAVZGVmYXVsdFJlc3RBZGRyZXNzU3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUFFDdXZGYnZoNExrUFVucm5VMXozam5iQTFwOW0zV05odgMJAAACAQFUBQckbWF0Y2gwAiMzTXVta0dHenRDS0FYcFdEcXhrZGRvZnFYU1VicVFrdlNKeQkAAgECDVVua25vd24gY2hhaW4AEGFjcmVzMkFkZHJlc3NTdHIEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDACIzNQNFVIM1Q5blhwTU5wVW1TbVFqUG1FejNHODV0M3puNmVBAwkAAAIBAVQFByRtYXRjaDACIzNOQlB4MUZjaXUzSlFORUdaMjFqU25UZHV0TE5HR0JVU1hoCQACAQINVW5rbm93biBjaGFpbgADU0VQAgJfXwAFTVVMVDgAgMLXLwEPZ2V0U3RyaW5nT3JGYWlsAgdhZGRyZXNzA2tleQkBE3Z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mVzU3Rha2VkQW1vdW50QnlVc2VyAQUHYWRkcmVzcwQLYWNyZXNBbW91bnQJAQt2YWx1ZU9yRWxzZQIJAJ8IAQUJYW1vdW50S2V5AAAECGxhc3RUaW1lCQELdmFsdWVPckVsc2UCCQCfCAEFB3RpbWVLZXkAAAQMY2xhaW1lZEFjcmVzCQESY2xhaW1BY3Jlc0ludGVybmFsAwUHYWRkcmVzcwULYWNyZXNBbW91bnQFCGxhc3RUaW1lCQCUCgIFA25pbAkAzAgCBQxjbGFpbWVkQWNyZXMJAMwIAgUIbGFzdFRpbWUFA25pbACIAQRT", "height": 3281975, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 95ubc5EYtRyPPJgZokfyZ1SMfA8MXfRCn9XuJDXWckAh Next: 2jGDdtqxis5m52qzjswowB72TUw7E1ZMY8vbnryyBigh Diff:
OldNewDifferences
150150
151151 let PROMO1_AMOUNT = 4970178
152152
153-let PROMO_2_START_TIMESTAMP = match chain {
154- case _ =>
155- if ((base58'2W' == $match0))
156- then 1700524800000
157- else if ((base58'2T' == $match0))
158- then 1700420400000
159- else throw("Unknown chain")
160-}
161-
162-let PROMO_2_END_TIMESTAMP = match chain {
163- case _ =>
164- if ((base58'2W' == $match0))
165- then 1701043199999
166- else if ((base58'2T' == $match0))
167- then 1700496000000
168- else throw("Unknown chain")
169-}
170-
171153 func isBlacklistedPromo1 (addr) = contains(BLACKLISTED1, addr)
172154
173155
202184 }
203185
204186
205-func unstakeAcresInternal (amount,address) = if ((0 >= amount))
206- then throw("Amount should be positive")
207- else {
208- let timeKey = keyAcresStakedTimeByUser(address)
209- let amountKey = keyAcresStakedAmountByUser(address)
210- let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
211- if ((amount > oldAcresAmount))
212- then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(amount, 8)))
213- else {
214- let lockedAmount = valueOrElse(getInteger(keyAcresLockedAmountByUser(address)), 0)
215- let lockedETA = valueOrElse(getInteger(keyAcresLockedEtaByUser(address)), 0)
216- let now = lastBlock.timestamp
217- if (if ((now >= PROMO_2_START_TIMESTAMP))
218- then (PROMO_2_END_TIMESTAMP >= now)
219- else false)
220- then throw("You cannot unstake ACRES during Promo2")
221- else {
222- let unstakableAmount = if (isBlacklistedPromo1(address))
223- then ((oldAcresAmount - lockedAmount) - PROMO1_AMOUNT)
224- else (oldAcresAmount - lockedAmount)
225- if (if ((lockedETA > now))
226- then (amount > unstakableAmount)
227- else false)
228- then throw(((("Only " + fixedPoint(unstakableAmount, 8)) + " ACRES can be unstaked now, wait until ") + toString(lockedETA)))
229- else {
230- let oldTotal = valueOrElse(getInteger(acresStakedTotalKey), 0)
231- let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
232- let claimedAcres = claimInternal(address, oldAcresAmount, valueOrElse(getInteger(timeKey), 0))
233- $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(amountKey, (oldAcresAmount - amount)), IntegerEntry(acresStakedTotalKey, (oldTotal - amount)), ScriptTransfer(addressFromStringValue(address), (amount + claimedAcres), acresAssetId)], $Tuple2((amount + claimedAcres), wlgResult))
234- }
235- }
236- }
237- }
238-
239-
240187 @Callable(i)
241188 func constructorV1 (restAddr,unstakedPieces) = if ((i.caller != this))
242189 then throw("Permission denied")
255202 @Callable(i)
256203 func unstakeAcresCallback (amount,address) = if ((toString(i.caller) != acres2AddressStr))
257204 then throw("Permission denied")
258- else unstakeAcresInternal(amount, address)
205+ else if ((0 >= amount))
206+ then throw("Amount should be positive")
207+ else {
208+ let timeKey = keyAcresStakedTimeByUser(address)
209+ let amountKey = keyAcresStakedAmountByUser(address)
210+ let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
211+ if ((amount > oldAcresAmount))
212+ then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(amount, 8)))
213+ else {
214+ let lockedAmount = valueOrElse(getInteger(keyAcresLockedAmountByUser(address)), 0)
215+ let lockedETA = valueOrElse(getInteger(keyAcresLockedEtaByUser(address)), 0)
216+ let now = lastBlock.timestamp
217+ let unstakableAmount = if (isBlacklistedPromo1(address))
218+ then ((oldAcresAmount - lockedAmount) - PROMO1_AMOUNT)
219+ else (oldAcresAmount - lockedAmount)
220+ if (if ((lockedETA > now))
221+ then (amount > unstakableAmount)
222+ else false)
223+ then throw(((("Only " + fixedPoint(unstakableAmount, 8)) + " ACRES can be unstaked now, wait until ") + toString(lockedETA)))
224+ else {
225+ let oldTotal = valueOrElse(getInteger(acresStakedTotalKey), 0)
226+ let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
227+ let claimedAcres = claimInternal(address, oldAcresAmount, valueOrElse(getInteger(timeKey), 0))
228+ $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(amountKey, (oldAcresAmount - amount)), IntegerEntry(acresStakedTotalKey, (oldTotal - amount)), ScriptTransfer(i.caller, (amount + claimedAcres), acresAssetId)], $Tuple2((amount + claimedAcres), wlgResult))
229+ }
230+ }
231+ }
259232
260233
261234
269242
270243
271244 @Callable(i)
272-func requestAcresCallback (amount,address) = if ((toString(i.caller) != acres2AddressStr))
245+func requestAcresCallback (amount) = if ((toString(i.caller) != acres2AddressStr))
273246 then throw("Permission denied")
274- else $Tuple2([ScriptTransfer(addressFromStringValue(address), amount, acresAssetId)], amount)
247+ else $Tuple2([ScriptTransfer(i.caller, amount, acresAssetId)], amount)
275248
276249
277250
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
153-let PROMO_2_START_TIMESTAMP = match chain {
154- case _ =>
155- if ((base58'2W' == $match0))
156- then 1700524800000
157- else if ((base58'2T' == $match0))
158- then 1700420400000
159- else throw("Unknown chain")
160-}
161-
162-let PROMO_2_END_TIMESTAMP = match chain {
163- case _ =>
164- if ((base58'2W' == $match0))
165- then 1701043199999
166- else if ((base58'2T' == $match0))
167- then 1700496000000
168- else throw("Unknown chain")
169-}
170-
171153 func isBlacklistedPromo1 (addr) = contains(BLACKLISTED1, addr)
172154
173155
174156 func claimAcresInternal (addr,acresAmount,lastClaimTime) = {
175157 let deltaTime = (finalTime() - lastClaimTime)
176158 let availRes = fraction(deltaTime, (DAILYRESBYPIECE * acresAmount), (DAYMILLIS * MULT8))
177159 let canGetUsdt = asInt(invoke(economyContract, "sellResourcesWorldREADONLY", [availRes], nil))
178160 let gotUsdt = max([0, canGetUsdt])
179161 (gotUsdt * USDT2ACRES_MULTIPLIER)
180162 }
181163
182164
183165 func claimInternal (addr,acresAmount,lastClaimTime) = {
184166 let deltaTime = (finalTime() - lastClaimTime)
185167 if ((0 > deltaTime))
186168 then throw(((("Saved timestamp is in future, saved = " + toString(lastClaimTime)) + ", final = ") + toString(finalTime())))
187169 else {
188170 let availRes = fraction(deltaTime, (DAILYRESBYPIECE * acresAmount), (DAYMILLIS * MULT8))
189171 let canGetUsdt = asInt(invoke(economyContract, "sellResourcesWorldREADONLY", [availRes], nil))
190172 let gotUsdt = if ((0 >= canGetUsdt))
191173 then 0
192174 else asTwoIntsTuple(invoke(economyContract, "sellResourcesWorld", [addr, availRes], nil))._1
193175 (gotUsdt * USDT2ACRES_MULTIPLIER)
194176 }
195177 }
196178
197179
198180 func unstakeAcresRO (amount,address) = {
199181 let timeKey = keyAcresStakedTimeByUser(address)
200182 let claimedAcres = claimAcresInternal(address, amount, valueOrElse(getInteger(timeKey), 0))
201183 $Tuple2(amount, claimedAcres)
202184 }
203185
204186
205-func unstakeAcresInternal (amount,address) = if ((0 >= amount))
206- then throw("Amount should be positive")
207- else {
208- let timeKey = keyAcresStakedTimeByUser(address)
209- let amountKey = keyAcresStakedAmountByUser(address)
210- let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
211- if ((amount > oldAcresAmount))
212- then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(amount, 8)))
213- else {
214- let lockedAmount = valueOrElse(getInteger(keyAcresLockedAmountByUser(address)), 0)
215- let lockedETA = valueOrElse(getInteger(keyAcresLockedEtaByUser(address)), 0)
216- let now = lastBlock.timestamp
217- if (if ((now >= PROMO_2_START_TIMESTAMP))
218- then (PROMO_2_END_TIMESTAMP >= now)
219- else false)
220- then throw("You cannot unstake ACRES during Promo2")
221- else {
222- let unstakableAmount = if (isBlacklistedPromo1(address))
223- then ((oldAcresAmount - lockedAmount) - PROMO1_AMOUNT)
224- else (oldAcresAmount - lockedAmount)
225- if (if ((lockedETA > now))
226- then (amount > unstakableAmount)
227- else false)
228- then throw(((("Only " + fixedPoint(unstakableAmount, 8)) + " ACRES can be unstaked now, wait until ") + toString(lockedETA)))
229- else {
230- let oldTotal = valueOrElse(getInteger(acresStakedTotalKey), 0)
231- let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
232- let claimedAcres = claimInternal(address, oldAcresAmount, valueOrElse(getInteger(timeKey), 0))
233- $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(amountKey, (oldAcresAmount - amount)), IntegerEntry(acresStakedTotalKey, (oldTotal - amount)), ScriptTransfer(addressFromStringValue(address), (amount + claimedAcres), acresAssetId)], $Tuple2((amount + claimedAcres), wlgResult))
234- }
235- }
236- }
237- }
238-
239-
240187 @Callable(i)
241188 func constructorV1 (restAddr,unstakedPieces) = if ((i.caller != this))
242189 then throw("Permission denied")
243190 else if (isDefined(getBinary(acresAssetIdKey)))
244191 then throw("Already initialized")
245192 else {
246193 let nftAcres = (getVotingPower("")[IdxEffTotal] + unstakedPieces)
247194 let issuedAmount = (MILLION6 - (nftAcres * MULT8))
248195 let issue = Issue("ACRES", "WavesLands land acres investment token", issuedAmount, 8, false, unit, 0)
249196 let assetId = calculateAssetId(issue)
250197 [issue, IntegerEntry(acresIssuedAmountKey, issuedAmount), BinaryEntry(acresAssetIdKey, assetId), StringEntry(keyRestAddress(), restAddr)]
251198 }
252199
253200
254201
255202 @Callable(i)
256203 func unstakeAcresCallback (amount,address) = if ((toString(i.caller) != acres2AddressStr))
257204 then throw("Permission denied")
258- else unstakeAcresInternal(amount, address)
205+ else if ((0 >= amount))
206+ then throw("Amount should be positive")
207+ else {
208+ let timeKey = keyAcresStakedTimeByUser(address)
209+ let amountKey = keyAcresStakedAmountByUser(address)
210+ let oldAcresAmount = valueOrElse(getInteger(amountKey), 0)
211+ if ((amount > oldAcresAmount))
212+ then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(amount, 8)))
213+ else {
214+ let lockedAmount = valueOrElse(getInteger(keyAcresLockedAmountByUser(address)), 0)
215+ let lockedETA = valueOrElse(getInteger(keyAcresLockedEtaByUser(address)), 0)
216+ let now = lastBlock.timestamp
217+ let unstakableAmount = if (isBlacklistedPromo1(address))
218+ then ((oldAcresAmount - lockedAmount) - PROMO1_AMOUNT)
219+ else (oldAcresAmount - lockedAmount)
220+ if (if ((lockedETA > now))
221+ then (amount > unstakableAmount)
222+ else false)
223+ then throw(((("Only " + fixedPoint(unstakableAmount, 8)) + " ACRES can be unstaked now, wait until ") + toString(lockedETA)))
224+ else {
225+ let oldTotal = valueOrElse(getInteger(acresStakedTotalKey), 0)
226+ let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil)
227+ let claimedAcres = claimInternal(address, oldAcresAmount, valueOrElse(getInteger(timeKey), 0))
228+ $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(amountKey, (oldAcresAmount - amount)), IntegerEntry(acresStakedTotalKey, (oldTotal - amount)), ScriptTransfer(i.caller, (amount + claimedAcres), acresAssetId)], $Tuple2((amount + claimedAcres), wlgResult))
229+ }
230+ }
231+ }
259232
260233
261234
262235 @Callable(i)
263236 func unstakeAllAcresREADONLY (address) = {
264237 let amount = valueOrElse(getInteger(keyAcresStakedAmountByUser(address)), 0)
265238 let unstakedWithClaimed = unstakeAcresRO(amount, address)
266239 $Tuple2(nil, unstakedWithClaimed)
267240 }
268241
269242
270243
271244 @Callable(i)
272-func requestAcresCallback (amount,address) = if ((toString(i.caller) != acres2AddressStr))
245+func requestAcresCallback (amount) = if ((toString(i.caller) != acres2AddressStr))
273246 then throw("Permission denied")
274- else $Tuple2([ScriptTransfer(addressFromStringValue(address), amount, acresAssetId)], amount)
247+ else $Tuple2([ScriptTransfer(i.caller, amount, acresAssetId)], amount)
275248
276249
277250
278251 @Callable(i)
279252 func claimAcresREADONLY (address) = {
280253 let timeKey = keyAcresStakedTimeByUser(address)
281254 let amountKey = keyAcresStakedAmountByUser(address)
282255 let acresAmount = valueOrElse(getInteger(amountKey), 0)
283256 let lastTime = valueOrElse(getInteger(timeKey), 0)
284257 let claimedAcres = claimAcresInternal(address, acresAmount, lastTime)
285258 $Tuple2(nil, [claimedAcres, lastTime])
286259 }
287260
288261

github/deemru/w8io/026f985 
35.83 ms