tx · 5K7YBBJB538Ra3ayki3hxRNj6FnXkw4KpTTNBM4Y1uWh 3MptKi7f3jwXjzqhHpvLLzsSpEQdZiwAo5c: -0.04000000 Waves 2024.01.15 15:58 [2932668] smart account 3MptKi7f3jwXjzqhHpvLLzsSpEQdZiwAo5c > SELF 0.00000000 Waves
{ "type": 13, "id": "5K7YBBJB538Ra3ayki3hxRNj6FnXkw4KpTTNBM4Y1uWh", "fee": 4000000, "feeAssetId": null, "timestamp": 1705323531411, "version": 2, "chainId": 84, "sender": "3MptKi7f3jwXjzqhHpvLLzsSpEQdZiwAo5c", "senderPublicKey": "44kjsoExo76qSrM51NMhbG8FtdLkcPtyJxEDrwDyT8kz", "proofs": [ "5M1o5p7PcoRtoDpJJupULYUM6VsA65YMkiBgxUB6LpjUGTqYe368pkv9eztXVbWY4UWexiRX2DPWUSTrLE8qksPe" ], "script": "base64:BgIrCAISCQoHAQEBAQEIARIAEgQKAggIEgMKAQgSAwoBCBIECgIICBIECgIICEYBD2dldFN0cmluZ09yRmFpbAEDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAKIIAQUDa2V5CQCsAgIJAKwCAgIPbWFuZGF0b3J5IHRoaXMuBQNrZXkCDyBpcyBub3QgZGVmaW5lZAADU0VQAgJfXwAIQlVGU0NBTEUJALYCAQCAgJC7utat8A0ABnNjYWxlOACAwtcvAQh0aHJvd0VycgEDbXNnCQACAQkAuQkCCQDMCAICCWlkby5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIYXNTdHJpbmcBA3ZhbAQHJG1hdGNoMAUDdmFsAwkAAQIFByRtYXRjaDACBlN0cmluZwQGdmFsU3RyBQckbWF0Y2gwBQZ2YWxTdHIJAAIBAhhmYWlsIHRvIGNhc3QgaW50byBTdHJpbmcBHWNvbnZlcnRQcmljZUFzc2V0SW50b0lkb0Fzc2V0BRBwcmljZUFzc2V0QW1vdW50DnByaWNlQXNzZXRNVUxUBXByaWNlCXByaWNlTVVMVAxpZG9Bc3NldE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bFByaWNlQXNzZXRDbGFpbWVkBQNuaWwFA1NFUAkAlAoCBQNuaWwFDHJlc3VsdFN0cmluZwECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleWfQ6JA=", "height": 2932668, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6wXwheUY3rpdrUDcVj4odsPa7cnjXsvPJCCmWXt3xo91 Next: GErWcMS4rUkmR8JXvMYfHgBSDNYMqgBPAKixYt9kNH1M Diff:
Old | New | Differences | |
---|---|---|---|
384 | 384 | let investorPriceAssetBalance = parseIntValue(investor[IdxInvClaimedPriceAssetAmount]) | |
385 | 385 | let investorIdoAssetBalance = parseIntValue(investor[IdxInvClaimedIdoAssetAmount]) | |
386 | 386 | let investorLastClaimedHeight = parseIntValue(investor[IdxInvLastClaimedHeight]) | |
387 | - | let priceAssetAmount = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0) | |
388 | - | let investorKeyRemainingAmount = parseIntValue(valueOrElse(getString(keyInvestorRemainingAmount(userAddress58)), "0")) | |
387 | + | let $t01793418146 = match getInteger(keyPriceAssetBalance(userAddress58)) { | |
388 | + | case t: Int => | |
389 | + | $Tuple2(t, [IntegerEntry(keyPriceAssetBalance(userAddress58), 0)]) | |
390 | + | case _ => | |
391 | + | $Tuple2(0, nil) | |
392 | + | } | |
393 | + | let priceAssetAmount = $t01793418146._1 | |
394 | + | let priceAssetActions = $t01793418146._2 | |
395 | + | let $t01815018413 = match getString(keyInvestorRemainingAmount(userAddress58)) { | |
396 | + | case t: String => | |
397 | + | $Tuple2(parseIntValue(t), [StringEntry(keyInvestorRemainingAmount(userAddress58), "0")]) | |
398 | + | case _ => | |
399 | + | $Tuple2(0, nil) | |
400 | + | } | |
401 | + | let investorKeyRemainingAmount = $t01815018413._1 | |
402 | + | let investorKeyRemainingActions = $t01815018413._2 | |
389 | 403 | let totalIdoAssetSendAmount = (((investorRemainingAmount + priceAssetAmount) + investorKeyRemainingAmount) * 100) | |
390 | 404 | let totalIdoAssetForInvestorData = ((investorRemainingAmount + investorKeyRemainingAmount) * 100) | |
391 | 405 | let newInvestor = makeString(["%d%d%d%d%d", toString(investorTotalAmount), "0", toString(investorPriceAssetBalance), toString((investorIdoAssetBalance + totalIdoAssetForInvestorData)), toString(height)], SEP) | |
406 | + | let investorDataActions = if ((totalIdoAssetForInvestorData != 0)) | |
407 | + | then [StringEntry(keyInvestor(userAddress58), newInvestor)] | |
408 | + | else nil | |
409 | + | let sendIdoAssetActions = if ((totalIdoAssetSendAmount != 0)) | |
410 | + | then [ScriptTransfer(addressFromStringValue(userAddress58), totalIdoAssetSendAmount, fromBase58String(idoAssetId58))] | |
411 | + | else nil | |
392 | 412 | let historyActions = ClaimOperationHistoryEntry(userAddress58, 0, totalIdoAssetSendAmount, txId) | |
393 | - | $Tuple4(investorRemainingAmount, priceAssetAmount, investorKeyRemainingAmount, ( | |
413 | + | $Tuple4(investorRemainingAmount, priceAssetAmount, investorKeyRemainingAmount, ((((sendIdoAssetActions :+ investorDataActions) :+ totalIdoAssetForInvestorData) :+ priceAssetActions) :+ historyActions)) | |
394 | 414 | } | |
395 | 415 | ||
396 | 416 | ||
490 | 510 | let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals | |
491 | 511 | let entries = if ((claimedAssetId58 == priceAssetId58)) | |
492 | 512 | then { | |
493 | - | let $ | |
494 | - | let periodMinAvailableToClaim = $ | |
495 | - | let periodTotalAvailableToClaim = $ | |
496 | - | let periodUserAvailableToClaim = $ | |
497 | - | let totalUserAvailableToClaim = $ | |
498 | - | let usdtPriceAssetAllowableRatio = $ | |
499 | - | let currentUsdtPriceAssetRatio = $ | |
500 | - | let endPeriodBlocksLeft = $ | |
501 | - | let updatedCurrentPeriod = $ | |
502 | - | let periodStart = $ | |
503 | - | let periodEnd = $ | |
513 | + | let $t02448324927 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement]) | |
514 | + | let periodMinAvailableToClaim = $t02448324927._1 | |
515 | + | let periodTotalAvailableToClaim = $t02448324927._2 | |
516 | + | let periodUserAvailableToClaim = $t02448324927._3 | |
517 | + | let totalUserAvailableToClaim = $t02448324927._4 | |
518 | + | let usdtPriceAssetAllowableRatio = $t02448324927._5 | |
519 | + | let currentUsdtPriceAssetRatio = $t02448324927._6 | |
520 | + | let endPeriodBlocksLeft = $t02448324927._7 | |
521 | + | let updatedCurrentPeriod = $t02448324927._8 | |
522 | + | let periodStart = $t02448324927._9 | |
523 | + | let periodEnd = $t02448324927._10 | |
504 | 524 | let checks = [if ((periodUserAvailableToClaim > 0)) | |
505 | 525 | then true | |
506 | 526 | else throwErr("unavailable to claim because user period allowance reached"), if ((periodTotalAvailableToClaim > 0)) | |
646 | 666 | let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0) | |
647 | 667 | let priceAssetBalanceIdoDecimals = (priceAssetBalance * 100) | |
648 | 668 | let availableIdoAmountToClaimWithPriceAssetBalance = (availableIdoAmountToClaim + priceAssetBalanceIdoDecimals) | |
649 | - | let $ | |
650 | - | let periodMinAvailableToClaim = $ | |
651 | - | let periodTotalAvailableToClaim = $ | |
652 | - | let periodUserAvailableToClaim = $ | |
653 | - | let totalUserAvailableToClaim = $ | |
654 | - | let usdtPriceAssetAllowableRatio = $ | |
655 | - | let currentUsdtPriceAssetRatio = $ | |
656 | - | let endPeriodBlocksLeft = $ | |
657 | - | let updatedCurrentPeriod = $ | |
658 | - | let periodStart = $ | |
659 | - | let periodEnd = $ | |
669 | + | let $t03637436786 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement]) | |
670 | + | let periodMinAvailableToClaim = $t03637436786._1 | |
671 | + | let periodTotalAvailableToClaim = $t03637436786._2 | |
672 | + | let periodUserAvailableToClaim = $t03637436786._3 | |
673 | + | let totalUserAvailableToClaim = $t03637436786._4 | |
674 | + | let usdtPriceAssetAllowableRatio = $t03637436786._5 | |
675 | + | let currentUsdtPriceAssetRatio = $t03637436786._6 | |
676 | + | let endPeriodBlocksLeft = $t03637436786._7 | |
677 | + | let updatedCurrentPeriod = $t03637436786._8 | |
678 | + | let periodStart = $t03637436786._9 | |
679 | + | let periodEnd = $t03637436786._10 | |
660 | 680 | let currentPeriodEndHeight = valueOrElse(getInteger(keyPeriodEndHeight(updatedCurrentPeriod)), 0) | |
661 | 681 | let userTotalPriceAssetClaimed = (parseIntValue(readInvestorArrayOrFail(userAddress58)[IdxInvClaimedPriceAssetAmount]) - priceAssetBalance) | |
662 | 682 | let resultString = if ((height > currentPeriodEndHeight)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined")) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let SEP = "__" | |
8 | 8 | ||
9 | 9 | let BUFSCALE = toBigInt(1000000000000000000) | |
10 | 10 | ||
11 | 11 | let scale8 = 100000000 | |
12 | 12 | ||
13 | 13 | func throwErr (msg) = throw(makeString(["ido.ride:", msg], " ")) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func asString (val) = match val { | |
17 | 17 | case valStr: String => | |
18 | 18 | valStr | |
19 | 19 | case _ => | |
20 | 20 | throw("fail to cast into String") | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func convertPriceAssetIntoIdoAsset (priceAssetAmount,priceAssetMULT,price,priceMULT,idoAssetMULT) = { | |
25 | 25 | let bPriceAssetMULT = toBigInt(priceAssetMULT) | |
26 | 26 | let bIdoAssetMULT = toBigInt(idoAssetMULT) | |
27 | 27 | let bPriceAssetBUF = fraction(toBigInt(priceAssetAmount), BUFSCALE, bPriceAssetMULT) | |
28 | 28 | let bAmountAssetBUF = fraction(bPriceAssetBUF, toBigInt(priceMULT), toBigInt(price)) | |
29 | 29 | toInt(fraction(bAmountAssetBUF, toBigInt(idoAssetMULT), BUFSCALE)) | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | let IdxCfgIdoStart = 1 | |
34 | 34 | ||
35 | 35 | let IdxCfgIdoDuration = 2 | |
36 | 36 | ||
37 | 37 | let IdxCfgClaimStart = 3 | |
38 | 38 | ||
39 | 39 | let IdxCfgClaimDuration = 4 | |
40 | 40 | ||
41 | 41 | let IdxCfgPrice = 5 | |
42 | 42 | ||
43 | 43 | let IdxCfgPriceMult = 6 | |
44 | 44 | ||
45 | 45 | let IdxCfgIdoAssetId = 7 | |
46 | 46 | ||
47 | 47 | let IdxCfgIdoAssetMult = 8 | |
48 | 48 | ||
49 | 49 | let IdxCfgPriceAssetId = 9 | |
50 | 50 | ||
51 | 51 | let IdxCfgPriceAssetMult = 10 | |
52 | 52 | ||
53 | 53 | let IdxCfgMinInvestAmount = 11 | |
54 | 54 | ||
55 | 55 | 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) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | 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)) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | let IdxInvTotalAmount = 1 | |
62 | 62 | ||
63 | 63 | let IdxInvRemainingAmount = 2 | |
64 | 64 | ||
65 | 65 | let IdxInvClaimedPriceAssetAmount = 3 | |
66 | 66 | ||
67 | 67 | let IdxInvClaimedIdoAssetAmount = 4 | |
68 | 68 | ||
69 | 69 | let IdxInvLastClaimedHeight = 5 | |
70 | 70 | ||
71 | 71 | func formatInvestorS (totalAmount,remainingAmount,claimedPriceAssetAmount,claimedIdoAssetAmount,lastClaimedHeight) = makeString(["%d%d%d%d%d", totalAmount, remainingAmount, claimedPriceAssetAmount, claimedIdoAssetAmount, lastClaimedHeight], SEP) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func formatInvestor (totalAmount,remainingAmount,claimedPriceAssetAmount,claimedIdoAssetAmount,lastClaimedHeight) = formatInvestorS(toString(totalAmount), toString(remainingAmount), toString(claimedPriceAssetAmount), toString(claimedIdoAssetAmount), toString(lastClaimedHeight)) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func formatHistoryRecord (priceAssetAmount,idoAssetAmount) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(priceAssetAmount), toString(idoAssetAmount)], SEP) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyConfig () = "%s__config" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyInvestor (userAddress) = ("%s__" + userAddress) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keyTotals () = "%s__totals" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keyOperationHistoryRecord (type,userAddress,txId58) = makeString(["%s%s%s%s__history", type, userAddress, txId58], SEP) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyUSDNClaimDisabled () = "%s__usdnClaimDisabled" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyUSDNClaimEndHeight () = "%s__usdnClaimEndHeight" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func keyPeriodLength () = makeString(["%s", "periodLength"], SEP) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keyCurrentPeriod () = makeString(["%s", "currentPeriod"], SEP) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyPeriodStartHeight (periodNum) = makeString(["%s%s", "periodStartHeight", toString(periodNum)], SEP) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyPeriodEndHeight (periodNum) = makeString(["%s%s", "periodEndHeight", toString(periodNum)], SEP) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyUsdtPriceAssetAllowableRatio () = makeString(["%s", "usdtPriceAssetAllowableRatio"], SEP) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keyTotalPeriodAllowance (assetId) = makeString(["%s%s", "totalPeriodAllowance", assetId], SEP) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func keyUserPeriodAllowance (assetId) = makeString(["%s%s", "userPeriodAllowance", assetId], SEP) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func keyPeriodTotalAvailableToClaim (assetId,periodNum) = makeString(["%s%s%s", "periodTotalAvailableToClaim", assetId, toString(periodNum)], SEP) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func keyPeriodUserAvailableToClaim (assetId,periodNum,userAddress) = makeString(["%s%s%s%s", "periodUserAvailableToClaim", assetId, toString(periodNum), userAddress], SEP) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func keyUsdtPriceAssetStablePool () = makeString(["%s", "usdtPriceAssetStablePool"], SEP) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func keyUsdtAssetId () = makeString(["%s", "usdtAssetId"], SEP) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func keyPriceAssetBalance (address) = makeString(["%s%s", "priceAssetBalance", address], SEP) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func keyInvestorRemainingAmount (address) = makeString(["%s%s", "investorRemainingAmount", address], SEP) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func keyTotalRemainingAmount () = makeString(["%s", "totalRemainingAmount"], SEP) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func keyManagerVaultAddress () = "%s__managerVaultAddress" | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func keyClaimClosingHeight () = "%s__claimClosingHeight" | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | let claimClosingHeight = valueOrElse(getInteger(this, keyClaimClosingHeight()), 0) | |
150 | 150 | ||
151 | 151 | func readConfigArray () = split(getStringOrFail(keyConfig()), SEP) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func readTotalsArrayOrDefaultByCustomKey (customKey) = split(valueOrElse(getString(customKey), formatInvestorS("0", "0", "0", "0", "0")), SEP) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func readTotalsArrayOrDefault () = readTotalsArrayOrDefaultByCustomKey(keyTotals()) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func readInvestorArrayOrDefault (userAddress) = readTotalsArrayOrDefaultByCustomKey(keyInvestor(userAddress)) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func readInvestorArrayOrFail (userAddress) = split(getStringOrFail(keyInvestor(userAddress)), SEP) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func getManagerVaultAddressOrThis () = match getString(keyManagerVaultAddress()) { | |
167 | 167 | case s: String => | |
168 | 168 | addressFromStringValue(s) | |
169 | 169 | case _ => | |
170 | 170 | this | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | let IdxDiffTotalIncrement = 0 | |
175 | 175 | ||
176 | 176 | let IdxDiffRemainingPriceAmountIncrement = 1 | |
177 | 177 | ||
178 | 178 | let IdxDiffClaimedPriceAmountIncrement = 2 | |
179 | 179 | ||
180 | 180 | let IdxDiffClaimedIdoAssetAmountIncrement = 3 | |
181 | 181 | ||
182 | 182 | func TotalsEntry (key,origArray,incrementDiff,newLastClaimedHeight,priceAssetBalance) = { | |
183 | 183 | let totalAmount = parseIntValue(origArray[IdxInvTotalAmount]) | |
184 | 184 | let remainingAmount = parseIntValue(origArray[IdxInvRemainingAmount]) | |
185 | 185 | let claimedPriceAssetAmount = parseIntValue(origArray[IdxInvClaimedPriceAssetAmount]) | |
186 | 186 | let claimedIdoAssetAmount = parseIntValue(origArray[IdxInvClaimedIdoAssetAmount]) | |
187 | 187 | let lastClaimedHeight = parseIntValue(origArray[IdxInvLastClaimedHeight]) | |
188 | 188 | let newTotalAmount = (totalAmount + incrementDiff[IdxDiffTotalIncrement]) | |
189 | 189 | let newRemainingAmount = (remainingAmount + incrementDiff[IdxDiffRemainingPriceAmountIncrement]) | |
190 | 190 | let cfgArray = readConfigArray() | |
191 | 191 | let priceAssetId58 = cfgArray[IdxCfgPriceAssetId] | |
192 | 192 | let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals | |
193 | 193 | let priceAssetBalancePriceAssetDecimals = fraction(priceAssetBalance, scale8, pow(10, 0, priceAssetDecimals, 0, 0, DOWN)) | |
194 | 194 | let newClaimedPriceAssetAmount = ((claimedPriceAssetAmount + incrementDiff[IdxDiffClaimedPriceAmountIncrement]) - priceAssetBalance) | |
195 | 195 | let newClaimedIdoAssetAmount = ((claimedIdoAssetAmount + incrementDiff[IdxDiffClaimedIdoAssetAmountIncrement]) + priceAssetBalancePriceAssetDecimals) | |
196 | 196 | let entries = if ((0 > newRemainingAmount)) | |
197 | 197 | then { | |
198 | 198 | let diff = ((newTotalAmount - newClaimedPriceAssetAmount) - newClaimedIdoAssetAmount) | |
199 | 199 | let newLogicRemainingAmount = if ((0 > diff)) | |
200 | 200 | then 0 | |
201 | 201 | else diff | |
202 | 202 | StringEntry(key, formatInvestor(newTotalAmount, newLogicRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight)) | |
203 | 203 | } | |
204 | 204 | else StringEntry(key, formatInvestor(newTotalAmount, newRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight)) | |
205 | 205 | entries | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func InvestOperationHistoryEntry (userAddress,priceAssetAmount,idoAssetAmount,txId) = StringEntry(keyOperationHistoryRecord("invest", userAddress, toBase58String(txId)), formatHistoryRecord(priceAssetAmount, idoAssetAmount)) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func ClaimOperationHistoryEntry (userAddress,priceAssetAmount,idoAssetAmount,txId) = StringEntry(keyOperationHistoryRecord("claim", userAddress, toBase58String(txId)), formatHistoryRecord(priceAssetAmount, idoAssetAmount)) | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func internalClaim (claimedAssetId58,userAddress,txId) = { | |
216 | 216 | let cfgArray = readConfigArray() | |
217 | 217 | let claimStart = parseIntValue(cfgArray[IdxCfgClaimStart]) | |
218 | 218 | let claimDuration = parseIntValue(cfgArray[IdxCfgClaimDuration]) | |
219 | 219 | let claimEnd = (claimStart + claimDuration) | |
220 | 220 | let price = parseIntValue(cfgArray[IdxCfgPrice]) | |
221 | 221 | let priceMult = parseIntValue(cfgArray[IdxCfgPriceMult]) | |
222 | 222 | let idoAssetId58 = cfgArray[IdxCfgIdoAssetId] | |
223 | 223 | let idoAssetId = fromBase58String(idoAssetId58) | |
224 | 224 | let idoAssetMult = parseIntValue(cfgArray[IdxCfgIdoAssetMult]) | |
225 | 225 | let priceAssetId58 = cfgArray[IdxCfgPriceAssetId] | |
226 | 226 | let priceAssetId = fromBase58String(priceAssetId58) | |
227 | 227 | let priceAssetMult = parseIntValue(cfgArray[IdxCfgPriceAssetMult]) | |
228 | 228 | let userAddress58 = toString(userAddress) | |
229 | 229 | let origInvestArray = readInvestorArrayOrFail(userAddress58) | |
230 | 230 | let investTotalAmount = parseIntValue(origInvestArray[IdxInvTotalAmount]) | |
231 | 231 | let investLastClaimedHeightTMP = parseIntValue(origInvestArray[IdxInvLastClaimedHeight]) | |
232 | 232 | let investLastClaimedHeight = if ((claimStart >= investLastClaimedHeightTMP)) | |
233 | 233 | then claimStart | |
234 | 234 | else investLastClaimedHeightTMP | |
235 | 235 | let newClaimPeriodHeight = if ((height > claimEnd)) | |
236 | 236 | then claimEnd | |
237 | 237 | else if ((claimStart > height)) | |
238 | 238 | then claimStart | |
239 | 239 | else height | |
240 | 240 | let claimingBlocks = (newClaimPeriodHeight - investLastClaimedHeight) | |
241 | 241 | let claimingPriceAssetAmount = fraction(investTotalAmount, claimingBlocks, claimDuration) | |
242 | 242 | let claimingIdoAssetAmount = convertPriceAssetIntoIdoAsset(claimingPriceAssetAmount, priceAssetMult, price, priceMult, idoAssetMult) | |
243 | 243 | let isUSDN = (claimedAssetId58 == priceAssetId58) | |
244 | 244 | let isUSDNClaimDisabled = valueOrElse(getBoolean(keyUSDNClaimDisabled()), false) | |
245 | 245 | let checks = [if (!(if (isUSDN) | |
246 | 246 | then isUSDNClaimDisabled | |
247 | 247 | else false)) | |
248 | 248 | then true | |
249 | 249 | else throw("USDN claim is disabled")] | |
250 | 250 | if ((checks == checks)) | |
251 | 251 | then if ((claimedAssetId58 == priceAssetId58)) | |
252 | 252 | then $Tuple6([0, -(claimingPriceAssetAmount), claimingPriceAssetAmount, 0], claimingPriceAssetAmount, priceAssetId, origInvestArray, newClaimPeriodHeight, [claimingPriceAssetAmount, claimingIdoAssetAmount]) | |
253 | 253 | else if ((claimedAssetId58 == idoAssetId58)) | |
254 | 254 | then $Tuple6([0, -(claimingPriceAssetAmount), 0, claimingIdoAssetAmount], claimingIdoAssetAmount, idoAssetId, origInvestArray, newClaimPeriodHeight, [claimingPriceAssetAmount, claimingIdoAssetAmount]) | |
255 | 255 | else throw(("unsupported assetId: " + claimedAssetId58)) | |
256 | 256 | else throw("Strict value is not equal to itself.") | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func internalClaimV2 (priceAssetId58,userAddress58,outAmount,totalUserAvailableToClaim) = { | |
261 | 261 | let totalPeriodPriceAssetAllowance = value(getInteger(keyTotalPeriodAllowance(priceAssetId58))) | |
262 | 262 | let userPeriodPriceAssetAllowance = value(getInteger(keyUserPeriodAllowance(priceAssetId58))) | |
263 | 263 | let periodLength = value(getInteger(keyPeriodLength())) | |
264 | 264 | let currentPeriod = valueOrElse(getInteger(keyCurrentPeriod()), 0) | |
265 | 265 | let zeroPeriodEndHeighIsDefined = isDefined(getInteger(keyPeriodEndHeight(0))) | |
266 | 266 | let $t01327415144 = if ((currentPeriod > 0)) | |
267 | 267 | then { | |
268 | 268 | let lastPeriodStartHeight = value(getInteger(keyPeriodStartHeight(currentPeriod))) | |
269 | 269 | let lastPeriodEndHeight = value(getInteger(keyPeriodEndHeight(currentPeriod))) | |
270 | 270 | let $t01353414239 = if ((height > lastPeriodEndHeight)) | |
271 | 271 | then { | |
272 | 272 | let updatedCurrentPeriod = (currentPeriod + 1) | |
273 | 273 | let periodStart = if ((height > (lastPeriodEndHeight + periodLength))) | |
274 | 274 | then { | |
275 | 275 | let blocksToLastPeriodStart = ((height - lastPeriodEndHeight) % periodLength) | |
276 | 276 | if ((blocksToLastPeriodStart == 0)) | |
277 | 277 | then ((height - periodLength) + 1) | |
278 | 278 | else (height - blocksToLastPeriodStart) | |
279 | 279 | } | |
280 | 280 | else (lastPeriodEndHeight + 1) | |
281 | 281 | let periodEnd = ((periodStart + periodLength) - 1) | |
282 | 282 | $Tuple3(updatedCurrentPeriod, periodStart, periodEnd) | |
283 | 283 | } | |
284 | 284 | else $Tuple3(currentPeriod, lastPeriodStartHeight, lastPeriodEndHeight) | |
285 | 285 | let updatedCurrentPeriod = $t01353414239._1 | |
286 | 286 | let periodStart = $t01353414239._2 | |
287 | 287 | let periodEnd = $t01353414239._3 | |
288 | 288 | $Tuple3(updatedCurrentPeriod, periodStart, periodEnd) | |
289 | 289 | } | |
290 | 290 | else if (zeroPeriodEndHeighIsDefined) | |
291 | 291 | then { | |
292 | 292 | let zeroPeriodStartHeight = value(getInteger(keyPeriodStartHeight(0))) | |
293 | 293 | let zeroPeriodEndHeight = value(getInteger(keyPeriodEndHeight(0))) | |
294 | 294 | let $t01449414876 = if ((height > zeroPeriodEndHeight)) | |
295 | 295 | then { | |
296 | 296 | let updatedCurrentPeriod = (currentPeriod + 1) | |
297 | 297 | let periodStart = (zeroPeriodEndHeight + 1) | |
298 | 298 | let periodEnd = ((periodStart + periodLength) - 1) | |
299 | 299 | $Tuple3(updatedCurrentPeriod, periodStart, periodEnd) | |
300 | 300 | } | |
301 | 301 | else $Tuple3(currentPeriod, zeroPeriodStartHeight, zeroPeriodEndHeight) | |
302 | 302 | let updatedCurrentPeriod = $t01449414876._1 | |
303 | 303 | let periodStart = $t01449414876._2 | |
304 | 304 | let periodEnd = $t01449414876._3 | |
305 | 305 | $Tuple3(updatedCurrentPeriod, periodStart, periodEnd) | |
306 | 306 | } | |
307 | 307 | else $Tuple3(currentPeriod, valueOrElse(getInteger(keyPeriodStartHeight(currentPeriod)), height), valueOrElse(getInteger(keyPeriodEndHeight(currentPeriod)), ((height + periodLength) - 1))) | |
308 | 308 | let updatedCurrentPeriod = $t01327415144._1 | |
309 | 309 | let periodStart = $t01327415144._2 | |
310 | 310 | let periodEnd = $t01327415144._3 | |
311 | 311 | let periodTotalAvailableToClaim = valueOrElse(getInteger(keyPeriodTotalAvailableToClaim(priceAssetId58, updatedCurrentPeriod)), totalPeriodPriceAssetAllowance) | |
312 | 312 | let periodUserAvailableToClaim = valueOrElse(getInteger(keyPeriodUserAvailableToClaim(priceAssetId58, updatedCurrentPeriod, userAddress58)), userPeriodPriceAssetAllowance) | |
313 | 313 | let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0) | |
314 | 314 | let periodMinAvailableToClaim = min([(outAmount + priceAssetBalance), periodTotalAvailableToClaim, periodUserAvailableToClaim]) | |
315 | 315 | let usdtPriceAssetAllowableRatio = value(getInteger(keyUsdtPriceAssetAllowableRatio())) | |
316 | 316 | let putOneTknV2PriceAssetAmount = scale8 | |
317 | 317 | let $t01589916152 = { | |
318 | 318 | let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "putOneTknV2WithoutTakeFeeREADONLY", [putOneTknV2PriceAssetAmount, priceAssetId58], nil) | |
319 | 319 | if ($isInstanceOf(@, "(Int, Int, Int)")) | |
320 | 320 | then @ | |
321 | 321 | else throw(($getType(@) + " couldn't be cast to (Int, Int, Int)")) | |
322 | 322 | } | |
323 | 323 | if (($t01589916152 == $t01589916152)) | |
324 | 324 | then { | |
325 | 325 | let bonus = $t01589916152._3 | |
326 | 326 | let feeAmount = $t01589916152._2 | |
327 | 327 | let lpAmount = $t01589916152._1 | |
328 | 328 | let usdtAssetId = value(getString(keyUsdtAssetId())) | |
329 | 329 | let $t01621416432 = { | |
330 | 330 | let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "getOneTknV2READONLY", [usdtAssetId, lpAmount], nil) | |
331 | 331 | if ($isInstanceOf(@, "(Int, Int)")) | |
332 | 332 | then @ | |
333 | 333 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")) | |
334 | 334 | } | |
335 | 335 | if (($t01621416432 == $t01621416432)) | |
336 | 336 | then { | |
337 | 337 | let getOneTknV2FeeAmount = $t01621416432._2 | |
338 | 338 | let usdtAmount = $t01621416432._1 | |
339 | 339 | let currentUsdtPriceAssetRatio = fraction(putOneTknV2PriceAssetAmount, scale8, usdtAmount) | |
340 | 340 | let endPeriodBlocksLeft = (periodEnd - height) | |
341 | 341 | $Tuple10(periodMinAvailableToClaim, periodTotalAvailableToClaim, periodUserAvailableToClaim, totalUserAvailableToClaim, usdtPriceAssetAllowableRatio, currentUsdtPriceAssetRatio, endPeriodBlocksLeft, updatedCurrentPeriod, periodStart, periodEnd) | |
342 | 342 | } | |
343 | 343 | else throw("Strict value is not equal to itself.") | |
344 | 344 | } | |
345 | 345 | else throw("Strict value is not equal to itself.") | |
346 | 346 | } | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | func managerPublicKeyOrUnit () = { | |
350 | 350 | let managerVaultAddress = getManagerVaultAddressOrThis() | |
351 | 351 | match getString(managerVaultAddress, keyManagerPublicKey()) { | |
352 | 352 | case s: String => | |
353 | 353 | fromBase58String(s) | |
354 | 354 | case _: Unit => | |
355 | 355 | unit | |
356 | 356 | case _ => | |
357 | 357 | throw("Match error") | |
358 | 358 | } | |
359 | 359 | } | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | func mustManager (i) = { | |
363 | 363 | let pd = throw("Permission denied") | |
364 | 364 | match managerPublicKeyOrUnit() { | |
365 | 365 | case pk: ByteVector => | |
366 | 366 | if ((i.callerPublicKey == pk)) | |
367 | 367 | then true | |
368 | 368 | else pd | |
369 | 369 | case _: Unit => | |
370 | 370 | if ((i.caller == this)) | |
371 | 371 | then true | |
372 | 372 | else pd | |
373 | 373 | case _ => | |
374 | 374 | throw("Match error") | |
375 | 375 | } | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | func getClaimForState (userAddress58,txId) = { | |
380 | 380 | let idoAssetId58 = readConfigArray()[IdxCfgIdoAssetId] | |
381 | 381 | let investor = split(value(getString(keyInvestor(userAddress58))), SEP) | |
382 | 382 | let investorTotalAmount = parseIntValue(investor[IdxInvTotalAmount]) | |
383 | 383 | let investorRemainingAmount = parseIntValue(investor[IdxInvRemainingAmount]) | |
384 | 384 | let investorPriceAssetBalance = parseIntValue(investor[IdxInvClaimedPriceAssetAmount]) | |
385 | 385 | let investorIdoAssetBalance = parseIntValue(investor[IdxInvClaimedIdoAssetAmount]) | |
386 | 386 | let investorLastClaimedHeight = parseIntValue(investor[IdxInvLastClaimedHeight]) | |
387 | - | let priceAssetAmount = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0) | |
388 | - | let investorKeyRemainingAmount = parseIntValue(valueOrElse(getString(keyInvestorRemainingAmount(userAddress58)), "0")) | |
387 | + | let $t01793418146 = match getInteger(keyPriceAssetBalance(userAddress58)) { | |
388 | + | case t: Int => | |
389 | + | $Tuple2(t, [IntegerEntry(keyPriceAssetBalance(userAddress58), 0)]) | |
390 | + | case _ => | |
391 | + | $Tuple2(0, nil) | |
392 | + | } | |
393 | + | let priceAssetAmount = $t01793418146._1 | |
394 | + | let priceAssetActions = $t01793418146._2 | |
395 | + | let $t01815018413 = match getString(keyInvestorRemainingAmount(userAddress58)) { | |
396 | + | case t: String => | |
397 | + | $Tuple2(parseIntValue(t), [StringEntry(keyInvestorRemainingAmount(userAddress58), "0")]) | |
398 | + | case _ => | |
399 | + | $Tuple2(0, nil) | |
400 | + | } | |
401 | + | let investorKeyRemainingAmount = $t01815018413._1 | |
402 | + | let investorKeyRemainingActions = $t01815018413._2 | |
389 | 403 | let totalIdoAssetSendAmount = (((investorRemainingAmount + priceAssetAmount) + investorKeyRemainingAmount) * 100) | |
390 | 404 | let totalIdoAssetForInvestorData = ((investorRemainingAmount + investorKeyRemainingAmount) * 100) | |
391 | 405 | let newInvestor = makeString(["%d%d%d%d%d", toString(investorTotalAmount), "0", toString(investorPriceAssetBalance), toString((investorIdoAssetBalance + totalIdoAssetForInvestorData)), toString(height)], SEP) | |
406 | + | let investorDataActions = if ((totalIdoAssetForInvestorData != 0)) | |
407 | + | then [StringEntry(keyInvestor(userAddress58), newInvestor)] | |
408 | + | else nil | |
409 | + | let sendIdoAssetActions = if ((totalIdoAssetSendAmount != 0)) | |
410 | + | then [ScriptTransfer(addressFromStringValue(userAddress58), totalIdoAssetSendAmount, fromBase58String(idoAssetId58))] | |
411 | + | else nil | |
392 | 412 | let historyActions = ClaimOperationHistoryEntry(userAddress58, 0, totalIdoAssetSendAmount, txId) | |
393 | - | $Tuple4(investorRemainingAmount, priceAssetAmount, investorKeyRemainingAmount, ( | |
413 | + | $Tuple4(investorRemainingAmount, priceAssetAmount, investorKeyRemainingAmount, ((((sendIdoAssetActions :+ investorDataActions) :+ totalIdoAssetForInvestorData) :+ priceAssetActions) :+ historyActions)) | |
394 | 414 | } | |
395 | 415 | ||
396 | 416 | ||
397 | 417 | @Callable(i) | |
398 | 418 | func constructor (idoStart,idoDuration,claimStart,claimDuration,price,priceAssetId58,minInvestAmount) = { | |
399 | 419 | let priceMult = ((100 * 1000) * 1000) | |
400 | 420 | let idoEnd = (idoStart + idoDuration) | |
401 | 421 | if (isDefined(getString(keyConfig()))) | |
402 | 422 | then throw("already initialized") | |
403 | 423 | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(i.caller))) | |
404 | 424 | then throw("not authorized") | |
405 | 425 | else if ((size(i.payments) != 1)) | |
406 | 426 | then throw("exactly 1 payment must be attached") | |
407 | 427 | else if ((idoEnd >= claimStart)) | |
408 | 428 | then throw("claimStart must be greater than idoEnd") | |
409 | 429 | else { | |
410 | 430 | let pmt = value(i.payments[0]) | |
411 | 431 | let idoAssetId = value(pmt.assetId) | |
412 | 432 | let idoAssetInfo = valueOrErrorMessage(assetInfo(idoAssetId), "fail to load ido asset info") | |
413 | 433 | let idoAssetId58 = toBase58String(idoAssetId) | |
414 | 434 | let idoAssetMult = pow(10, 0, idoAssetInfo.decimals, 0, 0, DOWN) | |
415 | 435 | let priceAssetId = fromBase58String(priceAssetId58) | |
416 | 436 | let priceAssetInfo = valueOrErrorMessage(assetInfo(priceAssetId), "fail to load price asset info") | |
417 | 437 | let priceAssetMult = pow(10, 0, priceAssetInfo.decimals, 0, 0, DOWN) | |
418 | 438 | let origTotalsArray = readTotalsArrayOrDefault() | |
419 | 439 | let totalsDiff = [0, 0, 0, 0] | |
420 | 440 | [StringEntry(keyConfig(), fromatConfig(idoStart, idoDuration, claimStart, claimDuration, price, priceMult, idoAssetId58, idoAssetMult, priceAssetId58, priceAssetMult, minInvestAmount, pmt.amount)), TotalsEntry(keyTotals(), origTotalsArray, totalsDiff, claimStart, 0)] | |
421 | 441 | } | |
422 | 442 | } | |
423 | 443 | ||
424 | 444 | ||
425 | 445 | ||
426 | 446 | @Callable(i) | |
427 | 447 | func invest () = { | |
428 | 448 | let cfgArray = readConfigArray() | |
429 | 449 | let idoStart = parseIntValue(cfgArray[IdxCfgIdoStart]) | |
430 | 450 | let idoDuration = parseIntValue(cfgArray[IdxCfgIdoDuration]) | |
431 | 451 | let idoEnd = (idoStart + idoDuration) | |
432 | 452 | let claimStart = parseIntValue(cfgArray[IdxCfgClaimStart]) | |
433 | 453 | let claimDuration = parseIntValue(cfgArray[IdxCfgClaimDuration]) | |
434 | 454 | let price = parseIntValue(cfgArray[IdxCfgPrice]) | |
435 | 455 | let priceMult = parseIntValue(cfgArray[IdxCfgPriceMult]) | |
436 | 456 | let idoAssetId58 = cfgArray[IdxCfgIdoAssetId] | |
437 | 457 | let idoAssetId = fromBase58String(idoAssetId58) | |
438 | 458 | let idoAssetMult = parseIntValue(cfgArray[IdxCfgIdoAssetMult]) | |
439 | 459 | let priceAssetId58 = cfgArray[IdxCfgPriceAssetId] | |
440 | 460 | let priceAssetId = fromBase58String(priceAssetId58) | |
441 | 461 | let priceAssetMult = parseIntValue(cfgArray[IdxCfgPriceAssetMult]) | |
442 | 462 | let minIvestAmount = parseIntValue(cfgArray[IdxCfgMinInvestAmount]) | |
443 | 463 | let userAddress = toString(i.caller) | |
444 | 464 | if ((idoStart > height)) | |
445 | 465 | then throw("ido has not been started yet") | |
446 | 466 | else if ((height > idoEnd)) | |
447 | 467 | then throw("ido has been already ended") | |
448 | 468 | else if ((size(i.payments) != 1)) | |
449 | 469 | then throw("exactly 1 payment is expected") | |
450 | 470 | else { | |
451 | 471 | let pmt = value(i.payments[0]) | |
452 | 472 | let pmtAssetId = value(pmt.assetId) | |
453 | 473 | let pmtAmount = pmt.amount | |
454 | 474 | if ((pmtAssetId != priceAssetId)) | |
455 | 475 | then throw((("invalid payment asset id: " + toBase58String(pmtAssetId)) + " is expected")) | |
456 | 476 | else { | |
457 | 477 | let origInvestorArray = readInvestorArrayOrDefault(userAddress) | |
458 | 478 | let origTotalsArray = readTotalsArrayOrDefault() | |
459 | 479 | let newPriceTotalAmount = (parseIntValue(origTotalsArray[IdxInvTotalAmount]) + pmtAmount) | |
460 | 480 | let requiredIdoAssetAmount = (newPriceTotalAmount * 100) | |
461 | 481 | if ((requiredIdoAssetAmount > assetBalance(this, idoAssetId))) | |
462 | 482 | then throw("IDO asset has been - sold consider to use smaller payment") | |
463 | 483 | else { | |
464 | 484 | let totalsDiff = [pmtAmount, pmtAmount, 0, 0] | |
465 | 485 | [TotalsEntry(keyInvestor(userAddress), origInvestorArray, totalsDiff, claimStart, 0), TotalsEntry(keyTotals(), origTotalsArray, totalsDiff, claimStart, 0), InvestOperationHistoryEntry(userAddress, pmtAmount, 0, i.transactionId)] | |
466 | 486 | } | |
467 | 487 | } | |
468 | 488 | } | |
469 | 489 | } | |
470 | 490 | ||
471 | 491 | ||
472 | 492 | ||
473 | 493 | @Callable(i) | |
474 | 494 | func claim (claimedAssetId58,userAddress58) = { | |
475 | 495 | let callerAddress58 = toString(i.caller) | |
476 | 496 | if ((userAddress58 != callerAddress58)) | |
477 | 497 | then throw("not authorized") | |
478 | 498 | else { | |
479 | 499 | let cfgArray = readConfigArray() | |
480 | 500 | let priceAssetId58 = cfgArray[IdxCfgPriceAssetId] | |
481 | 501 | let claimResultTuple = internalClaim(claimedAssetId58, i.caller, i.transactionId) | |
482 | 502 | let totalsDiff = claimResultTuple._1 | |
483 | 503 | let outAmount = claimResultTuple._2 | |
484 | 504 | let outAssetId = claimResultTuple._3 | |
485 | 505 | let origInvestArray = claimResultTuple._4 | |
486 | 506 | let newClaimPeriodHeight = claimResultTuple._5 | |
487 | 507 | let claimedPriceAmountFromDiff = totalsDiff[IdxDiffClaimedPriceAmountIncrement] | |
488 | 508 | let claimedIdoAssetAmountFromDiff = totalsDiff[IdxDiffClaimedIdoAssetAmountIncrement] | |
489 | 509 | let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0) | |
490 | 510 | let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals | |
491 | 511 | let entries = if ((claimedAssetId58 == priceAssetId58)) | |
492 | 512 | then { | |
493 | - | let $ | |
494 | - | let periodMinAvailableToClaim = $ | |
495 | - | let periodTotalAvailableToClaim = $ | |
496 | - | let periodUserAvailableToClaim = $ | |
497 | - | let totalUserAvailableToClaim = $ | |
498 | - | let usdtPriceAssetAllowableRatio = $ | |
499 | - | let currentUsdtPriceAssetRatio = $ | |
500 | - | let endPeriodBlocksLeft = $ | |
501 | - | let updatedCurrentPeriod = $ | |
502 | - | let periodStart = $ | |
503 | - | let periodEnd = $ | |
513 | + | let $t02448324927 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement]) | |
514 | + | let periodMinAvailableToClaim = $t02448324927._1 | |
515 | + | let periodTotalAvailableToClaim = $t02448324927._2 | |
516 | + | let periodUserAvailableToClaim = $t02448324927._3 | |
517 | + | let totalUserAvailableToClaim = $t02448324927._4 | |
518 | + | let usdtPriceAssetAllowableRatio = $t02448324927._5 | |
519 | + | let currentUsdtPriceAssetRatio = $t02448324927._6 | |
520 | + | let endPeriodBlocksLeft = $t02448324927._7 | |
521 | + | let updatedCurrentPeriod = $t02448324927._8 | |
522 | + | let periodStart = $t02448324927._9 | |
523 | + | let periodEnd = $t02448324927._10 | |
504 | 524 | let checks = [if ((periodUserAvailableToClaim > 0)) | |
505 | 525 | then true | |
506 | 526 | else throwErr("unavailable to claim because user period allowance reached"), if ((periodTotalAvailableToClaim > 0)) | |
507 | 527 | then true | |
508 | 528 | else throwErr("unavailable to claim because total period allowance reached"), if ((periodMinAvailableToClaim > 0)) | |
509 | 529 | then true | |
510 | 530 | else throwErr("nothing to claim"), if ((usdtPriceAssetAllowableRatio > currentUsdtPriceAssetRatio)) | |
511 | 531 | then true | |
512 | 532 | else throwErr("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio"), if (if (if ((claimedAssetId58 != priceAssetId58)) | |
513 | 533 | then true | |
514 | 534 | else (claimClosingHeight == 0)) | |
515 | 535 | then true | |
516 | 536 | else (claimClosingHeight > height)) | |
517 | 537 | then true | |
518 | 538 | else throwErr("Claim is disabled")] | |
519 | 539 | if ((checks == checks)) | |
520 | 540 | then { | |
521 | 541 | let updatedPeriodTotalAvailableToClaim = (periodTotalAvailableToClaim - periodMinAvailableToClaim) | |
522 | 542 | let updatedPeriodUserAvailableToClaim = (periodUserAvailableToClaim - periodMinAvailableToClaim) | |
523 | 543 | let entries = if ((priceAssetBalance > periodMinAvailableToClaim)) | |
524 | 544 | then [ScriptTransfer(i.caller, periodMinAvailableToClaim, outAssetId), IntegerEntry(keyPriceAssetBalance(userAddress58), (priceAssetBalance - periodMinAvailableToClaim))] | |
525 | 545 | else { | |
526 | 546 | let evaluateResult = split(asString(invoke(this, "claimREADONLY", [priceAssetId58, userAddress58], nil)), SEP) | |
527 | 547 | if ((evaluateResult == evaluateResult)) | |
528 | 548 | then { | |
529 | 549 | let availablePriceAmountToClaim = parseIntValue(evaluateResult[3]) | |
530 | 550 | let lastClaimEntries = if ((availablePriceAmountToClaim == periodMinAvailableToClaim)) | |
531 | 551 | then { | |
532 | 552 | let investorTotalAmount = parseIntValue(origInvestArray[IdxInvTotalAmount]) | |
533 | 553 | let investorRemainingAmount = parseIntValue(origInvestArray[IdxInvRemainingAmount]) | |
534 | 554 | let investorPriceAssetBalance = parseIntValue(origInvestArray[IdxInvClaimedPriceAssetAmount]) | |
535 | 555 | let investorIdoAssetBalance = parseIntValue(origInvestArray[IdxInvClaimedIdoAssetAmount]) | |
536 | 556 | let investorLastClaimedHeight = parseIntValue(origInvestArray[IdxInvLastClaimedHeight]) | |
537 | 557 | let newInvestArray = [toString(investorTotalAmount), "0", toString(investorPriceAssetBalance), toString(investorIdoAssetBalance), toString(investorLastClaimedHeight)] | |
538 | 558 | let totals = readTotalsArrayOrDefault() | |
539 | 559 | let totalsTotalAmount = parseIntValue(totals[IdxInvTotalAmount]) | |
540 | 560 | let totalsRemainingAmount = parseIntValue(totals[IdxInvRemainingAmount]) | |
541 | 561 | let totalsClaimedPriceAssetAmount = parseIntValue(totals[IdxInvClaimedPriceAssetAmount]) | |
542 | 562 | let totalsClaimedIdoAssetAmount = parseIntValue(totals[IdxInvClaimedIdoAssetAmount]) | |
543 | 563 | let totalsLastClaimedHeight = parseIntValue(totals[IdxInvLastClaimedHeight]) | |
544 | 564 | let newTotalsRemainingAmount = (totalsRemainingAmount - investorRemainingAmount) | |
545 | 565 | let newTotalArray = [toString(totalsTotalAmount), toString(newTotalsRemainingAmount), toString(totalsClaimedPriceAssetAmount), toString(totalsClaimedIdoAssetAmount), toString(totalsLastClaimedHeight)] | |
546 | 566 | let newTotalRemainingAmount = (valueOrElse(getInteger(keyTotalRemainingAmount()), 0) + investorRemainingAmount) | |
547 | 567 | [StringEntry(keyInvestorRemainingAmount(userAddress58), toString(investorRemainingAmount)), StringEntry(keyTotalRemainingAmount(), toString(newTotalRemainingAmount)), TotalsEntry(keyInvestor(userAddress58), newInvestArray, totalsDiff, newClaimPeriodHeight, 0), TotalsEntry(keyTotals(), newTotalArray, totalsDiff, newClaimPeriodHeight, 0)] | |
548 | 568 | } | |
549 | 569 | else [TotalsEntry(keyInvestor(userAddress58), origInvestArray, totalsDiff, newClaimPeriodHeight, 0), TotalsEntry(keyTotals(), readTotalsArrayOrDefault(), totalsDiff, newClaimPeriodHeight, 0)] | |
550 | 570 | let updatedPriceAssetBalance = ((priceAssetBalance + outAmount) - periodMinAvailableToClaim) | |
551 | 571 | ([ScriptTransfer(i.caller, periodMinAvailableToClaim, outAssetId), IntegerEntry(keyPriceAssetBalance(userAddress58), updatedPriceAssetBalance)] ++ lastClaimEntries) | |
552 | 572 | } | |
553 | 573 | else throw("Strict value is not equal to itself.") | |
554 | 574 | } | |
555 | 575 | $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) | |
556 | 576 | } | |
557 | 577 | else throw("Strict value is not equal to itself.") | |
558 | 578 | } | |
559 | 579 | else { | |
560 | 580 | let priceAssetBalanceIdoDecimals = fraction(priceAssetBalance, scale8, pow(10, 0, priceAssetDecimals, 0, 0, DOWN)) | |
561 | 581 | $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) | |
562 | 582 | } | |
563 | 583 | entries | |
564 | 584 | } | |
565 | 585 | } | |
566 | 586 | ||
567 | 587 | ||
568 | 588 | ||
569 | 589 | @Callable(i) | |
570 | 590 | func cleanRemaingAmount (userAddress58) = { | |
571 | 591 | let priceAssetId58 = readConfigArray()[IdxCfgPriceAssetId] | |
572 | 592 | let evaluateResult = split(asString(invoke(this, "claimREADONLY", [priceAssetId58, userAddress58], nil)), SEP) | |
573 | 593 | if ((evaluateResult == evaluateResult)) | |
574 | 594 | then { | |
575 | 595 | let availablePriceAmountToClaim = parseIntValue(evaluateResult[2]) | |
576 | 596 | let checkUnclaimedAssets = if ((availablePriceAmountToClaim == 0)) | |
577 | 597 | then true | |
578 | 598 | else throwErr("user have unclaimed assets") | |
579 | 599 | if ((checkUnclaimedAssets == checkUnclaimedAssets)) | |
580 | 600 | then { | |
581 | 601 | let investor = split(value(getString(keyInvestor(userAddress58))), SEP) | |
582 | 602 | let investorTotalAmount = parseIntValue(investor[IdxInvTotalAmount]) | |
583 | 603 | let investorRemainingAmount = parseIntValue(investor[IdxInvRemainingAmount]) | |
584 | 604 | let investorPriceAssetBalance = parseIntValue(investor[IdxInvClaimedPriceAssetAmount]) | |
585 | 605 | let investorIdoAssetBalance = parseIntValue(investor[IdxInvClaimedIdoAssetAmount]) | |
586 | 606 | let investorLastClaimedHeight = parseIntValue(investor[IdxInvLastClaimedHeight]) | |
587 | 607 | let investorRemainingAmountCheck = if ((investorRemainingAmount != 0)) | |
588 | 608 | then true | |
589 | 609 | else throwErr("investorRemainingAmount already zero") | |
590 | 610 | if ((investorRemainingAmountCheck == investorRemainingAmountCheck)) | |
591 | 611 | then { | |
592 | 612 | let newInvestor = makeString(["%d%d%d%d%d", toString(investorTotalAmount), "0", toString(investorPriceAssetBalance), toString(investorIdoAssetBalance), toString(investorLastClaimedHeight)], SEP) | |
593 | 613 | let totals = split(value(getString(keyTotals())), SEP) | |
594 | 614 | let totalsTotalAmount = parseIntValue(totals[IdxInvTotalAmount]) | |
595 | 615 | let totalsRemainingAmount = parseIntValue(totals[IdxInvRemainingAmount]) | |
596 | 616 | let totalsClaimedPriceAssetAmount = parseIntValue(totals[IdxInvClaimedPriceAssetAmount]) | |
597 | 617 | let totalsClaimedIdoAssetAmount = parseIntValue(totals[IdxInvClaimedIdoAssetAmount]) | |
598 | 618 | let totalsLastClaimedHeight = parseIntValue(totals[IdxInvLastClaimedHeight]) | |
599 | 619 | let newTotals = makeString(["%d%d%d%d%d", toString(totalsTotalAmount), toString((totalsRemainingAmount - investorRemainingAmount)), toString(totalsClaimedPriceAssetAmount), toString(totalsClaimedIdoAssetAmount), toString(totalsLastClaimedHeight)], SEP) | |
600 | 620 | let newTotalRemainingAmount = (valueOrElse(getInteger(keyTotalRemainingAmount()), 0) + investorRemainingAmount) | |
601 | 621 | [StringEntry(keyInvestorRemainingAmount(userAddress58), toString(investorRemainingAmount)), StringEntry(keyTotalRemainingAmount(), toString(newTotalRemainingAmount)), StringEntry(keyInvestor(userAddress58), newInvestor), StringEntry(keyTotals(), newTotals)] | |
602 | 622 | } | |
603 | 623 | else throw("Strict value is not equal to itself.") | |
604 | 624 | } | |
605 | 625 | else throw("Strict value is not equal to itself.") | |
606 | 626 | } | |
607 | 627 | else throw("Strict value is not equal to itself.") | |
608 | 628 | } | |
609 | 629 | ||
610 | 630 | ||
611 | 631 | ||
612 | 632 | @Callable(i) | |
613 | 633 | func claimFor (userAddress58) = nil | |
614 | 634 | ||
615 | 635 | ||
616 | 636 | ||
617 | 637 | @Callable(i) | |
618 | 638 | func claimREADONLY (claimedAssetId58,userAddress58) = { | |
619 | 639 | let claimResultTuple = internalClaim(claimedAssetId58, addressFromStringValue(userAddress58), fromBase58String("")) | |
620 | 640 | let totalsDiff = claimResultTuple._1 | |
621 | 641 | let outAmount = claimResultTuple._2 | |
622 | 642 | let outAssetId = claimResultTuple._3 | |
623 | 643 | let origInvestArray = claimResultTuple._4 | |
624 | 644 | let newClaimPeriodHeight = claimResultTuple._5 | |
625 | 645 | let availableToClaimArray = claimResultTuple._6 | |
626 | 646 | let availablePriceAmountToClaim = availableToClaimArray[0] | |
627 | 647 | let availableIdoAmountToClaim = availableToClaimArray[1] | |
628 | 648 | $Tuple2(nil, makeString(["%s%d%d", userAddress58, toString(availablePriceAmountToClaim), toString(availableIdoAmountToClaim)], SEP)) | |
629 | 649 | } | |
630 | 650 | ||
631 | 651 | ||
632 | 652 | ||
633 | 653 | @Callable(i) | |
634 | 654 | func claimV2READONLY (claimedAssetId58,userAddress58) = { | |
635 | 655 | let claimResultTuple = internalClaim(claimedAssetId58, addressFromStringValue(userAddress58), fromBase58String("")) | |
636 | 656 | let totalsDiff = claimResultTuple._1 | |
637 | 657 | let outAmount = claimResultTuple._2 | |
638 | 658 | let outAssetId = claimResultTuple._3 | |
639 | 659 | let origInvestArray = claimResultTuple._4 | |
640 | 660 | let newClaimPeriodHeight = claimResultTuple._5 | |
641 | 661 | let availableToClaimArray = claimResultTuple._6 | |
642 | 662 | let availablePriceAmountToClaim = availableToClaimArray[0] | |
643 | 663 | let availableIdoAmountToClaim = availableToClaimArray[1] | |
644 | 664 | let cfgArray = readConfigArray() | |
645 | 665 | let priceAssetId58 = cfgArray[IdxCfgPriceAssetId] | |
646 | 666 | let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0) | |
647 | 667 | let priceAssetBalanceIdoDecimals = (priceAssetBalance * 100) | |
648 | 668 | let availableIdoAmountToClaimWithPriceAssetBalance = (availableIdoAmountToClaim + priceAssetBalanceIdoDecimals) | |
649 | - | let $ | |
650 | - | let periodMinAvailableToClaim = $ | |
651 | - | let periodTotalAvailableToClaim = $ | |
652 | - | let periodUserAvailableToClaim = $ | |
653 | - | let totalUserAvailableToClaim = $ | |
654 | - | let usdtPriceAssetAllowableRatio = $ | |
655 | - | let currentUsdtPriceAssetRatio = $ | |
656 | - | let endPeriodBlocksLeft = $ | |
657 | - | let updatedCurrentPeriod = $ | |
658 | - | let periodStart = $ | |
659 | - | let periodEnd = $ | |
669 | + | let $t03637436786 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement]) | |
670 | + | let periodMinAvailableToClaim = $t03637436786._1 | |
671 | + | let periodTotalAvailableToClaim = $t03637436786._2 | |
672 | + | let periodUserAvailableToClaim = $t03637436786._3 | |
673 | + | let totalUserAvailableToClaim = $t03637436786._4 | |
674 | + | let usdtPriceAssetAllowableRatio = $t03637436786._5 | |
675 | + | let currentUsdtPriceAssetRatio = $t03637436786._6 | |
676 | + | let endPeriodBlocksLeft = $t03637436786._7 | |
677 | + | let updatedCurrentPeriod = $t03637436786._8 | |
678 | + | let periodStart = $t03637436786._9 | |
679 | + | let periodEnd = $t03637436786._10 | |
660 | 680 | let currentPeriodEndHeight = valueOrElse(getInteger(keyPeriodEndHeight(updatedCurrentPeriod)), 0) | |
661 | 681 | let userTotalPriceAssetClaimed = (parseIntValue(readInvestorArrayOrFail(userAddress58)[IdxInvClaimedPriceAssetAmount]) - priceAssetBalance) | |
662 | 682 | let resultString = if ((height > currentPeriodEndHeight)) | |
663 | 683 | then { | |
664 | 684 | let periodLenght = value(getInteger(keyPeriodLength())) | |
665 | 685 | let userPeriodAllowance = value(getInteger(keyUserPeriodAllowance(priceAssetId58))) | |
666 | 686 | let totalPeriodAllowance = value(getInteger(keyTotalPeriodAllowance(priceAssetId58))) | |
667 | 687 | makeString(["%d%d%d%d%d%d", toString(availableIdoAmountToClaimWithPriceAssetBalance), toString(userPeriodAllowance), toString(totalPeriodAllowance), toString(usdtPriceAssetAllowableRatio), toString(currentUsdtPriceAssetRatio), toString(periodLenght), toString(userTotalPriceAssetClaimed)], SEP) | |
668 | 688 | } | |
669 | 689 | else makeString(["%d%d%d%d%d%d", toString(availableIdoAmountToClaimWithPriceAssetBalance), toString(periodMinAvailableToClaim), toString(periodTotalAvailableToClaim), toString(usdtPriceAssetAllowableRatio), toString(currentUsdtPriceAssetRatio), toString(endPeriodBlocksLeft), toString(userTotalPriceAssetClaimed)], SEP) | |
670 | 690 | $Tuple2(nil, resultString) | |
671 | 691 | } | |
672 | 692 | ||
673 | 693 | ||
674 | 694 | @Verifier(tx) | |
675 | 695 | func verify () = { | |
676 | 696 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
677 | 697 | case pk: ByteVector => | |
678 | 698 | pk | |
679 | 699 | case _: Unit => | |
680 | 700 | tx.senderPublicKey | |
681 | 701 | case _ => | |
682 | 702 | throw("Match error") | |
683 | 703 | } | |
684 | 704 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
685 | 705 | } | |
686 | 706 |
github/deemru/w8io/169f3d6 208.34 ms ◑