tx · 9gmf5RJcQbewMGKxx6K7fcnDpRESXNZcodpFrVUQbcSm 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg: -0.01300000 Waves 2023.11.23 20:24 [2856325] smart account 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg > SELF 0.00000000 Waves
{ "type": 13, "id": "9gmf5RJcQbewMGKxx6K7fcnDpRESXNZcodpFrVUQbcSm", "fee": 1300000, "feeAssetId": null, "timestamp": 1700760319777, "version": 2, "chainId": 84, "sender": "3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg", "senderPublicKey": "5BN6FQeKuMm2XJYToUZvbBX4UELGpE3Z47P4q6sP46PG", "proofs": [ "XniKct8JiKZacHtMfhML7oKs8o5JeXD2jR6CX8bphLv18WpEzkkmFLrHd1GHXrvg1H59omWpYSL6dRyVdbvfNJu" ], "script": "base64:BgIqCAISBAoCCAESAwoBARIAEgASBAoCCAESBQoDCAEBEgMKAQESABIDCgEINQAITUlMTElPTjYAgIDpg7HeFgAJREFZTUlMTElTAIC4mSkBGmtleUFjcmVzU3Rha2VkQW1vdW50QnlVc2VyAQRhZGRyCQCsAgICGGFjcmVzU3Rha2VkQW1vdW50QnlVc2VyXwUEYWRkcgEaa2V5QWNyZXNMb2NrZWRBbW91bnRCeVVzZXIBBGFkZHIJAKwCAgIYYWNyZXNMb2NrZWRBbW91bnRCeVVzZXJfBQRhZGRyARdrZXlBY3Jlc0xvY2tlZEV0YUJ5VXNlcgEEYWRkcgkArAICAhVhY3Jlc0xvY2tlZEV0YUJ5VXNlcl8FBGFkZHIAE2FjcmVzU3Rha2VkVG90YWxLZXkCFmFjcmVzU3Rha2VkQW1vdW50VG90YWwACnhwTmV3U0xhbmQAwJaxAgAPREFJTFlSRVNCWVBJRUNFAID40gEAFVVTRFQyQUNSRVNfTVVMVElQTElFUgAKAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALdXNkdEFzc2V0SWQEByRt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bGFpbUludGVybmFsAwUHYWRkcmVzcwULYWNyZXNBbW91bnQJAQt2YWx1ZU9yRWxzZQIJAJ8IAQUHdGltZUtleQAACQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIFB3RpbWVLZXkIBQlsYXN0QmxvY2sJdGltZXN0YW1wCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgUMY2xhaW1lZEFjcmVzBQxhY3Jlc0Fzc2V0SWQFA25pbAkAlAoCBQxwcm9sb2dSZXN1bHQFCXdsZ1Jlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpARJjbGFpbUFjcmVzUkVBRE9OTFkBB2FkZHJlc3MEB3RpbWVLZXkJARhrZXlBY3Jlc1N0YWtlZFRpbWVCeVVzZXIBBQdhZGRyZXNzBAlhbW91bnRLZXkJARprZXlBY3Jlc1N0YWtlZEFtb3VudEJ5VXNlcgEFB2FkZHJlc3MEC2FjcmVzQW1vdW50CQELdmFsdWVPckVsc2UCCQCfCAEFCWFtb3VudEtleQAABAhsYXN0VGltZQkBC3ZhbHVlT3JFbHNlAgkAnwgBBQd0aW1lS2V5AAAEDGNsYWltZWRBY3JlcwkBEmNsYWltQWNyZXNJbnRlcm5hbAMFB2FkZHJlc3MFC2FjcmVzQW1vdW50BQhsYXN0VGltZQkAlAoCBQNuaWwJAMwIAgUMY2xhaW1lZEFjcmVzCQDMCAIFCGxhc3RUaW1lBQNuaWwAmWuMTg==", "height": 2856325, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BGvizN92u9sZsWk31nuG8jFjXjeqFEuggia5JXhAVH26 Next: Amj5RL6rhLAdkb3chBndRjcga93XYgq4KYd4mNSSQF2D Diff:
Old | New | Differences | |
---|---|---|---|
182 | 182 | if ((base58'2W' == m)) | |
183 | 183 | then 1701043199999 | |
184 | 184 | else if ((base58'2T' == m)) | |
185 | - | then | |
185 | + | then 1700496000000 | |
186 | 186 | else throw("Unknown chain") | |
187 | 187 | } | |
188 | 188 |
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 | func e (d) = ("acresLockedAmountByUser_" + d) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f (d) = ("acresLockedEtaByUser_" + d) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | let g = "acresStakedAmountTotal" | |
18 | 18 | ||
19 | 19 | let h = 5000000 | |
20 | 20 | ||
21 | 21 | let i = 3456000 | |
22 | 22 | ||
23 | 23 | let j = 10 | |
24 | 24 | ||
25 | 25 | let k = take(drop(this.bytes, 1), 1) | |
26 | 26 | ||
27 | 27 | let l = { | |
28 | 28 | let m = k | |
29 | 29 | if ((base58'2W' == m)) | |
30 | 30 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
31 | 31 | else if ((base58'2T' == m)) | |
32 | 32 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
33 | 33 | else throw("Unknown chain") | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | let n = { | |
37 | 37 | let m = k | |
38 | 38 | if ((base58'2W' == m)) | |
39 | 39 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
40 | 40 | else if ((base58'2T' == m)) | |
41 | 41 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
42 | 42 | else throw("Unknown chain") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | let o = "promo2Map" | |
46 | 46 | ||
47 | 47 | let p = "__" | |
48 | 48 | ||
49 | 49 | let q = 1000000 | |
50 | 50 | ||
51 | 51 | let r = 100000000 | |
52 | 52 | ||
53 | 53 | func s (t,u) = valueOrErrorMessage(getString(t, u), makeString(["mandatory ", toString(t), ".", u, " is not defined"], "")) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | let v = 1 | |
57 | 57 | ||
58 | 58 | let w = 2 | |
59 | 59 | ||
60 | 60 | let x = 4 | |
61 | 61 | ||
62 | 62 | let y = 8 | |
63 | 63 | ||
64 | 64 | func z () = "%s__restConfig" | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func A () = "%s__restAddr" | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func B (C) = split_4C(s(C, z()), p) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func D (E,F) = valueOrErrorMessage(addressFromString(E[F]), ("Rest cfg doesn't contain address at index " + toString(F))) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | let G = addressFromStringValue(valueOrElse(getString(this, A()), n)) | |
77 | 77 | ||
78 | 78 | let E = B(G) | |
79 | 79 | ||
80 | 80 | let H = D(E, v) | |
81 | 81 | ||
82 | 82 | let I = D(E, w) | |
83 | 83 | ||
84 | 84 | let J = D(E, x) | |
85 | 85 | ||
86 | 86 | let K = D(E, y) | |
87 | 87 | ||
88 | 88 | let L = "acresIssuedAmount" | |
89 | 89 | ||
90 | 90 | let M = "acresAssetId" | |
91 | 91 | ||
92 | 92 | let N = valueOrErrorMessage(getBinary(K, M), "ACRES is not issued yet") | |
93 | 93 | ||
94 | 94 | func O (d) = ("acresStakedTimeByUser_" + d) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | let P = 0 | |
98 | 98 | ||
99 | 99 | func Q () = "resTypesProportions" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func R (S) = ("stakedPiecesByOwner_" + S) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func T (U) = { | |
106 | 106 | let m = U | |
107 | 107 | if ($isInstanceOf(m, "Int")) | |
108 | 108 | then { | |
109 | 109 | let V = m | |
110 | 110 | V | |
111 | 111 | } | |
112 | 112 | else throw("fail to cast into Int") | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func W (X) = { | |
117 | 117 | let m = X | |
118 | 118 | if ($isInstanceOf(m, "(Int, Int)")) | |
119 | 119 | then { | |
120 | 120 | let Y = m | |
121 | 121 | Y | |
122 | 122 | } | |
123 | 123 | else throw("fail to cast into (Int, Int)") | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func Z (aa) = { | |
128 | 128 | let ab = split(valueOrElse(getString(H, Q()), "0_0_0_0_0_0"), "_") | |
129 | 129 | func ac (ad,ae) = (ad + parseIntValue(ae)) | |
130 | 130 | ||
131 | 131 | let af = { | |
132 | 132 | let ag = ab | |
133 | 133 | let ah = size(ag) | |
134 | 134 | let ai = 0 | |
135 | 135 | func aj (ak,al) = if ((al >= ah)) | |
136 | 136 | then ak | |
137 | 137 | else ac(ak, ag[al]) | |
138 | 138 | ||
139 | 139 | func am (ak,al) = if ((al >= ah)) | |
140 | 140 | then ak | |
141 | 141 | else throw("List size exceeds 6") | |
142 | 142 | ||
143 | 143 | am(aj(aj(aj(aj(aj(aj(ai, 0), 1), 2), 3), 4), 5), 6) | |
144 | 144 | } | |
145 | 145 | let an = valueOrElse(getInteger(H, R(aa)), 0) | |
146 | 146 | [af, an] | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ao (X,ap) = { | |
151 | 151 | let aq = pow(10, 0, ap, 0, 0, DOWN) | |
152 | 152 | let ar = toString((X % aq)) | |
153 | 153 | let as = drop(toString(aq), (1 + size(ar))) | |
154 | 154 | (((toString((X / aq)) + ".") + as) + ar) | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func at (X,au) = { | |
159 | 159 | let av = toString(X) | |
160 | 160 | let as = drop(toString(pow(10, 0, (au - size(av)), 0, 0, DOWN)), 1) | |
161 | 161 | (as + av) | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | let aw = 10000000 | |
166 | 166 | ||
167 | 167 | let ax = "3P2NGX4Q5nge1MCauwQW5aqYLdkccSGj1Ep_3P2xFAHW9yhyNohYozWd4HFhEXZu3bsNSoR_3P2yKaZ2gvn9Xe5tti81a7P9LZhHgjvToV9_3P37zQ3cf2ecu55RmJqEiGSivdzN9avt3m9_3P4az6dtzsvGCWFAxa94UdevKzXyEwxEiFG_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9cPEmvVvhXUr8SvhANKhsa_3PDGE9tKQizaeZFeDDq5aYSv89nwYbfirpZ_3PDMKQTCrUPZECVXEJJ8m1sHtutSu1naSf1_3PGh2Qu6Yvx8GTCRRVNvBUVZLdaidYSaxo5_3PKkmAtbSK5D2hQdo1RfEg8eXyMbDcRUc92_3PLMnbxzssP8W8E8XjJ1RLBBg8UZL8Cz3P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e" | |
168 | 168 | ||
169 | 169 | let ay = 4970178 | |
170 | 170 | ||
171 | 171 | let az = { | |
172 | 172 | let m = k | |
173 | 173 | if ((base58'2W' == m)) | |
174 | 174 | then 1700524800000 | |
175 | 175 | else if ((base58'2T' == m)) | |
176 | 176 | then 1700420400000 | |
177 | 177 | else throw("Unknown chain") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | let aA = { | |
181 | 181 | let m = k | |
182 | 182 | if ((base58'2W' == m)) | |
183 | 183 | then 1701043199999 | |
184 | 184 | else if ((base58'2T' == m)) | |
185 | - | then | |
185 | + | then 1700496000000 | |
186 | 186 | else throw("Unknown chain") | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | func aB (d) = contains(ax, d) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func aC () = T(reentrantInvoke(H, "saveLastTx", nil, nil)) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func aD (d,aE,aF) = { | |
196 | 196 | let aG = (lastBlock.timestamp - aF) | |
197 | 197 | let aH = fraction(aG, (i * aE), (b * r)) | |
198 | 198 | let aI = T(invoke(I, "sellResourcesWorldREADONLY", [aH], nil)) | |
199 | 199 | let aJ = max([0, aI]) | |
200 | 200 | (aJ * j) | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aK (d,aE,aF) = { | |
205 | 205 | let aG = (lastBlock.timestamp - aF) | |
206 | 206 | if ((0 > aG)) | |
207 | 207 | then throw(((("Saved timestamp is in future, saved = " + toString(aF)) + ", current = ") + toString(lastBlock.timestamp))) | |
208 | 208 | else { | |
209 | 209 | let aH = fraction(aG, (i * aE), (b * r)) | |
210 | 210 | let aI = T(invoke(I, "sellResourcesWorldREADONLY", [aH], nil)) | |
211 | 211 | let aJ = if ((0 >= aI)) | |
212 | 212 | then 0 | |
213 | 213 | else W(invoke(I, "sellResourcesWorld", [d, aH], nil))._1 | |
214 | 214 | (aJ * j) | |
215 | 215 | } | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aL (aM,aN,aO,aP) = { | |
220 | 220 | let aQ = lastBlock.timestamp | |
221 | 221 | let aR = max([0, (aN - aQ)]) | |
222 | 222 | let aS = max([0, (aP - aQ)]) | |
223 | 223 | let aT = (aM + aO) | |
224 | 224 | let aU = if ((aT == 0)) | |
225 | 225 | then 0 | |
226 | 226 | else (fraction(aR, aM, aT) + fraction(aS, aO, aT)) | |
227 | 227 | (aQ + aU) | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | @Callable(aV) | |
232 | 232 | func constructorV1 (aW,aX) = if ((aV.caller != this)) | |
233 | 233 | then throw("Permission denied") | |
234 | 234 | else if (isDefined(getBinary(M))) | |
235 | 235 | then throw("Already initialized") | |
236 | 236 | else { | |
237 | 237 | let aY = (Z("")[P] + aX) | |
238 | 238 | let aZ = (a - (aY * r)) | |
239 | 239 | let ba = Issue("ACRES", "WavesLands land acres investment token", aZ, 8, false, unit, 0) | |
240 | 240 | let bb = calculateAssetId(ba) | |
241 | 241 | [ba, IntegerEntry(L, aZ), BinaryEntry(M, bb), StringEntry(A(), aW)] | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | ||
246 | 246 | @Callable(aV) | |
247 | 247 | func unstakeAcres (bc) = { | |
248 | 248 | let bd = aC() | |
249 | 249 | if ((bd == bd)) | |
250 | 250 | then if ((0 >= bc)) | |
251 | 251 | then throw("Amount should be positive") | |
252 | 252 | else { | |
253 | 253 | let t = toString(aV.caller) | |
254 | 254 | if ((size(aV.payments) != 0)) | |
255 | 255 | then throw("No payments required") | |
256 | 256 | else { | |
257 | 257 | let be = O(t) | |
258 | 258 | let bf = c(t) | |
259 | 259 | let bg = valueOrElse(getInteger(bf), 0) | |
260 | 260 | if ((bc > bg)) | |
261 | 261 | then throw(((("You have only " + ao(bg, 8)) + " ACRES staked, tried to unstake ") + ao(bc, 8))) | |
262 | 262 | else { | |
263 | 263 | let bh = valueOrElse(getInteger(e(t)), 0) | |
264 | 264 | let bi = valueOrElse(getInteger(f(t)), 0) | |
265 | 265 | let aQ = lastBlock.timestamp | |
266 | 266 | if (if ((aQ >= az)) | |
267 | 267 | then (aA >= aQ) | |
268 | 268 | else false) | |
269 | 269 | then throw("You cannot unstake ACRES during Promo2") | |
270 | 270 | else { | |
271 | 271 | let bj = if (aB(t)) | |
272 | 272 | then ((bg - bh) - ay) | |
273 | 273 | else (bg - bh) | |
274 | 274 | if (if ((bi > aQ)) | |
275 | 275 | then (bc > bj) | |
276 | 276 | else false) | |
277 | 277 | then throw(((("Only " + ao(bj, 8)) + " ACRES can be unstaked now, wait until ") + toString(bi))) | |
278 | 278 | else { | |
279 | 279 | let bk = valueOrElse(getInteger(g), 0) | |
280 | 280 | let bl = invoke(J, "onStakeUnstakeLand", [t], nil) | |
281 | 281 | let bm = aK(t, bg, valueOrElse(getInteger(be), 0)) | |
282 | 282 | $Tuple2([IntegerEntry(be, lastBlock.timestamp), IntegerEntry(bf, (bg - bc)), IntegerEntry(g, (bk - bc)), ScriptTransfer(aV.caller, (bc + bm), N)], $Tuple2(bd, bl)) | |
283 | 283 | } | |
284 | 284 | } | |
285 | 285 | } | |
286 | 286 | } | |
287 | 287 | } | |
288 | 288 | else throw("Strict value is not equal to itself.") | |
289 | 289 | } | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | ||
293 | 293 | @Callable(aV) | |
294 | 294 | func stakeAcres () = { | |
295 | 295 | let bd = aC() | |
296 | 296 | if ((bd == bd)) | |
297 | 297 | then { | |
298 | 298 | let t = toString(aV.caller) | |
299 | 299 | if ((size(aV.payments) != 1)) | |
300 | 300 | then throw("exactly 1 payment must be attached") | |
301 | 301 | else { | |
302 | 302 | let bn = aV.payments[0] | |
303 | 303 | let bo = bn.amount | |
304 | 304 | if (if (!(isDefined(bn.assetId))) | |
305 | 305 | then true | |
306 | 306 | else (value(bn.assetId) != N)) | |
307 | 307 | then throw("ACRES payments only!") | |
308 | 308 | else { | |
309 | 309 | let bl = invoke(J, "onStakeUnstakeLand", [t], nil) | |
310 | 310 | if ((bl == bl)) | |
311 | 311 | then { | |
312 | 312 | let aQ = lastBlock.timestamp | |
313 | 313 | if (if ((az > aQ)) | |
314 | 314 | then true | |
315 | 315 | else (aQ > aA)) | |
316 | 316 | then { | |
317 | 317 | let be = O(t) | |
318 | 318 | let bf = c(t) | |
319 | 319 | let bg = valueOrElse(getInteger(bf), 0) | |
320 | 320 | let bk = valueOrElse(getInteger(g), 0) | |
321 | 321 | let bm = aK(t, bg, valueOrElse(getInteger(be), 0)) | |
322 | 322 | $Tuple2(((((if ((bm == 0)) | |
323 | 323 | then nil | |
324 | 324 | else [ScriptTransfer(aV.caller, bm, N)]) :+ IntegerEntry(be, lastBlock.timestamp)) :+ IntegerEntry(bf, (bg + bo))) :+ IntegerEntry(g, (bk + bo))), $Tuple2(bd, bl)) | |
325 | 325 | } | |
326 | 326 | else if ((aw > bo)) | |
327 | 327 | then throw((("Min staked amount during promo action should be at least " + ao(aw, 8)) + " ACRES")) | |
328 | 328 | else { | |
329 | 329 | let bp = invoke(this, "sendLockedAcres", [t, bo, 30], nil) | |
330 | 330 | let bq = valueOrElse(getString(o), "") | |
331 | 331 | let br = if (contains(bq, t)) | |
332 | 332 | then { | |
333 | 333 | let bs = split_51C(bq, t) | |
334 | 334 | let aM = parseIntValue(take(drop(bs[1], 1), 14)) | |
335 | 335 | ((((bs[0] + t) + ":") + at((aM + bo), 14)) + drop(bs[1], 15)) | |
336 | 336 | } | |
337 | 337 | else { | |
338 | 338 | let bt = ((t + ":") + at(bo, 14)) | |
339 | 339 | if ((bq == "")) | |
340 | 340 | then bt | |
341 | 341 | else ((bq + "_") + bt) | |
342 | 342 | } | |
343 | 343 | $Tuple2([StringEntry(o, br)], $Tuple3(bd, bl, bp)) | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | else throw("Strict value is not equal to itself.") | |
347 | 347 | } | |
348 | 348 | } | |
349 | 349 | } | |
350 | 350 | else throw("Strict value is not equal to itself.") | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | 354 | ||
355 | 355 | @Callable(aV) | |
356 | 356 | func buyAcres () = { | |
357 | 357 | let bd = aC() | |
358 | 358 | if ((bd == bd)) | |
359 | 359 | then { | |
360 | 360 | let t = toString(aV.caller) | |
361 | 361 | if ((size(aV.payments) != 1)) | |
362 | 362 | then throw("exactly 1 payment must be attached") | |
363 | 363 | else { | |
364 | 364 | let bn = aV.payments[0] | |
365 | 365 | let bo = bn.amount | |
366 | 366 | if (if (!(isDefined(bn.assetId))) | |
367 | 367 | then true | |
368 | 368 | else (value(bn.assetId) != l)) | |
369 | 369 | then throw("USDT payments only!") | |
370 | 370 | else if ((q > bo)) | |
371 | 371 | then throw((("Min payment should be " + ao(q, 6)) + " USDT")) | |
372 | 372 | else { | |
373 | 373 | let aE = (bo * j) | |
374 | 374 | let bu = T(invoke(H, "updateAccStats", [t, fraction(h, aE, (25 * r))], nil)) | |
375 | 375 | $Tuple2([ScriptTransfer(I, bo, l), ScriptTransfer(aV.caller, aE, N)], $Tuple2(bd, bu)) | |
376 | 376 | } | |
377 | 377 | } | |
378 | 378 | } | |
379 | 379 | else throw("Strict value is not equal to itself.") | |
380 | 380 | } | |
381 | 381 | ||
382 | 382 | ||
383 | 383 | ||
384 | 384 | @Callable(aV) | |
385 | 385 | func sendAcres (d,bc) = if ((aV.caller != I)) | |
386 | 386 | then throw("Permission denied") | |
387 | 387 | else $Tuple2([ScriptTransfer(addressFromStringValue(d), bc, N)], bc) | |
388 | 388 | ||
389 | 389 | ||
390 | 390 | ||
391 | 391 | @Callable(aV) | |
392 | 392 | func sendLockedAcres (d,bc,bv) = if (if ((aV.caller != this)) | |
393 | 393 | then (aV.caller != G) | |
394 | 394 | else false) | |
395 | 395 | then throw("Permission denied") | |
396 | 396 | else { | |
397 | 397 | let aQ = lastBlock.timestamp | |
398 | 398 | let be = O(d) | |
399 | 399 | let bf = c(d) | |
400 | 400 | let bg = valueOrElse(getInteger(bf), 0) | |
401 | 401 | let bk = valueOrElse(getInteger(g), 0) | |
402 | 402 | let bw = valueOrElse(getInteger(be), aQ) | |
403 | 403 | let bx = f(d) | |
404 | 404 | let by = e(d) | |
405 | 405 | let bz = valueOrElse(getInteger(by), 0) | |
406 | 406 | let bA = valueOrElse(getInteger(bx), 0) | |
407 | 407 | let bB = aL(bz, bA, bc, (aQ + (bv * b))) | |
408 | 408 | $Tuple2([IntegerEntry(be, bw), IntegerEntry(bf, (bg + bc)), IntegerEntry(g, (bk + bc)), IntegerEntry(bx, bB), IntegerEntry(by, (bz + bc))], bc) | |
409 | 409 | } | |
410 | 410 | ||
411 | 411 | ||
412 | 412 | ||
413 | 413 | @Callable(aV) | |
414 | 414 | func burnAcres (bc) = if ((aV.caller != H)) | |
415 | 415 | then throw("Permission denied") | |
416 | 416 | else { | |
417 | 417 | let bC = (valueOrElse(getInteger(L), 0) - bc) | |
418 | 418 | if ((0 > bC)) | |
419 | 419 | then throw("Attempt to burn more ACRES, than exists") | |
420 | 420 | else $Tuple2([Burn(N, bc), IntegerEntry(L, bC)], bc) | |
421 | 421 | } | |
422 | 422 | ||
423 | 423 | ||
424 | 424 | ||
425 | 425 | @Callable(aV) | |
426 | 426 | func claimAcres () = { | |
427 | 427 | let bd = aC() | |
428 | 428 | if ((bd == bd)) | |
429 | 429 | then { | |
430 | 430 | let t = toString(aV.caller) | |
431 | 431 | if ((size(aV.payments) != 0)) | |
432 | 432 | then throw("No payments required") | |
433 | 433 | else { | |
434 | 434 | let be = O(t) | |
435 | 435 | let bf = c(t) | |
436 | 436 | let aE = valueOrElse(getInteger(bf), 0) | |
437 | 437 | let bl = invoke(J, "onStakeUnstakeLand", [t], nil) | |
438 | 438 | let bm = aK(t, aE, valueOrElse(getInteger(be), 0)) | |
439 | 439 | $Tuple2([IntegerEntry(be, lastBlock.timestamp), ScriptTransfer(aV.caller, bm, N)], $Tuple2(bd, bl)) | |
440 | 440 | } | |
441 | 441 | } | |
442 | 442 | else throw("Strict value is not equal to itself.") | |
443 | 443 | } | |
444 | 444 | ||
445 | 445 | ||
446 | 446 | ||
447 | 447 | @Callable(aV) | |
448 | 448 | func claimAcresREADONLY (t) = { | |
449 | 449 | let be = O(t) | |
450 | 450 | let bf = c(t) | |
451 | 451 | let aE = valueOrElse(getInteger(bf), 0) | |
452 | 452 | let bD = valueOrElse(getInteger(be), 0) | |
453 | 453 | let bm = aD(t, aE, bD) | |
454 | 454 | $Tuple2(nil, [bm, bD]) | |
455 | 455 | } | |
456 | 456 | ||
457 | 457 |
github/deemru/w8io/169f3d6 55.74 ms ◑