tx · Aqmuci6fL5PojJrf43RGNjGPNmvUYNQaiDF2kMgcfgD8 3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje: -0.02900000 Waves 2022.12.01 15:22 [2341267] smart account 3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje > SELF 0.00000000 Waves
{ "type": 13, "id": "Aqmuci6fL5PojJrf43RGNjGPNmvUYNQaiDF2kMgcfgD8", "fee": 2900000, "feeAssetId": null, "timestamp": 1669897416092, "version": 1, "sender": "3MwK6nw9HMwuKbXxu6J1rfecvePPd3JyAje", "senderPublicKey": "8JB75GXEKqxmpXc6KVtT9UNqJ3BBSUZDodYD4DU7CUUB", "proofs": [ "rCH1m1dzwxfSM2eaNeGqLcGTU292uzXA9b8eswJM2UwuDENWmc6cDcYYPKtZvCFcKA76DfLU9BAN8uy9aqEvjX2" ], "script": "base64:AAIFAAAAAAAAEMsIAhIJCgcBAQEBAQgBEgASBAoCCAgSAwoBCBIECgIICBIECgIICBIDCgEIEgAiD2dldFN0cmluZ09yRmFpbCIDa2V5IgNTRVAiCEJVRlNDQUxFIgZzY2FsZTgiCHRocm93RXJyIgNtc2ciCGFzU3RyaW5nIgN2YWwiByRtYXRjaDAiBnZhbFN0ciIdY29udmVydFByaWNlQXNzZXRJbnRvSWRvQXNzZXQiEHByaWNlQXNzZXRBbW91bnQiDnByaWNlQXNzZXRNVUxUIgVwcmljZSIJcHJpY2VNVUxUIgxpZG9Bc3NldE1VTFQiD2JQcmljZUFzc2V0TVVMVCINYklkb0Fzc2V0TVVMVCIOYlByaWNlQXNzZXRCVUYiD2JBbW91bnRBc3NldEJVRiIOSWR4Q2ZnSWRvU3RhcnQiEUlkeENmZ0lkb0R1cmF0aW9uIhBJZHhDZmdDbGFpbVN0YXJ0IhNJZHhDZmdDbGFpbUR1cmF0aW9uIgtJZHhDZmdQcmljZSIPSWR4Q2ZnUHJpY2VNdWx0IhBJZHhDZmdJZG9Bc3NldElkIhJJZHhDZmdJZG9Bc3NldE11bHQ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AAEAAAACZHQBAAAAAmR1AAAAAAQAAAACZHYEAAAAAWoJAQAAAAJjagAAAAADCQAAAQAAAAIFAAAAAWoCAAAACkJ5dGVWZWN0b3IEAAAAAmNwBQAAAAFqBQAAAAJjcAMJAAABAAAAAgUAAAABagIAAAAEVW5pdAgFAAAAAmR0AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACZHQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJkdAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmR2JEhJ4Q==", "chainId": 84, "height": 2341267, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9Mx9R9aNdJeFJSvvdTZWcgdBHgmTEUQhBRQMw9fafGWz Next: 3qVpbLgH1XXgcJv1KY7LFWoBpPTjSKgeoHaH79jeWWjq Diff:
Old | New | Differences | |
---|---|---|---|
511 | 511 | if ((evaluateResult == evaluateResult)) | |
512 | 512 | then { | |
513 | 513 | let periodMinAvailableToClaim = parseIntValue(evaluateResult[2]) | |
514 | - | let | |
514 | + | let checkUnclaimedAssets = if ((periodMinAvailableToClaim == 0)) | |
515 | 515 | then true | |
516 | 516 | else throwErr("user have unclaimed assets") | |
517 | - | if (( | |
517 | + | if ((checkUnclaimedAssets == checkUnclaimedAssets)) | |
518 | 518 | then { | |
519 | 519 | let investor = split(value(getString(keyInvestor(userAddress58))), SEP) | |
520 | 520 | let investorTotalAmount = parseIntValue(investor[IdxInvTotalAmount]) | |
571 | 571 | let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0) | |
572 | 572 | let priceAssetBalanceIdoDecimals = (priceAssetBalance * 100) | |
573 | 573 | let availableIdoAmountToClaimWithPriceAssetBalance = (availableIdoAmountToClaim + priceAssetBalanceIdoDecimals) | |
574 | - | let $ | |
575 | - | let periodMinAvailableToClaim = $ | |
576 | - | let periodTotalAvailableToClaim = $ | |
577 | - | let periodUserAvailableToClaim = $ | |
578 | - | let totalUserAvailableToClaim = $ | |
579 | - | let usdtPriceAssetAllowableRatio = $ | |
580 | - | let currentUsdtPriceAssetRatio = $ | |
581 | - | let endPeriodBlocksLeft = $ | |
582 | - | let updatedCurrentPeriod = $ | |
583 | - | let periodStart = $ | |
584 | - | let periodEnd = $ | |
574 | + | let $t03060331015 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement]) | |
575 | + | let periodMinAvailableToClaim = $t03060331015._1 | |
576 | + | let periodTotalAvailableToClaim = $t03060331015._2 | |
577 | + | let periodUserAvailableToClaim = $t03060331015._3 | |
578 | + | let totalUserAvailableToClaim = $t03060331015._4 | |
579 | + | let usdtPriceAssetAllowableRatio = $t03060331015._5 | |
580 | + | let currentUsdtPriceAssetRatio = $t03060331015._6 | |
581 | + | let endPeriodBlocksLeft = $t03060331015._7 | |
582 | + | let updatedCurrentPeriod = $t03060331015._8 | |
583 | + | let periodStart = $t03060331015._9 | |
584 | + | let periodEnd = $t03060331015._10 | |
585 | 585 | let currentPeriodEndHeight = valueOrElse(getInteger(keyPeriodEndHeight(updatedCurrentPeriod)), 0) | |
586 | 586 | let userTotalPriceAssetClaimed = (parseIntValue(readInvestorArrayOrFail(userAddress58)[IdxInvClaimedPriceAssetAmount]) - priceAssetBalance) | |
587 | 587 | let resultString = if ((height > currentPeriodEndHeight)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
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 keyManagerPublicKey () = "%s__managerPublicKey" | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func readConfigArray () = split(getStringOrFail(keyConfig()), SEP) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func readTotalsArrayOrDefaultByCustomKey (customKey) = split(valueOrElse(getString(customKey), formatInvestorS("0", "0", "0", "0", "0")), SEP) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func readTotalsArrayOrDefault () = readTotalsArrayOrDefaultByCustomKey(keyTotals()) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func readInvestorArrayOrDefault (userAddress) = readTotalsArrayOrDefaultByCustomKey(keyInvestor(userAddress)) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func readInvestorArrayOrFail (userAddress) = split(getStringOrFail(keyInvestor(userAddress)), SEP) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | let IdxDiffTotalIncrement = 0 | |
156 | 156 | ||
157 | 157 | let IdxDiffRemainingPriceAmountIncrement = 1 | |
158 | 158 | ||
159 | 159 | let IdxDiffClaimedPriceAmountIncrement = 2 | |
160 | 160 | ||
161 | 161 | let IdxDiffClaimedIdoAssetAmountIncrement = 3 | |
162 | 162 | ||
163 | 163 | func TotalsEntry (key,origArray,incrementDiff,newLastClaimedHeight,priceAssetBalance) = { | |
164 | 164 | let totalAmount = parseIntValue(origArray[IdxInvTotalAmount]) | |
165 | 165 | let remainingAmount = parseIntValue(origArray[IdxInvRemainingAmount]) | |
166 | 166 | let claimedPriceAssetAmount = parseIntValue(origArray[IdxInvClaimedPriceAssetAmount]) | |
167 | 167 | let claimedIdoAssetAmount = parseIntValue(origArray[IdxInvClaimedIdoAssetAmount]) | |
168 | 168 | let lastClaimedHeight = parseIntValue(origArray[IdxInvLastClaimedHeight]) | |
169 | 169 | let newTotalAmount = (totalAmount + incrementDiff[IdxDiffTotalIncrement]) | |
170 | 170 | let newRemainingAmount = (remainingAmount + incrementDiff[IdxDiffRemainingPriceAmountIncrement]) | |
171 | 171 | let cfgArray = readConfigArray() | |
172 | 172 | let priceAssetId58 = cfgArray[IdxCfgPriceAssetId] | |
173 | 173 | let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals | |
174 | 174 | let priceAssetBalancePriceAssetDecimals = fraction(priceAssetBalance, scale8, pow(10, 0, priceAssetDecimals, 0, 0, DOWN)) | |
175 | 175 | let newClaimedPriceAssetAmount = ((claimedPriceAssetAmount + incrementDiff[IdxDiffClaimedPriceAmountIncrement]) - priceAssetBalance) | |
176 | 176 | let newClaimedIdoAssetAmount = ((claimedIdoAssetAmount + incrementDiff[IdxDiffClaimedIdoAssetAmountIncrement]) + priceAssetBalancePriceAssetDecimals) | |
177 | 177 | let entries = if ((0 > newRemainingAmount)) | |
178 | 178 | then { | |
179 | 179 | let diff = ((newTotalAmount - newClaimedPriceAssetAmount) - newClaimedIdoAssetAmount) | |
180 | 180 | let newLogicRemainingAmount = if ((0 > diff)) | |
181 | 181 | then 0 | |
182 | 182 | else diff | |
183 | 183 | StringEntry(key, formatInvestor(newTotalAmount, newLogicRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight)) | |
184 | 184 | } | |
185 | 185 | else StringEntry(key, formatInvestor(newTotalAmount, newRemainingAmount, newClaimedPriceAssetAmount, newClaimedIdoAssetAmount, newLastClaimedHeight)) | |
186 | 186 | entries | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func InvestOperationHistoryEntry (userAddress,priceAssetAmount,idoAssetAmount,txId) = StringEntry(keyOperationHistoryRecord("invest", userAddress, toBase58String(txId)), formatHistoryRecord(priceAssetAmount, idoAssetAmount)) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func ClaimOperationHistoryEntry (userAddress,priceAssetAmount,idoAssetAmount,txId) = StringEntry(keyOperationHistoryRecord("claim", userAddress, toBase58String(txId)), formatHistoryRecord(priceAssetAmount, idoAssetAmount)) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func internalClaim (claimedAssetId58,userAddress,txId) = { | |
197 | 197 | let cfgArray = readConfigArray() | |
198 | 198 | let claimStart = parseIntValue(cfgArray[IdxCfgClaimStart]) | |
199 | 199 | let claimDuration = parseIntValue(cfgArray[IdxCfgClaimDuration]) | |
200 | 200 | let claimEnd = (claimStart + claimDuration) | |
201 | 201 | let price = parseIntValue(cfgArray[IdxCfgPrice]) | |
202 | 202 | let priceMult = parseIntValue(cfgArray[IdxCfgPriceMult]) | |
203 | 203 | let idoAssetId58 = cfgArray[IdxCfgIdoAssetId] | |
204 | 204 | let idoAssetId = fromBase58String(idoAssetId58) | |
205 | 205 | let idoAssetMult = parseIntValue(cfgArray[IdxCfgIdoAssetMult]) | |
206 | 206 | let priceAssetId58 = cfgArray[IdxCfgPriceAssetId] | |
207 | 207 | let priceAssetId = fromBase58String(priceAssetId58) | |
208 | 208 | let priceAssetMult = parseIntValue(cfgArray[IdxCfgPriceAssetMult]) | |
209 | 209 | let userAddress58 = toString(userAddress) | |
210 | 210 | let origInvestArray = readInvestorArrayOrFail(userAddress58) | |
211 | 211 | let investTotalAmount = parseIntValue(origInvestArray[IdxInvTotalAmount]) | |
212 | 212 | let investLastClaimedHeightTMP = parseIntValue(origInvestArray[IdxInvLastClaimedHeight]) | |
213 | 213 | let investLastClaimedHeight = if ((claimStart >= investLastClaimedHeightTMP)) | |
214 | 214 | then claimStart | |
215 | 215 | else investLastClaimedHeightTMP | |
216 | 216 | let newClaimPeriodHeight = if ((height > claimEnd)) | |
217 | 217 | then claimEnd | |
218 | 218 | else if ((claimStart > height)) | |
219 | 219 | then claimStart | |
220 | 220 | else height | |
221 | 221 | let claimingBlocks = (newClaimPeriodHeight - investLastClaimedHeight) | |
222 | 222 | let claimingPriceAssetAmount = fraction(investTotalAmount, claimingBlocks, claimDuration) | |
223 | 223 | let claimingIdoAssetAmount = convertPriceAssetIntoIdoAsset(claimingPriceAssetAmount, priceAssetMult, price, priceMult, idoAssetMult) | |
224 | 224 | let isUSDN = (claimedAssetId58 == priceAssetId58) | |
225 | 225 | let isUSDNClaimDisabled = valueOrElse(getBoolean(keyUSDNClaimDisabled()), false) | |
226 | 226 | let checks = [if (!(if (isUSDN) | |
227 | 227 | then isUSDNClaimDisabled | |
228 | 228 | else false)) | |
229 | 229 | then true | |
230 | 230 | else throw("USDN claim is disabled")] | |
231 | 231 | if ((checks == checks)) | |
232 | 232 | then if ((claimedAssetId58 == priceAssetId58)) | |
233 | 233 | then $Tuple6([0, -(claimingPriceAssetAmount), claimingPriceAssetAmount, 0], claimingPriceAssetAmount, priceAssetId, origInvestArray, newClaimPeriodHeight, [claimingPriceAssetAmount, claimingIdoAssetAmount]) | |
234 | 234 | else if ((claimedAssetId58 == idoAssetId58)) | |
235 | 235 | then $Tuple6([0, -(claimingPriceAssetAmount), 0, claimingIdoAssetAmount], claimingIdoAssetAmount, idoAssetId, origInvestArray, newClaimPeriodHeight, [claimingPriceAssetAmount, claimingIdoAssetAmount]) | |
236 | 236 | else throw(("unsupported assetId: " + claimedAssetId58)) | |
237 | 237 | else throw("Strict value is not equal to itself.") | |
238 | 238 | } | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func internalClaimV2 (priceAssetId58,userAddress58,outAmount,totalUserAvailableToClaim) = { | |
242 | 242 | let totalPeriodPriceAssetAllowance = value(getInteger(keyTotalPeriodAllowance(priceAssetId58))) | |
243 | 243 | let userPeriodPriceAssetAllowance = value(getInteger(keyUserPeriodAllowance(priceAssetId58))) | |
244 | 244 | let periodLength = value(getInteger(keyPeriodLength())) | |
245 | 245 | let currentPeriod = valueOrElse(getInteger(keyCurrentPeriod()), 0) | |
246 | 246 | let zeroPeriodEndHeighIsDefined = isDefined(getInteger(keyPeriodEndHeight(0))) | |
247 | 247 | let $t01279414664 = if ((currentPeriod > 0)) | |
248 | 248 | then { | |
249 | 249 | let lastPeriodStartHeight = value(getInteger(keyPeriodStartHeight(currentPeriod))) | |
250 | 250 | let lastPeriodEndHeight = value(getInteger(keyPeriodEndHeight(currentPeriod))) | |
251 | 251 | let $t01305413759 = if ((height > lastPeriodEndHeight)) | |
252 | 252 | then { | |
253 | 253 | let updatedCurrentPeriod = (currentPeriod + 1) | |
254 | 254 | let periodStart = if ((height > (lastPeriodEndHeight + periodLength))) | |
255 | 255 | then { | |
256 | 256 | let blocksToLastPeriodStart = ((height - lastPeriodEndHeight) % periodLength) | |
257 | 257 | if ((blocksToLastPeriodStart == 0)) | |
258 | 258 | then ((height - periodLength) + 1) | |
259 | 259 | else (height - blocksToLastPeriodStart) | |
260 | 260 | } | |
261 | 261 | else (lastPeriodEndHeight + 1) | |
262 | 262 | let periodEnd = ((periodStart + periodLength) - 1) | |
263 | 263 | $Tuple3(updatedCurrentPeriod, periodStart, periodEnd) | |
264 | 264 | } | |
265 | 265 | else $Tuple3(currentPeriod, lastPeriodStartHeight, lastPeriodEndHeight) | |
266 | 266 | let updatedCurrentPeriod = $t01305413759._1 | |
267 | 267 | let periodStart = $t01305413759._2 | |
268 | 268 | let periodEnd = $t01305413759._3 | |
269 | 269 | $Tuple3(updatedCurrentPeriod, periodStart, periodEnd) | |
270 | 270 | } | |
271 | 271 | else if (zeroPeriodEndHeighIsDefined) | |
272 | 272 | then { | |
273 | 273 | let zeroPeriodStartHeight = value(getInteger(keyPeriodStartHeight(0))) | |
274 | 274 | let zeroPeriodEndHeight = value(getInteger(keyPeriodEndHeight(0))) | |
275 | 275 | let $t01401414396 = if ((height > zeroPeriodEndHeight)) | |
276 | 276 | then { | |
277 | 277 | let updatedCurrentPeriod = (currentPeriod + 1) | |
278 | 278 | let periodStart = (zeroPeriodEndHeight + 1) | |
279 | 279 | let periodEnd = ((periodStart + periodLength) - 1) | |
280 | 280 | $Tuple3(updatedCurrentPeriod, periodStart, periodEnd) | |
281 | 281 | } | |
282 | 282 | else $Tuple3(currentPeriod, zeroPeriodStartHeight, zeroPeriodEndHeight) | |
283 | 283 | let updatedCurrentPeriod = $t01401414396._1 | |
284 | 284 | let periodStart = $t01401414396._2 | |
285 | 285 | let periodEnd = $t01401414396._3 | |
286 | 286 | $Tuple3(updatedCurrentPeriod, periodStart, periodEnd) | |
287 | 287 | } | |
288 | 288 | else $Tuple3(currentPeriod, valueOrElse(getInteger(keyPeriodStartHeight(currentPeriod)), height), valueOrElse(getInteger(keyPeriodEndHeight(currentPeriod)), ((height + periodLength) - 1))) | |
289 | 289 | let updatedCurrentPeriod = $t01279414664._1 | |
290 | 290 | let periodStart = $t01279414664._2 | |
291 | 291 | let periodEnd = $t01279414664._3 | |
292 | 292 | let periodTotalAvailableToClaim = valueOrElse(getInteger(keyPeriodTotalAvailableToClaim(priceAssetId58, updatedCurrentPeriod)), totalPeriodPriceAssetAllowance) | |
293 | 293 | let periodUserAvailableToClaim = valueOrElse(getInteger(keyPeriodUserAvailableToClaim(priceAssetId58, updatedCurrentPeriod, userAddress58)), userPeriodPriceAssetAllowance) | |
294 | 294 | let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0) | |
295 | 295 | let periodMinAvailableToClaim = min([(outAmount + priceAssetBalance), periodTotalAvailableToClaim, periodUserAvailableToClaim]) | |
296 | 296 | let usdtPriceAssetAllowableRatio = value(getInteger(keyUsdtPriceAssetAllowableRatio())) | |
297 | 297 | let putOneTknV2PriceAssetAmount = scale8 | |
298 | 298 | let $t01541915672 = { | |
299 | 299 | let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "putOneTknV2WithoutTakeFeeREADONLY", [putOneTknV2PriceAssetAmount, priceAssetId58], nil) | |
300 | 300 | if ($isInstanceOf(@, "(Int, Int, Int)")) | |
301 | 301 | then @ | |
302 | 302 | else throw("Couldn't cast Any to (Int, Int, Int)") | |
303 | 303 | } | |
304 | 304 | if (($t01541915672 == $t01541915672)) | |
305 | 305 | then { | |
306 | 306 | let bonus = $t01541915672._3 | |
307 | 307 | let feeAmount = $t01541915672._2 | |
308 | 308 | let lpAmount = $t01541915672._1 | |
309 | 309 | let usdtAssetId = value(getString(keyUsdtAssetId())) | |
310 | 310 | let $t01573415952 = { | |
311 | 311 | let @ = invoke(addressFromStringValue(value(getString(keyUsdtPriceAssetStablePool()))), "getOneTknV2READONLY", [usdtAssetId, lpAmount], nil) | |
312 | 312 | if ($isInstanceOf(@, "(Int, Int)")) | |
313 | 313 | then @ | |
314 | 314 | else throw("Couldn't cast Any to (Int, Int)") | |
315 | 315 | } | |
316 | 316 | if (($t01573415952 == $t01573415952)) | |
317 | 317 | then { | |
318 | 318 | let getOneTknV2FeeAmount = $t01573415952._2 | |
319 | 319 | let usdtAmount = $t01573415952._1 | |
320 | 320 | let currentUsdtPriceAssetRatio = fraction(putOneTknV2PriceAssetAmount, scale8, usdtAmount) | |
321 | 321 | let endPeriodBlocksLeft = (periodEnd - height) | |
322 | 322 | $Tuple10(periodMinAvailableToClaim, periodTotalAvailableToClaim, periodUserAvailableToClaim, totalUserAvailableToClaim, usdtPriceAssetAllowableRatio, currentUsdtPriceAssetRatio, endPeriodBlocksLeft, updatedCurrentPeriod, periodStart, periodEnd) | |
323 | 323 | } | |
324 | 324 | else throw("Strict value is not equal to itself.") | |
325 | 325 | } | |
326 | 326 | else throw("Strict value is not equal to itself.") | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
331 | 331 | case s: String => | |
332 | 332 | fromBase58String(s) | |
333 | 333 | case _: Unit => | |
334 | 334 | unit | |
335 | 335 | case _ => | |
336 | 336 | throw("Match error") | |
337 | 337 | } | |
338 | 338 | ||
339 | 339 | ||
340 | 340 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
341 | 341 | case s: String => | |
342 | 342 | fromBase58String(s) | |
343 | 343 | case _: Unit => | |
344 | 344 | unit | |
345 | 345 | case _ => | |
346 | 346 | throw("Match error") | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | func mustManager (i) = { | |
351 | 351 | let pd = throw("Permission denied") | |
352 | 352 | match managerPublicKeyOrUnit() { | |
353 | 353 | case pk: ByteVector => | |
354 | 354 | if ((i.callerPublicKey == pk)) | |
355 | 355 | then true | |
356 | 356 | else pd | |
357 | 357 | case _: Unit => | |
358 | 358 | if ((i.caller == this)) | |
359 | 359 | then true | |
360 | 360 | else pd | |
361 | 361 | case _ => | |
362 | 362 | throw("Match error") | |
363 | 363 | } | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | @Callable(i) | |
368 | 368 | func constructor (idoStart,idoDuration,claimStart,claimDuration,price,priceAssetId58,minInvestAmount) = { | |
369 | 369 | let priceMult = ((100 * 1000) * 1000) | |
370 | 370 | let idoEnd = (idoStart + idoDuration) | |
371 | 371 | if (isDefined(getString(keyConfig()))) | |
372 | 372 | then throw("already initialized") | |
373 | 373 | else if (("3PMEHLx1j6zerarZTYfsGqDeeZqQoMpxq5S" != toString(i.caller))) | |
374 | 374 | then throw("not authorized") | |
375 | 375 | else if ((size(i.payments) != 1)) | |
376 | 376 | then throw("exactly 1 payment must be attached") | |
377 | 377 | else if ((idoEnd >= claimStart)) | |
378 | 378 | then throw("claimStart must be greater than idoEnd") | |
379 | 379 | else { | |
380 | 380 | let pmt = value(i.payments[0]) | |
381 | 381 | let idoAssetId = value(pmt.assetId) | |
382 | 382 | let idoAssetInfo = valueOrErrorMessage(assetInfo(idoAssetId), "fail to load ido asset info") | |
383 | 383 | let idoAssetId58 = toBase58String(idoAssetId) | |
384 | 384 | let idoAssetMult = pow(10, 0, idoAssetInfo.decimals, 0, 0, DOWN) | |
385 | 385 | let priceAssetId = fromBase58String(priceAssetId58) | |
386 | 386 | let priceAssetInfo = valueOrErrorMessage(assetInfo(priceAssetId), "fail to load price asset info") | |
387 | 387 | let priceAssetMult = pow(10, 0, priceAssetInfo.decimals, 0, 0, DOWN) | |
388 | 388 | let origTotalsArray = readTotalsArrayOrDefault() | |
389 | 389 | let totalsDiff = [0, 0, 0, 0] | |
390 | 390 | [StringEntry(keyConfig(), fromatConfig(idoStart, idoDuration, claimStart, claimDuration, price, priceMult, idoAssetId58, idoAssetMult, priceAssetId58, priceAssetMult, minInvestAmount, pmt.amount)), TotalsEntry(keyTotals(), origTotalsArray, totalsDiff, claimStart, 0)] | |
391 | 391 | } | |
392 | 392 | } | |
393 | 393 | ||
394 | 394 | ||
395 | 395 | ||
396 | 396 | @Callable(i) | |
397 | 397 | func invest () = { | |
398 | 398 | let cfgArray = readConfigArray() | |
399 | 399 | let idoStart = parseIntValue(cfgArray[IdxCfgIdoStart]) | |
400 | 400 | let idoDuration = parseIntValue(cfgArray[IdxCfgIdoDuration]) | |
401 | 401 | let idoEnd = (idoStart + idoDuration) | |
402 | 402 | let claimStart = parseIntValue(cfgArray[IdxCfgClaimStart]) | |
403 | 403 | let claimDuration = parseIntValue(cfgArray[IdxCfgClaimDuration]) | |
404 | 404 | let price = parseIntValue(cfgArray[IdxCfgPrice]) | |
405 | 405 | let priceMult = parseIntValue(cfgArray[IdxCfgPriceMult]) | |
406 | 406 | let idoAssetId58 = cfgArray[IdxCfgIdoAssetId] | |
407 | 407 | let idoAssetId = fromBase58String(idoAssetId58) | |
408 | 408 | let idoAssetMult = parseIntValue(cfgArray[IdxCfgIdoAssetMult]) | |
409 | 409 | let priceAssetId58 = cfgArray[IdxCfgPriceAssetId] | |
410 | 410 | let priceAssetId = fromBase58String(priceAssetId58) | |
411 | 411 | let priceAssetMult = parseIntValue(cfgArray[IdxCfgPriceAssetMult]) | |
412 | 412 | let minIvestAmount = parseIntValue(cfgArray[IdxCfgMinInvestAmount]) | |
413 | 413 | let userAddress = toString(i.caller) | |
414 | 414 | if ((idoStart > height)) | |
415 | 415 | then throw("ido has not been started yet") | |
416 | 416 | else if ((height > idoEnd)) | |
417 | 417 | then throw("ido has been already ended") | |
418 | 418 | else if ((size(i.payments) != 1)) | |
419 | 419 | then throw("exactly 1 payment is expected") | |
420 | 420 | else { | |
421 | 421 | let pmt = value(i.payments[0]) | |
422 | 422 | let pmtAssetId = value(pmt.assetId) | |
423 | 423 | let pmtAmount = pmt.amount | |
424 | 424 | if ((pmtAssetId != priceAssetId)) | |
425 | 425 | then throw((("invalid payment asset id: " + toBase58String(pmtAssetId)) + " is expected")) | |
426 | 426 | else { | |
427 | 427 | let origInvestorArray = readInvestorArrayOrDefault(userAddress) | |
428 | 428 | let origTotalsArray = readTotalsArrayOrDefault() | |
429 | 429 | let newPriceTotalAmount = (parseIntValue(origTotalsArray[IdxInvTotalAmount]) + pmtAmount) | |
430 | 430 | let requiredIdoAssetAmount = (newPriceTotalAmount * 100) | |
431 | 431 | if ((requiredIdoAssetAmount > assetBalance(this, idoAssetId))) | |
432 | 432 | then throw("IDO asset has been - sold consider to use smaller payment") | |
433 | 433 | else { | |
434 | 434 | let totalsDiff = [pmtAmount, pmtAmount, 0, 0] | |
435 | 435 | [TotalsEntry(keyInvestor(userAddress), origInvestorArray, totalsDiff, claimStart, 0), TotalsEntry(keyTotals(), origTotalsArray, totalsDiff, claimStart, 0), InvestOperationHistoryEntry(userAddress, pmtAmount, 0, i.transactionId)] | |
436 | 436 | } | |
437 | 437 | } | |
438 | 438 | } | |
439 | 439 | } | |
440 | 440 | ||
441 | 441 | ||
442 | 442 | ||
443 | 443 | @Callable(i) | |
444 | 444 | func claim (claimedAssetId58,userAddress58) = { | |
445 | 445 | let callerAddress58 = toString(i.caller) | |
446 | 446 | if ((userAddress58 != callerAddress58)) | |
447 | 447 | then throw("not authorized") | |
448 | 448 | else { | |
449 | 449 | let cfgArray = readConfigArray() | |
450 | 450 | let priceAssetId58 = cfgArray[IdxCfgPriceAssetId] | |
451 | 451 | let claimResultTuple = internalClaim(claimedAssetId58, i.caller, i.transactionId) | |
452 | 452 | let totalsDiff = claimResultTuple._1 | |
453 | 453 | let outAmount = claimResultTuple._2 | |
454 | 454 | let outAssetId = claimResultTuple._3 | |
455 | 455 | let origInvestArray = claimResultTuple._4 | |
456 | 456 | let newClaimPeriodHeight = claimResultTuple._5 | |
457 | 457 | let claimedPriceAmountFromDiff = totalsDiff[IdxDiffClaimedPriceAmountIncrement] | |
458 | 458 | let claimedIdoAssetAmountFromDiff = totalsDiff[IdxDiffClaimedIdoAssetAmountIncrement] | |
459 | 459 | let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0) | |
460 | 460 | let priceAssetDecimals = value(assetInfo(fromBase58String(priceAssetId58))).decimals | |
461 | 461 | let entries = if ((claimedAssetId58 == priceAssetId58)) | |
462 | 462 | then { | |
463 | 463 | let $t02186122305 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement]) | |
464 | 464 | let periodMinAvailableToClaim = $t02186122305._1 | |
465 | 465 | let periodTotalAvailableToClaim = $t02186122305._2 | |
466 | 466 | let periodUserAvailableToClaim = $t02186122305._3 | |
467 | 467 | let totalUserAvailableToClaim = $t02186122305._4 | |
468 | 468 | let usdtPriceAssetAllowableRatio = $t02186122305._5 | |
469 | 469 | let currentUsdtPriceAssetRatio = $t02186122305._6 | |
470 | 470 | let endPeriodBlocksLeft = $t02186122305._7 | |
471 | 471 | let updatedCurrentPeriod = $t02186122305._8 | |
472 | 472 | let periodStart = $t02186122305._9 | |
473 | 473 | let periodEnd = $t02186122305._10 | |
474 | 474 | let checks = [if ((periodUserAvailableToClaim > 0)) | |
475 | 475 | then true | |
476 | 476 | else throwErr("unavailable to claim because user period allowance reached"), if ((periodTotalAvailableToClaim > 0)) | |
477 | 477 | then true | |
478 | 478 | else throwErr("unavailable to claim because total period allowance reached"), if ((periodMinAvailableToClaim > 0)) | |
479 | 479 | then true | |
480 | 480 | else throwErr("nothing to claim"), if ((usdtPriceAssetAllowableRatio > currentUsdtPriceAssetRatio)) | |
481 | 481 | then true | |
482 | 482 | else throwErr("unavailable to claim because usdn price lower than usdtPriceAssetAllowableRatio")] | |
483 | 483 | if ((checks == checks)) | |
484 | 484 | then { | |
485 | 485 | let updatedPeriodTotalAvailableToClaim = (periodTotalAvailableToClaim - periodMinAvailableToClaim) | |
486 | 486 | let updatedPeriodUserAvailableToClaim = (periodUserAvailableToClaim - periodMinAvailableToClaim) | |
487 | 487 | let entries = if ((priceAssetBalance >= periodMinAvailableToClaim)) | |
488 | 488 | then [ScriptTransfer(i.caller, periodMinAvailableToClaim, outAssetId), IntegerEntry(keyPriceAssetBalance(userAddress58), (priceAssetBalance - periodMinAvailableToClaim))] | |
489 | 489 | else { | |
490 | 490 | let updatedPriceAssetBalance = ((priceAssetBalance + outAmount) - periodMinAvailableToClaim) | |
491 | 491 | [ScriptTransfer(i.caller, periodMinAvailableToClaim, outAssetId), TotalsEntry(keyInvestor(userAddress58), origInvestArray, totalsDiff, newClaimPeriodHeight, 0), TotalsEntry(keyTotals(), readTotalsArrayOrDefault(), totalsDiff, newClaimPeriodHeight, 0), IntegerEntry(keyPriceAssetBalance(userAddress58), updatedPriceAssetBalance)] | |
492 | 492 | } | |
493 | 493 | $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) | |
494 | 494 | } | |
495 | 495 | else throw("Strict value is not equal to itself.") | |
496 | 496 | } | |
497 | 497 | else { | |
498 | 498 | let priceAssetBalanceIdoDecimals = fraction(priceAssetBalance, scale8, pow(10, 0, priceAssetDecimals, 0, 0, DOWN)) | |
499 | 499 | $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) | |
500 | 500 | } | |
501 | 501 | entries | |
502 | 502 | } | |
503 | 503 | } | |
504 | 504 | ||
505 | 505 | ||
506 | 506 | ||
507 | 507 | @Callable(i) | |
508 | 508 | func cleanRemaingAmount (userAddress58) = { | |
509 | 509 | let priceAssetId58 = readConfigArray()[IdxCfgPriceAssetId] | |
510 | 510 | let evaluateResult = split(asString(invoke(this, "claimV2READONLY", [priceAssetId58, userAddress58], nil)), SEP) | |
511 | 511 | if ((evaluateResult == evaluateResult)) | |
512 | 512 | then { | |
513 | 513 | let periodMinAvailableToClaim = parseIntValue(evaluateResult[2]) | |
514 | - | let | |
514 | + | let checkUnclaimedAssets = if ((periodMinAvailableToClaim == 0)) | |
515 | 515 | then true | |
516 | 516 | else throwErr("user have unclaimed assets") | |
517 | - | if (( | |
517 | + | if ((checkUnclaimedAssets == checkUnclaimedAssets)) | |
518 | 518 | then { | |
519 | 519 | let investor = split(value(getString(keyInvestor(userAddress58))), SEP) | |
520 | 520 | let investorTotalAmount = parseIntValue(investor[IdxInvTotalAmount]) | |
521 | 521 | let investorRemainingAmount = parseIntValue(investor[IdxInvRemainingAmount]) | |
522 | 522 | let investorPriceAssetBalance = parseIntValue(investor[IdxInvClaimedPriceAssetAmount]) | |
523 | 523 | let investorIdoAssetBalance = parseIntValue(investor[IdxInvClaimedIdoAssetAmount]) | |
524 | 524 | let investorLastClaimedHeight = parseIntValue(investor[IdxInvLastClaimedHeight]) | |
525 | 525 | let newInvestor = makeString([toString(investorTotalAmount), "0", toString(investorPriceAssetBalance), toString(investorIdoAssetBalance), toString(investorLastClaimedHeight)], SEP) | |
526 | 526 | let totals = split(value(getString(keyTotals())), SEP) | |
527 | 527 | let totalsTotalAmount = parseIntValue(totals[IdxInvTotalAmount]) | |
528 | 528 | let totalsRemainingAmount = parseIntValue(totals[IdxInvRemainingAmount]) | |
529 | 529 | let totalsClaimedPriceAssetAmount = parseIntValue(totals[IdxInvRemainingAmount]) | |
530 | 530 | let totalsClaimedIdoAssetAmount = parseIntValue(totals[IdxInvClaimedPriceAssetAmount]) | |
531 | 531 | let totalsLastClaimedHeight = parseIntValue(totals[IdxInvLastClaimedHeight]) | |
532 | 532 | let newTotals = makeString([toString(totalsTotalAmount), toString((totalsRemainingAmount - investorRemainingAmount)), toString(totalsClaimedPriceAssetAmount), toString(totalsClaimedIdoAssetAmount), toString(totalsLastClaimedHeight)], SEP) | |
533 | 533 | [StringEntry(keyInvestor(userAddress58), newInvestor), StringEntry(keyTotals(), newTotals)] | |
534 | 534 | } | |
535 | 535 | else throw("Strict value is not equal to itself.") | |
536 | 536 | } | |
537 | 537 | else throw("Strict value is not equal to itself.") | |
538 | 538 | } | |
539 | 539 | ||
540 | 540 | ||
541 | 541 | ||
542 | 542 | @Callable(i) | |
543 | 543 | func claimREADONLY (claimedAssetId58,userAddress58) = { | |
544 | 544 | let claimResultTuple = internalClaim(claimedAssetId58, addressFromStringValue(userAddress58), fromBase58String("")) | |
545 | 545 | let totalsDiff = claimResultTuple._1 | |
546 | 546 | let outAmount = claimResultTuple._2 | |
547 | 547 | let outAssetId = claimResultTuple._3 | |
548 | 548 | let origInvestArray = claimResultTuple._4 | |
549 | 549 | let newClaimPeriodHeight = claimResultTuple._5 | |
550 | 550 | let availableToClaimArray = claimResultTuple._6 | |
551 | 551 | let availablePriceAmountToClaim = availableToClaimArray[0] | |
552 | 552 | let availableIdoAmountToClaim = availableToClaimArray[1] | |
553 | 553 | $Tuple2(nil, makeString(["%s%d%d", userAddress58, toString(availablePriceAmountToClaim), toString(availableIdoAmountToClaim)], SEP)) | |
554 | 554 | } | |
555 | 555 | ||
556 | 556 | ||
557 | 557 | ||
558 | 558 | @Callable(i) | |
559 | 559 | func claimV2READONLY (claimedAssetId58,userAddress58) = { | |
560 | 560 | let claimResultTuple = internalClaim(claimedAssetId58, addressFromStringValue(userAddress58), fromBase58String("")) | |
561 | 561 | let totalsDiff = claimResultTuple._1 | |
562 | 562 | let outAmount = claimResultTuple._2 | |
563 | 563 | let outAssetId = claimResultTuple._3 | |
564 | 564 | let origInvestArray = claimResultTuple._4 | |
565 | 565 | let newClaimPeriodHeight = claimResultTuple._5 | |
566 | 566 | let availableToClaimArray = claimResultTuple._6 | |
567 | 567 | let availablePriceAmountToClaim = availableToClaimArray[0] | |
568 | 568 | let availableIdoAmountToClaim = availableToClaimArray[1] | |
569 | 569 | let cfgArray = readConfigArray() | |
570 | 570 | let priceAssetId58 = cfgArray[IdxCfgPriceAssetId] | |
571 | 571 | let priceAssetBalance = valueOrElse(getInteger(keyPriceAssetBalance(userAddress58)), 0) | |
572 | 572 | let priceAssetBalanceIdoDecimals = (priceAssetBalance * 100) | |
573 | 573 | let availableIdoAmountToClaimWithPriceAssetBalance = (availableIdoAmountToClaim + priceAssetBalanceIdoDecimals) | |
574 | - | let $ | |
575 | - | let periodMinAvailableToClaim = $ | |
576 | - | let periodTotalAvailableToClaim = $ | |
577 | - | let periodUserAvailableToClaim = $ | |
578 | - | let totalUserAvailableToClaim = $ | |
579 | - | let usdtPriceAssetAllowableRatio = $ | |
580 | - | let currentUsdtPriceAssetRatio = $ | |
581 | - | let endPeriodBlocksLeft = $ | |
582 | - | let updatedCurrentPeriod = $ | |
583 | - | let periodStart = $ | |
584 | - | let periodEnd = $ | |
574 | + | let $t03060331015 = internalClaimV2(priceAssetId58, userAddress58, outAmount, totalsDiff[IdxDiffClaimedPriceAmountIncrement]) | |
575 | + | let periodMinAvailableToClaim = $t03060331015._1 | |
576 | + | let periodTotalAvailableToClaim = $t03060331015._2 | |
577 | + | let periodUserAvailableToClaim = $t03060331015._3 | |
578 | + | let totalUserAvailableToClaim = $t03060331015._4 | |
579 | + | let usdtPriceAssetAllowableRatio = $t03060331015._5 | |
580 | + | let currentUsdtPriceAssetRatio = $t03060331015._6 | |
581 | + | let endPeriodBlocksLeft = $t03060331015._7 | |
582 | + | let updatedCurrentPeriod = $t03060331015._8 | |
583 | + | let periodStart = $t03060331015._9 | |
584 | + | let periodEnd = $t03060331015._10 | |
585 | 585 | let currentPeriodEndHeight = valueOrElse(getInteger(keyPeriodEndHeight(updatedCurrentPeriod)), 0) | |
586 | 586 | let userTotalPriceAssetClaimed = (parseIntValue(readInvestorArrayOrFail(userAddress58)[IdxInvClaimedPriceAssetAmount]) - priceAssetBalance) | |
587 | 587 | let resultString = if ((height > currentPeriodEndHeight)) | |
588 | 588 | then { | |
589 | 589 | let periodLenght = value(getInteger(keyPeriodLength())) | |
590 | 590 | let userPeriodAllowance = value(getInteger(keyUserPeriodAllowance(priceAssetId58))) | |
591 | 591 | let totalPeriodAllowance = value(getInteger(keyTotalPeriodAllowance(priceAssetId58))) | |
592 | 592 | makeString(["%d%d%d%d%d%d", toString(availableIdoAmountToClaimWithPriceAssetBalance), toString(userPeriodAllowance), toString(totalPeriodAllowance), toString(usdtPriceAssetAllowableRatio), toString(currentUsdtPriceAssetRatio), toString(periodLenght), toString(userTotalPriceAssetClaimed)], SEP) | |
593 | 593 | } | |
594 | 594 | else makeString(["%d%d%d%d%d%d", toString(availableIdoAmountToClaimWithPriceAssetBalance), toString(periodMinAvailableToClaim), toString(periodTotalAvailableToClaim), toString(usdtPriceAssetAllowableRatio), toString(currentUsdtPriceAssetRatio), toString(endPeriodBlocksLeft), toString(userTotalPriceAssetClaimed)], SEP) | |
595 | 595 | $Tuple2(nil, resultString) | |
596 | 596 | } | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | ||
600 | 600 | @Callable(i) | |
601 | 601 | func setManager (pendingManagerPublicKey) = { | |
602 | 602 | let checkCaller = mustManager(i) | |
603 | 603 | if ((checkCaller == checkCaller)) | |
604 | 604 | then { | |
605 | 605 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
606 | 606 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
607 | 607 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
608 | 608 | else throw("Strict value is not equal to itself.") | |
609 | 609 | } | |
610 | 610 | else throw("Strict value is not equal to itself.") | |
611 | 611 | } | |
612 | 612 | ||
613 | 613 | ||
614 | 614 | ||
615 | 615 | @Callable(i) | |
616 | 616 | func confirmManager () = { | |
617 | 617 | let pm = pendingManagerPublicKeyOrUnit() | |
618 | 618 | let hasPM = if (isDefined(pm)) | |
619 | 619 | then true | |
620 | 620 | else throw("No pending manager") | |
621 | 621 | if ((hasPM == hasPM)) | |
622 | 622 | then { | |
623 | 623 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
624 | 624 | then true | |
625 | 625 | else throw("You are not pending manager") | |
626 | 626 | if ((checkPM == checkPM)) | |
627 | 627 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
628 | 628 | else throw("Strict value is not equal to itself.") | |
629 | 629 | } | |
630 | 630 | else throw("Strict value is not equal to itself.") | |
631 | 631 | } | |
632 | 632 | ||
633 | 633 | ||
634 | 634 | @Verifier(tx) | |
635 | 635 | func verify () = { | |
636 | 636 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
637 | 637 | case pk: ByteVector => | |
638 | 638 | pk | |
639 | 639 | case _: Unit => | |
640 | 640 | tx.senderPublicKey | |
641 | 641 | case _ => | |
642 | 642 | throw("Match error") | |
643 | 643 | } | |
644 | 644 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
645 | 645 | } | |
646 | 646 |
github/deemru/w8io/026f985 66.32 ms ◑