tx · 8v4rP1U7bWWFZpr3pPtTvZgzFhaAd6mUym715Gd6HGUS

3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH:  -0.01700000 Waves

2022.07.26 13:41 [2156664] smart account 3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH > SELF 0.00000000 Waves

{ "type": 13, "id": "8v4rP1U7bWWFZpr3pPtTvZgzFhaAd6mUym715Gd6HGUS", "fee": 1700000, "feeAssetId": null, "timestamp": 1658832149378, "version": 2, "chainId": 84, "sender": "3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH", "senderPublicKey": "4hcnYaYoB2XaCzyJ7wfePpG7EfTd6st6aCAhkskJ9cQ5", "proofs": [ "x9xjuWR2a8UAEzSQESRc8ZpQCazwQKrHBCJLviVEWfofjEKmRZk72ko3aCJuRxXh3WiLHCeNpfRAkk6G2uvwBah" ], "script": "base64:BgIaCAISABIAEgASABIAEgASABIAEgASABIAEgAcAAp1c2R0VXNkbkxQASDbTYM1ZEcblu+fDC+gz33VeZ2S6OGbNQ/BP8x7AnApCwANdXNkdFVzZG5MUFRDSQEgCoHNqe1AYR2YSrg62HoEaFMIJsDJmPFhwSl++h3eKvIACHd4VXNkbkxQASAbuaGPe85Mpc36zkfJCxaOTfZb3sLrk8HWxajRsaoLHAALd3hVc2RuTFBUQ0kBILfs3eYbAnvathOH/VXQ1jy2x6I3PUuIvcF7b0hEAJgvAAp1c2RjVXNkbkxQASADaQH8GwqYCojNj/4RWYWFJpEys1qS/CbpSF3Tn95cdgANdXNkY1VzZG5MUFRDSQEg9gI33dOf74ZFL1wjRw+VX9E6baErwqe0m1RBB1L1bsYACnVzZGNVc2R0TFABIMb4pHQbVkhWEJ+QfsIz9DFriwRKLCv9mUuH9YWbfOSMAA11c2RjVXNkdExQVENJASACxoV8BEszx+Lvh2eHUvtVgv2z34QjtqBaxTXdz1dK/gAMcHV6emxlVXNkbkxQASDDM8Z0ziOqpCLfSSTlxJlreASwd1aCdP+40R1K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JFbnRyeQIFDWtleVBVWlpMRVVTRE4JAGQCBQt0b3RhbFN0YWtlZAUCY2EEAnRjCQEMSW50ZWdlckVudHJ5AgUVa2V5UHV6emxlVXNkbkNvbXBvdW5kCQBkAgUMZnJvbUNvbXBvdW5kBQJjYQkAzAgCBQt1cGRhdGVTdGF0ZQkAzAgCBQJ0YwUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBDHNwb25zb3JCb29zdAAEAnBtCQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAAECmxvY2tQZXJpb2QAZAMJAQIhPQIIBQJwbQdhc3NldElkBQR3eElkCQACAQIFRXJyb3IECXNwb25zb3JlZAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQ5rZXlTcG9uc29yc2hpcAAABARsb2NrCQD8BwQJAQdBZGRyZXNzAQEaAVez5uZVGBFpsOQzD4hRQ6ScrtbVSwNLEVgCDGluY3JlYXNlTG9jawkAzAgCBQpsb2NrUGVyaW9kBQNuaWwJAMwIAgUCcG0FA25pbAMJAAACBQRsb2NrBQRsb2NrBAFzCQEMSW50ZWdlckVudHJ5AgUOa2V5U3BvbnNvcnNoaXAJAGQCCAUCcG0GYW1vdW50BQlzcG9uc29yZWQJAMwIAgUBcwUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleTFNLKg=", "height": 2156664, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B9ai4yFoDP2ZeBMZqVTernmmfmbyv2hxWHFyHYTi3paW Next: 5MRDXB6MyN2YMzpNRdgjqiJDUWLSikAgD4wjetuWuWm2 Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS'
99
1010 let d = base58'DNy6WBfhPE4y82RonGdHhZEunNotEDzmNfrBomWnsyGi'
1111
12-let e = base58'FLdC14nUVRyiSYjVrMo3X4g8rXQjLbNRaGAyQAm8V68V'
12+let e = base58'EK6N7S38xbtBT3SxAqoGdDLCiX6rojX6G169CnSyuE5'
1313
14-let f = base58'EGQiqw8jLjg6SVLUeeqMLjk3EjhEVHtjkJ6w46HyFfep'
14+let f = base58'HZKFpNfyPG5gt4D6Nfy1zQSg2Ptmqv932GjNTCyBEeKP'
1515
16-let g = base58'9ZkS8GoUWn69QhgF1RsRtS9CFtc7ZbDNX5N238Jmqjdr'
16+let g = base58'EPhdEfmQaNcHyvDmRGhnLhgcJtKZ2a4k3ZBmKWtAEWyH'
1717
18-let h = base58'GCvR4BmCSjncVEEwr9psvhN5mctdNTGPs8Xp4b2oQNFZ'
18+let h = base58'BqPYkaiz7Le6fFu1rjZ54anrpT57EpvyugZCUqrsjXj'
1919
20-let i = base58'2RmyyZ39ZoPoTWksM6urmjgx9mB8ksP8Ru6ba8u89mZm'
20+let i = base58'E8zHu33GfcNyGLypX77gZiUXfvuZQeaYmiEfsy7VYNwP'
2121
22-let j = base58'4jarprgmcev38EU5p2duJAznZSLUxZ831jCT2vf95Hey'
22+let j = base58'Dh9QXSSABE5V6aRfu3mCbDAUokbpE7ER7pbZV6cvyg1A'
2323
24-let k = base58'3NAVBWBnqieKa3CdN39MAhToyTHShYxX1gB'
24+let k = base58'Atqv59EYzjFGuitKVnMRk6H8FukjoV3ktPorbEys25on'
2525
26-let l = false
26+let l = "Sponsorship_in_lock"
2727
28-let m = "STAKED_LP"
28+let m = false
2929
30-let n = "From_Compound"
30+let n = "STAKED_LP"
3131
32-let o = "WX_USDN_compound"
32+let o = "From_Compound"
3333
34-let p = "WX_USDN"
34+let p = "WX_USDN_compound"
3535
36-let q = "WAVES_USDN"
36+let q = "WX_USDN"
3737
38-let r = "WAVES_USDN_COMPOUND"
38+let r = "USDC_USDN_compound"
3939
40-let s = "BTC_USDN"
40+let s = "USDC_USDN"
4141
42-let t = "BTC_USDN_COMPOUND"
42+let t = "USDC_USDT_compound"
4343
44-let u = "ETH_USDN"
44+let u = "USDC_USDT"
4545
46-let v = "ETH_USDN_COMPOUND"
46+let v = "PUZZLE_USDN_compound"
4747
48-@Callable(w)
49-func depositBtcUsdnLP () = {
50- let x = value(w.payments[0])
51- let y = x.amount
52- if ((x.assetId != i))
53- then throw("attach BTCUSDNLP tokens only")
54- else if (l)
48+let w = "PUZZLE_USDN"
49+
50+let x = 100000000
51+
52+let y = 10000000000
53+
54+let z = base58'3P93R2GBkTGVehRPhytHr7sdxYww93jkbhm'
55+
56+let A = base58'3P6phwFZFQtZFuc9dvdXsgvtg8JEFVgECPA'
57+
58+func B (C) = if ((C != A))
59+ then false
60+ else true
61+
62+
63+@Callable(D)
64+func withdraw () = {
65+ let E = value(D.payments[0])
66+ let F = E.amount
67+ let G = E.assetId
68+ if ((G == a))
69+ then {
70+ let H = {
71+ let I = assetInfo(b)
72+ if ($isInstanceOf(I, "Asset"))
73+ then {
74+ let J = I
75+ J.quantity
76+ }
77+ else 0
78+ }
79+ let K = valueOrElse(getInteger(this, n), 0)
80+ let L = fraction(H, x, K)
81+ let M = fraction(L, F, x)
82+ let N = fraction(M, x, y)
83+ let O = ScriptTransfer(Address(z), N, a)
84+ let P = ScriptTransfer(D.caller, (M - N), a)
85+ let Q = IntegerEntry(n, (K - M))
86+ let R = Burn(b, F)
87+ if ((R == R))
88+ then [O, P, Q]
89+ else throw("Strict value is not equal to itself.")
90+ }
91+ else if ((G == d))
92+ then {
93+ let S = {
94+ let I = assetInfo(d)
95+ if ($isInstanceOf(I, "Asset"))
96+ then {
97+ let J = I
98+ J.quantity
99+ }
100+ else 0
101+ }
102+ let T = valueOrElse(getInteger(this, q), 0)
103+ let U = fraction(S, x, T)
104+ let V = fraction(U, F, x)
105+ let N = fraction(V, x, y)
106+ let W = ScriptTransfer(Address(z), N, c)
107+ let X = ScriptTransfer(D.caller, (F - N), c)
108+ let Y = IntegerEntry(q, (T - V))
109+ let Z = Burn(c, F)
110+ if ((Z == Z))
111+ then [W, X, Y]
112+ else throw("Strict value is not equal to itself.")
113+ }
114+ else if ((G == f))
115+ then {
116+ let aa = {
117+ let I = assetInfo(f)
118+ if ($isInstanceOf(I, "Asset"))
119+ then {
120+ let J = I
121+ J.quantity
122+ }
123+ else 0
124+ }
125+ let ab = valueOrElse(getInteger(this, s), 0)
126+ let ac = fraction(aa, x, ab)
127+ let ad = fraction(ac, F, x)
128+ let N = fraction(ad, x, y)
129+ let ae = ScriptTransfer(Address(z), N, e)
130+ let af = ScriptTransfer(D.caller, (F - N), e)
131+ let ag = IntegerEntry(s, (ab - ad))
132+ let ah = Burn(f, F)
133+ if ((ah == ah))
134+ then [ae, af, ag]
135+ else throw("Strict value is not equal to itself.")
136+ }
137+ else if ((G == h))
138+ then {
139+ let ai = {
140+ let I = assetInfo(f)
141+ if ($isInstanceOf(I, "Asset"))
142+ then {
143+ let J = I
144+ J.quantity
145+ }
146+ else 0
147+ }
148+ let aj = valueOrElse(getInteger(this, u), 0)
149+ let ak = fraction(ai, x, aj)
150+ let al = fraction(ak, F, x)
151+ let N = fraction(al, x, y)
152+ let am = ScriptTransfer(Address(z), N, g)
153+ let an = ScriptTransfer(D.caller, (F - N), g)
154+ let ao = IntegerEntry(u, (aj - al))
155+ let Z = Burn(f, F)
156+ if ((Z == Z))
157+ then [am, an, ao]
158+ else throw("Strict value is not equal to itself.")
159+ }
160+ else if ((G == j))
161+ then {
162+ let ap = {
163+ let I = assetInfo(j)
164+ if ($isInstanceOf(I, "Asset"))
165+ then {
166+ let J = I
167+ J.quantity
168+ }
169+ else 0
170+ }
171+ let aq = valueOrElse(getInteger(this, w), 0)
172+ let ar = fraction(ap, x, aq)
173+ let as = fraction(ar, F, x)
174+ let N = fraction(as, x, y)
175+ let at = ScriptTransfer(Address(z), N, i)
176+ let au = ScriptTransfer(D.caller, (F - N), i)
177+ let av = IntegerEntry(w, (aq - as))
178+ let aw = Burn(j, F)
179+ if ((aw == aw))
180+ then [at, au, av]
181+ else throw("Strict value is not equal to itself.")
182+ }
183+ else throw("Invalid asset")
184+ }
185+
186+
187+
188+@Callable(D)
189+func depositWxUsdnLP () = {
190+ let ax = value(D.payments[0])
191+ let ay = ax.amount
192+ if ((ax.assetId != c))
193+ then throw("attach WXUSDNLP tokens only")
194+ else if (m)
55195 then throw("smart contract is on lock")
56196 else {
57- let z = valueOrElse(getInteger(this, s), 0)
58- let A = {
59- let B = assetInfo(j)
60- if ($isInstanceOf(B, "Asset"))
197+ let az = valueOrElse(getInteger(this, q), 0)
198+ let aA = {
199+ let I = assetInfo(d)
200+ if ($isInstanceOf(I, "Asset"))
61201 then {
62- let C = B
63- C.quantity
202+ let aB = I
203+ aB.quantity
64204 }
65205 else throw("Can't find asset")
66206 }
67- let D = fraction((A - assetBalance(this, j)), 100000000, z)
68- let E = fraction(y, D, 100000000)
69- let F = IntegerEntry(s, (z + y))
70- let G = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [x])
71- if ((G == G))
207+ let aC = fraction(aA, 100000000, az)
208+ let aD = fraction(ay, aC, 100000000)
209+ let aE = IntegerEntry(q, (az + ay))
210+ let aF = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [ax])
211+ if ((aF == aF))
72212 then {
73- let H = Reissue(j, E, true)
74- let I = ScriptTransfer(w.caller, E, j)
75-[H, I, F]
213+ let aG = Reissue(d, aD, true)
214+ let P = ScriptTransfer(D.caller, aD, d)
215+[aG, P, aE]
76216 }
77217 else throw("Strict value is not equal to itself.")
78218 }
80220
81221
82222
83-@Callable(w)
84-func depositWavesUsdnLP () = {
85- let x = value(w.payments[0])
86- let y = x.amount
87- if ((x.assetId != e))
88- then throw("attach WAVESUSDNLP tokens only")
89- else if (l)
223+@Callable(D)
224+func depositUsdtUsdnLP () = {
225+ let ax = value(D.payments[0])
226+ let ay = ax.amount
227+ if ((ax.assetId != a))
228+ then throw("attach USDTUSDNLP tokens only")
229+ else if (m)
90230 then throw("smart contract is on lock")
91231 else {
92- let z = valueOrElse(getInteger(this, q), 0)
93- let A = {
94- let B = assetInfo(f)
95- if ($isInstanceOf(B, "Asset"))
232+ let az = valueOrElse(getInteger(this, n), 0)
233+ let aA = {
234+ let I = assetInfo(b)
235+ if ($isInstanceOf(I, "Asset"))
96236 then {
97- let C = B
98- C.quantity
237+ let aB = I
238+ aB.quantity
99239 }
100240 else throw("Can't find asset")
101241 }
102- let D = fraction(A, 100000000, z)
103- let E = fraction(y, D, 100000000)
104- let F = IntegerEntry(q, (z + y))
105- let G = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [x])
106- if ((G == G))
242+ let aH = valueOrElse(getInteger(this, o), 0)
243+ let aI = fraction(aA, 100000000, az)
244+ let aD = fraction(ay, aI, 100000000)
245+ let aE = IntegerEntry(n, (az + ay))
246+ let aF = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [ax])
247+ if ((aF == aF))
107248 then {
108- let H = Reissue(f, E, true)
109- let I = ScriptTransfer(w.caller, E, f)
110-[H, I, F]
249+ let aG = Reissue(b, aD, true)
250+ let P = ScriptTransfer(D.caller, aD, b)
251+[aG, P, aE]
111252 }
112253 else throw("Strict value is not equal to itself.")
113254 }
115256
116257
117258
118-@Callable(w)
119-func depositWxUsdnLP () = {
120- let x = value(w.payments[0])
121- let y = x.amount
122- if ((x.assetId != c))
123- then throw("attach WXUSDNLP tokens only")
124- else if (l)
259+@Callable(D)
260+func depositUsdcUsdnLP () = {
261+ let ax = value(D.payments[0])
262+ let ay = ax.amount
263+ if ((ax.assetId != e))
264+ then throw("attach USDCUSDNLP tokens only")
265+ else if (m)
125266 then throw("smart contract is on lock")
126267 else {
127- let z = valueOrElse(getInteger(this, p), 0)
128- let A = {
129- let B = assetInfo(d)
130- if ($isInstanceOf(B, "Asset"))
268+ let az = valueOrElse(getInteger(this, s), 0)
269+ let aA = {
270+ let I = assetInfo(f)
271+ if ($isInstanceOf(I, "Asset"))
131272 then {
132- let C = B
133- C.quantity
273+ let aB = I
274+ aB.quantity
134275 }
135276 else throw("Can't find asset")
136277 }
137- let D = fraction(A, 100000000, z)
138- let E = fraction(y, D, 100000000)
139- let F = IntegerEntry(p, (z + y))
140- let G = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [x])
141- if ((G == G))
278+ let aH = valueOrElse(getInteger(this, r), 0)
279+ let aI = fraction(aA, 100000000, az)
280+ let aD = fraction(ay, aI, 100000000)
281+ let aE = IntegerEntry(s, (az + ay))
282+ let aF = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [ax])
283+ if ((aF == aF))
142284 then {
143- let H = Reissue(d, E, true)
144- let I = ScriptTransfer(w.caller, E, d)
145-[H, I, F]
285+ let aG = Reissue(f, aD, true)
286+ let P = ScriptTransfer(D.caller, aD, f)
287+[aG, P, aE]
146288 }
147289 else throw("Strict value is not equal to itself.")
148290 }
150292
151293
152294
153-@Callable(w)
154-func depositUsdtUsdnLP () = {
155- let x = value(w.payments[0])
156- let y = x.amount
157- if ((x.assetId != a))
158- then throw("attach USDTUSDNLP tokens only")
159- else if (l)
295+@Callable(D)
296+func depositUsdcUsdtLP () = {
297+ let ax = value(D.payments[0])
298+ let ay = ax.amount
299+ if ((ax.assetId != g))
300+ then throw("attach USDCUSDTLP tokens only")
301+ else if (m)
160302 then throw("smart contract is on lock")
161303 else {
162- let z = valueOrElse(getInteger(this, m), 0)
163- let A = {
164- let B = assetInfo(b)
165- if ($isInstanceOf(B, "Asset"))
304+ let az = valueOrElse(getInteger(this, u), 0)
305+ let aA = {
306+ let I = assetInfo(h)
307+ if ($isInstanceOf(I, "Asset"))
166308 then {
167- let C = B
168- C.quantity
309+ let aB = I
310+ aB.quantity
169311 }
170312 else throw("Can't find asset")
171313 }
172- let D = fraction(A, 100000000, z)
173- let E = fraction(y, D, 100000000)
174- let F = IntegerEntry(m, (z + y))
175- let G = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [x])
176- if ((G == G))
314+ let aH = valueOrElse(getInteger(this, t), 0)
315+ let aI = fraction(aA, 100000000, az)
316+ let aD = fraction(ay, aI, 100000000)
317+ let aE = IntegerEntry(u, (az + ay))
318+ let aF = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [ax])
319+ if ((aF == aF))
177320 then {
178- let H = Reissue(b, E, true)
179- let I = ScriptTransfer(w.caller, E, b)
180-[H, I, F]
321+ let aG = Reissue(h, aD, true)
322+ let P = ScriptTransfer(D.caller, aD, h)
323+[aG, P, aE]
181324 }
182325 else throw("Strict value is not equal to itself.")
183326 }
185328
186329
187330
188-@Callable(w)
189-func depositEthUsdnLP () = {
190- let x = value(w.payments[0])
191- let y = x.amount
192- if ((x.assetId != g))
193- then throw("attach ETHUSDNLP tokens only")
194- else if (l)
331+@Callable(D)
332+func depositPuzzleUsdnLP () = {
333+ let ax = value(D.payments[0])
334+ let ay = ax.amount
335+ if ((ax.assetId != i))
336+ then throw("attach PUZZLEUDSNLP tokens only")
337+ else if (m)
195338 then throw("smart contract is on lock")
196339 else {
197- let z = valueOrElse(getInteger(this, u), 0)
198- let A = {
199- let B = assetInfo(h)
200- if ($isInstanceOf(B, "Asset"))
340+ let az = valueOrElse(getInteger(this, w), 0)
341+ let aA = {
342+ let I = assetInfo(j)
343+ if ($isInstanceOf(I, "Asset"))
201344 then {
202- let C = B
203- C.quantity
345+ let aB = I
346+ aB.quantity
204347 }
205348 else throw("Can't find asset")
206349 }
207- let D = fraction((A - assetBalance(this, j)), 100000000, z)
208- let E = fraction(y, D, 100000000)
209- let F = IntegerEntry(u, (z + y))
210- let G = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [x])
211- if ((G == G))
350+ let aH = valueOrElse(getInteger(this, v), 0)
351+ let aI = fraction(aA, 100000000, az)
352+ let aD = fraction(ay, aI, 100000000)
353+ let aE = IntegerEntry(w, (az + ay))
354+ let aF = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [ax])
355+ if ((aF == aF))
212356 then {
213- let H = Reissue(h, E, true)
214- let I = ScriptTransfer(w.caller, E, h)
215-[H, I, F]
357+ let aG = Reissue(j, aD, true)
358+ let P = ScriptTransfer(D.caller, aD, j)
359+[aG, P, aE]
216360 }
217361 else throw("Strict value is not equal to itself.")
218362 }
220364
221365
222366
223-@Callable(w)
224-func compoundBTCUSDNLP () = {
225- let J = value(w.payments[0])
226- let K = J.amount
227- if ((J.assetId != i))
228- then throw("attach BTCUSDNLP tokens only")
367+@Callable(D)
368+func compoundWxUsdnLP () = {
369+ let aJ = value(D.payments[0])
370+ let aK = aJ.amount
371+ let aL = B(D.caller.bytes)
372+ if ((aJ.assetId != c))
373+ then throw("attach WXUSDNLP tokens only")
374+ else if (!(aL))
375+ then throw("You are not authotized to call this function")
376+ else {
377+ let aH = valueOrElse(getInteger(this, p), 0)
378+ let aM = valueOrElse(getInteger(this, q), 0)
379+ let aN = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [aJ])
380+ if ((aN == aN))
381+ then {
382+ let aE = IntegerEntry(q, (aM + aK))
383+ let aO = IntegerEntry(p, (aH + aK))
384+[aE, aO]
385+ }
386+ else throw("Strict value is not equal to itself.")
387+ }
388+ }
389+
390+
391+
392+@Callable(D)
393+func compoundUsdtUsdnLP () = {
394+ let aJ = value(D.payments[0])
395+ let aK = aJ.amount
396+ let aL = B(D.caller.bytes)
397+ if ((aJ.assetId != a))
398+ then throw("attach USDTUSDNLP tokens only")
399+ else if (!(aL))
400+ then throw("You are not authotized to call this function")
401+ else {
402+ let aH = valueOrElse(getInteger(this, o), 0)
403+ let aM = valueOrElse(getInteger(this, n), 0)
404+ let aN = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [aJ])
405+ if ((aN == aN))
406+ then {
407+ let aE = IntegerEntry(n, (aM + aK))
408+ let aO = IntegerEntry(o, (aH + aK))
409+[aE, aO]
410+ }
411+ else throw("Strict value is not equal to itself.")
412+ }
413+ }
414+
415+
416+
417+@Callable(D)
418+func compoundUsdcUsdnLP () = {
419+ let aJ = value(D.payments[0])
420+ let aK = aJ.amount
421+ let aL = B(D.caller.bytes)
422+ if ((aJ.assetId != e))
423+ then throw("attach USDCUSDNLP tokens only")
424+ else if (!(aL))
425+ then throw("You are not authotized to call this function")
426+ else {
427+ let aH = valueOrElse(getInteger(this, r), 0)
428+ let aM = valueOrElse(getInteger(this, s), 0)
429+ let aN = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [aJ])
430+ if ((aN == aN))
431+ then {
432+ let aE = IntegerEntry(s, (aM + aK))
433+ let aO = IntegerEntry(r, (aH + aK))
434+[aE, aO]
435+ }
436+ else throw("Strict value is not equal to itself.")
437+ }
438+ }
439+
440+
441+
442+@Callable(D)
443+func compoundUsdcUsdtLP () = {
444+ let aJ = value(D.payments[0])
445+ let aK = aJ.amount
446+ let aL = B(D.caller.bytes)
447+ if ((aJ.assetId != g))
448+ then throw("attach USDCUSDTLP tokens only")
449+ else if (!(aL))
450+ then throw("You are not authotized to call this function")
451+ else {
452+ let aH = valueOrElse(getInteger(this, t), 0)
453+ let aM = valueOrElse(getInteger(this, u), 0)
454+ let aN = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [aJ])
455+ if ((aN == aN))
456+ then {
457+ let aE = IntegerEntry(u, (aM + aK))
458+ let aO = IntegerEntry(t, (aH + aK))
459+[aE, aO]
460+ }
461+ else throw("Strict value is not equal to itself.")
462+ }
463+ }
464+
465+
466+
467+@Callable(D)
468+func compoundPuzzleUsdnLP () = {
469+ let aJ = value(D.payments[0])
470+ let aK = aJ.amount
471+ let aL = B(D.caller.bytes)
472+ if ((aJ.assetId != i))
473+ then throw("attach PUZZLEUSDNLP tokens only")
474+ else if (!(aL))
475+ then throw("You are not authotized to call this function")
476+ else {
477+ let aH = valueOrElse(getInteger(this, v), 0)
478+ let aM = valueOrElse(getInteger(this, w), 0)
479+ let aN = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [aJ])
480+ if ((aN == aN))
481+ then {
482+ let aE = IntegerEntry(w, (aM + aK))
483+ let aO = IntegerEntry(v, (aH + aK))
484+[aE, aO]
485+ }
486+ else throw("Strict value is not equal to itself.")
487+ }
488+ }
489+
490+
491+
492+@Callable(D)
493+func sponsorBoost () = {
494+ let aP = value(D.payments[0])
495+ let aQ = 100
496+ if ((aP.assetId != k))
497+ then throw("Error")
229498 else {
230- let L = valueOrElse(getInteger(this, t), 0)
231- let M = valueOrElse(getInteger(this, s), 0)
232- let N = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [J])
233- if ((N == N))
499+ let aR = valueOrElse(getInteger(this, l), 0)
500+ let aS = invoke(Address(base58'3PJL8Hn8LACaSBWLQ3UVhctA5cTQLBFwBAP'), "increaseLock", [aQ], [aP])
501+ if ((aS == aS))
234502 then {
235- let F = IntegerEntry(s, (M + K))
236- let O = IntegerEntry(t, (L + K))
237-[F, O]
503+ let aT = IntegerEntry(l, (aP.amount + aR))
504+[aT]
238505 }
239506 else throw("Strict value is not equal to itself.")
240507 }
241508 }
242509
243510
244-
245-@Callable(w)
246-func compoundETHUSDNLP () = {
247- let J = value(w.payments[0])
248- let K = J.amount
249- if ((J.assetId != g))
250- then throw("attach ETHUSDNLP tokens only")
251- else {
252- let L = valueOrElse(getInteger(this, v), 0)
253- let M = valueOrElse(getInteger(this, u), 0)
254- let N = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [J])
255- if ((N == N))
256- then {
257- let F = IntegerEntry(u, (M + K))
258- let O = IntegerEntry(v, (L + K))
259-[F, O]
260- }
261- else throw("Strict value is not equal to itself.")
262- }
263- }
264-
265-
266-
267-@Callable(w)
268-func compoundWXUSDNLP () = {
269- let J = value(w.payments[0])
270- let K = J.amount
271- if ((w.caller.bytes == k))
272- then throw("You are the only authorized to call this func")
273- else {
274- let L = valueOrElse(getInteger(this, o), 0)
275- let M = valueOrElse(getInteger(this, p), 0)
276- let N = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [J])
277- if ((N == N))
278- then {
279- let F = IntegerEntry(p, (M + K))
280- let O = IntegerEntry(o, (L + K))
281-[F, O]
282- }
283- else throw("Strict value is not equal to itself.")
284- }
285- }
286-
287-
288-
289-@Callable(w)
290-func compoundUSDTUSDNLP () = {
291- let J = value(w.payments[0])
292- let K = J.amount
293- if ((J.assetId != a))
294- then throw("attach USDTUSDNLP tokens only")
295- else {
296- let L = valueOrElse(getInteger(this, n), 0)
297- let M = valueOrElse(getInteger(this, m), 0)
298- let N = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [J])
299- if ((N == N))
300- then {
301- let F = IntegerEntry(m, (M + K))
302- let O = IntegerEntry(n, (L + K))
303-[F, O]
304- }
305- else throw("Strict value is not equal to itself.")
306- }
307- }
308-
309-
310-
311-@Callable(w)
312-func compoundWAVESUSDNLP () = {
313- let J = value(w.payments[0])
314- let K = J.amount
315- if ((J.assetId != e))
316- then throw("attach WAVESUSDNLP tokens only")
317- else {
318- let L = valueOrElse(getInteger(this, r), 0)
319- let M = valueOrElse(getInteger(this, q), 0)
320- let N = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [J])
321- if ((N == N))
322- then {
323- let F = IntegerEntry(q, (M + K))
324- let O = IntegerEntry(r, (L + K))
325-[F, O]
326- }
327- else throw("Strict value is not equal to itself.")
328- }
329- }
330-
331-
332-
333-@Callable(w)
334-func initWX () = {
335- let P = value(w.payments[0])
336- let Q = P.amount
337- if ((P.assetId != c))
338- then throw("Unexpected token")
339- else {
340- let R = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [P])
341- if ((R == R))
342- then {
343- let S = IntegerEntry(p, Q)
344- let T = IntegerEntry(o, 0)
345-[S, T]
346- }
347- else throw("Strict value is not equal to itself.")
348- }
349- }
350-
351-
352-
353-@Callable(w)
354-func initWAVES () = {
355- let P = value(w.payments[0])
356- let Q = P.amount
357- if ((P.assetId != e))
358- then throw("Unexpected token")
359- else {
360- let R = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [P])
361- if ((R == R))
362- then {
363- let S = IntegerEntry(q, Q)
364- let T = IntegerEntry(r, 0)
365-[S, T]
366- }
367- else throw("Strict value is not equal to itself.")
368- }
369- }
370-
371-
372-
373-@Callable(w)
374-func initETH () = {
375- let P = value(w.payments[0])
376- let Q = P.amount
377- if ((P.assetId != g))
378- then throw("Unexpected token")
379- else {
380- let R = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [P])
381- if ((R == R))
382- then {
383- let S = IntegerEntry(u, Q)
384- let T = IntegerEntry(v, 0)
385- let U = Reissue(h, Q, true)
386- let V = ScriptTransfer(w.caller, Q, h)
387-[S, T, U, V]
388- }
389- else throw("Strict value is not equal to itself.")
390- }
391- }
392-
393-
394-
395-@Callable(w)
396-func initBTC () = {
397- let P = value(w.payments[0])
398- let Q = P.amount
399- if ((P.assetId != i))
400- then throw("Unexpected token")
401- else {
402- let R = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [P])
403- if ((R == R))
404- then {
405- let S = IntegerEntry(s, Q)
406- let T = IntegerEntry(t, 0)
407- let H = Reissue(j, Q, true)
408- let W = ScriptTransfer(w.caller, Q, j)
409-[S, T, H, W]
410- }
411- else throw("Strict value is not equal to itself.")
412- }
413- }
414-
415-
416-@Verifier(X)
417-func Y () = sigVerify(X.bodyBytes, X.proofs[0], X.senderPublicKey)
511+@Verifier(aU)
512+func aV () = sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
418513
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS'
55
66 let b = base58'i1snzKxSEZVokh9TWj8hTJQEDBsocnL2hRWsSbsMPK7'
77
88 let c = base58'2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib'
99
1010 let d = base58'DNy6WBfhPE4y82RonGdHhZEunNotEDzmNfrBomWnsyGi'
1111
12-let e = base58'FLdC14nUVRyiSYjVrMo3X4g8rXQjLbNRaGAyQAm8V68V'
12+let e = base58'EK6N7S38xbtBT3SxAqoGdDLCiX6rojX6G169CnSyuE5'
1313
14-let f = base58'EGQiqw8jLjg6SVLUeeqMLjk3EjhEVHtjkJ6w46HyFfep'
14+let f = base58'HZKFpNfyPG5gt4D6Nfy1zQSg2Ptmqv932GjNTCyBEeKP'
1515
16-let g = base58'9ZkS8GoUWn69QhgF1RsRtS9CFtc7ZbDNX5N238Jmqjdr'
16+let g = base58'EPhdEfmQaNcHyvDmRGhnLhgcJtKZ2a4k3ZBmKWtAEWyH'
1717
18-let h = base58'GCvR4BmCSjncVEEwr9psvhN5mctdNTGPs8Xp4b2oQNFZ'
18+let h = base58'BqPYkaiz7Le6fFu1rjZ54anrpT57EpvyugZCUqrsjXj'
1919
20-let i = base58'2RmyyZ39ZoPoTWksM6urmjgx9mB8ksP8Ru6ba8u89mZm'
20+let i = base58'E8zHu33GfcNyGLypX77gZiUXfvuZQeaYmiEfsy7VYNwP'
2121
22-let j = base58'4jarprgmcev38EU5p2duJAznZSLUxZ831jCT2vf95Hey'
22+let j = base58'Dh9QXSSABE5V6aRfu3mCbDAUokbpE7ER7pbZV6cvyg1A'
2323
24-let k = base58'3NAVBWBnqieKa3CdN39MAhToyTHShYxX1gB'
24+let k = base58'Atqv59EYzjFGuitKVnMRk6H8FukjoV3ktPorbEys25on'
2525
26-let l = false
26+let l = "Sponsorship_in_lock"
2727
28-let m = "STAKED_LP"
28+let m = false
2929
30-let n = "From_Compound"
30+let n = "STAKED_LP"
3131
32-let o = "WX_USDN_compound"
32+let o = "From_Compound"
3333
34-let p = "WX_USDN"
34+let p = "WX_USDN_compound"
3535
36-let q = "WAVES_USDN"
36+let q = "WX_USDN"
3737
38-let r = "WAVES_USDN_COMPOUND"
38+let r = "USDC_USDN_compound"
3939
40-let s = "BTC_USDN"
40+let s = "USDC_USDN"
4141
42-let t = "BTC_USDN_COMPOUND"
42+let t = "USDC_USDT_compound"
4343
44-let u = "ETH_USDN"
44+let u = "USDC_USDT"
4545
46-let v = "ETH_USDN_COMPOUND"
46+let v = "PUZZLE_USDN_compound"
4747
48-@Callable(w)
49-func depositBtcUsdnLP () = {
50- let x = value(w.payments[0])
51- let y = x.amount
52- if ((x.assetId != i))
53- then throw("attach BTCUSDNLP tokens only")
54- else if (l)
48+let w = "PUZZLE_USDN"
49+
50+let x = 100000000
51+
52+let y = 10000000000
53+
54+let z = base58'3P93R2GBkTGVehRPhytHr7sdxYww93jkbhm'
55+
56+let A = base58'3P6phwFZFQtZFuc9dvdXsgvtg8JEFVgECPA'
57+
58+func B (C) = if ((C != A))
59+ then false
60+ else true
61+
62+
63+@Callable(D)
64+func withdraw () = {
65+ let E = value(D.payments[0])
66+ let F = E.amount
67+ let G = E.assetId
68+ if ((G == a))
69+ then {
70+ let H = {
71+ let I = assetInfo(b)
72+ if ($isInstanceOf(I, "Asset"))
73+ then {
74+ let J = I
75+ J.quantity
76+ }
77+ else 0
78+ }
79+ let K = valueOrElse(getInteger(this, n), 0)
80+ let L = fraction(H, x, K)
81+ let M = fraction(L, F, x)
82+ let N = fraction(M, x, y)
83+ let O = ScriptTransfer(Address(z), N, a)
84+ let P = ScriptTransfer(D.caller, (M - N), a)
85+ let Q = IntegerEntry(n, (K - M))
86+ let R = Burn(b, F)
87+ if ((R == R))
88+ then [O, P, Q]
89+ else throw("Strict value is not equal to itself.")
90+ }
91+ else if ((G == d))
92+ then {
93+ let S = {
94+ let I = assetInfo(d)
95+ if ($isInstanceOf(I, "Asset"))
96+ then {
97+ let J = I
98+ J.quantity
99+ }
100+ else 0
101+ }
102+ let T = valueOrElse(getInteger(this, q), 0)
103+ let U = fraction(S, x, T)
104+ let V = fraction(U, F, x)
105+ let N = fraction(V, x, y)
106+ let W = ScriptTransfer(Address(z), N, c)
107+ let X = ScriptTransfer(D.caller, (F - N), c)
108+ let Y = IntegerEntry(q, (T - V))
109+ let Z = Burn(c, F)
110+ if ((Z == Z))
111+ then [W, X, Y]
112+ else throw("Strict value is not equal to itself.")
113+ }
114+ else if ((G == f))
115+ then {
116+ let aa = {
117+ let I = assetInfo(f)
118+ if ($isInstanceOf(I, "Asset"))
119+ then {
120+ let J = I
121+ J.quantity
122+ }
123+ else 0
124+ }
125+ let ab = valueOrElse(getInteger(this, s), 0)
126+ let ac = fraction(aa, x, ab)
127+ let ad = fraction(ac, F, x)
128+ let N = fraction(ad, x, y)
129+ let ae = ScriptTransfer(Address(z), N, e)
130+ let af = ScriptTransfer(D.caller, (F - N), e)
131+ let ag = IntegerEntry(s, (ab - ad))
132+ let ah = Burn(f, F)
133+ if ((ah == ah))
134+ then [ae, af, ag]
135+ else throw("Strict value is not equal to itself.")
136+ }
137+ else if ((G == h))
138+ then {
139+ let ai = {
140+ let I = assetInfo(f)
141+ if ($isInstanceOf(I, "Asset"))
142+ then {
143+ let J = I
144+ J.quantity
145+ }
146+ else 0
147+ }
148+ let aj = valueOrElse(getInteger(this, u), 0)
149+ let ak = fraction(ai, x, aj)
150+ let al = fraction(ak, F, x)
151+ let N = fraction(al, x, y)
152+ let am = ScriptTransfer(Address(z), N, g)
153+ let an = ScriptTransfer(D.caller, (F - N), g)
154+ let ao = IntegerEntry(u, (aj - al))
155+ let Z = Burn(f, F)
156+ if ((Z == Z))
157+ then [am, an, ao]
158+ else throw("Strict value is not equal to itself.")
159+ }
160+ else if ((G == j))
161+ then {
162+ let ap = {
163+ let I = assetInfo(j)
164+ if ($isInstanceOf(I, "Asset"))
165+ then {
166+ let J = I
167+ J.quantity
168+ }
169+ else 0
170+ }
171+ let aq = valueOrElse(getInteger(this, w), 0)
172+ let ar = fraction(ap, x, aq)
173+ let as = fraction(ar, F, x)
174+ let N = fraction(as, x, y)
175+ let at = ScriptTransfer(Address(z), N, i)
176+ let au = ScriptTransfer(D.caller, (F - N), i)
177+ let av = IntegerEntry(w, (aq - as))
178+ let aw = Burn(j, F)
179+ if ((aw == aw))
180+ then [at, au, av]
181+ else throw("Strict value is not equal to itself.")
182+ }
183+ else throw("Invalid asset")
184+ }
185+
186+
187+
188+@Callable(D)
189+func depositWxUsdnLP () = {
190+ let ax = value(D.payments[0])
191+ let ay = ax.amount
192+ if ((ax.assetId != c))
193+ then throw("attach WXUSDNLP tokens only")
194+ else if (m)
55195 then throw("smart contract is on lock")
56196 else {
57- let z = valueOrElse(getInteger(this, s), 0)
58- let A = {
59- let B = assetInfo(j)
60- if ($isInstanceOf(B, "Asset"))
197+ let az = valueOrElse(getInteger(this, q), 0)
198+ let aA = {
199+ let I = assetInfo(d)
200+ if ($isInstanceOf(I, "Asset"))
61201 then {
62- let C = B
63- C.quantity
202+ let aB = I
203+ aB.quantity
64204 }
65205 else throw("Can't find asset")
66206 }
67- let D = fraction((A - assetBalance(this, j)), 100000000, z)
68- let E = fraction(y, D, 100000000)
69- let F = IntegerEntry(s, (z + y))
70- let G = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [x])
71- if ((G == G))
207+ let aC = fraction(aA, 100000000, az)
208+ let aD = fraction(ay, aC, 100000000)
209+ let aE = IntegerEntry(q, (az + ay))
210+ let aF = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [ax])
211+ if ((aF == aF))
72212 then {
73- let H = Reissue(j, E, true)
74- let I = ScriptTransfer(w.caller, E, j)
75-[H, I, F]
213+ let aG = Reissue(d, aD, true)
214+ let P = ScriptTransfer(D.caller, aD, d)
215+[aG, P, aE]
76216 }
77217 else throw("Strict value is not equal to itself.")
78218 }
79219 }
80220
81221
82222
83-@Callable(w)
84-func depositWavesUsdnLP () = {
85- let x = value(w.payments[0])
86- let y = x.amount
87- if ((x.assetId != e))
88- then throw("attach WAVESUSDNLP tokens only")
89- else if (l)
223+@Callable(D)
224+func depositUsdtUsdnLP () = {
225+ let ax = value(D.payments[0])
226+ let ay = ax.amount
227+ if ((ax.assetId != a))
228+ then throw("attach USDTUSDNLP tokens only")
229+ else if (m)
90230 then throw("smart contract is on lock")
91231 else {
92- let z = valueOrElse(getInteger(this, q), 0)
93- let A = {
94- let B = assetInfo(f)
95- if ($isInstanceOf(B, "Asset"))
232+ let az = valueOrElse(getInteger(this, n), 0)
233+ let aA = {
234+ let I = assetInfo(b)
235+ if ($isInstanceOf(I, "Asset"))
96236 then {
97- let C = B
98- C.quantity
237+ let aB = I
238+ aB.quantity
99239 }
100240 else throw("Can't find asset")
101241 }
102- let D = fraction(A, 100000000, z)
103- let E = fraction(y, D, 100000000)
104- let F = IntegerEntry(q, (z + y))
105- let G = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [x])
106- if ((G == G))
242+ let aH = valueOrElse(getInteger(this, o), 0)
243+ let aI = fraction(aA, 100000000, az)
244+ let aD = fraction(ay, aI, 100000000)
245+ let aE = IntegerEntry(n, (az + ay))
246+ let aF = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [ax])
247+ if ((aF == aF))
107248 then {
108- let H = Reissue(f, E, true)
109- let I = ScriptTransfer(w.caller, E, f)
110-[H, I, F]
249+ let aG = Reissue(b, aD, true)
250+ let P = ScriptTransfer(D.caller, aD, b)
251+[aG, P, aE]
111252 }
112253 else throw("Strict value is not equal to itself.")
113254 }
114255 }
115256
116257
117258
118-@Callable(w)
119-func depositWxUsdnLP () = {
120- let x = value(w.payments[0])
121- let y = x.amount
122- if ((x.assetId != c))
123- then throw("attach WXUSDNLP tokens only")
124- else if (l)
259+@Callable(D)
260+func depositUsdcUsdnLP () = {
261+ let ax = value(D.payments[0])
262+ let ay = ax.amount
263+ if ((ax.assetId != e))
264+ then throw("attach USDCUSDNLP tokens only")
265+ else if (m)
125266 then throw("smart contract is on lock")
126267 else {
127- let z = valueOrElse(getInteger(this, p), 0)
128- let A = {
129- let B = assetInfo(d)
130- if ($isInstanceOf(B, "Asset"))
268+ let az = valueOrElse(getInteger(this, s), 0)
269+ let aA = {
270+ let I = assetInfo(f)
271+ if ($isInstanceOf(I, "Asset"))
131272 then {
132- let C = B
133- C.quantity
273+ let aB = I
274+ aB.quantity
134275 }
135276 else throw("Can't find asset")
136277 }
137- let D = fraction(A, 100000000, z)
138- let E = fraction(y, D, 100000000)
139- let F = IntegerEntry(p, (z + y))
140- let G = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [x])
141- if ((G == G))
278+ let aH = valueOrElse(getInteger(this, r), 0)
279+ let aI = fraction(aA, 100000000, az)
280+ let aD = fraction(ay, aI, 100000000)
281+ let aE = IntegerEntry(s, (az + ay))
282+ let aF = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [ax])
283+ if ((aF == aF))
142284 then {
143- let H = Reissue(d, E, true)
144- let I = ScriptTransfer(w.caller, E, d)
145-[H, I, F]
285+ let aG = Reissue(f, aD, true)
286+ let P = ScriptTransfer(D.caller, aD, f)
287+[aG, P, aE]
146288 }
147289 else throw("Strict value is not equal to itself.")
148290 }
149291 }
150292
151293
152294
153-@Callable(w)
154-func depositUsdtUsdnLP () = {
155- let x = value(w.payments[0])
156- let y = x.amount
157- if ((x.assetId != a))
158- then throw("attach USDTUSDNLP tokens only")
159- else if (l)
295+@Callable(D)
296+func depositUsdcUsdtLP () = {
297+ let ax = value(D.payments[0])
298+ let ay = ax.amount
299+ if ((ax.assetId != g))
300+ then throw("attach USDCUSDTLP tokens only")
301+ else if (m)
160302 then throw("smart contract is on lock")
161303 else {
162- let z = valueOrElse(getInteger(this, m), 0)
163- let A = {
164- let B = assetInfo(b)
165- if ($isInstanceOf(B, "Asset"))
304+ let az = valueOrElse(getInteger(this, u), 0)
305+ let aA = {
306+ let I = assetInfo(h)
307+ if ($isInstanceOf(I, "Asset"))
166308 then {
167- let C = B
168- C.quantity
309+ let aB = I
310+ aB.quantity
169311 }
170312 else throw("Can't find asset")
171313 }
172- let D = fraction(A, 100000000, z)
173- let E = fraction(y, D, 100000000)
174- let F = IntegerEntry(m, (z + y))
175- let G = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [x])
176- if ((G == G))
314+ let aH = valueOrElse(getInteger(this, t), 0)
315+ let aI = fraction(aA, 100000000, az)
316+ let aD = fraction(ay, aI, 100000000)
317+ let aE = IntegerEntry(u, (az + ay))
318+ let aF = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [ax])
319+ if ((aF == aF))
177320 then {
178- let H = Reissue(b, E, true)
179- let I = ScriptTransfer(w.caller, E, b)
180-[H, I, F]
321+ let aG = Reissue(h, aD, true)
322+ let P = ScriptTransfer(D.caller, aD, h)
323+[aG, P, aE]
181324 }
182325 else throw("Strict value is not equal to itself.")
183326 }
184327 }
185328
186329
187330
188-@Callable(w)
189-func depositEthUsdnLP () = {
190- let x = value(w.payments[0])
191- let y = x.amount
192- if ((x.assetId != g))
193- then throw("attach ETHUSDNLP tokens only")
194- else if (l)
331+@Callable(D)
332+func depositPuzzleUsdnLP () = {
333+ let ax = value(D.payments[0])
334+ let ay = ax.amount
335+ if ((ax.assetId != i))
336+ then throw("attach PUZZLEUDSNLP tokens only")
337+ else if (m)
195338 then throw("smart contract is on lock")
196339 else {
197- let z = valueOrElse(getInteger(this, u), 0)
198- let A = {
199- let B = assetInfo(h)
200- if ($isInstanceOf(B, "Asset"))
340+ let az = valueOrElse(getInteger(this, w), 0)
341+ let aA = {
342+ let I = assetInfo(j)
343+ if ($isInstanceOf(I, "Asset"))
201344 then {
202- let C = B
203- C.quantity
345+ let aB = I
346+ aB.quantity
204347 }
205348 else throw("Can't find asset")
206349 }
207- let D = fraction((A - assetBalance(this, j)), 100000000, z)
208- let E = fraction(y, D, 100000000)
209- let F = IntegerEntry(u, (z + y))
210- let G = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [x])
211- if ((G == G))
350+ let aH = valueOrElse(getInteger(this, v), 0)
351+ let aI = fraction(aA, 100000000, az)
352+ let aD = fraction(ay, aI, 100000000)
353+ let aE = IntegerEntry(w, (az + ay))
354+ let aF = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [ax])
355+ if ((aF == aF))
212356 then {
213- let H = Reissue(h, E, true)
214- let I = ScriptTransfer(w.caller, E, h)
215-[H, I, F]
357+ let aG = Reissue(j, aD, true)
358+ let P = ScriptTransfer(D.caller, aD, j)
359+[aG, P, aE]
216360 }
217361 else throw("Strict value is not equal to itself.")
218362 }
219363 }
220364
221365
222366
223-@Callable(w)
224-func compoundBTCUSDNLP () = {
225- let J = value(w.payments[0])
226- let K = J.amount
227- if ((J.assetId != i))
228- then throw("attach BTCUSDNLP tokens only")
367+@Callable(D)
368+func compoundWxUsdnLP () = {
369+ let aJ = value(D.payments[0])
370+ let aK = aJ.amount
371+ let aL = B(D.caller.bytes)
372+ if ((aJ.assetId != c))
373+ then throw("attach WXUSDNLP tokens only")
374+ else if (!(aL))
375+ then throw("You are not authotized to call this function")
376+ else {
377+ let aH = valueOrElse(getInteger(this, p), 0)
378+ let aM = valueOrElse(getInteger(this, q), 0)
379+ let aN = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [aJ])
380+ if ((aN == aN))
381+ then {
382+ let aE = IntegerEntry(q, (aM + aK))
383+ let aO = IntegerEntry(p, (aH + aK))
384+[aE, aO]
385+ }
386+ else throw("Strict value is not equal to itself.")
387+ }
388+ }
389+
390+
391+
392+@Callable(D)
393+func compoundUsdtUsdnLP () = {
394+ let aJ = value(D.payments[0])
395+ let aK = aJ.amount
396+ let aL = B(D.caller.bytes)
397+ if ((aJ.assetId != a))
398+ then throw("attach USDTUSDNLP tokens only")
399+ else if (!(aL))
400+ then throw("You are not authotized to call this function")
401+ else {
402+ let aH = valueOrElse(getInteger(this, o), 0)
403+ let aM = valueOrElse(getInteger(this, n), 0)
404+ let aN = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [aJ])
405+ if ((aN == aN))
406+ then {
407+ let aE = IntegerEntry(n, (aM + aK))
408+ let aO = IntegerEntry(o, (aH + aK))
409+[aE, aO]
410+ }
411+ else throw("Strict value is not equal to itself.")
412+ }
413+ }
414+
415+
416+
417+@Callable(D)
418+func compoundUsdcUsdnLP () = {
419+ let aJ = value(D.payments[0])
420+ let aK = aJ.amount
421+ let aL = B(D.caller.bytes)
422+ if ((aJ.assetId != e))
423+ then throw("attach USDCUSDNLP tokens only")
424+ else if (!(aL))
425+ then throw("You are not authotized to call this function")
426+ else {
427+ let aH = valueOrElse(getInteger(this, r), 0)
428+ let aM = valueOrElse(getInteger(this, s), 0)
429+ let aN = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [aJ])
430+ if ((aN == aN))
431+ then {
432+ let aE = IntegerEntry(s, (aM + aK))
433+ let aO = IntegerEntry(r, (aH + aK))
434+[aE, aO]
435+ }
436+ else throw("Strict value is not equal to itself.")
437+ }
438+ }
439+
440+
441+
442+@Callable(D)
443+func compoundUsdcUsdtLP () = {
444+ let aJ = value(D.payments[0])
445+ let aK = aJ.amount
446+ let aL = B(D.caller.bytes)
447+ if ((aJ.assetId != g))
448+ then throw("attach USDCUSDTLP tokens only")
449+ else if (!(aL))
450+ then throw("You are not authotized to call this function")
451+ else {
452+ let aH = valueOrElse(getInteger(this, t), 0)
453+ let aM = valueOrElse(getInteger(this, u), 0)
454+ let aN = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [aJ])
455+ if ((aN == aN))
456+ then {
457+ let aE = IntegerEntry(u, (aM + aK))
458+ let aO = IntegerEntry(t, (aH + aK))
459+[aE, aO]
460+ }
461+ else throw("Strict value is not equal to itself.")
462+ }
463+ }
464+
465+
466+
467+@Callable(D)
468+func compoundPuzzleUsdnLP () = {
469+ let aJ = value(D.payments[0])
470+ let aK = aJ.amount
471+ let aL = B(D.caller.bytes)
472+ if ((aJ.assetId != i))
473+ then throw("attach PUZZLEUSDNLP tokens only")
474+ else if (!(aL))
475+ then throw("You are not authotized to call this function")
476+ else {
477+ let aH = valueOrElse(getInteger(this, v), 0)
478+ let aM = valueOrElse(getInteger(this, w), 0)
479+ let aN = invoke(Address(base58'3PPNhHYkkEy13gRWDCaruQyhNbX2GrjYSyV'), "stake", nil, [aJ])
480+ if ((aN == aN))
481+ then {
482+ let aE = IntegerEntry(w, (aM + aK))
483+ let aO = IntegerEntry(v, (aH + aK))
484+[aE, aO]
485+ }
486+ else throw("Strict value is not equal to itself.")
487+ }
488+ }
489+
490+
491+
492+@Callable(D)
493+func sponsorBoost () = {
494+ let aP = value(D.payments[0])
495+ let aQ = 100
496+ if ((aP.assetId != k))
497+ then throw("Error")
229498 else {
230- let L = valueOrElse(getInteger(this, t), 0)
231- let M = valueOrElse(getInteger(this, s), 0)
232- let N = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [J])
233- if ((N == N))
499+ let aR = valueOrElse(getInteger(this, l), 0)
500+ let aS = invoke(Address(base58'3PJL8Hn8LACaSBWLQ3UVhctA5cTQLBFwBAP'), "increaseLock", [aQ], [aP])
501+ if ((aS == aS))
234502 then {
235- let F = IntegerEntry(s, (M + K))
236- let O = IntegerEntry(t, (L + K))
237-[F, O]
503+ let aT = IntegerEntry(l, (aP.amount + aR))
504+[aT]
238505 }
239506 else throw("Strict value is not equal to itself.")
240507 }
241508 }
242509
243510
244-
245-@Callable(w)
246-func compoundETHUSDNLP () = {
247- let J = value(w.payments[0])
248- let K = J.amount
249- if ((J.assetId != g))
250- then throw("attach ETHUSDNLP tokens only")
251- else {
252- let L = valueOrElse(getInteger(this, v), 0)
253- let M = valueOrElse(getInteger(this, u), 0)
254- let N = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [J])
255- if ((N == N))
256- then {
257- let F = IntegerEntry(u, (M + K))
258- let O = IntegerEntry(v, (L + K))
259-[F, O]
260- }
261- else throw("Strict value is not equal to itself.")
262- }
263- }
264-
265-
266-
267-@Callable(w)
268-func compoundWXUSDNLP () = {
269- let J = value(w.payments[0])
270- let K = J.amount
271- if ((w.caller.bytes == k))
272- then throw("You are the only authorized to call this func")
273- else {
274- let L = valueOrElse(getInteger(this, o), 0)
275- let M = valueOrElse(getInteger(this, p), 0)
276- let N = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [J])
277- if ((N == N))
278- then {
279- let F = IntegerEntry(p, (M + K))
280- let O = IntegerEntry(o, (L + K))
281-[F, O]
282- }
283- else throw("Strict value is not equal to itself.")
284- }
285- }
286-
287-
288-
289-@Callable(w)
290-func compoundUSDTUSDNLP () = {
291- let J = value(w.payments[0])
292- let K = J.amount
293- if ((J.assetId != a))
294- then throw("attach USDTUSDNLP tokens only")
295- else {
296- let L = valueOrElse(getInteger(this, n), 0)
297- let M = valueOrElse(getInteger(this, m), 0)
298- let N = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [J])
299- if ((N == N))
300- then {
301- let F = IntegerEntry(m, (M + K))
302- let O = IntegerEntry(n, (L + K))
303-[F, O]
304- }
305- else throw("Strict value is not equal to itself.")
306- }
307- }
308-
309-
310-
311-@Callable(w)
312-func compoundWAVESUSDNLP () = {
313- let J = value(w.payments[0])
314- let K = J.amount
315- if ((J.assetId != e))
316- then throw("attach WAVESUSDNLP tokens only")
317- else {
318- let L = valueOrElse(getInteger(this, r), 0)
319- let M = valueOrElse(getInteger(this, q), 0)
320- let N = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [J])
321- if ((N == N))
322- then {
323- let F = IntegerEntry(q, (M + K))
324- let O = IntegerEntry(r, (L + K))
325-[F, O]
326- }
327- else throw("Strict value is not equal to itself.")
328- }
329- }
330-
331-
332-
333-@Callable(w)
334-func initWX () = {
335- let P = value(w.payments[0])
336- let Q = P.amount
337- if ((P.assetId != c))
338- then throw("Unexpected token")
339- else {
340- let R = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [P])
341- if ((R == R))
342- then {
343- let S = IntegerEntry(p, Q)
344- let T = IntegerEntry(o, 0)
345-[S, T]
346- }
347- else throw("Strict value is not equal to itself.")
348- }
349- }
350-
351-
352-
353-@Callable(w)
354-func initWAVES () = {
355- let P = value(w.payments[0])
356- let Q = P.amount
357- if ((P.assetId != e))
358- then throw("Unexpected token")
359- else {
360- let R = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [P])
361- if ((R == R))
362- then {
363- let S = IntegerEntry(q, Q)
364- let T = IntegerEntry(r, 0)
365-[S, T]
366- }
367- else throw("Strict value is not equal to itself.")
368- }
369- }
370-
371-
372-
373-@Callable(w)
374-func initETH () = {
375- let P = value(w.payments[0])
376- let Q = P.amount
377- if ((P.assetId != g))
378- then throw("Unexpected token")
379- else {
380- let R = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [P])
381- if ((R == R))
382- then {
383- let S = IntegerEntry(u, Q)
384- let T = IntegerEntry(v, 0)
385- let U = Reissue(h, Q, true)
386- let V = ScriptTransfer(w.caller, Q, h)
387-[S, T, U, V]
388- }
389- else throw("Strict value is not equal to itself.")
390- }
391- }
392-
393-
394-
395-@Callable(w)
396-func initBTC () = {
397- let P = value(w.payments[0])
398- let Q = P.amount
399- if ((P.assetId != i))
400- then throw("Unexpected token")
401- else {
402- let R = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [P])
403- if ((R == R))
404- then {
405- let S = IntegerEntry(s, Q)
406- let T = IntegerEntry(t, 0)
407- let H = Reissue(j, Q, true)
408- let W = ScriptTransfer(w.caller, Q, j)
409-[S, T, H, W]
410- }
411- else throw("Strict value is not equal to itself.")
412- }
413- }
414-
415-
416-@Verifier(X)
417-func Y () = sigVerify(X.bodyBytes, X.proofs[0], X.senderPublicKey)
511+@Verifier(aU)
512+func aV () = sigVerify(aU.bodyBytes, aU.proofs[0], aU.senderPublicKey)
418513

github/deemru/w8io/026f985 
88.55 ms