tx · 8jqXcFEV6zmEWiJGpDPZZSPGZkKWQYmdTWR6nHo2adui

3N1TeiekUQhrqux6LjXWhJjUTrgLPJZxBtT:  -0.01400000 Waves

2021.11.02 14:06 [1773278] smart account 3N1TeiekUQhrqux6LjXWhJjUTrgLPJZxBtT > SELF 0.00000000 Waves

{ "type": 13, "id": "8jqXcFEV6zmEWiJGpDPZZSPGZkKWQYmdTWR6nHo2adui", "fee": 1400000, "feeAssetId": null, "timestamp": 1635851164780, "version": 2, "chainId": 84, "sender": "3N1TeiekUQhrqux6LjXWhJjUTrgLPJZxBtT", "senderPublicKey": "DvHRUamE97xEXsqx1rtLMf6DyHcJkZUs9kwyDVPT4zro", "proofs": [ "hNsTsjjvxuZpgGSGSnhcXsTS8kkHMaXs3AKCZ4epJ99wXtxf6uSNUZCKAvZbJi1iSY2miB8ViyE4WCWvhmxY9Cf" ], "script": "base64:AAIFAAAAAAAAAGgIAhIECgIICBIECgIBBBIDCgEBEgASBAoCAQESBAoCCAgSABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIAQAAAD8AAAAACmxQZGVjaW1hbHMAAAAAAAAAAAgAAAAABnNjYWxlOAAAAAAABfXhAAAAAAAMc2NhbGU4QmlnSW50CQABNgAAAAEAAAAAAAX14QAAAAAAB3NjYWxlMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKemVyb0JpZ0ludAkAATYAAAABAAAAAAAAAAAAAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAAApQb29sQWN0aXZlAAAAAAAAAAABAAAAAA9Qb29sUHV0RGlzYWJsZWQAAAAAAAAAAAIAAAAAE1Bvb2xNYXRjaGVyRGlzYWJsZWQAAAAAAAAAAAMAAAAADFBvb2xTaHV0ZG93bgAAAAAAAAAABAAAAAAOaWR4UG9vbEFkZHJlc3MAAAAAAAAAAAEAAAAADWlkeFBvb2xTdGF0dXMAAAAAA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gFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABBQAAAA1tYW5hZ2VyUHVibGljxA3DYA==", "height": 1773278, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AfjRLnTqNSjGVysMM6JW3xfeCuseSZ4B9SDLwiKC1zZz Next: Foq63cNApk3swSfz1savBpkrsHpRj28DSy6MgDrq2J2Y Diff:
OldNewDifferences
516516
517517 @Callable(i)
518518 func estimatePutOperationWrapperREADONLY (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp) = {
519- let estimation = estimatePutOperation(txId58, slippageTolerance, inAmAssetAmt, inAmAssetId, inPrAssetAmt, inPrAssetId, userAddress, isEvaluate, emitLp)
520- let $t02536825589 = estimation
521- let calcLpAmt = $t02536825589._1
522- let emitLpAmt = $t02536825589._2
523- let curPrice = $t02536825589._3
524- let amBalance = $t02536825589._4
525- let prBalance = $t02536825589._5
526- let lpEmission = $t02536825589._6
527- let lpAssetId = $t02536825589._7
528- let poolStatus = $t02536825589._8
529- let commonState = $t02536825589._9
530- let amDiff = $t02536825589._10
531- let prDiff = $t02536825589._11
532- let inAmtAssetId = $t02536825589._12
533- let inPriceAssetId = $t02536825589._13
519+ let $t02517425559 = estimatePutOperation(txId58, slippageTolerance, inAmAssetAmt, inAmAssetId, inPrAssetAmt, inPrAssetId, userAddress, isEvaluate, emitLp)
520+ let calcLpAmt = $t02517425559._1
521+ let emitLpAmt = $t02517425559._2
522+ let curPrice = $t02517425559._3
523+ let amBalance = $t02517425559._4
524+ let prBalance = $t02517425559._5
525+ let lpEmission = $t02517425559._6
526+ let lpAssetId = $t02517425559._7
527+ let poolStatus = $t02517425559._8
528+ let commonState = $t02517425559._9
529+ let amDiff = $t02517425559._10
530+ let prDiff = $t02517425559._11
531+ let inAmtAssetId = $t02517425559._12
532+ let inPriceAssetId = $t02517425559._13
534533 $Tuple2(nil, $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEmission, lpAssetId, poolStatus, commonState, amDiff, prDiff, inAmtAssetId, inPriceAssetId))
535534 }
536535
538537
539538 @Callable(i)
540539 func estimateGetOperationWrapperREADONLY (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
541- let estimation = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress))
542- let $t02610626275 = estimation
543- let outAmAmt = $t02610626275._1
544- let outPrAmt = $t02610626275._2
545- let amAssetId = $t02610626275._3
546- let prAssetId = $t02610626275._4
547- let amBalance = $t02610626275._5
548- let prBalance = $t02610626275._6
549- let lpEmission = $t02610626275._7
550- let curPriceX18 = $t02610626275._8
551- let poolStatus = $t02610626275._9
552- let state = $t02610626275._10
540+ let $t02594826215 = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress))
541+ let outAmAmt = $t02594826215._1
542+ let outPrAmt = $t02594826215._2
543+ let amAssetId = $t02594826215._3
544+ let prAssetId = $t02594826215._4
545+ let amBalance = $t02594826215._5
546+ let prBalance = $t02594826215._6
547+ let lpEmission = $t02594826215._7
548+ let curPriceX18 = $t02594826215._8
549+ let poolStatus = $t02594826215._9
550+ let state = $t02594826215._10
553551 $Tuple2(nil, $Tuple10(outAmAmt, outPrAmt, amAssetId, prAssetId, amBalance, prBalance, lpEmission, toString(curPriceX18), poolStatus, state))
554552 }
555553
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let lPdecimals = 8
55
66 let scale8 = 100000000
77
88 let scale8BigInt = toBigInt(100000000)
99
1010 let scale18 = toBigInt(1000000000000000000)
1111
1212 let zeroBigInt = toBigInt(0)
1313
1414 let SEP = "__"
1515
1616 let EMPTY = ""
1717
1818 let PoolActive = 1
1919
2020 let PoolPutDisabled = 2
2121
2222 let PoolMatcherDisabled = 3
2323
2424 let PoolShutdown = 4
2525
2626 let idxPoolAddress = 1
2727
2828 let idxPoolStatus = 2
2929
3030 let idxPoolLPAssetId = 3
3131
3232 let idxAmtAssetId = 4
3333
3434 let idxPriceAssetId = 5
3535
3636 let idxAmtAssetDcm = 6
3737
3838 let idxPriceAssetDcm = 7
3939
4040 let idxIAmtAssetId = 8
4141
4242 let idxIPriceAssetId = 9
4343
4444 let idxLPAssetDcm = 10
4545
4646 let idxPoolAmtAssetAmt = 1
4747
4848 let idxPoolPriceAssetAmt = 2
4949
5050 let idxPoolLPAssetAmt = 3
5151
5252 let idxFactoryStakingContract = 1
5353
5454 let idxFactorySlippageContract = 7
5555
5656 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult))
5757
5858
5959 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18))
6060
6161
6262 func toScale (amt,resScale,curScale) = fraction(amt, resScale, curScale)
6363
6464
6565 func abs (val) = if ((zeroBigInt > val))
6666 then -(val)
6767 else val
6868
6969
7070 func keyFactoryContract () = "%s__factoryContract"
7171
7272
7373 func keyManagerPublicKey () = "%s__managerPublicKey"
7474
7575
7676 func keyPriceLast () = "%s%s__price__last"
7777
7878
7979 func keyPriceHistory (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP)
8080
8181
8282 func keyPutActionByUser (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId)
8383
8484
8585 func keyGetActionByUser (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId)
8686
8787
8888 func keyAmtAsset () = "%s__amountAsset"
8989
9090
9191 func keyPriceAsset () = "%s__priceAsset"
9292
9393
9494 func keyKHistoric (h,timestamp) = makeString(["%s%s%d%d__K_history", toString(h), toString(timestamp)], SEP)
9595
9696
9797 func keyFactoryConfig () = "%s__factoryConfig"
9898
9999
100100 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
101101
102102
103103 func keyPoolConfig (iAmtAsset,iPriceAsset) = (((("%d%d%s__" + iAmtAsset) + "__") + iPriceAsset) + "__config")
104104
105105
106106 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
107107
108108
109109 func keyAllPoolsShutdown () = "%s__shutdown"
110110
111111
112112 func keyPoolWeight (contractAddress) = ("%s%s__poolWeight__" + contractAddress)
113113
114114
115115 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
116116
117117
118118 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
119119
120120
121121 let factoryContract = addressFromStringValue(getStringOrFail(this, keyFactoryContract()))
122122
123123 func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false)
124124
125125
126126 func getPoolConfig () = {
127127 let amtAsset = getStringOrFail(this, keyAmtAsset())
128128 let priceAsset = getStringOrFail(this, keyPriceAsset())
129129 let iPriceAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAsset))
130130 let iAmtAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAsset))
131131 split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAsset), toString(iPriceAsset))), SEP)
132132 }
133133
134134
135135 func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP)
136136
137137
138138 func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slippageTolerancePassedByUser,slippageToleranceReal,txHeight,txTimestamp,slipageAmtAssetAmt,slipagePriceAssetAmt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(inAmtAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slippageTolerancePassedByUser), toString(slippageToleranceReal), toString(txHeight), toString(txTimestamp), toString(slipageAmtAssetAmt), toString(slipagePriceAssetAmt)], SEP)
139139
140140
141141 func dataGetActionInfo (outAmtAssetAmt,outPriceAssetAmt,inLpAmt,price,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d", toString(outAmtAssetAmt), toString(outPriceAssetAmt), toString(inLpAmt), toString(price), toString(txHeight), toString(txTimestamp)], SEP)
142142
143143
144144 func getAccBalance (assetId) = if ((assetId == "WAVES"))
145145 then wavesBalance(this).available
146146 else assetBalance(this, fromBase58String(assetId))
147147
148148
149149 func calcPriceBigInt (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
150150
151151
152152 func privateCalcPrice (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
153153 let amtAssetAmtX18 = toX18(amAmt, amAssetDcm)
154154 let priceAssetAmtX18 = toX18(prAmt, prAssetDcm)
155155 calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18)
156156 }
157157
158158
159159 func calcPrices (amAmt,prAmt,lpAmt) = {
160160 let cfg = getPoolConfig()
161161 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
162162 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
163163 let priceX18 = privateCalcPrice(amtAssetDcm, priceAssetDcm, amAmt, prAmt)
164164 let amAmtX18 = toX18(amAmt, amtAssetDcm)
165165 let prAmtX18 = toX18(prAmt, priceAssetDcm)
166166 let lpAmtX18 = toX18(lpAmt, scale8)
167167 let lpPriceInAmAssetX18 = calcPriceBigInt(amAmtX18, lpAmtX18)
168168 let lpPriceInPrAssetX18 = calcPriceBigInt(prAmtX18, lpAmtX18)
169169 [priceX18, lpPriceInAmAssetX18, lpPriceInPrAssetX18]
170170 }
171171
172172
173173 func calculatePrices (amAmt,prAmt,lpAmt) = {
174174 let prices = calcPrices(amAmt, prAmt, lpAmt)
175175 [fromX18(prices[0], scale8), fromX18(prices[1], scale8), fromX18(prices[2], scale8)]
176176 }
177177
178178
179179 func estimateGetOperation (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
180180 let cfg = getPoolConfig()
181181 let lpAssetId = cfg[idxPoolLPAssetId]
182182 let amAssetId = cfg[idxAmtAssetId]
183183 let prAssetId = cfg[idxPriceAssetId]
184184 let amAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
185185 let prAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
186186 let poolStatus = cfg[idxPoolStatus]
187187 let lpEmission = valueOrErrorMessage(assetInfo(fromBase58String(lpAssetId)), (("Asset " + lpAssetId) + " doesn't exist")).quantity
188188 if ((lpAssetId != pmtAssetId))
189189 then throw("Invalid asset passed.")
190190 else {
191191 let amBalance = getAccBalance(amAssetId)
192192 let amBalanceX18 = toX18(amBalance, amAssetDcm)
193193 let prBalance = getAccBalance(prAssetId)
194194 let prBalanceX18 = toX18(prBalance, prAssetDcm)
195195 let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18)
196196 let curPrice = fromX18(curPriceX18, scale8)
197197 let pmtLpAmtX18 = toX18(pmtLpAmt, scale8)
198198 let lpEmissionX18 = toX18(lpEmission, scale8)
199199 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissionX18)
200200 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissionX18)
201201 let outAmAmt = fromX18(outAmAmtX18, amAssetDcm)
202202 let outPrAmt = fromX18(outPrAmtX18, prAssetDcm)
203203 let state = if ((txId58 == ""))
204204 then nil
205205 else [ScriptTransfer(userAddress, outAmAmt, if ((amAssetId == "WAVES"))
206206 then unit
207207 else fromBase58String(amAssetId)), ScriptTransfer(userAddress, outPrAmt, if ((prAssetId == "WAVES"))
208208 then unit
209209 else fromBase58String(prAssetId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(outAmAmt, outPrAmt, pmtLpAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice)]
210210 $Tuple10(outAmAmt, outPrAmt, amAssetId, prAssetId, amBalance, prBalance, lpEmission, curPriceX18, poolStatus, state)
211211 }
212212 }
213213
214214
215215 func estimatePutOperation (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp) = {
216216 let cfg = getPoolConfig()
217217 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
218218 let amAssetIdStr = cfg[idxAmtAssetId]
219219 let prAssetIdStr = cfg[idxPriceAssetId]
220220 let iAmtAssetId = cfg[idxIAmtAssetId]
221221 let iPriceAssetId = cfg[idxIPriceAssetId]
222222 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
223223 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
224224 let poolStatus = cfg[idxPoolStatus]
225225 let lpEmission = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
226226 let inAmAssetIdStr = toBase58String(valueOrElse(inAmAssetId, fromBase58String("WAVES")))
227227 let inPrAssetIdStr = toBase58String(valueOrElse(inPrAssetId, fromBase58String("WAVES")))
228228 if (if ((amAssetIdStr != inAmAssetIdStr))
229229 then true
230230 else (prAssetIdStr != inPrAssetIdStr))
231231 then throw("Invalid amt or price asset passed.")
232232 else {
233233 let amBalance = if (isEvaluate)
234234 then getAccBalance(amAssetIdStr)
235235 else (getAccBalance(amAssetIdStr) - inAmAssetAmt)
236236 let prBalance = if (isEvaluate)
237237 then getAccBalance(prAssetIdStr)
238238 else (getAccBalance(prAssetIdStr) - inPrAssetAmt)
239239 let inAmAssetAmtX18 = toX18(inAmAssetAmt, amtAssetDcm)
240240 let inPrAssetAmtX18 = toX18(inPrAssetAmt, priceAssetDcm)
241241 let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18)
242242 let amBalanceX18 = toX18(amBalance, amtAssetDcm)
243243 let prBalanceX18 = toX18(prBalance, priceAssetDcm)
244244 let res = if ((lpEmission == 0))
245245 then {
246246 let curPriceX18 = zeroBigInt
247247 let slippageX18 = zeroBigInt
248248 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
249249 $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtAssetDcm), fromX18(inPrAssetAmtX18, priceAssetDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
250250 }
251251 else {
252252 let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18)
253253 let slippageX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
254254 let slippageToleranceX18 = toX18(slippageTolerance, scale8)
255255 if (if ((curPriceX18 != zeroBigInt))
256256 then (slippageX18 > slippageToleranceX18)
257257 else false)
258258 then throw(((("Price slippage " + toString(slippageX18)) + " exceeded the passed limit of ") + toString(slippageToleranceX18)))
259259 else {
260260 let lpEmissionX18 = toX18(lpEmission, scale8)
261261 let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
262262 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
263263 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
264264 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
265265 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
266266 let expAmtAssetAmtX18 = expectedAmts._1
267267 let expPriceAssetAmtX18 = expectedAmts._2
268268 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18)
269269 $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtAssetDcm), fromX18(expPriceAssetAmtX18, priceAssetDcm), curPriceX18, slippageX18)
270270 }
271271 }
272272 let calcLpAmt = res._1
273273 let calcAmAssetPmt = res._2
274274 let calcPrAssetPmt = res._3
275275 let curPrice = fromX18(res._4, scale8)
276276 let slippageCalc = fromX18(res._5, scale8)
277277 if ((0 >= calcLpAmt))
278278 then throw("Invalid calculations. LP calculated is less than zero.")
279279 else {
280280 let emitLpAmt = if (!(emitLp))
281281 then 0
282282 else calcLpAmt
283283 let amDiff = (inAmAssetAmt - calcAmAssetPmt)
284284 let prDiff = (inPrAssetAmt - calcPrAssetPmt)
285285 let commonState = [IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice), StringEntry(keyPutActionByUser(userAddress, txId58), dataPutActionInfo(calcAmAssetPmt, calcPrAssetPmt, emitLpAmt, curPrice, slippageTolerance, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))]
286286 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEmission, lpAssetId, poolStatus, commonState, amDiff, prDiff, inAmAssetId, inPrAssetId)
287287 }
288288 }
289289 }
290290
291291
292292 func validateMatcherOrderAllowed (order) = {
293293 let cfg = getPoolConfig()
294294 let amtAssetId = cfg[idxAmtAssetId]
295295 let priceAssetId = cfg[idxPriceAssetId]
296296 let poolStatus = parseIntValue(cfg[idxPoolStatus])
297297 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
298298 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
299299 let accAmtAssetBalance = getAccBalance(amtAssetId)
300300 let accPriceAssetBalance = getAccBalance(priceAssetId)
301301 let curPriceX18 = if ((order.orderType == Buy))
302302 then privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance + order.amount), accPriceAssetBalance)
303303 else privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance - order.amount), accPriceAssetBalance)
304304 let curPrice = fromX18(curPriceX18, scale8)
305305 if (if (if (isGlobalShutdown())
306306 then true
307307 else (poolStatus == PoolMatcherDisabled))
308308 then true
309309 else (poolStatus == PoolShutdown))
310310 then throw("Exchange operations disabled")
311311 else {
312312 let orderAmtAsset = order.assetPair.amountAsset
313313 let orderAmtAssetStr = if ((orderAmtAsset == unit))
314314 then "WAVES"
315315 else toBase58String(value(orderAmtAsset))
316316 let orderPriceAsset = order.assetPair.priceAsset
317317 let orderPriceAssetStr = if ((orderPriceAsset == unit))
318318 then "WAVES"
319319 else toBase58String(value(orderPriceAsset))
320320 if (if ((orderAmtAssetStr != amtAssetId))
321321 then true
322322 else (orderPriceAssetStr != priceAssetId))
323323 then throw("Wrong order assets.")
324324 else {
325325 let orderPrice = order.price
326326 let priceDcm = fraction(scale8, priceAssetDcm, amtAssetDcm)
327327 let castedOrderPrice = toScale(orderPrice, scale8, priceDcm)
328328 let isOrderPriceValid = if ((order.orderType == Buy))
329329 then (curPrice >= castedOrderPrice)
330330 else (castedOrderPrice >= curPrice)
331331 true
332332 }
333333 }
334334 }
335335
336336
337337 func commonGet (i) = if ((size(i.payments) != 1))
338338 then throw("exactly 1 payment is expected")
339339 else {
340340 let pmt = value(i.payments[0])
341341 let pmtAssetId = value(pmt.assetId)
342342 let pmtAmt = pmt.amount
343343 let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
344344 let outAmAmt = res._1
345345 let outPrAmt = res._2
346346 let poolStatus = parseIntValue(res._9)
347347 let state = res._10
348348 if (if (isGlobalShutdown())
349349 then true
350350 else (poolStatus == PoolShutdown))
351351 then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus)))
352352 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
353353 }
354354
355355
356356 func commonPut (i,slippageTolerance,emitLp) = if ((size(i.payments) != 2))
357357 then throw("exactly 2 payments are expected")
358358 else {
359359 let amAssetPmt = value(i.payments[0])
360360 let prAssetPmt = value(i.payments[1])
361361 let estPut = estimatePutOperation(toBase58String(i.transactionId), slippageTolerance, amAssetPmt.amount, amAssetPmt.assetId, prAssetPmt.amount, prAssetPmt.assetId, toString(i.caller), false, emitLp)
362362 let poolStatus = parseIntValue(estPut._8)
363363 if (if (if (isGlobalShutdown())
364364 then true
365365 else (poolStatus == PoolPutDisabled))
366366 then true
367367 else (poolStatus == PoolShutdown))
368368 then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus)))
369369 else estPut
370370 }
371371
372372
373373 @Callable(i)
374374 func constructor (factoryContract,managerPublicKey) = if ((i.caller != this))
375375 then throw("permissions denied")
376376 else [StringEntry(keyFactoryContract(), factoryContract), StringEntry(keyManagerPublicKey(), managerPublicKey)]
377377
378378
379379
380380 @Callable(i)
381381 func put (slippageTolerance,shouldAutoStake) = {
382382 let factoryCfg = getFactoryConfig()
383383 let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactoryStakingContract]), "Error. Incorrect staking address.")
384384 let slippageContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactorySlippageContract]), "Error. Incorrect slippage contract address.")
385385 if ((0 > slippageTolerance))
386386 then throw("Invalid slippageTolerance passed")
387387 else {
388388 let estPut = commonPut(i, slippageTolerance, true)
389389 let emitLpAmt = estPut._2
390390 let lpAssetId = estPut._7
391391 let state = estPut._9
392392 let amDiff = estPut._10
393393 let prDiff = estPut._11
394394 let amId = estPut._12
395395 let prId = estPut._13
396396 let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil)
397397 if ((emitInv == emitInv))
398398 then {
399399 let slippageAInv = if ((amDiff > 0))
400400 then invoke(slippageContract, "put", nil, [AttachedPayment(amId, amDiff)])
401401 else nil
402402 if ((slippageAInv == slippageAInv))
403403 then {
404404 let slippagePInv = if ((prDiff > 0))
405405 then invoke(slippageContract, "put", nil, [AttachedPayment(prId, prDiff)])
406406 else nil
407407 if ((slippagePInv == slippagePInv))
408408 then {
409409 let lpTransfer = if (shouldAutoStake)
410410 then {
411411 let slpStakeInv = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
412412 if ((slpStakeInv == slpStakeInv))
413413 then nil
414414 else throw("Strict value is not equal to itself.")
415415 }
416416 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
417417 (state ++ lpTransfer)
418418 }
419419 else throw("Strict value is not equal to itself.")
420420 }
421421 else throw("Strict value is not equal to itself.")
422422 }
423423 else throw("Strict value is not equal to itself.")
424424 }
425425 }
426426
427427
428428
429429 @Callable(i)
430430 func putForFree (maxSlippage) = if ((0 > maxSlippage))
431431 then throw("Invalid value passed")
432432 else {
433433 let estPut = commonPut(i, maxSlippage, false)
434434 estPut._9
435435 }
436436
437437
438438
439439 @Callable(i)
440440 func get () = {
441441 let res = commonGet(i)
442442 let outAmtAmt = res._1
443443 let outPrAmt = res._2
444444 let pmtAmt = res._3
445445 let pmtAssetId = res._4
446446 let state = res._5
447447 let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
448448 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
449449 then state
450450 else throw("Strict value is not equal to itself.")
451451 }
452452
453453
454454
455455 @Callable(i)
456456 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
457457 let res = commonGet(i)
458458 let outAmAmt = res._1
459459 let outPrAmt = res._2
460460 let pmtAmt = res._3
461461 let pmtAssetId = res._4
462462 let state = res._5
463463 if ((noLessThenAmtAsset > outAmAmt))
464464 then throw(((("noLessThenAmtAsset failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
465465 else if ((noLessThenPriceAsset > outPrAmt))
466466 then throw(((("noLessThenPriceAsset failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
467467 else {
468468 let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
469469 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
470470 then state
471471 else throw("Strict value is not equal to itself.")
472472 }
473473 }
474474
475475
476476
477477 @Callable(i)
478478 func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract)))
479479 then throw("permissions denied")
480480 else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success")
481481
482482
483483
484484 @Callable(i)
485485 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig())
486486
487487
488488
489489 @Callable(i)
490490 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
491491
492492
493493
494494 @Callable(i)
495495 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
496496 let prices = calcPrices(amAmt, prAmt, lpAmt)
497497 $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])])
498498 }
499499
500500
501501
502502 @Callable(i)
503503 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult)))
504504
505505
506506
507507 @Callable(i)
508508 func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult))
509509
510510
511511
512512 @Callable(i)
513513 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
514514
515515
516516
517517 @Callable(i)
518518 func estimatePutOperationWrapperREADONLY (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp) = {
519- let estimation = estimatePutOperation(txId58, slippageTolerance, inAmAssetAmt, inAmAssetId, inPrAssetAmt, inPrAssetId, userAddress, isEvaluate, emitLp)
520- let $t02536825589 = estimation
521- let calcLpAmt = $t02536825589._1
522- let emitLpAmt = $t02536825589._2
523- let curPrice = $t02536825589._3
524- let amBalance = $t02536825589._4
525- let prBalance = $t02536825589._5
526- let lpEmission = $t02536825589._6
527- let lpAssetId = $t02536825589._7
528- let poolStatus = $t02536825589._8
529- let commonState = $t02536825589._9
530- let amDiff = $t02536825589._10
531- let prDiff = $t02536825589._11
532- let inAmtAssetId = $t02536825589._12
533- let inPriceAssetId = $t02536825589._13
519+ let $t02517425559 = estimatePutOperation(txId58, slippageTolerance, inAmAssetAmt, inAmAssetId, inPrAssetAmt, inPrAssetId, userAddress, isEvaluate, emitLp)
520+ let calcLpAmt = $t02517425559._1
521+ let emitLpAmt = $t02517425559._2
522+ let curPrice = $t02517425559._3
523+ let amBalance = $t02517425559._4
524+ let prBalance = $t02517425559._5
525+ let lpEmission = $t02517425559._6
526+ let lpAssetId = $t02517425559._7
527+ let poolStatus = $t02517425559._8
528+ let commonState = $t02517425559._9
529+ let amDiff = $t02517425559._10
530+ let prDiff = $t02517425559._11
531+ let inAmtAssetId = $t02517425559._12
532+ let inPriceAssetId = $t02517425559._13
534533 $Tuple2(nil, $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEmission, lpAssetId, poolStatus, commonState, amDiff, prDiff, inAmtAssetId, inPriceAssetId))
535534 }
536535
537536
538537
539538 @Callable(i)
540539 func estimateGetOperationWrapperREADONLY (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
541- let estimation = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress))
542- let $t02610626275 = estimation
543- let outAmAmt = $t02610626275._1
544- let outPrAmt = $t02610626275._2
545- let amAssetId = $t02610626275._3
546- let prAssetId = $t02610626275._4
547- let amBalance = $t02610626275._5
548- let prBalance = $t02610626275._6
549- let lpEmission = $t02610626275._7
550- let curPriceX18 = $t02610626275._8
551- let poolStatus = $t02610626275._9
552- let state = $t02610626275._10
540+ let $t02594826215 = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress))
541+ let outAmAmt = $t02594826215._1
542+ let outPrAmt = $t02594826215._2
543+ let amAssetId = $t02594826215._3
544+ let prAssetId = $t02594826215._4
545+ let amBalance = $t02594826215._5
546+ let prBalance = $t02594826215._6
547+ let lpEmission = $t02594826215._7
548+ let curPriceX18 = $t02594826215._8
549+ let poolStatus = $t02594826215._9
550+ let state = $t02594826215._10
553551 $Tuple2(nil, $Tuple10(outAmAmt, outPrAmt, amAssetId, prAssetId, amBalance, prBalance, lpEmission, toString(curPriceX18), poolStatus, state))
554552 }
555553
556554
557555
558556 @Callable(i)
559557 func statsREADONLY () = {
560558 let cfg = getPoolConfig()
561559 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
562560 let amtAssetId = cfg[idxAmtAssetId]
563561 let priceAssetId = cfg[idxPriceAssetId]
564562 let iAmtAssetId = cfg[idxIAmtAssetId]
565563 let iPriceAssetId = cfg[idxIPriceAssetId]
566564 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
567565 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
568566 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
569567 let accAmtAssetBalance = getAccBalance(amtAssetId)
570568 let accPriceAssetBalance = getAccBalance(priceAssetId)
571569 let pricesList = calcPrices(accAmtAssetBalance, accPriceAssetBalance, poolLPBalance)
572570 let curPrice = 0
573571 let lpAmtAssetShare = fromX18(pricesList[1], scale8)
574572 let lpPriceAssetShare = fromX18(pricesList[2], scale8)
575573 let poolWeight = value(getInteger(factoryContract, keyPoolWeight(toString(this))))
576574 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight)], SEP))
577575 }
578576
579577
580578
581579 @Callable(i)
582580 func evaluatePutByAmountAssetREADONLY (inAmAssetAmt) = {
583581 let cfg = getPoolConfig()
584582 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
585583 let amAssetIdStr = cfg[idxAmtAssetId]
586584 let amAssetId = fromBase58String(amAssetIdStr)
587585 let prAssetIdStr = cfg[idxPriceAssetId]
588586 let prAssetId = fromBase58String(prAssetIdStr)
589587 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
590588 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
591589 let poolStatus = cfg[idxPoolStatus]
592590 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
593591 let accAmtAssetBalance = getAccBalance(amAssetIdStr)
594592 let accPriceAssetBalance = getAccBalance(prAssetIdStr)
595593 let amtAssetAmtX18 = toX18(accAmtAssetBalance, amtAssetDcm)
596594 let priceAssetAmtX18 = toX18(accPriceAssetBalance, priceAssetDcm)
597595 let curPriceX18 = if ((poolLPBalance == 0))
598596 then zeroBigInt
599597 else calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18)
600598 let inAmAssetAmtX18 = toX18(inAmAssetAmt, amtAssetDcm)
601599 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
602600 let inPrAssetAmt = fromX18(inPrAssetAmtX18, priceAssetDcm)
603601 let estPut = estimatePutOperation("", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false)
604602 let calcLpAmt = estPut._1
605603 let curPriceCalc = estPut._3
606604 let amBalance = estPut._4
607605 let prBalance = estPut._5
608606 let lpEmission = estPut._6
609607 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(fromX18(curPriceX18, scale8)), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
610608 }
611609
612610
613611
614612 @Callable(i)
615613 func evaluatePutByPriceAssetREADONLY (inPrAssetAmt) = {
616614 let cfg = getPoolConfig()
617615 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
618616 let amAssetIdStr = cfg[idxAmtAssetId]
619617 let amAssetId = fromBase58String(amAssetIdStr)
620618 let prAssetIdStr = cfg[idxPriceAssetId]
621619 let prAssetId = fromBase58String(prAssetIdStr)
622620 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
623621 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
624622 let poolStatus = cfg[idxPoolStatus]
625623 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
626624 let amBalanceRaw = getAccBalance(amAssetIdStr)
627625 let prBalanceRaw = getAccBalance(prAssetIdStr)
628626 let amBalanceRawX18 = toX18(amBalanceRaw, amtAssetDcm)
629627 let prBalanceRawX18 = toX18(prBalanceRaw, priceAssetDcm)
630628 let curPriceX18 = if ((poolLPBalance == 0))
631629 then zeroBigInt
632630 else calcPriceBigInt(prBalanceRawX18, amBalanceRawX18)
633631 let inPrAssetAmtX18 = toX18(inPrAssetAmt, priceAssetDcm)
634632 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
635633 let inAmAssetAmt = fromX18(inAmAssetAmtX18, amtAssetDcm)
636634 let estPut = estimatePutOperation("", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false)
637635 let calcLpAmt = estPut._1
638636 let curPriceCalc = estPut._3
639637 let amBalance = estPut._4
640638 let prBalance = estPut._5
641639 let lpEmission = estPut._6
642640 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(fromX18(curPriceX18, scale8)), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
643641 }
644642
645643
646644
647645 @Callable(i)
648646 func evaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
649647 let res = estimateGetOperation("", paymentLpAssetId, paymentLpAmt, this)
650648 let outAmAmt = res._1
651649 let outPrAmt = res._2
652650 let amBalance = res._5
653651 let prBalance = res._6
654652 let lpEmission = res._7
655653 let curPrice = res._8
656654 let poolStatus = parseIntValue(res._9)
657655 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), toString(curPrice), toString(poolStatus)], SEP))
658656 }
659657
660658
661659 @Verifier(tx)
662660 func verify () = match tx {
663661 case order: Order =>
664662 if (validateMatcherOrderAllowed(order))
665663 then sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
666664 else false
667665 case _ =>
668666 let managerPublic = valueOrElse(getString(this, keyManagerPublicKey()), EMPTY)
669667 if ((managerPublic == EMPTY))
670668 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
671669 else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(managerPublic))
672670 }
673671

github/deemru/w8io/026f985 
98.15 ms