tx · HHeuM2zhjjZfidLv6CVqg3kfzAaPBmNhia4jUGVJVnAi 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.01400000 Waves 2021.12.27 22:37 [1853084] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "HHeuM2zhjjZfidLv6CVqg3kfzAaPBmNhia4jUGVJVnAi", "fee": 1400000, "feeAssetId": null, "timestamp": 1640633893452, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "nobyNB69yxKYRrwixgLLWjysS3i8ZdgssmxtRvHFTA1dgufMErBw6f2nrNiPsi1QmmR6tFMi3Z4SHd79pTbEumP" ], "script": "base64:AAIFAAAAAAAAAG0IAhIECgIICBIECgIBBBIHCgUBAQEBBBIDCgEBEgASBwoFAQEBCAESBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIAAAAQwAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAAp6ZXJvQmlnSW50CQABNgAAAAEAAAAAAAAAAAAAAAAACW9uZUJpZ0ludAkAATYAAAABAAAAAAAAAAABAAAAAAVBbXVsdAIAAAAJMTAwMDAwMDAwAAAAAAVEY29udgIAAAABMQAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAAAAAAKUG9vbEFjdGl2ZQAAAAAAAAAAAQAAAAAKUG9vbFB1dERpcwAAAAAAAAAAAgAAAAAOUG9vbE1hdGNoZXJEaXMAAAAAAAAAAAMAAAAADFBvb2xTaHV0ZG93bgAAAAAAAAAABAAAAAAOaWR4UG9vbEFkZHJlc3MAA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3JkZXIFAAAAByRtYXRjaDAEAAAAB210Y2hQdWIJAQAAABNnZXRNYXRjaGVyUHViT3JGYWlsAAAAAAQAAAADb3JWCQEAAAAbdmFsaWRhdGVNYXRjaGVyT3JkZXJBbGxvd2VkAAAAAQUAAAAFb3JkZXIEAAAABXNuZHJWCQAB9AAAAAMIBQAAAAVvcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAABW9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgFAAAABW9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQQAAAAFbXRjaFYJAAH0AAAAAwgFAAAABW9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAAFb3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAdtdGNoUHViAwMDBQAAAANvclYFAAAABXNuZHJWBwUAAAAFbXRjaFYHBgkBAAAAD3Rocm93T3JkZXJFcnJvcgAAAAMFAAAAA29yVgUAAAAFc25kclYFAAAABW10Y2hWBAAAAAVhZG1pbgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzCQEAAAAMa2V5TWFuUHViS2V5AAAAAAUAAAAFRU1QVFkDCQAAAAAAAAIFAAAABWFkbWluBQAAAAVFTVBUWQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEFAAAABWFkbWlufPAkPg==", "chainId": 84, "height": 1853084, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: qEY43BeB3q2L8ET2eMYykUpCz25QG9bMyfPthx72jvD Next: CGdQ82uwzGp6NgqSQzQzQKaUiTPMpSk9PmRfrFkBPoTJ Diff:
Old | New | Differences | |
---|---|---|---|
310 | 310 | else calcLpAmt | |
311 | 311 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
312 | 312 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
313 | + | let $t01564815994 = if (if (isOneAsset) | |
314 | + | then (pmtId == amIdStr) | |
315 | + | else false) | |
316 | + | then $Tuple2(pmtAmt, 0) | |
317 | + | else if (if (isOneAsset) | |
318 | + | then (pmtId == prIdStr) | |
319 | + | else false) | |
320 | + | then $Tuple2(0, pmtAmt) | |
321 | + | else $Tuple2(calcAmAssetPmt, calcPrAssetPmt) | |
322 | + | let writeAmAmt = $t01564815994._1 | |
323 | + | let writePrAmt = $t01564815994._2 | |
313 | 324 | let commonState = [IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice), StringEntry(keyPutActionByUser(userAddress, txId58), dataPutActionInfo(calcAmAssetPmt, calcPrAssetPmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
314 | 325 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, poolStatus, commonState, amDiff, prDiff, inAmId, inPrId) | |
315 | 326 | } | |
362 | 373 | ||
363 | 374 | ||
364 | 375 | func commonGet (i) = if ((size(i.payments) != 1)) | |
365 | - | then throw("1 pmnt | |
376 | + | then throw("1 pmnt exp") | |
366 | 377 | else { | |
367 | 378 | let pmt = value(i.payments[0]) | |
368 | 379 | let pmtAssetId = value(pmt.assetId) | |
375 | 386 | if (if (isGlobalShutdown()) | |
376 | 387 | then true | |
377 | 388 | else (poolStatus == PoolShutdown)) | |
378 | - | then throw((" | |
389 | + | then throw(("Admin blocked: " + toString(poolStatus))) | |
379 | 390 | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
380 | 391 | } | |
381 | 392 | ||
395 | 406 | ||
396 | 407 | @Callable(i) | |
397 | 408 | func constructor (factoryContract,managerPublicKey) = if ((i.caller != this)) | |
398 | - | then throw(" | |
409 | + | then throw("denied") | |
399 | 410 | else [StringEntry(keyFactCntr(), factoryContract), StringEntry(keyManPubKey(), managerPublicKey)] | |
400 | 411 | ||
401 | 412 | ||
406 | 417 | let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr") | |
407 | 418 | let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr") | |
408 | 419 | if ((0 > slip)) | |
409 | - | then throw("Invalid slippage | |
420 | + | then throw("Invalid slippage") | |
410 | 421 | else if ((size(i.payments) != 2)) | |
411 | 422 | then throw("2 pmnts expected") | |
412 | 423 | else { | |
478 | 489 | let pmtAmt = pmt.amount | |
479 | 490 | let amBalance = getAccBalance(amId) | |
480 | 491 | let prBalance = getAccBalance(prId) | |
481 | - | let $ | |
492 | + | let $t02367624056 = if ((pmtAssetId == amId)) | |
482 | 493 | then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0) | |
483 | 494 | else if ((pmtAssetId == prId)) | |
484 | 495 | then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart) | |
485 | 496 | else throw("wrong pmtAssetId") | |
486 | - | let amBalanceNow = $ | |
487 | - | let prBalanceNow = $ | |
488 | - | let virtSwapInAm = $ | |
489 | - | let virtSwapOutPr = $ | |
490 | - | let virtSwapInPr = $ | |
491 | - | let virtSwapOutAm = $ | |
497 | + | let amBalanceNow = $t02367624056._1 | |
498 | + | let prBalanceNow = $t02367624056._2 | |
499 | + | let virtSwapInAm = $t02367624056._3 | |
500 | + | let virtSwapOutPr = $t02367624056._4 | |
501 | + | let virtSwapInPr = $t02367624056._5 | |
502 | + | let virtSwapOutAm = $t02367624056._6 | |
492 | 503 | let dCur = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
493 | 504 | let dNew = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil) | |
494 | - | let dCurBIG = parseBigIntValue(asString(dCur)) | |
495 | - | let dNewBIG = parseBigIntValue(asString(dNew)) | |
496 | - | let D0vsD1 = validateAbsDiff(dNewBIG, dCurBIG, toBigInt(1000)) | |
505 | + | let D0vsD1 = validateAbsDiff(parseBigIntValue(asString(dNew)), parseBigIntValue(asString(dCur)), toBigInt(1000)) | |
497 | 506 | if ((D0vsD1 == D0vsD1)) | |
498 | 507 | then { | |
499 | 508 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), 50000000000, true, true, pmtAmt, pmtAssetId) | |
543 | 552 | func putForFree (maxSlippage) = if ((0 > maxSlippage)) | |
544 | 553 | then throw("Invalid slippage") | |
545 | 554 | else if ((size(i.payments) != 2)) | |
546 | - | then throw("2 | |
555 | + | then throw("2 pmnts expected") | |
547 | 556 | else { | |
548 | 557 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], maxSlippage, false, false, 0, "") | |
549 | 558 | estPut._9 | |
569 | 578 | ||
570 | 579 | @Callable(i) | |
571 | 580 | func getOneTkn (amAssetSwap,prAssetSwap,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1)) | |
572 | - | then throw("1 | |
581 | + | then throw("1 pmnt expected") | |
573 | 582 | else { | |
574 | 583 | let cfg = getPoolConfig() | |
575 | 584 | let lpId = cfg[idxLPAsId] | |
609 | 618 | let estimPrAmt = r._2 | |
610 | 619 | let amBalance = getAccBalance(amId) | |
611 | 620 | let prBalance = getAccBalance(prId) | |
612 | - | let $ | |
621 | + | let $t02866329147 = if ((outAssetId == amId)) | |
613 | 622 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), (outAmount - estimAmAmt), prAssetSwap, 0, 0, (estimAmAmt + amAssetSwap)) | |
614 | 623 | else if ((outAssetId == prId)) | |
615 | 624 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, (outAmount - estimPrAmt), amAssetSwap, (estimPrAmt + prAssetSwap)) | |
616 | 625 | else throw("wrong outAssetId") | |
617 | - | let amBalanceNow = $ | |
618 | - | let prBalanceNow = $ | |
619 | - | let virtSwapInAm = $ | |
620 | - | let virtSwapOutPr = $ | |
621 | - | let virtSwapInPr = $ | |
622 | - | let virtSwapOutAm = $ | |
623 | - | let totalGet = $ | |
626 | + | let amBalanceNow = $t02866329147._1 | |
627 | + | let prBalanceNow = $t02866329147._2 | |
628 | + | let virtSwapInAm = $t02866329147._3 | |
629 | + | let virtSwapOutPr = $t02866329147._4 | |
630 | + | let virtSwapInPr = $t02866329147._5 | |
631 | + | let virtSwapOutAm = $t02866329147._6 | |
632 | + | let totalGet = $t02866329147._7 | |
624 | 633 | let invLeft = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
625 | 634 | let invRight = invoke(gwxCntr, "calcD", [toString(((amBalanceNow - virtSwapInAm) + virtSwapOutAm)), toString(((prBalanceNow + virtSwapOutPr) - virtSwapInPr)), A, Amult, Dconv], nil) | |
626 | 635 | let D0vsD1 = validateAbsDiff(parseBigIntValue(asString(invRight)), parseBigIntValue(asString(invLeft)), toBigInt(1000)) | |
699 | 708 | let checkPoolStatus = if (if (isGlobalShutdown()) | |
700 | 709 | then true | |
701 | 710 | else (poolStatus == PoolShutdown)) | |
702 | - | then throw((" | |
711 | + | then throw(("Blocked: " + toString(poolStatus))) | |
703 | 712 | else true | |
704 | 713 | if ((checkPoolStatus == checkPoolStatus)) | |
705 | 714 | then { | |
719 | 728 | ||
720 | 729 | @Callable(i) | |
721 | 730 | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
722 | - | then throw(" | |
731 | + | then throw("denied") | |
723 | 732 | else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success") | |
724 | 733 | ||
725 | 734 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let scale8 = 100000000 | |
5 | 5 | ||
6 | 6 | let scale8BigInt = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let scale18 = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let zeroBigInt = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let oneBigInt = toBigInt(1) | |
13 | 13 | ||
14 | 14 | let Amult = "100000000" | |
15 | 15 | ||
16 | 16 | let Dconv = "1" | |
17 | 17 | ||
18 | 18 | let SEP = "__" | |
19 | 19 | ||
20 | 20 | let EMPTY = "" | |
21 | 21 | ||
22 | 22 | let PoolActive = 1 | |
23 | 23 | ||
24 | 24 | let PoolPutDis = 2 | |
25 | 25 | ||
26 | 26 | let PoolMatcherDis = 3 | |
27 | 27 | ||
28 | 28 | let PoolShutdown = 4 | |
29 | 29 | ||
30 | 30 | let idxPoolAddress = 1 | |
31 | 31 | ||
32 | 32 | let idxPoolSt = 2 | |
33 | 33 | ||
34 | 34 | let idxLPAsId = 3 | |
35 | 35 | ||
36 | 36 | let idxAmAsId = 4 | |
37 | 37 | ||
38 | 38 | let idxPrAsId = 5 | |
39 | 39 | ||
40 | 40 | let idxAmtAsDcm = 6 | |
41 | 41 | ||
42 | 42 | let idxPriceAsDcm = 7 | |
43 | 43 | ||
44 | 44 | let idxIAmtAsId = 8 | |
45 | 45 | ||
46 | 46 | let idxIPriceAsId = 9 | |
47 | 47 | ||
48 | 48 | let idxFactStakCntr = 1 | |
49 | 49 | ||
50 | 50 | let idxFactSlippCntr = 7 | |
51 | 51 | ||
52 | 52 | let idxFactGwxRewCntr = 10 | |
53 | 53 | ||
54 | 54 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18)) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func toScale (amt,resScale,curScale) = fraction(amt, resScale, curScale) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func abs (val) = if ((zeroBigInt > val)) | |
64 | 64 | then -(val) | |
65 | 65 | else val | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyFactCntr () = "%s__factoryContract" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyManPubKey () = "%s__managerPublicKey" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyPriceLast () = "%s%s__price__last" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyPriceHistory (h,t) = makeString(["%s%s%d%d__price__history", toString(h), toString(t)], SEP) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyPutActionByUser (ua,txId) = ((("%s%s%s__P__" + ua) + "__") + txId) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyGetActionByUser (ua,txId) = ((("%s%s%s__G__" + ua) + "__") + txId) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keyAmtAsset () = "%s__amountAsset" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keyPriceAsset () = "%s__priceAsset" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyAmplificator () = "%s__amp" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyFactoryConfig () = "%s__factoryConfig" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func keyMatcherPub () = "%s%s__matcher__publicKey" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keyPoolConfig (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config") | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyMappingsBaseAsset2internalId (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyAllPoolsShutdown () = "%s__shutdown" | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyPoolWeight (p) = ("%s%s__poolWeight__" + p) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func throwOrderError (orV,sendrV,matchV) = throw(((((("Failed: orderValid=" + toString(orV)) + " senderValid=") + toString(sendrV)) + " matcherValid=") + toString(matchV))) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func asString (val) = match val { | |
117 | 117 | case valStr: String => | |
118 | 118 | valStr | |
119 | 119 | case _ => | |
120 | 120 | throw("fail cast to String") | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func getStringOrFail (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " is not defined"], "")) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getIntOrFail (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " is not defined"], "")) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | let factoryContract = addressFromStringValue(getStringOrFail(this, keyFactCntr())) | |
131 | 131 | ||
132 | 132 | let A = getStringOrFail(this, keyAmplificator()) | |
133 | 133 | ||
134 | 134 | func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func getMatcherPubOrFail () = fromBase58String(getStringOrFail(factoryContract, keyMatcherPub())) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func getPoolConfig () = { | |
141 | 141 | let amtAs = getStringOrFail(this, keyAmtAsset()) | |
142 | 142 | let priceAs = getStringOrFail(this, keyPriceAsset()) | |
143 | 143 | let iPriceAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAs)) | |
144 | 144 | let iAmtAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAs)) | |
145 | 145 | split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAs), toString(iPriceAs))), SEP) | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slipByUser,slippageReal,txHeight,txTimestamp,slipageAmAmt,slipagePrAmt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(inAmtAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slipByUser), toString(slippageReal), toString(txHeight), toString(txTimestamp), toString(slipageAmAmt), toString(slipagePrAmt)], SEP) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func dataGetActionInfo (outAmtAssetAmt,outPriceAssetAmt,inLpAmt,price,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d", toString(outAmtAssetAmt), toString(outPriceAssetAmt), toString(inLpAmt), toString(price), toString(txHeight), toString(txTimestamp)], SEP) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func getAccBalance (assetId) = if ((assetId == "WAVES")) | |
159 | 159 | then wavesBalance(this).available | |
160 | 160 | else assetBalance(this, fromBase58String(assetId)) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func calcPriceBigInt (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func validateAbsDiff (realAmt,expectedAmt,slippage) = { | |
167 | 167 | let diff = fraction((realAmt - expectedAmt), scale8BigInt, expectedAmt) | |
168 | 168 | let passed = ((slippage - abs(diff)) > zeroBigInt) | |
169 | 169 | if (!(passed)) | |
170 | 170 | then throw(((("Too big slippage: " + toString(diff)) + " vs ") + toString(slippage))) | |
171 | 171 | else $Tuple2(passed, min([realAmt, expectedAmt])) | |
172 | 172 | } | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func privateCalcPrice (amAssetDcm,prAssetDcm,amAmt,prAmt) = { | |
176 | 176 | let amtAsAmtX18 = toX18(amAmt, amAssetDcm) | |
177 | 177 | let prAsAmtX18 = toX18(prAmt, prAssetDcm) | |
178 | 178 | calcPriceBigInt(prAsAmtX18, amtAsAmtX18) | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func calcPrices (amAmt,prAmt,lpAmt) = { | |
183 | 183 | let cfg = getPoolConfig() | |
184 | 184 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
185 | 185 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
186 | 186 | let priceX18 = privateCalcPrice(amtAsDcm, prAsDcm, amAmt, prAmt) | |
187 | 187 | let amAmtX18 = toX18(amAmt, amtAsDcm) | |
188 | 188 | let prAmtX18 = toX18(prAmt, prAsDcm) | |
189 | 189 | let lpAmtX18 = toX18(lpAmt, scale8) | |
190 | 190 | let lpPrInAmAsX18 = calcPriceBigInt(amAmtX18, lpAmtX18) | |
191 | 191 | let lpPrInPrAsX18 = calcPriceBigInt(prAmtX18, lpAmtX18) | |
192 | 192 | [priceX18, lpPrInAmAsX18, lpPrInPrAsX18] | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func calculatePrices (amAmt,prAmt,lpAmt) = { | |
197 | 197 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
198 | 198 | [fromX18(prices[0], scale8), fromX18(prices[1], scale8), fromX18(prices[2], scale8)] | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func estimateGetOperation (txId58,pmtAssetId,pmtLpAmt,userAddress) = { | |
203 | 203 | let cfg = getPoolConfig() | |
204 | 204 | let lpId = cfg[idxLPAsId] | |
205 | 205 | let amId = cfg[idxAmAsId] | |
206 | 206 | let prId = cfg[idxPrAsId] | |
207 | 207 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
208 | 208 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
209 | 209 | let poolStatus = cfg[idxPoolSt] | |
210 | 210 | let lpEmission = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), "Invalid LP id").quantity | |
211 | 211 | if ((lpId != pmtAssetId)) | |
212 | 212 | then throw("Invalid pmt asset") | |
213 | 213 | else { | |
214 | 214 | let amBalance = getAccBalance(amId) | |
215 | 215 | let amBalanceX18 = toX18(amBalance, amDcm) | |
216 | 216 | let prBalance = getAccBalance(prId) | |
217 | 217 | let prBalanceX18 = toX18(prBalance, prDcm) | |
218 | 218 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
219 | 219 | let curPrice = fromX18(curPriceX18, scale8) | |
220 | 220 | let pmtLpAmtX18 = toX18(pmtLpAmt, scale8) | |
221 | 221 | let lpEmissionX18 = toX18(lpEmission, scale8) | |
222 | 222 | let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissionX18) | |
223 | 223 | let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissionX18) | |
224 | 224 | let outAmAmt = fromX18(outAmAmtX18, amDcm) | |
225 | 225 | let outPrAmt = fromX18(outPrAmtX18, prDcm) | |
226 | 226 | let state = if ((txId58 == "")) | |
227 | 227 | then nil | |
228 | 228 | else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES")) | |
229 | 229 | then unit | |
230 | 230 | else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES")) | |
231 | 231 | then unit | |
232 | 232 | else fromBase58String(prId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice)] | |
233 | 233 | $Tuple10(outAmAmt, outPrAmt, amId, prId, amBalance, prBalance, lpEmission, curPriceX18, poolStatus, state) | |
234 | 234 | } | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func estimatePutOperation (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEval,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
239 | 239 | let cfg = getPoolConfig() | |
240 | 240 | let lpId = fromBase58String(cfg[idxLPAsId]) | |
241 | 241 | let amIdStr = cfg[idxAmAsId] | |
242 | 242 | let prIdStr = cfg[idxPrAsId] | |
243 | 243 | let inAmIdStr = cfg[idxIAmtAsId] | |
244 | 244 | let inPrIdStr = cfg[idxIPriceAsId] | |
245 | 245 | let amtDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
246 | 246 | let priceDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
247 | 247 | let poolStatus = cfg[idxPoolSt] | |
248 | 248 | let lpEm = valueOrErrorMessage(assetInfo(lpId), "Wr lp as").quantity | |
249 | 249 | let amBalance = if (isEval) | |
250 | 250 | then getAccBalance(amIdStr) | |
251 | 251 | else if (if (isOneAsset) | |
252 | 252 | then (pmtId == amIdStr) | |
253 | 253 | else false) | |
254 | 254 | then (getAccBalance(amIdStr) - pmtAmt) | |
255 | 255 | else if (isOneAsset) | |
256 | 256 | then getAccBalance(amIdStr) | |
257 | 257 | else (getAccBalance(amIdStr) - inAmAmt) | |
258 | 258 | let prBalance = if (isEval) | |
259 | 259 | then getAccBalance(prIdStr) | |
260 | 260 | else if (if (isOneAsset) | |
261 | 261 | then (pmtId == prIdStr) | |
262 | 262 | else false) | |
263 | 263 | then (getAccBalance(prIdStr) - pmtAmt) | |
264 | 264 | else if (isOneAsset) | |
265 | 265 | then getAccBalance(prIdStr) | |
266 | 266 | else (getAccBalance(prIdStr) - inPrAmt) | |
267 | 267 | let inAmAssetAmtX18 = toX18(inAmAmt, amtDcm) | |
268 | 268 | let inPrAssetAmtX18 = toX18(inPrAmt, priceDcm) | |
269 | 269 | let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18) | |
270 | 270 | let amBalanceX18 = toX18(amBalance, amtDcm) | |
271 | 271 | let prBalanceX18 = toX18(prBalance, priceDcm) | |
272 | 272 | let res = if ((lpEm == 0)) | |
273 | 273 | then { | |
274 | 274 | let curPriceX18 = zeroBigInt | |
275 | 275 | let slippageX18 = zeroBigInt | |
276 | 276 | let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN) | |
277 | 277 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtDcm), fromX18(inPrAssetAmtX18, priceDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18) | |
278 | 278 | } | |
279 | 279 | else { | |
280 | 280 | let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18) | |
281 | 281 | let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18) | |
282 | 282 | let slippageX18 = toX18(slippage, scale8) | |
283 | 283 | if (if ((curPriceX18 != zeroBigInt)) | |
284 | 284 | then (slippageRealX18 > slippageX18) | |
285 | 285 | else false) | |
286 | 286 | then throw(((("Price slippage " + toString(slippageRealX18)) + " > ") + toString(slippageX18))) | |
287 | 287 | else { | |
288 | 288 | let lpEmissionX18 = toX18(lpEm, scale8) | |
289 | 289 | let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18) | |
290 | 290 | let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18) | |
291 | 291 | let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18)) | |
292 | 292 | then $Tuple2(amViaPrX18, inPrAssetAmtX18) | |
293 | 293 | else $Tuple2(inAmAssetAmtX18, prViaAmX18) | |
294 | 294 | let expAmtAssetAmtX18 = expectedAmts._1 | |
295 | 295 | let expPriceAssetAmtX18 = expectedAmts._2 | |
296 | 296 | let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18) | |
297 | 297 | $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtDcm), fromX18(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18) | |
298 | 298 | } | |
299 | 299 | } | |
300 | 300 | let calcLpAmt = res._1 | |
301 | 301 | let calcAmAssetPmt = res._2 | |
302 | 302 | let calcPrAssetPmt = res._3 | |
303 | 303 | let curPrice = fromX18(res._4, scale8) | |
304 | 304 | let slippageCalc = fromX18(res._5, scale8) | |
305 | 305 | if ((0 >= calcLpAmt)) | |
306 | 306 | then throw("LP <= 0") | |
307 | 307 | else { | |
308 | 308 | let emitLpAmt = if (!(emitLp)) | |
309 | 309 | then 0 | |
310 | 310 | else calcLpAmt | |
311 | 311 | let amDiff = (inAmAmt - calcAmAssetPmt) | |
312 | 312 | let prDiff = (inPrAmt - calcPrAssetPmt) | |
313 | + | let $t01564815994 = if (if (isOneAsset) | |
314 | + | then (pmtId == amIdStr) | |
315 | + | else false) | |
316 | + | then $Tuple2(pmtAmt, 0) | |
317 | + | else if (if (isOneAsset) | |
318 | + | then (pmtId == prIdStr) | |
319 | + | else false) | |
320 | + | then $Tuple2(0, pmtAmt) | |
321 | + | else $Tuple2(calcAmAssetPmt, calcPrAssetPmt) | |
322 | + | let writeAmAmt = $t01564815994._1 | |
323 | + | let writePrAmt = $t01564815994._2 | |
313 | 324 | let commonState = [IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice), StringEntry(keyPutActionByUser(userAddress, txId58), dataPutActionInfo(calcAmAssetPmt, calcPrAssetPmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))] | |
314 | 325 | $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEm, lpId, poolStatus, commonState, amDiff, prDiff, inAmId, inPrId) | |
315 | 326 | } | |
316 | 327 | } | |
317 | 328 | ||
318 | 329 | ||
319 | 330 | func validateMatcherOrderAllowed (order) = { | |
320 | 331 | let cfg = getPoolConfig() | |
321 | 332 | let amtAsId = cfg[idxAmAsId] | |
322 | 333 | let prAsId = cfg[idxPrAsId] | |
323 | 334 | let poolStatus = parseIntValue(cfg[idxPoolSt]) | |
324 | 335 | let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
325 | 336 | let prAsDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
326 | 337 | let accAmtAsBalance = getAccBalance(amtAsId) | |
327 | 338 | let accPrAsBalance = getAccBalance(prAsId) | |
328 | 339 | let curPriceX18 = if ((order.orderType == Buy)) | |
329 | 340 | then privateCalcPrice(amtAsDcm, prAsDcm, (accAmtAsBalance + order.amount), accPrAsBalance) | |
330 | 341 | else privateCalcPrice(amtAsDcm, prAsDcm, (accAmtAsBalance - order.amount), accPrAsBalance) | |
331 | 342 | let curPrice = fromX18(curPriceX18, scale8) | |
332 | 343 | if (if (if (isGlobalShutdown()) | |
333 | 344 | then true | |
334 | 345 | else (poolStatus == PoolMatcherDis)) | |
335 | 346 | then true | |
336 | 347 | else (poolStatus == PoolShutdown)) | |
337 | 348 | then throw("Admin blocked") | |
338 | 349 | else { | |
339 | 350 | let orAmtAsset = order.assetPair.amountAsset | |
340 | 351 | let orAmtAsStr = if ((orAmtAsset == unit)) | |
341 | 352 | then "WAVES" | |
342 | 353 | else toBase58String(value(orAmtAsset)) | |
343 | 354 | let orPrAsset = order.assetPair.priceAsset | |
344 | 355 | let orPrAsStr = if ((orPrAsset == unit)) | |
345 | 356 | then "WAVES" | |
346 | 357 | else toBase58String(value(orPrAsset)) | |
347 | 358 | if (if ((orAmtAsStr != amtAsId)) | |
348 | 359 | then true | |
349 | 360 | else (orPrAsStr != prAsId)) | |
350 | 361 | then throw("Wr assets") | |
351 | 362 | else { | |
352 | 363 | let orderPrice = order.price | |
353 | 364 | let priceDcm = fraction(scale8, prAsDcm, amtAsDcm) | |
354 | 365 | let castOrderPrice = toScale(orderPrice, scale8, priceDcm) | |
355 | 366 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
356 | 367 | then (curPrice >= castOrderPrice) | |
357 | 368 | else (castOrderPrice >= curPrice) | |
358 | 369 | true | |
359 | 370 | } | |
360 | 371 | } | |
361 | 372 | } | |
362 | 373 | ||
363 | 374 | ||
364 | 375 | func commonGet (i) = if ((size(i.payments) != 1)) | |
365 | - | then throw("1 pmnt | |
376 | + | then throw("1 pmnt exp") | |
366 | 377 | else { | |
367 | 378 | let pmt = value(i.payments[0]) | |
368 | 379 | let pmtAssetId = value(pmt.assetId) | |
369 | 380 | let pmtAmt = pmt.amount | |
370 | 381 | let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
371 | 382 | let outAmAmt = res._1 | |
372 | 383 | let outPrAmt = res._2 | |
373 | 384 | let poolStatus = parseIntValue(res._9) | |
374 | 385 | let state = res._10 | |
375 | 386 | if (if (isGlobalShutdown()) | |
376 | 387 | then true | |
377 | 388 | else (poolStatus == PoolShutdown)) | |
378 | - | then throw((" | |
389 | + | then throw(("Admin blocked: " + toString(poolStatus))) | |
379 | 390 | else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state) | |
380 | 391 | } | |
381 | 392 | ||
382 | 393 | ||
383 | 394 | func commonPut (caller,txId,amAsPmt,prAsPmt,slippage,emitLp,isOneAsset,pmtAmt,pmtId) = { | |
384 | 395 | let r = estimatePutOperation(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp, isOneAsset, pmtAmt, pmtId) | |
385 | 396 | let status = parseIntValue(r._8) | |
386 | 397 | if (if (if (isGlobalShutdown()) | |
387 | 398 | then true | |
388 | 399 | else (status == PoolPutDis)) | |
389 | 400 | then true | |
390 | 401 | else (status == PoolShutdown)) | |
391 | 402 | then throw(("Admin blocked: " + toString(status))) | |
392 | 403 | else r | |
393 | 404 | } | |
394 | 405 | ||
395 | 406 | ||
396 | 407 | @Callable(i) | |
397 | 408 | func constructor (factoryContract,managerPublicKey) = if ((i.caller != this)) | |
398 | - | then throw(" | |
409 | + | then throw("denied") | |
399 | 410 | else [StringEntry(keyFactCntr(), factoryContract), StringEntry(keyManPubKey(), managerPublicKey)] | |
400 | 411 | ||
401 | 412 | ||
402 | 413 | ||
403 | 414 | @Callable(i) | |
404 | 415 | func put (slip,autoStake) = { | |
405 | 416 | let factCfg = getFactoryConfig() | |
406 | 417 | let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Wr st addr") | |
407 | 418 | let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Wr sl addr") | |
408 | 419 | if ((0 > slip)) | |
409 | - | then throw("Invalid slippage | |
420 | + | then throw("Invalid slippage") | |
410 | 421 | else if ((size(i.payments) != 2)) | |
411 | 422 | then throw("2 pmnts expected") | |
412 | 423 | else { | |
413 | 424 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], slip, true, false, 0, "") | |
414 | 425 | let emitLpAmt = estPut._2 | |
415 | 426 | let lpAssetId = estPut._7 | |
416 | 427 | let state = estPut._9 | |
417 | 428 | let amDiff = estPut._10 | |
418 | 429 | let prDiff = estPut._11 | |
419 | 430 | let amId = estPut._12 | |
420 | 431 | let prId = estPut._13 | |
421 | 432 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
422 | 433 | if ((emitInv == emitInv)) | |
423 | 434 | then { | |
424 | 435 | let slippageAInv = if ((amDiff > 0)) | |
425 | 436 | then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)]) | |
426 | 437 | else nil | |
427 | 438 | if ((slippageAInv == slippageAInv)) | |
428 | 439 | then { | |
429 | 440 | let slippagePInv = if ((prDiff > 0)) | |
430 | 441 | then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)]) | |
431 | 442 | else nil | |
432 | 443 | if ((slippagePInv == slippagePInv)) | |
433 | 444 | then { | |
434 | 445 | let lpTrnsfr = if (autoStake) | |
435 | 446 | then { | |
436 | 447 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
437 | 448 | if ((slpStakeInv == slpStakeInv)) | |
438 | 449 | then nil | |
439 | 450 | else throw("Strict value is not equal to itself.") | |
440 | 451 | } | |
441 | 452 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
442 | 453 | (state ++ lpTrnsfr) | |
443 | 454 | } | |
444 | 455 | else throw("Strict value is not equal to itself.") | |
445 | 456 | } | |
446 | 457 | else throw("Strict value is not equal to itself.") | |
447 | 458 | } | |
448 | 459 | else throw("Strict value is not equal to itself.") | |
449 | 460 | } | |
450 | 461 | } | |
451 | 462 | ||
452 | 463 | ||
453 | 464 | ||
454 | 465 | @Callable(i) | |
455 | 466 | func putOneTkn (amAssetPart,prAssetPart,outLp,slippage,autoStake) = { | |
456 | 467 | let cfg = getFactoryConfig() | |
457 | 468 | let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wr st addr") | |
458 | 469 | let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wr sl addr") | |
459 | 470 | let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wr gwx addr") | |
460 | 471 | let poolCfg = getPoolConfig() | |
461 | 472 | let amId = poolCfg[idxAmAsId] | |
462 | 473 | let prId = poolCfg[idxPrAsId] | |
463 | 474 | let amDcm = parseIntValue(poolCfg[idxAmtAsDcm]) | |
464 | 475 | let prDcm = parseIntValue(poolCfg[idxPriceAsDcm]) | |
465 | 476 | if (if (if (if ((0 >= slippage)) | |
466 | 477 | then true | |
467 | 478 | else (0 >= amAssetPart)) | |
468 | 479 | then true | |
469 | 480 | else (0 >= prAssetPart)) | |
470 | 481 | then true | |
471 | 482 | else (0 >= outLp)) | |
472 | 483 | then throw("Wrong params") | |
473 | 484 | else if ((size(i.payments) != 1)) | |
474 | 485 | then throw("1 pmnt expected") | |
475 | 486 | else { | |
476 | 487 | let pmt = value(i.payments[0]) | |
477 | 488 | let pmtAssetId = toBase58String(value(pmt.assetId)) | |
478 | 489 | let pmtAmt = pmt.amount | |
479 | 490 | let amBalance = getAccBalance(amId) | |
480 | 491 | let prBalance = getAccBalance(prId) | |
481 | - | let $ | |
492 | + | let $t02367624056 = if ((pmtAssetId == amId)) | |
482 | 493 | then $Tuple6((amBalance - pmtAmt), prBalance, (pmtAmt - amAssetPart), prAssetPart, 0, 0) | |
483 | 494 | else if ((pmtAssetId == prId)) | |
484 | 495 | then $Tuple6(amBalance, (prBalance - pmtAmt), 0, 0, (pmtAmt - prAssetPart), amAssetPart) | |
485 | 496 | else throw("wrong pmtAssetId") | |
486 | - | let amBalanceNow = $ | |
487 | - | let prBalanceNow = $ | |
488 | - | let virtSwapInAm = $ | |
489 | - | let virtSwapOutPr = $ | |
490 | - | let virtSwapInPr = $ | |
491 | - | let virtSwapOutAm = $ | |
497 | + | let amBalanceNow = $t02367624056._1 | |
498 | + | let prBalanceNow = $t02367624056._2 | |
499 | + | let virtSwapInAm = $t02367624056._3 | |
500 | + | let virtSwapOutPr = $t02367624056._4 | |
501 | + | let virtSwapInPr = $t02367624056._5 | |
502 | + | let virtSwapOutAm = $t02367624056._6 | |
492 | 503 | let dCur = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
493 | 504 | let dNew = invoke(gwxCntr, "calcD", [toString(toBigInt(((amBalanceNow + virtSwapInAm) - virtSwapOutAm))), toString(toBigInt(((prBalanceNow + virtSwapInPr) - virtSwapOutPr))), A, Amult, Dconv], nil) | |
494 | - | let dCurBIG = parseBigIntValue(asString(dCur)) | |
495 | - | let dNewBIG = parseBigIntValue(asString(dNew)) | |
496 | - | let D0vsD1 = validateAbsDiff(dNewBIG, dCurBIG, toBigInt(1000)) | |
505 | + | let D0vsD1 = validateAbsDiff(parseBigIntValue(asString(dNew)), parseBigIntValue(asString(dCur)), toBigInt(1000)) | |
497 | 506 | if ((D0vsD1 == D0vsD1)) | |
498 | 507 | then { | |
499 | 508 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), amAssetPart), AttachedPayment(fromBase58String(prId), prAssetPart), 50000000000, true, true, pmtAmt, pmtAssetId) | |
500 | 509 | let estimLP = estPut._2 | |
501 | 510 | let lpAssetId = estPut._7 | |
502 | 511 | let state = estPut._9 | |
503 | 512 | let amDiff = estPut._10 | |
504 | 513 | let prDiff = estPut._11 | |
505 | 514 | let lpCalcRes = validateAbsDiff(toBigInt(estimLP), toBigInt(outLp), toBigInt(slippage)) | |
506 | 515 | let emitLpAmt = toInt(lpCalcRes._2) | |
507 | 516 | let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil) | |
508 | 517 | if ((emitInv == emitInv)) | |
509 | 518 | then { | |
510 | 519 | let slippageAInv = if ((amDiff > 0)) | |
511 | 520 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)]) | |
512 | 521 | else nil | |
513 | 522 | if ((slippageAInv == slippageAInv)) | |
514 | 523 | then { | |
515 | 524 | let slippagePInv = if ((prDiff > 0)) | |
516 | 525 | then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)]) | |
517 | 526 | else nil | |
518 | 527 | if ((slippagePInv == slippagePInv)) | |
519 | 528 | then { | |
520 | 529 | let lpTrnsfr = if (autoStake) | |
521 | 530 | then { | |
522 | 531 | let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)]) | |
523 | 532 | if ((slpStakeInv == slpStakeInv)) | |
524 | 533 | then nil | |
525 | 534 | else throw("Strict value is not equal to itself.") | |
526 | 535 | } | |
527 | 536 | else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)] | |
528 | 537 | (state ++ lpTrnsfr) | |
529 | 538 | } | |
530 | 539 | else throw("Strict value is not equal to itself.") | |
531 | 540 | } | |
532 | 541 | else throw("Strict value is not equal to itself.") | |
533 | 542 | } | |
534 | 543 | else throw("Strict value is not equal to itself.") | |
535 | 544 | } | |
536 | 545 | else throw("Strict value is not equal to itself.") | |
537 | 546 | } | |
538 | 547 | } | |
539 | 548 | ||
540 | 549 | ||
541 | 550 | ||
542 | 551 | @Callable(i) | |
543 | 552 | func putForFree (maxSlippage) = if ((0 > maxSlippage)) | |
544 | 553 | then throw("Invalid slippage") | |
545 | 554 | else if ((size(i.payments) != 2)) | |
546 | - | then throw("2 | |
555 | + | then throw("2 pmnts expected") | |
547 | 556 | else { | |
548 | 557 | let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], maxSlippage, false, false, 0, "") | |
549 | 558 | estPut._9 | |
550 | 559 | } | |
551 | 560 | ||
552 | 561 | ||
553 | 562 | ||
554 | 563 | @Callable(i) | |
555 | 564 | func get () = { | |
556 | 565 | let res = commonGet(i) | |
557 | 566 | let outAmtAmt = res._1 | |
558 | 567 | let outPrAmt = res._2 | |
559 | 568 | let pmtAmt = res._3 | |
560 | 569 | let pmtAssetId = res._4 | |
561 | 570 | let state = res._5 | |
562 | 571 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
563 | 572 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
564 | 573 | then state | |
565 | 574 | else throw("Strict value is not equal to itself.") | |
566 | 575 | } | |
567 | 576 | ||
568 | 577 | ||
569 | 578 | ||
570 | 579 | @Callable(i) | |
571 | 580 | func getOneTkn (amAssetSwap,prAssetSwap,outAmount,outAssetId,slippage) = if ((size(i.payments) != 1)) | |
572 | - | then throw("1 | |
581 | + | then throw("1 pmnt expected") | |
573 | 582 | else { | |
574 | 583 | let cfg = getPoolConfig() | |
575 | 584 | let lpId = cfg[idxLPAsId] | |
576 | 585 | let amId = cfg[idxAmAsId] | |
577 | 586 | let prId = cfg[idxPrAsId] | |
578 | 587 | let amDcm = parseIntValue(cfg[idxAmtAsDcm]) | |
579 | 588 | let prDcm = parseIntValue(cfg[idxPriceAsDcm]) | |
580 | 589 | let poolStatus = cfg[idxPoolSt] | |
581 | 590 | let fcfg = getFactoryConfig() | |
582 | 591 | let gwxCntr = valueOrErrorMessage(addressFromString(fcfg[idxFactGwxRewCntr]), "Wr sl addr") | |
583 | 592 | if (if ((outAssetId != amId)) | |
584 | 593 | then (outAssetId != prId) | |
585 | 594 | else false) | |
586 | 595 | then throw("Wr out as") | |
587 | 596 | else { | |
588 | 597 | let resultAssetId = if ((outAssetId == amId)) | |
589 | 598 | then amId | |
590 | 599 | else prId | |
591 | 600 | let pmt = value(i.payments[0]) | |
592 | 601 | let userAddress = i.caller | |
593 | 602 | let txId58 = toBase58String(i.transactionId) | |
594 | 603 | let pmtAssetId = value(pmt.assetId) | |
595 | 604 | let pmtAmt = pmt.amount | |
596 | 605 | if (if (if (if ((0 > slippage)) | |
597 | 606 | then true | |
598 | 607 | else (0 > amAssetSwap)) | |
599 | 608 | then true | |
600 | 609 | else (0 > prAssetSwap)) | |
601 | 610 | then true | |
602 | 611 | else (0 > outAmount)) | |
603 | 612 | then throw("Wrong params") | |
604 | 613 | else if ((lpId != toBase58String(pmtAssetId))) | |
605 | 614 | then throw("Invalid LP") | |
606 | 615 | else { | |
607 | 616 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller) | |
608 | 617 | let estimAmAmt = r._1 | |
609 | 618 | let estimPrAmt = r._2 | |
610 | 619 | let amBalance = getAccBalance(amId) | |
611 | 620 | let prBalance = getAccBalance(prId) | |
612 | - | let $ | |
621 | + | let $t02866329147 = if ((outAssetId == amId)) | |
613 | 622 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), (outAmount - estimAmAmt), prAssetSwap, 0, 0, (estimAmAmt + amAssetSwap)) | |
614 | 623 | else if ((outAssetId == prId)) | |
615 | 624 | then $Tuple7((amBalance - estimAmAmt), (prBalance - estimPrAmt), 0, 0, (outAmount - estimPrAmt), amAssetSwap, (estimPrAmt + prAssetSwap)) | |
616 | 625 | else throw("wrong outAssetId") | |
617 | - | let amBalanceNow = $ | |
618 | - | let prBalanceNow = $ | |
619 | - | let virtSwapInAm = $ | |
620 | - | let virtSwapOutPr = $ | |
621 | - | let virtSwapInPr = $ | |
622 | - | let virtSwapOutAm = $ | |
623 | - | let totalGet = $ | |
626 | + | let amBalanceNow = $t02866329147._1 | |
627 | + | let prBalanceNow = $t02866329147._2 | |
628 | + | let virtSwapInAm = $t02866329147._3 | |
629 | + | let virtSwapOutPr = $t02866329147._4 | |
630 | + | let virtSwapInPr = $t02866329147._5 | |
631 | + | let virtSwapOutAm = $t02866329147._6 | |
632 | + | let totalGet = $t02866329147._7 | |
624 | 633 | let invLeft = invoke(gwxCntr, "calcD", [toString(amBalanceNow), toString(prBalanceNow), A, Amult, Dconv], nil) | |
625 | 634 | let invRight = invoke(gwxCntr, "calcD", [toString(((amBalanceNow - virtSwapInAm) + virtSwapOutAm)), toString(((prBalanceNow + virtSwapOutPr) - virtSwapInPr)), A, Amult, Dconv], nil) | |
626 | 635 | let D0vsD1 = validateAbsDiff(parseBigIntValue(asString(invRight)), parseBigIntValue(asString(invLeft)), toBigInt(1000)) | |
627 | 636 | if ((D0vsD1 == D0vsD1)) | |
628 | 637 | then { | |
629 | 638 | let amount2Return = validateAbsDiff(toBigInt(totalGet), toBigInt(outAmount), toBigInt(slippage)) | |
630 | 639 | if ((amount2Return == amount2Return)) | |
631 | 640 | then { | |
632 | 641 | let resultTuple = if ((outAssetId == amId)) | |
633 | 642 | then $Tuple2(toInt(amount2Return._2), 0) | |
634 | 643 | else $Tuple2(0, toInt(amount2Return._2)) | |
635 | 644 | let curPriceX18 = calcPriceBigInt(toX18(prBalance, prDcm), toX18(amBalance, amDcm)) | |
636 | 645 | let curPrice = fromX18(curPriceX18, scale8) | |
637 | 646 | let state = [ScriptTransfer(userAddress, if ((resultAssetId == amId)) | |
638 | 647 | then resultTuple._1 | |
639 | 648 | else resultTuple._2, if ((resultAssetId == "WAVES")) | |
640 | 649 | then unit | |
641 | 650 | else fromBase58String(resultAssetId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(resultTuple._1, resultTuple._2, pmtAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice)] | |
642 | 651 | if ((state == state)) | |
643 | 652 | then { | |
644 | 653 | let burn = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
645 | 654 | if ((burn == burn)) | |
646 | 655 | then state | |
647 | 656 | else throw("Strict value is not equal to itself.") | |
648 | 657 | } | |
649 | 658 | else throw("Strict value is not equal to itself.") | |
650 | 659 | } | |
651 | 660 | else throw("Strict value is not equal to itself.") | |
652 | 661 | } | |
653 | 662 | else throw("Strict value is not equal to itself.") | |
654 | 663 | } | |
655 | 664 | } | |
656 | 665 | } | |
657 | 666 | ||
658 | 667 | ||
659 | 668 | ||
660 | 669 | @Callable(i) | |
661 | 670 | func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = { | |
662 | 671 | let res = commonGet(i) | |
663 | 672 | let outAmAmt = res._1 | |
664 | 673 | let outPrAmt = res._2 | |
665 | 674 | let pmtAmt = res._3 | |
666 | 675 | let pmtAssetId = res._4 | |
667 | 676 | let state = res._5 | |
668 | 677 | if ((noLessThenAmtAsset > outAmAmt)) | |
669 | 678 | then throw(((("Failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset))) | |
670 | 679 | else if ((noLessThenPriceAsset > outPrAmt)) | |
671 | 680 | then throw(((("Failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset))) | |
672 | 681 | else { | |
673 | 682 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)]) | |
674 | 683 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
675 | 684 | then state | |
676 | 685 | else throw("Strict value is not equal to itself.") | |
677 | 686 | } | |
678 | 687 | } | |
679 | 688 | ||
680 | 689 | ||
681 | 690 | ||
682 | 691 | @Callable(i) | |
683 | 692 | func unstakeAndGet (amount) = { | |
684 | 693 | let checkPayments = if ((size(i.payments) != 0)) | |
685 | 694 | then throw("No pmnts expected") | |
686 | 695 | else true | |
687 | 696 | if ((checkPayments == checkPayments)) | |
688 | 697 | then { | |
689 | 698 | let cfg = getPoolConfig() | |
690 | 699 | let factoryCfg = getFactoryConfig() | |
691 | 700 | let lpAssetId = fromBase58String(cfg[idxLPAsId]) | |
692 | 701 | let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr") | |
693 | 702 | let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(lpAssetId), amount], nil) | |
694 | 703 | if ((unstakeInv == unstakeInv)) | |
695 | 704 | then { | |
696 | 705 | let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller) | |
697 | 706 | let poolStatus = parseIntValue(r._9) | |
698 | 707 | let state = r._10 | |
699 | 708 | let checkPoolStatus = if (if (isGlobalShutdown()) | |
700 | 709 | then true | |
701 | 710 | else (poolStatus == PoolShutdown)) | |
702 | - | then throw((" | |
711 | + | then throw(("Blocked: " + toString(poolStatus))) | |
703 | 712 | else true | |
704 | 713 | if ((checkPoolStatus == checkPoolStatus)) | |
705 | 714 | then { | |
706 | 715 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)]) | |
707 | 716 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
708 | 717 | then state | |
709 | 718 | else throw("Strict value is not equal to itself.") | |
710 | 719 | } | |
711 | 720 | else throw("Strict value is not equal to itself.") | |
712 | 721 | } | |
713 | 722 | else throw("Strict value is not equal to itself.") | |
714 | 723 | } | |
715 | 724 | else throw("Strict value is not equal to itself.") | |
716 | 725 | } | |
717 | 726 | ||
718 | 727 | ||
719 | 728 | ||
720 | 729 | @Callable(i) | |
721 | 730 | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
722 | - | then throw(" | |
731 | + | then throw("denied") | |
723 | 732 | else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success") | |
724 | 733 | ||
725 | 734 | ||
726 | 735 | ||
727 | 736 | @Callable(i) | |
728 | 737 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig()) | |
729 | 738 | ||
730 | 739 | ||
731 | 740 | ||
732 | 741 | @Callable(i) | |
733 | 742 | func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId)) | |
734 | 743 | ||
735 | 744 | ||
736 | 745 | ||
737 | 746 | @Callable(i) | |
738 | 747 | func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = { | |
739 | 748 | let prices = calcPrices(amAmt, prAmt, lpAmt) | |
740 | 749 | $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])]) | |
741 | 750 | } | |
742 | 751 | ||
743 | 752 | ||
744 | 753 | ||
745 | 754 | @Callable(i) | |
746 | 755 | func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult)) | |
747 | 756 | ||
748 | 757 | ||
749 | 758 | ||
750 | 759 | @Callable(i) | |
751 | 760 | func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult))) | |
752 | 761 | ||
753 | 762 | ||
754 | 763 | ||
755 | 764 | @Callable(i) | |
756 | 765 | func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18)))) | |
757 | 766 | ||
758 | 767 | ||
759 | 768 | ||
760 | 769 | @Callable(i) | |
761 | 770 | func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,usrAddr,isEval,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, usrAddr, isEval, emitLp, false, 0, "")) | |
762 | 771 | ||
763 | 772 | ||
764 | 773 | ||
765 | 774 | @Callable(i) | |
766 | 775 | func estimateGetOperationWrapperREADONLY (txId58,pmtAsId,pmtLpAmt,usrAddr) = { | |
767 | 776 | let res = estimateGetOperation(txId58, pmtAsId, pmtLpAmt, addressFromStringValue(usrAddr)) | |
768 | 777 | $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10)) | |
769 | 778 | } | |
770 | 779 | ||
771 | 780 | ||
772 | 781 | @Verifier(tx) | |
773 | 782 | func verify () = match tx { | |
774 | 783 | case order: Order => | |
775 | 784 | let mtchPub = getMatcherPubOrFail() | |
776 | 785 | let orV = validateMatcherOrderAllowed(order) | |
777 | 786 | let sndrV = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey) | |
778 | 787 | let mtchV = sigVerify(order.bodyBytes, order.proofs[1], mtchPub) | |
779 | 788 | if (if (if (orV) | |
780 | 789 | then sndrV | |
781 | 790 | else false) | |
782 | 791 | then mtchV | |
783 | 792 | else false) | |
784 | 793 | then true | |
785 | 794 | else throwOrderError(orV, sndrV, mtchV) | |
786 | 795 | case _ => | |
787 | 796 | let admin = valueOrElse(getString(this, keyManPubKey()), EMPTY) | |
788 | 797 | if ((admin == EMPTY)) | |
789 | 798 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
790 | 799 | else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(admin)) | |
791 | 800 | } | |
792 | 801 |
github/deemru/w8io/026f985 88.92 ms ◑