tx · Fhb2MMagL1nTxsRqPYJ76k6Smc9M3UsFp2LxB1m4VN3p 3MpaDTfGahKAdXB9PeznNThKz6Nw1G2gxJB: -0.03000000 Waves 2022.11.30 15:11 [2339818] smart account 3MpaDTfGahKAdXB9PeznNThKz6Nw1G2gxJB > SELF 0.00000000 Waves
{ "type": 13, "id": "Fhb2MMagL1nTxsRqPYJ76k6Smc9M3UsFp2LxB1m4VN3p", "fee": 3000000, "feeAssetId": null, "timestamp": 1669810270254, "version": 1, "sender": "3MpaDTfGahKAdXB9PeznNThKz6Nw1G2gxJB", "senderPublicKey": "8xq2GREVKUe7SKE2XzJzQnB97tmj2C3rmEhTseHdpgXM", "proofs": [ "2yK49JvCwwDh2Wwr8LPL1Fg7kdTvCLcom1xd3KVsdXxUWCdgD8mJPM5EcXW5Tcwfawz9vbnZ4e5KYYFP2MBNFzSZ" ], "script": "base64:BgK8JwgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASAwoBCBIFCgMBAQESBAoCAQESBAoCCAESBAoCCAgSCwoJCAEBAgECCAQEEgYKBAgIAQgSABIDCgEBEgMKAQESBAoCCAEiCmxQZGVjaW1hbHMiBnNjYWxlOCIMc2NhbGU4QmlnSW50IgdzY2FsZTE4Igp6ZXJvQmlnSW50IgRiaWcwIgRiaWcxIgRiaWcyIgt3YXZlc1N0cmluZyIDU0VQIgpQb29sQWN0aXZlIg9Qb29sUHV0RGlzYWJsZWQiE1Bvb2xNYXRjaGVyRGlzYWJsZWQiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiDWlkeFBvb2xTdGF0dXMiEGlkeFBvb2xMUEFzc2V0SWQiDWlkeEFtdEFzc2V0SWQiD2lkeFByaWNlQXNzZXRJZCIOaWR4QW10QXNzZXREY20iEGlkeFByaWNlQXNzZXREY20iDmlkeElBbXRBc3NldElkIhBpZHhJUHJpY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 84, "height": 2339818, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2tLF5Qbpxv5M5g1DPZPSXSDqn8xfdqJUJNKYqYxPvuMR Next: GFvZsnxndhvw4SJE6GRje3uX9nSqq17eqmrKe2cDufTz Diff:
Old | New | Differences | |
---|---|---|---|
111 | 111 | ||
112 | 112 | let ae = valueOrElse(getInteger(this, ac), ad) | |
113 | 113 | ||
114 | - | let af = makeString(["%s", "kLp"], j) | |
115 | - | ||
116 | - | let ag = makeString(["%s", "kLpRefreshedHeight"], j) | |
117 | - | ||
118 | - | let ah = makeString(["%s", "refreshKLpDelay"], j) | |
119 | - | ||
120 | - | let ai = 30 | |
121 | - | ||
122 | - | let aj = valueOrElse(getInteger(this, ah), ai) | |
123 | - | ||
124 | - | func ak () = "%s__factoryConfig" | |
114 | + | func af () = "%s__factoryConfig" | |
125 | 115 | ||
126 | 116 | ||
127 | - | func | |
117 | + | func ag () = "%s%s__matcher__publicKey" | |
128 | 118 | ||
129 | 119 | ||
130 | - | func | |
120 | + | func ah (ai) = (("%s%s%s__" + ai) + "__mappings__poolContract2LpAsset") | |
131 | 121 | ||
132 | 122 | ||
133 | - | func | |
123 | + | func aj (ak,al) = (((("%d%d%s__" + ak) + "__") + al) + "__config") | |
134 | 124 | ||
135 | 125 | ||
136 | - | func | |
126 | + | func am (an) = ("%s%s%s__mappings__baseAsset2internalId__" + an) | |
137 | 127 | ||
138 | 128 | ||
139 | - | func | |
129 | + | func ao () = "%s__shutdown" | |
140 | 130 | ||
141 | 131 | ||
142 | - | func | |
132 | + | func ap (aq) = ("%s%s__poolWeight__" + aq) | |
143 | 133 | ||
144 | 134 | ||
145 | - | func | |
135 | + | func ar () = "%s__allowedLpScriptHash" | |
146 | 136 | ||
147 | 137 | ||
148 | - | let | |
138 | + | let as = "%s__feeCollectorAddress" | |
149 | 139 | ||
150 | - | func | |
140 | + | func at (au,av,aw) = throw(((((("order validation failed: orderValid=" + toString(au)) + " senderValid=") + toString(av)) + " matcherValid=") + toString(aw))) | |
151 | 141 | ||
152 | 142 | ||
153 | - | func | |
143 | + | func ax (ay,az) = valueOrErrorMessage(getString(ay, az), makeString(["mandatory ", toString(ay), ".", az, " is not defined"], "")) | |
154 | 144 | ||
155 | 145 | ||
156 | - | func | |
146 | + | func aA (ay,az) = valueOrErrorMessage(getInteger(ay, az), makeString(["mandatory ", toString(ay), ".", az, " is not defined"], "")) | |
157 | 147 | ||
158 | 148 | ||
159 | - | func | |
149 | + | func aB (aC) = throw(makeString(["lp.ride:", aC], " ")) | |
160 | 150 | ||
161 | 151 | ||
162 | - | func aI (aH) = makeString(["lp.ride:", aH], " ") | |
152 | + | let aD = addressFromStringValue(ax(this, P())) | |
153 | + | ||
154 | + | let aE = addressFromStringValue(ax(aD, as)) | |
155 | + | ||
156 | + | func aF () = valueOrElse(getBoolean(aD, ao()), false) | |
163 | 157 | ||
164 | 158 | ||
165 | - | let aJ = addressFromStringValue(aC(this, P())) | |
166 | - | ||
167 | - | let aK = addressFromStringValue(aC(aJ, ax)) | |
168 | - | ||
169 | - | func aL () = valueOrElse(getBoolean(aJ, at()), false) | |
159 | + | func aG () = fromBase58String(ax(aD, ag())) | |
170 | 160 | ||
171 | 161 | ||
172 | - | func aM () = fromBase58String(aC(aJ, al())) | |
173 | - | ||
174 | - | ||
175 | - | func aN () = { | |
176 | - | let aO = aC(this, aa()) | |
177 | - | let aP = aC(this, ab()) | |
178 | - | let aq = aF(aJ, ar(aP)) | |
179 | - | let ap = aF(aJ, ar(aO)) | |
180 | - | split(aC(aJ, ao(toString(ap), toString(aq))), j) | |
162 | + | func aH () = { | |
163 | + | let aI = ax(this, aa()) | |
164 | + | let aJ = ax(this, ab()) | |
165 | + | let al = aA(aD, am(aJ)) | |
166 | + | let ak = aA(aD, am(aI)) | |
167 | + | split(ax(aD, aj(toString(ak), toString(al))), j) | |
181 | 168 | } | |
182 | 169 | ||
183 | 170 | ||
184 | - | func | |
171 | + | func aK (aL) = if ((aL == i)) | |
185 | 172 | then unit | |
186 | - | else fromBase58String( | |
173 | + | else fromBase58String(aL) | |
187 | 174 | ||
188 | 175 | ||
189 | - | func | |
176 | + | func aM (aL) = if ((aL == unit)) | |
190 | 177 | then i | |
191 | - | else toBase58String(value( | |
178 | + | else toBase58String(value(aL)) | |
192 | 179 | ||
193 | 180 | ||
194 | - | func | |
181 | + | func aN (aO) = $Tuple7(addressFromStringValue(aO[o]), parseIntValue(aO[p]), fromBase58String(aO[q]), aK(aO[r]), aK(aO[s]), parseIntValue(aO[t]), parseIntValue(aO[u])) | |
195 | 182 | ||
196 | 183 | ||
197 | - | let | |
184 | + | let aP = aN(aH()) | |
198 | 185 | ||
199 | - | let | |
186 | + | let aQ = aP | |
200 | 187 | ||
201 | - | let | |
188 | + | let aR = aQ._1 | |
202 | 189 | ||
203 | - | let | |
190 | + | let aS = aQ._2 | |
204 | 191 | ||
205 | - | let | |
192 | + | let aT = aQ._3 | |
206 | 193 | ||
207 | - | let | |
194 | + | let aU = aQ._4 | |
208 | 195 | ||
209 | - | let | |
196 | + | let aV = aQ._5 | |
210 | 197 | ||
211 | - | let | |
198 | + | let aW = aQ._6 | |
212 | 199 | ||
213 | - | let | |
200 | + | let aX = aQ._7 | |
214 | 201 | ||
215 | - | func | |
202 | + | func aY () = split(ax(aD, af()), j) | |
216 | 203 | ||
217 | 204 | ||
218 | - | let | |
205 | + | let aZ = valueOrErrorMessage(addressFromString(aY()[B]), "incorrect staking address") | |
219 | 206 | ||
220 | - | let | |
207 | + | let ba = valueOrErrorMessage(addressFromString(aY()[C]), "incorrect staking address") | |
221 | 208 | ||
222 | - | func | |
209 | + | func bb (bc,bd,be,bf,bg,bh,bi,bj,bk,bl) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bc), toString(bd), toString(be), toString(bf), toString(bg), toString(bh), toString(bi), toString(bj), toString(bk), toString(bl)], j) | |
223 | 210 | ||
224 | 211 | ||
225 | - | func | |
212 | + | func bm (bn,bo,bp,bf,bi,bj) = makeString(["%d%d%d%d%d%d", toString(bn), toString(bo), toString(bp), toString(bf), toString(bi), toString(bj)], j) | |
226 | 213 | ||
227 | 214 | ||
228 | - | func | |
215 | + | func bq (br) = if ((br == "WAVES")) | |
229 | 216 | then wavesBalance(this).available | |
230 | - | else assetBalance(this, fromBase58String( | |
217 | + | else assetBalance(this, fromBase58String(br)) | |
231 | 218 | ||
232 | 219 | ||
233 | - | func | |
220 | + | func bs (bt,bu) = fraction(bt, d, bu) | |
234 | 221 | ||
235 | 222 | ||
236 | - | func | |
237 | - | let | |
238 | - | let | |
239 | - | | |
223 | + | func bv (bw,bx,by,bz) = { | |
224 | + | let bA = D(by, bw) | |
225 | + | let bB = D(bz, bx) | |
226 | + | bs(bB, bA) | |
240 | 227 | } | |
241 | 228 | ||
242 | 229 | ||
243 | - | func | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | [ | |
230 | + | func bC (by,bz,bD) = { | |
231 | + | let bE = aH() | |
232 | + | let bF = parseIntValue(bE[t]) | |
233 | + | let bG = parseIntValue(bE[u]) | |
234 | + | let bH = bv(bF, bG, by, bz) | |
235 | + | let bu = D(by, bF) | |
236 | + | let bt = D(bz, bG) | |
237 | + | let bI = D(bD, b) | |
238 | + | let bJ = bs(bu, bI) | |
239 | + | let bK = bs(bt, bI) | |
240 | + | [bH, bJ, bK] | |
254 | 241 | } | |
255 | 242 | ||
256 | 243 | ||
257 | - | func | |
258 | - | let | |
259 | - | [G( | |
244 | + | func bL (by,bz,bD) = { | |
245 | + | let bM = bC(by, bz, bD) | |
246 | + | [G(bM[0], b), G(bM[1], b), G(bM[2], b)] | |
260 | 247 | } | |
261 | 248 | ||
262 | 249 | ||
263 | - | func | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | if (( | |
250 | + | func bN (bO,bP,bQ,X) = { | |
251 | + | let bE = aH() | |
252 | + | let bR = bE[q] | |
253 | + | let bS = bE[r] | |
254 | + | let bT = bE[s] | |
255 | + | let bw = parseIntValue(bE[t]) | |
256 | + | let bx = parseIntValue(bE[u]) | |
257 | + | let bU = bE[p] | |
258 | + | let bV = valueOrErrorMessage(assetInfo(fromBase58String(bR)), (("Asset " + bR) + " doesn't exist")).quantity | |
259 | + | if ((bR != bP)) | |
273 | 260 | then throw("Invalid asset passed.") | |
274 | 261 | else { | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
262 | + | let bW = bq(bS) | |
263 | + | let bX = D(bW, bw) | |
264 | + | let bY = bq(bT) | |
265 | + | let bZ = D(bY, bx) | |
266 | + | let ca = bs(bZ, bX) | |
267 | + | let cb = G(ca, b) | |
268 | + | let cc = D(bQ, b) | |
269 | + | let cd = D(bV, b) | |
270 | + | let ce = fraction(bX, cc, cd) | |
271 | + | let cf = fraction(bZ, cc, cd) | |
272 | + | let cg = G(ce, bw) | |
273 | + | let ch = G(cf, bx) | |
274 | + | let ci = if ((bO == "")) | |
288 | 275 | then nil | |
289 | - | else [ScriptTransfer(X, | |
276 | + | else [ScriptTransfer(X, cg, if ((bS == "WAVES")) | |
290 | 277 | then unit | |
291 | - | else fromBase58String( | |
278 | + | else fromBase58String(bS)), ScriptTransfer(X, ch, if ((bT == "WAVES")) | |
292 | 279 | then unit | |
293 | - | else fromBase58String( | |
294 | - | $Tuple10( | |
280 | + | else fromBase58String(bT)), StringEntry(Z(toString(X), bO), bm(cg, ch, bQ, cb, height, lastBlock.timestamp)), IntegerEntry(S(), cb), IntegerEntry(T(height, lastBlock.timestamp), cb)] | |
281 | + | $Tuple10(cg, ch, bS, bT, bW, bY, bV, ca, bU, ci) | |
295 | 282 | } | |
296 | 283 | } | |
297 | 284 | ||
298 | 285 | ||
299 | - | func | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | if (if (( | |
286 | + | func cj (bO,ck,cl,cm,cn,co,X,cp,cq) = { | |
287 | + | let bE = aH() | |
288 | + | let bR = fromBase58String(bE[q]) | |
289 | + | let cr = bE[r] | |
290 | + | let cs = bE[s] | |
291 | + | let ct = bE[v] | |
292 | + | let cu = bE[w] | |
293 | + | let bF = parseIntValue(bE[t]) | |
294 | + | let bG = parseIntValue(bE[u]) | |
295 | + | let bU = bE[p] | |
296 | + | let bV = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
297 | + | let cv = toBase58String(valueOrElse(cm, fromBase58String("WAVES"))) | |
298 | + | let cw = toBase58String(valueOrElse(co, fromBase58String("WAVES"))) | |
299 | + | if (if ((cr != cv)) | |
313 | 300 | then true | |
314 | - | else ( | |
301 | + | else (cs != cw)) | |
315 | 302 | then throw("Invalid amt or price asset passed.") | |
316 | 303 | else { | |
317 | - | let | |
318 | - | then | |
319 | - | else ( | |
320 | - | let | |
321 | - | then | |
322 | - | else ( | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
304 | + | let bW = if (cp) | |
305 | + | then bq(cr) | |
306 | + | else (bq(cr) - cl) | |
307 | + | let bY = if (cp) | |
308 | + | then bq(cs) | |
309 | + | else (bq(cs) - cn) | |
310 | + | let cx = D(cl, bF) | |
311 | + | let cy = D(cn, bG) | |
312 | + | let cz = bs(cy, cx) | |
313 | + | let bX = D(bW, bF) | |
314 | + | let bZ = D(bY, bG) | |
315 | + | let cA = if ((bV == 0)) | |
329 | 316 | then { | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | $Tuple5(G( | |
317 | + | let ca = e | |
318 | + | let cB = e | |
319 | + | let bI = pow((cx * cy), 0, toBigInt(5), 1, 0, DOWN) | |
320 | + | $Tuple5(G(bI, b), G(cx, bF), G(cy, bG), bs((bZ + cy), (bX + cx)), cB) | |
334 | 321 | } | |
335 | 322 | else { | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | if (if (( | |
340 | - | then ( | |
323 | + | let ca = bs(bZ, bX) | |
324 | + | let cB = fraction(O((ca - cz)), d, ca) | |
325 | + | let cC = D(ck, b) | |
326 | + | if (if ((ca != e)) | |
327 | + | then (cB > cC) | |
341 | 328 | else false) | |
342 | - | then throw(((("Price slippage " + toString( | |
329 | + | then throw(((("Price slippage " + toString(cB)) + " exceeded the passed limit of ") + toString(cC))) | |
343 | 330 | else { | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | then $Tuple2( | |
349 | - | else $Tuple2( | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | $Tuple5(G( | |
331 | + | let cd = D(bV, b) | |
332 | + | let cD = fraction(cx, ca, d) | |
333 | + | let cE = fraction(cy, d, ca) | |
334 | + | let cF = if ((cD > cy)) | |
335 | + | then $Tuple2(cE, cy) | |
336 | + | else $Tuple2(cx, cD) | |
337 | + | let cG = cF._1 | |
338 | + | let cH = cF._2 | |
339 | + | let bI = fraction(cd, cH, bZ) | |
340 | + | $Tuple5(G(bI, b), G(cG, bF), G(cH, bG), ca, cB) | |
354 | 341 | } | |
355 | 342 | } | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | if ((0 >= | |
343 | + | let cI = cA._1 | |
344 | + | let cJ = cA._2 | |
345 | + | let cK = cA._3 | |
346 | + | let cb = G(cA._4, b) | |
347 | + | let cL = G(cA._5, b) | |
348 | + | if ((0 >= cI)) | |
362 | 349 | then throw("Invalid calculations. LP calculated is less than zero.") | |
363 | 350 | else { | |
364 | - | let | |
351 | + | let cM = if (!(cq)) | |
365 | 352 | then 0 | |
366 | - | else | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | $Tuple13( | |
353 | + | else cI | |
354 | + | let cN = (cl - cJ) | |
355 | + | let cO = (cn - cK) | |
356 | + | let cP = [IntegerEntry(S(), cb), IntegerEntry(T(height, lastBlock.timestamp), cb), StringEntry(W(X, bO), bb(cJ, cK, cM, cb, ck, cL, height, lastBlock.timestamp, cN, cO))] | |
357 | + | $Tuple13(cI, cM, cb, bW, bY, bV, bR, bU, cP, cN, cO, cm, co) | |
371 | 358 | } | |
372 | 359 | } | |
373 | 360 | } | |
374 | 361 | ||
375 | 362 | ||
376 | - | func cW (cX,cY,cb) = { | |
377 | - | let cZ = fraction(pow((cX * cY), 0, toBigInt(5), 1, 0, DOWN), d, cb) | |
378 | - | cZ | |
363 | + | func cQ (cR) = { | |
364 | + | let bE = aH() | |
365 | + | let cS = bE[r] | |
366 | + | let cT = bE[s] | |
367 | + | let bU = parseIntValue(bE[p]) | |
368 | + | let bF = parseIntValue(bE[t]) | |
369 | + | let bG = parseIntValue(bE[u]) | |
370 | + | let cU = bq(cS) | |
371 | + | let cV = bq(cT) | |
372 | + | let ca = if ((cR.orderType == Buy)) | |
373 | + | then bv(bF, bG, (cU + cR.amount), cV) | |
374 | + | else bv(bF, bG, (cU - cR.amount), cV) | |
375 | + | let cb = G(ca, b) | |
376 | + | if (if (if (aF()) | |
377 | + | then true | |
378 | + | else (bU == m)) | |
379 | + | then true | |
380 | + | else (bU == n)) | |
381 | + | then throw("Exchange operations disabled") | |
382 | + | else { | |
383 | + | let cW = cR.assetPair.amountAsset | |
384 | + | let cX = if ((cW == unit)) | |
385 | + | then "WAVES" | |
386 | + | else toBase58String(value(cW)) | |
387 | + | let cY = cR.assetPair.priceAsset | |
388 | + | let cZ = if ((cY == unit)) | |
389 | + | then "WAVES" | |
390 | + | else toBase58String(value(cY)) | |
391 | + | if (if ((cX != cS)) | |
392 | + | then true | |
393 | + | else (cZ != cT)) | |
394 | + | then throw("Wrong order assets.") | |
395 | + | else { | |
396 | + | let da = cR.price | |
397 | + | let db = fraction(b, bG, bF) | |
398 | + | let dc = J(da, b, db) | |
399 | + | let dd = if ((cR.orderType == Buy)) | |
400 | + | then (cb >= dc) | |
401 | + | else (dc >= cb) | |
402 | + | true | |
403 | + | } | |
404 | + | } | |
379 | 405 | } | |
380 | 406 | ||
381 | 407 | ||
382 | - | func da (db,dc,dd) = { | |
383 | - | let de = (bw(aS(ba)) + db) | |
384 | - | let df = (bw(aS(bb)) + dc) | |
385 | - | let dg = (value(assetInfo(aZ)).quantity + dd) | |
386 | - | let cZ = cW(toBigInt(de), toBigInt(df), toBigInt(dg)) | |
387 | - | let dh = [IntegerEntry(ag, height), StringEntry(af, toString(cZ))] | |
388 | - | $Tuple2(dh, cZ) | |
389 | - | } | |
390 | - | ||
391 | - | ||
392 | - | func di (dj) = { | |
393 | - | let dk = dj.amount | |
394 | - | let dl = fraction(dj.amount, dj.price, b) | |
395 | - | let dm = if ((dj.orderType == Buy)) | |
396 | - | then $Tuple2(dk, -(dl)) | |
397 | - | else $Tuple2(-(dk), dl) | |
398 | - | let db = dm._1 | |
399 | - | let dc = dm._2 | |
400 | - | if (if (if (aL()) | |
401 | - | then true | |
402 | - | else (aY == m)) | |
403 | - | then true | |
404 | - | else (aY == n)) | |
405 | - | then throw("Exchange operations disabled") | |
406 | - | else if (if ((dj.assetPair.amountAsset != ba)) | |
407 | - | then true | |
408 | - | else (dj.assetPair.priceAsset != bb)) | |
409 | - | then throw("Wrong order assets.") | |
410 | - | else { | |
411 | - | let dn = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp")) | |
412 | - | let do = da(db, dc, 0) | |
413 | - | let dp = do._1 | |
414 | - | let dq = do._2 | |
415 | - | let dr = (dq > dn) | |
416 | - | dr | |
417 | - | } | |
418 | - | } | |
419 | - | ||
420 | - | ||
421 | - | func ds (dt) = if ((size(dt.payments) != 1)) | |
408 | + | func de (df) = if ((size(df.payments) != 1)) | |
422 | 409 | then throw("exactly 1 payment is expected") | |
423 | 410 | else { | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | if (if ( | |
411 | + | let dg = value(df.payments[0]) | |
412 | + | let bP = value(dg.assetId) | |
413 | + | let dh = dg.amount | |
414 | + | let cA = bN(toBase58String(df.transactionId), toBase58String(bP), dh, df.caller) | |
415 | + | let cg = cA._1 | |
416 | + | let ch = cA._2 | |
417 | + | let bU = parseIntValue(cA._9) | |
418 | + | let ci = cA._10 | |
419 | + | if (if (aF()) | |
433 | 420 | then true | |
434 | - | else ( | |
435 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
436 | - | else $Tuple5( | |
421 | + | else (bU == n)) | |
422 | + | then throw(("Get operation is blocked by admin. Status = " + toString(bU))) | |
423 | + | else $Tuple5(cg, ch, dh, bP, ci) | |
437 | 424 | } | |
438 | 425 | ||
439 | 426 | ||
440 | - | func | |
427 | + | func di (df,ck,cq) = if ((size(df.payments) != 2)) | |
441 | 428 | then throw("exactly 2 payments are expected") | |
442 | 429 | else { | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | if (if (if ( | |
430 | + | let dj = value(df.payments[0]) | |
431 | + | let dk = value(df.payments[1]) | |
432 | + | let dl = cj(toBase58String(df.transactionId), ck, dj.amount, dj.assetId, dk.amount, dk.assetId, toString(df.caller), false, cq) | |
433 | + | let bU = parseIntValue(dl._8) | |
434 | + | if (if (if (aF()) | |
448 | 435 | then true | |
449 | - | else ( | |
436 | + | else (bU == l)) | |
450 | 437 | then true | |
451 | - | else ( | |
452 | - | then throw(("Put operation is blocked by admin. Status = " + toString( | |
453 | - | else | |
438 | + | else (bU == n)) | |
439 | + | then throw(("Put operation is blocked by admin. Status = " + toString(bU))) | |
440 | + | else dl | |
454 | 441 | } | |
455 | 442 | ||
456 | 443 | ||
457 | - | func | |
458 | - | let | |
459 | - | if (( | |
444 | + | func dm (dn) = { | |
445 | + | let do = invoke(aD, "emit", [dn], nil) | |
446 | + | if ((do == do)) | |
460 | 447 | then { | |
461 | - | let | |
462 | - | let | |
463 | - | if ($isInstanceOf( | |
448 | + | let dp = { | |
449 | + | let dq = do | |
450 | + | if ($isInstanceOf(dq, "Address")) | |
464 | 451 | then { | |
465 | - | let | |
466 | - | invoke( | |
452 | + | let dr = dq | |
453 | + | invoke(dr, "emit", [dn], nil) | |
467 | 454 | } | |
468 | 455 | else unit | |
469 | 456 | } | |
470 | - | if (( | |
471 | - | then | |
457 | + | if ((dp == dp)) | |
458 | + | then dn | |
472 | 459 | else throw("Strict value is not equal to itself.") | |
473 | 460 | } | |
474 | 461 | else throw("Strict value is not equal to itself.") | |
475 | 462 | } | |
476 | 463 | ||
477 | 464 | ||
478 | - | func | |
479 | - | let | |
480 | - | $Tuple2(( | |
465 | + | func ds (dn) = { | |
466 | + | let dt = fraction(dn, ae, b) | |
467 | + | $Tuple2((dn - dt), dt) | |
481 | 468 | } | |
482 | 469 | ||
483 | 470 | ||
484 | - | func | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
471 | + | func du (dv,dw,X,Y) = { | |
472 | + | let dx = (Y == unit) | |
473 | + | let dy = bq(aM(aU)) | |
474 | + | let dz = bq(aM(aV)) | |
475 | + | let dA = if ((dw == aU)) | |
489 | 476 | then true | |
490 | - | else if (( | |
477 | + | else if ((dw == aV)) | |
491 | 478 | then false | |
492 | - | else | |
493 | - | let | |
494 | - | then $Tuple2( | |
495 | - | else if ( | |
496 | - | then $Tuple2(( | |
497 | - | else $Tuple2( | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | then $Tuple2( | |
502 | - | else $Tuple2(0, | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | then | |
516 | - | else | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
479 | + | else aB("invalid asset") | |
480 | + | let dB = if (dx) | |
481 | + | then $Tuple2(dy, dz) | |
482 | + | else if (dA) | |
483 | + | then $Tuple2((dy - dv), dz) | |
484 | + | else $Tuple2(dy, (dz - dv)) | |
485 | + | let dC = dB._1 | |
486 | + | let dD = dB._2 | |
487 | + | let dE = if (dA) | |
488 | + | then $Tuple2(dv, 0) | |
489 | + | else $Tuple2(0, dv) | |
490 | + | let dF = dE._1 | |
491 | + | let dG = dE._2 | |
492 | + | let dH = ds(dF)._1 | |
493 | + | let dI = ds(dG)._1 | |
494 | + | let dJ = ds(dv) | |
495 | + | let dK = dJ._1 | |
496 | + | let dt = dJ._2 | |
497 | + | let dL = (dC + dH) | |
498 | + | let dM = (dD + dI) | |
499 | + | let dN = bs(D(dM, aX), D(dL, aW)) | |
500 | + | let dO = G(dN, b) | |
501 | + | let dP = if (dA) | |
502 | + | then dC | |
503 | + | else dD | |
504 | + | let dQ = toBigInt(dP) | |
505 | + | let dR = toBigInt(valueOrErrorMessage(assetInfo(aT), (("asset " + toBase58String(aT)) + " doesn't exist")).quantity) | |
506 | + | let dS = if ((dR > f)) | |
520 | 507 | then true | |
521 | - | else | |
522 | - | if (( | |
508 | + | else aB("initial deposit requires all coins") | |
509 | + | if ((dS == dS)) | |
523 | 510 | then { | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
511 | + | let dT = toBigInt(dK) | |
512 | + | let dU = max([0, toInt(((dR * (sqrtBigInt((d + ((dT * d) / dQ)), 18, 18, DOWN) - d)) / d))]) | |
513 | + | let cP = if (dx) | |
527 | 514 | then nil | |
528 | - | else [IntegerEntry(S(), | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | then $Tuple2( | |
534 | - | else $Tuple2( | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | fraction(( | |
515 | + | else [IntegerEntry(S(), dO), IntegerEntry(T(height, lastBlock.timestamp), dO), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bb(dF, dG, dU, dO, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
516 | + | let dV = bs(D(dD, aX), D(dC, aW)) | |
517 | + | let dW = G(dV, b) | |
518 | + | let dX = { | |
519 | + | let dY = if (dA) | |
520 | + | then $Tuple2(dF, dC) | |
521 | + | else $Tuple2(dG, dD) | |
522 | + | let dn = dY._1 | |
523 | + | let dZ = dY._2 | |
524 | + | let ea = toInt(fraction(dR, toBigInt((dn / 2)), toBigInt(dZ))) | |
525 | + | fraction((dU - ea), b, ea) | |
539 | 526 | } | |
540 | - | $ | |
527 | + | $Tuple4(dU, cP, dt, dX) | |
541 | 528 | } | |
542 | 529 | else throw("Strict value is not equal to itself.") | |
543 | 530 | } | |
544 | 531 | ||
545 | 532 | ||
546 | - | func | |
547 | - | let | |
548 | - | let | |
533 | + | func eb (ec,dK,dw,X,Y) = { | |
534 | + | let dx = (Y == unit) | |
535 | + | let ed = [if ((dw == aT)) | |
549 | 536 | then true | |
550 | - | else | |
551 | - | if (( | |
537 | + | else aB("invalid lp asset")] | |
538 | + | if ((ed == ed)) | |
552 | 539 | then { | |
553 | - | let | |
540 | + | let ee = if ((ec == aU)) | |
554 | 541 | then true | |
555 | - | else if (( | |
542 | + | else if ((ec == aV)) | |
556 | 543 | then false | |
557 | - | else | |
558 | - | let | |
559 | - | then toBigInt( | |
560 | - | else toBigInt( | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | then | |
565 | - | else | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | then $Tuple4( | |
575 | - | else $Tuple4(0, | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
544 | + | else aB("invalid asset") | |
545 | + | let ef = if (ee) | |
546 | + | then toBigInt(bq(aM(aU))) | |
547 | + | else toBigInt(bq(aM(aV))) | |
548 | + | let eg = bq(aM(aU)) | |
549 | + | let eh = bq(aM(aV)) | |
550 | + | let ei = if (ee) | |
551 | + | then eg | |
552 | + | else eh | |
553 | + | let ej = toBigInt(ei) | |
554 | + | let dR = toBigInt(valueOrErrorMessage(assetInfo(aT), (("asset " + toBase58String(aT)) + " doesn't exist")).quantity) | |
555 | + | let ek = toBigInt(dK) | |
556 | + | let el = max([0, toInt(((ef * (d - pow((d - ((ek * d) / dR)), 18, h, 0, 18, DOWN))) / d))]) | |
557 | + | let em = ds(el) | |
558 | + | let en = em._1 | |
559 | + | let dt = em._2 | |
560 | + | let eo = if (ee) | |
561 | + | then $Tuple4(en, 0, (eg - el), eh) | |
562 | + | else $Tuple4(0, en, eg, (eh - el)) | |
563 | + | let ep = eo._1 | |
564 | + | let eq = eo._2 | |
565 | + | let er = eo._3 | |
566 | + | let es = eo._4 | |
567 | + | let dN = bs(D(es, aX), D(er, aW)) | |
568 | + | let dO = G(dN, b) | |
569 | + | let cP = if (dx) | |
583 | 570 | then nil | |
584 | - | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | fraction(( | |
571 | + | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bm(ep, eq, dK, dO, height, lastBlock.timestamp)), IntegerEntry(S(), dO), IntegerEntry(T(height, lastBlock.timestamp), dO)] | |
572 | + | let dV = bs(D(eh, aX), D(eg, aW)) | |
573 | + | let dW = G(dV, b) | |
574 | + | let dX = { | |
575 | + | let et = (toInt(fraction(ef, ek, dR)) * 2) | |
576 | + | fraction((en - et), b, et) | |
590 | 577 | } | |
591 | - | $ | |
578 | + | $Tuple4(en, cP, dt, dX) | |
592 | 579 | } | |
593 | 580 | else throw("Strict value is not equal to itself.") | |
594 | 581 | } | |
595 | 582 | ||
596 | 583 | ||
597 | - | func | |
598 | - | let | |
599 | - | if ($isInstanceOf( | |
584 | + | func eu () = { | |
585 | + | let dq = getString(Q()) | |
586 | + | if ($isInstanceOf(dq, "String")) | |
600 | 587 | then { | |
601 | - | let | |
602 | - | fromBase58String( | |
588 | + | let ev = dq | |
589 | + | fromBase58String(ev) | |
603 | 590 | } | |
604 | - | else if ($isInstanceOf( | |
591 | + | else if ($isInstanceOf(dq, "Unit")) | |
605 | 592 | then unit | |
606 | 593 | else throw("Match error") | |
607 | 594 | } | |
608 | 595 | ||
609 | 596 | ||
610 | - | func | |
611 | - | let | |
612 | - | if ($isInstanceOf( | |
597 | + | func ew () = { | |
598 | + | let dq = getString(R()) | |
599 | + | if ($isInstanceOf(dq, "String")) | |
613 | 600 | then { | |
614 | - | let | |
615 | - | fromBase58String( | |
601 | + | let ev = dq | |
602 | + | fromBase58String(ev) | |
616 | 603 | } | |
617 | - | else if ($isInstanceOf( | |
604 | + | else if ($isInstanceOf(dq, "Unit")) | |
618 | 605 | then unit | |
619 | 606 | else throw("Match error") | |
620 | 607 | } | |
621 | 608 | ||
622 | 609 | ||
623 | - | func | |
624 | - | let | |
625 | - | if ($isInstanceOf( | |
610 | + | func ex (df) = { | |
611 | + | let dq = eu() | |
612 | + | if ($isInstanceOf(dq, "ByteVector")) | |
626 | 613 | then { | |
627 | - | let | |
628 | - | ( | |
614 | + | let ey = dq | |
615 | + | (df.callerPublicKey == ey) | |
629 | 616 | } | |
630 | - | else if ($isInstanceOf( | |
631 | - | then ( | |
617 | + | else if ($isInstanceOf(dq, "Unit")) | |
618 | + | then (df.caller == this) | |
632 | 619 | else throw("Match error") | |
633 | 620 | } | |
634 | 621 | ||
635 | 622 | ||
636 | - | func | |
637 | - | let | |
638 | - | let | |
639 | - | if ($isInstanceOf( | |
623 | + | func ez (df) = { | |
624 | + | let eA = throw("Permission denied") | |
625 | + | let dq = eu() | |
626 | + | if ($isInstanceOf(dq, "ByteVector")) | |
640 | 627 | then { | |
641 | - | let | |
642 | - | if (( | |
628 | + | let ey = dq | |
629 | + | if ((df.callerPublicKey == ey)) | |
643 | 630 | then true | |
644 | - | else | |
631 | + | else eA | |
645 | 632 | } | |
646 | - | else if ($isInstanceOf( | |
647 | - | then if (( | |
633 | + | else if ($isInstanceOf(dq, "Unit")) | |
634 | + | then if ((df.caller == this)) | |
648 | 635 | then true | |
649 | - | else | |
636 | + | else eA | |
650 | 637 | else throw("Match error") | |
651 | 638 | } | |
652 | 639 | ||
653 | 640 | ||
654 | - | @Callable( | |
655 | - | func setManager ( | |
656 | - | let | |
657 | - | if (( | |
641 | + | @Callable(df) | |
642 | + | func setManager (eB) = { | |
643 | + | let eC = ez(df) | |
644 | + | if ((eC == eC)) | |
658 | 645 | then { | |
659 | - | let | |
660 | - | if (( | |
661 | - | then [StringEntry(R(), | |
646 | + | let eD = fromBase58String(eB) | |
647 | + | if ((eD == eD)) | |
648 | + | then [StringEntry(R(), eB)] | |
662 | 649 | else throw("Strict value is not equal to itself.") | |
663 | 650 | } | |
664 | 651 | else throw("Strict value is not equal to itself.") | |
666 | 653 | ||
667 | 654 | ||
668 | 655 | ||
669 | - | @Callable( | |
656 | + | @Callable(df) | |
670 | 657 | func confirmManager () = { | |
671 | - | let | |
672 | - | let | |
658 | + | let eE = ew() | |
659 | + | let eF = if (isDefined(eE)) | |
673 | 660 | then true | |
674 | 661 | else throw("No pending manager") | |
675 | - | if (( | |
662 | + | if ((eF == eF)) | |
676 | 663 | then { | |
677 | - | let | |
664 | + | let eG = if ((df.callerPublicKey == value(eE))) | |
678 | 665 | then true | |
679 | 666 | else throw("You are not pending manager") | |
680 | - | if (( | |
681 | - | then [StringEntry(Q(), toBase58String(value( | |
667 | + | if ((eG == eG)) | |
668 | + | then [StringEntry(Q(), toBase58String(value(eE))), DeleteEntry(R())] | |
682 | 669 | else throw("Strict value is not equal to itself.") | |
683 | 670 | } | |
684 | 671 | else throw("Strict value is not equal to itself.") | |
686 | 673 | ||
687 | 674 | ||
688 | 675 | ||
689 | - | @Callable( | |
690 | - | func put ( | |
676 | + | @Callable(df) | |
677 | + | func put (ck,eH) = if ((0 > ck)) | |
691 | 678 | then throw("Invalid slippageTolerance passed") | |
692 | 679 | else { | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | if (( | |
680 | + | let dl = di(df, ck, true) | |
681 | + | let cM = dl._2 | |
682 | + | let bR = dl._7 | |
683 | + | let ci = dl._9 | |
684 | + | let cN = dl._10 | |
685 | + | let cO = dl._11 | |
686 | + | let eI = dl._12 | |
687 | + | let eJ = dl._13 | |
688 | + | let do = invoke(aD, "emit", [cM], nil) | |
689 | + | if ((do == do)) | |
703 | 690 | then { | |
704 | - | let | |
705 | - | let | |
706 | - | if ($isInstanceOf( | |
691 | + | let dp = { | |
692 | + | let dq = do | |
693 | + | if ($isInstanceOf(dq, "Address")) | |
707 | 694 | then { | |
708 | - | let | |
709 | - | invoke( | |
695 | + | let dr = dq | |
696 | + | invoke(dr, "emit", [cM], nil) | |
710 | 697 | } | |
711 | 698 | else unit | |
712 | 699 | } | |
713 | - | if (( | |
700 | + | if ((dp == dp)) | |
714 | 701 | then { | |
715 | - | let | |
716 | - | then invoke( | |
702 | + | let eK = if ((cN > 0)) | |
703 | + | then invoke(ba, "put", nil, [AttachedPayment(eI, cN)]) | |
717 | 704 | else nil | |
718 | - | if (( | |
705 | + | if ((eK == eK)) | |
719 | 706 | then { | |
720 | - | let | |
721 | - | then invoke( | |
707 | + | let eL = if ((cO > 0)) | |
708 | + | then invoke(ba, "put", nil, [AttachedPayment(eJ, cO)]) | |
722 | 709 | else nil | |
723 | - | if (( | |
710 | + | if ((eL == eL)) | |
724 | 711 | then { | |
725 | - | let | |
712 | + | let eM = if (eH) | |
726 | 713 | then { | |
727 | - | let | |
728 | - | if (( | |
714 | + | let eN = invoke(aZ, "stake", nil, [AttachedPayment(bR, cM)]) | |
715 | + | if ((eN == eN)) | |
729 | 716 | then nil | |
730 | 717 | else throw("Strict value is not equal to itself.") | |
731 | 718 | } | |
732 | - | else [ScriptTransfer(dt.caller, cS, bX)] | |
733 | - | let fa = da(0, 0, 0) | |
734 | - | let fb = fa._1 | |
735 | - | let cZ = fa._2 | |
736 | - | ((co ++ eY) ++ fb) | |
719 | + | else [ScriptTransfer(df.caller, cM, bR)] | |
720 | + | (ci ++ eM) | |
737 | 721 | } | |
738 | 722 | else throw("Strict value is not equal to itself.") | |
739 | 723 | } | |
746 | 730 | ||
747 | 731 | ||
748 | 732 | ||
749 | - | @Callable( | |
750 | - | func putForFree ( | |
733 | + | @Callable(df) | |
734 | + | func putForFree (eO) = if ((0 > eO)) | |
751 | 735 | then throw("Invalid value passed") | |
752 | 736 | else { | |
753 | - | let dz = dw(dt, fc, false) | |
754 | - | let co = dz._9 | |
755 | - | let fd = da(0, 0, 0) | |
756 | - | let fb = fd._1 | |
757 | - | let cZ = fd._2 | |
758 | - | (co ++ fb) | |
737 | + | let dl = di(df, eO, false) | |
738 | + | dl._9 | |
759 | 739 | } | |
760 | 740 | ||
761 | 741 | ||
762 | 742 | ||
763 | - | @Callable( | |
764 | - | func putOneTkn ( | |
765 | - | let | |
766 | - | let | |
767 | - | if ($isInstanceOf( | |
768 | - | then | |
769 | - | else throw(($getType( | |
743 | + | @Callable(df) | |
744 | + | func putOneTkn (eP,eQ) = { | |
745 | + | let eR = { | |
746 | + | let eS = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
747 | + | if ($isInstanceOf(eS, "Boolean")) | |
748 | + | then eS | |
749 | + | else throw(($getType(eS) + " couldn't be cast to Boolean")) | |
770 | 750 | } | |
771 | - | let | |
751 | + | let eT = if (if (if (aF()) | |
772 | 752 | then true | |
773 | - | else ( | |
753 | + | else (aS == l)) | |
774 | 754 | then true | |
775 | - | else ( | |
755 | + | else (aS == n)) | |
776 | 756 | then true | |
777 | - | else | |
778 | - | let | |
757 | + | else eR | |
758 | + | let ed = [if (if (!(eT)) | |
779 | 759 | then true | |
780 | - | else | |
760 | + | else ex(df)) | |
781 | 761 | then true | |
782 | - | else | |
762 | + | else aB("put operation is blocked by admin"), if ((size(df.payments) == 1)) | |
783 | 763 | then true | |
784 | - | else | |
785 | - | if (( | |
764 | + | else aB("exactly 1 payment are expected")] | |
765 | + | if ((ed == ed)) | |
786 | 766 | then { | |
787 | - | let fj = dt.payments[0] | |
788 | - | let dK = fj.assetId | |
789 | - | let dJ = fj.amount | |
790 | - | let X = dt.caller | |
791 | - | let Y = dt.transactionId | |
792 | - | let fk = dI(dJ, dK, X, Y) | |
767 | + | let eU = df.payments[0] | |
768 | + | let dw = eU.assetId | |
769 | + | let dv = eU.amount | |
770 | + | let X = df.caller | |
771 | + | let Y = df.transactionId | |
772 | + | let eV = du(dv, dw, X, Y) | |
773 | + | let eW = eV._1 | |
774 | + | let cP = eV._2 | |
775 | + | let dt = eV._3 | |
776 | + | let eX = eV._4 | |
777 | + | let eY = if (if ((eP > 0)) | |
778 | + | then (eP > eW) | |
779 | + | else false) | |
780 | + | then aB(makeString(["amount to receive is less than ", toString(eP)], "")) | |
781 | + | else eW | |
782 | + | let do = dm(eY) | |
783 | + | if ((do == do)) | |
784 | + | then { | |
785 | + | let eM = if (eQ) | |
786 | + | then { | |
787 | + | let eZ = invoke(aZ, "stake", nil, [AttachedPayment(aT, eY)]) | |
788 | + | if ((eZ == eZ)) | |
789 | + | then nil | |
790 | + | else throw("Strict value is not equal to itself.") | |
791 | + | } | |
792 | + | else [ScriptTransfer(df.caller, eY, aT)] | |
793 | + | let fa = if ((dt > 0)) | |
794 | + | then [ScriptTransfer(aE, dt, dw)] | |
795 | + | else nil | |
796 | + | $Tuple2(((cP ++ eM) ++ fa), eY) | |
797 | + | } | |
798 | + | else throw("Strict value is not equal to itself.") | |
799 | + | } | |
800 | + | else throw("Strict value is not equal to itself.") | |
801 | + | } | |
802 | + | ||
803 | + | ||
804 | + | ||
805 | + | @Callable(df) | |
806 | + | func putOneTknREADONLY (dw,dv) = { | |
807 | + | let fb = du(dv, aK(dw), unit, unit) | |
808 | + | let eW = fb._1 | |
809 | + | let cP = fb._2 | |
810 | + | let dt = fb._3 | |
811 | + | let eX = fb._4 | |
812 | + | $Tuple2(nil, $Tuple3(eW, dt, eX)) | |
813 | + | } | |
814 | + | ||
815 | + | ||
816 | + | ||
817 | + | @Callable(df) | |
818 | + | func getOneTkn (fc,eP) = { | |
819 | + | let eR = { | |
820 | + | let eS = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
821 | + | if ($isInstanceOf(eS, "Boolean")) | |
822 | + | then eS | |
823 | + | else throw(($getType(eS) + " couldn't be cast to Boolean")) | |
824 | + | } | |
825 | + | let fd = if (if (aF()) | |
826 | + | then true | |
827 | + | else (aS == n)) | |
828 | + | then true | |
829 | + | else eR | |
830 | + | let ed = [if (if (!(fd)) | |
831 | + | then true | |
832 | + | else ex(df)) | |
833 | + | then true | |
834 | + | else aB("get operation is blocked by admin"), if ((size(df.payments) == 1)) | |
835 | + | then true | |
836 | + | else aB("exactly 1 payment are expected")] | |
837 | + | if ((ed == ed)) | |
838 | + | then { | |
839 | + | let ec = aK(fc) | |
840 | + | let eU = df.payments[0] | |
841 | + | let dw = eU.assetId | |
842 | + | let dK = eU.amount | |
843 | + | let X = df.caller | |
844 | + | let Y = df.transactionId | |
845 | + | let fe = eb(ec, dK, dw, X, Y) | |
846 | + | let ff = fe._1 | |
847 | + | let cP = fe._2 | |
848 | + | let dt = fe._3 | |
849 | + | let eX = fe._4 | |
850 | + | let dn = if (if ((eP > 0)) | |
851 | + | then (eP > ff) | |
852 | + | else false) | |
853 | + | then aB(makeString(["amount to receive is less than ", toString(eP)], "")) | |
854 | + | else ff | |
855 | + | let fg = invoke(aD, "burn", [dK], [AttachedPayment(dw, dK)]) | |
856 | + | if ((fg == fg)) | |
857 | + | then { | |
858 | + | let fh = [ScriptTransfer(X, dn, ec)] | |
859 | + | let fa = if ((dt > 0)) | |
860 | + | then [ScriptTransfer(aE, dt, ec)] | |
861 | + | else nil | |
862 | + | $Tuple2(((cP ++ fh) ++ fa), dn) | |
863 | + | } | |
864 | + | else throw("Strict value is not equal to itself.") | |
865 | + | } | |
866 | + | else throw("Strict value is not equal to itself.") | |
867 | + | } | |
868 | + | ||
869 | + | ||
870 | + | ||
871 | + | @Callable(df) | |
872 | + | func getOneTknREADONLY (ec,dK) = { | |
873 | + | let fi = eb(aK(ec), dK, aT, unit, unit) | |
874 | + | let ff = fi._1 | |
875 | + | let cP = fi._2 | |
876 | + | let dt = fi._3 | |
877 | + | let eX = fi._4 | |
878 | + | $Tuple2(nil, $Tuple3(ff, dt, eX)) | |
879 | + | } | |
880 | + | ||
881 | + | ||
882 | + | ||
883 | + | @Callable(df) | |
884 | + | func unstakeAndGetOneTkn (fj,fc,eP) = { | |
885 | + | let eR = { | |
886 | + | let eS = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
887 | + | if ($isInstanceOf(eS, "Boolean")) | |
888 | + | then eS | |
889 | + | else throw(($getType(eS) + " couldn't be cast to Boolean")) | |
890 | + | } | |
891 | + | let fd = if (if (aF()) | |
892 | + | then true | |
893 | + | else (aS == n)) | |
894 | + | then true | |
895 | + | else eR | |
896 | + | let ed = [if (if (!(fd)) | |
897 | + | then true | |
898 | + | else ex(df)) | |
899 | + | then true | |
900 | + | else aB("get operation is blocked by admin"), if ((size(df.payments) == 0)) | |
901 | + | then true | |
902 | + | else aB("no payments are expected")] | |
903 | + | if ((ed == ed)) | |
904 | + | then { | |
905 | + | let ec = aK(fc) | |
906 | + | let X = df.caller | |
907 | + | let Y = df.transactionId | |
908 | + | let fk = invoke(aZ, "unstake", [toBase58String(aT), fj], nil) | |
793 | 909 | if ((fk == fk)) | |
794 | 910 | then { | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | then ( | |
911 | + | let fl = eb(ec, fj, aT, X, Y) | |
912 | + | let ff = fl._1 | |
913 | + | let cP = fl._2 | |
914 | + | let dt = fl._3 | |
915 | + | let eX = fl._4 | |
916 | + | let dn = if (if ((eP > 0)) | |
917 | + | then (eP > ff) | |
802 | 918 | else false) | |
803 | - | then | |
804 | - | else | |
805 | - | let | |
806 | - | if (( | |
919 | + | then aB(makeString(["amount to receive is less than ", toString(eP)], "")) | |
920 | + | else ff | |
921 | + | let fg = invoke(aD, "burn", [fj], [AttachedPayment(aT, fj)]) | |
922 | + | if ((fg == fg)) | |
807 | 923 | then { | |
808 | - | let eY = if (ff) | |
809 | - | then { | |
810 | - | let fo = invoke(bf, "stake", nil, [AttachedPayment(aZ, fn)]) | |
811 | - | if ((fo == fo)) | |
812 | - | then nil | |
813 | - | else throw("Strict value is not equal to itself.") | |
814 | - | } | |
815 | - | else [ScriptTransfer(dt.caller, fn, aZ)] | |
816 | - | let fp = if ((dH > 0)) | |
817 | - | then [ScriptTransfer(aK, dH, dK)] | |
924 | + | let fh = [ScriptTransfer(df.caller, dn, ec)] | |
925 | + | let fa = if ((dt > 0)) | |
926 | + | then [ScriptTransfer(aE, dt, ec)] | |
818 | 927 | else nil | |
819 | - | let fq = if ((this == aK)) | |
820 | - | then $Tuple2(0, 0) | |
821 | - | else if (dO) | |
822 | - | then $Tuple2(-(dH), 0) | |
823 | - | else $Tuple2(0, -(dH)) | |
824 | - | let db = fq._1 | |
825 | - | let dc = fq._2 | |
826 | - | let fr = da(db, dc, 0) | |
827 | - | let fb = fr._1 | |
828 | - | let cZ = fr._2 | |
829 | - | $Tuple2((((cV ++ eY) ++ fp) ++ fb), fn) | |
928 | + | $Tuple2(((cP ++ fh) ++ fa), dn) | |
830 | 929 | } | |
831 | 930 | else throw("Strict value is not equal to itself.") | |
832 | 931 | } | |
837 | 936 | ||
838 | 937 | ||
839 | 938 | ||
840 | - | @Callable(dt) | |
841 | - | func putOneTknREADONLY (dK,dJ) = { | |
842 | - | let fs = dI(dJ, aQ(dK), unit, unit) | |
843 | - | let fm = fs._1 | |
844 | - | let cV = fs._2 | |
845 | - | let dH = fs._3 | |
846 | - | let fl = fs._4 | |
847 | - | let dO = fs._5 | |
848 | - | $Tuple2(nil, $Tuple3(fm, dH, fl)) | |
849 | - | } | |
850 | - | ||
851 | - | ||
852 | - | ||
853 | - | @Callable(dt) | |
854 | - | func getOneTkn (ft,fe) = { | |
855 | - | let fg = { | |
856 | - | let fh = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
857 | - | if ($isInstanceOf(fh, "Boolean")) | |
858 | - | then fh | |
859 | - | else throw(($getType(fh) + " couldn't be cast to Boolean")) | |
860 | - | } | |
861 | - | let fu = if (if (aL()) | |
862 | - | then true | |
863 | - | else (aY == n)) | |
864 | - | then true | |
865 | - | else fg | |
866 | - | let ep = [if (if (!(fu)) | |
867 | - | then true | |
868 | - | else eJ(dt)) | |
869 | - | then true | |
870 | - | else aG("get operation is blocked by admin"), if ((size(dt.payments) == 1)) | |
871 | - | then true | |
872 | - | else aG("exactly 1 payment are expected")] | |
873 | - | if ((ep == ep)) | |
874 | - | then { | |
875 | - | let eo = aQ(ft) | |
876 | - | let fj = dt.payments[0] | |
877 | - | let dK = fj.assetId | |
878 | - | let dW = fj.amount | |
879 | - | let X = dt.caller | |
880 | - | let Y = dt.transactionId | |
881 | - | let fv = en(eo, dW, dK, X, Y) | |
882 | - | if ((fv == fv)) | |
883 | - | then { | |
884 | - | let eq = fv._5 | |
885 | - | let fl = fv._4 | |
886 | - | let dH = fv._3 | |
887 | - | let cV = fv._2 | |
888 | - | let fw = fv._1 | |
889 | - | let dB = if (if ((fe > 0)) | |
890 | - | then (fe > fw) | |
891 | - | else false) | |
892 | - | then aG(makeString(["amount to receive is less than ", toString(fe)], "")) | |
893 | - | else fw | |
894 | - | let fx = invoke(aJ, "burn", [dW], [AttachedPayment(dK, dW)]) | |
895 | - | if ((fx == fx)) | |
896 | - | then { | |
897 | - | let fy = [ScriptTransfer(X, dB, eo)] | |
898 | - | let fp = if ((dH > 0)) | |
899 | - | then [ScriptTransfer(aK, dH, eo)] | |
900 | - | else nil | |
901 | - | let fz = { | |
902 | - | let fA = if ((this == aK)) | |
903 | - | then 0 | |
904 | - | else dH | |
905 | - | if (eq) | |
906 | - | then $Tuple2(-((dB + fA)), 0) | |
907 | - | else $Tuple2(0, -((dB + fA))) | |
908 | - | } | |
909 | - | let db = fz._1 | |
910 | - | let dc = fz._2 | |
911 | - | let fB = da(db, dc, 0) | |
912 | - | let fb = fB._1 | |
913 | - | let cZ = fB._2 | |
914 | - | $Tuple2((((cV ++ fy) ++ fp) ++ fb), dB) | |
915 | - | } | |
916 | - | else throw("Strict value is not equal to itself.") | |
917 | - | } | |
918 | - | else throw("Strict value is not equal to itself.") | |
919 | - | } | |
939 | + | @Callable(df) | |
940 | + | func get () = { | |
941 | + | let cA = de(df) | |
942 | + | let fm = cA._1 | |
943 | + | let ch = cA._2 | |
944 | + | let dh = cA._3 | |
945 | + | let bP = cA._4 | |
946 | + | let ci = cA._5 | |
947 | + | let fn = invoke(aD, "burn", [dh], [AttachedPayment(bP, dh)]) | |
948 | + | if ((fn == fn)) | |
949 | + | then ci | |
920 | 950 | else throw("Strict value is not equal to itself.") | |
921 | 951 | } | |
922 | 952 | ||
923 | 953 | ||
924 | 954 | ||
925 | - | @Callable(dt) | |
926 | - | func getOneTknREADONLY (eo,dW) = { | |
927 | - | let fC = en(aQ(eo), dW, aZ, unit, unit) | |
928 | - | let fw = fC._1 | |
929 | - | let cV = fC._2 | |
930 | - | let dH = fC._3 | |
931 | - | let fl = fC._4 | |
932 | - | let eq = fC._5 | |
933 | - | $Tuple2(nil, $Tuple3(fw, dH, fl)) | |
955 | + | @Callable(df) | |
956 | + | func getNoLess (fo,fp) = { | |
957 | + | let cA = de(df) | |
958 | + | let cg = cA._1 | |
959 | + | let ch = cA._2 | |
960 | + | let dh = cA._3 | |
961 | + | let bP = cA._4 | |
962 | + | let ci = cA._5 | |
963 | + | if ((fo > cg)) | |
964 | + | then throw(((("noLessThenAmtAsset failed: " + toString(cg)) + " < ") + toString(fo))) | |
965 | + | else if ((fp > ch)) | |
966 | + | then throw(((("noLessThenPriceAsset failed: " + toString(ch)) + " < ") + toString(fp))) | |
967 | + | else { | |
968 | + | let fn = invoke(aD, "burn", [dh], [AttachedPayment(bP, dh)]) | |
969 | + | if ((fn == fn)) | |
970 | + | then ci | |
971 | + | else throw("Strict value is not equal to itself.") | |
972 | + | } | |
934 | 973 | } | |
935 | 974 | ||
936 | 975 | ||
937 | 976 | ||
938 | - | @Callable(dt) | |
939 | - | func unstakeAndGetOneTkn (fD,ft,fe) = { | |
940 | - | let fg = { | |
941 | - | let fh = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
942 | - | if ($isInstanceOf(fh, "Boolean")) | |
943 | - | then fh | |
944 | - | else throw(($getType(fh) + " couldn't be cast to Boolean")) | |
945 | - | } | |
946 | - | let fu = if (if (aL()) | |
947 | - | then true | |
948 | - | else (aY == n)) | |
949 | - | then true | |
950 | - | else fg | |
951 | - | let ep = [if (if (!(fu)) | |
952 | - | then true | |
953 | - | else eJ(dt)) | |
954 | - | then true | |
955 | - | else aG("get operation is blocked by admin"), if ((size(dt.payments) == 0)) | |
956 | - | then true | |
957 | - | else aG("no payments are expected")] | |
958 | - | if ((ep == ep)) | |
977 | + | @Callable(df) | |
978 | + | func unstakeAndGet (dn) = { | |
979 | + | let fq = if ((size(df.payments) != 0)) | |
980 | + | then throw("No payments are expected") | |
981 | + | else true | |
982 | + | if ((fq == fq)) | |
959 | 983 | then { | |
960 | - | let eo = aQ(ft) | |
961 | - | let X = dt.caller | |
962 | - | let Y = dt.transactionId | |
963 | - | let fE = invoke(bf, "unstake", [toBase58String(aZ), fD], nil) | |
964 | - | if ((fE == fE)) | |
984 | + | let bE = aH() | |
985 | + | let bR = fromBase58String(bE[q]) | |
986 | + | let fk = invoke(aZ, "unstake", [toBase58String(bR), dn], nil) | |
987 | + | if ((fk == fk)) | |
965 | 988 | then { | |
966 | - | let fF = en(eo, fD, aZ, X, Y) | |
967 | - | if ((fF == fF)) | |
989 | + | let cA = bN(toBase58String(df.transactionId), toBase58String(bR), dn, df.caller) | |
990 | + | let bU = parseIntValue(cA._9) | |
991 | + | let ci = cA._10 | |
992 | + | let fr = if (if (aF()) | |
993 | + | then true | |
994 | + | else (bU == n)) | |
995 | + | then throw(("Get operation is blocked by admin. Status = " + toString(bU))) | |
996 | + | else true | |
997 | + | if ((fr == fr)) | |
968 | 998 | then { | |
969 | - | let eq = fF._5 | |
970 | - | let fl = fF._4 | |
971 | - | let dH = fF._3 | |
972 | - | let cV = fF._2 | |
973 | - | let fw = fF._1 | |
974 | - | let dB = if (if ((fe > 0)) | |
975 | - | then (fe > fw) | |
976 | - | else false) | |
977 | - | then aG(makeString(["amount to receive is less than ", toString(fe)], "")) | |
978 | - | else fw | |
979 | - | let fx = invoke(aJ, "burn", [fD], [AttachedPayment(aZ, fD)]) | |
980 | - | if ((fx == fx)) | |
981 | - | then { | |
982 | - | let fy = [ScriptTransfer(dt.caller, dB, eo)] | |
983 | - | let fp = if ((dH > 0)) | |
984 | - | then [ScriptTransfer(aK, dH, eo)] | |
985 | - | else nil | |
986 | - | let fG = { | |
987 | - | let fA = if ((this == aK)) | |
988 | - | then 0 | |
989 | - | else dH | |
990 | - | if (eq) | |
991 | - | then $Tuple2(-((dB + fA)), 0) | |
992 | - | else $Tuple2(0, -((dB + fA))) | |
993 | - | } | |
994 | - | let db = fG._1 | |
995 | - | let dc = fG._2 | |
996 | - | let fH = da(db, dc, 0) | |
997 | - | let fb = fH._1 | |
998 | - | let cZ = fH._2 | |
999 | - | $Tuple2((((cV ++ fy) ++ fp) ++ fb), dB) | |
1000 | - | } | |
999 | + | let fn = invoke(aD, "burn", [dn], [AttachedPayment(bR, dn)]) | |
1000 | + | if ((fn == fn)) | |
1001 | + | then ci | |
1001 | 1002 | else throw("Strict value is not equal to itself.") | |
1002 | 1003 | } | |
1003 | 1004 | else throw("Strict value is not equal to itself.") | |
1009 | 1010 | ||
1010 | 1011 | ||
1011 | 1012 | ||
1012 | - | @Callable(dt) | |
1013 | - | func get () = { | |
1014 | - | let cG = ds(dt) | |
1015 | - | let fI = cG._1 | |
1016 | - | let cn = cG._2 | |
1017 | - | let dv = cG._3 | |
1018 | - | let bV = cG._4 | |
1019 | - | let co = cG._5 | |
1020 | - | let fJ = invoke(aJ, "burn", [dv], [AttachedPayment(bV, dv)]) | |
1021 | - | if ((fJ == fJ)) | |
1013 | + | @Callable(df) | |
1014 | + | func unstakeAndGetNoLess (fj,fs,fp) = { | |
1015 | + | let fd = if (aF()) | |
1016 | + | then true | |
1017 | + | else (aS == n) | |
1018 | + | let ed = [if (!(fd)) | |
1019 | + | then true | |
1020 | + | else throw("get operation is blocked by admin"), if ((size(df.payments) == 0)) | |
1021 | + | then true | |
1022 | + | else throw("no payments are expected")] | |
1023 | + | if ((ed == ed)) | |
1022 | 1024 | then { | |
1023 | - | let fK = da(-(fI), -(cn), 0) | |
1024 | - | let fb = fK._1 | |
1025 | - | let cZ = fK._2 | |
1026 | - | (co ++ fb) | |
1027 | - | } | |
1028 | - | else throw("Strict value is not equal to itself.") | |
1029 | - | } | |
1030 | - | ||
1031 | - | ||
1032 | - | ||
1033 | - | @Callable(dt) | |
1034 | - | func getNoLess (fL,fM) = { | |
1035 | - | let cG = ds(dt) | |
1036 | - | let cm = cG._1 | |
1037 | - | let cn = cG._2 | |
1038 | - | let dv = cG._3 | |
1039 | - | let bV = cG._4 | |
1040 | - | let co = cG._5 | |
1041 | - | if ((fL > cm)) | |
1042 | - | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fL))) | |
1043 | - | else if ((fM > cn)) | |
1044 | - | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fM))) | |
1045 | - | else { | |
1046 | - | let fJ = invoke(aJ, "burn", [dv], [AttachedPayment(bV, dv)]) | |
1047 | - | if ((fJ == fJ)) | |
1048 | - | then { | |
1049 | - | let fN = da(-(cm), -(cn), 0) | |
1050 | - | let fb = fN._1 | |
1051 | - | let cZ = fN._2 | |
1052 | - | (co ++ fb) | |
1053 | - | } | |
1054 | - | else throw("Strict value is not equal to itself.") | |
1055 | - | } | |
1056 | - | } | |
1057 | - | ||
1058 | - | ||
1059 | - | ||
1060 | - | @Callable(dt) | |
1061 | - | func unstakeAndGet (dB) = { | |
1062 | - | let fO = if ((size(dt.payments) != 0)) | |
1063 | - | then throw("No payments are expected") | |
1064 | - | else true | |
1065 | - | if ((fO == fO)) | |
1066 | - | then { | |
1067 | - | let bK = aN() | |
1068 | - | let bX = fromBase58String(bK[q]) | |
1069 | - | let fE = invoke(bf, "unstake", [toBase58String(bX), dB], nil) | |
1070 | - | if ((fE == fE)) | |
1025 | + | let fk = invoke(aZ, "unstake", [toBase58String(aT), fj], nil) | |
1026 | + | if ((fk == fk)) | |
1071 | 1027 | then { | |
1072 | - | let cG = bT(toBase58String(dt.transactionId), toBase58String(bX), dB, dt.caller) | |
1073 | - | let cm = cG._1 | |
1074 | - | let cn = cG._2 | |
1075 | - | let ca = parseIntValue(cG._9) | |
1076 | - | let co = cG._10 | |
1077 | - | let fP = if (if (aL()) | |
1028 | + | let cA = bN(toBase58String(df.transactionId), toBase58String(aT), fj, df.caller) | |
1029 | + | let cg = cA._1 | |
1030 | + | let ch = cA._2 | |
1031 | + | let ci = cA._10 | |
1032 | + | let ft = [if ((cg >= fs)) | |
1078 | 1033 | then true | |
1079 | - | else ( | |
1080 | - | then | |
1081 | - | else | |
1082 | - | if (( | |
1034 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(fs)], "")), if ((ch >= fp)) | |
1035 | + | then true | |
1036 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fp)], ""))] | |
1037 | + | if ((ft == ft)) | |
1083 | 1038 | then { | |
1084 | - | let fJ = invoke(aJ, "burn", [dB], [AttachedPayment(bX, dB)]) | |
1085 | - | if ((fJ == fJ)) | |
1086 | - | then { | |
1087 | - | let fQ = da(-(cm), -(cn), 0) | |
1088 | - | let fb = fQ._1 | |
1089 | - | let cZ = fQ._2 | |
1090 | - | (co ++ fb) | |
1091 | - | } | |
1039 | + | let fn = invoke(aD, "burn", [fj], [AttachedPayment(aT, fj)]) | |
1040 | + | if ((fn == fn)) | |
1041 | + | then ci | |
1092 | 1042 | else throw("Strict value is not equal to itself.") | |
1093 | 1043 | } | |
1094 | 1044 | else throw("Strict value is not equal to itself.") | |
1100 | 1050 | ||
1101 | 1051 | ||
1102 | 1052 | ||
1103 | - | @Callable(dt) | |
1104 | - | func unstakeAndGetNoLess (fD,fR,fM) = { | |
1105 | - | let fu = if (aL()) | |
1106 | - | then true | |
1107 | - | else (aY == n) | |
1108 | - | let ep = [if (!(fu)) | |
1109 | - | then true | |
1110 | - | else throw("get operation is blocked by admin"), if ((size(dt.payments) == 0)) | |
1111 | - | then true | |
1112 | - | else throw("no payments are expected")] | |
1113 | - | if ((ep == ep)) | |
1114 | - | then { | |
1115 | - | let fE = invoke(bf, "unstake", [toBase58String(aZ), fD], nil) | |
1116 | - | if ((fE == fE)) | |
1117 | - | then { | |
1118 | - | let cG = bT(toBase58String(dt.transactionId), toBase58String(aZ), fD, dt.caller) | |
1119 | - | let cm = cG._1 | |
1120 | - | let cn = cG._2 | |
1121 | - | let co = cG._10 | |
1122 | - | let fS = [if ((cm >= fR)) | |
1123 | - | then true | |
1124 | - | else throw(makeString(["amount asset amount to receive is less than ", toString(fR)], "")), if ((cn >= fM)) | |
1125 | - | then true | |
1126 | - | else throw(makeString(["price asset amount to receive is less than ", toString(fM)], ""))] | |
1127 | - | if ((fS == fS)) | |
1128 | - | then { | |
1129 | - | let fJ = invoke(aJ, "burn", [fD], [AttachedPayment(aZ, fD)]) | |
1130 | - | if ((fJ == fJ)) | |
1131 | - | then { | |
1132 | - | let fT = da(-(cm), -(cn), 0) | |
1133 | - | let fb = fT._1 | |
1134 | - | let cZ = fT._2 | |
1135 | - | (co ++ fb) | |
1136 | - | } | |
1137 | - | else throw("Strict value is not equal to itself.") | |
1138 | - | } | |
1139 | - | else throw("Strict value is not equal to itself.") | |
1140 | - | } | |
1141 | - | else throw("Strict value is not equal to itself.") | |
1142 | - | } | |
1143 | - | else throw("Strict value is not equal to itself.") | |
1053 | + | @Callable(df) | |
1054 | + | func activate (fu,fv) = if ((toString(df.caller) != toString(aD))) | |
1055 | + | then throw("permissions denied") | |
1056 | + | else $Tuple2([StringEntry(aa(), fu), StringEntry(ab(), fv)], "success") | |
1057 | + | ||
1058 | + | ||
1059 | + | ||
1060 | + | @Callable(df) | |
1061 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aH()) | |
1062 | + | ||
1063 | + | ||
1064 | + | ||
1065 | + | @Callable(df) | |
1066 | + | func getAccBalanceWrapperREADONLY (br) = $Tuple2(nil, bq(br)) | |
1067 | + | ||
1068 | + | ||
1069 | + | ||
1070 | + | @Callable(df) | |
1071 | + | func calcPricesWrapperREADONLY (by,bz,bD) = { | |
1072 | + | let bM = bC(by, bz, bD) | |
1073 | + | $Tuple2(nil, [toString(bM[0]), toString(bM[1]), toString(bM[2])]) | |
1144 | 1074 | } | |
1145 | 1075 | ||
1146 | 1076 | ||
1147 | 1077 | ||
1148 | - | @Callable(dt) | |
1149 | - | func activate (fU,fV) = if ((toString(dt.caller) != toString(aJ))) | |
1150 | - | then throw("permissions denied") | |
1151 | - | else $Tuple2([StringEntry(aa(), fU), StringEntry(ab(), fV)], "success") | |
1078 | + | @Callable(df) | |
1079 | + | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1152 | 1080 | ||
1153 | 1081 | ||
1154 | 1082 | ||
1155 | - | @Callable(dt) | |
1156 | - | func refreshKLp () = { | |
1157 | - | let fW = valueOrElse(getInteger(ag), 0) | |
1158 | - | let fX = if (((height - fW) >= aj)) | |
1159 | - | then unit | |
1160 | - | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1161 | - | if ((fX == fX)) | |
1162 | - | then { | |
1163 | - | let fY = da(0, 0, 0) | |
1164 | - | let dh = fY._1 | |
1165 | - | let cZ = fY._2 | |
1166 | - | $Tuple2(dh, toString(cZ)) | |
1167 | - | } | |
1168 | - | else throw("Strict value is not equal to itself.") | |
1083 | + | @Callable(df) | |
1084 | + | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1085 | + | ||
1086 | + | ||
1087 | + | ||
1088 | + | @Callable(df) | |
1089 | + | func calcPriceBigIntWrapperREADONLY (bt,bu) = $Tuple2(nil, toString(bs(parseBigIntValue(bt), parseBigIntValue(bu)))) | |
1090 | + | ||
1091 | + | ||
1092 | + | ||
1093 | + | @Callable(df) | |
1094 | + | func estimatePutOperationWrapperREADONLY (bO,ck,cl,cm,cn,co,X,cp,cq) = $Tuple2(nil, cj(bO, ck, cl, cm, cn, co, X, cp, cq)) | |
1095 | + | ||
1096 | + | ||
1097 | + | ||
1098 | + | @Callable(df) | |
1099 | + | func estimateGetOperationWrapperREADONLY (bO,bP,bQ,X) = { | |
1100 | + | let cA = bN(bO, bP, bQ, addressFromStringValue(X)) | |
1101 | + | $Tuple2(nil, $Tuple10(cA._1, cA._2, cA._3, cA._4, cA._5, cA._6, cA._7, toString(cA._8), cA._9, cA._10)) | |
1169 | 1102 | } | |
1170 | 1103 | ||
1171 | 1104 | ||
1172 | 1105 | ||
1173 | - | @Callable(dt) | |
1174 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1175 | - | ||
1176 | - | ||
1177 | - | ||
1178 | - | @Callable(dt) | |
1179 | - | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1180 | - | ||
1181 | - | ||
1182 | - | ||
1183 | - | @Callable(dt) | |
1184 | - | func calcPricesWrapperREADONLY (bE,bF,bJ) = { | |
1185 | - | let bS = bI(bE, bF, bJ) | |
1186 | - | $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])]) | |
1106 | + | @Callable(df) | |
1107 | + | func statsREADONLY () = { | |
1108 | + | let bE = aH() | |
1109 | + | let bR = fromBase58String(bE[q]) | |
1110 | + | let cS = bE[r] | |
1111 | + | let cT = bE[s] | |
1112 | + | let ct = bE[v] | |
1113 | + | let cu = bE[w] | |
1114 | + | let bF = parseIntValue(bE[t]) | |
1115 | + | let bG = parseIntValue(bE[u]) | |
1116 | + | let fw = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1117 | + | let cU = bq(cS) | |
1118 | + | let cV = bq(cT) | |
1119 | + | let fx = if ((fw == 0)) | |
1120 | + | then [e, e, e] | |
1121 | + | else bC(cU, cV, fw) | |
1122 | + | let cb = 0 | |
1123 | + | let fy = G(fx[1], b) | |
1124 | + | let fz = G(fx[2], b) | |
1125 | + | let fA = value(getInteger(aD, ap(toString(this)))) | |
1126 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cU), toString(cV), toString(fw), toString(cb), toString(fy), toString(fz), toString(fA)], j)) | |
1187 | 1127 | } | |
1188 | 1128 | ||
1189 | 1129 | ||
1190 | 1130 | ||
1191 | - | @Callable(dt) | |
1192 | - | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1193 | - | ||
1194 | - | ||
1195 | - | ||
1196 | - | @Callable(dt) | |
1197 | - | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1198 | - | ||
1199 | - | ||
1200 | - | ||
1201 | - | @Callable(dt) | |
1202 | - | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1203 | - | ||
1204 | - | ||
1205 | - | ||
1206 | - | @Callable(dt) | |
1207 | - | func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw)) | |
1208 | - | ||
1209 | - | ||
1210 | - | ||
1211 | - | @Callable(dt) | |
1212 | - | func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = { | |
1213 | - | let cG = bT(bU, bV, bW, addressFromStringValue(X)) | |
1214 | - | $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10)) | |
1131 | + | @Callable(df) | |
1132 | + | func evaluatePutByAmountAssetREADONLY (cl) = { | |
1133 | + | let bE = aH() | |
1134 | + | let bR = fromBase58String(bE[q]) | |
1135 | + | let cr = bE[r] | |
1136 | + | let bS = fromBase58String(cr) | |
1137 | + | let cs = bE[s] | |
1138 | + | let bT = fromBase58String(cs) | |
1139 | + | let bF = parseIntValue(bE[t]) | |
1140 | + | let bG = parseIntValue(bE[u]) | |
1141 | + | let bU = bE[p] | |
1142 | + | let fw = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1143 | + | let cU = bq(cr) | |
1144 | + | let cV = bq(cs) | |
1145 | + | let bA = D(cU, bF) | |
1146 | + | let bB = D(cV, bG) | |
1147 | + | let ca = if ((fw == 0)) | |
1148 | + | then e | |
1149 | + | else bs(bB, bA) | |
1150 | + | let cx = D(cl, bF) | |
1151 | + | let cy = fraction(cx, ca, d) | |
1152 | + | let cn = G(cy, bG) | |
1153 | + | let dl = cj("", 500000, cl, bS, cn, bT, "", true, false) | |
1154 | + | let cI = dl._1 | |
1155 | + | let fB = dl._3 | |
1156 | + | let bW = dl._4 | |
1157 | + | let bY = dl._5 | |
1158 | + | let bV = dl._6 | |
1159 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cI), toString(G(ca, b)), toString(bW), toString(bY), toString(bV), bU, toString(cl), toString(cn)], j)) | |
1215 | 1160 | } | |
1216 | 1161 | ||
1217 | 1162 | ||
1218 | 1163 | ||
1219 | - | @Callable(dt) | |
1220 | - | func statsREADONLY () = { | |
1221 | - | let bK = aN() | |
1222 | - | let bX = fromBase58String(bK[q]) | |
1223 | - | let fZ = bK[r] | |
1224 | - | let ga = bK[s] | |
1225 | - | let cz = bK[v] | |
1226 | - | let cA = bK[w] | |
1227 | - | let bL = parseIntValue(bK[t]) | |
1228 | - | let bM = parseIntValue(bK[u]) | |
1229 | - | let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1230 | - | let gc = bw(fZ) | |
1231 | - | let gd = bw(ga) | |
1232 | - | let ge = if ((gb == 0)) | |
1233 | - | then [e, e, e] | |
1234 | - | else bI(gc, gd, gb) | |
1235 | - | let ch = 0 | |
1236 | - | let gf = G(ge[1], b) | |
1237 | - | let gg = G(ge[2], b) | |
1238 | - | let gh = value(getInteger(aJ, au(toString(this)))) | |
1239 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gc), toString(gd), toString(gb), toString(ch), toString(gf), toString(gg), toString(gh)], j)) | |
1164 | + | @Callable(df) | |
1165 | + | func evaluatePutByPriceAssetREADONLY (cn) = { | |
1166 | + | let bE = aH() | |
1167 | + | let bR = fromBase58String(bE[q]) | |
1168 | + | let cr = bE[r] | |
1169 | + | let bS = fromBase58String(cr) | |
1170 | + | let cs = bE[s] | |
1171 | + | let bT = fromBase58String(cs) | |
1172 | + | let bF = parseIntValue(bE[t]) | |
1173 | + | let bG = parseIntValue(bE[u]) | |
1174 | + | let bU = bE[p] | |
1175 | + | let fw = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1176 | + | let fC = bq(cr) | |
1177 | + | let fD = bq(cs) | |
1178 | + | let fE = D(fC, bF) | |
1179 | + | let fF = D(fD, bG) | |
1180 | + | let ca = if ((fw == 0)) | |
1181 | + | then e | |
1182 | + | else bs(fF, fE) | |
1183 | + | let cy = D(cn, bG) | |
1184 | + | let cx = fraction(cy, d, ca) | |
1185 | + | let cl = G(cx, bF) | |
1186 | + | let dl = cj("", 500000, cl, bS, cn, bT, "", true, false) | |
1187 | + | let cI = dl._1 | |
1188 | + | let fB = dl._3 | |
1189 | + | let bW = dl._4 | |
1190 | + | let bY = dl._5 | |
1191 | + | let bV = dl._6 | |
1192 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cI), toString(G(ca, b)), toString(bW), toString(bY), toString(bV), bU, toString(cl), toString(cn)], j)) | |
1240 | 1193 | } | |
1241 | 1194 | ||
1242 | 1195 | ||
1243 | 1196 | ||
1244 | - | @Callable(dt) | |
1245 | - | func evaluatePutByAmountAssetREADONLY (cr) = { | |
1246 | - | let bK = aN() | |
1247 | - | let bX = fromBase58String(bK[q]) | |
1248 | - | let cx = bK[r] | |
1249 | - | let bY = fromBase58String(cx) | |
1250 | - | let cy = bK[s] | |
1251 | - | let bZ = fromBase58String(cy) | |
1252 | - | let bL = parseIntValue(bK[t]) | |
1253 | - | let bM = parseIntValue(bK[u]) | |
1254 | - | let ca = bK[p] | |
1255 | - | let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1256 | - | let gc = bw(cx) | |
1257 | - | let gd = bw(cy) | |
1258 | - | let bG = D(gc, bL) | |
1259 | - | let bH = D(gd, bM) | |
1260 | - | let cg = if ((gb == 0)) | |
1261 | - | then e | |
1262 | - | else by(bH, bG) | |
1263 | - | let cD = D(cr, bL) | |
1264 | - | let cE = fraction(cD, cg, d) | |
1265 | - | let ct = G(cE, bM) | |
1266 | - | let dz = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1267 | - | let cO = dz._1 | |
1268 | - | let gi = dz._3 | |
1269 | - | let cc = dz._4 | |
1270 | - | let ce = dz._5 | |
1271 | - | let cb = dz._6 | |
1272 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j)) | |
1197 | + | @Callable(df) | |
1198 | + | func evaluateGetREADONLY (fG,fH) = { | |
1199 | + | let cA = bN("", fG, fH, this) | |
1200 | + | let cg = cA._1 | |
1201 | + | let ch = cA._2 | |
1202 | + | let bW = cA._5 | |
1203 | + | let bY = cA._6 | |
1204 | + | let bV = cA._7 | |
1205 | + | let cb = cA._8 | |
1206 | + | let bU = parseIntValue(cA._9) | |
1207 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cg), toString(ch), toString(bW), toString(bY), toString(bV), toString(cb), toString(bU)], j)) | |
1273 | 1208 | } | |
1274 | 1209 | ||
1275 | 1210 | ||
1276 | - | ||
1277 | - | @Callable(dt) | |
1278 | - | func evaluatePutByPriceAssetREADONLY (ct) = { | |
1279 | - | let bK = aN() | |
1280 | - | let bX = fromBase58String(bK[q]) | |
1281 | - | let cx = bK[r] | |
1282 | - | let bY = fromBase58String(cx) | |
1283 | - | let cy = bK[s] | |
1284 | - | let bZ = fromBase58String(cy) | |
1285 | - | let bL = parseIntValue(bK[t]) | |
1286 | - | let bM = parseIntValue(bK[u]) | |
1287 | - | let ca = bK[p] | |
1288 | - | let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1289 | - | let gj = bw(cx) | |
1290 | - | let gk = bw(cy) | |
1291 | - | let gl = D(gj, bL) | |
1292 | - | let gm = D(gk, bM) | |
1293 | - | let cg = if ((gb == 0)) | |
1294 | - | then e | |
1295 | - | else by(gm, gl) | |
1296 | - | let cE = D(ct, bM) | |
1297 | - | let cD = fraction(cE, d, cg) | |
1298 | - | let cr = G(cD, bL) | |
1299 | - | let dz = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1300 | - | let cO = dz._1 | |
1301 | - | let gi = dz._3 | |
1302 | - | let cc = dz._4 | |
1303 | - | let ce = dz._5 | |
1304 | - | let cb = dz._6 | |
1305 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j)) | |
1306 | - | } | |
1307 | - | ||
1308 | - | ||
1309 | - | ||
1310 | - | @Callable(dt) | |
1311 | - | func evaluateGetREADONLY (gn,go) = { | |
1312 | - | let cG = bT("", gn, go, this) | |
1313 | - | let cm = cG._1 | |
1314 | - | let cn = cG._2 | |
1315 | - | let cc = cG._5 | |
1316 | - | let ce = cG._6 | |
1317 | - | let cb = cG._7 | |
1318 | - | let ch = cG._8 | |
1319 | - | let ca = parseIntValue(cG._9) | |
1320 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cm), toString(cn), toString(cc), toString(ce), toString(cb), toString(ch), toString(ca)], j)) | |
1321 | - | } | |
1322 | - | ||
1323 | - | ||
1324 | - | @Verifier(gp) | |
1325 | - | func gq () = { | |
1326 | - | let gr = { | |
1327 | - | let dE = eG() | |
1328 | - | if ($isInstanceOf(dE, "ByteVector")) | |
1211 | + | @Verifier(fI) | |
1212 | + | func fJ () = { | |
1213 | + | let fK = { | |
1214 | + | let dq = eu() | |
1215 | + | if ($isInstanceOf(dq, "ByteVector")) | |
1329 | 1216 | then { | |
1330 | - | let | |
1331 | - | | |
1217 | + | let ey = dq | |
1218 | + | ey | |
1332 | 1219 | } | |
1333 | - | else if ($isInstanceOf( | |
1334 | - | then | |
1220 | + | else if ($isInstanceOf(dq, "Unit")) | |
1221 | + | then fI.senderPublicKey | |
1335 | 1222 | else throw("Match error") | |
1336 | 1223 | } | |
1337 | - | let | |
1338 | - | if ($isInstanceOf( | |
1224 | + | let dq = fI | |
1225 | + | if ($isInstanceOf(dq, "Order")) | |
1339 | 1226 | then { | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1343 | - | let | |
1344 | - | let | |
1345 | - | if (if (if ( | |
1346 | - | then | |
1227 | + | let cR = dq | |
1228 | + | let fL = aG() | |
1229 | + | let au = cQ(cR) | |
1230 | + | let av = sigVerify(cR.bodyBytes, cR.proofs[0], cR.senderPublicKey) | |
1231 | + | let aw = sigVerify(cR.bodyBytes, cR.proofs[1], fL) | |
1232 | + | if (if (if (au) | |
1233 | + | then av | |
1347 | 1234 | else false) | |
1348 | - | then | |
1235 | + | then aw | |
1349 | 1236 | else false) | |
1350 | 1237 | then true | |
1351 | - | else | |
1238 | + | else at(au, av, aw) | |
1352 | 1239 | } | |
1353 | - | else if ($isInstanceOf( | |
1240 | + | else if ($isInstanceOf(dq, "SetScriptTransaction")) | |
1354 | 1241 | then { | |
1355 | - | let | |
1356 | - | let | |
1357 | - | let | |
1358 | - | let | |
1359 | - | if (if (( | |
1360 | - | then ( | |
1242 | + | let ev = dq | |
1243 | + | let fM = blake2b256(value(ev.script)) | |
1244 | + | let fN = fromBase64String(value(getString(aD, ar()))) | |
1245 | + | let fO = scriptHash(this) | |
1246 | + | if (if ((fN == fM)) | |
1247 | + | then (fO != fM) | |
1361 | 1248 | else false) | |
1362 | 1249 | then true | |
1363 | - | else sigVerify( | |
1250 | + | else sigVerify(fI.bodyBytes, fI.proofs[0], fK) | |
1364 | 1251 | } | |
1365 | - | else sigVerify( | |
1252 | + | else sigVerify(fI.bodyBytes, fI.proofs[0], fK) | |
1366 | 1253 | } | |
1367 | 1254 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(100000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(0) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(1) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(2) | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = 1 | |
25 | 25 | ||
26 | 26 | let l = 2 | |
27 | 27 | ||
28 | 28 | let m = 3 | |
29 | 29 | ||
30 | 30 | let n = 4 | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 5 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 7 | |
45 | 45 | ||
46 | 46 | let v = 8 | |
47 | 47 | ||
48 | 48 | let w = 9 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 2 | |
55 | 55 | ||
56 | 56 | let A = 3 | |
57 | 57 | ||
58 | 58 | let B = 1 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func G (H,I) = toInt(fraction(H, toBigInt(I), d)) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func J (K,L,M) = fraction(K, L, M) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func N (H) = if ((0 > H)) | |
72 | 72 | then -(H) | |
73 | 73 | else H | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func O (H) = if ((e > H)) | |
77 | 77 | then -(H) | |
78 | 78 | else H | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func P () = "%s__factoryContract" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func Q () = "%s__managerPublicKey" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func R () = "%s__pendingManagerPublicKey" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func S () = "%s%s__price__last" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func T (U,V) = makeString(["%s%s%d%d__price__history", toString(U), toString(V)], j) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func W (X,Y) = ((("%s%s%s__P__" + X) + "__") + Y) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func Z (X,Y) = ((("%s%s%s__G__" + X) + "__") + Y) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func aa () = "%s__amountAsset" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func ab () = "%s__priceAsset" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let ac = "%s__fee" | |
109 | 109 | ||
110 | 110 | let ad = fraction(10, b, 10000) | |
111 | 111 | ||
112 | 112 | let ae = valueOrElse(getInteger(this, ac), ad) | |
113 | 113 | ||
114 | - | let af = makeString(["%s", "kLp"], j) | |
115 | - | ||
116 | - | let ag = makeString(["%s", "kLpRefreshedHeight"], j) | |
117 | - | ||
118 | - | let ah = makeString(["%s", "refreshKLpDelay"], j) | |
119 | - | ||
120 | - | let ai = 30 | |
121 | - | ||
122 | - | let aj = valueOrElse(getInteger(this, ah), ai) | |
123 | - | ||
124 | - | func ak () = "%s__factoryConfig" | |
114 | + | func af () = "%s__factoryConfig" | |
125 | 115 | ||
126 | 116 | ||
127 | - | func | |
117 | + | func ag () = "%s%s__matcher__publicKey" | |
128 | 118 | ||
129 | 119 | ||
130 | - | func | |
120 | + | func ah (ai) = (("%s%s%s__" + ai) + "__mappings__poolContract2LpAsset") | |
131 | 121 | ||
132 | 122 | ||
133 | - | func | |
123 | + | func aj (ak,al) = (((("%d%d%s__" + ak) + "__") + al) + "__config") | |
134 | 124 | ||
135 | 125 | ||
136 | - | func | |
126 | + | func am (an) = ("%s%s%s__mappings__baseAsset2internalId__" + an) | |
137 | 127 | ||
138 | 128 | ||
139 | - | func | |
129 | + | func ao () = "%s__shutdown" | |
140 | 130 | ||
141 | 131 | ||
142 | - | func | |
132 | + | func ap (aq) = ("%s%s__poolWeight__" + aq) | |
143 | 133 | ||
144 | 134 | ||
145 | - | func | |
135 | + | func ar () = "%s__allowedLpScriptHash" | |
146 | 136 | ||
147 | 137 | ||
148 | - | let | |
138 | + | let as = "%s__feeCollectorAddress" | |
149 | 139 | ||
150 | - | func | |
140 | + | func at (au,av,aw) = throw(((((("order validation failed: orderValid=" + toString(au)) + " senderValid=") + toString(av)) + " matcherValid=") + toString(aw))) | |
151 | 141 | ||
152 | 142 | ||
153 | - | func | |
143 | + | func ax (ay,az) = valueOrErrorMessage(getString(ay, az), makeString(["mandatory ", toString(ay), ".", az, " is not defined"], "")) | |
154 | 144 | ||
155 | 145 | ||
156 | - | func | |
146 | + | func aA (ay,az) = valueOrErrorMessage(getInteger(ay, az), makeString(["mandatory ", toString(ay), ".", az, " is not defined"], "")) | |
157 | 147 | ||
158 | 148 | ||
159 | - | func | |
149 | + | func aB (aC) = throw(makeString(["lp.ride:", aC], " ")) | |
160 | 150 | ||
161 | 151 | ||
162 | - | func aI (aH) = makeString(["lp.ride:", aH], " ") | |
152 | + | let aD = addressFromStringValue(ax(this, P())) | |
153 | + | ||
154 | + | let aE = addressFromStringValue(ax(aD, as)) | |
155 | + | ||
156 | + | func aF () = valueOrElse(getBoolean(aD, ao()), false) | |
163 | 157 | ||
164 | 158 | ||
165 | - | let aJ = addressFromStringValue(aC(this, P())) | |
166 | - | ||
167 | - | let aK = addressFromStringValue(aC(aJ, ax)) | |
168 | - | ||
169 | - | func aL () = valueOrElse(getBoolean(aJ, at()), false) | |
159 | + | func aG () = fromBase58String(ax(aD, ag())) | |
170 | 160 | ||
171 | 161 | ||
172 | - | func aM () = fromBase58String(aC(aJ, al())) | |
173 | - | ||
174 | - | ||
175 | - | func aN () = { | |
176 | - | let aO = aC(this, aa()) | |
177 | - | let aP = aC(this, ab()) | |
178 | - | let aq = aF(aJ, ar(aP)) | |
179 | - | let ap = aF(aJ, ar(aO)) | |
180 | - | split(aC(aJ, ao(toString(ap), toString(aq))), j) | |
162 | + | func aH () = { | |
163 | + | let aI = ax(this, aa()) | |
164 | + | let aJ = ax(this, ab()) | |
165 | + | let al = aA(aD, am(aJ)) | |
166 | + | let ak = aA(aD, am(aI)) | |
167 | + | split(ax(aD, aj(toString(ak), toString(al))), j) | |
181 | 168 | } | |
182 | 169 | ||
183 | 170 | ||
184 | - | func | |
171 | + | func aK (aL) = if ((aL == i)) | |
185 | 172 | then unit | |
186 | - | else fromBase58String( | |
173 | + | else fromBase58String(aL) | |
187 | 174 | ||
188 | 175 | ||
189 | - | func | |
176 | + | func aM (aL) = if ((aL == unit)) | |
190 | 177 | then i | |
191 | - | else toBase58String(value( | |
178 | + | else toBase58String(value(aL)) | |
192 | 179 | ||
193 | 180 | ||
194 | - | func | |
181 | + | func aN (aO) = $Tuple7(addressFromStringValue(aO[o]), parseIntValue(aO[p]), fromBase58String(aO[q]), aK(aO[r]), aK(aO[s]), parseIntValue(aO[t]), parseIntValue(aO[u])) | |
195 | 182 | ||
196 | 183 | ||
197 | - | let | |
184 | + | let aP = aN(aH()) | |
198 | 185 | ||
199 | - | let | |
186 | + | let aQ = aP | |
200 | 187 | ||
201 | - | let | |
188 | + | let aR = aQ._1 | |
202 | 189 | ||
203 | - | let | |
190 | + | let aS = aQ._2 | |
204 | 191 | ||
205 | - | let | |
192 | + | let aT = aQ._3 | |
206 | 193 | ||
207 | - | let | |
194 | + | let aU = aQ._4 | |
208 | 195 | ||
209 | - | let | |
196 | + | let aV = aQ._5 | |
210 | 197 | ||
211 | - | let | |
198 | + | let aW = aQ._6 | |
212 | 199 | ||
213 | - | let | |
200 | + | let aX = aQ._7 | |
214 | 201 | ||
215 | - | func | |
202 | + | func aY () = split(ax(aD, af()), j) | |
216 | 203 | ||
217 | 204 | ||
218 | - | let | |
205 | + | let aZ = valueOrErrorMessage(addressFromString(aY()[B]), "incorrect staking address") | |
219 | 206 | ||
220 | - | let | |
207 | + | let ba = valueOrErrorMessage(addressFromString(aY()[C]), "incorrect staking address") | |
221 | 208 | ||
222 | - | func | |
209 | + | func bb (bc,bd,be,bf,bg,bh,bi,bj,bk,bl) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bc), toString(bd), toString(be), toString(bf), toString(bg), toString(bh), toString(bi), toString(bj), toString(bk), toString(bl)], j) | |
223 | 210 | ||
224 | 211 | ||
225 | - | func | |
212 | + | func bm (bn,bo,bp,bf,bi,bj) = makeString(["%d%d%d%d%d%d", toString(bn), toString(bo), toString(bp), toString(bf), toString(bi), toString(bj)], j) | |
226 | 213 | ||
227 | 214 | ||
228 | - | func | |
215 | + | func bq (br) = if ((br == "WAVES")) | |
229 | 216 | then wavesBalance(this).available | |
230 | - | else assetBalance(this, fromBase58String( | |
217 | + | else assetBalance(this, fromBase58String(br)) | |
231 | 218 | ||
232 | 219 | ||
233 | - | func | |
220 | + | func bs (bt,bu) = fraction(bt, d, bu) | |
234 | 221 | ||
235 | 222 | ||
236 | - | func | |
237 | - | let | |
238 | - | let | |
239 | - | | |
223 | + | func bv (bw,bx,by,bz) = { | |
224 | + | let bA = D(by, bw) | |
225 | + | let bB = D(bz, bx) | |
226 | + | bs(bB, bA) | |
240 | 227 | } | |
241 | 228 | ||
242 | 229 | ||
243 | - | func | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | [ | |
230 | + | func bC (by,bz,bD) = { | |
231 | + | let bE = aH() | |
232 | + | let bF = parseIntValue(bE[t]) | |
233 | + | let bG = parseIntValue(bE[u]) | |
234 | + | let bH = bv(bF, bG, by, bz) | |
235 | + | let bu = D(by, bF) | |
236 | + | let bt = D(bz, bG) | |
237 | + | let bI = D(bD, b) | |
238 | + | let bJ = bs(bu, bI) | |
239 | + | let bK = bs(bt, bI) | |
240 | + | [bH, bJ, bK] | |
254 | 241 | } | |
255 | 242 | ||
256 | 243 | ||
257 | - | func | |
258 | - | let | |
259 | - | [G( | |
244 | + | func bL (by,bz,bD) = { | |
245 | + | let bM = bC(by, bz, bD) | |
246 | + | [G(bM[0], b), G(bM[1], b), G(bM[2], b)] | |
260 | 247 | } | |
261 | 248 | ||
262 | 249 | ||
263 | - | func | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | if (( | |
250 | + | func bN (bO,bP,bQ,X) = { | |
251 | + | let bE = aH() | |
252 | + | let bR = bE[q] | |
253 | + | let bS = bE[r] | |
254 | + | let bT = bE[s] | |
255 | + | let bw = parseIntValue(bE[t]) | |
256 | + | let bx = parseIntValue(bE[u]) | |
257 | + | let bU = bE[p] | |
258 | + | let bV = valueOrErrorMessage(assetInfo(fromBase58String(bR)), (("Asset " + bR) + " doesn't exist")).quantity | |
259 | + | if ((bR != bP)) | |
273 | 260 | then throw("Invalid asset passed.") | |
274 | 261 | else { | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
262 | + | let bW = bq(bS) | |
263 | + | let bX = D(bW, bw) | |
264 | + | let bY = bq(bT) | |
265 | + | let bZ = D(bY, bx) | |
266 | + | let ca = bs(bZ, bX) | |
267 | + | let cb = G(ca, b) | |
268 | + | let cc = D(bQ, b) | |
269 | + | let cd = D(bV, b) | |
270 | + | let ce = fraction(bX, cc, cd) | |
271 | + | let cf = fraction(bZ, cc, cd) | |
272 | + | let cg = G(ce, bw) | |
273 | + | let ch = G(cf, bx) | |
274 | + | let ci = if ((bO == "")) | |
288 | 275 | then nil | |
289 | - | else [ScriptTransfer(X, | |
276 | + | else [ScriptTransfer(X, cg, if ((bS == "WAVES")) | |
290 | 277 | then unit | |
291 | - | else fromBase58String( | |
278 | + | else fromBase58String(bS)), ScriptTransfer(X, ch, if ((bT == "WAVES")) | |
292 | 279 | then unit | |
293 | - | else fromBase58String( | |
294 | - | $Tuple10( | |
280 | + | else fromBase58String(bT)), StringEntry(Z(toString(X), bO), bm(cg, ch, bQ, cb, height, lastBlock.timestamp)), IntegerEntry(S(), cb), IntegerEntry(T(height, lastBlock.timestamp), cb)] | |
281 | + | $Tuple10(cg, ch, bS, bT, bW, bY, bV, ca, bU, ci) | |
295 | 282 | } | |
296 | 283 | } | |
297 | 284 | ||
298 | 285 | ||
299 | - | func | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | if (if (( | |
286 | + | func cj (bO,ck,cl,cm,cn,co,X,cp,cq) = { | |
287 | + | let bE = aH() | |
288 | + | let bR = fromBase58String(bE[q]) | |
289 | + | let cr = bE[r] | |
290 | + | let cs = bE[s] | |
291 | + | let ct = bE[v] | |
292 | + | let cu = bE[w] | |
293 | + | let bF = parseIntValue(bE[t]) | |
294 | + | let bG = parseIntValue(bE[u]) | |
295 | + | let bU = bE[p] | |
296 | + | let bV = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
297 | + | let cv = toBase58String(valueOrElse(cm, fromBase58String("WAVES"))) | |
298 | + | let cw = toBase58String(valueOrElse(co, fromBase58String("WAVES"))) | |
299 | + | if (if ((cr != cv)) | |
313 | 300 | then true | |
314 | - | else ( | |
301 | + | else (cs != cw)) | |
315 | 302 | then throw("Invalid amt or price asset passed.") | |
316 | 303 | else { | |
317 | - | let | |
318 | - | then | |
319 | - | else ( | |
320 | - | let | |
321 | - | then | |
322 | - | else ( | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
304 | + | let bW = if (cp) | |
305 | + | then bq(cr) | |
306 | + | else (bq(cr) - cl) | |
307 | + | let bY = if (cp) | |
308 | + | then bq(cs) | |
309 | + | else (bq(cs) - cn) | |
310 | + | let cx = D(cl, bF) | |
311 | + | let cy = D(cn, bG) | |
312 | + | let cz = bs(cy, cx) | |
313 | + | let bX = D(bW, bF) | |
314 | + | let bZ = D(bY, bG) | |
315 | + | let cA = if ((bV == 0)) | |
329 | 316 | then { | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | $Tuple5(G( | |
317 | + | let ca = e | |
318 | + | let cB = e | |
319 | + | let bI = pow((cx * cy), 0, toBigInt(5), 1, 0, DOWN) | |
320 | + | $Tuple5(G(bI, b), G(cx, bF), G(cy, bG), bs((bZ + cy), (bX + cx)), cB) | |
334 | 321 | } | |
335 | 322 | else { | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | if (if (( | |
340 | - | then ( | |
323 | + | let ca = bs(bZ, bX) | |
324 | + | let cB = fraction(O((ca - cz)), d, ca) | |
325 | + | let cC = D(ck, b) | |
326 | + | if (if ((ca != e)) | |
327 | + | then (cB > cC) | |
341 | 328 | else false) | |
342 | - | then throw(((("Price slippage " + toString( | |
329 | + | then throw(((("Price slippage " + toString(cB)) + " exceeded the passed limit of ") + toString(cC))) | |
343 | 330 | else { | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | then $Tuple2( | |
349 | - | else $Tuple2( | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | $Tuple5(G( | |
331 | + | let cd = D(bV, b) | |
332 | + | let cD = fraction(cx, ca, d) | |
333 | + | let cE = fraction(cy, d, ca) | |
334 | + | let cF = if ((cD > cy)) | |
335 | + | then $Tuple2(cE, cy) | |
336 | + | else $Tuple2(cx, cD) | |
337 | + | let cG = cF._1 | |
338 | + | let cH = cF._2 | |
339 | + | let bI = fraction(cd, cH, bZ) | |
340 | + | $Tuple5(G(bI, b), G(cG, bF), G(cH, bG), ca, cB) | |
354 | 341 | } | |
355 | 342 | } | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | if ((0 >= | |
343 | + | let cI = cA._1 | |
344 | + | let cJ = cA._2 | |
345 | + | let cK = cA._3 | |
346 | + | let cb = G(cA._4, b) | |
347 | + | let cL = G(cA._5, b) | |
348 | + | if ((0 >= cI)) | |
362 | 349 | then throw("Invalid calculations. LP calculated is less than zero.") | |
363 | 350 | else { | |
364 | - | let | |
351 | + | let cM = if (!(cq)) | |
365 | 352 | then 0 | |
366 | - | else | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | $Tuple13( | |
353 | + | else cI | |
354 | + | let cN = (cl - cJ) | |
355 | + | let cO = (cn - cK) | |
356 | + | let cP = [IntegerEntry(S(), cb), IntegerEntry(T(height, lastBlock.timestamp), cb), StringEntry(W(X, bO), bb(cJ, cK, cM, cb, ck, cL, height, lastBlock.timestamp, cN, cO))] | |
357 | + | $Tuple13(cI, cM, cb, bW, bY, bV, bR, bU, cP, cN, cO, cm, co) | |
371 | 358 | } | |
372 | 359 | } | |
373 | 360 | } | |
374 | 361 | ||
375 | 362 | ||
376 | - | func cW (cX,cY,cb) = { | |
377 | - | let cZ = fraction(pow((cX * cY), 0, toBigInt(5), 1, 0, DOWN), d, cb) | |
378 | - | cZ | |
363 | + | func cQ (cR) = { | |
364 | + | let bE = aH() | |
365 | + | let cS = bE[r] | |
366 | + | let cT = bE[s] | |
367 | + | let bU = parseIntValue(bE[p]) | |
368 | + | let bF = parseIntValue(bE[t]) | |
369 | + | let bG = parseIntValue(bE[u]) | |
370 | + | let cU = bq(cS) | |
371 | + | let cV = bq(cT) | |
372 | + | let ca = if ((cR.orderType == Buy)) | |
373 | + | then bv(bF, bG, (cU + cR.amount), cV) | |
374 | + | else bv(bF, bG, (cU - cR.amount), cV) | |
375 | + | let cb = G(ca, b) | |
376 | + | if (if (if (aF()) | |
377 | + | then true | |
378 | + | else (bU == m)) | |
379 | + | then true | |
380 | + | else (bU == n)) | |
381 | + | then throw("Exchange operations disabled") | |
382 | + | else { | |
383 | + | let cW = cR.assetPair.amountAsset | |
384 | + | let cX = if ((cW == unit)) | |
385 | + | then "WAVES" | |
386 | + | else toBase58String(value(cW)) | |
387 | + | let cY = cR.assetPair.priceAsset | |
388 | + | let cZ = if ((cY == unit)) | |
389 | + | then "WAVES" | |
390 | + | else toBase58String(value(cY)) | |
391 | + | if (if ((cX != cS)) | |
392 | + | then true | |
393 | + | else (cZ != cT)) | |
394 | + | then throw("Wrong order assets.") | |
395 | + | else { | |
396 | + | let da = cR.price | |
397 | + | let db = fraction(b, bG, bF) | |
398 | + | let dc = J(da, b, db) | |
399 | + | let dd = if ((cR.orderType == Buy)) | |
400 | + | then (cb >= dc) | |
401 | + | else (dc >= cb) | |
402 | + | true | |
403 | + | } | |
404 | + | } | |
379 | 405 | } | |
380 | 406 | ||
381 | 407 | ||
382 | - | func da (db,dc,dd) = { | |
383 | - | let de = (bw(aS(ba)) + db) | |
384 | - | let df = (bw(aS(bb)) + dc) | |
385 | - | let dg = (value(assetInfo(aZ)).quantity + dd) | |
386 | - | let cZ = cW(toBigInt(de), toBigInt(df), toBigInt(dg)) | |
387 | - | let dh = [IntegerEntry(ag, height), StringEntry(af, toString(cZ))] | |
388 | - | $Tuple2(dh, cZ) | |
389 | - | } | |
390 | - | ||
391 | - | ||
392 | - | func di (dj) = { | |
393 | - | let dk = dj.amount | |
394 | - | let dl = fraction(dj.amount, dj.price, b) | |
395 | - | let dm = if ((dj.orderType == Buy)) | |
396 | - | then $Tuple2(dk, -(dl)) | |
397 | - | else $Tuple2(-(dk), dl) | |
398 | - | let db = dm._1 | |
399 | - | let dc = dm._2 | |
400 | - | if (if (if (aL()) | |
401 | - | then true | |
402 | - | else (aY == m)) | |
403 | - | then true | |
404 | - | else (aY == n)) | |
405 | - | then throw("Exchange operations disabled") | |
406 | - | else if (if ((dj.assetPair.amountAsset != ba)) | |
407 | - | then true | |
408 | - | else (dj.assetPair.priceAsset != bb)) | |
409 | - | then throw("Wrong order assets.") | |
410 | - | else { | |
411 | - | let dn = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp")) | |
412 | - | let do = da(db, dc, 0) | |
413 | - | let dp = do._1 | |
414 | - | let dq = do._2 | |
415 | - | let dr = (dq > dn) | |
416 | - | dr | |
417 | - | } | |
418 | - | } | |
419 | - | ||
420 | - | ||
421 | - | func ds (dt) = if ((size(dt.payments) != 1)) | |
408 | + | func de (df) = if ((size(df.payments) != 1)) | |
422 | 409 | then throw("exactly 1 payment is expected") | |
423 | 410 | else { | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | if (if ( | |
411 | + | let dg = value(df.payments[0]) | |
412 | + | let bP = value(dg.assetId) | |
413 | + | let dh = dg.amount | |
414 | + | let cA = bN(toBase58String(df.transactionId), toBase58String(bP), dh, df.caller) | |
415 | + | let cg = cA._1 | |
416 | + | let ch = cA._2 | |
417 | + | let bU = parseIntValue(cA._9) | |
418 | + | let ci = cA._10 | |
419 | + | if (if (aF()) | |
433 | 420 | then true | |
434 | - | else ( | |
435 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
436 | - | else $Tuple5( | |
421 | + | else (bU == n)) | |
422 | + | then throw(("Get operation is blocked by admin. Status = " + toString(bU))) | |
423 | + | else $Tuple5(cg, ch, dh, bP, ci) | |
437 | 424 | } | |
438 | 425 | ||
439 | 426 | ||
440 | - | func | |
427 | + | func di (df,ck,cq) = if ((size(df.payments) != 2)) | |
441 | 428 | then throw("exactly 2 payments are expected") | |
442 | 429 | else { | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | if (if (if ( | |
430 | + | let dj = value(df.payments[0]) | |
431 | + | let dk = value(df.payments[1]) | |
432 | + | let dl = cj(toBase58String(df.transactionId), ck, dj.amount, dj.assetId, dk.amount, dk.assetId, toString(df.caller), false, cq) | |
433 | + | let bU = parseIntValue(dl._8) | |
434 | + | if (if (if (aF()) | |
448 | 435 | then true | |
449 | - | else ( | |
436 | + | else (bU == l)) | |
450 | 437 | then true | |
451 | - | else ( | |
452 | - | then throw(("Put operation is blocked by admin. Status = " + toString( | |
453 | - | else | |
438 | + | else (bU == n)) | |
439 | + | then throw(("Put operation is blocked by admin. Status = " + toString(bU))) | |
440 | + | else dl | |
454 | 441 | } | |
455 | 442 | ||
456 | 443 | ||
457 | - | func | |
458 | - | let | |
459 | - | if (( | |
444 | + | func dm (dn) = { | |
445 | + | let do = invoke(aD, "emit", [dn], nil) | |
446 | + | if ((do == do)) | |
460 | 447 | then { | |
461 | - | let | |
462 | - | let | |
463 | - | if ($isInstanceOf( | |
448 | + | let dp = { | |
449 | + | let dq = do | |
450 | + | if ($isInstanceOf(dq, "Address")) | |
464 | 451 | then { | |
465 | - | let | |
466 | - | invoke( | |
452 | + | let dr = dq | |
453 | + | invoke(dr, "emit", [dn], nil) | |
467 | 454 | } | |
468 | 455 | else unit | |
469 | 456 | } | |
470 | - | if (( | |
471 | - | then | |
457 | + | if ((dp == dp)) | |
458 | + | then dn | |
472 | 459 | else throw("Strict value is not equal to itself.") | |
473 | 460 | } | |
474 | 461 | else throw("Strict value is not equal to itself.") | |
475 | 462 | } | |
476 | 463 | ||
477 | 464 | ||
478 | - | func | |
479 | - | let | |
480 | - | $Tuple2(( | |
465 | + | func ds (dn) = { | |
466 | + | let dt = fraction(dn, ae, b) | |
467 | + | $Tuple2((dn - dt), dt) | |
481 | 468 | } | |
482 | 469 | ||
483 | 470 | ||
484 | - | func | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
471 | + | func du (dv,dw,X,Y) = { | |
472 | + | let dx = (Y == unit) | |
473 | + | let dy = bq(aM(aU)) | |
474 | + | let dz = bq(aM(aV)) | |
475 | + | let dA = if ((dw == aU)) | |
489 | 476 | then true | |
490 | - | else if (( | |
477 | + | else if ((dw == aV)) | |
491 | 478 | then false | |
492 | - | else | |
493 | - | let | |
494 | - | then $Tuple2( | |
495 | - | else if ( | |
496 | - | then $Tuple2(( | |
497 | - | else $Tuple2( | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | then $Tuple2( | |
502 | - | else $Tuple2(0, | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | then | |
516 | - | else | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
479 | + | else aB("invalid asset") | |
480 | + | let dB = if (dx) | |
481 | + | then $Tuple2(dy, dz) | |
482 | + | else if (dA) | |
483 | + | then $Tuple2((dy - dv), dz) | |
484 | + | else $Tuple2(dy, (dz - dv)) | |
485 | + | let dC = dB._1 | |
486 | + | let dD = dB._2 | |
487 | + | let dE = if (dA) | |
488 | + | then $Tuple2(dv, 0) | |
489 | + | else $Tuple2(0, dv) | |
490 | + | let dF = dE._1 | |
491 | + | let dG = dE._2 | |
492 | + | let dH = ds(dF)._1 | |
493 | + | let dI = ds(dG)._1 | |
494 | + | let dJ = ds(dv) | |
495 | + | let dK = dJ._1 | |
496 | + | let dt = dJ._2 | |
497 | + | let dL = (dC + dH) | |
498 | + | let dM = (dD + dI) | |
499 | + | let dN = bs(D(dM, aX), D(dL, aW)) | |
500 | + | let dO = G(dN, b) | |
501 | + | let dP = if (dA) | |
502 | + | then dC | |
503 | + | else dD | |
504 | + | let dQ = toBigInt(dP) | |
505 | + | let dR = toBigInt(valueOrErrorMessage(assetInfo(aT), (("asset " + toBase58String(aT)) + " doesn't exist")).quantity) | |
506 | + | let dS = if ((dR > f)) | |
520 | 507 | then true | |
521 | - | else | |
522 | - | if (( | |
508 | + | else aB("initial deposit requires all coins") | |
509 | + | if ((dS == dS)) | |
523 | 510 | then { | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
511 | + | let dT = toBigInt(dK) | |
512 | + | let dU = max([0, toInt(((dR * (sqrtBigInt((d + ((dT * d) / dQ)), 18, 18, DOWN) - d)) / d))]) | |
513 | + | let cP = if (dx) | |
527 | 514 | then nil | |
528 | - | else [IntegerEntry(S(), | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | then $Tuple2( | |
534 | - | else $Tuple2( | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | fraction(( | |
515 | + | else [IntegerEntry(S(), dO), IntegerEntry(T(height, lastBlock.timestamp), dO), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bb(dF, dG, dU, dO, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
516 | + | let dV = bs(D(dD, aX), D(dC, aW)) | |
517 | + | let dW = G(dV, b) | |
518 | + | let dX = { | |
519 | + | let dY = if (dA) | |
520 | + | then $Tuple2(dF, dC) | |
521 | + | else $Tuple2(dG, dD) | |
522 | + | let dn = dY._1 | |
523 | + | let dZ = dY._2 | |
524 | + | let ea = toInt(fraction(dR, toBigInt((dn / 2)), toBigInt(dZ))) | |
525 | + | fraction((dU - ea), b, ea) | |
539 | 526 | } | |
540 | - | $ | |
527 | + | $Tuple4(dU, cP, dt, dX) | |
541 | 528 | } | |
542 | 529 | else throw("Strict value is not equal to itself.") | |
543 | 530 | } | |
544 | 531 | ||
545 | 532 | ||
546 | - | func | |
547 | - | let | |
548 | - | let | |
533 | + | func eb (ec,dK,dw,X,Y) = { | |
534 | + | let dx = (Y == unit) | |
535 | + | let ed = [if ((dw == aT)) | |
549 | 536 | then true | |
550 | - | else | |
551 | - | if (( | |
537 | + | else aB("invalid lp asset")] | |
538 | + | if ((ed == ed)) | |
552 | 539 | then { | |
553 | - | let | |
540 | + | let ee = if ((ec == aU)) | |
554 | 541 | then true | |
555 | - | else if (( | |
542 | + | else if ((ec == aV)) | |
556 | 543 | then false | |
557 | - | else | |
558 | - | let | |
559 | - | then toBigInt( | |
560 | - | else toBigInt( | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | then | |
565 | - | else | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | then $Tuple4( | |
575 | - | else $Tuple4(0, | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
544 | + | else aB("invalid asset") | |
545 | + | let ef = if (ee) | |
546 | + | then toBigInt(bq(aM(aU))) | |
547 | + | else toBigInt(bq(aM(aV))) | |
548 | + | let eg = bq(aM(aU)) | |
549 | + | let eh = bq(aM(aV)) | |
550 | + | let ei = if (ee) | |
551 | + | then eg | |
552 | + | else eh | |
553 | + | let ej = toBigInt(ei) | |
554 | + | let dR = toBigInt(valueOrErrorMessage(assetInfo(aT), (("asset " + toBase58String(aT)) + " doesn't exist")).quantity) | |
555 | + | let ek = toBigInt(dK) | |
556 | + | let el = max([0, toInt(((ef * (d - pow((d - ((ek * d) / dR)), 18, h, 0, 18, DOWN))) / d))]) | |
557 | + | let em = ds(el) | |
558 | + | let en = em._1 | |
559 | + | let dt = em._2 | |
560 | + | let eo = if (ee) | |
561 | + | then $Tuple4(en, 0, (eg - el), eh) | |
562 | + | else $Tuple4(0, en, eg, (eh - el)) | |
563 | + | let ep = eo._1 | |
564 | + | let eq = eo._2 | |
565 | + | let er = eo._3 | |
566 | + | let es = eo._4 | |
567 | + | let dN = bs(D(es, aX), D(er, aW)) | |
568 | + | let dO = G(dN, b) | |
569 | + | let cP = if (dx) | |
583 | 570 | then nil | |
584 | - | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | fraction(( | |
571 | + | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bm(ep, eq, dK, dO, height, lastBlock.timestamp)), IntegerEntry(S(), dO), IntegerEntry(T(height, lastBlock.timestamp), dO)] | |
572 | + | let dV = bs(D(eh, aX), D(eg, aW)) | |
573 | + | let dW = G(dV, b) | |
574 | + | let dX = { | |
575 | + | let et = (toInt(fraction(ef, ek, dR)) * 2) | |
576 | + | fraction((en - et), b, et) | |
590 | 577 | } | |
591 | - | $ | |
578 | + | $Tuple4(en, cP, dt, dX) | |
592 | 579 | } | |
593 | 580 | else throw("Strict value is not equal to itself.") | |
594 | 581 | } | |
595 | 582 | ||
596 | 583 | ||
597 | - | func | |
598 | - | let | |
599 | - | if ($isInstanceOf( | |
584 | + | func eu () = { | |
585 | + | let dq = getString(Q()) | |
586 | + | if ($isInstanceOf(dq, "String")) | |
600 | 587 | then { | |
601 | - | let | |
602 | - | fromBase58String( | |
588 | + | let ev = dq | |
589 | + | fromBase58String(ev) | |
603 | 590 | } | |
604 | - | else if ($isInstanceOf( | |
591 | + | else if ($isInstanceOf(dq, "Unit")) | |
605 | 592 | then unit | |
606 | 593 | else throw("Match error") | |
607 | 594 | } | |
608 | 595 | ||
609 | 596 | ||
610 | - | func | |
611 | - | let | |
612 | - | if ($isInstanceOf( | |
597 | + | func ew () = { | |
598 | + | let dq = getString(R()) | |
599 | + | if ($isInstanceOf(dq, "String")) | |
613 | 600 | then { | |
614 | - | let | |
615 | - | fromBase58String( | |
601 | + | let ev = dq | |
602 | + | fromBase58String(ev) | |
616 | 603 | } | |
617 | - | else if ($isInstanceOf( | |
604 | + | else if ($isInstanceOf(dq, "Unit")) | |
618 | 605 | then unit | |
619 | 606 | else throw("Match error") | |
620 | 607 | } | |
621 | 608 | ||
622 | 609 | ||
623 | - | func | |
624 | - | let | |
625 | - | if ($isInstanceOf( | |
610 | + | func ex (df) = { | |
611 | + | let dq = eu() | |
612 | + | if ($isInstanceOf(dq, "ByteVector")) | |
626 | 613 | then { | |
627 | - | let | |
628 | - | ( | |
614 | + | let ey = dq | |
615 | + | (df.callerPublicKey == ey) | |
629 | 616 | } | |
630 | - | else if ($isInstanceOf( | |
631 | - | then ( | |
617 | + | else if ($isInstanceOf(dq, "Unit")) | |
618 | + | then (df.caller == this) | |
632 | 619 | else throw("Match error") | |
633 | 620 | } | |
634 | 621 | ||
635 | 622 | ||
636 | - | func | |
637 | - | let | |
638 | - | let | |
639 | - | if ($isInstanceOf( | |
623 | + | func ez (df) = { | |
624 | + | let eA = throw("Permission denied") | |
625 | + | let dq = eu() | |
626 | + | if ($isInstanceOf(dq, "ByteVector")) | |
640 | 627 | then { | |
641 | - | let | |
642 | - | if (( | |
628 | + | let ey = dq | |
629 | + | if ((df.callerPublicKey == ey)) | |
643 | 630 | then true | |
644 | - | else | |
631 | + | else eA | |
645 | 632 | } | |
646 | - | else if ($isInstanceOf( | |
647 | - | then if (( | |
633 | + | else if ($isInstanceOf(dq, "Unit")) | |
634 | + | then if ((df.caller == this)) | |
648 | 635 | then true | |
649 | - | else | |
636 | + | else eA | |
650 | 637 | else throw("Match error") | |
651 | 638 | } | |
652 | 639 | ||
653 | 640 | ||
654 | - | @Callable( | |
655 | - | func setManager ( | |
656 | - | let | |
657 | - | if (( | |
641 | + | @Callable(df) | |
642 | + | func setManager (eB) = { | |
643 | + | let eC = ez(df) | |
644 | + | if ((eC == eC)) | |
658 | 645 | then { | |
659 | - | let | |
660 | - | if (( | |
661 | - | then [StringEntry(R(), | |
646 | + | let eD = fromBase58String(eB) | |
647 | + | if ((eD == eD)) | |
648 | + | then [StringEntry(R(), eB)] | |
662 | 649 | else throw("Strict value is not equal to itself.") | |
663 | 650 | } | |
664 | 651 | else throw("Strict value is not equal to itself.") | |
665 | 652 | } | |
666 | 653 | ||
667 | 654 | ||
668 | 655 | ||
669 | - | @Callable( | |
656 | + | @Callable(df) | |
670 | 657 | func confirmManager () = { | |
671 | - | let | |
672 | - | let | |
658 | + | let eE = ew() | |
659 | + | let eF = if (isDefined(eE)) | |
673 | 660 | then true | |
674 | 661 | else throw("No pending manager") | |
675 | - | if (( | |
662 | + | if ((eF == eF)) | |
676 | 663 | then { | |
677 | - | let | |
664 | + | let eG = if ((df.callerPublicKey == value(eE))) | |
678 | 665 | then true | |
679 | 666 | else throw("You are not pending manager") | |
680 | - | if (( | |
681 | - | then [StringEntry(Q(), toBase58String(value( | |
667 | + | if ((eG == eG)) | |
668 | + | then [StringEntry(Q(), toBase58String(value(eE))), DeleteEntry(R())] | |
682 | 669 | else throw("Strict value is not equal to itself.") | |
683 | 670 | } | |
684 | 671 | else throw("Strict value is not equal to itself.") | |
685 | 672 | } | |
686 | 673 | ||
687 | 674 | ||
688 | 675 | ||
689 | - | @Callable( | |
690 | - | func put ( | |
676 | + | @Callable(df) | |
677 | + | func put (ck,eH) = if ((0 > ck)) | |
691 | 678 | then throw("Invalid slippageTolerance passed") | |
692 | 679 | else { | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | if (( | |
680 | + | let dl = di(df, ck, true) | |
681 | + | let cM = dl._2 | |
682 | + | let bR = dl._7 | |
683 | + | let ci = dl._9 | |
684 | + | let cN = dl._10 | |
685 | + | let cO = dl._11 | |
686 | + | let eI = dl._12 | |
687 | + | let eJ = dl._13 | |
688 | + | let do = invoke(aD, "emit", [cM], nil) | |
689 | + | if ((do == do)) | |
703 | 690 | then { | |
704 | - | let | |
705 | - | let | |
706 | - | if ($isInstanceOf( | |
691 | + | let dp = { | |
692 | + | let dq = do | |
693 | + | if ($isInstanceOf(dq, "Address")) | |
707 | 694 | then { | |
708 | - | let | |
709 | - | invoke( | |
695 | + | let dr = dq | |
696 | + | invoke(dr, "emit", [cM], nil) | |
710 | 697 | } | |
711 | 698 | else unit | |
712 | 699 | } | |
713 | - | if (( | |
700 | + | if ((dp == dp)) | |
714 | 701 | then { | |
715 | - | let | |
716 | - | then invoke( | |
702 | + | let eK = if ((cN > 0)) | |
703 | + | then invoke(ba, "put", nil, [AttachedPayment(eI, cN)]) | |
717 | 704 | else nil | |
718 | - | if (( | |
705 | + | if ((eK == eK)) | |
719 | 706 | then { | |
720 | - | let | |
721 | - | then invoke( | |
707 | + | let eL = if ((cO > 0)) | |
708 | + | then invoke(ba, "put", nil, [AttachedPayment(eJ, cO)]) | |
722 | 709 | else nil | |
723 | - | if (( | |
710 | + | if ((eL == eL)) | |
724 | 711 | then { | |
725 | - | let | |
712 | + | let eM = if (eH) | |
726 | 713 | then { | |
727 | - | let | |
728 | - | if (( | |
714 | + | let eN = invoke(aZ, "stake", nil, [AttachedPayment(bR, cM)]) | |
715 | + | if ((eN == eN)) | |
729 | 716 | then nil | |
730 | 717 | else throw("Strict value is not equal to itself.") | |
731 | 718 | } | |
732 | - | else [ScriptTransfer(dt.caller, cS, bX)] | |
733 | - | let fa = da(0, 0, 0) | |
734 | - | let fb = fa._1 | |
735 | - | let cZ = fa._2 | |
736 | - | ((co ++ eY) ++ fb) | |
719 | + | else [ScriptTransfer(df.caller, cM, bR)] | |
720 | + | (ci ++ eM) | |
737 | 721 | } | |
738 | 722 | else throw("Strict value is not equal to itself.") | |
739 | 723 | } | |
740 | 724 | else throw("Strict value is not equal to itself.") | |
741 | 725 | } | |
742 | 726 | else throw("Strict value is not equal to itself.") | |
743 | 727 | } | |
744 | 728 | else throw("Strict value is not equal to itself.") | |
745 | 729 | } | |
746 | 730 | ||
747 | 731 | ||
748 | 732 | ||
749 | - | @Callable( | |
750 | - | func putForFree ( | |
733 | + | @Callable(df) | |
734 | + | func putForFree (eO) = if ((0 > eO)) | |
751 | 735 | then throw("Invalid value passed") | |
752 | 736 | else { | |
753 | - | let dz = dw(dt, fc, false) | |
754 | - | let co = dz._9 | |
755 | - | let fd = da(0, 0, 0) | |
756 | - | let fb = fd._1 | |
757 | - | let cZ = fd._2 | |
758 | - | (co ++ fb) | |
737 | + | let dl = di(df, eO, false) | |
738 | + | dl._9 | |
759 | 739 | } | |
760 | 740 | ||
761 | 741 | ||
762 | 742 | ||
763 | - | @Callable( | |
764 | - | func putOneTkn ( | |
765 | - | let | |
766 | - | let | |
767 | - | if ($isInstanceOf( | |
768 | - | then | |
769 | - | else throw(($getType( | |
743 | + | @Callable(df) | |
744 | + | func putOneTkn (eP,eQ) = { | |
745 | + | let eR = { | |
746 | + | let eS = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
747 | + | if ($isInstanceOf(eS, "Boolean")) | |
748 | + | then eS | |
749 | + | else throw(($getType(eS) + " couldn't be cast to Boolean")) | |
770 | 750 | } | |
771 | - | let | |
751 | + | let eT = if (if (if (aF()) | |
772 | 752 | then true | |
773 | - | else ( | |
753 | + | else (aS == l)) | |
774 | 754 | then true | |
775 | - | else ( | |
755 | + | else (aS == n)) | |
776 | 756 | then true | |
777 | - | else | |
778 | - | let | |
757 | + | else eR | |
758 | + | let ed = [if (if (!(eT)) | |
779 | 759 | then true | |
780 | - | else | |
760 | + | else ex(df)) | |
781 | 761 | then true | |
782 | - | else | |
762 | + | else aB("put operation is blocked by admin"), if ((size(df.payments) == 1)) | |
783 | 763 | then true | |
784 | - | else | |
785 | - | if (( | |
764 | + | else aB("exactly 1 payment are expected")] | |
765 | + | if ((ed == ed)) | |
786 | 766 | then { | |
787 | - | let fj = dt.payments[0] | |
788 | - | let dK = fj.assetId | |
789 | - | let dJ = fj.amount | |
790 | - | let X = dt.caller | |
791 | - | let Y = dt.transactionId | |
792 | - | let fk = dI(dJ, dK, X, Y) | |
767 | + | let eU = df.payments[0] | |
768 | + | let dw = eU.assetId | |
769 | + | let dv = eU.amount | |
770 | + | let X = df.caller | |
771 | + | let Y = df.transactionId | |
772 | + | let eV = du(dv, dw, X, Y) | |
773 | + | let eW = eV._1 | |
774 | + | let cP = eV._2 | |
775 | + | let dt = eV._3 | |
776 | + | let eX = eV._4 | |
777 | + | let eY = if (if ((eP > 0)) | |
778 | + | then (eP > eW) | |
779 | + | else false) | |
780 | + | then aB(makeString(["amount to receive is less than ", toString(eP)], "")) | |
781 | + | else eW | |
782 | + | let do = dm(eY) | |
783 | + | if ((do == do)) | |
784 | + | then { | |
785 | + | let eM = if (eQ) | |
786 | + | then { | |
787 | + | let eZ = invoke(aZ, "stake", nil, [AttachedPayment(aT, eY)]) | |
788 | + | if ((eZ == eZ)) | |
789 | + | then nil | |
790 | + | else throw("Strict value is not equal to itself.") | |
791 | + | } | |
792 | + | else [ScriptTransfer(df.caller, eY, aT)] | |
793 | + | let fa = if ((dt > 0)) | |
794 | + | then [ScriptTransfer(aE, dt, dw)] | |
795 | + | else nil | |
796 | + | $Tuple2(((cP ++ eM) ++ fa), eY) | |
797 | + | } | |
798 | + | else throw("Strict value is not equal to itself.") | |
799 | + | } | |
800 | + | else throw("Strict value is not equal to itself.") | |
801 | + | } | |
802 | + | ||
803 | + | ||
804 | + | ||
805 | + | @Callable(df) | |
806 | + | func putOneTknREADONLY (dw,dv) = { | |
807 | + | let fb = du(dv, aK(dw), unit, unit) | |
808 | + | let eW = fb._1 | |
809 | + | let cP = fb._2 | |
810 | + | let dt = fb._3 | |
811 | + | let eX = fb._4 | |
812 | + | $Tuple2(nil, $Tuple3(eW, dt, eX)) | |
813 | + | } | |
814 | + | ||
815 | + | ||
816 | + | ||
817 | + | @Callable(df) | |
818 | + | func getOneTkn (fc,eP) = { | |
819 | + | let eR = { | |
820 | + | let eS = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
821 | + | if ($isInstanceOf(eS, "Boolean")) | |
822 | + | then eS | |
823 | + | else throw(($getType(eS) + " couldn't be cast to Boolean")) | |
824 | + | } | |
825 | + | let fd = if (if (aF()) | |
826 | + | then true | |
827 | + | else (aS == n)) | |
828 | + | then true | |
829 | + | else eR | |
830 | + | let ed = [if (if (!(fd)) | |
831 | + | then true | |
832 | + | else ex(df)) | |
833 | + | then true | |
834 | + | else aB("get operation is blocked by admin"), if ((size(df.payments) == 1)) | |
835 | + | then true | |
836 | + | else aB("exactly 1 payment are expected")] | |
837 | + | if ((ed == ed)) | |
838 | + | then { | |
839 | + | let ec = aK(fc) | |
840 | + | let eU = df.payments[0] | |
841 | + | let dw = eU.assetId | |
842 | + | let dK = eU.amount | |
843 | + | let X = df.caller | |
844 | + | let Y = df.transactionId | |
845 | + | let fe = eb(ec, dK, dw, X, Y) | |
846 | + | let ff = fe._1 | |
847 | + | let cP = fe._2 | |
848 | + | let dt = fe._3 | |
849 | + | let eX = fe._4 | |
850 | + | let dn = if (if ((eP > 0)) | |
851 | + | then (eP > ff) | |
852 | + | else false) | |
853 | + | then aB(makeString(["amount to receive is less than ", toString(eP)], "")) | |
854 | + | else ff | |
855 | + | let fg = invoke(aD, "burn", [dK], [AttachedPayment(dw, dK)]) | |
856 | + | if ((fg == fg)) | |
857 | + | then { | |
858 | + | let fh = [ScriptTransfer(X, dn, ec)] | |
859 | + | let fa = if ((dt > 0)) | |
860 | + | then [ScriptTransfer(aE, dt, ec)] | |
861 | + | else nil | |
862 | + | $Tuple2(((cP ++ fh) ++ fa), dn) | |
863 | + | } | |
864 | + | else throw("Strict value is not equal to itself.") | |
865 | + | } | |
866 | + | else throw("Strict value is not equal to itself.") | |
867 | + | } | |
868 | + | ||
869 | + | ||
870 | + | ||
871 | + | @Callable(df) | |
872 | + | func getOneTknREADONLY (ec,dK) = { | |
873 | + | let fi = eb(aK(ec), dK, aT, unit, unit) | |
874 | + | let ff = fi._1 | |
875 | + | let cP = fi._2 | |
876 | + | let dt = fi._3 | |
877 | + | let eX = fi._4 | |
878 | + | $Tuple2(nil, $Tuple3(ff, dt, eX)) | |
879 | + | } | |
880 | + | ||
881 | + | ||
882 | + | ||
883 | + | @Callable(df) | |
884 | + | func unstakeAndGetOneTkn (fj,fc,eP) = { | |
885 | + | let eR = { | |
886 | + | let eS = invoke(aD, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
887 | + | if ($isInstanceOf(eS, "Boolean")) | |
888 | + | then eS | |
889 | + | else throw(($getType(eS) + " couldn't be cast to Boolean")) | |
890 | + | } | |
891 | + | let fd = if (if (aF()) | |
892 | + | then true | |
893 | + | else (aS == n)) | |
894 | + | then true | |
895 | + | else eR | |
896 | + | let ed = [if (if (!(fd)) | |
897 | + | then true | |
898 | + | else ex(df)) | |
899 | + | then true | |
900 | + | else aB("get operation is blocked by admin"), if ((size(df.payments) == 0)) | |
901 | + | then true | |
902 | + | else aB("no payments are expected")] | |
903 | + | if ((ed == ed)) | |
904 | + | then { | |
905 | + | let ec = aK(fc) | |
906 | + | let X = df.caller | |
907 | + | let Y = df.transactionId | |
908 | + | let fk = invoke(aZ, "unstake", [toBase58String(aT), fj], nil) | |
793 | 909 | if ((fk == fk)) | |
794 | 910 | then { | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | then ( | |
911 | + | let fl = eb(ec, fj, aT, X, Y) | |
912 | + | let ff = fl._1 | |
913 | + | let cP = fl._2 | |
914 | + | let dt = fl._3 | |
915 | + | let eX = fl._4 | |
916 | + | let dn = if (if ((eP > 0)) | |
917 | + | then (eP > ff) | |
802 | 918 | else false) | |
803 | - | then | |
804 | - | else | |
805 | - | let | |
806 | - | if (( | |
919 | + | then aB(makeString(["amount to receive is less than ", toString(eP)], "")) | |
920 | + | else ff | |
921 | + | let fg = invoke(aD, "burn", [fj], [AttachedPayment(aT, fj)]) | |
922 | + | if ((fg == fg)) | |
807 | 923 | then { | |
808 | - | let eY = if (ff) | |
809 | - | then { | |
810 | - | let fo = invoke(bf, "stake", nil, [AttachedPayment(aZ, fn)]) | |
811 | - | if ((fo == fo)) | |
812 | - | then nil | |
813 | - | else throw("Strict value is not equal to itself.") | |
814 | - | } | |
815 | - | else [ScriptTransfer(dt.caller, fn, aZ)] | |
816 | - | let fp = if ((dH > 0)) | |
817 | - | then [ScriptTransfer(aK, dH, dK)] | |
924 | + | let fh = [ScriptTransfer(df.caller, dn, ec)] | |
925 | + | let fa = if ((dt > 0)) | |
926 | + | then [ScriptTransfer(aE, dt, ec)] | |
818 | 927 | else nil | |
819 | - | let fq = if ((this == aK)) | |
820 | - | then $Tuple2(0, 0) | |
821 | - | else if (dO) | |
822 | - | then $Tuple2(-(dH), 0) | |
823 | - | else $Tuple2(0, -(dH)) | |
824 | - | let db = fq._1 | |
825 | - | let dc = fq._2 | |
826 | - | let fr = da(db, dc, 0) | |
827 | - | let fb = fr._1 | |
828 | - | let cZ = fr._2 | |
829 | - | $Tuple2((((cV ++ eY) ++ fp) ++ fb), fn) | |
928 | + | $Tuple2(((cP ++ fh) ++ fa), dn) | |
830 | 929 | } | |
831 | 930 | else throw("Strict value is not equal to itself.") | |
832 | 931 | } | |
833 | 932 | else throw("Strict value is not equal to itself.") | |
834 | 933 | } | |
835 | 934 | else throw("Strict value is not equal to itself.") | |
836 | 935 | } | |
837 | 936 | ||
838 | 937 | ||
839 | 938 | ||
840 | - | @Callable(dt) | |
841 | - | func putOneTknREADONLY (dK,dJ) = { | |
842 | - | let fs = dI(dJ, aQ(dK), unit, unit) | |
843 | - | let fm = fs._1 | |
844 | - | let cV = fs._2 | |
845 | - | let dH = fs._3 | |
846 | - | let fl = fs._4 | |
847 | - | let dO = fs._5 | |
848 | - | $Tuple2(nil, $Tuple3(fm, dH, fl)) | |
849 | - | } | |
850 | - | ||
851 | - | ||
852 | - | ||
853 | - | @Callable(dt) | |
854 | - | func getOneTkn (ft,fe) = { | |
855 | - | let fg = { | |
856 | - | let fh = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
857 | - | if ($isInstanceOf(fh, "Boolean")) | |
858 | - | then fh | |
859 | - | else throw(($getType(fh) + " couldn't be cast to Boolean")) | |
860 | - | } | |
861 | - | let fu = if (if (aL()) | |
862 | - | then true | |
863 | - | else (aY == n)) | |
864 | - | then true | |
865 | - | else fg | |
866 | - | let ep = [if (if (!(fu)) | |
867 | - | then true | |
868 | - | else eJ(dt)) | |
869 | - | then true | |
870 | - | else aG("get operation is blocked by admin"), if ((size(dt.payments) == 1)) | |
871 | - | then true | |
872 | - | else aG("exactly 1 payment are expected")] | |
873 | - | if ((ep == ep)) | |
874 | - | then { | |
875 | - | let eo = aQ(ft) | |
876 | - | let fj = dt.payments[0] | |
877 | - | let dK = fj.assetId | |
878 | - | let dW = fj.amount | |
879 | - | let X = dt.caller | |
880 | - | let Y = dt.transactionId | |
881 | - | let fv = en(eo, dW, dK, X, Y) | |
882 | - | if ((fv == fv)) | |
883 | - | then { | |
884 | - | let eq = fv._5 | |
885 | - | let fl = fv._4 | |
886 | - | let dH = fv._3 | |
887 | - | let cV = fv._2 | |
888 | - | let fw = fv._1 | |
889 | - | let dB = if (if ((fe > 0)) | |
890 | - | then (fe > fw) | |
891 | - | else false) | |
892 | - | then aG(makeString(["amount to receive is less than ", toString(fe)], "")) | |
893 | - | else fw | |
894 | - | let fx = invoke(aJ, "burn", [dW], [AttachedPayment(dK, dW)]) | |
895 | - | if ((fx == fx)) | |
896 | - | then { | |
897 | - | let fy = [ScriptTransfer(X, dB, eo)] | |
898 | - | let fp = if ((dH > 0)) | |
899 | - | then [ScriptTransfer(aK, dH, eo)] | |
900 | - | else nil | |
901 | - | let fz = { | |
902 | - | let fA = if ((this == aK)) | |
903 | - | then 0 | |
904 | - | else dH | |
905 | - | if (eq) | |
906 | - | then $Tuple2(-((dB + fA)), 0) | |
907 | - | else $Tuple2(0, -((dB + fA))) | |
908 | - | } | |
909 | - | let db = fz._1 | |
910 | - | let dc = fz._2 | |
911 | - | let fB = da(db, dc, 0) | |
912 | - | let fb = fB._1 | |
913 | - | let cZ = fB._2 | |
914 | - | $Tuple2((((cV ++ fy) ++ fp) ++ fb), dB) | |
915 | - | } | |
916 | - | else throw("Strict value is not equal to itself.") | |
917 | - | } | |
918 | - | else throw("Strict value is not equal to itself.") | |
919 | - | } | |
939 | + | @Callable(df) | |
940 | + | func get () = { | |
941 | + | let cA = de(df) | |
942 | + | let fm = cA._1 | |
943 | + | let ch = cA._2 | |
944 | + | let dh = cA._3 | |
945 | + | let bP = cA._4 | |
946 | + | let ci = cA._5 | |
947 | + | let fn = invoke(aD, "burn", [dh], [AttachedPayment(bP, dh)]) | |
948 | + | if ((fn == fn)) | |
949 | + | then ci | |
920 | 950 | else throw("Strict value is not equal to itself.") | |
921 | 951 | } | |
922 | 952 | ||
923 | 953 | ||
924 | 954 | ||
925 | - | @Callable(dt) | |
926 | - | func getOneTknREADONLY (eo,dW) = { | |
927 | - | let fC = en(aQ(eo), dW, aZ, unit, unit) | |
928 | - | let fw = fC._1 | |
929 | - | let cV = fC._2 | |
930 | - | let dH = fC._3 | |
931 | - | let fl = fC._4 | |
932 | - | let eq = fC._5 | |
933 | - | $Tuple2(nil, $Tuple3(fw, dH, fl)) | |
955 | + | @Callable(df) | |
956 | + | func getNoLess (fo,fp) = { | |
957 | + | let cA = de(df) | |
958 | + | let cg = cA._1 | |
959 | + | let ch = cA._2 | |
960 | + | let dh = cA._3 | |
961 | + | let bP = cA._4 | |
962 | + | let ci = cA._5 | |
963 | + | if ((fo > cg)) | |
964 | + | then throw(((("noLessThenAmtAsset failed: " + toString(cg)) + " < ") + toString(fo))) | |
965 | + | else if ((fp > ch)) | |
966 | + | then throw(((("noLessThenPriceAsset failed: " + toString(ch)) + " < ") + toString(fp))) | |
967 | + | else { | |
968 | + | let fn = invoke(aD, "burn", [dh], [AttachedPayment(bP, dh)]) | |
969 | + | if ((fn == fn)) | |
970 | + | then ci | |
971 | + | else throw("Strict value is not equal to itself.") | |
972 | + | } | |
934 | 973 | } | |
935 | 974 | ||
936 | 975 | ||
937 | 976 | ||
938 | - | @Callable(dt) | |
939 | - | func unstakeAndGetOneTkn (fD,ft,fe) = { | |
940 | - | let fg = { | |
941 | - | let fh = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
942 | - | if ($isInstanceOf(fh, "Boolean")) | |
943 | - | then fh | |
944 | - | else throw(($getType(fh) + " couldn't be cast to Boolean")) | |
945 | - | } | |
946 | - | let fu = if (if (aL()) | |
947 | - | then true | |
948 | - | else (aY == n)) | |
949 | - | then true | |
950 | - | else fg | |
951 | - | let ep = [if (if (!(fu)) | |
952 | - | then true | |
953 | - | else eJ(dt)) | |
954 | - | then true | |
955 | - | else aG("get operation is blocked by admin"), if ((size(dt.payments) == 0)) | |
956 | - | then true | |
957 | - | else aG("no payments are expected")] | |
958 | - | if ((ep == ep)) | |
977 | + | @Callable(df) | |
978 | + | func unstakeAndGet (dn) = { | |
979 | + | let fq = if ((size(df.payments) != 0)) | |
980 | + | then throw("No payments are expected") | |
981 | + | else true | |
982 | + | if ((fq == fq)) | |
959 | 983 | then { | |
960 | - | let eo = aQ(ft) | |
961 | - | let X = dt.caller | |
962 | - | let Y = dt.transactionId | |
963 | - | let fE = invoke(bf, "unstake", [toBase58String(aZ), fD], nil) | |
964 | - | if ((fE == fE)) | |
984 | + | let bE = aH() | |
985 | + | let bR = fromBase58String(bE[q]) | |
986 | + | let fk = invoke(aZ, "unstake", [toBase58String(bR), dn], nil) | |
987 | + | if ((fk == fk)) | |
965 | 988 | then { | |
966 | - | let fF = en(eo, fD, aZ, X, Y) | |
967 | - | if ((fF == fF)) | |
989 | + | let cA = bN(toBase58String(df.transactionId), toBase58String(bR), dn, df.caller) | |
990 | + | let bU = parseIntValue(cA._9) | |
991 | + | let ci = cA._10 | |
992 | + | let fr = if (if (aF()) | |
993 | + | then true | |
994 | + | else (bU == n)) | |
995 | + | then throw(("Get operation is blocked by admin. Status = " + toString(bU))) | |
996 | + | else true | |
997 | + | if ((fr == fr)) | |
968 | 998 | then { | |
969 | - | let eq = fF._5 | |
970 | - | let fl = fF._4 | |
971 | - | let dH = fF._3 | |
972 | - | let cV = fF._2 | |
973 | - | let fw = fF._1 | |
974 | - | let dB = if (if ((fe > 0)) | |
975 | - | then (fe > fw) | |
976 | - | else false) | |
977 | - | then aG(makeString(["amount to receive is less than ", toString(fe)], "")) | |
978 | - | else fw | |
979 | - | let fx = invoke(aJ, "burn", [fD], [AttachedPayment(aZ, fD)]) | |
980 | - | if ((fx == fx)) | |
981 | - | then { | |
982 | - | let fy = [ScriptTransfer(dt.caller, dB, eo)] | |
983 | - | let fp = if ((dH > 0)) | |
984 | - | then [ScriptTransfer(aK, dH, eo)] | |
985 | - | else nil | |
986 | - | let fG = { | |
987 | - | let fA = if ((this == aK)) | |
988 | - | then 0 | |
989 | - | else dH | |
990 | - | if (eq) | |
991 | - | then $Tuple2(-((dB + fA)), 0) | |
992 | - | else $Tuple2(0, -((dB + fA))) | |
993 | - | } | |
994 | - | let db = fG._1 | |
995 | - | let dc = fG._2 | |
996 | - | let fH = da(db, dc, 0) | |
997 | - | let fb = fH._1 | |
998 | - | let cZ = fH._2 | |
999 | - | $Tuple2((((cV ++ fy) ++ fp) ++ fb), dB) | |
1000 | - | } | |
999 | + | let fn = invoke(aD, "burn", [dn], [AttachedPayment(bR, dn)]) | |
1000 | + | if ((fn == fn)) | |
1001 | + | then ci | |
1001 | 1002 | else throw("Strict value is not equal to itself.") | |
1002 | 1003 | } | |
1003 | 1004 | else throw("Strict value is not equal to itself.") | |
1004 | 1005 | } | |
1005 | 1006 | else throw("Strict value is not equal to itself.") | |
1006 | 1007 | } | |
1007 | 1008 | else throw("Strict value is not equal to itself.") | |
1008 | 1009 | } | |
1009 | 1010 | ||
1010 | 1011 | ||
1011 | 1012 | ||
1012 | - | @Callable(dt) | |
1013 | - | func get () = { | |
1014 | - | let cG = ds(dt) | |
1015 | - | let fI = cG._1 | |
1016 | - | let cn = cG._2 | |
1017 | - | let dv = cG._3 | |
1018 | - | let bV = cG._4 | |
1019 | - | let co = cG._5 | |
1020 | - | let fJ = invoke(aJ, "burn", [dv], [AttachedPayment(bV, dv)]) | |
1021 | - | if ((fJ == fJ)) | |
1013 | + | @Callable(df) | |
1014 | + | func unstakeAndGetNoLess (fj,fs,fp) = { | |
1015 | + | let fd = if (aF()) | |
1016 | + | then true | |
1017 | + | else (aS == n) | |
1018 | + | let ed = [if (!(fd)) | |
1019 | + | then true | |
1020 | + | else throw("get operation is blocked by admin"), if ((size(df.payments) == 0)) | |
1021 | + | then true | |
1022 | + | else throw("no payments are expected")] | |
1023 | + | if ((ed == ed)) | |
1022 | 1024 | then { | |
1023 | - | let fK = da(-(fI), -(cn), 0) | |
1024 | - | let fb = fK._1 | |
1025 | - | let cZ = fK._2 | |
1026 | - | (co ++ fb) | |
1027 | - | } | |
1028 | - | else throw("Strict value is not equal to itself.") | |
1029 | - | } | |
1030 | - | ||
1031 | - | ||
1032 | - | ||
1033 | - | @Callable(dt) | |
1034 | - | func getNoLess (fL,fM) = { | |
1035 | - | let cG = ds(dt) | |
1036 | - | let cm = cG._1 | |
1037 | - | let cn = cG._2 | |
1038 | - | let dv = cG._3 | |
1039 | - | let bV = cG._4 | |
1040 | - | let co = cG._5 | |
1041 | - | if ((fL > cm)) | |
1042 | - | then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fL))) | |
1043 | - | else if ((fM > cn)) | |
1044 | - | then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fM))) | |
1045 | - | else { | |
1046 | - | let fJ = invoke(aJ, "burn", [dv], [AttachedPayment(bV, dv)]) | |
1047 | - | if ((fJ == fJ)) | |
1048 | - | then { | |
1049 | - | let fN = da(-(cm), -(cn), 0) | |
1050 | - | let fb = fN._1 | |
1051 | - | let cZ = fN._2 | |
1052 | - | (co ++ fb) | |
1053 | - | } | |
1054 | - | else throw("Strict value is not equal to itself.") | |
1055 | - | } | |
1056 | - | } | |
1057 | - | ||
1058 | - | ||
1059 | - | ||
1060 | - | @Callable(dt) | |
1061 | - | func unstakeAndGet (dB) = { | |
1062 | - | let fO = if ((size(dt.payments) != 0)) | |
1063 | - | then throw("No payments are expected") | |
1064 | - | else true | |
1065 | - | if ((fO == fO)) | |
1066 | - | then { | |
1067 | - | let bK = aN() | |
1068 | - | let bX = fromBase58String(bK[q]) | |
1069 | - | let fE = invoke(bf, "unstake", [toBase58String(bX), dB], nil) | |
1070 | - | if ((fE == fE)) | |
1025 | + | let fk = invoke(aZ, "unstake", [toBase58String(aT), fj], nil) | |
1026 | + | if ((fk == fk)) | |
1071 | 1027 | then { | |
1072 | - | let cG = bT(toBase58String(dt.transactionId), toBase58String(bX), dB, dt.caller) | |
1073 | - | let cm = cG._1 | |
1074 | - | let cn = cG._2 | |
1075 | - | let ca = parseIntValue(cG._9) | |
1076 | - | let co = cG._10 | |
1077 | - | let fP = if (if (aL()) | |
1028 | + | let cA = bN(toBase58String(df.transactionId), toBase58String(aT), fj, df.caller) | |
1029 | + | let cg = cA._1 | |
1030 | + | let ch = cA._2 | |
1031 | + | let ci = cA._10 | |
1032 | + | let ft = [if ((cg >= fs)) | |
1078 | 1033 | then true | |
1079 | - | else ( | |
1080 | - | then | |
1081 | - | else | |
1082 | - | if (( | |
1034 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(fs)], "")), if ((ch >= fp)) | |
1035 | + | then true | |
1036 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fp)], ""))] | |
1037 | + | if ((ft == ft)) | |
1083 | 1038 | then { | |
1084 | - | let fJ = invoke(aJ, "burn", [dB], [AttachedPayment(bX, dB)]) | |
1085 | - | if ((fJ == fJ)) | |
1086 | - | then { | |
1087 | - | let fQ = da(-(cm), -(cn), 0) | |
1088 | - | let fb = fQ._1 | |
1089 | - | let cZ = fQ._2 | |
1090 | - | (co ++ fb) | |
1091 | - | } | |
1039 | + | let fn = invoke(aD, "burn", [fj], [AttachedPayment(aT, fj)]) | |
1040 | + | if ((fn == fn)) | |
1041 | + | then ci | |
1092 | 1042 | else throw("Strict value is not equal to itself.") | |
1093 | 1043 | } | |
1094 | 1044 | else throw("Strict value is not equal to itself.") | |
1095 | 1045 | } | |
1096 | 1046 | else throw("Strict value is not equal to itself.") | |
1097 | 1047 | } | |
1098 | 1048 | else throw("Strict value is not equal to itself.") | |
1099 | 1049 | } | |
1100 | 1050 | ||
1101 | 1051 | ||
1102 | 1052 | ||
1103 | - | @Callable(dt) | |
1104 | - | func unstakeAndGetNoLess (fD,fR,fM) = { | |
1105 | - | let fu = if (aL()) | |
1106 | - | then true | |
1107 | - | else (aY == n) | |
1108 | - | let ep = [if (!(fu)) | |
1109 | - | then true | |
1110 | - | else throw("get operation is blocked by admin"), if ((size(dt.payments) == 0)) | |
1111 | - | then true | |
1112 | - | else throw("no payments are expected")] | |
1113 | - | if ((ep == ep)) | |
1114 | - | then { | |
1115 | - | let fE = invoke(bf, "unstake", [toBase58String(aZ), fD], nil) | |
1116 | - | if ((fE == fE)) | |
1117 | - | then { | |
1118 | - | let cG = bT(toBase58String(dt.transactionId), toBase58String(aZ), fD, dt.caller) | |
1119 | - | let cm = cG._1 | |
1120 | - | let cn = cG._2 | |
1121 | - | let co = cG._10 | |
1122 | - | let fS = [if ((cm >= fR)) | |
1123 | - | then true | |
1124 | - | else throw(makeString(["amount asset amount to receive is less than ", toString(fR)], "")), if ((cn >= fM)) | |
1125 | - | then true | |
1126 | - | else throw(makeString(["price asset amount to receive is less than ", toString(fM)], ""))] | |
1127 | - | if ((fS == fS)) | |
1128 | - | then { | |
1129 | - | let fJ = invoke(aJ, "burn", [fD], [AttachedPayment(aZ, fD)]) | |
1130 | - | if ((fJ == fJ)) | |
1131 | - | then { | |
1132 | - | let fT = da(-(cm), -(cn), 0) | |
1133 | - | let fb = fT._1 | |
1134 | - | let cZ = fT._2 | |
1135 | - | (co ++ fb) | |
1136 | - | } | |
1137 | - | else throw("Strict value is not equal to itself.") | |
1138 | - | } | |
1139 | - | else throw("Strict value is not equal to itself.") | |
1140 | - | } | |
1141 | - | else throw("Strict value is not equal to itself.") | |
1142 | - | } | |
1143 | - | else throw("Strict value is not equal to itself.") | |
1053 | + | @Callable(df) | |
1054 | + | func activate (fu,fv) = if ((toString(df.caller) != toString(aD))) | |
1055 | + | then throw("permissions denied") | |
1056 | + | else $Tuple2([StringEntry(aa(), fu), StringEntry(ab(), fv)], "success") | |
1057 | + | ||
1058 | + | ||
1059 | + | ||
1060 | + | @Callable(df) | |
1061 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aH()) | |
1062 | + | ||
1063 | + | ||
1064 | + | ||
1065 | + | @Callable(df) | |
1066 | + | func getAccBalanceWrapperREADONLY (br) = $Tuple2(nil, bq(br)) | |
1067 | + | ||
1068 | + | ||
1069 | + | ||
1070 | + | @Callable(df) | |
1071 | + | func calcPricesWrapperREADONLY (by,bz,bD) = { | |
1072 | + | let bM = bC(by, bz, bD) | |
1073 | + | $Tuple2(nil, [toString(bM[0]), toString(bM[1]), toString(bM[2])]) | |
1144 | 1074 | } | |
1145 | 1075 | ||
1146 | 1076 | ||
1147 | 1077 | ||
1148 | - | @Callable(dt) | |
1149 | - | func activate (fU,fV) = if ((toString(dt.caller) != toString(aJ))) | |
1150 | - | then throw("permissions denied") | |
1151 | - | else $Tuple2([StringEntry(aa(), fU), StringEntry(ab(), fV)], "success") | |
1078 | + | @Callable(df) | |
1079 | + | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1152 | 1080 | ||
1153 | 1081 | ||
1154 | 1082 | ||
1155 | - | @Callable(dt) | |
1156 | - | func refreshKLp () = { | |
1157 | - | let fW = valueOrElse(getInteger(ag), 0) | |
1158 | - | let fX = if (((height - fW) >= aj)) | |
1159 | - | then unit | |
1160 | - | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1161 | - | if ((fX == fX)) | |
1162 | - | then { | |
1163 | - | let fY = da(0, 0, 0) | |
1164 | - | let dh = fY._1 | |
1165 | - | let cZ = fY._2 | |
1166 | - | $Tuple2(dh, toString(cZ)) | |
1167 | - | } | |
1168 | - | else throw("Strict value is not equal to itself.") | |
1083 | + | @Callable(df) | |
1084 | + | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1085 | + | ||
1086 | + | ||
1087 | + | ||
1088 | + | @Callable(df) | |
1089 | + | func calcPriceBigIntWrapperREADONLY (bt,bu) = $Tuple2(nil, toString(bs(parseBigIntValue(bt), parseBigIntValue(bu)))) | |
1090 | + | ||
1091 | + | ||
1092 | + | ||
1093 | + | @Callable(df) | |
1094 | + | func estimatePutOperationWrapperREADONLY (bO,ck,cl,cm,cn,co,X,cp,cq) = $Tuple2(nil, cj(bO, ck, cl, cm, cn, co, X, cp, cq)) | |
1095 | + | ||
1096 | + | ||
1097 | + | ||
1098 | + | @Callable(df) | |
1099 | + | func estimateGetOperationWrapperREADONLY (bO,bP,bQ,X) = { | |
1100 | + | let cA = bN(bO, bP, bQ, addressFromStringValue(X)) | |
1101 | + | $Tuple2(nil, $Tuple10(cA._1, cA._2, cA._3, cA._4, cA._5, cA._6, cA._7, toString(cA._8), cA._9, cA._10)) | |
1169 | 1102 | } | |
1170 | 1103 | ||
1171 | 1104 | ||
1172 | 1105 | ||
1173 | - | @Callable(dt) | |
1174 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1175 | - | ||
1176 | - | ||
1177 | - | ||
1178 | - | @Callable(dt) | |
1179 | - | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1180 | - | ||
1181 | - | ||
1182 | - | ||
1183 | - | @Callable(dt) | |
1184 | - | func calcPricesWrapperREADONLY (bE,bF,bJ) = { | |
1185 | - | let bS = bI(bE, bF, bJ) | |
1186 | - | $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])]) | |
1106 | + | @Callable(df) | |
1107 | + | func statsREADONLY () = { | |
1108 | + | let bE = aH() | |
1109 | + | let bR = fromBase58String(bE[q]) | |
1110 | + | let cS = bE[r] | |
1111 | + | let cT = bE[s] | |
1112 | + | let ct = bE[v] | |
1113 | + | let cu = bE[w] | |
1114 | + | let bF = parseIntValue(bE[t]) | |
1115 | + | let bG = parseIntValue(bE[u]) | |
1116 | + | let fw = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1117 | + | let cU = bq(cS) | |
1118 | + | let cV = bq(cT) | |
1119 | + | let fx = if ((fw == 0)) | |
1120 | + | then [e, e, e] | |
1121 | + | else bC(cU, cV, fw) | |
1122 | + | let cb = 0 | |
1123 | + | let fy = G(fx[1], b) | |
1124 | + | let fz = G(fx[2], b) | |
1125 | + | let fA = value(getInteger(aD, ap(toString(this)))) | |
1126 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cU), toString(cV), toString(fw), toString(cb), toString(fy), toString(fz), toString(fA)], j)) | |
1187 | 1127 | } | |
1188 | 1128 | ||
1189 | 1129 | ||
1190 | 1130 | ||
1191 | - | @Callable(dt) | |
1192 | - | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1193 | - | ||
1194 | - | ||
1195 | - | ||
1196 | - | @Callable(dt) | |
1197 | - | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1198 | - | ||
1199 | - | ||
1200 | - | ||
1201 | - | @Callable(dt) | |
1202 | - | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1203 | - | ||
1204 | - | ||
1205 | - | ||
1206 | - | @Callable(dt) | |
1207 | - | func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw)) | |
1208 | - | ||
1209 | - | ||
1210 | - | ||
1211 | - | @Callable(dt) | |
1212 | - | func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = { | |
1213 | - | let cG = bT(bU, bV, bW, addressFromStringValue(X)) | |
1214 | - | $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10)) | |
1131 | + | @Callable(df) | |
1132 | + | func evaluatePutByAmountAssetREADONLY (cl) = { | |
1133 | + | let bE = aH() | |
1134 | + | let bR = fromBase58String(bE[q]) | |
1135 | + | let cr = bE[r] | |
1136 | + | let bS = fromBase58String(cr) | |
1137 | + | let cs = bE[s] | |
1138 | + | let bT = fromBase58String(cs) | |
1139 | + | let bF = parseIntValue(bE[t]) | |
1140 | + | let bG = parseIntValue(bE[u]) | |
1141 | + | let bU = bE[p] | |
1142 | + | let fw = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1143 | + | let cU = bq(cr) | |
1144 | + | let cV = bq(cs) | |
1145 | + | let bA = D(cU, bF) | |
1146 | + | let bB = D(cV, bG) | |
1147 | + | let ca = if ((fw == 0)) | |
1148 | + | then e | |
1149 | + | else bs(bB, bA) | |
1150 | + | let cx = D(cl, bF) | |
1151 | + | let cy = fraction(cx, ca, d) | |
1152 | + | let cn = G(cy, bG) | |
1153 | + | let dl = cj("", 500000, cl, bS, cn, bT, "", true, false) | |
1154 | + | let cI = dl._1 | |
1155 | + | let fB = dl._3 | |
1156 | + | let bW = dl._4 | |
1157 | + | let bY = dl._5 | |
1158 | + | let bV = dl._6 | |
1159 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cI), toString(G(ca, b)), toString(bW), toString(bY), toString(bV), bU, toString(cl), toString(cn)], j)) | |
1215 | 1160 | } | |
1216 | 1161 | ||
1217 | 1162 | ||
1218 | 1163 | ||
1219 | - | @Callable(dt) | |
1220 | - | func statsREADONLY () = { | |
1221 | - | let bK = aN() | |
1222 | - | let bX = fromBase58String(bK[q]) | |
1223 | - | let fZ = bK[r] | |
1224 | - | let ga = bK[s] | |
1225 | - | let cz = bK[v] | |
1226 | - | let cA = bK[w] | |
1227 | - | let bL = parseIntValue(bK[t]) | |
1228 | - | let bM = parseIntValue(bK[u]) | |
1229 | - | let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1230 | - | let gc = bw(fZ) | |
1231 | - | let gd = bw(ga) | |
1232 | - | let ge = if ((gb == 0)) | |
1233 | - | then [e, e, e] | |
1234 | - | else bI(gc, gd, gb) | |
1235 | - | let ch = 0 | |
1236 | - | let gf = G(ge[1], b) | |
1237 | - | let gg = G(ge[2], b) | |
1238 | - | let gh = value(getInteger(aJ, au(toString(this)))) | |
1239 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gc), toString(gd), toString(gb), toString(ch), toString(gf), toString(gg), toString(gh)], j)) | |
1164 | + | @Callable(df) | |
1165 | + | func evaluatePutByPriceAssetREADONLY (cn) = { | |
1166 | + | let bE = aH() | |
1167 | + | let bR = fromBase58String(bE[q]) | |
1168 | + | let cr = bE[r] | |
1169 | + | let bS = fromBase58String(cr) | |
1170 | + | let cs = bE[s] | |
1171 | + | let bT = fromBase58String(cs) | |
1172 | + | let bF = parseIntValue(bE[t]) | |
1173 | + | let bG = parseIntValue(bE[u]) | |
1174 | + | let bU = bE[p] | |
1175 | + | let fw = valueOrErrorMessage(assetInfo(bR), (("Asset " + toBase58String(bR)) + " doesn't exist")).quantity | |
1176 | + | let fC = bq(cr) | |
1177 | + | let fD = bq(cs) | |
1178 | + | let fE = D(fC, bF) | |
1179 | + | let fF = D(fD, bG) | |
1180 | + | let ca = if ((fw == 0)) | |
1181 | + | then e | |
1182 | + | else bs(fF, fE) | |
1183 | + | let cy = D(cn, bG) | |
1184 | + | let cx = fraction(cy, d, ca) | |
1185 | + | let cl = G(cx, bF) | |
1186 | + | let dl = cj("", 500000, cl, bS, cn, bT, "", true, false) | |
1187 | + | let cI = dl._1 | |
1188 | + | let fB = dl._3 | |
1189 | + | let bW = dl._4 | |
1190 | + | let bY = dl._5 | |
1191 | + | let bV = dl._6 | |
1192 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cI), toString(G(ca, b)), toString(bW), toString(bY), toString(bV), bU, toString(cl), toString(cn)], j)) | |
1240 | 1193 | } | |
1241 | 1194 | ||
1242 | 1195 | ||
1243 | 1196 | ||
1244 | - | @Callable(dt) | |
1245 | - | func evaluatePutByAmountAssetREADONLY (cr) = { | |
1246 | - | let bK = aN() | |
1247 | - | let bX = fromBase58String(bK[q]) | |
1248 | - | let cx = bK[r] | |
1249 | - | let bY = fromBase58String(cx) | |
1250 | - | let cy = bK[s] | |
1251 | - | let bZ = fromBase58String(cy) | |
1252 | - | let bL = parseIntValue(bK[t]) | |
1253 | - | let bM = parseIntValue(bK[u]) | |
1254 | - | let ca = bK[p] | |
1255 | - | let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1256 | - | let gc = bw(cx) | |
1257 | - | let gd = bw(cy) | |
1258 | - | let bG = D(gc, bL) | |
1259 | - | let bH = D(gd, bM) | |
1260 | - | let cg = if ((gb == 0)) | |
1261 | - | then e | |
1262 | - | else by(bH, bG) | |
1263 | - | let cD = D(cr, bL) | |
1264 | - | let cE = fraction(cD, cg, d) | |
1265 | - | let ct = G(cE, bM) | |
1266 | - | let dz = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1267 | - | let cO = dz._1 | |
1268 | - | let gi = dz._3 | |
1269 | - | let cc = dz._4 | |
1270 | - | let ce = dz._5 | |
1271 | - | let cb = dz._6 | |
1272 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j)) | |
1197 | + | @Callable(df) | |
1198 | + | func evaluateGetREADONLY (fG,fH) = { | |
1199 | + | let cA = bN("", fG, fH, this) | |
1200 | + | let cg = cA._1 | |
1201 | + | let ch = cA._2 | |
1202 | + | let bW = cA._5 | |
1203 | + | let bY = cA._6 | |
1204 | + | let bV = cA._7 | |
1205 | + | let cb = cA._8 | |
1206 | + | let bU = parseIntValue(cA._9) | |
1207 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cg), toString(ch), toString(bW), toString(bY), toString(bV), toString(cb), toString(bU)], j)) | |
1273 | 1208 | } | |
1274 | 1209 | ||
1275 | 1210 | ||
1276 | - | ||
1277 | - | @Callable(dt) | |
1278 | - | func evaluatePutByPriceAssetREADONLY (ct) = { | |
1279 | - | let bK = aN() | |
1280 | - | let bX = fromBase58String(bK[q]) | |
1281 | - | let cx = bK[r] | |
1282 | - | let bY = fromBase58String(cx) | |
1283 | - | let cy = bK[s] | |
1284 | - | let bZ = fromBase58String(cy) | |
1285 | - | let bL = parseIntValue(bK[t]) | |
1286 | - | let bM = parseIntValue(bK[u]) | |
1287 | - | let ca = bK[p] | |
1288 | - | let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity | |
1289 | - | let gj = bw(cx) | |
1290 | - | let gk = bw(cy) | |
1291 | - | let gl = D(gj, bL) | |
1292 | - | let gm = D(gk, bM) | |
1293 | - | let cg = if ((gb == 0)) | |
1294 | - | then e | |
1295 | - | else by(gm, gl) | |
1296 | - | let cE = D(ct, bM) | |
1297 | - | let cD = fraction(cE, d, cg) | |
1298 | - | let cr = G(cD, bL) | |
1299 | - | let dz = cp("", 500000, cr, bY, ct, bZ, "", true, false) | |
1300 | - | let cO = dz._1 | |
1301 | - | let gi = dz._3 | |
1302 | - | let cc = dz._4 | |
1303 | - | let ce = dz._5 | |
1304 | - | let cb = dz._6 | |
1305 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j)) | |
1306 | - | } | |
1307 | - | ||
1308 | - | ||
1309 | - | ||
1310 | - | @Callable(dt) | |
1311 | - | func evaluateGetREADONLY (gn,go) = { | |
1312 | - | let cG = bT("", gn, go, this) | |
1313 | - | let cm = cG._1 | |
1314 | - | let cn = cG._2 | |
1315 | - | let cc = cG._5 | |
1316 | - | let ce = cG._6 | |
1317 | - | let cb = cG._7 | |
1318 | - | let ch = cG._8 | |
1319 | - | let ca = parseIntValue(cG._9) | |
1320 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cm), toString(cn), toString(cc), toString(ce), toString(cb), toString(ch), toString(ca)], j)) | |
1321 | - | } | |
1322 | - | ||
1323 | - | ||
1324 | - | @Verifier(gp) | |
1325 | - | func gq () = { | |
1326 | - | let gr = { | |
1327 | - | let dE = eG() | |
1328 | - | if ($isInstanceOf(dE, "ByteVector")) | |
1211 | + | @Verifier(fI) | |
1212 | + | func fJ () = { | |
1213 | + | let fK = { | |
1214 | + | let dq = eu() | |
1215 | + | if ($isInstanceOf(dq, "ByteVector")) | |
1329 | 1216 | then { | |
1330 | - | let | |
1331 | - | | |
1217 | + | let ey = dq | |
1218 | + | ey | |
1332 | 1219 | } | |
1333 | - | else if ($isInstanceOf( | |
1334 | - | then | |
1220 | + | else if ($isInstanceOf(dq, "Unit")) | |
1221 | + | then fI.senderPublicKey | |
1335 | 1222 | else throw("Match error") | |
1336 | 1223 | } | |
1337 | - | let | |
1338 | - | if ($isInstanceOf( | |
1224 | + | let dq = fI | |
1225 | + | if ($isInstanceOf(dq, "Order")) | |
1339 | 1226 | then { | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1343 | - | let | |
1344 | - | let | |
1345 | - | if (if (if ( | |
1346 | - | then | |
1227 | + | let cR = dq | |
1228 | + | let fL = aG() | |
1229 | + | let au = cQ(cR) | |
1230 | + | let av = sigVerify(cR.bodyBytes, cR.proofs[0], cR.senderPublicKey) | |
1231 | + | let aw = sigVerify(cR.bodyBytes, cR.proofs[1], fL) | |
1232 | + | if (if (if (au) | |
1233 | + | then av | |
1347 | 1234 | else false) | |
1348 | - | then | |
1235 | + | then aw | |
1349 | 1236 | else false) | |
1350 | 1237 | then true | |
1351 | - | else | |
1238 | + | else at(au, av, aw) | |
1352 | 1239 | } | |
1353 | - | else if ($isInstanceOf( | |
1240 | + | else if ($isInstanceOf(dq, "SetScriptTransaction")) | |
1354 | 1241 | then { | |
1355 | - | let | |
1356 | - | let | |
1357 | - | let | |
1358 | - | let | |
1359 | - | if (if (( | |
1360 | - | then ( | |
1242 | + | let ev = dq | |
1243 | + | let fM = blake2b256(value(ev.script)) | |
1244 | + | let fN = fromBase64String(value(getString(aD, ar()))) | |
1245 | + | let fO = scriptHash(this) | |
1246 | + | if (if ((fN == fM)) | |
1247 | + | then (fO != fM) | |
1361 | 1248 | else false) | |
1362 | 1249 | then true | |
1363 | - | else sigVerify( | |
1250 | + | else sigVerify(fI.bodyBytes, fI.proofs[0], fK) | |
1364 | 1251 | } | |
1365 | - | else sigVerify( | |
1252 | + | else sigVerify(fI.bodyBytes, fI.proofs[0], fK) | |
1366 | 1253 | } | |
1367 | 1254 |
github/deemru/w8io/026f985 302.87 ms ◑