tx · HfWA1qkGy3M7f9EkekCsFJRPjZPD3P6P3wVDAkygCXaJ

3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy:  -0.01200000 Waves

2023.07.04 14:51 [2651119] smart account 3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy > SELF 0.00000000 Waves

{ "type": 13, "id": "HfWA1qkGy3M7f9EkekCsFJRPjZPD3P6P3wVDAkygCXaJ", "fee": 1200000, "feeAssetId": null, "timestamp": 1688471531715, "version": 2, "chainId": 84, "sender": "3N7HtrKeFFLz5oy6PfGv1Lg3GwPk4gCPdGy", "senderPublicKey": "FsR18761ZAsUqsTd7TK3XmR6bhihs1UXVmpHYxz5JzQ1", "proofs": [ "4pjdPSZhFA5rrPyzxan5EFgKM2agPSmVTgwbRHaLqVXQxdZAdfZpzn9EkcJmbqqfuMv4xqnnaq4wX4ZtDssHvgRK" ], "script": "base64:BgIgCAISBgoECAgICBIDCgEBEgMKAQESABIDCgEIEgMKAQhGAQprZXlCbG9ja2VkAAIQY29udHJhY3RzQmxvY2tlZAALSWR4RWZmVG90YWwAAAAKSWR4RWZmVXNlcgABAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOhLxa7BfMat4el8cUYCQACAQINVW5rbm93biBjaGFpbgAVZGVmYXVsdFJlc3RBZGRyZXNzU3RyBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAiMzUFFDdXZGYnZoNExrUFVucm5VMXozam5iQTFwOW0zV05odgMJAAACAQFUBQckbWF0Y2gwAiMzTXVta0dHenRDS0FYcFdEcXhrZGRvZnFYU1VicVFrdlNKeQkAAgECDVVua25vd24gY2hhaW4ADmF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jYWxsZXIFB3VzZHRBbXQFC3VzZHRBc3NldElkBQNuaWwFDHByb2xvZ1Jlc3VsdAFpAQVjbGFpbQAEDHByb2xvZ1Jlc3VsdAkBBnByb2xvZwAEB2FjdGlvbnMICQENY2xhaW1JbnRlcm5hbAEJAKUIAQgFAWkGY2FsbGVyAl8xCQCUCgIFB2FjdGlvbnMFDHByb2xvZ1Jlc3VsdAFpAQtvblN0YWtlTGFuZAEEYWRkcgMJAQIhPQIIBQFpBmNhbGxlcgUPc3Rha2luZ0NvbnRyYWN0CQACAQIRUGVybWlzc2lvbiBkZW5pZWQJAQ1jbGFpbUludGVybmFsAQUEYWRkcgFpAQ1vblVuc3Rha2VMYW5kAQRhZGRyAwkBAiE9AggFAWkGY2FsbGVyBQ9zdGFraW5nQ29udHJhY3QJAAIBAhFQZXJtaXNzaW9uIGRlbmllZAkBDWNsYWltSW50ZXJuYWwBBQRhZGRyAG09hp8=", "height": 2651119, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4pvsduSPPvkq6HsBcFiGA9Gzbw1pTbTHKadj2MupEw9c Next: 6csyRHykhTHwkEVvRH573VLHdhuuuFSQkC8wsP9bxiUv Diff:
OldNewDifferences
267267 }
268268
269269
270-func bj (bk) = {
271- let bl = toString(bk)
270+func bj (aY) = {
271+ let bk = addressFromStringValue(aY)
272272 let bg = lastBlock.timestamp
273- let bm = valueOrErrorMessage(getInteger(aQ), "Not initialized")
274- let bn = valueOrElse(getInteger(aU), bm)
275- let bo = addressFromStringValue(value(getString(aR)))
276- let bp = fraction(fraction(aG, aH, j), (bg - bn), aL)
277- let bq = valueOrElse(getInteger(aV), bm)
278- let br = addressFromStringValue(value(getString(aS)))
279- let bs = fraction(fraction(aG, aI, j), (bg - bq), (3 * aL))
280- let bt = valueOrElse(getInteger(aW), bm)
281- let bu = fraction(fraction(aG, aJ, j), (bg - bt), (3 * aL))
282- let bv = ((bg - bm) / aM)
283- if ((bv > (aN / 2)))
273+ let bl = valueOrErrorMessage(getInteger(aQ), "Not initialized")
274+ let bm = valueOrElse(getInteger(aU), bl)
275+ let bn = addressFromStringValue(value(getString(aR)))
276+ let bo = fraction(fraction(aG, aH, j), (bg - bm), aL)
277+ let bp = valueOrElse(getInteger(aV), bl)
278+ let bq = addressFromStringValue(value(getString(aS)))
279+ let br = fraction(fraction(aG, aI, j), (bg - bp), (3 * aL))
280+ let bs = valueOrElse(getInteger(aW), bl)
281+ let bt = fraction(fraction(aG, aJ, j), (bg - bs), (3 * aL))
282+ let bu = ((bg - bl) / aM)
283+ if ((bu > (aN / 2)))
284284 then throw("Please modify contract for next 1.5 years, according to stats")
285285 else {
286- let bw = Z(bl)
287- let bx = bw[b]
288- let by = valueOrElse(getInteger(ba), 0)
289- let bz = fraction(by, (2 * bx), (bx + (max([100000, bx]) * (aN - bv))))
290- let bA = aX(bl)
291- let bB = valueOrElse(getInteger(bA), bm)
292- let bC = fraction(fraction(bz, bw[c], bx), (bg - bB), (3 * aL))
293- let bD = bc(bl)
294- $Tuple2([ScriptTransfer(bo, bp, Q), ScriptTransfer(br, bs, Q), ScriptTransfer(F, bu, Q), ScriptTransfer(bk, bC, Q), IntegerEntry(bD, (valueOrElse(getInteger(bD), 0) + bC)), IntegerEntry(bb, (valueOrElse(getInteger(bb), 0) + bC)), IntegerEntry(ba, (by - bC)), IntegerEntry(aU, bg), IntegerEntry(aV, bg), IntegerEntry(aW, bg), IntegerEntry(bA, bg)], bC)
286+ let bv = Z(aY)
287+ let bw = bv[b]
288+ let bx = valueOrElse(getInteger(ba), 0)
289+ let by = fraction(bx, (2 * bw), (bw + (max([100000, bw]) * (aN - bu))))
290+ let bz = aX(aY)
291+ let bA = valueOrElse(getInteger(bz), bl)
292+ let bB = fraction(fraction(by, bv[c], bw), (bg - bA), (3 * aL))
293+ let bC = bc(aY)
294+ $Tuple2([ScriptTransfer(bn, bo, Q), ScriptTransfer(bq, br, Q), ScriptTransfer(F, bt, Q), ScriptTransfer(bk, bB, Q), IntegerEntry(bC, (valueOrElse(getInteger(bC), 0) + bB)), IntegerEntry(bb, (valueOrElse(getInteger(bb), 0) + bB)), IntegerEntry(ba, (bx - bB)), IntegerEntry(aU, bg), IntegerEntry(aV, bg), IntegerEntry(aW, bg), IntegerEntry(bz, bg)], bB)
295295 }
296296 }
297297
298298
299-@Callable(bE)
300-func constructorV1 (bF,bo,br,bG) = if ((bE.caller != this))
299+@Callable(bD)
300+func constructorV1 (bE,bn,bq,bF) = if ((bD.caller != this))
301301 then throw("Permission denied")
302302 else if (isDefined(getBinary(P)))
303303 then throw("Already initialized")
304304 else {
305305 let aw = aG
306- let bH = Issue("WLGOLD", "WavesLands Gold investment token", aw, 8, true, unit, 0)
307- let bI = calculateAssetId(bH)
308-[bH, IntegerEntry(aQ, lastBlock.timestamp), IntegerEntry(O, aw), IntegerEntry(bb, 0), IntegerEntry(ba, fraction(aG, aK, j)), BinaryEntry(P, bI), StringEntry(z(), bF), StringEntry(aR, bo), StringEntry(aS, br), StringEntry(aT, bG)]
306+ let bG = Issue("WLGOLD", "WavesLands Gold investment token", aw, 8, true, unit, 0)
307+ let bH = calculateAssetId(bG)
308+[bG, IntegerEntry(aQ, lastBlock.timestamp), IntegerEntry(O, aw), IntegerEntry(bb, 0), IntegerEntry(ba, fraction(aG, aK, j)), BinaryEntry(P, bH), StringEntry(z(), bE), StringEntry(aR, bn), StringEntry(aS, bq), StringEntry(aT, bF)]
309309 }
310310
311311
312312
313-@Callable(bE)
314-func buyWlg (bJ) = {
315- let bK = bd()
316- if ((size(bE.payments) != 1))
313+@Callable(bD)
314+func buyWlg (bI) = {
315+ let bJ = bd()
316+ if ((size(bD.payments) != 1))
317317 then throw("exactly 1 payment must be attached")
318318 else {
319- let bL = bE.payments[0]
320- let bM = bL.amount
321- let bN = valueOrErrorMessage(bL.assetId, "WAVES can't be used as payment")
322- if ((bN != e))
319+ let bK = bD.payments[0]
320+ let bL = bK.amount
321+ let bM = valueOrErrorMessage(bK.assetId, "WAVES can't be used as payment")
322+ if ((bM != e))
323323 then throw("USDT payments only!")
324324 else {
325- let bk = bE.caller
325+ let bk = bD.caller
326326 let aY = toString(bk)
327- let bO = be(aY)
328- if ((bM > bO))
329- then throw((("You can spend max " + aC(bO, 6)) + " USDT"))
330- else if ((q > bM))
327+ let bN = be(aY)
328+ if ((bL > bN))
329+ then throw((("You can spend max " + aC(bN, 6)) + " USDT"))
330+ else if ((q > bL))
331331 then throw((("You can trade min " + aC(q, 6)) + " USDT"))
332332 else {
333- let bP = av()
334- let bQ = bP[R]
335- let bR = (bP[T] - bM)
336- let bS = fraction(bR, k, bQ)
337- let bT = fraction(bS, 6, 5)
338- let bU = fraction(bM, k, bT)
339- if ((bJ > bU))
333+ let bO = av()
334+ let bP = bO[R]
335+ let bQ = (bO[T] - bL)
336+ let bR = fraction(bQ, k, bP)
337+ let bS = fraction(bR, 6, 5)
338+ let bT = fraction(bL, k, bS)
339+ if ((bI > bT))
340340 then throw("Price changed during operation, please try again")
341341 else {
342- let bV = (bM / 6)
343- let bW = (bM - bV)
344- let bX = fraction(bQ, bW, bR)
345- $Tuple2([Reissue(Q, bX, true), IntegerEntry(O, (bQ + bX)), IntegerEntry(aZ(aY), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(aT))), bV, e), ScriptTransfer(bk, bU, Q)], bK)
342+ let bU = (bL / 6)
343+ let bV = (bL - bU)
344+ let bW = fraction(bP, bV, bQ)
345+ $Tuple2([Reissue(Q, bW, true), IntegerEntry(O, (bP + bW)), IntegerEntry(aZ(aY), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(aT))), bU, e), ScriptTransfer(bk, bT, Q)], bJ)
346346 }
347347 }
348348 }
351351
352352
353353
354-@Callable(bE)
355-func sellWlg (bJ) = {
356- let bK = bd()
357- if ((size(bE.payments) != 1))
354+@Callable(bD)
355+func sellWlg (bI) = {
356+ let bJ = bd()
357+ if ((size(bD.payments) != 1))
358358 then throw("exactly 1 payment must be attached")
359359 else {
360- let bL = bE.payments[0]
361- let bY = bL.amount
362- let bN = valueOrErrorMessage(bL.assetId, "WAVES can't be used as payment")
363- if ((bN != Q))
360+ let bK = bD.payments[0]
361+ let bX = bK.amount
362+ let bM = valueOrErrorMessage(bK.assetId, "WAVES can't be used as payment")
363+ if ((bM != Q))
364364 then throw("WLGOLD payments only!")
365365 else {
366- let bk = bE.caller
366+ let bk = bD.caller
367367 let aY = toString(bk)
368- let bO = be(aY)
369- let bP = av()
370- let bQ = bP[R]
371- let bZ = fraction(bP[S], 4, 5)
372- let bM = fraction(bY, bZ, k)
373- if ((bM > bO))
374- then throw((("You can get max " + aC(bO, 6)) + " USDT"))
375- else if ((q > bM))
368+ let bN = be(aY)
369+ let bO = av()
370+ let bP = bO[R]
371+ let bY = fraction(bO[S], 4, 5)
372+ let bL = fraction(bX, bY, k)
373+ if ((bL > bN))
374+ then throw((("You can get max " + aC(bN, 6)) + " USDT"))
375+ else if ((q > bL))
376376 then throw((("You can trade min " + aC(q, 6)) + " USDT"))
377- else if ((bJ > bM))
377+ else if ((bI > bL))
378378 then throw("Price changed during operation, please try again")
379379 else {
380- let bV = (bM / 4)
381- let ca = fraction((bM + bV), bQ, bP[T])
382- $Tuple2([Burn(Q, ca), IntegerEntry(O, (bQ - ca)), IntegerEntry(aZ(aY), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(aT))), bV, e), ScriptTransfer(bk, bM, e)], bK)
380+ let bU = (bL / 4)
381+ let bZ = fraction((bL + bU), bP, bO[T])
382+ $Tuple2([Burn(Q, bZ), IntegerEntry(O, (bP - bZ)), IntegerEntry(aZ(aY), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(aT))), bU, e), ScriptTransfer(bk, bL, e)], bJ)
383383 }
384384 }
385385 }
387387
388388
389389
390-@Callable(bE)
390+@Callable(bD)
391391 func claim () = {
392- let bK = bd()
393- let cb = bj(bE.caller)._1
394- $Tuple2(cb, bK)
392+ let bJ = bd()
393+ let ca = bj(toString(bD.caller))._1
394+ $Tuple2(ca, bJ)
395395 }
396396
397397
398398
399-@Callable(bE)
400-func onStakeLand (aY) = if ((bE.caller != G))
399+@Callable(bD)
400+func onStakeLand (aY) = if ((bD.caller != G))
401401 then throw("Permission denied")
402- else bj(addressFromStringValue(aY))
402+ else bj(aY)
403403
404404
405405
406-@Callable(bE)
407-func onUnstakeLand (aY) = if ((bE.caller != G))
406+@Callable(bD)
407+func onUnstakeLand (aY) = if ((bD.caller != G))
408408 then throw("Permission denied")
409- else bj(addressFromStringValue(aY))
409+ else bj(aY)
410410
411411
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a () = "contractsBlocked"
55
66
77 let b = 0
88
99 let c = 1
1010
1111 let d = take(drop(this.bytes, 1), 1)
1212
1313 let e = {
1414 let f = d
1515 if ((base58'2W' == f))
1616 then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi'
1717 else if ((base58'2T' == f))
1818 then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63'
1919 else throw("Unknown chain")
2020 }
2121
2222 let g = {
2323 let f = d
2424 if ((base58'2W' == f))
2525 then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv"
2626 else if ((base58'2T' == f))
2727 then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy"
2828 else throw("Unknown chain")
2929 }
3030
3131 let h = {
3232 let f = d
3333 if ((base58'2W' == f))
3434 then 600000
3535 else if ((base58'2T' == f))
3636 then 60000
3737 else throw("Unknown chain")
3838 }
3939
4040 let i = "__"
4141
4242 let j = 1000000
4343
4444 let k = 100000000
4545
4646 let l = 25
4747
4848 let m = 100
4949
5050 let n = 225
5151
5252 let o = 400
5353
5454 let p = 625
5555
5656 let q = 100000
5757
5858 func r (s,t) = valueOrErrorMessage(getString(s, t), makeString(["mandatory ", toString(s), ".", t, " is not defined"], ""))
5959
6060
6161 let u = 1
6262
6363 let v = 2
6464
6565 let w = 4
6666
6767 let x = 5
6868
6969 func y () = "%s__restConfig"
7070
7171
7272 func z () = "%s__restAddr"
7373
7474
7575 func A (B) = split_4C(r(B, y()), i)
7676
7777
7878 func C (D,E) = valueOrErrorMessage(addressFromString(D[E]), ("Rest cfg doesn't contain address at index " + toString(E)))
7979
8080
8181 let F = addressFromStringValue(valueOrElse(getString(this, z()), g))
8282
8383 let D = A(F)
8484
8585 let G = C(D, u)
8686
8787 let H = C(D, v)
8888
8989 let I = C(D, w)
9090
9191 let J = C(D, x)
9292
9393 let K = 1
9494
9595 func L () = "resTypesProportions"
9696
9797
9898 func M (N) = ("stakedLandsByOwner_" + N)
9999
100100
101101 let O = "wlg_issuedAmount"
102102
103103 let P = "wlg_assetId"
104104
105105 let Q = valueOrErrorMessage(getBinary(I, P), "Not initialized yet")
106106
107107 let R = 0
108108
109109 let S = 1
110110
111111 let T = 2
112112
113113 func U (V) = {
114114 let f = V
115115 if ($isInstanceOf(f, "Int"))
116116 then {
117117 let W = f
118118 W
119119 }
120120 else throw("fail to cast into Int")
121121 }
122122
123123
124124 func X (Y) = {
125125 let f = Y
126126 if (("S" == f))
127127 then l
128128 else if (("M" == f))
129129 then m
130130 else if (("L" == f))
131131 then n
132132 else if (("XL" == f))
133133 then o
134134 else if (("XXL" == f))
135135 then p
136136 else throw("Unknown land size")
137137 }
138138
139139
140140 func Z (aa) = {
141141 let ab = split(valueOrElse(getString(G, L()), "0_0_0_0_0_0"), "_")
142142 func ac (ad,ae) = (ad + parseIntValue(ae))
143143
144144 let af = {
145145 let ag = ab
146146 let ah = size(ag)
147147 let ai = 0
148148 func aj (ak,al) = if ((al >= ah))
149149 then ak
150150 else ac(ak, ag[al])
151151
152152 func am (ak,al) = if ((al >= ah))
153153 then ak
154154 else throw("List size exceeds 6")
155155
156156 am(aj(aj(aj(aj(aj(aj(ai, 0), 1), 2), 3), 4), 5), 6)
157157 }
158158 let an = if ((aa == ""))
159159 then 0
160160 else {
161161 let ao = getString(G, M(aa))
162162 let ap = if (isDefined(ao))
163163 then split_51C(value(ao), "_")
164164 else nil
165165 func aq (ad,ar) = {
166166 let as = value(assetInfo(fromBase58String(ar)))
167167 let Y = split(as.description, "_")[K]
168168 (ad + X(Y))
169169 }
170170
171171 let ag = ap
172172 let ah = size(ag)
173173 let ai = 0
174174 func at (ak,al) = if ((al >= ah))
175175 then ak
176176 else aq(ak, ag[al])
177177
178178 func au (ak,al) = if ((al >= ah))
179179 then ak
180180 else throw("List size exceeds 100")
181181
182182 au(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(ai, 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)
183183 }
184184 [af, an]
185185 }
186186
187187
188188 func av () = {
189189 let aw = valueOrErrorMessage(getInteger(I, O), "WLGOLD is not issued yet")
190190 let ax = assetBalance(H, e)
191191 let ay = assetBalance(F, e)
192192 let az = assetBalance(I, e)
193193 let aA = assetBalance(J, e)
194194 let aB = ((ax + ay) + az)
195195 [aw, fraction(aB, k, aw), aB, ax, ay, az, aA]
196196 }
197197
198198
199199 func aC (aD,aE) = {
200200 let aF = pow(10, 0, aE, 0, 0, DOWN)
201201 ((toString((aD / aF)) + ".") + toString((aD % aF)))
202202 }
203203
204204
205205 let aG = 100000000000000
206206
207207 let aH = 100000
208208
209209 let aI = 200000
210210
211211 let aJ = 100000
212212
213213 let aK = 400000
214214
215215 let aL = 31557600000
216216
217217 let aM = 604800000
218218
219219 let aN = 156
220220
221221 let aO = 100000000
222222
223223 let aP = 50000000
224224
225225 let aQ = "wlg_issueTime"
226226
227227 let aR = "marketingAddr"
228228
229229 let aS = "teamAddr"
230230
231231 let aT = "profitAddr"
232232
233233 let aU = "lastClaimedTime_marketing"
234234
235235 let aV = "lastClaimedTime_team"
236236
237237 let aW = "lastClaimedTime_activities"
238238
239239 func aX (aY) = ("lastClaimedTimeUser_" + aY)
240240
241241
242242 func aZ (aY) = ("lastArbTimeUser_" + aY)
243243
244244
245245 let ba = "stakersAmountLeft"
246246
247247 let bb = "stakersAmountPaidTotal"
248248
249249 func bc (aY) = ("stakersAmountPaidUser_" + aY)
250250
251251
252252 func bd () = if (valueOrElse(getBoolean(G, a()), false))
253253 then throw("Contracts are under maintenance")
254254 else U(invoke(G, "saveLastTx", nil, nil))
255255
256256
257257 func be (aY) = {
258258 let bf = valueOrElse(getInteger(aZ(aY)), 0)
259259 let bg = lastBlock.timestamp
260260 if ((h > (bg - bf)))
261261 then throw((("Arbitrages are possible once a " + toString((h / 60000))) + "min"))
262262 else {
263263 let bh = Z(aY)[c]
264264 let bi = pow(bh, 0, aP, 8, 8, CEILING)
265265 fraction(aO, bi, k)
266266 }
267267 }
268268
269269
270-func bj (bk) = {
271- let bl = toString(bk)
270+func bj (aY) = {
271+ let bk = addressFromStringValue(aY)
272272 let bg = lastBlock.timestamp
273- let bm = valueOrErrorMessage(getInteger(aQ), "Not initialized")
274- let bn = valueOrElse(getInteger(aU), bm)
275- let bo = addressFromStringValue(value(getString(aR)))
276- let bp = fraction(fraction(aG, aH, j), (bg - bn), aL)
277- let bq = valueOrElse(getInteger(aV), bm)
278- let br = addressFromStringValue(value(getString(aS)))
279- let bs = fraction(fraction(aG, aI, j), (bg - bq), (3 * aL))
280- let bt = valueOrElse(getInteger(aW), bm)
281- let bu = fraction(fraction(aG, aJ, j), (bg - bt), (3 * aL))
282- let bv = ((bg - bm) / aM)
283- if ((bv > (aN / 2)))
273+ let bl = valueOrErrorMessage(getInteger(aQ), "Not initialized")
274+ let bm = valueOrElse(getInteger(aU), bl)
275+ let bn = addressFromStringValue(value(getString(aR)))
276+ let bo = fraction(fraction(aG, aH, j), (bg - bm), aL)
277+ let bp = valueOrElse(getInteger(aV), bl)
278+ let bq = addressFromStringValue(value(getString(aS)))
279+ let br = fraction(fraction(aG, aI, j), (bg - bp), (3 * aL))
280+ let bs = valueOrElse(getInteger(aW), bl)
281+ let bt = fraction(fraction(aG, aJ, j), (bg - bs), (3 * aL))
282+ let bu = ((bg - bl) / aM)
283+ if ((bu > (aN / 2)))
284284 then throw("Please modify contract for next 1.5 years, according to stats")
285285 else {
286- let bw = Z(bl)
287- let bx = bw[b]
288- let by = valueOrElse(getInteger(ba), 0)
289- let bz = fraction(by, (2 * bx), (bx + (max([100000, bx]) * (aN - bv))))
290- let bA = aX(bl)
291- let bB = valueOrElse(getInteger(bA), bm)
292- let bC = fraction(fraction(bz, bw[c], bx), (bg - bB), (3 * aL))
293- let bD = bc(bl)
294- $Tuple2([ScriptTransfer(bo, bp, Q), ScriptTransfer(br, bs, Q), ScriptTransfer(F, bu, Q), ScriptTransfer(bk, bC, Q), IntegerEntry(bD, (valueOrElse(getInteger(bD), 0) + bC)), IntegerEntry(bb, (valueOrElse(getInteger(bb), 0) + bC)), IntegerEntry(ba, (by - bC)), IntegerEntry(aU, bg), IntegerEntry(aV, bg), IntegerEntry(aW, bg), IntegerEntry(bA, bg)], bC)
286+ let bv = Z(aY)
287+ let bw = bv[b]
288+ let bx = valueOrElse(getInteger(ba), 0)
289+ let by = fraction(bx, (2 * bw), (bw + (max([100000, bw]) * (aN - bu))))
290+ let bz = aX(aY)
291+ let bA = valueOrElse(getInteger(bz), bl)
292+ let bB = fraction(fraction(by, bv[c], bw), (bg - bA), (3 * aL))
293+ let bC = bc(aY)
294+ $Tuple2([ScriptTransfer(bn, bo, Q), ScriptTransfer(bq, br, Q), ScriptTransfer(F, bt, Q), ScriptTransfer(bk, bB, Q), IntegerEntry(bC, (valueOrElse(getInteger(bC), 0) + bB)), IntegerEntry(bb, (valueOrElse(getInteger(bb), 0) + bB)), IntegerEntry(ba, (bx - bB)), IntegerEntry(aU, bg), IntegerEntry(aV, bg), IntegerEntry(aW, bg), IntegerEntry(bz, bg)], bB)
295295 }
296296 }
297297
298298
299-@Callable(bE)
300-func constructorV1 (bF,bo,br,bG) = if ((bE.caller != this))
299+@Callable(bD)
300+func constructorV1 (bE,bn,bq,bF) = if ((bD.caller != this))
301301 then throw("Permission denied")
302302 else if (isDefined(getBinary(P)))
303303 then throw("Already initialized")
304304 else {
305305 let aw = aG
306- let bH = Issue("WLGOLD", "WavesLands Gold investment token", aw, 8, true, unit, 0)
307- let bI = calculateAssetId(bH)
308-[bH, IntegerEntry(aQ, lastBlock.timestamp), IntegerEntry(O, aw), IntegerEntry(bb, 0), IntegerEntry(ba, fraction(aG, aK, j)), BinaryEntry(P, bI), StringEntry(z(), bF), StringEntry(aR, bo), StringEntry(aS, br), StringEntry(aT, bG)]
306+ let bG = Issue("WLGOLD", "WavesLands Gold investment token", aw, 8, true, unit, 0)
307+ let bH = calculateAssetId(bG)
308+[bG, IntegerEntry(aQ, lastBlock.timestamp), IntegerEntry(O, aw), IntegerEntry(bb, 0), IntegerEntry(ba, fraction(aG, aK, j)), BinaryEntry(P, bH), StringEntry(z(), bE), StringEntry(aR, bn), StringEntry(aS, bq), StringEntry(aT, bF)]
309309 }
310310
311311
312312
313-@Callable(bE)
314-func buyWlg (bJ) = {
315- let bK = bd()
316- if ((size(bE.payments) != 1))
313+@Callable(bD)
314+func buyWlg (bI) = {
315+ let bJ = bd()
316+ if ((size(bD.payments) != 1))
317317 then throw("exactly 1 payment must be attached")
318318 else {
319- let bL = bE.payments[0]
320- let bM = bL.amount
321- let bN = valueOrErrorMessage(bL.assetId, "WAVES can't be used as payment")
322- if ((bN != e))
319+ let bK = bD.payments[0]
320+ let bL = bK.amount
321+ let bM = valueOrErrorMessage(bK.assetId, "WAVES can't be used as payment")
322+ if ((bM != e))
323323 then throw("USDT payments only!")
324324 else {
325- let bk = bE.caller
325+ let bk = bD.caller
326326 let aY = toString(bk)
327- let bO = be(aY)
328- if ((bM > bO))
329- then throw((("You can spend max " + aC(bO, 6)) + " USDT"))
330- else if ((q > bM))
327+ let bN = be(aY)
328+ if ((bL > bN))
329+ then throw((("You can spend max " + aC(bN, 6)) + " USDT"))
330+ else if ((q > bL))
331331 then throw((("You can trade min " + aC(q, 6)) + " USDT"))
332332 else {
333- let bP = av()
334- let bQ = bP[R]
335- let bR = (bP[T] - bM)
336- let bS = fraction(bR, k, bQ)
337- let bT = fraction(bS, 6, 5)
338- let bU = fraction(bM, k, bT)
339- if ((bJ > bU))
333+ let bO = av()
334+ let bP = bO[R]
335+ let bQ = (bO[T] - bL)
336+ let bR = fraction(bQ, k, bP)
337+ let bS = fraction(bR, 6, 5)
338+ let bT = fraction(bL, k, bS)
339+ if ((bI > bT))
340340 then throw("Price changed during operation, please try again")
341341 else {
342- let bV = (bM / 6)
343- let bW = (bM - bV)
344- let bX = fraction(bQ, bW, bR)
345- $Tuple2([Reissue(Q, bX, true), IntegerEntry(O, (bQ + bX)), IntegerEntry(aZ(aY), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(aT))), bV, e), ScriptTransfer(bk, bU, Q)], bK)
342+ let bU = (bL / 6)
343+ let bV = (bL - bU)
344+ let bW = fraction(bP, bV, bQ)
345+ $Tuple2([Reissue(Q, bW, true), IntegerEntry(O, (bP + bW)), IntegerEntry(aZ(aY), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(aT))), bU, e), ScriptTransfer(bk, bT, Q)], bJ)
346346 }
347347 }
348348 }
349349 }
350350 }
351351
352352
353353
354-@Callable(bE)
355-func sellWlg (bJ) = {
356- let bK = bd()
357- if ((size(bE.payments) != 1))
354+@Callable(bD)
355+func sellWlg (bI) = {
356+ let bJ = bd()
357+ if ((size(bD.payments) != 1))
358358 then throw("exactly 1 payment must be attached")
359359 else {
360- let bL = bE.payments[0]
361- let bY = bL.amount
362- let bN = valueOrErrorMessage(bL.assetId, "WAVES can't be used as payment")
363- if ((bN != Q))
360+ let bK = bD.payments[0]
361+ let bX = bK.amount
362+ let bM = valueOrErrorMessage(bK.assetId, "WAVES can't be used as payment")
363+ if ((bM != Q))
364364 then throw("WLGOLD payments only!")
365365 else {
366- let bk = bE.caller
366+ let bk = bD.caller
367367 let aY = toString(bk)
368- let bO = be(aY)
369- let bP = av()
370- let bQ = bP[R]
371- let bZ = fraction(bP[S], 4, 5)
372- let bM = fraction(bY, bZ, k)
373- if ((bM > bO))
374- then throw((("You can get max " + aC(bO, 6)) + " USDT"))
375- else if ((q > bM))
368+ let bN = be(aY)
369+ let bO = av()
370+ let bP = bO[R]
371+ let bY = fraction(bO[S], 4, 5)
372+ let bL = fraction(bX, bY, k)
373+ if ((bL > bN))
374+ then throw((("You can get max " + aC(bN, 6)) + " USDT"))
375+ else if ((q > bL))
376376 then throw((("You can trade min " + aC(q, 6)) + " USDT"))
377- else if ((bJ > bM))
377+ else if ((bI > bL))
378378 then throw("Price changed during operation, please try again")
379379 else {
380- let bV = (bM / 4)
381- let ca = fraction((bM + bV), bQ, bP[T])
382- $Tuple2([Burn(Q, ca), IntegerEntry(O, (bQ - ca)), IntegerEntry(aZ(aY), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(aT))), bV, e), ScriptTransfer(bk, bM, e)], bK)
380+ let bU = (bL / 4)
381+ let bZ = fraction((bL + bU), bP, bO[T])
382+ $Tuple2([Burn(Q, bZ), IntegerEntry(O, (bP - bZ)), IntegerEntry(aZ(aY), lastBlock.timestamp), ScriptTransfer(addressFromStringValue(value(getString(aT))), bU, e), ScriptTransfer(bk, bL, e)], bJ)
383383 }
384384 }
385385 }
386386 }
387387
388388
389389
390-@Callable(bE)
390+@Callable(bD)
391391 func claim () = {
392- let bK = bd()
393- let cb = bj(bE.caller)._1
394- $Tuple2(cb, bK)
392+ let bJ = bd()
393+ let ca = bj(toString(bD.caller))._1
394+ $Tuple2(ca, bJ)
395395 }
396396
397397
398398
399-@Callable(bE)
400-func onStakeLand (aY) = if ((bE.caller != G))
399+@Callable(bD)
400+func onStakeLand (aY) = if ((bD.caller != G))
401401 then throw("Permission denied")
402- else bj(addressFromStringValue(aY))
402+ else bj(aY)
403403
404404
405405
406-@Callable(bE)
407-func onUnstakeLand (aY) = if ((bE.caller != G))
406+@Callable(bD)
407+func onUnstakeLand (aY) = if ((bD.caller != G))
408408 then throw("Permission denied")
409- else bj(addressFromStringValue(aY))
409+ else bj(aY)
410410
411411

github/deemru/w8io/026f985 
123.95 ms