tx · 6J3xEoD8sZNpRnKNFBbpAj3hGhHy5XUyEHJ3aTavcjWQ 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC: -0.01400000 Waves 2021.05.30 23:46 [1548898] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves
{ "type": 13, "id": "6J3xEoD8sZNpRnKNFBbpAj3hGhHy5XUyEHJ3aTavcjWQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1622407617251, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "3d5uKRD5hhWsUiN8d6SJcn1NvabJmtPLiWgTDuwJmiBX2h3C19UWwvx1msfhdk2hdwY6TE3pcv3RoVsuweGyKnQB" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAABVAAAAAAxhZG1pblB1YktleTEBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTIBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTMBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAC2tTaGFyZUxpbWl0AgAAABxzaGFyZV9saW1pdF9vbl9maXJzdF9oYXJ2ZXN0AAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAca2V5UmV3YXJkUG9vbEZyYWN0aW9uQ3VycmVudAIAAAAdX2N1cnJlbnRfcG9vbF9mcmFjdGlvbl9yZXdhcmQAAAAAHWtleVJld2FyZFBvb2xGcmFjdGlvblByZX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aQAAAAZjYWxsZXIFAAAAEGtleUF2YWlsYWJsZVNXT1AAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABHBvb2wCAAAAAV8JAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAABhrZXlVc2VyU1dPUENsYWltZWRBbW91bnQFAAAAFHVzZXJDbGFpbWVkQW1vdW50TmV3CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAARwb29sAgAAAAFfCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAca2V5VXNlclNXT1BMYXN0Q2xhaW1lZEFtb3VudAUAAAALY2xhaW1BbW91bnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1hdmFpbGFibGVGdW5kBQAAAARTV09QBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmJqRgJ", "height": 1548898, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CqD2ZcqD6vpPryrGrzpbEczFFfx54cJZRjNMtDs5u3G5 Next: XAMLD4ZSpzc5W9CWhzx33AvPDVVZnfDKatVDNMtQ5EV Diff:
Old | New | Differences | |
---|---|---|---|
298 | 298 | let previousRewardPerBlock = $t01170911797._3 | |
299 | 299 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
300 | 300 | if ((shareTokenLocked == 0)) | |
301 | - | then 0 | |
302 | - | else if ((rewardUpdateHeight > height)) | |
301 | + | then if ((rewardUpdateHeight > height)) | |
303 | 302 | then { | |
304 | 303 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
305 | 304 | reward | |
314 | 313 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
315 | 314 | (reward + rewardAfterLastInterestBeforeReawardUpdate) | |
316 | 315 | } | |
316 | + | else 0 | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
344 | 344 | func initPoolShareFarming (pool) = if ((i.caller != this)) | |
345 | 345 | then throw("Only the DApp itself can call this function") | |
346 | 346 | else { | |
347 | - | let $ | |
348 | - | let currentReward = $ | |
349 | - | let rewardUpdateHeight = $ | |
350 | - | let previousRewardPerBlock = $ | |
347 | + | let $t01376713847 = rewardInfo(pool) | |
348 | + | let currentReward = $t01376713847._1 | |
349 | + | let rewardUpdateHeight = $t01376713847._2 | |
350 | + | let previousRewardPerBlock = $t01376713847._3 | |
351 | 351 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)] | |
352 | 352 | } | |
353 | 353 | ||
357 | 357 | func updatePoolInterest (pool) = if ((i.caller != wallet)) | |
358 | 358 | then throw("Only the Admin itself can call this function") | |
359 | 359 | else { | |
360 | - | let $ | |
361 | - | let userNewInterest = $ | |
362 | - | let currentInterest = $ | |
363 | - | let claimAmount = $ | |
364 | - | let userShareTokensAmount = $ | |
365 | - | let $ | |
366 | - | let currentReward = $ | |
367 | - | let rewardUpdateHeight = $ | |
368 | - | let previousRewardPerBlock = $ | |
360 | + | let $t01426314383 = claimCalc(pool, adminIncreaseInterestAddress, 0) | |
361 | + | let userNewInterest = $t01426314383._1 | |
362 | + | let currentInterest = $t01426314383._2 | |
363 | + | let claimAmount = $t01426314383._3 | |
364 | + | let userShareTokensAmount = $t01426314383._4 | |
365 | + | let $t01438814468 = rewardInfo(pool) | |
366 | + | let currentReward = $t01438814468._1 | |
367 | + | let rewardUpdateHeight = $t01438814468._2 | |
368 | + | let previousRewardPerBlock = $t01438814468._3 | |
369 | 369 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)] | |
370 | 370 | } | |
371 | 371 | ||
373 | 373 | ||
374 | 374 | @Callable(i) | |
375 | 375 | func lockShareTokens (pool) = { | |
376 | - | let $ | |
377 | - | let pmtAmount = $ | |
378 | - | let pmtAssetId = $ | |
379 | - | let $ | |
380 | - | let pmtStrAssetId = $ | |
381 | - | let pmtAssetName = $ | |
382 | - | let pmtDecimals = $ | |
383 | - | let $ | |
384 | - | let userNewInterest = $ | |
385 | - | let currentInterest = $ | |
386 | - | let claimAmount = $ | |
387 | - | let userShareTokensAmount = $ | |
376 | + | let $t01471414789 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
377 | + | let pmtAmount = $t01471414789._1 | |
378 | + | let pmtAssetId = $t01471414789._2 | |
379 | + | let $t01479414867 = getAssetInfo(pmtAssetId) | |
380 | + | let pmtStrAssetId = $t01479414867._1 | |
381 | + | let pmtAssetName = $t01479414867._2 | |
382 | + | let pmtDecimals = $t01479414867._3 | |
383 | + | let $t01487214980 = claimCalc(pool, i.caller, pmtAmount) | |
384 | + | let userNewInterest = $t01487214980._1 | |
385 | + | let currentInterest = $t01487214980._2 | |
386 | + | let claimAmount = $t01487214980._3 | |
387 | + | let userShareTokensAmount = $t01487214980._4 | |
388 | 388 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
389 | 389 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
390 | 390 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
436 | 436 | @Callable(i) | |
437 | 437 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = { | |
438 | 438 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
439 | - | let $ | |
440 | - | let userNewInterest = $ | |
441 | - | let currentInterest = $ | |
442 | - | let claimAmount = $ | |
443 | - | let userShareTokensAmount = $ | |
439 | + | let $t01883018930 = claimCalc(pool, i.caller, 1) | |
440 | + | let userNewInterest = $t01883018930._1 | |
441 | + | let currentInterest = $t01883018930._2 | |
442 | + | let claimAmount = $t01883018930._3 | |
443 | + | let userShareTokensAmount = $t01883018930._4 | |
444 | 444 | let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount) | |
445 | 445 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
446 | 446 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
457 | 457 | @Callable(i) | |
458 | 458 | func claim (pool) = { | |
459 | 459 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
460 | - | let $ | |
461 | - | let lastInterestHeight = $ | |
462 | - | let lastInterest = $ | |
463 | - | let $ | |
464 | - | let currentRewardPerBlock = $ | |
465 | - | let rewardUpdateHeight = $ | |
466 | - | let previousRewardPerBlock = $ | |
467 | - | let $ | |
468 | - | let userNewInterest = $ | |
469 | - | let currentInterest = $ | |
470 | - | let claimAmount = $ | |
471 | - | let userShareTokensAmount = $ | |
460 | + | let $t02053120596 = getLastInterestInfo(pool) | |
461 | + | let lastInterestHeight = $t02053120596._1 | |
462 | + | let lastInterest = $t02053120596._2 | |
463 | + | let $t02060120690 = rewardInfo(pool) | |
464 | + | let currentRewardPerBlock = $t02060120690._1 | |
465 | + | let rewardUpdateHeight = $t02060120690._2 | |
466 | + | let previousRewardPerBlock = $t02060120690._3 | |
467 | + | let $t02069520795 = claimCalc(pool, i.caller, 1) | |
468 | + | let userNewInterest = $t02069520795._1 | |
469 | + | let currentInterest = $t02069520795._2 | |
470 | + | let claimAmount = $t02069520795._3 | |
471 | + | let userShareTokensAmount = $t02069520795._4 | |
472 | 472 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
473 | 473 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
474 | 474 | 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 keyActive = "active" | |
15 | 15 | ||
16 | 16 | let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
17 | 17 | ||
18 | 18 | let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
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'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
69 | 69 | ||
70 | 70 | let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
71 | 71 | ||
72 | 72 | let votingAddress = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN') | |
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 isActive = getBooleanValue(this, keyActive) | |
131 | 131 | ||
132 | 132 | let currPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
133 | 133 | ||
134 | 134 | func getLimitToken (pool) = valueOrElse(getIntegerValue(pool, keyLimitShareFirstHarvest), 0) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | let APY = getIntegerValue(this, keyAPY) | |
138 | 138 | ||
139 | 139 | let SwopYearEmission = getIntegerValue(this, keySwopYearEmission) | |
140 | 140 | ||
141 | 141 | func assetNameA (pool) = match assetIdA(pool) { | |
142 | 142 | case id: ByteVector => | |
143 | 143 | value(assetInfo(id)).name | |
144 | 144 | case waves: Unit => | |
145 | 145 | "WAVES" | |
146 | 146 | case _ => | |
147 | 147 | throw("Match error") | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func assetNameB (pool) = match assetIdB(pool) { | |
152 | 152 | case id: ByteVector => | |
153 | 153 | value(assetInfo(id)).name | |
154 | 154 | case waves: Unit => | |
155 | 155 | "WAVES" | |
156 | 156 | case _ => | |
157 | 157 | throw("Match error") | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | let SWOP = fromBase58String(getStringValue(this, keySWOPid)) | |
162 | 162 | ||
163 | 163 | func isFirstHarvest (pool) = valueOrElse(getBoolean(pool, keyfirstHarvestCpmm), false) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func getHeightFirstHarvest (pool) = valueOrElse(getInteger(pool, keyFirstHarvestHeight), 0) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func getBalanceA (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmA), ("No data on the key: " + keyBalancecpmmA)) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB)) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func getShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimit), ("No data on the key: " + kShareLimit)) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked)) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func getAssetInfo (assetId) = match assetId { | |
185 | 185 | case id: ByteVector => | |
186 | 186 | let stringId = toBase58String(id) | |
187 | 187 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
188 | 188 | $Tuple3(stringId, info.name, info.decimals) | |
189 | 189 | case waves: Unit => | |
190 | 190 | $Tuple3("WAVES", "WAVES", 8) | |
191 | 191 | case _ => | |
192 | 192 | throw("Match error") | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func calcScaleValue (assetId1,assetId2) = { | |
197 | 197 | let assetId1Decimals = value(assetInfo(assetId1)).decimals | |
198 | 198 | let assetId2Decimals = value(assetInfo(assetId2)).decimals | |
199 | 199 | let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8) | |
200 | 200 | pow(10, 0, scaleDigits, 0, 0, HALFDOWN) | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func rewardInfo (pool) = { | |
208 | 208 | let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress))) | |
209 | 209 | let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress))) | |
210 | 210 | let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress))) | |
211 | 211 | let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress))) | |
212 | 212 | let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress))) | |
213 | 213 | let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare) | |
214 | 214 | let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare) | |
215 | 215 | if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent)) | |
216 | 216 | then true | |
217 | 217 | else (rewardPoolPrevious > totalRewardPerBlockPrevious)) | |
218 | 218 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
219 | 219 | else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious) | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func getLastInterestInfo (pool) = { | |
224 | 224 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
225 | 225 | let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height) | |
226 | 226 | $Tuple2(lastInterestHeight, lastInterest) | |
227 | 227 | } | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func getUserInterestInfo (pool,userAddress) = { | |
231 | 231 | let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest)) | |
232 | 232 | let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked)) | |
233 | 233 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
234 | 234 | let userLastInterestValue = match userLastInterest { | |
235 | 235 | case userLastInterest: Int => | |
236 | 236 | userLastInterest | |
237 | 237 | case _ => | |
238 | 238 | lastInterest | |
239 | 239 | } | |
240 | 240 | let userShareTokensAmount = match userShare { | |
241 | 241 | case userShare: Int => | |
242 | 242 | userShare | |
243 | 243 | case _ => | |
244 | 244 | 0 | |
245 | 245 | } | |
246 | 246 | $Tuple2(userLastInterestValue, userShareTokensAmount) | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0)) | |
251 | 251 | then 0 | |
252 | 252 | else if ((rewardUpdateHeight > height)) | |
253 | 253 | then { | |
254 | 254 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
255 | 255 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
256 | 256 | } | |
257 | 257 | else if ((lastInterestHeight > rewardUpdateHeight)) | |
258 | 258 | then { | |
259 | 259 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
260 | 260 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
261 | 261 | } | |
262 | 262 | else { | |
263 | 263 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
264 | 264 | let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked)) | |
265 | 265 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
266 | 266 | (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked)) | |
267 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func claimCalc (pool,caller,pmtAmount) = { | |
271 | 271 | let shareAssetId = getShareAssetId(pool) | |
272 | 272 | let scaleValue = calcScaleValue(SWOP, shareAssetId) | |
273 | 273 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
274 | 274 | let $t01092410989 = getLastInterestInfo(pool) | |
275 | 275 | let lastInterestHeight = $t01092410989._1 | |
276 | 276 | let lastInterest = $t01092410989._2 | |
277 | 277 | let $t01099411082 = rewardInfo(pool) | |
278 | 278 | let currentRewardPerBlock = $t01099411082._1 | |
279 | 279 | let rewardUpdateHeight = $t01099411082._2 | |
280 | 280 | let previousRewardPerBlock = $t01099411082._3 | |
281 | 281 | let $t01108711166 = getUserInterestInfo(pool, caller) | |
282 | 282 | let userLastInterest = $t01108711166._1 | |
283 | 283 | let userShareTokensAmount = $t01108711166._2 | |
284 | 284 | let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount) | |
285 | 285 | let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue) | |
286 | 286 | let userNewInterest = currentInterest | |
287 | 287 | $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount) | |
288 | 288 | } | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | func calculateProtocolReward (pool) = { | |
292 | 292 | let $t01163911704 = getLastInterestInfo(pool) | |
293 | 293 | let lastInterestHeight = $t01163911704._1 | |
294 | 294 | let lastInterest = $t01163911704._2 | |
295 | 295 | let $t01170911797 = rewardInfo(pool) | |
296 | 296 | let currentRewardPerBlock = $t01170911797._1 | |
297 | 297 | let rewardUpdateHeight = $t01170911797._2 | |
298 | 298 | let previousRewardPerBlock = $t01170911797._3 | |
299 | 299 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
300 | 300 | if ((shareTokenLocked == 0)) | |
301 | - | then 0 | |
302 | - | else if ((rewardUpdateHeight > height)) | |
301 | + | then if ((rewardUpdateHeight > height)) | |
303 | 302 | then { | |
304 | 303 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
305 | 304 | reward | |
306 | 305 | } | |
307 | 306 | else if ((lastInterestHeight > rewardUpdateHeight)) | |
308 | 307 | then { | |
309 | 308 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
310 | 309 | reward | |
311 | 310 | } | |
312 | 311 | else { | |
313 | 312 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
314 | 313 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
315 | 314 | (reward + rewardAfterLastInterestBeforeReawardUpdate) | |
316 | 315 | } | |
316 | + | else 0 | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func checkPmtAssetIdCorrect (pool,pmtAssetId) = { | |
321 | 321 | let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
322 | 322 | if ((pmtAssetId == poolShareAssetId)) | |
323 | 323 | then true | |
324 | 324 | else false | |
325 | 325 | } | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0) | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | @Callable(i) | |
332 | 332 | func init (earlyLP) = if (isDefined(getString(this, keySWOPid))) | |
333 | 333 | then throw("SWOP already initialized") | |
334 | 334 | else { | |
335 | 335 | let initAmount = 100000000000000 | |
336 | 336 | let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true) | |
337 | 337 | let SWOPid = calculateAssetId(SWOPissue) | |
338 | 338 | [BooleanEntry(keyActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))] | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | ||
343 | 343 | @Callable(i) | |
344 | 344 | func initPoolShareFarming (pool) = if ((i.caller != this)) | |
345 | 345 | then throw("Only the DApp itself can call this function") | |
346 | 346 | else { | |
347 | - | let $ | |
348 | - | let currentReward = $ | |
349 | - | let rewardUpdateHeight = $ | |
350 | - | let previousRewardPerBlock = $ | |
347 | + | let $t01376713847 = rewardInfo(pool) | |
348 | + | let currentReward = $t01376713847._1 | |
349 | + | let rewardUpdateHeight = $t01376713847._2 | |
350 | + | let previousRewardPerBlock = $t01376713847._3 | |
351 | 351 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)] | |
352 | 352 | } | |
353 | 353 | ||
354 | 354 | ||
355 | 355 | ||
356 | 356 | @Callable(i) | |
357 | 357 | func updatePoolInterest (pool) = if ((i.caller != wallet)) | |
358 | 358 | then throw("Only the Admin itself can call this function") | |
359 | 359 | else { | |
360 | - | let $ | |
361 | - | let userNewInterest = $ | |
362 | - | let currentInterest = $ | |
363 | - | let claimAmount = $ | |
364 | - | let userShareTokensAmount = $ | |
365 | - | let $ | |
366 | - | let currentReward = $ | |
367 | - | let rewardUpdateHeight = $ | |
368 | - | let previousRewardPerBlock = $ | |
360 | + | let $t01426314383 = claimCalc(pool, adminIncreaseInterestAddress, 0) | |
361 | + | let userNewInterest = $t01426314383._1 | |
362 | + | let currentInterest = $t01426314383._2 | |
363 | + | let claimAmount = $t01426314383._3 | |
364 | + | let userShareTokensAmount = $t01426314383._4 | |
365 | + | let $t01438814468 = rewardInfo(pool) | |
366 | + | let currentReward = $t01438814468._1 | |
367 | + | let rewardUpdateHeight = $t01438814468._2 | |
368 | + | let previousRewardPerBlock = $t01438814468._3 | |
369 | 369 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)] | |
370 | 370 | } | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | ||
374 | 374 | @Callable(i) | |
375 | 375 | func lockShareTokens (pool) = { | |
376 | - | let $ | |
377 | - | let pmtAmount = $ | |
378 | - | let pmtAssetId = $ | |
379 | - | let $ | |
380 | - | let pmtStrAssetId = $ | |
381 | - | let pmtAssetName = $ | |
382 | - | let pmtDecimals = $ | |
383 | - | let $ | |
384 | - | let userNewInterest = $ | |
385 | - | let currentInterest = $ | |
386 | - | let claimAmount = $ | |
387 | - | let userShareTokensAmount = $ | |
376 | + | let $t01471414789 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
377 | + | let pmtAmount = $t01471414789._1 | |
378 | + | let pmtAssetId = $t01471414789._2 | |
379 | + | let $t01479414867 = getAssetInfo(pmtAssetId) | |
380 | + | let pmtStrAssetId = $t01479414867._1 | |
381 | + | let pmtAssetName = $t01479414867._2 | |
382 | + | let pmtDecimals = $t01479414867._3 | |
383 | + | let $t01487214980 = claimCalc(pool, i.caller, pmtAmount) | |
384 | + | let userNewInterest = $t01487214980._1 | |
385 | + | let currentInterest = $t01487214980._2 | |
386 | + | let claimAmount = $t01487214980._3 | |
387 | + | let userShareTokensAmount = $t01487214980._4 | |
388 | 388 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
389 | 389 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
390 | 390 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
391 | 391 | let totalShareAmountNew = (totalShareAmount + pmtAmount) | |
392 | 392 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
393 | 393 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
394 | 394 | 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)] | |
395 | 395 | if ((0 >= pmtAmount)) | |
396 | 396 | then throw("You can't lock token") | |
397 | 397 | else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId))) | |
398 | 398 | then throw("Incorrect pmtAssetId") | |
399 | 399 | else if (if (isFirstHarvest(Address(fromBase58String(pool)))) | |
400 | 400 | then (getHeightFirstHarvest(Address(fromBase58String(pool))) > height) | |
401 | 401 | else false) | |
402 | 402 | then { | |
403 | 403 | let amountOfVoting = split(getStringValue(votingAddress, (((toString(i.caller) + "_") + pool) + "_user_pool_struc")), "_") | |
404 | 404 | let amountPoolStract = split(getStringValue(votingAddress, (pool + "_pool_struc")), "_") | |
405 | 405 | let amountActiveVoteUserPoolStract = split(getStringValue(votingAddress, (((toString(i.caller) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), "_") | |
406 | 406 | let amountPoolActiveVoteStract = split(getStringValue(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), "_") | |
407 | 407 | let userShareTokenLocked = userShareTokensAmount | |
408 | 408 | let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2])) | |
409 | 409 | then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0) | |
410 | 410 | else valueOrElse(parseInt(amountOfVoting[1]), 0) | |
411 | 411 | let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2])) | |
412 | 412 | then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0) | |
413 | 413 | else valueOrElse(parseInt(amountPoolStract[1]), 0) | |
414 | 414 | let protocolReward = calculateProtocolReward(pool) | |
415 | 415 | if ((userPoolActiveVote != 0)) | |
416 | 416 | then { | |
417 | 417 | let limitShareToken = getShareLimitToken(addressFromStringValue(pool)) | |
418 | 418 | let shareToken = (fraction(limitShareToken, userPoolActiveVote, poolActiveVote) - userShareTokenLocked) | |
419 | 419 | if ((pmtAmount > limitShareToken)) | |
420 | 420 | then throw(("You can't share token more than " + toString(limitShareToken))) | |
421 | 421 | else if ((shareToken > 0)) | |
422 | 422 | then if ((totalShareAmount == 0)) | |
423 | 423 | then (baseEntry ++ [ScriptTransfer(wallet, protocolReward, SWOP)]) | |
424 | 424 | else if ((shareToken >= pmtAmount)) | |
425 | 425 | then baseEntry | |
426 | 426 | else throw(("Your maximum share token is " + toString(shareToken))) | |
427 | 427 | else throw("You can't share token") | |
428 | 428 | } | |
429 | 429 | else throw("Your amount of token less than 0") | |
430 | 430 | } | |
431 | 431 | else baseEntry | |
432 | 432 | } | |
433 | 433 | ||
434 | 434 | ||
435 | 435 | ||
436 | 436 | @Callable(i) | |
437 | 437 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = { | |
438 | 438 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
439 | - | let $ | |
440 | - | let userNewInterest = $ | |
441 | - | let currentInterest = $ | |
442 | - | let claimAmount = $ | |
443 | - | let userShareTokensAmount = $ | |
439 | + | let $t01883018930 = claimCalc(pool, i.caller, 1) | |
440 | + | let userNewInterest = $t01883018930._1 | |
441 | + | let currentInterest = $t01883018930._2 | |
442 | + | let claimAmount = $t01883018930._3 | |
443 | + | let userShareTokensAmount = $t01883018930._4 | |
444 | 444 | let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount) | |
445 | 445 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
446 | 446 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
447 | 447 | let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount) | |
448 | 448 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
449 | 449 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
450 | 450 | if ((shareTokensWithdrawAmount > userShareTokensAmount)) | |
451 | 451 | then throw("Withdraw amount more then user locked amount") | |
452 | 452 | 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)] | |
453 | 453 | } | |
454 | 454 | ||
455 | 455 | ||
456 | 456 | ||
457 | 457 | @Callable(i) | |
458 | 458 | func claim (pool) = { | |
459 | 459 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
460 | - | let $ | |
461 | - | let lastInterestHeight = $ | |
462 | - | let lastInterest = $ | |
463 | - | let $ | |
464 | - | let currentRewardPerBlock = $ | |
465 | - | let rewardUpdateHeight = $ | |
466 | - | let previousRewardPerBlock = $ | |
467 | - | let $ | |
468 | - | let userNewInterest = $ | |
469 | - | let currentInterest = $ | |
470 | - | let claimAmount = $ | |
471 | - | let userShareTokensAmount = $ | |
460 | + | let $t02053120596 = getLastInterestInfo(pool) | |
461 | + | let lastInterestHeight = $t02053120596._1 | |
462 | + | let lastInterest = $t02053120596._2 | |
463 | + | let $t02060120690 = rewardInfo(pool) | |
464 | + | let currentRewardPerBlock = $t02060120690._1 | |
465 | + | let rewardUpdateHeight = $t02060120690._2 | |
466 | + | let previousRewardPerBlock = $t02060120690._3 | |
467 | + | let $t02069520795 = claimCalc(pool, i.caller, 1) | |
468 | + | let userNewInterest = $t02069520795._1 | |
469 | + | let currentInterest = $t02069520795._2 | |
470 | + | let claimAmount = $t02069520795._3 | |
471 | + | let userShareTokensAmount = $t02069520795._4 | |
472 | 472 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
473 | 473 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
474 | 474 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
475 | 475 | if ((availableFund == 0)) | |
476 | 476 | then throw("You have 0 available SWOP") | |
477 | 477 | 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)] | |
478 | 478 | } | |
479 | 479 | ||
480 | 480 | ||
481 | 481 | @Verifier(tx) | |
482 | 482 | func verify () = match tx { | |
483 | 483 | case _ => | |
484 | 484 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
485 | 485 | } | |
486 | 486 |
github/deemru/w8io/026f985 106.27 ms ◑