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