tx · 7H7gANdNSW5Pdahjn13FoQFN3SZBgpaVW1UPAWb8Bfne 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC: -0.01400000 Waves 2021.04.12 11:59 [1479030] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves
{ "type": 13, "id": "7H7gANdNSW5Pdahjn13FoQFN3SZBgpaVW1UPAWb8Bfne", "fee": 1400000, "feeAssetId": null, "timestamp": 1618218011648, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "2N4u61cGDVMCqj2AaDLfrsYyqeKV2mo9HM364P4Uasy6QyH1tjTT5i8Y1B4NQBK3hGbjRhUzPKmJWH5GfBcSea6F" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAAAiAAAAAAxhZG1pblB1YktleTEBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTIBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTMBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAHGtleVJld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCAAAAHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkAAAAAB1rZXlSZXdhcmRQb29sRnJhY3Rpb25QcmV2aW91cwIAAAAeX3ByZXZpb3VzX3Bvb2xfZnJhY3Rpb25fcmV3YXJkAAAAAB1rZXlUb3RhbFJld2FyZFBlckJsb2NrQ3VycmVudAIAA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AAAYa2V5VXNlclNXT1BDbGFpbWVkQW1vdW50BQAAABR1c2VyQ2xhaW1lZEFtb3VudE5ldwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAEcG9vbAIAAAABXwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAHGtleVVzZXJTV09QTGFzdENsYWltZWRBbW91bnQFAAAAC2NsYWltQW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANYXZhaWxhYmxlRnVuZAUAAAAEU1dPUAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnVkdVY", "height": 1479030, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8L8U2kQzQtdQ6N659DR617LTCpfWFtzVQYeLxbPeRHmg Next: 95BJYahs9HhbKtZyhFhjjDSLMn1k474ArTwwXApBnMwy Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let adminPubKey1 = base58' | |
4 | + | let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
5 | 5 | ||
6 | - | let adminPubKey2 = base58' | |
6 | + | let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
7 | 7 | ||
8 | - | let adminPubKey3 = base58' | |
8 | + | let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | 10 | let keyShareTokensLocked = "_total_share_tokens_locked" | |
11 | 11 | ||
37 | 37 | ||
38 | 38 | let keyFarmingStartHeight = "farming_start_height" | |
39 | 39 | ||
40 | - | let governanceAddress = Address(base58' | |
40 | + | let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
41 | 41 | ||
42 | - | let adminIncreaseInterestAddress = Address(base58' | |
42 | + | let adminIncreaseInterestAddress = Address(base58'3N8ZpuFLVKwxbpVFe1Pcs14hLCrujizpQsa') | |
43 | 43 | ||
44 | 44 | let oneWeekInBlock = 10106 | |
45 | 45 | ||
131 | 131 | let shareAssetId = getShareAssetId(pool) | |
132 | 132 | let scaleValue = calcScaleValue(SWOP, shareAssetId) | |
133 | 133 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
134 | - | let $ | |
135 | - | let lastInterestHeight = $ | |
136 | - | let lastInterest = $ | |
137 | - | let $ | |
138 | - | let currentRewardPerBlock = $ | |
139 | - | let rewardUpdateHeight = $ | |
140 | - | let previousRewardPerBlock = $ | |
141 | - | let $ | |
142 | - | let userLastInterest = $ | |
143 | - | let userShareTokensAmount = $ | |
134 | + | let $t070167081 = getLastInterestInfo(pool) | |
135 | + | let lastInterestHeight = $t070167081._1 | |
136 | + | let lastInterest = $t070167081._2 | |
137 | + | let $t070867174 = rewardInfo(pool) | |
138 | + | let currentRewardPerBlock = $t070867174._1 | |
139 | + | let rewardUpdateHeight = $t070867174._2 | |
140 | + | let previousRewardPerBlock = $t070867174._3 | |
141 | + | let $t071797258 = getUserInterestInfo(pool, caller) | |
142 | + | let userLastInterest = $t071797258._1 | |
143 | + | let userShareTokensAmount = $t071797258._2 | |
144 | 144 | let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount) | |
145 | 145 | let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue) | |
146 | 146 | let userNewInterest = currentInterest | |
175 | 175 | func initPoolShareFarming (pool) = if ((i.caller != this)) | |
176 | 176 | then throw("Only the DApp itself can call this function") | |
177 | 177 | else { | |
178 | - | let $ | |
179 | - | let currentReward = $ | |
180 | - | let rewardUpdateHeight = $ | |
181 | - | let previousRewardPerBlock = $ | |
178 | + | let $t087888868 = rewardInfo(pool) | |
179 | + | let currentReward = $t087888868._1 | |
180 | + | let rewardUpdateHeight = $t087888868._2 | |
181 | + | let previousRewardPerBlock = $t087888868._3 | |
182 | 182 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0)] | |
183 | 183 | } | |
184 | 184 | ||
188 | 188 | func UpdatePoolInterest (pool) = if ((i.caller != adminIncreaseInterestAddress)) | |
189 | 189 | then throw("Only the Admin itself can call this function") | |
190 | 190 | else { | |
191 | - | let $ | |
192 | - | let userNewInterest = $ | |
193 | - | let currentInterest = $ | |
194 | - | let claimAmount = $ | |
195 | - | let userShareTokensAmount = $ | |
191 | + | let $t091639263 = claimCalc(pool, i.caller, 0) | |
192 | + | let userNewInterest = $t091639263._1 | |
193 | + | let currentInterest = $t091639263._2 | |
194 | + | let claimAmount = $t091639263._3 | |
195 | + | let userShareTokensAmount = $t091639263._4 | |
196 | 196 | [IntegerEntry((pool + keyLastInterest), userNewInterest)] | |
197 | 197 | } | |
198 | 198 | ||
200 | 200 | ||
201 | 201 | @Callable(i) | |
202 | 202 | func lockShareTokens (pool) = { | |
203 | - | let $ | |
204 | - | let pmtAmount = $ | |
205 | - | let pmtAssetId = $ | |
203 | + | let $t093979472 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
204 | + | let pmtAmount = $t093979472._1 | |
205 | + | let pmtAssetId = $t093979472._2 | |
206 | 206 | if (!(checkPmtAssetIdCorrect(pool, pmtAssetId))) | |
207 | 207 | then throw("Incorrect pmtAssetId") | |
208 | 208 | else { | |
209 | - | let $ | |
210 | - | let userNewInterest = $ | |
211 | - | let currentInterest = $ | |
212 | - | let claimAmount = $ | |
213 | - | let userShareTokensAmount = $ | |
209 | + | let $t095739681 = claimCalc(pool, i.caller, pmtAmount) | |
210 | + | let userNewInterest = $t095739681._1 | |
211 | + | let currentInterest = $t095739681._2 | |
212 | + | let claimAmount = $t095739681._3 | |
213 | + | let userShareTokensAmount = $t095739681._4 | |
214 | 214 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
215 | 215 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
216 | 216 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
226 | 226 | @Callable(i) | |
227 | 227 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = { | |
228 | 228 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
229 | - | let $ | |
230 | - | let userNewInterest = $ | |
231 | - | let currentInterest = $ | |
232 | - | let claimAmount = $ | |
233 | - | let userShareTokensAmount = $ | |
229 | + | let $t01103811138 = claimCalc(pool, i.caller, 1) | |
230 | + | let userNewInterest = $t01103811138._1 | |
231 | + | let currentInterest = $t01103811138._2 | |
232 | + | let claimAmount = $t01103811138._3 | |
233 | + | let userShareTokensAmount = $t01103811138._4 | |
234 | 234 | if ((shareTokensWithdrawAmount > userShareTokensAmount)) | |
235 | 235 | then throw("Withdraw amount more then user locked amount") | |
236 | 236 | else { | |
249 | 249 | @Callable(i) | |
250 | 250 | func claim (pool) = { | |
251 | 251 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
252 | - | let $ | |
253 | - | let lastInterestHeight = $ | |
254 | - | let lastInterest = $ | |
255 | - | let $ | |
256 | - | let currentRewardPerBlock = $ | |
257 | - | let rewardUpdateHeight = $ | |
258 | - | let previousRewardPerBlock = $ | |
259 | - | let $ | |
260 | - | let userNewInterest = $ | |
261 | - | let currentInterest = $ | |
262 | - | let claimAmount = $ | |
263 | - | let userShareTokensAmount = $ | |
252 | + | let $t01263012695 = getLastInterestInfo(pool) | |
253 | + | let lastInterestHeight = $t01263012695._1 | |
254 | + | let lastInterest = $t01263012695._2 | |
255 | + | let $t01270012789 = rewardInfo(pool) | |
256 | + | let currentRewardPerBlock = $t01270012789._1 | |
257 | + | let rewardUpdateHeight = $t01270012789._2 | |
258 | + | let previousRewardPerBlock = $t01270012789._3 | |
259 | + | let $t01279412894 = claimCalc(pool, i.caller, 1) | |
260 | + | let userNewInterest = $t01279412894._1 | |
261 | + | let currentInterest = $t01279412894._2 | |
262 | + | let claimAmount = $t01279412894._3 | |
263 | + | let userShareTokensAmount = $t01279412894._4 | |
264 | 264 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
265 | 265 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
266 | 266 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let adminPubKey1 = base58' | |
4 | + | let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
5 | 5 | ||
6 | - | let adminPubKey2 = base58' | |
6 | + | let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
7 | 7 | ||
8 | - | let adminPubKey3 = base58' | |
8 | + | let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | 10 | let keyShareTokensLocked = "_total_share_tokens_locked" | |
11 | 11 | ||
12 | 12 | let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
13 | 13 | ||
14 | 14 | let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
15 | 15 | ||
16 | 16 | let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current" | |
17 | 17 | ||
18 | 18 | let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous" | |
19 | 19 | ||
20 | 20 | let keyRewardUpdateHeight = "reward_update_height" | |
21 | 21 | ||
22 | 22 | let keyLastInterest = "_last_interest" | |
23 | 23 | ||
24 | 24 | let keyLastInterestHeight = "_last_interest_height" | |
25 | 25 | ||
26 | 26 | let keyUserShareTokensLocked = "_share_tokens_locked" | |
27 | 27 | ||
28 | 28 | let keyUserLastInterest = "_last_interest" | |
29 | 29 | ||
30 | 30 | let keySWOPid = "SWOP_id" | |
31 | 31 | ||
32 | 32 | let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount" | |
33 | 33 | ||
34 | 34 | let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount" | |
35 | 35 | ||
36 | 36 | let keyAvailableSWOP = "_available_SWOP" | |
37 | 37 | ||
38 | 38 | let keyFarmingStartHeight = "farming_start_height" | |
39 | 39 | ||
40 | - | let governanceAddress = Address(base58' | |
40 | + | let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
41 | 41 | ||
42 | - | let adminIncreaseInterestAddress = Address(base58' | |
42 | + | let adminIncreaseInterestAddress = Address(base58'3N8ZpuFLVKwxbpVFe1Pcs14hLCrujizpQsa') | |
43 | 43 | ||
44 | 44 | let oneWeekInBlock = 10106 | |
45 | 45 | ||
46 | 46 | let totalVoteShare = 10000000000 | |
47 | 47 | ||
48 | 48 | let SWOP = fromBase58String(getStringValue(this, keySWOPid)) | |
49 | 49 | ||
50 | 50 | func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked)) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func calcScaleValue (assetId1,assetId2) = { | |
57 | 57 | let assetId1Decimals = value(assetInfo(assetId1)).decimals | |
58 | 58 | let assetId2Decimals = value(assetInfo(assetId2)).decimals | |
59 | 59 | let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8) | |
60 | 60 | pow(10, 0, scaleDigits, 0, 0, HALFDOWN) | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func rewardInfo (pool) = { | |
68 | 68 | let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress))) | |
69 | 69 | let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress))) | |
70 | 70 | let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress))) | |
71 | 71 | let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress))) | |
72 | 72 | let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress))) | |
73 | 73 | let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare) | |
74 | 74 | let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare) | |
75 | 75 | if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent)) | |
76 | 76 | then true | |
77 | 77 | else (rewardPoolPrevious > totalRewardPerBlockPrevious)) | |
78 | 78 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
79 | 79 | else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious) | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getLastInterestInfo (pool) = { | |
84 | 84 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
85 | 85 | let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height) | |
86 | 86 | $Tuple2(lastInterestHeight, lastInterest) | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func getUserInterestInfo (pool,userAddress) = { | |
91 | 91 | let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest)) | |
92 | 92 | let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked)) | |
93 | 93 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
94 | 94 | let userLastInterestValue = match userLastInterest { | |
95 | 95 | case userLastInterest: Int => | |
96 | 96 | userLastInterest | |
97 | 97 | case _ => | |
98 | 98 | lastInterest | |
99 | 99 | } | |
100 | 100 | let userShareTokensAmount = match userShare { | |
101 | 101 | case userShare: Int => | |
102 | 102 | userShare | |
103 | 103 | case _ => | |
104 | 104 | 0 | |
105 | 105 | } | |
106 | 106 | $Tuple2(userLastInterestValue, userShareTokensAmount) | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0)) | |
111 | 111 | then 0 | |
112 | 112 | else if ((rewardUpdateHeight > height)) | |
113 | 113 | then { | |
114 | 114 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
115 | 115 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
116 | 116 | } | |
117 | 117 | else if ((lastInterestHeight > rewardUpdateHeight)) | |
118 | 118 | then { | |
119 | 119 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
120 | 120 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
121 | 121 | } | |
122 | 122 | else { | |
123 | 123 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
124 | 124 | let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked)) | |
125 | 125 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
126 | 126 | (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked)) | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func claimCalc (pool,caller,pmtAmount) = { | |
131 | 131 | let shareAssetId = getShareAssetId(pool) | |
132 | 132 | let scaleValue = calcScaleValue(SWOP, shareAssetId) | |
133 | 133 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
134 | - | let $ | |
135 | - | let lastInterestHeight = $ | |
136 | - | let lastInterest = $ | |
137 | - | let $ | |
138 | - | let currentRewardPerBlock = $ | |
139 | - | let rewardUpdateHeight = $ | |
140 | - | let previousRewardPerBlock = $ | |
141 | - | let $ | |
142 | - | let userLastInterest = $ | |
143 | - | let userShareTokensAmount = $ | |
134 | + | let $t070167081 = getLastInterestInfo(pool) | |
135 | + | let lastInterestHeight = $t070167081._1 | |
136 | + | let lastInterest = $t070167081._2 | |
137 | + | let $t070867174 = rewardInfo(pool) | |
138 | + | let currentRewardPerBlock = $t070867174._1 | |
139 | + | let rewardUpdateHeight = $t070867174._2 | |
140 | + | let previousRewardPerBlock = $t070867174._3 | |
141 | + | let $t071797258 = getUserInterestInfo(pool, caller) | |
142 | + | let userLastInterest = $t071797258._1 | |
143 | + | let userShareTokensAmount = $t071797258._2 | |
144 | 144 | let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount) | |
145 | 145 | let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue) | |
146 | 146 | let userNewInterest = currentInterest | |
147 | 147 | $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount) | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func checkPmtAssetIdCorrect (pool,pmtAssetId) = { | |
152 | 152 | let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
153 | 153 | if ((pmtAssetId == poolShareAssetId)) | |
154 | 154 | then true | |
155 | 155 | else false | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | @Callable(i) | |
163 | 163 | func init (earlyLP) = if (isDefined(getString(this, "keySWOPid"))) | |
164 | 164 | then throw("SWOP already initialized") | |
165 | 165 | else { | |
166 | 166 | let initAmount = 100000000000000 | |
167 | 167 | let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true) | |
168 | 168 | let SWOPid = calculateAssetId(SWOPissue) | |
169 | 169 | [Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))] | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | ||
174 | 174 | @Callable(i) | |
175 | 175 | func initPoolShareFarming (pool) = if ((i.caller != this)) | |
176 | 176 | then throw("Only the DApp itself can call this function") | |
177 | 177 | else { | |
178 | - | let $ | |
179 | - | let currentReward = $ | |
180 | - | let rewardUpdateHeight = $ | |
181 | - | let previousRewardPerBlock = $ | |
178 | + | let $t087888868 = rewardInfo(pool) | |
179 | + | let currentReward = $t087888868._1 | |
180 | + | let rewardUpdateHeight = $t087888868._2 | |
181 | + | let previousRewardPerBlock = $t087888868._3 | |
182 | 182 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0)] | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | ||
187 | 187 | @Callable(i) | |
188 | 188 | func UpdatePoolInterest (pool) = if ((i.caller != adminIncreaseInterestAddress)) | |
189 | 189 | then throw("Only the Admin itself can call this function") | |
190 | 190 | else { | |
191 | - | let $ | |
192 | - | let userNewInterest = $ | |
193 | - | let currentInterest = $ | |
194 | - | let claimAmount = $ | |
195 | - | let userShareTokensAmount = $ | |
191 | + | let $t091639263 = claimCalc(pool, i.caller, 0) | |
192 | + | let userNewInterest = $t091639263._1 | |
193 | + | let currentInterest = $t091639263._2 | |
194 | + | let claimAmount = $t091639263._3 | |
195 | + | let userShareTokensAmount = $t091639263._4 | |
196 | 196 | [IntegerEntry((pool + keyLastInterest), userNewInterest)] | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | ||
201 | 201 | @Callable(i) | |
202 | 202 | func lockShareTokens (pool) = { | |
203 | - | let $ | |
204 | - | let pmtAmount = $ | |
205 | - | let pmtAssetId = $ | |
203 | + | let $t093979472 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
204 | + | let pmtAmount = $t093979472._1 | |
205 | + | let pmtAssetId = $t093979472._2 | |
206 | 206 | if (!(checkPmtAssetIdCorrect(pool, pmtAssetId))) | |
207 | 207 | then throw("Incorrect pmtAssetId") | |
208 | 208 | else { | |
209 | - | let $ | |
210 | - | let userNewInterest = $ | |
211 | - | let currentInterest = $ | |
212 | - | let claimAmount = $ | |
213 | - | let userShareTokensAmount = $ | |
209 | + | let $t095739681 = claimCalc(pool, i.caller, pmtAmount) | |
210 | + | let userNewInterest = $t095739681._1 | |
211 | + | let currentInterest = $t095739681._2 | |
212 | + | let claimAmount = $t095739681._3 | |
213 | + | let userShareTokensAmount = $t095739681._4 | |
214 | 214 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
215 | 215 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
216 | 216 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
217 | 217 | let totalShareAmountNew = (totalShareAmount + pmtAmount) | |
218 | 218 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
219 | 219 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
220 | 220 | [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)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew)] | |
221 | 221 | } | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | ||
226 | 226 | @Callable(i) | |
227 | 227 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = { | |
228 | 228 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
229 | - | let $ | |
230 | - | let userNewInterest = $ | |
231 | - | let currentInterest = $ | |
232 | - | let claimAmount = $ | |
233 | - | let userShareTokensAmount = $ | |
229 | + | let $t01103811138 = claimCalc(pool, i.caller, 1) | |
230 | + | let userNewInterest = $t01103811138._1 | |
231 | + | let currentInterest = $t01103811138._2 | |
232 | + | let claimAmount = $t01103811138._3 | |
233 | + | let userShareTokensAmount = $t01103811138._4 | |
234 | 234 | if ((shareTokensWithdrawAmount > userShareTokensAmount)) | |
235 | 235 | then throw("Withdraw amount more then user locked amount") | |
236 | 236 | else { | |
237 | 237 | let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount) | |
238 | 238 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
239 | 239 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
240 | 240 | let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount) | |
241 | 241 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
242 | 242 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
243 | 243 | [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)] | |
244 | 244 | } | |
245 | 245 | } | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | ||
249 | 249 | @Callable(i) | |
250 | 250 | func claim (pool) = { | |
251 | 251 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
252 | - | let $ | |
253 | - | let lastInterestHeight = $ | |
254 | - | let lastInterest = $ | |
255 | - | let $ | |
256 | - | let currentRewardPerBlock = $ | |
257 | - | let rewardUpdateHeight = $ | |
258 | - | let previousRewardPerBlock = $ | |
259 | - | let $ | |
260 | - | let userNewInterest = $ | |
261 | - | let currentInterest = $ | |
262 | - | let claimAmount = $ | |
263 | - | let userShareTokensAmount = $ | |
252 | + | let $t01263012695 = getLastInterestInfo(pool) | |
253 | + | let lastInterestHeight = $t01263012695._1 | |
254 | + | let lastInterest = $t01263012695._2 | |
255 | + | let $t01270012789 = rewardInfo(pool) | |
256 | + | let currentRewardPerBlock = $t01270012789._1 | |
257 | + | let rewardUpdateHeight = $t01270012789._2 | |
258 | + | let previousRewardPerBlock = $t01270012789._3 | |
259 | + | let $t01279412894 = claimCalc(pool, i.caller, 1) | |
260 | + | let userNewInterest = $t01279412894._1 | |
261 | + | let currentInterest = $t01279412894._2 | |
262 | + | let claimAmount = $t01279412894._3 | |
263 | + | let userShareTokensAmount = $t01279412894._4 | |
264 | 264 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
265 | 265 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
266 | 266 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
267 | 267 | if ((availableFund == 0)) | |
268 | 268 | then throw("You have 0 available SWOP") | |
269 | 269 | else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), Reissue(SWOP, availableFund, true), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, availableFund, SWOP)] | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | @Verifier(tx) | |
274 | 274 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
275 | 275 |
github/deemru/w8io/026f985 53.40 ms ◑