tx · 466abnDDzXoaujQ9XYrdQ9f4BnXDSkkWyCUSpdmVPBGp 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy: -0.01500000 Waves 2023.06.21 14:30 [2632347] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves
{ "type": 13, "id": "466abnDDzXoaujQ9XYrdQ9f4BnXDSkkWyCUSpdmVPBGp", "fee": 1500000, "feeAssetId": null, "timestamp": 1687347054246, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "29ThddyMmPSfaBxCtXNhMYUc4aTansTkGQXcEYSrNneAseRczyAXZp8iwgDGaG3xF1oXgxTAiheaaH2Su3A2Lg2g" ], "script": "base64:BgIZCAISBQoDCAgIEgASABIAEgMKAQgSAwoBCJMBAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOhLxa7BfMat4el8cUYCQACAQINVW5rbm93biBjaGFpbgAVZGVmYXVsdFJlc3RBZGRyZXNzU3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUFFDdXZGYnZoNExrUFVucm5VMXozam5iQTFwOW0zV05odgMJAAACAQFUBQckbWF0Y2gwAiMzTXVta0dHenRDS0FYcFdEcXhrZGRvZnFYU1VicVFrdlNKeQkAAgECDVVua25vd24gY2hhaW4AEUluZnJhVXBncmFkZUNvc3RTBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAIDIr6AlAwkAAAIBAVQFByRtYX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QYWlkVG90YWxLZXkJAGQCCQELdmFsdWVPckVsc2UCCQCfCAEFGXN0YWtlcnNBbW91bnRQYWlkVG90YWxLZXkAAAUKdXNlckFtb3VudAkAzAgCCQEMSW50ZWdlckVudHJ5AgUUc3Rha2Vyc0Ftb3VudExlZnRLZXkJAGUCBQ9hbW91bnRMZWZ0VG90YWwFCnVzZXJBbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIFFGxhc3RNYXJrZXRpbmdUaW1lS2V5BQNub3cJAMwIAgkBDEludGVnZXJFbnRyeQIFD2xhc3RUZWFtVGltZUtleQUDbm93CQDMCAIJAQxJbnRlZ2VyRW50cnkCBRVsYXN0QWN0aXZpdGllc1RpbWVLZXkFA25vdwkAzAgCCQEMSW50ZWdlckVudHJ5AgULdXNlclRpbWVLZXkFA25vdwUDbmlsBQxwcm9sb2dSZXN1bHQBaQELb25TdGFrZUxhbmQBBGFkZHIDCQECIT0CCAUBaQZjYWxsZXIFD3N0YWtpbmdDb250cmFjdAkAAgECEVBlcm1pc3Npb24gZGVuaWVkCQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIJARhrZXlMYXN0Q2xhaW1lZFRpbWVCeVVzZXIBBQRhZGRyCAUJbGFzdEJsb2NrCXRpbWVzdGFtcAUDbmlsCAUJbGFzdEJsb2NrCXRpbWVzdGFtcAFpAQ1vblVuc3Rha2VMYW5kAQRhZGRyAwkBAiE9AggFAWkGY2FsbGVyBQ9zdGFraW5nQ29udHJhY3QJAAIBAhFQZXJtaXNzaW9uIGRlbmllZAkAlAoCCQDMCAIJAQtEZWxldGVFbnRyeQEJARhrZXlMYXN0Q2xhaW1lZFRpbWVCeVVzZXIBBQRhZGRyBQNuaWwAAABc68pp", "height": 2632347, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EzSzww8dnq91LsQU6U4E6YKet1JSnCsbBML4KAYcgyzA Next: Cyb8hCxo8i4m7RVwPD9uzviw4WkWkshEPUimvLtD2Fmv Diff:
Old | New | Differences | |
---|---|---|---|
589 | 589 | } | |
590 | 590 | ||
591 | 591 | ||
592 | + | ||
593 | + | @Callable(cP) | |
594 | + | func onStakeLand (aK) = if ((cP.caller != aF)) | |
595 | + | then throw("Permission denied") | |
596 | + | else $Tuple2([IntegerEntry(cx(aK), lastBlock.timestamp)], lastBlock.timestamp) | |
597 | + | ||
598 | + | ||
599 | + | ||
600 | + | @Callable(cP) | |
601 | + | func onUnstakeLand (aK) = if ((cP.caller != aF)) | |
602 | + | then throw("Permission denied") | |
603 | + | else $Tuple2([DeleteEntry(cx(aK))], 0) | |
604 | + | ||
605 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = take(drop(this.bytes, 1), 1) | |
5 | 5 | ||
6 | 6 | let b = { | |
7 | 7 | let c = a | |
8 | 8 | if ((base58'2W' == c)) | |
9 | 9 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
10 | 10 | else if ((base58'2T' == c)) | |
11 | 11 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
12 | 12 | else throw("Unknown chain") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | let d = { | |
16 | 16 | let c = a | |
17 | 17 | if ((base58'2W' == c)) | |
18 | 18 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
19 | 19 | else if ((base58'2T' == c)) | |
20 | 20 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
21 | 21 | else throw("Unknown chain") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | let e = { | |
25 | 25 | let c = a | |
26 | 26 | if ((base58'2W' == c)) | |
27 | 27 | then 10000000000 | |
28 | 28 | else if ((base58'2T' == c)) | |
29 | 29 | then 100000000 | |
30 | 30 | else throw("Unknown chain") | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | let f = "__" | |
34 | 34 | ||
35 | 35 | let g = 1000000 | |
36 | 36 | ||
37 | 37 | let h = 10000000 | |
38 | 38 | ||
39 | 39 | let i = 100000000 | |
40 | 40 | ||
41 | 41 | let j = 10000000000 | |
42 | 42 | ||
43 | 43 | let k = "LAND" | |
44 | 44 | ||
45 | 45 | let l = "DUCK" | |
46 | 46 | ||
47 | 47 | let m = "PRESALE" | |
48 | 48 | ||
49 | 49 | let n = 6 | |
50 | 50 | ||
51 | 51 | let o = 25 | |
52 | 52 | ||
53 | 53 | let p = 100 | |
54 | 54 | ||
55 | 55 | let q = 225 | |
56 | 56 | ||
57 | 57 | let r = 400 | |
58 | 58 | ||
59 | 59 | let s = 625 | |
60 | 60 | ||
61 | 61 | let t = 3456000 | |
62 | 62 | ||
63 | 63 | let u = 86400000 | |
64 | 64 | ||
65 | 65 | let v = 10000000000 | |
66 | 66 | ||
67 | 67 | let w = "Africa_F_Africa" | |
68 | 68 | ||
69 | 69 | let x = 39637 | |
70 | 70 | ||
71 | 71 | let y = 3 | |
72 | 72 | ||
73 | 73 | let z = 4 | |
74 | 74 | ||
75 | 75 | let A = 10 | |
76 | 76 | ||
77 | 77 | let B = 100 | |
78 | 78 | ||
79 | 79 | let C = ["Oil", "Ore", "Wood", "Sand", "Clay", "Organic"] | |
80 | 80 | ||
81 | 81 | let D = ["Fuel", "Metal", "Plank", "Glass", "Plastic", "Protein"] | |
82 | 82 | ||
83 | 83 | let E = ["First Aid Kit L1", "First Aid Kit L2", "First Aid Kit L3", "Backpack L1", "Backpack L2", "Backpack L3", "Food Ration L1", "Food Ration L2", "Food Ration L3", "Jet Pack L1", "Jet Pack L2", "Jet Pack L3", "Shield L1", "Shield L2", "Shield L3"] | |
84 | 84 | ||
85 | 85 | let F = ["Americas", "Europe", "Asia", "Africa", "Oceania"] | |
86 | 86 | ||
87 | 87 | let G = ["1_1_1_2_2_5_1_10_0", "2_2_2_4_4_10_1_10_0", "3_3_3_6_6_15_1_10_0", "2_5_5_2_7_5_2_100_1", "4_10_10_4_14_10_2_100_1", "6_15_15_6_21_15_2_100_1", "1_1_1_1_1_8_1_10_2", "2_2_2_2_2_16_1_10_2", "3_3_3_3_3_24_1_10_2", "9_9_1_5_5_1_5_100_3", "18_18_2_10_10_2_5_100_3", "27_27_3_15_15_3_5_100_3", "2_2_1_2_2_2_1_10_4", "4_4_2_4_4_4_1_10_4", "6_6_3_6_6_6_1_10_4"] | |
88 | 88 | ||
89 | 89 | let H = 0 | |
90 | 90 | ||
91 | 91 | let I = 1 | |
92 | 92 | ||
93 | 93 | let J = 2 | |
94 | 94 | ||
95 | 95 | let K = 3 | |
96 | 96 | ||
97 | 97 | let L = 4 | |
98 | 98 | ||
99 | 99 | let M = 0 | |
100 | 100 | ||
101 | 101 | let N = 1 | |
102 | 102 | ||
103 | 103 | let O = 2 | |
104 | 104 | ||
105 | 105 | let P = 3 | |
106 | 106 | ||
107 | 107 | let Q = 4 | |
108 | 108 | ||
109 | 109 | let R = 5 | |
110 | 110 | ||
111 | 111 | let S = 6 | |
112 | 112 | ||
113 | 113 | let T = 7 | |
114 | 114 | ||
115 | 115 | let U = 8 | |
116 | 116 | ||
117 | 117 | let V = 0 | |
118 | 118 | ||
119 | 119 | let W = 1 | |
120 | 120 | ||
121 | 121 | let X = 2 | |
122 | 122 | ||
123 | 123 | let Y = 3 | |
124 | 124 | ||
125 | 125 | let Z = 0 | |
126 | 126 | ||
127 | 127 | let aa = 1 | |
128 | 128 | ||
129 | 129 | let ab = 2 | |
130 | 130 | ||
131 | 131 | let ac = 3 | |
132 | 132 | ||
133 | 133 | let ad = 4 | |
134 | 134 | ||
135 | 135 | let ae = 0 | |
136 | 136 | ||
137 | 137 | let af = 1 | |
138 | 138 | ||
139 | 139 | let ag = 2 | |
140 | 140 | ||
141 | 141 | let ah = 3 | |
142 | 142 | ||
143 | 143 | let ai = 0 | |
144 | 144 | ||
145 | 145 | let aj = 1 | |
146 | 146 | ||
147 | 147 | let ak = 2 | |
148 | 148 | ||
149 | 149 | let al = 3 | |
150 | 150 | ||
151 | 151 | func am (an) = parseIntValue(split(G[an], "_")[T]) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ao (ap,aq) = valueOrErrorMessage(getString(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], "")) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func ar (aq,as) = valueOrElse(getInteger(this, aq), as) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | let at = 1 | |
161 | 161 | ||
162 | 162 | let au = 2 | |
163 | 163 | ||
164 | 164 | let av = 3 | |
165 | 165 | ||
166 | 166 | let aw = 4 | |
167 | 167 | ||
168 | 168 | func ax () = "%s__restConfig" | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func ay () = "%s__restAddr" | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func az (aA) = split_4C(ao(aA, ax()), f) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aB (aC,aD) = valueOrErrorMessage(addressFromString(aC[aD]), ("Rest cfg doesn't contain address at index " + toString(aD))) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | let aE = addressFromStringValue(valueOrElse(getString(this, ay()), d)) | |
181 | 181 | ||
182 | 182 | let aC = az(aE) | |
183 | 183 | ||
184 | 184 | let aF = aB(aC, at) | |
185 | 185 | ||
186 | 186 | let aG = aB(aC, au) | |
187 | 187 | ||
188 | 188 | let aH = aB(aC, av) | |
189 | 189 | ||
190 | 190 | let aI = aB(aC, aw) | |
191 | 191 | ||
192 | 192 | func aJ (aK) = ("lastTxIdByUser_" + aK) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func aL (aM) = ("nftOwner_" + aM) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func aN (aM) = ("landCustomNameByAssetId_" + aM) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func aO (aM) = ("stakedTime_" + aM) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aP (aM) = ("infraLevel_" + aM) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func aQ (aR,aM) = makeString(["landArtStatus", aR, aM], "_") | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func aS (aT,aM,aU) = ((((("stakedTimeByTypeAssetIdAndOwner_" + aT) + "_") + aM) + "_") + aU) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func aV (aW) = ("wareHouse_" + aW) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func aX (aU) = ("stakedLandsByOwner_" + aU) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aY (aU) = ("stakedPiecesByOwner_" + aU) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func aZ (aM) = ("duckCustomNameByAssetId_" + aM) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func ba (aK) = ("accountCustomNameByAddr_" + aK) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func bb (aK) = ("accRefBy_" + aK) | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func bc (aK) = ("accReferrals_" + aK) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func bd (aM) = ("duckOwner_" + aM) | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func be (aU) = ("stakedDuckByOwner_" + aU) | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func bf (bg) = ("backPack_" + bg) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func bh (bg) = ("duckLocation_" + bg) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func bi (bg) = ("duckHealth_" + bg) | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func bj () = "resTypesProportions" | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func bk () = "contractsBlocked" | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func bl (bm) = ("%s%s__userGwlReleaseTime__" + bm) | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func bn (aW) = ("landOrder_" + aW) | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func bo () = "emergencyWarehouseProducts" | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | let bp = 0 | |
265 | 265 | ||
266 | 266 | let bq = 1 | |
267 | 267 | ||
268 | 268 | let br = 2 | |
269 | 269 | ||
270 | 270 | func bs (bt) = { | |
271 | 271 | let c = bt | |
272 | 272 | if ($isInstanceOf(c, "String")) | |
273 | 273 | then { | |
274 | 274 | let bu = c | |
275 | 275 | bu | |
276 | 276 | } | |
277 | 277 | else throw("fail to cast into String") | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bv (bt) = { | |
282 | 282 | let c = bt | |
283 | 283 | if ($isInstanceOf(c, "Int")) | |
284 | 284 | then { | |
285 | 285 | let bw = c | |
286 | 286 | bw | |
287 | 287 | } | |
288 | 288 | else throw("fail to cast into Int") | |
289 | 289 | } | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func bx (bt) = { | |
293 | 293 | let c = bt | |
294 | 294 | if ($isInstanceOf(c, "List[Any]")) | |
295 | 295 | then { | |
296 | 296 | let by = c | |
297 | 297 | by | |
298 | 298 | } | |
299 | 299 | else throw("fail to cast into List[Any]") | |
300 | 300 | } | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func bz (bt) = { | |
304 | 304 | let c = bt | |
305 | 305 | if ($isInstanceOf(c, "Boolean")) | |
306 | 306 | then { | |
307 | 307 | let bu = c | |
308 | 308 | bu | |
309 | 309 | } | |
310 | 310 | else throw("fail to cast into Boolean") | |
311 | 311 | } | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | func bA (bB) = { | |
315 | 315 | let c = bB | |
316 | 316 | if (("S" == c)) | |
317 | 317 | then o | |
318 | 318 | else if (("M" == c)) | |
319 | 319 | then p | |
320 | 320 | else if (("L" == c)) | |
321 | 321 | then q | |
322 | 322 | else if (("XL" == c)) | |
323 | 323 | then r | |
324 | 324 | else if (("XXL" == c)) | |
325 | 325 | then s | |
326 | 326 | else throw("Unknown land size") | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | let bC = 0 | |
331 | 331 | ||
332 | 332 | let bD = 1 | |
333 | 333 | ||
334 | 334 | func bE (bF) = { | |
335 | 335 | let bG = split(valueOrElse(getString(aF, bj()), "0_0_0_0_0_0"), "_") | |
336 | 336 | func bH (bI,bJ) = (bI + parseIntValue(bJ)) | |
337 | 337 | ||
338 | 338 | let bK = { | |
339 | 339 | let bL = bG | |
340 | 340 | let bM = size(bL) | |
341 | 341 | let bN = 0 | |
342 | 342 | func bO (bP,bQ) = if ((bQ >= bM)) | |
343 | 343 | then bP | |
344 | 344 | else bH(bP, bL[bQ]) | |
345 | 345 | ||
346 | 346 | func bR (bP,bQ) = if ((bQ >= bM)) | |
347 | 347 | then bP | |
348 | 348 | else throw("List size exceeds 6") | |
349 | 349 | ||
350 | 350 | bR(bO(bO(bO(bO(bO(bO(bN, 0), 1), 2), 3), 4), 5), 6) | |
351 | 351 | } | |
352 | 352 | let bS = if ((bF == "")) | |
353 | 353 | then 0 | |
354 | 354 | else { | |
355 | 355 | let bT = getString(aF, aX(bF)) | |
356 | 356 | let bU = if (isDefined(bT)) | |
357 | 357 | then split_51C(value(bT), "_") | |
358 | 358 | else nil | |
359 | 359 | func bV (bI,aW) = { | |
360 | 360 | let bW = value(assetInfo(fromBase58String(aW))) | |
361 | 361 | let bB = split(bW.description, "_")[W] | |
362 | 362 | (bI + bA(bB)) | |
363 | 363 | } | |
364 | 364 | ||
365 | 365 | let bL = bU | |
366 | 366 | let bM = size(bL) | |
367 | 367 | let bN = 0 | |
368 | 368 | func bX (bP,bQ) = if ((bQ >= bM)) | |
369 | 369 | then bP | |
370 | 370 | else bV(bP, bL[bQ]) | |
371 | 371 | ||
372 | 372 | func bY (bP,bQ) = if ((bQ >= bM)) | |
373 | 373 | then bP | |
374 | 374 | else throw("List size exceeds 100") | |
375 | 375 | ||
376 | 376 | bY(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bX(bN, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
377 | 377 | } | |
378 | 378 | [bK, bS] | |
379 | 379 | } | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func bZ (ca) = { | |
383 | 383 | func cb (cc,cd) = (cc + parseIntValue(ca[cd])) | |
384 | 384 | ||
385 | 385 | let bL = [0, 1, 2, 3, 4, 5] | |
386 | 386 | let bM = size(bL) | |
387 | 387 | let bN = 0 | |
388 | 388 | func bO (bP,bQ) = if ((bQ >= bM)) | |
389 | 389 | then bP | |
390 | 390 | else cb(bP, bL[bQ]) | |
391 | 391 | ||
392 | 392 | func bR (bP,bQ) = if ((bQ >= bM)) | |
393 | 393 | then bP | |
394 | 394 | else throw("List size exceeds 6") | |
395 | 395 | ||
396 | 396 | bR(bO(bO(bO(bO(bO(bO(bN, 0), 1), 2), 3), 4), 5), 6) | |
397 | 397 | } | |
398 | 398 | ||
399 | 399 | ||
400 | 400 | let ce = 100000000000000 | |
401 | 401 | ||
402 | 402 | let cf = 100000 | |
403 | 403 | ||
404 | 404 | let cg = 200000 | |
405 | 405 | ||
406 | 406 | let ch = 100000 | |
407 | 407 | ||
408 | 408 | let ci = 400000 | |
409 | 409 | ||
410 | 410 | let cj = 31557600000 | |
411 | 411 | ||
412 | 412 | let ck = 604800000 | |
413 | 413 | ||
414 | 414 | let cl = 156 | |
415 | 415 | ||
416 | 416 | let cm = 600000 | |
417 | 417 | ||
418 | 418 | let cn = 100000000 | |
419 | 419 | ||
420 | 420 | let co = 50000000 | |
421 | 421 | ||
422 | 422 | let cp = "wlg_assetId" | |
423 | 423 | ||
424 | 424 | let cq = "wlg_issueTime" | |
425 | 425 | ||
426 | 426 | let cr = "wlg_issuedAmount" | |
427 | 427 | ||
428 | 428 | let cs = "marketingAddr" | |
429 | 429 | ||
430 | 430 | let ct = "teamAddr" | |
431 | 431 | ||
432 | 432 | let cu = "lastClaimedTime_marketing" | |
433 | 433 | ||
434 | 434 | let cv = "lastClaimedTime_team" | |
435 | 435 | ||
436 | 436 | let cw = "lastClaimedTime_activities" | |
437 | 437 | ||
438 | 438 | func cx (aK) = ("lastClaimedTimeUser_" + aK) | |
439 | 439 | ||
440 | 440 | ||
441 | 441 | func cy (aK) = ("lastArbTimeUser_" + aK) | |
442 | 442 | ||
443 | 443 | ||
444 | 444 | let cz = "stakersAmountLeft" | |
445 | 445 | ||
446 | 446 | let cA = "stakersAmountPaidTotal" | |
447 | 447 | ||
448 | 448 | func cB (aK) = ("stakersAmountPaidUser_" + aK) | |
449 | 449 | ||
450 | 450 | ||
451 | 451 | let cC = 0 | |
452 | 452 | ||
453 | 453 | let cD = 1 | |
454 | 454 | ||
455 | 455 | let cE = 2 | |
456 | 456 | ||
457 | 457 | let cF = valueOrErrorMessage(getBinary(cp), "Not initialized yet") | |
458 | 458 | ||
459 | 459 | func cG () = if (valueOrElse(getBoolean(aF, bk()), false)) | |
460 | 460 | then throw("Contracts are under maintenance") | |
461 | 461 | else bv(invoke(aF, "saveLastTx", nil, nil)) | |
462 | 462 | ||
463 | 463 | ||
464 | 464 | func cH () = { | |
465 | 465 | let cI = valueOrErrorMessage(getInteger(cr), "WLGOLD is not issued yet") | |
466 | 466 | let cJ = ((assetBalance(aG, b) + assetBalance(aE, b)) + assetBalance(aI, b)) | |
467 | 467 | [cI, fraction(cJ, i, cI), cJ] | |
468 | 468 | } | |
469 | 469 | ||
470 | 470 | ||
471 | 471 | func cK (aK) = { | |
472 | 472 | let cL = valueOrElse(getInteger(cy(aK)), 0) | |
473 | 473 | let cM = lastBlock.timestamp | |
474 | 474 | if ((cm > (cM - cL))) | |
475 | 475 | then throw("Arbitrages are possible once a 10 minutes") | |
476 | 476 | else { | |
477 | 477 | let cN = bE(aK)[bD] | |
478 | 478 | let cO = pow(cN, 0, co, 8, 8, CEILING) | |
479 | 479 | fraction(cn, cO, i) | |
480 | 480 | } | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | @Callable(cP) | |
485 | 485 | func constructorV1 (cQ,cR,cS) = if ((cP.caller != this)) | |
486 | 486 | then throw("Permission denied") | |
487 | 487 | else if (isDefined(getBinary(cp))) | |
488 | 488 | then throw("Already initialized") | |
489 | 489 | else { | |
490 | 490 | let cI = ce | |
491 | 491 | let cT = Issue("WLGOLD", "WavesLands Gold investment token", cI, 8, true, unit, 0) | |
492 | 492 | let aM = calculateAssetId(cT) | |
493 | 493 | [cT, IntegerEntry(cq, lastBlock.timestamp), IntegerEntry(cr, cI), IntegerEntry(cA, 0), IntegerEntry(cz, fraction(ce, ci, g)), BinaryEntry(cp, aM), StringEntry(ay(), cQ), StringEntry(cs, cR), StringEntry(ct, cS)] | |
494 | 494 | } | |
495 | 495 | ||
496 | 496 | ||
497 | 497 | ||
498 | 498 | @Callable(cP) | |
499 | 499 | func buyWlg () = { | |
500 | 500 | let cU = cG() | |
501 | 501 | if ((size(cP.payments) != 1)) | |
502 | 502 | then throw("exactly 1 payment must be attached") | |
503 | 503 | else { | |
504 | 504 | let cV = cP.payments[0] | |
505 | 505 | let cW = cV.amount | |
506 | 506 | let cX = valueOrErrorMessage(cV.assetId, "WAVES can't be used as payment") | |
507 | 507 | if ((cX != b)) | |
508 | 508 | then throw("USDT payments only!") | |
509 | 509 | else { | |
510 | 510 | let cY = cP.caller | |
511 | 511 | let aK = toString(cY) | |
512 | 512 | let cZ = cK(aK) | |
513 | 513 | if ((cW > cZ)) | |
514 | 514 | then throw((("You can spend max " + toString(cZ)) + " USDT")) | |
515 | 515 | else { | |
516 | 516 | let da = cH() | |
517 | 517 | let db = da[cC] | |
518 | 518 | let dc = fraction(da[cD], 6, 5) | |
519 | 519 | let dd = fraction(cW, i, dc) | |
520 | 520 | let de = fraction(cW, db, (da[cE] - cW)) | |
521 | 521 | $Tuple2([Reissue(cF, de, true), IntegerEntry(cr, (db + de)), IntegerEntry(cy(aK), lastBlock.timestamp), ScriptTransfer(cY, dd, cF)], cU) | |
522 | 522 | } | |
523 | 523 | } | |
524 | 524 | } | |
525 | 525 | } | |
526 | 526 | ||
527 | 527 | ||
528 | 528 | ||
529 | 529 | @Callable(cP) | |
530 | 530 | func sellWlg () = { | |
531 | 531 | let cU = cG() | |
532 | 532 | if ((size(cP.payments) != 1)) | |
533 | 533 | then throw("exactly 1 payment must be attached") | |
534 | 534 | else { | |
535 | 535 | let cV = cP.payments[0] | |
536 | 536 | let df = cV.amount | |
537 | 537 | let cX = valueOrErrorMessage(cV.assetId, "WAVES can't be used as payment") | |
538 | 538 | if ((cX != cF)) | |
539 | 539 | then throw("WLGOLD payments only!") | |
540 | 540 | else { | |
541 | 541 | let cY = cP.caller | |
542 | 542 | let aK = toString(cY) | |
543 | 543 | let cZ = cK(aK) | |
544 | 544 | let da = cH() | |
545 | 545 | let db = (da[cC] - df) | |
546 | 546 | let dg = fraction(da[cD], 4, 5) | |
547 | 547 | let dh = fraction(df, dg, i) | |
548 | 548 | if ((dh > cZ)) | |
549 | 549 | then throw((("You can get max " + toString(cZ)) + " USDT")) | |
550 | 550 | else { | |
551 | 551 | let di = fraction(dh, db, da[cE]) | |
552 | 552 | $Tuple2([Burn(cF, di), IntegerEntry(cr, (db - di)), IntegerEntry(cy(aK), lastBlock.timestamp), ScriptTransfer(cY, dh, b)], cU) | |
553 | 553 | } | |
554 | 554 | } | |
555 | 555 | } | |
556 | 556 | } | |
557 | 557 | ||
558 | 558 | ||
559 | 559 | ||
560 | 560 | @Callable(cP) | |
561 | 561 | func claim () = { | |
562 | 562 | let cU = cG() | |
563 | 563 | let cY = cP.caller | |
564 | 564 | let dj = toString(cY) | |
565 | 565 | let cM = lastBlock.timestamp | |
566 | 566 | let dk = valueOrErrorMessage(getInteger(cq), "Not initialized") | |
567 | 567 | let dl = valueOrElse(getInteger(cu), dk) | |
568 | 568 | let cR = addressFromStringValue(value(getString(cs))) | |
569 | 569 | let dm = fraction(fraction(ce, cf, g), (cM - dl), cj) | |
570 | 570 | let dn = valueOrElse(getInteger(cv), dk) | |
571 | 571 | let cS = addressFromStringValue(value(getString(ct))) | |
572 | 572 | let do = fraction(fraction(ce, cg, g), (cM - dn), (3 * cj)) | |
573 | 573 | let dp = valueOrElse(getInteger(cw), dk) | |
574 | 574 | let dq = fraction(fraction(ce, ch, g), (cM - dp), (3 * cj)) | |
575 | 575 | let dr = ((cM - dk) / ck) | |
576 | 576 | if ((dr > (cl / 2))) | |
577 | 577 | then throw("Please modify contract for next 1.5 years, according to stats") | |
578 | 578 | else { | |
579 | 579 | let ds = bE(dj) | |
580 | 580 | let dt = ds[bC] | |
581 | 581 | let du = valueOrElse(getInteger(cz), 0) | |
582 | 582 | let dv = fraction(du, (2 * dt), (dt + (max([100000, dt]) * (cl - dr)))) | |
583 | 583 | let dw = cx(dj) | |
584 | 584 | let dx = valueOrElse(getInteger(dw), dk) | |
585 | 585 | let dy = fraction(fraction(dv, ds[bD], dt), (cM - dx), (3 * cj)) | |
586 | 586 | let dz = cB(dj) | |
587 | 587 | $Tuple2([ScriptTransfer(cR, dm, cF), ScriptTransfer(cS, do, cF), ScriptTransfer(aE, dq, cF), ScriptTransfer(cY, dy, cF), IntegerEntry(dz, (valueOrElse(getInteger(dz), 0) + dy)), IntegerEntry(cA, (valueOrElse(getInteger(cA), 0) + dy)), IntegerEntry(cz, (du - dy)), IntegerEntry(cu, cM), IntegerEntry(cv, cM), IntegerEntry(cw, cM), IntegerEntry(dw, cM)], cU) | |
588 | 588 | } | |
589 | 589 | } | |
590 | 590 | ||
591 | 591 | ||
592 | + | ||
593 | + | @Callable(cP) | |
594 | + | func onStakeLand (aK) = if ((cP.caller != aF)) | |
595 | + | then throw("Permission denied") | |
596 | + | else $Tuple2([IntegerEntry(cx(aK), lastBlock.timestamp)], lastBlock.timestamp) | |
597 | + | ||
598 | + | ||
599 | + | ||
600 | + | @Callable(cP) | |
601 | + | func onUnstakeLand (aK) = if ((cP.caller != aF)) | |
602 | + | then throw("Permission denied") | |
603 | + | else $Tuple2([DeleteEntry(cx(aK))], 0) | |
604 | + | ||
605 | + |
github/deemru/w8io/026f985 57.28 ms ◑