tx · 3omCpbMpELMhuv3We3yxPCvfG1M28h446XmNdsMRMVuQ 3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu: -0.02900000 Waves 2022.06.09 16:30 [2088902] smart account 3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu > SELF 0.00000000 Waves
{ "type": 13, "id": "3omCpbMpELMhuv3We3yxPCvfG1M28h446XmNdsMRMVuQ", "fee": 2900000, "feeAssetId": null, "timestamp": 1654781316462, "version": 1, "sender": "3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu", "senderPublicKey": "668WwQVaWxezbvLEK3FccCSTbjst4zYAJDPrfLFRj9b9", "proofs": [ "3HJ5ZLjTGK7GPsUhrJdXv8dmbivCKLPD3hwxtTBLX6uYfBmHrjRGVZdANDq8pTdVjDH4AuvbXAPStBQqqL6qR4m8" ], "script": "base64:AAIFAAAAAAAAADQIAhIDCgEIEgkKBwgICAgBCAgSAwoBARIAEgASBQoDCAgIEgQKAggBEgMKAQgSAwoBCBIAAAAAOgAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAEAAAAPZ2V0U3RyaW5nT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkJAAEsAAAAAgIAAAAVTm8gZGF0YSBmb3IgdGhpcy5rZXk9BQAAAANrZXkBAAAAEGdldEJvb2xlYW5PckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQkAASwAAAACAgAAABVObyBkYXRhIGZvciB0aGlzLmtleT0FAAAAA2tleQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAABBtYW5hZ2VyUHVibGljS2V5BQAAAANuaWwFAAAAA1NFUAEAAAAaa2V5UGVuZGluZ01hbmFnZX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hhc1BNBAAAAAdjaGVja1BNAwkAAAAAAAACCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAQAAAAV2YWx1ZQAAAAEFAAAAAnBtBgkAAAIAAAABAgAAABt5b3UgYXJlIG5vdCBwZW5kaW5nIG1hbmFnZXIDCQAAAAAAAAIFAAAAB2NoZWNrUE0FAAAAB2NoZWNrUE0JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAACQACWAAAAAEJAQAAAAV2YWx1ZQAAAAEFAAAAAnBtCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAABprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAAAAAFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAPdGFyZ2V0UHVibGljS2V5BAAAAAckbWF0Y2gwCQEAAAAWbWFuYWdlclB1YmxpY0tleU9yVW5pdAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAnBrBQAAAAckbWF0Y2gwBQAAAAJwawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAD3RhcmdldFB1YmxpY0tleVuDxOw=", "chainId": 84, "height": 2088902, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Er2dBrBRRNEbQv8FtrU9wtyXaeZjJtnJKbeRcHXZRFpJ Next: aYuqjfiKWp22w92ZJDrRVYBCbvE18pgdUTRLUPMwoPQ Diff:
Old | New | Differences | |
---|---|---|---|
181 | 181 | let price = if ((shareEmission == 0)) | |
182 | 182 | then (1 * decimalsMultPrice) | |
183 | 183 | else fraction(baseAssetBalanceConsideringLock, decimalsMultPrice, shareEmission) | |
184 | - | $Tuple5(price, baseAssetBalance, totalLockedBaseAmount, baseAssetBalanceConsideringLock, shareEmission) | |
184 | + | if (true) | |
185 | + | then throw(makeString([toString(price), toString(baseAssetBalance), toString(baseAssetBalanceConsideringLock), toString(shareEmission)], " ")) | |
186 | + | else $Tuple5(price, baseAssetBalance, totalLockedBaseAmount, baseAssetBalanceConsideringLock, shareEmission) | |
185 | 187 | } | |
186 | 188 | } | |
187 | 189 | ||
308 | 310 | else { | |
309 | 311 | let price = calcPrice(balanceOrZero(baseAssetStr), internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1 | |
310 | 312 | let shareAssetAmount = fraction(pmt.amount, decimalsMultPrice, price) | |
311 | - | let balance = | |
313 | + | let balance = balanceOrZero(baseAssetStr) | |
312 | 314 | [Reissue(shareAssetId, shareAssetAmount, true), ScriptTransfer(i.caller, shareAssetAmount, shareAssetId), StringEntry(keyOperation("P", internalBaseAssetStr, userAddressStr, toBase58String(i.transactionId)), dataOperation("FINISHED", pmt.amount, price, shareAssetAmount, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(keyProxyAddress(baseAssetStr)))), pmt.amount, baseAssetId), IntegerEntry(keyBalance(baseAssetStr), (balance + pmt.amount))] | |
313 | 315 | } | |
314 | 316 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let EMPTY = "" | |
7 | 7 | ||
8 | 8 | func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key)) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key)) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func keyManagerPublicKey () = makeString(["%s", "managerPublicKey"], SEP) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func keyPendingManagerPublicKey () = makeString(["%s", "pendingManagerPublicKey"], SEP) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func failExecuteGet (msg,baseAssetStr,userAddressStr,getTxIdStr) = throw(((((((msg + ": baseAssetStr=") + baseAssetStr) + " userAddressStr=") + userAddressStr) + " getTxIdStr=") + getTxIdStr)) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func keyAssetsStoreContract () = makeString(["%s", "assetsStoreContract"], SEP) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func keyAssetCfg (baseAssetStr) = ("%s%s%s__config__asset__" + baseAssetStr) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func keyPendingWithdrawals (assetId) = makeString(["%s%s", "pendingWithdrawals", assetId], SEP) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func keyProxyAddress (assetId) = makeString(["%s%s", "proxyAddress", assetId], SEP) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func keyBalance (assetId) = makeString(["%s%s", "balance", assetId], SEP) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func keyNextInternalAssetId () = "%s__nextInternalAssetId" | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func keyPriceLast (internalBasetAssetStr) = ("%s%s%d__price__last__" + internalBasetAssetStr) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func keyTopUpLastHeight (internalBasetAssetStr,sender) = makeString(["%s%s%s%d%s__topup__last__height", internalBasetAssetStr, sender], SEP) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func keyPriceHistory (internalBasetAssetStr,h,timestamp) = makeString(["%s%s%d%d%d__price__history", internalBasetAssetStr, toString(h), toString(timestamp)], SEP) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func keyTotalLocked (internalBasetAssetStr) = ("%s%s%d__total__locked__" + internalBasetAssetStr) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func keyTotalLockedByUser (internalBaseAssetStr,userAddressStr) = makeString(["%s%s%d%s__total__locked", internalBaseAssetStr, userAddressStr], SEP) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset)) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func keyMappingsShare2baseAssetId (shareAssetStr) = ("%s%s%s__mappings__share2baseAssetId__" + shareAssetStr) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func keyMappingsBaseAsset2shareId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2shareId__" + baseAssetStr) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyShutdownPutOperation (internalBaseAssetStr) = ("%s%s%d__shutdown__put__" + internalBaseAssetStr) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyShutdownManager (internalBaseAssetStr) = ("%s%s%d__shutdown__manager__" + internalBaseAssetStr) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func assetsStoreContract () = addressFromStringValue(value(getString(keyAssetsStoreContract()))) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | let IdxCfgShareAssetId = 1 | |
78 | 78 | ||
79 | 79 | let IdxCfgInternalBaseAsset = 2 | |
80 | 80 | ||
81 | 81 | let IdxCfgDecimalsMultBothAssets = 3 | |
82 | 82 | ||
83 | 83 | let IdxCfgDecimalsMultPrice = 4 | |
84 | 84 | ||
85 | 85 | let IdxCfgGetDelayBlocks = 5 | |
86 | 86 | ||
87 | 87 | func dataAssetCfg (shareAssetStr,internalBaseAssetStr,decimalsMultBothAssets,decimalsMultPrice,getDelayInBlocks) = makeString(["%s%d%d%d%d", shareAssetStr, internalBaseAssetStr, toString(decimalsMultBothAssets), toString(decimalsMultPrice), toString(getDelayInBlocks)], SEP) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | let IdxTotalLockedShare = 1 | |
91 | 91 | ||
92 | 92 | let IdxTotalLockedBase = 2 | |
93 | 93 | ||
94 | 94 | func dataTotalLocked (shareAssetAmount,baseAssetAmount) = makeString(["%d%d", toString(shareAssetAmount), toString(baseAssetAmount)], SEP) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func readTotalLocked (key) = { | |
98 | 98 | let totalLockedArray = split(valueOrElse(getString(this, key), dataTotalLocked(0, 0)), SEP) | |
99 | 99 | [-1, parseIntValue(totalLockedArray[IdxTotalLockedShare]), parseIntValue(totalLockedArray[IdxTotalLockedBase])] | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keyOperation (operationType,internalBaseAssetStr,userAddress,txId) = makeString(["%s%d%s%s", operationType, internalBaseAssetStr, userAddress, txId], SEP) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | let IdxOperStatus = 1 | |
107 | 107 | ||
108 | 108 | let IdxOperInAmount = 2 | |
109 | 109 | ||
110 | 110 | let IdxOperPrice = 3 | |
111 | 111 | ||
112 | 112 | let IdxOperOutAmount = 4 | |
113 | 113 | ||
114 | 114 | let IdxOperStartHeight = 5 | |
115 | 115 | ||
116 | 116 | let IdxOperStartTimestamp = 6 | |
117 | 117 | ||
118 | 118 | let IdxOperEndHeight = 7 | |
119 | 119 | ||
120 | 120 | let IdxOperEndTimestamp = 8 | |
121 | 121 | ||
122 | 122 | func privateDataOperationAllStrings (status,inAssetAmount,price,outAssetAmount,startHeight,startTimestamp,endHeight,endTimestamp) = makeString(["%s%d%d%d%d%d%d%d", status, inAssetAmount, price, outAssetAmount, startHeight, startTimestamp, endHeight, endTimestamp], SEP) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func dataOperation (status,inAssetAmount,price,outAssetAmount,startHeight,startTimestamp,endHeight,endTimestamp) = privateDataOperationAllStrings(status, toString(inAssetAmount), toString(price), toString(outAssetAmount), toString(startHeight), toString(startTimestamp), toString(endHeight), toString(endTimestamp)) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func dataOperationExecutionUpdate (currOperArray,newStatus,newEndTimestamp) = privateDataOperationAllStrings(newStatus, currOperArray[IdxOperInAmount], currOperArray[IdxOperPrice], currOperArray[IdxOperOutAmount], currOperArray[IdxOperStartHeight], currOperArray[IdxOperStartTimestamp], currOperArray[IdxOperEndHeight], toString(newEndTimestamp)) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func readAssetCfgOrFail (baseAssetStr) = { | |
132 | 132 | let key = keyAssetCfg(baseAssetStr) | |
133 | 133 | split(getStringOrFail(key), SEP) | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func incrementTotalLocked (key,shareAssetAmount,baseAssetAmount) = { | |
138 | 138 | let dataArray = readTotalLocked(key) | |
139 | 139 | StringEntry(key, dataTotalLocked((dataArray[IdxTotalLockedShare] + shareAssetAmount), (dataArray[IdxTotalLockedBase] + baseAssetAmount))) | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func decrementTotalLocked (key,shareAssetAmount,baseAssetAmount) = { | |
144 | 144 | let dataArray = readTotalLocked(key) | |
145 | 145 | StringEntry(key, dataTotalLocked((dataArray[IdxTotalLockedShare] - shareAssetAmount), (dataArray[IdxTotalLockedBase] - baseAssetAmount))) | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
150 | 150 | case s: String => | |
151 | 151 | fromBase58String(s) | |
152 | 152 | case _: Unit => | |
153 | 153 | unit | |
154 | 154 | case _ => | |
155 | 155 | throw("Match error") | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
160 | 160 | case s: String => | |
161 | 161 | fromBase58String(s) | |
162 | 162 | case _: Unit => | |
163 | 163 | unit | |
164 | 164 | case _ => | |
165 | 165 | throw("Match error") | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func balanceOrZero (assetId) = valueOrElse(getInteger(keyBalance(assetId)), 0) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func genericCalcPrice (balance,internalBaseAssetStr,baseAssetId,topUpBaseAmount,shareAssetId,decimalsMultBothAssets,decimalsMultPrice) = { | |
173 | 173 | let totalLockedArray = readTotalLocked(keyTotalLocked(internalBaseAssetStr)) | |
174 | 174 | let totalLockedBaseAmount = totalLockedArray[IdxTotalLockedBase] | |
175 | 175 | let baseAssetBalance = balance | |
176 | 176 | let baseAssetBalanceConsideringLock = ((baseAssetBalance - totalLockedBaseAmount) + topUpBaseAmount) | |
177 | 177 | if ((0 > baseAssetBalanceConsideringLock)) | |
178 | 178 | then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(baseAssetBalance)) + " baseAssetBalanceConsideringLock=") + toString(baseAssetBalanceConsideringLock))) | |
179 | 179 | else { | |
180 | 180 | let shareEmission = value(assetInfo(shareAssetId)).quantity | |
181 | 181 | let price = if ((shareEmission == 0)) | |
182 | 182 | then (1 * decimalsMultPrice) | |
183 | 183 | else fraction(baseAssetBalanceConsideringLock, decimalsMultPrice, shareEmission) | |
184 | - | $Tuple5(price, baseAssetBalance, totalLockedBaseAmount, baseAssetBalanceConsideringLock, shareEmission) | |
184 | + | if (true) | |
185 | + | then throw(makeString([toString(price), toString(baseAssetBalance), toString(baseAssetBalanceConsideringLock), toString(shareEmission)], " ")) | |
186 | + | else $Tuple5(price, baseAssetBalance, totalLockedBaseAmount, baseAssetBalanceConsideringLock, shareEmission) | |
185 | 187 | } | |
186 | 188 | } | |
187 | 189 | ||
188 | 190 | ||
189 | 191 | func calcPrice (balance,internalBaseAssetStr,baseAssetId,shareAssetId,decimalsMultBothAssets,decimalsMultPrice) = genericCalcPrice(balance, internalBaseAssetStr, baseAssetId, 0, shareAssetId, decimalsMultBothAssets, decimalsMultPrice) | |
190 | 192 | ||
191 | 193 | ||
192 | 194 | func privateCurrentSysParamsREST (baseAssetStr) = { | |
193 | 195 | let baseAssetId = fromBase58String(baseAssetStr) | |
194 | 196 | let cfgArray = readAssetCfgOrFail(baseAssetStr) | |
195 | 197 | let shareAssetStr = cfgArray[IdxCfgShareAssetId] | |
196 | 198 | let shareAssetId = fromBase58String(shareAssetStr) | |
197 | 199 | let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets]) | |
198 | 200 | let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice]) | |
199 | 201 | let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset] | |
200 | 202 | let sysState = calcPrice(balanceOrZero(baseAssetStr), internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice) | |
201 | 203 | $Tuple6(IntegerEntry("price", sysState._1), IntegerEntry("decimalsMultPrice", decimalsMultPrice), IntegerEntry("baseAssetBalance", sysState._2), IntegerEntry("totalLockedBaseAmount", sysState._3), IntegerEntry("baseAssetBalanceConsideringLock", sysState._4), IntegerEntry("shareEmission", sysState._5)) | |
202 | 204 | } | |
203 | 205 | ||
204 | 206 | ||
205 | 207 | func mustManager (i) = { | |
206 | 208 | let pd = throw("permission denied") | |
207 | 209 | match managerPublicKeyOrUnit() { | |
208 | 210 | case pk: ByteVector => | |
209 | 211 | if ((i.callerPublicKey == pk)) | |
210 | 212 | then true | |
211 | 213 | else pd | |
212 | 214 | case _: Unit => | |
213 | 215 | if ((i.caller == this)) | |
214 | 216 | then true | |
215 | 217 | else pd | |
216 | 218 | case _ => | |
217 | 219 | throw("Match error") | |
218 | 220 | } | |
219 | 221 | } | |
220 | 222 | ||
221 | 223 | ||
222 | 224 | func mustProxyAddress (i,assetId) = { | |
223 | 225 | let isProxy = (toString(i.caller) == valueOrElse(getString(keyProxyAddress(assetId)), EMPTY)) | |
224 | 226 | if (isProxy) | |
225 | 227 | then true | |
226 | 228 | else { | |
227 | 229 | let checkCaller = mustManager(i) | |
228 | 230 | if ((checkCaller == checkCaller)) | |
229 | 231 | then true | |
230 | 232 | else throw("Strict value is not equal to itself.") | |
231 | 233 | } | |
232 | 234 | } | |
233 | 235 | ||
234 | 236 | ||
235 | 237 | @Callable(i) | |
236 | 238 | func constructor (assetsStoreContract) = { | |
237 | 239 | let checkCaller = mustManager(i) | |
238 | 240 | if ((checkCaller == checkCaller)) | |
239 | 241 | then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)] | |
240 | 242 | else throw("Strict value is not equal to itself.") | |
241 | 243 | } | |
242 | 244 | ||
243 | 245 | ||
244 | 246 | ||
245 | 247 | @Callable(i) | |
246 | 248 | func adminRegisterAsset (baseAssetStr,shareAssetName,shareAssetDescr,shareAssetLogo,getDelayinBlocks,shutdownManagerAddress,proxyAddress) = { | |
247 | 249 | let baseAssetId = fromBase58String(baseAssetStr) | |
248 | 250 | let decimals = value(assetInfo(baseAssetId)).decimals | |
249 | 251 | let check = mustManager(i) | |
250 | 252 | if ((check == check)) | |
251 | 253 | then if ((toString(addressFromStringValue(shutdownManagerAddress)) != shutdownManagerAddress)) | |
252 | 254 | then throw("invalid shutdownManagerAddress") | |
253 | 255 | else if ((0 > getDelayinBlocks)) | |
254 | 256 | then throw(("invalid getDelayinBlocks=" + toString(getDelayinBlocks))) | |
255 | 257 | else { | |
256 | 258 | let shareAssetIssueAction = Issue(shareAssetName, shareAssetDescr, 1, decimals, true) | |
257 | 259 | let shareAssetId = calculateAssetId(shareAssetIssueAction) | |
258 | 260 | let shareAssetStr = toBase58String(shareAssetId) | |
259 | 261 | let decimalsMultPrice = ((100 * 1000) * 1000) | |
260 | 262 | let decimalsMultBothAssets = pow(10, 0, decimals, 0, 0, DOWN) | |
261 | 263 | let startPrice = (1 * decimalsMultPrice) | |
262 | 264 | let internalBaseAssettId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0) | |
263 | 265 | let internalBaseAssetStr = toString(internalBaseAssettId) | |
264 | 266 | let createOrUpdate = invoke(assetsStoreContract(), "createOrUpdate", [shareAssetStr, shareAssetLogo, false], nil) | |
265 | 267 | if ((createOrUpdate == createOrUpdate)) | |
266 | 268 | then { | |
267 | 269 | let addLabel = invoke(assetsStoreContract(), "addLabel", [shareAssetStr, "DEFI"], nil) | |
268 | 270 | if ((addLabel == addLabel)) | |
269 | 271 | then [StringEntry(keyAssetCfg(baseAssetStr), dataAssetCfg(shareAssetStr, internalBaseAssetStr, decimalsMultBothAssets, decimalsMultPrice, getDelayinBlocks)), StringEntry(keyMappingsInternal2baseAssetId(internalBaseAssettId), baseAssetStr), StringEntry(keyMappingsBaseAsset2internalId(baseAssetStr), internalBaseAssetStr), StringEntry(keyMappingsShare2baseAssetId(shareAssetStr), baseAssetStr), StringEntry(keyMappingsBaseAsset2shareId(baseAssetStr), shareAssetStr), BooleanEntry(keyShutdownPutOperation(internalBaseAssetStr), false), StringEntry(keyShutdownManager(internalBaseAssetStr), shutdownManagerAddress), IntegerEntry(keyNextInternalAssetId(), (internalBaseAssettId + 1)), IntegerEntry(keyPriceLast(internalBaseAssetStr), startPrice), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), startPrice), shareAssetIssueAction, Burn(shareAssetId, 1), StringEntry(keyProxyAddress(baseAssetStr), proxyAddress)] | |
270 | 272 | else throw("Strict value is not equal to itself.") | |
271 | 273 | } | |
272 | 274 | else throw("Strict value is not equal to itself.") | |
273 | 275 | } | |
274 | 276 | else throw("Strict value is not equal to itself.") | |
275 | 277 | } | |
276 | 278 | ||
277 | 279 | ||
278 | 280 | ||
279 | 281 | @Callable(i) | |
280 | 282 | func shutdownPut (internalBaseAssetId) = { | |
281 | 283 | let internalBaseAssetIdStr = toString(internalBaseAssetId) | |
282 | 284 | let baseAssetIdStr = getStringOrFail(keyMappingsInternal2baseAssetId(internalBaseAssetId)) | |
283 | 285 | let shutdownManagerAddress = getStringOrFail(keyShutdownManager(internalBaseAssetIdStr)) | |
284 | 286 | if ((1 > size(baseAssetIdStr))) | |
285 | 287 | then throw("invalid internalBaseAssetId") | |
286 | 288 | else if ((toString(i.caller) != shutdownManagerAddress)) | |
287 | 289 | then throw("access denied") | |
288 | 290 | else [BooleanEntry(keyShutdownPutOperation(toString(internalBaseAssetId)), true)] | |
289 | 291 | } | |
290 | 292 | ||
291 | 293 | ||
292 | 294 | ||
293 | 295 | @Callable(i) | |
294 | 296 | func put () = { | |
295 | 297 | let pmt = value(i.payments[0]) | |
296 | 298 | let baseAssetId = value(pmt.assetId) | |
297 | 299 | let baseAssetStr = toBase58String(baseAssetId) | |
298 | 300 | let userAddressStr = toString(i.caller) | |
299 | 301 | let cfgArray = readAssetCfgOrFail(baseAssetStr) | |
300 | 302 | let shareAssetStr = cfgArray[IdxCfgShareAssetId] | |
301 | 303 | let shareAssetId = fromBase58String(shareAssetStr) | |
302 | 304 | let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets]) | |
303 | 305 | let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice]) | |
304 | 306 | let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset] | |
305 | 307 | let isPutBlocked = getBooleanOrFail(keyShutdownPutOperation(internalBaseAssetStr)) | |
306 | 308 | if (isPutBlocked) | |
307 | 309 | then throw("put operation is blocked") | |
308 | 310 | else { | |
309 | 311 | let price = calcPrice(balanceOrZero(baseAssetStr), internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1 | |
310 | 312 | let shareAssetAmount = fraction(pmt.amount, decimalsMultPrice, price) | |
311 | - | let balance = | |
313 | + | let balance = balanceOrZero(baseAssetStr) | |
312 | 314 | [Reissue(shareAssetId, shareAssetAmount, true), ScriptTransfer(i.caller, shareAssetAmount, shareAssetId), StringEntry(keyOperation("P", internalBaseAssetStr, userAddressStr, toBase58String(i.transactionId)), dataOperation("FINISHED", pmt.amount, price, shareAssetAmount, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(keyProxyAddress(baseAssetStr)))), pmt.amount, baseAssetId), IntegerEntry(keyBalance(baseAssetStr), (balance + pmt.amount))] | |
313 | 315 | } | |
314 | 316 | } | |
315 | 317 | ||
316 | 318 | ||
317 | 319 | ||
318 | 320 | @Callable(i) | |
319 | 321 | func submitGetRequest () = { | |
320 | 322 | let pmt = value(i.payments[0]) | |
321 | 323 | let shareAssetId = value(pmt.assetId) | |
322 | 324 | let shareAssetStr = toBase58String(shareAssetId) | |
323 | 325 | let callerPubStr = toBase58String(i.callerPublicKey) | |
324 | 326 | let userAddress = i.caller | |
325 | 327 | let userAddressStr = toString(userAddress) | |
326 | 328 | let shareAssetAmount = pmt.amount | |
327 | 329 | let baseAssetStr = getStringOrFail(keyMappingsShare2baseAssetId(shareAssetStr)) | |
328 | 330 | let baseAssetId = fromBase58String(baseAssetStr) | |
329 | 331 | let cfgArray = readAssetCfgOrFail(baseAssetStr) | |
330 | 332 | let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets]) | |
331 | 333 | let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice]) | |
332 | 334 | let getDelayBlocks = parseIntValue(cfgArray[IdxCfgGetDelayBlocks]) | |
333 | 335 | let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset] | |
334 | 336 | let price = calcPrice(balanceOrZero(baseAssetStr), internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1 | |
335 | 337 | let baseAssetAmount = fraction(shareAssetAmount, price, decimalsMultPrice) | |
336 | 338 | let operationKey = keyOperation("G", internalBaseAssetStr, userAddressStr, toBase58String(i.transactionId)) | |
337 | 339 | let operationData = dataOperation("PENDING", shareAssetAmount, price, baseAssetAmount, height, lastBlock.timestamp, (height + getDelayBlocks), 0) | |
338 | 340 | let balance = balanceOrZero(baseAssetStr) | |
339 | 341 | let pendingWD = valueOrElse(getInteger(keyPendingWithdrawals(baseAssetStr)), 0) | |
340 | 342 | [Burn(shareAssetId, shareAssetAmount), StringEntry(operationKey, operationData), incrementTotalLocked(keyTotalLocked(internalBaseAssetStr), shareAssetAmount, baseAssetAmount), incrementTotalLocked(keyTotalLockedByUser(internalBaseAssetStr, userAddressStr), shareAssetAmount, baseAssetAmount), IntegerEntry(keyPendingWithdrawals(baseAssetStr), (pendingWD + baseAssetAmount)), IntegerEntry(keyBalance(baseAssetStr), (balance - baseAssetAmount))] | |
341 | 343 | } | |
342 | 344 | ||
343 | 345 | ||
344 | 346 | ||
345 | 347 | @Callable(i) | |
346 | 348 | func executeGetRequest (baseAssetStr,userAddressStr,getTxIdStr) = { | |
347 | 349 | let userAddress = addressFromStringValue(userAddressStr) | |
348 | 350 | let assetCfgArray = readAssetCfgOrFail(baseAssetStr) | |
349 | 351 | let shareAssetId = fromBase58String(assetCfgArray[IdxCfgShareAssetId]) | |
350 | 352 | let baseAssetId = fromBase58String(baseAssetStr) | |
351 | 353 | let internalBaseAssetStr = assetCfgArray[IdxCfgInternalBaseAsset] | |
352 | 354 | let operationKey = keyOperation("G", internalBaseAssetStr, userAddressStr, getTxIdStr) | |
353 | 355 | let operationArray = split(getStringOrFail(operationKey), SEP) | |
354 | 356 | let status = operationArray[IdxOperStatus] | |
355 | 357 | let endHeight = parseIntValue(operationArray[IdxOperEndHeight]) | |
356 | 358 | let inShareAmount = parseIntValue(operationArray[IdxOperInAmount]) | |
357 | 359 | let outBaseAmount = parseIntValue(operationArray[IdxOperOutAmount]) | |
358 | 360 | if ((status != "PENDING")) | |
359 | 361 | then failExecuteGet("Status is not PENDING", baseAssetStr, userAddressStr, getTxIdStr) | |
360 | 362 | else if ((endHeight > height)) | |
361 | 363 | then failExecuteGet(((("EndHeight[" + toString(endHeight)) + "] > ") + toString(height)), baseAssetStr, userAddressStr, getTxIdStr) | |
362 | 364 | else [ScriptTransfer(userAddress, outBaseAmount, baseAssetId), StringEntry(operationKey, dataOperationExecutionUpdate(operationArray, "FINISHED", lastBlock.timestamp)), decrementTotalLocked(keyTotalLocked(internalBaseAssetStr), inShareAmount, outBaseAmount), decrementTotalLocked(keyTotalLockedByUser(internalBaseAssetStr, userAddressStr), inShareAmount, outBaseAmount)] | |
363 | 365 | } | |
364 | 366 | ||
365 | 367 | ||
366 | 368 | ||
367 | 369 | @Callable(i) | |
368 | 370 | func topUpBalance (baseAssetStr,delta) = { | |
369 | 371 | let assetCfgArray = readAssetCfgOrFail(baseAssetStr) | |
370 | 372 | let pmt = value(i.payments[0]) | |
371 | 373 | let pmtAssetId = value(pmt.assetId) | |
372 | 374 | let pmtAssetStr = toBase58String(pmtAssetId) | |
373 | 375 | let shareAssetId = fromBase58String(assetCfgArray[IdxCfgShareAssetId]) | |
374 | 376 | let decimalsMultBothAssets = parseIntValue(assetCfgArray[IdxCfgDecimalsMultBothAssets]) | |
375 | 377 | let decimalsMultPrice = parseIntValue(assetCfgArray[IdxCfgDecimalsMultPrice]) | |
376 | 378 | let internalBaseAssetStr = assetCfgArray[IdxCfgInternalBaseAsset] | |
377 | 379 | let topUpLastHeightKEY = keyTopUpLastHeight(internalBaseAssetStr, toString(i.caller)) | |
378 | 380 | let topUpLastHeight = valueOrElse(getInteger(this, topUpLastHeightKEY), 0) | |
379 | 381 | let checks = [mustProxyAddress(i, baseAssetStr), if ((pmt.amount == valueOrElse(getInteger(keyPendingWithdrawals(pmtAssetStr)), 0))) | |
380 | 382 | then true | |
381 | 383 | else throw("payment amount must be equal pendingWithdrawals")] | |
382 | 384 | if ((checks == checks)) | |
383 | 385 | then if ((baseAssetStr != pmtAssetStr)) | |
384 | 386 | then throw("attached payment's asset id is NOT matched passed baseAssetStr") | |
385 | 387 | else if ((size(i.payments) > 1)) | |
386 | 388 | then throw("only one payment can be attached") | |
387 | 389 | else if ((100 > (height - topUpLastHeight))) | |
388 | 390 | then throw("1 topUp per 100 blocks from the same address is allowed") | |
389 | 391 | else { | |
390 | 392 | let newBalance = (balanceOrZero(pmtAssetStr) + delta) | |
391 | 393 | let price = genericCalcPrice(newBalance, internalBaseAssetStr, pmtAssetId, pmt.amount, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1 | |
392 | 394 | [IntegerEntry(keyPriceLast(internalBaseAssetStr), price), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), price), IntegerEntry(topUpLastHeightKEY, height), IntegerEntry(keyBalance(pmtAssetStr), newBalance), IntegerEntry(keyPendingWithdrawals(pmtAssetStr), 0)] | |
393 | 395 | } | |
394 | 396 | else throw("Strict value is not equal to itself.") | |
395 | 397 | } | |
396 | 398 | ||
397 | 399 | ||
398 | 400 | ||
399 | 401 | @Callable(i) | |
400 | 402 | func currentSysParamsREST (baseAssetStr) = { | |
401 | 403 | let sysStateTuple = privateCurrentSysParamsREST(baseAssetStr) | |
402 | 404 | let price = sysStateTuple._1.value | |
403 | 405 | let decimalsMultPrice = sysStateTuple._2.value | |
404 | 406 | let baseAssetBalance = sysStateTuple._3.value | |
405 | 407 | let totalLockedBaseAmount = sysStateTuple._4.value | |
406 | 408 | let baseAssetBalanceConsideringLock = sysStateTuple._5.value | |
407 | 409 | let shareEmission = sysStateTuple._6.value | |
408 | 410 | let restData = makeString(["startCurrentSysParamsREST", toString(price), toString(decimalsMultPrice), toString(baseAssetBalance), toString(totalLockedBaseAmount), toString(baseAssetBalanceConsideringLock), toString(shareEmission), "endCurrentSysParamsREST"], SEP) | |
409 | 411 | throw(restData) | |
410 | 412 | } | |
411 | 413 | ||
412 | 414 | ||
413 | 415 | ||
414 | 416 | @Callable(i) | |
415 | 417 | func setManager (pendingManagerPublicKey) = { | |
416 | 418 | let checkCaller = mustManager(i) | |
417 | 419 | if ((checkCaller == checkCaller)) | |
418 | 420 | then { | |
419 | 421 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
420 | 422 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
421 | 423 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
422 | 424 | else throw("Strict value is not equal to itself.") | |
423 | 425 | } | |
424 | 426 | else throw("Strict value is not equal to itself.") | |
425 | 427 | } | |
426 | 428 | ||
427 | 429 | ||
428 | 430 | ||
429 | 431 | @Callable(i) | |
430 | 432 | func confirmManager () = { | |
431 | 433 | let pm = pendingManagerPublicKeyOrUnit() | |
432 | 434 | let hasPM = if (isDefined(pm)) | |
433 | 435 | then true | |
434 | 436 | else throw("no pending manager") | |
435 | 437 | if ((hasPM == hasPM)) | |
436 | 438 | then { | |
437 | 439 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
438 | 440 | then true | |
439 | 441 | else throw("you are not pending manager") | |
440 | 442 | if ((checkPM == checkPM)) | |
441 | 443 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
442 | 444 | else throw("Strict value is not equal to itself.") | |
443 | 445 | } | |
444 | 446 | else throw("Strict value is not equal to itself.") | |
445 | 447 | } | |
446 | 448 | ||
447 | 449 | ||
448 | 450 | @Verifier(tx) | |
449 | 451 | func verify () = { | |
450 | 452 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
451 | 453 | case pk: ByteVector => | |
452 | 454 | pk | |
453 | 455 | case _: Unit => | |
454 | 456 | tx.senderPublicKey | |
455 | 457 | case _ => | |
456 | 458 | throw("Match error") | |
457 | 459 | } | |
458 | 460 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
459 | 461 | } | |
460 | 462 |
github/deemru/w8io/026f985 80.82 ms ◑