tx · 4dK6LQXF53babiLS5PGLb2if2X2bSHTN7kkst4rRvJF7 3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH: -0.01500000 Waves 2022.07.27 12:57 [2158075] smart account 3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH > SELF 0.00000000 Waves
{ "type": 13, "id": "4dK6LQXF53babiLS5PGLb2if2X2bSHTN7kkst4rRvJF7", "fee": 1500000, "feeAssetId": null, "timestamp": 1658915869119, "version": 2, "chainId": 84, "sender": "3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH", "senderPublicKey": "4hcnYaYoB2XaCzyJ7wfePpG7EfTd6st6aCAhkskJ9cQ5", "proofs": [ "5CnWmhGEnCyFoyBH6eyaQoWT2hKyKu1egSrQ3pGPYqQmwF9xJ5gcYTRq8A6GWqsYacXQfZK2e9cWWdNH2Wq2BH2o" ], "script": "base64:BgIgCAISABIAEgASABIAEgASABIAEgASABIAEgASABIAEgAdAAp1c2R0VXNkbkxQASDbTYM1ZEcblu+fDC+gz33VeZ2S6OGbNQ/BP8x7AnApCwANdXNkdFVzZG5MUFRDSQEgCoHNqe1AYR2YSrg62HoEaFMIJsDJmPFhwSl++h3eKvIACHd4VXNkbkxQASAbuaGPe85Mpc36zkfJCxaOTfZb3sLrk8HWxajRsaoLHAALd3hVc2RuTFBUQ0kBILfs3eYbAnvathOH/VXQ1jy2x6I3PUuIvcF7b0hEAJgvAAp1c2RjVXNkbkxQASADaQH8GwqYCojNj/4RWYWFJpEys1qS/CbpSF3Tn95cdgANdXNkY1VzZG5MUFRDSQEg9gI33dOf74ZFL1wjRw+VX9E6baErwqe0m1RBB1L1bsYACnVzZGNVc2R0TFABIMb4pHQbVkhWEJ+QfsIz9DFriwRKLCv9mUuH9YWbfOSMAA11c2RjVXNkdExQVENJASACxoV8BEszx+Lvh2eHUvtVgv2z34QjtqBaxTXdz1dK/gAMcHV6emxlVXNkbkxQASDDM8Z0ziOqpCLfSSTlxJlreASwd1aCd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ECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQZpbml0V1gABAJwbQkBBXZhbHVlAQkAkQMCCAUBaQhwYXltZW50cwAABAJhbQgFAnBtBmFtb3VudAMJAQIhPQIIBQJwbQdhc3NldElkBQh3eFVzZG5MUAkAAgECEFVuZXhwZWN0ZWQgdG9rZW4EAXMJAPwHBAkBB0FkZHJlc3MBARoBVFlAJ5NrSynuvrGhDubcQLjPpI16DOu1DwIFc3Rha2UFA25pbAkAzAgCBQJwbQUDbmlsAwkAAAIFAXMFAXMEA3VwZAkBDEludGVnZXJFbnRyeQIFCWtleVdYVVNETgUCYW0EBHVwZEsJAQxJbnRlZ2VyRW50cnkCBRFrZXl3eFVzZG5Db21wb3VuZAAACQDMCAIFA3VwZAkAzAgCBQR1cGRLBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5E9yFLA==", "height": 2158075, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8jKD68yjCcXXkBQjusT8gMB6KnkQ6rJKhpUGzSTeziA6 Next: none Diff:
Old | New | Differences | |
---|---|---|---|
83 | 83 | ||
84 | 84 | ||
85 | 85 | @Callable(E) | |
86 | + | func initWxtUsdn () = { | |
87 | + | let F = value(E.payments[0]) | |
88 | + | let G = F.amount | |
89 | + | if ((F.assetId != c)) | |
90 | + | then throw("Unexpected token") | |
91 | + | else { | |
92 | + | let H = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [F]) | |
93 | + | if ((H == H)) | |
94 | + | then { | |
95 | + | let I = IntegerEntry(q, G) | |
96 | + | let J = IntegerEntry(p, 0) | |
97 | + | [I, J] | |
98 | + | } | |
99 | + | else throw("Strict value is not equal to itself.") | |
100 | + | } | |
101 | + | } | |
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | @Callable(E) | |
86 | 106 | func withdraw () = { | |
87 | 107 | let K = value(E.payments[0]) | |
88 | 108 | let G = K.amount | |
136 | 156 | if ((S == S)) | |
137 | 157 | then { | |
138 | 158 | let ac = ScriptTransfer(Address(z), T, c) | |
139 | - | let ad = ScriptTransfer(E.caller, ( | |
159 | + | let ad = ScriptTransfer(E.caller, (ab - T), c) | |
140 | 160 | let ae = IntegerEntry(q, (Z - ab)) | |
141 | 161 | let af = Burn(c, G) | |
142 | 162 | if ((af == af)) | |
160 | 180 | let ai = fraction(ag, x, ah) | |
161 | 181 | let aj = fraction(ai, G, x) | |
162 | 182 | let T = fraction(aj, x, y) | |
163 | - | let ak = ScriptTransfer(Address(z), T, e) | |
164 | - | let al = ScriptTransfer(E.caller, (G - T), e) | |
165 | - | let am = IntegerEntry(s, (ah - aj)) | |
166 | - | let an = Burn(f, G) | |
167 | - | if ((an == an)) | |
168 | - | then [ak, al, am] | |
183 | + | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib", aj], nil) | |
184 | + | if ((S == S)) | |
185 | + | then { | |
186 | + | let ak = ScriptTransfer(Address(z), T, e) | |
187 | + | let al = ScriptTransfer(E.caller, (G - T), e) | |
188 | + | let am = IntegerEntry(s, (ah - aj)) | |
189 | + | let an = Burn(f, G) | |
190 | + | if ((an == an)) | |
191 | + | then [ak, al, am] | |
192 | + | else throw("Strict value is not equal to itself.") | |
193 | + | } | |
169 | 194 | else throw("Strict value is not equal to itself.") | |
170 | 195 | } | |
171 | 196 | else if ((L == h)) | |
183 | 208 | let aq = fraction(ao, x, ap) | |
184 | 209 | let ar = fraction(aq, G, x) | |
185 | 210 | let T = fraction(ar, x, y) | |
186 | - | let as = ScriptTransfer(Address(z), T, g) | |
187 | - | let at = ScriptTransfer(E.caller, (G - T), g) | |
188 | - | let au = IntegerEntry(u, (ap - ar)) | |
189 | - | let af = Burn(f, G) | |
190 | - | if ((af == af)) | |
191 | - | then [as, at, au] | |
211 | + | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib", ar], nil) | |
212 | + | if ((S == S)) | |
213 | + | then { | |
214 | + | let as = ScriptTransfer(Address(z), T, g) | |
215 | + | let at = ScriptTransfer(E.caller, (ar - T), g) | |
216 | + | let au = IntegerEntry(u, (ap - ar)) | |
217 | + | let af = Burn(f, G) | |
218 | + | if ((af == af)) | |
219 | + | then [as, at, au] | |
220 | + | else throw("Strict value is not equal to itself.") | |
221 | + | } | |
192 | 222 | else throw("Strict value is not equal to itself.") | |
193 | 223 | } | |
194 | 224 | else if ((L == j)) | |
206 | 236 | let ax = fraction(av, x, aw) | |
207 | 237 | let ay = fraction(ax, G, x) | |
208 | 238 | let T = fraction(ay, x, y) | |
209 | - | let az = ScriptTransfer(Address(z), T, i) | |
210 | - | let aA = ScriptTransfer(E.caller, (G - T), i) | |
211 | - | let aB = IntegerEntry(w, (aw - ay)) | |
212 | - | let aC = Burn(j, G) | |
213 | - | if ((aC == aC)) | |
214 | - | then [az, aA, aB] | |
239 | + | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib", ay], nil) | |
240 | + | if ((S == S)) | |
241 | + | then { | |
242 | + | let az = ScriptTransfer(Address(z), T, i) | |
243 | + | let aA = ScriptTransfer(E.caller, (ay - T), i) | |
244 | + | let aB = IntegerEntry(w, (aw - ay)) | |
245 | + | let aC = Burn(j, G) | |
246 | + | if ((aC == aC)) | |
247 | + | then [az, aA, aB] | |
248 | + | else throw("Strict value is not equal to itself.") | |
249 | + | } | |
215 | 250 | else throw("Strict value is not equal to itself.") | |
216 | 251 | } | |
217 | 252 | else throw("Invalid asset") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS' | |
5 | 5 | ||
6 | 6 | let b = base58'i1snzKxSEZVokh9TWj8hTJQEDBsocnL2hRWsSbsMPK7' | |
7 | 7 | ||
8 | 8 | let c = base58'2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib' | |
9 | 9 | ||
10 | 10 | let d = base58'DNy6WBfhPE4y82RonGdHhZEunNotEDzmNfrBomWnsyGi' | |
11 | 11 | ||
12 | 12 | let e = base58'EK6N7S38xbtBT3SxAqoGdDLCiX6rojX6G169CnSyuE5' | |
13 | 13 | ||
14 | 14 | let f = base58'HZKFpNfyPG5gt4D6Nfy1zQSg2Ptmqv932GjNTCyBEeKP' | |
15 | 15 | ||
16 | 16 | let g = base58'EPhdEfmQaNcHyvDmRGhnLhgcJtKZ2a4k3ZBmKWtAEWyH' | |
17 | 17 | ||
18 | 18 | let h = base58'BqPYkaiz7Le6fFu1rjZ54anrpT57EpvyugZCUqrsjXj' | |
19 | 19 | ||
20 | 20 | let i = base58'E8zHu33GfcNyGLypX77gZiUXfvuZQeaYmiEfsy7VYNwP' | |
21 | 21 | ||
22 | 22 | let j = base58'Dh9QXSSABE5V6aRfu3mCbDAUokbpE7ER7pbZV6cvyg1A' | |
23 | 23 | ||
24 | 24 | let k = base58'Atqv59EYzjFGuitKVnMRk6H8FukjoV3ktPorbEys25on' | |
25 | 25 | ||
26 | 26 | let l = "Sponsorship_in_lock" | |
27 | 27 | ||
28 | 28 | let m = false | |
29 | 29 | ||
30 | 30 | let n = "STAKED_LP" | |
31 | 31 | ||
32 | 32 | let o = "From_Compound" | |
33 | 33 | ||
34 | 34 | let p = "WX_USDN_compound" | |
35 | 35 | ||
36 | 36 | let q = "WX_USDN" | |
37 | 37 | ||
38 | 38 | let r = "USDC_USDN_compound" | |
39 | 39 | ||
40 | 40 | let s = "USDC_USDN" | |
41 | 41 | ||
42 | 42 | let t = "USDC_USDT_compound" | |
43 | 43 | ||
44 | 44 | let u = "USDC_USDT" | |
45 | 45 | ||
46 | 46 | let v = "PUZZLE_USDN_compound" | |
47 | 47 | ||
48 | 48 | let w = "PUZZLE_USDN" | |
49 | 49 | ||
50 | 50 | let x = 100000000 | |
51 | 51 | ||
52 | 52 | let y = 10000000000 | |
53 | 53 | ||
54 | 54 | let z = base58'3Mv7nXq2V2Dnn9oSkB5feRt6RxtqnPiAXNH' | |
55 | 55 | ||
56 | 56 | let A = base58'3NAVBWBnqieKa3CdN39MAhToyTHShYxX1gB' | |
57 | 57 | ||
58 | 58 | let B = "3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz" | |
59 | 59 | ||
60 | 60 | func C (D) = if ((D != A)) | |
61 | 61 | then false | |
62 | 62 | else true | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | @Callable(E) | |
66 | 66 | func initUsdtUsdn () = { | |
67 | 67 | let F = value(E.payments[0]) | |
68 | 68 | let G = F.amount | |
69 | 69 | if ((F.assetId != a)) | |
70 | 70 | then throw("Unexpected token") | |
71 | 71 | else { | |
72 | 72 | let H = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [F]) | |
73 | 73 | if ((H == H)) | |
74 | 74 | then { | |
75 | 75 | let I = IntegerEntry(n, G) | |
76 | 76 | let J = IntegerEntry(o, 0) | |
77 | 77 | [I, J] | |
78 | 78 | } | |
79 | 79 | else throw("Strict value is not equal to itself.") | |
80 | 80 | } | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | ||
85 | 85 | @Callable(E) | |
86 | + | func initWxtUsdn () = { | |
87 | + | let F = value(E.payments[0]) | |
88 | + | let G = F.amount | |
89 | + | if ((F.assetId != c)) | |
90 | + | then throw("Unexpected token") | |
91 | + | else { | |
92 | + | let H = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [F]) | |
93 | + | if ((H == H)) | |
94 | + | then { | |
95 | + | let I = IntegerEntry(q, G) | |
96 | + | let J = IntegerEntry(p, 0) | |
97 | + | [I, J] | |
98 | + | } | |
99 | + | else throw("Strict value is not equal to itself.") | |
100 | + | } | |
101 | + | } | |
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | @Callable(E) | |
86 | 106 | func withdraw () = { | |
87 | 107 | let K = value(E.payments[0]) | |
88 | 108 | let G = K.amount | |
89 | 109 | let L = K.assetId | |
90 | 110 | if ((L == b)) | |
91 | 111 | then { | |
92 | 112 | let M = { | |
93 | 113 | let N = assetInfo(b) | |
94 | 114 | if ($isInstanceOf(N, "Asset")) | |
95 | 115 | then { | |
96 | 116 | let O = N | |
97 | 117 | O.quantity | |
98 | 118 | } | |
99 | 119 | else 0 | |
100 | 120 | } | |
101 | 121 | let P = valueOrElse(getInteger(this, n), 0) | |
102 | 122 | let Q = fraction(P, x, M) | |
103 | 123 | let R = fraction(Q, G, x) | |
104 | 124 | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS", R], nil) | |
105 | 125 | if ((S == S)) | |
106 | 126 | then { | |
107 | 127 | let T = fraction(R, x, y) | |
108 | 128 | let U = Burn(b, G) | |
109 | 129 | if ((U == U)) | |
110 | 130 | then { | |
111 | 131 | let V = IntegerEntry(n, (P - R)) | |
112 | 132 | let W = ScriptTransfer(Address(z), T, a) | |
113 | 133 | let X = ScriptTransfer(E.caller, (R - T), a) | |
114 | 134 | [W, X, V] | |
115 | 135 | } | |
116 | 136 | else throw("Strict value is not equal to itself.") | |
117 | 137 | } | |
118 | 138 | else throw("Strict value is not equal to itself.") | |
119 | 139 | } | |
120 | 140 | else if ((L == d)) | |
121 | 141 | then { | |
122 | 142 | let Y = { | |
123 | 143 | let N = assetInfo(d) | |
124 | 144 | if ($isInstanceOf(N, "Asset")) | |
125 | 145 | then { | |
126 | 146 | let O = N | |
127 | 147 | O.quantity | |
128 | 148 | } | |
129 | 149 | else 0 | |
130 | 150 | } | |
131 | 151 | let Z = valueOrElse(getInteger(this, q), 0) | |
132 | 152 | let aa = fraction(Z, x, Y) | |
133 | 153 | let ab = fraction(aa, G, x) | |
134 | 154 | let T = fraction(ab, x, y) | |
135 | 155 | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib", ab], nil) | |
136 | 156 | if ((S == S)) | |
137 | 157 | then { | |
138 | 158 | let ac = ScriptTransfer(Address(z), T, c) | |
139 | - | let ad = ScriptTransfer(E.caller, ( | |
159 | + | let ad = ScriptTransfer(E.caller, (ab - T), c) | |
140 | 160 | let ae = IntegerEntry(q, (Z - ab)) | |
141 | 161 | let af = Burn(c, G) | |
142 | 162 | if ((af == af)) | |
143 | 163 | then [ac, ad, ae] | |
144 | 164 | else throw("Strict value is not equal to itself.") | |
145 | 165 | } | |
146 | 166 | else throw("Strict value is not equal to itself.") | |
147 | 167 | } | |
148 | 168 | else if ((L == f)) | |
149 | 169 | then { | |
150 | 170 | let ag = { | |
151 | 171 | let N = assetInfo(f) | |
152 | 172 | if ($isInstanceOf(N, "Asset")) | |
153 | 173 | then { | |
154 | 174 | let O = N | |
155 | 175 | O.quantity | |
156 | 176 | } | |
157 | 177 | else 0 | |
158 | 178 | } | |
159 | 179 | let ah = valueOrElse(getInteger(this, s), 0) | |
160 | 180 | let ai = fraction(ag, x, ah) | |
161 | 181 | let aj = fraction(ai, G, x) | |
162 | 182 | let T = fraction(aj, x, y) | |
163 | - | let ak = ScriptTransfer(Address(z), T, e) | |
164 | - | let al = ScriptTransfer(E.caller, (G - T), e) | |
165 | - | let am = IntegerEntry(s, (ah - aj)) | |
166 | - | let an = Burn(f, G) | |
167 | - | if ((an == an)) | |
168 | - | then [ak, al, am] | |
183 | + | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib", aj], nil) | |
184 | + | if ((S == S)) | |
185 | + | then { | |
186 | + | let ak = ScriptTransfer(Address(z), T, e) | |
187 | + | let al = ScriptTransfer(E.caller, (G - T), e) | |
188 | + | let am = IntegerEntry(s, (ah - aj)) | |
189 | + | let an = Burn(f, G) | |
190 | + | if ((an == an)) | |
191 | + | then [ak, al, am] | |
192 | + | else throw("Strict value is not equal to itself.") | |
193 | + | } | |
169 | 194 | else throw("Strict value is not equal to itself.") | |
170 | 195 | } | |
171 | 196 | else if ((L == h)) | |
172 | 197 | then { | |
173 | 198 | let ao = { | |
174 | 199 | let N = assetInfo(f) | |
175 | 200 | if ($isInstanceOf(N, "Asset")) | |
176 | 201 | then { | |
177 | 202 | let O = N | |
178 | 203 | O.quantity | |
179 | 204 | } | |
180 | 205 | else 0 | |
181 | 206 | } | |
182 | 207 | let ap = valueOrElse(getInteger(this, u), 0) | |
183 | 208 | let aq = fraction(ao, x, ap) | |
184 | 209 | let ar = fraction(aq, G, x) | |
185 | 210 | let T = fraction(ar, x, y) | |
186 | - | let as = ScriptTransfer(Address(z), T, g) | |
187 | - | let at = ScriptTransfer(E.caller, (G - T), g) | |
188 | - | let au = IntegerEntry(u, (ap - ar)) | |
189 | - | let af = Burn(f, G) | |
190 | - | if ((af == af)) | |
191 | - | then [as, at, au] | |
211 | + | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib", ar], nil) | |
212 | + | if ((S == S)) | |
213 | + | then { | |
214 | + | let as = ScriptTransfer(Address(z), T, g) | |
215 | + | let at = ScriptTransfer(E.caller, (ar - T), g) | |
216 | + | let au = IntegerEntry(u, (ap - ar)) | |
217 | + | let af = Burn(f, G) | |
218 | + | if ((af == af)) | |
219 | + | then [as, at, au] | |
220 | + | else throw("Strict value is not equal to itself.") | |
221 | + | } | |
192 | 222 | else throw("Strict value is not equal to itself.") | |
193 | 223 | } | |
194 | 224 | else if ((L == j)) | |
195 | 225 | then { | |
196 | 226 | let av = { | |
197 | 227 | let N = assetInfo(j) | |
198 | 228 | if ($isInstanceOf(N, "Asset")) | |
199 | 229 | then { | |
200 | 230 | let O = N | |
201 | 231 | O.quantity | |
202 | 232 | } | |
203 | 233 | else 0 | |
204 | 234 | } | |
205 | 235 | let aw = valueOrElse(getInteger(this, w), 0) | |
206 | 236 | let ax = fraction(av, x, aw) | |
207 | 237 | let ay = fraction(ax, G, x) | |
208 | 238 | let T = fraction(ay, x, y) | |
209 | - | let az = ScriptTransfer(Address(z), T, i) | |
210 | - | let aA = ScriptTransfer(E.caller, (G - T), i) | |
211 | - | let aB = IntegerEntry(w, (aw - ay)) | |
212 | - | let aC = Burn(j, G) | |
213 | - | if ((aC == aC)) | |
214 | - | then [az, aA, aB] | |
239 | + | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib", ay], nil) | |
240 | + | if ((S == S)) | |
241 | + | then { | |
242 | + | let az = ScriptTransfer(Address(z), T, i) | |
243 | + | let aA = ScriptTransfer(E.caller, (ay - T), i) | |
244 | + | let aB = IntegerEntry(w, (aw - ay)) | |
245 | + | let aC = Burn(j, G) | |
246 | + | if ((aC == aC)) | |
247 | + | then [az, aA, aB] | |
248 | + | else throw("Strict value is not equal to itself.") | |
249 | + | } | |
215 | 250 | else throw("Strict value is not equal to itself.") | |
216 | 251 | } | |
217 | 252 | else throw("Invalid asset") | |
218 | 253 | } | |
219 | 254 | ||
220 | 255 | ||
221 | 256 | ||
222 | 257 | @Callable(E) | |
223 | 258 | func depositWxUsdnLP () = { | |
224 | 259 | let aD = value(E.payments[0]) | |
225 | 260 | let aE = aD.amount | |
226 | 261 | if ((aD.assetId != c)) | |
227 | 262 | then throw("attach WXUSDNLP tokens only") | |
228 | 263 | else if (m) | |
229 | 264 | then throw("smart contract is on lock") | |
230 | 265 | else { | |
231 | 266 | let aF = valueOrElse(getInteger(this, q), 0) | |
232 | 267 | let aG = { | |
233 | 268 | let N = assetInfo(d) | |
234 | 269 | if ($isInstanceOf(N, "Asset")) | |
235 | 270 | then { | |
236 | 271 | let aH = N | |
237 | 272 | aH.quantity | |
238 | 273 | } | |
239 | 274 | else throw("Can't find asset") | |
240 | 275 | } | |
241 | 276 | let aI = fraction(aG, 100000000, aF) | |
242 | 277 | let aJ = fraction(aE, aI, 100000000) | |
243 | 278 | let aK = IntegerEntry(q, (aF + aE)) | |
244 | 279 | let aL = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aD]) | |
245 | 280 | if ((aL == aL)) | |
246 | 281 | then { | |
247 | 282 | let aM = Reissue(d, aJ, true) | |
248 | 283 | let X = ScriptTransfer(E.caller, aJ, d) | |
249 | 284 | [aM, X, aK] | |
250 | 285 | } | |
251 | 286 | else throw("Strict value is not equal to itself.") | |
252 | 287 | } | |
253 | 288 | } | |
254 | 289 | ||
255 | 290 | ||
256 | 291 | ||
257 | 292 | @Callable(E) | |
258 | 293 | func depositUsdtUsdnLP () = { | |
259 | 294 | let aD = value(E.payments[0]) | |
260 | 295 | let aE = aD.amount | |
261 | 296 | if ((aD.assetId != a)) | |
262 | 297 | then throw("attach USDTUSDNLP tokens only") | |
263 | 298 | else if (m) | |
264 | 299 | then throw("smart contract is on lock") | |
265 | 300 | else { | |
266 | 301 | let aF = valueOrElse(getInteger(this, n), 0) | |
267 | 302 | let aG = { | |
268 | 303 | let N = assetInfo(b) | |
269 | 304 | if ($isInstanceOf(N, "Asset")) | |
270 | 305 | then { | |
271 | 306 | let aH = N | |
272 | 307 | aH.quantity | |
273 | 308 | } | |
274 | 309 | else throw("Can't find asset") | |
275 | 310 | } | |
276 | 311 | let aN = valueOrElse(getInteger(this, o), 0) | |
277 | 312 | let aO = fraction(aG, 100000000, aF) | |
278 | 313 | let aJ = fraction(aE, aO, 100000000) | |
279 | 314 | let aK = IntegerEntry(n, (aF + aE)) | |
280 | 315 | let aL = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aD]) | |
281 | 316 | if ((aL == aL)) | |
282 | 317 | then { | |
283 | 318 | let aM = Reissue(b, aJ, true) | |
284 | 319 | let X = ScriptTransfer(E.caller, aJ, b) | |
285 | 320 | [aM, X, aK] | |
286 | 321 | } | |
287 | 322 | else throw("Strict value is not equal to itself.") | |
288 | 323 | } | |
289 | 324 | } | |
290 | 325 | ||
291 | 326 | ||
292 | 327 | ||
293 | 328 | @Callable(E) | |
294 | 329 | func depositUsdcUsdnLP () = { | |
295 | 330 | let aD = value(E.payments[0]) | |
296 | 331 | let aE = aD.amount | |
297 | 332 | if ((aD.assetId != e)) | |
298 | 333 | then throw("attach USDCUSDNLP tokens only") | |
299 | 334 | else if (m) | |
300 | 335 | then throw("smart contract is on lock") | |
301 | 336 | else { | |
302 | 337 | let aF = valueOrElse(getInteger(this, s), 0) | |
303 | 338 | let aG = { | |
304 | 339 | let N = assetInfo(f) | |
305 | 340 | if ($isInstanceOf(N, "Asset")) | |
306 | 341 | then { | |
307 | 342 | let aH = N | |
308 | 343 | aH.quantity | |
309 | 344 | } | |
310 | 345 | else throw("Can't find asset") | |
311 | 346 | } | |
312 | 347 | let aN = valueOrElse(getInteger(this, r), 0) | |
313 | 348 | let aO = fraction(aG, 100000000, aF) | |
314 | 349 | let aJ = fraction(aE, aO, 100000000) | |
315 | 350 | let aK = IntegerEntry(s, (aF + aE)) | |
316 | 351 | let aL = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aD]) | |
317 | 352 | if ((aL == aL)) | |
318 | 353 | then { | |
319 | 354 | let aM = Reissue(f, aJ, true) | |
320 | 355 | let X = ScriptTransfer(E.caller, aJ, f) | |
321 | 356 | [aM, X, aK] | |
322 | 357 | } | |
323 | 358 | else throw("Strict value is not equal to itself.") | |
324 | 359 | } | |
325 | 360 | } | |
326 | 361 | ||
327 | 362 | ||
328 | 363 | ||
329 | 364 | @Callable(E) | |
330 | 365 | func depositUsdcUsdtLP () = { | |
331 | 366 | let aD = value(E.payments[0]) | |
332 | 367 | let aE = aD.amount | |
333 | 368 | if ((aD.assetId != g)) | |
334 | 369 | then throw("attach USDCUSDTLP tokens only") | |
335 | 370 | else if (m) | |
336 | 371 | then throw("smart contract is on lock") | |
337 | 372 | else { | |
338 | 373 | let aF = valueOrElse(getInteger(this, u), 0) | |
339 | 374 | let aG = { | |
340 | 375 | let N = assetInfo(h) | |
341 | 376 | if ($isInstanceOf(N, "Asset")) | |
342 | 377 | then { | |
343 | 378 | let aH = N | |
344 | 379 | aH.quantity | |
345 | 380 | } | |
346 | 381 | else throw("Can't find asset") | |
347 | 382 | } | |
348 | 383 | let aN = valueOrElse(getInteger(this, t), 0) | |
349 | 384 | let aO = fraction(aG, 100000000, aF) | |
350 | 385 | let aJ = fraction(aE, aO, 100000000) | |
351 | 386 | let aK = IntegerEntry(u, (aF + aE)) | |
352 | 387 | let aL = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aD]) | |
353 | 388 | if ((aL == aL)) | |
354 | 389 | then { | |
355 | 390 | let aM = Reissue(h, aJ, true) | |
356 | 391 | let X = ScriptTransfer(E.caller, aJ, h) | |
357 | 392 | [aM, X, aK] | |
358 | 393 | } | |
359 | 394 | else throw("Strict value is not equal to itself.") | |
360 | 395 | } | |
361 | 396 | } | |
362 | 397 | ||
363 | 398 | ||
364 | 399 | ||
365 | 400 | @Callable(E) | |
366 | 401 | func depositPuzzleUsdnLP () = { | |
367 | 402 | let aD = value(E.payments[0]) | |
368 | 403 | let aE = aD.amount | |
369 | 404 | if ((aD.assetId != i)) | |
370 | 405 | then throw("attach PUZZLEUDSNLP tokens only") | |
371 | 406 | else if (m) | |
372 | 407 | then throw("smart contract is on lock") | |
373 | 408 | else { | |
374 | 409 | let aF = valueOrElse(getInteger(this, w), 0) | |
375 | 410 | let aG = { | |
376 | 411 | let N = assetInfo(j) | |
377 | 412 | if ($isInstanceOf(N, "Asset")) | |
378 | 413 | then { | |
379 | 414 | let aH = N | |
380 | 415 | aH.quantity | |
381 | 416 | } | |
382 | 417 | else throw("Can't find asset") | |
383 | 418 | } | |
384 | 419 | let aN = valueOrElse(getInteger(this, v), 0) | |
385 | 420 | let aO = fraction(aG, 100000000, aF) | |
386 | 421 | let aJ = fraction(aE, aO, 100000000) | |
387 | 422 | let aK = IntegerEntry(w, (aF + aE)) | |
388 | 423 | let aL = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aD]) | |
389 | 424 | if ((aL == aL)) | |
390 | 425 | then { | |
391 | 426 | let aM = Reissue(j, aJ, true) | |
392 | 427 | let X = ScriptTransfer(E.caller, aJ, j) | |
393 | 428 | [aM, X, aK] | |
394 | 429 | } | |
395 | 430 | else throw("Strict value is not equal to itself.") | |
396 | 431 | } | |
397 | 432 | } | |
398 | 433 | ||
399 | 434 | ||
400 | 435 | ||
401 | 436 | @Callable(E) | |
402 | 437 | func compoundWxUsdnLP () = { | |
403 | 438 | let aP = value(E.payments[0]) | |
404 | 439 | let aQ = aP.amount | |
405 | 440 | let aR = C(E.caller.bytes) | |
406 | 441 | if ((aP.assetId != c)) | |
407 | 442 | then throw("attach WXUSDNLP tokens only") | |
408 | 443 | else if (!(aR)) | |
409 | 444 | then throw("You are not authotized to call this function") | |
410 | 445 | else { | |
411 | 446 | let aN = valueOrElse(getInteger(this, p), 0) | |
412 | 447 | let aS = valueOrElse(getInteger(this, q), 0) | |
413 | 448 | let aT = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aP]) | |
414 | 449 | if ((aT == aT)) | |
415 | 450 | then { | |
416 | 451 | let aK = IntegerEntry(q, (aS + aQ)) | |
417 | 452 | let aU = IntegerEntry(p, (aN + aQ)) | |
418 | 453 | [aK, aU] | |
419 | 454 | } | |
420 | 455 | else throw("Strict value is not equal to itself.") | |
421 | 456 | } | |
422 | 457 | } | |
423 | 458 | ||
424 | 459 | ||
425 | 460 | ||
426 | 461 | @Callable(E) | |
427 | 462 | func compoundUsdtUsdnLP () = { | |
428 | 463 | let aP = value(E.payments[0]) | |
429 | 464 | let aQ = aP.amount | |
430 | 465 | let aR = C(E.caller.bytes) | |
431 | 466 | if ((aP.assetId != a)) | |
432 | 467 | then throw("attach USDTUSDNLP tokens only") | |
433 | 468 | else if (!(aR)) | |
434 | 469 | then throw("You are not authotized to call this function") | |
435 | 470 | else { | |
436 | 471 | let aN = valueOrElse(getInteger(this, o), 0) | |
437 | 472 | let aS = valueOrElse(getInteger(this, n), 0) | |
438 | 473 | let aT = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aP]) | |
439 | 474 | if ((aT == aT)) | |
440 | 475 | then { | |
441 | 476 | let aK = IntegerEntry(n, (aS + aQ)) | |
442 | 477 | let aU = IntegerEntry(o, (aN + aQ)) | |
443 | 478 | [aK, aU] | |
444 | 479 | } | |
445 | 480 | else throw("Strict value is not equal to itself.") | |
446 | 481 | } | |
447 | 482 | } | |
448 | 483 | ||
449 | 484 | ||
450 | 485 | ||
451 | 486 | @Callable(E) | |
452 | 487 | func compoundUsdcUsdnLP () = { | |
453 | 488 | let aP = value(E.payments[0]) | |
454 | 489 | let aQ = aP.amount | |
455 | 490 | let aR = C(E.caller.bytes) | |
456 | 491 | if ((aP.assetId != e)) | |
457 | 492 | then throw("attach USDCUSDNLP tokens only") | |
458 | 493 | else if (!(aR)) | |
459 | 494 | then throw("You are not authotized to call this function") | |
460 | 495 | else { | |
461 | 496 | let aN = valueOrElse(getInteger(this, r), 0) | |
462 | 497 | let aS = valueOrElse(getInteger(this, s), 0) | |
463 | 498 | let aT = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aP]) | |
464 | 499 | if ((aT == aT)) | |
465 | 500 | then { | |
466 | 501 | let aK = IntegerEntry(s, (aS + aQ)) | |
467 | 502 | let aU = IntegerEntry(r, (aN + aQ)) | |
468 | 503 | [aK, aU] | |
469 | 504 | } | |
470 | 505 | else throw("Strict value is not equal to itself.") | |
471 | 506 | } | |
472 | 507 | } | |
473 | 508 | ||
474 | 509 | ||
475 | 510 | ||
476 | 511 | @Callable(E) | |
477 | 512 | func compoundUsdcUsdtLP () = { | |
478 | 513 | let aP = value(E.payments[0]) | |
479 | 514 | let aQ = aP.amount | |
480 | 515 | let aR = C(E.caller.bytes) | |
481 | 516 | if ((aP.assetId != g)) | |
482 | 517 | then throw("attach USDCUSDTLP tokens only") | |
483 | 518 | else if (!(aR)) | |
484 | 519 | then throw("You are not authotized to call this function") | |
485 | 520 | else { | |
486 | 521 | let aN = valueOrElse(getInteger(this, t), 0) | |
487 | 522 | let aS = valueOrElse(getInteger(this, u), 0) | |
488 | 523 | let aT = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aP]) | |
489 | 524 | if ((aT == aT)) | |
490 | 525 | then { | |
491 | 526 | let aK = IntegerEntry(u, (aS + aQ)) | |
492 | 527 | let aU = IntegerEntry(t, (aN + aQ)) | |
493 | 528 | [aK, aU] | |
494 | 529 | } | |
495 | 530 | else throw("Strict value is not equal to itself.") | |
496 | 531 | } | |
497 | 532 | } | |
498 | 533 | ||
499 | 534 | ||
500 | 535 | ||
501 | 536 | @Callable(E) | |
502 | 537 | func compoundPuzzleUsdnLP () = { | |
503 | 538 | let aP = value(E.payments[0]) | |
504 | 539 | let aQ = aP.amount | |
505 | 540 | let aR = C(E.caller.bytes) | |
506 | 541 | if ((aP.assetId != i)) | |
507 | 542 | then throw("attach PUZZLEUSDNLP tokens only") | |
508 | 543 | else if (!(aR)) | |
509 | 544 | then throw("You are not authotized to call this function") | |
510 | 545 | else { | |
511 | 546 | let aN = valueOrElse(getInteger(this, v), 0) | |
512 | 547 | let aS = valueOrElse(getInteger(this, w), 0) | |
513 | 548 | let aT = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aP]) | |
514 | 549 | if ((aT == aT)) | |
515 | 550 | then { | |
516 | 551 | let aK = IntegerEntry(w, (aS + aQ)) | |
517 | 552 | let aU = IntegerEntry(v, (aN + aQ)) | |
518 | 553 | [aK, aU] | |
519 | 554 | } | |
520 | 555 | else throw("Strict value is not equal to itself.") | |
521 | 556 | } | |
522 | 557 | } | |
523 | 558 | ||
524 | 559 | ||
525 | 560 | ||
526 | 561 | @Callable(E) | |
527 | 562 | func sponsorBoost () = { | |
528 | 563 | let F = value(E.payments[0]) | |
529 | 564 | let aV = 100 | |
530 | 565 | if ((F.assetId != k)) | |
531 | 566 | then throw("Error") | |
532 | 567 | else { | |
533 | 568 | let aW = valueOrElse(getInteger(this, l), 0) | |
534 | 569 | let aX = invoke(Address(base58'3PJL8Hn8LACaSBWLQ3UVhctA5cTQLBFwBAP'), "increaseLock", [aV], [F]) | |
535 | 570 | if ((aX == aX)) | |
536 | 571 | then { | |
537 | 572 | let H = IntegerEntry(l, (F.amount + aW)) | |
538 | 573 | [H] | |
539 | 574 | } | |
540 | 575 | else throw("Strict value is not equal to itself.") | |
541 | 576 | } | |
542 | 577 | } | |
543 | 578 | ||
544 | 579 | ||
545 | 580 | ||
546 | 581 | @Callable(E) | |
547 | 582 | func initWX () = { | |
548 | 583 | let F = value(E.payments[0]) | |
549 | 584 | let G = F.amount | |
550 | 585 | if ((F.assetId != c)) | |
551 | 586 | then throw("Unexpected token") | |
552 | 587 | else { | |
553 | 588 | let H = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [F]) | |
554 | 589 | if ((H == H)) | |
555 | 590 | then { | |
556 | 591 | let I = IntegerEntry(q, G) | |
557 | 592 | let J = IntegerEntry(p, 0) | |
558 | 593 | [I, J] | |
559 | 594 | } | |
560 | 595 | else throw("Strict value is not equal to itself.") | |
561 | 596 | } | |
562 | 597 | } | |
563 | 598 | ||
564 | 599 | ||
565 | 600 | @Verifier(aY) | |
566 | 601 | func aZ () = sigVerify(aY.bodyBytes, aY.proofs[0], aY.senderPublicKey) | |
567 | 602 |
github/deemru/w8io/169f3d6 57.37 ms ◑