tx · DZYiVb1nMQ2pJKqCDRp2LPatLbdkTKBQfZLMcZxya4wv 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA: -0.02500000 Waves 2023.07.05 16:15 [2652661] smart account 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA > SELF 0.00000000 Waves
{ "type": 13, "id": "DZYiVb1nMQ2pJKqCDRp2LPatLbdkTKBQfZLMcZxya4wv", "fee": 2500000, "feeAssetId": null, "timestamp": 1688562969265, "version": 1, "sender": "3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA", "senderPublicKey": "8nr9XxGKmrRg6E6Zss6YPynBYEFbCf39Z2D9WvVuUgzY", "proofs": [ "5yVBiAFtspnkgXoqo46Fwf49zZ45E8xM2joHFJTJA1umEnDddDA28a4oyYxojP3qdnJXvhK9Yy7u6DjYhb2LfskA" ], "script": "base64:BwIqCAISAwoBAhIGCgQCAQEBEgMKAQISAwoBAhIECgICAhIECgICAhIDCgECKgADU0VQAgJfXwANQ09OVFJBQ1RfTkFNRQIPY2FsY3VsYXRvci5yaWRlAAZTQ0FMRTgAgMLXLwAHUEVORElORwIHUEVORElORwAIRklOSVNIRUQCCEZJTklTSEVEAAVXQVZFUwIFV0FWRVMBB3dyYXBFcnIBAXMJAKwCAgkArAICBQ1DT05UUkFDVF9OQU1FAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD2Fzc2V0SWRUb1N0cmluZwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAFiBQckbWF0Y2gwCQDYBAEFAWIDCQABAgUHJG1hdGNoMAIEVW5pdAUFV0FWRVMJAAIBAgtNYXRjaCBlcnJvcgEDYWJzAQFuAwkAZgIAAAUBbgkBAS0BBQFuBQFuARFrZXlGYWN0b3J5QWRkcmVzcwAJALkJAgkAzAgCAgIlcwkAzAgCAgdmYWN0b3J5BQNuaWwFA1NFUAETa2V5T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:
Old | New | Differences | |
---|---|---|---|
330 | 330 | let bf = (aE + 1) | |
331 | 331 | let bg = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
332 | 332 | let bh = fraction(be, c, bg) | |
333 | - | let bi = valueOrElse(getInteger(U, I()), 0) | |
334 | - | let bj = max([0, fraction(bi, bh, c)]) | |
335 | - | let bk = if ((size(ah.payments) > 0)) | |
336 | - | then ah.payments[0] | |
337 | - | else unit | |
338 | - | let bl = value(bk).amount | |
339 | - | let bm = value(bk).assetId | |
340 | - | let bn = if (if ((bj == 0)) | |
333 | + | let bi = if ((bh != 0)) | |
341 | 334 | then true | |
342 | - | else if (if ((bk != unit)) | |
343 | - | then (bm == unit) | |
344 | - | else false) | |
345 | - | then (bl >= bj) | |
346 | - | else false) | |
347 | - | then true | |
348 | - | else i(("invalid payments, payment amount min: " + toString(bj))) | |
349 | - | if ((bn == bn)) | |
335 | + | else i("LP price cannot be 0") | |
336 | + | if ((bi == bi)) | |
350 | 337 | then { | |
351 | - | let bo = if ((bh != 0)) | |
338 | + | let bj = valueOrElse(getInteger(U, I()), 0) | |
339 | + | let bk = max([0, fraction(bj, bh, c)]) | |
340 | + | let bl = if ((size(ah.payments) > 0)) | |
341 | + | then ah.payments[0] | |
342 | + | else unit | |
343 | + | let bm = value(bl).amount | |
344 | + | let bn = value(bl).assetId | |
345 | + | let bo = if (if ((bk == 0)) | |
352 | 346 | then true | |
353 | - | else i("LP price cannot be 0") | |
347 | + | else if (if ((bl != unit)) | |
348 | + | then (bn == unit) | |
349 | + | else false) | |
350 | + | then (bm >= bk) | |
351 | + | else false) | |
352 | + | then true | |
353 | + | else i(("invalid payments, payment amount min: " + toString(bk))) | |
354 | 354 | if ((bo == bo)) | |
355 | 355 | then { | |
356 | - | let bp = if (( | |
357 | - | then [ScriptTransfer(U, | |
356 | + | let bp = if ((bl != unit)) | |
357 | + | then [ScriptTransfer(U, bm, bn)] | |
358 | 358 | else nil | |
359 | - | let aA = [invoke(U, "integerEntry", [z(), bf], nil), invoke(U, "integerEntry", [A(bf), bh], nil), invoke(U, "integerEntry", [C(bf), (aJ + 1)], nil), invoke(U, "burn", [ | |
359 | + | let aA = [invoke(U, "integerEntry", [z(), bf], nil), invoke(U, "integerEntry", [A(bf), bh], nil), invoke(U, "integerEntry", [C(bf), (aJ + 1)], nil), invoke(U, "burn", [bj], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), (be - bk)], nil), invoke(U, "integerEntry", [v(unit), bd], nil)] | |
360 | 360 | $Tuple2(bp, aA) | |
361 | 361 | } | |
362 | 362 | else throw("Strict value is not equal to itself.") | |
386 | 386 | else false) | |
387 | 387 | then $Tuple2(bq.amount, bq.assetId) | |
388 | 388 | else i("invalid payment amount") | |
389 | - | let | |
390 | - | let | |
389 | + | let bm = br._1 | |
390 | + | let bn = br._2 | |
391 | 391 | let N = if ((aH > 0)) | |
392 | - | then fraction( | |
392 | + | then fraction(bm, c, aH) | |
393 | 393 | else 0 | |
394 | 394 | let bs = valueOrElse(getInteger(U, u(unit)), 0) | |
395 | - | let bp = [ScriptTransfer(ac, | |
396 | - | let aA = [invoke(U, "integerEntry", [u(unit), (bs + | |
395 | + | let bp = [ScriptTransfer(ac, bm, bn)] | |
396 | + | let aA = [invoke(U, "integerEntry", [u(unit), (bs + bm)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
397 | 397 | $Tuple2(bp, aA) | |
398 | 398 | } | |
399 | 399 | else throw("Strict value is not equal to itself.") | |
411 | 411 | let bq = if ((size(ah.payments) == 1)) | |
412 | 412 | then ah.payments[0] | |
413 | 413 | else i(g("invalid payments")) | |
414 | - | let | |
414 | + | let bn = if ((bq.assetId == Y)) | |
415 | 415 | then Y | |
416 | 416 | else i("invalid payment asset") | |
417 | - | let | |
417 | + | let bm = if ((bq.amount > 0)) | |
418 | 418 | then bq.amount | |
419 | 419 | else i("invalid payment amount") | |
420 | 420 | let bt = valueOrElse(getInteger(U, I()), 0) | |
421 | - | let bp = [ScriptTransfer(U, | |
422 | - | let aA = [invoke(U, "integerEntry", [I(), (bt + | |
421 | + | let bp = [ScriptTransfer(U, bm, bn)] | |
422 | + | let aA = [invoke(U, "integerEntry", [I(), (bt + bm)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bm, (aE + 1), unit)], nil)] | |
423 | 423 | if ((aA == aA)) | |
424 | 424 | then $Tuple2(bp, aA) | |
425 | 425 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "calculator.ride" | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = "PENDING" | |
11 | 11 | ||
12 | 12 | let e = "FINISHED" | |
13 | 13 | ||
14 | 14 | let f = "WAVES" | |
15 | 15 | ||
16 | 16 | func g (h) = ((b + ": ") + h) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (h) = throw(g(h)) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j (k) = { | |
23 | 23 | let l = k | |
24 | 24 | if ($isInstanceOf(l, "ByteVector")) | |
25 | 25 | then { | |
26 | 26 | let m = l | |
27 | 27 | toBase58String(m) | |
28 | 28 | } | |
29 | 29 | else if ($isInstanceOf(l, "Unit")) | |
30 | 30 | then f | |
31 | 31 | else throw("Match error") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func n (o) = if ((0 > o)) | |
36 | 36 | then -(o) | |
37 | 37 | else o | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func p () = makeString(["%s", "factory"], a) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func q () = makeString(["%s", "managerPublicKey"], a) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func r () = makeString(["%s", "lpAssetId"], a) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func s () = makeString(["%s", "proxyTreasury"], a) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func t () = makeString(["%s", "mainTreasury"], a) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func u (k) = makeString(["%s%s", "invested", j(k)], a) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func v (k) = makeString(["%s%s", "donated", j(k)], a) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func w (x) = makeString(["%s%s", "available", toString(x)], a) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func y (x) = makeString(["%s%s", "claimed", toString(x)], a) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func z () = makeString(["%s", "currentPeriod"], a) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func A (B) = makeString(["%s%d", "price", toString(B)], a) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func C (B) = makeString(["%s%d", "startHeight", toString(B)], a) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func D () = "%s__periodLength" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func E () = "%s__blockProcessingReward" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func F () = "%s__nextBlockToProcess" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func G (H) = makeString(["%s%d", "blockProcessed", toString(H)], a) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func I () = "%s__withdrawal" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func J (x,K) = makeString(["%s%s%s", "withdrawal", toString(x), toBase58String(K)], a) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func L (M,N,O,P) = { | |
95 | 95 | let Q = { | |
96 | 96 | let l = P | |
97 | 97 | if ($isInstanceOf(l, "ByteVector")) | |
98 | 98 | then { | |
99 | 99 | let m = l | |
100 | 100 | toBase58String(m) | |
101 | 101 | } | |
102 | 102 | else if ($isInstanceOf(l, "Unit")) | |
103 | 103 | then "SOON" | |
104 | 104 | else throw("Match error") | |
105 | 105 | } | |
106 | 106 | makeString(["%s%d%d%s", M, toString(N), toString(O), Q], a) | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func R (h) = { | |
111 | 111 | let S = split(h, a) | |
112 | 112 | if ((size(S) == 5)) | |
113 | 113 | then { | |
114 | 114 | let M = S[1] | |
115 | 115 | let N = valueOrErrorMessage(parseInt(S[2]), g("invalid lpAssetAmount")) | |
116 | 116 | let O = valueOrErrorMessage(parseInt(S[3]), g("invalid targetPeriod")) | |
117 | 117 | let P = S[4] | |
118 | 118 | $Tuple4(M, N, O, P) | |
119 | 119 | } | |
120 | 120 | else i("invalid withdrawal request value") | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | let T = { | |
125 | 125 | let l = getString(this, p()) | |
126 | 126 | if ($isInstanceOf(l, "String")) | |
127 | 127 | then { | |
128 | 128 | let h = l | |
129 | 129 | addressFromString(h) | |
130 | 130 | } | |
131 | 131 | else if ($isInstanceOf(l, "Unit")) | |
132 | 132 | then unit | |
133 | 133 | else throw("Match error") | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | let U = valueOrErrorMessage(T, g("invalid factory address")) | |
137 | 137 | ||
138 | 138 | let V = { | |
139 | 139 | let l = T | |
140 | 140 | if ($isInstanceOf(l, "Address")) | |
141 | 141 | then { | |
142 | 142 | let W = l | |
143 | 143 | let X = getString(W, r()) | |
144 | 144 | if ($isInstanceOf(X, "String")) | |
145 | 145 | then { | |
146 | 146 | let h = X | |
147 | 147 | fromBase58String(h) | |
148 | 148 | } | |
149 | 149 | else if ($isInstanceOf(X, "Unit")) | |
150 | 150 | then unit | |
151 | 151 | else throw("Match error") | |
152 | 152 | } | |
153 | 153 | else if ($isInstanceOf(l, "Unit")) | |
154 | 154 | then unit | |
155 | 155 | else throw("Match error") | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | let Y = valueOrErrorMessage(V, g("invalid lpAssetId")) | |
159 | 159 | ||
160 | 160 | let Z = { | |
161 | 161 | let l = T | |
162 | 162 | if ($isInstanceOf(l, "Address")) | |
163 | 163 | then { | |
164 | 164 | let W = l | |
165 | 165 | let X = getString(W, s()) | |
166 | 166 | if ($isInstanceOf(X, "String")) | |
167 | 167 | then { | |
168 | 168 | let h = X | |
169 | 169 | addressFromString(h) | |
170 | 170 | } | |
171 | 171 | else if ($isInstanceOf(X, "Unit")) | |
172 | 172 | then unit | |
173 | 173 | else throw("Match error") | |
174 | 174 | } | |
175 | 175 | else if ($isInstanceOf(l, "Unit")) | |
176 | 176 | then unit | |
177 | 177 | else throw("Match error") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | let aa = valueOrErrorMessage(Z, g("invalid proxy treasury address")) | |
181 | 181 | ||
182 | 182 | let ab = { | |
183 | 183 | let l = T | |
184 | 184 | if ($isInstanceOf(l, "Address")) | |
185 | 185 | then { | |
186 | 186 | let W = l | |
187 | 187 | let X = getString(W, t()) | |
188 | 188 | if ($isInstanceOf(X, "String")) | |
189 | 189 | then { | |
190 | 190 | let h = X | |
191 | 191 | addressFromString(h) | |
192 | 192 | } | |
193 | 193 | else if ($isInstanceOf(X, "Unit")) | |
194 | 194 | then unit | |
195 | 195 | else throw("Match error") | |
196 | 196 | } | |
197 | 197 | else if ($isInstanceOf(l, "Unit")) | |
198 | 198 | then unit | |
199 | 199 | else throw("Match error") | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | let ac = valueOrErrorMessage(ab, g("invalid main treasury address")) | |
203 | 203 | ||
204 | 204 | func ad () = { | |
205 | 205 | let l = T | |
206 | 206 | if ($isInstanceOf(l, "Address")) | |
207 | 207 | then { | |
208 | 208 | let ae = l | |
209 | 209 | let X = getString(ae, q()) | |
210 | 210 | if ($isInstanceOf(X, "String")) | |
211 | 211 | then { | |
212 | 212 | let af = X | |
213 | 213 | fromBase58String(af) | |
214 | 214 | } | |
215 | 215 | else unit | |
216 | 216 | } | |
217 | 217 | else unit | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func ag (ah,ai) = if ((ah.caller == ai)) | |
222 | 222 | then true | |
223 | 223 | else i("permission denied") | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func aj (ah) = ag(ah, U) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func ak (al,am) = { | |
230 | 230 | let h = size(al) | |
231 | 231 | let an = al[0] | |
232 | 232 | let ao = an._1 | |
233 | 233 | let ap = an._2 | |
234 | 234 | let aq = al[1] | |
235 | 235 | let ar = aq._1 | |
236 | 236 | let as = aq._2 | |
237 | 237 | let at = al[2] | |
238 | 238 | let au = at._1 | |
239 | 239 | let av = at._2 | |
240 | 240 | if (if ((h > 0)) | |
241 | 241 | then (ao == am) | |
242 | 242 | else false) | |
243 | 243 | then ap | |
244 | 244 | else if (if ((h > 1)) | |
245 | 245 | then (ar == am) | |
246 | 246 | else false) | |
247 | 247 | then as | |
248 | 248 | else if (if ((h > 2)) | |
249 | 249 | then (au == am) | |
250 | 250 | else false) | |
251 | 251 | then av | |
252 | 252 | else unit | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | @Callable(ah) | |
257 | 257 | func claimLP (aw) = { | |
258 | 258 | let ax = aj(ah) | |
259 | 259 | if ((ax == ax)) | |
260 | 260 | then { | |
261 | 261 | let x = Address(aw) | |
262 | 262 | let ay = valueOrElse(getInteger(U, w(x)), 0) | |
263 | 263 | let az = valueOrElse(getInteger(U, y(x)), 0) | |
264 | 264 | let aA = if ((ay > 0)) | |
265 | 265 | then [invoke(U, "transferAsset", [aw, ay, Y], nil), invoke(U, "integerEntry", [w(x), 0], nil), invoke(U, "integerEntry", [y(x), (az + ay)], nil)] | |
266 | 266 | else i("nothing to claim") | |
267 | 267 | $Tuple2(nil, aA) | |
268 | 268 | } | |
269 | 269 | else throw("Strict value is not equal to itself.") | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | 274 | @Callable(ah) | |
275 | 275 | func finalize (aw,aB,aC,aD) = { | |
276 | 276 | let ax = aj(ah) | |
277 | 277 | if ((ax == ax)) | |
278 | 278 | then { | |
279 | 279 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
280 | 280 | let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length")) | |
281 | 281 | let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height")) | |
282 | 282 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
283 | 283 | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
284 | 284 | let aJ = ((aG + aF) - 1) | |
285 | 285 | let aK = [if ((ah.originCaller == ac)) | |
286 | 286 | then true | |
287 | 287 | else i("permission denied"), if ((aI > aJ)) | |
288 | 288 | then true | |
289 | 289 | else i("unprocessed blocks"), if ((aB >= 0)) | |
290 | 290 | then true | |
291 | 291 | else i("invalid new treasury volume"), if ((aC >= 0)) | |
292 | 292 | then true | |
293 | 293 | else i("invalid PWR managers bonus"), if (if ((aD >= -(c))) | |
294 | 294 | then (c >= aD) | |
295 | 295 | else false) | |
296 | 296 | then true | |
297 | 297 | else i("invalid treasury volume diff allocation coefficient")] | |
298 | 298 | if ((aK == aK)) | |
299 | 299 | then { | |
300 | 300 | let aL = valueOrElse(getInteger(U, v(unit)), 0) | |
301 | 301 | let aM = valueOrElse(getInteger(U, u(unit)), 0) | |
302 | 302 | let aN = (aL + aM) | |
303 | 303 | let aO = (aB - aN) | |
304 | 304 | let aP = if (if ((aO > 0)) | |
305 | 305 | then (aO >= aC) | |
306 | 306 | else false) | |
307 | 307 | then aC | |
308 | 308 | else 0 | |
309 | 309 | let aQ = (aO - aP) | |
310 | 310 | let aR = if ((aN > 0)) | |
311 | 311 | then fraction(aL, c, aN) | |
312 | 312 | else 0 | |
313 | 313 | let aS = fraction(aQ, aR, c) | |
314 | 314 | let aT = (aQ - aS) | |
315 | 315 | let aU = n(aD) | |
316 | 316 | let aV = fraction(aT, if ((0 > aD)) | |
317 | 317 | then aU | |
318 | 318 | else 0, c) | |
319 | 319 | let aW = fraction(aS, if ((aD > 0)) | |
320 | 320 | then aU | |
321 | 321 | else 0, c) | |
322 | 322 | let aX = ((aS - aW) + aV) | |
323 | 323 | let aY = ((aT - aV) + aW) | |
324 | 324 | let aZ = (aL + aX) | |
325 | 325 | let ba = (aM + aY) | |
326 | 326 | let bb = min([0, aZ]) | |
327 | 327 | let bc = min([0, ba]) | |
328 | 328 | let bd = (max([0, aZ]) + bc) | |
329 | 329 | let be = (max([0, ba]) + bb) | |
330 | 330 | let bf = (aE + 1) | |
331 | 331 | let bg = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
332 | 332 | let bh = fraction(be, c, bg) | |
333 | - | let bi = valueOrElse(getInteger(U, I()), 0) | |
334 | - | let bj = max([0, fraction(bi, bh, c)]) | |
335 | - | let bk = if ((size(ah.payments) > 0)) | |
336 | - | then ah.payments[0] | |
337 | - | else unit | |
338 | - | let bl = value(bk).amount | |
339 | - | let bm = value(bk).assetId | |
340 | - | let bn = if (if ((bj == 0)) | |
333 | + | let bi = if ((bh != 0)) | |
341 | 334 | then true | |
342 | - | else if (if ((bk != unit)) | |
343 | - | then (bm == unit) | |
344 | - | else false) | |
345 | - | then (bl >= bj) | |
346 | - | else false) | |
347 | - | then true | |
348 | - | else i(("invalid payments, payment amount min: " + toString(bj))) | |
349 | - | if ((bn == bn)) | |
335 | + | else i("LP price cannot be 0") | |
336 | + | if ((bi == bi)) | |
350 | 337 | then { | |
351 | - | let bo = if ((bh != 0)) | |
338 | + | let bj = valueOrElse(getInteger(U, I()), 0) | |
339 | + | let bk = max([0, fraction(bj, bh, c)]) | |
340 | + | let bl = if ((size(ah.payments) > 0)) | |
341 | + | then ah.payments[0] | |
342 | + | else unit | |
343 | + | let bm = value(bl).amount | |
344 | + | let bn = value(bl).assetId | |
345 | + | let bo = if (if ((bk == 0)) | |
352 | 346 | then true | |
353 | - | else i("LP price cannot be 0") | |
347 | + | else if (if ((bl != unit)) | |
348 | + | then (bn == unit) | |
349 | + | else false) | |
350 | + | then (bm >= bk) | |
351 | + | else false) | |
352 | + | then true | |
353 | + | else i(("invalid payments, payment amount min: " + toString(bk))) | |
354 | 354 | if ((bo == bo)) | |
355 | 355 | then { | |
356 | - | let bp = if (( | |
357 | - | then [ScriptTransfer(U, | |
356 | + | let bp = if ((bl != unit)) | |
357 | + | then [ScriptTransfer(U, bm, bn)] | |
358 | 358 | else nil | |
359 | - | let aA = [invoke(U, "integerEntry", [z(), bf], nil), invoke(U, "integerEntry", [A(bf), bh], nil), invoke(U, "integerEntry", [C(bf), (aJ + 1)], nil), invoke(U, "burn", [ | |
359 | + | let aA = [invoke(U, "integerEntry", [z(), bf], nil), invoke(U, "integerEntry", [A(bf), bh], nil), invoke(U, "integerEntry", [C(bf), (aJ + 1)], nil), invoke(U, "burn", [bj], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), (be - bk)], nil), invoke(U, "integerEntry", [v(unit), bd], nil)] | |
360 | 360 | $Tuple2(bp, aA) | |
361 | 361 | } | |
362 | 362 | else throw("Strict value is not equal to itself.") | |
363 | 363 | } | |
364 | 364 | else throw("Strict value is not equal to itself.") | |
365 | 365 | } | |
366 | 366 | else throw("Strict value is not equal to itself.") | |
367 | 367 | } | |
368 | 368 | else throw("Strict value is not equal to itself.") | |
369 | 369 | } | |
370 | 370 | ||
371 | 371 | ||
372 | 372 | ||
373 | 373 | @Callable(ah) | |
374 | 374 | func invest (aw) = { | |
375 | 375 | let ax = aj(ah) | |
376 | 376 | if ((ax == ax)) | |
377 | 377 | then { | |
378 | 378 | let x = Address(aw) | |
379 | 379 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
380 | 380 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
381 | 381 | let bq = if ((size(ah.payments) == 1)) | |
382 | 382 | then ah.payments[0] | |
383 | 383 | else i("invalid payments") | |
384 | 384 | let br = if (if ((bq.assetId == unit)) | |
385 | 385 | then (bq.amount > 0) | |
386 | 386 | else false) | |
387 | 387 | then $Tuple2(bq.amount, bq.assetId) | |
388 | 388 | else i("invalid payment amount") | |
389 | - | let | |
390 | - | let | |
389 | + | let bm = br._1 | |
390 | + | let bn = br._2 | |
391 | 391 | let N = if ((aH > 0)) | |
392 | - | then fraction( | |
392 | + | then fraction(bm, c, aH) | |
393 | 393 | else 0 | |
394 | 394 | let bs = valueOrElse(getInteger(U, u(unit)), 0) | |
395 | - | let bp = [ScriptTransfer(ac, | |
396 | - | let aA = [invoke(U, "integerEntry", [u(unit), (bs + | |
395 | + | let bp = [ScriptTransfer(ac, bm, bn)] | |
396 | + | let aA = [invoke(U, "integerEntry", [u(unit), (bs + bm)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
397 | 397 | $Tuple2(bp, aA) | |
398 | 398 | } | |
399 | 399 | else throw("Strict value is not equal to itself.") | |
400 | 400 | } | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | ||
404 | 404 | @Callable(ah) | |
405 | 405 | func withdraw (aw) = { | |
406 | 406 | let ax = aj(ah) | |
407 | 407 | if ((ax == ax)) | |
408 | 408 | then { | |
409 | 409 | let x = Address(aw) | |
410 | 410 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
411 | 411 | let bq = if ((size(ah.payments) == 1)) | |
412 | 412 | then ah.payments[0] | |
413 | 413 | else i(g("invalid payments")) | |
414 | - | let | |
414 | + | let bn = if ((bq.assetId == Y)) | |
415 | 415 | then Y | |
416 | 416 | else i("invalid payment asset") | |
417 | - | let | |
417 | + | let bm = if ((bq.amount > 0)) | |
418 | 418 | then bq.amount | |
419 | 419 | else i("invalid payment amount") | |
420 | 420 | let bt = valueOrElse(getInteger(U, I()), 0) | |
421 | - | let bp = [ScriptTransfer(U, | |
422 | - | let aA = [invoke(U, "integerEntry", [I(), (bt + | |
421 | + | let bp = [ScriptTransfer(U, bm, bn)] | |
422 | + | let aA = [invoke(U, "integerEntry", [I(), (bt + bm)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bm, (aE + 1), unit)], nil)] | |
423 | 423 | if ((aA == aA)) | |
424 | 424 | then $Tuple2(bp, aA) | |
425 | 425 | else throw("Strict value is not equal to itself.") | |
426 | 426 | } | |
427 | 427 | else throw("Strict value is not equal to itself.") | |
428 | 428 | } | |
429 | 429 | ||
430 | 430 | ||
431 | 431 | ||
432 | 432 | @Callable(ah) | |
433 | 433 | func cancelWithdraw (aw,K) = { | |
434 | 434 | let ax = aj(ah) | |
435 | 435 | if ((ax == ax)) | |
436 | 436 | then { | |
437 | 437 | let x = Address(aw) | |
438 | 438 | let bu = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
439 | 439 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
440 | 440 | let bv = R(bu) | |
441 | 441 | let M = bv._1 | |
442 | 442 | let N = bv._2 | |
443 | 443 | let O = bv._3 | |
444 | 444 | let P = bv._4 | |
445 | 445 | let aK = [if ((M == d)) | |
446 | 446 | then true | |
447 | 447 | else i("invalid withdrawal request status"), if ((O > aE)) | |
448 | 448 | then true | |
449 | 449 | else i("invalid withdrawal request period")] | |
450 | 450 | if ((aK == aK)) | |
451 | 451 | then { | |
452 | 452 | let bt = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount")) | |
453 | 453 | let aA = [invoke(U, "integerEntry", [I(), if ((bt >= N)) | |
454 | 454 | then (bt - N) | |
455 | 455 | else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
456 | 456 | if ((aA == aA)) | |
457 | 457 | then $Tuple2(nil, aA) | |
458 | 458 | else throw("Strict value is not equal to itself.") | |
459 | 459 | } | |
460 | 460 | else throw("Strict value is not equal to itself.") | |
461 | 461 | } | |
462 | 462 | else throw("Strict value is not equal to itself.") | |
463 | 463 | } | |
464 | 464 | ||
465 | 465 | ||
466 | 466 | ||
467 | 467 | @Callable(ah) | |
468 | 468 | func claimWaves (aw,K) = { | |
469 | 469 | let ax = aj(ah) | |
470 | 470 | if ((ax == ax)) | |
471 | 471 | then { | |
472 | 472 | let x = Address(aw) | |
473 | 473 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
474 | 474 | let bu = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
475 | 475 | let bw = R(bu) | |
476 | 476 | let M = bw._1 | |
477 | 477 | let N = bw._2 | |
478 | 478 | let O = bw._3 | |
479 | 479 | let P = bw._4 | |
480 | 480 | if ((M == e)) | |
481 | 481 | then i("invalid withdrawal request status") | |
482 | 482 | else if ((O > aE)) | |
483 | 483 | then i("invalid withdrawal request period") | |
484 | 484 | else { | |
485 | 485 | let bx = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price")) | |
486 | 486 | let by = if ((bx > 0)) | |
487 | 487 | then fraction(N, bx, c) | |
488 | 488 | else 0 | |
489 | 489 | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, by], nil)] | |
490 | 490 | $Tuple2(nil, aA) | |
491 | 491 | } | |
492 | 492 | } | |
493 | 493 | else throw("Strict value is not equal to itself.") | |
494 | 494 | } | |
495 | 495 | ||
496 | 496 | ||
497 | 497 | ||
498 | 498 | @Callable(ah) | |
499 | 499 | func processBlocks (aw) = { | |
500 | 500 | let ax = aj(ah) | |
501 | 501 | if ((ax == ax)) | |
502 | 502 | then { | |
503 | 503 | let x = Address(aw) | |
504 | 504 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
505 | 505 | let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length")) | |
506 | 506 | let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height")) | |
507 | 507 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
508 | 508 | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
509 | 509 | let aJ = ((aG + aF) - 1) | |
510 | 510 | let bz = 40 | |
511 | 511 | let bA = if (if (if ((height >= aI)) | |
512 | 512 | then if ((aI >= aG)) | |
513 | 513 | then true | |
514 | 514 | else (aE == 0) | |
515 | 515 | else false) | |
516 | 516 | then (aJ >= aI) | |
517 | 517 | else false) | |
518 | 518 | then min([((aJ - aI) + 1), bz]) | |
519 | 519 | else i(g("invalid target block")) | |
520 | 520 | let bB = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward")) | |
521 | 521 | let bC = (bB / bA) | |
522 | 522 | let bD = (bB - (bC * bA)) | |
523 | 523 | func bE (bF,bG) = if ((bG >= bA)) | |
524 | 524 | then bF | |
525 | 525 | else { | |
526 | 526 | let bH = (aI + bG) | |
527 | 527 | let bI = valueOrErrorMessage(blockInfoByHeight(bH), g("invalid block info")) | |
528 | 528 | let bJ = valueOrErrorMessage(ak(bI.rewards, aa), g(("invalid treasury reward for height " + toString(bH)))) | |
529 | 529 | let bK = bI.generator | |
530 | 530 | let ay = valueOrElse(getInteger(U, w(bK)), 0) | |
531 | 531 | let bL = if ((bG == (bA - 1))) | |
532 | 532 | then (bC + bD) | |
533 | 533 | else bC | |
534 | 534 | let N = if ((aH > 0)) | |
535 | 535 | then fraction((bJ - bL), c, aH) | |
536 | 536 | else 0 | |
537 | 537 | let bM = [invoke(U, "stringEntry", [G(bH), makeString([toBase58String(ah.transactionId), toString(aE), toString(bK), toBase58String(aw), toString(bJ), toString(bL), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bK), (ay + N)], nil)] | |
538 | 538 | if ((bM == bM)) | |
539 | 539 | then { | |
540 | 540 | let bN = bF | |
541 | 541 | let bO = bN._1 | |
542 | 542 | let bP = bN._2 | |
543 | 543 | $Tuple2((bO + N), (bP + bJ)) | |
544 | 544 | } | |
545 | 545 | else throw("Strict value is not equal to itself.") | |
546 | 546 | } | |
547 | 547 | ||
548 | 548 | let bQ = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39] | |
549 | 549 | let bR = { | |
550 | 550 | let bS = bQ | |
551 | 551 | let bT = size(bS) | |
552 | 552 | let bU = $Tuple2(0, 0) | |
553 | 553 | func bV (bW,bX) = if ((bX >= bT)) | |
554 | 554 | then bW | |
555 | 555 | else bE(bW, bS[bX]) | |
556 | 556 | ||
557 | 557 | func bY (bW,bX) = if ((bX >= bT)) | |
558 | 558 | then bW | |
559 | 559 | else throw("List size exceeds 40") | |
560 | 560 | ||
561 | 561 | bY(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bV(bU, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40) | |
562 | 562 | } | |
563 | 563 | if ((bR == bR)) | |
564 | 564 | then { | |
565 | 565 | let bZ = bR._2 | |
566 | 566 | let ca = bR._1 | |
567 | 567 | let cb = (bZ - bB) | |
568 | 568 | let bs = valueOrElse(getInteger(U, u(unit)), 0) | |
569 | 569 | let bp = [invoke(U, "reissue", [ca], nil), invoke(U, "integerEntry", [F(), (aI + bA)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, cb], nil), invoke(U, "transferFromProxyTreasury", [aw, bB], nil), invoke(U, "integerEntry", [u(unit), (bs + cb)], nil)] | |
570 | 570 | if ((bp == bp)) | |
571 | 571 | then $Tuple2(nil, unit) | |
572 | 572 | else throw("Strict value is not equal to itself.") | |
573 | 573 | } | |
574 | 574 | else throw("Strict value is not equal to itself.") | |
575 | 575 | } | |
576 | 576 | else throw("Strict value is not equal to itself.") | |
577 | 577 | } | |
578 | 578 | ||
579 | 579 | ||
580 | 580 | @Verifier(cc) | |
581 | 581 | func cd () = { | |
582 | 582 | let ce = { | |
583 | 583 | let l = ad() | |
584 | 584 | if ($isInstanceOf(l, "ByteVector")) | |
585 | 585 | then { | |
586 | 586 | let af = l | |
587 | 587 | af | |
588 | 588 | } | |
589 | 589 | else cc.senderPublicKey | |
590 | 590 | } | |
591 | 591 | sigVerify(cc.bodyBytes, cc.proofs[0], ce) | |
592 | 592 | } | |
593 | 593 |
github/deemru/w8io/169f3d6 81.47 ms ◑