tx · 4TuVx77Gw9N4vsNGS4WkvzxxuBPMPnHnT2qiAcnwdaYZ 3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT: -0.01400000 Waves 2021.06.08 16:03 [1561414] smart account 3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT > SELF 0.00000000 Waves
{ "type": 13, "id": "4TuVx77Gw9N4vsNGS4WkvzxxuBPMPnHnT2qiAcnwdaYZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1623157473002, "version": 2, "chainId": 84, "sender": "3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT", "senderPublicKey": "3ijdmxaYrpDFsKVbQH2kvB7i6JzHj9bep9bGWiQPra2D", "proofs": [ "2smM8KCPxs7jLdZvdsE6UcXznQjQBDGAdD6adb9VmPyviCwVF1SUsebXi8H4Z7zBpKwRyrPLafmdQQQK3NqLK4QZ" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAABUAAAAAAxhZG1pblB1YktleTEBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTIBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTMBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAC2tTaGFyZUxpbWl0AgAAABxzaGFyZV9saW1pdF9vbl9maXJzdF9oYXJ2ZXN0AAAAABxrZXlSZXdhcmRQb29sRnJhY3Rpb25DdXJyZW50AgAAAB1fY3VycmVudF9wb29sX2ZyYWN0aW9uX3Jld2FyZAAAAAAda2V5UmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCAAAAHl9wcmV2aW91c19wb29sX2ZyYWN0aW9u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GFpbWVkQW1vdW50TmV3CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAARwb29sAgAAAAFfCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAca2V5VXNlclNXT1BMYXN0Q2xhaW1lZEFtb3VudAUAAAALY2xhaW1BbW91bnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1hdmFpbGFibGVGdW5kBQAAAARTV09QBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkDJxf2", "height": 1561414, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4ZzKWWxeVCpKBDFrfkRRmziHWh5aGSzhY2D3sXNst7B6 Next: 8m8qDvUyiPewjxwFuGJvuW1cdPwMS1BW5PZb4n1srt4d Diff:
Old | New | Differences | |
---|---|---|---|
385 | 385 | let rewardUpdateHeight = $t01511615219._2 | |
386 | 386 | let previousRewardPerBlock = $t01511615219._3 | |
387 | 387 | let poolRewardUpdateHeight = $t01511615219._4 | |
388 | - | [ | |
388 | + | [IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)] | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | 393 | @Callable(i) | |
394 | 394 | func lockShareTokens (pool) = { | |
395 | - | let $ | |
396 | - | let pmtAmount = $ | |
397 | - | let pmtAssetId = $ | |
398 | - | let $ | |
399 | - | let pmtStrAssetId = $ | |
400 | - | let pmtAssetName = $ | |
401 | - | let pmtDecimals = $ | |
402 | - | let $ | |
403 | - | let userNewInterest = $ | |
404 | - | let currentInterest = $ | |
405 | - | let claimAmount = $ | |
406 | - | let userShareTokensAmount = $ | |
395 | + | let $t01546615541 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
396 | + | let pmtAmount = $t01546615541._1 | |
397 | + | let pmtAssetId = $t01546615541._2 | |
398 | + | let $t01554615619 = getAssetInfo(pmtAssetId) | |
399 | + | let pmtStrAssetId = $t01554615619._1 | |
400 | + | let pmtAssetName = $t01554615619._2 | |
401 | + | let pmtDecimals = $t01554615619._3 | |
402 | + | let $t01562415732 = claimCalc(pool, i.caller, pmtAmount) | |
403 | + | let userNewInterest = $t01562415732._1 | |
404 | + | let currentInterest = $t01562415732._2 | |
405 | + | let claimAmount = $t01562415732._3 | |
406 | + | let userShareTokensAmount = $t01562415732._4 | |
407 | 407 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
408 | 408 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
409 | 409 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
460 | 460 | @Callable(i) | |
461 | 461 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = { | |
462 | 462 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
463 | - | let $ | |
464 | - | let userNewInterest = $ | |
465 | - | let currentInterest = $ | |
466 | - | let claimAmount = $ | |
467 | - | let userShareTokensAmount = $ | |
463 | + | let $t02002720127 = claimCalc(pool, i.caller, 1) | |
464 | + | let userNewInterest = $t02002720127._1 | |
465 | + | let currentInterest = $t02002720127._2 | |
466 | + | let claimAmount = $t02002720127._3 | |
467 | + | let userShareTokensAmount = $t02002720127._4 | |
468 | 468 | let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount) | |
469 | 469 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
470 | 470 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
481 | 481 | @Callable(i) | |
482 | 482 | func claim (pool) = { | |
483 | 483 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
484 | - | let $ | |
485 | - | let lastInterestHeight = $ | |
486 | - | let lastInterest = $ | |
487 | - | let $ | |
488 | - | let currentRewardPerBlock = $ | |
489 | - | let rewardUpdateHeight = $ | |
490 | - | let previousRewardPerBlock = $ | |
491 | - | let poolRewardUpdateHeight = $ | |
492 | - | let $ | |
493 | - | let userNewInterest = $ | |
494 | - | let currentInterest = $ | |
495 | - | let claimAmount = $ | |
496 | - | let userShareTokensAmount = $ | |
484 | + | let $t02164021705 = getLastInterestInfo(pool) | |
485 | + | let lastInterestHeight = $t02164021705._1 | |
486 | + | let lastInterest = $t02164021705._2 | |
487 | + | let $t02171021822 = rewardInfo(pool) | |
488 | + | let currentRewardPerBlock = $t02171021822._1 | |
489 | + | let rewardUpdateHeight = $t02171021822._2 | |
490 | + | let previousRewardPerBlock = $t02171021822._3 | |
491 | + | let poolRewardUpdateHeight = $t02171021822._4 | |
492 | + | let $t02182721927 = claimCalc(pool, i.caller, 1) | |
493 | + | let userNewInterest = $t02182721927._1 | |
494 | + | let currentInterest = $t02182721927._2 | |
495 | + | let claimAmount = $t02182721927._3 | |
496 | + | let userShareTokensAmount = $t02182721927._4 | |
497 | 497 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
498 | 498 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
499 | 499 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | 10 | let keyShareTokensLocked = "_total_share_tokens_locked" | |
11 | 11 | ||
12 | 12 | let kShareLimit = "share_limit_on_first_harvest" | |
13 | 13 | ||
14 | 14 | let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
15 | 15 | ||
16 | 16 | let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
17 | 17 | ||
18 | 18 | let keyHeightPoolFraction = "_reward_update_height" | |
19 | 19 | ||
20 | 20 | let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current" | |
21 | 21 | ||
22 | 22 | let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous" | |
23 | 23 | ||
24 | 24 | let keyRewardUpdateHeight = "reward_update_height" | |
25 | 25 | ||
26 | 26 | let keyLastInterest = "_last_interest" | |
27 | 27 | ||
28 | 28 | let keyLastInterestHeight = "_last_interest_height" | |
29 | 29 | ||
30 | 30 | let keyUserShareTokensLocked = "_share_tokens_locked" | |
31 | 31 | ||
32 | 32 | let keyUserLastInterest = "_last_interest" | |
33 | 33 | ||
34 | 34 | let keySWOPid = "SWOP_id" | |
35 | 35 | ||
36 | 36 | let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount" | |
37 | 37 | ||
38 | 38 | let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount" | |
39 | 39 | ||
40 | 40 | let keyAvailableSWOP = "_available_SWOP" | |
41 | 41 | ||
42 | 42 | let keyFarmingStartHeight = "farming_start_height" | |
43 | 43 | ||
44 | 44 | let keyAPY = "apy" | |
45 | 45 | ||
46 | 46 | let kPreviousTotalVoteSWOP = "previous_total_vote_SWOP" | |
47 | 47 | ||
48 | 48 | let keySwopYearEmission = "swop_year_emission" | |
49 | 49 | ||
50 | 50 | let keyBalancecpmmA = "A_asset_balance" | |
51 | 51 | ||
52 | 52 | let keyBalancecpmmB = "B_asset_balance" | |
53 | 53 | ||
54 | 54 | let kHarvestPoolActiveVoteStrucVoting = "_harvest_pool_activeVote_struc" | |
55 | 55 | ||
56 | 56 | let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_activeVote_struc" | |
57 | 57 | ||
58 | 58 | let keyLimitShareFirstHarvest = "share_limit_on_first_harvest" | |
59 | 59 | ||
60 | 60 | let keyAssetIdA = "A_asset_id" | |
61 | 61 | ||
62 | 62 | let keyAssetIdB = "B_asset_id" | |
63 | 63 | ||
64 | 64 | let keyFirstHarvestHeight = "first_harvest_height" | |
65 | 65 | ||
66 | 66 | let keyfirstHarvestCpmm = "first_harvest" | |
67 | 67 | ||
68 | 68 | let governanceAddress = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
69 | 69 | ||
70 | 70 | let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
71 | 71 | ||
72 | 72 | let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
73 | 73 | ||
74 | 74 | let adminIncreaseInterestAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
75 | 75 | ||
76 | 76 | let oneWeekInBlock = 10106 | |
77 | 77 | ||
78 | 78 | let totalVoteShare = 10000000000 | |
79 | 79 | ||
80 | 80 | let scaleValue1 = 10 | |
81 | 81 | ||
82 | 82 | let scaleValue3 = 1000 | |
83 | 83 | ||
84 | 84 | let scaleValue5 = 100000 | |
85 | 85 | ||
86 | 86 | let scaleValue6 = 1000000 | |
87 | 87 | ||
88 | 88 | let scaleValue8 = 100000000 | |
89 | 89 | ||
90 | 90 | let scaleValue11 = 100000000000 | |
91 | 91 | ||
92 | 92 | func strAssetIdA (pool) = getStringValue(pool, keyAssetIdA) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func strAssetIdB (pool) = getStringValue(pool, keyAssetIdB) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func assetIdA (pool) = if ((strAssetIdA(pool) == "WAVES")) | |
99 | 99 | then unit | |
100 | 100 | else fromBase58String(strAssetIdA(pool)) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func assetIdB (pool) = if ((strAssetIdB(pool) == "WAVES")) | |
104 | 104 | then unit | |
105 | 105 | else fromBase58String(strAssetIdB(pool)) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let kBasePeriod = "base_period" | |
109 | 109 | ||
110 | 110 | let kPeriodLength = "period_length" | |
111 | 111 | ||
112 | 112 | let kStartHeight = "start_height" | |
113 | 113 | ||
114 | 114 | let kFirstHarvestHeight = "first_harvest_height" | |
115 | 115 | ||
116 | 116 | let kDurationFullVotePower = "duration_full_vote_power" | |
117 | 117 | ||
118 | 118 | let kMinVotePower = "min_vote_power" | |
119 | 119 | ||
120 | 120 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
121 | 121 | ||
122 | 122 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
123 | 123 | ||
124 | 124 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
125 | 125 | ||
126 | 126 | let durationFullVotePower = valueOrErrorMessage(getInteger(votingAddress, kDurationFullVotePower), "Empty kDurationFullVotePower") | |
127 | 127 | ||
128 | 128 | let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower") | |
129 | 129 | ||
130 | 130 | let currPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
131 | 131 | ||
132 | 132 | func getLimitToken (pool) = valueOrElse(getIntegerValue(pool, keyLimitShareFirstHarvest), 0) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | let APY = getIntegerValue(this, keyAPY) | |
136 | 136 | ||
137 | 137 | let SwopYearEmission = getIntegerValue(this, keySwopYearEmission) | |
138 | 138 | ||
139 | 139 | func assetNameA (pool) = match assetIdA(pool) { | |
140 | 140 | case id: ByteVector => | |
141 | 141 | value(assetInfo(id)).name | |
142 | 142 | case waves: Unit => | |
143 | 143 | "WAVES" | |
144 | 144 | case _ => | |
145 | 145 | throw("Match error") | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func assetNameB (pool) = match assetIdB(pool) { | |
150 | 150 | case id: ByteVector => | |
151 | 151 | value(assetInfo(id)).name | |
152 | 152 | case waves: Unit => | |
153 | 153 | "WAVES" | |
154 | 154 | case _ => | |
155 | 155 | throw("Match error") | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | let SWOP = fromBase58String(getStringValue(this, keySWOPid)) | |
160 | 160 | ||
161 | 161 | func isFirstHarvest (pool) = valueOrElse(getBoolean(pool, keyfirstHarvestCpmm), false) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func getHeightFirstHarvest (pool) = valueOrElse(getInteger(pool, keyFirstHarvestHeight), 0) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func getBalanceA (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmA), ("No data on the key: " + keyBalancecpmmA)) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB)) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func getShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimit), ("No data on the key: " + kShareLimit)) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked)) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func getAssetInfo (assetId) = match assetId { | |
183 | 183 | case id: ByteVector => | |
184 | 184 | let stringId = toBase58String(id) | |
185 | 185 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
186 | 186 | $Tuple3(stringId, info.name, info.decimals) | |
187 | 187 | case waves: Unit => | |
188 | 188 | $Tuple3("WAVES", "WAVES", 8) | |
189 | 189 | case _ => | |
190 | 190 | throw("Match error") | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func calcScaleValue (assetId1,assetId2) = { | |
195 | 195 | let assetId1Decimals = value(assetInfo(assetId1)).decimals | |
196 | 196 | let assetId2Decimals = value(assetInfo(assetId2)).decimals | |
197 | 197 | let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8) | |
198 | 198 | pow(10, 0, scaleDigits, 0, 0, HALFDOWN) | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func rewardInfo (pool) = { | |
206 | 206 | let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress))) | |
207 | 207 | let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress))) | |
208 | 208 | let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress))) | |
209 | 209 | let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress))) | |
210 | 210 | let poolRewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyHeightPoolFraction)), (((("No data on the key: " + pool) + keyHeightPoolFraction) + " at address ") + toString(governanceAddress))) | |
211 | 211 | let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress))) | |
212 | 212 | let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare) | |
213 | 213 | let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare) | |
214 | 214 | if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent)) | |
215 | 215 | then true | |
216 | 216 | else (rewardPoolPrevious > totalRewardPerBlockPrevious)) | |
217 | 217 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
218 | 218 | else $Tuple4(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight) | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func getLastInterestInfo (pool) = { | |
223 | 223 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
224 | 224 | let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height) | |
225 | 225 | $Tuple2(lastInterestHeight, lastInterest) | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func getUserInterestInfo (pool,userAddress) = { | |
230 | 230 | let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest)) | |
231 | 231 | let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked)) | |
232 | 232 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
233 | 233 | let userLastInterestValue = match userLastInterest { | |
234 | 234 | case userLastInterest: Int => | |
235 | 235 | userLastInterest | |
236 | 236 | case _ => | |
237 | 237 | lastInterest | |
238 | 238 | } | |
239 | 239 | let userShareTokensAmount = match userShare { | |
240 | 240 | case userShare: Int => | |
241 | 241 | userShare | |
242 | 242 | case _ => | |
243 | 243 | 0 | |
244 | 244 | } | |
245 | 245 | $Tuple2(userLastInterestValue, userShareTokensAmount) | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func calcInterest (lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0)) | |
250 | 250 | then 0 | |
251 | 251 | else if (if ((rewardUpdateHeight >= height)) | |
252 | 252 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
253 | 253 | else false) | |
254 | 254 | then { | |
255 | 255 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
256 | 256 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
257 | 257 | } | |
258 | 258 | else if (if ((height > rewardUpdateHeight)) | |
259 | 259 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
260 | 260 | else false) | |
261 | 261 | then { | |
262 | 262 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
263 | 263 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
264 | 264 | } | |
265 | 265 | else if (if ((height > rewardUpdateHeight)) | |
266 | 266 | then (rewardUpdateHeight != poolRewardUpdateHeight) | |
267 | 267 | else false) | |
268 | 268 | then { | |
269 | 269 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
270 | 270 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
271 | 271 | } | |
272 | 272 | else if ((lastInterestHeight > rewardUpdateHeight)) | |
273 | 273 | then { | |
274 | 274 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
275 | 275 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
276 | 276 | } | |
277 | 277 | else { | |
278 | 278 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
279 | 279 | let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked)) | |
280 | 280 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
281 | 281 | (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked)) | |
282 | 282 | } | |
283 | 283 | ||
284 | 284 | ||
285 | 285 | func claimCalc (pool,caller,pmtAmount) = { | |
286 | 286 | let shareAssetId = getShareAssetId(pool) | |
287 | 287 | let scaleValue = calcScaleValue(SWOP, shareAssetId) | |
288 | 288 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
289 | 289 | let $t01185711922 = getLastInterestInfo(pool) | |
290 | 290 | let lastInterestHeight = $t01185711922._1 | |
291 | 291 | let lastInterest = $t01185711922._2 | |
292 | 292 | let $t01192712039 = rewardInfo(pool) | |
293 | 293 | let currentRewardPerBlock = $t01192712039._1 | |
294 | 294 | let rewardUpdateHeight = $t01192712039._2 | |
295 | 295 | let previousRewardPerBlock = $t01192712039._3 | |
296 | 296 | let poolRewardUpdateHeight = $t01192712039._4 | |
297 | 297 | let $t01204412123 = getUserInterestInfo(pool, caller) | |
298 | 298 | let userLastInterest = $t01204412123._1 | |
299 | 299 | let userShareTokensAmount = $t01204412123._2 | |
300 | 300 | let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount) | |
301 | 301 | let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue) | |
302 | 302 | let userNewInterest = currentInterest | |
303 | 303 | $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount) | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func calculateProtocolReward (pool) = { | |
308 | 308 | let $t01261912684 = getLastInterestInfo(pool) | |
309 | 309 | let lastInterestHeight = $t01261912684._1 | |
310 | 310 | let lastInterest = $t01261912684._2 | |
311 | 311 | let $t01268912800 = rewardInfo(pool) | |
312 | 312 | let currentRewardPerBlock = $t01268912800._1 | |
313 | 313 | let rewardUpdateHeight = $t01268912800._2 | |
314 | 314 | let previousRewardPerBlock = $t01268912800._3 | |
315 | 315 | let poolRewardUpdateHeight = $t01268912800._4 | |
316 | 316 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
317 | 317 | if ((shareTokenLocked == 0)) | |
318 | 318 | then if ((rewardUpdateHeight > height)) | |
319 | 319 | then { | |
320 | 320 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
321 | 321 | reward | |
322 | 322 | } | |
323 | 323 | else if ((lastInterestHeight > rewardUpdateHeight)) | |
324 | 324 | then { | |
325 | 325 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
326 | 326 | reward | |
327 | 327 | } | |
328 | 328 | else { | |
329 | 329 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
330 | 330 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
331 | 331 | (reward + rewardAfterLastInterestBeforeReawardUpdate) | |
332 | 332 | } | |
333 | 333 | else 0 | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | func checkPmtAssetIdCorrect (pool,pmtAssetId) = { | |
338 | 338 | let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
339 | 339 | if ((pmtAssetId == poolShareAssetId)) | |
340 | 340 | then true | |
341 | 341 | else false | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0) | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | @Callable(i) | |
349 | 349 | func init (earlyLP) = if (isDefined(getString(this, keySWOPid))) | |
350 | 350 | then throw("SWOP already initialized") | |
351 | 351 | else { | |
352 | 352 | let initAmount = 100000000000000 | |
353 | 353 | let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true) | |
354 | 354 | let SWOPid = calculateAssetId(SWOPissue) | |
355 | 355 | [Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))] | |
356 | 356 | } | |
357 | 357 | ||
358 | 358 | ||
359 | 359 | ||
360 | 360 | @Callable(i) | |
361 | 361 | func initPoolShareFarming (pool) = if ((i.caller != this)) | |
362 | 362 | then throw("Only the DApp itself can call this function") | |
363 | 363 | else { | |
364 | 364 | let $t01455014653 = rewardInfo(pool) | |
365 | 365 | let currentReward = $t01455014653._1 | |
366 | 366 | let rewardUpdateHeight = $t01455014653._2 | |
367 | 367 | let previousRewardPerBlock = $t01455014653._3 | |
368 | 368 | let poolRewardUpdateHeight = $t01455014653._4 | |
369 | 369 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)] | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | ||
374 | 374 | @Callable(i) | |
375 | 375 | func updatePoolInterest (pool) = if ((i.caller != wallet)) | |
376 | 376 | then throw("Only the Admin itself can call this function") | |
377 | 377 | else { | |
378 | 378 | let $t01499115111 = claimCalc(pool, adminIncreaseInterestAddress, 0) | |
379 | 379 | let userNewInterest = $t01499115111._1 | |
380 | 380 | let currentInterest = $t01499115111._2 | |
381 | 381 | let claimAmount = $t01499115111._3 | |
382 | 382 | let userShareTokensAmount = $t01499115111._4 | |
383 | 383 | let $t01511615219 = rewardInfo(pool) | |
384 | 384 | let currentReward = $t01511615219._1 | |
385 | 385 | let rewardUpdateHeight = $t01511615219._2 | |
386 | 386 | let previousRewardPerBlock = $t01511615219._3 | |
387 | 387 | let poolRewardUpdateHeight = $t01511615219._4 | |
388 | - | [ | |
388 | + | [IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)] | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | 393 | @Callable(i) | |
394 | 394 | func lockShareTokens (pool) = { | |
395 | - | let $ | |
396 | - | let pmtAmount = $ | |
397 | - | let pmtAssetId = $ | |
398 | - | let $ | |
399 | - | let pmtStrAssetId = $ | |
400 | - | let pmtAssetName = $ | |
401 | - | let pmtDecimals = $ | |
402 | - | let $ | |
403 | - | let userNewInterest = $ | |
404 | - | let currentInterest = $ | |
405 | - | let claimAmount = $ | |
406 | - | let userShareTokensAmount = $ | |
395 | + | let $t01546615541 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
396 | + | let pmtAmount = $t01546615541._1 | |
397 | + | let pmtAssetId = $t01546615541._2 | |
398 | + | let $t01554615619 = getAssetInfo(pmtAssetId) | |
399 | + | let pmtStrAssetId = $t01554615619._1 | |
400 | + | let pmtAssetName = $t01554615619._2 | |
401 | + | let pmtDecimals = $t01554615619._3 | |
402 | + | let $t01562415732 = claimCalc(pool, i.caller, pmtAmount) | |
403 | + | let userNewInterest = $t01562415732._1 | |
404 | + | let currentInterest = $t01562415732._2 | |
405 | + | let claimAmount = $t01562415732._3 | |
406 | + | let userShareTokensAmount = $t01562415732._4 | |
407 | 407 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
408 | 408 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
409 | 409 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
410 | 410 | let totalShareAmountNew = (totalShareAmount + pmtAmount) | |
411 | 411 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
412 | 412 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
413 | 413 | let baseEntry = [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew)] | |
414 | 414 | if ((0 >= pmtAmount)) | |
415 | 415 | then throw("You can't lock token") | |
416 | 416 | else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId))) | |
417 | 417 | then throw("Incorrect pmtAssetId") | |
418 | 418 | else if (if (isFirstHarvest(Address(fromBase58String(pool)))) | |
419 | 419 | then (getHeightFirstHarvest(Address(fromBase58String(pool))) > height) | |
420 | 420 | else false) | |
421 | 421 | then { | |
422 | 422 | let harvestPeriod = ((((getHeightFirstHarvest(Address(fromBase58String(pool))) - startHeight) + 1) / periodLength) - 1) | |
423 | 423 | let amountOfVoting = split(getStringValue(votingAddress, (((toString(i.caller) + "_") + pool) + "_user_pool_struc")), "_") | |
424 | 424 | let amountPoolStract = split(getStringValue(votingAddress, (pool + "_pool_struc")), "_") | |
425 | 425 | let amountActiveVoteUserPoolStract = split(valueOrElse(getString(votingAddress, (((toString(i.caller) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), ""), "_") | |
426 | 426 | let amountPoolActiveVoteStract = split(valueOrElse(getString(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), ""), "_") | |
427 | 427 | let userShareTokenLocked = userShareTokensAmount | |
428 | 428 | let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2])) | |
429 | 429 | then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0) | |
430 | 430 | else valueOrElse(parseInt(amountOfVoting[1]), 0) | |
431 | 431 | let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2])) | |
432 | 432 | then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0) | |
433 | 433 | else valueOrElse(parseInt(amountPoolStract[1]), 0) | |
434 | 434 | let protocolReward = calculateProtocolReward(pool) | |
435 | 435 | if ((userPoolActiveVote != 0)) | |
436 | 436 | then { | |
437 | 437 | let limitShareToken = getShareLimitToken(addressFromStringValue(pool)) | |
438 | 438 | let shareToken = (fraction(limitShareToken, userPoolActiveVote, poolActiveVote) - userShareTokenLocked) | |
439 | 439 | if (if ((size(amountActiveVoteUserPoolStract) > 1)) | |
440 | 440 | then (valueOrElse(parseInt(amountActiveVoteUserPoolStract[1]), 0) >= harvestPeriod) | |
441 | 441 | else false) | |
442 | 442 | then throw("You can't share token") | |
443 | 443 | else if ((pmtAmount > limitShareToken)) | |
444 | 444 | then throw(("You can't share token more than " + toString(limitShareToken))) | |
445 | 445 | else if ((shareToken > 0)) | |
446 | 446 | then if ((totalShareAmount == 0)) | |
447 | 447 | then (baseEntry ++ [ScriptTransfer(wallet, protocolReward, SWOP)]) | |
448 | 448 | else if ((shareToken >= pmtAmount)) | |
449 | 449 | then baseEntry | |
450 | 450 | else throw(("Your maximum share token is " + toString(shareToken))) | |
451 | 451 | else throw("You can't share token") | |
452 | 452 | } | |
453 | 453 | else throw("Your amount of token less than 0") | |
454 | 454 | } | |
455 | 455 | else baseEntry | |
456 | 456 | } | |
457 | 457 | ||
458 | 458 | ||
459 | 459 | ||
460 | 460 | @Callable(i) | |
461 | 461 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = { | |
462 | 462 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
463 | - | let $ | |
464 | - | let userNewInterest = $ | |
465 | - | let currentInterest = $ | |
466 | - | let claimAmount = $ | |
467 | - | let userShareTokensAmount = $ | |
463 | + | let $t02002720127 = claimCalc(pool, i.caller, 1) | |
464 | + | let userNewInterest = $t02002720127._1 | |
465 | + | let currentInterest = $t02002720127._2 | |
466 | + | let claimAmount = $t02002720127._3 | |
467 | + | let userShareTokensAmount = $t02002720127._4 | |
468 | 468 | let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount) | |
469 | 469 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
470 | 470 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
471 | 471 | let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount) | |
472 | 472 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
473 | 473 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
474 | 474 | if ((shareTokensWithdrawAmount > userShareTokensAmount)) | |
475 | 475 | then throw("Withdraw amount more then user locked amount") | |
476 | 476 | else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)] | |
477 | 477 | } | |
478 | 478 | ||
479 | 479 | ||
480 | 480 | ||
481 | 481 | @Callable(i) | |
482 | 482 | func claim (pool) = { | |
483 | 483 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
484 | - | let $ | |
485 | - | let lastInterestHeight = $ | |
486 | - | let lastInterest = $ | |
487 | - | let $ | |
488 | - | let currentRewardPerBlock = $ | |
489 | - | let rewardUpdateHeight = $ | |
490 | - | let previousRewardPerBlock = $ | |
491 | - | let poolRewardUpdateHeight = $ | |
492 | - | let $ | |
493 | - | let userNewInterest = $ | |
494 | - | let currentInterest = $ | |
495 | - | let claimAmount = $ | |
496 | - | let userShareTokensAmount = $ | |
484 | + | let $t02164021705 = getLastInterestInfo(pool) | |
485 | + | let lastInterestHeight = $t02164021705._1 | |
486 | + | let lastInterest = $t02164021705._2 | |
487 | + | let $t02171021822 = rewardInfo(pool) | |
488 | + | let currentRewardPerBlock = $t02171021822._1 | |
489 | + | let rewardUpdateHeight = $t02171021822._2 | |
490 | + | let previousRewardPerBlock = $t02171021822._3 | |
491 | + | let poolRewardUpdateHeight = $t02171021822._4 | |
492 | + | let $t02182721927 = claimCalc(pool, i.caller, 1) | |
493 | + | let userNewInterest = $t02182721927._1 | |
494 | + | let currentInterest = $t02182721927._2 | |
495 | + | let claimAmount = $t02182721927._3 | |
496 | + | let userShareTokensAmount = $t02182721927._4 | |
497 | 497 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
498 | 498 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
499 | 499 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
500 | 500 | if ((availableFund == 0)) | |
501 | 501 | then throw("You have 0 available SWOP") | |
502 | 502 | else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, availableFund, SWOP)] | |
503 | 503 | } | |
504 | 504 | ||
505 | 505 | ||
506 | 506 | @Verifier(tx) | |
507 | 507 | func verify () = match tx { | |
508 | 508 | case _ => | |
509 | 509 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
510 | 510 | } | |
511 | 511 |
github/deemru/w8io/169f3d6 83.26 ms ◑