tx · GX27xtwEdrSMS1JSP7JJui7Dmi8fgDch6jtyLZGUgZ5p 3MtPDYqG9UrAsCvnwMEajtB3dyceRkEngcv: -0.01000000 Waves 2021.03.22 20:28 [1449252] smart account 3MtPDYqG9UrAsCvnwMEajtB3dyceRkEngcv > SELF 0.00000000 Waves
{ "type": 13, "id": "GX27xtwEdrSMS1JSP7JJui7Dmi8fgDch6jtyLZGUgZ5p", "fee": 1000000, "feeAssetId": null, "timestamp": 1616434176959, "version": 1, "sender": "3MtPDYqG9UrAsCvnwMEajtB3dyceRkEngcv", "senderPublicKey": "EsPurYu7KHc3cpfQgiR6m6Za1t47PcbhtVWPycmHZhVf", "proofs": [ "UMjLzMuianJVmTAMNgZFewZ8CnozhjVKtcM5BZ8tzSEKVgQ4otZ56ZKp9fFW9UZg36hRbLqYfvVo9bDudG98zqq" ], "script": "base64:AAIEAAAAAAAAADEIAhILCgkICAgBCAEBAQgSAwoBARIAEgASBQoDCAgIEgUKAwgICBIECgIIARIDCgEIAAAAPAAAAAADU0VQAgAAAAJfXwEAAAAPZ2V0U3RyaW5nT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkJAAEsAAAAAgIAAAAVTm8gZGF0YSBmb3IgdGhpcy5rZXk9BQAAAANrZXkBAAAAEGdldEJvb2xlYW5PckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQkAASwAAAACAgAAABVObyBkYXRhIGZvciB0aGlzLmtleT0FAAAAA2tleQEAAAAMZ2V0SW50T3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkJAAEsAAAAAgIAAAAVTm8gZGF0YSBmb3IgdGhpcy5rZXk9BQAAAANrZXkB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: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let SEP = "__" | |
5 | + | ||
6 | + | func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key)) | |
7 | + | ||
8 | + | ||
9 | + | func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key)) | |
10 | + | ||
11 | + | ||
12 | + | func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key)) | |
13 | + | ||
14 | + | ||
15 | + | func failExecuteGet (msg,baseAssetStr,userAddressStr,submitTxIdStr,operationType) = throw(((((((((msg + ": baseAssetStr=") + baseAssetStr) + " userAddressStr=") + userAddressStr) + " submitTxIdStr=") + submitTxIdStr) + " operationType=") + operationType)) | |
16 | + | ||
17 | + | ||
18 | + | func keyAssetCfg (baseAssetStr) = ("%s%s%s__config__asset__" + baseAssetStr) | |
19 | + | ||
20 | + | ||
21 | + | func keyNextInternalAssetId () = "%s__nextInternalAssetId" | |
22 | + | ||
23 | + | ||
24 | + | func keyPriceLast (internalBasetAssetStr) = ("%s%s%d__price__last__" + internalBasetAssetStr) | |
25 | + | ||
26 | + | ||
27 | + | func keyPriceATH (internalBasetAssetStr) = ("%s%s%d__price__ath__" + internalBasetAssetStr) | |
28 | + | ||
29 | + | ||
30 | + | func keyPriceByTopUpIdx (internalBaseAssetStr,topUpIdx) = makeString(["%s%s%d%d__price__byTopUpIdx", internalBaseAssetStr, toString(topUpIdx)], SEP) | |
31 | + | ||
32 | + | ||
33 | + | func keyPriceHistory (internalBasetAssetStr,h,timestamp) = makeString(["%s%s%d%d%d__price__history", internalBasetAssetStr, toString(h), toString(timestamp)], SEP) | |
34 | + | ||
35 | + | ||
36 | + | func keyTotalLocked (internalBasetAssetStr) = ("%s%s%d__total__locked__" + internalBasetAssetStr) | |
37 | + | ||
38 | + | ||
39 | + | func keyTotalLockedByUser (internalBaseAssetStr,userAddressStr) = makeString(["%s%s%d%s__total__locked", internalBaseAssetStr, userAddressStr], SEP) | |
40 | + | ||
41 | + | ||
42 | + | func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset)) | |
43 | + | ||
44 | + | ||
45 | + | func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr) | |
46 | + | ||
47 | + | ||
48 | + | func keyMappingsShare2baseAssetId (shareAssetStr) = ("%s%s%s__mappings__share2baseAssetId__" + shareAssetStr) | |
49 | + | ||
50 | + | ||
51 | + | func keyMappingsBaseAsset2shareId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2shareId__" + baseAssetStr) | |
52 | + | ||
53 | + | ||
54 | + | func keyShutdownPutOperation (internalBaseAssetStr) = ("%s%s%d__shutdown__put__" + internalBaseAssetStr) | |
55 | + | ||
56 | + | ||
57 | + | func keyShutdownManager (internalBaseAssetStr) = ("%s%s%d__shutdown__manager__" + internalBaseAssetStr) | |
58 | + | ||
59 | + | ||
60 | + | func keyTopUpCurrentIdx (internalBaseAssetStr) = ("%s%s%d__topup__currentIdx__" + internalBaseAssetStr) | |
61 | + | ||
62 | + | ||
63 | + | func keyTopUpLastHeight (internalBasetAssetStr,sender) = makeString(["%s%s%s%d%s__topup__last__height", internalBasetAssetStr, sender], SEP) | |
64 | + | ||
65 | + | ||
66 | + | func convertShare2Base (shareAmount,price,priceMult) = fraction(shareAmount, price, priceMult) | |
67 | + | ||
68 | + | ||
69 | + | func convertBase2Share (baseAmount,price,priceMult) = fraction(baseAmount, priceMult, price) | |
70 | + | ||
71 | + | ||
72 | + | let IdxCfgShareAssetId = 1 | |
73 | + | ||
74 | + | let IdxCfgInternalBaseAsset = 2 | |
75 | + | ||
76 | + | let IdxCfgDecimalsMultBothAssets = 3 | |
77 | + | ||
78 | + | let IdxCfgDecimalsMultPrice = 4 | |
79 | + | ||
80 | + | let IdxCfgGetDelayBlocks = 5 | |
81 | + | ||
82 | + | let IdxCfgTopupIntervalInBlocks = 6 | |
83 | + | ||
84 | + | let IdxCfgTopupMaxNegativePart = 7 | |
85 | + | ||
86 | + | let IdxCfgTopupManagerAddress = 8 | |
87 | + | ||
88 | + | func dataAssetCfg (shareAssetStr,internalBaseAssetStr,decimalsMultBothAssets,decimalsMultPrice,getDelayInBlocks,topupIntervalInBlocks,topupMaxNegativePart,topupManagerAddress) = makeString(["%s%d%d%d%d%d", shareAssetStr, internalBaseAssetStr, toString(decimalsMultBothAssets), toString(decimalsMultPrice), toString(getDelayInBlocks), toString(topupIntervalInBlocks), toString(topupMaxNegativePart), topupManagerAddress], SEP) | |
89 | + | ||
90 | + | ||
91 | + | let IdxTotalLockedInShare = 1 | |
92 | + | ||
93 | + | let IdxTotalLockedOutBase = 2 | |
94 | + | ||
95 | + | let IdxTotalLockedInBase = 3 | |
96 | + | ||
97 | + | let IdxTotalLockedOutShare = 4 | |
98 | + | ||
99 | + | func dataTotalLocked (inShareAmount,outBaseAmount,inBaseAmount,outShareAmount) = makeString(["%d%d%d%d", toString(inShareAmount), toString(outBaseAmount), toString(inBaseAmount), toString(outShareAmount)], SEP) | |
100 | + | ||
101 | + | ||
102 | + | func dataTotalLockedInt (inShareAmount,outBaseAmount,inBaseAmount,outShareAmount) = [-1, inShareAmount, outBaseAmount, inBaseAmount, outShareAmount] | |
103 | + | ||
104 | + | ||
105 | + | func readTotalLocked (key) = { | |
106 | + | let totalLockedArray = split(valueOrElse(getString(this, key), dataTotalLocked(0, 0, 0, 0)), SEP) | |
107 | + | dataTotalLockedInt(parseIntValue(totalLockedArray[IdxTotalLockedInShare]), parseIntValue(totalLockedArray[IdxTotalLockedOutBase]), parseIntValue(totalLockedArray[IdxTotalLockedInBase]), parseIntValue(totalLockedArray[IdxTotalLockedOutShare])) | |
108 | + | } | |
109 | + | ||
110 | + | ||
111 | + | func calcTotalLockedDiff (direction,operationType,internalBaseAssetStr,price,priceMult,inAmount,baseAssetId,shareAssetId) = { | |
112 | + | let t = (direction + operationType) | |
113 | + | if ((t == "submitP")) | |
114 | + | then { | |
115 | + | let totalDiff = dataTotalLockedInt(0, 0, inAmount, 0) | |
116 | + | let userDiff = totalDiff | |
117 | + | $Tuple4(totalDiff, userDiff, 0, fromBase58String("")) | |
118 | + | } | |
119 | + | else if ((t == "submitG")) | |
120 | + | then { | |
121 | + | let totalDiff = dataTotalLockedInt(inAmount, 0, 0, 0) | |
122 | + | let userDiff = totalDiff | |
123 | + | $Tuple4(totalDiff, userDiff, 0, fromBase58String("")) | |
124 | + | } | |
125 | + | else if ((t == "executeP")) | |
126 | + | then { | |
127 | + | let outAmount = convertBase2Share(inAmount, price, priceMult) | |
128 | + | let totalDiff = dataTotalLockedInt(0, 0, 0, outAmount) | |
129 | + | let userDiff = dataTotalLockedInt(0, 0, inAmount, 0) | |
130 | + | $Tuple4(totalDiff, userDiff, outAmount, shareAssetId) | |
131 | + | } | |
132 | + | else if ((t == "executeG")) | |
133 | + | then { | |
134 | + | let outAmount = convertShare2Base(inAmount, price, priceMult) | |
135 | + | let totalDiff = dataTotalLockedInt(0, outAmount, 0, 0) | |
136 | + | let userDiff = dataTotalLockedInt(inAmount, 0, 0, 0) | |
137 | + | $Tuple4(totalDiff, userDiff, outAmount, baseAssetId) | |
138 | + | } | |
139 | + | else if ((t == "topup")) | |
140 | + | then { | |
141 | + | let totalLockedArray = readTotalLocked(keyTotalLocked(internalBaseAssetStr)) | |
142 | + | let totalLockedInBaseAmount = totalLockedArray[IdxTotalLockedInBase] | |
143 | + | let totalLockedInShareAmount = totalLockedArray[IdxTotalLockedInShare] | |
144 | + | let totalDiff = dataTotalLockedInt(totalLockedInShareAmount, (-1 * convertShare2Base(totalLockedInShareAmount, price, priceMult)), totalLockedInBaseAmount, (-1 * convertBase2Share(totalLockedInBaseAmount, price, priceMult))) | |
145 | + | $Tuple4(totalDiff, nil, 0, fromBase58String("")) | |
146 | + | } | |
147 | + | else throw(("Unsupported Type " + t)) | |
148 | + | } | |
149 | + | ||
150 | + | ||
151 | + | func TotalLockedStringEntry (action,key,diff) = { | |
152 | + | func UPDATE (a,b) = if ((action == "INCREMENT")) | |
153 | + | then (a + b) | |
154 | + | else if ((action == "DECREMENT")) | |
155 | + | then (a - b) | |
156 | + | else throw(("Unsupported action " + action)) | |
157 | + | ||
158 | + | let dataArray = readTotalLocked(key) | |
159 | + | StringEntry(key, dataTotalLocked(UPDATE(dataArray[IdxTotalLockedInShare], diff[IdxTotalLockedInShare]), UPDATE(dataArray[IdxTotalLockedOutBase], diff[IdxTotalLockedOutBase]), UPDATE(dataArray[IdxTotalLockedInBase], diff[IdxTotalLockedInBase]), UPDATE(dataArray[IdxTotalLockedOutShare], diff[IdxTotalLockedOutShare]))) | |
160 | + | } | |
161 | + | ||
162 | + | ||
163 | + | func keyOperation (operationType,internalBaseAssetStr,userAddress,txId) = makeString(["%s%d%s%s", operationType, internalBaseAssetStr, userAddress, txId], SEP) | |
164 | + | ||
165 | + | ||
166 | + | let IdxOperStatus = 1 | |
167 | + | ||
168 | + | let IdxOperInAmount = 2 | |
169 | + | ||
170 | + | let IdxOperPrice = 3 | |
171 | + | ||
172 | + | let IdxOperOutAmount = 4 | |
173 | + | ||
174 | + | let IdxOperStartHeight = 5 | |
175 | + | ||
176 | + | let IdxOperStartTimestamp = 6 | |
177 | + | ||
178 | + | let IdxOperEndHeight = 7 | |
179 | + | ||
180 | + | let IdxOperEndTimestamp = 8 | |
181 | + | ||
182 | + | let IdxOperLock = 9 | |
183 | + | ||
184 | + | func privateDataOperationAllStrings (status,inAssetAmount,price,outAssetAmount,startHeight,startTimestamp,endHeight,endTimestamp,lock) = makeString(["%s%d%d%d%d%d%d%d%d", status, inAssetAmount, price, outAssetAmount, startHeight, startTimestamp, endHeight, endTimestamp, lock], SEP) | |
185 | + | ||
186 | + | ||
187 | + | func dataOperation (status,inAssetAmount,price,outAssetAmount,startHeight,startTimestamp,endHeight,endTimestamp,lock) = privateDataOperationAllStrings(status, toString(inAssetAmount), toString(price), toString(outAssetAmount), toString(startHeight), toString(startTimestamp), toString(endHeight), toString(endTimestamp), toString(lock)) | |
188 | + | ||
189 | + | ||
190 | + | func dataOperationExecutionUpdate (currOperArray,newStatus,newPrice,newOutAmount) = privateDataOperationAllStrings(newStatus, currOperArray[IdxOperInAmount], toString(newPrice), toString(newOutAmount), currOperArray[IdxOperStartHeight], currOperArray[IdxOperStartTimestamp], toString(height), toString(lastBlock.timestamp), currOperArray[IdxOperLock]) | |
191 | + | ||
192 | + | ||
193 | + | func readAssetCfgOrFail (baseAssetStr) = { | |
194 | + | let key = keyAssetCfg(baseAssetStr) | |
195 | + | split(getStringOrFail(key), SEP) | |
196 | + | } | |
197 | + | ||
198 | + | ||
199 | + | func genericCalcPrice (internalBaseAssetStr,baseAssetId,topUpBaseAmount,shareAssetId,decimalsMultPrice) = { | |
200 | + | let totalLockedArray = readTotalLocked(keyTotalLocked(internalBaseAssetStr)) | |
201 | + | let totalLockedOutBaseAmount = totalLockedArray[IdxTotalLockedOutBase] | |
202 | + | let totalLockedInBaseAmount = totalLockedArray[IdxTotalLockedInBase] | |
203 | + | let baseAssetBalance = assetBalance(this, baseAssetId) | |
204 | + | let baseAssetBalanceCALC = (((baseAssetBalance + topUpBaseAmount) - totalLockedInBaseAmount) - totalLockedOutBaseAmount) | |
205 | + | let totalLockedOutShareAmount = totalLockedArray[IdxTotalLockedOutShare] | |
206 | + | let totalLockedInShareAmount = totalLockedArray[IdxTotalLockedInShare] | |
207 | + | let shareEmission = value(assetInfo(shareAssetId)).quantity | |
208 | + | let shareEmissionCALC = (shareEmission + totalLockedOutShareAmount) | |
209 | + | if ((0 > baseAssetBalanceCALC)) | |
210 | + | then throw(((("baseAssetBalanceCALC < 0: baseAssetBalance=" + toString(baseAssetBalance)) + " baseAssetBalanceCALC=") + toString(baseAssetBalanceCALC))) | |
211 | + | else { | |
212 | + | let price = if ((shareEmission == 0)) | |
213 | + | then (2 * decimalsMultPrice) | |
214 | + | else fraction(baseAssetBalanceCALC, decimalsMultPrice, shareEmissionCALC) | |
215 | + | $Tuple5(price, baseAssetBalance, totalLockedOutBaseAmount, baseAssetBalanceCALC, shareEmission) | |
216 | + | } | |
217 | + | } | |
218 | + | ||
219 | + | ||
220 | + | func calcPrice (internalBaseAssetStr,baseAssetId,shareAssetId,decimalsMultPrice) = genericCalcPrice(internalBaseAssetStr, baseAssetId, 0, shareAssetId, decimalsMultPrice) | |
221 | + | ||
222 | + | ||
223 | + | func submit (operationType,i,inAmount,inAssetId,baseAssetStr) = { | |
224 | + | let inAssetStr = toBase58String(inAssetId) | |
225 | + | let userAddressStr = toString(i.caller) | |
226 | + | let baseAssetId = fromBase58String(baseAssetStr) | |
227 | + | let cfgArray = readAssetCfgOrFail(baseAssetStr) | |
228 | + | let shareAssetStr = cfgArray[IdxCfgShareAssetId] | |
229 | + | let shareAssetId = fromBase58String(shareAssetStr) | |
230 | + | let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets]) | |
231 | + | let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset] | |
232 | + | let isPutBlocked = getBooleanOrFail(keyShutdownPutOperation(internalBaseAssetStr)) | |
233 | + | if (isPutBlocked) | |
234 | + | then throw("put operation is blocked") | |
235 | + | else { | |
236 | + | let topUpCurrentIdx = getIntOrFail(keyTopUpCurrentIdx(internalBaseAssetStr)) | |
237 | + | let diffTuple = calcTotalLockedDiff("submit", operationType, internalBaseAssetStr, 0, 0, inAmount, baseAssetId, shareAssetId) | |
238 | + | (([StringEntry(keyOperation(operationType, internalBaseAssetStr, userAddressStr, toBase58String(i.transactionId)), dataOperation("PENDING", inAmount, 0, 0, height, lastBlock.timestamp, 0, 0, (topUpCurrentIdx + 1)))] :+ TotalLockedStringEntry("INCREMENT", keyTotalLocked(internalBaseAssetStr), diffTuple._1)) :+ TotalLockedStringEntry("INCREMENT", keyTotalLockedByUser(internalBaseAssetStr, userAddressStr), diffTuple._2)) | |
239 | + | } | |
240 | + | } | |
241 | + | ||
242 | + | ||
243 | + | func execute (operationType,baseAssetStr,userAddressStr,submitTxIdStr) = { | |
244 | + | let userAddress = addressFromStringValue(userAddressStr) | |
245 | + | let assetCfgArray = readAssetCfgOrFail(baseAssetStr) | |
246 | + | let shareAssetId = fromBase58String(assetCfgArray[IdxCfgShareAssetId]) | |
247 | + | let internalBaseAssetStr = assetCfgArray[IdxCfgInternalBaseAsset] | |
248 | + | let decimalsMultPrice = parseIntValue(assetCfgArray[IdxCfgDecimalsMultPrice]) | |
249 | + | let baseAssetId = fromBase58String(baseAssetStr) | |
250 | + | let operationKey = keyOperation(operationType, internalBaseAssetStr, userAddressStr, submitTxIdStr) | |
251 | + | let operationArray = split(getStringOrFail(operationKey), SEP) | |
252 | + | let status = operationArray[IdxOperStatus] | |
253 | + | let inAmount = parseIntValue(operationArray[IdxOperInAmount]) | |
254 | + | let operLock = parseIntValue(operationArray[IdxOperLock]) | |
255 | + | let currTopUpIdx = getIntOrFail(keyTopUpCurrentIdx(internalBaseAssetStr)) | |
256 | + | let priceByTopUpId = getIntOrFail(keyPriceByTopUpIdx(internalBaseAssetStr, currTopUpIdx)) | |
257 | + | if ((status != "PENDING")) | |
258 | + | then failExecuteGet("Status is not PENDING", baseAssetStr, userAddressStr, submitTxIdStr, operationType) | |
259 | + | else if ((operLock > currTopUpIdx)) | |
260 | + | then failExecuteGet(((("OperLock[" + toString(operLock)) + "] > ") + toString(currTopUpIdx)), baseAssetStr, userAddressStr, submitTxIdStr, operationType) | |
261 | + | else { | |
262 | + | let diffTuple = calcTotalLockedDiff("execute", operationType, internalBaseAssetStr, priceByTopUpId, decimalsMultPrice, inAmount, baseAssetId, shareAssetId) | |
263 | + | let outAmount = diffTuple._3 | |
264 | + | let outTransferData = if ((diffTuple._4 == baseAssetId)) | |
265 | + | then [ScriptTransfer(userAddress, outAmount, baseAssetId)] | |
266 | + | else [Reissue(shareAssetId, outAmount, true), ScriptTransfer(userAddress, outAmount, shareAssetId)] | |
267 | + | (((outTransferData :+ StringEntry(operationKey, dataOperationExecutionUpdate(operationArray, "FINISHED", priceByTopUpId, outAmount))) :+ TotalLockedStringEntry("DECREMENT", keyTotalLocked(internalBaseAssetStr), diffTuple._1)) :+ TotalLockedStringEntry("DECREMENT", keyTotalLockedByUser(internalBaseAssetStr, userAddressStr), diffTuple._2)) | |
268 | + | } | |
269 | + | } | |
270 | + | ||
271 | + | ||
272 | + | func privateCurrentSysParamsREST (baseAssetStr) = { | |
273 | + | let baseAssetId = fromBase58String(baseAssetStr) | |
274 | + | let cfgArray = readAssetCfgOrFail(baseAssetStr) | |
275 | + | let shareAssetStr = cfgArray[IdxCfgShareAssetId] | |
276 | + | let shareAssetId = fromBase58String(shareAssetStr) | |
277 | + | let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets]) | |
278 | + | let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice]) | |
279 | + | let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset] | |
280 | + | let sysState = calcPrice(internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultPrice) | |
281 | + | $Tuple6(IntegerEntry("price", sysState._1), IntegerEntry("decimalsMultPrice", decimalsMultPrice), IntegerEntry("baseAssetBalance", sysState._2), IntegerEntry("totalLockedBaseAmount", sysState._3), IntegerEntry("baseAssetBalanceConsideringLock", sysState._4), IntegerEntry("shareEmission", sysState._5)) | |
282 | + | } | |
283 | + | ||
284 | + | ||
285 | + | @Callable(i) | |
286 | + | func adminRegisterAsset (baseAssetStr,shareAssetName,shareAssetDescr,getDelayinBlocks,shutdownManagerAddress,startPrice,topupIntervalInBlocks,topupMaxNegativePart,topupManagerAddress) = { | |
287 | + | let baseAssetId = fromBase58String(baseAssetStr) | |
288 | + | let decimals = value(assetInfo(baseAssetId)).decimals | |
289 | + | let decimalsMultBothAssets = pow(10, 0, decimals, 0, 0, DOWN) | |
290 | + | let decimalsMultPrice = ((100 * 1000) * 1000) | |
291 | + | let topupMaxNegativePercents = fraction(topupMaxNegativePart, 100, decimalsMultBothAssets) | |
292 | + | let baseAssetBalance = assetBalance(this, baseAssetId) | |
293 | + | if ((i.caller != this)) | |
294 | + | then throw("permissions denied") | |
295 | + | else if ((baseAssetBalance == 0)) | |
296 | + | then throw(((toString(this) + " must have any initial balance of ") + baseAssetStr)) | |
297 | + | else if (isDefined(getString(this, keyAssetCfg(baseAssetStr)))) | |
298 | + | then throw((baseAssetStr + " has been already registered")) | |
299 | + | else if ((toString(addressFromStringValue(shutdownManagerAddress)) != shutdownManagerAddress)) | |
300 | + | then throw("invalid shutdownManagerAddress") | |
301 | + | else if ((toString(addressFromStringValue(topupManagerAddress)) != topupManagerAddress)) | |
302 | + | then throw("invalid topupManagerAddress") | |
303 | + | else if ((0 > getDelayinBlocks)) | |
304 | + | then throw(("invalid getDelayinBlocks=" + toString(getDelayinBlocks))) | |
305 | + | else if (if ((0 >= topupMaxNegativePercents)) | |
306 | + | then true | |
307 | + | else (topupMaxNegativePercents >= 99)) | |
308 | + | then throw("invalid topupMaxNegativePart parameter") | |
309 | + | else { | |
310 | + | let shareInitAmount = convertBase2Share(baseAssetBalance, startPrice, decimalsMultPrice) | |
311 | + | let shareAssetIssueAction = Issue(shareAssetName, shareAssetDescr, shareInitAmount, decimals, true) | |
312 | + | let shareAssetId = calculateAssetId(shareAssetIssueAction) | |
313 | + | let shareAssetStr = toBase58String(shareAssetId) | |
314 | + | let internalBaseAssettId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0) | |
315 | + | let internalBaseAssetStr = toString(internalBaseAssettId) | |
316 | + | [StringEntry(keyAssetCfg(baseAssetStr), dataAssetCfg(shareAssetStr, internalBaseAssetStr, decimalsMultBothAssets, decimalsMultPrice, getDelayinBlocks, topupIntervalInBlocks, topupMaxNegativePart, topupManagerAddress)), 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), IntegerEntry(keyTopUpCurrentIdx(internalBaseAssetStr), 0), shareAssetIssueAction] | |
317 | + | } | |
318 | + | } | |
319 | + | ||
320 | + | ||
321 | + | ||
322 | + | @Callable(i) | |
323 | + | func shutdownPut (internalBaseAssetId) = { | |
324 | + | let internalBaseAssetIdStr = toString(internalBaseAssetId) | |
325 | + | let baseAssetIdStr = getStringOrFail(keyMappingsInternal2baseAssetId(internalBaseAssetId)) | |
326 | + | let shutdownManagerAddress = getStringOrFail(keyShutdownManager(internalBaseAssetIdStr)) | |
327 | + | if ((1 > size(baseAssetIdStr))) | |
328 | + | then throw("invalid internalBaseAssetId") | |
329 | + | else if ((toString(i.caller) != shutdownManagerAddress)) | |
330 | + | then throw("access denied") | |
331 | + | else [BooleanEntry(keyShutdownPutOperation(toString(internalBaseAssetId)), true)] | |
332 | + | } | |
333 | + | ||
334 | + | ||
335 | + | ||
336 | + | @Callable(i) | |
337 | + | func submitPut () = { | |
338 | + | let pmt = value(i.payments[0]) | |
339 | + | let inAmount = pmt.amount | |
340 | + | let inAssetId = value(pmt.assetId) | |
341 | + | let baseAssetStr = toBase58String(inAssetId) | |
342 | + | submit("P", i, inAmount, inAssetId, baseAssetStr) | |
343 | + | } | |
344 | + | ||
345 | + | ||
346 | + | ||
347 | + | @Callable(i) | |
348 | + | func submitGet () = { | |
349 | + | let pmt = value(i.payments[0]) | |
350 | + | let inAmount = pmt.amount | |
351 | + | let inAssetId = value(pmt.assetId) | |
352 | + | let shareAssetStr = toBase58String(inAssetId) | |
353 | + | let baseAssetStr = getStringOrFail(keyMappingsShare2baseAssetId(shareAssetStr)) | |
354 | + | submit("G", i, inAmount, inAssetId, baseAssetStr) | |
355 | + | } | |
356 | + | ||
357 | + | ||
358 | + | ||
359 | + | @Callable(i) | |
360 | + | func executePut (baseAssetStr,userAddressStr,submitTxIdStr) = execute("P", baseAssetStr, userAddressStr, submitTxIdStr) | |
361 | + | ||
362 | + | ||
363 | + | ||
364 | + | @Callable(i) | |
365 | + | func executeGet (baseAssetStr,userAddressStr,submitTxIdStr) = execute("G", baseAssetStr, userAddressStr, submitTxIdStr) | |
366 | + | ||
367 | + | ||
368 | + | ||
369 | + | @Callable(i) | |
370 | + | func topUpBalance (baseAssetStr,amount) = { | |
371 | + | let baseAssetId = fromBase58String(baseAssetStr) | |
372 | + | let assetCfgArray = readAssetCfgOrFail(baseAssetStr) | |
373 | + | let shareAssetId = fromBase58String(assetCfgArray[IdxCfgShareAssetId]) | |
374 | + | let priceMult = parseIntValue(assetCfgArray[IdxCfgDecimalsMultPrice]) | |
375 | + | let bothAssetMult = parseIntValue(assetCfgArray[IdxCfgDecimalsMultBothAssets]) | |
376 | + | let topupIntervalInBlocks = parseIntValue(assetCfgArray[IdxCfgTopupIntervalInBlocks]) | |
377 | + | let topupMaxNegativePart = parseIntValue(assetCfgArray[IdxCfgTopupMaxNegativePart]) | |
378 | + | let internalBaseAssetStr = assetCfgArray[IdxCfgInternalBaseAsset] | |
379 | + | let topUpCurrentIdxKEY = keyTopUpCurrentIdx(internalBaseAssetStr) | |
380 | + | let prevTopUpIdx = getIntOrFail(topUpCurrentIdxKEY) | |
381 | + | let currentTopUpIdx = (prevTopUpIdx + 1) | |
382 | + | let valid = if ((amount > 0)) | |
383 | + | then { | |
384 | + | let pmt = value(i.payments[0]) | |
385 | + | let pmtAssetId = value(pmt.assetId) | |
386 | + | if ((baseAssetId != pmtAssetId)) | |
387 | + | then throw("attached payment's asset id is NOT matched passed baseAssetStr") | |
388 | + | else if ((size(i.payments) > 1)) | |
389 | + | then throw("only one payment can be attached") | |
390 | + | else if ((pmt.amount != amount)) | |
391 | + | then throw("attached payment.amount is NOT matched passed amount argument") | |
392 | + | else true | |
393 | + | } | |
394 | + | else if ((0 > amount)) | |
395 | + | then { | |
396 | + | let baseBalance = assetBalance(this, baseAssetId) | |
397 | + | let allowedAmount = fraction(topupMaxNegativePart, baseBalance, bothAssetMult) | |
398 | + | if ((-(amount) > allowedAmount)) | |
399 | + | then throw(("Topup negative amount couldn't be greater than " + toString(allowedAmount))) | |
400 | + | else true | |
401 | + | } | |
402 | + | else throw("zero amount is not allowed") | |
403 | + | let topUpLastHeightKEY = keyTopUpLastHeight(internalBaseAssetStr, toString(i.caller)) | |
404 | + | let topUpLastHeight = valueOrElse(getInteger(this, topUpLastHeightKEY), 0) | |
405 | + | if (!(valid)) | |
406 | + | then throw("validation failed") | |
407 | + | else if ((topupIntervalInBlocks > (height - topUpLastHeight))) | |
408 | + | then throw((("1 topup per " + toString(topupIntervalInBlocks)) + " blocks from the same address is allowed")) | |
409 | + | else { | |
410 | + | let price = genericCalcPrice(internalBaseAssetStr, baseAssetId, amount, shareAssetId, priceMult)._1 | |
411 | + | let diffTuple = calcTotalLockedDiff("topup", "", internalBaseAssetStr, price, priceMult, 0, baseAssetId, shareAssetId) | |
412 | + | let topupTotalDiff = diffTuple._1 | |
413 | + | let priceAthKEY = keyPriceATH(internalBaseAssetStr) | |
414 | + | let prevPriceATH = valueOrElse(getInteger(this, priceAthKEY), 0) | |
415 | + | (([IntegerEntry(keyPriceLast(internalBaseAssetStr), price), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), price), IntegerEntry(keyPriceByTopUpIdx(internalBaseAssetStr, currentTopUpIdx), price), IntegerEntry(topUpCurrentIdxKEY, currentTopUpIdx), IntegerEntry(priceAthKEY, if ((price > prevPriceATH)) | |
416 | + | then price | |
417 | + | else prevPriceATH), IntegerEntry(topUpLastHeightKEY, height)] :+ TotalLockedStringEntry("DECREMENT", keyTotalLocked(internalBaseAssetStr), topupTotalDiff)) :+ Burn(shareAssetId, topupTotalDiff[IdxTotalLockedInShare])) | |
418 | + | } | |
419 | + | } | |
420 | + | ||
421 | + | ||
422 | + | ||
423 | + | @Callable(i) | |
424 | + | func currentSysParamsREST (baseAssetStr) = { | |
425 | + | let sysStateTuple = privateCurrentSysParamsREST(baseAssetStr) | |
426 | + | let price = sysStateTuple._1.value | |
427 | + | let decimalsMultPrice = sysStateTuple._2.value | |
428 | + | let baseAssetBalance = sysStateTuple._3.value | |
429 | + | let totalLockedBaseAmount = sysStateTuple._4.value | |
430 | + | let baseAssetBalanceConsideringLock = sysStateTuple._5.value | |
431 | + | let shareEmission = sysStateTuple._6.value | |
432 | + | let restData = makeString(["startCurrentSysParamsREST", toString(price), toString(decimalsMultPrice), toString(baseAssetBalance), toString(totalLockedBaseAmount), toString(baseAssetBalanceConsideringLock), toString(shareEmission), "endCurrentSysParamsREST"], SEP) | |
433 | + | throw(restData) | |
434 | + | } | |
435 | + | ||
436 | + |
github/deemru/w8io/169f3d6 31.83 ms ◑