tx · aYuqjfiKWp22w92ZJDrRVYBCbvE18pgdUTRLUPMwoPQ 3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu: -0.02900000 Waves 2022.06.09 16:48 [2088920] smart account 3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu > SELF 0.00000000 Waves
{ "type": 13, "id": "aYuqjfiKWp22w92ZJDrRVYBCbvE18pgdUTRLUPMwoPQ", "fee": 2900000, "feeAssetId": null, "timestamp": 1654782519381, "version": 1, "sender": "3Muw1aRbeKgLqAS264AakECyQAvDsnweHLu", "senderPublicKey": "668WwQVaWxezbvLEK3FccCSTbjst4zYAJDPrfLFRj9b9", "proofs": [ "2mhprdMF5s7MJ65XvFfZhepQDJ2v7ZSAbHrjZFhvKLP7Fsrfy1Gun2ua1RieBFWgbdEbWMe3zJ4CoFtMjTws9JXs" ], "script": "base64:AAIFAAAAAAAAADQIAhIDCgEIEgkKBwgICAgBCAgSAwoBARIAEgASBQoDCAgIEgQKAggBEgMKAQgSAwoBCBIAAAAAOgAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAEAAAAPZ2V0U3RyaW5nT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkJAAEsAAAAAgIAAAAVTm8gZGF0YSBmb3IgdGhpcy5rZXk9BQAAAANrZXkBAAAAEGdldEJvb2xlYW5PckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQkAASwAAAACAgAAABVObyBkYXRhIGZvciB0aGlzLmtleT0FAAAAA2tleQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAABBtYW5hZ2VyUHVibGljS2V5BQAAAANuaWwFAAAAA1NFUAEAAAAaa2V5UGVuZGluZ01h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gAAAAECAAAAG3lvdSBhcmUgbm90IHBlbmRpbmcgbWFuYWdlcgMJAAAAAAAAAgUAAAAHY2hlY2tQTQUAAAAHY2hlY2tQTQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAJAAJYAAAAAQkBAAAABXZhbHVlAAAAAQUAAAACcG0JAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5QMftgg==", "chainId": 84, "height": 2088920, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3omCpbMpELMhuv3We3yxPCvfG1M28h446XmNdsMRMVuQ Next: 5msQNBPagJRNj4i3gs7XAq218wmnsWcjUd6C6hGXv9gd Diff:
Old | New | Differences | |
---|---|---|---|
178 | 178 | then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(baseAssetBalance)) + " baseAssetBalanceConsideringLock=") + toString(baseAssetBalanceConsideringLock))) | |
179 | 179 | else { | |
180 | 180 | let shareEmission = value(assetInfo(shareAssetId)).quantity | |
181 | + | let currentBalance = valueOrElse(getInteger(keyBalance(toBase58String(baseAssetId))), 0) | |
181 | 182 | let price = if ((shareEmission == 0)) | |
182 | 183 | then (1 * decimalsMultPrice) | |
183 | - | else fraction(baseAssetBalanceConsideringLock, decimalsMultPrice, shareEmission) | |
184 | - | if (true) | |
185 | - | then throw(makeString([toString(price), toString(baseAssetBalance), toString(baseAssetBalanceConsideringLock), toString(shareEmission)], " ")) | |
186 | - | else $Tuple5(price, baseAssetBalance, totalLockedBaseAmount, baseAssetBalanceConsideringLock, shareEmission) | |
184 | + | else fraction(currentBalance, decimalsMultPrice, shareEmission) | |
185 | + | $Tuple5(price, baseAssetBalance, totalLockedBaseAmount, baseAssetBalanceConsideringLock, shareEmission) | |
187 | 186 | } | |
188 | 187 | } | |
189 | 188 |
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 | + | let currentBalance = valueOrElse(getInteger(keyBalance(toBase58String(baseAssetId))), 0) | |
181 | 182 | let price = if ((shareEmission == 0)) | |
182 | 183 | then (1 * decimalsMultPrice) | |
183 | - | else fraction(baseAssetBalanceConsideringLock, decimalsMultPrice, shareEmission) | |
184 | - | if (true) | |
185 | - | then throw(makeString([toString(price), toString(baseAssetBalance), toString(baseAssetBalanceConsideringLock), toString(shareEmission)], " ")) | |
186 | - | else $Tuple5(price, baseAssetBalance, totalLockedBaseAmount, baseAssetBalanceConsideringLock, shareEmission) | |
184 | + | else fraction(currentBalance, decimalsMultPrice, shareEmission) | |
185 | + | $Tuple5(price, baseAssetBalance, totalLockedBaseAmount, baseAssetBalanceConsideringLock, shareEmission) | |
187 | 186 | } | |
188 | 187 | } | |
189 | 188 | ||
190 | 189 | ||
191 | 190 | func calcPrice (balance,internalBaseAssetStr,baseAssetId,shareAssetId,decimalsMultBothAssets,decimalsMultPrice) = genericCalcPrice(balance, internalBaseAssetStr, baseAssetId, 0, shareAssetId, decimalsMultBothAssets, decimalsMultPrice) | |
192 | 191 | ||
193 | 192 | ||
194 | 193 | func privateCurrentSysParamsREST (baseAssetStr) = { | |
195 | 194 | let baseAssetId = fromBase58String(baseAssetStr) | |
196 | 195 | let cfgArray = readAssetCfgOrFail(baseAssetStr) | |
197 | 196 | let shareAssetStr = cfgArray[IdxCfgShareAssetId] | |
198 | 197 | let shareAssetId = fromBase58String(shareAssetStr) | |
199 | 198 | let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets]) | |
200 | 199 | let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice]) | |
201 | 200 | let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset] | |
202 | 201 | let sysState = calcPrice(balanceOrZero(baseAssetStr), internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice) | |
203 | 202 | $Tuple6(IntegerEntry("price", sysState._1), IntegerEntry("decimalsMultPrice", decimalsMultPrice), IntegerEntry("baseAssetBalance", sysState._2), IntegerEntry("totalLockedBaseAmount", sysState._3), IntegerEntry("baseAssetBalanceConsideringLock", sysState._4), IntegerEntry("shareEmission", sysState._5)) | |
204 | 203 | } | |
205 | 204 | ||
206 | 205 | ||
207 | 206 | func mustManager (i) = { | |
208 | 207 | let pd = throw("permission denied") | |
209 | 208 | match managerPublicKeyOrUnit() { | |
210 | 209 | case pk: ByteVector => | |
211 | 210 | if ((i.callerPublicKey == pk)) | |
212 | 211 | then true | |
213 | 212 | else pd | |
214 | 213 | case _: Unit => | |
215 | 214 | if ((i.caller == this)) | |
216 | 215 | then true | |
217 | 216 | else pd | |
218 | 217 | case _ => | |
219 | 218 | throw("Match error") | |
220 | 219 | } | |
221 | 220 | } | |
222 | 221 | ||
223 | 222 | ||
224 | 223 | func mustProxyAddress (i,assetId) = { | |
225 | 224 | let isProxy = (toString(i.caller) == valueOrElse(getString(keyProxyAddress(assetId)), EMPTY)) | |
226 | 225 | if (isProxy) | |
227 | 226 | then true | |
228 | 227 | else { | |
229 | 228 | let checkCaller = mustManager(i) | |
230 | 229 | if ((checkCaller == checkCaller)) | |
231 | 230 | then true | |
232 | 231 | else throw("Strict value is not equal to itself.") | |
233 | 232 | } | |
234 | 233 | } | |
235 | 234 | ||
236 | 235 | ||
237 | 236 | @Callable(i) | |
238 | 237 | func constructor (assetsStoreContract) = { | |
239 | 238 | let checkCaller = mustManager(i) | |
240 | 239 | if ((checkCaller == checkCaller)) | |
241 | 240 | then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)] | |
242 | 241 | else throw("Strict value is not equal to itself.") | |
243 | 242 | } | |
244 | 243 | ||
245 | 244 | ||
246 | 245 | ||
247 | 246 | @Callable(i) | |
248 | 247 | func adminRegisterAsset (baseAssetStr,shareAssetName,shareAssetDescr,shareAssetLogo,getDelayinBlocks,shutdownManagerAddress,proxyAddress) = { | |
249 | 248 | let baseAssetId = fromBase58String(baseAssetStr) | |
250 | 249 | let decimals = value(assetInfo(baseAssetId)).decimals | |
251 | 250 | let check = mustManager(i) | |
252 | 251 | if ((check == check)) | |
253 | 252 | then if ((toString(addressFromStringValue(shutdownManagerAddress)) != shutdownManagerAddress)) | |
254 | 253 | then throw("invalid shutdownManagerAddress") | |
255 | 254 | else if ((0 > getDelayinBlocks)) | |
256 | 255 | then throw(("invalid getDelayinBlocks=" + toString(getDelayinBlocks))) | |
257 | 256 | else { | |
258 | 257 | let shareAssetIssueAction = Issue(shareAssetName, shareAssetDescr, 1, decimals, true) | |
259 | 258 | let shareAssetId = calculateAssetId(shareAssetIssueAction) | |
260 | 259 | let shareAssetStr = toBase58String(shareAssetId) | |
261 | 260 | let decimalsMultPrice = ((100 * 1000) * 1000) | |
262 | 261 | let decimalsMultBothAssets = pow(10, 0, decimals, 0, 0, DOWN) | |
263 | 262 | let startPrice = (1 * decimalsMultPrice) | |
264 | 263 | let internalBaseAssettId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0) | |
265 | 264 | let internalBaseAssetStr = toString(internalBaseAssettId) | |
266 | 265 | let createOrUpdate = invoke(assetsStoreContract(), "createOrUpdate", [shareAssetStr, shareAssetLogo, false], nil) | |
267 | 266 | if ((createOrUpdate == createOrUpdate)) | |
268 | 267 | then { | |
269 | 268 | let addLabel = invoke(assetsStoreContract(), "addLabel", [shareAssetStr, "DEFI"], nil) | |
270 | 269 | if ((addLabel == addLabel)) | |
271 | 270 | 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)] | |
272 | 271 | else throw("Strict value is not equal to itself.") | |
273 | 272 | } | |
274 | 273 | else throw("Strict value is not equal to itself.") | |
275 | 274 | } | |
276 | 275 | else throw("Strict value is not equal to itself.") | |
277 | 276 | } | |
278 | 277 | ||
279 | 278 | ||
280 | 279 | ||
281 | 280 | @Callable(i) | |
282 | 281 | func shutdownPut (internalBaseAssetId) = { | |
283 | 282 | let internalBaseAssetIdStr = toString(internalBaseAssetId) | |
284 | 283 | let baseAssetIdStr = getStringOrFail(keyMappingsInternal2baseAssetId(internalBaseAssetId)) | |
285 | 284 | let shutdownManagerAddress = getStringOrFail(keyShutdownManager(internalBaseAssetIdStr)) | |
286 | 285 | if ((1 > size(baseAssetIdStr))) | |
287 | 286 | then throw("invalid internalBaseAssetId") | |
288 | 287 | else if ((toString(i.caller) != shutdownManagerAddress)) | |
289 | 288 | then throw("access denied") | |
290 | 289 | else [BooleanEntry(keyShutdownPutOperation(toString(internalBaseAssetId)), true)] | |
291 | 290 | } | |
292 | 291 | ||
293 | 292 | ||
294 | 293 | ||
295 | 294 | @Callable(i) | |
296 | 295 | func put () = { | |
297 | 296 | let pmt = value(i.payments[0]) | |
298 | 297 | let baseAssetId = value(pmt.assetId) | |
299 | 298 | let baseAssetStr = toBase58String(baseAssetId) | |
300 | 299 | let userAddressStr = toString(i.caller) | |
301 | 300 | let cfgArray = readAssetCfgOrFail(baseAssetStr) | |
302 | 301 | let shareAssetStr = cfgArray[IdxCfgShareAssetId] | |
303 | 302 | let shareAssetId = fromBase58String(shareAssetStr) | |
304 | 303 | let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets]) | |
305 | 304 | let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice]) | |
306 | 305 | let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset] | |
307 | 306 | let isPutBlocked = getBooleanOrFail(keyShutdownPutOperation(internalBaseAssetStr)) | |
308 | 307 | if (isPutBlocked) | |
309 | 308 | then throw("put operation is blocked") | |
310 | 309 | else { | |
311 | 310 | let price = calcPrice(balanceOrZero(baseAssetStr), internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1 | |
312 | 311 | let shareAssetAmount = fraction(pmt.amount, decimalsMultPrice, price) | |
313 | 312 | let balance = balanceOrZero(baseAssetStr) | |
314 | 313 | [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))] | |
315 | 314 | } | |
316 | 315 | } | |
317 | 316 | ||
318 | 317 | ||
319 | 318 | ||
320 | 319 | @Callable(i) | |
321 | 320 | func submitGetRequest () = { | |
322 | 321 | let pmt = value(i.payments[0]) | |
323 | 322 | let shareAssetId = value(pmt.assetId) | |
324 | 323 | let shareAssetStr = toBase58String(shareAssetId) | |
325 | 324 | let callerPubStr = toBase58String(i.callerPublicKey) | |
326 | 325 | let userAddress = i.caller | |
327 | 326 | let userAddressStr = toString(userAddress) | |
328 | 327 | let shareAssetAmount = pmt.amount | |
329 | 328 | let baseAssetStr = getStringOrFail(keyMappingsShare2baseAssetId(shareAssetStr)) | |
330 | 329 | let baseAssetId = fromBase58String(baseAssetStr) | |
331 | 330 | let cfgArray = readAssetCfgOrFail(baseAssetStr) | |
332 | 331 | let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets]) | |
333 | 332 | let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice]) | |
334 | 333 | let getDelayBlocks = parseIntValue(cfgArray[IdxCfgGetDelayBlocks]) | |
335 | 334 | let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset] | |
336 | 335 | let price = calcPrice(balanceOrZero(baseAssetStr), internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1 | |
337 | 336 | let baseAssetAmount = fraction(shareAssetAmount, price, decimalsMultPrice) | |
338 | 337 | let operationKey = keyOperation("G", internalBaseAssetStr, userAddressStr, toBase58String(i.transactionId)) | |
339 | 338 | let operationData = dataOperation("PENDING", shareAssetAmount, price, baseAssetAmount, height, lastBlock.timestamp, (height + getDelayBlocks), 0) | |
340 | 339 | let balance = balanceOrZero(baseAssetStr) | |
341 | 340 | let pendingWD = valueOrElse(getInteger(keyPendingWithdrawals(baseAssetStr)), 0) | |
342 | 341 | [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))] | |
343 | 342 | } | |
344 | 343 | ||
345 | 344 | ||
346 | 345 | ||
347 | 346 | @Callable(i) | |
348 | 347 | func executeGetRequest (baseAssetStr,userAddressStr,getTxIdStr) = { | |
349 | 348 | let userAddress = addressFromStringValue(userAddressStr) | |
350 | 349 | let assetCfgArray = readAssetCfgOrFail(baseAssetStr) | |
351 | 350 | let shareAssetId = fromBase58String(assetCfgArray[IdxCfgShareAssetId]) | |
352 | 351 | let baseAssetId = fromBase58String(baseAssetStr) | |
353 | 352 | let internalBaseAssetStr = assetCfgArray[IdxCfgInternalBaseAsset] | |
354 | 353 | let operationKey = keyOperation("G", internalBaseAssetStr, userAddressStr, getTxIdStr) | |
355 | 354 | let operationArray = split(getStringOrFail(operationKey), SEP) | |
356 | 355 | let status = operationArray[IdxOperStatus] | |
357 | 356 | let endHeight = parseIntValue(operationArray[IdxOperEndHeight]) | |
358 | 357 | let inShareAmount = parseIntValue(operationArray[IdxOperInAmount]) | |
359 | 358 | let outBaseAmount = parseIntValue(operationArray[IdxOperOutAmount]) | |
360 | 359 | if ((status != "PENDING")) | |
361 | 360 | then failExecuteGet("Status is not PENDING", baseAssetStr, userAddressStr, getTxIdStr) | |
362 | 361 | else if ((endHeight > height)) | |
363 | 362 | then failExecuteGet(((("EndHeight[" + toString(endHeight)) + "] > ") + toString(height)), baseAssetStr, userAddressStr, getTxIdStr) | |
364 | 363 | else [ScriptTransfer(userAddress, outBaseAmount, baseAssetId), StringEntry(operationKey, dataOperationExecutionUpdate(operationArray, "FINISHED", lastBlock.timestamp)), decrementTotalLocked(keyTotalLocked(internalBaseAssetStr), inShareAmount, outBaseAmount), decrementTotalLocked(keyTotalLockedByUser(internalBaseAssetStr, userAddressStr), inShareAmount, outBaseAmount)] | |
365 | 364 | } | |
366 | 365 | ||
367 | 366 | ||
368 | 367 | ||
369 | 368 | @Callable(i) | |
370 | 369 | func topUpBalance (baseAssetStr,delta) = { | |
371 | 370 | let assetCfgArray = readAssetCfgOrFail(baseAssetStr) | |
372 | 371 | let pmt = value(i.payments[0]) | |
373 | 372 | let pmtAssetId = value(pmt.assetId) | |
374 | 373 | let pmtAssetStr = toBase58String(pmtAssetId) | |
375 | 374 | let shareAssetId = fromBase58String(assetCfgArray[IdxCfgShareAssetId]) | |
376 | 375 | let decimalsMultBothAssets = parseIntValue(assetCfgArray[IdxCfgDecimalsMultBothAssets]) | |
377 | 376 | let decimalsMultPrice = parseIntValue(assetCfgArray[IdxCfgDecimalsMultPrice]) | |
378 | 377 | let internalBaseAssetStr = assetCfgArray[IdxCfgInternalBaseAsset] | |
379 | 378 | let topUpLastHeightKEY = keyTopUpLastHeight(internalBaseAssetStr, toString(i.caller)) | |
380 | 379 | let topUpLastHeight = valueOrElse(getInteger(this, topUpLastHeightKEY), 0) | |
381 | 380 | let checks = [mustProxyAddress(i, baseAssetStr), if ((pmt.amount == valueOrElse(getInteger(keyPendingWithdrawals(pmtAssetStr)), 0))) | |
382 | 381 | then true | |
383 | 382 | else throw("payment amount must be equal pendingWithdrawals")] | |
384 | 383 | if ((checks == checks)) | |
385 | 384 | then if ((baseAssetStr != pmtAssetStr)) | |
386 | 385 | then throw("attached payment's asset id is NOT matched passed baseAssetStr") | |
387 | 386 | else if ((size(i.payments) > 1)) | |
388 | 387 | then throw("only one payment can be attached") | |
389 | 388 | else if ((100 > (height - topUpLastHeight))) | |
390 | 389 | then throw("1 topUp per 100 blocks from the same address is allowed") | |
391 | 390 | else { | |
392 | 391 | let newBalance = (balanceOrZero(pmtAssetStr) + delta) | |
393 | 392 | let price = genericCalcPrice(newBalance, internalBaseAssetStr, pmtAssetId, pmt.amount, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1 | |
394 | 393 | [IntegerEntry(keyPriceLast(internalBaseAssetStr), price), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), price), IntegerEntry(topUpLastHeightKEY, height), IntegerEntry(keyBalance(pmtAssetStr), newBalance), IntegerEntry(keyPendingWithdrawals(pmtAssetStr), 0)] | |
395 | 394 | } | |
396 | 395 | else throw("Strict value is not equal to itself.") | |
397 | 396 | } | |
398 | 397 | ||
399 | 398 | ||
400 | 399 | ||
401 | 400 | @Callable(i) | |
402 | 401 | func currentSysParamsREST (baseAssetStr) = { | |
403 | 402 | let sysStateTuple = privateCurrentSysParamsREST(baseAssetStr) | |
404 | 403 | let price = sysStateTuple._1.value | |
405 | 404 | let decimalsMultPrice = sysStateTuple._2.value | |
406 | 405 | let baseAssetBalance = sysStateTuple._3.value | |
407 | 406 | let totalLockedBaseAmount = sysStateTuple._4.value | |
408 | 407 | let baseAssetBalanceConsideringLock = sysStateTuple._5.value | |
409 | 408 | let shareEmission = sysStateTuple._6.value | |
410 | 409 | let restData = makeString(["startCurrentSysParamsREST", toString(price), toString(decimalsMultPrice), toString(baseAssetBalance), toString(totalLockedBaseAmount), toString(baseAssetBalanceConsideringLock), toString(shareEmission), "endCurrentSysParamsREST"], SEP) | |
411 | 410 | throw(restData) | |
412 | 411 | } | |
413 | 412 | ||
414 | 413 | ||
415 | 414 | ||
416 | 415 | @Callable(i) | |
417 | 416 | func setManager (pendingManagerPublicKey) = { | |
418 | 417 | let checkCaller = mustManager(i) | |
419 | 418 | if ((checkCaller == checkCaller)) | |
420 | 419 | then { | |
421 | 420 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
422 | 421 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
423 | 422 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
424 | 423 | else throw("Strict value is not equal to itself.") | |
425 | 424 | } | |
426 | 425 | else throw("Strict value is not equal to itself.") | |
427 | 426 | } | |
428 | 427 | ||
429 | 428 | ||
430 | 429 | ||
431 | 430 | @Callable(i) | |
432 | 431 | func confirmManager () = { | |
433 | 432 | let pm = pendingManagerPublicKeyOrUnit() | |
434 | 433 | let hasPM = if (isDefined(pm)) | |
435 | 434 | then true | |
436 | 435 | else throw("no pending manager") | |
437 | 436 | if ((hasPM == hasPM)) | |
438 | 437 | then { | |
439 | 438 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
440 | 439 | then true | |
441 | 440 | else throw("you are not pending manager") | |
442 | 441 | if ((checkPM == checkPM)) | |
443 | 442 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
444 | 443 | else throw("Strict value is not equal to itself.") | |
445 | 444 | } | |
446 | 445 | else throw("Strict value is not equal to itself.") | |
447 | 446 | } | |
448 | 447 | ||
449 | 448 | ||
450 | 449 | @Verifier(tx) | |
451 | 450 | func verify () = { | |
452 | 451 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
453 | 452 | case pk: ByteVector => | |
454 | 453 | pk | |
455 | 454 | case _: Unit => | |
456 | 455 | tx.senderPublicKey | |
457 | 456 | case _ => | |
458 | 457 | throw("Match error") | |
459 | 458 | } | |
460 | 459 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
461 | 460 | } | |
462 | 461 |
github/deemru/w8io/026f985 75.81 ms ◑