tx · GHCAn7JynJZEEaSwhguPyhVcaegkiEotn52o4cXeDtuM 3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV: -0.02800000 Waves 2023.01.11 15:37 [2400301] smart account 3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV > SELF 0.00000000 Waves
{ "type": 13, "id": "GHCAn7JynJZEEaSwhguPyhVcaegkiEotn52o4cXeDtuM", "fee": 2800000, "feeAssetId": null, "timestamp": 1673440682685, "version": 1, "sender": "3N98Ngyaszw66EakvWRCiZ771ja2RDgNaxV", "senderPublicKey": "F4oaTkX67vt2MEsXLJJ8a7gaURGjW7x8fkvGfdEiH5oy", "proofs": [ "2wyyM16Co1oPSDB3xB5U2ENRMR82NkVQjoSxp54YRXZrniVYLXwqq76Qu7we6gUQW1kwWj8LoAv4C3BjGQ6kcQQL" ], "script": "base64:BgInCAISAwoBCBIAEgcKBQgICAgIEgASBAoCCAgSABIECgIICBIDCgEIQQAJc2VwYXJhdG9yAgJfXwASc2hhcmVBc3NldERlY2ltYWxzAAgAC3dhdmVzU3RyaW5nAgVXQVZFUwAHc2NhbGUxOACAgJC7utat8A0ADXNjYWxlMThCaWdJbnQJALYCAQUHc2NhbGUxOAEHd3JhcEVycgEDbXNnCQC5CQIJAMwIAgIWbHBfc3Rha2luZ19wb29scy5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnARJlcnJLZXlJc05vdERlZmluZWQCB2FkZHJlc3MDa2V5CQEHd3JhcEVycgEJALkJAgkAzAgCAgptYW5kYXRvcnkgCQDMCAIJAKUIAQUHYWRkcmVzcwkAzAgCAgEuCQDMCAIFA2tleQkAzAgCAg8gaXMgbm90IGRlZmluZWQFA25pbAIAAQxnZXRTdHJPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUHYWRkcmVzcwUDa2V5CQESZXJyS2V5SXNOb3REZWZpbm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0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQPdGFyZ2V0UHVibGljS2V5BAckbWF0Y2gwCQEWbWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCcGsFByRtYXRjaDAFAnBrAwkAAQIFByRtYXRjaDACBFVuaXQIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5H51fFQ==", "chainId": 84, "height": 2400301, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7exsjLKnvz3qfjpTcdYXggQh48K885hb37rmxzTqsySk Next: 8eiEqTQeRiZvYGfAvy3xgZfWWzsvDfiU6dLUXYxoAjsh Diff:
Old | New | Differences | |
---|---|---|---|
71 | 71 | func B () = makeString(["%s", "minDelay"], a) | |
72 | 72 | ||
73 | 73 | ||
74 | - | func C ( | |
74 | + | func C () = makeString(["%s", "lockFraction"], a) | |
75 | 75 | ||
76 | 76 | ||
77 | - | func | |
77 | + | func D (E) = makeString(["%s%s", p(E), "shareAssetId"], a) | |
78 | 78 | ||
79 | 79 | ||
80 | - | func | |
80 | + | func F (G) = makeString(["%s%s", p(G), "baseAssetId"], a) | |
81 | 81 | ||
82 | 82 | ||
83 | - | func H ( | |
83 | + | func H (E) = makeString(["%s%s", p(E), "period"], a) | |
84 | 84 | ||
85 | 85 | ||
86 | - | func | |
86 | + | func I (E,J) = makeString(["%s%s%d", p(E), "periodStartHeight", toString(J)], a) | |
87 | 87 | ||
88 | 88 | ||
89 | - | func K ( | |
89 | + | func K (E) = makeString(["%s%s", p(E), "baseAssetAmountToConvert"], a) | |
90 | 90 | ||
91 | 91 | ||
92 | - | func L ( | |
92 | + | func L (E) = makeString(["%s%s", p(E), "shareAssetAmountToConvert"], a) | |
93 | 93 | ||
94 | 94 | ||
95 | - | func | |
95 | + | func M (E,N) = makeString(["%s%s%s", p(E), toString(N), "baseAssetAmountToConvert"], a) | |
96 | 96 | ||
97 | 97 | ||
98 | - | func O ( | |
98 | + | func O (E,N) = makeString(["%s%s%s%s", p(E), toString(N), "baseAssetAmountToConvert", "period"], a) | |
99 | 99 | ||
100 | 100 | ||
101 | - | func P ( | |
101 | + | func P (E,N) = makeString(["%s%s%s", p(E), toString(N), "shareAssetAmountToConvert"], a) | |
102 | 102 | ||
103 | 103 | ||
104 | - | func Q ( | |
104 | + | func Q (E,N) = makeString(["%s%s%s%s", p(E), toString(N), "shareAssetAmountToConvert", "period"], a) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func R ( | |
107 | + | func R (E,J) = makeString(["%s%s%d", p(E), "price", toString(J)], a) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func S ( | |
110 | + | func S (E) = makeString(["%s%s%s%d%d", p(E), "price", "history", toString(lastBlock.height), toString(lastBlock.timestamp)], a) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func T ( | |
113 | + | func T (E,J) = makeString(["%s%s%d%s", p(E), "price", toString(J), "put"], a) | |
114 | 114 | ||
115 | 115 | ||
116 | - | func U ( | |
116 | + | func U (E) = makeString(["%s%s%s%s%d%d", p(E), "price", "history", "put", toString(lastBlock.height), toString(lastBlock.timestamp)], a) | |
117 | 117 | ||
118 | 118 | ||
119 | - | func V ( | |
119 | + | func V (E,J) = makeString(["%s%s%d%s", p(E), "price", toString(J), "get"], a) | |
120 | 120 | ||
121 | 121 | ||
122 | - | func W ( | |
122 | + | func W (E) = makeString(["%s%s%s%s%d%d", p(E), "price", "history", "get", toString(lastBlock.height), toString(lastBlock.timestamp)], a) | |
123 | 123 | ||
124 | 124 | ||
125 | - | func | |
125 | + | func X (E,Y,J,N,Z) = makeString(["%s%s%s%s", "history", Y, toString(N), toBase58String(Z), toString(height)], a) | |
126 | 126 | ||
127 | 127 | ||
128 | - | func aa () = "%s__ | |
128 | + | func aa () = "%s__managerPublicKey" | |
129 | 129 | ||
130 | 130 | ||
131 | - | func ab () = { | |
132 | - | let ac = getString(Z()) | |
133 | - | if ($isInstanceOf(ac, "String")) | |
131 | + | func ab () = "%s__pendingManagerPublicKey" | |
132 | + | ||
133 | + | ||
134 | + | func ac () = { | |
135 | + | let ad = getString(aa()) | |
136 | + | if ($isInstanceOf(ad, "String")) | |
134 | 137 | then { | |
135 | - | let | |
136 | - | fromBase58String( | |
138 | + | let ae = ad | |
139 | + | fromBase58String(ae) | |
137 | 140 | } | |
138 | - | else if ($isInstanceOf( | |
141 | + | else if ($isInstanceOf(ad, "Unit")) | |
139 | 142 | then unit | |
140 | 143 | else throw("Match error") | |
141 | 144 | } | |
142 | 145 | ||
143 | 146 | ||
144 | - | func | |
145 | - | let | |
146 | - | if ($isInstanceOf( | |
147 | + | func af () = { | |
148 | + | let ad = getString(ab()) | |
149 | + | if ($isInstanceOf(ad, "String")) | |
147 | 150 | then { | |
148 | - | let | |
149 | - | fromBase58String( | |
151 | + | let ae = ad | |
152 | + | fromBase58String(ae) | |
150 | 153 | } | |
151 | - | else if ($isInstanceOf( | |
154 | + | else if ($isInstanceOf(ad, "Unit")) | |
152 | 155 | then unit | |
153 | 156 | else throw("Match error") | |
154 | 157 | } | |
155 | 158 | ||
156 | 159 | ||
157 | - | let | |
160 | + | let ag = throw("Permission denied") | |
158 | 161 | ||
159 | - | func | |
162 | + | func ah (ai) = if ((ai.caller == this)) | |
160 | 163 | then true | |
161 | - | else | |
164 | + | else ag | |
162 | 165 | ||
163 | 166 | ||
164 | - | func | |
165 | - | let | |
166 | - | if ($isInstanceOf( | |
167 | + | func aj (ai) = { | |
168 | + | let ad = ac() | |
169 | + | if ($isInstanceOf(ad, "ByteVector")) | |
167 | 170 | then { | |
168 | - | let | |
169 | - | if (( | |
171 | + | let ak = ad | |
172 | + | if ((ai.callerPublicKey == ak)) | |
170 | 173 | then true | |
171 | - | else | |
174 | + | else ag | |
172 | 175 | } | |
173 | - | else if ($isInstanceOf( | |
174 | - | then | |
176 | + | else if ($isInstanceOf(ad, "Unit")) | |
177 | + | then ah(ai) | |
175 | 178 | else throw("Match error") | |
176 | 179 | } | |
177 | 180 | ||
178 | 181 | ||
179 | - | let | |
182 | + | let al = valueOrElse(getBoolean(A()), false) | |
180 | 183 | ||
181 | - | func | |
184 | + | func am (ai) = if (if (!(al)) | |
182 | 185 | then true | |
183 | - | else ai | |
186 | + | else aj(ai)) | |
184 | 187 | then true | |
185 | 188 | else throw("operation is disabled") | |
186 | 189 | ||
187 | 190 | ||
188 | - | let | |
191 | + | let an = addressFromStringValue(l(this, s())) | |
189 | 192 | ||
190 | - | let | |
193 | + | let ao = addressFromStringValue(l(this, t())) | |
191 | 194 | ||
192 | - | let | |
195 | + | let ap = addressFromStringValue(l(this, u())) | |
193 | 196 | ||
194 | - | let | |
197 | + | let aq = addressFromStringValue(l(this, v())) | |
195 | 198 | ||
196 | - | let | |
199 | + | let ar = addressFromStringValue(l(this, w())) | |
197 | 200 | ||
198 | - | let | |
201 | + | let as = addressFromStringValue(l(this, x())) | |
199 | 202 | ||
200 | - | let | |
203 | + | let at = n(l(this, y())) | |
201 | 204 | ||
202 | - | let | |
205 | + | let au = n(l(this, z())) | |
203 | 206 | ||
204 | - | let | |
207 | + | let av = 1440 | |
205 | 208 | ||
206 | - | let | |
209 | + | let aw = valueOrElse(getInteger(this, B()), av) | |
207 | 210 | ||
208 | - | func aw (ax) = { | |
209 | - | let ay = p(ax) | |
210 | - | let az = p(as) | |
211 | - | let aA = { | |
212 | - | let aB = invoke(am, "poolInfoREADONLY", [ay, az], nil) | |
213 | - | if ($isInstanceOf(aB, "(Address, ByteVector)")) | |
214 | - | then aB | |
211 | + | let ax = 100000000 | |
212 | + | ||
213 | + | let ay = fraction(1, ax, 2) | |
214 | + | ||
215 | + | let az = valueOrElse(getInteger(this, C()), ay) | |
216 | + | ||
217 | + | func aA (aB) = { | |
218 | + | let aC = p(aB) | |
219 | + | let aD = p(at) | |
220 | + | let aE = { | |
221 | + | let aF = invoke(an, "poolInfoREADONLY", [aC, aD], nil) | |
222 | + | if ($isInstanceOf(aF, "(Address, ByteVector)")) | |
223 | + | then aF | |
215 | 224 | else unit | |
216 | 225 | } | |
217 | - | | |
226 | + | aE | |
218 | 227 | } | |
219 | 228 | ||
220 | 229 | ||
221 | - | func | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | if ($isInstanceOf( | |
227 | - | then | |
230 | + | func aG (aH,G) = { | |
231 | + | let aI = valueOrErrorMessage(assetInfo(G), "failed to get share asset info") | |
232 | + | let aJ = aI.quantity | |
233 | + | let aK = q(valueOrErrorMessage({ | |
234 | + | let aF = invoke(ap, "stakedByUserREADONLY", [p(aH), toString(this)], nil) | |
235 | + | if ($isInstanceOf(aF, "Int")) | |
236 | + | then aF | |
228 | 237 | else unit | |
229 | 238 | }, f("invalid stakedByUserREADONLY result"))) | |
230 | - | let | |
239 | + | let aL = if ((aJ == 0)) | |
231 | 240 | then e | |
232 | - | else fraction(toBigInt( | |
233 | - | | |
241 | + | else fraction(toBigInt(aK), e, toBigInt(aJ), FLOOR) | |
242 | + | aL | |
234 | 243 | } | |
235 | 244 | ||
236 | 245 | ||
237 | - | @Callable( | |
238 | - | func setManager ( | |
239 | - | let | |
240 | - | if (( | |
246 | + | @Callable(ai) | |
247 | + | func setManager (aM) = { | |
248 | + | let aN = aj(ai) | |
249 | + | if ((aN == aN)) | |
241 | 250 | then { | |
242 | - | let | |
243 | - | if (( | |
244 | - | then [StringEntry( | |
251 | + | let aO = fromBase58String(aM) | |
252 | + | if ((aO == aO)) | |
253 | + | then [StringEntry(ab(), aM)] | |
245 | 254 | else throw("Strict value is not equal to itself.") | |
246 | 255 | } | |
247 | 256 | else throw("Strict value is not equal to itself.") | |
249 | 258 | ||
250 | 259 | ||
251 | 260 | ||
252 | - | @Callable( | |
261 | + | @Callable(ai) | |
253 | 262 | func confirmManager () = { | |
254 | - | let | |
255 | - | let | |
263 | + | let aP = af() | |
264 | + | let aQ = if (isDefined(aP)) | |
256 | 265 | then true | |
257 | 266 | else h("no pending manager") | |
258 | - | if (( | |
267 | + | if ((aQ == aQ)) | |
259 | 268 | then { | |
260 | - | let | |
269 | + | let aR = if ((ai.callerPublicKey == value(aP))) | |
261 | 270 | then true | |
262 | 271 | else h("you are not pending manager") | |
263 | - | if (( | |
264 | - | then [StringEntry( | |
272 | + | if ((aR == aR)) | |
273 | + | then [StringEntry(aa(), toBase58String(value(aP))), DeleteEntry(ab())] | |
265 | 274 | else throw("Strict value is not equal to itself.") | |
266 | 275 | } | |
267 | 276 | else throw("Strict value is not equal to itself.") | |
269 | 278 | ||
270 | 279 | ||
271 | 280 | ||
272 | - | @Callable( | |
273 | - | func create ( | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
281 | + | @Callable(ai) | |
282 | + | func create (aS,aT,aU,aV,aW) = { | |
283 | + | let aX = "LP_STAKING_POOLS" | |
284 | + | let E = n(aS) | |
285 | + | let aY = [aj(ai), if (isDefined(aA(E))) | |
277 | 286 | then true | |
278 | 287 | else h("invalid base asset")] | |
279 | - | if (( | |
288 | + | if ((aY == aY)) | |
280 | 289 | then { | |
281 | - | let | |
282 | - | if (( | |
290 | + | let aZ = [IntegerEntry(H(E), 0)] | |
291 | + | if ((aT == "")) | |
283 | 292 | then { | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | if (( | |
293 | + | let ba = 1 | |
294 | + | let bb = Issue(aU, aV, ba, b, true) | |
295 | + | let bc = calculateAssetId(bb) | |
296 | + | let bd = Burn(bc, ba) | |
297 | + | let be = toBase58String(bc) | |
298 | + | let bf = invoke(as, "createOrUpdate", [be, aW, false], nil) | |
299 | + | if ((bf == bf)) | |
291 | 300 | then { | |
292 | - | let | |
293 | - | if (( | |
294 | - | then $Tuple2(( | |
301 | + | let bg = invoke(as, "addLabel", [be, aX], nil) | |
302 | + | if ((bg == bg)) | |
303 | + | then $Tuple2((aZ ++ [bb, bd, StringEntry(D(E), be), StringEntry(F(bc), aS)]), be) | |
295 | 304 | else throw("Strict value is not equal to itself.") | |
296 | 305 | } | |
297 | 306 | else throw("Strict value is not equal to itself.") | |
298 | 307 | } | |
299 | 308 | else { | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
309 | + | let G = fromBase58String(aT) | |
310 | + | let aI = valueOrErrorMessage(assetInfo(G), f("invalid share asset id")) | |
311 | + | let bh = if ((aI.issuer == ao)) | |
303 | 312 | then true | |
304 | 313 | else h("invalid share asset id issuer") | |
305 | - | if (( | |
306 | - | then $Tuple2(( | |
314 | + | if ((bh == bh)) | |
315 | + | then $Tuple2((aZ ++ [StringEntry(D(E), aT), StringEntry(D(G), aS)]), aT) | |
307 | 316 | else throw("Strict value is not equal to itself.") | |
308 | 317 | } | |
309 | 318 | } | |
312 | 321 | ||
313 | 322 | ||
314 | 323 | ||
315 | - | @Callable( | |
324 | + | @Callable(ai) | |
316 | 325 | func put () = { | |
317 | - | let | |
318 | - | then | |
326 | + | let bi = if ((size(ai.payments) == 1)) | |
327 | + | then ai.payments[0] | |
319 | 328 | else h("exactly 1 payment is expected") | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
329 | + | let E = bi.assetId | |
330 | + | let N = ai.caller | |
331 | + | let aY = [am(ai), if (isDefined(getString(D(E)))) | |
323 | 332 | then true | |
324 | 333 | else h("invalid asset")] | |
325 | - | if (( | |
334 | + | if ((aY == aY)) | |
326 | 335 | then { | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
336 | + | let bj = valueOrErrorMessage(aA(E), f("invalid asset")) | |
337 | + | let bk = bj._1 | |
338 | + | let aH = bj._2 | |
339 | + | let J = value(getInteger(H(E))) | |
340 | + | let bl = getInteger(O(E, N)) | |
341 | + | let bm = if ((bl == unit)) | |
333 | 342 | then unit | |
334 | 343 | else { | |
335 | - | let | |
336 | - | if (( | |
344 | + | let bn = value(bl) | |
345 | + | if ((bn == J)) | |
337 | 346 | then unit | |
338 | - | else invoke(this, "claimShareAsset", [p( | |
347 | + | else invoke(this, "claimShareAsset", [p(E), toString(N)], nil) | |
339 | 348 | } | |
340 | - | if (( | |
349 | + | if ((bm == bm)) | |
341 | 350 | then { | |
342 | - | let | |
343 | - | let | |
344 | - | $Tuple2([IntegerEntry( | |
351 | + | let bo = valueOrElse(getInteger(K(E)), 0) | |
352 | + | let bp = valueOrElse(getInteger(M(E, N)), 0) | |
353 | + | $Tuple2([IntegerEntry(K(E), (bo + bi.amount)), IntegerEntry(M(E, N), (bp + bi.amount)), IntegerEntry(O(E, N), J), IntegerEntry(X(E, "put", J, N, ai.transactionId), bi.amount)], unit) | |
345 | 354 | } | |
346 | 355 | else throw("Strict value is not equal to itself.") | |
347 | 356 | } | |
350 | 359 | ||
351 | 360 | ||
352 | 361 | ||
353 | - | @Callable( | |
354 | - | func claimShareAsset ( | |
355 | - | let | |
356 | - | if (( | |
362 | + | @Callable(ai) | |
363 | + | func claimShareAsset (aS,bq) = { | |
364 | + | let aY = [am(ai)] | |
365 | + | if ((aY == aY)) | |
357 | 366 | then { | |
358 | - | let | |
359 | - | then | |
367 | + | let N = if ((bq == "")) | |
368 | + | then ai.caller | |
360 | 369 | else { | |
361 | - | let | |
362 | - | if (( | |
363 | - | then valueOrErrorMessage(addressFromString( | |
370 | + | let aN = ah(ai) | |
371 | + | if ((aN == aN)) | |
372 | + | then valueOrErrorMessage(addressFromString(bq), f("invalid user address")) | |
364 | 373 | else throw("Strict value is not equal to itself.") | |
365 | 374 | } | |
366 | - | if (( | |
375 | + | if ((N == N)) | |
367 | 376 | then { | |
368 | - | let | |
369 | - | let | |
370 | - | if (( | |
377 | + | let E = n(aS) | |
378 | + | let G = value(n(valueOrErrorMessage(getString(D(E)), f("invalid base asset id")))) | |
379 | + | if ((G == G)) | |
371 | 380 | then { | |
372 | - | let | |
373 | - | if (( | |
381 | + | let J = valueOrErrorMessage(getInteger(H(E)), f("invalid period")) | |
382 | + | if ((J == J)) | |
374 | 383 | then { | |
375 | - | let | |
376 | - | let | |
384 | + | let bp = valueOrElse(getInteger(M(E, N)), 0) | |
385 | + | let br = if ((bp > 0)) | |
377 | 386 | then true | |
378 | 387 | else h("nothing to claim") | |
379 | - | if (( | |
388 | + | if ((br == br)) | |
380 | 389 | then { | |
381 | - | let | |
382 | - | let | |
390 | + | let bn = valueOrErrorMessage(getInteger(O(E, N)), f("failed to get period")) | |
391 | + | let bs = if ((J > bn)) | |
383 | 392 | then true | |
384 | 393 | else h("invalid period") | |
385 | - | if (( | |
394 | + | if ((bs == bs)) | |
386 | 395 | then { | |
387 | - | let | |
388 | - | let | |
389 | - | $Tuple2([IntegerEntry( | |
396 | + | let aL = toBigInt(valueOrErrorMessage(getBinary(T(E, bn)), f("failed to get price"))) | |
397 | + | let bt = toInt(fraction(toBigInt(bp), e, aL)) | |
398 | + | $Tuple2([IntegerEntry(M(E, N), 0), ScriptTransfer(N, bt, G), IntegerEntry(X(E, "claimShareAsset", J, N, ai.transactionId), bt)], unit) | |
390 | 399 | } | |
391 | 400 | else throw("Strict value is not equal to itself.") | |
392 | 401 | } | |
403 | 412 | ||
404 | 413 | ||
405 | 414 | ||
406 | - | @Callable( | |
415 | + | @Callable(ai) | |
407 | 416 | func get () = { | |
408 | - | let | |
409 | - | if (( | |
417 | + | let aY = [am(ai)] | |
418 | + | if ((aY == aY)) | |
410 | 419 | then { | |
411 | - | let | |
412 | - | then | |
420 | + | let bi = if ((size(ai.payments) == 1)) | |
421 | + | then ai.payments[0] | |
413 | 422 | else h("exactly 1 payment is expected") | |
414 | - | let | |
415 | - | let | |
416 | - | if (( | |
423 | + | let G = bi.assetId | |
424 | + | let E = value(n(valueOrErrorMessage(getString(F(G)), f("invalid share asset id")))) | |
425 | + | if ((E == E)) | |
417 | 426 | then { | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
427 | + | let N = ai.caller | |
428 | + | let bu = valueOrErrorMessage(aA(E), f("invalid asset")) | |
429 | + | let bk = bu._1 | |
430 | + | let aH = bu._2 | |
431 | + | let J = value(getInteger(H(E))) | |
432 | + | let bv = getInteger(Q(E, N)) | |
433 | + | let bw = if ((bv == unit)) | |
425 | 434 | then unit | |
426 | 435 | else { | |
427 | - | let | |
428 | - | if (( | |
436 | + | let bx = value(bv) | |
437 | + | if ((bx == J)) | |
429 | 438 | then unit | |
430 | - | else invoke(this, "claimBaseAsset", [ | |
439 | + | else invoke(this, "claimBaseAsset", [N], nil) | |
431 | 440 | } | |
432 | - | if (( | |
441 | + | if ((bw == bw)) | |
433 | 442 | then { | |
434 | - | let | |
435 | - | let | |
436 | - | $Tuple2([IntegerEntry( | |
443 | + | let by = valueOrElse(getInteger(L(E)), 0) | |
444 | + | let bz = valueOrElse(getInteger(P(E, N)), 0) | |
445 | + | $Tuple2([IntegerEntry(L(E), (by + bi.amount)), IntegerEntry(P(E, N), (bz + bi.amount)), IntegerEntry(Q(E, N), J), IntegerEntry(X(E, "get", J, N, ai.transactionId), bi.amount)], unit) | |
437 | 446 | } | |
438 | 447 | else throw("Strict value is not equal to itself.") | |
439 | 448 | } | |
444 | 453 | ||
445 | 454 | ||
446 | 455 | ||
447 | - | @Callable( | |
448 | - | func claimBaseAsset ( | |
449 | - | let | |
450 | - | if (( | |
456 | + | @Callable(ai) | |
457 | + | func claimBaseAsset (aS,bq) = { | |
458 | + | let aY = [am(ai)] | |
459 | + | if ((aY == aY)) | |
451 | 460 | then { | |
452 | - | let | |
453 | - | then | |
461 | + | let N = if ((bq == "")) | |
462 | + | then ai.caller | |
454 | 463 | else { | |
455 | - | let | |
456 | - | if (( | |
457 | - | then valueOrErrorMessage(addressFromString( | |
464 | + | let aN = ah(ai) | |
465 | + | if ((aN == aN)) | |
466 | + | then valueOrErrorMessage(addressFromString(bq), f("invalid user address")) | |
458 | 467 | else throw("Strict value is not equal to itself.") | |
459 | 468 | } | |
460 | - | if (( | |
469 | + | if ((N == N)) | |
461 | 470 | then { | |
462 | - | let | |
463 | - | let | |
464 | - | if (( | |
471 | + | let E = n(aS) | |
472 | + | let G = value(n(valueOrErrorMessage(getString(D(E)), f("invalid base asset id")))) | |
473 | + | if ((G == G)) | |
465 | 474 | then { | |
466 | - | let | |
467 | - | if (( | |
475 | + | let J = valueOrErrorMessage(getInteger(H(E)), f("invalid period")) | |
476 | + | if ((J == J)) | |
468 | 477 | then { | |
469 | - | let | |
470 | - | let | |
478 | + | let bz = valueOrElse(getInteger(P(E, N)), 0) | |
479 | + | let br = if ((bz > 0)) | |
471 | 480 | then true | |
472 | 481 | else h("nothing to claim") | |
473 | - | if (( | |
482 | + | if ((br == br)) | |
474 | 483 | then { | |
475 | - | let | |
476 | - | let | |
484 | + | let bx = valueOrErrorMessage(getInteger(Q(E, N)), f("failed to get period")) | |
485 | + | let bs = if ((J > bx)) | |
477 | 486 | then true | |
478 | 487 | else h("invalid period") | |
479 | - | if (( | |
488 | + | if ((bs == bs)) | |
480 | 489 | then { | |
481 | - | let | |
482 | - | let | |
483 | - | $Tuple2([IntegerEntry( | |
490 | + | let aL = toBigInt(valueOrErrorMessage(getBinary(V(E, bx)), f("failed to get price"))) | |
491 | + | let bA = toInt(fraction(toBigInt(bz), aL, e)) | |
492 | + | $Tuple2([IntegerEntry(P(E, N), 0), ScriptTransfer(N, bA, E), IntegerEntry(X(E, "claimBaseAsset", J, N, ai.transactionId), bA)], unit) | |
484 | 493 | } | |
485 | 494 | else throw("Strict value is not equal to itself.") | |
486 | 495 | } | |
497 | 506 | ||
498 | 507 | ||
499 | 508 | ||
500 | - | @Callable( | |
501 | - | func finalize ( | |
502 | - | let | |
503 | - | if (( | |
509 | + | @Callable(ai) | |
510 | + | func finalize (aS) = { | |
511 | + | let aY = [am(ai)] | |
512 | + | if ((aY == aY)) | |
504 | 513 | then { | |
505 | - | let | |
506 | - | let | |
507 | - | if (( | |
514 | + | let E = n(aS) | |
515 | + | let G = value(n(valueOrErrorMessage(getString(D(E)), f("invalid base asset id")))) | |
516 | + | if ((G == G)) | |
508 | 517 | then { | |
509 | - | let | |
510 | - | if (( | |
518 | + | let J = valueOrErrorMessage(getInteger(H(E)), f("invalid period")) | |
519 | + | if ((J == J)) | |
511 | 520 | then { | |
512 | - | let | |
513 | - | let | |
521 | + | let bB = getInteger(I(E, J)) | |
522 | + | let bC = if ((bB == unit)) | |
514 | 523 | then unit | |
515 | 524 | else { | |
516 | - | let | |
517 | - | let | |
518 | - | if (( | |
525 | + | let bD = (height - value(bB)) | |
526 | + | let bE = min([0, (aw - bD)]) | |
527 | + | if ((bE == 0)) | |
519 | 528 | then unit | |
520 | - | else h(makeString(["finalization will be possible in ", toString( | |
529 | + | else h(makeString(["finalization will be possible in ", toString(bE), " blocks"], "")) | |
521 | 530 | } | |
522 | - | if (( | |
531 | + | if ((bC == bC)) | |
523 | 532 | then { | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | if ($isInstanceOf( | |
530 | - | then | |
533 | + | let bF = valueOrErrorMessage(aA(E), f("invalid asset")) | |
534 | + | let bk = bF._1 | |
535 | + | let aH = bF._2 | |
536 | + | let bG = valueOrErrorMessage({ | |
537 | + | let aF = invoke(ap, "claimWx", [p(aH)], nil) | |
538 | + | if ($isInstanceOf(aF, "Int")) | |
539 | + | then aF | |
531 | 540 | else unit | |
532 | 541 | }, f("invalid claimWx result")) | |
533 | - | if (( | |
542 | + | if ((bG == bG)) | |
534 | 543 | then { | |
535 | - | let | |
544 | + | let bH = if ((bG > 0)) | |
536 | 545 | then { | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | if (if (if ($isInstanceOf( | |
543 | - | then $isInstanceOf( | |
546 | + | let bI = fraction(bG, az, ax) | |
547 | + | let bJ = (bG - bI) | |
548 | + | let bK = invoke(aq, "userMaxDurationREADONLY", [toString(this)], nil) | |
549 | + | let bL = { | |
550 | + | let ad = bK | |
551 | + | if (if (if ($isInstanceOf(ad._1, "String")) | |
552 | + | then $isInstanceOf(ad._2, "Int") | |
544 | 553 | else false) | |
545 | - | then $isInstanceOf( | |
554 | + | then $isInstanceOf(ad, "(String, Int)") | |
546 | 555 | else false) | |
547 | 556 | then { | |
548 | - | let | |
549 | - | let | |
550 | - | if (( | |
551 | - | then invoke( | |
557 | + | let bM = ad._1 | |
558 | + | let bN = ad._2 | |
559 | + | if ((bI > 0)) | |
560 | + | then invoke(aq, bM, [bN], [AttachedPayment(au, bI)]) | |
552 | 561 | else unit | |
553 | 562 | } | |
554 | 563 | else h("invalid lock params") | |
555 | 564 | } | |
556 | - | if (( | |
565 | + | if ((bL == bL)) | |
557 | 566 | then { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
567 | + | let bO = { | |
568 | + | let bP = au | |
569 | + | let bQ = 0 | |
570 | + | let bR = p(at) | |
571 | + | let bS = "" | |
563 | 572 | valueOrErrorMessage({ | |
564 | - | let | |
565 | - | if ($isInstanceOf( | |
566 | - | then | |
573 | + | let aF = invoke(ar, "swap", [bQ, bR, bS], [AttachedPayment(bP, bJ)]) | |
574 | + | if ($isInstanceOf(aF, "Int")) | |
575 | + | then aF | |
567 | 576 | else unit | |
568 | 577 | }, f("invalid swap result")) | |
569 | 578 | } | |
570 | - | if (( | |
579 | + | if ((bO == bO)) | |
571 | 580 | then { | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
581 | + | let bT = { | |
582 | + | let bU = 0 | |
583 | + | let bV = true | |
575 | 584 | valueOrErrorMessage({ | |
576 | - | let | |
577 | - | if ($isInstanceOf( | |
578 | - | then | |
585 | + | let aF = invoke(bk, "putOneTknV2", [bU, bV], [AttachedPayment(at, bO)]) | |
586 | + | if ($isInstanceOf(aF, "Int")) | |
587 | + | then aF | |
579 | 588 | else unit | |
580 | 589 | }, f("invalid putOneTknV2 result")) | |
581 | 590 | } | |
582 | - | if (( | |
583 | - | then | |
591 | + | if ((bT == bT)) | |
592 | + | then bT | |
584 | 593 | else throw("Strict value is not equal to itself.") | |
585 | 594 | } | |
586 | 595 | else throw("Strict value is not equal to itself.") | |
588 | 597 | else throw("Strict value is not equal to itself.") | |
589 | 598 | } | |
590 | 599 | else unit | |
591 | - | if (( | |
600 | + | if ((bH == bH)) | |
592 | 601 | then { | |
593 | - | let | |
594 | - | let | |
602 | + | let by = valueOrElse(getInteger(L(E)), 0) | |
603 | + | let bW = if ((by > 0)) | |
595 | 604 | then { | |
596 | - | let | |
597 | - | if (( | |
605 | + | let aL = aG(aH, G) | |
606 | + | if ((aL == aL)) | |
598 | 607 | then { | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
608 | + | let bX = toInt(fraction(toBigInt(by), aL, e, FLOOR)) | |
609 | + | let bA = { | |
610 | + | let bY = E | |
611 | + | let bU = 0 | |
603 | 612 | valueOrErrorMessage({ | |
604 | - | let | |
605 | - | if ($isInstanceOf( | |
606 | - | then | |
613 | + | let aF = invoke(bk, "unstakeAndGetOneTknV2", [bX, p(bY), bU], nil) | |
614 | + | if ($isInstanceOf(aF, "Int")) | |
615 | + | then aF | |
607 | 616 | else unit | |
608 | 617 | }, f("invalid unstakeAndGetOneTknV2 result")) | |
609 | 618 | } | |
610 | - | if (( | |
619 | + | if ((bA == bA)) | |
611 | 620 | then { | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | ( | |
621 | + | let bZ = [Burn(G, by)] | |
622 | + | let ca = fraction(toBigInt(bA), e, toBigInt(by), FLOOR) | |
623 | + | let cb = [BinaryEntry(V(E, J), toBytes(ca)), StringEntry(W(E), toString(ca))] | |
624 | + | (bZ ++ cb) | |
616 | 625 | } | |
617 | 626 | else throw("Strict value is not equal to itself.") | |
618 | 627 | } | |
619 | 628 | else throw("Strict value is not equal to itself.") | |
620 | 629 | } | |
621 | 630 | else nil | |
622 | - | let | |
623 | - | let | |
631 | + | let bo = valueOrElse(getInteger(K(E)), 0) | |
632 | + | let cc = if ((bo > 0)) | |
624 | 633 | then { | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
634 | + | let bT = { | |
635 | + | let bU = 0 | |
636 | + | let bV = true | |
628 | 637 | valueOrErrorMessage({ | |
629 | - | let | |
630 | - | if ($isInstanceOf( | |
631 | - | then | |
638 | + | let aF = invoke(bk, "putOneTknV2", [bU, bV], [AttachedPayment(E, bo)]) | |
639 | + | if ($isInstanceOf(aF, "Int")) | |
640 | + | then aF | |
632 | 641 | else unit | |
633 | 642 | }, f("invalid putOneTknV2 result")) | |
634 | 643 | } | |
635 | - | if (( | |
644 | + | if ((bT == bT)) | |
636 | 645 | then { | |
637 | - | let | |
638 | - | if (( | |
646 | + | let aL = aG(aH, G) | |
647 | + | if ((aL == aL)) | |
639 | 648 | then { | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | ( | |
649 | + | let bt = toInt(fraction(toBigInt(bT), e, aL, FLOOR)) | |
650 | + | let cd = true | |
651 | + | let ce = [Reissue(G, bt, cd)] | |
652 | + | let cf = fraction(toBigInt(bo), e, toBigInt(bt)) | |
653 | + | let cg = [BinaryEntry(T(E, J), toBytes(cf)), StringEntry(U(E), toString(cf))] | |
654 | + | (ce ++ cg) | |
646 | 655 | } | |
647 | 656 | else throw("Strict value is not equal to itself.") | |
648 | 657 | } | |
649 | 658 | else throw("Strict value is not equal to itself.") | |
650 | 659 | } | |
651 | 660 | else nil | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | $Tuple2( | |
661 | + | let ch = (J + 1) | |
662 | + | let ci = aG(aH, G) | |
663 | + | let cj = (([IntegerEntry(H(E), ch), IntegerEntry(I(E, ch), height), IntegerEntry(L(E), 0), IntegerEntry(K(E), 0), BinaryEntry(R(E, J), toBytes(ci)), StringEntry(S(E), toString(ci))] ++ cc) ++ bW) | |
664 | + | $Tuple2(cj, toBytes(ci)) | |
656 | 665 | } | |
657 | 666 | else throw("Strict value is not equal to itself.") | |
658 | 667 | } | |
668 | 677 | } | |
669 | 678 | ||
670 | 679 | ||
671 | - | @Verifier( | |
672 | - | func | |
673 | - | let | |
674 | - | let | |
675 | - | if ($isInstanceOf( | |
680 | + | @Verifier(ck) | |
681 | + | func cl () = { | |
682 | + | let cm = { | |
683 | + | let ad = ac() | |
684 | + | if ($isInstanceOf(ad, "ByteVector")) | |
676 | 685 | then { | |
677 | - | let | |
678 | - | | |
686 | + | let ak = ad | |
687 | + | ak | |
679 | 688 | } | |
680 | - | else if ($isInstanceOf( | |
681 | - | then | |
689 | + | else if ($isInstanceOf(ad, "Unit")) | |
690 | + | then ck.senderPublicKey | |
682 | 691 | else throw("Match error") | |
683 | 692 | } | |
684 | - | sigVerify( | |
693 | + | sigVerify(ck.bodyBytes, ck.proofs[0], cm) | |
685 | 694 | } | |
686 | 695 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 8 | |
7 | 7 | ||
8 | 8 | let c = "WAVES" | |
9 | 9 | ||
10 | 10 | let d = 1000000000000000000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(d) | |
13 | 13 | ||
14 | 14 | func f (g) = makeString(["lp_staking_pools.ride:", g], " ") | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func h (g) = throw(f(g)) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func i (j,k) = f(makeString(["mandatory ", toString(j), ".", k, " is not defined"], "")) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func l (j,k) = valueOrErrorMessage(getString(j, k), i(j, k)) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func m (j,k) = valueOrErrorMessage(getInteger(j, k), i(j, k)) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (o) = if ((o == c)) | |
30 | 30 | then unit | |
31 | 31 | else fromBase58String(o) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func p (o) = if ((o == unit)) | |
35 | 35 | then c | |
36 | 36 | else toBase58String(value(o)) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func q (r) = if ((r >= 0)) | |
40 | 40 | then r | |
41 | 41 | else h("value should be positive") | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func s () = makeString(["%s", "factoryContract"], a) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func t () = makeString(["%s", "lpStakingContract"], a) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func u () = makeString(["%s", "stakingContract"], a) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func v () = makeString(["%s", "boostingContract"], a) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func w () = makeString(["%s", "swapContract"], a) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func x () = makeString(["%s", "assetsStoreContract"], a) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func y () = makeString(["%s", "usdnAssetId"], a) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func z () = makeString(["%s", "wxAssetId"], a) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func A () = makeString(["%s", "shutdown"], a) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func B () = makeString(["%s", "minDelay"], a) | |
72 | 72 | ||
73 | 73 | ||
74 | - | func C ( | |
74 | + | func C () = makeString(["%s", "lockFraction"], a) | |
75 | 75 | ||
76 | 76 | ||
77 | - | func | |
77 | + | func D (E) = makeString(["%s%s", p(E), "shareAssetId"], a) | |
78 | 78 | ||
79 | 79 | ||
80 | - | func | |
80 | + | func F (G) = makeString(["%s%s", p(G), "baseAssetId"], a) | |
81 | 81 | ||
82 | 82 | ||
83 | - | func H ( | |
83 | + | func H (E) = makeString(["%s%s", p(E), "period"], a) | |
84 | 84 | ||
85 | 85 | ||
86 | - | func | |
86 | + | func I (E,J) = makeString(["%s%s%d", p(E), "periodStartHeight", toString(J)], a) | |
87 | 87 | ||
88 | 88 | ||
89 | - | func K ( | |
89 | + | func K (E) = makeString(["%s%s", p(E), "baseAssetAmountToConvert"], a) | |
90 | 90 | ||
91 | 91 | ||
92 | - | func L ( | |
92 | + | func L (E) = makeString(["%s%s", p(E), "shareAssetAmountToConvert"], a) | |
93 | 93 | ||
94 | 94 | ||
95 | - | func | |
95 | + | func M (E,N) = makeString(["%s%s%s", p(E), toString(N), "baseAssetAmountToConvert"], a) | |
96 | 96 | ||
97 | 97 | ||
98 | - | func O ( | |
98 | + | func O (E,N) = makeString(["%s%s%s%s", p(E), toString(N), "baseAssetAmountToConvert", "period"], a) | |
99 | 99 | ||
100 | 100 | ||
101 | - | func P ( | |
101 | + | func P (E,N) = makeString(["%s%s%s", p(E), toString(N), "shareAssetAmountToConvert"], a) | |
102 | 102 | ||
103 | 103 | ||
104 | - | func Q ( | |
104 | + | func Q (E,N) = makeString(["%s%s%s%s", p(E), toString(N), "shareAssetAmountToConvert", "period"], a) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func R ( | |
107 | + | func R (E,J) = makeString(["%s%s%d", p(E), "price", toString(J)], a) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func S ( | |
110 | + | func S (E) = makeString(["%s%s%s%d%d", p(E), "price", "history", toString(lastBlock.height), toString(lastBlock.timestamp)], a) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func T ( | |
113 | + | func T (E,J) = makeString(["%s%s%d%s", p(E), "price", toString(J), "put"], a) | |
114 | 114 | ||
115 | 115 | ||
116 | - | func U ( | |
116 | + | func U (E) = makeString(["%s%s%s%s%d%d", p(E), "price", "history", "put", toString(lastBlock.height), toString(lastBlock.timestamp)], a) | |
117 | 117 | ||
118 | 118 | ||
119 | - | func V ( | |
119 | + | func V (E,J) = makeString(["%s%s%d%s", p(E), "price", toString(J), "get"], a) | |
120 | 120 | ||
121 | 121 | ||
122 | - | func W ( | |
122 | + | func W (E) = makeString(["%s%s%s%s%d%d", p(E), "price", "history", "get", toString(lastBlock.height), toString(lastBlock.timestamp)], a) | |
123 | 123 | ||
124 | 124 | ||
125 | - | func | |
125 | + | func X (E,Y,J,N,Z) = makeString(["%s%s%s%s", "history", Y, toString(N), toBase58String(Z), toString(height)], a) | |
126 | 126 | ||
127 | 127 | ||
128 | - | func aa () = "%s__ | |
128 | + | func aa () = "%s__managerPublicKey" | |
129 | 129 | ||
130 | 130 | ||
131 | - | func ab () = { | |
132 | - | let ac = getString(Z()) | |
133 | - | if ($isInstanceOf(ac, "String")) | |
131 | + | func ab () = "%s__pendingManagerPublicKey" | |
132 | + | ||
133 | + | ||
134 | + | func ac () = { | |
135 | + | let ad = getString(aa()) | |
136 | + | if ($isInstanceOf(ad, "String")) | |
134 | 137 | then { | |
135 | - | let | |
136 | - | fromBase58String( | |
138 | + | let ae = ad | |
139 | + | fromBase58String(ae) | |
137 | 140 | } | |
138 | - | else if ($isInstanceOf( | |
141 | + | else if ($isInstanceOf(ad, "Unit")) | |
139 | 142 | then unit | |
140 | 143 | else throw("Match error") | |
141 | 144 | } | |
142 | 145 | ||
143 | 146 | ||
144 | - | func | |
145 | - | let | |
146 | - | if ($isInstanceOf( | |
147 | + | func af () = { | |
148 | + | let ad = getString(ab()) | |
149 | + | if ($isInstanceOf(ad, "String")) | |
147 | 150 | then { | |
148 | - | let | |
149 | - | fromBase58String( | |
151 | + | let ae = ad | |
152 | + | fromBase58String(ae) | |
150 | 153 | } | |
151 | - | else if ($isInstanceOf( | |
154 | + | else if ($isInstanceOf(ad, "Unit")) | |
152 | 155 | then unit | |
153 | 156 | else throw("Match error") | |
154 | 157 | } | |
155 | 158 | ||
156 | 159 | ||
157 | - | let | |
160 | + | let ag = throw("Permission denied") | |
158 | 161 | ||
159 | - | func | |
162 | + | func ah (ai) = if ((ai.caller == this)) | |
160 | 163 | then true | |
161 | - | else | |
164 | + | else ag | |
162 | 165 | ||
163 | 166 | ||
164 | - | func | |
165 | - | let | |
166 | - | if ($isInstanceOf( | |
167 | + | func aj (ai) = { | |
168 | + | let ad = ac() | |
169 | + | if ($isInstanceOf(ad, "ByteVector")) | |
167 | 170 | then { | |
168 | - | let | |
169 | - | if (( | |
171 | + | let ak = ad | |
172 | + | if ((ai.callerPublicKey == ak)) | |
170 | 173 | then true | |
171 | - | else | |
174 | + | else ag | |
172 | 175 | } | |
173 | - | else if ($isInstanceOf( | |
174 | - | then | |
176 | + | else if ($isInstanceOf(ad, "Unit")) | |
177 | + | then ah(ai) | |
175 | 178 | else throw("Match error") | |
176 | 179 | } | |
177 | 180 | ||
178 | 181 | ||
179 | - | let | |
182 | + | let al = valueOrElse(getBoolean(A()), false) | |
180 | 183 | ||
181 | - | func | |
184 | + | func am (ai) = if (if (!(al)) | |
182 | 185 | then true | |
183 | - | else ai | |
186 | + | else aj(ai)) | |
184 | 187 | then true | |
185 | 188 | else throw("operation is disabled") | |
186 | 189 | ||
187 | 190 | ||
188 | - | let | |
191 | + | let an = addressFromStringValue(l(this, s())) | |
189 | 192 | ||
190 | - | let | |
193 | + | let ao = addressFromStringValue(l(this, t())) | |
191 | 194 | ||
192 | - | let | |
195 | + | let ap = addressFromStringValue(l(this, u())) | |
193 | 196 | ||
194 | - | let | |
197 | + | let aq = addressFromStringValue(l(this, v())) | |
195 | 198 | ||
196 | - | let | |
199 | + | let ar = addressFromStringValue(l(this, w())) | |
197 | 200 | ||
198 | - | let | |
201 | + | let as = addressFromStringValue(l(this, x())) | |
199 | 202 | ||
200 | - | let | |
203 | + | let at = n(l(this, y())) | |
201 | 204 | ||
202 | - | let | |
205 | + | let au = n(l(this, z())) | |
203 | 206 | ||
204 | - | let | |
207 | + | let av = 1440 | |
205 | 208 | ||
206 | - | let | |
209 | + | let aw = valueOrElse(getInteger(this, B()), av) | |
207 | 210 | ||
208 | - | func aw (ax) = { | |
209 | - | let ay = p(ax) | |
210 | - | let az = p(as) | |
211 | - | let aA = { | |
212 | - | let aB = invoke(am, "poolInfoREADONLY", [ay, az], nil) | |
213 | - | if ($isInstanceOf(aB, "(Address, ByteVector)")) | |
214 | - | then aB | |
211 | + | let ax = 100000000 | |
212 | + | ||
213 | + | let ay = fraction(1, ax, 2) | |
214 | + | ||
215 | + | let az = valueOrElse(getInteger(this, C()), ay) | |
216 | + | ||
217 | + | func aA (aB) = { | |
218 | + | let aC = p(aB) | |
219 | + | let aD = p(at) | |
220 | + | let aE = { | |
221 | + | let aF = invoke(an, "poolInfoREADONLY", [aC, aD], nil) | |
222 | + | if ($isInstanceOf(aF, "(Address, ByteVector)")) | |
223 | + | then aF | |
215 | 224 | else unit | |
216 | 225 | } | |
217 | - | | |
226 | + | aE | |
218 | 227 | } | |
219 | 228 | ||
220 | 229 | ||
221 | - | func | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | if ($isInstanceOf( | |
227 | - | then | |
230 | + | func aG (aH,G) = { | |
231 | + | let aI = valueOrErrorMessage(assetInfo(G), "failed to get share asset info") | |
232 | + | let aJ = aI.quantity | |
233 | + | let aK = q(valueOrErrorMessage({ | |
234 | + | let aF = invoke(ap, "stakedByUserREADONLY", [p(aH), toString(this)], nil) | |
235 | + | if ($isInstanceOf(aF, "Int")) | |
236 | + | then aF | |
228 | 237 | else unit | |
229 | 238 | }, f("invalid stakedByUserREADONLY result"))) | |
230 | - | let | |
239 | + | let aL = if ((aJ == 0)) | |
231 | 240 | then e | |
232 | - | else fraction(toBigInt( | |
233 | - | | |
241 | + | else fraction(toBigInt(aK), e, toBigInt(aJ), FLOOR) | |
242 | + | aL | |
234 | 243 | } | |
235 | 244 | ||
236 | 245 | ||
237 | - | @Callable( | |
238 | - | func setManager ( | |
239 | - | let | |
240 | - | if (( | |
246 | + | @Callable(ai) | |
247 | + | func setManager (aM) = { | |
248 | + | let aN = aj(ai) | |
249 | + | if ((aN == aN)) | |
241 | 250 | then { | |
242 | - | let | |
243 | - | if (( | |
244 | - | then [StringEntry( | |
251 | + | let aO = fromBase58String(aM) | |
252 | + | if ((aO == aO)) | |
253 | + | then [StringEntry(ab(), aM)] | |
245 | 254 | else throw("Strict value is not equal to itself.") | |
246 | 255 | } | |
247 | 256 | else throw("Strict value is not equal to itself.") | |
248 | 257 | } | |
249 | 258 | ||
250 | 259 | ||
251 | 260 | ||
252 | - | @Callable( | |
261 | + | @Callable(ai) | |
253 | 262 | func confirmManager () = { | |
254 | - | let | |
255 | - | let | |
263 | + | let aP = af() | |
264 | + | let aQ = if (isDefined(aP)) | |
256 | 265 | then true | |
257 | 266 | else h("no pending manager") | |
258 | - | if (( | |
267 | + | if ((aQ == aQ)) | |
259 | 268 | then { | |
260 | - | let | |
269 | + | let aR = if ((ai.callerPublicKey == value(aP))) | |
261 | 270 | then true | |
262 | 271 | else h("you are not pending manager") | |
263 | - | if (( | |
264 | - | then [StringEntry( | |
272 | + | if ((aR == aR)) | |
273 | + | then [StringEntry(aa(), toBase58String(value(aP))), DeleteEntry(ab())] | |
265 | 274 | else throw("Strict value is not equal to itself.") | |
266 | 275 | } | |
267 | 276 | else throw("Strict value is not equal to itself.") | |
268 | 277 | } | |
269 | 278 | ||
270 | 279 | ||
271 | 280 | ||
272 | - | @Callable( | |
273 | - | func create ( | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
281 | + | @Callable(ai) | |
282 | + | func create (aS,aT,aU,aV,aW) = { | |
283 | + | let aX = "LP_STAKING_POOLS" | |
284 | + | let E = n(aS) | |
285 | + | let aY = [aj(ai), if (isDefined(aA(E))) | |
277 | 286 | then true | |
278 | 287 | else h("invalid base asset")] | |
279 | - | if (( | |
288 | + | if ((aY == aY)) | |
280 | 289 | then { | |
281 | - | let | |
282 | - | if (( | |
290 | + | let aZ = [IntegerEntry(H(E), 0)] | |
291 | + | if ((aT == "")) | |
283 | 292 | then { | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
289 | - | let | |
290 | - | if (( | |
293 | + | let ba = 1 | |
294 | + | let bb = Issue(aU, aV, ba, b, true) | |
295 | + | let bc = calculateAssetId(bb) | |
296 | + | let bd = Burn(bc, ba) | |
297 | + | let be = toBase58String(bc) | |
298 | + | let bf = invoke(as, "createOrUpdate", [be, aW, false], nil) | |
299 | + | if ((bf == bf)) | |
291 | 300 | then { | |
292 | - | let | |
293 | - | if (( | |
294 | - | then $Tuple2(( | |
301 | + | let bg = invoke(as, "addLabel", [be, aX], nil) | |
302 | + | if ((bg == bg)) | |
303 | + | then $Tuple2((aZ ++ [bb, bd, StringEntry(D(E), be), StringEntry(F(bc), aS)]), be) | |
295 | 304 | else throw("Strict value is not equal to itself.") | |
296 | 305 | } | |
297 | 306 | else throw("Strict value is not equal to itself.") | |
298 | 307 | } | |
299 | 308 | else { | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
309 | + | let G = fromBase58String(aT) | |
310 | + | let aI = valueOrErrorMessage(assetInfo(G), f("invalid share asset id")) | |
311 | + | let bh = if ((aI.issuer == ao)) | |
303 | 312 | then true | |
304 | 313 | else h("invalid share asset id issuer") | |
305 | - | if (( | |
306 | - | then $Tuple2(( | |
314 | + | if ((bh == bh)) | |
315 | + | then $Tuple2((aZ ++ [StringEntry(D(E), aT), StringEntry(D(G), aS)]), aT) | |
307 | 316 | else throw("Strict value is not equal to itself.") | |
308 | 317 | } | |
309 | 318 | } | |
310 | 319 | else throw("Strict value is not equal to itself.") | |
311 | 320 | } | |
312 | 321 | ||
313 | 322 | ||
314 | 323 | ||
315 | - | @Callable( | |
324 | + | @Callable(ai) | |
316 | 325 | func put () = { | |
317 | - | let | |
318 | - | then | |
326 | + | let bi = if ((size(ai.payments) == 1)) | |
327 | + | then ai.payments[0] | |
319 | 328 | else h("exactly 1 payment is expected") | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
329 | + | let E = bi.assetId | |
330 | + | let N = ai.caller | |
331 | + | let aY = [am(ai), if (isDefined(getString(D(E)))) | |
323 | 332 | then true | |
324 | 333 | else h("invalid asset")] | |
325 | - | if (( | |
334 | + | if ((aY == aY)) | |
326 | 335 | then { | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
336 | + | let bj = valueOrErrorMessage(aA(E), f("invalid asset")) | |
337 | + | let bk = bj._1 | |
338 | + | let aH = bj._2 | |
339 | + | let J = value(getInteger(H(E))) | |
340 | + | let bl = getInteger(O(E, N)) | |
341 | + | let bm = if ((bl == unit)) | |
333 | 342 | then unit | |
334 | 343 | else { | |
335 | - | let | |
336 | - | if (( | |
344 | + | let bn = value(bl) | |
345 | + | if ((bn == J)) | |
337 | 346 | then unit | |
338 | - | else invoke(this, "claimShareAsset", [p( | |
347 | + | else invoke(this, "claimShareAsset", [p(E), toString(N)], nil) | |
339 | 348 | } | |
340 | - | if (( | |
349 | + | if ((bm == bm)) | |
341 | 350 | then { | |
342 | - | let | |
343 | - | let | |
344 | - | $Tuple2([IntegerEntry( | |
351 | + | let bo = valueOrElse(getInteger(K(E)), 0) | |
352 | + | let bp = valueOrElse(getInteger(M(E, N)), 0) | |
353 | + | $Tuple2([IntegerEntry(K(E), (bo + bi.amount)), IntegerEntry(M(E, N), (bp + bi.amount)), IntegerEntry(O(E, N), J), IntegerEntry(X(E, "put", J, N, ai.transactionId), bi.amount)], unit) | |
345 | 354 | } | |
346 | 355 | else throw("Strict value is not equal to itself.") | |
347 | 356 | } | |
348 | 357 | else throw("Strict value is not equal to itself.") | |
349 | 358 | } | |
350 | 359 | ||
351 | 360 | ||
352 | 361 | ||
353 | - | @Callable( | |
354 | - | func claimShareAsset ( | |
355 | - | let | |
356 | - | if (( | |
362 | + | @Callable(ai) | |
363 | + | func claimShareAsset (aS,bq) = { | |
364 | + | let aY = [am(ai)] | |
365 | + | if ((aY == aY)) | |
357 | 366 | then { | |
358 | - | let | |
359 | - | then | |
367 | + | let N = if ((bq == "")) | |
368 | + | then ai.caller | |
360 | 369 | else { | |
361 | - | let | |
362 | - | if (( | |
363 | - | then valueOrErrorMessage(addressFromString( | |
370 | + | let aN = ah(ai) | |
371 | + | if ((aN == aN)) | |
372 | + | then valueOrErrorMessage(addressFromString(bq), f("invalid user address")) | |
364 | 373 | else throw("Strict value is not equal to itself.") | |
365 | 374 | } | |
366 | - | if (( | |
375 | + | if ((N == N)) | |
367 | 376 | then { | |
368 | - | let | |
369 | - | let | |
370 | - | if (( | |
377 | + | let E = n(aS) | |
378 | + | let G = value(n(valueOrErrorMessage(getString(D(E)), f("invalid base asset id")))) | |
379 | + | if ((G == G)) | |
371 | 380 | then { | |
372 | - | let | |
373 | - | if (( | |
381 | + | let J = valueOrErrorMessage(getInteger(H(E)), f("invalid period")) | |
382 | + | if ((J == J)) | |
374 | 383 | then { | |
375 | - | let | |
376 | - | let | |
384 | + | let bp = valueOrElse(getInteger(M(E, N)), 0) | |
385 | + | let br = if ((bp > 0)) | |
377 | 386 | then true | |
378 | 387 | else h("nothing to claim") | |
379 | - | if (( | |
388 | + | if ((br == br)) | |
380 | 389 | then { | |
381 | - | let | |
382 | - | let | |
390 | + | let bn = valueOrErrorMessage(getInteger(O(E, N)), f("failed to get period")) | |
391 | + | let bs = if ((J > bn)) | |
383 | 392 | then true | |
384 | 393 | else h("invalid period") | |
385 | - | if (( | |
394 | + | if ((bs == bs)) | |
386 | 395 | then { | |
387 | - | let | |
388 | - | let | |
389 | - | $Tuple2([IntegerEntry( | |
396 | + | let aL = toBigInt(valueOrErrorMessage(getBinary(T(E, bn)), f("failed to get price"))) | |
397 | + | let bt = toInt(fraction(toBigInt(bp), e, aL)) | |
398 | + | $Tuple2([IntegerEntry(M(E, N), 0), ScriptTransfer(N, bt, G), IntegerEntry(X(E, "claimShareAsset", J, N, ai.transactionId), bt)], unit) | |
390 | 399 | } | |
391 | 400 | else throw("Strict value is not equal to itself.") | |
392 | 401 | } | |
393 | 402 | else throw("Strict value is not equal to itself.") | |
394 | 403 | } | |
395 | 404 | else throw("Strict value is not equal to itself.") | |
396 | 405 | } | |
397 | 406 | else throw("Strict value is not equal to itself.") | |
398 | 407 | } | |
399 | 408 | else throw("Strict value is not equal to itself.") | |
400 | 409 | } | |
401 | 410 | else throw("Strict value is not equal to itself.") | |
402 | 411 | } | |
403 | 412 | ||
404 | 413 | ||
405 | 414 | ||
406 | - | @Callable( | |
415 | + | @Callable(ai) | |
407 | 416 | func get () = { | |
408 | - | let | |
409 | - | if (( | |
417 | + | let aY = [am(ai)] | |
418 | + | if ((aY == aY)) | |
410 | 419 | then { | |
411 | - | let | |
412 | - | then | |
420 | + | let bi = if ((size(ai.payments) == 1)) | |
421 | + | then ai.payments[0] | |
413 | 422 | else h("exactly 1 payment is expected") | |
414 | - | let | |
415 | - | let | |
416 | - | if (( | |
423 | + | let G = bi.assetId | |
424 | + | let E = value(n(valueOrErrorMessage(getString(F(G)), f("invalid share asset id")))) | |
425 | + | if ((E == E)) | |
417 | 426 | then { | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
427 | + | let N = ai.caller | |
428 | + | let bu = valueOrErrorMessage(aA(E), f("invalid asset")) | |
429 | + | let bk = bu._1 | |
430 | + | let aH = bu._2 | |
431 | + | let J = value(getInteger(H(E))) | |
432 | + | let bv = getInteger(Q(E, N)) | |
433 | + | let bw = if ((bv == unit)) | |
425 | 434 | then unit | |
426 | 435 | else { | |
427 | - | let | |
428 | - | if (( | |
436 | + | let bx = value(bv) | |
437 | + | if ((bx == J)) | |
429 | 438 | then unit | |
430 | - | else invoke(this, "claimBaseAsset", [ | |
439 | + | else invoke(this, "claimBaseAsset", [N], nil) | |
431 | 440 | } | |
432 | - | if (( | |
441 | + | if ((bw == bw)) | |
433 | 442 | then { | |
434 | - | let | |
435 | - | let | |
436 | - | $Tuple2([IntegerEntry( | |
443 | + | let by = valueOrElse(getInteger(L(E)), 0) | |
444 | + | let bz = valueOrElse(getInteger(P(E, N)), 0) | |
445 | + | $Tuple2([IntegerEntry(L(E), (by + bi.amount)), IntegerEntry(P(E, N), (bz + bi.amount)), IntegerEntry(Q(E, N), J), IntegerEntry(X(E, "get", J, N, ai.transactionId), bi.amount)], unit) | |
437 | 446 | } | |
438 | 447 | else throw("Strict value is not equal to itself.") | |
439 | 448 | } | |
440 | 449 | else throw("Strict value is not equal to itself.") | |
441 | 450 | } | |
442 | 451 | else throw("Strict value is not equal to itself.") | |
443 | 452 | } | |
444 | 453 | ||
445 | 454 | ||
446 | 455 | ||
447 | - | @Callable( | |
448 | - | func claimBaseAsset ( | |
449 | - | let | |
450 | - | if (( | |
456 | + | @Callable(ai) | |
457 | + | func claimBaseAsset (aS,bq) = { | |
458 | + | let aY = [am(ai)] | |
459 | + | if ((aY == aY)) | |
451 | 460 | then { | |
452 | - | let | |
453 | - | then | |
461 | + | let N = if ((bq == "")) | |
462 | + | then ai.caller | |
454 | 463 | else { | |
455 | - | let | |
456 | - | if (( | |
457 | - | then valueOrErrorMessage(addressFromString( | |
464 | + | let aN = ah(ai) | |
465 | + | if ((aN == aN)) | |
466 | + | then valueOrErrorMessage(addressFromString(bq), f("invalid user address")) | |
458 | 467 | else throw("Strict value is not equal to itself.") | |
459 | 468 | } | |
460 | - | if (( | |
469 | + | if ((N == N)) | |
461 | 470 | then { | |
462 | - | let | |
463 | - | let | |
464 | - | if (( | |
471 | + | let E = n(aS) | |
472 | + | let G = value(n(valueOrErrorMessage(getString(D(E)), f("invalid base asset id")))) | |
473 | + | if ((G == G)) | |
465 | 474 | then { | |
466 | - | let | |
467 | - | if (( | |
475 | + | let J = valueOrErrorMessage(getInteger(H(E)), f("invalid period")) | |
476 | + | if ((J == J)) | |
468 | 477 | then { | |
469 | - | let | |
470 | - | let | |
478 | + | let bz = valueOrElse(getInteger(P(E, N)), 0) | |
479 | + | let br = if ((bz > 0)) | |
471 | 480 | then true | |
472 | 481 | else h("nothing to claim") | |
473 | - | if (( | |
482 | + | if ((br == br)) | |
474 | 483 | then { | |
475 | - | let | |
476 | - | let | |
484 | + | let bx = valueOrErrorMessage(getInteger(Q(E, N)), f("failed to get period")) | |
485 | + | let bs = if ((J > bx)) | |
477 | 486 | then true | |
478 | 487 | else h("invalid period") | |
479 | - | if (( | |
488 | + | if ((bs == bs)) | |
480 | 489 | then { | |
481 | - | let | |
482 | - | let | |
483 | - | $Tuple2([IntegerEntry( | |
490 | + | let aL = toBigInt(valueOrErrorMessage(getBinary(V(E, bx)), f("failed to get price"))) | |
491 | + | let bA = toInt(fraction(toBigInt(bz), aL, e)) | |
492 | + | $Tuple2([IntegerEntry(P(E, N), 0), ScriptTransfer(N, bA, E), IntegerEntry(X(E, "claimBaseAsset", J, N, ai.transactionId), bA)], unit) | |
484 | 493 | } | |
485 | 494 | else throw("Strict value is not equal to itself.") | |
486 | 495 | } | |
487 | 496 | else throw("Strict value is not equal to itself.") | |
488 | 497 | } | |
489 | 498 | else throw("Strict value is not equal to itself.") | |
490 | 499 | } | |
491 | 500 | else throw("Strict value is not equal to itself.") | |
492 | 501 | } | |
493 | 502 | else throw("Strict value is not equal to itself.") | |
494 | 503 | } | |
495 | 504 | else throw("Strict value is not equal to itself.") | |
496 | 505 | } | |
497 | 506 | ||
498 | 507 | ||
499 | 508 | ||
500 | - | @Callable( | |
501 | - | func finalize ( | |
502 | - | let | |
503 | - | if (( | |
509 | + | @Callable(ai) | |
510 | + | func finalize (aS) = { | |
511 | + | let aY = [am(ai)] | |
512 | + | if ((aY == aY)) | |
504 | 513 | then { | |
505 | - | let | |
506 | - | let | |
507 | - | if (( | |
514 | + | let E = n(aS) | |
515 | + | let G = value(n(valueOrErrorMessage(getString(D(E)), f("invalid base asset id")))) | |
516 | + | if ((G == G)) | |
508 | 517 | then { | |
509 | - | let | |
510 | - | if (( | |
518 | + | let J = valueOrErrorMessage(getInteger(H(E)), f("invalid period")) | |
519 | + | if ((J == J)) | |
511 | 520 | then { | |
512 | - | let | |
513 | - | let | |
521 | + | let bB = getInteger(I(E, J)) | |
522 | + | let bC = if ((bB == unit)) | |
514 | 523 | then unit | |
515 | 524 | else { | |
516 | - | let | |
517 | - | let | |
518 | - | if (( | |
525 | + | let bD = (height - value(bB)) | |
526 | + | let bE = min([0, (aw - bD)]) | |
527 | + | if ((bE == 0)) | |
519 | 528 | then unit | |
520 | - | else h(makeString(["finalization will be possible in ", toString( | |
529 | + | else h(makeString(["finalization will be possible in ", toString(bE), " blocks"], "")) | |
521 | 530 | } | |
522 | - | if (( | |
531 | + | if ((bC == bC)) | |
523 | 532 | then { | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | if ($isInstanceOf( | |
530 | - | then | |
533 | + | let bF = valueOrErrorMessage(aA(E), f("invalid asset")) | |
534 | + | let bk = bF._1 | |
535 | + | let aH = bF._2 | |
536 | + | let bG = valueOrErrorMessage({ | |
537 | + | let aF = invoke(ap, "claimWx", [p(aH)], nil) | |
538 | + | if ($isInstanceOf(aF, "Int")) | |
539 | + | then aF | |
531 | 540 | else unit | |
532 | 541 | }, f("invalid claimWx result")) | |
533 | - | if (( | |
542 | + | if ((bG == bG)) | |
534 | 543 | then { | |
535 | - | let | |
544 | + | let bH = if ((bG > 0)) | |
536 | 545 | then { | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | if (if (if ($isInstanceOf( | |
543 | - | then $isInstanceOf( | |
546 | + | let bI = fraction(bG, az, ax) | |
547 | + | let bJ = (bG - bI) | |
548 | + | let bK = invoke(aq, "userMaxDurationREADONLY", [toString(this)], nil) | |
549 | + | let bL = { | |
550 | + | let ad = bK | |
551 | + | if (if (if ($isInstanceOf(ad._1, "String")) | |
552 | + | then $isInstanceOf(ad._2, "Int") | |
544 | 553 | else false) | |
545 | - | then $isInstanceOf( | |
554 | + | then $isInstanceOf(ad, "(String, Int)") | |
546 | 555 | else false) | |
547 | 556 | then { | |
548 | - | let | |
549 | - | let | |
550 | - | if (( | |
551 | - | then invoke( | |
557 | + | let bM = ad._1 | |
558 | + | let bN = ad._2 | |
559 | + | if ((bI > 0)) | |
560 | + | then invoke(aq, bM, [bN], [AttachedPayment(au, bI)]) | |
552 | 561 | else unit | |
553 | 562 | } | |
554 | 563 | else h("invalid lock params") | |
555 | 564 | } | |
556 | - | if (( | |
565 | + | if ((bL == bL)) | |
557 | 566 | then { | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
567 | + | let bO = { | |
568 | + | let bP = au | |
569 | + | let bQ = 0 | |
570 | + | let bR = p(at) | |
571 | + | let bS = "" | |
563 | 572 | valueOrErrorMessage({ | |
564 | - | let | |
565 | - | if ($isInstanceOf( | |
566 | - | then | |
573 | + | let aF = invoke(ar, "swap", [bQ, bR, bS], [AttachedPayment(bP, bJ)]) | |
574 | + | if ($isInstanceOf(aF, "Int")) | |
575 | + | then aF | |
567 | 576 | else unit | |
568 | 577 | }, f("invalid swap result")) | |
569 | 578 | } | |
570 | - | if (( | |
579 | + | if ((bO == bO)) | |
571 | 580 | then { | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
581 | + | let bT = { | |
582 | + | let bU = 0 | |
583 | + | let bV = true | |
575 | 584 | valueOrErrorMessage({ | |
576 | - | let | |
577 | - | if ($isInstanceOf( | |
578 | - | then | |
585 | + | let aF = invoke(bk, "putOneTknV2", [bU, bV], [AttachedPayment(at, bO)]) | |
586 | + | if ($isInstanceOf(aF, "Int")) | |
587 | + | then aF | |
579 | 588 | else unit | |
580 | 589 | }, f("invalid putOneTknV2 result")) | |
581 | 590 | } | |
582 | - | if (( | |
583 | - | then | |
591 | + | if ((bT == bT)) | |
592 | + | then bT | |
584 | 593 | else throw("Strict value is not equal to itself.") | |
585 | 594 | } | |
586 | 595 | else throw("Strict value is not equal to itself.") | |
587 | 596 | } | |
588 | 597 | else throw("Strict value is not equal to itself.") | |
589 | 598 | } | |
590 | 599 | else unit | |
591 | - | if (( | |
600 | + | if ((bH == bH)) | |
592 | 601 | then { | |
593 | - | let | |
594 | - | let | |
602 | + | let by = valueOrElse(getInteger(L(E)), 0) | |
603 | + | let bW = if ((by > 0)) | |
595 | 604 | then { | |
596 | - | let | |
597 | - | if (( | |
605 | + | let aL = aG(aH, G) | |
606 | + | if ((aL == aL)) | |
598 | 607 | then { | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
608 | + | let bX = toInt(fraction(toBigInt(by), aL, e, FLOOR)) | |
609 | + | let bA = { | |
610 | + | let bY = E | |
611 | + | let bU = 0 | |
603 | 612 | valueOrErrorMessage({ | |
604 | - | let | |
605 | - | if ($isInstanceOf( | |
606 | - | then | |
613 | + | let aF = invoke(bk, "unstakeAndGetOneTknV2", [bX, p(bY), bU], nil) | |
614 | + | if ($isInstanceOf(aF, "Int")) | |
615 | + | then aF | |
607 | 616 | else unit | |
608 | 617 | }, f("invalid unstakeAndGetOneTknV2 result")) | |
609 | 618 | } | |
610 | - | if (( | |
619 | + | if ((bA == bA)) | |
611 | 620 | then { | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | ( | |
621 | + | let bZ = [Burn(G, by)] | |
622 | + | let ca = fraction(toBigInt(bA), e, toBigInt(by), FLOOR) | |
623 | + | let cb = [BinaryEntry(V(E, J), toBytes(ca)), StringEntry(W(E), toString(ca))] | |
624 | + | (bZ ++ cb) | |
616 | 625 | } | |
617 | 626 | else throw("Strict value is not equal to itself.") | |
618 | 627 | } | |
619 | 628 | else throw("Strict value is not equal to itself.") | |
620 | 629 | } | |
621 | 630 | else nil | |
622 | - | let | |
623 | - | let | |
631 | + | let bo = valueOrElse(getInteger(K(E)), 0) | |
632 | + | let cc = if ((bo > 0)) | |
624 | 633 | then { | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
634 | + | let bT = { | |
635 | + | let bU = 0 | |
636 | + | let bV = true | |
628 | 637 | valueOrErrorMessage({ | |
629 | - | let | |
630 | - | if ($isInstanceOf( | |
631 | - | then | |
638 | + | let aF = invoke(bk, "putOneTknV2", [bU, bV], [AttachedPayment(E, bo)]) | |
639 | + | if ($isInstanceOf(aF, "Int")) | |
640 | + | then aF | |
632 | 641 | else unit | |
633 | 642 | }, f("invalid putOneTknV2 result")) | |
634 | 643 | } | |
635 | - | if (( | |
644 | + | if ((bT == bT)) | |
636 | 645 | then { | |
637 | - | let | |
638 | - | if (( | |
646 | + | let aL = aG(aH, G) | |
647 | + | if ((aL == aL)) | |
639 | 648 | then { | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | ( | |
649 | + | let bt = toInt(fraction(toBigInt(bT), e, aL, FLOOR)) | |
650 | + | let cd = true | |
651 | + | let ce = [Reissue(G, bt, cd)] | |
652 | + | let cf = fraction(toBigInt(bo), e, toBigInt(bt)) | |
653 | + | let cg = [BinaryEntry(T(E, J), toBytes(cf)), StringEntry(U(E), toString(cf))] | |
654 | + | (ce ++ cg) | |
646 | 655 | } | |
647 | 656 | else throw("Strict value is not equal to itself.") | |
648 | 657 | } | |
649 | 658 | else throw("Strict value is not equal to itself.") | |
650 | 659 | } | |
651 | 660 | else nil | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | $Tuple2( | |
661 | + | let ch = (J + 1) | |
662 | + | let ci = aG(aH, G) | |
663 | + | let cj = (([IntegerEntry(H(E), ch), IntegerEntry(I(E, ch), height), IntegerEntry(L(E), 0), IntegerEntry(K(E), 0), BinaryEntry(R(E, J), toBytes(ci)), StringEntry(S(E), toString(ci))] ++ cc) ++ bW) | |
664 | + | $Tuple2(cj, toBytes(ci)) | |
656 | 665 | } | |
657 | 666 | else throw("Strict value is not equal to itself.") | |
658 | 667 | } | |
659 | 668 | else throw("Strict value is not equal to itself.") | |
660 | 669 | } | |
661 | 670 | else throw("Strict value is not equal to itself.") | |
662 | 671 | } | |
663 | 672 | else throw("Strict value is not equal to itself.") | |
664 | 673 | } | |
665 | 674 | else throw("Strict value is not equal to itself.") | |
666 | 675 | } | |
667 | 676 | else throw("Strict value is not equal to itself.") | |
668 | 677 | } | |
669 | 678 | ||
670 | 679 | ||
671 | - | @Verifier( | |
672 | - | func | |
673 | - | let | |
674 | - | let | |
675 | - | if ($isInstanceOf( | |
680 | + | @Verifier(ck) | |
681 | + | func cl () = { | |
682 | + | let cm = { | |
683 | + | let ad = ac() | |
684 | + | if ($isInstanceOf(ad, "ByteVector")) | |
676 | 685 | then { | |
677 | - | let | |
678 | - | | |
686 | + | let ak = ad | |
687 | + | ak | |
679 | 688 | } | |
680 | - | else if ($isInstanceOf( | |
681 | - | then | |
689 | + | else if ($isInstanceOf(ad, "Unit")) | |
690 | + | then ck.senderPublicKey | |
682 | 691 | else throw("Match error") | |
683 | 692 | } | |
684 | - | sigVerify( | |
693 | + | sigVerify(ck.bodyBytes, ck.proofs[0], cm) | |
685 | 694 | } | |
686 | 695 |
github/deemru/w8io/169f3d6 297.41 ms ◑