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