tx · 8NwPqcnvrXqTuuaw29z42w48kYQ597SUMVeTaS2utiTf 3NBsEdgQXYpy59EHGqgwfE7jSAqFUzo7Ccp: -0.05000000 Waves 2021.09.13 13:40 [1701168] smart account 3NBsEdgQXYpy59EHGqgwfE7jSAqFUzo7Ccp > SELF 0.00000000 Waves
{ "type": 13, "id": "8NwPqcnvrXqTuuaw29z42w48kYQ597SUMVeTaS2utiTf", "fee": 5000000, "feeAssetId": null, "timestamp": 1631529642028, "version": 2, "chainId": 84, "sender": "3NBsEdgQXYpy59EHGqgwfE7jSAqFUzo7Ccp", "senderPublicKey": "FwAzvdwqFM7zuHfsEbjdj845GeiE4UKnLGPLbqhS4U38", "proofs": [ "2Mwj53pypbbXhbevNbMtWnnsM4eaSGVY8NutqtR2eQysqbZCcCfK6QypGSKNYmLjdLXNnsV4PNyjahkQ39QVDmSt" ], "script": "base64:AAIFAAAAAAAAACkIAhIECgIBBBIAEgQKAggIEgASBQoDAQEIEgUKAwEBCBIFCgMIAQgSAAAAADgAAAAAD2ZhY3RvcnlDb250cmFjdAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVGKj2upWaZ+pQUgYRThtGvhV6u4YNF7hRQAAAAAKbFBkZWNpbWFscwAAAAAAAAAACAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAdzY2FsZTE4CQABNgAAAAEADeC2s6dkAAAAAAAAA1NFUAIAAAACX18AAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNhYmxlZAAAAAAAAAAAAgAAAAATUG9vbE1hdGNoZXJEaXNhYmxlZAAAAAAAAAAAAwAAAAAMUG9vbFNodXRkb3duAAAAAAAAAAAEAAAAAA5pZHhQb29sQWRkcmVzcwAAAAAAAAAAAQAAAAANaWR4UG9vbFN0YXR1cwAAAAAAAAAAAgAAAAAQaWR4UG9vbExQQXNzZXRJZAAAAAAAAAAAAwAAAAAQaWR4QW1vdW50QXNzZXRJZAAAAAAAAAAABAAAAAAPaWR4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ACCQABpAAAAAEFAAAAEG91dFByaWNlQXNzZXRBbXQJAARMAAAAAgkAAaQAAAABBQAAABZwb29sQW1vdW50QXNzZXRCYWxhbmNlCQAETAAAAAIJAAGkAAAAAQUAAAAVcG9vbFByaWNlQXNzZXRCYWxhbmNlCQAETAAAAAIJAAGkAAAAAQUAAAANcG9vbExQQmFsYW5jZQkABEwAAAACCQABpAAAAAEFAAAADGN1cnJlbnRQcmljZQkABEwAAAACCQABpAAAAAEFAAAACnBvb2xTdGF0dXMFAAAAA25pbAUAAAADU0VQAAAAAWkBAAAADGhhc2hSRUFET05MWQAAAAAJAAUUAAAAAgUAAAADbmlsCQACWgAAAAEJAQAAAAV2YWx1ZQAAAAEJAAPxAAAAAQUAAAAEdGhpcwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgQAAAAFb3JkZXIFAAAAByRtYXRjaDAGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXJZzoU=", "height": 1701168, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J29e25sQGrcvTscAjBx5suj1ekwfJPA5YfbowMP1FvFN Next: 2uEqncQKAFqMaJaTTFap8A2uTeBTRBZAGfGGGUzUzfkN Diff:
Old | New | Differences | |
---|---|---|---|
139 | 139 | func privateCastToScaleOf (amount,resultScale,currentScale) = fraction(amount, resultScale, currentScale) | |
140 | 140 | ||
141 | 141 | ||
142 | - | func calculatePriceBigInt (priceAssetLockedAmt,amountAssetlLockedAmt) = { | |
143 | - | let priceBigInt = fraction(toBigInt(priceAssetLockedAmt), scale18, toBigInt(amountAssetlLockedAmt)) | |
144 | - | toInt(fraction(priceBigInt, toBigInt(scale8), scale18)) | |
145 | - | } | |
146 | - | ||
147 | - | ||
148 | 142 | func calculatePrice (priceAssetLockedAmt,amountAssetlLockedAmt) = fraction(priceAssetLockedAmt, scale8, amountAssetlLockedAmt) | |
149 | 143 | ||
150 | 144 | ||
208 | 202 | } | |
209 | 203 | ||
210 | 204 | ||
211 | - | func privateEstimatePutOperation (slippageTolerance,inAmountAssetAmt,inAmountAssetId,inPriceAssetAmt,inPriceAssetId,userAddress) = { | |
205 | + | func privateEstimatePutOperation (slippageTolerance,inAmountAssetAmt,inAmountAssetId,inPriceAssetAmt,inPriceAssetId,userAddress,isEvaluate) = { | |
212 | 206 | let poolConfigDataList = getPoolConfig() | |
213 | 207 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
214 | 208 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
231 | 225 | else (priceAssetId != inPriceAssetId)) | |
232 | 226 | then throw("Invalid amount or price asset passed.") | |
233 | 227 | else { | |
234 | - | let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId) | |
235 | - | let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId) | |
228 | + | let accountAmountAssetBalance = if (isEvaluate) | |
229 | + | then privateGetAccountBalance(amountAssetId) | |
230 | + | else (privateGetAccountBalance(amountAssetId) - inAmountAssetAmt) | |
231 | + | let accountPriceAssetBalance = if (isEvaluate) | |
232 | + | then privateGetAccountBalance(priceAssetId) | |
233 | + | else (privateGetAccountBalance(priceAssetId) - inPriceAssetAmt) | |
236 | 234 | let inAmountAssetAmtCalculated = privateCastToScaleOf(inAmountAssetAmt, scale8, amoutAssetDecimals) | |
237 | 235 | let inPriceAssetAmtCalculated = privateCastToScaleOf(inPriceAssetAmt, scale8, priceAssetDecimals) | |
238 | 236 | let userPrice = calculatePrice(inPriceAssetAmtCalculated, inAmountAssetAmtCalculated) | |
261 | 259 | else { | |
262 | 260 | let lpAmtByAmountAsset = fraction(poolLPBalance, inAmountAssetAmtCalculated, amountAssetPoolLockedAmt) | |
263 | 261 | let lpAmtByPriceAsset = fraction(poolLPBalance, inPriceAssetAmtCalculated, priceAssetPoolLockedAmt) | |
264 | - | if ((lpAmtByPriceAsset > lpAmtByAmountAsset)) | |
265 | - | then lpAmtByAmountAsset | |
266 | - | else lpAmtByPriceAsset | |
262 | + | if (true) | |
263 | + | then throw(((((((((((((("poolLPBalance=" + toString(poolLPBalance)) + " inAmountAssetAmtCalculated=") + toString(inAmountAssetAmtCalculated)) + " inPriceAssetAmtCalculated=") + toString(inPriceAssetAmtCalculated)) + " amountAssetPoolLockedAmt = ") + toString(amountAssetPoolLockedAmt)) + " priceAssetPoolLockedAmt=") + toString(priceAssetPoolLockedAmt)) + " lpAmtByAmountAsset =") + toString(lpAmtByAmountAsset)) + " lpAmtByPriceAsset=") + toString(lpAmtByPriceAsset))) | |
264 | + | else if ((lpAmtByPriceAsset > lpAmtByAmountAsset)) | |
265 | + | then lpAmtByAmountAsset | |
266 | + | else lpAmtByPriceAsset | |
267 | 267 | } | |
268 | 268 | $Tuple13(outLpAmount, finalPrice, userAmountAssetBalance, userPriceAssetBalance, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, amountAssetInternalId, priceAssetInternalId, lpAssetId, slippage, poolStatus) | |
269 | 269 | } | |
311 | 311 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
312 | 312 | then (currentPrice >= castedOrderPrice) | |
313 | 313 | else (castedOrderPrice >= currentPrice) | |
314 | - | ||
314 | + | if (if (if (isValidAssetPair) | |
315 | 315 | then isValidMatcherSign | |
316 | 316 | else false) | |
317 | 317 | then isPoolStatusValid | |
318 | 318 | else false) | |
319 | 319 | then isOrderPriceValid | |
320 | - | else false | |
320 | + | else false | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
335 | 335 | let inPriceAssetId = if (!(isDefined(pmtPriceAsset.assetId))) | |
336 | 336 | then fromBase58String("WAVES") | |
337 | 337 | else value(pmtPriceAsset.assetId) | |
338 | - | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, toBase58String(inAmountAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller)) | |
338 | + | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, toBase58String(inAmountAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller), false) | |
339 | 339 | let outLpAmount = estimatedPutResults._1 | |
340 | 340 | let curentPrice = estimatedPutResults._2 | |
341 | 341 | let userAmountAssetBalance = estimatedPutResults._3 | |
468 | 468 | else calculatePrice(accountPriceAssetBalanceCasted, accountAmountAssetBalanceCasted) | |
469 | 469 | let inPriceAssetAmtCalculated = fraction(inAmountAssetAmt, curentPrice, scale8) | |
470 | 470 | let inPriceAssetAmt = privateCastToScaleOf(inPriceAssetAmtCalculated, priceAssetDecimals, scale8) | |
471 | - | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress) | |
471 | + | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress, true) | |
472 | 472 | let outLpAmountCalc = estimatedPutResults._1 | |
473 | 473 | let curentPriceCalc = estimatedPutResults._2 | |
474 | 474 | let poolAmountAssetBalanceCalc = estimatedPutResults._6 | |
503 | 503 | else calculatePrice(accountPriceAssetBalanceCasted, accountAmountAssetBalanceCasted) | |
504 | 504 | let inAmountAssetAmtCalculated = fraction(inPriceAssetAmtCalculatedTuple, scale8, curentPrice) | |
505 | 505 | let inAmountAssetAmt = privateCastToScaleOf(inAmountAssetAmtCalculated, amoutAssetDecimals, scale8) | |
506 | - | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress) | |
506 | + | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress, true) | |
507 | 507 | let outLpAmountCalc = estimatedPutResults._1 | |
508 | 508 | let curentPriceCalc = estimatedPutResults._2 | |
509 | 509 | let poolAmountAssetBalanceCalc = estimatedPutResults._6 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let factoryContract = Address(base58'3MxueHaGvWmdk5crtn9HwtkSAAZScTWoHaC') | |
5 | 5 | ||
6 | 6 | let lPdecimals = 8 | |
7 | 7 | ||
8 | 8 | let scale8 = 100000000 | |
9 | 9 | ||
10 | 10 | let scale18 = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let SEP = "__" | |
13 | 13 | ||
14 | 14 | let PoolActive = 1 | |
15 | 15 | ||
16 | 16 | let PoolPutDisabled = 2 | |
17 | 17 | ||
18 | 18 | let PoolMatcherDisabled = 3 | |
19 | 19 | ||
20 | 20 | let PoolShutdown = 4 | |
21 | 21 | ||
22 | 22 | let idxPoolAddress = 1 | |
23 | 23 | ||
24 | 24 | let idxPoolStatus = 2 | |
25 | 25 | ||
26 | 26 | let idxPoolLPAssetId = 3 | |
27 | 27 | ||
28 | 28 | let idxAmountAssetId = 4 | |
29 | 29 | ||
30 | 30 | let idxPriceAssetId = 5 | |
31 | 31 | ||
32 | 32 | let idxAmountAssetDecimals = 6 | |
33 | 33 | ||
34 | 34 | let idxPriceAssetDecimals = 7 | |
35 | 35 | ||
36 | 36 | let idxAmountAssetInternalId = 8 | |
37 | 37 | ||
38 | 38 | let idxPriceAssetInternalId = 9 | |
39 | 39 | ||
40 | 40 | let idxLPAssetDecimals = 10 | |
41 | 41 | ||
42 | 42 | let idxMatcherPublicKey = 11 | |
43 | 43 | ||
44 | 44 | let idxPoolAmountAssetAmt = 1 | |
45 | 45 | ||
46 | 46 | let idxPoolPriceAssetAmt = 2 | |
47 | 47 | ||
48 | 48 | let idxPoolLPAssetAmt = 3 | |
49 | 49 | ||
50 | 50 | let idxFactoryStakingContract = 1 | |
51 | 51 | ||
52 | 52 | let idxFactoryBoostingConfig = 2 | |
53 | 53 | ||
54 | 54 | func keyPriceLast () = "%s%s__price__last" | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func keyPriceHistory (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func keyPoolLiquidity (internalAmountAsset,internalPriceAsset) = (((("%d%d%s__" + internalAmountAsset) + "__") + internalPriceAsset) + "__locked") | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func keyPoolLiquidityByUser (internalAmountAsset,internalPriceAsset,userAddress) = (((((("%d%d%s%s__" + internalAmountAsset) + "__") + internalPriceAsset) + "__") + userAddress) + "__locked") | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func keyPutActionByUser (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func keyGetActionByUser (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func keyAmountAsset () = "%s__amountAsset" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyPriceAsset () = "%s__priceAsset" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func keyFactoryConfig () = "%s__factoryConfig" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config") | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func keyAllPoolsShutdown () = "%s__shutdown" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func keyPoolWeight (contractAddress) = ("%s%s__poolWeight__" + contractAddress) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func getPoolConfig () = { | |
100 | 100 | let poolAmountAsset = valueOrErrorMessage(getString(this, keyAmountAsset()), "No config for amount asset found") | |
101 | 101 | let poolPriceAsset = valueOrErrorMessage(getString(this, keyPriceAsset()), "No config for price asset found") | |
102 | 102 | let poolPriceAssetInternal = valueOrErrorMessage(getInteger(factoryContract, keyMappingsBaseAsset2internalId(poolPriceAsset)), "No config for internal price asset found") | |
103 | 103 | let poolAmountAssetInternal = valueOrErrorMessage(getInteger(factoryContract, keyMappingsBaseAsset2internalId(poolAmountAsset)), "No config for internal amount asset found") | |
104 | 104 | split(valueOrErrorMessage(getString(factoryContract, keyPoolConfig(toString(poolAmountAssetInternal), toString(poolPriceAssetInternal))), "No factory config found for pool assets."), SEP) | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func getFactoryConfig () = split(valueOrErrorMessage(getString(factoryContract, keyFactoryConfig()), "No factory config found."), SEP) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func getPoolLiquidity (amountAssetInternalId,priceAssetInternalId) = { | |
112 | 112 | let currentPoolLiquidityValue = getString(this, keyPoolLiquidity(amountAssetInternalId, priceAssetInternalId)) | |
113 | 113 | if (isDefined(currentPoolLiquidityValue)) | |
114 | 114 | then split(value(currentPoolLiquidityValue), SEP) | |
115 | 115 | else ["", "0", "0", "0"] | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func getPoolLiquidityByUser (amountAssetInternalId,priceAssetInternalId,userAddress) = { | |
120 | 120 | let currentPoolLiquidityValue = getString(this, keyPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress)) | |
121 | 121 | if (isDefined(currentPoolLiquidityValue)) | |
122 | 122 | then split(value(currentPoolLiquidityValue), SEP) | |
123 | 123 | else ["", "0", "0", "0", "0"] | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func dataPoolLiquidity (amountAssetLocked,priceAssetLocked,lpTokenLocked) = makeString(["%d%d%d", toString(amountAssetLocked), toString(priceAssetLocked), toString(lpTokenLocked)], SEP) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func dataPoolLiquidityByUser (amountAssetLocked,priceAssetLocked,lpTokenLocked,userAddress) = makeString(["%d%d%d", toString(amountAssetLocked), toString(priceAssetLocked), toString(lpTokenLocked)], SEP) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func dataPutActionInfo (inAmountAssetAmt,inPriceAssetAmt,outLpAmt,price,slippageTolerancePassedByUser,slippageToleranceReal,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d%d", toString(inAmountAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slippageTolerancePassedByUser), toString(slippageToleranceReal), toString(txHeight), toString(txTimestamp)], SEP) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func dataGetActionInfo (outAmountAssetAmt,outPriceAssetAmt,inLpAmt,price,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d", toString(outAmountAssetAmt), toString(outPriceAssetAmt), toString(inLpAmt), toString(price), toString(txHeight), toString(txTimestamp)], SEP) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func privateCastToScaleOf (amount,resultScale,currentScale) = fraction(amount, resultScale, currentScale) | |
140 | 140 | ||
141 | 141 | ||
142 | - | func calculatePriceBigInt (priceAssetLockedAmt,amountAssetlLockedAmt) = { | |
143 | - | let priceBigInt = fraction(toBigInt(priceAssetLockedAmt), scale18, toBigInt(amountAssetlLockedAmt)) | |
144 | - | toInt(fraction(priceBigInt, toBigInt(scale8), scale18)) | |
145 | - | } | |
146 | - | ||
147 | - | ||
148 | 142 | func calculatePrice (priceAssetLockedAmt,amountAssetlLockedAmt) = fraction(priceAssetLockedAmt, scale8, amountAssetlLockedAmt) | |
149 | 143 | ||
150 | 144 | ||
151 | 145 | func privateCalculatePrice (amoutAssetDecimals,priceAssetDecimals,amountAssetAmt,priceAssetAmt) = { | |
152 | 146 | let amountAssetAmtCasted = privateCastToScaleOf(amountAssetAmt, scale8, amoutAssetDecimals) | |
153 | 147 | let priceAssetAmtCasted = privateCastToScaleOf(priceAssetAmt, scale8, priceAssetDecimals) | |
154 | 148 | calculatePrice(priceAssetAmtCasted, amountAssetAmtCasted) | |
155 | 149 | } | |
156 | 150 | ||
157 | 151 | ||
158 | 152 | func privateGetAccountBalance (assetId) = if ((assetId == "WAVES")) | |
159 | 153 | then wavesBalance(this).available | |
160 | 154 | else assetBalance(this, fromBase58String(assetId)) | |
161 | 155 | ||
162 | 156 | ||
163 | 157 | func calculatePrices (amountAssetAmt,priceAssetAmt,lpAmount) = { | |
164 | 158 | let poolConfigDataList = getPoolConfig() | |
165 | 159 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
166 | 160 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
167 | 161 | let poolPrice = privateCalculatePrice(amoutAssetDecimals, priceAssetDecimals, amountAssetAmt, priceAssetAmt) | |
168 | 162 | let amountAssetPoolLockedAmt = privateCastToScaleOf(amountAssetAmt, scale8, amoutAssetDecimals) | |
169 | 163 | let priceAssetPoolLockedAmt = privateCastToScaleOf(priceAssetAmt, scale8, priceAssetDecimals) | |
170 | 164 | let lpPriceInAmountAsset = calculatePrice(amountAssetPoolLockedAmt, lpAmount) | |
171 | 165 | let lpPriceInPriceAsset = calculatePrice(priceAssetPoolLockedAmt, lpAmount) | |
172 | 166 | [poolPrice, lpPriceInAmountAsset, lpPriceInPriceAsset] | |
173 | 167 | } | |
174 | 168 | ||
175 | 169 | ||
176 | 170 | func privateEstimateGetOperation (paymentLpAssetId,paymentLpAmount,userAddress) = { | |
177 | 171 | let poolConfigList = getPoolConfig() | |
178 | 172 | let lpAssetId = poolConfigList[idxPoolLPAssetId] | |
179 | 173 | let amountAssetId = poolConfigList[idxAmountAssetId] | |
180 | 174 | let priceAssetId = poolConfigList[idxPriceAssetId] | |
181 | 175 | let amountAssetInternalId = poolConfigList[idxAmountAssetInternalId] | |
182 | 176 | let priceAssetInternalId = poolConfigList[idxPriceAssetInternalId] | |
183 | 177 | let amoutAssetDecimals = parseIntValue(poolConfigList[idxAmountAssetDecimals]) | |
184 | 178 | let priceAssetDecimals = parseIntValue(poolConfigList[idxPriceAssetDecimals]) | |
185 | 179 | let poolStatus = poolConfigList[idxPoolStatus] | |
186 | 180 | let userLiquidityList = getPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress) | |
187 | 181 | let userLPBalance = parseIntValue(userLiquidityList[idxPoolLPAssetAmt]) | |
188 | 182 | let userAmountAssetBalance = parseIntValue(userLiquidityList[idxPoolAmountAssetAmt]) | |
189 | 183 | let userPriceAssetBalance = parseIntValue(userLiquidityList[idxPoolPriceAssetAmt]) | |
190 | 184 | let poolLiquidityList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
191 | 185 | let poolLPBalance = parseIntValue(poolLiquidityList[idxPoolLPAssetAmt]) | |
192 | 186 | let poolAmountAssetBalance = parseIntValue(poolLiquidityList[idxPoolAmountAssetAmt]) | |
193 | 187 | let poolPriceAssetBalance = parseIntValue(poolLiquidityList[idxPoolPriceAssetAmt]) | |
194 | 188 | if ((lpAssetId != paymentLpAssetId)) | |
195 | 189 | then throw("Invalid asset passed.") | |
196 | 190 | else { | |
197 | 191 | let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId) | |
198 | 192 | let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId) | |
199 | 193 | let amountAssetPoolLockedAmt = privateCastToScaleOf(accountAmountAssetBalance, scale8, amoutAssetDecimals) | |
200 | 194 | let priceAssetPoolLockedAmt = privateCastToScaleOf(accountPriceAssetBalance, scale8, priceAssetDecimals) | |
201 | 195 | let outAmountAssetAmt = fraction(amountAssetPoolLockedAmt, paymentLpAmount, poolLPBalance) | |
202 | 196 | let outPriceAssetAmt = fraction(priceAssetPoolLockedAmt, paymentLpAmount, poolLPBalance) | |
203 | 197 | let outAmountAssetAmtFinal = privateCastToScaleOf(outAmountAssetAmt, amoutAssetDecimals, scale8) | |
204 | 198 | let outPriceAssetAmtFinal = privateCastToScaleOf(outPriceAssetAmt, priceAssetDecimals, scale8) | |
205 | 199 | let currentPrice = calculatePrice(priceAssetPoolLockedAmt, amountAssetPoolLockedAmt) | |
206 | 200 | $Tuple14(outAmountAssetAmtFinal, outPriceAssetAmtFinal, amountAssetInternalId, priceAssetInternalId, userAmountAssetBalance, amountAssetId, userPriceAssetBalance, priceAssetId, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, currentPrice, poolStatus) | |
207 | 201 | } | |
208 | 202 | } | |
209 | 203 | ||
210 | 204 | ||
211 | - | func privateEstimatePutOperation (slippageTolerance,inAmountAssetAmt,inAmountAssetId,inPriceAssetAmt,inPriceAssetId,userAddress) = { | |
205 | + | func privateEstimatePutOperation (slippageTolerance,inAmountAssetAmt,inAmountAssetId,inPriceAssetAmt,inPriceAssetId,userAddress,isEvaluate) = { | |
212 | 206 | let poolConfigDataList = getPoolConfig() | |
213 | 207 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
214 | 208 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
215 | 209 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
216 | 210 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
217 | 211 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
218 | 212 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
219 | 213 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
220 | 214 | let poolStatus = poolConfigDataList[idxPoolStatus] | |
221 | 215 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
222 | 216 | let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt]) | |
223 | 217 | let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt]) | |
224 | 218 | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
225 | 219 | let userLiquidityDataList = getPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress) | |
226 | 220 | let userAmountAssetBalance = parseIntValue(userLiquidityDataList[idxPoolAmountAssetAmt]) | |
227 | 221 | let userPriceAssetBalance = parseIntValue(userLiquidityDataList[idxPoolPriceAssetAmt]) | |
228 | 222 | let userLPBalance = parseIntValue(userLiquidityDataList[idxPoolLPAssetAmt]) | |
229 | 223 | if (if ((amountAssetId != inAmountAssetId)) | |
230 | 224 | then true | |
231 | 225 | else (priceAssetId != inPriceAssetId)) | |
232 | 226 | then throw("Invalid amount or price asset passed.") | |
233 | 227 | else { | |
234 | - | let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId) | |
235 | - | let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId) | |
228 | + | let accountAmountAssetBalance = if (isEvaluate) | |
229 | + | then privateGetAccountBalance(amountAssetId) | |
230 | + | else (privateGetAccountBalance(amountAssetId) - inAmountAssetAmt) | |
231 | + | let accountPriceAssetBalance = if (isEvaluate) | |
232 | + | then privateGetAccountBalance(priceAssetId) | |
233 | + | else (privateGetAccountBalance(priceAssetId) - inPriceAssetAmt) | |
236 | 234 | let inAmountAssetAmtCalculated = privateCastToScaleOf(inAmountAssetAmt, scale8, amoutAssetDecimals) | |
237 | 235 | let inPriceAssetAmtCalculated = privateCastToScaleOf(inPriceAssetAmt, scale8, priceAssetDecimals) | |
238 | 236 | let userPrice = calculatePrice(inPriceAssetAmtCalculated, inAmountAssetAmtCalculated) | |
239 | 237 | let amountAssetPoolLockedAmt = privateCastToScaleOf(accountAmountAssetBalance, scale8, amoutAssetDecimals) | |
240 | 238 | let priceAssetPoolLockedAmt = privateCastToScaleOf(accountPriceAssetBalance, scale8, priceAssetDecimals) | |
241 | 239 | let curentPrice = if ((poolLPBalance == 0)) | |
242 | 240 | then 0 | |
243 | 241 | else calculatePrice(priceAssetPoolLockedAmt, amountAssetPoolLockedAmt) | |
244 | 242 | let slippage = if ((curentPrice == 0)) | |
245 | 243 | then 0 | |
246 | 244 | else if ((curentPrice > userPrice)) | |
247 | 245 | then fraction((curentPrice - userPrice), 100, curentPrice) | |
248 | 246 | else fraction((userPrice - curentPrice), 100, curentPrice) | |
249 | 247 | if (if ((curentPrice != 0)) | |
250 | 248 | then ((slippage * scale8) > slippageTolerance) | |
251 | 249 | else false) | |
252 | 250 | then throw(((("Price slippage " + toString((slippage * scale8))) + " exceeded the passed limit of ") + toString(slippageTolerance))) | |
253 | 251 | else { | |
254 | 252 | let finalPrice = calculatePrice((priceAssetPoolLockedAmt + inPriceAssetAmtCalculated), (amountAssetPoolLockedAmt + inAmountAssetAmtCalculated)) | |
255 | 253 | let outLpAmount = if ((poolLPBalance == 0)) | |
256 | 254 | then { | |
257 | 255 | let partA = pow(inAmountAssetAmtCalculated, 0, 5, 1, 0, DOWN) | |
258 | 256 | let partB = pow(inPriceAssetAmtCalculated, 0, 5, 1, 0, DOWN) | |
259 | 257 | (partA * partB) | |
260 | 258 | } | |
261 | 259 | else { | |
262 | 260 | let lpAmtByAmountAsset = fraction(poolLPBalance, inAmountAssetAmtCalculated, amountAssetPoolLockedAmt) | |
263 | 261 | let lpAmtByPriceAsset = fraction(poolLPBalance, inPriceAssetAmtCalculated, priceAssetPoolLockedAmt) | |
264 | - | if ((lpAmtByPriceAsset > lpAmtByAmountAsset)) | |
265 | - | then lpAmtByAmountAsset | |
266 | - | else lpAmtByPriceAsset | |
262 | + | if (true) | |
263 | + | then throw(((((((((((((("poolLPBalance=" + toString(poolLPBalance)) + " inAmountAssetAmtCalculated=") + toString(inAmountAssetAmtCalculated)) + " inPriceAssetAmtCalculated=") + toString(inPriceAssetAmtCalculated)) + " amountAssetPoolLockedAmt = ") + toString(amountAssetPoolLockedAmt)) + " priceAssetPoolLockedAmt=") + toString(priceAssetPoolLockedAmt)) + " lpAmtByAmountAsset =") + toString(lpAmtByAmountAsset)) + " lpAmtByPriceAsset=") + toString(lpAmtByPriceAsset))) | |
264 | + | else if ((lpAmtByPriceAsset > lpAmtByAmountAsset)) | |
265 | + | then lpAmtByAmountAsset | |
266 | + | else lpAmtByPriceAsset | |
267 | 267 | } | |
268 | 268 | $Tuple13(outLpAmount, finalPrice, userAmountAssetBalance, userPriceAssetBalance, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, amountAssetInternalId, priceAssetInternalId, lpAssetId, slippage, poolStatus) | |
269 | 269 | } | |
270 | 270 | } | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func validateMatcherOrderAllowed (order) = { | |
275 | 275 | let poolConfigDataList = getPoolConfig() | |
276 | 276 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
277 | 277 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
278 | 278 | let poolStatus = parseIntValue(poolConfigDataList[idxPoolStatus]) | |
279 | 279 | let matcherPublicKeyStr = poolConfigDataList[idxMatcherPublicKey] | |
280 | 280 | let amountAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
281 | 281 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
282 | 282 | let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId) | |
283 | 283 | let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId) | |
284 | 284 | let currentPrice = if ((order.orderType == Buy)) | |
285 | 285 | then privateCalculatePrice(amountAssetDecimals, priceAssetDecimals, (accountAmountAssetBalance + order.amount), accountPriceAssetBalance) | |
286 | 286 | else privateCalculatePrice(amountAssetDecimals, priceAssetDecimals, (accountAmountAssetBalance + order.amount), accountPriceAssetBalance) | |
287 | 287 | let isPoolStatusValid = if (if (if (isGlobalShutdown()) | |
288 | 288 | then true | |
289 | 289 | else (poolStatus == PoolMatcherDisabled)) | |
290 | 290 | then true | |
291 | 291 | else (poolStatus == PoolShutdown)) | |
292 | 292 | then false | |
293 | 293 | else true | |
294 | 294 | let isValidMatcherSign = true | |
295 | 295 | let orderAmountAsset = order.assetPair.amountAsset | |
296 | 296 | let orderAmountAssetStr = if ((orderAmountAsset == unit)) | |
297 | 297 | then "WAVES" | |
298 | 298 | else toBase58String(value(orderAmountAsset)) | |
299 | 299 | let orderPriceAsset = order.assetPair.priceAsset | |
300 | 300 | let orderPriceAssetStr = if ((orderPriceAsset == unit)) | |
301 | 301 | then "WAVES" | |
302 | 302 | else toBase58String(value(orderPriceAsset)) | |
303 | 303 | let isValidAssetPair = if (if ((orderAmountAssetStr != amountAssetId)) | |
304 | 304 | then true | |
305 | 305 | else (orderPriceAssetStr != priceAssetId)) | |
306 | 306 | then false | |
307 | 307 | else true | |
308 | 308 | let orderPrice = order.price | |
309 | 309 | let priceDecimals = fraction(scale8, priceAssetDecimals, amountAssetDecimals) | |
310 | 310 | let castedOrderPrice = privateCastToScaleOf(orderPrice, scale8, priceDecimals) | |
311 | 311 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
312 | 312 | then (currentPrice >= castedOrderPrice) | |
313 | 313 | else (castedOrderPrice >= currentPrice) | |
314 | - | ||
314 | + | if (if (if (isValidAssetPair) | |
315 | 315 | then isValidMatcherSign | |
316 | 316 | else false) | |
317 | 317 | then isPoolStatusValid | |
318 | 318 | else false) | |
319 | 319 | then isOrderPriceValid | |
320 | - | else false | |
320 | + | else false | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | @Callable(i) | |
325 | 325 | func put (slippageTolerance,shouldAutoStake) = { | |
326 | 326 | let factoryConfigList = getFactoryConfig() | |
327 | 327 | let stakingContract = valueOrErrorMessage(addressFromString(factoryConfigList[idxFactoryStakingContract]), "Error. Incorrect staking address.") | |
328 | 328 | let pmtAmountAsset = value(i.payments[0]) | |
329 | 329 | let inAmountAssetAmt = pmtAmountAsset.amount | |
330 | 330 | let inAmountAssetId = if (!(isDefined(pmtAmountAsset.assetId))) | |
331 | 331 | then fromBase58String("WAVES") | |
332 | 332 | else value(pmtAmountAsset.assetId) | |
333 | 333 | let pmtPriceAsset = value(i.payments[1]) | |
334 | 334 | let inPriceAssetAmt = pmtPriceAsset.amount | |
335 | 335 | let inPriceAssetId = if (!(isDefined(pmtPriceAsset.assetId))) | |
336 | 336 | then fromBase58String("WAVES") | |
337 | 337 | else value(pmtPriceAsset.assetId) | |
338 | - | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, toBase58String(inAmountAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller)) | |
338 | + | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, toBase58String(inAmountAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller), false) | |
339 | 339 | let outLpAmount = estimatedPutResults._1 | |
340 | 340 | let curentPrice = estimatedPutResults._2 | |
341 | 341 | let userAmountAssetBalance = estimatedPutResults._3 | |
342 | 342 | let userPriceAssetBalance = estimatedPutResults._4 | |
343 | 343 | let userLPBalance = estimatedPutResults._5 | |
344 | 344 | let poolAmountAssetBalance = estimatedPutResults._6 | |
345 | 345 | let poolPriceAssetBalance = estimatedPutResults._7 | |
346 | 346 | let poolLPBalance = estimatedPutResults._8 | |
347 | 347 | let amountAssetInternalId = estimatedPutResults._9 | |
348 | 348 | let priceAssetInternalId = estimatedPutResults._10 | |
349 | 349 | let lpAssetId = estimatedPutResults._11 | |
350 | 350 | let slippageCalculated = estimatedPutResults._12 | |
351 | 351 | let poolStatus = parseIntValue(estimatedPutResults._13) | |
352 | 352 | if (if (if (isGlobalShutdown()) | |
353 | 353 | then true | |
354 | 354 | else (poolStatus == PoolPutDisabled)) | |
355 | 355 | then true | |
356 | 356 | else (poolStatus == PoolShutdown)) | |
357 | 357 | then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus))) | |
358 | 358 | else { | |
359 | 359 | let emitLPAssetOnFactory = invoke(factoryContract, "emit", [outLpAmount], nil) | |
360 | 360 | if ((emitLPAssetOnFactory == emitLPAssetOnFactory)) | |
361 | 361 | then if ((emitLPAssetOnFactory != "success")) | |
362 | 362 | then throw("LP asset reissue failed during emit call on factory.") | |
363 | 363 | else { | |
364 | 364 | let results = [StringEntry(keyPriceLast(), ("%s__" + toString(curentPrice))), StringEntry(keyPriceHistory(height, lastBlock.timestamp), ("%s__" + toString(curentPrice))), StringEntry(keyPutActionByUser(toString(i.caller), toBase58String(i.transactionId)), dataPutActionInfo(inAmountAssetAmt, inPriceAssetAmt, outLpAmount, curentPrice, slippageTolerance, slippageCalculated, height, lastBlock.timestamp)), StringEntry(keyPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, toString(i.caller)), dataPoolLiquidity((userAmountAssetBalance + inAmountAssetAmt), (userPriceAssetBalance + inPriceAssetAmt), (userLPBalance + outLpAmount))), StringEntry(keyPoolLiquidity(amountAssetInternalId, priceAssetInternalId), dataPoolLiquidity((poolAmountAssetBalance + inAmountAssetAmt), (poolPriceAssetBalance + inPriceAssetAmt), (poolLPBalance + outLpAmount)))] | |
365 | 365 | if (shouldAutoStake) | |
366 | 366 | then { | |
367 | 367 | let stake = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, outLpAmount)]) | |
368 | 368 | if ((stake == stake)) | |
369 | 369 | then results | |
370 | 370 | else throw("Strict value is not equal to itself.") | |
371 | 371 | } | |
372 | 372 | else (results :+ ScriptTransfer(i.caller, outLpAmount, lpAssetId)) | |
373 | 373 | } | |
374 | 374 | else throw("Strict value is not equal to itself.") | |
375 | 375 | } | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | ||
380 | 380 | @Callable(i) | |
381 | 381 | func get () = { | |
382 | 382 | let pmtAmountAsset = value(i.payments[0]) | |
383 | 383 | let pmtAssetId = value(pmtAmountAsset.assetId) | |
384 | 384 | let pmtAssetAmount = pmtAmountAsset.amount | |
385 | 385 | let results = privateEstimateGetOperation(toBase58String(pmtAssetId), pmtAssetAmount, toString(i.caller)) | |
386 | 386 | let outAmountAssetAmt = results._1 | |
387 | 387 | let outPriceAssetAmt = results._2 | |
388 | 388 | let amountAssetInternalId = results._3 | |
389 | 389 | let priceAssetInternalId = results._4 | |
390 | 390 | let userAmountAssetBalance = results._5 | |
391 | 391 | let amountAssetId = results._6 | |
392 | 392 | let userPriceAssetBalance = results._7 | |
393 | 393 | let priceAssetId = results._8 | |
394 | 394 | let userLPBalance = results._9 | |
395 | 395 | let poolAmountAssetBalance = results._10 | |
396 | 396 | let poolPriceAssetBalance = results._11 | |
397 | 397 | let poolLPBalance = results._12 | |
398 | 398 | let currentPrice = results._13 | |
399 | 399 | let poolStatus = parseIntValue(results._14) | |
400 | 400 | if (if (isGlobalShutdown()) | |
401 | 401 | then true | |
402 | 402 | else (poolStatus == PoolShutdown)) | |
403 | 403 | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
404 | 404 | else { | |
405 | 405 | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAssetAmount], [AttachedPayment(pmtAssetId, pmtAssetAmount)]) | |
406 | 406 | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
407 | 407 | then if ((burnLPAssetOnFactory != "success")) | |
408 | 408 | then throw("LP asset burn failed during emit call on factory.") | |
409 | 409 | else [ScriptTransfer(i.caller, outAmountAssetAmt, if ((amountAssetId == "WAVES")) | |
410 | 410 | then unit | |
411 | 411 | else fromBase58String(amountAssetId)), ScriptTransfer(i.caller, outPriceAssetAmt, fromBase58String(priceAssetId)), StringEntry(keyPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, toString(i.caller)), dataPoolLiquidity((userAmountAssetBalance - outAmountAssetAmt), (userPriceAssetBalance - outPriceAssetAmt), (userLPBalance - pmtAssetAmount))), StringEntry(keyPoolLiquidity(amountAssetInternalId, priceAssetInternalId), dataPoolLiquidity((poolAmountAssetBalance - outAmountAssetAmt), (poolPriceAssetBalance - outPriceAssetAmt), (poolLPBalance - pmtAssetAmount))), StringEntry(keyGetActionByUser(toString(i.caller), toBase58String(i.transactionId)), dataGetActionInfo(outAmountAssetAmt, outPriceAssetAmt, pmtAssetAmount, currentPrice, height, lastBlock.timestamp)), StringEntry(keyPriceLast(), ("%s__" + toString(currentPrice))), StringEntry(keyPriceHistory(height, lastBlock.timestamp), ("%s__" + toString(currentPrice)))] | |
412 | 412 | else throw("Strict value is not equal to itself.") | |
413 | 413 | } | |
414 | 414 | } | |
415 | 415 | ||
416 | 416 | ||
417 | 417 | ||
418 | 418 | @Callable(i) | |
419 | 419 | func activate (amountAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
420 | 420 | then throw("permissions denied") | |
421 | 421 | else $Tuple2([StringEntry(keyAmountAsset(), amountAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success") | |
422 | 422 | ||
423 | 423 | ||
424 | 424 | ||
425 | 425 | @Callable(i) | |
426 | 426 | func statsREADONLY () = { | |
427 | 427 | let poolConfigDataList = getPoolConfig() | |
428 | 428 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
429 | 429 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
430 | 430 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
431 | 431 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
432 | 432 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
433 | 433 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
434 | 434 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
435 | 435 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
436 | 436 | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
437 | 437 | let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId) | |
438 | 438 | let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId) | |
439 | 439 | let pricesList = calculatePrices(accountAmountAssetBalance, accountPriceAssetBalance, poolLPBalance) | |
440 | 440 | let currentPrice = pricesList[0] | |
441 | 441 | let lpPriceInAmountAsset = pricesList[1] | |
442 | 442 | let lpPriceInPriceAsset = pricesList[2] | |
443 | 443 | let poolWeight = valueOrErrorMessage(getInteger(factoryContract, keyPoolWeight(toString(this))), "Pool doesn't have weight.") | |
444 | 444 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(accountAmountAssetBalance), toString(accountPriceAssetBalance), toString(poolLPBalance), toString(currentPrice), toString(lpPriceInAmountAsset), toString(lpPriceInPriceAsset), toString(poolWeight)], SEP)) | |
445 | 445 | } | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | ||
449 | 449 | @Callable(i) | |
450 | 450 | func evaluatePutByAmountAssetREADONLY (slippageTolerance,inAmountAssetAmt,userAddress) = { | |
451 | 451 | let poolConfigDataList = getPoolConfig() | |
452 | 452 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
453 | 453 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
454 | 454 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
455 | 455 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
456 | 456 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
457 | 457 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
458 | 458 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
459 | 459 | let poolStatus = poolConfigDataList[idxPoolStatus] | |
460 | 460 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
461 | 461 | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
462 | 462 | let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId) | |
463 | 463 | let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId) | |
464 | 464 | let accountAmountAssetBalanceCasted = privateCastToScaleOf(accountAmountAssetBalance, scale8, amoutAssetDecimals) | |
465 | 465 | let accountPriceAssetBalanceCasted = privateCastToScaleOf(accountPriceAssetBalance, scale8, priceAssetDecimals) | |
466 | 466 | let curentPrice = if ((poolLPBalance == 0)) | |
467 | 467 | then 0 | |
468 | 468 | else calculatePrice(accountPriceAssetBalanceCasted, accountAmountAssetBalanceCasted) | |
469 | 469 | let inPriceAssetAmtCalculated = fraction(inAmountAssetAmt, curentPrice, scale8) | |
470 | 470 | let inPriceAssetAmt = privateCastToScaleOf(inPriceAssetAmtCalculated, priceAssetDecimals, scale8) | |
471 | - | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress) | |
471 | + | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress, true) | |
472 | 472 | let outLpAmountCalc = estimatedPutResults._1 | |
473 | 473 | let curentPriceCalc = estimatedPutResults._2 | |
474 | 474 | let poolAmountAssetBalanceCalc = estimatedPutResults._6 | |
475 | 475 | let poolPriceAssetBalanceCAlc = estimatedPutResults._7 | |
476 | 476 | let poolLPBalanceCalc = estimatedPutResults._8 | |
477 | 477 | let poolStatusCalc = parseIntValue(estimatedPutResults._13) | |
478 | 478 | $Tuple2(nil, makeString(["%d%d%d%d%d%d", toString(outLpAmountCalc), toString(curentPrice), toString(poolAmountAssetBalanceCalc), toString(poolPriceAssetBalanceCAlc), toString(poolLPBalanceCalc), toString(poolStatusCalc)], SEP)) | |
479 | 479 | } | |
480 | 480 | ||
481 | 481 | ||
482 | 482 | ||
483 | 483 | @Callable(i) | |
484 | 484 | func evaluatePutByPriceAssetREADONLY (slippageTolerance,inPriceAssetAmt,userAddress) = { | |
485 | 485 | let poolConfigDataList = getPoolConfig() | |
486 | 486 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
487 | 487 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
488 | 488 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
489 | 489 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
490 | 490 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
491 | 491 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
492 | 492 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
493 | 493 | let poolStatus = poolConfigDataList[idxPoolStatus] | |
494 | 494 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
495 | 495 | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
496 | 496 | let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId) | |
497 | 497 | let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId) | |
498 | 498 | let accountAmountAssetBalanceCasted = privateCastToScaleOf(accountAmountAssetBalance, scale8, amoutAssetDecimals) | |
499 | 499 | let accountPriceAssetBalanceCasted = privateCastToScaleOf(accountPriceAssetBalance, scale8, priceAssetDecimals) | |
500 | 500 | let inPriceAssetAmtCalculatedTuple = privateCastToScaleOf(inPriceAssetAmt, scale8, priceAssetDecimals) | |
501 | 501 | let curentPrice = if ((poolLPBalance == 0)) | |
502 | 502 | then 0 | |
503 | 503 | else calculatePrice(accountPriceAssetBalanceCasted, accountAmountAssetBalanceCasted) | |
504 | 504 | let inAmountAssetAmtCalculated = fraction(inPriceAssetAmtCalculatedTuple, scale8, curentPrice) | |
505 | 505 | let inAmountAssetAmt = privateCastToScaleOf(inAmountAssetAmtCalculated, amoutAssetDecimals, scale8) | |
506 | - | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress) | |
506 | + | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress, true) | |
507 | 507 | let outLpAmountCalc = estimatedPutResults._1 | |
508 | 508 | let curentPriceCalc = estimatedPutResults._2 | |
509 | 509 | let poolAmountAssetBalanceCalc = estimatedPutResults._6 | |
510 | 510 | let poolPriceAssetBalanceCAlc = estimatedPutResults._7 | |
511 | 511 | let poolLPBalanceCalc = estimatedPutResults._8 | |
512 | 512 | let poolStatusCalc = parseIntValue(estimatedPutResults._13) | |
513 | 513 | $Tuple2(nil, makeString(["%d%d%d%d%d%d", toString(outLpAmountCalc), toString(curentPrice), toString(poolAmountAssetBalanceCalc), toString(poolPriceAssetBalanceCAlc), toString(poolLPBalanceCalc), toString(poolStatusCalc)], SEP)) | |
514 | 514 | } | |
515 | 515 | ||
516 | 516 | ||
517 | 517 | ||
518 | 518 | @Callable(i) | |
519 | 519 | func evaluateGetREADONLY (paymentLpAssetId,paymentLpAmount,userAddress) = { | |
520 | 520 | let results = privateEstimateGetOperation(paymentLpAssetId, paymentLpAmount, userAddress) | |
521 | 521 | let outAmountAssetAmt = results._1 | |
522 | 522 | let outPriceAssetAmt = results._2 | |
523 | 523 | let poolAmountAssetBalance = results._10 | |
524 | 524 | let poolPriceAssetBalance = results._11 | |
525 | 525 | let poolLPBalance = results._12 | |
526 | 526 | let currentPrice = results._13 | |
527 | 527 | let poolStatus = parseIntValue(results._14) | |
528 | 528 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmountAssetAmt), toString(outPriceAssetAmt), toString(poolAmountAssetBalance), toString(poolPriceAssetBalance), toString(poolLPBalance), toString(currentPrice), toString(poolStatus)], SEP)) | |
529 | 529 | } | |
530 | 530 | ||
531 | 531 | ||
532 | 532 | ||
533 | 533 | @Callable(i) | |
534 | 534 | func hashREADONLY () = $Tuple2(nil, toBase64String(value(scriptHash(this)))) | |
535 | 535 | ||
536 | 536 | ||
537 | 537 | @Verifier(tx) | |
538 | 538 | func verify () = match tx { | |
539 | 539 | case order: Order => | |
540 | 540 | true | |
541 | 541 | case _ => | |
542 | 542 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
543 | 543 | } | |
544 | 544 |
github/deemru/w8io/026f985 66.46 ms ◑