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