tx · BSpnHwyXR1d3wKqXvAKyo5EA3JV3Ku3oqQdt7jbnL7Xn

3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT:  -0.01400000 Waves

2021.12.23 18:57 [1847113] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves

{ "type": 13, "id": "BSpnHwyXR1d3wKqXvAKyo5EA3JV3Ku3oqQdt7jbnL7Xn", "fee": 1400000, "feeAssetId": null, "timestamp": 1640275082765, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "UmuT4g4K4GXsRKbVCxX2esoWhJmtRvBufUXfzsSyKQmXtNJE7CNuHb9PeZFDr8upmkFNokPwBt7qh5zMT77JYyq" ], "script": "base64:AAIFAAAAAAAAAGoIAhIECgIICBIECgIBBBIFCgMBAQQSAwoBARIAEgYKBAEBAQgSBAoCAQESAwoBARIECgIICBIAEgMKAQgSBQoDAQEBEgQKAggBEgQKAgEBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIAAAAQQAAAAAKbFBkZWNpbWFscwAAAAAAAAAACAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAJY2FsY0Vycm9yCQABNgAAAAEAAAAAAAAPQkAAAAAAB3NjYWxlMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKemVyb0JpZ0ludAkAATYAAAABAAAAAAAAAAAAAAAAAAlvbmVCaWdJbnQJAAE2AAAAAQAAAAAAAAAAAQAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAAAAAAKUG9vbEFjdGl2ZQAAAAAAAAAAAQAAAAAPUG9vbFB1dERpc2FibGVkAAAAAAAAAAACAAAAABNQb29sTWF0Y2hlckRpc2FibGVkAAAAAAAAAAADAAAAAAxQb29sU2h1dGRvd24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ZW5kZXJWYWxpZAcFAAAADG1hdGNoZXJWYWxpZAcGCQEAAAAPdGhyb3dPcmRlckVycm9yAAAAAwUAAAAKb3JkZXJWYWxpZAUAAAALc2VuZGVyVmFsaWQFAAAADG1hdGNoZXJWYWxpZAQAAAANbWFuYWdlclB1YmxpYwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzCQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAFAAAABUVNUFRZAwkAAAAAAAACBQAAAA1tYW5hZ2VyUHVibGljBQAAAAVFTVBUWQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEFAAAADW1hbmFnZXJQdWJsaWOj64qI", "chainId": 84, "height": 1847113, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J4Ngk292ktA1fCUjRmv13HyE6v6HXSg8NoyetGa7SxNe Next: DTkaHXoFn2ZXYXA55UEqEXdLBEAFZgoF7wfEE8NooL8S Diff:
OldNewDifferences
471471 let amAdiff = amAssetSwapX18
472472 let dSwap = invoke(gwxCntr, "calcD", [toString((toBigInt(amBalance) - toBigInt(fromX18(amAdiff, amDcm)))), toString((toBigInt(prBalance) + toBigInt(fromX18(prAdiff, prDcm)))), "50", "100000000", "1"], nil)
473473 let invRight = parseBigIntValue(asString(dSwap))
474- let invDiff = fraction((invRight - invLeft), scale8BigInt, invLeft)
475- if ((invDiff > toBigInt(1)))
476- then throw("Wrong arguments passed. D decreased.")
477- else true
474+ if (true)
475+ then throw(((("invLeft = " + toString(invLeft)) + " invRight = ") + toString(invRight)))
476+ else {
477+ let invDiff = fraction((invRight - invLeft), scale8BigInt, invLeft)
478+ if ((invDiff > toBigInt(1)))
479+ then throw("Wrong arguments passed. D decreased.")
480+ else true
481+ }
478482 }
479483 if (!(isValid))
480484 then throw("Errors.")
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 calcError = toBigInt(1000000)
1111
1212 let scale18 = toBigInt(1000000000000000000)
1313
1414 let zeroBigInt = toBigInt(0)
1515
1616 let oneBigInt = toBigInt(1)
1717
1818 let SEP = "__"
1919
2020 let EMPTY = ""
2121
2222 let PoolActive = 1
2323
2424 let PoolPutDisabled = 2
2525
2626 let PoolMatcherDisabled = 3
2727
2828 let PoolShutdown = 4
2929
3030 let idxPoolAddress = 1
3131
3232 let idxPoolStatus = 2
3333
3434 let idxLPAsId = 3
3535
3636 let idxAmAsId = 4
3737
3838 let idxPrAsId = 5
3939
4040 let idxAmtAsDcm = 6
4141
4242 let idxPriceAsDcm = 7
4343
4444 let idxIAmtAsId = 8
4545
4646 let idxIPriceAsId = 9
4747
4848 let idxFactStakCntr = 1
4949
5050 let idxFactSlippCntr = 7
5151
5252 let idxFactGwxRewCntr = 10
5353
5454 func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult))
5555
5656
5757 func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18))
5858
5959
6060 func toScale (amt,resScale,curScale) = fraction(amt, resScale, curScale)
6161
6262
6363 func abs (val) = if ((zeroBigInt > val))
6464 then -(val)
6565 else val
6666
6767
6868 func keyFactCntr () = "%s__factoryContract"
6969
7070
7171 func keyManagerPublicKey () = "%s__managerPublicKey"
7272
7373
7474 func keyPriceLast () = "%s%s__price__last"
7575
7676
7777 func keyPriceHistory (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP)
7878
7979
8080 func keyPutActionByUser (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId)
8181
8282
8383 func keyGetActionByUser (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId)
8484
8585
8686 func keyAmtAsset () = "%s__amountAsset"
8787
8888
8989 func keyPriceAsset () = "%s__priceAsset"
9090
9191
9292 func keyFactoryConfig () = "%s__factoryConfig"
9393
9494
9595 func keyMatcherPub () = "%s%s__matcher__publicKey"
9696
9797
9898 func keyPoolConfig (iAmtAsset,iPriceAsset) = (((("%d%d%s__" + iAmtAsset) + "__") + iPriceAsset) + "__config")
9999
100100
101101 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
102102
103103
104104 func keyAllPoolsShutdown () = "%s__shutdown"
105105
106106
107107 func keyPoolWeight (contractAddress) = ("%s%s__poolWeight__" + contractAddress)
108108
109109
110110 func throwOrderError (orderValid,senderValid,matcherValid) = throw(((((("order validation failed: orderValid=" + toString(orderValid)) + " senderValid=") + toString(senderValid)) + " matcherValid=") + toString(matcherValid)))
111111
112112
113113 func asString (val) = match val {
114114 case valStr: String =>
115115 valStr
116116 case _ =>
117117 throw("fail to cast into Int")
118118 }
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, keyFactCntr()))
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 amtAs = getStringOrFail(this, keyAmtAsset())
137137 let priceAs = getStringOrFail(this, keyPriceAsset())
138138 let iPriceAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAs))
139139 let iAmtAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAs))
140140 split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAs), toString(iPriceAs))), SEP)
141141 }
142142
143143
144144 func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP)
145145
146146
147147 func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slippageByUser,slippageReal,txHeight,txTimestamp,slipageAmAmt,slipagePrAmt) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(inAmtAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slippageByUser), toString(slippageReal), toString(txHeight), toString(txTimestamp), toString(slipageAmAmt), toString(slipagePrAmt)], 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 amtAsAmtX18 = toX18(amAmt, amAssetDcm)
163163 let prAsAmtX18 = toX18(prAmt, prAssetDcm)
164164 calcPriceBigInt(prAsAmtX18, amtAsAmtX18)
165165 }
166166
167167
168168 func calcPrices (amAmt,prAmt,lpAmt) = {
169169 let cfg = getPoolConfig()
170170 let amtAsDcm = parseIntValue(cfg[idxAmtAsDcm])
171171 let prAsDcm = parseIntValue(cfg[idxPriceAsDcm])
172172 let priceX18 = privateCalcPrice(amtAsDcm, prAsDcm, amAmt, prAmt)
173173 let amAmtX18 = toX18(amAmt, amtAsDcm)
174174 let prAmtX18 = toX18(prAmt, prAsDcm)
175175 let lpAmtX18 = toX18(lpAmt, scale8)
176176 let lpPrInAmAsX18 = calcPriceBigInt(amAmtX18, lpAmtX18)
177177 let lpPrInPrAsX18 = calcPriceBigInt(prAmtX18, lpAmtX18)
178178 [priceX18, lpPrInAmAsX18, lpPrInPrAsX18]
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 lpId = cfg[idxLPAsId]
191191 let amId = cfg[idxAmAsId]
192192 let prId = cfg[idxPrAsId]
193193 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
194194 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
195195 let poolStatus = cfg[idxPoolStatus]
196196 let lpEmission = valueOrErrorMessage(assetInfo(fromBase58String(lpId)), (("Asset " + lpId) + " doesn't exist")).quantity
197197 if ((lpId != pmtAssetId))
198198 then throw("Invalid asset passed.")
199199 else {
200200 let amBalance = getAccBalance(amId)
201201 let amBalanceX18 = toX18(amBalance, amDcm)
202202 let prBalance = getAccBalance(prId)
203203 let prBalanceX18 = toX18(prBalance, prDcm)
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, amDcm)
211211 let outPrAmt = fromX18(outPrAmtX18, prDcm)
212212 let state = if ((txId58 == ""))
213213 then nil
214214 else [ScriptTransfer(userAddress, outAmAmt, if ((amId == "WAVES"))
215215 then unit
216216 else fromBase58String(amId)), ScriptTransfer(userAddress, outPrAmt, if ((prId == "WAVES"))
217217 then unit
218218 else fromBase58String(prId)), 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, amId, prId, amBalance, prBalance, lpEmission, curPriceX18, poolStatus, state)
220220 }
221221 }
222222
223223
224224 func estimatePutOperation (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEvaluate,emitLp) = {
225225 let cfg = getPoolConfig()
226226 let lpId = fromBase58String(cfg[idxLPAsId])
227227 let amIdStr = cfg[idxAmAsId]
228228 let prIdStr = cfg[idxPrAsId]
229229 let inAmIdStr = cfg[idxIAmtAsId]
230230 let inPrIdStr = cfg[idxIPriceAsId]
231231 let amtDcm = parseIntValue(cfg[idxAmtAsDcm])
232232 let priceDcm = parseIntValue(cfg[idxPriceAsDcm])
233233 let poolStatus = cfg[idxPoolStatus]
234234 let lpEmission = valueOrErrorMessage(assetInfo(lpId), "Wrong lp asset.").quantity
235235 let amBalance = if (isEvaluate)
236236 then getAccBalance(amIdStr)
237237 else (getAccBalance(amIdStr) - inAmAmt)
238238 let prBalance = if (isEvaluate)
239239 then getAccBalance(prIdStr)
240240 else (getAccBalance(prIdStr) - inPrAmt)
241241 let inAmAssetAmtX18 = toX18(inAmAmt, amtDcm)
242242 let inPrAssetAmtX18 = toX18(inPrAmt, priceDcm)
243243 let userPriceX18 = calcPriceBigInt(inPrAssetAmtX18, inAmAssetAmtX18)
244244 let amBalanceX18 = toX18(amBalance, amtDcm)
245245 let prBalanceX18 = toX18(prBalance, priceDcm)
246246 let res = if ((lpEmission == 0))
247247 then {
248248 let curPriceX18 = zeroBigInt
249249 let slippageX18 = zeroBigInt
250250 let lpAmtX18 = pow((inAmAssetAmtX18 * inPrAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
251251 $Tuple5(fromX18(lpAmtX18, scale8), fromX18(inAmAssetAmtX18, amtDcm), fromX18(inPrAssetAmtX18, priceDcm), calcPriceBigInt((prBalanceX18 + inPrAssetAmtX18), (amBalanceX18 + inAmAssetAmtX18)), slippageX18)
252252 }
253253 else {
254254 let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18)
255255 let slippageRealX18 = fraction(abs((curPriceX18 - userPriceX18)), scale18, curPriceX18)
256256 let slippageX18 = toX18(slippage, scale8)
257257 if (if ((curPriceX18 != zeroBigInt))
258258 then (slippageRealX18 > slippageX18)
259259 else false)
260260 then throw(((("Price slippage " + toString(slippageRealX18)) + " exceeded ") + toString(slippageX18)))
261261 else {
262262 let lpEmissionX18 = toX18(lpEmission, scale8)
263263 let prViaAmX18 = fraction(inAmAssetAmtX18, curPriceX18, scale18)
264264 let amViaPrX18 = fraction(inPrAssetAmtX18, scale18, curPriceX18)
265265 let expectedAmts = if ((prViaAmX18 > inPrAssetAmtX18))
266266 then $Tuple2(amViaPrX18, inPrAssetAmtX18)
267267 else $Tuple2(inAmAssetAmtX18, prViaAmX18)
268268 let expAmtAssetAmtX18 = expectedAmts._1
269269 let expPriceAssetAmtX18 = expectedAmts._2
270270 let lpAmtX18 = fraction(lpEmissionX18, expPriceAssetAmtX18, prBalanceX18)
271271 $Tuple5(fromX18(lpAmtX18, scale8), fromX18(expAmtAssetAmtX18, amtDcm), fromX18(expPriceAssetAmtX18, priceDcm), curPriceX18, slippageX18)
272272 }
273273 }
274274 let calcLpAmt = res._1
275275 let calcAmAssetPmt = res._2
276276 let calcPrAssetPmt = res._3
277277 let curPrice = fromX18(res._4, scale8)
278278 let slippageCalc = fromX18(res._5, scale8)
279279 if ((0 >= calcLpAmt))
280280 then throw("LP is less than zero.")
281281 else {
282282 let emitLpAmt = if (!(emitLp))
283283 then 0
284284 else calcLpAmt
285285 let amDiff = (inAmAmt - calcAmAssetPmt)
286286 let prDiff = (inPrAmt - calcPrAssetPmt)
287287 let commonState = [IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice), StringEntry(keyPutActionByUser(userAddress, txId58), dataPutActionInfo(calcAmAssetPmt, calcPrAssetPmt, emitLpAmt, curPrice, slippage, slippageCalc, height, lastBlock.timestamp, amDiff, prDiff))]
288288 $Tuple13(calcLpAmt, emitLpAmt, curPrice, amBalance, prBalance, lpEmission, lpId, poolStatus, commonState, amDiff, prDiff, inAmId, inPrId)
289289 }
290290 }
291291
292292
293293 func validateMatcherOrderAllowed (order) = {
294294 let cfg = getPoolConfig()
295295 let amtAssetId = cfg[idxAmAsId]
296296 let priceAssetId = cfg[idxPrAsId]
297297 let poolStatus = parseIntValue(cfg[idxPoolStatus])
298298 let amtAssetDcm = parseIntValue(cfg[idxAmtAsDcm])
299299 let priceAssetDcm = parseIntValue(cfg[idxPriceAsDcm])
300300 let accAmtAssetBalance = getAccBalance(amtAssetId)
301301 let accPriceAssetBalance = getAccBalance(priceAssetId)
302302 let curPriceX18 = if ((order.orderType == Buy))
303303 then privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance + order.amount), accPriceAssetBalance)
304304 else privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance - order.amount), accPriceAssetBalance)
305305 let curPrice = fromX18(curPriceX18, scale8)
306306 if (if (if (isGlobalShutdown())
307307 then true
308308 else (poolStatus == PoolMatcherDisabled))
309309 then true
310310 else (poolStatus == PoolShutdown))
311311 then throw("Exchange operations disabled")
312312 else {
313313 let orderAmtAsset = order.assetPair.amountAsset
314314 let orderAmtAssetStr = if ((orderAmtAsset == unit))
315315 then "WAVES"
316316 else toBase58String(value(orderAmtAsset))
317317 let orderPriceAsset = order.assetPair.priceAsset
318318 let orderPriceAssetStr = if ((orderPriceAsset == unit))
319319 then "WAVES"
320320 else toBase58String(value(orderPriceAsset))
321321 if (if ((orderAmtAssetStr != amtAssetId))
322322 then true
323323 else (orderPriceAssetStr != priceAssetId))
324324 then throw("Wrong order assets.")
325325 else {
326326 let orderPrice = order.price
327327 let priceDcm = fraction(scale8, priceAssetDcm, amtAssetDcm)
328328 let castedOrderPrice = toScale(orderPrice, scale8, priceDcm)
329329 let isOrderPriceValid = if ((order.orderType == Buy))
330330 then (curPrice >= castedOrderPrice)
331331 else (castedOrderPrice >= curPrice)
332332 true
333333 }
334334 }
335335 }
336336
337337
338338 func commonGet (i) = if ((size(i.payments) != 1))
339339 then throw("exactly 1 payment is expected")
340340 else {
341341 let pmt = value(i.payments[0])
342342 let pmtAssetId = value(pmt.assetId)
343343 let pmtAmt = pmt.amount
344344 let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
345345 let outAmAmt = res._1
346346 let outPrAmt = res._2
347347 let poolStatus = parseIntValue(res._9)
348348 let state = res._10
349349 if (if (isGlobalShutdown())
350350 then true
351351 else (poolStatus == PoolShutdown))
352352 then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus)))
353353 else $Tuple5(outAmAmt, outPrAmt, pmtAmt, pmtAssetId, state)
354354 }
355355
356356
357357 func commonPut (caller,txId,amAsPmt,prAsPmt,slippage,emitLp) = {
358358 let estPut = estimatePutOperation(txId, slippage, value(amAsPmt).amount, value(amAsPmt).assetId, value(prAsPmt).amount, value(prAsPmt).assetId, caller, false, emitLp)
359359 let status = parseIntValue(estPut._8)
360360 if (if (if (isGlobalShutdown())
361361 then true
362362 else (status == PoolPutDisabled))
363363 then true
364364 else (status == PoolShutdown))
365365 then throw(("Put operation is blocked by admin. Status = " + toString(status)))
366366 else estPut
367367 }
368368
369369
370370 func calcD (a,b,lVal) = 1
371371
372372
373373 @Callable(i)
374374 func constructor (factoryContract,managerPublicKey) = if ((i.caller != this))
375375 then throw("permissions denied")
376376 else [StringEntry(keyFactCntr(), factoryContract), StringEntry(keyManagerPublicKey(), managerPublicKey)]
377377
378378
379379
380380 @Callable(i)
381381 func put (slip,autoStake) = {
382382 let factCfg = getFactoryConfig()
383383 let stakingCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactStakCntr]), "Incorrect staking address.")
384384 let slipCntr = valueOrErrorMessage(addressFromString(factCfg[idxFactSlippCntr]), "Incorrect slippage address.")
385385 if ((0 > slip))
386386 then throw("Invalid slippage.")
387387 else if ((size(i.payments) != 2))
388388 then throw("2 payments are expected")
389389 else {
390390 let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], slip, true)
391391 let emitLpAmt = estPut._2
392392 let lpAssetId = estPut._7
393393 let state = estPut._9
394394 let amDiff = estPut._10
395395 let prDiff = estPut._11
396396 let amId = estPut._12
397397 let prId = estPut._13
398398 let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil)
399399 if ((emitInv == emitInv))
400400 then {
401401 let slippageAInv = if ((amDiff > 0))
402402 then invoke(slipCntr, "put", nil, [AttachedPayment(amId, amDiff)])
403403 else nil
404404 if ((slippageAInv == slippageAInv))
405405 then {
406406 let slippagePInv = if ((prDiff > 0))
407407 then invoke(slipCntr, "put", nil, [AttachedPayment(prId, prDiff)])
408408 else nil
409409 if ((slippagePInv == slippagePInv))
410410 then {
411411 let lpTrnsfr = if (autoStake)
412412 then {
413413 let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
414414 if ((slpStakeInv == slpStakeInv))
415415 then nil
416416 else throw("Strict value is not equal to itself.")
417417 }
418418 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
419419 (state ++ lpTrnsfr)
420420 }
421421 else throw("Strict value is not equal to itself.")
422422 }
423423 else throw("Strict value is not equal to itself.")
424424 }
425425 else throw("Strict value is not equal to itself.")
426426 }
427427 }
428428
429429
430430
431431 @Callable(i)
432432 func putOneTkn (inAmtAmount,inPrAmount,autoStake) = {
433433 let cfg = getFactoryConfig()
434434 let stakingCntr = valueOrErrorMessage(addressFromString(cfg[idxFactStakCntr]), "Wrong staking address")
435435 let slipCntr = valueOrErrorMessage(addressFromString(cfg[idxFactSlippCntr]), "Wrong slippage address")
436436 let gwxCntr = valueOrErrorMessage(addressFromString(cfg[idxFactGwxRewCntr]), "Wrong slippage address")
437437 let poolCfg = getPoolConfig()
438438 let amId = poolCfg[idxAmAsId]
439439 let prId = poolCfg[idxPrAsId]
440440 let amDcm = parseIntValue(poolCfg[idxAmtAsDcm])
441441 let prDcm = parseIntValue(poolCfg[idxPriceAsDcm])
442442 if ((size(i.payments) != 1))
443443 then throw("exactly 1 payment is expected")
444444 else {
445445 let pmt = value(i.payments[0])
446446 let pmtAssetId = toBase58String(value(pmt.assetId))
447447 let pmtAmt = pmt.amount
448448 let amAssetSwapX18 = toX18(inAmtAmount, amDcm)
449449 let prAssetSwapX18 = toX18(inPrAmount, prDcm)
450450 let amBalance = getAccBalance(amId)
451451 let amBalanceX18 = toX18(amBalance, amDcm)
452452 let prBalance = getAccBalance(prId)
453453 let prBalanceX18 = toX18(prBalance, prDcm)
454454 let dCur = invoke(gwxCntr, "calcD", [toString(amBalance), toString(prBalance), "50", "100000000", "1"], nil)
455455 let invLeft = parseBigIntValue(asString(dCur))
456456 let isValid = if ((pmtAssetId == amId))
457457 then {
458458 let pmtAmtX18 = toX18(pmtAmt, amDcm)
459459 let prAdiff = prAssetSwapX18
460460 let amAdiff = (pmtAmtX18 - amAssetSwapX18)
461461 let dSwap = invoke(gwxCntr, "calcD", [toString((toBigInt(amBalance) + toBigInt(fromX18(amAdiff, amDcm)))), toString((toBigInt(prBalance) - toBigInt(fromX18(prAdiff, prDcm)))), "50", "100000000", "1"], nil)
462462 let invRight = parseBigIntValue(asString(dSwap))
463463 let invDiff = fraction((invRight - invLeft), scale8BigInt, invLeft)
464464 if ((invDiff > toBigInt(1000)))
465465 then throw("Wrong arguments passed. D decreased.")
466466 else true
467467 }
468468 else {
469469 let pmtPrX18 = toX18(pmtAmt, prDcm)
470470 let prAdiff = (prAssetSwapX18 - pmtPrX18)
471471 let amAdiff = amAssetSwapX18
472472 let dSwap = invoke(gwxCntr, "calcD", [toString((toBigInt(amBalance) - toBigInt(fromX18(amAdiff, amDcm)))), toString((toBigInt(prBalance) + toBigInt(fromX18(prAdiff, prDcm)))), "50", "100000000", "1"], nil)
473473 let invRight = parseBigIntValue(asString(dSwap))
474- let invDiff = fraction((invRight - invLeft), scale8BigInt, invLeft)
475- if ((invDiff > toBigInt(1)))
476- then throw("Wrong arguments passed. D decreased.")
477- else true
474+ if (true)
475+ then throw(((("invLeft = " + toString(invLeft)) + " invRight = ") + toString(invRight)))
476+ else {
477+ let invDiff = fraction((invRight - invLeft), scale8BigInt, invLeft)
478+ if ((invDiff > toBigInt(1)))
479+ then throw("Wrong arguments passed. D decreased.")
480+ else true
481+ }
478482 }
479483 if (!(isValid))
480484 then throw("Errors.")
481485 else {
482486 let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(fromBase58String(amId), inAmtAmount), AttachedPayment(fromBase58String(prId), inPrAmount), 50000000000, true)
483487 let emitLpAmt = estPut._2
484488 let lpAssetId = estPut._7
485489 let state = estPut._9
486490 let amDiff = estPut._10
487491 let prDiff = estPut._11
488492 let emitInv = invoke(factoryContract, "emit", [emitLpAmt], nil)
489493 if ((emitInv == emitInv))
490494 then {
491495 let slippageAInv = if ((amDiff > 0))
492496 then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(amId), amDiff)])
493497 else nil
494498 if ((slippageAInv == slippageAInv))
495499 then {
496500 let slippagePInv = if ((prDiff > 0))
497501 then invoke(slipCntr, "put", nil, [AttachedPayment(fromBase58String(prId), prDiff)])
498502 else nil
499503 if ((slippagePInv == slippagePInv))
500504 then {
501505 let lpTrnsfr = if (autoStake)
502506 then {
503507 let slpStakeInv = invoke(stakingCntr, "stake", nil, [AttachedPayment(lpAssetId, emitLpAmt)])
504508 if ((slpStakeInv == slpStakeInv))
505509 then nil
506510 else throw("Strict value is not equal to itself.")
507511 }
508512 else [ScriptTransfer(i.caller, emitLpAmt, lpAssetId)]
509513 (state ++ lpTrnsfr)
510514 }
511515 else throw("Strict value is not equal to itself.")
512516 }
513517 else throw("Strict value is not equal to itself.")
514518 }
515519 else throw("Strict value is not equal to itself.")
516520 }
517521 }
518522 }
519523
520524
521525
522526 @Callable(i)
523527 func putForFree (maxSlippage) = if ((0 > maxSlippage))
524528 then throw("Invalid value passed")
525529 else if ((size(i.payments) != 2))
526530 then throw("exactly 2 payments are expected")
527531 else {
528532 let estPut = commonPut(toString(i.caller), toBase58String(i.transactionId), AttachedPayment(value(i.payments[0]).assetId, value(i.payments[0]).amount), i.payments[1], maxSlippage, false)
529533 estPut._9
530534 }
531535
532536
533537
534538 @Callable(i)
535539 func get () = {
536540 let res = commonGet(i)
537541 let outAmtAmt = res._1
538542 let outPrAmt = res._2
539543 let pmtAmt = res._3
540544 let pmtAssetId = res._4
541545 let state = res._5
542546 let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
543547 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
544548 then state
545549 else throw("Strict value is not equal to itself.")
546550 }
547551
548552
549553
550554 @Callable(i)
551555 func getOneTkn (amAssetSwap,prAssetSwap,outAmount,outAssetId) = if ((size(i.payments) != 1))
552556 then throw("exactly 1 payment is expected")
553557 else {
554558 let cfg = getPoolConfig()
555559 let lpId = cfg[idxLPAsId]
556560 let amId = cfg[idxAmAsId]
557561 let prId = cfg[idxPrAsId]
558562 let amDcm = parseIntValue(cfg[idxAmtAsDcm])
559563 let prDcm = parseIntValue(cfg[idxPriceAsDcm])
560564 let poolStatus = cfg[idxPoolStatus]
561565 if (if ((outAssetId != amId))
562566 then (outAssetId != prId)
563567 else false)
564568 then throw(("Incorrect out asset id passed: " + outAssetId))
565569 else {
566570 let resultAssetId = if ((outAssetId == amId))
567571 then amId
568572 else prId
569573 let resultAmtAmount = if ((outAssetId == amId))
570574 then outAmount
571575 else 0
572576 let resultPrAmount = if ((outAssetId == prId))
573577 then outAmount
574578 else 0
575579 let pmt = value(i.payments[0])
576580 let userAddress = i.caller
577581 let txId58 = toBase58String(i.transactionId)
578582 let pmtAssetId = value(pmt.assetId)
579583 let pmtAmt = pmt.amount
580584 if ((lpId != toBase58String(pmtAssetId)))
581585 then throw("Invalid asset passed.")
582586 else {
583587 let amAssetSwapX18 = toX18(amAssetSwap, amDcm)
584588 let prAssetSwapX18 = toX18(prAssetSwap, prDcm)
585589 let swapPriceX18 = calcPriceBigInt(prAssetSwapX18, amAssetSwapX18)
586590 let r = estimateGetOperation(toBase58String(i.transactionId), toBase58String(pmtAssetId), pmtAmt, i.caller)
587591 let outAmAmt = r._1
588592 let outPrAmt = r._2
589593 let totalR = if ((outAssetId == amId))
590594 then {
591595 let amtAsRes = fromX18(fraction(toX18(outPrAmt, prDcm), scale18, swapPriceX18), amDcm)
592596 (amtAsRes + outAmAmt)
593597 }
594598 else {
595599 let amSwopPartInPriceAsset = (resultPrAmount - outPrAmt)
596600 let convRes = fraction(toX18(amSwopPartInPriceAsset, amDcm), scale18, swapPriceX18)
597601 let prAsRes = fromX18(fraction(toX18(outAmAmt, amDcm), swapPriceX18, scale18), prDcm)
598602 let amAssetDiff = fraction((convRes - amAssetSwapX18), scale8BigInt, amAssetSwapX18)
599603 (prAsRes + outPrAmt)
600604 }
601605 let amBalance = getAccBalance(amId)
602606 let amBalanceX18 = toX18(amBalance, amDcm)
603607 let prBalance = getAccBalance(prId)
604608 let prBalanceX18 = toX18(prBalance, prDcm)
605609 let curPriceX18 = calcPriceBigInt(prBalanceX18, amBalanceX18)
606610 let curPrice = fromX18(curPriceX18, scale8)
607611 let state = [ScriptTransfer(userAddress, totalR, if ((resultAssetId == "WAVES"))
608612 then unit
609613 else fromBase58String(resultAssetId)), StringEntry(keyGetActionByUser(toString(userAddress), txId58), dataGetActionInfo(resultAmtAmount, resultPrAmount, pmtAmt, curPrice, height, lastBlock.timestamp)), IntegerEntry(keyPriceLast(), curPrice), IntegerEntry(keyPriceHistory(height, lastBlock.timestamp), curPrice)]
610614 let burn = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
611615 if ((burn == burn))
612616 then state
613617 else throw("Strict value is not equal to itself.")
614618 }
615619 }
616620 }
617621
618622
619623
620624 @Callable(i)
621625 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
622626 let res = commonGet(i)
623627 let outAmAmt = res._1
624628 let outPrAmt = res._2
625629 let pmtAmt = res._3
626630 let pmtAssetId = res._4
627631 let state = res._5
628632 if ((noLessThenAmtAsset > outAmAmt))
629633 then throw(((("noLessThenAmtAsset failed: " + toString(outAmAmt)) + " < ") + toString(noLessThenAmtAsset)))
630634 else if ((noLessThenPriceAsset > outPrAmt))
631635 then throw(((("noLessThenPriceAsset failed: " + toString(outPrAmt)) + " < ") + toString(noLessThenPriceAsset)))
632636 else {
633637 let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAmt], [AttachedPayment(pmtAssetId, pmtAmt)])
634638 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
635639 then state
636640 else throw("Strict value is not equal to itself.")
637641 }
638642 }
639643
640644
641645
642646 @Callable(i)
643647 func unstakeAndGet (amount) = {
644648 let checkPayments = if ((size(i.payments) != 0))
645649 then throw("No payments are expected")
646650 else true
647651 if ((checkPayments == checkPayments))
648652 then {
649653 let cfg = getPoolConfig()
650654 let factoryCfg = getFactoryConfig()
651655 let lpAssetId = fromBase58String(cfg[idxLPAsId])
652656 let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Error. Incorrect staking address.")
653657 let unstakeInv = invoke(stakingContract, "unstake", [toBase58String(lpAssetId), amount], nil)
654658 if ((unstakeInv == unstakeInv))
655659 then {
656660 let res = estimateGetOperation(toBase58String(i.transactionId), toBase58String(lpAssetId), amount, i.caller)
657661 let poolStatus = parseIntValue(res._9)
658662 let state = res._10
659663 let checkPoolStatus = if (if (isGlobalShutdown())
660664 then true
661665 else (poolStatus == PoolShutdown))
662666 then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus)))
663667 else true
664668 if ((checkPoolStatus == checkPoolStatus))
665669 then {
666670 let burnLPAssetOnFactory = invoke(factoryContract, "burn", [amount], [AttachedPayment(lpAssetId, amount)])
667671 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
668672 then state
669673 else throw("Strict value is not equal to itself.")
670674 }
671675 else throw("Strict value is not equal to itself.")
672676 }
673677 else throw("Strict value is not equal to itself.")
674678 }
675679 else throw("Strict value is not equal to itself.")
676680 }
677681
678682
679683
680684 @Callable(i)
681685 func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract)))
682686 then throw("permissions denied")
683687 else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success")
684688
685689
686690
687691 @Callable(i)
688692 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, getPoolConfig())
689693
690694
691695
692696 @Callable(i)
693697 func getAccBalanceWrapperREADONLY (assetId) = $Tuple2(nil, getAccBalance(assetId))
694698
695699
696700
697701 @Callable(i)
698702 func calcPricesWrapperREADONLY (amAmt,prAmt,lpAmt) = {
699703 let prices = calcPrices(amAmt, prAmt, lpAmt)
700704 $Tuple2(nil, [toString(prices[0]), toString(prices[1]), toString(prices[2])])
701705 }
702706
703707
704708
705709 @Callable(i)
706710 func fromX18WrapperREADONLY (val,resultScaleMult) = $Tuple2(nil, fromX18(parseBigIntValue(val), resultScaleMult))
707711
708712
709713
710714 @Callable(i)
711715 func toX18WrapperREADONLY (origVal,origScaleMult) = $Tuple2(nil, toString(toX18(origVal, origScaleMult)))
712716
713717
714718
715719 @Callable(i)
716720 func calcPriceBigIntWrapperREADONLY (prAmtX18,amAmtX18) = $Tuple2(nil, toString(calcPriceBigInt(parseBigIntValue(prAmtX18), parseBigIntValue(amAmtX18))))
717721
718722
719723
720724 @Callable(i)
721725 func estimatePutOperationWrapperREADONLY (txId58,slippage,inAmAmt,inAmId,inPrAmt,inPrId,userAddress,isEvaluate,emitLp) = $Tuple2(nil, estimatePutOperation(txId58, slippage, inAmAmt, inAmId, inPrAmt, inPrId, userAddress, isEvaluate, emitLp))
722726
723727
724728
725729 @Callable(i)
726730 func estimateGetOperationWrapperREADONLY (txId58,pmtAssetId,pmtLpAmt,userAddress) = {
727731 let res = estimateGetOperation(txId58, pmtAssetId, pmtLpAmt, addressFromStringValue(userAddress))
728732 $Tuple2(nil, $Tuple10(res._1, res._2, res._3, res._4, res._5, res._6, res._7, toString(res._8), res._9, res._10))
729733 }
730734
731735
732736 @Verifier(tx)
733737 func verify () = match tx {
734738 case order: Order =>
735739 let matcherPub = getMatcherPubOrFail()
736740 let orderValid = validateMatcherOrderAllowed(order)
737741 let senderValid = sigVerify(order.bodyBytes, order.proofs[0], order.senderPublicKey)
738742 let matcherValid = sigVerify(order.bodyBytes, order.proofs[1], matcherPub)
739743 if (if (if (orderValid)
740744 then senderValid
741745 else false)
742746 then matcherValid
743747 else false)
744748 then true
745749 else throwOrderError(orderValid, senderValid, matcherValid)
746750 case _ =>
747751 let managerPublic = valueOrElse(getString(this, keyManagerPublicKey()), EMPTY)
748752 if ((managerPublic == EMPTY))
749753 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
750754 else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(managerPublic))
751755 }
752756

github/deemru/w8io/026f985 
77.55 ms