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