tx · Bwz6hLahBi1JHTdgQptiNZbY3cZxaLgea5vYSct2pX5S

3Mu1HbpAbcgSTDLftXUZXYZDdyXBU1HeEKz:  -0.05000000 Waves

2021.08.25 10:42 [1673566] smart account 3Mu1HbpAbcgSTDLftXUZXYZDdyXBU1HeEKz > SELF 0.00000000 Waves

{ "type": 13, "id": "Bwz6hLahBi1JHTdgQptiNZbY3cZxaLgea5vYSct2pX5S", "fee": 5000000, "feeAssetId": null, "timestamp": 1629877371710, "version": 2, "chainId": 84, "sender": "3Mu1HbpAbcgSTDLftXUZXYZDdyXBU1HeEKz", "senderPublicKey": "7Vn6fEvwb5WVoQmeMMtTH5ghWBZFoUzV4iX5qfqnTWMU", "proofs": [ "22gyA41Up5y5wqNGSWh3iH1EZJK5MG8xBxihxBTJhUWV5uHN5A5LjihK9GX5nddHPUM9NPh8muHy6UGrMmB8DvqV" ], "script": "base64:AAIFAAAAAAAAABIIAhIDCgEBEgASBwoFCAgICAEAAAA5AAAAAApsUGRlY2ltYWxzAAAAAAAAAAAIAAAAABFkZWNpbWFsc011bHRQcmljZQkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAA+gAAAAAAAAAA+gAAAAAA1NFUAIAAAACX18AAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNhYmxlZAAAAAAAAAAAAgAAAAATUG9vbE1hdGNoZXJEaXNhYmxlZAAAAAAAAAAAAwAAAAAMUG9vbFNodXRkb3duAAAAAAAAAAAEAAAAAAxidXlPcmRlclR5cGUAAAAAAAAAAAAAAAAADXNlbGxPcmRlclR5cGUAAAAAAAAAAAEAAAAAFGZhY3RvcnlBZGRyZXNzU3RyaW5nAgAAACMzTkJQYlNtU2NVNFVmcVZyblljNzl3dnhqdGl2Zm1nblNnRwAAAAAOaWR4UG9vbEFkZHJlc3MAAAAAAAAAAAEAAAAADWlkeFBvb2xTdGF0dXMAAAAAAAAAAAIAAAAAEGlkeFBvb2xMUEFzc2V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AACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgQAAAAFb3JkZXIFAAAAByRtYXRjaDAJAAGRAAAAAgkBAAAAG3ZhbGlkYXRlTWF0Y2hlck9yZGVyQWxsb3dlZAAAAAEFAAAABW9yZGVyAAAAAAAAAAABAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAApleGNoYW5nZVR4BQAAAAckbWF0Y2gwCQABkQAAAAIJAQAAACB2YWxpZGF0ZU1hdGNoZXJFeGNoYW5nZVR4QWxsb3dlZAAAAAEFAAAACmV4Y2hhbmdlVHgAAAAAAAAAAAEJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5nkIX0g==", "height": 1673566, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F3nt1SRbZnBg49HWCAhAcMKyWPSGe5TC4fzP9UvCh3Qo Next: 64h4J4yiXxrkxLydZQyZ96tDcQa4FbDPFu2z6FLU6741 Diff:
OldNewDifferences
294294 then 0
295295 else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1)
296296 let inPriceAssetAmtCalculated = fraction(inAmountAssetAmt, curentPrice, amountAssetAmtCalculatedTuple._2)
297- let inPriceAssetAmt = privateCastAssetToOriginDecimals(priceAssetDecimals, inPriceAssetAmtCalculated)._1
298297 if (true)
299- then throw(("inPriceAssetAmt " + toString(inPriceAssetAmt)))
300- else if (true)
301- then throw(((((((("Current price: " + toString(curentPrice)) + "Price asset pmt: ") + toString(inPriceAssetAmt)) + "Balance amountAsset/PriceAsset: ") + toString(amountAssetAmtCalculatedTuple._1)) + "/") + toString(priceAssetAmtCalculatedTuple._1)))
302- else privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress)
298+ then throw(("inPriceAssetAmtCalculated " + toString(inPriceAssetAmtCalculated)))
299+ else {
300+ let inPriceAssetAmt = privateCastAssetToOriginDecimals(priceAssetDecimals, inPriceAssetAmtCalculated)._1
301+ if (true)
302+ then throw(("inPriceAssetAmt " + toString(inPriceAssetAmt)))
303+ else if (true)
304+ then throw(((((((("Current price: " + toString(curentPrice)) + "Price asset pmt: ") + toString(inPriceAssetAmt)) + "Balance amountAsset/PriceAsset: ") + toString(amountAssetAmtCalculatedTuple._1)) + "/") + toString(priceAssetAmtCalculatedTuple._1)))
305+ else privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress)
306+ }
303307 }
304308
305309
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let lPdecimals = 8
55
66 let decimalsMultPrice = ((100 * 1000) * 1000)
77
88 let SEP = "__"
99
1010 let PoolActive = 1
1111
1212 let PoolPutDisabled = 2
1313
1414 let PoolMatcherDisabled = 3
1515
1616 let PoolShutdown = 4
1717
1818 let buyOrderType = 0
1919
2020 let sellOrderType = 1
2121
2222 let factoryAddressString = "3NBPbSmScU4UfqVrnYc79wvxjtivfmgnSgG"
2323
2424 let idxPoolAddress = 1
2525
2626 let idxPoolStatus = 2
2727
2828 let idxPoolLPAssetId = 3
2929
3030 let idxAmountAssetId = 4
3131
3232 let idxPriceAssetId = 5
3333
3434 let idxAmountAssetDecimals = 6
3535
3636 let idxPriceAssetDecimals = 7
3737
3838 let idxAmountAssetInternalId = 8
3939
4040 let idxPriceAssetInternalId = 9
4141
4242 let idxPoolWeight = 10
4343
4444 let idxLPAssetDecimals = 11
4545
4646 let idxMatcherPublicKey = 12
4747
4848 let idmaxAllowedOrderPriceDifferencePct = 13
4949
5050 let idxPoolAmountAssetAmt = 1
5151
5252 let idxPoolPriceAssetAmt = 2
5353
5454 let idxPoolLPAssetAmt = 3
5555
5656 func keyPriceLast () = "%s%s__price__last"
5757
5858
5959 func keyPriceHistory (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP)
6060
6161
6262 func keyPoolLiquidity (internalAmountAsset,internalPriceAsset) = (((("%d%d%s__" + internalAmountAsset) + "__") + internalPriceAsset) + "__locked")
6363
6464
6565 func keyPoolLiquidityByUser (internalAmountAsset,internalPriceAsset,userAddress) = (((((("%d%d%s%s__" + internalAmountAsset) + "__") + internalPriceAsset) + "__") + userAddress) + "__locked")
6666
6767
6868 func keyPutActionByUser (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId)
6969
7070
7171 func keyGetActionByUser (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId)
7272
7373
7474 func keyAmountAsset () = "%s__amountAsset"
7575
7676
7777 func keyPriceAsset () = "%s__priceAsset"
7878
7979
8080 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
8181
8282
8383 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
8484
8585
8686 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
8787
8888
8989 func keyAllPoolsShutdown () = "%s__shutdown"
9090
9191
9292 func isGlobalShutdown () = valueOrElse(getBoolean(value(addressFromString(factoryAddressString)), keyAllPoolsShutdown()), false)
9393
9494
9595 func getPoolConfig () = {
9696 let poolAmountAsset = valueOrErrorMessage(getString(keyAmountAsset()), "No config for amount asset found")
9797 let poolPriceAsset = valueOrErrorMessage(getString(keyPriceAsset()), "No config for price asset found")
9898 let poolPriceAssetInternal = valueOrErrorMessage(getInteger(value(addressFromString(factoryAddressString)), keyMappingsBaseAsset2internalId(poolPriceAsset)), "No config for internal price asset found")
9999 let poolAmountAssetInternal = valueOrErrorMessage(getInteger(value(addressFromString(factoryAddressString)), keyMappingsBaseAsset2internalId(poolAmountAsset)), "No config for internal amount asset found")
100100 split(valueOrErrorMessage(getString(addressFromStringValue(factoryAddressString), keyPoolConfig(toString(poolAmountAssetInternal), toString(poolPriceAssetInternal))), "No factory config found for pool assets."), SEP)
101101 }
102102
103103
104104 func getPoolLiquidity (amountAssetInternalId,priceAssetInternalId) = {
105105 let currentPoolLiquidityValue = getString(keyPoolLiquidity(amountAssetInternalId, priceAssetInternalId))
106106 if (!(isDefined(currentPoolLiquidityValue)))
107107 then ["", "0", "0", "0"]
108108 else split(value(currentPoolLiquidityValue), SEP)
109109 }
110110
111111
112112 func getPoolLiquidityByUser (amountAssetInternalId,priceAssetInternalId,userAddress) = {
113113 let currentPoolLiquidityValue = getString(keyPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress))
114114 if (!(isDefined(currentPoolLiquidityValue)))
115115 then ["", "0", "0", "0", "0"]
116116 else split(value(currentPoolLiquidityValue), SEP)
117117 }
118118
119119
120120 func dataPoolLiquidity (amountAssetLocked,priceAssetLocked,lpTokenLocked) = makeString(["%d%d%d", toString(amountAssetLocked), toString(priceAssetLocked), toString(lpTokenLocked)], SEP)
121121
122122
123123 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)
124124
125125
126126 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)
127127
128128
129129 func dataPoolLiquidityByUser (amountAssetLocked,priceAssetLocked,lpTokenLocked,userAddress) = makeString(["%d%d%d", toString(amountAssetLocked), toString(priceAssetLocked), toString(lpTokenLocked)], SEP)
130130
131131
132132 func getScriptHash () = toBase64String(value(scriptHash(this)))
133133
134134
135135 func privateCastAssetToLPDecimals (assetDecimals,assetAmount) = {
136136 let decimalsMult = pow(10, 0, (lPdecimals - assetDecimals), 0, 0, DOWN)
137137 $Tuple2((assetAmount * decimalsMult), decimalsMult)
138138 }
139139
140140
141141 func privateCastAssetToOriginDecimals (assetDecimals,assetAmount) = {
142142 let decimalsMult = pow(10, 0, (lPdecimals - assetDecimals), 0, 0, DOWN)
143143 $Tuple2((assetAmount / decimalsMult), decimalsMult)
144144 }
145145
146146
147147 func privateCalculatePrice (amoutAssetDecimals,priceAssetDecimals,amountAssetAmt,priceAssetAmt) = {
148148 let amountAssetPoolLockedAmt = privateCastAssetToLPDecimals(amoutAssetDecimals, amountAssetAmt)._1
149149 let priceAssetPoolLockedAmt = privateCastAssetToLPDecimals(priceAssetDecimals, priceAssetAmt)._1
150150 fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt)
151151 }
152152
153153
154154 func privateGetPoolStatistics () = {
155155 let poolConfigDataList = getPoolConfig()
156156 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
157157 let amountAssetId = poolConfigDataList[idxAmountAssetId]
158158 let priceAssetId = poolConfigDataList[idxPriceAssetId]
159159 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
160160 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
161161 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
162162 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
163163 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
164164 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
165165 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
166166 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
167167 let amountAssetPoolLockedAmt = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance)._1
168168 let priceAssetPoolLockedAmt = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance)._1
169169 let lpPriceInAmountAsset = fraction(amountAssetPoolLockedAmt, (1 * decimalsMultPrice), poolLPBalance)
170170 let lpPriceInPriceAsset = fraction(priceAssetPoolLockedAmt, (1 * decimalsMultPrice), poolLPBalance)
171171 let currentPrice = privateCalculatePrice(amoutAssetDecimals, priceAssetDecimals, poolAmountAssetBalance, poolPriceAssetBalance)
172172 [poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, currentPrice, lpPriceInAmountAsset, lpPriceInPriceAsset]
173173 }
174174
175175
176176 func privateEstimateGetOperation (paymentLpAssetId,paymentLpAmount,userAddress) = {
177177 let poolConfigList = getPoolConfig()
178178 let lpAssetId = poolConfigList[idxPoolLPAssetId]
179179 let amountAssetId = poolConfigList[idxAmountAssetId]
180180 let priceAssetId = poolConfigList[idxPriceAssetId]
181181 let amountAssetInternalId = poolConfigList[idxAmountAssetInternalId]
182182 let priceAssetInternalId = poolConfigList[idxPriceAssetInternalId]
183183 let amoutAssetDecimals = parseIntValue(poolConfigList[idxAmountAssetDecimals])
184184 let priceAssetDecimals = parseIntValue(poolConfigList[idxPriceAssetDecimals])
185185 let poolStatus = poolConfigList[idxPoolStatus]
186186 let userLiquidityList = getPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress)
187187 let userLPBalance = parseIntValue(userLiquidityList[idxPoolLPAssetAmt])
188188 let userAmountAssetBalance = parseIntValue(userLiquidityList[idxPoolAmountAssetAmt])
189189 let userPriceAssetBalance = parseIntValue(userLiquidityList[idxPoolPriceAssetAmt])
190190 let poolLiquidityList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
191191 let poolLPBalance = parseIntValue(poolLiquidityList[idxPoolLPAssetAmt])
192192 let poolAmountAssetBalance = parseIntValue(poolLiquidityList[idxPoolAmountAssetAmt])
193193 let poolPriceAssetBalance = parseIntValue(poolLiquidityList[idxPoolPriceAssetAmt])
194194 if ((lpAssetId != paymentLpAssetId))
195195 then throw("Invalid asset passed.")
196196 else if ((paymentLpAmount > userLPBalance))
197197 then throw("Invalid amount passed. Amount less than available.")
198198 else {
199199 let amountAssetPoolLockedAmt = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance)._1
200200 let priceAssetPoolLockedAmt = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance)._1
201201 let outAmountAssetAmt = fraction(amountAssetPoolLockedAmt, paymentLpAmount, poolLPBalance)
202202 let outPriceAssetAmt = fraction(priceAssetPoolLockedAmt, paymentLpAmount, poolLPBalance)
203203 let outAmountAssetAmtFinal = privateCastAssetToOriginDecimals(amoutAssetDecimals, outAmountAssetAmt)._1
204204 let outPriceAssetAmtFinal = privateCastAssetToOriginDecimals(priceAssetDecimals, outPriceAssetAmt)._1
205205 let currentPrice = fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt)
206206 $Tuple14(outAmountAssetAmtFinal, outPriceAssetAmtFinal, amountAssetInternalId, priceAssetInternalId, userAmountAssetBalance, amountAssetId, userPriceAssetBalance, priceAssetId, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, currentPrice, poolStatus)
207207 }
208208 }
209209
210210
211211 func privateEstimatePutOperation (slippageTolerance,inAmountAssetAmt,inAmountAssetId,inPriceAssetAmt,inPriceAssetId,userAddress) = {
212212 let poolConfigDataList = getPoolConfig()
213213 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
214214 let amountAssetId = poolConfigDataList[idxAmountAssetId]
215215 let priceAssetId = poolConfigDataList[idxPriceAssetId]
216216 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
217217 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
218218 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
219219 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
220220 let poolStatus = poolConfigDataList[idxPoolStatus]
221221 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
222222 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
223223 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
224224 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
225225 let userLiquidityDataList = getPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress)
226226 let userAmountAssetBalance = parseIntValue(userLiquidityDataList[idxPoolAmountAssetAmt])
227227 let userPriceAssetBalance = parseIntValue(userLiquidityDataList[idxPoolPriceAssetAmt])
228228 let userLPBalance = parseIntValue(userLiquidityDataList[idxPoolLPAssetAmt])
229229 if (if ((amountAssetId != inAmountAssetId))
230230 then true
231231 else (priceAssetId != inPriceAssetId))
232232 then throw("Invalid amount or price asset passed.")
233233 else {
234234 let inAmountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, inAmountAssetAmt)
235235 let inPriceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, inPriceAssetAmt)
236236 let inAmountAssetAmtCalculated = inAmountAssetAmtCalculatedTuple._1
237237 let inPriceAssetAmtCalculated = inPriceAssetAmtCalculatedTuple._1
238238 let userPrice = fraction(inPriceAssetAmtCalculated, decimalsMultPrice, inAmountAssetAmtCalculated)
239239 let amountAssetPoolLockedAmt = (poolAmountAssetBalance * inAmountAssetAmtCalculatedTuple._2)
240240 let priceAssetPoolLockedAmt = (poolPriceAssetBalance * inPriceAssetAmtCalculatedTuple._2)
241241 let curentPrice = if ((poolLPBalance == 0))
242242 then 0
243243 else fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt)
244244 let slippage = if ((curentPrice == 0))
245245 then 0
246246 else if ((curentPrice > userPrice))
247247 then fraction((curentPrice - userPrice), 100, curentPrice)
248248 else fraction((userPrice - curentPrice), 100, curentPrice)
249249 if (if ((curentPrice != 0))
250250 then ((slippage * decimalsMultPrice) > slippageTolerance)
251251 else false)
252252 then throw(((("Price slippage " + toString(slippage)) + " exceeded the passed limit of ") + toString(slippageTolerance)))
253253 else {
254254 let finalPrice = fraction((priceAssetPoolLockedAmt + inPriceAssetAmtCalculated), decimalsMultPrice, (amountAssetPoolLockedAmt + inAmountAssetAmtCalculated))
255255 let outLpAmount = if ((poolLPBalance == 0))
256256 then {
257257 let partA = pow(inAmountAssetAmtCalculated, 0, 5, 1, 0, DOWN)
258258 let partB = pow(inPriceAssetAmtCalculated, 0, 5, 1, 0, DOWN)
259259 (partA * partB)
260260 }
261261 else {
262262 let lpAmtByAmountAsset = fraction(poolLPBalance, inAmountAssetAmtCalculated, amountAssetPoolLockedAmt)
263263 let lpAmtByPriceAsset = fraction(poolLPBalance, inPriceAssetAmtCalculated, priceAssetPoolLockedAmt)
264264 if ((lpAmtByPriceAsset > lpAmtByAmountAsset))
265265 then lpAmtByAmountAsset
266266 else lpAmtByPriceAsset
267267 }
268268 $Tuple13(outLpAmount, finalPrice, userAmountAssetBalance, userPriceAssetBalance, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, amountAssetInternalId, priceAssetInternalId, lpAssetId, slippage, poolStatus)
269269 }
270270 }
271271 }
272272
273273
274274 func estimatePutOperationBasedOnAmountAsset () = {
275275 let slippageTolerance = 300000000
276276 let inAmountAssetAmt = 1000000000
277277 let userAddress = "3MzaNvyL4B93DckHi6Z8hKRygXD6MvuPWsT"
278278 let poolConfigDataList = getPoolConfig()
279279 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
280280 let amountAssetId = poolConfigDataList[idxAmountAssetId]
281281 let priceAssetId = poolConfigDataList[idxPriceAssetId]
282282 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
283283 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
284284 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
285285 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
286286 let poolStatus = poolConfigDataList[idxPoolStatus]
287287 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
288288 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
289289 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
290290 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
291291 let amountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance)
292292 let priceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance)
293293 let curentPrice = if ((poolLPBalance == 0))
294294 then 0
295295 else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1)
296296 let inPriceAssetAmtCalculated = fraction(inAmountAssetAmt, curentPrice, amountAssetAmtCalculatedTuple._2)
297- let inPriceAssetAmt = privateCastAssetToOriginDecimals(priceAssetDecimals, inPriceAssetAmtCalculated)._1
298297 if (true)
299- then throw(("inPriceAssetAmt " + toString(inPriceAssetAmt)))
300- else if (true)
301- then throw(((((((("Current price: " + toString(curentPrice)) + "Price asset pmt: ") + toString(inPriceAssetAmt)) + "Balance amountAsset/PriceAsset: ") + toString(amountAssetAmtCalculatedTuple._1)) + "/") + toString(priceAssetAmtCalculatedTuple._1)))
302- else privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress)
298+ then throw(("inPriceAssetAmtCalculated " + toString(inPriceAssetAmtCalculated)))
299+ else {
300+ let inPriceAssetAmt = privateCastAssetToOriginDecimals(priceAssetDecimals, inPriceAssetAmtCalculated)._1
301+ if (true)
302+ then throw(("inPriceAssetAmt " + toString(inPriceAssetAmt)))
303+ else if (true)
304+ then throw(((((((("Current price: " + toString(curentPrice)) + "Price asset pmt: ") + toString(inPriceAssetAmt)) + "Balance amountAsset/PriceAsset: ") + toString(amountAssetAmtCalculatedTuple._1)) + "/") + toString(priceAssetAmtCalculatedTuple._1)))
305+ else privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress)
306+ }
303307 }
304308
305309
306310 func estimatePutOperationBasedOnPriceAsset (slippageTolerance,inPriceAssetAmt,userAddress) = {
307311 let poolConfigDataList = getPoolConfig()
308312 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
309313 let amountAssetId = poolConfigDataList[idxAmountAssetId]
310314 let priceAssetId = poolConfigDataList[idxPriceAssetId]
311315 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
312316 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
313317 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
314318 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
315319 let poolStatus = poolConfigDataList[idxPoolStatus]
316320 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
317321 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
318322 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
319323 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
320324 let amountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance)
321325 let priceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance)
322326 let curentPrice = if ((poolLPBalance == 0))
323327 then 0
324328 else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1)
325329 let inAmountAssetAmtCalculated = (amountAssetAmtCalculatedTuple._2 / curentPrice)
326330 let inAmountAssetAmt = privateCastAssetToOriginDecimals(amoutAssetDecimals, inAmountAssetAmtCalculated)._1
327331 privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress)
328332 }
329333
330334
331335 func validateMatcherOrderAllowed (order) = {
332336 let poolConfigDataList = getPoolConfig()
333337 let amountAssetId = poolConfigDataList[idxAmountAssetId]
334338 let priceAssetId = poolConfigDataList[idxPriceAssetId]
335339 let poolStatus = parseIntValue(poolConfigDataList[idxPoolStatus])
336340 let matcherPublicKeyStr = poolConfigDataList[idxMatcherPublicKey]
337341 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
338342 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
339343 let amountAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
340344 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
341345 let maxAllowedOrderPriceDifferencePct = parseIntValue(poolConfigDataList[idmaxAllowedOrderPriceDifferencePct])
342346 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
343347 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
344348 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
345349 let currentPrice = privateCalculatePrice(amountAssetDecimals, priceAssetDecimals, poolAmountAssetBalance, poolPriceAssetBalance)
346350 let isPoolStatusValid = if (if (if (isGlobalShutdown())
347351 then true
348352 else (poolStatus == PoolMatcherDisabled))
349353 then true
350354 else (poolStatus == PoolShutdown))
351355 then false
352356 else true
353357 let isValidMatcherSign = sigVerify(order.bodyBytes, order.proofs[0], fromBase58String(matcherPublicKeyStr))
354358 let orderAmountAsset = order.assetPair.amountAsset
355359 let orderAmountAssetStr = if ((orderAmountAsset == unit))
356360 then ""
357361 else toBase58String(value(orderAmountAsset))
358362 let orderPriceAsset = order.assetPair.priceAsset
359363 let orderPriceAssetStr = if ((orderPriceAsset == unit))
360364 then ""
361365 else toBase58String(value(orderPriceAsset))
362366 let isValidAssetPair = if (if ((orderAmountAssetStr != amountAssetId))
363367 then true
364368 else (orderPriceAssetStr != priceAssetId))
365369 then false
366370 else true
367371 let orderPrice = order.price
368372 let priceDecimals = ((8 + priceAssetDecimals) - amountAssetDecimals)
369373 let castedOrderPrice = privateCastAssetToLPDecimals(priceDecimals, orderPrice)
370374 let isOrderPriceValid = if ((order.orderType == Buy))
371375 then (currentPrice >= orderPrice)
372376 else (orderPrice >= currentPrice)
373377 [if (if (if (isValidAssetPair)
374378 then isValidMatcherSign
375379 else false)
376380 then isPoolStatusValid
377381 else false)
378382 then isOrderPriceValid
379383 else false]
380384 }
381385
382386
383387 func validateMatcherExchangeTxAllowed (ex) = {
384388 let poolConfigDataList = getPoolConfig()
385389 let amountAssetId = poolConfigDataList[idxAmountAssetId]
386390 let priceAssetId = poolConfigDataList[idxPriceAssetId]
387391 let poolStatus = parseIntValue(poolConfigDataList[idxPoolStatus])
388392 let matcherPublicKeyStr = poolConfigDataList[idxMatcherPublicKey]
389393 let isPoolStatusValid = if (if (if (isGlobalShutdown())
390394 then true
391395 else (poolStatus == PoolMatcherDisabled))
392396 then true
393397 else (poolStatus == PoolShutdown))
394398 then false
395399 else true
396400 let isValidMatcherSign = sigVerify(ex.bodyBytes, ex.proofs[0], fromBase58String(matcherPublicKeyStr))
397401 let exchangeAmountAsset = ex.buyOrder.assetPair.amountAsset
398402 let exchangeAmountAssetStr = if ((exchangeAmountAsset == unit))
399403 then ""
400404 else toBase58String(value(exchangeAmountAsset))
401405 let exchangePriceAsset = ex.buyOrder.assetPair.priceAsset
402406 let exchangePriceAssetStr = if ((exchangePriceAsset == unit))
403407 then ""
404408 else toBase58String(value(exchangePriceAsset))
405409 let isValidAssetPair = if (if ((exchangeAmountAssetStr != amountAssetId))
406410 then true
407411 else (exchangePriceAssetStr != priceAssetId))
408412 then false
409413 else true
410414 let orderAmountAssetAmt = toBigInt(ex.amount)
411415 let executedOrderType = if ((ex.buyOrder.sender == this))
412416 then buyOrderType
413417 else sellOrderType
414418 let orderPriceAssetAmt = fraction(orderAmountAssetAmt, toBigInt(ex.price), toBigInt(decimalsMultPrice))
415419 let currentAmountAssetBalance = if ((amountAssetId == ""))
416420 then value(wavesBalance(this)).available
417421 else value(assetBalance(this, fromBase58String(amountAssetId)))
418422 let currentPriceAssetBalance = if ((priceAssetId == ""))
419423 then value(wavesBalance(this)).available
420424 else value(assetBalance(this, fromBase58String(priceAssetId)))
421425 let currentK = fraction(toBigInt(currentAmountAssetBalance), toBigInt(currentPriceAssetBalance), toBigInt(decimalsMultPrice))
422426 let calculatedKAfterTransaction = if ((executedOrderType == buyOrderType))
423427 then fraction((toBigInt(currentAmountAssetBalance) + orderAmountAssetAmt), (toBigInt(currentPriceAssetBalance) - orderPriceAssetAmt), toBigInt(decimalsMultPrice))
424428 else fraction((toBigInt(currentAmountAssetBalance) - orderAmountAssetAmt), (toBigInt(currentPriceAssetBalance) + orderPriceAssetAmt), toBigInt(decimalsMultPrice))
425429 let isKIncreasing = (calculatedKAfterTransaction > currentK)
426430 [if (if (if (isValidAssetPair)
427431 then isKIncreasing
428432 else false)
429433 then isValidMatcherSign
430434 else false)
431435 then isPoolStatusValid
432436 else false]
433437 }
434438
435439
436440 @Callable(i)
437441 func put (slippageTolerance) = {
438442 let pmtAmountAsset = value(i.payments[0])
439443 let inAmountAssetAmt = pmtAmountAsset.amount
440444 let inAmountAssetId = if (!(isDefined(pmtAmountAsset.assetId)))
441445 then fromBase58String("")
442446 else value(pmtAmountAsset.assetId)
443447 let pmtPriceAsset = value(i.payments[1])
444448 let inPriceAssetAmt = pmtPriceAsset.amount
445449 let inPriceAssetId = value(pmtPriceAsset.assetId)
446450 let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, toBase58String(inAmountAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller))
447451 let outLpAmount = estimatedPutResults._1
448452 let curentPrice = estimatedPutResults._2
449453 let userAmountAssetBalance = estimatedPutResults._3
450454 let userPriceAssetBalance = estimatedPutResults._4
451455 let userLPBalance = estimatedPutResults._5
452456 let poolAmountAssetBalance = estimatedPutResults._6
453457 let poolPriceAssetBalance = estimatedPutResults._7
454458 let poolLPBalance = estimatedPutResults._8
455459 let amountAssetInternalId = estimatedPutResults._9
456460 let priceAssetInternalId = estimatedPutResults._10
457461 let lpAssetId = estimatedPutResults._11
458462 let slippageCalculated = estimatedPutResults._12
459463 let poolStatus = parseIntValue(estimatedPutResults._13)
460464 if (if (if (isGlobalShutdown())
461465 then true
462466 else (poolStatus == PoolPutDisabled))
463467 then true
464468 else (poolStatus == PoolShutdown))
465469 then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus)))
466470 else [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))), Reissue(lpAssetId, outLpAmount, true), ScriptTransfer(i.caller, outLpAmount, lpAssetId)]
467471 }
468472
469473
470474
471475 @Callable(i)
472476 func get () = {
473477 let pmtAmountAsset = value(i.payments[0])
474478 let pmtAssetId = value(pmtAmountAsset.assetId)
475479 let pmtAssetAmount = pmtAmountAsset.amount
476480 let results = privateEstimateGetOperation(toBase58String(pmtAssetId), pmtAssetAmount, toString(i.caller))
477481 let outAmountAssetAmt = results._1
478482 let outPriceAssetAmt = results._2
479483 let amountAssetInternalId = results._3
480484 let priceAssetInternalId = results._4
481485 let userAmountAssetBalance = results._5
482486 let amountAssetId = results._6
483487 let userPriceAssetBalance = results._7
484488 let priceAssetId = results._8
485489 let userLPBalance = results._9
486490 let poolAmountAssetBalance = results._10
487491 let poolPriceAssetBalance = results._11
488492 let poolLPBalance = results._12
489493 let currentPrice = results._13
490494 let poolStatus = parseIntValue(results._14)
491495 if (if (isGlobalShutdown())
492496 then true
493497 else (poolStatus == PoolShutdown))
494498 then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus)))
495499 else [Burn(pmtAssetId, pmtAssetAmount), ScriptTransfer(i.caller, outAmountAssetAmt, if ((amountAssetId == ""))
496500 then unit
497501 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)))]
498502 }
499503
500504
501505
502506 @Callable(i)
503507 func activate (amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight) = if ((toString(i.caller) != factoryAddressString))
504508 then throw("permissions denied")
505509 else {
506510 let amountAssetId = fromBase58String(amountAssetStr)
507511 let amountAssetDecimals = value(assetInfo(amountAssetId)).decimals
508512 let priceAssetId = fromBase58String(priceAssetStr)
509513 let priceAssetDecimals = value(assetInfo(priceAssetId)).decimals
510514 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
511515 let lpAssetId = calculateAssetId(lpAssetIssueAction)
512516 let lpAssetIdAsString = toBase58String(lpAssetId)
513517 $Tuple2([lpAssetIssueAction, Burn(lpAssetId, 1), StringEntry(keyAmountAsset(), amountAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], lpAssetIdAsString)
514518 }
515519
516520
517521 @Verifier(tx)
518522 func verify () = match tx {
519523 case order: Order =>
520524 validateMatcherOrderAllowed(order)[1]
521525 case exchangeTx: ExchangeTransaction =>
522526 validateMatcherExchangeTxAllowed(exchangeTx)[1]
523527 case _ =>
524528 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
525529 }
526530

github/deemru/w8io/026f985 
73.80 ms