tx · B5qhKauRHBTzKGVMBsvE3fnnNe6Gt15BH6kwyt863i7D 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy: -0.01800000 Waves 2023.09.30 19:41 [2778416] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves
{ "type": 13, "id": "B5qhKauRHBTzKGVMBsvE3fnnNe6Gt15BH6kwyt863i7D", "fee": 1800000, "feeAssetId": null, "timestamp": 1696092087197, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "4PkcK9ZdfJPtGdViZXLw1pz17EvEUdHEEDU3NgzFmqi2vUXQD6UzkagGitgYT4vUyET4B495TnfAjqkrcZWq4oC2" ], "script": "base64:BgIiCAISBgoECAgICBIDCgEBEgMKAQESABIDCgEIEgUKAwgIAV8AAk02AMCEPQACTTgAgMLXLwAITUlMTElPTjYAgIDpg7HeFgAOTUFSS0VUSU5HU0hBUkUAoI0GAAlURUFNU0hBUkUAwJoMAA1BQ1RJVklUWVNIQVJFAKCNBgALUExBWUVSU0hBUkUAgLUYAApZRUFSTUlMTElTAICG68d1AAlDSEVDS1RJTUUAgMngq7ABAAlEQVlNSUxMSVMAgLiZKQAQbWFya2V0aW5nQWRkcktleQINbWFya2V0aW5nQWRkcgALdGVhbUFkZHJLZXkCCHRlYW1BZGRyABRsYXN0TWFya2V0aW5nVGltZUtleQIZbGFzdENsYWltZWRUaW1lX21hcmtldGluZwAWbWFya2V0aW5nQW1vdW50TGVmdEtleQITbWFya2V0aW5nQW1vdW50TGVmdAAPbGFzdFRlYW1UaW1lS2V5AhRsYXN0Q2xhaW1lZFRpbWVfdGVhbQARdGVhbUFtb3VudExlZnRLZXkCDnRlYW1BbW91bnRMZWZ0ABVsYXN0QWN0aXZpdGllc1RpbWVLZXkCGmxhc3RDbGFpbW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pb25zCAUBcgJfMQkAlAoCCQDNCAIFB2FjdGlvbnMJAQ5TY3JpcHRUcmFuc2ZlcgMJARFAZXh0ck5hdGl2ZSgxMDYyKQEFBGFkZHIICAUBcgJfMgJfMQUKd2xnQXNzZXRJZAgFAXICXzIBaQEIY2xhaW1Sb2IDBW93bmVyBnJvYmJlchBvd25lclByb3BvcnRpb242AwkBAiE9AggFAWkGY2FsbGVyBQ9zdGFraW5nQ29udHJhY3QJAAIBAhFQZXJtaXNzaW9uIGRlbmllZAQBcgkBDWNsYWltSW50ZXJuYWwCBQVvd25lcgUQb3duZXJQcm9wb3J0aW9uNgkAlAoCCQDNCAIIBQFyAl8xCQEOU2NyaXB0VHJhbnNmZXIDCQERQGV4dHJOYXRpdmUoMTA2MikBBQZyb2JiZXIJAGUCCAgFAXICXzICXzIICAUBcgJfMgJfMQUKd2xnQXNzZXRJZAgFAXICXzIAvaj4KA==", "height": 2778416, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cfv1cG1fX9iUDRAQ3CMr4iCYAMxU5wag1ctR5tX46LG5 Next: 4t1JDHitYd8g9E5n4PB6XJiAiBmtW72kvkRfrf3U1MiL Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000000 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 100000000000000 | |
9 | 9 | ||
10 | 10 | let d = 100000 | |
11 | 11 | ||
12 | 12 | let e = 200000 | |
13 | 13 | ||
14 | 14 | let f = 100000 | |
15 | 15 | ||
16 | 16 | let g = 400000 | |
17 | 17 | ||
18 | 18 | let h = 31557600000 | |
19 | 19 | ||
20 | 20 | let i = 47336400000 | |
21 | 21 | ||
22 | 22 | let j = 86400000 | |
23 | 23 | ||
24 | 24 | let k = "marketingAddr" | |
25 | 25 | ||
26 | 26 | let l = "teamAddr" | |
27 | 27 | ||
28 | 28 | let m = "lastClaimedTime_marketing" | |
29 | 29 | ||
30 | 30 | let n = "marketingAmountLeft" | |
31 | 31 | ||
32 | 32 | let o = "lastClaimedTime_team" | |
33 | 33 | ||
34 | 34 | let p = "teamAmountLeft" | |
35 | 35 | ||
36 | 36 | let q = "lastClaimedTime_activities" | |
37 | 37 | ||
38 | 38 | let r = "activitiesAmountLeft" | |
39 | 39 | ||
40 | 40 | let s = "stakersAmountLeft" | |
41 | 41 | ||
42 | 42 | func t (u) = ("lastClaimedTimeUser_" + u) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func v (u) = ("lastArbTimeUser_" + u) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func w (x) = fraction(c, (g * (x + 1)), (6 * a)) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | let y = "wlg_issueTime" | |
52 | 52 | ||
53 | 53 | let z = "wlg_issuedAmount" | |
54 | 54 | ||
55 | 55 | let A = "zbill_issuedAmount" | |
56 | 56 | ||
57 | 57 | func B (u) = ("acresStakedAmountByUser_" + u) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | let C = "acresStakedAmountTotal" | |
61 | 61 | ||
62 | 62 | let D = 0 | |
63 | 63 | ||
64 | 64 | let E = 1 | |
65 | 65 | ||
66 | 66 | let F = 2 | |
67 | 67 | ||
68 | 68 | let G = 7 | |
69 | 69 | ||
70 | 70 | let H = 10 | |
71 | 71 | ||
72 | 72 | let I = 11 | |
73 | 73 | ||
74 | 74 | let J = 14 | |
75 | 75 | ||
76 | 76 | let K = 15 | |
77 | 77 | ||
78 | 78 | let L = 18 | |
79 | 79 | ||
80 | 80 | let M = 19 | |
81 | 81 | ||
82 | 82 | let N = 22 | |
83 | 83 | ||
84 | 84 | let O = 25 | |
85 | 85 | ||
86 | 86 | let P = 28 | |
87 | 87 | ||
88 | 88 | let Q = 29 | |
89 | 89 | ||
90 | 90 | let R = 0 | |
91 | 91 | ||
92 | 92 | let S = 1 | |
93 | 93 | ||
94 | 94 | let T = 2 | |
95 | 95 | ||
96 | 96 | let U = 3 | |
97 | 97 | ||
98 | 98 | let V = 4 | |
99 | 99 | ||
100 | 100 | let W = 5 | |
101 | 101 | ||
102 | 102 | let X = 6 | |
103 | 103 | ||
104 | 104 | func Y (Z,aa,ab) = { | |
105 | 105 | let ac = split(valueOrElse(getString(aa, "resTypesProportions"), "0_0_0_0_0_0"), "_") | |
106 | 106 | func ad (ae,af) = (ae + parseIntValue(af)) | |
107 | 107 | ||
108 | 108 | let ag = { | |
109 | 109 | let ah = ac | |
110 | 110 | let ai = size(ah) | |
111 | 111 | let aj = 0 | |
112 | 112 | func ak (al,am) = if ((am >= ai)) | |
113 | 113 | then al | |
114 | 114 | else ad(al, ah[am]) | |
115 | 115 | ||
116 | 116 | func an (al,am) = if ((am >= ai)) | |
117 | 117 | then al | |
118 | 118 | else throw("List size exceeds 6") | |
119 | 119 | ||
120 | 120 | an(ak(ak(ak(ak(ak(ak(aj, 0), 1), 2), 3), 4), 5), 6) | |
121 | 121 | } | |
122 | 122 | let ao = valueOrElse(getInteger(aa, ("stakedPiecesByOwner_" + Z)), 0) | |
123 | 123 | let ap = valueOrElse(getInteger(ab, C), 0) | |
124 | 124 | let aq = valueOrElse(getInteger(ab, B(Z)), 0) | |
125 | 125 | [ag, ao, ap, aq] | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | let ar = 0 | |
130 | 130 | ||
131 | 131 | let as = 1 | |
132 | 132 | ||
133 | 133 | let at = 2 | |
134 | 134 | ||
135 | 135 | let au = 3 | |
136 | 136 | ||
137 | 137 | func av (aw,ax,ay,az,aA) = { | |
138 | 138 | let aB = valueOrErrorMessage(getInteger(ax[U], z), "WLGOLD is not issued yet") | |
139 | 139 | let aC = assetBalance(ax[T], ay) | |
140 | 140 | let aD = assetBalance(ax[R], ay) | |
141 | 141 | let aE = (assetBalance(ax[U], ay) - az) | |
142 | 142 | let aF = assetBalance(ax[V], ay) | |
143 | 143 | let aG = ax[W] | |
144 | 144 | let aH = (assetBalance(aG, ay) + valueOrElse(getInteger(aG, A), 0)) | |
145 | 145 | let aI = ((aC + aE) + aH) | |
146 | 146 | let aJ = valueOrErrorMessage(getBinary(ax[U], "wlg_assetId"), "Not initialized yet") | |
147 | 147 | let aK = lastBlock.timestamp | |
148 | 148 | let aL = valueOrErrorMessage(getInteger(ax[U], y), "Not initialized") | |
149 | 149 | let aM = fraction(c, d, a) | |
150 | 150 | let aN = valueOrElse(getInteger(ax[U], n), aM) | |
151 | 151 | let aO = valueOrElse(getInteger(ax[U], m), aL) | |
152 | 152 | let aP = addressFromStringValue(value(getString(ax[U], k))) | |
153 | 153 | let aQ = min([fraction(aM, (aK - aO), h), aN]) | |
154 | 154 | let aR = assetBalance(aP, aJ) | |
155 | 155 | let aS = fraction(c, e, a) | |
156 | 156 | let aT = valueOrElse(getInteger(ax[U], p), aS) | |
157 | 157 | let aU = valueOrElse(getInteger(ax[U], o), aL) | |
158 | 158 | let aV = addressFromStringValue(value(getString(ax[U], l))) | |
159 | 159 | let aW = min([fraction(aS, (aK - aU), (3 * h)), aT]) | |
160 | 160 | let aX = assetBalance(aV, aJ) | |
161 | 161 | let aY = fraction(c, f, a) | |
162 | 162 | let aZ = valueOrElse(getInteger(ax[U], r), aY) | |
163 | 163 | let ba = valueOrElse(getInteger(ax[U], q), aL) | |
164 | 164 | let bb = min([fraction(aY, (aK - ba), (3 * h)), aZ]) | |
165 | 165 | let bc = assetBalance(ax[R], aJ) | |
166 | 166 | let bd = valueOrElse(getInteger(ax[U], t(aw)), aL) | |
167 | 167 | let be = ((bd - aL) / h) | |
168 | 168 | let bf = min([aK, (aL + (3 * h))]) | |
169 | 169 | let bg = min([((aK - aL) / h), 2]) | |
170 | 170 | let bh = Y(aw, ax[S], ax[X]) | |
171 | 171 | let bi = w(bg) | |
172 | 172 | let bj = if ((be == bg)) | |
173 | 173 | then { | |
174 | 174 | let bk = fraction(bi, (bf - bd), h) | |
175 | 175 | let bl = fraction(bk, aA, a) | |
176 | 176 | let bm = (bd + fraction((bf - bd), aA, a)) | |
177 | 177 | $Tuple3(bl, bk, bm) | |
178 | 178 | } | |
179 | 179 | else if ((be == (bg - 1))) | |
180 | 180 | then { | |
181 | 181 | let bn = fraction(w((bg - 1)), ((aL + (h * bg)) - bd), h) | |
182 | 182 | let bk = fraction(bi, (bf - (aL + (h * bg))), h) | |
183 | 183 | let bo = (bn + bk) | |
184 | 184 | let bl = fraction(bo, aA, a) | |
185 | 185 | let bm = if ((bn >= bl)) | |
186 | 186 | then (bd + fraction(h, bl, w((bg - 1)))) | |
187 | 187 | else ((aL + (h * bg)) + fraction(h, (bl - bn), bi)) | |
188 | 188 | $Tuple3(bl, bo, bm) | |
189 | 189 | } | |
190 | 190 | else { | |
191 | 191 | let bp = fraction(w((bg - 2)), ((aL + (h * (bg - 1))) - bd), h) | |
192 | 192 | let bn = w((bg - 1)) | |
193 | 193 | let bk = fraction(bi, (bf - (aL + (h * bg))), h) | |
194 | 194 | let bo = ((bp + bn) + bk) | |
195 | 195 | let bl = fraction(bo, aA, a) | |
196 | 196 | let bm = if ((bp >= bl)) | |
197 | 197 | then (bd + fraction(h, bl, w((bg - 2)))) | |
198 | 198 | else if (((bp + bn) >= bl)) | |
199 | 199 | then ((aL + (h * (bg - 1))) + fraction(h, (bl - bp), w((bg - 1)))) | |
200 | 200 | else ((aL + (h * bg)) + fraction(h, ((bl - bp) - bn), bi)) | |
201 | 201 | $Tuple3(bl, bo, bm) | |
202 | 202 | } | |
203 | 203 | let bq = bj._1 | |
204 | 204 | let br = bj._2 | |
205 | 205 | let bs = bj._3 | |
206 | 206 | let bt = fraction(fraction(bi, j, h), 25, bh[ar]) | |
207 | 207 | let bu = valueOrElse(getInteger(ax[U], s), 0) | |
208 | 208 | let bv = fraction(bq, ((bh[as] * b) + bh[au]), ((bh[ar] * b) + bh[at])) | |
209 | 209 | let bw = fraction(br, ((bh[as] * b) + bh[au]), ((bh[ar] * b) + bh[at])) | |
210 | 210 | [aB, fraction(aI, b, aB), aI, aC, aD, aE, aF, aL, aO, aM, aN, aQ, aR, aS, aT, aW, aX, aY, aZ, bb, bc, bg, bu, bi, bd, bv, bt, aH, bw, bs] | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | let bx = take(drop(this.bytes, 1), 1) | |
215 | 215 | ||
216 | 216 | let by = { | |
217 | 217 | let bz = bx | |
218 | 218 | if ((base58'2W' == bz)) | |
219 | 219 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
220 | 220 | else if ((base58'2T' == bz)) | |
221 | 221 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
222 | 222 | else throw("Unknown chain") | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | let bA = { | |
226 | 226 | let bz = bx | |
227 | 227 | if ((base58'2W' == bz)) | |
228 | 228 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
229 | 229 | else if ((base58'2T' == bz)) | |
230 | 230 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
231 | 231 | else throw("Unknown chain") | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | let bB = { | |
235 | 235 | let bz = bx | |
236 | 236 | if ((base58'2W' == bz)) | |
237 | 237 | then 86400000 | |
238 | 238 | else if ((base58'2T' == bz)) | |
239 | 239 | then 60000 | |
240 | 240 | else throw("Unknown chain") | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | let bC = "__" | |
244 | 244 | ||
245 | 245 | let bD = 1000000 | |
246 | 246 | ||
247 | 247 | let bE = 100000000 | |
248 | 248 | ||
249 | 249 | let bF = 100000 | |
250 | 250 | ||
251 | 251 | func bG (bH,bI) = valueOrErrorMessage(getString(bH, bI), makeString(["mandatory ", toString(bH), ".", bI, " is not defined"], "")) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | let bJ = 1 | |
255 | 255 | ||
256 | 256 | let bK = 2 | |
257 | 257 | ||
258 | 258 | let bL = 4 | |
259 | 259 | ||
260 | 260 | let bM = 5 | |
261 | 261 | ||
262 | 262 | let bN = 6 | |
263 | 263 | ||
264 | 264 | let bO = 8 | |
265 | 265 | ||
266 | 266 | func bP () = "%s__restConfig" | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func bQ () = "%s__restAddr" | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func bR (bS) = split_4C(bG(bS, bP()), bC) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func bT (bU,bV) = valueOrErrorMessage(addressFromString(bU[bV]), ("Rest cfg doesn't contain address at index " + toString(bV))) | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | let bW = addressFromStringValue(valueOrElse(getString(this, bQ()), bA)) | |
279 | 279 | ||
280 | 280 | let bU = bR(bW) | |
281 | 281 | ||
282 | 282 | let aa = bT(bU, bJ) | |
283 | 283 | ||
284 | 284 | let bX = bT(bU, bK) | |
285 | 285 | ||
286 | 286 | let bY = bT(bU, bL) | |
287 | 287 | ||
288 | 288 | let bZ = bT(bU, bM) | |
289 | 289 | ||
290 | 290 | let aG = bT(bU, bN) | |
291 | 291 | ||
292 | 292 | let ab = bT(bU, bO) | |
293 | 293 | ||
294 | 294 | let ca = "wlg_assetId" | |
295 | 295 | ||
296 | 296 | let cb = valueOrErrorMessage(getBinary(bY, ca), "WLGOLD is not issued yet") | |
297 | 297 | ||
298 | 298 | let cc = 1 | |
299 | 299 | ||
300 | 300 | func cd () = "resTypesProportions" | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func ce (cf) = ("stakedPiecesByOwner_" + cf) | |
304 | 304 | ||
305 | 305 | ||
306 | 306 | func cg (ch) = { | |
307 | 307 | let bz = ch | |
308 | 308 | if ($isInstanceOf(bz, "Int")) | |
309 | 309 | then { | |
310 | 310 | let ci = bz | |
311 | 311 | ci | |
312 | 312 | } | |
313 | 313 | else throw("fail to cast into Int") | |
314 | 314 | } | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | func cj (Z) = { | |
318 | 318 | let ac = split(valueOrElse(getString(aa, cd()), "0_0_0_0_0_0"), "_") | |
319 | 319 | func ad (ae,af) = (ae + parseIntValue(af)) | |
320 | 320 | ||
321 | 321 | let ck = { | |
322 | 322 | let ah = ac | |
323 | 323 | let ai = size(ah) | |
324 | 324 | let aj = 0 | |
325 | 325 | func ak (al,am) = if ((am >= ai)) | |
326 | 326 | then al | |
327 | 327 | else ad(al, ah[am]) | |
328 | 328 | ||
329 | 329 | func an (al,am) = if ((am >= ai)) | |
330 | 330 | then al | |
331 | 331 | else throw("List size exceeds 6") | |
332 | 332 | ||
333 | 333 | an(ak(ak(ak(ak(ak(ak(aj, 0), 1), 2), 3), 4), 5), 6) | |
334 | 334 | } | |
335 | 335 | let cl = valueOrElse(getInteger(aa, ce(Z)), 0) | |
336 | 336 | [ck, cl] | |
337 | 337 | } | |
338 | 338 | ||
339 | 339 | ||
340 | 340 | func cm (cn,co) = { | |
341 | 341 | let cp = pow(10, 0, co, 0, 0, DOWN) | |
342 | 342 | let cq = toString((cn % cp)) | |
343 | 343 | let cr = drop(toString(cp), (1 + size(cq))) | |
344 | 344 | (((toString((cn / cp)) + ".") + cr) + cq) | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | let cs = "profitAddr" | |
349 | 349 | ||
350 | 350 | let ct = "stakersAmountPaidTotal" | |
351 | 351 | ||
352 | 352 | func cu (u) = ("stakersAmountPaidUser_" + u) | |
353 | 353 | ||
354 | 354 | ||
355 | 355 | func cv () = cg(invoke(aa, "saveLastTx", nil, nil)) | |
356 | 356 | ||
357 | 357 | ||
358 | 358 | func cw (u) = { | |
359 | 359 | let cx = valueOrElse(getInteger(v(u)), 0) | |
360 | 360 | let aK = lastBlock.timestamp | |
361 | 361 | if ((bB > (aK - cx))) | |
362 | 362 | then throw((("Arbitrages are possible once a " + toString((bB / 60000))) + "min")) | |
363 | 363 | else { | |
364 | 364 | let cy = cj(u)[cc] | |
365 | 365 | let cz = valueOrElse(getInteger(ab, B(u)), 0) | |
366 | 366 | ((cy * bE) + cz) | |
367 | 367 | } | |
368 | 368 | } | |
369 | 369 | ||
370 | 370 | ||
371 | 371 | func cA (u,cB) = { | |
372 | 372 | let cC = addressFromStringValue(u) | |
373 | 373 | let cD = av(u, [bW, aa, bX, bY, bZ, aG, ab], by, 0, cB) | |
374 | 374 | let aK = lastBlock.timestamp | |
375 | 375 | let aL = cD[G] | |
376 | 376 | let aN = cD[H] | |
377 | 377 | let cE = cD[I] | |
378 | 378 | let aT = cD[J] | |
379 | 379 | let cF = cD[K] | |
380 | 380 | let aZ = cD[L] | |
381 | 381 | let cG = cD[M] | |
382 | 382 | if (((aK - aL) > i)) | |
383 | 383 | then throw("Please modify contract for next 1.5 years, according to stats") | |
384 | 384 | else { | |
385 | 385 | let bq = cD[O] | |
386 | 386 | let cH = cu(u) | |
387 | 387 | let cI = cD[P] | |
388 | 388 | let cJ = cD[Q] | |
389 | 389 | $Tuple2([ScriptTransfer(addressFromStringValue(value(getString(k))), cE, cb), ScriptTransfer(addressFromStringValue(value(getString(l))), cF, cb), ScriptTransfer(bW, cG, cb), IntegerEntry(cH, (valueOrElse(getInteger(cH), 0) + bq)), IntegerEntry(ct, (valueOrElse(getInteger(ct), 0) + cI)), IntegerEntry(s, (cD[N] - cI)), IntegerEntry(n, (aN - cE)), IntegerEntry(m, aK), IntegerEntry(p, (aT - cF)), IntegerEntry(o, aK), IntegerEntry(r, (aZ - cG)), IntegerEntry(q, aK), IntegerEntry(t(u), cJ)], $Tuple2(bq, cI)) | |
390 | 390 | } | |
391 | 391 | } | |
392 | 392 | ||
393 | 393 | ||
394 | 394 | @Callable(cK) | |
395 | 395 | func constructorV1 (cL,aP,aV,cM) = if ((cK.caller != this)) | |
396 | 396 | then throw("Permission denied") | |
397 | 397 | else if (isDefined(getBinary(ca))) | |
398 | 398 | then throw("Already initialized") | |
399 | 399 | else { | |
400 | 400 | let aB = c | |
401 | 401 | let cN = Issue("WLGOLD", "WavesLands Gold investment token", aB, 8, true, unit, 0) | |
402 | 402 | let cO = calculateAssetId(cN) | |
403 | 403 | [cN, IntegerEntry(y, lastBlock.timestamp), IntegerEntry(z, aB), IntegerEntry(ct, 0), IntegerEntry(s, fraction(c, g, bD)), BinaryEntry(ca, cO), StringEntry(bQ(), cL), StringEntry(k, aP), StringEntry(l, aV), StringEntry(cs, cM)] | |
404 | 404 | } | |
405 | 405 | ||
406 | 406 | ||
407 | 407 | ||
408 | 408 | @Callable(cK) | |
409 | 409 | func buyWlg (cP) = { | |
410 | 410 | let cQ = cv() | |
411 | 411 | if ((size(cK.payments) != 1)) | |
412 | 412 | then throw("exactly 1 payment must be attached") | |
413 | 413 | else { | |
414 | 414 | let cR = cK.payments[0] | |
415 | 415 | let cS = cR.amount | |
416 | 416 | let cT = valueOrErrorMessage(cR.assetId, "USDT payments only!") | |
417 | 417 | if ((cT != by)) | |
418 | 418 | then throw("USDT payments only!") | |
419 | 419 | else { | |
420 | 420 | let cC = cK.caller | |
421 | 421 | let u = toString(cC) | |
422 | 422 | if ((bF > cS)) | |
423 | 423 | then throw((("You can trade min " + cm(bF, 6)) + " USDT")) | |
424 | 424 | else { | |
425 | 425 | let cD = av("", [bW, aa, bX, bY, bZ, aG, ab], by, cS, bD) | |
426 | 426 | let cU = cD[D] | |
427 | 427 | let cV = cD[F] | |
428 | 428 | let cW = fraction(cV, bE, cU) | |
429 | 429 | let cX = fraction(cW, 6, 5) | |
430 | 430 | let cY = fraction(cS, bE, cX) | |
431 | 431 | let cZ = cw(u) | |
432 | 432 | if ((cY > cZ)) | |
433 | 433 | then throw((("You can get max " + cm(cZ, 8)) + " WLGOLD")) | |
434 | 434 | else if ((cP > cY)) | |
435 | 435 | then throw("Price changed during operation, please try again") | |
436 | 436 | else { | |
437 | 437 | let da = (cS / 6) | |
438 | 438 | let db = (cS - da) | |
439 | 439 | let dc = fraction(cU, db, cV) | |
440 | 440 | $Tuple2([Reissue(cb, dc, true), IntegerEntry(z, (cU + dc)), IntegerEntry(v(u), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(cs))), da, by), ScriptTransfer(cC, cY, cb)], cQ) | |
441 | 441 | } | |
442 | 442 | } | |
443 | 443 | } | |
444 | 444 | } | |
445 | 445 | } | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | ||
449 | 449 | @Callable(cK) | |
450 | 450 | func sellWlg (cP) = { | |
451 | 451 | let cQ = cv() | |
452 | 452 | if ((size(cK.payments) != 1)) | |
453 | 453 | then throw("exactly 1 payment must be attached") | |
454 | 454 | else { | |
455 | 455 | let cR = cK.payments[0] | |
456 | 456 | let dd = cR.amount | |
457 | 457 | let cC = cK.caller | |
458 | 458 | let u = toString(cC) | |
459 | 459 | let cZ = cw(u) | |
460 | 460 | if ((dd > cZ)) | |
461 | 461 | then throw((("You can spend max " + cm(cZ, 8)) + " WLGOLD")) | |
462 | 462 | else { | |
463 | 463 | let cT = valueOrErrorMessage(cR.assetId, "WLGOLD payments only!") | |
464 | 464 | if ((cT != cb)) | |
465 | 465 | then throw("WLGOLD payments only!") | |
466 | 466 | else { | |
467 | 467 | let cD = av("", [bW, aa, bX, bY, bZ, aG, ab], by, 0, bD) | |
468 | 468 | let cU = cD[D] | |
469 | 469 | let de = fraction(cD[E], 4, 5) | |
470 | 470 | let cS = fraction(dd, de, bE) | |
471 | 471 | if ((bF > cS)) | |
472 | 472 | then throw((("You can trade min " + cm(bF, 6)) + " USDT")) | |
473 | 473 | else if ((cP > cS)) | |
474 | 474 | then throw("Price changed during operation, please try again") | |
475 | 475 | else { | |
476 | 476 | let da = (cS / 4) | |
477 | 477 | let df = fraction((cS + da), cU, cD[F]) | |
478 | 478 | $Tuple2([Burn(cb, df), IntegerEntry(z, (cU - df)), IntegerEntry(v(u), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(cs))), da, by), ScriptTransfer(cC, cS, by)], cQ) | |
479 | 479 | } | |
480 | 480 | } | |
481 | 481 | } | |
482 | 482 | } | |
483 | 483 | } | |
484 | 484 | ||
485 | 485 | ||
486 | 486 | ||
487 | 487 | @Callable(cK) | |
488 | 488 | func claim () = { | |
489 | 489 | let cQ = cv() | |
490 | 490 | if ((size(cK.payments) != 0)) | |
491 | 491 | then throw("No payments required") | |
492 | 492 | else { | |
493 | 493 | let dg = cA(toString(cK.caller), bD) | |
494 | 494 | let dh = dg._1 | |
495 | 495 | $Tuple2((dh :+ ScriptTransfer(cK.caller, dg._2._1, cb)), cQ) | |
496 | 496 | } | |
497 | 497 | } | |
498 | 498 | ||
499 | 499 | ||
500 | 500 | ||
501 | 501 | @Callable(cK) | |
502 | 502 | func onStakeUnstakeLand (u) = if (if ((cK.caller != aa)) | |
503 | 503 | then (cK.caller != ab) | |
504 | 504 | else false) | |
505 | 505 | then throw("Permission denied") | |
506 | 506 | else { | |
507 | 507 | let dg = cA(u, bD) | |
508 | 508 | let dh = dg._1 | |
509 | 509 | $Tuple2((dh :+ ScriptTransfer(addressFromStringValue(u), dg._2._1, cb)), dg._2) | |
510 | 510 | } | |
511 | 511 | ||
512 | 512 | ||
513 | 513 | ||
514 | 514 | @Callable(cK) | |
515 | 515 | func claimRob (di,dj,dk) = if ((cK.caller != aa)) | |
516 | 516 | then throw("Permission denied") | |
517 | 517 | else { | |
518 | 518 | let dg = cA(di, dk) | |
519 | 519 | $Tuple2((dg._1 :+ ScriptTransfer(addressFromStringValue(dj), (dg._2._2 - dg._2._1), cb)), dg._2) | |
520 | 520 | } | |
521 | 521 | ||
522 | 522 |
github/deemru/w8io/169f3d6 52.61 ms ◑