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