tx · 6ym3KvXHFsoyTwceZBpqE5CV33ShGUWfsTKjjB97kWwp 3NAxFRdHPdjEy2RNC7Y6EmjuUXRhD2KXC9N: -0.03000000 Waves 2024.10.08 09:24 [3317489] smart account 3NAxFRdHPdjEy2RNC7Y6EmjuUXRhD2KXC9N > SELF 0.00000000 Waves
{ "type": 13, "id": "6ym3KvXHFsoyTwceZBpqE5CV33ShGUWfsTKjjB97kWwp", "fee": 3000000, "feeAssetId": null, "timestamp": 1728368687604, "version": 2, "chainId": 84, "sender": "3NAxFRdHPdjEy2RNC7Y6EmjuUXRhD2KXC9N", "senderPublicKey": "5EqptdqzKakxwHa7hzcyJX1oV9mqbeveEu86Eyw6sM4d", "proofs": [ "vZA87MWdUPQ8vuoH4s3YBHSvfMBs83qbEcfrwgj376zZ8CE9s5wBBB2p42reVvrV2zAqBUWsizfXGkyDhSnQpDs" ], "script": "base64:BgJDCAISBQoDCAgBEgASBgoECAgICBIDCgEIEgMKAQQSABIDCgEBEgASAwoBBBIECgIIARIFCgMEAQgSABIHCgUIAQEICD0ACXN0YXJ0VHNNcwCgy9Cb5jEBF2NhbGN1bGF0ZURheXNTaW5jZVN0YXJ0AAQEZGlmZgkAZQIIBQlsYXN0QmxvY2sJdGltZXN0YW1wBQlzdGFydFRzTXMECmRheXNQYXNzZWQJAGkCBQRkaWZmCQBoAgCAowUA6AcFCmRheXNQYXNzZWQBCmFzSW50VHVwbGUBBXZhbHVlBAckbWF0Y2gwBQV2YWx1ZQMJAAECBQckbWF0Y2gwAgooSW50LCBJbnQpBANpbnQFByRtYXRjaDAFA2ludAkAAgECH1dyb25nIHR5cGUsIGV4cGVjdGVkOiBUdXBsZSBJbnQBFHN0YXRpY0tleV9lZ2dBc3NldElkAAIRc3RhdGljX2VnZ0Fzc2V0SWQBFnN0YXRpY0tleV9zcGljZUFzc2V0SWQAAhNzdGF0aWNfc3BpY2VBc3NldElkARVzdGF0aWNLZXlfcGV0ZUFzc2V0SWQAAhJzdGF0aWNfcGV0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CeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCWZpcnN0VXNlcgABAAAEEHNlY29uZFVzZXJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQpzZWNvbmRVc2VyAAEAAAQPdGhpcmRVc2VyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQl0aGlyZFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCXRoaXJkVXNlcgABAAAED3NpZ25hdHVyZXNDb3VudAkAZAIJAGQCBQ9maXJzdFVzZXJTaWduZWQFEHNlY29uZFVzZXJTaWduZWQFD3RoaXJkVXNlclNpZ25lZAQHJG1hdGNoMAUCdHgJAGcCBQ9zaWduYXR1cmVzQ291bnQAAnHcupc=", "height": 3317489, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A8CQovuayWJ8VXpqqqbPRQeNTA6aPE9W22mdYVpfPd4Y Next: CDW9AG4hkzmprJuGfMETDUSurBFSnWaZ5ZHWTGqpmVDi Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1711065540000 | |
5 | 5 | ||
6 | 6 | func b () = { | |
7 | 7 | let c = (lastBlock.timestamp - a) | |
8 | 8 | let d = (c / (86400 * 1000)) | |
9 | 9 | d | |
10 | 10 | } | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func e (f) = { | |
14 | 14 | let g = f | |
15 | 15 | if ($isInstanceOf(g, "(Int, Int)")) | |
16 | 16 | then { | |
17 | 17 | let h = g | |
18 | 18 | h | |
19 | 19 | } | |
20 | 20 | else throw("Wrong type, expected: Tuple Int") | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func i () = "static_eggAssetId" | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func j () = "static_spiceAssetId" | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func k () = "static_peteAssetId" | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func l () = "static_mutantFarmingAddress" | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func m () = "static_felineStakingAddress" | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func n () = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, "static_oracle"), "oracle not found!")), "could not parse oracle") | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func o () = addressFromStringValue(valueOrErrorMessage(getString(n(), "static_feeAggregator"), "static_feeAggregator not found!")) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func p () = addressFromStringValue(valueOrErrorMessage(getString(n(), "static_nodeAddress"), "node_address not found!")) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func q () = addressFromStringValue(valueOrErrorMessage(getString(n(), l()), (l() + " not found!"))) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func r () = addressFromStringValue(valueOrErrorMessage(getString(n(), m()), (m() + " not found!"))) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func s () = valueOrErrorMessage(getString(n(), j()), (j() + " not found!")) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func t () = valueOrErrorMessage(getString(n(), i()), (i() + " not found!")) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func u () = valueOrErrorMessage(getString(n(), k()), (k() + " not found!")) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func v (w) = { | |
64 | 64 | let g = getInteger(this, w) | |
65 | 65 | if ($isInstanceOf(g, "Int")) | |
66 | 66 | then { | |
67 | 67 | let x = g | |
68 | 68 | x | |
69 | 69 | } | |
70 | 70 | else 0 | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func y (w) = { | |
75 | 75 | let g = getBinary(this, w) | |
76 | 76 | if ($isInstanceOf(g, "ByteVector")) | |
77 | 77 | then { | |
78 | 78 | let x = g | |
79 | 79 | x | |
80 | 80 | } | |
81 | 81 | else base58'' | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func z (w) = { | |
86 | 86 | let g = getString(this, w) | |
87 | 87 | if ($isInstanceOf(g, "String")) | |
88 | 88 | then { | |
89 | 89 | let x = g | |
90 | 90 | x | |
91 | 91 | } | |
92 | 92 | else "" | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func A (B) = { | |
97 | 97 | let g = B | |
98 | 98 | if ($isInstanceOf(g, "ByteVector")) | |
99 | 99 | then { | |
100 | 100 | let x = g | |
101 | 101 | toBase58String(x) | |
102 | 102 | } | |
103 | 103 | else "WAVES" | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func C (D) = if ((D == "WAVES")) | |
108 | 108 | then unit | |
109 | 109 | else fromBase58String(D) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func E (F,G) = (F ++ [C(G)]) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func H (F,G) = (F ++ [v((("static_" + A(G)) + "_weight"))]) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func I (F,G) = (F ++ [v((("static_" + A(G)) + "_decimals"))]) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func J (F,G) = (F ++ [v((("static_" + A(G)) + "_scale"))]) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func K (F,G) = (F ++ [parseIntValue(G)]) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func L (M,B) = ((("reveneu_day_" + B) + "_") + toString(M)) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func N (M,B) = ((("volume_day_" + B) + "_") + toString(M)) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | let O = v("static_tokensAmount") | |
134 | 134 | ||
135 | 135 | let P = { | |
136 | 136 | let Q = split(z("static_tokenIds"), ",") | |
137 | 137 | let R = size(Q) | |
138 | 138 | let S = nil | |
139 | 139 | func T (U,V) = if ((V >= R)) | |
140 | 140 | then U | |
141 | 141 | else E(U, Q[V]) | |
142 | 142 | ||
143 | 143 | func W (U,V) = if ((V >= R)) | |
144 | 144 | then U | |
145 | 145 | else throw("List size exceeds 10") | |
146 | 146 | ||
147 | 147 | W(T(T(T(T(T(T(T(T(T(T(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | let X = { | |
151 | 151 | let Q = P | |
152 | 152 | let R = size(Q) | |
153 | 153 | let S = nil | |
154 | 154 | func Y (U,V) = if ((V >= R)) | |
155 | 155 | then U | |
156 | 156 | else H(U, Q[V]) | |
157 | 157 | ||
158 | 158 | func Z (U,V) = if ((V >= R)) | |
159 | 159 | then U | |
160 | 160 | else throw("List size exceeds 10") | |
161 | 161 | ||
162 | 162 | Z(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | let aa = { | |
166 | 166 | let Q = P | |
167 | 167 | let R = size(Q) | |
168 | 168 | let S = nil | |
169 | 169 | func ab (U,V) = if ((V >= R)) | |
170 | 170 | then U | |
171 | 171 | else I(U, Q[V]) | |
172 | 172 | ||
173 | 173 | func ac (U,V) = if ((V >= R)) | |
174 | 174 | then U | |
175 | 175 | else throw("List size exceeds 10") | |
176 | 176 | ||
177 | 177 | ac(ab(ab(ab(ab(ab(ab(ab(ab(ab(ab(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | let ad = { | |
181 | 181 | let Q = P | |
182 | 182 | let R = size(Q) | |
183 | 183 | let S = nil | |
184 | 184 | func ae (U,V) = if ((V >= R)) | |
185 | 185 | then U | |
186 | 186 | else J(U, Q[V]) | |
187 | 187 | ||
188 | 188 | func af (U,V) = if ((V >= R)) | |
189 | 189 | then U | |
190 | 190 | else throw("List size exceeds 10") | |
191 | 191 | ||
192 | 192 | af(ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | let ag = z("last_stake_id") | |
196 | 196 | ||
197 | 197 | let ah = v("static_fee") | |
198 | 198 | ||
199 | 199 | let ai = 2 | |
200 | 200 | ||
201 | 201 | let aj = 10000 | |
202 | 202 | ||
203 | 203 | let ak = 100000000 | |
204 | 204 | ||
205 | 205 | let al = 10000 | |
206 | 206 | ||
207 | 207 | let am = 8 | |
208 | 208 | ||
209 | 209 | let an = pow(10, 0, am, 0, 0, HALFUP) | |
210 | 210 | ||
211 | 211 | let ao = P | |
212 | 212 | ||
213 | 213 | func ap () = if ((z("static_oracle") != "")) | |
214 | 214 | then { | |
215 | 215 | let g = getBoolean(n(), ("amm_burn_" + toString(this))) | |
216 | 216 | if ($isInstanceOf(g, "Boolean")) | |
217 | 217 | then { | |
218 | 218 | let aq = g | |
219 | 219 | aq | |
220 | 220 | } | |
221 | 221 | else false | |
222 | 222 | } | |
223 | 223 | else false | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func ar () = { | |
227 | 227 | let as = if ((z("static_oracle") != "")) | |
228 | 228 | then { | |
229 | 229 | let g = getBoolean(n(), "amm_shutdown") | |
230 | 230 | if ($isInstanceOf(g, "Boolean")) | |
231 | 231 | then { | |
232 | 232 | let aq = g | |
233 | 233 | aq | |
234 | 234 | } | |
235 | 235 | else false | |
236 | 236 | } | |
237 | 237 | else false | |
238 | 238 | let at = { | |
239 | 239 | let g = getBoolean(this, "is_shutdown") | |
240 | 240 | if ($isInstanceOf(g, "Boolean")) | |
241 | 241 | then { | |
242 | 242 | let aq = g | |
243 | 243 | aq | |
244 | 244 | } | |
245 | 245 | else false | |
246 | 246 | } | |
247 | 247 | if (as) | |
248 | 248 | then true | |
249 | 249 | else at | |
250 | 250 | } | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func au () = if ((z("static_oracle") != "")) | |
254 | 254 | then { | |
255 | 255 | let g = getBoolean(n(), "amm_tx") | |
256 | 256 | if ($isInstanceOf(g, "Boolean")) | |
257 | 257 | then { | |
258 | 258 | let aq = g | |
259 | 259 | aq | |
260 | 260 | } | |
261 | 261 | else true | |
262 | 262 | } | |
263 | 263 | else true | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func av (aw) = { | |
267 | 267 | let ax = A(P[aw]) | |
268 | 268 | v((("global_" + ax) + "_balance")) | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func ay (az,ax) = { | |
273 | 273 | let aA = v("global_poolToken_amount") | |
274 | 274 | let aB = v((("global_" + A(ax)) + "_balance")) | |
275 | 275 | fraction(az, aA, aB, DOWN) | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func aC (aD) = { | |
280 | 280 | func aE (F,aF) = { | |
281 | 281 | let aG = ay(aF.amount, aF.assetId) | |
282 | 282 | if ((aG == 0)) | |
283 | 283 | then throw("one of the tokens amounts is too low") | |
284 | 284 | else if (if ((F == 0)) | |
285 | 285 | then true | |
286 | 286 | else (F > aG)) | |
287 | 287 | then aG | |
288 | 288 | else F | |
289 | 289 | } | |
290 | 290 | ||
291 | 291 | let aH = { | |
292 | 292 | let Q = aD | |
293 | 293 | let R = size(Q) | |
294 | 294 | let S = 0 | |
295 | 295 | func aI (U,V) = if ((V >= R)) | |
296 | 296 | then U | |
297 | 297 | else aE(U, Q[V]) | |
298 | 298 | ||
299 | 299 | func aJ (U,V) = if ((V >= R)) | |
300 | 300 | then U | |
301 | 301 | else throw("List size exceeds 10") | |
302 | 302 | ||
303 | 303 | aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
304 | 304 | } | |
305 | 305 | aH | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | func aK (aD) = { | |
310 | 310 | func aL (F,aM) = (F ++ [aM.assetId]) | |
311 | 311 | ||
312 | 312 | let aN = { | |
313 | 313 | let Q = aD | |
314 | 314 | let R = size(Q) | |
315 | 315 | let S = nil | |
316 | 316 | func aI (U,V) = if ((V >= R)) | |
317 | 317 | then U | |
318 | 318 | else aL(U, Q[V]) | |
319 | 319 | ||
320 | 320 | func aJ (U,V) = if ((V >= R)) | |
321 | 321 | then U | |
322 | 322 | else throw("List size exceeds 10") | |
323 | 323 | ||
324 | 324 | aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
325 | 325 | } | |
326 | 326 | if ((aN == aN)) | |
327 | 327 | then { | |
328 | 328 | func aO (F,B) = if ((indexOf(aN, B) != unit)) | |
329 | 329 | then (F + 1) | |
330 | 330 | else throw(("asset not attached: " + A(B))) | |
331 | 331 | ||
332 | 332 | let aP = { | |
333 | 333 | let Q = P | |
334 | 334 | let R = size(Q) | |
335 | 335 | let S = 0 | |
336 | 336 | func aQ (U,V) = if ((V >= R)) | |
337 | 337 | then U | |
338 | 338 | else aO(U, Q[V]) | |
339 | 339 | ||
340 | 340 | func aR (U,V) = if ((V >= R)) | |
341 | 341 | then U | |
342 | 342 | else throw("List size exceeds 10") | |
343 | 343 | ||
344 | 344 | aR(aQ(aQ(aQ(aQ(aQ(aQ(aQ(aQ(aQ(aQ(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
345 | 345 | } | |
346 | 346 | if ((aP == aP)) | |
347 | 347 | then true | |
348 | 348 | else throw("Strict value is not equal to itself.") | |
349 | 349 | } | |
350 | 350 | else throw("Strict value is not equal to itself.") | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | 354 | func aS (aT,az,B) = if (if ((B == "WAVES")) | |
355 | 355 | then (az > 0) | |
356 | 356 | else false) | |
357 | 357 | then { | |
358 | 358 | let aU = valueOrElse(getInteger(this, "leasing_amount"), 0) | |
359 | 359 | let aV = if (aT) | |
360 | 360 | then (aU + az) | |
361 | 361 | else (aU - az) | |
362 | 362 | let aW = Lease(p(), aV) | |
363 | 363 | let aX = calculateLeaseId(aW) | |
364 | 364 | let aY = [aW, StringEntry("last_stake_id", toBase58String(aX)), IntegerEntry("leasing_amount", aV)] | |
365 | 365 | if ((ag != "")) | |
366 | 366 | then ([LeaseCancel(fromBase58String(ag))] ++ aY) | |
367 | 367 | else aY | |
368 | 368 | } | |
369 | 369 | else nil | |
370 | 370 | ||
371 | 371 | ||
372 | 372 | func aZ (aG,aD,ba,bb) = { | |
373 | 373 | func bc (ax) = { | |
374 | 374 | func aE (F,aM) = if ((aM.assetId == ax)) | |
375 | 375 | then aM.amount | |
376 | 376 | else F | |
377 | 377 | ||
378 | 378 | let Q = aD | |
379 | 379 | let R = size(Q) | |
380 | 380 | let S = 0 | |
381 | 381 | func aI (U,V) = if ((V >= R)) | |
382 | 382 | then U | |
383 | 383 | else aE(U, Q[V]) | |
384 | 384 | ||
385 | 385 | func aJ (U,V) = if ((V >= R)) | |
386 | 386 | then U | |
387 | 387 | else throw("List size exceeds 10") | |
388 | 388 | ||
389 | 389 | aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
390 | 390 | } | |
391 | 391 | ||
392 | 392 | func bd (F,ax) = { | |
393 | 393 | let be = v((("global_" + A(ax)) + "_balance")) | |
394 | 394 | let bf = v("global_poolToken_amount") | |
395 | 395 | let bg = v((("static_" + A(ax)) + "_scale")) | |
396 | 396 | let bh = fraction((fraction((bf + aG), bg, bf, CEILING) - bg), be, bg, CEILING) | |
397 | 397 | let bi = bc(ax) | |
398 | 398 | let bj = min([bh, bi]) | |
399 | 399 | let bk = ((if ((bi != 0)) | |
400 | 400 | then bi | |
401 | 401 | else 0) - bj) | |
402 | 402 | let bl = if (if (bb) | |
403 | 403 | then (bk > 0) | |
404 | 404 | else false) | |
405 | 405 | then [ScriptTransfer(ba, bk, ax)] | |
406 | 406 | else nil | |
407 | 407 | let bm = if ((A(ax) == "WAVES")) | |
408 | 408 | then aS(true, bj, "WAVES") | |
409 | 409 | else nil | |
410 | 410 | (((F ++ bl) ++ bm) ++ [IntegerEntry((("global_" + A(ax)) + "_balance"), (be + bj))]) | |
411 | 411 | } | |
412 | 412 | ||
413 | 413 | let Q = P | |
414 | 414 | let R = size(Q) | |
415 | 415 | let S = nil | |
416 | 416 | func aI (U,V) = if ((V >= R)) | |
417 | 417 | then U | |
418 | 418 | else bd(U, Q[V]) | |
419 | 419 | ||
420 | 420 | func aJ (U,V) = if ((V >= R)) | |
421 | 421 | then U | |
422 | 422 | else throw("List size exceeds 10") | |
423 | 423 | ||
424 | 424 | aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
425 | 425 | } | |
426 | 426 | ||
427 | 427 | ||
428 | 428 | func bn (bo,ba) = { | |
429 | 429 | func bp (F,ax) = { | |
430 | 430 | let be = v((("global_" + A(ax)) + "_balance")) | |
431 | 431 | let bf = v("global_poolToken_amount") | |
432 | 432 | let bg = v((("static_" + A(ax)) + "_scale")) | |
433 | 433 | let az = toInt(fraction((toBigInt(ak) - fraction(toBigInt((bf - bo)), toBigInt(ak), toBigInt(bf), CEILING)), toBigInt(be), toBigInt(ak), DOWN)) | |
434 | 434 | let bm = if ((A(ax) == "WAVES")) | |
435 | 435 | then aS(false, az, "WAVES") | |
436 | 436 | else nil | |
437 | 437 | ((F ++ bm) ++ [IntegerEntry((("global_" + A(ax)) + "_balance"), (be - az)), ScriptTransfer(ba, az, ax)]) | |
438 | 438 | } | |
439 | 439 | ||
440 | 440 | let Q = P | |
441 | 441 | let R = size(Q) | |
442 | 442 | let S = nil | |
443 | 443 | func aI (U,V) = if ((V >= R)) | |
444 | 444 | then U | |
445 | 445 | else bp(U, Q[V]) | |
446 | 446 | ||
447 | 447 | func aJ (U,V) = if ((V >= R)) | |
448 | 448 | then U | |
449 | 449 | else throw("List size exceeds 10") | |
450 | 450 | ||
451 | 451 | aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
452 | 452 | } | |
453 | 453 | ||
454 | 454 | ||
455 | 455 | func bq (br,bs,bt,bu,bv) = { | |
456 | 456 | let bw = value(indexOf(P, bs)) | |
457 | 457 | let bx = value(indexOf(P, bt)) | |
458 | 458 | if ((bw == bx)) | |
459 | 459 | then throw("wrong tokens pair") | |
460 | 460 | else fraction(bv, ((ak * ak) - toInt(pow(fraction(toBigInt(bu), toBigInt((ak * ak)), toBigInt((bu + br)), HALFUP), 16, toBigInt(fraction(X[bw], 10000, X[bx])), 4, 16, CEILING))), (ak * ak), DOWN) | |
461 | 461 | } | |
462 | 462 | ||
463 | 463 | ||
464 | 464 | func by (bz,bA,bB) = { | |
465 | 465 | let bC = (("global_" + bz) + "_balance") | |
466 | 466 | let bD = getIntegerValue(this, bC) | |
467 | 467 | let bE = (("global_" + bA) + "_balance") | |
468 | 468 | let bF = getIntegerValue(this, bE) | |
469 | 469 | let bG = bq(bB, C(bz), C(bA), bD, bF) | |
470 | 470 | let bH = fraction(bG, ah, al) | |
471 | 471 | if ((bH == bH)) | |
472 | 472 | then { | |
473 | 473 | let bI = (bG - bH) | |
474 | 474 | if ((bI == bI)) | |
475 | 475 | then bI | |
476 | 476 | else throw("Strict value is not equal to itself.") | |
477 | 477 | } | |
478 | 478 | else throw("Strict value is not equal to itself.") | |
479 | 479 | } | |
480 | 480 | ||
481 | 481 | ||
482 | 482 | func bJ (B) = { | |
483 | 483 | let g = B | |
484 | 484 | if ($isInstanceOf(g, "ByteVector")) | |
485 | 485 | then { | |
486 | 486 | let bl = g | |
487 | 487 | assetBalance(this, bl) | |
488 | 488 | } | |
489 | 489 | else wavesBalance(this).regular | |
490 | 490 | } | |
491 | 491 | ||
492 | 492 | ||
493 | 493 | func bK (B,D,bL,bM) = { | |
494 | 494 | let bN = v("global_indexStaked") | |
495 | 495 | let bO = bM | |
496 | 496 | let bP = (bJ(B) - bL) | |
497 | 497 | let bQ = if ((bP > bO)) | |
498 | 498 | then bP | |
499 | 499 | else bO | |
500 | 500 | let bR = (bQ - bO) | |
501 | 501 | let bS = if ((bN == 0)) | |
502 | 502 | then 0 | |
503 | 503 | else fraction(bR, ak, bN) | |
504 | 504 | let bT = v((("global_lastCheck_" + D) + "_interest")) | |
505 | 505 | (bT + bS) | |
506 | 506 | } | |
507 | 507 | ||
508 | 508 | ||
509 | 509 | func bU (bV) = { | |
510 | 510 | let bW = toString(bV) | |
511 | 511 | let bX = v((bW + "_indexStaked")) | |
512 | 512 | func aE (F,B) = { | |
513 | 513 | let D = A(B) | |
514 | 514 | let bL = v((("global_" + A(B)) + "_balance")) | |
515 | 515 | let bM = v((("global_lastCheck_" + D) + "_earnings")) | |
516 | 516 | let bY = bK(B, D, bL, bM) | |
517 | 517 | let bQ = max([bM, (bJ(B) - bL)]) | |
518 | 518 | let bZ = fraction(bX, (bY - v((((bW + "_lastCheck_") + D) + "_interest"))), ak) | |
519 | 519 | let ca = if ((bZ == 0)) | |
520 | 520 | then nil | |
521 | 521 | else [ScriptTransfer(bV, bZ, B)] | |
522 | 522 | let cb = v((((bW + "_lastCheck_") + D) + "_claimed")) | |
523 | 523 | ((F ++ ca) ++ [IntegerEntry((("global_lastCheck_" + D) + "_earnings"), (bQ - bZ)), IntegerEntry((("global_lastCheck_" + D) + "_interest"), bY), IntegerEntry((((bW + "_lastCheck_") + D) + "_interest"), bY), IntegerEntry((((bW + "_lastCheck_") + D) + "_claimed"), (cb + bZ))]) | |
524 | 524 | } | |
525 | 525 | ||
526 | 526 | let F = { | |
527 | 527 | let Q = ao | |
528 | 528 | let R = size(Q) | |
529 | 529 | let S = nil | |
530 | 530 | func aI (U,V) = if ((V >= R)) | |
531 | 531 | then U | |
532 | 532 | else aE(U, Q[V]) | |
533 | 533 | ||
534 | 534 | func aJ (U,V) = if ((V >= R)) | |
535 | 535 | then U | |
536 | 536 | else throw("List size exceeds 10") | |
537 | 537 | ||
538 | 538 | aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
539 | 539 | } | |
540 | 540 | (F ++ [IntegerEntry((bW + "_lastClaim"), lastBlock.timestamp)]) | |
541 | 541 | } | |
542 | 542 | ||
543 | 543 | ||
544 | 544 | func cc (bW,az) = { | |
545 | 545 | let cd = bU(addressFromStringValue(bW)) | |
546 | 546 | (cd ++ [IntegerEntry((bW + "_indexStaked"), (v((bW + "_indexStaked")) + az)), IntegerEntry("global_indexStaked", (v("global_indexStaked") + az))]) | |
547 | 547 | } | |
548 | 548 | ||
549 | 549 | ||
550 | 550 | func ce (F,cf) = (F + parseIntValue(cf)) | |
551 | 551 | ||
552 | 552 | ||
553 | 553 | func cg (bV) = [StringEntry("static_oracle", bV)] | |
554 | 554 | ||
555 | 555 | ||
556 | 556 | func ch () = { | |
557 | 557 | let ci = { | |
558 | 558 | let g = getBoolean(this, "TESTENV") | |
559 | 559 | if ($isInstanceOf(g, "Boolean")) | |
560 | 560 | then { | |
561 | 561 | let aq = g | |
562 | 562 | aq | |
563 | 563 | } | |
564 | 564 | else false | |
565 | 565 | } | |
566 | 566 | ci | |
567 | 567 | } | |
568 | 568 | ||
569 | 569 | ||
570 | 570 | @Callable(cj) | |
571 | 571 | func readOnlyFunc (bz,bA,bB) = { | |
572 | 572 | let ck = by(bz, bA, bB) | |
573 | 573 | [IntegerEntry("DEBUG", ck)] | |
574 | 574 | } | |
575 | 575 | ||
576 | 576 | ||
577 | 577 | ||
578 | 578 | @Callable(cj) | |
579 | 579 | func topUpFunds () = if ((size(cj.payments) != 1)) | |
580 | 580 | then throw("Wrong payments attached!") | |
581 | 581 | else { | |
582 | 582 | let aM = cj.payments[0] | |
583 | 583 | let cl = aM.assetId | |
584 | 584 | if ((indexOf(P, cl) == unit)) | |
585 | 585 | then throw("Not supported assetId") | |
586 | 586 | else { | |
587 | 587 | let az = aM.amount | |
588 | 588 | let bL = v((("global_" + A(cl)) + "_balance")) | |
589 | 589 | let M = b() | |
590 | 590 | let cm = v(L(M, A(cl))) | |
591 | 591 | [IntegerEntry((("global_" + A(cl)) + "_balance"), (bL + az)), IntegerEntry("days_since_apy", M), IntegerEntry(L(M, A(cl)), (cm + az))] | |
592 | 592 | } | |
593 | 593 | } | |
594 | 594 | ||
595 | 595 | ||
596 | 596 | ||
597 | 597 | @Callable(cj) | |
598 | 598 | func preInit (cn,co,cp,cq) = if ((this != cj.caller)) | |
599 | 599 | then throw("admin only") | |
600 | 600 | else if ((size(cq) > 13)) | |
601 | 601 | then throw("too large pool domain") | |
602 | 602 | else { | |
603 | 603 | let cr = split(cn, ",") | |
604 | 604 | let cs = { | |
605 | 605 | let Q = cr | |
606 | 606 | let R = size(Q) | |
607 | 607 | let S = nil | |
608 | 608 | func aI (U,V) = if ((V >= R)) | |
609 | 609 | then U | |
610 | 610 | else E(U, Q[V]) | |
611 | 611 | ||
612 | 612 | func aJ (U,V) = if ((V >= R)) | |
613 | 613 | then U | |
614 | 614 | else throw("List size exceeds 10") | |
615 | 615 | ||
616 | 616 | aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
617 | 617 | } | |
618 | 618 | let ct = split(co, ",") | |
619 | 619 | let cu = { | |
620 | 620 | let Q = ct | |
621 | 621 | let R = size(Q) | |
622 | 622 | let S = 0 | |
623 | 623 | func aQ (U,V) = if ((V >= R)) | |
624 | 624 | then U | |
625 | 625 | else ce(U, Q[V]) | |
626 | 626 | ||
627 | 627 | func aR (U,V) = if ((V >= R)) | |
628 | 628 | then U | |
629 | 629 | else throw("List size exceeds 10") | |
630 | 630 | ||
631 | 631 | aR(aQ(aQ(aQ(aQ(aQ(aQ(aQ(aQ(aQ(aQ(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
632 | 632 | } | |
633 | 633 | func cv (F,cw) = if ((cw >= size(cs))) | |
634 | 634 | then F | |
635 | 635 | else { | |
636 | 636 | let cx = { | |
637 | 637 | let g = cs[cw] | |
638 | 638 | if ($isInstanceOf(g, "ByteVector")) | |
639 | 639 | then { | |
640 | 640 | let aq = g | |
641 | 641 | value(assetInfo(cs[cw])).decimals | |
642 | 642 | } | |
643 | 643 | else 8 | |
644 | 644 | } | |
645 | 645 | (F ++ [IntegerEntry((("static_" + cr[cw]) + "_scale"), pow(10, 0, cx, 0, 0, DOWN)), IntegerEntry((("static_" + cr[cw]) + "_decimals"), cx), IntegerEntry((("static_" + cr[cw]) + "_weight"), value(parseInt(ct[cw])))]) | |
646 | 646 | } | |
647 | 647 | ||
648 | 648 | if ((cu != 100)) | |
649 | 649 | then throw("sum of token weights must be equal to 100") | |
650 | 650 | else ({ | |
651 | 651 | let Q = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
652 | 652 | let R = size(Q) | |
653 | 653 | let S = nil | |
654 | 654 | func cy (U,V) = if ((V >= R)) | |
655 | 655 | then U | |
656 | 656 | else cv(U, Q[V]) | |
657 | 657 | ||
658 | 658 | func cz (U,V) = if ((V >= R)) | |
659 | 659 | then U | |
660 | 660 | else throw("List size exceeds 10") | |
661 | 661 | ||
662 | 662 | cz(cy(cy(cy(cy(cy(cy(cy(cy(cy(cy(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
663 | 663 | } ++ [StringEntry("static_tokenIds", cn), StringEntry("static_tokenWeights", co), IntegerEntry("static_tokensAmount", size(cs)), StringEntry("static_poolDomain", cq), StringEntry("static_baseTokenId", cp), IntegerEntry("static_fee", 100)]) | |
664 | 664 | } | |
665 | 665 | ||
666 | 666 | ||
667 | 667 | ||
668 | 668 | @Callable(cj) | |
669 | 669 | func init (cA) = { | |
670 | 670 | func cB () = { | |
671 | 671 | func aE (F,cf) = (F ++ [IntegerEntry((("global_" + A(cf.assetId)) + "_balance"), cf.amount)]) | |
672 | 672 | ||
673 | 673 | let Q = cj.payments | |
674 | 674 | let R = size(Q) | |
675 | 675 | let S = nil | |
676 | 676 | func aI (U,V) = if ((V >= R)) | |
677 | 677 | then U | |
678 | 678 | else aE(U, Q[V]) | |
679 | 679 | ||
680 | 680 | func aJ (U,V) = if ((V >= R)) | |
681 | 681 | then U | |
682 | 682 | else throw("List size exceeds 10") | |
683 | 683 | ||
684 | 684 | aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
685 | 685 | } | |
686 | 686 | ||
687 | 687 | func cC (aD) = { | |
688 | 688 | func aE (F,cD) = { | |
689 | 689 | let B = cD.assetId | |
690 | 690 | func aO (F,cf) = if ((cf == B)) | |
691 | 691 | then value(indexOf(P, cf)) | |
692 | 692 | else F | |
693 | 693 | ||
694 | 694 | let cE = { | |
695 | 695 | let Q = P | |
696 | 696 | let R = size(Q) | |
697 | 697 | let S = 1 | |
698 | 698 | func aI (U,V) = if ((V >= R)) | |
699 | 699 | then U | |
700 | 700 | else aO(U, Q[V]) | |
701 | 701 | ||
702 | 702 | func aJ (U,V) = if ((V >= R)) | |
703 | 703 | then U | |
704 | 704 | else throw("List size exceeds 10") | |
705 | 705 | ||
706 | 706 | aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
707 | 707 | } | |
708 | 708 | fraction(F, pow(cD.amount, aa[cE], X[cE], ai, 8, FLOOR), ak) | |
709 | 709 | } | |
710 | 710 | ||
711 | 711 | let Q = aD | |
712 | 712 | let R = size(Q) | |
713 | 713 | let S = an | |
714 | 714 | func aI (U,V) = if ((V >= R)) | |
715 | 715 | then U | |
716 | 716 | else aE(U, Q[V]) | |
717 | 717 | ||
718 | 718 | func aJ (U,V) = if ((V >= R)) | |
719 | 719 | then U | |
720 | 720 | else throw("List size exceeds 10") | |
721 | 721 | ||
722 | 722 | aJ(aI(aI(aI(aI(aI(aI(aI(aI(aI(aI(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
723 | 723 | } | |
724 | 724 | ||
725 | 725 | if ((v("global_wasInited") > 0)) | |
726 | 726 | then throw("pool already inited") | |
727 | 727 | else { | |
728 | 728 | let cF = cC(cj.payments) | |
729 | 729 | if ((cF == 0)) | |
730 | 730 | then throw("you need a bigger tokens amount to launch the pool") | |
731 | 731 | else { | |
732 | 732 | let cG = Issue(("WD " + z("static_poolDomain")), "WD pool token", cF, am, true, unit, 0) | |
733 | 733 | let cH = calculateAssetId(cG) | |
734 | 734 | ((cB() ++ [cG, IntegerEntry("global_poolToken_amount", cF), IntegerEntry("global_wasInited", 1), BinaryEntry("global_poolToken_id", cH), StringEntry("static_poolToken_idStr", A(cH)), ScriptTransfer(cj.caller, cF, cH)]) ++ cg(cA)) | |
735 | 735 | } | |
736 | 736 | } | |
737 | 737 | } | |
738 | 738 | ||
739 | 739 | ||
740 | 740 | ||
741 | 741 | @Callable(cj) | |
742 | 742 | func generateIndex (bb) = if ((size(cj.payments) != O)) | |
743 | 743 | then throw(("you need to attach all pool tokens. amount of pool tokens: " + toString(O))) | |
744 | 744 | else if (!(aK(cj.payments))) | |
745 | 745 | then throw("wrong assets attached") | |
746 | 746 | else { | |
747 | 747 | let aG = aC(cj.payments) | |
748 | 748 | let cI = Reissue(getBinaryValue("global_poolToken_id"), aG, true) | |
749 | 749 | let cJ = aZ(aG, cj.payments, cj.originCaller, bb) | |
750 | 750 | $Tuple2((cJ ++ [cI, ScriptTransfer(cj.caller, aG, y("global_poolToken_id")), IntegerEntry("global_poolToken_amount", (v("global_poolToken_amount") + aG))]), aG) | |
751 | 751 | } | |
752 | 752 | ||
753 | 753 | ||
754 | 754 | ||
755 | 755 | @Callable(cj) | |
756 | 756 | func stakeIndex () = { | |
757 | 757 | let bW = toString(cj.originCaller) | |
758 | 758 | let cD = cj.payments[0] | |
759 | 759 | if ((value(cD.assetId) != y("global_poolToken_id"))) | |
760 | 760 | then throw("wrong asset attached") | |
761 | 761 | else cc(bW, cD.amount) | |
762 | 762 | } | |
763 | 763 | ||
764 | 764 | ||
765 | 765 | ||
766 | 766 | @Callable(cj) | |
767 | 767 | func unstakeIndex (bX) = { | |
768 | 768 | let bW = toString(cj.originCaller) | |
769 | 769 | let cK = v((bW + "_indexStaked")) | |
770 | 770 | if ((bX > cK)) | |
771 | 771 | then throw("you don't have index tokens available") | |
772 | 772 | else (bU(cj.originCaller) ++ [IntegerEntry((bW + "_indexStaked"), (cK - bX)), IntegerEntry("global_indexStaked", (v("global_indexStaked") - bX)), ScriptTransfer(cj.caller, bX, getBinaryValue("global_poolToken_id"))]) | |
773 | 773 | } | |
774 | 774 | ||
775 | 775 | ||
776 | 776 | ||
777 | 777 | @Callable(cj) | |
778 | 778 | func claimIndexRewards () = bU(cj.caller) | |
779 | 779 | ||
780 | 780 | ||
781 | 781 | ||
782 | 782 | @Callable(cj) | |
783 | 783 | func redeemIndex (cL) = { | |
784 | 784 | let cD = cj.payments[0] | |
785 | 785 | if ((cD.assetId != y("global_poolToken_id"))) | |
786 | 786 | then throw("please attach pool share token") | |
787 | 787 | else { | |
788 | 788 | let bo = cD.amount | |
789 | 789 | let cJ = bn(bo, if (cL) | |
790 | 790 | then cj.originCaller | |
791 | 791 | else cj.caller) | |
792 | 792 | (cJ ++ [Burn(y("global_poolToken_id"), bo), IntegerEntry("global_poolToken_amount", (v("global_poolToken_amount") - bo))]) | |
793 | 793 | } | |
794 | 794 | } | |
795 | 795 | ||
796 | 796 | ||
797 | 797 | ||
798 | 798 | @Callable(cj) | |
799 | 799 | func swap (bt,cM) = if (ar()) | |
800 | 800 | then throw("Pool is currently shutdown") | |
801 | 801 | else { | |
802 | 802 | let cD = value(cj.payments[0]) | |
803 | 803 | let br = value(cj.payments[0].amount) | |
804 | 804 | let cN = cD.assetId | |
805 | 805 | let cO = e(reentrantInvoke(this, "swapInternal", [bt, cM, br, A(cN), toString(cj.caller)], nil)) | |
806 | 806 | if ((cO == cO)) | |
807 | 807 | then { | |
808 | 808 | let bI = cO._1 | |
809 | 809 | if ((bI == bI)) | |
810 | 810 | then { | |
811 | 811 | let bH = cO._2 | |
812 | 812 | if ((bH == bH)) | |
813 | 813 | then { | |
814 | 814 | let cP = if (if (ap()) | |
815 | 815 | then (bt != "WAVES") | |
816 | 816 | else false) | |
817 | 817 | then [Burn(value(C(bt)), fraction(bH, 2, 4)), IntegerEntry((("global_" + bt) + "_burned"), (v((("global_" + bt) + "_burned")) + fraction(bH, 2, 4)))] | |
818 | 818 | else if ((bt == u())) | |
819 | 819 | then { | |
820 | 820 | let cQ = invoke(r(), "topUpReward", nil, [AttachedPayment(fromBase58String(u()), fraction(bH, 1, 4))]) | |
821 | 821 | if ((cQ == cQ)) | |
822 | 822 | then [ScriptTransfer(o(), fraction(bH, 1, 4), C(bt))] | |
823 | 823 | else throw("Strict value is not equal to itself.") | |
824 | 824 | } | |
825 | 825 | else [ScriptTransfer(o(), fraction(bH, 2, 4), C(bt))] | |
826 | 826 | if ((cP == cP)) | |
827 | 827 | then $Tuple2(cP, bI) | |
828 | 828 | else throw("Strict value is not equal to itself.") | |
829 | 829 | } | |
830 | 830 | else throw("Strict value is not equal to itself.") | |
831 | 831 | } | |
832 | 832 | else throw("Strict value is not equal to itself.") | |
833 | 833 | } | |
834 | 834 | else throw("Strict value is not equal to itself.") | |
835 | 835 | } | |
836 | 836 | ||
837 | 837 | ||
838 | 838 | ||
839 | 839 | @Callable(cj) | |
840 | 840 | func internal (aT,az,B) = if ((cj.caller != this)) | |
841 | 841 | then throw("Not allowed") | |
842 | 842 | else aS(aT, az, B) | |
843 | 843 | ||
844 | 844 | ||
845 | 845 | ||
846 | 846 | @Callable(cj) | |
847 | 847 | func stakeAll () = aS(true, (v("global_WAVES_balance") - v("leasing_amount")), "WAVES") | |
848 | 848 | ||
849 | 849 | ||
850 | 850 | ||
851 | 851 | @Callable(cj) | |
852 | 852 | func swapInternal (bt,cM,br,cN,cR) = if ((cj.caller != this)) | |
853 | 853 | then throw("You cant call this directly") | |
854 | 854 | else { | |
855 | 855 | let cS = C(bt) | |
856 | 856 | let M = b() | |
857 | 857 | let cm = v(L(M, bt)) | |
858 | 858 | let cT = v((("global_" + cN) + "_balance")) | |
859 | 859 | if ((cT == cT)) | |
860 | 860 | then { | |
861 | 861 | let cU = v((("global_" + bt) + "_balance")) | |
862 | 862 | if ((cU == cU)) | |
863 | 863 | then { | |
864 | 864 | let cV = bq(br, C(cN), cS, cT, cU) | |
865 | 865 | if ((cV == cV)) | |
866 | 866 | then { | |
867 | 867 | let bH = fraction(cV, ah, al) | |
868 | 868 | if ((bH == bH)) | |
869 | 869 | then { | |
870 | 870 | let bI = (cV - bH) | |
871 | 871 | if ((bI == bI)) | |
872 | 872 | then if ((cM > bI)) | |
873 | 873 | then throw(("amount to recieve is lower than given one: " + toString(bI))) | |
874 | 874 | else if ((0 > (cU - cV))) | |
875 | 875 | then throw("contract is out of reserves") | |
876 | 876 | else if ((cS == C(cN))) | |
877 | 877 | then throw("this swap is not allowed") | |
878 | 878 | else { | |
879 | 879 | let cW = N(M, cN) | |
880 | 880 | let cX = v(cW) | |
881 | 881 | let cY = (cT + br) | |
882 | 882 | if ((cY == cY)) | |
883 | 883 | then { | |
884 | 884 | let aT = reentrantInvoke(this, "internal", [true, br, cN], nil) | |
885 | 885 | if ((aT == aT)) | |
886 | 886 | then { | |
887 | 887 | let cZ = (cU - cV) | |
888 | 888 | if ((cZ == cZ)) | |
889 | 889 | then { | |
890 | 890 | let da = reentrantInvoke(this, "internal", [false, (bI + fraction(bH, 3, 4)), bt], nil) | |
891 | 891 | if ((da == da)) | |
892 | 892 | then $Tuple2([IntegerEntry((("global_" + bt) + "_balance"), (cZ + fraction(bH, 1, 4))), ScriptTransfer(addressFromStringValue(cR), bI, cS), IntegerEntry((("global_" + cN) + "_balance"), cY), IntegerEntry("days_since_apy", M), IntegerEntry(L(M, bt), (cm + bH)), IntegerEntry(cW, (cX + br))], $Tuple2(bI, bH)) | |
893 | 893 | else throw("Strict value is not equal to itself.") | |
894 | 894 | } | |
895 | 895 | else throw("Strict value is not equal to itself.") | |
896 | 896 | } | |
897 | 897 | else throw("Strict value is not equal to itself.") | |
898 | 898 | } | |
899 | 899 | else throw("Strict value is not equal to itself.") | |
900 | 900 | } | |
901 | 901 | else throw("Strict value is not equal to itself.") | |
902 | 902 | } | |
903 | 903 | else throw("Strict value is not equal to itself.") | |
904 | 904 | } | |
905 | 905 | else throw("Strict value is not equal to itself.") | |
906 | 906 | } | |
907 | 907 | else throw("Strict value is not equal to itself.") | |
908 | 908 | } | |
909 | 909 | else throw("Strict value is not equal to itself.") | |
910 | 910 | } | |
911 | 911 | ||
912 | 912 | ||
913 | 913 | @Verifier(db) | |
914 | 914 | func dc () = if (ch()) | |
915 | 915 | then sigVerify(db.bodyBytes, db.proofs[0], db.senderPublicKey) | |
916 | 916 | else { | |
917 | 917 | let dd = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
918 | 918 | let de = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
919 | 919 | let df = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
920 | 920 | let dg = if (sigVerify(db.bodyBytes, db.proofs[0], dd)) | |
921 | 921 | then 1 | |
922 | 922 | else if (sigVerify(db.bodyBytes, db.proofs[1], dd)) | |
923 | 923 | then 1 | |
924 | 924 | else if (sigVerify(db.bodyBytes, db.proofs[2], dd)) | |
925 | 925 | then 1 | |
926 | 926 | else 0 | |
927 | 927 | let dh = if (sigVerify(db.bodyBytes, db.proofs[0], de)) | |
928 | 928 | then 1 | |
929 | 929 | else if (sigVerify(db.bodyBytes, db.proofs[1], de)) | |
930 | 930 | then 1 | |
931 | 931 | else if (sigVerify(db.bodyBytes, db.proofs[2], de)) | |
932 | 932 | then 1 | |
933 | 933 | else 0 | |
934 | 934 | let di = if (sigVerify(db.bodyBytes, db.proofs[0], df)) | |
935 | 935 | then 1 | |
936 | 936 | else if (sigVerify(db.bodyBytes, db.proofs[1], df)) | |
937 | 937 | then 1 | |
938 | 938 | else if (sigVerify(db.bodyBytes, db.proofs[2], df)) | |
939 | 939 | then 1 | |
940 | 940 | else 0 | |
941 | 941 | let dj = ((dg + dh) + di) | |
942 | 942 | let g = db | |
943 | 943 | (dj >= 2) | |
944 | 944 | } | |
945 | 945 |
github/deemru/w8io/026f985 67.21 ms ◑