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