tx · AuEfrewxgt3rXhtCg1pDwvebZAK5oA6AXscJsQf92sTT 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg: -0.00900000 Waves 2023.10.09 22:17 [2791501] smart account 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg > SELF 0.00000000 Waves
{ "type": 13, "id": "AuEfrewxgt3rXhtCg1pDwvebZAK5oA6AXscJsQf92sTT", "fee": 900000, "feeAssetId": null, "timestamp": 1696879061310, "version": 2, "chainId": 84, "sender": "3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg", "senderPublicKey": "5BN6FQeKuMm2XJYToUZvbBX4UELGpE3Z47P4q6sP46PG", "proofs": [ "3ya9idZ5dNC1E4cRtJjtbX8V2tmiooym7Dt4BwZ2c5S5cPmyzD7g7YZhp4h339JCj4eRyQuACoCMuNZ42BYUgU82" ], "script": "base64:BgIjCAISBAoCCAESABIDCgEBEgASBAoCCAESAwoBARIAEgMKAQgqAAhNSUxMSU9ONgCAgOmDsd4WAAlEQVlNSUxMSVMAgLiZKQEaa2V5QWNyZXNTdGFrZWRBbW91bnRCeVVzZXIBBGFkZHIJAKwCAgIYYWNyZXNTdGFrZWRBbW91bnRCeVVzZXJfBQRhZGRyABNhY3Jlc1N0YWtlZFRvdGFsS2V5AhZhY3Jlc1N0YWtlZEFtb3VudFRvdGFsAAp4cE5ld1NMYW5kAMCWsQIAD0RBSUxZUkVTQllQSUVDRQCA+NIBABVVU0RUMkFDUkVTX01VTFRJUExJRVIACgAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECDVVua25vd24gY2hhaW4AFWRlZmF1bHRSZXN0Q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QhsYXN0VGltZQkAlAoCBQNuaWwJAMwIAgUMY2xhaW1lZEFjcmVzCQDMCAIFCGxhc3RUaW1lBQNuaWwA3W+Xyw==", "height": 2791501, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B1d16LfBaJixeBHQmk8HZtQYtDKg6njRuwixFtqerjxP Next: FLHBoSXCwbhy7eiFPzemXD69etqWXeVrEKPxyNEpejoi Diff:
Old | New | Differences | |
---|---|---|---|
271 | 271 | ||
272 | 272 | ||
273 | 273 | @Callable(az) | |
274 | - | func sendAcres (d,aP) = if ((az.caller != | |
274 | + | func sendAcres (d,aP) = if ((az.caller != F)) | |
275 | 275 | then throw("Permission denied") | |
276 | 276 | else $Tuple2([ScriptTransfer(addressFromStringValue(d), aP, K)], aP) | |
277 | 277 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000000000 | |
5 | 5 | ||
6 | 6 | let b = 86400000 | |
7 | 7 | ||
8 | 8 | func c (d) = ("acresStakedAmountByUser_" + d) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | let e = "acresStakedAmountTotal" | |
12 | 12 | ||
13 | 13 | let f = 5000000 | |
14 | 14 | ||
15 | 15 | let g = 3456000 | |
16 | 16 | ||
17 | 17 | let h = 10 | |
18 | 18 | ||
19 | 19 | let i = take(drop(this.bytes, 1), 1) | |
20 | 20 | ||
21 | 21 | let j = { | |
22 | 22 | let k = i | |
23 | 23 | if ((base58'2W' == k)) | |
24 | 24 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
25 | 25 | else if ((base58'2T' == k)) | |
26 | 26 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
27 | 27 | else throw("Unknown chain") | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | let l = { | |
31 | 31 | let k = i | |
32 | 32 | if ((base58'2W' == k)) | |
33 | 33 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
34 | 34 | else if ((base58'2T' == k)) | |
35 | 35 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
36 | 36 | else throw("Unknown chain") | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | let m = "__" | |
40 | 40 | ||
41 | 41 | let n = 1000000 | |
42 | 42 | ||
43 | 43 | let o = 100000000 | |
44 | 44 | ||
45 | 45 | func p (q,r) = valueOrErrorMessage(getString(q, r), makeString(["mandatory ", toString(q), ".", r, " is not defined"], "")) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | let s = 1 | |
49 | 49 | ||
50 | 50 | let t = 2 | |
51 | 51 | ||
52 | 52 | let u = 4 | |
53 | 53 | ||
54 | 54 | let v = 8 | |
55 | 55 | ||
56 | 56 | func w () = "%s__restConfig" | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func x () = "%s__restAddr" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func y (z) = split_4C(p(z, w()), m) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func A (B,C) = valueOrErrorMessage(addressFromString(B[C]), ("Rest cfg doesn't contain address at index " + toString(C))) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | let D = addressFromStringValue(valueOrElse(getString(this, x()), l)) | |
69 | 69 | ||
70 | 70 | let B = y(D) | |
71 | 71 | ||
72 | 72 | let E = A(B, s) | |
73 | 73 | ||
74 | 74 | let F = A(B, t) | |
75 | 75 | ||
76 | 76 | let G = A(B, u) | |
77 | 77 | ||
78 | 78 | let H = A(B, v) | |
79 | 79 | ||
80 | 80 | let I = "acresIssuedAmount" | |
81 | 81 | ||
82 | 82 | let J = "acresAssetId" | |
83 | 83 | ||
84 | 84 | let K = valueOrErrorMessage(getBinary(H, J), "ACRES is not issued yet") | |
85 | 85 | ||
86 | 86 | func L (d) = ("acresStakedTimeByUser_" + d) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | let M = 0 | |
90 | 90 | ||
91 | 91 | func N () = "resTypesProportions" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func O (P) = ("stakedPiecesByOwner_" + P) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func Q (R) = { | |
98 | 98 | let k = R | |
99 | 99 | if ($isInstanceOf(k, "Int")) | |
100 | 100 | then { | |
101 | 101 | let S = k | |
102 | 102 | S | |
103 | 103 | } | |
104 | 104 | else throw("fail to cast into Int") | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func T (U) = { | |
109 | 109 | let k = U | |
110 | 110 | if ($isInstanceOf(k, "(Int, Int)")) | |
111 | 111 | then { | |
112 | 112 | let V = k | |
113 | 113 | V | |
114 | 114 | } | |
115 | 115 | else throw("fail to cast into (Int, Int)") | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func W (X) = { | |
120 | 120 | let Y = split(valueOrElse(getString(E, N()), "0_0_0_0_0_0"), "_") | |
121 | 121 | func Z (aa,ab) = (aa + parseIntValue(ab)) | |
122 | 122 | ||
123 | 123 | let ac = { | |
124 | 124 | let ad = Y | |
125 | 125 | let ae = size(ad) | |
126 | 126 | let af = 0 | |
127 | 127 | func ag (ah,ai) = if ((ai >= ae)) | |
128 | 128 | then ah | |
129 | 129 | else Z(ah, ad[ai]) | |
130 | 130 | ||
131 | 131 | func aj (ah,ai) = if ((ai >= ae)) | |
132 | 132 | then ah | |
133 | 133 | else throw("List size exceeds 6") | |
134 | 134 | ||
135 | 135 | aj(ag(ag(ag(ag(ag(ag(af, 0), 1), 2), 3), 4), 5), 6) | |
136 | 136 | } | |
137 | 137 | let ak = valueOrElse(getInteger(E, O(X)), 0) | |
138 | 138 | [ac, ak] | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func al (U,am) = { | |
143 | 143 | let an = pow(10, 0, am, 0, 0, DOWN) | |
144 | 144 | let ao = toString((U % an)) | |
145 | 145 | let ap = drop(toString(an), (1 + size(ao))) | |
146 | 146 | (((toString((U / an)) + ".") + ap) + ao) | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func aq () = Q(invoke(E, "saveLastTx", nil, nil)) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func ar (d,as,at) = { | |
154 | 154 | let au = (lastBlock.timestamp - at) | |
155 | 155 | let av = fraction(au, (g * as), (b * o)) | |
156 | 156 | let aw = Q(invoke(F, "sellResourcesWorldREADONLY", [av], nil)) | |
157 | 157 | let ax = max([0, aw]) | |
158 | 158 | (ax * h) | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func ay (d,as,at) = { | |
163 | 163 | let au = (lastBlock.timestamp - at) | |
164 | 164 | if ((0 > au)) | |
165 | 165 | then throw(((("Saved timestamp is in future, saved = " + toString(at)) + ", current = ") + toString(lastBlock.timestamp))) | |
166 | 166 | else { | |
167 | 167 | let av = fraction(au, (g * as), (b * o)) | |
168 | 168 | let aw = Q(invoke(F, "sellResourcesWorldREADONLY", [av], nil)) | |
169 | 169 | let ax = if ((0 >= aw)) | |
170 | 170 | then 0 | |
171 | 171 | else T(invoke(F, "sellResourcesWorld", [d, av], nil))._1 | |
172 | 172 | (ax * h) | |
173 | 173 | } | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | @Callable(az) | |
178 | 178 | func constructorV1 (aA,aB) = if ((az.caller != this)) | |
179 | 179 | then throw("Permission denied") | |
180 | 180 | else if (isDefined(getBinary(J))) | |
181 | 181 | then throw("Already initialized") | |
182 | 182 | else { | |
183 | 183 | let aC = (W("")[M] + aB) | |
184 | 184 | let aD = (a - (aC * o)) | |
185 | 185 | let aE = Issue("ACRES", "WavesLands land acres investment token", aD, 8, false, unit, 0) | |
186 | 186 | let aF = calculateAssetId(aE) | |
187 | 187 | [aE, IntegerEntry(I, aD), BinaryEntry(J, aF), StringEntry(x(), aA)] | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | ||
192 | 192 | @Callable(az) | |
193 | 193 | func stakeAcres () = { | |
194 | 194 | let aG = aq() | |
195 | 195 | let q = toString(az.caller) | |
196 | 196 | if ((size(az.payments) != 1)) | |
197 | 197 | then throw("exactly 1 payment must be attached") | |
198 | 198 | else { | |
199 | 199 | let aH = az.payments[0] | |
200 | 200 | let aI = aH.amount | |
201 | 201 | if (if (!(isDefined(aH.assetId))) | |
202 | 202 | then true | |
203 | 203 | else (value(aH.assetId) != K)) | |
204 | 204 | then throw("ACRES payments only!") | |
205 | 205 | else { | |
206 | 206 | let aJ = L(q) | |
207 | 207 | let aK = c(q) | |
208 | 208 | let aL = valueOrElse(getInteger(aK), 0) | |
209 | 209 | let aM = valueOrElse(getInteger(e), 0) | |
210 | 210 | let aN = invoke(G, "onStakeUnstakeLand", [q], nil) | |
211 | 211 | let aO = ay(q, aL, valueOrElse(getInteger(aJ), 0)) | |
212 | 212 | $Tuple2(((((if ((aO == 0)) | |
213 | 213 | then nil | |
214 | 214 | else [ScriptTransfer(az.caller, aO, K)]) :+ IntegerEntry(aJ, lastBlock.timestamp)) :+ IntegerEntry(aK, (aL + aI))) :+ IntegerEntry(e, (aM + aI))), $Tuple2(aG, aN)) | |
215 | 215 | } | |
216 | 216 | } | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | ||
221 | 221 | @Callable(az) | |
222 | 222 | func unstakeAcres (aP) = { | |
223 | 223 | let aG = aq() | |
224 | 224 | if ((0 >= aP)) | |
225 | 225 | then throw("Amount should be positive") | |
226 | 226 | else { | |
227 | 227 | let q = toString(az.caller) | |
228 | 228 | if ((size(az.payments) != 0)) | |
229 | 229 | then throw("No payments required") | |
230 | 230 | else { | |
231 | 231 | let aJ = L(q) | |
232 | 232 | let aK = c(q) | |
233 | 233 | let aL = valueOrElse(getInteger(aK), 0) | |
234 | 234 | if ((aP > aL)) | |
235 | 235 | then throw(((("You have only " + al(aL, 8)) + " ACRES staked, tried to unstake ") + al(aP, 8))) | |
236 | 236 | else { | |
237 | 237 | let aM = valueOrElse(getInteger(e), 0) | |
238 | 238 | let aN = invoke(G, "onStakeUnstakeLand", [q], nil) | |
239 | 239 | let aO = ay(q, aL, valueOrElse(getInteger(aJ), 0)) | |
240 | 240 | $Tuple2([IntegerEntry(aJ, lastBlock.timestamp), IntegerEntry(aK, (aL - aP)), IntegerEntry(e, (aM - aP)), ScriptTransfer(az.caller, (aP + aO), K)], $Tuple2(aG, aN)) | |
241 | 241 | } | |
242 | 242 | } | |
243 | 243 | } | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | ||
248 | 248 | @Callable(az) | |
249 | 249 | func buyAcres () = { | |
250 | 250 | let aG = aq() | |
251 | 251 | let q = toString(az.caller) | |
252 | 252 | if ((size(az.payments) != 1)) | |
253 | 253 | then throw("exactly 1 payment must be attached") | |
254 | 254 | else { | |
255 | 255 | let aH = az.payments[0] | |
256 | 256 | let aI = aH.amount | |
257 | 257 | if (if (!(isDefined(aH.assetId))) | |
258 | 258 | then true | |
259 | 259 | else (value(aH.assetId) != j)) | |
260 | 260 | then throw("USDT payments only!") | |
261 | 261 | else if ((n > aI)) | |
262 | 262 | then throw((("Min payment should be " + al(n, 6)) + " USDT")) | |
263 | 263 | else { | |
264 | 264 | let as = (aI * h) | |
265 | 265 | let aQ = Q(invoke(E, "updateAccStats", [q, fraction(f, as, (25 * o))], nil)) | |
266 | 266 | $Tuple2([ScriptTransfer(F, aI, j), ScriptTransfer(az.caller, as, K)], $Tuple2(aG, aQ)) | |
267 | 267 | } | |
268 | 268 | } | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | ||
273 | 273 | @Callable(az) | |
274 | - | func sendAcres (d,aP) = if ((az.caller != | |
274 | + | func sendAcres (d,aP) = if ((az.caller != F)) | |
275 | 275 | then throw("Permission denied") | |
276 | 276 | else $Tuple2([ScriptTransfer(addressFromStringValue(d), aP, K)], aP) | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | ||
280 | 280 | @Callable(az) | |
281 | 281 | func burnAcres (aP) = if ((az.caller != E)) | |
282 | 282 | then throw("Permission denied") | |
283 | 283 | else { | |
284 | 284 | let aR = (valueOrElse(getInteger(I), 0) - aP) | |
285 | 285 | if ((0 > aR)) | |
286 | 286 | then throw("Attempt to burn more ACRES, than exists") | |
287 | 287 | else $Tuple2([Burn(K, aP), IntegerEntry(I, aR)], aP) | |
288 | 288 | } | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | ||
292 | 292 | @Callable(az) | |
293 | 293 | func claimAcres () = { | |
294 | 294 | let aG = aq() | |
295 | 295 | let q = toString(az.caller) | |
296 | 296 | if ((size(az.payments) != 0)) | |
297 | 297 | then throw("No payments required") | |
298 | 298 | else { | |
299 | 299 | let aJ = L(q) | |
300 | 300 | let aK = c(q) | |
301 | 301 | let as = valueOrElse(getInteger(aK), 0) | |
302 | 302 | let aN = invoke(G, "onStakeUnstakeLand", [q], nil) | |
303 | 303 | let aO = ay(q, as, valueOrElse(getInteger(aJ), 0)) | |
304 | 304 | $Tuple2([IntegerEntry(aJ, lastBlock.timestamp), ScriptTransfer(az.caller, aO, K)], $Tuple2(aG, aN)) | |
305 | 305 | } | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | ||
310 | 310 | @Callable(az) | |
311 | 311 | func claimAcresREADONLY (q) = { | |
312 | 312 | let aJ = L(q) | |
313 | 313 | let aK = c(q) | |
314 | 314 | let as = valueOrElse(getInteger(aK), 0) | |
315 | 315 | let aS = valueOrElse(getInteger(aJ), 0) | |
316 | 316 | let aO = ar(q, as, aS) | |
317 | 317 | $Tuple2(nil, [aO, aS]) | |
318 | 318 | } | |
319 | 319 | ||
320 | 320 |
github/deemru/w8io/026f985 38.82 ms ◑