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