tx · 6SWYDCccc9xoSNsEnhk9VzCL77LcF3M4mxoxRMFrmyxw

3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje:  -0.02700000 Waves

2022.11.30 15:20 [2339829] smart account 3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje > SELF 0.00000000 Waves

{ "type": 13, "id": "6SWYDCccc9xoSNsEnhk9VzCL77LcF3M4mxoxRMFrmyxw", "fee": 2700000, "feeAssetId": null, "timestamp": 1669810818482, "version": 1, "sender": "3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje", "senderPublicKey": "8JB75GXEKqxmpXc6KVtT9UNqJ3BBSUZDodYD4DU7CUUB", "proofs": [ "2cKkTNWHCcnagHjdY3GeWVPXmfiFH5P6N6FxfQuJ8r1Je6GFKUA3gM3Xgnuv6HF2aeaf6ia8a8a22gX5Wm3vjzZX" ], "script": "base64:AAIFAAAAAAAAD10IAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgSBAoCCAgSAwoBCBIAIg9nZXRTdHJpbmdPckZhaWwiA2tleSIDU0VQIghCVUZTQ0FMRSIGc2NhbGU4Igh0aHJvd0VyciIDbXNnIh1jb252ZXJ0UHJpY2VBc3NldEludG9JZG9Bc3NldCIQcHJpY2VBc3NldEFtb3VudCIOcHJpY2VBc3NldE1VTFQiBXByaWNlIglwcmljZU1VTFQiDGlkb0Fzc2V0TVVMVCIPYlByaWNlQXNzZXRNVUxUIg1iSWRvQXNzZXRNVUxUIg5iUHJpY2VBc3NldEJVRiIPYkFtb3VudEFzc2V0QlVGIg5JZHhDZmdJZG9TdGFydCIRSWR4Q2ZnSWRvRHVyYXRpb24iEElkeENmZ0NsYWltU3RhcnQiE0lkeENmZ0NsYWltRHVyYXRpb24iC0lkeENmZ1ByaWNlIg9JZHhDZmdQcmljZU11bHQiEElkeENmZ0lkb0Fzc2V0SWQiEklkeENmZ0lkb0Fzc2V0TXVsdCISSWR4Q2ZnUHJpY2VBc3NldElkIhRJZHhDZmdQcmljZ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AAAAAQIAAAASTm8gcGVuZGluZyBtYW5hZ2VyAwkAAAAAAAACBQAAAAJjWAUAAAACY1gEAAAAAmNZAwkAAAAAAAACCAUAAAACY2oAAAAPY2FsbGVyUHVibGljS2V5CQEAAAAFdmFsdWUAAAABBQAAAAJjVwYJAAACAAAAAQIAAAAbWW91IGFyZSBub3QgcGVuZGluZyBtYW5hZ2VyAwkAAAAAAAACBQAAAAJjWQUAAAACY1kJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAAmFCAAAAAAkAAlgAAAABCQEAAAAFdmFsdWUAAAABBQAAAAJjVwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAACYUMAAAAABQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACY1oBAAAAAmRhAAAAAAQAAAACZGIEAAAAAmNmCQEAAAACY2UAAAAAAwkAAAEAAAACBQAAAAJjZgIAAAAKQnl0ZVZlY3RvcgQAAAACY2wFAAAAAmNmBQAAAAJjbAMJAAABAAAAAgUAAAACY2YCAAAABFVuaXQIBQAAAAJjWgAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAmNaAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACY1oAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAJkYoqnMd0=", "chainId": 84, "height": 2339829, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 249zk6hPajqGoYiQbEsDaQaUu7P3iqTLugUMD9CeqYqb Next: 2gfrmtCHstvBSQ7MAUg3aTDWKh1Doq9pKQBu67KhQny9 Diff:
OldNewDifferences
168168 let newClaimedIdoAssetAmount = ((claimedIdoAssetAmount + incrementDiff[IdxDiffClaimedIdoAssetAmountIncrement]) + priceAssetBalancePriceAssetDecimals)
169169 let entries = if ((0 > newRemainingAmount))
170170 then {
171- let newLogicRemainingAmount = (newTotalAmount - newClaimedPriceAssetAmount)
171+ let newLogicRemainingAmount = ((newTotalAmount - newClaimedPriceAssetAmount) - newClaimedIdoAssetAmount)
172172 StringEntry(key, formatInvestor(newTotalAmount, newLogicRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight))
173173 }
174174 else StringEntry(key, formatInvestor(newTotalAmount, newRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight))
233233 let periodLength = value(getInteger(keyPeriodLength()))
234234 let currentPeriod = valueOrElse(getInteger(keyCurrentPeriod()), 0)
235235 let zeroPeriodEndHeighIsDefined = isDefined(getInteger(keyPeriodEndHeight(0)))
236- let $t01259414464 = if ((currentPeriod > 0))
236+ let $t01262114491 = if ((currentPeriod > 0))
237237 then {
238238 let lastPeriodStartHeight = value(getInteger(keyPeriodStartHeight(currentPeriod)))
239239 let lastPeriodEndHeight = value(getInteger(keyPeriodEndHeight(currentPeriod)))
240- let $t01285413559 = if ((height > lastPeriodEndHeight))
240+ let $t01288113586 = if ((height > lastPeriodEndHeight))
241241 then {
242242 let updatedCurrentPeriod = (currentPeriod + 1)
243243 let periodStart = if ((height > (lastPeriodEndHeight + periodLength)))
252252 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
253253 }
254254 else $Tuple3(currentPeriod, lastPeriodStartHeight, lastPeriodEndHeight)
255- let updatedCurrentPeriod = $t01285413559._1
256- let periodStart = $t01285413559._2
257- let periodEnd = $t01285413559._3
255+ let updatedCurrentPeriod = $t01288113586._1
256+ let periodStart = $t01288113586._2
257+ let periodEnd = $t01288113586._3
258258 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
259259 }
260260 else if (zeroPeriodEndHeighIsDefined)
261261 then {
262262 let zeroPeriodStartHeight = value(getInteger(keyPeriodStartHeight(0)))
263263 let zeroPeriodEndHeight = value(getInteger(keyPeriodEndHeight(0)))
264- let $t01381414196 = if ((height > zeroPeriodEndHeight))
264+ let $t01384114223 = if ((height > zeroPeriodEndHeight))
265265 then {
266266 let updatedCurrentPeriod = (currentPeriod + 1)
267267 let periodStart = (zeroPeriodEndHeight + 1)
269269 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
270270 }
271271 else $Tuple3(currentPeriod, zeroPeriodStartHeight, zeroPeriodEndHeight)
272- let updatedCurrentPeriod = $t01381414196._1
273- let periodStart = $t01381414196._2
274- let periodEnd = $t01381414196._3
272+ let updatedCurrentPeriod = $t01384114223._1
273+ let periodStart = $t01384114223._2
274+ let periodEnd = $t01384114223._3
275275 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
276276 }
277277 else $Tuple3(currentPeriod, valueOrElse(getInteger(keyPeriodStartHeight(currentPeriod)), height), valueOrElse(getInteger(keyPeriodEndHeight(currentPeriod)), ((height + periodLength) - 1)))
278- let updatedCurrentPeriod = $t01259414464._1
279- let periodStart = $t01259414464._2
280- let periodEnd = $t01259414464._3
278+ let updatedCurrentPeriod = $t01262114491._1
279+ let periodStart = $t01262114491._2
280+ let periodEnd = $t01262114491._3
281281 let periodTotalAvailableToClaim = valueOrElse(getInteger(keyPeriodTotalAvailableToClaim(priceAssetId58, updatedCurrentPeriod)), totalPeriodPriceAssetAllowance)
282282 let periodUserAvailableToClaim = valueOrElse(getInteger(keyPeriodUserAvailableToClaim(priceAssetId58, updatedCurrentPeriod, userAddress58)), userPeriodPriceAssetAllowance)
283283 let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0)
284284 let periodMinAvailableToClaim = min([(outAmount + priceAssetBalance), periodTotalAvailableToClaim, periodUserAvailableToClaim])
285285 let usdtPriceAssetAllowableRatio = value(getInteger(keyUsdtPriceAssetAllowableRatio()))
286286 let putOneTknV2PriceAssetAmount = scale8
287- let $t01521915472 = {
287+ let $t01524615499 = {
288288 let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "putOneTknV2WithoutTakeFeeREADONLY", [putOneTknV2PriceAssetAmount, priceAssetId58], nil)
289289 if ($isInstanceOf(@, "(Int, Int, Int)"))
290290 then @
291291 else throw("Couldn't cast Any to (Int, Int, Int)")
292292 }
293- if (($t01521915472 == $t01521915472))
293+ if (($t01524615499 == $t01524615499))
294294 then {
295- let bonus = $t01521915472._3
296- let feeAmount = $t01521915472._2
297- let lpAmount = $t01521915472._1
295+ let bonus = $t01524615499._3
296+ let feeAmount = $t01524615499._2
297+ let lpAmount = $t01524615499._1
298298 let usdtAssetId = value(getString(keyUsdtAssetId()))
299- let $t01553415752 = {
299+ let $t01556115779 = {
300300 let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "getOneTknV2READONLY", [usdtAssetId, lpAmount], nil)
301301 if ($isInstanceOf(@, "(Int, Int)"))
302302 then @
303303 else throw("Couldn't cast Any to (Int, Int)")
304304 }
305- if (($t01553415752 == $t01553415752))
305+ if (($t01556115779 == $t01556115779))
306306 then {
307- let getOneTknV2FeeAmount = $t01553415752._2
308- let usdtAmount = $t01553415752._1
307+ let getOneTknV2FeeAmount = $t01556115779._2
308+ let usdtAmount = $t01556115779._1
309309 let currentUsdtPriceAssetRatio = fraction(putOneTknV2PriceAssetAmount, scale8, usdtAmount)
310310 let endPeriodBlocksLeft = (periodEnd - height)
311311 $Tuple10(periodMinAvailableToClaim, periodTotalAvailableToClaim, periodUserAvailableToClaim, totalUserAvailableToClaim, usdtPriceAssetAllowableRatio, currentUsdtPriceAssetRatio, endPeriodBlocksLeft, updatedCurrentPeriod, periodStart, periodEnd)
449449 let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals
450450 let entries = if ((claimedAssetId58 == priceAssetId58))
451451 then {
452- let $t02166122105 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
453- let periodMinAvailableToClaim = $t02166122105._1
454- let periodTotalAvailableToClaim = $t02166122105._2
455- let periodUserAvailableToClaim = $t02166122105._3
456- let totalUserAvailableToClaim = $t02166122105._4
457- let usdtPriceAssetAllowableRatio = $t02166122105._5
458- let currentUsdtPriceAssetRatio = $t02166122105._6
459- let endPeriodBlocksLeft = $t02166122105._7
460- let updatedCurrentPeriod = $t02166122105._8
461- let periodStart = $t02166122105._9
462- let periodEnd = $t02166122105._10
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
463463 let checks = [if ((periodUserAvailableToClaim > 0))
464464 then true
465465 else throwErr("unavailable to claim because user period allowance reached"), if ((periodTotalAvailableToClaim > 0))
525525 let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0)
526526 let priceAssetBalanceIdoDecimals = (priceAssetBalance * 100)
527527 let availableIdoAmountToClaimWithPriceAssetBalance = (availableIdoAmountToClaim + priceAssetBalanceIdoDecimals)
528- let $t02839828810 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
529- let periodMinAvailableToClaim = $t02839828810._1
530- let periodTotalAvailableToClaim = $t02839828810._2
531- let periodUserAvailableToClaim = $t02839828810._3
532- let totalUserAvailableToClaim = $t02839828810._4
533- let usdtPriceAssetAllowableRatio = $t02839828810._5
534- let currentUsdtPriceAssetRatio = $t02839828810._6
535- let endPeriodBlocksLeft = $t02839828810._7
536- let updatedCurrentPeriod = $t02839828810._8
537- let periodStart = $t02839828810._9
538- let periodEnd = $t02839828810._10
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
539539 let currentPeriodEndHeight = valueOrElse(getInteger(keyPeriodEndHeight(updatedCurrentPeriod)), 0)
540540 let userTotalPriceAssetClaimed = (parseIntValue(readInvestorArrayOrFail(userAddress58)[IdxInvClaimedPriceAssetAmount]) - priceAssetBalance)
541541 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], " "))
1414
1515
1616 func convertPriceAssetIntoIdoAsset (priceAssetAmount,priceAssetMULT,price,priceMULT,idoAssetMULT) = {
1717 let bPriceAssetMULT = toBigInt(priceAssetMULT)
1818 let bIdoAssetMULT = toBigInt(idoAssetMULT)
1919 let bPriceAssetBUF = fraction(toBigInt(priceAssetAmount), BUFSCALE, bPriceAssetMULT)
2020 let bAmountAssetBUF = fraction(bPriceAssetBUF, toBigInt(priceMULT), toBigInt(price))
2121 toInt(fraction(bAmountAssetBUF, toBigInt(idoAssetMULT), BUFSCALE))
2222 }
2323
2424
2525 let IdxCfgIdoStart = 1
2626
2727 let IdxCfgIdoDuration = 2
2828
2929 let IdxCfgClaimStart = 3
3030
3131 let IdxCfgClaimDuration = 4
3232
3333 let IdxCfgPrice = 5
3434
3535 let IdxCfgPriceMult = 6
3636
3737 let IdxCfgIdoAssetId = 7
3838
3939 let IdxCfgIdoAssetMult = 8
4040
4141 let IdxCfgPriceAssetId = 9
4242
4343 let IdxCfgPriceAssetMult = 10
4444
4545 let IdxCfgMinInvestAmount = 11
4646
4747 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)
4848
4949
5050 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))
5151
5252
5353 let IdxInvTotalAmount = 1
5454
5555 let IdxInvRemainingAmount = 2
5656
5757 let IdxInvClaimedPriceAssetAmount = 3
5858
5959 let IdxInvClaimedIdoAssetAmount = 4
6060
6161 let IdxInvLastClaimedHeight = 5
6262
6363 func formatInvestorS (totalAmount,remainingAmount,claimedPriceAssetAmount,claimedIdoAssetAmount,lastClaimedHeight) = makeString(["%d%d%d%d%d", totalAmount, remainingAmount, claimedPriceAssetAmount, claimedIdoAssetAmount, lastClaimedHeight], SEP)
6464
6565
6666 func formatInvestor (totalAmount,remainingAmount,claimedPriceAssetAmount,claimedIdoAssetAmount,lastClaimedHeight) = formatInvestorS(toString(totalAmount), toString(remainingAmount), toString(claimedPriceAssetAmount), toString(claimedIdoAssetAmount), toString(lastClaimedHeight))
6767
6868
6969 func formatHistoryRecord (priceAssetAmount,idoAssetAmount) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(priceAssetAmount), toString(idoAssetAmount)], SEP)
7070
7171
7272 func keyConfig () = "%s__config"
7373
7474
7575 func keyInvestor (userAddress) = ("%s__" + userAddress)
7676
7777
7878 func keyTotals () = "%s__totals"
7979
8080
8181 func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP)
8282
8383
8484 func keyUSDNClaimDisabled () = "%s__usdnClaimDisabled"
8585
8686
8787 func keyUSDNClaimEndHeight () = "%s__usdnClaimEndHeight"
8888
8989
9090 func keyPeriodLength () = makeString(["%s", "periodLength"], SEP)
9191
9292
9393 func keyCurrentPeriod () = makeString(["%s", "currentPeriod"], SEP)
9494
9595
9696 func keyPeriodStartHeight (periodNum) = makeString(["%s%s", "periodStartHeight", toString(periodNum)], SEP)
9797
9898
9999 func keyPeriodEndHeight (periodNum) = makeString(["%s%s", "periodEndHeight", toString(periodNum)], SEP)
100100
101101
102102 func keyUsdtPriceAssetAllowableRatio () = makeString(["%s", "usdtPriceAssetAllowableRatio"], SEP)
103103
104104
105105 func keyTotalPeriodAllowance (assetId) = makeString(["%s%s", "totalPeriodAllowance", assetId], SEP)
106106
107107
108108 func keyUserPeriodAllowance (assetId) = makeString(["%s%s", "userPeriodAllowance", assetId], SEP)
109109
110110
111111 func keyPeriodTotalAvailableToClaim (assetId,periodNum) = makeString(["%s%s%s", "periodTotalAvailableToClaim", assetId, toString(periodNum)], SEP)
112112
113113
114114 func keyPeriodUserAvailableToClaim (assetId,periodNum,userAddress) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", assetId, toString(periodNum), userAddress], SEP)
115115
116116
117117 func keyUsdtPriceAssetStablePool () = makeString(["%s", "usdtPriceAssetStablePool"], SEP)
118118
119119
120120 func keyUsdtAssetId () = makeString(["%s", "usdtAssetId"], SEP)
121121
122122
123123 func keyPriceAssetBalance (address) = makeString(["%s%s", "priceAssetBalance", address], SEP)
124124
125125
126126 func keyManagerPublicKey () = "%s__managerPublicKey"
127127
128128
129129 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
130130
131131
132132 func readConfigArray () = split(getStringOrFail(keyConfig()), SEP)
133133
134134
135135 func readTotalsArrayOrDefaultByCustomKey (customKey) = split(valueOrElse(getString(customKey), formatInvestorS("0", "0", "0", "0", "0")), SEP)
136136
137137
138138 func readTotalsArrayOrDefault () = readTotalsArrayOrDefaultByCustomKey(keyTotals())
139139
140140
141141 func readInvestorArrayOrDefault (userAddress) = readTotalsArrayOrDefaultByCustomKey(keyInvestor(userAddress))
142142
143143
144144 func readInvestorArrayOrFail (userAddress) = split(getStringOrFail(keyInvestor(userAddress)), SEP)
145145
146146
147147 let IdxDiffTotalIncrement = 0
148148
149149 let IdxDiffRemainingPriceAmountIncrement = 1
150150
151151 let IdxDiffClaimedPriceAmountIncrement = 2
152152
153153 let IdxDiffClaimedIdoAssetAmountIncrement = 3
154154
155155 func TotalsEntry (key,origArray,incrementDiff,newLastClaimedHeight,priceAssetBalance) = {
156156 let totalAmount = parseIntValue(origArray[IdxInvTotalAmount])
157157 let remainingAmount = parseIntValue(origArray[IdxInvRemainingAmount])
158158 let claimedPriceAssetAmount = parseIntValue(origArray[IdxInvClaimedPriceAssetAmount])
159159 let claimedIdoAssetAmount = parseIntValue(origArray[IdxInvClaimedIdoAssetAmount])
160160 let lastClaimedHeight = parseIntValue(origArray[IdxInvLastClaimedHeight])
161161 let newTotalAmount = (totalAmount + incrementDiff[IdxDiffTotalIncrement])
162162 let newRemainingAmount = (remainingAmount + incrementDiff[IdxDiffRemainingPriceAmountIncrement])
163163 let cfgArray = readConfigArray()
164164 let priceAssetId58 = cfgArray[IdxCfgPriceAssetId]
165165 let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals
166166 let priceAssetBalancePriceAssetDecimals = fraction(priceAssetBalance, scale8, pow(10, 0, priceAssetDecimals, 0, 0, DOWN))
167167 let newClaimedPriceAssetAmount = ((claimedPriceAssetAmount + incrementDiff[IdxDiffClaimedPriceAmountIncrement]) - priceAssetBalance)
168168 let newClaimedIdoAssetAmount = ((claimedIdoAssetAmount + incrementDiff[IdxDiffClaimedIdoAssetAmountIncrement]) + priceAssetBalancePriceAssetDecimals)
169169 let entries = if ((0 > newRemainingAmount))
170170 then {
171- let newLogicRemainingAmount = (newTotalAmount - newClaimedPriceAssetAmount)
171+ let newLogicRemainingAmount = ((newTotalAmount - newClaimedPriceAssetAmount) - newClaimedIdoAssetAmount)
172172 StringEntry(key, formatInvestor(newTotalAmount, newLogicRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight))
173173 }
174174 else StringEntry(key, formatInvestor(newTotalAmount, newRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight))
175175 entries
176176 }
177177
178178
179179 func InvestOperationHistoryEntry (userAddress,priceAssetAmount,idoAssetAmount,txId) = StringEntry(keyOperationHistoryRecord("invest", userAddress, toBase58String(txId)), formatHistoryRecord(priceAssetAmount, idoAssetAmount))
180180
181181
182182 func ClaimOperationHistoryEntry (userAddress,priceAssetAmount,idoAssetAmount,txId) = StringEntry(keyOperationHistoryRecord("claim", userAddress, toBase58String(txId)), formatHistoryRecord(priceAssetAmount, idoAssetAmount))
183183
184184
185185 func internalClaim (claimedAssetId58,userAddress,txId) = {
186186 let cfgArray = readConfigArray()
187187 let claimStart = parseIntValue(cfgArray[IdxCfgClaimStart])
188188 let claimDuration = parseIntValue(cfgArray[IdxCfgClaimDuration])
189189 let claimEnd = (claimStart + claimDuration)
190190 let price = parseIntValue(cfgArray[IdxCfgPrice])
191191 let priceMult = parseIntValue(cfgArray[IdxCfgPriceMult])
192192 let idoAssetId58 = cfgArray[IdxCfgIdoAssetId]
193193 let idoAssetId = fromBase58String(idoAssetId58)
194194 let idoAssetMult = parseIntValue(cfgArray[IdxCfgIdoAssetMult])
195195 let priceAssetId58 = cfgArray[IdxCfgPriceAssetId]
196196 let priceAssetId = fromBase58String(priceAssetId58)
197197 let priceAssetMult = parseIntValue(cfgArray[IdxCfgPriceAssetMult])
198198 let userAddress58 = toString(userAddress)
199199 let origInvestArray = readInvestorArrayOrFail(userAddress58)
200200 let investTotalAmount = parseIntValue(origInvestArray[IdxInvTotalAmount])
201201 let investLastClaimedHeightTMP = parseIntValue(origInvestArray[IdxInvLastClaimedHeight])
202202 let investLastClaimedHeight = if ((claimStart >= investLastClaimedHeightTMP))
203203 then claimStart
204204 else investLastClaimedHeightTMP
205205 let newClaimPeriodHeight = if ((height > claimEnd))
206206 then claimEnd
207207 else if ((claimStart > height))
208208 then claimStart
209209 else height
210210 let claimingBlocks = (newClaimPeriodHeight - investLastClaimedHeight)
211211 let claimingPriceAssetAmount = fraction(investTotalAmount, claimingBlocks, claimDuration)
212212 let claimingIdoAssetAmount = convertPriceAssetIntoIdoAsset(claimingPriceAssetAmount, priceAssetMult, price, priceMult, idoAssetMult)
213213 let isUSDN = (claimedAssetId58 == priceAssetId58)
214214 let isUSDNClaimDisabled = valueOrElse(getBoolean(keyUSDNClaimDisabled()), false)
215215 let checks = [if (!(if (isUSDN)
216216 then isUSDNClaimDisabled
217217 else false))
218218 then true
219219 else throw("USDN claim is disabled")]
220220 if ((checks == checks))
221221 then if ((claimedAssetId58 == priceAssetId58))
222222 then $Tuple6([0, -(claimingPriceAssetAmount), claimingPriceAssetAmount, 0], claimingPriceAssetAmount, priceAssetId, origInvestArray, newClaimPeriodHeight, [claimingPriceAssetAmount, claimingIdoAssetAmount])
223223 else if ((claimedAssetId58 == idoAssetId58))
224224 then $Tuple6([0, -(claimingPriceAssetAmount), 0, claimingIdoAssetAmount], claimingIdoAssetAmount, idoAssetId, origInvestArray, newClaimPeriodHeight, [claimingPriceAssetAmount, claimingIdoAssetAmount])
225225 else throw(("unsupported assetId: " + claimedAssetId58))
226226 else throw("Strict value is not equal to itself.")
227227 }
228228
229229
230230 func internalClaimV2 (priceAssetId58,userAddress58,outAmount,totalUserAvailableToClaim) = {
231231 let totalPeriodPriceAssetAllowance = value(getInteger(keyTotalPeriodAllowance(priceAssetId58)))
232232 let userPeriodPriceAssetAllowance = value(getInteger(keyUserPeriodAllowance(priceAssetId58)))
233233 let periodLength = value(getInteger(keyPeriodLength()))
234234 let currentPeriod = valueOrElse(getInteger(keyCurrentPeriod()), 0)
235235 let zeroPeriodEndHeighIsDefined = isDefined(getInteger(keyPeriodEndHeight(0)))
236- let $t01259414464 = if ((currentPeriod > 0))
236+ let $t01262114491 = if ((currentPeriod > 0))
237237 then {
238238 let lastPeriodStartHeight = value(getInteger(keyPeriodStartHeight(currentPeriod)))
239239 let lastPeriodEndHeight = value(getInteger(keyPeriodEndHeight(currentPeriod)))
240- let $t01285413559 = if ((height > lastPeriodEndHeight))
240+ let $t01288113586 = if ((height > lastPeriodEndHeight))
241241 then {
242242 let updatedCurrentPeriod = (currentPeriod + 1)
243243 let periodStart = if ((height > (lastPeriodEndHeight + periodLength)))
244244 then {
245245 let blocksToLastPeriodStart = ((height - lastPeriodEndHeight) % periodLength)
246246 if ((blocksToLastPeriodStart == 0))
247247 then ((height - periodLength) + 1)
248248 else (height - blocksToLastPeriodStart)
249249 }
250250 else (lastPeriodEndHeight + 1)
251251 let periodEnd = ((periodStart + periodLength) - 1)
252252 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
253253 }
254254 else $Tuple3(currentPeriod, lastPeriodStartHeight, lastPeriodEndHeight)
255- let updatedCurrentPeriod = $t01285413559._1
256- let periodStart = $t01285413559._2
257- let periodEnd = $t01285413559._3
255+ let updatedCurrentPeriod = $t01288113586._1
256+ let periodStart = $t01288113586._2
257+ let periodEnd = $t01288113586._3
258258 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
259259 }
260260 else if (zeroPeriodEndHeighIsDefined)
261261 then {
262262 let zeroPeriodStartHeight = value(getInteger(keyPeriodStartHeight(0)))
263263 let zeroPeriodEndHeight = value(getInteger(keyPeriodEndHeight(0)))
264- let $t01381414196 = if ((height > zeroPeriodEndHeight))
264+ let $t01384114223 = if ((height > zeroPeriodEndHeight))
265265 then {
266266 let updatedCurrentPeriod = (currentPeriod + 1)
267267 let periodStart = (zeroPeriodEndHeight + 1)
268268 let periodEnd = ((periodStart + periodLength) - 1)
269269 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
270270 }
271271 else $Tuple3(currentPeriod, zeroPeriodStartHeight, zeroPeriodEndHeight)
272- let updatedCurrentPeriod = $t01381414196._1
273- let periodStart = $t01381414196._2
274- let periodEnd = $t01381414196._3
272+ let updatedCurrentPeriod = $t01384114223._1
273+ let periodStart = $t01384114223._2
274+ let periodEnd = $t01384114223._3
275275 $Tuple3(updatedCurrentPeriod, periodStart, periodEnd)
276276 }
277277 else $Tuple3(currentPeriod, valueOrElse(getInteger(keyPeriodStartHeight(currentPeriod)), height), valueOrElse(getInteger(keyPeriodEndHeight(currentPeriod)), ((height + periodLength) - 1)))
278- let updatedCurrentPeriod = $t01259414464._1
279- let periodStart = $t01259414464._2
280- let periodEnd = $t01259414464._3
278+ let updatedCurrentPeriod = $t01262114491._1
279+ let periodStart = $t01262114491._2
280+ let periodEnd = $t01262114491._3
281281 let periodTotalAvailableToClaim = valueOrElse(getInteger(keyPeriodTotalAvailableToClaim(priceAssetId58, updatedCurrentPeriod)), totalPeriodPriceAssetAllowance)
282282 let periodUserAvailableToClaim = valueOrElse(getInteger(keyPeriodUserAvailableToClaim(priceAssetId58, updatedCurrentPeriod, userAddress58)), userPeriodPriceAssetAllowance)
283283 let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0)
284284 let periodMinAvailableToClaim = min([(outAmount + priceAssetBalance), periodTotalAvailableToClaim, periodUserAvailableToClaim])
285285 let usdtPriceAssetAllowableRatio = value(getInteger(keyUsdtPriceAssetAllowableRatio()))
286286 let putOneTknV2PriceAssetAmount = scale8
287- let $t01521915472 = {
287+ let $t01524615499 = {
288288 let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "putOneTknV2WithoutTakeFeeREADONLY", [putOneTknV2PriceAssetAmount, priceAssetId58], nil)
289289 if ($isInstanceOf(@, "(Int, Int, Int)"))
290290 then @
291291 else throw("Couldn't cast Any to (Int, Int, Int)")
292292 }
293- if (($t01521915472 == $t01521915472))
293+ if (($t01524615499 == $t01524615499))
294294 then {
295- let bonus = $t01521915472._3
296- let feeAmount = $t01521915472._2
297- let lpAmount = $t01521915472._1
295+ let bonus = $t01524615499._3
296+ let feeAmount = $t01524615499._2
297+ let lpAmount = $t01524615499._1
298298 let usdtAssetId = value(getString(keyUsdtAssetId()))
299- let $t01553415752 = {
299+ let $t01556115779 = {
300300 let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "getOneTknV2READONLY", [usdtAssetId, lpAmount], nil)
301301 if ($isInstanceOf(@, "(Int, Int)"))
302302 then @
303303 else throw("Couldn't cast Any to (Int, Int)")
304304 }
305- if (($t01553415752 == $t01553415752))
305+ if (($t01556115779 == $t01556115779))
306306 then {
307- let getOneTknV2FeeAmount = $t01553415752._2
308- let usdtAmount = $t01553415752._1
307+ let getOneTknV2FeeAmount = $t01556115779._2
308+ let usdtAmount = $t01556115779._1
309309 let currentUsdtPriceAssetRatio = fraction(putOneTknV2PriceAssetAmount, scale8, usdtAmount)
310310 let endPeriodBlocksLeft = (periodEnd - height)
311311 $Tuple10(periodMinAvailableToClaim, periodTotalAvailableToClaim, periodUserAvailableToClaim, totalUserAvailableToClaim, usdtPriceAssetAllowableRatio, currentUsdtPriceAssetRatio, endPeriodBlocksLeft, updatedCurrentPeriod, periodStart, periodEnd)
312312 }
313313 else throw("Strict value is not equal to itself.")
314314 }
315315 else throw("Strict value is not equal to itself.")
316316 }
317317
318318
319319 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
320320 case s: String =>
321321 fromBase58String(s)
322322 case _: Unit =>
323323 unit
324324 case _ =>
325325 throw("Match error")
326326 }
327327
328328
329329 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
330330 case s: String =>
331331 fromBase58String(s)
332332 case _: Unit =>
333333 unit
334334 case _ =>
335335 throw("Match error")
336336 }
337337
338338
339339 func mustManager (i) = {
340340 let pd = throw("Permission denied")
341341 match managerPublicKeyOrUnit() {
342342 case pk: ByteVector =>
343343 if ((i.callerPublicKey == pk))
344344 then true
345345 else pd
346346 case _: Unit =>
347347 if ((i.caller == this))
348348 then true
349349 else pd
350350 case _ =>
351351 throw("Match error")
352352 }
353353 }
354354
355355
356356 @Callable(i)
357357 func constructor (idoStart,idoDuration,claimStart,claimDuration,price,priceAssetId58,minInvestAmount) = {
358358 let priceMult = ((100 * 1000) * 1000)
359359 let idoEnd = (idoStart + idoDuration)
360360 if (isDefined(getString(keyConfig())))
361361 then throw("already initialized")
362362 else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(i.caller)))
363363 then throw("not authorized")
364364 else if ((size(i.payments) != 1))
365365 then throw("exactly 1 payment must be attached")
366366 else if ((idoEnd >= claimStart))
367367 then throw("claimStart must be greater than idoEnd")
368368 else {
369369 let pmt = value(i.payments[0])
370370 let idoAssetId = value(pmt.assetId)
371371 let idoAssetInfo = valueOrErrorMessage(assetInfo(idoAssetId), "fail to load ido asset info")
372372 let idoAssetId58 = toBase58String(idoAssetId)
373373 let idoAssetMult = pow(10, 0, idoAssetInfo.decimals, 0, 0, DOWN)
374374 let priceAssetId = fromBase58String(priceAssetId58)
375375 let priceAssetInfo = valueOrErrorMessage(assetInfo(priceAssetId), "fail to load price asset info")
376376 let priceAssetMult = pow(10, 0, priceAssetInfo.decimals, 0, 0, DOWN)
377377 let origTotalsArray = readTotalsArrayOrDefault()
378378 let totalsDiff = [0, 0, 0, 0]
379379 [StringEntry(keyConfig(), fromatConfig(idoStart, idoDuration, claimStart, claimDuration, price, priceMult, idoAssetId58, idoAssetMult, priceAssetId58, priceAssetMult, minInvestAmount, pmt.amount)), TotalsEntry(keyTotals(), origTotalsArray, totalsDiff, claimStart, 0)]
380380 }
381381 }
382382
383383
384384
385385 @Callable(i)
386386 func invest () = {
387387 let cfgArray = readConfigArray()
388388 let idoStart = parseIntValue(cfgArray[IdxCfgIdoStart])
389389 let idoDuration = parseIntValue(cfgArray[IdxCfgIdoDuration])
390390 let idoEnd = (idoStart + idoDuration)
391391 let claimStart = parseIntValue(cfgArray[IdxCfgClaimStart])
392392 let claimDuration = parseIntValue(cfgArray[IdxCfgClaimDuration])
393393 let price = parseIntValue(cfgArray[IdxCfgPrice])
394394 let priceMult = parseIntValue(cfgArray[IdxCfgPriceMult])
395395 let idoAssetId58 = cfgArray[IdxCfgIdoAssetId]
396396 let idoAssetId = fromBase58String(idoAssetId58)
397397 let idoAssetMult = parseIntValue(cfgArray[IdxCfgIdoAssetMult])
398398 let priceAssetId58 = cfgArray[IdxCfgPriceAssetId]
399399 let priceAssetId = fromBase58String(priceAssetId58)
400400 let priceAssetMult = parseIntValue(cfgArray[IdxCfgPriceAssetMult])
401401 let minIvestAmount = parseIntValue(cfgArray[IdxCfgMinInvestAmount])
402402 let userAddress = toString(i.caller)
403403 if ((idoStart > height))
404404 then throw("ido has not been started yet")
405405 else if ((height > idoEnd))
406406 then throw("ido has been already ended")
407407 else if ((size(i.payments) != 1))
408408 then throw("exactly 1 payment is expected")
409409 else {
410410 let pmt = value(i.payments[0])
411411 let pmtAssetId = value(pmt.assetId)
412412 let pmtAmount = pmt.amount
413413 if ((pmtAssetId != priceAssetId))
414414 then throw((("invalid payment asset id: " + toBase58String(pmtAssetId)) + " is expected"))
415415 else {
416416 let origInvestorArray = readInvestorArrayOrDefault(userAddress)
417417 let origTotalsArray = readTotalsArrayOrDefault()
418418 let newPriceTotalAmount = (parseIntValue(origTotalsArray[IdxInvTotalAmount]) + pmtAmount)
419419 let requiredIdoAssetAmount = (newPriceTotalAmount * 100)
420420 if ((requiredIdoAssetAmount > assetBalance(this, idoAssetId)))
421421 then throw("IDO asset has been - sold consider to use smaller payment")
422422 else {
423423 let totalsDiff = [pmtAmount, pmtAmount, 0, 0]
424424 [TotalsEntry(keyInvestor(userAddress), origInvestorArray, totalsDiff, claimStart, 0), TotalsEntry(keyTotals(), origTotalsArray, totalsDiff, claimStart, 0), InvestOperationHistoryEntry(userAddress, pmtAmount, 0, i.transactionId)]
425425 }
426426 }
427427 }
428428 }
429429
430430
431431
432432 @Callable(i)
433433 func claim (claimedAssetId58,userAddress58) = {
434434 let callerAddress58 = toString(i.caller)
435435 if ((userAddress58 != callerAddress58))
436436 then throw("not authorized")
437437 else {
438438 let cfgArray = readConfigArray()
439439 let priceAssetId58 = cfgArray[IdxCfgPriceAssetId]
440440 let claimResultTuple = internalClaim(claimedAssetId58, i.caller, i.transactionId)
441441 let totalsDiff = claimResultTuple._1
442442 let outAmount = claimResultTuple._2
443443 let outAssetId = claimResultTuple._3
444444 let origInvestArray = claimResultTuple._4
445445 let newClaimPeriodHeight = claimResultTuple._5
446446 let claimedPriceAmountFromDiff = totalsDiff[IdxDiffClaimedPriceAmountIncrement]
447447 let claimedIdoAssetAmountFromDiff = totalsDiff[IdxDiffClaimedIdoAssetAmountIncrement]
448448 let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0)
449449 let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals
450450 let entries = if ((claimedAssetId58 == priceAssetId58))
451451 then {
452- let $t02166122105 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
453- let periodMinAvailableToClaim = $t02166122105._1
454- let periodTotalAvailableToClaim = $t02166122105._2
455- let periodUserAvailableToClaim = $t02166122105._3
456- let totalUserAvailableToClaim = $t02166122105._4
457- let usdtPriceAssetAllowableRatio = $t02166122105._5
458- let currentUsdtPriceAssetRatio = $t02166122105._6
459- let endPeriodBlocksLeft = $t02166122105._7
460- let updatedCurrentPeriod = $t02166122105._8
461- let periodStart = $t02166122105._9
462- let periodEnd = $t02166122105._10
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
463463 let checks = [if ((periodUserAvailableToClaim > 0))
464464 then true
465465 else throwErr("unavailable to claim because user period allowance reached"), if ((periodTotalAvailableToClaim > 0))
466466 then true
467467 else throwErr("unavailable to claim because total period allowance reached"), if ((periodMinAvailableToClaim > 0))
468468 then true
469469 else throwErr("nothing to claim"), if ((usdtPriceAssetAllowableRatio > currentUsdtPriceAssetRatio))
470470 then true
471471 else throwErr("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")]
472472 if ((checks == checks))
473473 then {
474474 let updatedPeriodTotalAvailableToClaim = (periodTotalAvailableToClaim - periodMinAvailableToClaim)
475475 let updatedPeriodUserAvailableToClaim = (periodUserAvailableToClaim - periodMinAvailableToClaim)
476476 let entries = if ((priceAssetBalance >= periodMinAvailableToClaim))
477477 then [ScriptTransfer(i.caller, periodMinAvailableToClaim, outAssetId), IntegerEntry(keyPriceAssetBalance(userAddress58), (priceAssetBalance - periodMinAvailableToClaim))]
478478 else {
479479 let updatedPriceAssetBalance = ((priceAssetBalance + outAmount) - periodMinAvailableToClaim)
480480 [ScriptTransfer(i.caller, periodMinAvailableToClaim, outAssetId), TotalsEntry(keyInvestor(userAddress58), origInvestArray, totalsDiff, newClaimPeriodHeight, 0), TotalsEntry(keyTotals(), readTotalsArrayOrDefault(), totalsDiff, newClaimPeriodHeight, 0), IntegerEntry(keyPriceAssetBalance(userAddress58), updatedPriceAssetBalance)]
481481 }
482482 $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)
483483 }
484484 else throw("Strict value is not equal to itself.")
485485 }
486486 else {
487487 let priceAssetBalanceIdoDecimals = fraction(priceAssetBalance, scale8, pow(10, 0, priceAssetDecimals, 0, 0, DOWN))
488488 $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)
489489 }
490490 entries
491491 }
492492 }
493493
494494
495495
496496 @Callable(i)
497497 func claimREADONLY (claimedAssetId58,userAddress58) = {
498498 let claimResultTuple = internalClaim(claimedAssetId58, addressFromStringValue(userAddress58), fromBase58String(""))
499499 let totalsDiff = claimResultTuple._1
500500 let outAmount = claimResultTuple._2
501501 let outAssetId = claimResultTuple._3
502502 let origInvestArray = claimResultTuple._4
503503 let newClaimPeriodHeight = claimResultTuple._5
504504 let availableToClaimArray = claimResultTuple._6
505505 let availablePriceAmountToClaim = availableToClaimArray[0]
506506 let availableIdoAmountToClaim = availableToClaimArray[1]
507507 $Tuple2(nil, makeString(["%s%d%d", userAddress58, toString(availablePriceAmountToClaim), toString(availableIdoAmountToClaim)], SEP))
508508 }
509509
510510
511511
512512 @Callable(i)
513513 func claimV2READONLY (claimedAssetId58,userAddress58) = {
514514 let claimResultTuple = internalClaim(claimedAssetId58, addressFromStringValue(userAddress58), fromBase58String(""))
515515 let totalsDiff = claimResultTuple._1
516516 let outAmount = claimResultTuple._2
517517 let outAssetId = claimResultTuple._3
518518 let origInvestArray = claimResultTuple._4
519519 let newClaimPeriodHeight = claimResultTuple._5
520520 let availableToClaimArray = claimResultTuple._6
521521 let availablePriceAmountToClaim = availableToClaimArray[0]
522522 let availableIdoAmountToClaim = availableToClaimArray[1]
523523 let cfgArray = readConfigArray()
524524 let priceAssetId58 = cfgArray[IdxCfgPriceAssetId]
525525 let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0)
526526 let priceAssetBalanceIdoDecimals = (priceAssetBalance * 100)
527527 let availableIdoAmountToClaimWithPriceAssetBalance = (availableIdoAmountToClaim + priceAssetBalanceIdoDecimals)
528- let $t02839828810 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement])
529- let periodMinAvailableToClaim = $t02839828810._1
530- let periodTotalAvailableToClaim = $t02839828810._2
531- let periodUserAvailableToClaim = $t02839828810._3
532- let totalUserAvailableToClaim = $t02839828810._4
533- let usdtPriceAssetAllowableRatio = $t02839828810._5
534- let currentUsdtPriceAssetRatio = $t02839828810._6
535- let endPeriodBlocksLeft = $t02839828810._7
536- let updatedCurrentPeriod = $t02839828810._8
537- let periodStart = $t02839828810._9
538- let periodEnd = $t02839828810._10
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
539539 let currentPeriodEndHeight = valueOrElse(getInteger(keyPeriodEndHeight(updatedCurrentPeriod)), 0)
540540 let userTotalPriceAssetClaimed = (parseIntValue(readInvestorArrayOrFail(userAddress58)[IdxInvClaimedPriceAssetAmount]) - priceAssetBalance)
541541 let resultString = if ((height > currentPeriodEndHeight))
542542 then {
543543 let periodLenght = value(getInteger(keyPeriodLength()))
544544 let userPeriodAllowance = value(getInteger(keyUserPeriodAllowance(priceAssetId58)))
545545 let totalPeriodAllowance = value(getInteger(keyTotalPeriodAllowance(priceAssetId58)))
546546 makeString(["%d%d%d%d%d%d", toString(availableIdoAmountToClaimWithPriceAssetBalance), toString(userPeriodAllowance), toString(totalPeriodAllowance), toString(usdtPriceAssetAllowableRatio), toString(currentUsdtPriceAssetRatio), toString(periodLenght), toString(userTotalPriceAssetClaimed)], SEP)
547547 }
548548 else makeString(["%d%d%d%d%d%d", toString(availableIdoAmountToClaimWithPriceAssetBalance), toString(periodMinAvailableToClaim), toString(periodTotalAvailableToClaim), toString(usdtPriceAssetAllowableRatio), toString(currentUsdtPriceAssetRatio), toString(endPeriodBlocksLeft), toString(userTotalPriceAssetClaimed)], SEP)
549549 $Tuple2(nil, resultString)
550550 }
551551
552552
553553
554554 @Callable(i)
555555 func setManager (pendingManagerPublicKey) = {
556556 let checkCaller = mustManager(i)
557557 if ((checkCaller == checkCaller))
558558 then {
559559 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
560560 if ((checkManagerPublicKey == checkManagerPublicKey))
561561 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
562562 else throw("Strict value is not equal to itself.")
563563 }
564564 else throw("Strict value is not equal to itself.")
565565 }
566566
567567
568568
569569 @Callable(i)
570570 func confirmManager () = {
571571 let pm = pendingManagerPublicKeyOrUnit()
572572 let hasPM = if (isDefined(pm))
573573 then true
574574 else throw("No pending manager")
575575 if ((hasPM == hasPM))
576576 then {
577577 let checkPM = if ((i.callerPublicKey == value(pm)))
578578 then true
579579 else throw("You are not pending manager")
580580 if ((checkPM == checkPM))
581581 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
582582 else throw("Strict value is not equal to itself.")
583583 }
584584 else throw("Strict value is not equal to itself.")
585585 }
586586
587587
588588 @Verifier(tx)
589589 func verify () = {
590590 let targetPublicKey = match managerPublicKeyOrUnit() {
591591 case pk: ByteVector =>
592592 pk
593593 case _: Unit =>
594594 tx.senderPublicKey
595595 case _ =>
596596 throw("Match error")
597597 }
598598 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
599599 }
600600

github/deemru/w8io/026f985 
95.42 ms