tx · 558DaiWYkCVqC4fiZFF9swxZ39MQCfDGh5gXs4frycZ3 3N9yYa7DXfSFLkgzWHmwzTpwd21GUxQApy9: -0.05000000 Waves 2021.08.24 14:43 [1672365] smart account 3N9yYa7DXfSFLkgzWHmwzTpwd21GUxQApy9 > SELF 0.00000000 Waves
{ "type": 13, "id": "558DaiWYkCVqC4fiZFF9swxZ39MQCfDGh5gXs4frycZ3", "fee": 5000000, "feeAssetId": null, "timestamp": 1629805412346, "version": 2, "chainId": 84, "sender": "3N9yYa7DXfSFLkgzWHmwzTpwd21GUxQApy9", "senderPublicKey": "AzWZ4rwReUMi2EBexU5XceFGKPvTcfdkZnygszAEtnYv", "proofs": [ "EkAz9wvTbbufoc58TBzEUAipfHRtDaarTHGUaeSLvUPuV9UqVcPzqVaA8TTjAxio3Pkd1DucAoa2wWyRWgKGMAM" ], "script": "base64:AAIFAAAAAAAAABIIAhIDCgEBEgASBwoFCAgICAEAAAA5AAAAAApsUGRlY2ltYWxzAAAAAAAAAAAIAAAAABFkZWNpbWFsc011bHRQcmljZQkAAGgAAAACCQAAaAAAAAIAAAAAAAAAAGQAAAAAAAAAA+gAAAAAAAAAA+gAAAAAA1NFUAIAAAACX18AAAAAClBvb2xBY3RpdmUAAAAAAAAAAAEAAAAAD1Bvb2xQdXREaXNhYmxlZAAAAAAAAAAAAgAAAAATUG9vbE1hdGNoZXJEaXNhYmxlZAAAAAAAAAAAAwAAAAAMUG9vbFNodXRkb3duAAAAAAAAAAAEAAAAAAxidXlPcmRlclR5cGUAAAAAAAAAAAAAAAAADXNlbGxPcmRlclR5cGUAAAAAAAAAAAEAAAAAFGZhY3RvcnlBZGRyZXNzU3RyaW5nAgAAACMzTXd3bVJUd1RoMmhwUXByR291RUF6bURVbmpiODNQdHpWRwAAAAAOaWR4UG9vbEFkZHJlc3MAAAAAAAAAAAEAAAAADWlkeFBvb2xTdGF0dXMAAAAAAAAAAAIAAAAAEGlkeFBvb2xMUEFzc2V0SWQAAAAAAAAAAA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XNzZXRJc3N1ZUFjdGlvbgkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAACWxwQXNzZXRJZAAAAAAAAAAAAQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAOa2V5QW1vdW50QXNzZXQAAAAABQAAAA5hbW91bnRBc3NldFN0cgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAANa2V5UHJpY2VBc3NldAAAAAAFAAAADXByaWNlQXNzZXRTdHIFAAAAA25pbAUAAAARbHBBc3NldElkQXNTdHJpbmcAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIEAAAABW9yZGVyBQAAAAckbWF0Y2gwCQABkQAAAAIJAQAAABt2YWxpZGF0ZU1hdGNoZXJPcmRlckFsbG93ZWQAAAABBQAAAAVvcmRlcgAAAAAAAAAAAQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAAKZXhjaGFuZ2VUeAUAAAAHJG1hdGNoMAkAAZEAAAACCQEAAAAgdmFsaWRhdGVNYXRjaGVyRXhjaGFuZ2VUeEFsbG93ZWQAAAABBQAAAApleGNoYW5nZVR4AAAAAAAAAAABCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleVP/wp4=", "height": 1672365, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FNBHMUqoDbWxWjjdJgPiTwGhknmUAspZs6jv8KA5Fs9y Next: BRqZJkvjbggH8VgTmFveqq437n82Ud381NTmbUk4omy5 Diff:
Old | New | Differences | |
---|---|---|---|
71 | 71 | func keyGetActionByUser (userAddress,txId) = ((("%s%s%s__G__" + userAddress) + "__") + txId) | |
72 | 72 | ||
73 | 73 | ||
74 | - | func keyAmountAsset () = "%s_amountAsset" | |
74 | + | func keyAmountAsset () = "%s__amountAsset" | |
75 | 75 | ||
76 | 76 | ||
77 | - | func keyPriceAsset () = "%s_priceAsset" | |
77 | + | func keyPriceAsset () = "%s__priceAsset" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset") |
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 = "3MwwmRTwTh2hpQprGouEAzmDUnjb83PtzVG" | |
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 | - | func keyAmountAsset () = "%s_amountAsset" | |
74 | + | func keyAmountAsset () = "%s__amountAsset" | |
75 | 75 | ||
76 | 76 | ||
77 | - | func keyPriceAsset () = "%s_priceAsset" | |
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 poolAmountAssetInternal = valueOrErrorMessage(getString(value(addressFromString(factoryAddressString)), keyMappingsBaseAsset2internalId(poolAmountAsset)), "No config for internal amount asset found") | |
99 | 99 | let poolPriceAssetInternal = valueOrErrorMessage(getString(value(addressFromString(factoryAddressString)), keyMappingsBaseAsset2internalId(poolPriceAsset)), "No config for internal price asset found") | |
100 | 100 | split(valueOrErrorMessage(getString(addressFromStringValue(factoryAddressString), keyPoolConfig(poolAmountAssetInternal, 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 | 265 | $Tuple13(outLpAmount, curentPrice, userAmountAssetBalance, userPriceAssetBalance, userLPBalance, poolAmountAssetBalance, poolPriceAssetBalance, poolLPBalance, amountAssetInternalId, priceAssetInternalId, lpAssetId, slippage, poolStatus) | |
266 | 266 | } | |
267 | 267 | } | |
268 | 268 | } | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func estimatePutOperationBasedOnAmountAsset (slippageTolerance,inAmountAssetAmt,userAddress) = { | |
272 | 272 | let poolConfigDataList = getPoolConfig() | |
273 | 273 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
274 | 274 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
275 | 275 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
276 | 276 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
277 | 277 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
278 | 278 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
279 | 279 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
280 | 280 | let poolStatus = poolConfigDataList[idxPoolStatus] | |
281 | 281 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
282 | 282 | let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt]) | |
283 | 283 | let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt]) | |
284 | 284 | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
285 | 285 | let amountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance) | |
286 | 286 | let priceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance) | |
287 | 287 | let curentPrice = if ((poolLPBalance == 0)) | |
288 | 288 | then 0 | |
289 | 289 | else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1) | |
290 | 290 | let inPriceAssetAmtCalculated = (amountAssetAmtCalculatedTuple._2 * curentPrice) | |
291 | 291 | let inPriceAssetAmt = privateCastAssetToOriginDecimals(amoutAssetDecimals, inPriceAssetAmtCalculated)._1 | |
292 | 292 | privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress) | |
293 | 293 | } | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func estimatePutOperationBasedOnPriceAsset (slippageTolerance,inPriceAssetAmt,userAddress) = { | |
297 | 297 | let poolConfigDataList = getPoolConfig() | |
298 | 298 | let lpAssetId = fromBase58String(poolConfigDataList[idxPoolLPAssetId]) | |
299 | 299 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
300 | 300 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
301 | 301 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
302 | 302 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
303 | 303 | let amoutAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
304 | 304 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
305 | 305 | let poolStatus = poolConfigDataList[idxPoolStatus] | |
306 | 306 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
307 | 307 | let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt]) | |
308 | 308 | let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt]) | |
309 | 309 | let poolLPBalance = parseIntValue(poolLiquidityDataList[idxPoolLPAssetAmt]) | |
310 | 310 | let amountAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(amoutAssetDecimals, poolAmountAssetBalance) | |
311 | 311 | let priceAssetAmtCalculatedTuple = privateCastAssetToLPDecimals(priceAssetDecimals, poolPriceAssetBalance) | |
312 | 312 | let curentPrice = if ((poolLPBalance == 0)) | |
313 | 313 | then 0 | |
314 | 314 | else fraction(priceAssetAmtCalculatedTuple._1, decimalsMultPrice, amountAssetAmtCalculatedTuple._1) | |
315 | 315 | let inAmountAssetAmtCalculated = (amountAssetAmtCalculatedTuple._2 / curentPrice) | |
316 | 316 | let inAmountAssetAmt = privateCastAssetToOriginDecimals(amoutAssetDecimals, inAmountAssetAmtCalculated)._1 | |
317 | 317 | privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, amountAssetId, inPriceAssetAmt, priceAssetId, userAddress) | |
318 | 318 | } | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | func validateMatcherOrderAllowed (order) = { | |
322 | 322 | let poolConfigDataList = getPoolConfig() | |
323 | 323 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
324 | 324 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
325 | 325 | let poolStatus = parseIntValue(poolConfigDataList[idxPoolStatus]) | |
326 | 326 | let matcherPublicKeyStr = poolConfigDataList[idxMatcherPublicKey] | |
327 | 327 | let amountAssetInternalId = poolConfigDataList[idxAmountAssetInternalId] | |
328 | 328 | let priceAssetInternalId = poolConfigDataList[idxPriceAssetInternalId] | |
329 | 329 | let amountAssetDecimals = parseIntValue(poolConfigDataList[idxAmountAssetDecimals]) | |
330 | 330 | let priceAssetDecimals = parseIntValue(poolConfigDataList[idxPriceAssetDecimals]) | |
331 | 331 | let maxAllowedOrderPriceDifferencePct = parseIntValue(poolConfigDataList[idmaxAllowedOrderPriceDifferencePct]) | |
332 | 332 | let poolLiquidityDataList = getPoolLiquidity(amountAssetInternalId, priceAssetInternalId) | |
333 | 333 | let poolAmountAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolAmountAssetAmt]) | |
334 | 334 | let poolPriceAssetBalance = parseIntValue(poolLiquidityDataList[idxPoolPriceAssetAmt]) | |
335 | 335 | let currentPrice = privateCalculatePrice(amountAssetDecimals, priceAssetDecimals, poolAmountAssetBalance, poolPriceAssetBalance) | |
336 | 336 | let isPoolStatusValid = if (if (if (isGlobalShutdown()) | |
337 | 337 | then true | |
338 | 338 | else (poolStatus == PoolMatcherDisabled)) | |
339 | 339 | then true | |
340 | 340 | else (poolStatus == PoolShutdown)) | |
341 | 341 | then false | |
342 | 342 | else true | |
343 | 343 | let isValidMatcherSign = sigVerify(order.bodyBytes, order.proofs[0], fromBase58String(matcherPublicKeyStr)) | |
344 | 344 | let orderAmountAsset = order.assetPair.amountAsset | |
345 | 345 | let orderAmountAssetStr = if ((orderAmountAsset == unit)) | |
346 | 346 | then "" | |
347 | 347 | else toBase58String(value(orderAmountAsset)) | |
348 | 348 | let orderPriceAsset = order.assetPair.priceAsset | |
349 | 349 | let orderPriceAssetStr = if ((orderPriceAsset == unit)) | |
350 | 350 | then "" | |
351 | 351 | else toBase58String(value(orderPriceAsset)) | |
352 | 352 | let isValidAssetPair = if (if ((orderAmountAssetStr != amountAssetId)) | |
353 | 353 | then true | |
354 | 354 | else (orderPriceAssetStr != priceAssetId)) | |
355 | 355 | then false | |
356 | 356 | else true | |
357 | 357 | let orderPrice = order.price | |
358 | 358 | let priceDecimals = ((8 + priceAssetDecimals) - amountAssetDecimals) | |
359 | 359 | let castedOrderPrice = privateCastAssetToLPDecimals(priceDecimals, orderPrice) | |
360 | 360 | let difference = if ((castedOrderPrice._1 > currentPrice)) | |
361 | 361 | then fraction((castedOrderPrice._1 - currentPrice), 100, currentPrice) | |
362 | 362 | else fraction((currentPrice - castedOrderPrice._1), 100, currentPrice) | |
363 | 363 | let isOrderPriceValid = (maxAllowedOrderPriceDifferencePct >= (difference * decimalsMultPrice)) | |
364 | 364 | [if (if (if (isValidAssetPair) | |
365 | 365 | then isValidMatcherSign | |
366 | 366 | else false) | |
367 | 367 | then isPoolStatusValid | |
368 | 368 | else false) | |
369 | 369 | then isOrderPriceValid | |
370 | 370 | else false] | |
371 | 371 | } | |
372 | 372 | ||
373 | 373 | ||
374 | 374 | func validateMatcherExchangeTxAllowed (ex) = { | |
375 | 375 | let poolConfigDataList = getPoolConfig() | |
376 | 376 | let amountAssetId = poolConfigDataList[idxAmountAssetId] | |
377 | 377 | let priceAssetId = poolConfigDataList[idxPriceAssetId] | |
378 | 378 | let poolStatus = parseIntValue(poolConfigDataList[idxPoolStatus]) | |
379 | 379 | let matcherPublicKeyStr = poolConfigDataList[idxMatcherPublicKey] | |
380 | 380 | let isPoolStatusValid = if (if (if (isGlobalShutdown()) | |
381 | 381 | then true | |
382 | 382 | else (poolStatus == PoolMatcherDisabled)) | |
383 | 383 | then true | |
384 | 384 | else (poolStatus == PoolShutdown)) | |
385 | 385 | then false | |
386 | 386 | else true | |
387 | 387 | let isValidMatcherSign = sigVerify(ex.bodyBytes, ex.proofs[0], fromBase58String(matcherPublicKeyStr)) | |
388 | 388 | let exchangeAmountAsset = ex.buyOrder.assetPair.amountAsset | |
389 | 389 | let exchangeAmountAssetStr = if ((exchangeAmountAsset == unit)) | |
390 | 390 | then "" | |
391 | 391 | else toBase58String(value(exchangeAmountAsset)) | |
392 | 392 | let exchangePriceAsset = ex.buyOrder.assetPair.priceAsset | |
393 | 393 | let exchangePriceAssetStr = if ((exchangePriceAsset == unit)) | |
394 | 394 | then "" | |
395 | 395 | else toBase58String(value(exchangePriceAsset)) | |
396 | 396 | let isValidAssetPair = if (if ((exchangeAmountAssetStr != amountAssetId)) | |
397 | 397 | then true | |
398 | 398 | else (exchangePriceAssetStr != priceAssetId)) | |
399 | 399 | then false | |
400 | 400 | else true | |
401 | 401 | let orderAmountAssetAmt = toBigInt(ex.amount) | |
402 | 402 | let executedOrderType = if ((ex.buyOrder.sender == this)) | |
403 | 403 | then buyOrderType | |
404 | 404 | else sellOrderType | |
405 | 405 | let orderPriceAssetAmt = fraction(orderAmountAssetAmt, toBigInt(ex.price), toBigInt(decimalsMultPrice)) | |
406 | 406 | let currentAmountAssetBalance = if ((amountAssetId == "")) | |
407 | 407 | then value(wavesBalance(this)).available | |
408 | 408 | else value(assetBalance(this, fromBase58String(amountAssetId))) | |
409 | 409 | let currentPriceAssetBalance = if ((priceAssetId == "")) | |
410 | 410 | then value(wavesBalance(this)).available | |
411 | 411 | else value(assetBalance(this, fromBase58String(priceAssetId))) | |
412 | 412 | let currentK = fraction(toBigInt(currentAmountAssetBalance), toBigInt(currentPriceAssetBalance), toBigInt(decimalsMultPrice)) | |
413 | 413 | let calculatedKAfterTransaction = if ((executedOrderType == buyOrderType)) | |
414 | 414 | then fraction((toBigInt(currentAmountAssetBalance) + orderAmountAssetAmt), (toBigInt(currentPriceAssetBalance) - orderPriceAssetAmt), toBigInt(decimalsMultPrice)) | |
415 | 415 | else fraction((toBigInt(currentAmountAssetBalance) - orderAmountAssetAmt), (toBigInt(currentPriceAssetBalance) + orderPriceAssetAmt), toBigInt(decimalsMultPrice)) | |
416 | 416 | let isKIncreasing = (calculatedKAfterTransaction > currentK) | |
417 | 417 | [if (if (if (isValidAssetPair) | |
418 | 418 | then isKIncreasing | |
419 | 419 | else false) | |
420 | 420 | then isValidMatcherSign | |
421 | 421 | else false) | |
422 | 422 | then isPoolStatusValid | |
423 | 423 | else false] | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | @Callable(i) | |
428 | 428 | func put (slippageTolerance) = { | |
429 | 429 | let pmtAmountAsset = value(i.payments[0]) | |
430 | 430 | let inAmountAssetAmt = pmtAmountAsset.amount | |
431 | 431 | let inAmountAssetId = if (!(isDefined(pmtAmountAsset.assetId))) | |
432 | 432 | then fromBase58String("") | |
433 | 433 | else value(pmtAmountAsset.assetId) | |
434 | 434 | let pmtPriceAsset = value(i.payments[1]) | |
435 | 435 | let inPriceAssetAmt = pmtPriceAsset.amount | |
436 | 436 | let inPriceAssetId = value(pmtPriceAsset.assetId) | |
437 | 437 | let estimatedPutResults = privateEstimatePutOperation(slippageTolerance, inAmountAssetAmt, toBase58String(inAmountAssetId), inPriceAssetAmt, toBase58String(inPriceAssetId), toString(i.caller)) | |
438 | 438 | let outLpAmount = estimatedPutResults._1 | |
439 | 439 | let curentPrice = estimatedPutResults._2 | |
440 | 440 | let userAmountAssetBalance = estimatedPutResults._3 | |
441 | 441 | let userPriceAssetBalance = estimatedPutResults._4 | |
442 | 442 | let userLPBalance = estimatedPutResults._5 | |
443 | 443 | let poolAmountAssetBalance = estimatedPutResults._6 | |
444 | 444 | let poolPriceAssetBalance = estimatedPutResults._7 | |
445 | 445 | let poolLPBalance = estimatedPutResults._8 | |
446 | 446 | let amountAssetInternalId = estimatedPutResults._9 | |
447 | 447 | let priceAssetInternalId = estimatedPutResults._10 | |
448 | 448 | let lpAssetId = estimatedPutResults._11 | |
449 | 449 | let slippageCalculated = estimatedPutResults._12 | |
450 | 450 | let poolStatus = parseIntValue(estimatedPutResults._13) | |
451 | 451 | if (if (if (isGlobalShutdown()) | |
452 | 452 | then true | |
453 | 453 | else (poolStatus == PoolPutDisabled)) | |
454 | 454 | then true | |
455 | 455 | else (poolStatus == PoolShutdown)) | |
456 | 456 | then throw(("Put operation is blocked by admin. Status = " + toString(poolStatus))) | |
457 | 457 | 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)] | |
458 | 458 | } | |
459 | 459 | ||
460 | 460 | ||
461 | 461 | ||
462 | 462 | @Callable(i) | |
463 | 463 | func get () = { | |
464 | 464 | let pmtAmountAsset = value(i.payments[0]) | |
465 | 465 | let pmtAssetId = value(pmtAmountAsset.assetId) | |
466 | 466 | let pmtAssetAmount = pmtAmountAsset.amount | |
467 | 467 | let results = privateEstimateGetOperation(toBase58String(pmtAssetId), pmtAssetAmount, toString(i.caller)) | |
468 | 468 | let outAmountAssetAmt = results._1 | |
469 | 469 | let outPriceAssetAmt = results._2 | |
470 | 470 | let amountAssetInternalId = results._3 | |
471 | 471 | let priceAssetInternalId = results._4 | |
472 | 472 | let userAmountAssetBalance = results._5 | |
473 | 473 | let amountAssetId = results._6 | |
474 | 474 | let userPriceAssetBalance = results._7 | |
475 | 475 | let priceAssetId = results._8 | |
476 | 476 | let userLPBalance = results._9 | |
477 | 477 | let poolAmountAssetBalance = results._10 | |
478 | 478 | let poolPriceAssetBalance = results._11 | |
479 | 479 | let poolLPBalance = results._12 | |
480 | 480 | let currentPrice = results._13 | |
481 | 481 | let poolStatus = parseIntValue(results._14) | |
482 | 482 | if (if (isGlobalShutdown()) | |
483 | 483 | then true | |
484 | 484 | else (poolStatus == PoolShutdown)) | |
485 | 485 | then throw(("Get operation is blocked by admin. Status = " + toString(poolStatus))) | |
486 | 486 | else [Burn(pmtAssetId, pmtAssetAmount), ScriptTransfer(i.caller, outAmountAssetAmt, if ((amountAssetId == "")) | |
487 | 487 | then unit | |
488 | 488 | 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)))] | |
489 | 489 | } | |
490 | 490 | ||
491 | 491 | ||
492 | 492 | ||
493 | 493 | @Callable(i) | |
494 | 494 | func activate (amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight) = if ((toString(i.caller) != factoryAddressString)) | |
495 | 495 | then throw("permissions denied") | |
496 | 496 | else { | |
497 | 497 | let amountAssetId = fromBase58String(amountAssetStr) | |
498 | 498 | let amountAssetDecimals = value(assetInfo(amountAssetId)).decimals | |
499 | 499 | let priceAssetId = fromBase58String(priceAssetStr) | |
500 | 500 | let priceAssetDecimals = value(assetInfo(priceAssetId)).decimals | |
501 | 501 | let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true) | |
502 | 502 | let lpAssetId = calculateAssetId(lpAssetIssueAction) | |
503 | 503 | let lpAssetIdAsString = toBase58String(lpAssetId) | |
504 | 504 | $Tuple2([lpAssetIssueAction, Burn(lpAssetId, 1), StringEntry(keyAmountAsset(), amountAssetStr), StringEntry(keyPriceAsset(), priceAssetStr)], lpAssetIdAsString) | |
505 | 505 | } | |
506 | 506 | ||
507 | 507 | ||
508 | 508 | @Verifier(tx) | |
509 | 509 | func verify () = match tx { | |
510 | 510 | case order: Order => | |
511 | 511 | validateMatcherOrderAllowed(order)[1] | |
512 | 512 | case exchangeTx: ExchangeTransaction => | |
513 | 513 | validateMatcherExchangeTxAllowed(exchangeTx)[1] | |
514 | 514 | case _ => | |
515 | 515 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
516 | 516 | } | |
517 | 517 |
github/deemru/w8io/fabc49c 54.16 ms ◑