tx · HM8uwcxPrnYjhbFrMvReGv956yPcSVeQQ5mh2YWT1EEP 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK: -0.14000000 Waves 2022.10.20 16:38 [2280792] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves
{ "type": 13, "id": "HM8uwcxPrnYjhbFrMvReGv956yPcSVeQQ5mh2YWT1EEP", "fee": 14000000, "feeAssetId": null, "timestamp": 1666273150226, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "3umvUWZ4ornuL6fyiGaAb37ZrQa2eCgTgkkSvj9vSfFqkRoNKhQwgoJd3x2f6FWGFMA48KBNL5oEzXHzicYcLR73", "3hjyae5AxyGfGkU5NTUQAXtjAxgcFTN7x9cJuWVgWRSCzb9SNcNQ4GVyAjr8dybtqkFpVCXSxY5mJosfRyMAxrso" ], "script": "base64:BgJICAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDCAEBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIDCgEYEgMKARgSBAoCCAgSABIAWgAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMABmtDYXVzZQIOc2h1dGRvd25fY2F1c2UAGmtSZXdhcmRQb29sRnJhY3Rpb25DdXJyZW50Ah1fY3VycmVudF9wb29sX2ZyYWN0aW9uX3Jld2FyZAAba1Jld2FyZFBvb2xGcmFjdGlvblByZXZpb3VzAh5fcHJldmlvdXNfcG9vbF9mcmFjdGlvbl9yZXdhcmQAE2tIZWlnaHRQb29sRnJhY3Rpb24CGl9wb29sX3Jld2FyZF91cGRhdGVfaGVpZ2h0ABtrVG90YWxSZXdhcmRQZXJCbG9ja0N1cnJlbnQCHnRvdGFsX3Jld2FyZF9wZXJfYmxvY2t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EAAQAABBJhZG1pblB1YktleTJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQxhZG1pblB1YktleTIAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAKoJvoY", "height": 2280792, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DCAx8MDDkdNncZda2euzyMuTYYQTy6YkZ46XVSYBjZft Next: DtareJ7FyCrRfhTdJ61dtDYDrreuVgGMfG7XnaHB5Bi9 Diff:
Old | New | Differences | |
---|---|---|---|
344 | 344 | } | |
345 | 345 | ||
346 | 346 | ||
347 | - | func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if (( | |
347 | + | func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((getHeightFirstHarvest(pool) > height)) | |
348 | 348 | then { | |
349 | 349 | let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0) | |
350 | 350 | let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestPoolVote)), 0) | |
501 | 501 | let lockPeriod = $t02426824320._1 | |
502 | 502 | let lockCoef = $t02426824320._2 | |
503 | 503 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
504 | - | if (( | |
504 | + | if ((getHeightFirstHarvest(pool) > height)) | |
505 | 505 | then throw("You can't lock shareTokens till first harvest end.") | |
506 | 506 | else if ((lockType > 0)) | |
507 | 507 | then throw("lockType must be > 0") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let kActive = "active" | |
5 | 5 | ||
6 | 6 | let kActiveGlob = "active_all_contracts" | |
7 | 7 | ||
8 | 8 | let kCause = "shutdown_cause" | |
9 | 9 | ||
10 | 10 | let kRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
11 | 11 | ||
12 | 12 | let kRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
13 | 13 | ||
14 | 14 | let kHeightPoolFraction = "_pool_reward_update_height" | |
15 | 15 | ||
16 | 16 | let kTotalRewardPerBlockCurrent = "total_reward_per_block_current" | |
17 | 17 | ||
18 | 18 | let kTotalRewardPerBlockPrevious = "total_reward_per_block_previous" | |
19 | 19 | ||
20 | 20 | let kRewardUpdateHeight = "reward_update_height" | |
21 | 21 | ||
22 | 22 | let kUserShareTokensStaked = "_share_tokens_locked" | |
23 | 23 | ||
24 | 24 | let kUserShareTokensLocked = "_share_tokens_blocked" | |
25 | 25 | ||
26 | 26 | let kUserShareTokensLockedType = "_share_tokens_blocked_type" | |
27 | 27 | ||
28 | 28 | let kUserShareTokensLockedHeight = "_share_tokens_blocked_height" | |
29 | 29 | ||
30 | 30 | let kUserShareTokensVirtual = "_share_tokens_virtual" | |
31 | 31 | ||
32 | 32 | let kShareTotalShareTokens = "_total_share_tokens_locked" | |
33 | 33 | ||
34 | 34 | let kShareTokensVirtual = "_total_share_tokens_virtual" | |
35 | 35 | ||
36 | 36 | let kLockParams = "_lock_params" | |
37 | 37 | ||
38 | 38 | let kLockWavesFee = "lock_waves_fee" | |
39 | 39 | ||
40 | 40 | let kPoolBoostCoef = "_boost_coef" | |
41 | 41 | ||
42 | 42 | let kFarmLastInterest = "_last_interest" | |
43 | 43 | ||
44 | 44 | let kFarmUserLastInterest = "_last_interest" | |
45 | 45 | ||
46 | 46 | let kBoostLastInterest = "_last_interest_b" | |
47 | 47 | ||
48 | 48 | let kBoostUserLastInterest = "_last_interest_u_b" | |
49 | 49 | ||
50 | 50 | let kBoostLPLastInterest = "_last_interest_lpb" | |
51 | 51 | ||
52 | 52 | let kBoostLPUserLastInterest = "_last_interest_u_lpb" | |
53 | 53 | ||
54 | 54 | let kLastInterestHeight = "_last_interest_height" | |
55 | 55 | ||
56 | 56 | let kSWOPid = "SWOP_id" | |
57 | 57 | ||
58 | 58 | let kAvailableSWOP = "_available_SWOP" | |
59 | 59 | ||
60 | 60 | let kSwopYearEmission = "swop_year_emission" | |
61 | 61 | ||
62 | 62 | let kHarvestPoolVote = "_harvest_pool_vote_gSWOP" | |
63 | 63 | ||
64 | 64 | let kPoolVote = "_pool_vote_gSWOP" | |
65 | 65 | ||
66 | 66 | let kUserPoolVote = "_user_vote_gSWOP" | |
67 | 67 | ||
68 | 68 | let kHarvestUserPoolVote = "_harvest_user_pool_vote_gSWOP" | |
69 | 69 | ||
70 | 70 | let kBasePeriod = "base_period" | |
71 | 71 | ||
72 | 72 | let kPeriodLength = "period_length" | |
73 | 73 | ||
74 | 74 | let kStartHeight = "start_height" | |
75 | 75 | ||
76 | 76 | let kFirstHarvestHeight = "first_harvest_height" | |
77 | 77 | ||
78 | 78 | let kShareLimitFH = "share_limit_on_first_harvest" | |
79 | 79 | ||
80 | 80 | let kAdminPubKey1 = "admin_pub_1" | |
81 | 81 | ||
82 | 82 | let kAdminPubKey2 = "admin_pub_2" | |
83 | 83 | ||
84 | 84 | let kAdminPubKey3 = "admin_pub_3" | |
85 | 85 | ||
86 | 86 | let kAdminInvokePubKey = "admin_invoke_pub" | |
87 | 87 | ||
88 | 88 | let kMoneyBoxAddress = "money_box_address" | |
89 | 89 | ||
90 | 90 | let kVotingAddress = "voting_address" | |
91 | 91 | ||
92 | 92 | let kGovAddress = "governance_address" | |
93 | 93 | ||
94 | 94 | let kLPFarmingAddress = "lp_farming" | |
95 | 95 | ||
96 | 96 | let kFarmingTreasureAddr = "farming_treasure" | |
97 | 97 | ||
98 | 98 | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
99 | 99 | ||
100 | 100 | let totalVoteShare = 10000000000 | |
101 | 101 | ||
102 | 102 | let lockBoostCoefScale = 1000 | |
103 | 103 | ||
104 | 104 | let defPoolBoostCoef = 500 | |
105 | 105 | ||
106 | 106 | func getBase58FromOracle (key) = match getString(oracle, key) { | |
107 | 107 | case string: String => | |
108 | 108 | fromBase58String(string) | |
109 | 109 | case nothing => | |
110 | 110 | throw((key + "is empty")) | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
115 | 115 | ||
116 | 116 | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
117 | 117 | ||
118 | 118 | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
119 | 119 | ||
120 | 120 | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
121 | 121 | ||
122 | 122 | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
123 | 123 | ||
124 | 124 | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
125 | 125 | ||
126 | 126 | let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey) | |
127 | 127 | ||
128 | 128 | let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress)) | |
129 | 129 | ||
130 | 130 | let farmingTreasureAddr = Address(getBase58FromOracle(kFarmingTreasureAddr)) | |
131 | 131 | ||
132 | 132 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
133 | 133 | ||
134 | 134 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
135 | 135 | ||
136 | 136 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
137 | 137 | ||
138 | 138 | let currPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
139 | 139 | ||
140 | 140 | let active = getBooleanValue(this, kActive) | |
141 | 141 | ||
142 | 142 | let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true) | |
143 | 143 | ||
144 | 144 | let SwopYearEmission = getIntegerValue(this, kSwopYearEmission) | |
145 | 145 | ||
146 | 146 | let SWOP = fromBase58String(getStringValue(this, kSWOPid)) | |
147 | 147 | ||
148 | 148 | func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH)) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func getTotalShareTokenStaked (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens)) | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), 0) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kPoolVote)), 0) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func accountBalance (assetId) = match assetId { | |
167 | 167 | case id: ByteVector => | |
168 | 168 | assetBalance(this, id) | |
169 | 169 | case waves: Unit => | |
170 | 170 | wavesBalance(this).available | |
171 | 171 | case _ => | |
172 | 172 | throw("Match error") | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func getAssetInfo (assetId) = match assetId { | |
177 | 177 | case id: ByteVector => | |
178 | 178 | let stringId = toBase58String(id) | |
179 | 179 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
180 | 180 | $Tuple3(stringId, info.name, info.decimals) | |
181 | 181 | case waves: Unit => | |
182 | 182 | $Tuple3("WAVES", "WAVES", 8) | |
183 | 183 | case _ => | |
184 | 184 | throw("Match error") | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func calcScaleValue (assetId1,assetId2) = { | |
189 | 189 | let assetId1Decimals = value(assetInfo(assetId1)).decimals | |
190 | 190 | let assetId2Decimals = value(assetInfo(assetId2)).decimals | |
191 | 191 | let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8) | |
192 | 192 | pow(10, 0, scaleDigits, 0, 0, DOWN) | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + kAvailableSWOP)), 0) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func rewardInfo (pool) = { | |
200 | 200 | let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockCurrent), ((("No data on the key: " + kTotalRewardPerBlockCurrent) + " at address ") + toString(govAddress))) | |
201 | 201 | let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockPrevious), ((("No data on the key: " + kTotalRewardPerBlockPrevious) + " at address ") + toString(govAddress))) | |
202 | 202 | let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress))) | |
203 | 203 | let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress))) | |
204 | 204 | let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight) | |
205 | 205 | let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress))) | |
206 | 206 | let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare) | |
207 | 207 | let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare) | |
208 | 208 | if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent)) | |
209 | 209 | then true | |
210 | 210 | else (rewardPoolPrevious > totalRewardPerBlockPrevious)) | |
211 | 211 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
212 | 212 | else $Tuple4(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight) | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func getLastInterestInfo (pool) = { | |
217 | 217 | let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest)) | |
218 | 218 | let boostInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kBoostLastInterest)) | |
219 | 219 | let boostLPInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kBoostLPLastInterest)) | |
220 | 220 | let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height) | |
221 | 221 | $Tuple4(lastInterestHeight, farmInterest, boostInterest, boostLPInterest) | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func calcFarmRwd (pool,curTotalReward) = { | |
226 | 226 | let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef) | |
227 | 227 | ((curTotalReward / (poolBoostCoef + 1)) / lockBoostCoefScale) | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func calcBoostRwd (pool,curTotalReward) = { | |
232 | 232 | let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef) | |
233 | 233 | (fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + 1)) / lockBoostCoefScale) | |
234 | 234 | } | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,boostLpInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue) = if ((shareTokenLocked == 0)) | |
238 | 238 | then $Tuple3(0, 0, 0) | |
239 | 239 | else if (if ((rewardUpdateHeight > height)) | |
240 | 240 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
241 | 241 | else false) | |
242 | 242 | then { | |
243 | 243 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
244 | 244 | let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked)) | |
245 | 245 | let newBoostInterest = (boostInterest + (if ((poolVoted > 0)) | |
246 | 246 | then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted) | |
247 | 247 | else 0)) | |
248 | 248 | let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0)) | |
249 | 249 | then (shareTokenLocked > 0) | |
250 | 250 | else false) | |
251 | 251 | then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted) | |
252 | 252 | else 0)) | |
253 | 253 | $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest) | |
254 | 254 | } | |
255 | 255 | else if (if ((height > rewardUpdateHeight)) | |
256 | 256 | then (rewardUpdateHeight != poolRewardUpdateHeight) | |
257 | 257 | else false) | |
258 | 258 | then { | |
259 | 259 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
260 | 260 | let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked)) | |
261 | 261 | let newBoostInterest = (boostInterest + (if ((poolVoted > 0)) | |
262 | 262 | then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted) | |
263 | 263 | else 0)) | |
264 | 264 | let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0)) | |
265 | 265 | then (shareTokenLocked > 0) | |
266 | 266 | else false) | |
267 | 267 | then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted) | |
268 | 268 | else 0)) | |
269 | 269 | $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest) | |
270 | 270 | } | |
271 | 271 | else if (if (if ((height > rewardUpdateHeight)) | |
272 | 272 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
273 | 273 | else false) | |
274 | 274 | then (lastInterestHeight > rewardUpdateHeight) | |
275 | 275 | else false) | |
276 | 276 | then { | |
277 | 277 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
278 | 278 | let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked)) | |
279 | 279 | let newBoostInterest = (boostInterest + (if ((poolVoted > 0)) | |
280 | 280 | then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted) | |
281 | 281 | else 0)) | |
282 | 282 | let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0)) | |
283 | 283 | then (shareTokenLocked > 0) | |
284 | 284 | else false) | |
285 | 285 | then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted) | |
286 | 286 | else 0)) | |
287 | 287 | $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest) | |
288 | 288 | } | |
289 | 289 | else { | |
290 | 290 | let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
291 | 291 | let framIntrAftrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked)) | |
292 | 292 | let boostIntrAftrUp = (boostInterest + (if ((poolVoted > 0)) | |
293 | 293 | then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue, poolVoted) | |
294 | 294 | else 0)) | |
295 | 295 | let bostLPIntrAftrUp = (farmInterest + (if (if ((poolVoted > 0)) | |
296 | 296 | then (shareTokenLocked > 0) | |
297 | 297 | else false) | |
298 | 298 | then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue, poolVoted) | |
299 | 299 | else 0)) | |
300 | 300 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
301 | 301 | let newFarmInterest = (framIntrAftrUp + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked)) | |
302 | 302 | let newBoostInterest = (boostIntrAftrUp + (if ((poolVoted > 0)) | |
303 | 303 | then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted) | |
304 | 304 | else 0)) | |
305 | 305 | let newBoostLPInterest = (bostLPIntrAftrUp + (if (if ((poolVoted > 0)) | |
306 | 306 | then (shareTokenLocked > 0) | |
307 | 307 | else false) | |
308 | 308 | then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted) | |
309 | 309 | else 0)) | |
310 | 310 | $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest) | |
311 | 311 | } | |
312 | 312 | ||
313 | 313 | ||
314 | 314 | func claimCalc (pool,user) = { | |
315 | 315 | let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool)) | |
316 | 316 | let poolVoted = getPoolVoted(pool) | |
317 | 317 | let uPoolVoted = getUserPoolVoted(pool, user) | |
318 | 318 | let shareTokenStaked = getTotalShareTokenStaked(pool) | |
319 | 319 | let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareTokenStaked) | |
320 | 320 | let $t01430314401 = getLastInterestInfo(pool) | |
321 | 321 | let lastInterestHeight = $t01430314401._1 | |
322 | 322 | let farmInterest = $t01430314401._2 | |
323 | 323 | let boostInterest = $t01430314401._3 | |
324 | 324 | let boostLPInterest = $t01430314401._4 | |
325 | 325 | let $t01440614520 = rewardInfo(pool) | |
326 | 326 | let currentRewardPerBlock = $t01440614520._1 | |
327 | 327 | let rewardUpdateHeight = $t01440614520._2 | |
328 | 328 | let previousRewardPerBlock = $t01440614520._3 | |
329 | 329 | let poolRewardUpdateHeight = $t01440614520._4 | |
330 | 330 | let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest) | |
331 | 331 | let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), boostInterest) | |
332 | 332 | let uBoostLPInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostLPUserLastInterest)), boostLPInterest) | |
333 | 333 | let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
334 | 334 | let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked) | |
335 | 335 | let $t01508815480 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, shareTokenStaked, previousRewardPerBlock, scaleValue) | |
336 | 336 | let newFarmInterest = $t01508815480._1 | |
337 | 337 | let newBoostInterest = $t01508815480._2 | |
338 | 338 | let newBoostLPInterest = $t01508815480._3 | |
339 | 339 | let claimFarming = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue) | |
340 | 340 | let claimBoostingMax = fraction(uPoolVoted, (newBoostInterest - uBoostInterest), scaleValue) | |
341 | 341 | let claimBoosting = fraction((uShareTokensVirt * uPoolVoted), (newBoostLPInterest - uBoostLPInterest), scaleValue) | |
342 | 342 | let toTreasury = (claimBoostingMax - claimBoosting) | |
343 | 343 | $Tuple5(newFarmInterest, newBoostInterest, newBoostLPInterest, (claimFarming + claimBoosting), toTreasury) | |
344 | 344 | } | |
345 | 345 | ||
346 | 346 | ||
347 | - | func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if (( | |
347 | + | func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((getHeightFirstHarvest(pool) > height)) | |
348 | 348 | then { | |
349 | 349 | let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0) | |
350 | 350 | let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestPoolVote)), 0) | |
351 | 351 | let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool)) | |
352 | 352 | let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked) | |
353 | 353 | if ((lockType > 0)) | |
354 | 354 | then throw("You can't lock shareTokens till first harvest end.") | |
355 | 355 | else if ((userVoteAmount == 0)) | |
356 | 356 | then 0 | |
357 | 357 | else if ((pmtAmount >= FHShareTokenUserLimit)) | |
358 | 358 | then (pmtAmount - FHShareTokenUserLimit) | |
359 | 359 | else 0 | |
360 | 360 | } | |
361 | 361 | else 0 | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | func getLockParams (type) = { | |
365 | 365 | let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_") | |
366 | 366 | $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1])) | |
367 | 367 | } | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
371 | 371 | ||
372 | 372 | ||
373 | 373 | func isActive () = if (if (active) | |
374 | 374 | then activeGlob | |
375 | 375 | else false) | |
376 | 376 | then unit | |
377 | 377 | else throw("DApp is inactive at this moment") | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
381 | 381 | then unit | |
382 | 382 | else throw("Only admin can call this function") | |
383 | 383 | ||
384 | 384 | ||
385 | 385 | @Callable(i) | |
386 | 386 | func init (earlyLP) = if (isDefined(getString(this, kSWOPid))) | |
387 | 387 | then throw("SWOP already initialized") | |
388 | 388 | else { | |
389 | 389 | let initAmount = 100000000000000 | |
390 | 390 | let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true) | |
391 | 391 | let SWOPid = calculateAssetId(SWOPissue) | |
392 | 392 | [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))] | |
393 | 393 | } | |
394 | 394 | ||
395 | 395 | ||
396 | 396 | ||
397 | 397 | @Callable(i) | |
398 | 398 | func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kBoostLPLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)]) | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | ||
402 | 402 | @Callable(i) | |
403 | 403 | func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress)) | |
404 | 404 | then throw("Only Governance can call this function") | |
405 | 405 | else { | |
406 | 406 | let user = toString(addressFromPublicKey(adminInvokePubKey)) | |
407 | 407 | let $t01849718571 = claimCalc(pool, user) | |
408 | 408 | let farmInterest = $t01849718571._1 | |
409 | 409 | let boostInterest = $t01849718571._2 | |
410 | 410 | let boostLPinterest = $t01849718571._3 | |
411 | 411 | [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height)] | |
412 | 412 | }) | |
413 | 413 | ||
414 | 414 | ||
415 | 415 | ||
416 | 416 | @Callable(i) | |
417 | 417 | func lockShareTokens (pool,lockType) = valueOrElse(isActive(), { | |
418 | 418 | let shareAssetId = getShareAssetId(pool) | |
419 | 419 | let user = toString(i.originCaller) | |
420 | 420 | let totalShareStaked = getTotalShareTokenStaked(pool) | |
421 | 421 | let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked) | |
422 | 422 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
423 | 423 | let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0) | |
424 | 424 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
425 | 425 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
426 | 426 | let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount) | |
427 | 427 | let $t01969819750 = getLockParams(lockType) | |
428 | 428 | let lockPeriod = $t01969819750._1 | |
429 | 429 | let lockCoef = $t01969819750._2 | |
430 | 430 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
431 | 431 | if ((i.payments[0].assetId != shareAssetId)) | |
432 | 432 | then throw("Wrong sharetoken in payment") | |
433 | 433 | else if ((0 >= i.payments[0].amount)) | |
434 | 434 | then throw("Payment amount must be greater than 0") | |
435 | 435 | else if ((0 > lockType)) | |
436 | 436 | then throw("lockType must be >= 0") | |
437 | 437 | else { | |
438 | 438 | let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType) | |
439 | 439 | if ((shareTokensChangeOnFH == shareTokensChangeOnFH)) | |
440 | 440 | then { | |
441 | 441 | let $t02017722106 = if ((lockType == 0)) | |
442 | 442 | then { | |
443 | 443 | let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH) | |
444 | 444 | $Tuple3([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(i.originCaller, shareTokensChangeOnFH, i.payments[0].assetId)], userAmountVirtualNew, ((totalShareStaked + i.payments[0].amount) - shareTokensChangeOnFH)) | |
445 | 445 | } | |
446 | 446 | else if (if ((userLockedHeigt == 0)) | |
447 | 447 | then if (if ((2 > size(i.payments))) | |
448 | 448 | then true | |
449 | 449 | else (i.payments[1].assetId != unit)) | |
450 | 450 | then true | |
451 | 451 | else (lockWavesFee > i.payments[1].amount) | |
452 | 452 | else false) | |
453 | 453 | then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES")) | |
454 | 454 | else if ((userLockedHeigt > (height + lockPeriod))) | |
455 | 455 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
456 | 456 | else { | |
457 | 457 | let userLockedAmountNew = (userLockedAmount + i.payments[0].amount) | |
458 | 458 | let userLockedHeigtNew = (height + lockPeriod) | |
459 | 459 | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount) | |
460 | 460 | $Tuple3([IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))], userAmountVirtualNew, (totalShareStaked + i.payments[0].amount)) | |
461 | 461 | } | |
462 | 462 | let lockEntries = $t02017722106._1 | |
463 | 463 | let userAmountVirtualNew = $t02017722106._2 | |
464 | 464 | let totalShareStakedNew = $t02017722106._3 | |
465 | 465 | if ((accountBalance(shareAssetId) > totalShareStakedNew)) | |
466 | 466 | then throw("Balance of share-token is lower than totalAmount") | |
467 | 467 | else { | |
468 | 468 | let $t02223722336 = claimCalc(pool, user) | |
469 | 469 | let farmInterest = $t02223722336._1 | |
470 | 470 | let boostInterest = $t02223722336._2 | |
471 | 471 | let boostLPinterest = $t02223722336._3 | |
472 | 472 | let claimAmount = $t02223722336._4 | |
473 | 473 | let toTreasure = $t02223722336._5 | |
474 | 474 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
475 | 475 | let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0")) | |
476 | 476 | then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil) | |
477 | 477 | else 0 | |
478 | 478 | if ((uplp == uplp)) | |
479 | 479 | then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ lockEntries) | |
480 | 480 | else throw("Strict value is not equal to itself.") | |
481 | 481 | } | |
482 | 482 | } | |
483 | 483 | else throw("Strict value is not equal to itself.") | |
484 | 484 | } | |
485 | 485 | }) | |
486 | 486 | ||
487 | 487 | ||
488 | 488 | ||
489 | 489 | @Callable(i) | |
490 | 490 | func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isActive(), { | |
491 | 491 | let shareAssetId = getShareAssetId(pool) | |
492 | 492 | let user = toString(i.originCaller) | |
493 | 493 | let totalShareStaked = getTotalShareTokenStaked(pool) | |
494 | 494 | let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked) | |
495 | 495 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
496 | 496 | let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0) | |
497 | 497 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
498 | 498 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
499 | 499 | let totalUserShareTokens = (userStakedAmount + userLockedAmount) | |
500 | 500 | let $t02426824320 = getLockParams(lockType) | |
501 | 501 | let lockPeriod = $t02426824320._1 | |
502 | 502 | let lockCoef = $t02426824320._2 | |
503 | 503 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
504 | - | if (( | |
504 | + | if ((getHeightFirstHarvest(pool) > height)) | |
505 | 505 | then throw("You can't lock shareTokens till first harvest end.") | |
506 | 506 | else if ((lockType > 0)) | |
507 | 507 | then throw("lockType must be > 0") | |
508 | 508 | else if ((lockAmount > userStakedAmount)) | |
509 | 509 | then throw(("You can't lock more than " + toString(userStakedAmount))) | |
510 | 510 | else if ((accountBalance(shareAssetId) > totalShareStaked)) | |
511 | 511 | then throw("Balance of share-token is lower than totalAmount") | |
512 | 512 | else if (if ((userLockedHeigt == 0)) | |
513 | 513 | then if (if ((1 > size(i.payments))) | |
514 | 514 | then true | |
515 | 515 | else (i.payments[0].assetId != unit)) | |
516 | 516 | then true | |
517 | 517 | else (lockWavesFee > i.payments[0].amount) | |
518 | 518 | else false) | |
519 | 519 | then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES")) | |
520 | 520 | else if ((userLockedHeigt > (height + lockPeriod))) | |
521 | 521 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
522 | 522 | else { | |
523 | 523 | let userLockedAmountNew = (userLockedAmount + lockAmount) | |
524 | 524 | let userStakedAmountNew = (userStakedAmount - lockAmount) | |
525 | 525 | let userLockedHeigtNew = (height + lockPeriod) | |
526 | 526 | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount) | |
527 | 527 | let lockEntries = [IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))] | |
528 | 528 | let $t02602026119 = claimCalc(pool, user) | |
529 | 529 | let farmInterest = $t02602026119._1 | |
530 | 530 | let boostInterest = $t02602026119._2 | |
531 | 531 | let boostLPinterest = $t02602026119._3 | |
532 | 532 | let claimAmount = $t02602026119._4 | |
533 | 533 | let toTreasure = $t02602026119._5 | |
534 | 534 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
535 | 535 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] | |
536 | 536 | } | |
537 | 537 | }) | |
538 | 538 | ||
539 | 539 | ||
540 | 540 | ||
541 | 541 | @Callable(i) | |
542 | 542 | func unlockUserLock (pool,user) = valueOrElse(isActive(), { | |
543 | 543 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
544 | 544 | let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock")) | |
545 | 545 | let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual)) | |
546 | 546 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
547 | 547 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
548 | 548 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
549 | 549 | if ((userLockedHeigt > height)) | |
550 | 550 | then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt))) | |
551 | 551 | else { | |
552 | 552 | let userStakedAmountNew = (userStakedAmount + userLockedAmount) | |
553 | 553 | let $t02780727906 = claimCalc(pool, user) | |
554 | 554 | let farmInterest = $t02780727906._1 | |
555 | 555 | let boostInterest = $t02780727906._2 | |
556 | 556 | let boostLPinterest = $t02780727906._3 | |
557 | 557 | let claimAmount = $t02780727906._4 | |
558 | 558 | let toTreasure = $t02780727906._5 | |
559 | 559 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
560 | 560 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)] | |
561 | 561 | } | |
562 | 562 | }) | |
563 | 563 | ||
564 | 564 | ||
565 | 565 | ||
566 | 566 | @Callable(i) | |
567 | 567 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), { | |
568 | 568 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
569 | 569 | let user = toString(i.originCaller) | |
570 | 570 | let $t02941029509 = claimCalc(pool, user) | |
571 | 571 | let farmInterest = $t02941029509._1 | |
572 | 572 | let boostInterest = $t02941029509._2 | |
573 | 573 | let boostLPinterest = $t02941029509._3 | |
574 | 574 | let claimAmount = $t02941029509._4 | |
575 | 575 | let toTreasure = $t02941029509._5 | |
576 | 576 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
577 | 577 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
578 | 578 | let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount) | |
579 | 579 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
580 | 580 | let totalShareAmount = getTotalShareTokenStaked(pool) | |
581 | 581 | let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount) | |
582 | 582 | if ((shareTokensWithdrawAmount > userStakedAmount)) | |
583 | 583 | then throw("Withdraw amount more then user locked amount") | |
584 | 584 | else if ((accountBalance(shareTokensId) > totalShareAmount)) | |
585 | 585 | then throw("Balance of share-token is lower than totalAmount") | |
586 | 586 | else { | |
587 | 587 | let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0")) | |
588 | 588 | then invoke(lpFarmingAddress, "updateUserInterest", [pool, (userStakedAmount + userLockedAmount)], nil) | |
589 | 589 | else 0 | |
590 | 590 | if ((uplp == uplp)) | |
591 | 591 | then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)] | |
592 | 592 | else throw("Strict value is not equal to itself.") | |
593 | 593 | } | |
594 | 594 | }) | |
595 | 595 | ||
596 | 596 | ||
597 | 597 | ||
598 | 598 | @Callable(i) | |
599 | 599 | func claim (pool) = valueOrElse(isActive(), { | |
600 | 600 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
601 | 601 | let user = toString(i.caller) | |
602 | 602 | let shareTokenLocked = getTotalShareTokenStaked(pool) | |
603 | 603 | let $t03165231751 = claimCalc(pool, user) | |
604 | 604 | let farmInterest = $t03165231751._1 | |
605 | 605 | let boostInterest = $t03165231751._2 | |
606 | 606 | let boostLPinterest = $t03165231751._3 | |
607 | 607 | let claimAmount = $t03165231751._4 | |
608 | 608 | let toTreasure = $t03165231751._5 | |
609 | 609 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
610 | 610 | if ((availableFund == 0)) | |
611 | 611 | then throw("You have 0 available SWOP") | |
612 | 612 | else if ((accountBalance(shareTokensId) > shareTokenLocked)) | |
613 | 613 | then throw("Balance of share-token is lower than totalAmount") | |
614 | 614 | else $Tuple2([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), 0), Reissue(SWOP, (toTreasure + availableFund), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, availableFund, SWOP)], availableFund) | |
615 | 615 | }) | |
616 | 616 | ||
617 | 617 | ||
618 | 618 | ||
619 | 619 | @Callable(i) | |
620 | 620 | func claimAndStake (pool) = valueOrElse(isActive(), { | |
621 | 621 | let claimAmount = { | |
622 | 622 | let @ = invoke(this, "claim", [pool], nil) | |
623 | 623 | if ($isInstanceOf(@, "Int")) | |
624 | 624 | then @ | |
625 | 625 | else throw(($getType(@) + " couldn't be cast to Int")) | |
626 | 626 | } | |
627 | 627 | if ((claimAmount == claimAmount)) | |
628 | 628 | then { | |
629 | 629 | let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)]) | |
630 | 630 | if ((stakeToGov == stakeToGov)) | |
631 | 631 | then nil | |
632 | 632 | else throw("Strict value is not equal to itself.") | |
633 | 633 | } | |
634 | 634 | else throw("Strict value is not equal to itself.") | |
635 | 635 | }) | |
636 | 636 | ||
637 | 637 | ||
638 | 638 | ||
639 | 639 | @Callable(i) | |
640 | 640 | func claimAll (pools) = valueOrElse(isActive(), { | |
641 | 641 | func claimInv (claimTotal,pool) = { | |
642 | 642 | let claimAmount = { | |
643 | 643 | let @ = invoke(this, "claim", [pool], nil) | |
644 | 644 | if ($isInstanceOf(@, "Int")) | |
645 | 645 | then @ | |
646 | 646 | else throw(($getType(@) + " couldn't be cast to Int")) | |
647 | 647 | } | |
648 | 648 | if ((claimAmount == claimAmount)) | |
649 | 649 | then (claimTotal + claimAmount) | |
650 | 650 | else throw("Strict value is not equal to itself.") | |
651 | 651 | } | |
652 | 652 | ||
653 | 653 | let claimTotal = { | |
654 | 654 | let $l = pools | |
655 | 655 | let $s = size($l) | |
656 | 656 | let $acc0 = 0 | |
657 | 657 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
658 | 658 | then $a | |
659 | 659 | else claimInv($a, $l[$i]) | |
660 | 660 | ||
661 | 661 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
662 | 662 | then $a | |
663 | 663 | else throw("List size exceeds 60") | |
664 | 664 | ||
665 | 665 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
666 | 666 | } | |
667 | 667 | if ((claimTotal == 0)) | |
668 | 668 | then throw("You have 0 available SWOP") | |
669 | 669 | else [ScriptTransfer(i.caller, claimTotal, SWOP)] | |
670 | 670 | }) | |
671 | 671 | ||
672 | 672 | ||
673 | 673 | ||
674 | 674 | @Callable(i) | |
675 | 675 | func claimAllAndStake (pools) = valueOrElse(isActive(), { | |
676 | 676 | func claimInv (claimTotal,pool) = { | |
677 | 677 | let claimAmount = { | |
678 | 678 | let @ = invoke(this, "claim", [pool], nil) | |
679 | 679 | if ($isInstanceOf(@, "Int")) | |
680 | 680 | then @ | |
681 | 681 | else throw(($getType(@) + " couldn't be cast to Int")) | |
682 | 682 | } | |
683 | 683 | if ((claimAmount == claimAmount)) | |
684 | 684 | then (claimTotal + claimAmount) | |
685 | 685 | else throw("Strict value is not equal to itself.") | |
686 | 686 | } | |
687 | 687 | ||
688 | 688 | let claimTotal = { | |
689 | 689 | let $l = pools | |
690 | 690 | let $s = size($l) | |
691 | 691 | let $acc0 = 0 | |
692 | 692 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
693 | 693 | then $a | |
694 | 694 | else claimInv($a, $l[$i]) | |
695 | 695 | ||
696 | 696 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
697 | 697 | then $a | |
698 | 698 | else throw("List size exceeds 60") | |
699 | 699 | ||
700 | 700 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60) | |
701 | 701 | } | |
702 | 702 | if ((claimTotal == 0)) | |
703 | 703 | then throw("You have 0 available SWOP") | |
704 | 704 | else { | |
705 | 705 | let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)]) | |
706 | 706 | if ((stakeToGov == stakeToGov)) | |
707 | 707 | then nil | |
708 | 708 | else throw("Strict value is not equal to itself.") | |
709 | 709 | } | |
710 | 710 | }) | |
711 | 711 | ||
712 | 712 | ||
713 | 713 | ||
714 | 714 | @Callable(i) | |
715 | 715 | func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress)) | |
716 | 716 | then throw("Only voiting can call this function") | |
717 | 717 | else { | |
718 | 718 | let $t03413134230 = claimCalc(pool, user) | |
719 | 719 | let farmInterest = $t03413134230._1 | |
720 | 720 | let boostInterest = $t03413134230._2 | |
721 | 721 | let boostLPinterest = $t03413134230._3 | |
722 | 722 | let claimAmount = $t03413134230._4 | |
723 | 723 | let toTreasure = $t03413134230._5 | |
724 | 724 | let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount) | |
725 | 725 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] | |
726 | 726 | }) | |
727 | 727 | ||
728 | 728 | ||
729 | 729 | ||
730 | 730 | @Callable(i) | |
731 | 731 | func shutdown () = valueOrElse(isAdminCall(i), if (!(active)) | |
732 | 732 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
733 | 733 | else suspend("Paused by admin")) | |
734 | 734 | ||
735 | 735 | ||
736 | 736 | ||
737 | 737 | @Callable(i) | |
738 | 738 | func activate () = valueOrElse(isAdminCall(i), if (active) | |
739 | 739 | then throw("DApp is already active") | |
740 | 740 | else [BooleanEntry(kActive, true), DeleteEntry(kCause)]) | |
741 | 741 | ||
742 | 742 | ||
743 | 743 | @Verifier(tx) | |
744 | 744 | func verify () = match tx { | |
745 | 745 | case _ => | |
746 | 746 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
747 | 747 | then 1 | |
748 | 748 | else 0 | |
749 | 749 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
750 | 750 | then 1 | |
751 | 751 | else 0 | |
752 | 752 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
753 | 753 | then 1 | |
754 | 754 | else 0 | |
755 | 755 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
756 | 756 | } | |
757 | 757 |
github/deemru/w8io/026f985 85.76 ms ◑