tx · 2jfr3NyKxaeZgr5FXvQRkq7cHc9LJxtrigJWvvzjpWGB 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP: -0.05000000 Waves 2021.10.01 14:32 [1727068] smart account 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP > SELF 0.00000000 Waves
{ "type": 13, "id": "2jfr3NyKxaeZgr5FXvQRkq7cHc9LJxtrigJWvvzjpWGB", "fee": 5000000, "feeAssetId": null, "timestamp": 1633087963452, "version": 2, "chainId": 84, "sender": "3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP", "senderPublicKey": "2uZLPvTfcSdSqd6m8q85ZpiWEmxSkGWzb5ocbziqSzCj", "proofs": [ "23tbfCwLyfZnfngbfwGm33DAVDjmbLzmpoVxSCrF6yLYLaa21sjsfKeBbgqjXHbpEvF9UYKUYjLT2PLkd3uH5zXM" ], "script": "base64:AAIFAAAAAAAAACwIAhIDCgEIEgQKAgEEEgASBAoCCAgSABIFCgMBAQgSBQoDAQEIEgUKAwgBCAAAADwAAAAACmxQZGVjaW1hbHMAAAAAAAAAAAgAAAAABnNjYWxlOAAAAAAABfXhAAAAAAAMc2NhbGU4QmlnSW50CQABNgAAAAEAAAAAAAX14QAAAAAAB3NjYWxlMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAKUG9vbEFjdGl2ZQAAAAAAAAAAAQAAAAAPUG9vbFB1dERpc2FibGVkAAAAAAAAAAACAAAAABNQb29sTWF0Y2hlckRpc2FibGVkAAAAAAAAAAADAAAAAAxQb29sU2h1dGRvd24AAAAAAAAAAAQAAAAADmlkeFBvb2xBZGRyZXNzAAAAAAAAAAABAAAAAA1pZHhQb29sU3RhdHVzAAAAAAAAAAACAAAAABBpZHhQb29sTFBBc3NldElkAAAAAAAAAAADAAAAAA1pZHhBbXRBc3NldElkAAAAAAAAAAAEAAAAAA9pZHhQcmljZUFzc2V0SWQAAAAAAAAAAAUAAAAADmlkeEFtdEF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AAAAAgkAAaQAAAABBQAAABBvdXRQcmljZUFzc2V0QW10CQAETAAAAAIJAAGkAAAAAQUAAAATcG9vbEFtdEFzc2V0QmFsYW5jZQkABEwAAAACCQABpAAAAAEFAAAAFXBvb2xQcmljZUFzc2V0QmFsYW5jZQkABEwAAAACCQABpAAAAAEFAAAADXBvb2xMUEJhbGFuY2UJAARMAAAAAgkAAaQAAAABBQAAAAhjdXJQcmljZQkABEwAAAACCQABpAAAAAEFAAAACnBvb2xTdGF0dXMFAAAAA25pbAUAAAADU0VQAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABU9yZGVyBAAAAAVvcmRlcgUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5i9v2dQ==", "height": 1727068, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HMnEQZCZ9DyuF4EzMDsFjJy5tbXed9cCB5xVGa6gQpXz Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func keyAccumulatedFee () = "%s__accumulatedFee" | |
5 | - | ||
4 | + | let lPdecimals = 8 | |
6 | 5 | ||
7 | 6 | let scale8 = 100000000 | |
8 | 7 | ||
9 | - | let | |
8 | + | let scale8BigInt = toBigInt(100000000) | |
10 | 9 | ||
11 | - | func convertPriceAssetIntoIdoAsset (priceAssetAmount,priceAssetMULT,price,priceMULT,idoAssetMULT) = { | |
12 | - | let bPriceMULT = toBigInt(priceAssetMULT) | |
13 | - | let bPriceAssetBUF = fraction(toBigInt(priceAssetAmount), BUFSCALE, bPriceMULT) | |
14 | - | let bAmountAssetBUF = fraction(bPriceAssetBUF, bPriceMULT, toBigInt(price)) | |
15 | - | toInt(fraction(bAmountAssetBUF, toBigInt(idoAssetMULT), BUFSCALE)) | |
10 | + | let scale18 = toBigInt(1000000000000000000) | |
11 | + | ||
12 | + | let SEP = "__" | |
13 | + | ||
14 | + | let PoolActive = 1 | |
15 | + | ||
16 | + | let PoolPutDisabled = 2 | |
17 | + | ||
18 | + | let PoolMatcherDisabled = 3 | |
19 | + | ||
20 | + | let PoolShutdown = 4 | |
21 | + | ||
22 | + | let idxPoolAddress = 1 | |
23 | + | ||
24 | + | let idxPoolStatus = 2 | |
25 | + | ||
26 | + | let idxPoolLPAssetId = 3 | |
27 | + | ||
28 | + | let idxAmtAssetId = 4 | |
29 | + | ||
30 | + | let idxPriceAssetId = 5 | |
31 | + | ||
32 | + | let idxAmtAssetDcm = 6 | |
33 | + | ||
34 | + | let idxPriceAssetDcm = 7 | |
35 | + | ||
36 | + | let idxIAmtAssetId = 8 | |
37 | + | ||
38 | + | let idxIPriceAssetId = 9 | |
39 | + | ||
40 | + | let idxLPAssetDcm = 10 | |
41 | + | ||
42 | + | let idxMatcherPublicKey = 11 | |
43 | + | ||
44 | + | let idxPoolAmtAssetAmt = 1 | |
45 | + | ||
46 | + | let idxPoolPriceAssetAmt = 2 | |
47 | + | ||
48 | + | let idxPoolLPAssetAmt = 3 | |
49 | + | ||
50 | + | let idxFactoryStakingContract = 1 | |
51 | + | ||
52 | + | let idxFactoryBoostingConfig = 2 | |
53 | + | ||
54 | + | func keyFactoryContract () = "%s__factoryContract" | |
55 | + | ||
56 | + | ||
57 | + | func keyPriceLast () = "%s%s__price__last" | |
58 | + | ||
59 | + | ||
60 | + | func keyPriceHistory (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP) | |
61 | + | ||
62 | + | ||
63 | + | func keyPoolLiquidity (iAmtAsset,iPriceAsset) = (((("%d%d%s__" + iAmtAsset) + "__") + iPriceAsset) + "__locked") | |
64 | + | ||
65 | + | ||
66 | + | func keyPutActionByUser (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId) | |
67 | + | ||
68 | + | ||
69 | + | func keyGetActionByUser (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId) | |
70 | + | ||
71 | + | ||
72 | + | func keyAmtAsset () = "%s__amountAsset" | |
73 | + | ||
74 | + | ||
75 | + | func keyPriceAsset () = "%s__priceAsset" | |
76 | + | ||
77 | + | ||
78 | + | func keySlippagePriceAssetCumulative () = "%s__slippagePriceAssetCumulative" | |
79 | + | ||
80 | + | ||
81 | + | func keySlippageAmountAssetCumulative () = "%s__slippageAmountAssetCumulative" | |
82 | + | ||
83 | + | ||
84 | + | func keyKHistoric (h,timestamp) = makeString(["%s%s%d%d__K_history", toString(h), toString(timestamp)], SEP) | |
85 | + | ||
86 | + | ||
87 | + | func keyFactoryConfig () = "%s__factoryConfig" | |
88 | + | ||
89 | + | ||
90 | + | func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
91 | + | ||
92 | + | ||
93 | + | func keyPoolConfig (iAmtAsset,iPriceAsset) = (((("%d%d%s__" + iAmtAsset) + "__") + iPriceAsset) + "__config") | |
94 | + | ||
95 | + | ||
96 | + | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
97 | + | ||
98 | + | ||
99 | + | func keyAllPoolsShutdown () = "%s__shutdown" | |
100 | + | ||
101 | + | ||
102 | + | func keyPoolWeight (contractAddress) = ("%s%s__poolWeight__" + contractAddress) | |
103 | + | ||
104 | + | ||
105 | + | let factoryContract = addressFromStringValue(valueOrErrorMessage(getString(this, keyFactoryContract()), "No Factory Acc found.")) | |
106 | + | ||
107 | + | func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false) | |
108 | + | ||
109 | + | ||
110 | + | func getPoolConfig () = { | |
111 | + | let amtAsset = valueOrErrorMessage(getString(this, keyAmtAsset()), "No config for amt asset found") | |
112 | + | let priceAsset = valueOrErrorMessage(getString(this, keyPriceAsset()), "No config for price asset found") | |
113 | + | let iPriceAsset = valueOrErrorMessage(getInteger(factoryContract, keyMappingsBaseAsset2internalId(priceAsset)), "No config for internal price asset found") | |
114 | + | let iAmtAsset = valueOrErrorMessage(getInteger(factoryContract, keyMappingsBaseAsset2internalId(amtAsset)), "No config for internal amt asset found") | |
115 | + | split(valueOrErrorMessage(getString(factoryContract, keyPoolConfig(toString(iAmtAsset), toString(iPriceAsset))), "No factory config found for pool assets."), SEP) | |
116 | + | } | |
117 | + | ||
118 | + | ||
119 | + | func getFactoryConfig () = split(valueOrErrorMessage(getString(factoryContract, keyFactoryConfig()), "No factory config found."), SEP) | |
120 | + | ||
121 | + | ||
122 | + | func dataPoolLiquidity (amtAssetLocked,priceAssetLocked,lpTokenLocked) = makeString(["%d%d%d", toString(amtAssetLocked), toString(priceAssetLocked), toString(lpTokenLocked)], SEP) | |
123 | + | ||
124 | + | ||
125 | + | func getPoolLiquidity (iAmtAssetId,iPriceAssetId) = split(valueOrElse(getString(this, keyPoolLiquidity(iAmtAssetId, iPriceAssetId)), dataPoolLiquidity(0, 0, 0)), SEP) | |
126 | + | ||
127 | + | ||
128 | + | func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slippageTolerancePassedByUser,slippageToleranceReal,txHeight,txTimestamp,slipageAmtAssetAmt,slipagePriceAssetAmt) = makeString(["%d%d%d%d%d%d%d%d%d", toString(inAmtAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slippageTolerancePassedByUser), toString(slippageToleranceReal), toString(txHeight), toString(txTimestamp), toString(slipageAmtAssetAmt), toString(slipagePriceAssetAmt)], SEP) | |
129 | + | ||
130 | + | ||
131 | + | 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) | |
132 | + | ||
133 | + | ||
134 | + | func getAccBalance (assetId) = if ((assetId == "WAVES")) | |
135 | + | then wavesBalance(this).available | |
136 | + | else assetBalance(this, fromBase58String(assetId)) | |
137 | + | ||
138 | + | ||
139 | + | func toScale (amt,resScale,curScale) = fraction(amt, resScale, curScale) | |
140 | + | ||
141 | + | ||
142 | + | func toScaleBigInt (amt,resScale,curScale) = fraction(amt, resScale, curScale) | |
143 | + | ||
144 | + | ||
145 | + | func calcPriceBigInt (priceAssetLockedAmt,amtAssetlLockedAmt,resultScale) = fraction(priceAssetLockedAmt, resultScale, amtAssetlLockedAmt) | |
146 | + | ||
147 | + | ||
148 | + | func privateCalcPrice (amtAssetDcm,priceAssetDcm,amtAssetAmt,priceAssetAmt) = { | |
149 | + | let amtAssetAmtCasted = toScaleBigInt(toBigInt(amtAssetAmt), scale18, toBigInt(amtAssetDcm)) | |
150 | + | let priceAssetAmtCasted = toScaleBigInt(toBigInt(priceAssetAmt), scale18, toBigInt(priceAssetDcm)) | |
151 | + | toInt(calcPriceBigInt(priceAssetAmtCasted, amtAssetAmtCasted, scale8BigInt)) | |
152 | + | } | |
153 | + | ||
154 | + | ||
155 | + | func calcPrices (amtAssetAmt,priceAssetAmt,lpAmt) = { | |
156 | + | let cfg = getPoolConfig() | |
157 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
158 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
159 | + | let poolPrice = privateCalcPrice(amtAssetDcm, priceAssetDcm, amtAssetAmt, priceAssetAmt) | |
160 | + | let amtAssetPoolLockedAmt = toScaleBigInt(toBigInt(amtAssetAmt), scale18, toBigInt(amtAssetDcm)) | |
161 | + | let priceAssetPoolLockedAmt = toScaleBigInt(toBigInt(priceAssetAmt), scale18, toBigInt(priceAssetDcm)) | |
162 | + | let lpAmtScaled = toScaleBigInt(toBigInt(lpAmt), scale18, scale8BigInt) | |
163 | + | let lpPriceInAmtAsset = toInt(calcPriceBigInt(amtAssetPoolLockedAmt, lpAmtScaled, scale8BigInt)) | |
164 | + | let lpPriceInPriceAsset = toInt(calcPriceBigInt(priceAssetPoolLockedAmt, lpAmtScaled, scale8BigInt)) | |
165 | + | [poolPrice, lpPriceInAmtAsset, lpPriceInPriceAsset] | |
166 | + | } | |
167 | + | ||
168 | + | ||
169 | + | func estimateGetOperation (paymentLpAssetId,paymentLpAmt,userAddress) = { | |
170 | + | let poolConfigList = getPoolConfig() | |
171 | + | let lpAssetId = poolConfigList[idxPoolLPAssetId] | |
172 | + | let amtAssetId = poolConfigList[idxAmtAssetId] | |
173 | + | let priceAssetId = poolConfigList[idxPriceAssetId] | |
174 | + | let iAmtAssetId = poolConfigList[idxIAmtAssetId] | |
175 | + | let iPriceAssetId = poolConfigList[idxIPriceAssetId] | |
176 | + | let amtAssetDcm = parseIntValue(poolConfigList[idxAmtAssetDcm]) | |
177 | + | let priceAssetDcm = parseIntValue(poolConfigList[idxPriceAssetDcm]) | |
178 | + | let poolStatus = poolConfigList[idxPoolStatus] | |
179 | + | let poolLiquidityList = getPoolLiquidity(iAmtAssetId, iPriceAssetId) | |
180 | + | let poolLPBalance = parseIntValue(poolLiquidityList[idxPoolLPAssetAmt]) | |
181 | + | if ((lpAssetId != paymentLpAssetId)) | |
182 | + | then throw("Invalid asset passed.") | |
183 | + | else { | |
184 | + | let amtAssetPoolLockedAmt = toScaleBigInt(toBigInt(getAccBalance(amtAssetId)), scale18, toBigInt(amtAssetDcm)) | |
185 | + | let priceAssetPoolLockedAmt = toScaleBigInt(toBigInt(getAccBalance(priceAssetId)), scale18, toBigInt(priceAssetDcm)) | |
186 | + | let curPrice = toInt(calcPriceBigInt(priceAssetPoolLockedAmt, amtAssetPoolLockedAmt, scale8BigInt)) | |
187 | + | let paymentLpAmtBuf = toScaleBigInt(toBigInt(paymentLpAmt), scale18, scale8BigInt) | |
188 | + | let poolLPBalanceBuf = toScaleBigInt(toBigInt(poolLPBalance), scale18, scale8BigInt) | |
189 | + | let outAmtAssetAmt = fraction(amtAssetPoolLockedAmt, paymentLpAmtBuf, poolLPBalanceBuf) | |
190 | + | let outPriceAssetAmt = fraction(priceAssetPoolLockedAmt, paymentLpAmtBuf, poolLPBalanceBuf) | |
191 | + | let outAmtAssetAmtFinal = toInt(toScaleBigInt(outAmtAssetAmt, toBigInt(amtAssetDcm), scale18)) | |
192 | + | let outPriceAssetAmtFinal = toInt(toScaleBigInt(outPriceAssetAmt, toBigInt(priceAssetDcm), scale18)) | |
193 | + | $Tuple11(outAmtAssetAmtFinal, outPriceAssetAmtFinal, iAmtAssetId, iPriceAssetId, amtAssetId, priceAssetId, toInt(amtAssetPoolLockedAmt), toInt(priceAssetPoolLockedAmt), poolLPBalance, curPrice, poolStatus) | |
194 | + | } | |
195 | + | } | |
196 | + | ||
197 | + | ||
198 | + | func estimatePutOperation (slippageTolerance,inAmtAssetAmt,inAmtAssetId,inPriceAssetAmt,inPriceAssetId,userAddress,isEvaluate) = { | |
199 | + | let cfg = getPoolConfig() | |
200 | + | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
201 | + | let amtAssetId = cfg[idxAmtAssetId] | |
202 | + | let priceAssetId = cfg[idxPriceAssetId] | |
203 | + | let iAmtAssetId = cfg[idxIAmtAssetId] | |
204 | + | let iPriceAssetId = cfg[idxIPriceAssetId] | |
205 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
206 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
207 | + | let poolStatus = cfg[idxPoolStatus] | |
208 | + | let poolLiquidityDataList = getPoolLiquidity(iAmtAssetId, iPriceAssetId) | |
209 | + | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
210 | + | if (if ((amtAssetId != inAmtAssetId)) | |
211 | + | then true | |
212 | + | else (priceAssetId != inPriceAssetId)) | |
213 | + | then throw("Invalid amt or price asset passed.") | |
214 | + | else { | |
215 | + | let accAmtAssetBalance = if (isEvaluate) | |
216 | + | then getAccBalance(amtAssetId) | |
217 | + | else (getAccBalance(amtAssetId) - inAmtAssetAmt) | |
218 | + | let accPriceAssetBalance = if (isEvaluate) | |
219 | + | then getAccBalance(priceAssetId) | |
220 | + | else (getAccBalance(priceAssetId) - inPriceAssetAmt) | |
221 | + | let amtAssetDcmBigInt = toBigInt(amtAssetDcm) | |
222 | + | let priceAssetDcmBigInt = toBigInt(priceAssetDcm) | |
223 | + | let inAmtAssetAmtCalc = toScaleBigInt(toBigInt(inAmtAssetAmt), scale18, amtAssetDcmBigInt) | |
224 | + | let inPriceAssetAmtCalc = toScaleBigInt(toBigInt(inPriceAssetAmt), scale18, priceAssetDcmBigInt) | |
225 | + | let userPrice = toInt(calcPriceBigInt(inPriceAssetAmtCalc, inAmtAssetAmtCalc, scale8BigInt)) | |
226 | + | let amtAssetPoolLockedAmt = toScaleBigInt(toBigInt(accAmtAssetBalance), scale18, amtAssetDcmBigInt) | |
227 | + | let priceAssetPoolLockedAmt = toScaleBigInt(toBigInt(accPriceAssetBalance), scale18, priceAssetDcmBigInt) | |
228 | + | let curPrice = if ((poolLPBalance == 0)) | |
229 | + | then 0 | |
230 | + | else toInt(calcPriceBigInt(priceAssetPoolLockedAmt, amtAssetPoolLockedAmt, scale8BigInt)) | |
231 | + | let slippage = if ((curPrice == 0)) | |
232 | + | then 0 | |
233 | + | else if ((curPrice > userPrice)) | |
234 | + | then fraction((curPrice - userPrice), scale8, curPrice) | |
235 | + | else fraction((userPrice - curPrice), scale8, curPrice) | |
236 | + | if (if ((curPrice != 0)) | |
237 | + | then (slippage > slippageTolerance) | |
238 | + | else false) | |
239 | + | then throw(((("Price slippage " + toString(slippage)) + " exceeded the passed limit of ") + toString(slippageTolerance))) | |
240 | + | else { | |
241 | + | let res = if ((poolLPBalance == 0)) | |
242 | + | then { | |
243 | + | let lpResultBuf = pow((inAmtAssetAmtCalc * inPriceAssetAmtCalc), 0, toBigInt(5), 1, 0, DOWN) | |
244 | + | $Tuple4(toInt(toScaleBigInt(lpResultBuf, scale8BigInt, scale18)), toInt(toScaleBigInt(inAmtAssetAmtCalc, amtAssetDcmBigInt, scale18)), toInt(toScaleBigInt(inPriceAssetAmtCalc, priceAssetDcmBigInt, scale18)), toInt(calcPriceBigInt((priceAssetPoolLockedAmt + inPriceAssetAmtCalc), (amtAssetPoolLockedAmt + inAmtAssetAmtCalc), scale8BigInt))) | |
245 | + | } | |
246 | + | else { | |
247 | + | let poolLPBalanceBuf = toScaleBigInt(toBigInt(poolLPBalance), scale18, scale8BigInt) | |
248 | + | let curPriceScaled = toScaleBigInt(toBigInt(curPrice), scale18, scale8BigInt) | |
249 | + | let pEqByA = fraction(curPriceScaled, inAmtAssetAmtCalc, scale18) | |
250 | + | let resAssetsToPut = if ((pEqByA > inPriceAssetAmtCalc)) | |
251 | + | then $Tuple2(fraction(inPriceAssetAmtCalc, scale18, curPriceScaled), inPriceAssetAmtCalc) | |
252 | + | else $Tuple2(inAmtAssetAmtCalc, pEqByA) | |
253 | + | let lpResult = toInt(toScaleBigInt(fraction(poolLPBalanceBuf, resAssetsToPut._2, priceAssetPoolLockedAmt), scale8BigInt, scale18)) | |
254 | + | $Tuple4(lpResult, toInt(toScaleBigInt(resAssetsToPut._1, amtAssetDcmBigInt, scale18)), toInt(toScaleBigInt(resAssetsToPut._2, priceAssetDcmBigInt, scale18)), toInt(calcPriceBigInt((priceAssetPoolLockedAmt + resAssetsToPut._2), (amtAssetPoolLockedAmt + resAssetsToPut._1), scale8BigInt))) | |
255 | + | } | |
256 | + | if ((0 >= res._1)) | |
257 | + | then throw("Invalid calculations. LP calculated is less than zero.") | |
258 | + | else $Tuple12(res._1, res._4, accAmtAssetBalance, accPriceAssetBalance, poolLPBalance, iAmtAssetId, iPriceAssetId, lpAssetId, slippage, poolStatus, res._2, res._3) | |
259 | + | } | |
260 | + | } | |
261 | + | } | |
262 | + | ||
263 | + | ||
264 | + | func estimateThis (slippageTolerance,inAmtAssetAmt,inAmtAssetId,inPriceAssetAmt,inPriceAssetId,userAddress,isEvaluate) = { | |
265 | + | let cfg = getPoolConfig() | |
266 | + | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
267 | + | let amtAssetId = cfg[idxAmtAssetId] | |
268 | + | let priceAssetId = cfg[idxPriceAssetId] | |
269 | + | let iAmtAssetId = cfg[idxIAmtAssetId] | |
270 | + | let iPriceAssetId = cfg[idxIPriceAssetId] | |
271 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
272 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
273 | + | let poolStatus = cfg[idxPoolStatus] | |
274 | + | let poolLiquidityDataList = getPoolLiquidity(iAmtAssetId, iPriceAssetId) | |
275 | + | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
276 | + | if (if ((amtAssetId != inAmtAssetId)) | |
277 | + | then true | |
278 | + | else (priceAssetId != inPriceAssetId)) | |
279 | + | then throw("Invalid amt or price asset passed.") | |
280 | + | else { | |
281 | + | let accAmtAssetBalance = if (isEvaluate) | |
282 | + | then getAccBalance(amtAssetId) | |
283 | + | else (getAccBalance(amtAssetId) - inAmtAssetAmt) | |
284 | + | let accPriceAssetBalance = if (isEvaluate) | |
285 | + | then getAccBalance(priceAssetId) | |
286 | + | else (getAccBalance(priceAssetId) - inPriceAssetAmt) | |
287 | + | let amtAssetDcmBigInt = toBigInt(amtAssetDcm) | |
288 | + | let priceAssetDcmBigInt = toBigInt(priceAssetDcm) | |
289 | + | let inAmtAssetAmtCalc = toScaleBigInt(toBigInt(inAmtAssetAmt), scale18, amtAssetDcmBigInt) | |
290 | + | let inPriceAssetAmtCalc = toScaleBigInt(toBigInt(inPriceAssetAmt), scale18, priceAssetDcmBigInt) | |
291 | + | let userPrice = toInt(calcPriceBigInt(inPriceAssetAmtCalc, inAmtAssetAmtCalc, scale8BigInt)) | |
292 | + | let amtAssetPoolLockedAmt = toScaleBigInt(toBigInt(accAmtAssetBalance), scale18, amtAssetDcmBigInt) | |
293 | + | let priceAssetPoolLockedAmt = toScaleBigInt(toBigInt(accPriceAssetBalance), scale18, priceAssetDcmBigInt) | |
294 | + | let curPrice = if ((poolLPBalance == 0)) | |
295 | + | then 0 | |
296 | + | else toInt(calcPriceBigInt(priceAssetPoolLockedAmt, amtAssetPoolLockedAmt, scale8BigInt)) | |
297 | + | let slippage = if ((curPrice == 0)) | |
298 | + | then 0 | |
299 | + | else if ((curPrice > userPrice)) | |
300 | + | then fraction((curPrice - userPrice), scale8, curPrice) | |
301 | + | else fraction((userPrice - curPrice), scale8, curPrice) | |
302 | + | if (if ((curPrice != 0)) | |
303 | + | then (slippage > slippageTolerance) | |
304 | + | else false) | |
305 | + | then throw(((("Price slippage " + toString(slippage)) + " exceeded the passed limit of ") + toString(slippageTolerance))) | |
306 | + | else $Tuple12(1, 1, 1, 1, 1, "", "", "", 1, "", 1, 1) | |
307 | + | } | |
308 | + | } | |
309 | + | ||
310 | + | ||
311 | + | func validateMatcherOrderAllowed (order) = { | |
312 | + | let cfg = getPoolConfig() | |
313 | + | let amtAssetId = cfg[idxAmtAssetId] | |
314 | + | let priceAssetId = cfg[idxPriceAssetId] | |
315 | + | let poolStatus = parseIntValue(cfg[idxPoolStatus]) | |
316 | + | let matcherPublicKeyStr = cfg[idxMatcherPublicKey] | |
317 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
318 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
319 | + | let accAmtAssetBalance = getAccBalance(amtAssetId) | |
320 | + | let accPriceAssetBalance = getAccBalance(priceAssetId) | |
321 | + | let curPrice = if ((order.orderType == Buy)) | |
322 | + | then privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance + order.amount), accPriceAssetBalance) | |
323 | + | else privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance + order.amount), accPriceAssetBalance) | |
324 | + | if (if (if (isGlobalShutdown()) | |
325 | + | then true | |
326 | + | else (poolStatus == PoolMatcherDisabled)) | |
327 | + | then true | |
328 | + | else (poolStatus == PoolShutdown)) | |
329 | + | then throw("Exchange operations disabled") | |
330 | + | else if (!(sigVerify(order.bodyBytes, order.proofs[0], fromBase58String(matcherPublicKeyStr)))) | |
331 | + | then throw("Incorrect order sender.") | |
332 | + | else { | |
333 | + | let orderAmtAsset = order.assetPair.amountAsset | |
334 | + | let orderAmtAssetStr = if ((orderAmtAsset == unit)) | |
335 | + | then "WAVES" | |
336 | + | else toBase58String(value(orderAmtAsset)) | |
337 | + | let orderPriceAsset = order.assetPair.priceAsset | |
338 | + | let orderPriceAssetStr = if ((orderPriceAsset == unit)) | |
339 | + | then "WAVES" | |
340 | + | else toBase58String(value(orderPriceAsset)) | |
341 | + | if (if ((orderAmtAssetStr != amtAssetId)) | |
342 | + | then true | |
343 | + | else (orderPriceAssetStr != priceAssetId)) | |
344 | + | then throw("Wrong order assets.") | |
345 | + | else { | |
346 | + | let orderPrice = order.price | |
347 | + | let priceDcm = fraction(scale8, priceAssetDcm, amtAssetDcm) | |
348 | + | let castedOrderPrice = toScale(orderPrice, scale8, priceDcm) | |
349 | + | let isOrderPriceValid = if ((order.orderType == Buy)) | |
350 | + | then (curPrice >= castedOrderPrice) | |
351 | + | else (castedOrderPrice >= curPrice) | |
352 | + | if (!(isOrderPriceValid)) | |
353 | + | then throw("Order price leads to K decrease.") | |
354 | + | else true | |
355 | + | } | |
356 | + | } | |
16 | 357 | } | |
17 | 358 | ||
18 | 359 | ||
19 | 360 | @Callable(i) | |
20 | - | func ordinal () = { | |
21 | - | let amountAssetAmt = 1000000000000000 | |
22 | - | let priceAssetAmt = 30000000000000000 | |
23 | - | let bAmountAssetBUF = fraction(toBigInt(amountAssetAmt), BUFSCALE, toBigInt(scale8)) | |
24 | - | let bPriceAssetBUF = fraction(toBigInt(priceAssetAmt), BUFSCALE, toBigInt(scale8)) | |
25 | - | let partABigInt = pow((bAmountAssetBUF * bPriceAssetBUF), 0, toBigInt(5), 1, 0, DOWN) | |
26 | - | let result2 = fraction(partABigInt, toBigInt(scale8), BUFSCALE) | |
27 | - | [IntegerEntry("bigInt", toInt(result2))] | |
361 | + | func constructor (factoryContract) = if ((i.caller != this)) | |
362 | + | then throw("permissions denied") | |
363 | + | else [StringEntry(keyFactoryContract(), factoryContract)] | |
364 | + | ||
365 | + | ||
366 | + | ||
367 | + | @Callable(i) | |
368 | + | func put (slippageTolerance,shouldAutoStake) = { | |
369 | + | let factoryConfigList = getFactoryConfig() | |
370 | + | let stakingContract = valueOrErrorMessage(addressFromString(factoryConfigList[idxFactoryStakingContract]), "Error. Incorrect staking address.") | |
371 | + | let pmtAmtAsset = value(i.payments[0]) | |
372 | + | let inAmtAssetAmt = pmtAmtAsset.amount | |
373 | + | let inAmtAssetId = if (!(isDefined(pmtAmtAsset.assetId))) | |
374 | + | then fromBase58String("WAVES") | |
375 | + | else value(pmtAmtAsset.assetId) | |
376 | + | let pmtPriceAsset = value(i.payments[1]) | |
377 | + | let inPriceAssetAmt = pmtPriceAsset.amount | |
378 | + | let inPriceAssetId = if (!(isDefined(pmtPriceAsset.assetId))) | |
379 | + | then fromBase58String("WAVES") | |
380 | + | else value(pmtPriceAsset.assetId) | |
381 | + | let estimatedPutResults = estimatePutOperation(slippageTolerance, inAmtAssetAmt, toBase58String(inAmtAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller), false) | |
382 | + | let outLpAmt = estimatedPutResults._1 | |
383 | + | let curPrice = estimatedPutResults._2 | |
384 | + | let poolAmtAssetBalance = estimatedPutResults._3 | |
385 | + | let poolPriceAssetBalance = estimatedPutResults._4 | |
386 | + | let poolLPBalance = estimatedPutResults._5 | |
387 | + | let iAmtAssetId = estimatedPutResults._6 | |
388 | + | let iPriceAssetId = estimatedPutResults._7 | |
389 | + | let lpAssetId = estimatedPutResults._8 | |
390 | + | let slippageCalc = estimatedPutResults._9 | |
391 | + | let poolStatus = parseIntValue(estimatedPutResults._10) | |
392 | + | let realAmtAssetIn = estimatedPutResults._11 | |
393 | + | let realPriceAssetIn = estimatedPutResults._12 | |
394 | + | if (if (if (isGlobalShutdown()) | |
395 | + | then true | |
396 | + | else (poolStatus == PoolPutDisabled)) | |
397 | + | then true | |
398 | + | else (poolStatus == PoolShutdown)) | |
399 | + | then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus))) | |
400 | + | else { | |
401 | + | let emitLPAssetOnFactory = invoke(factoryContract, "emit", [outLpAmt], nil) | |
402 | + | if ((emitLPAssetOnFactory == emitLPAssetOnFactory)) | |
403 | + | then if ((emitLPAssetOnFactory != "success")) | |
404 | + | then throw("LP asset reissue failed during emit call on factory.") | |
405 | + | else { | |
406 | + | let diffInAmtAsset = (inAmtAssetAmt - realAmtAssetIn) | |
407 | + | let diffInPriceAsset = (inPriceAssetAmt - realPriceAssetIn) | |
408 | + | let slippageAmtAssetCum = valueOrElse(getInteger(this, keySlippageAmountAssetCumulative()), 0) | |
409 | + | let slippagePriceAssetCum = valueOrElse(getInteger(this, keySlippagePriceAssetCumulative()), 0) | |
410 | + | let dataStateWrite = [StringEntry(keyPriceLast(), ("%s__" + toString(curPrice))), StringEntry(keyPriceHistory(height, lastBlock.timestamp), ("%s__" + toString(curPrice))), StringEntry(keyPutActionByUser(toString(i.caller), toBase58String(i.transactionId)), dataPutActionInfo(realAmtAssetIn, realPriceAssetIn, outLpAmt, curPrice, slippageTolerance, slippageCalc, height, lastBlock.timestamp, diffInAmtAsset, diffInPriceAsset)), StringEntry(keyPoolLiquidity(iAmtAssetId, iPriceAssetId), dataPoolLiquidity((poolAmtAssetBalance + realAmtAssetIn), (poolPriceAssetBalance + realPriceAssetIn), (poolLPBalance + outLpAmt)))] | |
411 | + | let finalResults = if (shouldAutoStake) | |
412 | + | then { | |
413 | + | let stake = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, outLpAmt)]) | |
414 | + | if ((stake == stake)) | |
415 | + | then dataStateWrite | |
416 | + | else throw("Strict value is not equal to itself.") | |
417 | + | } | |
418 | + | else (dataStateWrite :+ ScriptTransfer(i.caller, outLpAmt, lpAssetId)) | |
419 | + | (finalResults ++ (if ((inAmtAssetAmt > realAmtAssetIn)) | |
420 | + | then [ScriptTransfer(i.caller, diffInAmtAsset, pmtAmtAsset.assetId), IntegerEntry(keySlippageAmountAssetCumulative(), (slippageAmtAssetCum + diffInAmtAsset))] | |
421 | + | else (nil ++ (if ((inPriceAssetAmt > realPriceAssetIn)) | |
422 | + | then [ScriptTransfer(i.caller, diffInPriceAsset, pmtPriceAsset.assetId), IntegerEntry(keySlippagePriceAssetCumulative(), (slippagePriceAssetCum + diffInPriceAsset))] | |
423 | + | else nil)))) | |
424 | + | } | |
425 | + | else throw("Strict value is not equal to itself.") | |
426 | + | } | |
28 | 427 | } | |
29 | 428 | ||
30 | 429 | ||
31 | 430 | ||
32 | 431 | @Callable(i) | |
33 | - | func ordinal2 () = { | |
34 | - | let amountAssetAmt = 1000000000 | |
35 | - | let priceAssetAmt = 30000000000 | |
36 | - | let partA = pow(amountAssetAmt, 0, 5, 1, 0, DOWN) | |
37 | - | let partB = pow(priceAssetAmt, 0, 5, 1, 0, DOWN) | |
38 | - | let result = (partA * partB) | |
39 | - | [IntegerEntry("ordinal", result)] | |
432 | + | func get () = { | |
433 | + | let pmtAmtAsset = value(i.payments[0]) | |
434 | + | let pmtAssetId = value(pmtAmtAsset.assetId) | |
435 | + | let pmtAssetAmt = pmtAmtAsset.amount | |
436 | + | let res = estimateGetOperation(toBase58String(pmtAssetId), pmtAssetAmt, toString(i.caller)) | |
437 | + | let outAmtAssetAmt = res._1 | |
438 | + | let outPriceAssetAmt = res._2 | |
439 | + | let iAmtAssetId = res._3 | |
440 | + | let iPriceAssetId = res._4 | |
441 | + | let amtAssetId = res._5 | |
442 | + | let priceAssetId = res._6 | |
443 | + | let poolAmtAssetBalance = res._7 | |
444 | + | let poolPriceAssetBalance = res._8 | |
445 | + | let poolLPBalance = res._9 | |
446 | + | let curPrice = res._10 | |
447 | + | let poolStatus = parseIntValue(res._11) | |
448 | + | if (if (isGlobalShutdown()) | |
449 | + | then true | |
450 | + | else (poolStatus == PoolShutdown)) | |
451 | + | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
452 | + | else { | |
453 | + | let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAssetAmt], [AttachedPayment(pmtAssetId, pmtAssetAmt)]) | |
454 | + | if ((burnLPAssetOnFactory == burnLPAssetOnFactory)) | |
455 | + | then if ((burnLPAssetOnFactory != "success")) | |
456 | + | then throw("LP asset burn failed during emit call on factory.") | |
457 | + | else [ScriptTransfer(i.caller, outAmtAssetAmt, if ((amtAssetId == "WAVES")) | |
458 | + | then unit | |
459 | + | else fromBase58String(amtAssetId)), ScriptTransfer(i.caller, outPriceAssetAmt, fromBase58String(priceAssetId)), StringEntry(keyPoolLiquidity(iAmtAssetId, iPriceAssetId), dataPoolLiquidity((poolAmtAssetBalance - outAmtAssetAmt), (poolPriceAssetBalance - outPriceAssetAmt), (poolLPBalance - pmtAssetAmt))), StringEntry(keyGetActionByUser(toString(i.caller), toBase58String(i.transactionId)), dataGetActionInfo(outAmtAssetAmt, outPriceAssetAmt, pmtAssetAmt, curPrice, height, lastBlock.timestamp)), StringEntry(keyPriceLast(), ("%s__" + toString(curPrice))), StringEntry(keyPriceHistory(height, lastBlock.timestamp), ("%s__" + toString(curPrice)))] | |
460 | + | else throw("Strict value is not equal to itself.") | |
461 | + | } | |
40 | 462 | } | |
41 | 463 | ||
42 | 464 | ||
43 | 465 | ||
44 | 466 | @Callable(i) | |
45 | - | func callMeDapp (stringParam1) = { | |
46 | - | let caller = i.caller | |
47 | - | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", false)] | |
467 | + | func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract))) | |
468 | + | then throw("permissions denied") | |
469 | + | else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success") | |
470 | + | ||
471 | + | ||
472 | + | ||
473 | + | @Callable(i) | |
474 | + | func statsREADONLY () = { | |
475 | + | let cfg = getPoolConfig() | |
476 | + | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
477 | + | let amtAssetId = cfg[idxAmtAssetId] | |
478 | + | let priceAssetId = cfg[idxPriceAssetId] | |
479 | + | let iAmtAssetId = cfg[idxIAmtAssetId] | |
480 | + | let iPriceAssetId = cfg[idxIPriceAssetId] | |
481 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
482 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
483 | + | let poolLiquidityDataList = getPoolLiquidity(iAmtAssetId, iPriceAssetId) | |
484 | + | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
485 | + | let accAmtAssetBalance = getAccBalance(amtAssetId) | |
486 | + | let accPriceAssetBalance = getAccBalance(priceAssetId) | |
487 | + | let pricesList = calcPrices(accAmtAssetBalance, accPriceAssetBalance, poolLPBalance) | |
488 | + | let curPrice = pricesList[0] | |
489 | + | let lpAmtAssetShare = pricesList[1] | |
490 | + | let lpPriceAssetShare = pricesList[2] | |
491 | + | let poolWeight = valueOrErrorMessage(getInteger(factoryContract, keyPoolWeight(toString(this))), "Pool doesn't have weight.") | |
492 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight)], SEP)) | |
48 | 493 | } | |
49 | 494 | ||
50 | 495 | ||
51 | 496 | ||
52 | 497 | @Callable(i) | |
53 | - | func callMe (stringParam1,boolParam2,binaryParam3,intParam4,argsStr) = { | |
54 | - | let caller = i.caller | |
55 | - | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", boolParam2), BinaryEntry("binaryParam3", binaryParam3), IntegerEntry("intParam4", intParam4), StringEntry("listStringParam1", argsStr[0]), StringEntry("listStringParam2", argsStr[1])] | |
498 | + | func evaluatePutByAmtAssetREADONLY (slippageTolerance,inAmtAssetAmt,userAddress) = { | |
499 | + | let cfg = getPoolConfig() | |
500 | + | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
501 | + | let amtAssetId = cfg[idxAmtAssetId] | |
502 | + | let priceAssetId = cfg[idxPriceAssetId] | |
503 | + | let iAmtAssetId = cfg[idxIAmtAssetId] | |
504 | + | let iPriceAssetId = cfg[idxIPriceAssetId] | |
505 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
506 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
507 | + | let poolStatus = cfg[idxPoolStatus] | |
508 | + | let poolLiquidityDataList = getPoolLiquidity(iAmtAssetId, iPriceAssetId) | |
509 | + | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
510 | + | let accAmtAssetBalance = getAccBalance(amtAssetId) | |
511 | + | let accPriceAssetBalance = getAccBalance(priceAssetId) | |
512 | + | let amtAssetAmtScaled = toScaleBigInt(toBigInt(accAmtAssetBalance), scale18, toBigInt(amtAssetDcm)) | |
513 | + | let priceAssetAmtScaled = toScaleBigInt(toBigInt(accPriceAssetBalance), scale18, toBigInt(priceAssetDcm)) | |
514 | + | let curPrice = if ((poolLPBalance == 0)) | |
515 | + | then toBigInt(0) | |
516 | + | else calcPriceBigInt(priceAssetAmtScaled, amtAssetAmtScaled, scale18) | |
517 | + | let inAmtAssetAmtScaled = toScaleBigInt(toBigInt(inAmtAssetAmt), scale18, toBigInt(amtAssetDcm)) | |
518 | + | let inPriceAssetAmtCalc = fraction(inAmtAssetAmtScaled, curPrice, scale18) | |
519 | + | let inPriceAssetAmt = toInt(toScaleBigInt(inPriceAssetAmtCalc, toBigInt(priceAssetDcm), scale18)) | |
520 | + | let estimatedPutResults = estimatePutOperation(slippageTolerance, inAmtAssetAmt, amtAssetId, inPriceAssetAmt, priceAssetId, userAddress, true) | |
521 | + | let outLpAmtCalc = estimatedPutResults._1 | |
522 | + | let curPriceCalc = estimatedPutResults._2 | |
523 | + | let poolAmtAssetBalanceCalc = estimatedPutResults._3 | |
524 | + | let poolPriceAssetBalanceCAlc = estimatedPutResults._4 | |
525 | + | let poolLPBalanceCalc = estimatedPutResults._5 | |
526 | + | let poolStatusCalc = parseIntValue(estimatedPutResults._10) | |
527 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d", toString(outLpAmtCalc), toString(toInt(toScaleBigInt(curPrice, scale8BigInt, scale18))), toString(poolAmtAssetBalanceCalc), toString(poolPriceAssetBalanceCAlc), toString(poolLPBalanceCalc), toString(poolStatusCalc)], SEP)) | |
56 | 528 | } | |
57 | 529 | ||
58 | 530 | ||
59 | 531 | ||
60 | 532 | @Callable(i) | |
61 | - | func callMe2 (stringParam1,boolParam2,binaryParam3,intParam4,argsStr,argsInt,argsBool,argsBinary) = { | |
62 | - | let caller = i.caller | |
63 | - | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", boolParam2), BinaryEntry("binaryParam3", binaryParam3), IntegerEntry("intParam4", intParam4), StringEntry("listStringParam1", argsStr[0]), StringEntry("listStringParam2", argsStr[1]), IntegerEntry("listIntParam1", argsInt[0]), IntegerEntry("listIntParam2", argsInt[1]), BooleanEntry("listBoolParam1", argsBool[0]), BooleanEntry("listBoolParam2", argsBool[1]), BinaryEntry("listBinaryParam3", argsBinary[0]), BinaryEntry("listBinaryParam3", argsBinary[1])] | |
533 | + | func evaluatePutByPriceAssetREADONLY (slippageTolerance,inPriceAssetAmt,userAddress) = { | |
534 | + | let cfg = getPoolConfig() | |
535 | + | let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId]) | |
536 | + | let amtAssetId = cfg[idxAmtAssetId] | |
537 | + | let priceAssetId = cfg[idxPriceAssetId] | |
538 | + | let iAmtAssetId = cfg[idxIAmtAssetId] | |
539 | + | let iPriceAssetId = cfg[idxIPriceAssetId] | |
540 | + | let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm]) | |
541 | + | let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm]) | |
542 | + | let poolStatus = cfg[idxPoolStatus] | |
543 | + | let poolLiquidityDataList = getPoolLiquidity(iAmtAssetId, iPriceAssetId) | |
544 | + | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
545 | + | let accAmtAssetBalance = getAccBalance(amtAssetId) | |
546 | + | let accPriceAssetBalance = getAccBalance(priceAssetId) | |
547 | + | let amtAssetAmtScaled = toScaleBigInt(toBigInt(accAmtAssetBalance), scale18, toBigInt(amtAssetDcm)) | |
548 | + | let priceAssetAmtScaled = toScaleBigInt(toBigInt(accPriceAssetBalance), scale18, toBigInt(priceAssetDcm)) | |
549 | + | let curPrice = if ((poolLPBalance == 0)) | |
550 | + | then toBigInt(0) | |
551 | + | else calcPriceBigInt(priceAssetAmtScaled, amtAssetAmtScaled, scale18) | |
552 | + | let inPriceAssetAmtScaled = toScaleBigInt(toBigInt(inPriceAssetAmt), scale18, toBigInt(priceAssetDcm)) | |
553 | + | let inAmtAssetAmtCalc = fraction(inPriceAssetAmtScaled, scale18, curPrice) | |
554 | + | let inAmtAssetAmt = toInt(toScaleBigInt(inAmtAssetAmtCalc, toBigInt(amtAssetDcm), scale18)) | |
555 | + | let estimatedPutResults = estimatePutOperation(slippageTolerance, inAmtAssetAmt, amtAssetId, inPriceAssetAmt, priceAssetId, userAddress, true) | |
556 | + | let outLpAmtCalc = estimatedPutResults._1 | |
557 | + | let curPriceCalc = estimatedPutResults._2 | |
558 | + | let poolAmtAssetBalanceCalc = estimatedPutResults._3 | |
559 | + | let poolPriceAssetBalanceCAlc = estimatedPutResults._4 | |
560 | + | let poolLPBalanceCalc = estimatedPutResults._5 | |
561 | + | let poolStatusCalc = parseIntValue(estimatedPutResults._10) | |
562 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d", toString(outLpAmtCalc), toString(toInt(toScaleBigInt(curPrice, scale8BigInt, scale18))), toString(poolAmtAssetBalanceCalc), toString(poolPriceAssetBalanceCAlc), toString(poolLPBalanceCalc), toString(poolStatusCalc)], SEP)) | |
563 | + | } | |
564 | + | ||
565 | + | ||
566 | + | ||
567 | + | @Callable(i) | |
568 | + | func evaluateGetREADONLY (paymentLpAssetId,paymentLpAmt,userAddress) = { | |
569 | + | let res = estimateGetOperation(paymentLpAssetId, paymentLpAmt, userAddress) | |
570 | + | let outAmtAssetAmt = res._1 | |
571 | + | let outPriceAssetAmt = res._2 | |
572 | + | let poolAmtAssetBalance = res._7 | |
573 | + | let poolPriceAssetBalance = res._8 | |
574 | + | let poolLPBalance = res._9 | |
575 | + | let curPrice = res._10 | |
576 | + | let poolStatus = parseIntValue(res._11) | |
577 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmtAssetAmt), toString(outPriceAssetAmt), toString(poolAmtAssetBalance), toString(poolPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(poolStatus)], SEP)) | |
64 | 578 | } | |
65 | 579 | ||
66 | 580 | ||
67 | 581 | @Verifier(tx) | |
68 | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
582 | + | func verify () = match tx { | |
583 | + | case order: Order => | |
584 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
585 | + | case _ => | |
586 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
587 | + | } | |
69 | 588 |
github/deemru/w8io/169f3d6 78.07 ms ◑