tx · 9Mx9R9aNdJeFJSvvdTZWcgdBHgmTEUQhBRQMw9fafGWz

3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje:  -0.02900000 Waves

2022.12.01 15:20 [2341266] smart account 3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje > SELF 0.00000000 Waves

{ "type": 13, "id": "9Mx9R9aNdJeFJSvvdTZWcgdBHgmTEUQhBRQMw9fafGWz", "fee": 2900000, "feeAssetId": null, "timestamp": 1669897324749, "version": 1, "sender": "3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje", "senderPublicKey": "8JB75GXEKqxmpXc6KVtT9UNqJ3BBSUZDodYD4DU7CUUB", "proofs": [ "647RE6N9t5kb85ho19YrMN1Q8eCWvHW3xLnhUidhBegu9q3UnuV7AiUBD27xAQz9kkayL5WzXGZB4WAx2WLYUPUC" ], "script": "base64:AAIFAAAAAAAAELwIAhIJCgcBAQEBAQgBEgASBAoCCAgSAwoBCBIECgIICBIECgIICBIDCgEIEgAiD2dldFN0cmluZ09yRmFpbCIDa2V5IgNTRVAiCEJVRlNDQUxFIgZzY2FsZTgiCHRocm93RXJyIgNtc2ciCGFzU3RyaW5nIgN2YWwiByRtYXRjaDAiBnZhbFN0ciIdY29udmVydFByaWNlQXNzZXRJbnRvSWRvQXNzZXQiEHByaWNlQXNzZXRBbW91bnQiDnByaWNlQXNzZXRNVUxUIgVwcmljZSIJcHJpY2VNVUxUIgxpZG9Bc3NldE1VTFQiD2JQcmljZUFzc2V0TVVMVCINYklkb0Fzc2V0TVVMVCIOYlByaWNlQXNzZXRCVUYiD2JBbW91bnRBc3NldEJVRiIOSWR4Q2ZnSWRvU3RhcnQiEUlkeENmZ0lkb0R1cmF0aW9uIhBJZHhDZmdDbGFpbVN0YXJ0IhNJZHhDZmdDbGFpbUR1cmF0aW9uIgtJZHhDZmdQcmljZSIPSWR4Q2ZnUHJpY2VNdWx0IhBJZHhDZmdJZG9Bc3NldElkIhJJZHhDZmdJZG9Bc3NldE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AmR1AAAAAAQAAAACZHYEAAAAAWoJAQAAAAJjagAAAAADCQAAAQAAAAIFAAAAAWoCAAAACkJ5dGVWZWN0b3IEAAAAAmNwBQAAAAFqBQAAAAJjcAMJAAABAAAAAgUAAAABagIAAAAEVW5pdAgFAAAAAmR0AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACZHQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJkdAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmR2GbtEdA==", "chainId": 84, "height": 2341266, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AfU4LoDdvt7rZZE3AzZTy3WypR9FzbaWWffUfbewA7Eh Next: Aqmuci6fL5PojJrf43RGNjGPNmvUYNQaiDF2kMgcfgD8 Diff:
OldNewDifferences
1111 let scale8 = 100000000
1212
1313 func throwErr (msg) = throw(makeString(["ido.ride:", msg], " "))
14+
15+
16+func asString (val) = match val {
17+ case valStr: String =>
18+ valStr
19+ case _ =>
20+ throw("fail to cast into String")
21+}
1422
1523
1624 func convertPriceAssetIntoIdoAsset (priceAssetAmount,priceAssetMULT,price,priceMULT,idoAssetMULT) = {
168176 let newClaimedIdoAssetAmount = ((claimedIdoAssetAmount + incrementDiff[IdxDiffClaimedIdoAssetAmountIncrement]) + priceAssetBalancePriceAssetDecimals)
169177 let entries = if ((0 > newRemainingAmount))
170178 then {
171- let newLogicRemainingAmount = ((newTotalAmount - newClaimedPriceAssetAmount) - newClaimedIdoAssetAmount)
179+ let diff = ((newTotalAmount - newClaimedPriceAssetAmount) - newClaimedIdoAssetAmount)
180+ let newLogicRemainingAmount = if ((0 > diff))
181+ then 0
182+ else diff
172183 StringEntry(key, formatInvestor(newTotalAmount, newLogicRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight))
173184 }
174185 else StringEntry(key, formatInvestor(newTotalAmount, newRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight))
233244 let periodLength = value(getInteger(keyPeriodLength()))
234245 let currentPeriod = valueOrElse(getInteger(keyCurrentPeriod()), 0)
235246 let zeroPeriodEndHeighIsDefined = isDefined(getInteger(keyPeriodEndHeight(0)))
236- let $t01262114491 = if ((currentPeriod > 0))
247+ let $t01279414664 = if ((currentPeriod > 0))
237248 then {
238249 let lastPeriodStartHeight = value(getInteger(keyPeriodStartHeight(currentPeriod)))
239250 let lastPeriodEndHeight = value(getInteger(keyPeriodEndHeight(currentPeriod)))
240- let $t01288113586 = if ((height > lastPeriodEndHeight))
251+ let $t01305413759 = if ((height > lastPeriodEndHeight))
241252 then {
242253 let updatedCurrentPeriod = (currentPeriod + 1)
243254 let periodStart = if ((height > (lastPeriodEndHeight + periodLength)))
252263 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
253264 }
254265 else $Tuple3(currentPeriod, lastPeriodStartHeight, lastPeriodEndHeight)
255- let updatedCurrentPeriod = $t01288113586._1
256- let periodStart = $t01288113586._2
257- let periodEnd = $t01288113586._3
266+ let updatedCurrentPeriod = $t01305413759._1
267+ let periodStart = $t01305413759._2
268+ let periodEnd = $t01305413759._3
258269 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
259270 }
260271 else if (zeroPeriodEndHeighIsDefined)
261272 then {
262273 let zeroPeriodStartHeight = value(getInteger(keyPeriodStartHeight(0)))
263274 let zeroPeriodEndHeight = value(getInteger(keyPeriodEndHeight(0)))
264- let $t01384114223 = if ((height > zeroPeriodEndHeight))
275+ let $t01401414396 = if ((height > zeroPeriodEndHeight))
265276 then {
266277 let updatedCurrentPeriod = (currentPeriod + 1)
267278 let periodStart = (zeroPeriodEndHeight + 1)
269280 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
270281 }
271282 else $Tuple3(currentPeriod, zeroPeriodStartHeight, zeroPeriodEndHeight)
272- let updatedCurrentPeriod = $t01384114223._1
273- let periodStart = $t01384114223._2
274- let periodEnd = $t01384114223._3
283+ let updatedCurrentPeriod = $t01401414396._1
284+ let periodStart = $t01401414396._2
285+ let periodEnd = $t01401414396._3
275286 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
276287 }
277288 else $Tuple3(currentPeriod, valueOrElse(getInteger(keyPeriodStartHeight(currentPeriod)), height), valueOrElse(getInteger(keyPeriodEndHeight(currentPeriod)), ((height + periodLength) - 1)))
278- let updatedCurrentPeriod = $t01262114491._1
279- let periodStart = $t01262114491._2
280- let periodEnd = $t01262114491._3
289+ let updatedCurrentPeriod = $t01279414664._1
290+ let periodStart = $t01279414664._2
291+ let periodEnd = $t01279414664._3
281292 let periodTotalAvailableToClaim = valueOrElse(getInteger(keyPeriodTotalAvailableToClaim(priceAssetId58, updatedCurrentPeriod)), totalPeriodPriceAssetAllowance)
282293 let periodUserAvailableToClaim = valueOrElse(getInteger(keyPeriodUserAvailableToClaim(priceAssetId58, updatedCurrentPeriod, userAddress58)), userPeriodPriceAssetAllowance)
283294 let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0)
284295 let periodMinAvailableToClaim = min([(outAmount + priceAssetBalance), periodTotalAvailableToClaim, periodUserAvailableToClaim])
285296 let usdtPriceAssetAllowableRatio = value(getInteger(keyUsdtPriceAssetAllowableRatio()))
286297 let putOneTknV2PriceAssetAmount = scale8
287- let $t01524615499 = {
298+ let $t01541915672 = {
288299 let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "putOneTknV2WithoutTakeFeeREADONLY", [putOneTknV2PriceAssetAmount, priceAssetId58], nil)
289300 if ($isInstanceOf(@, "(Int, Int, Int)"))
290301 then @
291302 else throw("Couldn't cast Any to (Int, Int, Int)")
292303 }
293- if (($t01524615499 == $t01524615499))
304+ if (($t01541915672 == $t01541915672))
294305 then {
295- let bonus = $t01524615499._3
296- let feeAmount = $t01524615499._2
297- let lpAmount = $t01524615499._1
306+ let bonus = $t01541915672._3
307+ let feeAmount = $t01541915672._2
308+ let lpAmount = $t01541915672._1
298309 let usdtAssetId = value(getString(keyUsdtAssetId()))
299- let $t01556115779 = {
310+ let $t01573415952 = {
300311 let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "getOneTknV2READONLY", [usdtAssetId, lpAmount], nil)
301312 if ($isInstanceOf(@, "(Int, Int)"))
302313 then @
303314 else throw("Couldn't cast Any to (Int, Int)")
304315 }
305- if (($t01556115779 == $t01556115779))
316+ if (($t01573415952 == $t01573415952))
306317 then {
307- let getOneTknV2FeeAmount = $t01556115779._2
308- let usdtAmount = $t01556115779._1
318+ let getOneTknV2FeeAmount = $t01573415952._2
319+ let usdtAmount = $t01573415952._1
309320 let currentUsdtPriceAssetRatio = fraction(putOneTknV2PriceAssetAmount, scale8, usdtAmount)
310321 let endPeriodBlocksLeft = (periodEnd - height)
311322 $Tuple10(periodMinAvailableToClaim, periodTotalAvailableToClaim, periodUserAvailableToClaim, totalUserAvailableToClaim, usdtPriceAssetAllowableRatio, currentUsdtPriceAssetRatio, endPeriodBlocksLeft, updatedCurrentPeriod, periodStart, periodEnd)
449460 let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals
450461 let entries = if ((claimedAssetId58 == priceAssetId58))
451462 then {
452- let $t02168822132 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
453- let periodMinAvailableToClaim = $t02168822132._1
454- let periodTotalAvailableToClaim = $t02168822132._2
455- let periodUserAvailableToClaim = $t02168822132._3
456- let totalUserAvailableToClaim = $t02168822132._4
457- let usdtPriceAssetAllowableRatio = $t02168822132._5
458- let currentUsdtPriceAssetRatio = $t02168822132._6
459- let endPeriodBlocksLeft = $t02168822132._7
460- let updatedCurrentPeriod = $t02168822132._8
461- let periodStart = $t02168822132._9
462- let periodEnd = $t02168822132._10
463+ let $t02186122305 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
464+ let periodMinAvailableToClaim = $t02186122305._1
465+ let periodTotalAvailableToClaim = $t02186122305._2
466+ let periodUserAvailableToClaim = $t02186122305._3
467+ let totalUserAvailableToClaim = $t02186122305._4
468+ let usdtPriceAssetAllowableRatio = $t02186122305._5
469+ let currentUsdtPriceAssetRatio = $t02186122305._6
470+ let endPeriodBlocksLeft = $t02186122305._7
471+ let updatedCurrentPeriod = $t02186122305._8
472+ let periodStart = $t02186122305._9
473+ let periodEnd = $t02186122305._10
463474 let checks = [if ((periodUserAvailableToClaim > 0))
464475 then true
465476 else throwErr("unavailable to claim because user period allowance reached"), if ((periodTotalAvailableToClaim > 0))
489500 }
490501 entries
491502 }
503+ }
504+
505+
506+
507+@Callable(i)
508+func cleanRemaingAmount (userAddress58) = {
509+ let priceAssetId58 = readConfigArray()[IdxCfgPriceAssetId]
510+ let evaluateResult = split(asString(invoke(this, "claimV2READONLY", [priceAssetId58, userAddress58], nil)), SEP)
511+ if ((evaluateResult == evaluateResult))
512+ then {
513+ let periodMinAvailableToClaim = parseIntValue(evaluateResult[2])
514+ let check = if ((periodMinAvailableToClaim == 0))
515+ then true
516+ else throwErr("user have unclaimed assets")
517+ if ((check == check))
518+ then {
519+ let investor = split(value(getString(keyInvestor(userAddress58))), SEP)
520+ let investorTotalAmount = parseIntValue(investor[IdxInvTotalAmount])
521+ let investorRemainingAmount = parseIntValue(investor[IdxInvRemainingAmount])
522+ let investorPriceAssetBalance = parseIntValue(investor[IdxInvClaimedPriceAssetAmount])
523+ let investorIdoAssetBalance = parseIntValue(investor[IdxInvClaimedIdoAssetAmount])
524+ let investorLastClaimedHeight = parseIntValue(investor[IdxInvLastClaimedHeight])
525+ let newInvestor = makeString([toString(investorTotalAmount), "0", toString(investorPriceAssetBalance), toString(investorIdoAssetBalance), toString(investorLastClaimedHeight)], SEP)
526+ let totals = split(value(getString(keyTotals())), SEP)
527+ let totalsTotalAmount = parseIntValue(totals[IdxInvTotalAmount])
528+ let totalsRemainingAmount = parseIntValue(totals[IdxInvRemainingAmount])
529+ let totalsClaimedPriceAssetAmount = parseIntValue(totals[IdxInvRemainingAmount])
530+ let totalsClaimedIdoAssetAmount = parseIntValue(totals[IdxInvClaimedPriceAssetAmount])
531+ let totalsLastClaimedHeight = parseIntValue(totals[IdxInvLastClaimedHeight])
532+ let newTotals = makeString([toString(totalsTotalAmount), toString((totalsRemainingAmount - investorRemainingAmount)), toString(totalsClaimedPriceAssetAmount), toString(totalsClaimedIdoAssetAmount), toString(totalsLastClaimedHeight)], SEP)
533+[StringEntry(keyInvestor(userAddress58), newInvestor), StringEntry(keyTotals(), newTotals)]
534+ }
535+ else throw("Strict value is not equal to itself.")
536+ }
537+ else throw("Strict value is not equal to itself.")
492538 }
493539
494540
525571 let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0)
526572 let priceAssetBalanceIdoDecimals = (priceAssetBalance * 100)
527573 let availableIdoAmountToClaimWithPriceAssetBalance = (availableIdoAmountToClaim + priceAssetBalanceIdoDecimals)
528- let $t02842528837 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
529- let periodMinAvailableToClaim = $t02842528837._1
530- let periodTotalAvailableToClaim = $t02842528837._2
531- let periodUserAvailableToClaim = $t02842528837._3
532- let totalUserAvailableToClaim = $t02842528837._4
533- let usdtPriceAssetAllowableRatio = $t02842528837._5
534- let currentUsdtPriceAssetRatio = $t02842528837._6
535- let endPeriodBlocksLeft = $t02842528837._7
536- let updatedCurrentPeriod = $t02842528837._8
537- let periodStart = $t02842528837._9
538- let periodEnd = $t02842528837._10
574+ let $t03058831000 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
575+ let periodMinAvailableToClaim = $t03058831000._1
576+ let periodTotalAvailableToClaim = $t03058831000._2
577+ let periodUserAvailableToClaim = $t03058831000._3
578+ let totalUserAvailableToClaim = $t03058831000._4
579+ let usdtPriceAssetAllowableRatio = $t03058831000._5
580+ let currentUsdtPriceAssetRatio = $t03058831000._6
581+ let endPeriodBlocksLeft = $t03058831000._7
582+ let updatedCurrentPeriod = $t03058831000._8
583+ let periodStart = $t03058831000._9
584+ let periodEnd = $t03058831000._10
539585 let currentPeriodEndHeight = valueOrElse(getInteger(keyPeriodEndHeight(updatedCurrentPeriod)), 0)
540586 let userTotalPriceAssetClaimed = (parseIntValue(readInvestorArrayOrFail(userAddress58)[IdxInvClaimedPriceAssetAmount]) - priceAssetBalance)
541587 let resultString = if ((height > currentPeriodEndHeight))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
55
66
77 let SEP = "__"
88
99 let BUFSCALE = toBigInt(1000000000000000000)
1010
1111 let scale8 = 100000000
1212
1313 func throwErr (msg) = throw(makeString(["ido.ride:", msg], " "))
14+
15+
16+func asString (val) = match val {
17+ case valStr: String =>
18+ valStr
19+ case _ =>
20+ throw("fail to cast into String")
21+}
1422
1523
1624 func convertPriceAssetIntoIdoAsset (priceAssetAmount,priceAssetMULT,price,priceMULT,idoAssetMULT) = {
1725 let bPriceAssetMULT = toBigInt(priceAssetMULT)
1826 let bIdoAssetMULT = toBigInt(idoAssetMULT)
1927 let bPriceAssetBUF = fraction(toBigInt(priceAssetAmount), BUFSCALE, bPriceAssetMULT)
2028 let bAmountAssetBUF = fraction(bPriceAssetBUF, toBigInt(priceMULT), toBigInt(price))
2129 toInt(fraction(bAmountAssetBUF, toBigInt(idoAssetMULT), BUFSCALE))
2230 }
2331
2432
2533 let IdxCfgIdoStart = 1
2634
2735 let IdxCfgIdoDuration = 2
2836
2937 let IdxCfgClaimStart = 3
3038
3139 let IdxCfgClaimDuration = 4
3240
3341 let IdxCfgPrice = 5
3442
3543 let IdxCfgPriceMult = 6
3644
3745 let IdxCfgIdoAssetId = 7
3846
3947 let IdxCfgIdoAssetMult = 8
4048
4149 let IdxCfgPriceAssetId = 9
4250
4351 let IdxCfgPriceAssetMult = 10
4452
4553 let IdxCfgMinInvestAmount = 11
4654
4755 func fromatConfigS (idoStart,idoDuration,claimStart,claimDuration,price,priceMult,idoAssetId58,idoAssetMult,priceAssetId58,priceAssetMult,minInvestAmount,totalIdoAssetToSell) = makeString(["%d%d%d%d%d%d%s%d%s%d%d%d", idoStart, idoDuration, claimStart, claimDuration, price, priceMult, idoAssetId58, idoAssetMult, priceAssetId58, priceAssetMult, minInvestAmount, totalIdoAssetToSell], SEP)
4856
4957
5058 func fromatConfig (idoStart,idoDuration,claimStart,claimDuration,price,priceMult,idoAssetId58,idoAssetMult,priceAssetId58,priceAssetMult,minInvestAmount,totalIdoAssetToSell) = fromatConfigS(toString(idoStart), toString(idoDuration), toString(claimStart), toString(claimDuration), toString(price), toString(priceMult), idoAssetId58, toString(idoAssetMult), priceAssetId58, toString(priceAssetMult), toString(minInvestAmount), toString(totalIdoAssetToSell))
5159
5260
5361 let IdxInvTotalAmount = 1
5462
5563 let IdxInvRemainingAmount = 2
5664
5765 let IdxInvClaimedPriceAssetAmount = 3
5866
5967 let IdxInvClaimedIdoAssetAmount = 4
6068
6169 let IdxInvLastClaimedHeight = 5
6270
6371 func formatInvestorS (totalAmount,remainingAmount,claimedPriceAssetAmount,claimedIdoAssetAmount,lastClaimedHeight) = makeString(["%d%d%d%d%d", totalAmount, remainingAmount, claimedPriceAssetAmount, claimedIdoAssetAmount, lastClaimedHeight], SEP)
6472
6573
6674 func formatInvestor (totalAmount,remainingAmount,claimedPriceAssetAmount,claimedIdoAssetAmount,lastClaimedHeight) = formatInvestorS(toString(totalAmount), toString(remainingAmount), toString(claimedPriceAssetAmount), toString(claimedIdoAssetAmount), toString(lastClaimedHeight))
6775
6876
6977 func formatHistoryRecord (priceAssetAmount,idoAssetAmount) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(priceAssetAmount), toString(idoAssetAmount)], SEP)
7078
7179
7280 func keyConfig () = "%s__config"
7381
7482
7583 func keyInvestor (userAddress) = ("%s__" + userAddress)
7684
7785
7886 func keyTotals () = "%s__totals"
7987
8088
8189 func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP)
8290
8391
8492 func keyUSDNClaimDisabled () = "%s__usdnClaimDisabled"
8593
8694
8795 func keyUSDNClaimEndHeight () = "%s__usdnClaimEndHeight"
8896
8997
9098 func keyPeriodLength () = makeString(["%s", "periodLength"], SEP)
9199
92100
93101 func keyCurrentPeriod () = makeString(["%s", "currentPeriod"], SEP)
94102
95103
96104 func keyPeriodStartHeight (periodNum) = makeString(["%s%s", "periodStartHeight", toString(periodNum)], SEP)
97105
98106
99107 func keyPeriodEndHeight (periodNum) = makeString(["%s%s", "periodEndHeight", toString(periodNum)], SEP)
100108
101109
102110 func keyUsdtPriceAssetAllowableRatio () = makeString(["%s", "usdtPriceAssetAllowableRatio"], SEP)
103111
104112
105113 func keyTotalPeriodAllowance (assetId) = makeString(["%s%s", "totalPeriodAllowance", assetId], SEP)
106114
107115
108116 func keyUserPeriodAllowance (assetId) = makeString(["%s%s", "userPeriodAllowance", assetId], SEP)
109117
110118
111119 func keyPeriodTotalAvailableToClaim (assetId,periodNum) = makeString(["%s%s%s", "periodTotalAvailableToClaim", assetId, toString(periodNum)], SEP)
112120
113121
114122 func keyPeriodUserAvailableToClaim (assetId,periodNum,userAddress) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", assetId, toString(periodNum), userAddress], SEP)
115123
116124
117125 func keyUsdtPriceAssetStablePool () = makeString(["%s", "usdtPriceAssetStablePool"], SEP)
118126
119127
120128 func keyUsdtAssetId () = makeString(["%s", "usdtAssetId"], SEP)
121129
122130
123131 func keyPriceAssetBalance (address) = makeString(["%s%s", "priceAssetBalance", address], SEP)
124132
125133
126134 func keyManagerPublicKey () = "%s__managerPublicKey"
127135
128136
129137 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
130138
131139
132140 func readConfigArray () = split(getStringOrFail(keyConfig()), SEP)
133141
134142
135143 func readTotalsArrayOrDefaultByCustomKey (customKey) = split(valueOrElse(getString(customKey), formatInvestorS("0", "0", "0", "0", "0")), SEP)
136144
137145
138146 func readTotalsArrayOrDefault () = readTotalsArrayOrDefaultByCustomKey(keyTotals())
139147
140148
141149 func readInvestorArrayOrDefault (userAddress) = readTotalsArrayOrDefaultByCustomKey(keyInvestor(userAddress))
142150
143151
144152 func readInvestorArrayOrFail (userAddress) = split(getStringOrFail(keyInvestor(userAddress)), SEP)
145153
146154
147155 let IdxDiffTotalIncrement = 0
148156
149157 let IdxDiffRemainingPriceAmountIncrement = 1
150158
151159 let IdxDiffClaimedPriceAmountIncrement = 2
152160
153161 let IdxDiffClaimedIdoAssetAmountIncrement = 3
154162
155163 func TotalsEntry (key,origArray,incrementDiff,newLastClaimedHeight,priceAssetBalance) = {
156164 let totalAmount = parseIntValue(origArray[IdxInvTotalAmount])
157165 let remainingAmount = parseIntValue(origArray[IdxInvRemainingAmount])
158166 let claimedPriceAssetAmount = parseIntValue(origArray[IdxInvClaimedPriceAssetAmount])
159167 let claimedIdoAssetAmount = parseIntValue(origArray[IdxInvClaimedIdoAssetAmount])
160168 let lastClaimedHeight = parseIntValue(origArray[IdxInvLastClaimedHeight])
161169 let newTotalAmount = (totalAmount + incrementDiff[IdxDiffTotalIncrement])
162170 let newRemainingAmount = (remainingAmount + incrementDiff[IdxDiffRemainingPriceAmountIncrement])
163171 let cfgArray = readConfigArray()
164172 let priceAssetId58 = cfgArray[IdxCfgPriceAssetId]
165173 let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals
166174 let priceAssetBalancePriceAssetDecimals = fraction(priceAssetBalance, scale8, pow(10, 0, priceAssetDecimals, 0, 0, DOWN))
167175 let newClaimedPriceAssetAmount = ((claimedPriceAssetAmount + incrementDiff[IdxDiffClaimedPriceAmountIncrement]) - priceAssetBalance)
168176 let newClaimedIdoAssetAmount = ((claimedIdoAssetAmount + incrementDiff[IdxDiffClaimedIdoAssetAmountIncrement]) + priceAssetBalancePriceAssetDecimals)
169177 let entries = if ((0 > newRemainingAmount))
170178 then {
171- let newLogicRemainingAmount = ((newTotalAmount - newClaimedPriceAssetAmount) - newClaimedIdoAssetAmount)
179+ let diff = ((newTotalAmount - newClaimedPriceAssetAmount) - newClaimedIdoAssetAmount)
180+ let newLogicRemainingAmount = if ((0 > diff))
181+ then 0
182+ else diff
172183 StringEntry(key, formatInvestor(newTotalAmount, newLogicRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight))
173184 }
174185 else StringEntry(key, formatInvestor(newTotalAmount, newRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight))
175186 entries
176187 }
177188
178189
179190 func InvestOperationHistoryEntry (userAddress,priceAssetAmount,idoAssetAmount,txId) = StringEntry(keyOperationHistoryRecord("invest", userAddress, toBase58String(txId)), formatHistoryRecord(priceAssetAmount, idoAssetAmount))
180191
181192
182193 func ClaimOperationHistoryEntry (userAddress,priceAssetAmount,idoAssetAmount,txId) = StringEntry(keyOperationHistoryRecord("claim", userAddress, toBase58String(txId)), formatHistoryRecord(priceAssetAmount, idoAssetAmount))
183194
184195
185196 func internalClaim (claimedAssetId58,userAddress,txId) = {
186197 let cfgArray = readConfigArray()
187198 let claimStart = parseIntValue(cfgArray[IdxCfgClaimStart])
188199 let claimDuration = parseIntValue(cfgArray[IdxCfgClaimDuration])
189200 let claimEnd = (claimStart + claimDuration)
190201 let price = parseIntValue(cfgArray[IdxCfgPrice])
191202 let priceMult = parseIntValue(cfgArray[IdxCfgPriceMult])
192203 let idoAssetId58 = cfgArray[IdxCfgIdoAssetId]
193204 let idoAssetId = fromBase58String(idoAssetId58)
194205 let idoAssetMult = parseIntValue(cfgArray[IdxCfgIdoAssetMult])
195206 let priceAssetId58 = cfgArray[IdxCfgPriceAssetId]
196207 let priceAssetId = fromBase58String(priceAssetId58)
197208 let priceAssetMult = parseIntValue(cfgArray[IdxCfgPriceAssetMult])
198209 let userAddress58 = toString(userAddress)
199210 let origInvestArray = readInvestorArrayOrFail(userAddress58)
200211 let investTotalAmount = parseIntValue(origInvestArray[IdxInvTotalAmount])
201212 let investLastClaimedHeightTMP = parseIntValue(origInvestArray[IdxInvLastClaimedHeight])
202213 let investLastClaimedHeight = if ((claimStart >= investLastClaimedHeightTMP))
203214 then claimStart
204215 else investLastClaimedHeightTMP
205216 let newClaimPeriodHeight = if ((height > claimEnd))
206217 then claimEnd
207218 else if ((claimStart > height))
208219 then claimStart
209220 else height
210221 let claimingBlocks = (newClaimPeriodHeight - investLastClaimedHeight)
211222 let claimingPriceAssetAmount = fraction(investTotalAmount, claimingBlocks, claimDuration)
212223 let claimingIdoAssetAmount = convertPriceAssetIntoIdoAsset(claimingPriceAssetAmount, priceAssetMult, price, priceMult, idoAssetMult)
213224 let isUSDN = (claimedAssetId58 == priceAssetId58)
214225 let isUSDNClaimDisabled = valueOrElse(getBoolean(keyUSDNClaimDisabled()), false)
215226 let checks = [if (!(if (isUSDN)
216227 then isUSDNClaimDisabled
217228 else false))
218229 then true
219230 else throw("USDN claim is disabled")]
220231 if ((checks == checks))
221232 then if ((claimedAssetId58 == priceAssetId58))
222233 then $Tuple6([0, -(claimingPriceAssetAmount), claimingPriceAssetAmount, 0], claimingPriceAssetAmount, priceAssetId, origInvestArray, newClaimPeriodHeight, [claimingPriceAssetAmount, claimingIdoAssetAmount])
223234 else if ((claimedAssetId58 == idoAssetId58))
224235 then $Tuple6([0, -(claimingPriceAssetAmount), 0, claimingIdoAssetAmount], claimingIdoAssetAmount, idoAssetId, origInvestArray, newClaimPeriodHeight, [claimingPriceAssetAmount, claimingIdoAssetAmount])
225236 else throw(("unsupported assetId: " + claimedAssetId58))
226237 else throw("Strict value is not equal to itself.")
227238 }
228239
229240
230241 func internalClaimV2 (priceAssetId58,userAddress58,outAmount,totalUserAvailableToClaim) = {
231242 let totalPeriodPriceAssetAllowance = value(getInteger(keyTotalPeriodAllowance(priceAssetId58)))
232243 let userPeriodPriceAssetAllowance = value(getInteger(keyUserPeriodAllowance(priceAssetId58)))
233244 let periodLength = value(getInteger(keyPeriodLength()))
234245 let currentPeriod = valueOrElse(getInteger(keyCurrentPeriod()), 0)
235246 let zeroPeriodEndHeighIsDefined = isDefined(getInteger(keyPeriodEndHeight(0)))
236- let $t01262114491 = if ((currentPeriod > 0))
247+ let $t01279414664 = if ((currentPeriod > 0))
237248 then {
238249 let lastPeriodStartHeight = value(getInteger(keyPeriodStartHeight(currentPeriod)))
239250 let lastPeriodEndHeight = value(getInteger(keyPeriodEndHeight(currentPeriod)))
240- let $t01288113586 = if ((height > lastPeriodEndHeight))
251+ let $t01305413759 = if ((height > lastPeriodEndHeight))
241252 then {
242253 let updatedCurrentPeriod = (currentPeriod + 1)
243254 let periodStart = if ((height > (lastPeriodEndHeight + periodLength)))
244255 then {
245256 let blocksToLastPeriodStart = ((height - lastPeriodEndHeight) % periodLength)
246257 if ((blocksToLastPeriodStart == 0))
247258 then ((height - periodLength) + 1)
248259 else (height - blocksToLastPeriodStart)
249260 }
250261 else (lastPeriodEndHeight + 1)
251262 let periodEnd = ((periodStart + periodLength) - 1)
252263 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
253264 }
254265 else $Tuple3(currentPeriod, lastPeriodStartHeight, lastPeriodEndHeight)
255- let updatedCurrentPeriod = $t01288113586._1
256- let periodStart = $t01288113586._2
257- let periodEnd = $t01288113586._3
266+ let updatedCurrentPeriod = $t01305413759._1
267+ let periodStart = $t01305413759._2
268+ let periodEnd = $t01305413759._3
258269 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
259270 }
260271 else if (zeroPeriodEndHeighIsDefined)
261272 then {
262273 let zeroPeriodStartHeight = value(getInteger(keyPeriodStartHeight(0)))
263274 let zeroPeriodEndHeight = value(getInteger(keyPeriodEndHeight(0)))
264- let $t01384114223 = if ((height > zeroPeriodEndHeight))
275+ let $t01401414396 = if ((height > zeroPeriodEndHeight))
265276 then {
266277 let updatedCurrentPeriod = (currentPeriod + 1)
267278 let periodStart = (zeroPeriodEndHeight + 1)
268279 let periodEnd = ((periodStart + periodLength) - 1)
269280 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
270281 }
271282 else $Tuple3(currentPeriod, zeroPeriodStartHeight, zeroPeriodEndHeight)
272- let updatedCurrentPeriod = $t01384114223._1
273- let periodStart = $t01384114223._2
274- let periodEnd = $t01384114223._3
283+ let updatedCurrentPeriod = $t01401414396._1
284+ let periodStart = $t01401414396._2
285+ let periodEnd = $t01401414396._3
275286 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
276287 }
277288 else $Tuple3(currentPeriod, valueOrElse(getInteger(keyPeriodStartHeight(currentPeriod)), height), valueOrElse(getInteger(keyPeriodEndHeight(currentPeriod)), ((height + periodLength) - 1)))
278- let updatedCurrentPeriod = $t01262114491._1
279- let periodStart = $t01262114491._2
280- let periodEnd = $t01262114491._3
289+ let updatedCurrentPeriod = $t01279414664._1
290+ let periodStart = $t01279414664._2
291+ let periodEnd = $t01279414664._3
281292 let periodTotalAvailableToClaim = valueOrElse(getInteger(keyPeriodTotalAvailableToClaim(priceAssetId58, updatedCurrentPeriod)), totalPeriodPriceAssetAllowance)
282293 let periodUserAvailableToClaim = valueOrElse(getInteger(keyPeriodUserAvailableToClaim(priceAssetId58, updatedCurrentPeriod, userAddress58)), userPeriodPriceAssetAllowance)
283294 let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0)
284295 let periodMinAvailableToClaim = min([(outAmount + priceAssetBalance), periodTotalAvailableToClaim, periodUserAvailableToClaim])
285296 let usdtPriceAssetAllowableRatio = value(getInteger(keyUsdtPriceAssetAllowableRatio()))
286297 let putOneTknV2PriceAssetAmount = scale8
287- let $t01524615499 = {
298+ let $t01541915672 = {
288299 let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "putOneTknV2WithoutTakeFeeREADONLY", [putOneTknV2PriceAssetAmount, priceAssetId58], nil)
289300 if ($isInstanceOf(@, "(Int, Int, Int)"))
290301 then @
291302 else throw("Couldn't cast Any to (Int, Int, Int)")
292303 }
293- if (($t01524615499 == $t01524615499))
304+ if (($t01541915672 == $t01541915672))
294305 then {
295- let bonus = $t01524615499._3
296- let feeAmount = $t01524615499._2
297- let lpAmount = $t01524615499._1
306+ let bonus = $t01541915672._3
307+ let feeAmount = $t01541915672._2
308+ let lpAmount = $t01541915672._1
298309 let usdtAssetId = value(getString(keyUsdtAssetId()))
299- let $t01556115779 = {
310+ let $t01573415952 = {
300311 let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "getOneTknV2READONLY", [usdtAssetId, lpAmount], nil)
301312 if ($isInstanceOf(@, "(Int, Int)"))
302313 then @
303314 else throw("Couldn't cast Any to (Int, Int)")
304315 }
305- if (($t01556115779 == $t01556115779))
316+ if (($t01573415952 == $t01573415952))
306317 then {
307- let getOneTknV2FeeAmount = $t01556115779._2
308- let usdtAmount = $t01556115779._1
318+ let getOneTknV2FeeAmount = $t01573415952._2
319+ let usdtAmount = $t01573415952._1
309320 let currentUsdtPriceAssetRatio = fraction(putOneTknV2PriceAssetAmount, scale8, usdtAmount)
310321 let endPeriodBlocksLeft = (periodEnd - height)
311322 $Tuple10(periodMinAvailableToClaim, periodTotalAvailableToClaim, periodUserAvailableToClaim, totalUserAvailableToClaim, usdtPriceAssetAllowableRatio, currentUsdtPriceAssetRatio, endPeriodBlocksLeft, updatedCurrentPeriod, periodStart, periodEnd)
312323 }
313324 else throw("Strict value is not equal to itself.")
314325 }
315326 else throw("Strict value is not equal to itself.")
316327 }
317328
318329
319330 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
320331 case s: String =>
321332 fromBase58String(s)
322333 case _: Unit =>
323334 unit
324335 case _ =>
325336 throw("Match error")
326337 }
327338
328339
329340 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
330341 case s: String =>
331342 fromBase58String(s)
332343 case _: Unit =>
333344 unit
334345 case _ =>
335346 throw("Match error")
336347 }
337348
338349
339350 func mustManager (i) = {
340351 let pd = throw("Permission denied")
341352 match managerPublicKeyOrUnit() {
342353 case pk: ByteVector =>
343354 if ((i.callerPublicKey == pk))
344355 then true
345356 else pd
346357 case _: Unit =>
347358 if ((i.caller == this))
348359 then true
349360 else pd
350361 case _ =>
351362 throw("Match error")
352363 }
353364 }
354365
355366
356367 @Callable(i)
357368 func constructor (idoStart,idoDuration,claimStart,claimDuration,price,priceAssetId58,minInvestAmount) = {
358369 let priceMult = ((100 * 1000) * 1000)
359370 let idoEnd = (idoStart + idoDuration)
360371 if (isDefined(getString(keyConfig())))
361372 then throw("already initialized")
362373 else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(i.caller)))
363374 then throw("not authorized")
364375 else if ((size(i.payments) != 1))
365376 then throw("exactly 1 payment must be attached")
366377 else if ((idoEnd >= claimStart))
367378 then throw("claimStart must be greater than idoEnd")
368379 else {
369380 let pmt = value(i.payments[0])
370381 let idoAssetId = value(pmt.assetId)
371382 let idoAssetInfo = valueOrErrorMessage(assetInfo(idoAssetId), "fail to load ido asset info")
372383 let idoAssetId58 = toBase58String(idoAssetId)
373384 let idoAssetMult = pow(10, 0, idoAssetInfo.decimals, 0, 0, DOWN)
374385 let priceAssetId = fromBase58String(priceAssetId58)
375386 let priceAssetInfo = valueOrErrorMessage(assetInfo(priceAssetId), "fail to load price asset info")
376387 let priceAssetMult = pow(10, 0, priceAssetInfo.decimals, 0, 0, DOWN)
377388 let origTotalsArray = readTotalsArrayOrDefault()
378389 let totalsDiff = [0, 0, 0, 0]
379390 [StringEntry(keyConfig(), fromatConfig(idoStart, idoDuration, claimStart, claimDuration, price, priceMult, idoAssetId58, idoAssetMult, priceAssetId58, priceAssetMult, minInvestAmount, pmt.amount)), TotalsEntry(keyTotals(), origTotalsArray, totalsDiff, claimStart, 0)]
380391 }
381392 }
382393
383394
384395
385396 @Callable(i)
386397 func invest () = {
387398 let cfgArray = readConfigArray()
388399 let idoStart = parseIntValue(cfgArray[IdxCfgIdoStart])
389400 let idoDuration = parseIntValue(cfgArray[IdxCfgIdoDuration])
390401 let idoEnd = (idoStart + idoDuration)
391402 let claimStart = parseIntValue(cfgArray[IdxCfgClaimStart])
392403 let claimDuration = parseIntValue(cfgArray[IdxCfgClaimDuration])
393404 let price = parseIntValue(cfgArray[IdxCfgPrice])
394405 let priceMult = parseIntValue(cfgArray[IdxCfgPriceMult])
395406 let idoAssetId58 = cfgArray[IdxCfgIdoAssetId]
396407 let idoAssetId = fromBase58String(idoAssetId58)
397408 let idoAssetMult = parseIntValue(cfgArray[IdxCfgIdoAssetMult])
398409 let priceAssetId58 = cfgArray[IdxCfgPriceAssetId]
399410 let priceAssetId = fromBase58String(priceAssetId58)
400411 let priceAssetMult = parseIntValue(cfgArray[IdxCfgPriceAssetMult])
401412 let minIvestAmount = parseIntValue(cfgArray[IdxCfgMinInvestAmount])
402413 let userAddress = toString(i.caller)
403414 if ((idoStart > height))
404415 then throw("ido has not been started yet")
405416 else if ((height > idoEnd))
406417 then throw("ido has been already ended")
407418 else if ((size(i.payments) != 1))
408419 then throw("exactly 1 payment is expected")
409420 else {
410421 let pmt = value(i.payments[0])
411422 let pmtAssetId = value(pmt.assetId)
412423 let pmtAmount = pmt.amount
413424 if ((pmtAssetId != priceAssetId))
414425 then throw((("invalid payment asset id: " + toBase58String(pmtAssetId)) + " is expected"))
415426 else {
416427 let origInvestorArray = readInvestorArrayOrDefault(userAddress)
417428 let origTotalsArray = readTotalsArrayOrDefault()
418429 let newPriceTotalAmount = (parseIntValue(origTotalsArray[IdxInvTotalAmount]) + pmtAmount)
419430 let requiredIdoAssetAmount = (newPriceTotalAmount * 100)
420431 if ((requiredIdoAssetAmount > assetBalance(this, idoAssetId)))
421432 then throw("IDO asset has been - sold consider to use smaller payment")
422433 else {
423434 let totalsDiff = [pmtAmount, pmtAmount, 0, 0]
424435 [TotalsEntry(keyInvestor(userAddress), origInvestorArray, totalsDiff, claimStart, 0), TotalsEntry(keyTotals(), origTotalsArray, totalsDiff, claimStart, 0), InvestOperationHistoryEntry(userAddress, pmtAmount, 0, i.transactionId)]
425436 }
426437 }
427438 }
428439 }
429440
430441
431442
432443 @Callable(i)
433444 func claim (claimedAssetId58,userAddress58) = {
434445 let callerAddress58 = toString(i.caller)
435446 if ((userAddress58 != callerAddress58))
436447 then throw("not authorized")
437448 else {
438449 let cfgArray = readConfigArray()
439450 let priceAssetId58 = cfgArray[IdxCfgPriceAssetId]
440451 let claimResultTuple = internalClaim(claimedAssetId58, i.caller, i.transactionId)
441452 let totalsDiff = claimResultTuple._1
442453 let outAmount = claimResultTuple._2
443454 let outAssetId = claimResultTuple._3
444455 let origInvestArray = claimResultTuple._4
445456 let newClaimPeriodHeight = claimResultTuple._5
446457 let claimedPriceAmountFromDiff = totalsDiff[IdxDiffClaimedPriceAmountIncrement]
447458 let claimedIdoAssetAmountFromDiff = totalsDiff[IdxDiffClaimedIdoAssetAmountIncrement]
448459 let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0)
449460 let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals
450461 let entries = if ((claimedAssetId58 == priceAssetId58))
451462 then {
452- let $t02168822132 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
453- let periodMinAvailableToClaim = $t02168822132._1
454- let periodTotalAvailableToClaim = $t02168822132._2
455- let periodUserAvailableToClaim = $t02168822132._3
456- let totalUserAvailableToClaim = $t02168822132._4
457- let usdtPriceAssetAllowableRatio = $t02168822132._5
458- let currentUsdtPriceAssetRatio = $t02168822132._6
459- let endPeriodBlocksLeft = $t02168822132._7
460- let updatedCurrentPeriod = $t02168822132._8
461- let periodStart = $t02168822132._9
462- let periodEnd = $t02168822132._10
463+ let $t02186122305 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
464+ let periodMinAvailableToClaim = $t02186122305._1
465+ let periodTotalAvailableToClaim = $t02186122305._2
466+ let periodUserAvailableToClaim = $t02186122305._3
467+ let totalUserAvailableToClaim = $t02186122305._4
468+ let usdtPriceAssetAllowableRatio = $t02186122305._5
469+ let currentUsdtPriceAssetRatio = $t02186122305._6
470+ let endPeriodBlocksLeft = $t02186122305._7
471+ let updatedCurrentPeriod = $t02186122305._8
472+ let periodStart = $t02186122305._9
473+ let periodEnd = $t02186122305._10
463474 let checks = [if ((periodUserAvailableToClaim > 0))
464475 then true
465476 else throwErr("unavailable to claim because user period allowance reached"), if ((periodTotalAvailableToClaim > 0))
466477 then true
467478 else throwErr("unavailable to claim because total period allowance reached"), if ((periodMinAvailableToClaim > 0))
468479 then true
469480 else throwErr("nothing to claim"), if ((usdtPriceAssetAllowableRatio > currentUsdtPriceAssetRatio))
470481 then true
471482 else throwErr("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")]
472483 if ((checks == checks))
473484 then {
474485 let updatedPeriodTotalAvailableToClaim = (periodTotalAvailableToClaim - periodMinAvailableToClaim)
475486 let updatedPeriodUserAvailableToClaim = (periodUserAvailableToClaim - periodMinAvailableToClaim)
476487 let entries = if ((priceAssetBalance >= periodMinAvailableToClaim))
477488 then [ScriptTransfer(i.caller, periodMinAvailableToClaim, outAssetId), IntegerEntry(keyPriceAssetBalance(userAddress58), (priceAssetBalance - periodMinAvailableToClaim))]
478489 else {
479490 let updatedPriceAssetBalance = ((priceAssetBalance + outAmount) - periodMinAvailableToClaim)
480491 [ScriptTransfer(i.caller, periodMinAvailableToClaim, outAssetId), TotalsEntry(keyInvestor(userAddress58), origInvestArray, totalsDiff, newClaimPeriodHeight, 0), TotalsEntry(keyTotals(), readTotalsArrayOrDefault(), totalsDiff, newClaimPeriodHeight, 0), IntegerEntry(keyPriceAssetBalance(userAddress58), updatedPriceAssetBalance)]
481492 }
482493 $Tuple2(([IntegerEntry(keyCurrentPeriod(), updatedCurrentPeriod), IntegerEntry(keyPeriodStartHeight(updatedCurrentPeriod), periodStart), IntegerEntry(keyPeriodEndHeight(updatedCurrentPeriod), periodEnd), IntegerEntry(keyPeriodTotalAvailableToClaim(priceAssetId58, updatedCurrentPeriod), updatedPeriodTotalAvailableToClaim), IntegerEntry(keyPeriodUserAvailableToClaim(priceAssetId58, updatedCurrentPeriod, userAddress58), updatedPeriodUserAvailableToClaim), ClaimOperationHistoryEntry(userAddress58, periodMinAvailableToClaim, claimedIdoAssetAmountFromDiff, i.transactionId)] ++ entries), unit)
483494 }
484495 else throw("Strict value is not equal to itself.")
485496 }
486497 else {
487498 let priceAssetBalanceIdoDecimals = fraction(priceAssetBalance, scale8, pow(10, 0, priceAssetDecimals, 0, 0, DOWN))
488499 $Tuple2([ScriptTransfer(i.caller, (outAmount + priceAssetBalanceIdoDecimals), outAssetId), IntegerEntry(keyPriceAssetBalance(userAddress58), 0), TotalsEntry(keyInvestor(userAddress58), origInvestArray, totalsDiff, newClaimPeriodHeight, priceAssetBalance), TotalsEntry(keyTotals(), readTotalsArrayOrDefault(), totalsDiff, newClaimPeriodHeight, priceAssetBalance), ClaimOperationHistoryEntry(userAddress58, claimedPriceAmountFromDiff, (claimedIdoAssetAmountFromDiff + priceAssetBalanceIdoDecimals), i.transactionId)], unit)
489500 }
490501 entries
491502 }
503+ }
504+
505+
506+
507+@Callable(i)
508+func cleanRemaingAmount (userAddress58) = {
509+ let priceAssetId58 = readConfigArray()[IdxCfgPriceAssetId]
510+ let evaluateResult = split(asString(invoke(this, "claimV2READONLY", [priceAssetId58, userAddress58], nil)), SEP)
511+ if ((evaluateResult == evaluateResult))
512+ then {
513+ let periodMinAvailableToClaim = parseIntValue(evaluateResult[2])
514+ let check = if ((periodMinAvailableToClaim == 0))
515+ then true
516+ else throwErr("user have unclaimed assets")
517+ if ((check == check))
518+ then {
519+ let investor = split(value(getString(keyInvestor(userAddress58))), SEP)
520+ let investorTotalAmount = parseIntValue(investor[IdxInvTotalAmount])
521+ let investorRemainingAmount = parseIntValue(investor[IdxInvRemainingAmount])
522+ let investorPriceAssetBalance = parseIntValue(investor[IdxInvClaimedPriceAssetAmount])
523+ let investorIdoAssetBalance = parseIntValue(investor[IdxInvClaimedIdoAssetAmount])
524+ let investorLastClaimedHeight = parseIntValue(investor[IdxInvLastClaimedHeight])
525+ let newInvestor = makeString([toString(investorTotalAmount), "0", toString(investorPriceAssetBalance), toString(investorIdoAssetBalance), toString(investorLastClaimedHeight)], SEP)
526+ let totals = split(value(getString(keyTotals())), SEP)
527+ let totalsTotalAmount = parseIntValue(totals[IdxInvTotalAmount])
528+ let totalsRemainingAmount = parseIntValue(totals[IdxInvRemainingAmount])
529+ let totalsClaimedPriceAssetAmount = parseIntValue(totals[IdxInvRemainingAmount])
530+ let totalsClaimedIdoAssetAmount = parseIntValue(totals[IdxInvClaimedPriceAssetAmount])
531+ let totalsLastClaimedHeight = parseIntValue(totals[IdxInvLastClaimedHeight])
532+ let newTotals = makeString([toString(totalsTotalAmount), toString((totalsRemainingAmount - investorRemainingAmount)), toString(totalsClaimedPriceAssetAmount), toString(totalsClaimedIdoAssetAmount), toString(totalsLastClaimedHeight)], SEP)
533+[StringEntry(keyInvestor(userAddress58), newInvestor), StringEntry(keyTotals(), newTotals)]
534+ }
535+ else throw("Strict value is not equal to itself.")
536+ }
537+ else throw("Strict value is not equal to itself.")
492538 }
493539
494540
495541
496542 @Callable(i)
497543 func claimREADONLY (claimedAssetId58,userAddress58) = {
498544 let claimResultTuple = internalClaim(claimedAssetId58, addressFromStringValue(userAddress58), fromBase58String(""))
499545 let totalsDiff = claimResultTuple._1
500546 let outAmount = claimResultTuple._2
501547 let outAssetId = claimResultTuple._3
502548 let origInvestArray = claimResultTuple._4
503549 let newClaimPeriodHeight = claimResultTuple._5
504550 let availableToClaimArray = claimResultTuple._6
505551 let availablePriceAmountToClaim = availableToClaimArray[0]
506552 let availableIdoAmountToClaim = availableToClaimArray[1]
507553 $Tuple2(nil, makeString(["%s%d%d", userAddress58, toString(availablePriceAmountToClaim), toString(availableIdoAmountToClaim)], SEP))
508554 }
509555
510556
511557
512558 @Callable(i)
513559 func claimV2READONLY (claimedAssetId58,userAddress58) = {
514560 let claimResultTuple = internalClaim(claimedAssetId58, addressFromStringValue(userAddress58), fromBase58String(""))
515561 let totalsDiff = claimResultTuple._1
516562 let outAmount = claimResultTuple._2
517563 let outAssetId = claimResultTuple._3
518564 let origInvestArray = claimResultTuple._4
519565 let newClaimPeriodHeight = claimResultTuple._5
520566 let availableToClaimArray = claimResultTuple._6
521567 let availablePriceAmountToClaim = availableToClaimArray[0]
522568 let availableIdoAmountToClaim = availableToClaimArray[1]
523569 let cfgArray = readConfigArray()
524570 let priceAssetId58 = cfgArray[IdxCfgPriceAssetId]
525571 let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0)
526572 let priceAssetBalanceIdoDecimals = (priceAssetBalance * 100)
527573 let availableIdoAmountToClaimWithPriceAssetBalance = (availableIdoAmountToClaim + priceAssetBalanceIdoDecimals)
528- let $t02842528837 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
529- let periodMinAvailableToClaim = $t02842528837._1
530- let periodTotalAvailableToClaim = $t02842528837._2
531- let periodUserAvailableToClaim = $t02842528837._3
532- let totalUserAvailableToClaim = $t02842528837._4
533- let usdtPriceAssetAllowableRatio = $t02842528837._5
534- let currentUsdtPriceAssetRatio = $t02842528837._6
535- let endPeriodBlocksLeft = $t02842528837._7
536- let updatedCurrentPeriod = $t02842528837._8
537- let periodStart = $t02842528837._9
538- let periodEnd = $t02842528837._10
574+ let $t03058831000 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
575+ let periodMinAvailableToClaim = $t03058831000._1
576+ let periodTotalAvailableToClaim = $t03058831000._2
577+ let periodUserAvailableToClaim = $t03058831000._3
578+ let totalUserAvailableToClaim = $t03058831000._4
579+ let usdtPriceAssetAllowableRatio = $t03058831000._5
580+ let currentUsdtPriceAssetRatio = $t03058831000._6
581+ let endPeriodBlocksLeft = $t03058831000._7
582+ let updatedCurrentPeriod = $t03058831000._8
583+ let periodStart = $t03058831000._9
584+ let periodEnd = $t03058831000._10
539585 let currentPeriodEndHeight = valueOrElse(getInteger(keyPeriodEndHeight(updatedCurrentPeriod)), 0)
540586 let userTotalPriceAssetClaimed = (parseIntValue(readInvestorArrayOrFail(userAddress58)[IdxInvClaimedPriceAssetAmount]) - priceAssetBalance)
541587 let resultString = if ((height > currentPeriodEndHeight))
542588 then {
543589 let periodLenght = value(getInteger(keyPeriodLength()))
544590 let userPeriodAllowance = value(getInteger(keyUserPeriodAllowance(priceAssetId58)))
545591 let totalPeriodAllowance = value(getInteger(keyTotalPeriodAllowance(priceAssetId58)))
546592 makeString(["%d%d%d%d%d%d", toString(availableIdoAmountToClaimWithPriceAssetBalance), toString(userPeriodAllowance), toString(totalPeriodAllowance), toString(usdtPriceAssetAllowableRatio), toString(currentUsdtPriceAssetRatio), toString(periodLenght), toString(userTotalPriceAssetClaimed)], SEP)
547593 }
548594 else makeString(["%d%d%d%d%d%d", toString(availableIdoAmountToClaimWithPriceAssetBalance), toString(periodMinAvailableToClaim), toString(periodTotalAvailableToClaim), toString(usdtPriceAssetAllowableRatio), toString(currentUsdtPriceAssetRatio), toString(endPeriodBlocksLeft), toString(userTotalPriceAssetClaimed)], SEP)
549595 $Tuple2(nil, resultString)
550596 }
551597
552598
553599
554600 @Callable(i)
555601 func setManager (pendingManagerPublicKey) = {
556602 let checkCaller = mustManager(i)
557603 if ((checkCaller == checkCaller))
558604 then {
559605 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
560606 if ((checkManagerPublicKey == checkManagerPublicKey))
561607 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
562608 else throw("Strict value is not equal to itself.")
563609 }
564610 else throw("Strict value is not equal to itself.")
565611 }
566612
567613
568614
569615 @Callable(i)
570616 func confirmManager () = {
571617 let pm = pendingManagerPublicKeyOrUnit()
572618 let hasPM = if (isDefined(pm))
573619 then true
574620 else throw("No pending manager")
575621 if ((hasPM == hasPM))
576622 then {
577623 let checkPM = if ((i.callerPublicKey == value(pm)))
578624 then true
579625 else throw("You are not pending manager")
580626 if ((checkPM == checkPM))
581627 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
582628 else throw("Strict value is not equal to itself.")
583629 }
584630 else throw("Strict value is not equal to itself.")
585631 }
586632
587633
588634 @Verifier(tx)
589635 func verify () = {
590636 let targetPublicKey = match managerPublicKeyOrUnit() {
591637 case pk: ByteVector =>
592638 pk
593639 case _: Unit =>
594640 tx.senderPublicKey
595641 case _ =>
596642 throw("Match error")
597643 }
598644 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
599645 }
600646

github/deemru/w8io/026f985 
83.84 ms