tx · GXB2uJGnpLyNwBqPs4ThKoRZvQGzdcwnNDV5c6KisLU5

3N6wAa7PMFZJu4Zrmp3avXmMnRTrRpMM9Lh:  -0.01400000 Waves

2021.12.17 13:08 [1838114] smart account 3N6wAa7PMFZJu4Zrmp3avXmMnRTrRpMM9Lh > SELF 0.00000000 Waves

{ "type": 13, "id": "GXB2uJGnpLyNwBqPs4ThKoRZvQGzdcwnNDV5c6KisLU5", "fee": 1400000, "feeAssetId": null, "timestamp": 1639735691589, "version": 1, "sender": "3N6wAa7PMFZJu4Zrmp3avXmMnRTrRpMM9Lh", "senderPublicKey": "Cr8D7eozSzJh7XHsYTjBinPpo3SS83BrCGiBAJsjGxBo", "proofs": [ "RcrQfGB4f5CRkZqAZVWnyhQvnzN5e5UsWHbVxLNTt2PdrYQDYBLFoDthjB9Gm6HCVQ1qWhudXzLRidGGbkdh4pS" ], "script": "base64:AAIFAAAAAAAAAG4IAhIECgIICBIECgIBBBIDCgEBEgASBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAgEBEgQKAggBEgQKAggIEgwKCggBAQIBAggEBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIAQAAAEIAAAAACmxQZGVjaW1hbHMAAAAAAAAAAAgAAAAABnNjYWxlOAAAAAAABfXhAAAAAAAMc2NhbGU4QmlnSW50CQABNgAAAAEAAAAAAAX14QAAAAAAB3NjYWxlMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKemVyb0JpZ0ludAkAATYAAAABAAAAAAAAAAAAAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAAApQb29sQWN0aXZlAAAAAAAAAAABAAAAAA9Qb29sUHV0RGlzYWJsZWQAAAAAAAAAAAIAAAAAE1Bvb2xNYXRjaGVyRGlzYWJsZWQAAAAAAAAAAAMAAAAADFBvb2xTaHV0ZG93bgAAAAAAAAAABAAAAAAOaWR4UG9vbEFkZHJlc3MAAAAAAAAAAAEAAAAADWlkeFBvb2xT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AAAtzZW5kZXJWYWxpZAkAAfQAAAADCAUAAAAFb3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAVvcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAVvcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkEAAAADG1hdGNoZXJWYWxpZAkAAfQAAAADCAUAAAAFb3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAVvcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAEFAAAACm1hdGNoZXJQdWIDAwMFAAAACm9yZGVyVmFsaWQFAAAAC3NlbmRlclZhbGlkBwUAAAAMbWF0Y2hlclZhbGlkBwYJAQAAAA90aHJvd09yZGVyRXJyb3IAAAADBQAAAApvcmRlclZhbGlkBQAAAAtzZW5kZXJWYWxpZAUAAAAMbWF0Y2hlclZhbGlkBAAAAA1tYW5hZ2VyUHVibGljCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMJAQAAABNrZXlNYW5hZ2VyUHVibGljS2V5AAAAAAUAAAAFRU1QVFkDCQAAAAAAAAIFAAAADW1hbmFnZXJQdWJsaWMFAAAABUVNUFRZCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQUAAAANbWFuYWdlclB1YmxpY4FJBBI=", "chainId": 84, "height": 1838114, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CU1hi9UDuRuN2q2uRLxNVqpWFPqRkCGStifGDaXYiztH Next: 6sUUqnsH1YzuPbbTcXDdsMG2vpM1ns33oe2x9unxbcvJ Diff:
OldNewDifferences
562562
563563
564564 @Callable(i)
565-func estimatePutOperationWrapperREADONLY (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippageTolerance, inAmAssetAmt, inAmAssetId, inPrAssetAmt, inPrAssetId, userAddress, isEvaluate, emitLp))
565+func estimatePutOperationWrapperREADONLY (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp,isOneAsset) = $Tuple2(nil, estimatePutOperation(txId58, slippageTolerance, inAmAssetAmt, inAmAssetId, inPrAssetAmt, inPrAssetId, userAddress, isEvaluate, emitLp))
566566
567567
568568
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 keyMatcherPub () = "%s%s__matcher__publicKey"
101101
102102
103103 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
104104
105105
106106 func keyPoolConfig (iAmtAsset,iPriceAsset) = (((("%d%d%s__" + iAmtAsset) + "__") + iPriceAsset) + "__config")
107107
108108
109109 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
110110
111111
112112 func keyAllPoolsShutdown () = "%s__shutdown"
113113
114114
115115 func keyPoolWeight (contractAddress) = ("%s%s__poolWeight__" + contractAddress)
116116
117117
118118 func throwOrderError (orderValid,senderValid,matcherValid) = throw(((((("order validation failed: orderValid=" + toString(orderValid)) + " senderValid=") + toString(senderValid)) + " matcherValid=") + toString(matcherValid)))
119119
120120
121121 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
122122
123123
124124 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
125125
126126
127127 let factoryContract = addressFromStringValue(getStringOrFail(this, keyFactoryContract()))
128128
129129 func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false)
130130
131131
132132 func getMatcherPubOrFail () = fromBase58String(getStringOrFail(factoryContract, keyMatcherPub()))
133133
134134
135135 func getPoolConfig () = {
136136 let amtAsset = getStringOrFail(this, keyAmtAsset())
137137 let priceAsset = getStringOrFail(this, keyPriceAsset())
138138 let iPriceAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAsset))
139139 let iAmtAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAsset))
140140 split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAsset), toString(iPriceAsset))), SEP)
141141 }
142142
143143
144144 func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP)
145145
146146
147147 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)
148148
149149
150150 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)
151151
152152
153153 func getAccBalance (assetId) = if ((assetId == "WAVES"))
154154 then wavesBalance(this).available
155155 else assetBalance(this, fromBase58String(assetId))
156156
157157
158158 func calcPriceBigInt (prAmtX18,amAmtX18) = fraction(prAmtX18, scale18, amAmtX18)
159159
160160
161161 func privateCalcPrice (amAssetDcm,prAssetDcm,amAmt,prAmt) = {
162162 let amtAssetAmtX18 = toX18(amAmt, amAssetDcm)
163163 let priceAssetAmtX18 = toX18(prAmt, prAssetDcm)
164164 calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18)
165165 }
166166
167167
168168 func calcPrices (amAmt,prAmt,lpAmt) = {
169169 let cfg = getPoolConfig()
170170 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
171171 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
172172 let priceX18 = privateCalcPrice(amtAssetDcm, priceAssetDcm, amAmt, prAmt)
173173 let amAmtX18 = toX18(amAmt, amtAssetDcm)
174174 let prAmtX18 = toX18(prAmt, priceAssetDcm)
175175 let lpAmtX18 = toX18(lpAmt, scale8)
176176 let lpPriceInAmAssetX18 = calcPriceBigInt(amAmtX18, lpAmtX18)
177177 let lpPriceInPrAssetX18 = calcPriceBigInt(prAmtX18, lpAmtX18)
178178 [priceX18, lpPriceInAmAssetX18, lpPriceInPrAssetX18]
179179 }
180180
181181
182182 func calculatePrices (amAmt,prAmt,lpAmt) = {
183183 let prices = calcPrices(amAmt, prAmt, lpAmt)
184184 [fromX18(prices[0], scale8), fromX18(prices[1], scale8), fromX18(prices[2], scale8)]
185185 }
186186
187187
188188 func estimateGetOperation (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
189189 let cfg = getPoolConfig()
190190 let lpAssetId = cfg[idxPoolLPAssetId]
191191 let amAssetId = cfg[idxAmtAssetId]
192192 let prAssetId = cfg[idxPriceAssetId]
193193 let amAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
194194 let prAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
195195 let poolStatus = cfg[idxPoolStatus]
196196 let lpEmission = valueOrErrorMessage(assetInfo(fromBase58String(lpAssetId)), (("Asset " + lpAssetId) + " doesn't exist")).quantity
197197 if ((lpAssetId != pmtAssetId))
198198 then throw("Invalid asset passed.")
199199 else {
200200 let amBalance = getAccBalance(amAssetId)
201201 let amBalanceX18 = toX18(amBalance, amAssetDcm)
202202 let prBalance = getAccBalance(prAssetId)
203203 let prBalanceX18 = toX18(prBalance, prAssetDcm)
204204 let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18)
205205 let curPrice = fromX18(curPriceX18, scale8)
206206 let pmtLpAmtX18 = toX18(pmtLpAmt, scale8)
207207 let lpEmissionX18 = toX18(lpEmission, scale8)
208208 let outAmAmtX18 = fraction(amBalanceX18, pmtLpAmtX18, lpEmissionX18)
209209 let outPrAmtX18 = fraction(prBalanceX18, pmtLpAmtX18, lpEmissionX18)
210210 let outAmAmt = fromX18(outAmAmtX18, amAssetDcm)
211211 let outPrAmt = fromX18(outPrAmtX18, prAssetDcm)
212212 let state = if ((txId58 == ""))
213213 then nil
214214 else [ScriptTransfer(userAddress, outAmAmt, if ((amAssetId == "WAVES"))
215215 then unit
216216 else fromBase58String(amAssetId)), ScriptTransfer(userAddress, outPrAmt, if ((prAssetId == "WAVES"))
217217 then unit
218218 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)]
219219 $Tuple10(outAmAmt, outPrAmt, amAssetId, prAssetId, amBalance, prBalance, lpEmission, curPriceX18, poolStatus, state)
220220 }
221221 }
222222
223223
224224 func estimatePutOperation (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp) = {
225225 let cfg = getPoolConfig()
226226 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
227227 let amAssetIdStr = cfg[idxAmtAssetId]
228228 let prAssetIdStr = cfg[idxPriceAssetId]
229229 let iAmtAssetId = cfg[idxIAmtAssetId]
230230 let iPriceAssetId = cfg[idxIPriceAssetId]
231231 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
232232 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
233233 let poolStatus = cfg[idxPoolStatus]
234234 let lpEmission = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
235235 let inAmAssetIdStr = toBase58String(valueOrElse(inAmAssetId, fromBase58String("WAVES")))
236236 let inPrAssetIdStr = toBase58String(valueOrElse(inPrAssetId, fromBase58String("WAVES")))
237237 if (if ((amAssetIdStr != inAmAssetIdStr))
238238 then true
239239 else (prAssetIdStr != inPrAssetIdStr))
240240 then throw("Invalid amt or price asset passed.")
241241 else {
242242 let amBalance = if (isEvaluate)
243243 then getAccBalance(amAssetIdStr)
244244 else (getAccBalance(amAssetIdStr) - inAmAssetAmt)
245245 let prBalance = if (isEvaluate)
246246 then getAccBalance(prAssetIdStr)
247247 else (getAccBalance(prAssetIdStr) - inPrAssetAmt)
248248 let inAmAssetAmtX18 = toX18(inAmAssetAmt, amtAssetDcm)
249249 let inPrAssetAmtX18 = toX18(inPrAssetAmt, priceAssetDcm)
250250 let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18)
251251 let amBalanceX18 = toX18(amBalance, amtAssetDcm)
252252 let prBalanceX18 = toX18(prBalance, priceAssetDcm)
253253 let res = if ((lpEmission == 0))
254254 then {
255255 let curPriceX18 = zeroBigInt
256256 let slippageX18 = zeroBigInt
257257 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
258258 $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtAssetDcm), fromX18(inPrAssetAmtX18, priceAssetDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
259259 }
260260 else {
261261 let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18)
262262 let slippageX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
263263 let slippageToleranceX18 = toX18(slippageTolerance, scale8)
264264 if (if ((curPriceX18 != zeroBigInt))
265265 then (slippageX18 > slippageToleranceX18)
266266 else false)
267267 then throw(((("Price slippage " + toString(slippageX18)) + " exceeded the passed limit of ") + toString(slippageToleranceX18)))
268268 else {
269269 let lpEmissionX18 = toX18(lpEmission, scale8)
270270 let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
271271 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
272272 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
273273 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
274274 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
275275 let expAmtAssetAmtX18 = expectedAmts._1
276276 let expPriceAssetAmtX18 = expectedAmts._2
277277 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18)
278278 $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtAssetDcm), fromX18(expPriceAssetAmtX18, priceAssetDcm), curPriceX18, slippageX18)
279279 }
280280 }
281281 let calcLpAmt = res._1
282282 let calcAmAssetPmt = res._2
283283 let calcPrAssetPmt = res._3
284284 let curPrice = fromX18(res._4, scale8)
285285 let slippageCalc = fromX18(res._5, scale8)
286286 if ((0 >= calcLpAmt))
287287 then throw("Invalid calculations. LP calculated is less than zero.")
288288 else {
289289 let emitLpAmt = if (!(emitLp))
290290 then 0
291291 else calcLpAmt
292292 let amDiff = (inAmAssetAmt - calcAmAssetPmt)
293293 let prDiff = (inPrAssetAmt - calcPrAssetPmt)
294294 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))]
295295 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEmission, lpAssetId, poolStatus, commonState, amDiff, prDiff, inAmAssetId, inPrAssetId)
296296 }
297297 }
298298 }
299299
300300
301301 func validateMatcherOrderAllowed (order) = {
302302 let cfg = getPoolConfig()
303303 let amtAssetId = cfg[idxAmtAssetId]
304304 let priceAssetId = cfg[idxPriceAssetId]
305305 let poolStatus = parseIntValue(cfg[idxPoolStatus])
306306 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
307307 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
308308 let accAmtAssetBalance = getAccBalance(amtAssetId)
309309 let accPriceAssetBalance = getAccBalance(priceAssetId)
310310 let curPriceX18 = if ((order.orderType == Buy))
311311 then privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance + order.amount), accPriceAssetBalance)
312312 else privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance - order.amount), accPriceAssetBalance)
313313 let curPrice = fromX18(curPriceX18, scale8)
314314 if (if (if (isGlobalShutdown())
315315 then true
316316 else (poolStatus == PoolMatcherDisabled))
317317 then true
318318 else (poolStatus == PoolShutdown))
319319 then throw("Exchange operations disabled")
320320 else {
321321 let orderAmtAsset = order.assetPair.amountAsset
322322 let orderAmtAssetStr = if ((orderAmtAsset == unit))
323323 then "WAVES"
324324 else toBase58String(value(orderAmtAsset))
325325 let orderPriceAsset = order.assetPair.priceAsset
326326 let orderPriceAssetStr = if ((orderPriceAsset == unit))
327327 then "WAVES"
328328 else toBase58String(value(orderPriceAsset))
329329 if (if ((orderAmtAssetStr != amtAssetId))
330330 then true
331331 else (orderPriceAssetStr != priceAssetId))
332332 then throw("Wrong order assets.")
333333 else {
334334 let orderPrice = order.price
335335 let priceDcm = fraction(scale8, priceAssetDcm, amtAssetDcm)
336336 let castedOrderPrice = toScale(orderPrice, scale8, priceDcm)
337337 let isOrderPriceValid = if ((order.orderType == Buy))
338338 then (curPrice >= castedOrderPrice)
339339 else (castedOrderPrice >= curPrice)
340340 true
341341 }
342342 }
343343 }
344344
345345
346346 func commonGet (i) = if ((size(i.payments) != 1))
347347 then throw("exactly 1 payment is expected")
348348 else {
349349 let pmt = value(i.payments[0])
350350 let pmtAssetId = value(pmt.assetId)
351351 let pmtAmt = pmt.amount
352352 let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
353353 let outAmAmt = res._1
354354 let outPrAmt = res._2
355355 let poolStatus = parseIntValue(res._9)
356356 let state = res._10
357357 if (if (isGlobalShutdown())
358358 then true
359359 else (poolStatus == PoolShutdown))
360360 then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus)))
361361 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
362362 }
363363
364364
365365 func commonPut (i,slippageTolerance,emitLp) = if ((size(i.payments) != 2))
366366 then throw("exactly 2 payments are expected")
367367 else {
368368 let amAssetPmt = value(i.payments[0])
369369 let prAssetPmt = value(i.payments[1])
370370 let estPut = estimatePutOperation(toBase58String(i.transactionId), slippageTolerance, amAssetPmt.amount, amAssetPmt.assetId, prAssetPmt.amount, prAssetPmt.assetId, toString(i.caller), false, emitLp)
371371 let poolStatus = parseIntValue(estPut._8)
372372 if (if (if (isGlobalShutdown())
373373 then true
374374 else (poolStatus == PoolPutDisabled))
375375 then true
376376 else (poolStatus == PoolShutdown))
377377 then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus)))
378378 else estPut
379379 }
380380
381381
382382 @Callable(i)
383383 func constructor (factoryContract,managerPublicKey) = if ((i.caller != this))
384384 then throw("permissions denied")
385385 else [StringEntry(keyFactoryContract(), factoryContract), StringEntry(keyManagerPublicKey(), managerPublicKey)]
386386
387387
388388
389389 @Callable(i)
390390 func put (slippageTolerance,shouldAutoStake) = {
391391 let factoryCfg = getFactoryConfig()
392392 let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactoryStakingContract]), "Error. Incorrect staking address.")
393393 let slippageContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactorySlippageContract]), "Error. Incorrect slippage contract address.")
394394 if ((0 > slippageTolerance))
395395 then throw("Invalid slippageTolerance passed")
396396 else {
397397 let estPut = commonPut(i, slippageTolerance, true)
398398 let emitLpAmt = estPut._2
399399 let lpAssetId = estPut._7
400400 let state = estPut._9
401401 let amDiff = estPut._10
402402 let prDiff = estPut._11
403403 let amId = estPut._12
404404 let prId = estPut._13
405405 let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil)
406406 if ((emitInv == emitInv))
407407 then {
408408 let slippageAInv = if ((amDiff > 0))
409409 then invoke(slippageContract, "put", nil, [AttachedPayment(amId, amDiff)])
410410 else nil
411411 if ((slippageAInv == slippageAInv))
412412 then {
413413 let slippagePInv = if ((prDiff > 0))
414414 then invoke(slippageContract, "put", nil, [AttachedPayment(prId, prDiff)])
415415 else nil
416416 if ((slippagePInv == slippagePInv))
417417 then {
418418 let lpTransfer = if (shouldAutoStake)
419419 then {
420420 let slpStakeInv = invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
421421 if ((slpStakeInv == slpStakeInv))
422422 then nil
423423 else throw("Strict value is not equal to itself.")
424424 }
425425 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
426426 (state ++ lpTransfer)
427427 }
428428 else throw("Strict value is not equal to itself.")
429429 }
430430 else throw("Strict value is not equal to itself.")
431431 }
432432 else throw("Strict value is not equal to itself.")
433433 }
434434 }
435435
436436
437437
438438 @Callable(i)
439439 func putForFree (maxSlippage) = if ((0 > maxSlippage))
440440 then throw("Invalid value passed")
441441 else {
442442 let estPut = commonPut(i, maxSlippage, false)
443443 estPut._9
444444 }
445445
446446
447447
448448 @Callable(i)
449449 func get () = {
450450 let res = commonGet(i)
451451 let outAmtAmt = res._1
452452 let outPrAmt = res._2
453453 let pmtAmt = res._3
454454 let pmtAssetId = res._4
455455 let state = res._5
456456 let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
457457 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
458458 then state
459459 else throw("Strict value is not equal to itself.")
460460 }
461461
462462
463463
464464 @Callable(i)
465465 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
466466 let res = commonGet(i)
467467 let outAmAmt = res._1
468468 let outPrAmt = res._2
469469 let pmtAmt = res._3
470470 let pmtAssetId = res._4
471471 let state = res._5
472472 if ((noLessThenAmtAsset > outAmAmt))
473473 then throw(((("noLessThenAmtAsset failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
474474 else if ((noLessThenPriceAsset > outPrAmt))
475475 then throw(((("noLessThenPriceAsset failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
476476 else {
477477 let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
478478 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
479479 then state
480480 else throw("Strict value is not equal to itself.")
481481 }
482482 }
483483
484484
485485
486486 @Callable(i)
487487 func unstakeAndGet (amount) = {
488488 let checkPayments = if ((size(i.payments) != 0))
489489 then throw("No payments are expected")
490490 else true
491491 if ((checkPayments == checkPayments))
492492 then {
493493 let cfg = getPoolConfig()
494494 let factoryCfg = getFactoryConfig()
495495 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
496496 let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactoryStakingContract]), "Error. Incorrect staking address.")
497497 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(lpAssetId), amount], nil)
498498 if ((unstakeInv == unstakeInv))
499499 then {
500500 let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
501501 let poolStatus = parseIntValue(res._9)
502502 let state = res._10
503503 let checkPoolStatus = if (if (isGlobalShutdown())
504504 then true
505505 else (poolStatus == PoolShutdown))
506506 then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus)))
507507 else true
508508 if ((checkPoolStatus == checkPoolStatus))
509509 then {
510510 let burnLPAssetOnFactory = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
511511 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
512512 then state
513513 else throw("Strict value is not equal to itself.")
514514 }
515515 else throw("Strict value is not equal to itself.")
516516 }
517517 else throw("Strict value is not equal to itself.")
518518 }
519519 else throw("Strict value is not equal to itself.")
520520 }
521521
522522
523523
524524 @Callable(i)
525525 func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract)))
526526 then throw("permissions denied")
527527 else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success")
528528
529529
530530
531531 @Callable(i)
532532 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig())
533533
534534
535535
536536 @Callable(i)
537537 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
538538
539539
540540
541541 @Callable(i)
542542 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
543543 let prices = calcPrices(amAmt, prAmt, lpAmt)
544544 $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])])
545545 }
546546
547547
548548
549549 @Callable(i)
550550 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult)))
551551
552552
553553
554554 @Callable(i)
555555 func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult))
556556
557557
558558
559559 @Callable(i)
560560 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
561561
562562
563563
564564 @Callable(i)
565-func estimatePutOperationWrapperREADONLY (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippageTolerance, inAmAssetAmt, inAmAssetId, inPrAssetAmt, inPrAssetId, userAddress, isEvaluate, emitLp))
565+func estimatePutOperationWrapperREADONLY (txId58,slippageTolerance,inAmAssetAmt,inAmAssetId,inPrAssetAmt,inPrAssetId,userAddress,isEvaluate,emitLp,isOneAsset) = $Tuple2(nil, estimatePutOperation(txId58, slippageTolerance, inAmAssetAmt, inAmAssetId, inPrAssetAmt, inPrAssetId, userAddress, isEvaluate, emitLp))
566566
567567
568568
569569 @Callable(i)
570570 func estimateGetOperationWrapperREADONLY (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
571571 let res = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress))
572572 $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10))
573573 }
574574
575575
576576
577577 @Callable(i)
578578 func statsREADONLY () = {
579579 let cfg = getPoolConfig()
580580 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
581581 let amtAssetId = cfg[idxAmtAssetId]
582582 let priceAssetId = cfg[idxPriceAssetId]
583583 let iAmtAssetId = cfg[idxIAmtAssetId]
584584 let iPriceAssetId = cfg[idxIPriceAssetId]
585585 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
586586 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
587587 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
588588 let accAmtAssetBalance = getAccBalance(amtAssetId)
589589 let accPriceAssetBalance = getAccBalance(priceAssetId)
590590 let pricesList = if ((poolLPBalance == 0))
591591 then [zeroBigInt, zeroBigInt, zeroBigInt]
592592 else calcPrices(accAmtAssetBalance, accPriceAssetBalance, poolLPBalance)
593593 let curPrice = 0
594594 let lpAmtAssetShare = fromX18(pricesList[1], scale8)
595595 let lpPriceAssetShare = fromX18(pricesList[2], scale8)
596596 let poolWeight = value(getInteger(factoryContract, keyPoolWeight(toString(this))))
597597 $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))
598598 }
599599
600600
601601
602602 @Callable(i)
603603 func evaluatePutByAmountAssetREADONLY (inAmAssetAmt) = {
604604 let cfg = getPoolConfig()
605605 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
606606 let amAssetIdStr = cfg[idxAmtAssetId]
607607 let amAssetId = fromBase58String(amAssetIdStr)
608608 let prAssetIdStr = cfg[idxPriceAssetId]
609609 let prAssetId = fromBase58String(prAssetIdStr)
610610 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
611611 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
612612 let poolStatus = cfg[idxPoolStatus]
613613 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
614614 let accAmtAssetBalance = getAccBalance(amAssetIdStr)
615615 let accPriceAssetBalance = getAccBalance(prAssetIdStr)
616616 let amtAssetAmtX18 = toX18(accAmtAssetBalance, amtAssetDcm)
617617 let priceAssetAmtX18 = toX18(accPriceAssetBalance, priceAssetDcm)
618618 let curPriceX18 = if ((poolLPBalance == 0))
619619 then zeroBigInt
620620 else calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18)
621621 let inAmAssetAmtX18 = toX18(inAmAssetAmt, amtAssetDcm)
622622 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
623623 let inPrAssetAmt = fromX18(inPrAssetAmtX18, priceAssetDcm)
624624 let estPut = estimatePutOperation("", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false)
625625 let calcLpAmt = estPut._1
626626 let curPriceCalc = estPut._3
627627 let amBalance = estPut._4
628628 let prBalance = estPut._5
629629 let lpEmission = estPut._6
630630 $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))
631631 }
632632
633633
634634
635635 @Callable(i)
636636 func evaluatePutByPriceAssetREADONLY (inPrAssetAmt) = {
637637 let cfg = getPoolConfig()
638638 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
639639 let amAssetIdStr = cfg[idxAmtAssetId]
640640 let amAssetId = fromBase58String(amAssetIdStr)
641641 let prAssetIdStr = cfg[idxPriceAssetId]
642642 let prAssetId = fromBase58String(prAssetIdStr)
643643 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
644644 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
645645 let poolStatus = cfg[idxPoolStatus]
646646 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
647647 let amBalanceRaw = getAccBalance(amAssetIdStr)
648648 let prBalanceRaw = getAccBalance(prAssetIdStr)
649649 let amBalanceRawX18 = toX18(amBalanceRaw, amtAssetDcm)
650650 let prBalanceRawX18 = toX18(prBalanceRaw, priceAssetDcm)
651651 let curPriceX18 = if ((poolLPBalance == 0))
652652 then zeroBigInt
653653 else calcPriceBigInt(prBalanceRawX18, amBalanceRawX18)
654654 let inPrAssetAmtX18 = toX18(inPrAssetAmt, priceAssetDcm)
655655 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
656656 let inAmAssetAmt = fromX18(inAmAssetAmtX18, amtAssetDcm)
657657 let estPut = estimatePutOperation("", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false)
658658 let calcLpAmt = estPut._1
659659 let curPriceCalc = estPut._3
660660 let amBalance = estPut._4
661661 let prBalance = estPut._5
662662 let lpEmission = estPut._6
663663 $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))
664664 }
665665
666666
667667
668668 @Callable(i)
669669 func evaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
670670 let res = estimateGetOperation("", paymentLpAssetId, paymentLpAmt, this)
671671 let outAmAmt = res._1
672672 let outPrAmt = res._2
673673 let amBalance = res._5
674674 let prBalance = res._6
675675 let lpEmission = res._7
676676 let curPrice = res._8
677677 let poolStatus = parseIntValue(res._9)
678678 $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))
679679 }
680680
681681
682682 @Verifier(tx)
683683 func verify () = match tx {
684684 case order: Order =>
685685 let matcherPub = getMatcherPubOrFail()
686686 let orderValid = validateMatcherOrderAllowed(order)
687687 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
688688 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
689689 if (if (if (orderValid)
690690 then senderValid
691691 else false)
692692 then matcherValid
693693 else false)
694694 then true
695695 else throwOrderError(orderValid, senderValid, matcherValid)
696696 case _ =>
697697 let managerPublic = valueOrElse(getString(this, keyManagerPublicKey()), EMPTY)
698698 if ((managerPublic == EMPTY))
699699 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
700700 else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(managerPublic))
701701 }
702702

github/deemru/w8io/026f985 
83.97 ms