tx · FAoAVBi9owRmRgm78qczqv85PriKWz6hhF8W1we78j1m 3Mu1HbpAbcgSTDLftXUZXYZDdyXBU1HeEKz: -0.05000000 Waves 2021.08.25 09:51 [1673514] smart account 3Mu1HbpAbcgSTDLftXUZXYZDdyXBU1HeEKz > SELF 0.00000000 Waves
{ "type": 13, "id": "FAoAVBi9owRmRgm78qczqv85PriKWz6hhF8W1we78j1m", "fee": 5000000, "feeAssetId": null, "timestamp": 1629874333710, "version": 2, "chainId": 84, "sender": "3Mu1HbpAbcgSTDLftXUZXYZDdyXBU1HeEKz", "senderPublicKey": "7Vn6fEvwb5WVoQmeMMtTH5ghWBZFoUzV4iX5qfqnTWMU", "proofs": [ "4tqA8cuMBKknot3FWFqCFF8uU5WGGxBWUe9ERHcqis7xLDG7fg1FbYZDrYaicgykWh2rXiYL8hjnfiDSR81XM3qS" ], "script": "base64:AAIFAAAAAAAAABIIAhIDCgEBEgASBwoFCAgICAEAAAA5AAAAAApsUGRlY2ltYWxzAAAAAAAAAAAIAAAAABFkZWNpbWFsc011bHRQcmljZQkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAA+gAAAAAAAAAA+gAAAAAA1NFUAIAAAACX18AAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNhYmxlZAAAAAAAAAAAAgAAAAATUG9vbE1hdGNoZXJEaXNhYmxlZAAAAAAAAAAAAwAAAAAMUG9vbFNodXRkb3duAAAAAAAAAAAEAAAAAAxidXlPcmRlclR5cGUAAAAAAAAAAAAAAAAADXNlbGxPcmRlclR5cGUAAAAAAAAAAAEAAAAAFGZhY3RvcnlBZGRyZXNzU3RyaW5nAgAAACMzTkJQYlNtU2NVNFVmcVZyblljNzl3dnhqdGl2Zm1nblNnRwAAAAAOaWR4UG9vbEFkZHJlc3MAAAAAAAAAAAEAAAAADWlkeFBvb2xTdGF0dXMAAAAAAAAAAAIAAAAAEGlkeFBvb2xMUEFzc2V0SWQAAAAA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AAAAgkBAAAADmtleUFtb3VudEFzc2V0AAAAAAUAAAAOYW1vdW50QXNzZXRTdHIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAADWtleVByaWNlQXNzZXQAAAAABQAAAA1wcmljZUFzc2V0U3RyBQAAAANuaWwFAAAAEWxwQXNzZXRJZEFzU3RyaW5nAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABU9yZGVyBAAAAAVvcmRlcgUAAAAHJG1hdGNoMAkAAZEAAAACCQEAAAAbdmFsaWRhdGVNYXRjaGVyT3JkZXJBbGxvd2VkAAAAAQUAAAAFb3JkZXIAAAAAAAAAAAEDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAACmV4Y2hhbmdlVHgFAAAAByRtYXRjaDAJAAGRAAAAAgkBAAAAIHZhbGlkYXRlTWF0Y2hlckV4Y2hhbmdlVHhBbGxvd2VkAAAAAQUAAAAKZXhjaGFuZ2VUeAAAAAAAAAAAAQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkjXzUP", "height": 1673514, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6aZaaD4ZJxyeUaYswbm18dkZrLGQsNkdLp8cAUU9YG5w Next: 4aNdUeUYTSGCNR4PxoT83qAhgjC9o6uEsmURM4VRTpTh Diff:
Old | New | Differences | |
---|---|---|---|
262 | 262 | then lpAmtByAmountAsset | |
263 | 263 | else lpAmtByPriceAsset | |
264 | 264 | } | |
265 | - | $Tuple13(outLpAmount, curentPrice, userAmountAssetBalance, userPriceAssetBalance, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, amountAssetInternalId, priceAssetInternalId, lpAssetId, slippage, poolStatus) | |
265 | + | if (true) | |
266 | + | then throw(((((((((((((((("outLpAmount " + toString(outLpAmount)) + "curentPrice ") + toString(curentPrice)) + "userPriceAssetBalance ") + toString(userPriceAssetBalance)) + "userLPBalance ") + toString(userLPBalance)) + "poolAmountAssetBalance ") + toString(poolAmountAssetBalance)) + "poolPriceAssetBalance ") + toString(poolPriceAssetBalance)) + "poolLPBalance ") + toString(poolLPBalance)) + "slippage ") + toString(slippage))) | |
267 | + | else $Tuple13(outLpAmount, curentPrice, userAmountAssetBalance, userPriceAssetBalance, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, amountAssetInternalId, priceAssetInternalId, lpAssetId, slippage, poolStatus) | |
266 | 268 | } | |
267 | 269 | } | |
268 | 270 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let lPdecimals = 8 | |
5 | 5 | ||
6 | 6 | let decimalsMultPrice = ((100 * 1000) * 1000) | |
7 | 7 | ||
8 | 8 | let SEP = "__" | |
9 | 9 | ||
10 | 10 | let PoolActive = 1 | |
11 | 11 | ||
12 | 12 | let PoolPutDisabled = 2 | |
13 | 13 | ||
14 | 14 | let PoolMatcherDisabled = 3 | |
15 | 15 | ||
16 | 16 | let PoolShutdown = 4 | |
17 | 17 | ||
18 | 18 | let buyOrderType = 0 | |
19 | 19 | ||
20 | 20 | let sellOrderType = 1 | |
21 | 21 | ||
22 | 22 | let factoryAddressString = "3NBPbSmScU4UfqVrnYc79wvxjtivfmgnSgG" | |
23 | 23 | ||
24 | 24 | let idxPoolAddress = 1 | |
25 | 25 | ||
26 | 26 | let idxPoolStatus = 2 | |
27 | 27 | ||
28 | 28 | let idxPoolLPAssetId = 3 | |
29 | 29 | ||
30 | 30 | let idxAmountAssetId = 4 | |
31 | 31 | ||
32 | 32 | let idxPriceAssetId = 5 | |
33 | 33 | ||
34 | 34 | let idxAmountAssetDecimals = 6 | |
35 | 35 | ||
36 | 36 | let idxPriceAssetDecimals = 7 | |
37 | 37 | ||
38 | 38 | let idxAmountAssetInternalId = 8 | |
39 | 39 | ||
40 | 40 | let idxPriceAssetInternalId = 9 | |
41 | 41 | ||
42 | 42 | let idxPoolWeight = 10 | |
43 | 43 | ||
44 | 44 | let idxLPAssetDecimals = 11 | |
45 | 45 | ||
46 | 46 | let idxMatcherPublicKey = 12 | |
47 | 47 | ||
48 | 48 | let idmaxAllowedOrderPriceDifferencePct = 13 | |
49 | 49 | ||
50 | 50 | let idxPoolAmountAssetAmt = 1 | |
51 | 51 | ||
52 | 52 | let idxPoolPriceAssetAmt = 2 | |
53 | 53 | ||
54 | 54 | let idxPoolLPAssetAmt = 3 | |
55 | 55 | ||
56 | 56 | func keyPriceLast () = "%s%s__price__last" | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func keyPriceHistory (h,timestamp) = makeString(["%s%s%d%d__price__history", toString(h), toString(timestamp)], SEP) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func keyPoolLiquidity (internalAmountAsset,internalPriceAsset) = (((("%d%d%s__" + internalAmountAsset) + "__") + internalPriceAsset) + "__locked") | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func keyPoolLiquidityByUser (internalAmountAsset,internalPriceAsset,userAddress) = (((((("%d%d%s%s__" + internalAmountAsset) + "__") + internalPriceAsset) + "__") + userAddress) + "__locked") | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyPutActionByUser (userAddress,txId) = ((("%s%s%s__P__" + userAddress) + "__") + txId) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyGetActionByUser (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyAmountAsset () = "%s__amountAsset" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyPriceAsset () = "%s__priceAsset" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config") | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keyAllPoolsShutdown () = "%s__shutdown" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func isGlobalShutdown () = valueOrElse(getBoolean(value(addressFromString(factoryAddressString)), keyAllPoolsShutdown()), false) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func getPoolConfig () = { | |
96 | 96 | let poolAmountAsset = valueOrErrorMessage(getString(keyAmountAsset()), "No config for amount asset found") | |
97 | 97 | let poolPriceAsset = valueOrErrorMessage(getString(keyPriceAsset()), "No config for price asset found") | |
98 | 98 | let poolPriceAssetInternal = valueOrErrorMessage(getInteger(value(addressFromString(factoryAddressString)), keyMappingsBaseAsset2internalId(poolPriceAsset)), "No config for internal price asset found") | |
99 | 99 | let poolAmountAssetInternal = valueOrErrorMessage(getInteger(value(addressFromString(factoryAddressString)), keyMappingsBaseAsset2internalId(poolAmountAsset)), "No config for internal amount asset found") | |
100 | 100 | split(valueOrErrorMessage(getString(addressFromStringValue(factoryAddressString), keyPoolConfig(toString(poolAmountAssetInternal), toString(poolPriceAssetInternal))), "No factory config found for pool assets."), SEP) | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getPoolLiquidity (amountAssetInternalId,priceAssetInternalId) = { | |
105 | 105 | let currentPoolLiquidityValue = getString(keyPoolLiquidity(amountAssetInternalId, priceAssetInternalId)) | |
106 | 106 | if (!(isDefined(currentPoolLiquidityValue))) | |
107 | 107 | then ["", "0", "0", "0"] | |
108 | 108 | else split(value(currentPoolLiquidityValue), SEP) | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func getPoolLiquidityByUser (amountAssetInternalId,priceAssetInternalId,userAddress) = { | |
113 | 113 | let currentPoolLiquidityValue = getString(keyPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress)) | |
114 | 114 | if (!(isDefined(currentPoolLiquidityValue))) | |
115 | 115 | then ["", "0", "0", "0", "0"] | |
116 | 116 | else split(value(currentPoolLiquidityValue), SEP) | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func dataPoolLiquidity (amountAssetLocked,priceAssetLocked,lpTokenLocked) = makeString(["%d%d%d", toString(amountAssetLocked), toString(priceAssetLocked), toString(lpTokenLocked)], SEP) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func dataPutActionInfo (inAmountAssetAmt,inPriceAssetAmt,outLpAmt,price,slippageTolerancePassedByUser,slippageToleranceReal,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d%d", toString(inAmountAssetAmt), toString(inPriceAssetAmt), toString(outLpAmt), toString(price), toString(slippageTolerancePassedByUser), toString(slippageToleranceReal), toString(txHeight), toString(txTimestamp)], SEP) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func dataGetActionInfo (outAmountAssetAmt,outPriceAssetAmt,inLpAmt,price,txHeight,txTimestamp) = makeString(["%d%d%d%d%d%d", toString(outAmountAssetAmt), toString(outPriceAssetAmt), toString(inLpAmt), toString(price), toString(txHeight), toString(txTimestamp)], SEP) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func dataPoolLiquidityByUser (amountAssetLocked,priceAssetLocked,lpTokenLocked,userAddress) = makeString(["%d%d%d", toString(amountAssetLocked), toString(priceAssetLocked), toString(lpTokenLocked)], SEP) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func getScriptHash () = toBase64String(value(scriptHash(this))) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func privateCastAssetToLPDecimals (assetDecimals,assetAmount) = { | |
136 | 136 | let decimalsMult = pow(10, 0, (lPdecimals - assetDecimals), 0, 0, DOWN) | |
137 | 137 | $Tuple2((assetAmount * decimalsMult), decimalsMult) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func privateCastAssetToOriginDecimals (assetDecimals,assetAmount) = { | |
142 | 142 | let decimalsMult = pow(10, 0, (lPdecimals - assetDecimals), 0, 0, DOWN) | |
143 | 143 | $Tuple2((assetAmount / decimalsMult), decimalsMult) | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func privateCalculatePrice (amoutAssetDecimals,priceAssetDecimals,amountAssetAmt,priceAssetAmt) = { | |
148 | 148 | let amountAssetPoolLockedAmt = privateCastAssetToLPDecimals(amoutAssetDecimals, amountAssetAmt)._1 | |
149 | 149 | let priceAssetPoolLockedAmt = privateCastAssetToLPDecimals(priceAssetDecimals, priceAssetAmt)._1 | |
150 | 150 | fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt) | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func privateGetPoolStatistics () = { | |
155 | 155 | let poolConfigDataList = getPoolConfig() | |
156 | 156 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
157 | 157 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
158 | 158 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
159 | 159 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
160 | 160 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
161 | 161 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
162 | 162 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
163 | 163 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
164 | 164 | let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt]) | |
165 | 165 | let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt]) | |
166 | 166 | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
167 | 167 | let amountAssetPoolLockedAmt = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance)._1 | |
168 | 168 | let priceAssetPoolLockedAmt = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance)._1 | |
169 | 169 | let lpPriceInAmountAsset = fraction(amountAssetPoolLockedAmt, (1 * decimalsMultPrice), poolLPBalance) | |
170 | 170 | let lpPriceInPriceAsset = fraction(priceAssetPoolLockedAmt, (1 * decimalsMultPrice), poolLPBalance) | |
171 | 171 | let currentPrice = privateCalculatePrice(amoutAssetDecimals, priceAssetDecimals, poolAmountAssetBalance, poolPriceAssetBalance) | |
172 | 172 | [poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, currentPrice, lpPriceInAmountAsset, lpPriceInPriceAsset] | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func privateEstimateGetOperation (paymentLpAssetId,paymentLpAmount,userAddress) = { | |
177 | 177 | let poolConfigList = getPoolConfig() | |
178 | 178 | let lpAssetId = poolConfigList[idxPoolLPAssetId] | |
179 | 179 | let amountAssetId = poolConfigList[idxAmountAssetId] | |
180 | 180 | let priceAssetId = poolConfigList[idxPriceAssetId] | |
181 | 181 | let amountAssetInternalId = poolConfigList[idxAmountAssetInternalId] | |
182 | 182 | let priceAssetInternalId = poolConfigList[idxPriceAssetInternalId] | |
183 | 183 | let amoutAssetDecimals = parseIntValue(poolConfigList[idxAmountAssetDecimals]) | |
184 | 184 | let priceAssetDecimals = parseIntValue(poolConfigList[idxPriceAssetDecimals]) | |
185 | 185 | let poolStatus = poolConfigList[idxPoolStatus] | |
186 | 186 | let userLiquidityList = getPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress) | |
187 | 187 | let userLPBalance = parseIntValue(userLiquidityList[idxPoolLPAssetAmt]) | |
188 | 188 | let userAmountAssetBalance = parseIntValue(userLiquidityList[idxPoolAmountAssetAmt]) | |
189 | 189 | let userPriceAssetBalance = parseIntValue(userLiquidityList[idxPoolPriceAssetAmt]) | |
190 | 190 | let poolLiquidityList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
191 | 191 | let poolLPBalance = parseIntValue(poolLiquidityList[idxPoolLPAssetAmt]) | |
192 | 192 | let poolAmountAssetBalance = parseIntValue(poolLiquidityList[idxPoolAmountAssetAmt]) | |
193 | 193 | let poolPriceAssetBalance = parseIntValue(poolLiquidityList[idxPoolPriceAssetAmt]) | |
194 | 194 | if ((lpAssetId != paymentLpAssetId)) | |
195 | 195 | then throw("Invalid asset passed.") | |
196 | 196 | else if ((paymentLpAmount > userLPBalance)) | |
197 | 197 | then throw("Invalid amount passed. Amount less than available.") | |
198 | 198 | else { | |
199 | 199 | let amountAssetPoolLockedAmt = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance)._1 | |
200 | 200 | let priceAssetPoolLockedAmt = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance)._1 | |
201 | 201 | let outAmountAssetAmt = fraction(amountAssetPoolLockedAmt, paymentLpAmount, poolLPBalance) | |
202 | 202 | let outPriceAssetAmt = fraction(priceAssetPoolLockedAmt, paymentLpAmount, poolLPBalance) | |
203 | 203 | let outAmountAssetAmtFinal = privateCastAssetToOriginDecimals(amoutAssetDecimals, outAmountAssetAmt)._1 | |
204 | 204 | let outPriceAssetAmtFinal = privateCastAssetToOriginDecimals(priceAssetDecimals, outPriceAssetAmt)._1 | |
205 | 205 | let currentPrice = fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt) | |
206 | 206 | $Tuple14(outAmountAssetAmtFinal, outPriceAssetAmtFinal, amountAssetInternalId, priceAssetInternalId, userAmountAssetBalance, amountAssetId, userPriceAssetBalance, priceAssetId, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, currentPrice, poolStatus) | |
207 | 207 | } | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func privateEstimatePutOperation (slippageTolerance,inAmountAssetAmt,inAmountAssetId,inPriceAssetAmt,inPriceAssetId,userAddress) = { | |
212 | 212 | let poolConfigDataList = getPoolConfig() | |
213 | 213 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
214 | 214 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
215 | 215 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
216 | 216 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
217 | 217 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
218 | 218 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
219 | 219 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
220 | 220 | let poolStatus = poolConfigDataList[idxPoolStatus] | |
221 | 221 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
222 | 222 | let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt]) | |
223 | 223 | let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt]) | |
224 | 224 | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
225 | 225 | let userLiquidityDataList = getPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, userAddress) | |
226 | 226 | let userAmountAssetBalance = parseIntValue(userLiquidityDataList[idxPoolAmountAssetAmt]) | |
227 | 227 | let userPriceAssetBalance = parseIntValue(userLiquidityDataList[idxPoolPriceAssetAmt]) | |
228 | 228 | let userLPBalance = parseIntValue(userLiquidityDataList[idxPoolLPAssetAmt]) | |
229 | 229 | if (if ((amountAssetId != inAmountAssetId)) | |
230 | 230 | then true | |
231 | 231 | else (priceAssetId != inPriceAssetId)) | |
232 | 232 | then throw("Invalid amount or price asset passed.") | |
233 | 233 | else { | |
234 | 234 | let inAmountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, inAmountAssetAmt) | |
235 | 235 | let inPriceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, inPriceAssetAmt) | |
236 | 236 | let inAmountAssetAmtCalculated = inAmountAssetAmtCalculatedTuple._1 | |
237 | 237 | let inPriceAssetAmtCalculated = inPriceAssetAmtCalculatedTuple._1 | |
238 | 238 | let userPrice = fraction(inPriceAssetAmtCalculated, decimalsMultPrice, inAmountAssetAmtCalculated) | |
239 | 239 | let amountAssetPoolLockedAmt = (poolAmountAssetBalance * inAmountAssetAmtCalculatedTuple._2) | |
240 | 240 | let priceAssetPoolLockedAmt = (poolPriceAssetBalance * inPriceAssetAmtCalculatedTuple._2) | |
241 | 241 | let curentPrice = if ((poolLPBalance == 0)) | |
242 | 242 | then 0 | |
243 | 243 | else fraction(priceAssetPoolLockedAmt, decimalsMultPrice, amountAssetPoolLockedAmt) | |
244 | 244 | let slippage = if ((curentPrice > userPrice)) | |
245 | 245 | then fraction((curentPrice - userPrice), 100, curentPrice) | |
246 | 246 | else fraction((userPrice - curentPrice), 100, curentPrice) | |
247 | 247 | if (if ((curentPrice != 0)) | |
248 | 248 | then ((slippage * decimalsMultPrice) > slippageTolerance) | |
249 | 249 | else false) | |
250 | 250 | then throw(((("Price slippage " + toString(slippage)) + " exceeded the passed limit of ") + toString(slippageTolerance))) | |
251 | 251 | else { | |
252 | 252 | let outLpAmount = if ((poolLPBalance == 0)) | |
253 | 253 | then { | |
254 | 254 | let partA = pow(inAmountAssetAmtCalculated, 0, 5, 1, 0, DOWN) | |
255 | 255 | let partB = pow(inPriceAssetAmtCalculated, 0, 5, 1, 0, DOWN) | |
256 | 256 | (partA * partB) | |
257 | 257 | } | |
258 | 258 | else { | |
259 | 259 | let lpAmtByAmountAsset = fraction(poolLPBalance, inAmountAssetAmtCalculated, amountAssetPoolLockedAmt) | |
260 | 260 | let lpAmtByPriceAsset = fraction(poolLPBalance, inPriceAssetAmtCalculated, priceAssetPoolLockedAmt) | |
261 | 261 | if ((lpAmtByPriceAsset > lpAmtByAmountAsset)) | |
262 | 262 | then lpAmtByAmountAsset | |
263 | 263 | else lpAmtByPriceAsset | |
264 | 264 | } | |
265 | - | $Tuple13(outLpAmount, curentPrice, userAmountAssetBalance, userPriceAssetBalance, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, amountAssetInternalId, priceAssetInternalId, lpAssetId, slippage, poolStatus) | |
265 | + | if (true) | |
266 | + | then throw(((((((((((((((("outLpAmount " + toString(outLpAmount)) + "curentPrice ") + toString(curentPrice)) + "userPriceAssetBalance ") + toString(userPriceAssetBalance)) + "userLPBalance ") + toString(userLPBalance)) + "poolAmountAssetBalance ") + toString(poolAmountAssetBalance)) + "poolPriceAssetBalance ") + toString(poolPriceAssetBalance)) + "poolLPBalance ") + toString(poolLPBalance)) + "slippage ") + toString(slippage))) | |
267 | + | else $Tuple13(outLpAmount, curentPrice, userAmountAssetBalance, userPriceAssetBalance, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, amountAssetInternalId, priceAssetInternalId, lpAssetId, slippage, poolStatus) | |
266 | 268 | } | |
267 | 269 | } | |
268 | 270 | } | |
269 | 271 | ||
270 | 272 | ||
271 | 273 | func estimatePutOperationBasedOnAmountAsset () = { | |
272 | 274 | let slippageTolerance = 300000000 | |
273 | 275 | let inAmountAssetAmt = 1000000000 | |
274 | 276 | let userAddress = "3MzaNvyL4B93DckHi6Z8hKRygXD6MvuPWsT" | |
275 | 277 | let poolConfigDataList = getPoolConfig() | |
276 | 278 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
277 | 279 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
278 | 280 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
279 | 281 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
280 | 282 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
281 | 283 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
282 | 284 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
283 | 285 | let poolStatus = poolConfigDataList[idxPoolStatus] | |
284 | 286 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
285 | 287 | let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt]) | |
286 | 288 | let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt]) | |
287 | 289 | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
288 | 290 | let amountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance) | |
289 | 291 | let priceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance) | |
290 | 292 | let curentPrice = if ((poolLPBalance == 0)) | |
291 | 293 | then 0 | |
292 | 294 | else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1) | |
293 | 295 | let inPriceAssetAmtCalculated = (amountAssetAmtCalculatedTuple._2 * curentPrice) | |
294 | 296 | let inPriceAssetAmt = privateCastAssetToOriginDecimals(amoutAssetDecimals, inPriceAssetAmtCalculated)._1 | |
295 | 297 | if (true) | |
296 | 298 | then throw(((((((("Current price: " + toString(curentPrice)) + "Price asset pmt: ") + toString(inPriceAssetAmt)) + "Balance amountAsset/PriceAsset: ") + toString(amountAssetAmtCalculatedTuple._1)) + "/") + toString(priceAssetAmtCalculatedTuple._1))) | |
297 | 299 | else privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress) | |
298 | 300 | } | |
299 | 301 | ||
300 | 302 | ||
301 | 303 | func estimatePutOperationBasedOnPriceAsset (slippageTolerance,inPriceAssetAmt,userAddress) = { | |
302 | 304 | let poolConfigDataList = getPoolConfig() | |
303 | 305 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
304 | 306 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
305 | 307 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
306 | 308 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
307 | 309 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
308 | 310 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
309 | 311 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
310 | 312 | let poolStatus = poolConfigDataList[idxPoolStatus] | |
311 | 313 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
312 | 314 | let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt]) | |
313 | 315 | let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt]) | |
314 | 316 | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
315 | 317 | let amountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance) | |
316 | 318 | let priceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance) | |
317 | 319 | let curentPrice = if ((poolLPBalance == 0)) | |
318 | 320 | then 0 | |
319 | 321 | else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1) | |
320 | 322 | let inAmountAssetAmtCalculated = (amountAssetAmtCalculatedTuple._2 / curentPrice) | |
321 | 323 | let inAmountAssetAmt = privateCastAssetToOriginDecimals(amoutAssetDecimals, inAmountAssetAmtCalculated)._1 | |
322 | 324 | privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress) | |
323 | 325 | } | |
324 | 326 | ||
325 | 327 | ||
326 | 328 | func validateMatcherOrderAllowed (order) = { | |
327 | 329 | let poolConfigDataList = getPoolConfig() | |
328 | 330 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
329 | 331 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
330 | 332 | let poolStatus = parseIntValue(poolConfigDataList[idxPoolStatus]) | |
331 | 333 | let matcherPublicKeyStr = poolConfigDataList[idxMatcherPublicKey] | |
332 | 334 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
333 | 335 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
334 | 336 | let amountAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
335 | 337 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
336 | 338 | let maxAllowedOrderPriceDifferencePct = parseIntValue(poolConfigDataList[idmaxAllowedOrderPriceDifferencePct]) | |
337 | 339 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
338 | 340 | let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt]) | |
339 | 341 | let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt]) | |
340 | 342 | let currentPrice = privateCalculatePrice(amountAssetDecimals, priceAssetDecimals, poolAmountAssetBalance, poolPriceAssetBalance) | |
341 | 343 | let isPoolStatusValid = if (if (if (isGlobalShutdown()) | |
342 | 344 | then true | |
343 | 345 | else (poolStatus == PoolMatcherDisabled)) | |
344 | 346 | then true | |
345 | 347 | else (poolStatus == PoolShutdown)) | |
346 | 348 | then false | |
347 | 349 | else true | |
348 | 350 | let isValidMatcherSign = sigVerify(order.bodyBytes, order.proofs[0], fromBase58String(matcherPublicKeyStr)) | |
349 | 351 | let orderAmountAsset = order.assetPair.amountAsset | |
350 | 352 | let orderAmountAssetStr = if ((orderAmountAsset == unit)) | |
351 | 353 | then "" | |
352 | 354 | else toBase58String(value(orderAmountAsset)) | |
353 | 355 | let orderPriceAsset = order.assetPair.priceAsset | |
354 | 356 | let orderPriceAssetStr = if ((orderPriceAsset == unit)) | |
355 | 357 | then "" | |
356 | 358 | else toBase58String(value(orderPriceAsset)) | |
357 | 359 | let isValidAssetPair = if (if ((orderAmountAssetStr != amountAssetId)) | |
358 | 360 | then true | |
359 | 361 | else (orderPriceAssetStr != priceAssetId)) | |
360 | 362 | then false | |
361 | 363 | else true | |
362 | 364 | let orderPrice = order.price | |
363 | 365 | let priceDecimals = ((8 + priceAssetDecimals) - amountAssetDecimals) | |
364 | 366 | let castedOrderPrice = privateCastAssetToLPDecimals(priceDecimals, orderPrice) | |
365 | 367 | let isOrderPriceValid = if ((order.orderType == Buy)) | |
366 | 368 | then (currentPrice >= orderPrice) | |
367 | 369 | else (orderPrice >= currentPrice) | |
368 | 370 | [if (if (if (isValidAssetPair) | |
369 | 371 | then isValidMatcherSign | |
370 | 372 | else false) | |
371 | 373 | then isPoolStatusValid | |
372 | 374 | else false) | |
373 | 375 | then isOrderPriceValid | |
374 | 376 | else false] | |
375 | 377 | } | |
376 | 378 | ||
377 | 379 | ||
378 | 380 | func validateMatcherExchangeTxAllowed (ex) = { | |
379 | 381 | let poolConfigDataList = getPoolConfig() | |
380 | 382 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
381 | 383 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
382 | 384 | let poolStatus = parseIntValue(poolConfigDataList[idxPoolStatus]) | |
383 | 385 | let matcherPublicKeyStr = poolConfigDataList[idxMatcherPublicKey] | |
384 | 386 | let isPoolStatusValid = if (if (if (isGlobalShutdown()) | |
385 | 387 | then true | |
386 | 388 | else (poolStatus == PoolMatcherDisabled)) | |
387 | 389 | then true | |
388 | 390 | else (poolStatus == PoolShutdown)) | |
389 | 391 | then false | |
390 | 392 | else true | |
391 | 393 | let isValidMatcherSign = sigVerify(ex.bodyBytes, ex.proofs[0], fromBase58String(matcherPublicKeyStr)) | |
392 | 394 | let exchangeAmountAsset = ex.buyOrder.assetPair.amountAsset | |
393 | 395 | let exchangeAmountAssetStr = if ((exchangeAmountAsset == unit)) | |
394 | 396 | then "" | |
395 | 397 | else toBase58String(value(exchangeAmountAsset)) | |
396 | 398 | let exchangePriceAsset = ex.buyOrder.assetPair.priceAsset | |
397 | 399 | let exchangePriceAssetStr = if ((exchangePriceAsset == unit)) | |
398 | 400 | then "" | |
399 | 401 | else toBase58String(value(exchangePriceAsset)) | |
400 | 402 | let isValidAssetPair = if (if ((exchangeAmountAssetStr != amountAssetId)) | |
401 | 403 | then true | |
402 | 404 | else (exchangePriceAssetStr != priceAssetId)) | |
403 | 405 | then false | |
404 | 406 | else true | |
405 | 407 | let orderAmountAssetAmt = toBigInt(ex.amount) | |
406 | 408 | let executedOrderType = if ((ex.buyOrder.sender == this)) | |
407 | 409 | then buyOrderType | |
408 | 410 | else sellOrderType | |
409 | 411 | let orderPriceAssetAmt = fraction(orderAmountAssetAmt, toBigInt(ex.price), toBigInt(decimalsMultPrice)) | |
410 | 412 | let currentAmountAssetBalance = if ((amountAssetId == "")) | |
411 | 413 | then value(wavesBalance(this)).available | |
412 | 414 | else value(assetBalance(this, fromBase58String(amountAssetId))) | |
413 | 415 | let currentPriceAssetBalance = if ((priceAssetId == "")) | |
414 | 416 | then value(wavesBalance(this)).available | |
415 | 417 | else value(assetBalance(this, fromBase58String(priceAssetId))) | |
416 | 418 | let currentK = fraction(toBigInt(currentAmountAssetBalance), toBigInt(currentPriceAssetBalance), toBigInt(decimalsMultPrice)) | |
417 | 419 | let calculatedKAfterTransaction = if ((executedOrderType == buyOrderType)) | |
418 | 420 | then fraction((toBigInt(currentAmountAssetBalance) + orderAmountAssetAmt), (toBigInt(currentPriceAssetBalance) - orderPriceAssetAmt), toBigInt(decimalsMultPrice)) | |
419 | 421 | else fraction((toBigInt(currentAmountAssetBalance) - orderAmountAssetAmt), (toBigInt(currentPriceAssetBalance) + orderPriceAssetAmt), toBigInt(decimalsMultPrice)) | |
420 | 422 | let isKIncreasing = (calculatedKAfterTransaction > currentK) | |
421 | 423 | [if (if (if (isValidAssetPair) | |
422 | 424 | then isKIncreasing | |
423 | 425 | else false) | |
424 | 426 | then isValidMatcherSign | |
425 | 427 | else false) | |
426 | 428 | then isPoolStatusValid | |
427 | 429 | else false] | |
428 | 430 | } | |
429 | 431 | ||
430 | 432 | ||
431 | 433 | @Callable(i) | |
432 | 434 | func put (slippageTolerance) = { | |
433 | 435 | let pmtAmountAsset = value(i.payments[0]) | |
434 | 436 | let inAmountAssetAmt = pmtAmountAsset.amount | |
435 | 437 | let inAmountAssetId = if (!(isDefined(pmtAmountAsset.assetId))) | |
436 | 438 | then fromBase58String("") | |
437 | 439 | else value(pmtAmountAsset.assetId) | |
438 | 440 | let pmtPriceAsset = value(i.payments[1]) | |
439 | 441 | let inPriceAssetAmt = pmtPriceAsset.amount | |
440 | 442 | let inPriceAssetId = value(pmtPriceAsset.assetId) | |
441 | 443 | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, toBase58String(inAmountAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller)) | |
442 | 444 | let outLpAmount = estimatedPutResults._1 | |
443 | 445 | let curentPrice = estimatedPutResults._2 | |
444 | 446 | let userAmountAssetBalance = estimatedPutResults._3 | |
445 | 447 | let userPriceAssetBalance = estimatedPutResults._4 | |
446 | 448 | let userLPBalance = estimatedPutResults._5 | |
447 | 449 | let poolAmountAssetBalance = estimatedPutResults._6 | |
448 | 450 | let poolPriceAssetBalance = estimatedPutResults._7 | |
449 | 451 | let poolLPBalance = estimatedPutResults._8 | |
450 | 452 | let amountAssetInternalId = estimatedPutResults._9 | |
451 | 453 | let priceAssetInternalId = estimatedPutResults._10 | |
452 | 454 | let lpAssetId = estimatedPutResults._11 | |
453 | 455 | let slippageCalculated = estimatedPutResults._12 | |
454 | 456 | let poolStatus = parseIntValue(estimatedPutResults._13) | |
455 | 457 | if (true) | |
456 | 458 | then throw(("outLpAmount " + toString(outLpAmount))) | |
457 | 459 | else if (if (if (isGlobalShutdown()) | |
458 | 460 | then true | |
459 | 461 | else (poolStatus == PoolPutDisabled)) | |
460 | 462 | then true | |
461 | 463 | else (poolStatus == PoolShutdown)) | |
462 | 464 | then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus))) | |
463 | 465 | else [StringEntry(keyPriceLast(), ("%s__" + toString(curentPrice))), StringEntry(keyPriceHistory(height, lastBlock.timestamp), ("%s__" + toString(curentPrice))), StringEntry(keyPutActionByUser(toString(i.caller), toBase58String(i.transactionId)), dataPutActionInfo(inAmountAssetAmt, inPriceAssetAmt, outLpAmount, curentPrice, slippageTolerance, slippageCalculated, height, lastBlock.timestamp)), StringEntry(keyPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, toString(i.caller)), dataPoolLiquidity((userAmountAssetBalance + inAmountAssetAmt), (userPriceAssetBalance + inPriceAssetAmt), (userLPBalance + outLpAmount))), StringEntry(keyPoolLiquidity(amountAssetInternalId, priceAssetInternalId), dataPoolLiquidity((poolAmountAssetBalance + inAmountAssetAmt), (poolPriceAssetBalance + inPriceAssetAmt), (poolLPBalance + outLpAmount))), Reissue(lpAssetId, outLpAmount, true), ScriptTransfer(i.caller, outLpAmount, lpAssetId)] | |
464 | 466 | } | |
465 | 467 | ||
466 | 468 | ||
467 | 469 | ||
468 | 470 | @Callable(i) | |
469 | 471 | func get () = { | |
470 | 472 | let pmtAmountAsset = value(i.payments[0]) | |
471 | 473 | let pmtAssetId = value(pmtAmountAsset.assetId) | |
472 | 474 | let pmtAssetAmount = pmtAmountAsset.amount | |
473 | 475 | let results = privateEstimateGetOperation(toBase58String(pmtAssetId), pmtAssetAmount, toString(i.caller)) | |
474 | 476 | let outAmountAssetAmt = results._1 | |
475 | 477 | let outPriceAssetAmt = results._2 | |
476 | 478 | let amountAssetInternalId = results._3 | |
477 | 479 | let priceAssetInternalId = results._4 | |
478 | 480 | let userAmountAssetBalance = results._5 | |
479 | 481 | let amountAssetId = results._6 | |
480 | 482 | let userPriceAssetBalance = results._7 | |
481 | 483 | let priceAssetId = results._8 | |
482 | 484 | let userLPBalance = results._9 | |
483 | 485 | let poolAmountAssetBalance = results._10 | |
484 | 486 | let poolPriceAssetBalance = results._11 | |
485 | 487 | let poolLPBalance = results._12 | |
486 | 488 | let currentPrice = results._13 | |
487 | 489 | let poolStatus = parseIntValue(results._14) | |
488 | 490 | if (if (isGlobalShutdown()) | |
489 | 491 | then true | |
490 | 492 | else (poolStatus == PoolShutdown)) | |
491 | 493 | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
492 | 494 | else [Burn(pmtAssetId, pmtAssetAmount), ScriptTransfer(i.caller, outAmountAssetAmt, if ((amountAssetId == "")) | |
493 | 495 | then unit | |
494 | 496 | else fromBase58String(amountAssetId)), ScriptTransfer(i.caller, outPriceAssetAmt, fromBase58String(priceAssetId)), StringEntry(keyPoolLiquidityByUser(amountAssetInternalId, priceAssetInternalId, toString(i.caller)), dataPoolLiquidity((userAmountAssetBalance - outAmountAssetAmt), (userPriceAssetBalance - outPriceAssetAmt), (userLPBalance - pmtAssetAmount))), StringEntry(keyPoolLiquidity(amountAssetInternalId, priceAssetInternalId), dataPoolLiquidity((poolAmountAssetBalance - outAmountAssetAmt), (poolPriceAssetBalance - outPriceAssetAmt), (poolLPBalance - pmtAssetAmount))), StringEntry(keyGetActionByUser(toString(i.caller), toBase58String(i.transactionId)), dataGetActionInfo(outAmountAssetAmt, outPriceAssetAmt, pmtAssetAmount, currentPrice, height, lastBlock.timestamp)), StringEntry(keyPriceLast(), ("%s__" + toString(currentPrice))), StringEntry(keyPriceHistory(height, lastBlock.timestamp), ("%s__" + toString(currentPrice)))] | |
495 | 497 | } | |
496 | 498 | ||
497 | 499 | ||
498 | 500 | ||
499 | 501 | @Callable(i) | |
500 | 502 | func activate (amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight) = if ((toString(i.caller) != factoryAddressString)) | |
501 | 503 | then throw("permissions denied") | |
502 | 504 | else { | |
503 | 505 | let amountAssetId = fromBase58String(amountAssetStr) | |
504 | 506 | let amountAssetDecimals = value(assetInfo(amountAssetId)).decimals | |
505 | 507 | let priceAssetId = fromBase58String(priceAssetStr) | |
506 | 508 | let priceAssetDecimals = value(assetInfo(priceAssetId)).decimals | |
507 | 509 | let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true) | |
508 | 510 | let lpAssetId = calculateAssetId(lpAssetIssueAction) | |
509 | 511 | let lpAssetIdAsString = toBase58String(lpAssetId) | |
510 | 512 | $Tuple2([lpAssetIssueAction, Burn(lpAssetId, 1), StringEntry(keyAmountAsset(), amountAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], lpAssetIdAsString) | |
511 | 513 | } | |
512 | 514 | ||
513 | 515 | ||
514 | 516 | @Verifier(tx) | |
515 | 517 | func verify () = match tx { | |
516 | 518 | case order: Order => | |
517 | 519 | validateMatcherOrderAllowed(order)[1] | |
518 | 520 | case exchangeTx: ExchangeTransaction => | |
519 | 521 | validateMatcherExchangeTxAllowed(exchangeTx)[1] | |
520 | 522 | case _ => | |
521 | 523 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
522 | 524 | } | |
523 | 525 |
github/deemru/w8io/026f985 69.81 ms ◑