tx · Bm2FdP5GGNUpS4kh28FQvstAUMvCTzJX4SqmbXHNa277

3MzoZ6gnDM9qSxg2ftvW4rF33zmJpb9ixNV:  -0.01400000 Waves

2021.10.07 14:36 [1735757] smart account 3MzoZ6gnDM9qSxg2ftvW4rF33zmJpb9ixNV > SELF 0.00000000 Waves

{ "type": 13, "id": "Bm2FdP5GGNUpS4kh28FQvstAUMvCTzJX4SqmbXHNa277", "fee": 1400000, "feeAssetId": null, "timestamp": 1633606579187, "version": 1, "sender": "3MzoZ6gnDM9qSxg2ftvW4rF33zmJpb9ixNV", "senderPublicKey": "C9aea3348FuUd2jm6XyHmf4axpvkSQ57q2FNjZDmdisb", "proofs": [ "5VktwfJPEYEoHvyX69pWjgUjGoAkLTYuFSeoAEi1UBrhiW3eUFvBpEhYoCWqzpH3Ts3ezgFBU3fHM4UayfZxw8Cm" ], "script": "base64:AAIFAAAAAAAAADUIAhIECgIICBIECgIBBBIAEgASBAoCAQESBAoCCAgSABIFCgMBAQgSBQoDAQEIEgUKAwgBCAAAADwAAAAACmxQZGVjaW1hbHMAAAAAAAAAAAgAAAAABnNjYWxlOAAAAAAABfXhAAAAAAAMc2NhbGU4QmlnSW50CQABNgAAAAEAAAAAAAX14QAAAAAAB3NjYWxlMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAAAAAAKUG9vbEFjdGl2ZQAAAAAAAAAAAQAAAAAPUG9vbFB1dERpc2FibGVkAAAAAAAAAAACAAAAABNQb29sTWF0Y2hlckRpc2FibGVkAAAAAAAAAAADAAAAAAxQb29sU2h1dGRvd24AAAAAAAAAAAQAAAAADmlkeFBvb2xBZGRyZXNzAAAAAAAAAAABAAAAAA1pZHhQb29sU3RhdHVzAAAAAAAAAAACAAAAABBpZHhQb29sTFBBc3NldElkAAAAAAAAAAADAAAAAA1pZHhBbXRBc3NldElkAAAAAAAAAAAEAAAAAA9pZHhQcmljZUFzc2V0SWQAAAAAAAAA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AAAA9zZW5kZXJQdWJsaWNLZXkHBAAAAA1tYW5hZ2VyUHVibGljCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMJAQAAABNrZXlNYW5hZ2VyUHVibGljS2V5AAAAAAUAAAAFRU1QVFkDCQAAAAAAAAIFAAAADW1hbmFnZXJQdWJsaWMFAAAABUVNUFRZCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQUAAAANbWFuYWdlclB1YmxpY+ZXiv8=", "chainId": 84, "height": 1735757, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EqARLALcneZXEm7D1JG4yAg7anMdxnAgg2uJK71KQUWE Next: none Diff:
OldNewDifferences
427427
428428 @Callable(i)
429429 func putForFree () = {
430- let actions = commonPut(i, 0, false)
430+ let actions = commonPut(i, 1, false)
431431 actions._3
432432 }
433433
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 SEP = "__"
1313
1414 let EMPTY = ""
1515
1616 let PoolActive = 1
1717
1818 let PoolPutDisabled = 2
1919
2020 let PoolMatcherDisabled = 3
2121
2222 let PoolShutdown = 4
2323
2424 let idxPoolAddress = 1
2525
2626 let idxPoolStatus = 2
2727
2828 let idxPoolLPAssetId = 3
2929
3030 let idxAmtAssetId = 4
3131
3232 let idxPriceAssetId = 5
3333
3434 let idxAmtAssetDcm = 6
3535
3636 let idxPriceAssetDcm = 7
3737
3838 let idxIAmtAssetId = 8
3939
4040 let idxIPriceAssetId = 9
4141
4242 let idxLPAssetDcm = 10
4343
4444 let idxPoolAmtAssetAmt = 1
4545
4646 let idxPoolPriceAssetAmt = 2
4747
4848 let idxPoolLPAssetAmt = 3
4949
5050 let idxFactoryStakingContract = 1
5151
5252 let idxFactorySlippageContract = 7
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 keyFactoryContract () = "%s__factoryContract"
6464
6565
6666 func keyManagerPublicKey () = "%s__managerPublicKey"
6767
6868
6969 func keyPriceLast () = "%s%s__price__last"
7070
7171
7272 func keyPriceHistory (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP)
7373
7474
7575 func keyPutActionByUser (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId)
7676
7777
7878 func keyGetActionByUser (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId)
7979
8080
8181 func keyAmtAsset () = "%s__amountAsset"
8282
8383
8484 func keyPriceAsset () = "%s__priceAsset"
8585
8686
8787 func keyKHistoric (h,timestamp) = makeString(["%s%s%d%d__K_history", toString(h), toString(timestamp)], SEP)
8888
8989
9090 func keyFactoryConfig () = "%s__factoryConfig"
9191
9292
9393 func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
9494
9595
9696 func keyPoolConfig (iAmtAsset,iPriceAsset) = (((("%d%d%s__" + iAmtAsset) + "__") + iPriceAsset) + "__config")
9797
9898
9999 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
100100
101101
102102 func keyAllPoolsShutdown () = "%s__shutdown"
103103
104104
105105 func keyPoolWeight (contractAddress) = ("%s%s__poolWeight__" + contractAddress)
106106
107107
108108 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
109109
110110
111111 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
112112
113113
114114 let factoryContract = addressFromStringValue(getStringOrFail(this, keyFactoryContract()))
115115
116116 func isGlobalShutdown () = valueOrElse(getBoolean(factoryContract, keyAllPoolsShutdown()), false)
117117
118118
119119 func getPoolConfig () = {
120120 let amtAsset = getStringOrFail(this, keyAmtAsset())
121121 let priceAsset = getStringOrFail(this, keyPriceAsset())
122122 let iPriceAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAsset))
123123 let iAmtAsset = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAsset))
124124 split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAsset), toString(iPriceAsset))), SEP)
125125 }
126126
127127
128128 func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP)
129129
130130
131131 func dataPutActionInfo (inAmtAssetAmt,inPriceAssetAmt,outLpAmt,price,slippageTolerancePassedByUser,slippageToleranceReal,txHeight,txTimestamp,slipageAmtAssetAmt,slipagePriceAssetAmt) = makeString(["%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)
132132
133133
134134 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)
135135
136136
137137 func getAccBalance (assetId) = if ((assetId == "WAVES"))
138138 then wavesBalance(this).available
139139 else assetBalance(this, fromBase58String(assetId))
140140
141141
142142 func calcPriceBigInt (priceAssetLockedAmt,amtAssetlLockedAmt,resultScale) = fraction(priceAssetLockedAmt, resultScale, amtAssetlLockedAmt)
143143
144144
145145 func privateCalcPrice (amtAssetDcm,priceAssetDcm,amtAssetAmt,priceAssetAmt) = {
146146 let amtAssetAmtX18 = toX18(amtAssetAmt, amtAssetDcm)
147147 let priceAssetAmtX18 = toX18(priceAssetAmt, priceAssetDcm)
148148 toInt(calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18, scale8BigInt))
149149 }
150150
151151
152152 func calcPrices (amtAssetAmt,priceAssetAmt,lpAmt) = {
153153 let cfg = getPoolConfig()
154154 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
155155 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
156156 let poolPrice = privateCalcPrice(amtAssetDcm, priceAssetDcm, amtAssetAmt, priceAssetAmt)
157157 let amtAssetAmtX18 = toX18(amtAssetAmt, amtAssetDcm)
158158 let priceAssetAmtX18 = toX18(priceAssetAmt, priceAssetDcm)
159159 let lpAmtX18 = toX18(lpAmt, scale8)
160160 let lpPriceInAmtAsset = toInt(calcPriceBigInt(amtAssetAmtX18, lpAmtX18, scale8BigInt))
161161 let lpPriceInPriceAsset = toInt(calcPriceBigInt(priceAssetAmtX18, lpAmtX18, scale8BigInt))
162162 [poolPrice, lpPriceInAmtAsset, lpPriceInPriceAsset]
163163 }
164164
165165
166166 func estimateGetOperation (paymentLpAssetId,paymentLpAmt,userAddress) = {
167167 let poolConfigList = getPoolConfig()
168168 let lpAssetId = poolConfigList[idxPoolLPAssetId]
169169 let amtAssetId = poolConfigList[idxAmtAssetId]
170170 let priceAssetId = poolConfigList[idxPriceAssetId]
171171 let iAmtAssetId = poolConfigList[idxIAmtAssetId]
172172 let iPriceAssetId = poolConfigList[idxIPriceAssetId]
173173 let amtAssetDcm = parseIntValue(poolConfigList[idxAmtAssetDcm])
174174 let priceAssetDcm = parseIntValue(poolConfigList[idxPriceAssetDcm])
175175 let poolStatus = poolConfigList[idxPoolStatus]
176176 let poolLPBalance = valueOrErrorMessage(assetInfo(fromBase58String(lpAssetId)), (("Asset " + lpAssetId) + " doesn't exist")).quantity
177177 if ((lpAssetId != paymentLpAssetId))
178178 then throw("Invalid asset passed.")
179179 else {
180180 let amtAssetBalance = getAccBalance(amtAssetId)
181181 let amtAssetBalanceX18 = toX18(amtAssetBalance, amtAssetDcm)
182182 let priceAssetBalance = getAccBalance(priceAssetId)
183183 let priceAssetBalanceX18 = toX18(priceAssetBalance, priceAssetDcm)
184184 let curPrice = toInt(calcPriceBigInt(priceAssetBalanceX18, amtAssetBalanceX18, scale8BigInt))
185185 let paymentLpAmtX18 = toX18(paymentLpAmt, scale8)
186186 let poolLPBalanceX18 = toX18(poolLPBalance, scale8)
187187 let outAmtAssetAmt = fraction(amtAssetBalanceX18, paymentLpAmtX18, poolLPBalanceX18)
188188 let outPriceAssetAmt = fraction(priceAssetBalanceX18, paymentLpAmtX18, poolLPBalanceX18)
189189 let outAmtAssetAmtFinal = fromX18(outAmtAssetAmt, amtAssetDcm)
190190 let outPriceAssetAmtFinal = fromX18(outPriceAssetAmt, priceAssetDcm)
191191 $Tuple11(outAmtAssetAmtFinal, outPriceAssetAmtFinal, iAmtAssetId, iPriceAssetId, amtAssetId, priceAssetId, amtAssetBalance, priceAssetBalance, poolLPBalance, curPrice, poolStatus)
192192 }
193193 }
194194
195195
196196 func estimatePutOperation (slippageTolerance,inAmtAssetAmt,inAmtAssetId,inPriceAssetAmt,inPriceAssetId,userAddress,isEvaluate) = {
197197 let cfg = getPoolConfig()
198198 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
199199 let amtAssetId = cfg[idxAmtAssetId]
200200 let priceAssetId = cfg[idxPriceAssetId]
201201 let iAmtAssetId = cfg[idxIAmtAssetId]
202202 let iPriceAssetId = cfg[idxIPriceAssetId]
203203 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
204204 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
205205 let poolStatus = cfg[idxPoolStatus]
206206 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
207207 if (if ((amtAssetId != inAmtAssetId))
208208 then true
209209 else (priceAssetId != inPriceAssetId))
210210 then throw("Invalid amt or price asset passed.")
211211 else {
212212 let accAmtAssetBalance = if (isEvaluate)
213213 then getAccBalance(amtAssetId)
214214 else (getAccBalance(amtAssetId) - inAmtAssetAmt)
215215 let accPriceAssetBalance = if (isEvaluate)
216216 then getAccBalance(priceAssetId)
217217 else (getAccBalance(priceAssetId) - inPriceAssetAmt)
218218 let inAmtAssetAmtX18 = toX18(inAmtAssetAmt, amtAssetDcm)
219219 let inPriceAssetAmtX18 = toX18(inPriceAssetAmt, priceAssetDcm)
220220 let userPrice = toInt(calcPriceBigInt(inPriceAssetAmtX18, inAmtAssetAmtX18, scale8BigInt))
221221 let accAmtAssetBalanceX18 = toX18(accAmtAssetBalance, amtAssetDcm)
222222 let accPriceAssetBalanceX18 = toX18(accPriceAssetBalance, priceAssetDcm)
223223 let curPrice = if ((poolLPBalance == 0))
224224 then 0
225225 else toInt(calcPriceBigInt(accPriceAssetBalanceX18, accAmtAssetBalanceX18, scale8BigInt))
226226 let slippage = if ((curPrice == 0))
227227 then 0
228228 else if ((curPrice > userPrice))
229229 then fraction((curPrice - userPrice), scale8, curPrice)
230230 else fraction((userPrice - curPrice), scale8, curPrice)
231231 if (if ((curPrice != 0))
232232 then (slippage > slippageTolerance)
233233 else false)
234234 then throw(((("Price slippage " + toString(slippage)) + " exceeded the passed limit of ") + toString(slippageTolerance)))
235235 else {
236236 let res = if ((poolLPBalance == 0))
237237 then {
238238 let lpResultBuf = pow((inAmtAssetAmtX18 * inPriceAssetAmtX18), 0, toBigInt(5), 1, 0, DOWN)
239239 $Tuple4(fromX18(lpResultBuf, scale8), fromX18(inAmtAssetAmtX18, amtAssetDcm), fromX18(inPriceAssetAmtX18, priceAssetDcm), toInt(calcPriceBigInt((accPriceAssetBalanceX18 + inPriceAssetAmtX18), (accAmtAssetBalanceX18 + inAmtAssetAmtX18), scale8BigInt)))
240240 }
241241 else {
242242 let poolLPBalanceX18 = toX18(poolLPBalance, scale8)
243243 let curPriceX18 = toX18(curPrice, scale8)
244244 let pEqByA = fraction(curPriceX18, inAmtAssetAmtX18, scale18)
245245 let resAssetsToPut = if ((pEqByA > inPriceAssetAmtX18))
246246 then $Tuple2(fraction(inPriceAssetAmtX18, scale18, curPriceX18), inPriceAssetAmtX18)
247247 else $Tuple2(inAmtAssetAmtX18, pEqByA)
248248 let lpResult = fromX18(fraction(poolLPBalanceX18, resAssetsToPut._2, accPriceAssetBalanceX18), scale8)
249249 $Tuple4(lpResult, fromX18(resAssetsToPut._1, amtAssetDcm), fromX18(resAssetsToPut._2, priceAssetDcm), toInt(calcPriceBigInt((accPriceAssetBalanceX18 + resAssetsToPut._2), (accAmtAssetBalanceX18 + resAssetsToPut._1), scale8BigInt)))
250250 }
251251 if ((0 >= res._1))
252252 then throw("Invalid calculations. LP calculated is less than zero.")
253253 else $Tuple12(res._1, res._4, accAmtAssetBalance, accPriceAssetBalance, poolLPBalance, iAmtAssetId, iPriceAssetId, lpAssetId, slippage, poolStatus, res._2, res._3)
254254 }
255255 }
256256 }
257257
258258
259259 func validateMatcherOrderAllowed (order) = {
260260 let cfg = getPoolConfig()
261261 let amtAssetId = cfg[idxAmtAssetId]
262262 let priceAssetId = cfg[idxPriceAssetId]
263263 let poolStatus = parseIntValue(cfg[idxPoolStatus])
264264 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
265265 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
266266 let accAmtAssetBalance = getAccBalance(amtAssetId)
267267 let accPriceAssetBalance = getAccBalance(priceAssetId)
268268 let curPrice = if ((order.orderType == Buy))
269269 then privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance + order.amount), accPriceAssetBalance)
270270 else privateCalcPrice(amtAssetDcm, priceAssetDcm, (accAmtAssetBalance - order.amount), accPriceAssetBalance)
271271 if (if (if (isGlobalShutdown())
272272 then true
273273 else (poolStatus == PoolMatcherDisabled))
274274 then true
275275 else (poolStatus == PoolShutdown))
276276 then throw("Exchange operations disabled")
277277 else {
278278 let orderAmtAsset = order.assetPair.amountAsset
279279 let orderAmtAssetStr = if ((orderAmtAsset == unit))
280280 then "WAVES"
281281 else toBase58String(value(orderAmtAsset))
282282 let orderPriceAsset = order.assetPair.priceAsset
283283 let orderPriceAssetStr = if ((orderPriceAsset == unit))
284284 then "WAVES"
285285 else toBase58String(value(orderPriceAsset))
286286 if (if ((orderAmtAssetStr != amtAssetId))
287287 then true
288288 else (orderPriceAssetStr != priceAssetId))
289289 then throw("Wrong order assets.")
290290 else {
291291 let orderPrice = order.price
292292 let priceDcm = fraction(scale8, priceAssetDcm, amtAssetDcm)
293293 let castedOrderPrice = toScale(orderPrice, scale8, priceDcm)
294294 let isOrderPriceValid = if ((order.orderType == Buy))
295295 then (curPrice >= castedOrderPrice)
296296 else (castedOrderPrice >= curPrice)
297297 if (!(isOrderPriceValid))
298298 then throw(((("Order price leads to K decrease. castedOrderPrice=" + toString(castedOrderPrice)) + " curPrice=") + toString(curPrice)))
299299 else true
300300 }
301301 }
302302 }
303303
304304
305305 func commonGet (i) = {
306306 let pmtAmtAsset = value(i.payments[0])
307307 let pmtAssetId = value(pmtAmtAsset.assetId)
308308 let pmtAssetAmt = pmtAmtAsset.amount
309309 let res = estimateGetOperation(toBase58String(pmtAssetId), pmtAssetAmt, toString(i.caller))
310310 let outAmtAssetAmt = res._1
311311 let outPriceAssetAmt = res._2
312312 let iAmtAssetId = res._3
313313 let iPriceAssetId = res._4
314314 let amtAssetId = res._5
315315 let priceAssetId = res._6
316316 let poolAmtAssetBalance = res._7
317317 let poolPriceAssetBalance = res._8
318318 let poolLPBalance = res._9
319319 let curPrice = res._10
320320 let poolStatus = parseIntValue(res._11)
321321 if (if (isGlobalShutdown())
322322 then true
323323 else (poolStatus == PoolShutdown))
324324 then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus)))
325325 else $Tuple5(outAmtAssetAmt, outPriceAssetAmt, pmtAssetAmt, pmtAssetId, [ScriptTransfer(i.caller, outAmtAssetAmt, if ((amtAssetId == "WAVES"))
326326 then unit
327327 else fromBase58String(amtAssetId)), ScriptTransfer(i.caller, outPriceAssetAmt, if ((priceAssetId == "WAVES"))
328328 then unit
329329 else fromBase58String(priceAssetId)), StringEntry(keyGetActionByUser(toString(i.caller), toBase58String(i.transactionId)), dataGetActionInfo(outAmtAssetAmt, outPriceAssetAmt, pmtAssetAmt, curPrice, height, lastBlock.timestamp)), StringEntry(keyPriceLast(), ("%s__" + toString(curPrice))), StringEntry(keyPriceHistory(height, lastBlock.timestamp), ("%s__" + toString(curPrice)))])
330330 }
331331
332332
333333 func commonPut (i,slippageTolerance,emitLp) = {
334334 let pmtAmtAsset = value(i.payments[0])
335335 let inAmtAssetAmt = pmtAmtAsset.amount
336336 let inAmtAssetId = if (!(isDefined(pmtAmtAsset.assetId)))
337337 then fromBase58String("WAVES")
338338 else value(pmtAmtAsset.assetId)
339339 let pmtPriceAsset = value(i.payments[1])
340340 let inPriceAssetAmt = pmtPriceAsset.amount
341341 let inPriceAssetId = if (!(isDefined(pmtPriceAsset.assetId)))
342342 then fromBase58String("WAVES")
343343 else value(pmtPriceAsset.assetId)
344344 let estPut = estimatePutOperation(slippageTolerance, inAmtAssetAmt, toBase58String(inAmtAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller), false)
345345 let outLpAmt = estPut._1
346346 let curPrice = estPut._2
347347 let poolAmtAssetBalance = estPut._3
348348 let poolPriceAssetBalance = estPut._4
349349 let poolLPBalance = estPut._5
350350 let iAmtAssetId = estPut._6
351351 let iPriceAssetId = estPut._7
352352 let lpAssetId = estPut._8
353353 let slippageCalc = estPut._9
354354 let poolStatus = parseIntValue(estPut._10)
355355 let realAmtAssetIn = estPut._11
356356 let realPriceAssetIn = estPut._12
357357 if (if (if (isGlobalShutdown())
358358 then true
359359 else (poolStatus == PoolPutDisabled))
360360 then true
361361 else (poolStatus == PoolShutdown))
362362 then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus)))
363363 else {
364364 let lpAmtToEmit = if (!(emitLp))
365365 then 0
366366 else outLpAmt
367367 let diffInAmtAsset = (inAmtAssetAmt - realAmtAssetIn)
368368 let diffInPriceAsset = (inPriceAssetAmt - realPriceAssetIn)
369369 let dataStateWrite = [StringEntry(keyPriceLast(), ("%s__" + toString(curPrice))), StringEntry(keyPriceHistory(height, lastBlock.timestamp), ("%s__" + toString(curPrice))), StringEntry(keyPutActionByUser(toString(i.caller), toBase58String(i.transactionId)), dataPutActionInfo(realAmtAssetIn, realPriceAssetIn, lpAmtToEmit, curPrice, slippageTolerance, slippageCalc, height, lastBlock.timestamp, diffInAmtAsset, diffInPriceAsset))]
370370 $Tuple9(lpAmtToEmit, lpAssetId, dataStateWrite, inAmtAssetAmt, realAmtAssetIn, inPriceAssetAmt, realPriceAssetIn, pmtAmtAsset.assetId, pmtPriceAsset.assetId)
371371 }
372372 }
373373
374374
375375 @Callable(i)
376376 func constructor (factoryContract,managerPublicKey) = if ((i.caller != this))
377377 then throw("permissions denied")
378378 else [StringEntry(keyFactoryContract(), factoryContract), StringEntry(keyManagerPublicKey(), managerPublicKey)]
379379
380380
381381
382382 @Callable(i)
383383 func put (slippageTolerance,shouldAutoStake) = {
384384 let factoryCfg = getFactoryConfig()
385385 let stakingContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactoryStakingContract]), "Error. Incorrect staking address.")
386386 let slippageContract = valueOrErrorMessage(addressFromString(factoryCfg[idxFactorySlippageContract]), "Error. Incorrect slippage contract address.")
387387 let actions = commonPut(i, slippageTolerance, true)
388388 let amtToEmit = actions._1
389389 let lpAssetId = actions._2
390390 let state = actions._3
391391 let inAmt = actions._4
392392 let realInAmt = actions._5
393393 let inPrice = actions._6
394394 let realInPrice = actions._7
395395 let amId = actions._8
396396 let prId = actions._9
397397 let diffInAmtAsset = (inAmt - realInAmt)
398398 let diffInPriceAsset = (inPrice - realInPrice)
399399 let emitInv = invoke(factoryContract, "emit", [amtToEmit], nil)
400400 if ((emitInv == emitInv))
401401 then {
402402 let slippageAInv = if ((inAmt > realInAmt))
403403 then invoke(slippageContract, "put", nil, [AttachedPayment(amId, diffInAmtAsset)])
404404 else nil
405405 if ((slippageAInv == slippageAInv))
406406 then {
407407 let slippagePInv = if ((inPrice > realInPrice))
408408 then invoke(slippageContract, "put", nil, [AttachedPayment(prId, diffInPriceAsset)])
409409 else nil
410410 if ((slippagePInv == slippagePInv))
411411 then {
412412 let lpStakeInv = if (shouldAutoStake)
413413 then invoke(stakingContract, "stake", nil, [AttachedPayment(lpAssetId, amtToEmit)])
414414 else nil
415415 if ((lpStakeInv == lpStakeInv))
416416 then (state :+ ScriptTransfer(i.caller, amtToEmit, lpAssetId))
417417 else throw("Strict value is not equal to itself.")
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 @Callable(i)
429429 func putForFree () = {
430- let actions = commonPut(i, 0, false)
430+ let actions = commonPut(i, 1, false)
431431 actions._3
432432 }
433433
434434
435435
436436 @Callable(i)
437437 func get () = {
438438 let res = commonGet(i)
439439 let outAmtAssetAmt = res._1
440440 let outPriceAssetAmt = res._2
441441 let pmtAssetAmt = res._3
442442 let pmtAssetId = res._4
443443 let actions = res._5
444444 let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAssetAmt], [AttachedPayment(pmtAssetId, pmtAssetAmt)])
445445 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
446446 then actions
447447 else throw("Strict value is not equal to itself.")
448448 }
449449
450450
451451
452452 @Callable(i)
453453 func getNoLess (noLessThenAmtAsset,noLessThenPriceAsset) = {
454454 let res = commonGet(i)
455455 let outAmtAssetAmt = res._1
456456 let outPriceAssetAmt = res._2
457457 let pmtAssetAmt = res._3
458458 let pmtAssetId = res._4
459459 let actions = res._5
460460 if ((noLessThenAmtAsset > outAmtAssetAmt))
461461 then throw(((("noLessThenAmtAsset failed: " + toString(outAmtAssetAmt)) + " < ") + toString(noLessThenAmtAsset)))
462462 else if ((noLessThenPriceAsset > outPriceAssetAmt))
463463 then throw(((("noLessThenPriceAsset failed: " + toString(outPriceAssetAmt)) + " < ") + toString(noLessThenPriceAsset)))
464464 else {
465465 let burnLPAssetOnFactory = invoke(factoryContract, "burn", [pmtAssetAmt], [AttachedPayment(pmtAssetId, pmtAssetAmt)])
466466 if ((burnLPAssetOnFactory == burnLPAssetOnFactory))
467467 then actions
468468 else throw("Strict value is not equal to itself.")
469469 }
470470 }
471471
472472
473473
474474 @Callable(i)
475475 func activate (amtAssetStr,priceAssetStr) = if ((toString(i.caller) != toString(factoryContract)))
476476 then throw("permissions denied")
477477 else $Tuple2([StringEntry(keyAmtAsset(), amtAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], "success")
478478
479479
480480
481481 @Callable(i)
482482 func statsREADONLY () = {
483483 let cfg = getPoolConfig()
484484 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
485485 let amtAssetId = cfg[idxAmtAssetId]
486486 let priceAssetId = cfg[idxPriceAssetId]
487487 let iAmtAssetId = cfg[idxIAmtAssetId]
488488 let iPriceAssetId = cfg[idxIPriceAssetId]
489489 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
490490 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
491491 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
492492 let accAmtAssetBalance = getAccBalance(amtAssetId)
493493 let accPriceAssetBalance = getAccBalance(priceAssetId)
494494 let pricesList = calcPrices(accAmtAssetBalance, accPriceAssetBalance, poolLPBalance)
495495 let curPrice = pricesList[0]
496496 let lpAmtAssetShare = pricesList[1]
497497 let lpPriceAssetShare = pricesList[2]
498498 let poolWeight = value(getInteger(factoryContract, keyPoolWeight(toString(this))))
499499 $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))
500500 }
501501
502502
503503
504504 @Callable(i)
505505 func evaluatePutByAmtAssetREADONLY (slippageTolerance,inAmtAssetAmt,userAddress) = {
506506 let cfg = getPoolConfig()
507507 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
508508 let amtAssetId = cfg[idxAmtAssetId]
509509 let priceAssetId = cfg[idxPriceAssetId]
510510 let iAmtAssetId = cfg[idxIAmtAssetId]
511511 let iPriceAssetId = cfg[idxIPriceAssetId]
512512 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
513513 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
514514 let poolStatus = cfg[idxPoolStatus]
515515 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
516516 let accAmtAssetBalance = getAccBalance(amtAssetId)
517517 let accPriceAssetBalance = getAccBalance(priceAssetId)
518518 let amtAssetAmtX18 = toX18(accAmtAssetBalance, amtAssetDcm)
519519 let priceAssetAmtX18 = toX18(accPriceAssetBalance, priceAssetDcm)
520520 let curPriceX18 = if ((poolLPBalance == 0))
521521 then toBigInt(0)
522522 else calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18, scale18)
523523 let inAmtAssetAmtX18 = toX18(inAmtAssetAmt, amtAssetDcm)
524524 let inPriceAssetAmtX18 = fraction(inAmtAssetAmtX18, curPriceX18, scale18)
525525 let inPriceAssetAmt = fromX18(inPriceAssetAmtX18, priceAssetDcm)
526526 let estimatedPutResults = estimatePutOperation(slippageTolerance, inAmtAssetAmt, amtAssetId, inPriceAssetAmt, priceAssetId, userAddress, true)
527527 let outLpAmtCalc = estimatedPutResults._1
528528 let curPriceCalc = estimatedPutResults._2
529529 let poolAmtAssetBalanceCalc = estimatedPutResults._3
530530 let poolPriceAssetBalanceCAlc = estimatedPutResults._4
531531 let poolLPBalanceCalc = estimatedPutResults._5
532532 let poolStatusCalc = parseIntValue(estimatedPutResults._10)
533533 $Tuple2(nil, makeString(["%d%d%d%d%d%d", toString(outLpAmtCalc), toString(fromX18(curPriceX18, scale8)), toString(poolAmtAssetBalanceCalc), toString(poolPriceAssetBalanceCAlc), toString(poolLPBalanceCalc), toString(poolStatusCalc)], SEP))
534534 }
535535
536536
537537
538538 @Callable(i)
539539 func evaluatePutByPriceAssetREADONLY (slippageTolerance,inPriceAssetAmt,userAddress) = {
540540 let cfg = getPoolConfig()
541541 let lpAssetId = fromBase58String(cfg[idxPoolLPAssetId])
542542 let amtAssetId = cfg[idxAmtAssetId]
543543 let priceAssetId = cfg[idxPriceAssetId]
544544 let iAmtAssetId = cfg[idxIAmtAssetId]
545545 let iPriceAssetId = cfg[idxIPriceAssetId]
546546 let amtAssetDcm = parseIntValue(cfg[idxAmtAssetDcm])
547547 let priceAssetDcm = parseIntValue(cfg[idxPriceAssetDcm])
548548 let poolStatus = cfg[idxPoolStatus]
549549 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
550550 let accAmtAssetBalance = getAccBalance(amtAssetId)
551551 let accPriceAssetBalance = getAccBalance(priceAssetId)
552552 let amtAssetAmtX18 = toX18(accAmtAssetBalance, amtAssetDcm)
553553 let priceAssetAmtX18 = toX18(accPriceAssetBalance, priceAssetDcm)
554554 let curPriceX18 = if ((poolLPBalance == 0))
555555 then toBigInt(0)
556556 else calcPriceBigInt(priceAssetAmtX18, amtAssetAmtX18, scale18)
557557 let inPriceAssetAmtX18 = toX18(inPriceAssetAmt, priceAssetDcm)
558558 let inAmtAssetAmtX18 = fraction(inPriceAssetAmtX18, scale18, curPriceX18)
559559 let inAmtAssetAmt = fromX18(inAmtAssetAmtX18, amtAssetDcm)
560560 let estimatedPutResults = estimatePutOperation(slippageTolerance, inAmtAssetAmt, amtAssetId, inPriceAssetAmt, priceAssetId, userAddress, true)
561561 let outLpAmtCalc = estimatedPutResults._1
562562 let curPriceCalc = estimatedPutResults._2
563563 let poolAmtAssetBalanceCalc = estimatedPutResults._3
564564 let poolPriceAssetBalanceCAlc = estimatedPutResults._4
565565 let poolLPBalanceCalc = estimatedPutResults._5
566566 let poolStatusCalc = parseIntValue(estimatedPutResults._10)
567567 $Tuple2(nil, makeString(["%d%d%d%d%d%d", toString(outLpAmtCalc), toString(fromX18(curPriceX18, scale8)), toString(poolAmtAssetBalanceCalc), toString(poolPriceAssetBalanceCAlc), toString(poolLPBalanceCalc), toString(poolStatusCalc)], SEP))
568568 }
569569
570570
571571
572572 @Callable(i)
573573 func evaluateGetREADONLY (paymentLpAssetId,paymentLpAmt,userAddress) = {
574574 let res = estimateGetOperation(paymentLpAssetId, paymentLpAmt, userAddress)
575575 let outAmtAssetAmt = res._1
576576 let outPriceAssetAmt = res._2
577577 let poolAmtAssetBalance = res._7
578578 let poolPriceAssetBalance = res._8
579579 let poolLPBalance = res._9
580580 let curPrice = res._10
581581 let poolStatus = parseIntValue(res._11)
582582 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmtAssetAmt), toString(outPriceAssetAmt), toString(poolAmtAssetBalance), toString(poolPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(poolStatus)], SEP))
583583 }
584584
585585
586586 @Verifier(tx)
587587 func verify () = match tx {
588588 case order: Order =>
589589 if (validateMatcherOrderAllowed(order))
590590 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
591591 else false
592592 case _ =>
593593 let managerPublic = valueOrElse(getString(this, keyManagerPublicKey()), EMPTY)
594594 if ((managerPublic == EMPTY))
595595 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
596596 else sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(managerPublic))
597597 }
598598

github/deemru/w8io/169f3d6 
67.43 ms