tx · GR31h5royhWJ3Ussi4ZbJiKcCVVgbmJ6BWLiikqoGjr4 3N7NyhNuAsjhx5uFqDqt4Y51hK4FBVi4MHn: -0.01400000 Waves 2021.03.08 01:03 [1427847] smart account 3N7NyhNuAsjhx5uFqDqt4Y51hK4FBVi4MHn > SELF 0.00000000 Waves
{ "type": 13, "id": "GR31h5royhWJ3Ussi4ZbJiKcCVVgbmJ6BWLiikqoGjr4", "fee": 1400000, "feeAssetId": null, "timestamp": 1615154706046, "version": 1, "sender": "3N7NyhNuAsjhx5uFqDqt4Y51hK4FBVi4MHn", "senderPublicKey": "79j6PNv9aCQZpss88M5Y7J41MDsKbMrG2Lf69wQ6R6Rd", "proofs": [ "146aNB2jmgrqbouHeTUhf6rB44kT26mMEVx5WrPPgdcanafgbVBGfeckzkK5ghuigEcvnZykMi8cGiHNfkSfLJb" ], "script": "base64:AAIEAAAAAAAAABwIAhIDCgEIEgMKAQgSAwoBCBIECgIIARIDCgEIAAAAIwAAAAAMYWRtaW5QdWJLZXkxAQAAACC6Cdc7iVmk0V2g//G7M9Cq4TlpD8vivZHWO+5PXqjgEwAAAAAMYWRtaW5QdWJLZXkyAQAAACDCkUSZs9KwtA0ipZFYvYi8oTe7CMv/3YzmlO9bFg5+QAAAAAAMYWRtaW5QdWJLZXkzAQAAACCOHhcueLEHO/RITnozKGB2KHf8meWSMKMgws+oq+kOVQAAAAAUa2V5U2hhcmVUb2tlbnNMb2NrZWQCAAAAGl90b3RhbF9zaGFyZV90b2tlbnNfbG9ja2VkAAAAABxrZXlSZXdhcmRQb29sRnJhY3Rpb25DdXJyZW50AgAAAB1fcG9vbF9mcmFjdGlvbl9yZXdhcmRfY3VycmVudAAAAAAda2V5UmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCAAAAHl9wb29sX2ZyYWN0aW9uX3Jld2FyZF9wcmV2aW91cwAAAAAda2V5VG90YWxSZXdhcmRQZXJCbG9ja0N1cnJlbnQCAAAAHnRvdGFsX3Jld2FyZF9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AAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1hdmFpbGFibGVGdW5kBQAAAARTV09QBQAAAANuaWwAAAAA8lEEJA==", "chainId": 84, "height": 1427847, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7rPbpprBtp7J1QwB3R45Q6iDMazrXef6xU3cxdWkwAKW Next: HbXLRV7N1AzeRxxZ2yH7TUvEYWm9q23k3t3SPyzsfxLV Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
9 | 9 | ||
10 | 10 | let keyShareTokensLocked = "_total_share_tokens_locked" | |
11 | 11 | ||
12 | 12 | let keyRewardPoolFractionCurrent = "_pool_fraction_reward_current" | |
13 | 13 | ||
14 | 14 | let keyRewardPoolFractionPrevious = "_pool_fraction_reward_previous" | |
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 | 40 | let votingAddress = Address(base58'3MqhxbxHEMtp2Rwy1gUb6cPSJHQepdap1Yp') | |
41 | 41 | ||
42 | 42 | let oneWeekInBlock = 10106 | |
43 | 43 | ||
44 | 44 | let totalVoteShare = 10000000000 | |
45 | 45 | ||
46 | 46 | let SWOP = fromBase58String(getStringValue(this, keySWOPid)) | |
47 | 47 | ||
48 | 48 | let farmingStartHeight = valueOrErrorMessage(getInteger(this, keyFarmingStartHeight), ("No data on the key: " + keyFarmingStartHeight)) | |
49 | 49 | ||
50 | 50 | let farmingPreStartHeight = (farmingStartHeight - oneWeekInBlock) | |
51 | 51 | ||
52 | 52 | func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked)) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func calcScaleValue (assetId1,assetId2) = { | |
59 | 59 | let assetId1Decimals = value(assetInfo(assetId1)).decimals | |
60 | 60 | let assetId2Decimals = value(assetInfo(assetId2)).decimals | |
61 | 61 | let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8) | |
62 | 62 | pow(10, 0, scaleDigits, 0, 0, HALFDOWN) | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func rewardInfo (pool) = { | |
70 | 70 | let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(votingAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(votingAddress))) | |
71 | 71 | let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(votingAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(votingAddress))) | |
72 | 72 | let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(votingAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(votingAddress))) | |
73 | 73 | let rewardUpdateHeight = valueOrErrorMessage(getInteger(votingAddress, (pool + keyRewardUpdateHeight)), (((("No data on the key: " + pool) + keyRewardUpdateHeight) + " at address ") + toString(votingAddress))) | |
74 | 74 | let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(votingAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(votingAddress))) | |
75 | 75 | let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare) | |
76 | 76 | let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare) | |
77 | 77 | if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent)) | |
78 | 78 | then true | |
79 | 79 | else (rewardPoolPrevious > totalRewardPerBlockPrevious)) | |
80 | 80 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
81 | 81 | else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious) | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func getLastInterestInfo (pool) = { | |
86 | 86 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
87 | 87 | let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), farmingPreStartHeight) | |
88 | 88 | $Tuple2(lastInterestHeight, lastInterest) | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getUserInterestInfo (pool,userAddress) = { | |
93 | 93 | let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest)) | |
94 | 94 | let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked)) | |
95 | 95 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
96 | 96 | let userLastInterestValue = match userLastInterest { | |
97 | 97 | case userLastInterest: Int => | |
98 | 98 | userLastInterest | |
99 | 99 | case _ => | |
100 | 100 | lastInterest | |
101 | 101 | } | |
102 | 102 | let userShareTokensAmount = match userShare { | |
103 | 103 | case userShare: Int => | |
104 | 104 | userShare | |
105 | 105 | case _ => | |
106 | 106 | 0 | |
107 | 107 | } | |
108 | 108 | $Tuple2(userLastInterestValue, userShareTokensAmount) | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0)) | |
113 | 113 | then 0 | |
114 | 114 | else if ((rewardUpdateHeight > height)) | |
115 | 115 | then { | |
116 | 116 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
117 | 117 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
118 | 118 | } | |
119 | 119 | else if ((lastInterestHeight > rewardUpdateHeight)) | |
120 | 120 | then { | |
121 | 121 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
122 | 122 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
123 | 123 | } | |
124 | 124 | else { | |
125 | 125 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
126 | 126 | let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked)) | |
127 | 127 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
128 | 128 | (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked)) | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func claimCalc (pool,caller,pmtAmount) = { | |
133 | 133 | let shareAssetId = getShareAssetId(pool) | |
134 | 134 | let scaleValue = calcScaleValue(SWOP, shareAssetId) | |
135 | 135 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
136 | 136 | let $t071667231 = getLastInterestInfo(pool) | |
137 | 137 | let lastInterestHeight = $t071667231._1 | |
138 | 138 | let lastInterest = $t071667231._2 | |
139 | 139 | let $t072367324 = rewardInfo(pool) | |
140 | 140 | let currentRewardPerBlock = $t072367324._1 | |
141 | 141 | let rewardUpdateHeight = $t072367324._2 | |
142 | 142 | let previousRewardPerBlock = $t072367324._3 | |
143 | 143 | let $t073297408 = getUserInterestInfo(pool, caller) | |
144 | 144 | let userLastInterest = $t073297408._1 | |
145 | 145 | let userShareTokensAmount = $t073297408._2 | |
146 | 146 | let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount) | |
147 | 147 | let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue) | |
148 | 148 | let userNewInterest = currentInterest | |
149 | 149 | $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount) | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func checkPmtAssetIdCorrect (pool,pmtAssetId) = { | |
154 | 154 | let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
155 | 155 | if ((pmtAssetId == poolShareAssetId)) | |
156 | 156 | then true | |
157 | 157 | else false | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | @Callable(i) | |
165 | 165 | func init (earlyLP) = if (isDefined(getString(this, "keySWOPid"))) | |
166 | 166 | then throw("SWOP already initialized") | |
167 | 167 | else { | |
168 | 168 | let initAmount = 100000000000000 | |
169 | 169 | let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true) | |
170 | 170 | let SWOPid = calculateAssetId(SWOPissue) | |
171 | 171 | nil | |
172 | 172 | } | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | ||
176 | 176 | @Callable(i) | |
177 | 177 | func initPoolShareFarming (pool) = { | |
178 | 178 | let $t089469026 = rewardInfo(pool) | |
179 | 179 | let currentReward = $t089469026._1 | |
180 | 180 | let rewardUpdateHeight = $t089469026._2 | |
181 | 181 | let previousRewardPerBlock = $t089469026._3 | |
182 | 182 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyRewardPoolFractionCurrent), currentReward), IntegerEntry((pool + keyRewardUpdateHeight), rewardUpdateHeight), IntegerEntry((pool + keyRewardPoolFractionPrevious), previousRewardPerBlock)] | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | ||
187 | 187 | @Callable(i) | |
188 | 188 | func lockShareTokens (pool) = { | |
189 | 189 | let $t094299504 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
190 | 190 | let pmtAmount = $t094299504._1 | |
191 | 191 | let pmtAssetId = $t094299504._2 | |
192 | 192 | if ((farmingStartHeight > height)) | |
193 | 193 | then if (!(checkPmtAssetIdCorrect(pool, pmtAssetId))) | |
194 | 194 | then throw("Incorrect pmtAssetId") | |
195 | 195 | else { | |
196 | 196 | let userShareTokensAmount = valueOrElse(getInteger(this, (((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked)), 0) | |
197 | 197 | let userNewInterest = 0 | |
198 | 198 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
199 | 199 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
200 | 200 | let totalShareAmountNew = (totalShareAmount + pmtAmount) | |
201 | 201 | [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0)] | |
202 | 202 | } | |
203 | 203 | else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId))) | |
204 | 204 | then throw("Incorrect pmtAssetId") | |
205 | 205 | else { | |
206 | 206 | let $t01053110639 = claimCalc(pool, i.caller, pmtAmount) | |
207 | 207 | let userNewInterest = $t01053110639._1 | |
208 | 208 | let currentInterest = $t01053110639._2 | |
209 | 209 | let claimAmount = $t01053110639._3 | |
210 | 210 | let userShareTokensAmount = $t01053110639._4 | |
211 | 211 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
212 | 212 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
213 | 213 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
214 | 214 | let totalShareAmountNew = (totalShareAmount + pmtAmount) | |
215 | 215 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
216 | 216 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
217 | 217 | [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)] | |
218 | 218 | } | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | ||
223 | 223 | @Callable(i) | |
224 | 224 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = { | |
225 | 225 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
226 | 226 | if ((farmingStartHeight > height)) | |
227 | 227 | then { | |
228 | 228 | let userShareTokensAmount = valueOrElse(getInteger(this, (((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked)), 0) | |
229 | 229 | if ((shareTokensWithdrawAmount > userShareTokensAmount)) | |
230 | 230 | then throw("Withdraw amount more then user locked amount") | |
231 | 231 | else { | |
232 | 232 | let userNewInterest = 0 | |
233 | 233 | let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount) | |
234 | 234 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
235 | 235 | let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount) | |
236 | 236 | [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)] | |
237 | 237 | } | |
238 | 238 | } | |
239 | 239 | else { | |
240 | 240 | let $t01306513165 = claimCalc(pool, i.caller, 1) | |
241 | 241 | let userNewInterest = $t01306513165._1 | |
242 | 242 | let currentInterest = $t01306513165._2 | |
243 | 243 | let claimAmount = $t01306513165._3 | |
244 | 244 | let userShareTokensAmount = $t01306513165._4 | |
245 | 245 | if ((shareTokensWithdrawAmount > userShareTokensAmount)) | |
246 | 246 | then throw("Withdraw amount more then user locked amount") | |
247 | 247 | else { | |
248 | 248 | let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount) | |
249 | 249 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
250 | 250 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
251 | 251 | let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount) | |
252 | 252 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
253 | 253 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
254 | 254 | [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)] | |
255 | 255 | } | |
256 | 256 | } | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | ||
261 | 261 | @Callable(i) | |
262 | 262 | func claim (pool) = if ((farmingStartHeight > height)) | |
263 | 263 | then throw((("This method will be active after " + toString(farmingStartHeight)) + " height")) | |
264 | 264 | else { | |
265 | 265 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
266 | 266 | let $t01478914854 = getLastInterestInfo(pool) | |
267 | 267 | let lastInterestHeight = $t01478914854._1 | |
268 | 268 | let lastInterest = $t01478914854._2 | |
269 | 269 | let $t01485914948 = rewardInfo(pool) | |
270 | 270 | let currentRewardPerBlock = $t01485914948._1 | |
271 | 271 | let rewardUpdateHeight = $t01485914948._2 | |
272 | 272 | let previousRewardPerBlock = $t01485914948._3 | |
273 | 273 | let $t01495315053 = claimCalc(pool, i.caller, 1) | |
274 | 274 | let userNewInterest = $t01495315053._1 | |
275 | 275 | let currentInterest = $t01495315053._2 | |
276 | 276 | let claimAmount = $t01495315053._3 | |
277 | 277 | let userShareTokensAmount = $t01495315053._4 | |
278 | 278 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
279 | 279 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
280 | 280 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
281 | 281 | if ((availableFund == 0)) | |
282 | 282 | then throw("You have 0 available SWOP") | |
283 | 283 | 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)] | |
284 | 284 | } | |
285 | 285 | ||
286 | 286 |
github/deemru/w8io/169f3d6 39.99 ms ◑