tx · Dp3ZrvmGenWXb9isLsWpWbas4K25dEpJJxpxuy6aHxDL 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK: -0.04100000 Waves 2023.03.17 17:08 [2494094] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves
{ "type": 13, "id": "Dp3ZrvmGenWXb9isLsWpWbas4K25dEpJJxpxuy6aHxDL", "fee": 4100000, "feeAssetId": null, "timestamp": 1679062163168, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "5x484RUHyaT8NCNneCT9UMbpn2VT7R28QXc1Msa6JAqohcYoQ2wGwuKGhmNHBJ64vr8cryL2sxi7pg98pE3ivXeP", "488gfTp3p79vA5B6iQHmznhKDaXcSWP9ngmbUqP4cEr7RQrD9VUPZz1YKYYxyPb44JJSonjsuX5gMvxDsUdnxab2" ], "script": "base64:BgJiCAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDAggBEgUKAwgBARIECgIICBIECgIICBIECgIIARIFCgMCCAESAwoBCBIECgIIAhIDCgEIEgMKARgSAwoBGBIECgIICBIAEgBkAAdrQWN0aXZlAgZhY3RpdmUAC2tBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAPa0RlcHJlY2F0ZWRQb29sAgtkZXByZWNhdGVkXwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAaa1Jld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkABtrUmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCHl9wcmV2aW91c19wb29sX2ZyYWN0aW9uX3Jld2FyZAATa0hlaWdodFBvb2xGcmFjdGlvbgIaX3Bvb2xfcmV3YXJkX3VwZGF0ZV9oZWlnaHQAE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lNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAKgy/bc", "height": 2494094, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: APS9CBryVDiQcjrQYu2gCksDfbCLLVSrVsiuDioDZtij Next: HRDFC4ah94Ar9JCX9iHWRotevaExRvf4mS7aoPaWMraD Diff:
Old | New | Differences | |
---|---|---|---|
622 | 622 | then throw("Only Governance can call this function") | |
623 | 623 | else { | |
624 | 624 | let user = toString(addressFromPublicKey(adminInvokePubKey)) | |
625 | - | let $ | |
626 | - | let farmInterest = $ | |
627 | - | let boostInterest = $ | |
628 | - | let boostLPinterest = $ | |
625 | + | let $t02986829942 = claimCalc(pool, user) | |
626 | + | let farmInterest = $t02986829942._1 | |
627 | + | let boostInterest = $t02986829942._2 | |
628 | + | let boostLPinterest = $t02986829942._3 | |
629 | 629 | [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)] | |
630 | 630 | }) | |
631 | 631 | ||
652 | 652 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
653 | 653 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
654 | 654 | let totalUserShareTokens = (userStakedAmount + userLockedAmount) | |
655 | - | let $ | |
656 | - | let lockPeriod = $ | |
657 | - | let lockCoef = $ | |
655 | + | let $t03157131623 = getLockParams(lockType) | |
656 | + | let lockPeriod = $t03157131623._1 | |
657 | + | let lockCoef = $t03157131623._2 | |
658 | 658 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
659 | 659 | if ((getHeightFirstHarvest(pool) > height)) | |
660 | 660 | then throw("You can't lock shareTokens till first harvest end.") | |
685 | 685 | let userStakedAmountNew = (userStakedAmount - lockAmount) | |
686 | 686 | let userLockedHeigtNew = (height + lockPeriod) | |
687 | 687 | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew) | |
688 | - | let $ | |
689 | - | let farmInterest = $ | |
690 | - | let boostInterest = $ | |
691 | - | let claimAmount = $ | |
692 | - | let toTreasure = $ | |
693 | - | let teamReward = $ | |
688 | + | let $t03296933063 = claimCalc(pool, user) | |
689 | + | let farmInterest = $t03296933063._1 | |
690 | + | let boostInterest = $t03296933063._2 | |
691 | + | let claimAmount = $t03296933063._3 | |
692 | + | let toTreasure = $t03296933063._4 | |
693 | + | let teamReward = $t03296933063._5 | |
694 | 694 | let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount) | |
695 | 695 | [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)), IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] | |
696 | 696 | } | |
843 | 843 | func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress)) | |
844 | 844 | then throw("Only voiting can call this function") | |
845 | 845 | else { | |
846 | - | let $ | |
847 | - | let farmInterest = $ | |
848 | - | let boostInterest = $ | |
849 | - | let claimAmount = $ | |
850 | - | let toTreasure = $ | |
851 | - | let teamReward = $ | |
846 | + | let $t03788737981 = claimCalc(pool, user) | |
847 | + | let farmInterest = $t03788737981._1 | |
848 | + | let boostInterest = $t03788737981._2 | |
849 | + | let claimAmount = $t03788737981._3 | |
850 | + | let toTreasure = $t03788737981._4 | |
851 | + | let teamReward = $t03788737981._5 | |
852 | 852 | let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount) | |
853 | 853 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] | |
854 | 854 | }) |
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 kDeprecatedPool = "deprecated_" | |
9 | 9 | ||
10 | 10 | let kCause = "shutdown_cause" | |
11 | 11 | ||
12 | 12 | let kRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
13 | 13 | ||
14 | 14 | let kRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
15 | 15 | ||
16 | 16 | let kHeightPoolFraction = "_pool_reward_update_height" | |
17 | 17 | ||
18 | 18 | let kRewardUpdateHeight = "reward_update_height" | |
19 | 19 | ||
20 | 20 | let kUserShareTokensStaked = "_share_tokens_locked" | |
21 | 21 | ||
22 | 22 | let kUserShareTokensLocked = "_share_tokens_blocked" | |
23 | 23 | ||
24 | 24 | let kUserShareTokensLockedType = "_share_tokens_blocked_type" | |
25 | 25 | ||
26 | 26 | let kUserShareTokensLockedHeight = "_share_tokens_blocked_height" | |
27 | 27 | ||
28 | 28 | let kUserShareTokensVirtual = "_share_tokens_virtual" | |
29 | 29 | ||
30 | 30 | let kShareTotalShareTokens = "_total_share_tokens_locked" | |
31 | 31 | ||
32 | 32 | let kShareTokensVirtual = "_total_share_tokens_virtual" | |
33 | 33 | ||
34 | 34 | let kLockParams = "_lock_params" | |
35 | 35 | ||
36 | 36 | let kLockWavesFee = "lock_waves_fee" | |
37 | 37 | ||
38 | 38 | let kPoolBoostCoef = "_boost_coef" | |
39 | 39 | ||
40 | 40 | let kFarmLastInterest = "_last_interest" | |
41 | 41 | ||
42 | 42 | let kFarmUserLastInterest = "_last_interest" | |
43 | 43 | ||
44 | 44 | let kBoostLastInterest = "_last_interest_b" | |
45 | 45 | ||
46 | 46 | let kBoostUserLastInterest = "_last_interest_u_b" | |
47 | 47 | ||
48 | 48 | let kLastInterestHeight = "_last_interest_height" | |
49 | 49 | ||
50 | 50 | let kSWOPid = "SWOP_id" | |
51 | 51 | ||
52 | 52 | let kAvailableSWOP = "_available_SWOP" | |
53 | 53 | ||
54 | 54 | let kHarvestPoolVote = "_harvest_pool_vote_gSWOP" | |
55 | 55 | ||
56 | 56 | let kPoolVote = "_pool_vote_gSWOP" | |
57 | 57 | ||
58 | 58 | let kUserPoolVote = "_user_vote_gSWOP" | |
59 | 59 | ||
60 | 60 | let kPoolStruc = "_pool_struc" | |
61 | 61 | ||
62 | 62 | let kUserPoolStruc = "_user_pool_struc" | |
63 | 63 | ||
64 | 64 | let kHarvestUserPoolVote = "_harvest_user_pool_vote_gSWOP" | |
65 | 65 | ||
66 | 66 | let kFirstHarvestHeight = "first_harvest_height" | |
67 | 67 | ||
68 | 68 | let kShareLimitFH = "share_limit_on_first_harvest" | |
69 | 69 | ||
70 | 70 | let kStratBFarmInterest = "_strat_b_farm_interest" | |
71 | 71 | ||
72 | 72 | let kCpmmContract = "cpmm_contract" | |
73 | 73 | ||
74 | 74 | let kAdminPubKey1 = "admin_pub_1" | |
75 | 75 | ||
76 | 76 | let kAdminPubKey2 = "admin_pub_2" | |
77 | 77 | ||
78 | 78 | let kAdminPubKey3 = "admin_pub_3" | |
79 | 79 | ||
80 | 80 | let kAdminInvokePubKey = "admin_invoke_pub" | |
81 | 81 | ||
82 | 82 | let kMoneyBoxAddress = "money_box_address" | |
83 | 83 | ||
84 | 84 | let kTeamBoxAddress = "team_box_address" | |
85 | 85 | ||
86 | 86 | let kVotingAddress = "voting_address" | |
87 | 87 | ||
88 | 88 | let kGovAddress = "governance_address" | |
89 | 89 | ||
90 | 90 | let kLPFarmingAddress = "lp_farming" | |
91 | 91 | ||
92 | 92 | let kFarmingTreasureAddr = "farming_treasure" | |
93 | 93 | ||
94 | 94 | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
95 | 95 | ||
96 | 96 | let totalVoteShare = 10000000000 | |
97 | 97 | ||
98 | 98 | let scaleValue8 = 100000000 | |
99 | 99 | ||
100 | 100 | let scaleValue6 = 1000000 | |
101 | 101 | ||
102 | 102 | let lockBoostCoefScale = 1000 | |
103 | 103 | ||
104 | 104 | let defPoolBoostCoef = 500 | |
105 | 105 | ||
106 | 106 | let startEmissionH = 2976848 | |
107 | 107 | ||
108 | 108 | let swopYearEmission = 100000000000000 | |
109 | 109 | ||
110 | 110 | let blocksPerYear = 526330 | |
111 | 111 | ||
112 | 112 | let teamFee = 25 | |
113 | 113 | ||
114 | 114 | func getBase58FromOracle (key) = match getString(oracle, key) { | |
115 | 115 | case string: String => | |
116 | 116 | fromBase58String(string) | |
117 | 117 | case nothing => | |
118 | 118 | throw((key + "is empty")) | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
123 | 123 | ||
124 | 124 | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
125 | 125 | ||
126 | 126 | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
127 | 127 | ||
128 | 128 | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
129 | 129 | ||
130 | 130 | let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress)) | |
131 | 131 | ||
132 | 132 | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
133 | 133 | ||
134 | 134 | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
135 | 135 | ||
136 | 136 | let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey) | |
137 | 137 | ||
138 | 138 | let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress)) | |
139 | 139 | ||
140 | 140 | let farmingTreasureAddr = Address(getBase58FromOracle(kFarmingTreasureAddr)) | |
141 | 141 | ||
142 | 142 | let cpmmContract = Address(getBase58FromOracle(kCpmmContract)) | |
143 | 143 | ||
144 | 144 | let active = getBooleanValue(this, kActive) | |
145 | 145 | ||
146 | 146 | let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true) | |
147 | 147 | ||
148 | 148 | let SWOP = fromBase58String(getStringValue(this, kSWOPid)) | |
149 | 149 | ||
150 | 150 | func getRewardsPerBlockInfo () = { | |
151 | 151 | let emissionPeriods = ((height - startEmissionH) / blocksPerYear) | |
152 | 152 | func calcEmission (acc,i) = { | |
153 | 153 | let $t049284965 = acc | |
154 | 154 | let curEmission = $t049284965._1 | |
155 | 155 | let prevEmission = $t049284965._2 | |
156 | 156 | if ((emissionPeriods > i)) | |
157 | 157 | then $Tuple2(fraction(curEmission, 75, 100), curEmission) | |
158 | 158 | else $Tuple2(curEmission, prevEmission) | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | let $t051235289 = { | |
162 | 162 | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
163 | 163 | let $s = size($l) | |
164 | 164 | let $acc0 = $Tuple2(swopYearEmission, swopYearEmission) | |
165 | 165 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
166 | 166 | then $a | |
167 | 167 | else calcEmission($a, $l[$i]) | |
168 | 168 | ||
169 | 169 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
170 | 170 | then $a | |
171 | 171 | else throw("List size exceeds 20") | |
172 | 172 | ||
173 | 173 | $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
174 | 174 | } | |
175 | 175 | let curEmission = $t051235289._1 | |
176 | 176 | let prevEmission = $t051235289._2 | |
177 | 177 | $Tuple3((curEmission / blocksPerYear), (prevEmission / blocksPerYear), (startEmissionH + (blocksPerYear * emissionPeriods))) | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH)) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func getTotalShareToken (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens)) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (pool + kPoolStruc)), ""), "_")[0]), 0)) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kUserPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (((user + "_") + pool) + kUserPoolStruc)), ""), "_")[0]), 0)) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func accountBalance (assetId) = match assetId { | |
200 | 200 | case id: ByteVector => | |
201 | 201 | assetBalance(this, id) | |
202 | 202 | case waves: Unit => | |
203 | 203 | wavesBalance(this).available | |
204 | 204 | case _ => | |
205 | 205 | throw("Match error") | |
206 | 206 | } | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func calcScaleValue (assetId1,assetId2) = { | |
210 | 210 | let assetId1Decimals = value(assetInfo(assetId1)).decimals | |
211 | 211 | let assetId2Decimals = value(assetInfo(assetId2)).decimals | |
212 | 212 | let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8) | |
213 | 213 | pow(10, 0, scaleDigits, 0, 0, DOWN) | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + user) + kAvailableSWOP)), 0) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func rewardInfo (pool) = { | |
221 | 221 | let $t071047219 = getRewardsPerBlockInfo() | |
222 | 222 | let totalRewardPerBlockCurrent = $t071047219._1 | |
223 | 223 | let totalRewardPerBlockPrevious = $t071047219._2 | |
224 | 224 | let lastEmissionUpdateHeight = $t071047219._3 | |
225 | 225 | let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress))) | |
226 | 226 | let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress))) | |
227 | 227 | let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight) | |
228 | 228 | let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress))) | |
229 | 229 | let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare) | |
230 | 230 | let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare) | |
231 | 231 | let rewardPoolPrevCurrent = fraction(totalRewardPerBlockPrevious, rewardPoolFractionCurrent, totalVoteShare) | |
232 | 232 | let rewardPoolPrevPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare) | |
233 | 233 | if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent)) | |
234 | 234 | then true | |
235 | 235 | else (rewardPoolPrevious > totalRewardPerBlockPrevious)) | |
236 | 236 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
237 | 237 | else $Tuple7(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight, lastEmissionUpdateHeight, rewardPoolPrevCurrent, rewardPoolPrevPrevious) | |
238 | 238 | } | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func getLastInterestInfo (pool) = { | |
242 | 242 | let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest)) | |
243 | 243 | let boostInterest = valueOrElse(getInteger(this, (pool + kBoostLastInterest)), 0) | |
244 | 244 | let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height) | |
245 | 245 | $Tuple3(lastInterestHeight, farmInterest, boostInterest) | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func calcFarmRwd (pool,curTotalReward) = { | |
250 | 250 | let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef) | |
251 | 251 | fraction(curTotalReward, lockBoostCoefScale, (poolBoostCoef + lockBoostCoefScale)) | |
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func calcBoostRwd (pool,curTotalReward) = { | |
256 | 256 | let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef) | |
257 | 257 | fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + lockBoostCoefScale)) | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue,toHeight) = { | |
262 | 262 | let $t01023311418 = if (if (if ((rewardUpdateHeight > toHeight)) | |
263 | 263 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
264 | 264 | else false) | |
265 | 265 | then true | |
266 | 266 | else if ((toHeight > rewardUpdateHeight)) | |
267 | 267 | then (rewardUpdateHeight != poolRewardUpdateHeight) | |
268 | 268 | else false) | |
269 | 269 | then { | |
270 | 270 | let r = (previousRewardPerBlock * (toHeight - lastInterestHeight)) | |
271 | 271 | $Tuple3(r, farmInterest, boostInterest) | |
272 | 272 | } | |
273 | 273 | else if (if (if ((toHeight > rewardUpdateHeight)) | |
274 | 274 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
275 | 275 | else false) | |
276 | 276 | then (lastInterestHeight > rewardUpdateHeight) | |
277 | 277 | else false) | |
278 | 278 | then { | |
279 | 279 | let r = (currentRewardPerBlock * (toHeight - lastInterestHeight)) | |
280 | 280 | $Tuple3(r, farmInterest, boostInterest) | |
281 | 281 | } | |
282 | 282 | else { | |
283 | 283 | let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
284 | 284 | let fBfrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked)) | |
285 | 285 | let bBfrUp = (boostInterest + (if ((poolVoted > 0)) | |
286 | 286 | then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue8, poolVoted) | |
287 | 287 | else 0)) | |
288 | 288 | let rwd = (currentRewardPerBlock * (toHeight - rewardUpdateHeight)) | |
289 | 289 | $Tuple3(rwd, fBfrUp, bBfrUp) | |
290 | 290 | } | |
291 | 291 | let reward = $t01023311418._1 | |
292 | 292 | let farmIntrBefore = $t01023311418._2 | |
293 | 293 | let boostIntrBefore = $t01023311418._3 | |
294 | 294 | let newFarmInterest = (farmIntrBefore + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked)) | |
295 | 295 | let newBoostInterest = (boostIntrBefore + (if ((poolVoted > 0)) | |
296 | 296 | then fraction(calcBoostRwd(pool, reward), scaleValue8, poolVoted) | |
297 | 297 | else 0)) | |
298 | 298 | $Tuple2(newFarmInterest, newBoostInterest) | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func claimCalc (pool,user) = { | |
303 | 303 | let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool)) | |
304 | 304 | let poolVoted = getPoolVoted(pool) | |
305 | 305 | let uPoolVoted = getUserPoolVoted(pool, user) | |
306 | 306 | let shareToken = getTotalShareToken(pool) | |
307 | 307 | let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken) | |
308 | 308 | let stratBFarmInterest = valueOrElse(getInteger(this, (pool + kStratBFarmInterest)), 0) | |
309 | 309 | let $t01225612337 = getLastInterestInfo(pool) | |
310 | 310 | let lastInterestHeight = $t01225612337._1 | |
311 | 311 | let farmInterest = $t01225612337._2 | |
312 | 312 | let boostInterest = $t01225612337._3 | |
313 | 313 | let $t01234212599 = rewardInfo(pool) | |
314 | 314 | let currentRewardPerBlock = $t01234212599._1 | |
315 | 315 | let rewardUpdateHeight = $t01234212599._2 | |
316 | 316 | let previousRewardPerBlock = $t01234212599._3 | |
317 | 317 | let poolRewardUpdateHeight = $t01234212599._4 | |
318 | 318 | let emissionUpdateHeight = $t01234212599._5 | |
319 | 319 | let prevCurrentRewardPerBlock = $t01234212599._6 | |
320 | 320 | let prevPreviousRewardPerBlock = $t01234212599._7 | |
321 | 321 | let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest) | |
322 | 322 | let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), if (if ((stratBFarmInterest > uFarmInterest)) | |
323 | 323 | then (uPoolVoted > 0) | |
324 | 324 | else false) | |
325 | 325 | then 0 | |
326 | 326 | else boostInterest) | |
327 | 327 | let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
328 | 328 | let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked) | |
329 | 329 | if ((totalShareVirtual == 0)) | |
330 | 330 | then { | |
331 | 331 | let toTreasury = if ((emissionUpdateHeight > lastInterestHeight)) | |
332 | 332 | then ((prevCurrentRewardPerBlock * (emissionUpdateHeight - lastInterestHeight)) + (currentRewardPerBlock * (height - emissionUpdateHeight))) | |
333 | 333 | else (currentRewardPerBlock * (height - lastInterestHeight)) | |
334 | 334 | let teamReward = fraction(toTreasury, teamFee, 100) | |
335 | 335 | $Tuple5(farmInterest, boostInterest, 0, (toTreasury - teamReward), teamReward) | |
336 | 336 | } | |
337 | 337 | else { | |
338 | 338 | let $t01364214779 = if ((emissionUpdateHeight > lastInterestHeight)) | |
339 | 339 | then { | |
340 | 340 | let $t01405514614 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, prevCurrentRewardPerBlock, totalShareVirtual, prevPreviousRewardPerBlock, scaleValue, emissionUpdateHeight) | |
341 | 341 | let prevNewFarmInterest = $t01405514614._1 | |
342 | 342 | let prevNewBoostInterest = $t01405514614._2 | |
343 | 343 | $Tuple3(prevNewFarmInterest, prevNewBoostInterest, emissionUpdateHeight) | |
344 | 344 | } | |
345 | 345 | else $Tuple3(farmInterest, boostInterest, lastInterestHeight) | |
346 | 346 | let prevFarmInterest = $t01364214779._1 | |
347 | 347 | let prevBoostInterest = $t01364214779._2 | |
348 | 348 | let LIHeight = $t01364214779._3 | |
349 | 349 | let $t01478815211 = calcInterest(pool, LIHeight, rewardUpdateHeight, poolRewardUpdateHeight, prevFarmInterest, prevBoostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue, height) | |
350 | 350 | let newFarmInterest = $t01478815211._1 | |
351 | 351 | let newBoostInterest = $t01478815211._2 | |
352 | 352 | let farmRwd = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue) | |
353 | 353 | let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef) | |
354 | 354 | let boostRwdMax = fraction(fraction(uShareTokensVirt, (newFarmInterest - max([uFarmInterest, stratBFarmInterest])), scaleValue), poolBoostCoef, lockBoostCoefScale) | |
355 | 355 | let curBoostRwd = fraction((newBoostInterest - uBoostInterest), uPoolVoted, scaleValue8) | |
356 | 356 | let boostRwd = min([boostRwdMax, curBoostRwd]) | |
357 | 357 | let toTreasury = (boostRwdMax - boostRwd) | |
358 | 358 | let teamReward = fraction(toTreasury, teamFee, 100) | |
359 | 359 | if ((0 > toTreasury)) | |
360 | 360 | then throw("toTreasury < 0") | |
361 | 361 | else $Tuple5(newFarmInterest, newBoostInterest, (farmRwd + boostRwd), (toTreasury - teamReward), teamReward) | |
362 | 362 | } | |
363 | 363 | } | |
364 | 364 | ||
365 | 365 | ||
366 | 366 | func availableClaimCalcAllByUser (pools,user) = { | |
367 | 367 | func calcAvailable (acc,pool) = { | |
368 | 368 | let $t01616516194 = acc | |
369 | 369 | let newPools = $t01616516194._1 | |
370 | 370 | let amounts = $t01616516194._2 | |
371 | 371 | let $t01620316256 = claimCalc(pool, user) | |
372 | 372 | let fi = $t01620316256._1 | |
373 | 373 | let bi = $t01620316256._2 | |
374 | 374 | let claimAmount = $t01620316256._3 | |
375 | 375 | let tt = $t01620316256._4 | |
376 | 376 | let availableFund = (userAvailableSWOP(pool, user) + claimAmount) | |
377 | 377 | $Tuple2((newPools :+ pool), (amounts :+ availableFund)) | |
378 | 378 | } | |
379 | 379 | ||
380 | 380 | let $l = pools | |
381 | 381 | let $s = size($l) | |
382 | 382 | let $acc0 = $Tuple2(nil, nil) | |
383 | 383 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
384 | 384 | then $a | |
385 | 385 | else calcAvailable($a, $l[$i]) | |
386 | 386 | ||
387 | 387 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
388 | 388 | then $a | |
389 | 389 | else throw("List size exceeds 60") | |
390 | 390 | ||
391 | 391 | $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) | |
392 | 392 | } | |
393 | 393 | ||
394 | 394 | ||
395 | 395 | func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((getHeightFirstHarvest(pool) > height)) | |
396 | 396 | then { | |
397 | 397 | let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0) | |
398 | 398 | let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestUserPoolVote)), 0) | |
399 | 399 | let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool)) | |
400 | 400 | let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked) | |
401 | 401 | if ((lockType > 0)) | |
402 | 402 | then throw("You can't lock shareTokens till first harvest end.") | |
403 | 403 | else if ((userVoteAmount == 0)) | |
404 | 404 | then 0 | |
405 | 405 | else if ((pmtAmount >= FHShareTokenUserLimit)) | |
406 | 406 | then (pmtAmount - FHShareTokenUserLimit) | |
407 | 407 | else 0 | |
408 | 408 | } | |
409 | 409 | else 0 | |
410 | 410 | ||
411 | 411 | ||
412 | 412 | func getLockParams (type) = { | |
413 | 413 | let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_") | |
414 | 414 | $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1])) | |
415 | 415 | } | |
416 | 416 | ||
417 | 417 | ||
418 | 418 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
419 | 419 | ||
420 | 420 | ||
421 | 421 | func isActive () = if (if (active) | |
422 | 422 | then activeGlob | |
423 | 423 | else false) | |
424 | 424 | then unit | |
425 | 425 | else throw("DApp is inactive at this moment") | |
426 | 426 | ||
427 | 427 | ||
428 | 428 | func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
429 | 429 | then unit | |
430 | 430 | else throw("Only admin can call this function") | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | func isPoolCall (i,pool) = if (if ((toString(i.caller) == pool)) | |
434 | 434 | then true | |
435 | 435 | else (i.caller == cpmmContract)) | |
436 | 436 | then unit | |
437 | 437 | else throw("Only pool can call this function") | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | func getDeprecatedPool (pool) = valueOrElse(getBoolean(oracle, (kDeprecatedPool + pool)), false) | |
441 | 441 | ||
442 | 442 | ||
443 | 443 | func isDeprecatedPool (pool) = if (!(getDeprecatedPool(pool))) | |
444 | 444 | then unit | |
445 | 445 | else throw("Pool is deprecated. Only unlock action allowed.") | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | func isSelfCall (i) = if ((i.caller == this)) | |
449 | 449 | then unit | |
450 | 450 | else throw("Only contract itself can call this function") | |
451 | 451 | ||
452 | 452 | ||
453 | 453 | func calcLockShareTokens (i,caller,pool,lockType) = { | |
454 | 454 | let shareAssetId = getShareAssetId(pool) | |
455 | 455 | let user = toString(caller) | |
456 | 456 | let totalShare = getTotalShareToken(pool) | |
457 | 457 | let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare) | |
458 | 458 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
459 | 459 | let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0) | |
460 | 460 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
461 | 461 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
462 | 462 | let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount) | |
463 | 463 | let $t01930519357 = getLockParams(lockType) | |
464 | 464 | let lockPeriod = $t01930519357._1 | |
465 | 465 | let lockCoef = $t01930519357._2 | |
466 | 466 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
467 | 467 | if ((i.payments[0].assetId != shareAssetId)) | |
468 | 468 | then throw("Wrong sharetoken in payment") | |
469 | 469 | else if ((0 >= i.payments[0].amount)) | |
470 | 470 | then throw("Payment amount must be greater than 0") | |
471 | 471 | else if ((0 > lockType)) | |
472 | 472 | then throw("lockType must be >= 0") | |
473 | 473 | else { | |
474 | 474 | let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType) | |
475 | 475 | if ((shareTokensChangeOnFH == shareTokensChangeOnFH)) | |
476 | 476 | then { | |
477 | 477 | let $t01978421718 = if ((lockType == 0)) | |
478 | 478 | then { | |
479 | 479 | let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH) | |
480 | 480 | $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(caller, shareTokensChangeOnFH, i.payments[0].assetId)], ((totalShare + i.payments[0].amount) - shareTokensChangeOnFH)) | |
481 | 481 | } | |
482 | 482 | else if (if ((userLockedHeigt == 0)) | |
483 | 483 | then if (if ((2 > size(i.payments))) | |
484 | 484 | then true | |
485 | 485 | else (i.payments[1].assetId != unit)) | |
486 | 486 | then true | |
487 | 487 | else (lockWavesFee > i.payments[1].amount) | |
488 | 488 | else false) | |
489 | 489 | then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES")) | |
490 | 490 | else if ((userLockedHeigt > (height + lockPeriod))) | |
491 | 491 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
492 | 492 | else { | |
493 | 493 | let userLockedAmountNew = (userLockedAmount + i.payments[0].amount) | |
494 | 494 | let userLockedHeigtNew = (height + lockPeriod) | |
495 | 495 | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount) | |
496 | 496 | $Tuple2([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))], (totalShare + i.payments[0].amount)) | |
497 | 497 | } | |
498 | 498 | let lockEntries = $t01978421718._1 | |
499 | 499 | let totalShareNew = $t01978421718._2 | |
500 | 500 | if ((totalShareNew > accountBalance(shareAssetId))) | |
501 | 501 | then throw("Balance of share-token is lower than totalAmount") | |
502 | 502 | else { | |
503 | 503 | let $t02184321937 = claimCalc(pool, user) | |
504 | 504 | let farmInterest = $t02184321937._1 | |
505 | 505 | let boostInterest = $t02184321937._2 | |
506 | 506 | let claimAmount = $t02184321937._3 | |
507 | 507 | let toTreasure = $t02184321937._4 | |
508 | 508 | let teamReward = $t02184321937._5 | |
509 | 509 | let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount) | |
510 | 510 | let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0")) | |
511 | 511 | then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil) | |
512 | 512 | else 0 | |
513 | 513 | if ((uplp == uplp)) | |
514 | 514 | then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] ++ lockEntries) | |
515 | 515 | else throw("Strict value is not equal to itself.") | |
516 | 516 | } | |
517 | 517 | } | |
518 | 518 | else throw("Strict value is not equal to itself.") | |
519 | 519 | } | |
520 | 520 | } | |
521 | 521 | ||
522 | 522 | ||
523 | 523 | func calcWithdrawShareTokens (i,caller,pool,shareTokensWithdrawAmount) = { | |
524 | 524 | let inv = if (getDeprecatedPool(pool)) | |
525 | 525 | then invoke(this, "unlockUserLockDeprecated", [pool, toString(caller)], nil) | |
526 | 526 | else 0 | |
527 | 527 | if ((inv == inv)) | |
528 | 528 | then { | |
529 | 529 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
530 | 530 | let user = toString(caller) | |
531 | 531 | let $t02330523399 = claimCalc(pool, user) | |
532 | 532 | let farmInterest = $t02330523399._1 | |
533 | 533 | let boostInterest = $t02330523399._2 | |
534 | 534 | let claimAmount = $t02330523399._3 | |
535 | 535 | let toTreasure = $t02330523399._4 | |
536 | 536 | let teamReward = $t02330523399._5 | |
537 | 537 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
538 | 538 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
539 | 539 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
540 | 540 | let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount) | |
541 | 541 | let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount) | |
542 | 542 | let totalShareAmount = getTotalShareToken(pool) | |
543 | 543 | let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount) | |
544 | 544 | let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount) | |
545 | 545 | let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount) | |
546 | 546 | let userAmountVirtualNew = (userAmountVirtual - shareTokensWithdrawAmount) | |
547 | 547 | if ((shareTokensWithdrawAmount > userStakedAmount)) | |
548 | 548 | then throw("Withdraw amount more then user locked amount") | |
549 | 549 | else if ((accountBalance(shareTokensId) > totalShareAmount)) | |
550 | 550 | then throw("Balance of share-token is lower than totalAmount") | |
551 | 551 | else { | |
552 | 552 | let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0")) | |
553 | 553 | then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil) | |
554 | 554 | else 0 | |
555 | 555 | if ((uplp == uplp)) | |
556 | 556 | then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((pool + kShareTokensVirtual), totalShareVirtualNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)] | |
557 | 557 | else throw("Strict value is not equal to itself.") | |
558 | 558 | } | |
559 | 559 | } | |
560 | 560 | else throw("Strict value is not equal to itself.") | |
561 | 561 | } | |
562 | 562 | ||
563 | 563 | ||
564 | 564 | func calcClaim (i,pool,caller) = { | |
565 | 565 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
566 | 566 | let user = toString(caller) | |
567 | 567 | let shareTokenLocked = getTotalShareToken(pool) | |
568 | 568 | let $t02596926063 = claimCalc(pool, user) | |
569 | 569 | let farmInterest = $t02596926063._1 | |
570 | 570 | let boostInterest = $t02596926063._2 | |
571 | 571 | let claimAmount = $t02596926063._3 | |
572 | 572 | let toTreasure = $t02596926063._4 | |
573 | 573 | let teamReward = $t02596926063._5 | |
574 | 574 | let availableFund = (userAvailableSWOP(pool, user) + claimAmount) | |
575 | 575 | if ((accountBalance(shareTokensId) > shareTokenLocked)) | |
576 | 576 | then throw("Balance of share-token is lower than totalAmount") | |
577 | 577 | else { | |
578 | 578 | let uTrans = if ((i.caller != this)) | |
579 | 579 | then [ScriptTransfer(i.caller, availableFund, SWOP)] | |
580 | 580 | else nil | |
581 | 581 | $Tuple2(([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), 0), Reissue(SWOP, ((toTreasure + availableFund) + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] ++ uTrans), availableFund) | |
582 | 582 | } | |
583 | 583 | } | |
584 | 584 | ||
585 | 585 | ||
586 | 586 | func unlockUserLockCalc (i,pool,user) = { | |
587 | 587 | let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual)) | |
588 | 588 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
589 | 589 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
590 | 590 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
591 | 591 | let userStakedAmountNew = (userStakedAmount + userLockedAmount) | |
592 | 592 | let $t02753727631 = claimCalc(pool, user) | |
593 | 593 | let farmInterest = $t02753727631._1 | |
594 | 594 | let boostInterest = $t02753727631._2 | |
595 | 595 | let claimAmount = $t02753727631._3 | |
596 | 596 | let toTreasure = $t02753727631._4 | |
597 | 597 | let teamReward = $t02753727631._5 | |
598 | 598 | let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount) | |
599 | 599 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] | |
600 | 600 | } | |
601 | 601 | ||
602 | 602 | ||
603 | 603 | @Callable(i) | |
604 | 604 | func init (earlyLP) = if (isDefined(getString(this, kSWOPid))) | |
605 | 605 | then throw("SWOP already initialized") | |
606 | 606 | else { | |
607 | 607 | let initAmount = 100000000000000 | |
608 | 608 | let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true) | |
609 | 609 | let SWOPid = calculateAssetId(SWOPissue) | |
610 | 610 | [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))] | |
611 | 611 | } | |
612 | 612 | ||
613 | 613 | ||
614 | 614 | ||
615 | 615 | @Callable(i) | |
616 | 616 | func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)]) | |
617 | 617 | ||
618 | 618 | ||
619 | 619 | ||
620 | 620 | @Callable(i) | |
621 | 621 | func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress)) | |
622 | 622 | then throw("Only Governance can call this function") | |
623 | 623 | else { | |
624 | 624 | let user = toString(addressFromPublicKey(adminInvokePubKey)) | |
625 | - | let $ | |
626 | - | let farmInterest = $ | |
627 | - | let boostInterest = $ | |
628 | - | let boostLPinterest = $ | |
625 | + | let $t02986829942 = claimCalc(pool, user) | |
626 | + | let farmInterest = $t02986829942._1 | |
627 | + | let boostInterest = $t02986829942._2 | |
628 | + | let boostLPinterest = $t02986829942._3 | |
629 | 629 | [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)] | |
630 | 630 | }) | |
631 | 631 | ||
632 | 632 | ||
633 | 633 | ||
634 | 634 | @Callable(i) | |
635 | 635 | func lockShareTokens (pool,lockType) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), calcLockShareTokens(i, i.caller, pool, lockType))) | |
636 | 636 | ||
637 | 637 | ||
638 | 638 | ||
639 | 639 | @Callable(i) | |
640 | 640 | func lockShareTokensFromPool (callerBytes,pool,lockType) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcLockShareTokens(i, Address(callerBytes), pool, lockType)))) | |
641 | 641 | ||
642 | 642 | ||
643 | 643 | ||
644 | 644 | @Callable(i) | |
645 | 645 | func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), { | |
646 | 646 | let shareAssetId = getShareAssetId(pool) | |
647 | 647 | let user = toString(i.caller) | |
648 | 648 | let totalShare = getTotalShareToken(pool) | |
649 | 649 | let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare) | |
650 | 650 | let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0) | |
651 | 651 | let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0) | |
652 | 652 | let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0) | |
653 | 653 | let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount) | |
654 | 654 | let totalUserShareTokens = (userStakedAmount + userLockedAmount) | |
655 | - | let $ | |
656 | - | let lockPeriod = $ | |
657 | - | let lockCoef = $ | |
655 | + | let $t03157131623 = getLockParams(lockType) | |
656 | + | let lockPeriod = $t03157131623._1 | |
657 | + | let lockCoef = $t03157131623._2 | |
658 | 658 | let lockWavesFee = getIntegerValue(this, kLockWavesFee) | |
659 | 659 | if ((getHeightFirstHarvest(pool) > height)) | |
660 | 660 | then throw("You can't lock shareTokens till first harvest end.") | |
661 | 661 | else if ((0 >= lockType)) | |
662 | 662 | then throw("lockType must be > 0") | |
663 | 663 | else if ((lockAmount > userStakedAmount)) | |
664 | 664 | then throw(("You can't lock more than " + toString(userStakedAmount))) | |
665 | 665 | else if ((accountBalance(shareAssetId) > totalShare)) | |
666 | 666 | then throw("Balance of share-token is lower than totalAmount") | |
667 | 667 | else if (if ((userLockedHeigt == 0)) | |
668 | 668 | then if (if ((1 > size(i.payments))) | |
669 | 669 | then true | |
670 | 670 | else (i.payments[0].assetId != unit)) | |
671 | 671 | then true | |
672 | 672 | else (lockWavesFee > i.payments[0].amount) | |
673 | 673 | else false) | |
674 | 674 | then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES")) | |
675 | 675 | else if (if ((userLockedHeigt == 0)) | |
676 | 676 | then (0 >= lockAmount) | |
677 | 677 | else false) | |
678 | 678 | then throw("lockAmount must be greater than 0") | |
679 | 679 | else if ((0 > lockAmount)) | |
680 | 680 | then throw("lockAmount must be positive") | |
681 | 681 | else if ((userLockedHeigt > (height + lockPeriod))) | |
682 | 682 | then throw("You cannot lock sharetokens for a period less than what you have already locked") | |
683 | 683 | else { | |
684 | 684 | let userLockedAmountNew = (userLockedAmount + lockAmount) | |
685 | 685 | let userStakedAmountNew = (userStakedAmount - lockAmount) | |
686 | 686 | let userLockedHeigtNew = (height + lockPeriod) | |
687 | 687 | let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew) | |
688 | - | let $ | |
689 | - | let farmInterest = $ | |
690 | - | let boostInterest = $ | |
691 | - | let claimAmount = $ | |
692 | - | let toTreasure = $ | |
693 | - | let teamReward = $ | |
688 | + | let $t03296933063 = claimCalc(pool, user) | |
689 | + | let farmInterest = $t03296933063._1 | |
690 | + | let boostInterest = $t03296933063._2 | |
691 | + | let claimAmount = $t03296933063._3 | |
692 | + | let toTreasure = $t03296933063._4 | |
693 | + | let teamReward = $t03296933063._5 | |
694 | 694 | let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount) | |
695 | 695 | [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)), IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] | |
696 | 696 | } | |
697 | 697 | })) | |
698 | 698 | ||
699 | 699 | ||
700 | 700 | ||
701 | 701 | @Callable(i) | |
702 | 702 | func unlockUserLock (pool,user) = valueOrElse(isActive(), { | |
703 | 703 | let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock")) | |
704 | 704 | if ((userLockedHeigt > height)) | |
705 | 705 | then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt))) | |
706 | 706 | else (unlockUserLockCalc(i, pool, user) ++ [ScriptTransfer(i.caller, getIntegerValue(this, kLockWavesFee), unit)]) | |
707 | 707 | }) | |
708 | 708 | ||
709 | 709 | ||
710 | 710 | ||
711 | 711 | @Callable(i) | |
712 | 712 | func unlockUserLockDeprecated (pool,user) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), if (!(getDeprecatedPool(pool))) | |
713 | 713 | then throw("Pool must be deprecated") | |
714 | 714 | else if (isDefined(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)))) | |
715 | 715 | then (unlockUserLockCalc(i, pool, user) ++ [ScriptTransfer(moneyBoxAddress, getIntegerValue(this, kLockWavesFee), unit)]) | |
716 | 716 | else nil)) | |
717 | 717 | ||
718 | 718 | ||
719 | 719 | ||
720 | 720 | @Callable(i) | |
721 | 721 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), calcWithdrawShareTokens(i, i.caller, pool, shareTokensWithdrawAmount)) | |
722 | 722 | ||
723 | 723 | ||
724 | 724 | ||
725 | 725 | @Callable(i) | |
726 | 726 | func withdrawShareTokensFromPool (callerBytes,pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcWithdrawShareTokens(i, Address(callerBytes), pool, shareTokensWithdrawAmount))) | |
727 | 727 | ||
728 | 728 | ||
729 | 729 | ||
730 | 730 | @Callable(i) | |
731 | 731 | func claim (pool) = valueOrElse(isActive(), { | |
732 | 732 | let r = calcClaim(i, pool, i.caller) | |
733 | 733 | if ((r._2 == 0)) | |
734 | 734 | then throw("You have 0 available SWOP") | |
735 | 735 | else r | |
736 | 736 | }) | |
737 | 737 | ||
738 | 738 | ||
739 | 739 | ||
740 | 740 | @Callable(i) | |
741 | 741 | func claimInternal (pool,caller) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), calcClaim(i, pool, Address(caller)))) | |
742 | 742 | ||
743 | 743 | ||
744 | 744 | ||
745 | 745 | @Callable(i) | |
746 | 746 | func claimAndStake (pool) = valueOrElse(isActive(), { | |
747 | 747 | let claimAmount = { | |
748 | 748 | let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil) | |
749 | 749 | if ($isInstanceOf(@, "Int")) | |
750 | 750 | then @ | |
751 | 751 | else throw(($getType(@) + " couldn't be cast to Int")) | |
752 | 752 | } | |
753 | 753 | if ((claimAmount == claimAmount)) | |
754 | 754 | then if ((claimAmount == 0)) | |
755 | 755 | then throw("You have 0 available SWOP") | |
756 | 756 | else { | |
757 | 757 | let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)]) | |
758 | 758 | if ((stakeToGov == stakeToGov)) | |
759 | 759 | then nil | |
760 | 760 | else throw("Strict value is not equal to itself.") | |
761 | 761 | } | |
762 | 762 | else throw("Strict value is not equal to itself.") | |
763 | 763 | }) | |
764 | 764 | ||
765 | 765 | ||
766 | 766 | ||
767 | 767 | @Callable(i) | |
768 | 768 | func claimAll (pools) = valueOrElse(isActive(), { | |
769 | 769 | func claimInv (claimTotal,pool) = { | |
770 | 770 | let claimAmount = { | |
771 | 771 | let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil) | |
772 | 772 | if ($isInstanceOf(@, "Int")) | |
773 | 773 | then @ | |
774 | 774 | else throw(($getType(@) + " couldn't be cast to Int")) | |
775 | 775 | } | |
776 | 776 | if ((claimAmount == claimAmount)) | |
777 | 777 | then (claimTotal + claimAmount) | |
778 | 778 | else throw("Strict value is not equal to itself.") | |
779 | 779 | } | |
780 | 780 | ||
781 | 781 | let claimTotal = { | |
782 | 782 | let $l = pools | |
783 | 783 | let $s = size($l) | |
784 | 784 | let $acc0 = 0 | |
785 | 785 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
786 | 786 | then $a | |
787 | 787 | else claimInv($a, $l[$i]) | |
788 | 788 | ||
789 | 789 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
790 | 790 | then $a | |
791 | 791 | else throw("List size exceeds 60") | |
792 | 792 | ||
793 | 793 | $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) | |
794 | 794 | } | |
795 | 795 | if ((claimTotal == 0)) | |
796 | 796 | then throw("You have 0 available SWOP") | |
797 | 797 | else [ScriptTransfer(i.caller, claimTotal, SWOP)] | |
798 | 798 | }) | |
799 | 799 | ||
800 | 800 | ||
801 | 801 | ||
802 | 802 | @Callable(i) | |
803 | 803 | func claimAllAndStake (pools) = valueOrElse(isActive(), { | |
804 | 804 | func claimInv (claimTotal,pool) = { | |
805 | 805 | let claimAmount = { | |
806 | 806 | let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil) | |
807 | 807 | if ($isInstanceOf(@, "Int")) | |
808 | 808 | then @ | |
809 | 809 | else throw(($getType(@) + " couldn't be cast to Int")) | |
810 | 810 | } | |
811 | 811 | if ((claimAmount == claimAmount)) | |
812 | 812 | then (claimTotal + claimAmount) | |
813 | 813 | else throw("Strict value is not equal to itself.") | |
814 | 814 | } | |
815 | 815 | ||
816 | 816 | let claimTotal = { | |
817 | 817 | let $l = pools | |
818 | 818 | let $s = size($l) | |
819 | 819 | let $acc0 = 0 | |
820 | 820 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
821 | 821 | then $a | |
822 | 822 | else claimInv($a, $l[$i]) | |
823 | 823 | ||
824 | 824 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
825 | 825 | then $a | |
826 | 826 | else throw("List size exceeds 60") | |
827 | 827 | ||
828 | 828 | $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) | |
829 | 829 | } | |
830 | 830 | if ((claimTotal == 0)) | |
831 | 831 | then throw("You have 0 available SWOP") | |
832 | 832 | else { | |
833 | 833 | let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)]) | |
834 | 834 | if ((stakeToGov == stakeToGov)) | |
835 | 835 | then nil | |
836 | 836 | else throw("Strict value is not equal to itself.") | |
837 | 837 | } | |
838 | 838 | }) | |
839 | 839 | ||
840 | 840 | ||
841 | 841 | ||
842 | 842 | @Callable(i) | |
843 | 843 | func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress)) | |
844 | 844 | then throw("Only voiting can call this function") | |
845 | 845 | else { | |
846 | - | let $ | |
847 | - | let farmInterest = $ | |
848 | - | let boostInterest = $ | |
849 | - | let claimAmount = $ | |
850 | - | let toTreasure = $ | |
851 | - | let teamReward = $ | |
846 | + | let $t03788737981 = claimCalc(pool, user) | |
847 | + | let farmInterest = $t03788737981._1 | |
848 | + | let boostInterest = $t03788737981._2 | |
849 | + | let claimAmount = $t03788737981._3 | |
850 | + | let toTreasure = $t03788737981._4 | |
851 | + | let teamReward = $t03788737981._5 | |
852 | 852 | let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount) | |
853 | 853 | [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] | |
854 | 854 | }) | |
855 | 855 | ||
856 | 856 | ||
857 | 857 | ||
858 | 858 | @Callable(i) | |
859 | 859 | func shutdown () = valueOrElse(isAdminCall(i), if (!(active)) | |
860 | 860 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
861 | 861 | else suspend("Paused by admin")) | |
862 | 862 | ||
863 | 863 | ||
864 | 864 | ||
865 | 865 | @Callable(i) | |
866 | 866 | func activate () = valueOrElse(isAdminCall(i), if (active) | |
867 | 867 | then throw("DApp is already active") | |
868 | 868 | else [BooleanEntry(kActive, true), DeleteEntry(kCause)]) | |
869 | 869 | ||
870 | 870 | ||
871 | 871 | @Verifier(tx) | |
872 | 872 | func verify () = match tx { | |
873 | 873 | case _ => | |
874 | 874 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
875 | 875 | then 1 | |
876 | 876 | else 0 | |
877 | 877 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
878 | 878 | then 1 | |
879 | 879 | else 0 | |
880 | 880 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
881 | 881 | then 1 | |
882 | 882 | else 0 | |
883 | 883 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
884 | 884 | } | |
885 | 885 |
github/deemru/w8io/026f985 112.45 ms ◑