tx · 8sAzXFPhfNEcSr4Sj95ifQx4gjGUdVoVRnxMMMLZRBoQ

3N8XgqekdDGuNYtWJKPyPzcvDvS5rkM43US:  -0.05000000 Waves

2021.08.27 17:36 [1676880] smart account 3N8XgqekdDGuNYtWJKPyPzcvDvS5rkM43US > SELF 0.00000000 Waves

{ "type": 13, "id": "8sAzXFPhfNEcSr4Sj95ifQx4gjGUdVoVRnxMMMLZRBoQ", "fee": 5000000, "feeAssetId": null, "timestamp": 1630074983381, "version": 2, "chainId": 84, "sender": "3N8XgqekdDGuNYtWJKPyPzcvDvS5rkM43US", "senderPublicKey": "F3FtzTMSn1qYwwpCKbP3HE2kwptFNTKgMMEkGHmbL49R", "proofs": [ "C7NmpyoskHXyVj6bXJjWyUYogBDgQXxrRs7us7gw4L7fGs3LAKzas9jQogDL85cM3mE5xA7nsYkdtJN7rj1hX1A" ], "script": "base64:AAIFAAAAAAAAACgIAhIDCgEBEgASBAoCCAgSABIFCgMBAQgSBQoDAQEIEgUKAwgBCBIAAAAANAAAAAAUZmFjdG9yeUFkZHJlc3NTdHJpbmcCAAAAIzNON3dXV0thbnJGRXdqbUFWOHBrejl3VmFvUVJ5b2piS0RHAAAAAApsUGRlY2ltYWxzAAAAAAAAAAAIAAAAABFkZWNpbWFsc011bHRQcmljZQkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAA+gAAAAAAAAAA+gAAAAAA1NFUAIAAAACX18AAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNhYmxlZAAAAAAAAAAAAgAAAAATUG9vbE1hdGNoZXJEaXNhYmxlZAAAAAAAAAAAAwAAAAAMUG9vbFNodXRkb3duAAAAAAAAAAAEAAAAAAxidXlPcmRlclR5cGUAAAAAAAAAAAAAAAAADXNlbGxPcmRlclR5cGUAAAAAAAAAAAEAAAAADmlkeFBvb2xBZGRyZXNzAAAAAAAAAAABAAAAAA1pZHhQb29sU3RhdHVzAAAAAAAAAAACAAA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QABpAAAAAEIBQAAAAdyZXN1bHRzAAAAAl8xCQAETAAAAAIJAAGkAAAAAQgFAAAAB3Jlc3VsdHMAAAACXzIJAARMAAAAAgkAAaQAAAABCAUAAAAHcmVzdWx0cwAAAANfMTAJAARMAAAAAgkAAaQAAAABCAUAAAAHcmVzdWx0cwAAAANfMTEJAARMAAAAAgkAAaQAAAABCAUAAAAHcmVzdWx0cwAAAANfMTIJAARMAAAAAgkAAaQAAAABCAUAAAAHcmVzdWx0cwAAAANfMTMJAARMAAAAAggFAAAAB3Jlc3VsdHMAAAADXzE0BQAAAANuaWwFAAAAA1NFUAAAAAFpAQAAAAxoYXNoUkVBRE9OTFkAAAAACQAFFAAAAAIFAAAAA25pbAkAAloAAAABCQEAAAAFdmFsdWUAAAABCQAD8QAAAAEFAAAABHRoaXMAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIEAAAABW9yZGVyBQAAAAckbWF0Y2gwCQABkQAAAAIJAQAAABt2YWxpZGF0ZU1hdGNoZXJPcmRlckFsbG93ZWQAAAABBQAAAAVvcmRlcgAAAAAAAAAAAQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlAiOEm", "height": 1676880, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dnqu77uqsVpxvH8d9Yfhb2jGPytbyRMeohrTt7ahXzgo Next: DgSeysLXxadNEbf3RU2d8jLCC4RaBvxqdbfSDWEc8HGs Diff:
OldNewDifferences
369369 else (poolStatus == PoolShutdown))
370370 then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus)))
371371 else {
372- let burnLPAssetOnFactory = invoke(addressFromStringValue(factoryAddressString), "burn", [pmtAssetAmount], nil)
372+ let burnLPAssetOnFactory = invoke(addressFromStringValue(factoryAddressString), "burn", [pmtAssetAmount], [AttachedPayment(pmtAssetId, pmtAssetAmount)])
373373 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
374374 then if ((burnLPAssetOnFactory != "success"))
375375 then throw("LP asset burn failed during emit call on factory.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let factoryAddressString = "3N7wWWKanrFEwjmAV8pkz9wVaoQRyojbKDG"
55
66 let lPdecimals = 8
77
88 let decimalsMultPrice = ((100 * 1000) * 1000)
99
1010 let SEP = "__"
1111
1212 let PoolActive = 1
1313
1414 let PoolPutDisabled = 2
1515
1616 let PoolMatcherDisabled = 3
1717
1818 let PoolShutdown = 4
1919
2020 let buyOrderType = 0
2121
2222 let sellOrderType = 1
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 idxLPAssetDecimals = 10
4343
4444 let idxMatcherPublicKey = 11
4545
4646 let idxPoolAmountAssetAmt = 1
4747
4848 let idxPoolPriceAssetAmt = 2
4949
5050 let idxPoolLPAssetAmt = 3
5151
5252 func keyPriceLast () = "%s%s__price__last"
5353
5454
5555 func keyPriceHistory (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP)
5656
5757
5858 func keyPoolLiquidity (internalAmountAsset,internalPriceAsset) = (((("%d%d%s__" + internalAmountAsset) + "__") + internalPriceAsset) + "__locked")
5959
6060
6161 func keyPoolLiquidityByUser (internalAmountAsset,internalPriceAsset,userAddress) = (((((("%d%d%s%s__" + internalAmountAsset) + "__") + internalPriceAsset) + "__") + userAddress) + "__locked")
6262
6363
6464 func keyPutActionByUser (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId)
6565
6666
6767 func keyGetActionByUser (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId)
6868
6969
7070 func keyAmountAsset () = "%s__amountAsset"
7171
7272
7373 func keyPriceAsset () = "%s__priceAsset"
7474
7575
7676 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
7777
7878
7979 func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
8080
8181
8282 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
8383
8484
8585 func keyAllPoolsShutdown () = "%s__shutdown"
8686
8787
8888 func keyPoolWeight (contractAddress) = ("%s%d__poolWeight__" + contractAddress)
8989
9090
9191 func isGlobalShutdown () = valueOrElse(getBoolean(value(addressFromString(factoryAddressString)), keyAllPoolsShutdown()), false)
9292
9393
9494 func getPoolConfig () = {
9595 let poolAmountAsset = valueOrErrorMessage(getString(keyAmountAsset()), "No config for amount asset found")
9696 let poolPriceAsset = valueOrErrorMessage(getString(keyPriceAsset()), "No config for price asset found")
9797 let poolPriceAssetInternal = valueOrErrorMessage(getInteger(value(addressFromString(factoryAddressString)), keyMappingsBaseAsset2internalId(poolPriceAsset)), "No config for internal price asset found")
9898 let poolAmountAssetInternal = valueOrErrorMessage(getInteger(value(addressFromString(factoryAddressString)), keyMappingsBaseAsset2internalId(poolAmountAsset)), "No config for internal amount asset found")
9999 split(valueOrErrorMessage(getString(addressFromStringValue(factoryAddressString), keyPoolConfig(toString(poolAmountAssetInternal), toString(poolPriceAssetInternal))), "No factory config found for pool assets."), SEP)
100100 }
101101
102102
103103 func getPoolLiquidity (amountAssetInternalId,priceAssetInternalId) = {
104104 let currentPoolLiquidityValue = getString(keyPoolLiquidity(amountAssetInternalId, priceAssetInternalId))
105105 if (!(isDefined(currentPoolLiquidityValue)))
106106 then ["", "0", "0", "0"]
107107 else split(value(currentPoolLiquidityValue), SEP)
108108 }
109109
110110
111111 func getPoolLiquidityByUser (amountAssetInternalId,priceAssetInternalId,userAddress) = {
112112 let currentPoolLiquidityValue = getString(keyPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress))
113113 if (!(isDefined(currentPoolLiquidityValue)))
114114 then ["", "0", "0", "0", "0"]
115115 else split(value(currentPoolLiquidityValue), SEP)
116116 }
117117
118118
119119 func dataPoolLiquidity (amountAssetLocked,priceAssetLocked,lpTokenLocked) = makeString(["%d%d%d", toString(amountAssetLocked), toString(priceAssetLocked), toString(lpTokenLocked)], SEP)
120120
121121
122122 func dataPoolLiquidityByUser (amountAssetLocked,priceAssetLocked,lpTokenLocked,userAddress) = makeString(["%d%d%d", toString(amountAssetLocked), toString(priceAssetLocked), toString(lpTokenLocked)], SEP)
123123
124124
125125 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)
126126
127127
128128 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)
129129
130130
131131 func privateCastAssetToMaxDecimals (assetDecimals,assetAmount) = {
132132 let decimalsMult = pow(10, 0, (lPdecimals - assetDecimals), 0, 0, DOWN)
133133 $Tuple2((assetAmount * decimalsMult), decimalsMult)
134134 }
135135
136136
137137 func privateCastAssetToOriginDecimals (assetDecimals,assetAmount) = {
138138 let decimalsMult = pow(10, 0, (lPdecimals - assetDecimals), 0, 0, DOWN)
139139 $Tuple2((assetAmount / decimalsMult), decimalsMult)
140140 }
141141
142142
143143 func privateCalculatePrice (amoutAssetDecimals,priceAssetDecimals,amountAssetAmt,priceAssetAmt) = {
144144 let amountAssetPoolLockedAmt = privateCastAssetToMaxDecimals(amoutAssetDecimals, amountAssetAmt)._1
145145 let priceAssetPoolLockedAmt = privateCastAssetToMaxDecimals(priceAssetDecimals, priceAssetAmt)._1
146146 fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt)
147147 }
148148
149149
150150 func privateGetAccountBalance (assetId) = if ((assetId == "WAVES"))
151151 then wavesBalance(this).available
152152 else assetBalance(this, fromBase58String(assetId))
153153
154154
155155 func privateEstimateGetOperation (paymentLpAssetId,paymentLpAmount,userAddress) = {
156156 let poolConfigList = getPoolConfig()
157157 let lpAssetId = poolConfigList[idxPoolLPAssetId]
158158 let amountAssetId = poolConfigList[idxAmountAssetId]
159159 let priceAssetId = poolConfigList[idxPriceAssetId]
160160 let amountAssetInternalId = poolConfigList[idxAmountAssetInternalId]
161161 let priceAssetInternalId = poolConfigList[idxPriceAssetInternalId]
162162 let amoutAssetDecimals = parseIntValue(poolConfigList[idxAmountAssetDecimals])
163163 let priceAssetDecimals = parseIntValue(poolConfigList[idxPriceAssetDecimals])
164164 let poolStatus = poolConfigList[idxPoolStatus]
165165 let userLiquidityList = getPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress)
166166 let userLPBalance = parseIntValue(userLiquidityList[idxPoolLPAssetAmt])
167167 let userAmountAssetBalance = parseIntValue(userLiquidityList[idxPoolAmountAssetAmt])
168168 let userPriceAssetBalance = parseIntValue(userLiquidityList[idxPoolPriceAssetAmt])
169169 let poolLiquidityList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
170170 let poolLPBalance = parseIntValue(poolLiquidityList[idxPoolLPAssetAmt])
171171 let poolAmountAssetBalance = parseIntValue(poolLiquidityList[idxPoolAmountAssetAmt])
172172 let poolPriceAssetBalance = parseIntValue(poolLiquidityList[idxPoolPriceAssetAmt])
173173 if ((lpAssetId != paymentLpAssetId))
174174 then throw("Invalid asset passed.")
175175 else if ((paymentLpAmount > userLPBalance))
176176 then throw("Invalid amount passed. Amount less than available.")
177177 else {
178178 let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId)
179179 let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId)
180180 let amountAssetPoolLockedAmt = privateCastAssetToMaxDecimals(amoutAssetDecimals, accountAmountAssetBalance)._1
181181 let priceAssetPoolLockedAmt = privateCastAssetToMaxDecimals(priceAssetDecimals, accountPriceAssetBalance)._1
182182 let outAmountAssetAmt = fraction(amountAssetPoolLockedAmt, paymentLpAmount, poolLPBalance)
183183 let outPriceAssetAmt = fraction(priceAssetPoolLockedAmt, paymentLpAmount, poolLPBalance)
184184 let outAmountAssetAmtFinal = privateCastAssetToOriginDecimals(amoutAssetDecimals, outAmountAssetAmt)._1
185185 let outPriceAssetAmtFinal = privateCastAssetToOriginDecimals(priceAssetDecimals, outPriceAssetAmt)._1
186186 let currentPrice = fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt)
187187 $Tuple14(outAmountAssetAmtFinal, outPriceAssetAmtFinal, amountAssetInternalId, priceAssetInternalId, userAmountAssetBalance, amountAssetId, userPriceAssetBalance, priceAssetId, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, currentPrice, poolStatus)
188188 }
189189 }
190190
191191
192192 func privateEstimatePutOperation (slippageTolerance,inAmountAssetAmt,inAmountAssetId,inPriceAssetAmt,inPriceAssetId,userAddress) = {
193193 let poolConfigDataList = getPoolConfig()
194194 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
195195 let amountAssetId = poolConfigDataList[idxAmountAssetId]
196196 let priceAssetId = poolConfigDataList[idxPriceAssetId]
197197 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
198198 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
199199 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
200200 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
201201 let poolStatus = poolConfigDataList[idxPoolStatus]
202202 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
203203 let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt])
204204 let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt])
205205 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
206206 let userLiquidityDataList = getPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress)
207207 let userAmountAssetBalance = parseIntValue(userLiquidityDataList[idxPoolAmountAssetAmt])
208208 let userPriceAssetBalance = parseIntValue(userLiquidityDataList[idxPoolPriceAssetAmt])
209209 let userLPBalance = parseIntValue(userLiquidityDataList[idxPoolLPAssetAmt])
210210 if (if ((amountAssetId != inAmountAssetId))
211211 then true
212212 else (priceAssetId != inPriceAssetId))
213213 then throw("Invalid amount or price asset passed.")
214214 else {
215215 let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId)
216216 let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId)
217217 let inAmountAssetAmtCalculatedTuple = privateCastAssetToMaxDecimals(amoutAssetDecimals, inAmountAssetAmt)
218218 let inPriceAssetAmtCalculatedTuple = privateCastAssetToMaxDecimals(priceAssetDecimals, inPriceAssetAmt)
219219 let inAmountAssetAmtCalculated = inAmountAssetAmtCalculatedTuple._1
220220 let inPriceAssetAmtCalculated = inPriceAssetAmtCalculatedTuple._1
221221 let userPrice = fraction(inPriceAssetAmtCalculated, decimalsMultPrice, inAmountAssetAmtCalculated)
222222 let amountAssetPoolLockedAmt = (accountAmountAssetBalance * inAmountAssetAmtCalculatedTuple._2)
223223 let priceAssetPoolLockedAmt = (accountPriceAssetBalance * inPriceAssetAmtCalculatedTuple._2)
224224 let curentPrice = if ((poolLPBalance == 0))
225225 then 0
226226 else fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt)
227227 let slippage = if ((curentPrice == 0))
228228 then 0
229229 else if ((curentPrice > userPrice))
230230 then fraction((curentPrice - userPrice), 100, curentPrice)
231231 else fraction((userPrice - curentPrice), 100, curentPrice)
232232 if (if ((curentPrice != 0))
233233 then ((slippage * decimalsMultPrice) > slippageTolerance)
234234 else false)
235235 then throw(((("Price slippage " + toString((slippage * decimalsMultPrice))) + " exceeded the passed limit of ") + toString(slippageTolerance)))
236236 else {
237237 let finalPrice = fraction((priceAssetPoolLockedAmt + inPriceAssetAmtCalculated), decimalsMultPrice, (amountAssetPoolLockedAmt + inAmountAssetAmtCalculated))
238238 let outLpAmount = if ((poolLPBalance == 0))
239239 then {
240240 let partA = pow(inAmountAssetAmtCalculated, 0, 5, 1, 0, DOWN)
241241 let partB = pow(inPriceAssetAmtCalculated, 0, 5, 1, 0, DOWN)
242242 (partA * partB)
243243 }
244244 else {
245245 let lpAmtByAmountAsset = fraction(poolLPBalance, inAmountAssetAmtCalculated, amountAssetPoolLockedAmt)
246246 let lpAmtByPriceAsset = fraction(poolLPBalance, inPriceAssetAmtCalculated, priceAssetPoolLockedAmt)
247247 if ((lpAmtByPriceAsset > lpAmtByAmountAsset))
248248 then lpAmtByAmountAsset
249249 else lpAmtByPriceAsset
250250 }
251251 $Tuple13(outLpAmount, finalPrice, userAmountAssetBalance, userPriceAssetBalance, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, amountAssetInternalId, priceAssetInternalId, lpAssetId, slippage, poolStatus)
252252 }
253253 }
254254 }
255255
256256
257257 func validateMatcherOrderAllowed (order) = {
258258 let poolConfigDataList = getPoolConfig()
259259 let amountAssetId = poolConfigDataList[idxAmountAssetId]
260260 let priceAssetId = poolConfigDataList[idxPriceAssetId]
261261 let poolStatus = parseIntValue(poolConfigDataList[idxPoolStatus])
262262 let matcherPublicKeyStr = poolConfigDataList[idxMatcherPublicKey]
263263 let amountAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
264264 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
265265 let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId)
266266 let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId)
267267 let currentPrice = if ((order.orderType == Buy))
268268 then privateCalculatePrice(amountAssetDecimals, priceAssetDecimals, (accountAmountAssetBalance + order.amount), accountPriceAssetBalance)
269269 else privateCalculatePrice(amountAssetDecimals, priceAssetDecimals, (accountAmountAssetBalance + order.amount), accountPriceAssetBalance)
270270 let isPoolStatusValid = if (if (if (isGlobalShutdown())
271271 then true
272272 else (poolStatus == PoolMatcherDisabled))
273273 then true
274274 else (poolStatus == PoolShutdown))
275275 then false
276276 else true
277277 let isValidMatcherSign = true
278278 let orderAmountAsset = order.assetPair.amountAsset
279279 let orderAmountAssetStr = if ((orderAmountAsset == unit))
280280 then "WAVES"
281281 else toBase58String(value(orderAmountAsset))
282282 let orderPriceAsset = order.assetPair.priceAsset
283283 let orderPriceAssetStr = if ((orderPriceAsset == unit))
284284 then "WAVES"
285285 else toBase58String(value(orderPriceAsset))
286286 let isValidAssetPair = if (if ((orderAmountAssetStr != amountAssetId))
287287 then true
288288 else (orderPriceAssetStr != priceAssetId))
289289 then false
290290 else true
291291 let orderPrice = order.price
292292 let priceDecimals = ((8 + priceAssetDecimals) - amountAssetDecimals)
293293 let castedOrderPrice = privateCastAssetToMaxDecimals(priceDecimals, orderPrice)._1
294294 let isOrderPriceValid = if ((order.orderType == Buy))
295295 then (currentPrice >= castedOrderPrice)
296296 else (castedOrderPrice >= currentPrice)
297297 [if (if (if (isValidAssetPair)
298298 then isValidMatcherSign
299299 else false)
300300 then isPoolStatusValid
301301 else false)
302302 then isOrderPriceValid
303303 else false]
304304 }
305305
306306
307307 @Callable(i)
308308 func put (slippageTolerance) = {
309309 let pmtAmountAsset = value(i.payments[0])
310310 let inAmountAssetAmt = pmtAmountAsset.amount
311311 let inAmountAssetId = if (!(isDefined(pmtAmountAsset.assetId)))
312312 then fromBase58String("WAVES")
313313 else value(pmtAmountAsset.assetId)
314314 let pmtPriceAsset = value(i.payments[1])
315315 let inPriceAssetAmt = pmtPriceAsset.amount
316316 let inPriceAssetId = value(pmtPriceAsset.assetId)
317317 let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, toBase58String(inAmountAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller))
318318 let outLpAmount = estimatedPutResults._1
319319 let curentPrice = estimatedPutResults._2
320320 let userAmountAssetBalance = estimatedPutResults._3
321321 let userPriceAssetBalance = estimatedPutResults._4
322322 let userLPBalance = estimatedPutResults._5
323323 let poolAmountAssetBalance = estimatedPutResults._6
324324 let poolPriceAssetBalance = estimatedPutResults._7
325325 let poolLPBalance = estimatedPutResults._8
326326 let amountAssetInternalId = estimatedPutResults._9
327327 let priceAssetInternalId = estimatedPutResults._10
328328 let lpAssetId = estimatedPutResults._11
329329 let slippageCalculated = estimatedPutResults._12
330330 let poolStatus = parseIntValue(estimatedPutResults._13)
331331 let emitLPAssetOnFactory = invoke(addressFromStringValue(factoryAddressString), "emit", [outLpAmount], nil)
332332 if ((emitLPAssetOnFactory == emitLPAssetOnFactory))
333333 then if ((emitLPAssetOnFactory != "success"))
334334 then throw("LP asset reissue failed during emit call on factory.")
335335 else if (if (if (isGlobalShutdown())
336336 then true
337337 else (poolStatus == PoolPutDisabled))
338338 then true
339339 else (poolStatus == PoolShutdown))
340340 then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus)))
341341 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))), ScriptTransfer(i.caller, outLpAmount, lpAssetId)]
342342 else throw("Strict value is not equal to itself.")
343343 }
344344
345345
346346
347347 @Callable(i)
348348 func get () = {
349349 let pmtAmountAsset = value(i.payments[0])
350350 let pmtAssetId = value(pmtAmountAsset.assetId)
351351 let pmtAssetAmount = pmtAmountAsset.amount
352352 let results = privateEstimateGetOperation(toBase58String(pmtAssetId), pmtAssetAmount, toString(i.caller))
353353 let outAmountAssetAmt = results._1
354354 let outPriceAssetAmt = results._2
355355 let amountAssetInternalId = results._3
356356 let priceAssetInternalId = results._4
357357 let userAmountAssetBalance = results._5
358358 let amountAssetId = results._6
359359 let userPriceAssetBalance = results._7
360360 let priceAssetId = results._8
361361 let userLPBalance = results._9
362362 let poolAmountAssetBalance = results._10
363363 let poolPriceAssetBalance = results._11
364364 let poolLPBalance = results._12
365365 let currentPrice = results._13
366366 let poolStatus = parseIntValue(results._14)
367367 if (if (isGlobalShutdown())
368368 then true
369369 else (poolStatus == PoolShutdown))
370370 then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus)))
371371 else {
372- let burnLPAssetOnFactory = invoke(addressFromStringValue(factoryAddressString), "burn", [pmtAssetAmount], nil)
372+ let burnLPAssetOnFactory = invoke(addressFromStringValue(factoryAddressString), "burn", [pmtAssetAmount], [AttachedPayment(pmtAssetId, pmtAssetAmount)])
373373 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
374374 then if ((burnLPAssetOnFactory != "success"))
375375 then throw("LP asset burn failed during emit call on factory.")
376376 else [ScriptTransfer(i.caller, outAmountAssetAmt, if ((amountAssetId == "WAVES"))
377377 then unit
378378 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)))]
379379 else throw("Strict value is not equal to itself.")
380380 }
381381 }
382382
383383
384384
385385 @Callable(i)
386386 func activate (amountAssetStr,priceAssetStr) = if ((toString(i.caller) != factoryAddressString))
387387 then throw("permissions denied")
388388 else $Tuple2([StringEntry(keyAmountAsset(), amountAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success")
389389
390390
391391
392392 @Callable(i)
393393 func statsREADONLY () = {
394394 let poolConfigDataList = getPoolConfig()
395395 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
396396 let amountAssetId = poolConfigDataList[idxAmountAssetId]
397397 let priceAssetId = poolConfigDataList[idxPriceAssetId]
398398 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
399399 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
400400 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
401401 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
402402 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
403403 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
404404 let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId)
405405 let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId)
406406 let amountAssetPoolLockedAmt = privateCastAssetToMaxDecimals(amoutAssetDecimals, accountAmountAssetBalance)._1
407407 let priceAssetPoolLockedAmt = privateCastAssetToMaxDecimals(priceAssetDecimals, accountPriceAssetBalance)._1
408408 let lpPriceInAmountAsset = fraction(amountAssetPoolLockedAmt, (1 * decimalsMultPrice), poolLPBalance)
409409 let lpPriceInPriceAsset = fraction(priceAssetPoolLockedAmt, (1 * decimalsMultPrice), poolLPBalance)
410410 let currentPrice = privateCalculatePrice(amoutAssetDecimals, priceAssetDecimals, accountAmountAssetBalance, accountPriceAssetBalance)
411411 let poolWeight = valueOrElse(getInteger(value(addressFromString(factoryAddressString)), keyPoolWeight(toString(this))), 0)
412412 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(accountAmountAssetBalance), toString(accountPriceAssetBalance), toString(poolLPBalance), toString(currentPrice), toString(lpPriceInAmountAsset), toString(lpPriceInPriceAsset), toString(poolWeight)], SEP))
413413 }
414414
415415
416416
417417 @Callable(i)
418418 func evaluatePutByAmountAssetREADONLY (slippageTolerance,inAmountAssetAmt,userAddress) = {
419419 let poolConfigDataList = getPoolConfig()
420420 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
421421 let amountAssetId = poolConfigDataList[idxAmountAssetId]
422422 let priceAssetId = poolConfigDataList[idxPriceAssetId]
423423 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
424424 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
425425 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
426426 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
427427 let poolStatus = poolConfigDataList[idxPoolStatus]
428428 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
429429 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
430430 let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId)
431431 let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId)
432432 let amountAssetAmtCalculatedTuple = privateCastAssetToMaxDecimals(amoutAssetDecimals, accountAmountAssetBalance)
433433 let priceAssetAmtCalculatedTuple = privateCastAssetToMaxDecimals(priceAssetDecimals, accountPriceAssetBalance)
434434 let curentPrice = if ((poolLPBalance == 0))
435435 then 0
436436 else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1)
437437 let inPriceAssetAmtCalculated = fraction(inAmountAssetAmt, curentPrice, decimalsMultPrice)
438438 let inPriceAssetAmt = privateCastAssetToOriginDecimals(priceAssetDecimals, inPriceAssetAmtCalculated)._1
439439 let results = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress)
440440 $Tuple2(nil, makeString(["%d%d%d%d%d%d", toString(results._1), toString(results._2), toString(results._6), toString(results._7), toString(results._8), results._13], SEP))
441441 }
442442
443443
444444
445445 @Callable(i)
446446 func evaluatePutByPriceAssetREADONLY (slippageTolerance,inPriceAssetAmt,userAddress) = {
447447 let poolConfigDataList = getPoolConfig()
448448 let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId])
449449 let amountAssetId = poolConfigDataList[idxAmountAssetId]
450450 let priceAssetId = poolConfigDataList[idxPriceAssetId]
451451 let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId]
452452 let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId]
453453 let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals])
454454 let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals])
455455 let poolStatus = poolConfigDataList[idxPoolStatus]
456456 let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId)
457457 let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt])
458458 let accountAmountAssetBalance = privateGetAccountBalance(amountAssetId)
459459 let accountPriceAssetBalance = privateGetAccountBalance(priceAssetId)
460460 let amountAssetAmtCalculatedTuple = privateCastAssetToMaxDecimals(amoutAssetDecimals, accountAmountAssetBalance)
461461 let priceAssetAmtCalculatedTuple = privateCastAssetToMaxDecimals(priceAssetDecimals, accountPriceAssetBalance)
462462 let inPriceAssetAmtCalculatedTuple = privateCastAssetToMaxDecimals(priceAssetDecimals, inPriceAssetAmt)
463463 let curentPrice = if ((poolLPBalance == 0))
464464 then 0
465465 else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1)
466466 let inAmountAssetAmtCalculated = fraction(inPriceAssetAmtCalculatedTuple._1, decimalsMultPrice, curentPrice)
467467 let inAmountAssetAmt = privateCastAssetToOriginDecimals(amoutAssetDecimals, inAmountAssetAmtCalculated)._1
468468 let results = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress)
469469 $Tuple2(nil, makeString(["%d%d%d%d%d%d", toString(results._1), toString(results._2), toString(results._6), toString(results._7), toString(results._8), results._13], SEP))
470470 }
471471
472472
473473
474474 @Callable(i)
475475 func evaluateGetREADONLY (paymentLpAssetId,paymentLpAmount,userAddress) = {
476476 let results = privateEstimateGetOperation(paymentLpAssetId, paymentLpAmount, userAddress)
477477 $Tuple2(nil, makeString(["%d%d%d%d%d%s%d%s%d%d%s%d%d", toString(results._1), toString(results._2), toString(results._10), toString(results._11), toString(results._12), toString(results._13), results._14], SEP))
478478 }
479479
480480
481481
482482 @Callable(i)
483483 func hashREADONLY () = $Tuple2(nil, toBase64String(value(scriptHash(this))))
484484
485485
486486 @Verifier(tx)
487487 func verify () = match tx {
488488 case order: Order =>
489489 validateMatcherOrderAllowed(order)[1]
490490 case _ =>
491491 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
492492 }
493493

github/deemru/w8io/026f985 
80.88 ms