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