tx · 6ZmUP26fVa5woeoaehMNHhREe5Nqh7QuQHvxo3v37KmA

3NA1tW57cJJPmfx666NWhmcYeox5XQwmyPe:  -0.01000000 Waves

2021.03.24 11:56 [1451622] smart account 3NA1tW57cJJPmfx666NWhmcYeox5XQwmyPe > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
52.89 ms