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