tx · 3RwkJJubCdpi2TwfMJ7Csn4TrgUY6UaRmqJo22G2F4hF

3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg:  -0.00800000 Waves

2023.09.22 21:28 [2766949] smart account 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg > SELF 0.00000000 Waves

{ "type": 13, "id": "3RwkJJubCdpi2TwfMJ7Csn4TrgUY6UaRmqJo22G2F4hF", "fee": 800000, "feeAssetId": null, "timestamp": 1695407322459, "version": 2, "chainId": 84, "sender": "3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg", "senderPublicKey": "5BN6FQeKuMm2XJYToUZvbBX4UELGpE3Z47P4q6sP46PG", "proofs": [ "3L7LcJoRJGBp3EwLL5DfekeN5Uex3p1RDvX9XbXe5zW5s1cxCjFhTS4dx3Ngdb6m9bkjsiB5s3zP3bumNY7F2ArZ" ], "script": "base64:BgIYCAISBAoCCAESABIDCgEBEgASAwoBARIAKQAITUlMTElPTjYAgIDpg7HeFgAJREFZTUlMTElTAIC4mSkBGmtleUFjcmVzU3Rha2VkQW1vdW50QnlVc2VyAQRhZGRyCQCsAgICGGFjcmVzU3Rha2VkQW1vdW50QnlVc2VyXwUEYWRkcgATYWNyZXNTdGFrZWRUb3RhbEtleQIWYWNyZXNTdGFrZWRBbW91bnRUb3RhbAAKeHBOZXdTTGFuZADAlrECAA9EQUlMWVJFU0JZUElFQ0UAgPjSAQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAt1c2R0QXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kDCQAAAgEBVAUHJG1hdGNoMAEgVbHYn3KHgu/l41uNrAWrZd6aQ6EvFrsF8xq3h6XxxRgJAAIBAg1Vbmtub3duIGNoYWluABVkZWZhdWx0Um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FkZHJlc3MECWFtb3VudEtleQkBGmtleUFjcmVzU3Rha2VkQW1vdW50QnlVc2VyAQUHYWRkcmVzcwQLYWNyZXNBbW91bnQJAQt2YWx1ZU9yRWxzZQIJAJ8IAQUJYW1vdW50S2V5AAAECXdsZ1Jlc3VsdAkA/AcEBQt3bGdDb250cmFjdAISb25TdGFrZVVuc3Rha2VMYW5kCQDMCAIFB2FkZHJlc3MFA25pbAUDbmlsBAxjbGFpbWVkQWNyZXMJAQ1jbGFpbUludGVybmFsAwUHYWRkcmVzcwULYWNyZXNBbW91bnQJAQt2YWx1ZU9yRWxzZQIJAJ8IAQUHdGltZUtleQAACQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIFB3RpbWVLZXkIBQlsYXN0QmxvY2sJdGltZXN0YW1wCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgUMY2xhaW1lZEFjcmVzBQxhY3Jlc0Fzc2V0SWQFA25pbAkAlAoCBQxwcm9sb2dSZXN1bHQFCXdsZ1Jlc3VsdAAJQEJ5", "height": 2766949, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AABqeUNNJUiw19hcKfAaXujgohBWq8wBi9LTRd7hXkvw Next: HZDMMmvAm4YJE5LhT21TD9pFuyZEcQWgFRnbd88xsLws Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 100000000000000
55
6-func b (c) = ("acresStakedAmountByUser_" + c)
6+let b = 86400000
7+
8+func c (d) = ("acresStakedAmountByUser_" + d)
79
810
9-let d = "acresStakedAmountTotal"
11+let e = "acresStakedAmountTotal"
1012
11-let e = 5000000
13+let f = 5000000
1214
13-let f = 3456000
14-
15-let g = 86400000
15+let g = 3456000
1616
1717 let h = 10
1818
8383
8484 let K = valueOrErrorMessage(getBinary(H, J), "ACRES is not issued yet")
8585
86-func L (c) = ("acresStakedTimeByUser_" + c)
86+func L (d) = ("acresStakedTimeByUser_" + d)
8787
8888
8989 let M = 0
150150 func aq () = Q(invoke(E, "saveLastTx", nil, nil))
151151
152152
153-func ar (c,as,at) = {
153+func ar (d,as,at) = {
154154 let au = (lastBlock.timestamp - at)
155155 if ((0 > au))
156156 then throw(((("Saved timestamp is in future, saved = " + toString(at)) + ", current = ") + toString(lastBlock.timestamp)))
157157 else {
158- let av = fraction(au, (f * as), (g * o))
159- let aw = ao(invoke(F, "sellResourcesWorld", [c, av], nil))._1
158+ let av = fraction(au, (g * as), (b * o))
159+ let aw = ao(invoke(F, "sellResourcesWorld", [d, av], nil))._1
160160 (aw * h)
161161 }
162162 }
192192 then throw("ACRES payments only!")
193193 else {
194194 let aH = L(q)
195- let aI = b(q)
195+ let aI = c(q)
196196 let aJ = valueOrElse(getInteger(aI), 0)
197- let aK = valueOrElse(getInteger(d), 0)
197+ let aK = valueOrElse(getInteger(e), 0)
198198 let aL = invoke(G, "onStakeUnstakeLand", [q], nil)
199199 let aM = ar(q, aJ, valueOrElse(getInteger(aH), 0))
200- $Tuple2([IntegerEntry(aH, lastBlock.timestamp), IntegerEntry(aI, (aJ + aG)), IntegerEntry(d, (aK + aG)), ScriptTransfer(ax.caller, aM, K)], $Tuple2(aE, aL))
200+ $Tuple2([IntegerEntry(aH, lastBlock.timestamp), IntegerEntry(aI, (aJ + aG)), IntegerEntry(e, (aK + aG)), ScriptTransfer(ax.caller, aM, K)], $Tuple2(aE, aL))
201201 }
202202 }
203203 }
212212 then throw("No payments required")
213213 else {
214214 let aH = L(q)
215- let aI = b(q)
215+ let aI = c(q)
216216 let aJ = valueOrElse(getInteger(aI), 0)
217217 if ((aN > aJ))
218218 then throw(((("You have only " + ai(aJ, 8)) + " ACRES staked, tried to unstake ") + ai(aN, 8)))
219219 else {
220- let aK = valueOrElse(getInteger(d), 0)
220+ let aK = valueOrElse(getInteger(e), 0)
221221 let aL = invoke(G, "onStakeUnstakeLand", [q], nil)
222222 let aM = ar(q, aJ, valueOrElse(getInteger(aH), 0))
223- $Tuple2([IntegerEntry(aH, lastBlock.timestamp), IntegerEntry(aI, (aJ - aN)), IntegerEntry(d, (aK - aN)), ScriptTransfer(ax.caller, (aN + aM), K)], $Tuple2(aE, aL))
223+ $Tuple2([IntegerEntry(aH, lastBlock.timestamp), IntegerEntry(aI, (aJ - aN)), IntegerEntry(e, (aK - aN)), ScriptTransfer(ax.caller, (aN + aM), K)], $Tuple2(aE, aL))
224224 }
225225 }
226226 }
244244 then throw((("Min payment should be " + ai(n, 6)) + " USDT"))
245245 else {
246246 let as = (aG * h)
247- let aO = Q(invoke(E, "updateAccStats", [q, fraction(e, as, (25 * o))], nil))
247+ let aO = Q(invoke(E, "updateAccStats", [q, fraction(f, as, (25 * o))], nil))
248248 $Tuple2([ScriptTransfer(F, aG, j), ScriptTransfer(ax.caller, as, K)], $Tuple2(aE, aO))
249249 }
250250 }
267267 then throw("No payments required")
268268 else {
269269 let aH = L(q)
270- let aI = b(q)
270+ let aI = c(q)
271271 let as = valueOrElse(getInteger(aI), 0)
272272 let aL = invoke(G, "onStakeUnstakeLand", [q], nil)
273273 let aM = ar(q, as, valueOrElse(getInteger(aH), 0))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 100000000000000
55
6-func b (c) = ("acresStakedAmountByUser_" + c)
6+let b = 86400000
7+
8+func c (d) = ("acresStakedAmountByUser_" + d)
79
810
9-let d = "acresStakedAmountTotal"
11+let e = "acresStakedAmountTotal"
1012
11-let e = 5000000
13+let f = 5000000
1214
13-let f = 3456000
14-
15-let g = 86400000
15+let g = 3456000
1616
1717 let h = 10
1818
1919 let i = take(drop(this.bytes, 1), 1)
2020
2121 let j = {
2222 let k = i
2323 if ((base58'2W' == k))
2424 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
2525 else if ((base58'2T' == k))
2626 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
2727 else throw("Unknown chain")
2828 }
2929
3030 let l = {
3131 let k = i
3232 if ((base58'2W' == k))
3333 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
3434 else if ((base58'2T' == k))
3535 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
3636 else throw("Unknown chain")
3737 }
3838
3939 let m = "__"
4040
4141 let n = 1000000
4242
4343 let o = 100000000
4444
4545 func p (q,r) = valueOrErrorMessage(getString(q, r), makeString(["mandatory ", toString(q), ".", r, " is not defined"], ""))
4646
4747
4848 let s = 1
4949
5050 let t = 2
5151
5252 let u = 4
5353
5454 let v = 8
5555
5656 func w () = "%s__restConfig"
5757
5858
5959 func x () = "%s__restAddr"
6060
6161
6262 func y (z) = split_4C(p(z, w()), m)
6363
6464
6565 func A (B,C) = valueOrErrorMessage(addressFromString(B[C]), ("Rest cfg doesn't contain address at index " + toString(C)))
6666
6767
6868 let D = addressFromStringValue(valueOrElse(getString(this, x()), l))
6969
7070 let B = y(D)
7171
7272 let E = A(B, s)
7373
7474 let F = A(B, t)
7575
7676 let G = A(B, u)
7777
7878 let H = A(B, v)
7979
8080 let I = "acresIssuedAmount"
8181
8282 let J = "acresAssetId"
8383
8484 let K = valueOrErrorMessage(getBinary(H, J), "ACRES is not issued yet")
8585
86-func L (c) = ("acresStakedTimeByUser_" + c)
86+func L (d) = ("acresStakedTimeByUser_" + d)
8787
8888
8989 let M = 0
9090
9191 func N () = "resTypesProportions"
9292
9393
9494 func O (P) = ("stakedPiecesByOwner_" + P)
9595
9696
9797 func Q (R) = {
9898 let k = R
9999 if ($isInstanceOf(k, "Int"))
100100 then {
101101 let S = k
102102 S
103103 }
104104 else throw("fail to cast into Int")
105105 }
106106
107107
108108 func T (U) = {
109109 let V = split(valueOrElse(getString(E, N()), "0_0_0_0_0_0"), "_")
110110 func W (X,Y) = (X + parseIntValue(Y))
111111
112112 let Z = {
113113 let aa = V
114114 let ab = size(aa)
115115 let ac = 0
116116 func ad (ae,af) = if ((af >= ab))
117117 then ae
118118 else W(ae, aa[af])
119119
120120 func ag (ae,af) = if ((af >= ab))
121121 then ae
122122 else throw("List size exceeds 6")
123123
124124 ag(ad(ad(ad(ad(ad(ad(ac, 0), 1), 2), 3), 4), 5), 6)
125125 }
126126 let ah = valueOrElse(getInteger(E, O(U)), 0)
127127 [Z, ah]
128128 }
129129
130130
131131 func ai (aj,ak) = {
132132 let al = pow(10, 0, ak, 0, 0, DOWN)
133133 let am = toString((aj % al))
134134 let an = drop(toString(al), (1 + size(am)))
135135 (((toString((aj / al)) + ".") + an) + am)
136136 }
137137
138138
139139 func ao (aj) = {
140140 let k = aj
141141 if ($isInstanceOf(k, "(Int, Int)"))
142142 then {
143143 let ap = k
144144 ap
145145 }
146146 else throw("fail to cast into (Int, Int)")
147147 }
148148
149149
150150 func aq () = Q(invoke(E, "saveLastTx", nil, nil))
151151
152152
153-func ar (c,as,at) = {
153+func ar (d,as,at) = {
154154 let au = (lastBlock.timestamp - at)
155155 if ((0 > au))
156156 then throw(((("Saved timestamp is in future, saved = " + toString(at)) + ", current = ") + toString(lastBlock.timestamp)))
157157 else {
158- let av = fraction(au, (f * as), (g * o))
159- let aw = ao(invoke(F, "sellResourcesWorld", [c, av], nil))._1
158+ let av = fraction(au, (g * as), (b * o))
159+ let aw = ao(invoke(F, "sellResourcesWorld", [d, av], nil))._1
160160 (aw * h)
161161 }
162162 }
163163
164164
165165 @Callable(ax)
166166 func constructorV1 (ay,az) = if ((ax.caller != this))
167167 then throw("Permission denied")
168168 else if (isDefined(getBinary(J)))
169169 then throw("Already initialized")
170170 else {
171171 let aA = (T("")[M] + az)
172172 let aB = (a - (aA * o))
173173 let aC = Issue("ACRES", "WavesLands land acres investment token", aB, 8, false, unit, 0)
174174 let aD = calculateAssetId(aC)
175175 [aC, IntegerEntry(I, aB), BinaryEntry(J, aD), StringEntry(x(), ay)]
176176 }
177177
178178
179179
180180 @Callable(ax)
181181 func stakeAcres () = {
182182 let aE = aq()
183183 let q = toString(ax.caller)
184184 if ((size(ax.payments) != 1))
185185 then throw("exactly 1 payment must be attached")
186186 else {
187187 let aF = ax.payments[0]
188188 let aG = aF.amount
189189 if (if (!(isDefined(aF.assetId)))
190190 then true
191191 else (value(aF.assetId) != K))
192192 then throw("ACRES payments only!")
193193 else {
194194 let aH = L(q)
195- let aI = b(q)
195+ let aI = c(q)
196196 let aJ = valueOrElse(getInteger(aI), 0)
197- let aK = valueOrElse(getInteger(d), 0)
197+ let aK = valueOrElse(getInteger(e), 0)
198198 let aL = invoke(G, "onStakeUnstakeLand", [q], nil)
199199 let aM = ar(q, aJ, valueOrElse(getInteger(aH), 0))
200- $Tuple2([IntegerEntry(aH, lastBlock.timestamp), IntegerEntry(aI, (aJ + aG)), IntegerEntry(d, (aK + aG)), ScriptTransfer(ax.caller, aM, K)], $Tuple2(aE, aL))
200+ $Tuple2([IntegerEntry(aH, lastBlock.timestamp), IntegerEntry(aI, (aJ + aG)), IntegerEntry(e, (aK + aG)), ScriptTransfer(ax.caller, aM, K)], $Tuple2(aE, aL))
201201 }
202202 }
203203 }
204204
205205
206206
207207 @Callable(ax)
208208 func unstakeAcres (aN) = {
209209 let aE = aq()
210210 let q = toString(ax.caller)
211211 if ((size(ax.payments) != 0))
212212 then throw("No payments required")
213213 else {
214214 let aH = L(q)
215- let aI = b(q)
215+ let aI = c(q)
216216 let aJ = valueOrElse(getInteger(aI), 0)
217217 if ((aN > aJ))
218218 then throw(((("You have only " + ai(aJ, 8)) + " ACRES staked, tried to unstake ") + ai(aN, 8)))
219219 else {
220- let aK = valueOrElse(getInteger(d), 0)
220+ let aK = valueOrElse(getInteger(e), 0)
221221 let aL = invoke(G, "onStakeUnstakeLand", [q], nil)
222222 let aM = ar(q, aJ, valueOrElse(getInteger(aH), 0))
223- $Tuple2([IntegerEntry(aH, lastBlock.timestamp), IntegerEntry(aI, (aJ - aN)), IntegerEntry(d, (aK - aN)), ScriptTransfer(ax.caller, (aN + aM), K)], $Tuple2(aE, aL))
223+ $Tuple2([IntegerEntry(aH, lastBlock.timestamp), IntegerEntry(aI, (aJ - aN)), IntegerEntry(e, (aK - aN)), ScriptTransfer(ax.caller, (aN + aM), K)], $Tuple2(aE, aL))
224224 }
225225 }
226226 }
227227
228228
229229
230230 @Callable(ax)
231231 func buyAcres () = {
232232 let aE = aq()
233233 let q = toString(ax.caller)
234234 if ((size(ax.payments) != 1))
235235 then throw("exactly 1 payment must be attached")
236236 else {
237237 let aF = ax.payments[0]
238238 let aG = aF.amount
239239 if (if (!(isDefined(aF.assetId)))
240240 then true
241241 else (value(aF.assetId) != j))
242242 then throw("USDT payments only!")
243243 else if ((n > aG))
244244 then throw((("Min payment should be " + ai(n, 6)) + " USDT"))
245245 else {
246246 let as = (aG * h)
247- let aO = Q(invoke(E, "updateAccStats", [q, fraction(e, as, (25 * o))], nil))
247+ let aO = Q(invoke(E, "updateAccStats", [q, fraction(f, as, (25 * o))], nil))
248248 $Tuple2([ScriptTransfer(F, aG, j), ScriptTransfer(ax.caller, as, K)], $Tuple2(aE, aO))
249249 }
250250 }
251251 }
252252
253253
254254
255255 @Callable(ax)
256256 func burnAcres (aN) = if ((ax.caller != E))
257257 then throw("Permission denied")
258258 else $Tuple2([Burn(K, aN)], aN)
259259
260260
261261
262262 @Callable(ax)
263263 func claimAcres () = {
264264 let aE = aq()
265265 let q = toString(ax.caller)
266266 if ((size(ax.payments) != 0))
267267 then throw("No payments required")
268268 else {
269269 let aH = L(q)
270- let aI = b(q)
270+ let aI = c(q)
271271 let as = valueOrElse(getInteger(aI), 0)
272272 let aL = invoke(G, "onStakeUnstakeLand", [q], nil)
273273 let aM = ar(q, as, valueOrElse(getInteger(aH), 0))
274274 $Tuple2([IntegerEntry(aH, lastBlock.timestamp), ScriptTransfer(ax.caller, aM, K)], $Tuple2(aE, aL))
275275 }
276276 }
277277
278278

github/deemru/w8io/026f985 
49.96 ms