tx · 8jKD68yjCcXXkBQjusT8gMB6KnkQ6rJKhpUGzSTeziA6 3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH: -0.01400000 Waves 2022.07.26 16:00 [2156796] smart account 3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH > SELF 0.00000000 Waves
{ "type": 13, "id": "8jKD68yjCcXXkBQjusT8gMB6KnkQ6rJKhpUGzSTeziA6", "fee": 1400000, "feeAssetId": null, "timestamp": 1658840419911, "version": 2, "chainId": 84, "sender": "3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH", "senderPublicKey": "4hcnYaYoB2XaCzyJ7wfePpG7EfTd6st6aCAhkskJ9cQ5", "proofs": [ "5JDvFvnRp6343sZa5xGsKRt1bLLJaR9NtLsEqdbZ4SUq9mX35oUnaUS6izAr4oevPVfypBGMEnEk2Yaq1twgQqN1" ], "script": "base64:BgIeCAISABIAEgASABIAEgASABIAEgASABIAEgASABIAHQAKdXNkdFVzZG5MUAEg202DNWRHG5bvnwwvoM991XmdkujhmzUPwT/MewJwKQsADXVzZHRVc2RuTFBUQ0kBIAqBzantQGEdmEq4Oth6BGhTCCbAyZjxYcEpfvod3iryAAh3eFVzZG5MUAEgG7mhj3vOTKXN+s5HyQsWjk32W97C65PB1sWo0bGqCxwAC3d4VXNkbkxQVENJASC37N3mGwJ72rYTh/1V0NY8tseiNz1LiL3Be29IRACYLwAKdXNkY1VzZG5MUAEgA2kB/BsKmAqIzY/+EVmFhSaRMrNakvwm6Uhd05/eXHYADXVzZGNVc2RuTFBUQ0kBIPYCN93Tn++GRS9cI0cPlV/ROm2hK8KntJtUQQdS9W7GAAp1c2RjVXNkdExQASDG+KR0G1ZIVhCfkH7CM/Qxa4sESiwr/ZlLh/WFm3zkjAANdXNkY1VzZHRMUFRDSQEgAsaFfARLM8fi74dnh1L7VYL9s9+EI7agWsU13c9XSv4ADHB1enpsZVVzZG5MUAEgwzPGdM4jqqQi30kk5cSZa3gEsHdWgnT/u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VwZAkBDEludGVnZXJFbnRyeQIFCWtleVdYVVNETgUCYW0EBHVwZEsJAQxJbnRlZ2VyRW50cnkCBRFrZXl3eFVzZG5Db21wb3VuZAAACQDMCAIFA3VwZAkAzAgCBQR1cGRLBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5nu9YPA==", "height": 2156796, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4p27Ei2LgoqxkPStNyzyNjY31RfgTN88R341B365bt4U Next: 4dK6LQXF53babiLS5PGLb2if2X2bSHTN7kkst4rRvJF7 Diff:
Old | New | Differences | |
---|---|---|---|
102 | 102 | let Q = fraction(P, x, M) | |
103 | 103 | let R = fraction(Q, G, x) | |
104 | 104 | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS", R], nil) | |
105 | - | let T = fraction(R, x, y) | |
106 | - | let U = Burn(b, G) | |
107 | - | if ((U == U)) | |
105 | + | if ((S == S)) | |
108 | 106 | then { | |
109 | - | let V = IntegerEntry(n, (P - R)) | |
110 | - | let W = ScriptTransfer(Address(z), T, a) | |
111 | - | let X = ScriptTransfer(E.caller, (R - T), a) | |
107 | + | let T = fraction(R, x, y) | |
108 | + | let U = Burn(b, G) | |
109 | + | if ((U == U)) | |
110 | + | then { | |
111 | + | let V = IntegerEntry(n, (P - R)) | |
112 | + | let W = ScriptTransfer(Address(z), T, a) | |
113 | + | let X = ScriptTransfer(E.caller, (R - T), a) | |
112 | 114 | [W, X, V] | |
115 | + | } | |
116 | + | else throw("Strict value is not equal to itself.") | |
113 | 117 | } | |
114 | 118 | else throw("Strict value is not equal to itself.") | |
115 | 119 | } |
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 | 86 | func withdraw () = { | |
87 | 87 | let K = value(E.payments[0]) | |
88 | 88 | let G = K.amount | |
89 | 89 | let L = K.assetId | |
90 | 90 | if ((L == b)) | |
91 | 91 | then { | |
92 | 92 | let M = { | |
93 | 93 | let N = assetInfo(b) | |
94 | 94 | if ($isInstanceOf(N, "Asset")) | |
95 | 95 | then { | |
96 | 96 | let O = N | |
97 | 97 | O.quantity | |
98 | 98 | } | |
99 | 99 | else 0 | |
100 | 100 | } | |
101 | 101 | let P = valueOrElse(getInteger(this, n), 0) | |
102 | 102 | let Q = fraction(P, x, M) | |
103 | 103 | let R = fraction(Q, G, x) | |
104 | 104 | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS", R], nil) | |
105 | - | let T = fraction(R, x, y) | |
106 | - | let U = Burn(b, G) | |
107 | - | if ((U == U)) | |
105 | + | if ((S == S)) | |
108 | 106 | then { | |
109 | - | let V = IntegerEntry(n, (P - R)) | |
110 | - | let W = ScriptTransfer(Address(z), T, a) | |
111 | - | let X = ScriptTransfer(E.caller, (R - T), a) | |
107 | + | let T = fraction(R, x, y) | |
108 | + | let U = Burn(b, G) | |
109 | + | if ((U == U)) | |
110 | + | then { | |
111 | + | let V = IntegerEntry(n, (P - R)) | |
112 | + | let W = ScriptTransfer(Address(z), T, a) | |
113 | + | let X = ScriptTransfer(E.caller, (R - T), a) | |
112 | 114 | [W, X, V] | |
115 | + | } | |
116 | + | else throw("Strict value is not equal to itself.") | |
113 | 117 | } | |
114 | 118 | else throw("Strict value is not equal to itself.") | |
115 | 119 | } | |
116 | 120 | else if ((L == d)) | |
117 | 121 | then { | |
118 | 122 | let Y = { | |
119 | 123 | let N = assetInfo(d) | |
120 | 124 | if ($isInstanceOf(N, "Asset")) | |
121 | 125 | then { | |
122 | 126 | let O = N | |
123 | 127 | O.quantity | |
124 | 128 | } | |
125 | 129 | else 0 | |
126 | 130 | } | |
127 | 131 | let Z = valueOrElse(getInteger(this, q), 0) | |
128 | 132 | let aa = fraction(Z, x, Y) | |
129 | 133 | let ab = fraction(aa, G, x) | |
130 | 134 | let T = fraction(ab, x, y) | |
131 | 135 | let S = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "unstake", ["2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib", ab], nil) | |
132 | 136 | if ((S == S)) | |
133 | 137 | then { | |
134 | 138 | let ac = ScriptTransfer(Address(z), T, c) | |
135 | 139 | let ad = ScriptTransfer(E.caller, (G - T), c) | |
136 | 140 | let ae = IntegerEntry(q, (Z - ab)) | |
137 | 141 | let af = Burn(c, G) | |
138 | 142 | if ((af == af)) | |
139 | 143 | then [ac, ad, ae] | |
140 | 144 | else throw("Strict value is not equal to itself.") | |
141 | 145 | } | |
142 | 146 | else throw("Strict value is not equal to itself.") | |
143 | 147 | } | |
144 | 148 | else if ((L == f)) | |
145 | 149 | then { | |
146 | 150 | let ag = { | |
147 | 151 | let N = assetInfo(f) | |
148 | 152 | if ($isInstanceOf(N, "Asset")) | |
149 | 153 | then { | |
150 | 154 | let O = N | |
151 | 155 | O.quantity | |
152 | 156 | } | |
153 | 157 | else 0 | |
154 | 158 | } | |
155 | 159 | let ah = valueOrElse(getInteger(this, s), 0) | |
156 | 160 | let ai = fraction(ag, x, ah) | |
157 | 161 | let aj = fraction(ai, G, x) | |
158 | 162 | let T = fraction(aj, x, y) | |
159 | 163 | let ak = ScriptTransfer(Address(z), T, e) | |
160 | 164 | let al = ScriptTransfer(E.caller, (G - T), e) | |
161 | 165 | let am = IntegerEntry(s, (ah - aj)) | |
162 | 166 | let an = Burn(f, G) | |
163 | 167 | if ((an == an)) | |
164 | 168 | then [ak, al, am] | |
165 | 169 | else throw("Strict value is not equal to itself.") | |
166 | 170 | } | |
167 | 171 | else if ((L == h)) | |
168 | 172 | then { | |
169 | 173 | let ao = { | |
170 | 174 | let N = assetInfo(f) | |
171 | 175 | if ($isInstanceOf(N, "Asset")) | |
172 | 176 | then { | |
173 | 177 | let O = N | |
174 | 178 | O.quantity | |
175 | 179 | } | |
176 | 180 | else 0 | |
177 | 181 | } | |
178 | 182 | let ap = valueOrElse(getInteger(this, u), 0) | |
179 | 183 | let aq = fraction(ao, x, ap) | |
180 | 184 | let ar = fraction(aq, G, x) | |
181 | 185 | let T = fraction(ar, x, y) | |
182 | 186 | let as = ScriptTransfer(Address(z), T, g) | |
183 | 187 | let at = ScriptTransfer(E.caller, (G - T), g) | |
184 | 188 | let au = IntegerEntry(u, (ap - ar)) | |
185 | 189 | let af = Burn(f, G) | |
186 | 190 | if ((af == af)) | |
187 | 191 | then [as, at, au] | |
188 | 192 | else throw("Strict value is not equal to itself.") | |
189 | 193 | } | |
190 | 194 | else if ((L == j)) | |
191 | 195 | then { | |
192 | 196 | let av = { | |
193 | 197 | let N = assetInfo(j) | |
194 | 198 | if ($isInstanceOf(N, "Asset")) | |
195 | 199 | then { | |
196 | 200 | let O = N | |
197 | 201 | O.quantity | |
198 | 202 | } | |
199 | 203 | else 0 | |
200 | 204 | } | |
201 | 205 | let aw = valueOrElse(getInteger(this, w), 0) | |
202 | 206 | let ax = fraction(av, x, aw) | |
203 | 207 | let ay = fraction(ax, G, x) | |
204 | 208 | let T = fraction(ay, x, y) | |
205 | 209 | let az = ScriptTransfer(Address(z), T, i) | |
206 | 210 | let aA = ScriptTransfer(E.caller, (G - T), i) | |
207 | 211 | let aB = IntegerEntry(w, (aw - ay)) | |
208 | 212 | let aC = Burn(j, G) | |
209 | 213 | if ((aC == aC)) | |
210 | 214 | then [az, aA, aB] | |
211 | 215 | else throw("Strict value is not equal to itself.") | |
212 | 216 | } | |
213 | 217 | else throw("Invalid asset") | |
214 | 218 | } | |
215 | 219 | ||
216 | 220 | ||
217 | 221 | ||
218 | 222 | @Callable(E) | |
219 | 223 | func depositWxUsdnLP () = { | |
220 | 224 | let aD = value(E.payments[0]) | |
221 | 225 | let aE = aD.amount | |
222 | 226 | if ((aD.assetId != c)) | |
223 | 227 | then throw("attach WXUSDNLP tokens only") | |
224 | 228 | else if (m) | |
225 | 229 | then throw("smart contract is on lock") | |
226 | 230 | else { | |
227 | 231 | let aF = valueOrElse(getInteger(this, q), 0) | |
228 | 232 | let aG = { | |
229 | 233 | let N = assetInfo(d) | |
230 | 234 | if ($isInstanceOf(N, "Asset")) | |
231 | 235 | then { | |
232 | 236 | let aH = N | |
233 | 237 | aH.quantity | |
234 | 238 | } | |
235 | 239 | else throw("Can't find asset") | |
236 | 240 | } | |
237 | 241 | let aI = fraction(aG, 100000000, aF) | |
238 | 242 | let aJ = fraction(aE, aI, 100000000) | |
239 | 243 | let aK = IntegerEntry(q, (aF + aE)) | |
240 | 244 | let aL = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aD]) | |
241 | 245 | if ((aL == aL)) | |
242 | 246 | then { | |
243 | 247 | let aM = Reissue(d, aJ, true) | |
244 | 248 | let X = ScriptTransfer(E.caller, aJ, d) | |
245 | 249 | [aM, X, aK] | |
246 | 250 | } | |
247 | 251 | else throw("Strict value is not equal to itself.") | |
248 | 252 | } | |
249 | 253 | } | |
250 | 254 | ||
251 | 255 | ||
252 | 256 | ||
253 | 257 | @Callable(E) | |
254 | 258 | func depositUsdtUsdnLP () = { | |
255 | 259 | let aD = value(E.payments[0]) | |
256 | 260 | let aE = aD.amount | |
257 | 261 | if ((aD.assetId != a)) | |
258 | 262 | then throw("attach USDTUSDNLP tokens only") | |
259 | 263 | else if (m) | |
260 | 264 | then throw("smart contract is on lock") | |
261 | 265 | else { | |
262 | 266 | let aF = valueOrElse(getInteger(this, n), 0) | |
263 | 267 | let aG = { | |
264 | 268 | let N = assetInfo(b) | |
265 | 269 | if ($isInstanceOf(N, "Asset")) | |
266 | 270 | then { | |
267 | 271 | let aH = N | |
268 | 272 | aH.quantity | |
269 | 273 | } | |
270 | 274 | else throw("Can't find asset") | |
271 | 275 | } | |
272 | 276 | let aN = valueOrElse(getInteger(this, o), 0) | |
273 | 277 | let aO = fraction(aG, 100000000, aF) | |
274 | 278 | let aJ = fraction(aE, aO, 100000000) | |
275 | 279 | let aK = IntegerEntry(n, (aF + aE)) | |
276 | 280 | let aL = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aD]) | |
277 | 281 | if ((aL == aL)) | |
278 | 282 | then { | |
279 | 283 | let aM = Reissue(b, aJ, true) | |
280 | 284 | let X = ScriptTransfer(E.caller, aJ, b) | |
281 | 285 | [aM, X, aK] | |
282 | 286 | } | |
283 | 287 | else throw("Strict value is not equal to itself.") | |
284 | 288 | } | |
285 | 289 | } | |
286 | 290 | ||
287 | 291 | ||
288 | 292 | ||
289 | 293 | @Callable(E) | |
290 | 294 | func depositUsdcUsdnLP () = { | |
291 | 295 | let aD = value(E.payments[0]) | |
292 | 296 | let aE = aD.amount | |
293 | 297 | if ((aD.assetId != e)) | |
294 | 298 | then throw("attach USDCUSDNLP tokens only") | |
295 | 299 | else if (m) | |
296 | 300 | then throw("smart contract is on lock") | |
297 | 301 | else { | |
298 | 302 | let aF = valueOrElse(getInteger(this, s), 0) | |
299 | 303 | let aG = { | |
300 | 304 | let N = assetInfo(f) | |
301 | 305 | if ($isInstanceOf(N, "Asset")) | |
302 | 306 | then { | |
303 | 307 | let aH = N | |
304 | 308 | aH.quantity | |
305 | 309 | } | |
306 | 310 | else throw("Can't find asset") | |
307 | 311 | } | |
308 | 312 | let aN = valueOrElse(getInteger(this, r), 0) | |
309 | 313 | let aO = fraction(aG, 100000000, aF) | |
310 | 314 | let aJ = fraction(aE, aO, 100000000) | |
311 | 315 | let aK = IntegerEntry(s, (aF + aE)) | |
312 | 316 | let aL = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aD]) | |
313 | 317 | if ((aL == aL)) | |
314 | 318 | then { | |
315 | 319 | let aM = Reissue(f, aJ, true) | |
316 | 320 | let X = ScriptTransfer(E.caller, aJ, f) | |
317 | 321 | [aM, X, aK] | |
318 | 322 | } | |
319 | 323 | else throw("Strict value is not equal to itself.") | |
320 | 324 | } | |
321 | 325 | } | |
322 | 326 | ||
323 | 327 | ||
324 | 328 | ||
325 | 329 | @Callable(E) | |
326 | 330 | func depositUsdcUsdtLP () = { | |
327 | 331 | let aD = value(E.payments[0]) | |
328 | 332 | let aE = aD.amount | |
329 | 333 | if ((aD.assetId != g)) | |
330 | 334 | then throw("attach USDCUSDTLP tokens only") | |
331 | 335 | else if (m) | |
332 | 336 | then throw("smart contract is on lock") | |
333 | 337 | else { | |
334 | 338 | let aF = valueOrElse(getInteger(this, u), 0) | |
335 | 339 | let aG = { | |
336 | 340 | let N = assetInfo(h) | |
337 | 341 | if ($isInstanceOf(N, "Asset")) | |
338 | 342 | then { | |
339 | 343 | let aH = N | |
340 | 344 | aH.quantity | |
341 | 345 | } | |
342 | 346 | else throw("Can't find asset") | |
343 | 347 | } | |
344 | 348 | let aN = valueOrElse(getInteger(this, t), 0) | |
345 | 349 | let aO = fraction(aG, 100000000, aF) | |
346 | 350 | let aJ = fraction(aE, aO, 100000000) | |
347 | 351 | let aK = IntegerEntry(u, (aF + aE)) | |
348 | 352 | let aL = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aD]) | |
349 | 353 | if ((aL == aL)) | |
350 | 354 | then { | |
351 | 355 | let aM = Reissue(h, aJ, true) | |
352 | 356 | let X = ScriptTransfer(E.caller, aJ, h) | |
353 | 357 | [aM, X, aK] | |
354 | 358 | } | |
355 | 359 | else throw("Strict value is not equal to itself.") | |
356 | 360 | } | |
357 | 361 | } | |
358 | 362 | ||
359 | 363 | ||
360 | 364 | ||
361 | 365 | @Callable(E) | |
362 | 366 | func depositPuzzleUsdnLP () = { | |
363 | 367 | let aD = value(E.payments[0]) | |
364 | 368 | let aE = aD.amount | |
365 | 369 | if ((aD.assetId != i)) | |
366 | 370 | then throw("attach PUZZLEUDSNLP tokens only") | |
367 | 371 | else if (m) | |
368 | 372 | then throw("smart contract is on lock") | |
369 | 373 | else { | |
370 | 374 | let aF = valueOrElse(getInteger(this, w), 0) | |
371 | 375 | let aG = { | |
372 | 376 | let N = assetInfo(j) | |
373 | 377 | if ($isInstanceOf(N, "Asset")) | |
374 | 378 | then { | |
375 | 379 | let aH = N | |
376 | 380 | aH.quantity | |
377 | 381 | } | |
378 | 382 | else throw("Can't find asset") | |
379 | 383 | } | |
380 | 384 | let aN = valueOrElse(getInteger(this, v), 0) | |
381 | 385 | let aO = fraction(aG, 100000000, aF) | |
382 | 386 | let aJ = fraction(aE, aO, 100000000) | |
383 | 387 | let aK = IntegerEntry(w, (aF + aE)) | |
384 | 388 | let aL = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aD]) | |
385 | 389 | if ((aL == aL)) | |
386 | 390 | then { | |
387 | 391 | let aM = Reissue(j, aJ, true) | |
388 | 392 | let X = ScriptTransfer(E.caller, aJ, j) | |
389 | 393 | [aM, X, aK] | |
390 | 394 | } | |
391 | 395 | else throw("Strict value is not equal to itself.") | |
392 | 396 | } | |
393 | 397 | } | |
394 | 398 | ||
395 | 399 | ||
396 | 400 | ||
397 | 401 | @Callable(E) | |
398 | 402 | func compoundWxUsdnLP () = { | |
399 | 403 | let aP = value(E.payments[0]) | |
400 | 404 | let aQ = aP.amount | |
401 | 405 | let aR = C(E.caller.bytes) | |
402 | 406 | if ((aP.assetId != c)) | |
403 | 407 | then throw("attach WXUSDNLP tokens only") | |
404 | 408 | else if (!(aR)) | |
405 | 409 | then throw("You are not authotized to call this function") | |
406 | 410 | else { | |
407 | 411 | let aN = valueOrElse(getInteger(this, p), 0) | |
408 | 412 | let aS = valueOrElse(getInteger(this, q), 0) | |
409 | 413 | let aT = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aP]) | |
410 | 414 | if ((aT == aT)) | |
411 | 415 | then { | |
412 | 416 | let aK = IntegerEntry(q, (aS + aQ)) | |
413 | 417 | let aU = IntegerEntry(p, (aN + aQ)) | |
414 | 418 | [aK, aU] | |
415 | 419 | } | |
416 | 420 | else throw("Strict value is not equal to itself.") | |
417 | 421 | } | |
418 | 422 | } | |
419 | 423 | ||
420 | 424 | ||
421 | 425 | ||
422 | 426 | @Callable(E) | |
423 | 427 | func compoundUsdtUsdnLP () = { | |
424 | 428 | let aP = value(E.payments[0]) | |
425 | 429 | let aQ = aP.amount | |
426 | 430 | let aR = C(E.caller.bytes) | |
427 | 431 | if ((aP.assetId != a)) | |
428 | 432 | then throw("attach USDTUSDNLP tokens only") | |
429 | 433 | else if (!(aR)) | |
430 | 434 | then throw("You are not authotized to call this function") | |
431 | 435 | else { | |
432 | 436 | let aN = valueOrElse(getInteger(this, o), 0) | |
433 | 437 | let aS = valueOrElse(getInteger(this, n), 0) | |
434 | 438 | let aT = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aP]) | |
435 | 439 | if ((aT == aT)) | |
436 | 440 | then { | |
437 | 441 | let aK = IntegerEntry(n, (aS + aQ)) | |
438 | 442 | let aU = IntegerEntry(o, (aN + aQ)) | |
439 | 443 | [aK, aU] | |
440 | 444 | } | |
441 | 445 | else throw("Strict value is not equal to itself.") | |
442 | 446 | } | |
443 | 447 | } | |
444 | 448 | ||
445 | 449 | ||
446 | 450 | ||
447 | 451 | @Callable(E) | |
448 | 452 | func compoundUsdcUsdnLP () = { | |
449 | 453 | let aP = value(E.payments[0]) | |
450 | 454 | let aQ = aP.amount | |
451 | 455 | let aR = C(E.caller.bytes) | |
452 | 456 | if ((aP.assetId != e)) | |
453 | 457 | then throw("attach USDCUSDNLP tokens only") | |
454 | 458 | else if (!(aR)) | |
455 | 459 | then throw("You are not authotized to call this function") | |
456 | 460 | else { | |
457 | 461 | let aN = valueOrElse(getInteger(this, r), 0) | |
458 | 462 | let aS = valueOrElse(getInteger(this, s), 0) | |
459 | 463 | let aT = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aP]) | |
460 | 464 | if ((aT == aT)) | |
461 | 465 | then { | |
462 | 466 | let aK = IntegerEntry(s, (aS + aQ)) | |
463 | 467 | let aU = IntegerEntry(r, (aN + aQ)) | |
464 | 468 | [aK, aU] | |
465 | 469 | } | |
466 | 470 | else throw("Strict value is not equal to itself.") | |
467 | 471 | } | |
468 | 472 | } | |
469 | 473 | ||
470 | 474 | ||
471 | 475 | ||
472 | 476 | @Callable(E) | |
473 | 477 | func compoundUsdcUsdtLP () = { | |
474 | 478 | let aP = value(E.payments[0]) | |
475 | 479 | let aQ = aP.amount | |
476 | 480 | let aR = C(E.caller.bytes) | |
477 | 481 | if ((aP.assetId != g)) | |
478 | 482 | then throw("attach USDCUSDTLP tokens only") | |
479 | 483 | else if (!(aR)) | |
480 | 484 | then throw("You are not authotized to call this function") | |
481 | 485 | else { | |
482 | 486 | let aN = valueOrElse(getInteger(this, t), 0) | |
483 | 487 | let aS = valueOrElse(getInteger(this, u), 0) | |
484 | 488 | let aT = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aP]) | |
485 | 489 | if ((aT == aT)) | |
486 | 490 | then { | |
487 | 491 | let aK = IntegerEntry(u, (aS + aQ)) | |
488 | 492 | let aU = IntegerEntry(t, (aN + aQ)) | |
489 | 493 | [aK, aU] | |
490 | 494 | } | |
491 | 495 | else throw("Strict value is not equal to itself.") | |
492 | 496 | } | |
493 | 497 | } | |
494 | 498 | ||
495 | 499 | ||
496 | 500 | ||
497 | 501 | @Callable(E) | |
498 | 502 | func compoundPuzzleUsdnLP () = { | |
499 | 503 | let aP = value(E.payments[0]) | |
500 | 504 | let aQ = aP.amount | |
501 | 505 | let aR = C(E.caller.bytes) | |
502 | 506 | if ((aP.assetId != i)) | |
503 | 507 | then throw("attach PUZZLEUSDNLP tokens only") | |
504 | 508 | else if (!(aR)) | |
505 | 509 | then throw("You are not authotized to call this function") | |
506 | 510 | else { | |
507 | 511 | let aN = valueOrElse(getInteger(this, v), 0) | |
508 | 512 | let aS = valueOrElse(getInteger(this, w), 0) | |
509 | 513 | let aT = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [aP]) | |
510 | 514 | if ((aT == aT)) | |
511 | 515 | then { | |
512 | 516 | let aK = IntegerEntry(w, (aS + aQ)) | |
513 | 517 | let aU = IntegerEntry(v, (aN + aQ)) | |
514 | 518 | [aK, aU] | |
515 | 519 | } | |
516 | 520 | else throw("Strict value is not equal to itself.") | |
517 | 521 | } | |
518 | 522 | } | |
519 | 523 | ||
520 | 524 | ||
521 | 525 | ||
522 | 526 | @Callable(E) | |
523 | 527 | func sponsorBoost () = { | |
524 | 528 | let F = value(E.payments[0]) | |
525 | 529 | let aV = 100 | |
526 | 530 | if ((F.assetId != k)) | |
527 | 531 | then throw("Error") | |
528 | 532 | else { | |
529 | 533 | let aW = valueOrElse(getInteger(this, l), 0) | |
530 | 534 | let aX = invoke(Address(base58'3PJL8Hn8LACaSBWLQ3UVhctA5cTQLBFwBAP'), "increaseLock", [aV], [F]) | |
531 | 535 | if ((aX == aX)) | |
532 | 536 | then { | |
533 | 537 | let H = IntegerEntry(l, (F.amount + aW)) | |
534 | 538 | [H] | |
535 | 539 | } | |
536 | 540 | else throw("Strict value is not equal to itself.") | |
537 | 541 | } | |
538 | 542 | } | |
539 | 543 | ||
540 | 544 | ||
541 | 545 | ||
542 | 546 | @Callable(E) | |
543 | 547 | func initWX () = { | |
544 | 548 | let F = value(E.payments[0]) | |
545 | 549 | let G = F.amount | |
546 | 550 | if ((F.assetId != c)) | |
547 | 551 | then throw("Unexpected token") | |
548 | 552 | else { | |
549 | 553 | let H = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [F]) | |
550 | 554 | if ((H == H)) | |
551 | 555 | then { | |
552 | 556 | let I = IntegerEntry(q, G) | |
553 | 557 | let J = IntegerEntry(p, 0) | |
554 | 558 | [I, J] | |
555 | 559 | } | |
556 | 560 | else throw("Strict value is not equal to itself.") | |
557 | 561 | } | |
558 | 562 | } | |
559 | 563 | ||
560 | 564 | ||
561 | 565 | @Verifier(aY) | |
562 | 566 | func aZ () = sigVerify(aY.bodyBytes, aY.proofs[0], aY.senderPublicKey) | |
563 | 567 |
github/deemru/w8io/026f985 61.92 ms ◑