tx · Dkz3Z5qo1cDPAhDzKZhMjgyLDcRfTf4aJG7NxhTJbMwy

3Mu1HbpAbcgSTDLftXUZXYZDdyXBU1HeEKz:  -0.05000000 Waves

2021.08.25 10:54 [1673579] smart account 3Mu1HbpAbcgSTDLftXUZXYZDdyXBU1HeEKz > SELF 0.00000000 Waves

{ "type": 13, "id": "Dkz3Z5qo1cDPAhDzKZhMjgyLDcRfTf4aJG7NxhTJbMwy", "fee": 5000000, "feeAssetId": null, "timestamp": 1629878090398, "version": 2, "chainId": 84, "sender": "3Mu1HbpAbcgSTDLftXUZXYZDdyXBU1HeEKz", "senderPublicKey": "7Vn6fEvwb5WVoQmeMMtTH5ghWBZFoUzV4iX5qfqnTWMU", "proofs": [ "5AJiUc2JTmkW8EeReHsuQPNdiHFULmD231P5pmRcPdN1uobAh5762Q1Euv5yyDfGn2egbNme1QZ2qhfvyxE7kqFY" ], "script": "base64:AAIFAAAAAAAAABIIAhIDCgEBEgASBwoFCAgICAEAAAA5AAAAAApsUGRlY2ltYWxzAAAAAAAAAAAIAAAAABFkZWNpbWFsc011bHRQcmljZQkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAA+gAAAAAAAAAA+gAAAAAA1NFUAIAAAACX18AAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNhYmxlZAAAAAAAAAAAAgAAAAATUG9vbE1hdGNoZXJEaXNhYmxlZAAAAAAAAAAAAwAAAAAMUG9vbFNodXRkb3duAAAAAAAAAAAEAAAAAAxidXlPcmRlclR5cGUAAAAAAAAAAAAAAAAADXNlbGxPcmRlclR5cGUAAAAAAAAAAAEAAAAAFGZhY3RvcnlBZGRyZXNzU3RyaW5nAgAAACMzTkJQYlNtU2NVNFVmcVZyblljNzl3dnhqdGl2Zm1nblNnRwAAAAAOaWR4UG9vbEFkZHJlc3MAAAAAAAAAAAEAAAAADWlkeFBvb2xTdGF0dXMAAAAAAAAAAAIAAAAAEGlkeFBvb2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kABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAANa2V5UHJpY2VBc3NldAAAAAAFAAAADXByaWNlQXNzZXRTdHIFAAAAA25pbAUAAAARbHBBc3NldElkQXNTdHJpbmcAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIEAAAABW9yZGVyBQAAAAckbWF0Y2gwCQABkQAAAAIJAQAAABt2YWxpZGF0ZU1hdGNoZXJPcmRlckFsbG93ZWQAAAABBQAAAAVvcmRlcgAAAAAAAAAAAQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAAKZXhjaGFuZ2VUeAUAAAAHJG1hdGNoMAkAAZEAAAACCQEAAAAgdmFsaWRhdGVNYXRjaGVyRXhjaGFuZ2VUeEFsbG93ZWQAAAABBQAAAApleGNoYW5nZVR4AAAAAAAAAAABCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleamCfK0=", "height": 1673579, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CLK5NX7z9oyHtxgCwdfGnyGdcNrmvQCfvmnwoNYvUoZ4 Next: DiXjyrNtSySZNqh1Lq9ZEJxqk1duPy5R28a7uZSjhMS3 Diff:
OldNewDifferences
140140
141141 func privateCastAssetToOriginDecimals (assetDecimals,assetAmount) = {
142142 let decimalsMult = pow(10, 0, (lPdecimals - assetDecimals), 0, 0, DOWN)
143- $Tuple2((assetAmount / decimalsMult), decimalsMult)
143+ if (true)
144+ then throw(((("decimalsMult " + toString(decimalsMult)) + " assetAmount ") + toString(assetAmount)))
145+ else $Tuple2((assetAmount / decimalsMult), decimalsMult)
144146 }
145147
146148
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)
143- $Tuple2((assetAmount / decimalsMult), decimalsMult)
143+ if (true)
144+ then throw(((("decimalsMult " + toString(decimalsMult)) + " assetAmount ") + toString(assetAmount)))
145+ else $Tuple2((assetAmount / decimalsMult), decimalsMult)
144146 }
145147
146148
147149 func privateCalculatePrice (amoutAssetDecimals,priceAssetDecimals,amountAssetAmt,priceAssetAmt) = {
148150 let amountAssetPoolLockedAmt = privateCastAssetToLPDecimals(amoutAssetDecimals, amountAssetAmt)._1
149151 let priceAssetPoolLockedAmt = privateCastAssetToLPDecimals(priceAssetDecimals, priceAssetAmt)._1
150152 fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt)
151153 }
152154
153155
154156 func privateGetPoolStatistics () = {
155157 let poolConfigDataList = getPoolConfig()
156158 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
157159 let amountAssetId = poolConfigDataList[idxAmountAssetId]
158160 let priceAssetId = poolConfigDataList[idxPriceAssetId]
159161 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
160162 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
161163 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
162164 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
163165 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
164166 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
165167 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
166168 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
167169 let amountAssetPoolLockedAmt = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance)._1
168170 let priceAssetPoolLockedAmt = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance)._1
169171 let lpPriceInAmountAsset = fraction(amountAssetPoolLockedAmt, (1 * decimalsMultPrice), poolLPBalance)
170172 let lpPriceInPriceAsset = fraction(priceAssetPoolLockedAmt, (1 * decimalsMultPrice), poolLPBalance)
171173 let currentPrice = privateCalculatePrice(amoutAssetDecimals, priceAssetDecimals, poolAmountAssetBalance, poolPriceAssetBalance)
172174 [poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, currentPrice, lpPriceInAmountAsset, lpPriceInPriceAsset]
173175 }
174176
175177
176178 func privateEstimateGetOperation (paymentLpAssetId,paymentLpAmount,userAddress) = {
177179 let poolConfigList = getPoolConfig()
178180 let lpAssetId = poolConfigList[idxPoolLPAssetId]
179181 let amountAssetId = poolConfigList[idxAmountAssetId]
180182 let priceAssetId = poolConfigList[idxPriceAssetId]
181183 let amountAssetInternalId = poolConfigList[idxAmountAssetInternalId]
182184 let priceAssetInternalId = poolConfigList[idxPriceAssetInternalId]
183185 let amoutAssetDecimals = parseIntValue(poolConfigList[idxAmountAssetDecimals])
184186 let priceAssetDecimals = parseIntValue(poolConfigList[idxPriceAssetDecimals])
185187 let poolStatus = poolConfigList[idxPoolStatus]
186188 let userLiquidityList = getPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress)
187189 let userLPBalance = parseIntValue(userLiquidityList[idxPoolLPAssetAmt])
188190 let userAmountAssetBalance = parseIntValue(userLiquidityList[idxPoolAmountAssetAmt])
189191 let userPriceAssetBalance = parseIntValue(userLiquidityList[idxPoolPriceAssetAmt])
190192 let poolLiquidityList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
191193 let poolLPBalance = parseIntValue(poolLiquidityList[idxPoolLPAssetAmt])
192194 let poolAmountAssetBalance = parseIntValue(poolLiquidityList[idxPoolAmountAssetAmt])
193195 let poolPriceAssetBalance = parseIntValue(poolLiquidityList[idxPoolPriceAssetAmt])
194196 if ((lpAssetId != paymentLpAssetId))
195197 then throw("Invalid asset passed.")
196198 else if ((paymentLpAmount > userLPBalance))
197199 then throw("Invalid amount passed. Amount less than available.")
198200 else {
199201 let amountAssetPoolLockedAmt = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance)._1
200202 let priceAssetPoolLockedAmt = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance)._1
201203 let outAmountAssetAmt = fraction(amountAssetPoolLockedAmt, paymentLpAmount, poolLPBalance)
202204 let outPriceAssetAmt = fraction(priceAssetPoolLockedAmt, paymentLpAmount, poolLPBalance)
203205 let outAmountAssetAmtFinal = privateCastAssetToOriginDecimals(amoutAssetDecimals, outAmountAssetAmt)._1
204206 let outPriceAssetAmtFinal = privateCastAssetToOriginDecimals(priceAssetDecimals, outPriceAssetAmt)._1
205207 let currentPrice = fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt)
206208 $Tuple14(outAmountAssetAmtFinal, outPriceAssetAmtFinal, amountAssetInternalId, priceAssetInternalId, userAmountAssetBalance, amountAssetId, userPriceAssetBalance, priceAssetId, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, currentPrice, poolStatus)
207209 }
208210 }
209211
210212
211213 func privateEstimatePutOperation (slippageTolerance,inAmountAssetAmt,inAmountAssetId,inPriceAssetAmt,inPriceAssetId,userAddress) = {
212214 let poolConfigDataList = getPoolConfig()
213215 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
214216 let amountAssetId = poolConfigDataList[idxAmountAssetId]
215217 let priceAssetId = poolConfigDataList[idxPriceAssetId]
216218 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
217219 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
218220 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
219221 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
220222 let poolStatus = poolConfigDataList[idxPoolStatus]
221223 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
222224 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
223225 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
224226 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
225227 let userLiquidityDataList = getPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress)
226228 let userAmountAssetBalance = parseIntValue(userLiquidityDataList[idxPoolAmountAssetAmt])
227229 let userPriceAssetBalance = parseIntValue(userLiquidityDataList[idxPoolPriceAssetAmt])
228230 let userLPBalance = parseIntValue(userLiquidityDataList[idxPoolLPAssetAmt])
229231 if (if ((amountAssetId != inAmountAssetId))
230232 then true
231233 else (priceAssetId != inPriceAssetId))
232234 then throw("Invalid amount or price asset passed.")
233235 else {
234236 let inAmountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, inAmountAssetAmt)
235237 let inPriceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, inPriceAssetAmt)
236238 let inAmountAssetAmtCalculated = inAmountAssetAmtCalculatedTuple._1
237239 let inPriceAssetAmtCalculated = inPriceAssetAmtCalculatedTuple._1
238240 let userPrice = fraction(inPriceAssetAmtCalculated, decimalsMultPrice, inAmountAssetAmtCalculated)
239241 let amountAssetPoolLockedAmt = (poolAmountAssetBalance * inAmountAssetAmtCalculatedTuple._2)
240242 let priceAssetPoolLockedAmt = (poolPriceAssetBalance * inPriceAssetAmtCalculatedTuple._2)
241243 let curentPrice = if ((poolLPBalance == 0))
242244 then 0
243245 else fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt)
244246 let slippage = if ((curentPrice == 0))
245247 then 0
246248 else if ((curentPrice > userPrice))
247249 then fraction((curentPrice - userPrice), 100, curentPrice)
248250 else fraction((userPrice - curentPrice), 100, curentPrice)
249251 if (if ((curentPrice != 0))
250252 then ((slippage * decimalsMultPrice) > slippageTolerance)
251253 else false)
252254 then throw(((("Price slippage " + toString(slippage)) + " exceeded the passed limit of ") + toString(slippageTolerance)))
253255 else {
254256 let finalPrice = fraction((priceAssetPoolLockedAmt + inPriceAssetAmtCalculated), decimalsMultPrice, (amountAssetPoolLockedAmt + inAmountAssetAmtCalculated))
255257 let outLpAmount = if ((poolLPBalance == 0))
256258 then {
257259 let partA = pow(inAmountAssetAmtCalculated, 0, 5, 1, 0, DOWN)
258260 let partB = pow(inPriceAssetAmtCalculated, 0, 5, 1, 0, DOWN)
259261 (partA * partB)
260262 }
261263 else {
262264 let lpAmtByAmountAsset = fraction(poolLPBalance, inAmountAssetAmtCalculated, amountAssetPoolLockedAmt)
263265 let lpAmtByPriceAsset = fraction(poolLPBalance, inPriceAssetAmtCalculated, priceAssetPoolLockedAmt)
264266 if ((lpAmtByPriceAsset > lpAmtByAmountAsset))
265267 then lpAmtByAmountAsset
266268 else lpAmtByPriceAsset
267269 }
268270 $Tuple13(outLpAmount, finalPrice, userAmountAssetBalance, userPriceAssetBalance, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, amountAssetInternalId, priceAssetInternalId, lpAssetId, slippage, poolStatus)
269271 }
270272 }
271273 }
272274
273275
274276 func estimatePutOperationBasedOnAmountAsset () = {
275277 let slippageTolerance = 300000000
276278 let inAmountAssetAmt = 1000000000
277279 let userAddress = "3MzaNvyL4B93DckHi6Z8hKRygXD6MvuPWsT"
278280 let poolConfigDataList = getPoolConfig()
279281 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
280282 let amountAssetId = poolConfigDataList[idxAmountAssetId]
281283 let priceAssetId = poolConfigDataList[idxPriceAssetId]
282284 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
283285 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
284286 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
285287 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
286288 let poolStatus = poolConfigDataList[idxPoolStatus]
287289 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
288290 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
289291 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
290292 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
291293 let amountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance)
292294 let priceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance)
293295 let curentPrice = if ((poolLPBalance == 0))
294296 then 0
295297 else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1)
296298 let inPriceAssetAmtCalculated = fraction(inAmountAssetAmt, curentPrice, decimalsMultPrice)
297299 if (true)
298300 then throw(("inPriceAssetAmtCalculated " + toString(inPriceAssetAmtCalculated)))
299301 else {
300302 let inPriceAssetAmt = privateCastAssetToOriginDecimals(priceAssetDecimals, inPriceAssetAmtCalculated)._1
301303 if (true)
302304 then throw(("inPriceAssetAmt " + toString(inPriceAssetAmt)))
303305 else if (true)
304306 then throw(((((((("Current price: " + toString(curentPrice)) + "Price asset pmt: ") + toString(inPriceAssetAmt)) + "Balance amountAsset/PriceAsset: ") + toString(amountAssetAmtCalculatedTuple._1)) + "/") + toString(priceAssetAmtCalculatedTuple._1)))
305307 else privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress)
306308 }
307309 }
308310
309311
310312 func estimatePutOperationBasedOnPriceAsset (slippageTolerance,inPriceAssetAmt,userAddress) = {
311313 let poolConfigDataList = getPoolConfig()
312314 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
313315 let amountAssetId = poolConfigDataList[idxAmountAssetId]
314316 let priceAssetId = poolConfigDataList[idxPriceAssetId]
315317 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
316318 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
317319 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
318320 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
319321 let poolStatus = poolConfigDataList[idxPoolStatus]
320322 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
321323 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
322324 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
323325 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
324326 let amountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance)
325327 let priceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance)
326328 let curentPrice = if ((poolLPBalance == 0))
327329 then 0
328330 else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1)
329331 let inAmountAssetAmtCalculated = (amountAssetAmtCalculatedTuple._2 / curentPrice)
330332 let inAmountAssetAmt = privateCastAssetToOriginDecimals(amoutAssetDecimals, inAmountAssetAmtCalculated)._1
331333 privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress)
332334 }
333335
334336
335337 func validateMatcherOrderAllowed (order) = {
336338 let poolConfigDataList = getPoolConfig()
337339 let amountAssetId = poolConfigDataList[idxAmountAssetId]
338340 let priceAssetId = poolConfigDataList[idxPriceAssetId]
339341 let poolStatus = parseIntValue(poolConfigDataList[idxPoolStatus])
340342 let matcherPublicKeyStr = poolConfigDataList[idxMatcherPublicKey]
341343 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
342344 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
343345 let amountAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
344346 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
345347 let maxAllowedOrderPriceDifferencePct = parseIntValue(poolConfigDataList[idmaxAllowedOrderPriceDifferencePct])
346348 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
347349 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
348350 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
349351 let currentPrice = privateCalculatePrice(amountAssetDecimals, priceAssetDecimals, poolAmountAssetBalance, poolPriceAssetBalance)
350352 let isPoolStatusValid = if (if (if (isGlobalShutdown())
351353 then true
352354 else (poolStatus == PoolMatcherDisabled))
353355 then true
354356 else (poolStatus == PoolShutdown))
355357 then false
356358 else true
357359 let isValidMatcherSign = sigVerify(order.bodyBytes, order.proofs[0], fromBase58String(matcherPublicKeyStr))
358360 let orderAmountAsset = order.assetPair.amountAsset
359361 let orderAmountAssetStr = if ((orderAmountAsset == unit))
360362 then ""
361363 else toBase58String(value(orderAmountAsset))
362364 let orderPriceAsset = order.assetPair.priceAsset
363365 let orderPriceAssetStr = if ((orderPriceAsset == unit))
364366 then ""
365367 else toBase58String(value(orderPriceAsset))
366368 let isValidAssetPair = if (if ((orderAmountAssetStr != amountAssetId))
367369 then true
368370 else (orderPriceAssetStr != priceAssetId))
369371 then false
370372 else true
371373 let orderPrice = order.price
372374 let priceDecimals = ((8 + priceAssetDecimals) - amountAssetDecimals)
373375 let castedOrderPrice = privateCastAssetToLPDecimals(priceDecimals, orderPrice)
374376 let isOrderPriceValid = if ((order.orderType == Buy))
375377 then (currentPrice >= orderPrice)
376378 else (orderPrice >= currentPrice)
377379 [if (if (if (isValidAssetPair)
378380 then isValidMatcherSign
379381 else false)
380382 then isPoolStatusValid
381383 else false)
382384 then isOrderPriceValid
383385 else false]
384386 }
385387
386388
387389 func validateMatcherExchangeTxAllowed (ex) = {
388390 let poolConfigDataList = getPoolConfig()
389391 let amountAssetId = poolConfigDataList[idxAmountAssetId]
390392 let priceAssetId = poolConfigDataList[idxPriceAssetId]
391393 let poolStatus = parseIntValue(poolConfigDataList[idxPoolStatus])
392394 let matcherPublicKeyStr = poolConfigDataList[idxMatcherPublicKey]
393395 let isPoolStatusValid = if (if (if (isGlobalShutdown())
394396 then true
395397 else (poolStatus == PoolMatcherDisabled))
396398 then true
397399 else (poolStatus == PoolShutdown))
398400 then false
399401 else true
400402 let isValidMatcherSign = sigVerify(ex.bodyBytes, ex.proofs[0], fromBase58String(matcherPublicKeyStr))
401403 let exchangeAmountAsset = ex.buyOrder.assetPair.amountAsset
402404 let exchangeAmountAssetStr = if ((exchangeAmountAsset == unit))
403405 then ""
404406 else toBase58String(value(exchangeAmountAsset))
405407 let exchangePriceAsset = ex.buyOrder.assetPair.priceAsset
406408 let exchangePriceAssetStr = if ((exchangePriceAsset == unit))
407409 then ""
408410 else toBase58String(value(exchangePriceAsset))
409411 let isValidAssetPair = if (if ((exchangeAmountAssetStr != amountAssetId))
410412 then true
411413 else (exchangePriceAssetStr != priceAssetId))
412414 then false
413415 else true
414416 let orderAmountAssetAmt = toBigInt(ex.amount)
415417 let executedOrderType = if ((ex.buyOrder.sender == this))
416418 then buyOrderType
417419 else sellOrderType
418420 let orderPriceAssetAmt = fraction(orderAmountAssetAmt, toBigInt(ex.price), toBigInt(decimalsMultPrice))
419421 let currentAmountAssetBalance = if ((amountAssetId == ""))
420422 then value(wavesBalance(this)).available
421423 else value(assetBalance(this, fromBase58String(amountAssetId)))
422424 let currentPriceAssetBalance = if ((priceAssetId == ""))
423425 then value(wavesBalance(this)).available
424426 else value(assetBalance(this, fromBase58String(priceAssetId)))
425427 let currentK = fraction(toBigInt(currentAmountAssetBalance), toBigInt(currentPriceAssetBalance), toBigInt(decimalsMultPrice))
426428 let calculatedKAfterTransaction = if ((executedOrderType == buyOrderType))
427429 then fraction((toBigInt(currentAmountAssetBalance) + orderAmountAssetAmt), (toBigInt(currentPriceAssetBalance) - orderPriceAssetAmt), toBigInt(decimalsMultPrice))
428430 else fraction((toBigInt(currentAmountAssetBalance) - orderAmountAssetAmt), (toBigInt(currentPriceAssetBalance) + orderPriceAssetAmt), toBigInt(decimalsMultPrice))
429431 let isKIncreasing = (calculatedKAfterTransaction > currentK)
430432 [if (if (if (isValidAssetPair)
431433 then isKIncreasing
432434 else false)
433435 then isValidMatcherSign
434436 else false)
435437 then isPoolStatusValid
436438 else false]
437439 }
438440
439441
440442 @Callable(i)
441443 func put (slippageTolerance) = {
442444 let pmtAmountAsset = value(i.payments[0])
443445 let inAmountAssetAmt = pmtAmountAsset.amount
444446 let inAmountAssetId = if (!(isDefined(pmtAmountAsset.assetId)))
445447 then fromBase58String("")
446448 else value(pmtAmountAsset.assetId)
447449 let pmtPriceAsset = value(i.payments[1])
448450 let inPriceAssetAmt = pmtPriceAsset.amount
449451 let inPriceAssetId = value(pmtPriceAsset.assetId)
450452 let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, toBase58String(inAmountAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller))
451453 let outLpAmount = estimatedPutResults._1
452454 let curentPrice = estimatedPutResults._2
453455 let userAmountAssetBalance = estimatedPutResults._3
454456 let userPriceAssetBalance = estimatedPutResults._4
455457 let userLPBalance = estimatedPutResults._5
456458 let poolAmountAssetBalance = estimatedPutResults._6
457459 let poolPriceAssetBalance = estimatedPutResults._7
458460 let poolLPBalance = estimatedPutResults._8
459461 let amountAssetInternalId = estimatedPutResults._9
460462 let priceAssetInternalId = estimatedPutResults._10
461463 let lpAssetId = estimatedPutResults._11
462464 let slippageCalculated = estimatedPutResults._12
463465 let poolStatus = parseIntValue(estimatedPutResults._13)
464466 if (if (if (isGlobalShutdown())
465467 then true
466468 else (poolStatus == PoolPutDisabled))
467469 then true
468470 else (poolStatus == PoolShutdown))
469471 then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus)))
470472 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)]
471473 }
472474
473475
474476
475477 @Callable(i)
476478 func get () = {
477479 let pmtAmountAsset = value(i.payments[0])
478480 let pmtAssetId = value(pmtAmountAsset.assetId)
479481 let pmtAssetAmount = pmtAmountAsset.amount
480482 let results = privateEstimateGetOperation(toBase58String(pmtAssetId), pmtAssetAmount, toString(i.caller))
481483 let outAmountAssetAmt = results._1
482484 let outPriceAssetAmt = results._2
483485 let amountAssetInternalId = results._3
484486 let priceAssetInternalId = results._4
485487 let userAmountAssetBalance = results._5
486488 let amountAssetId = results._6
487489 let userPriceAssetBalance = results._7
488490 let priceAssetId = results._8
489491 let userLPBalance = results._9
490492 let poolAmountAssetBalance = results._10
491493 let poolPriceAssetBalance = results._11
492494 let poolLPBalance = results._12
493495 let currentPrice = results._13
494496 let poolStatus = parseIntValue(results._14)
495497 if (if (isGlobalShutdown())
496498 then true
497499 else (poolStatus == PoolShutdown))
498500 then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus)))
499501 else [Burn(pmtAssetId, pmtAssetAmount), ScriptTransfer(i.caller, outAmountAssetAmt, if ((amountAssetId == ""))
500502 then unit
501503 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)))]
502504 }
503505
504506
505507
506508 @Callable(i)
507509 func activate (amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight) = if ((toString(i.caller) != factoryAddressString))
508510 then throw("permissions denied")
509511 else {
510512 let amountAssetId = fromBase58String(amountAssetStr)
511513 let amountAssetDecimals = value(assetInfo(amountAssetId)).decimals
512514 let priceAssetId = fromBase58String(priceAssetStr)
513515 let priceAssetDecimals = value(assetInfo(priceAssetId)).decimals
514516 let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
515517 let lpAssetId = calculateAssetId(lpAssetIssueAction)
516518 let lpAssetIdAsString = toBase58String(lpAssetId)
517519 $Tuple2([lpAssetIssueAction, Burn(lpAssetId, 1), StringEntry(keyAmountAsset(), amountAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], lpAssetIdAsString)
518520 }
519521
520522
521523 @Verifier(tx)
522524 func verify () = match tx {
523525 case order: Order =>
524526 validateMatcherOrderAllowed(order)[1]
525527 case exchangeTx: ExchangeTransaction =>
526528 validateMatcherExchangeTxAllowed(exchangeTx)[1]
527529 case _ =>
528530 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
529531 }
530532

github/deemru/w8io/026f985 
93.87 ms