tx · 9KP9AWiwot59KYEjYJvz7G6DikuAgmwGXpC84EjtenXK 3N8E9LU71MDkdP8FWtbP4TBXCNhoc15hWfs: -0.02500000 Waves 2023.02.13 10:10 [2447513] smart account 3N8E9LU71MDkdP8FWtbP4TBXCNhoc15hWfs > SELF 0.00000000 Waves
{ "type": 13, "id": "9KP9AWiwot59KYEjYJvz7G6DikuAgmwGXpC84EjtenXK", "fee": 2500000, "feeAssetId": null, "timestamp": 1676272236691, "version": 2, "chainId": 84, "sender": "3N8E9LU71MDkdP8FWtbP4TBXCNhoc15hWfs", "senderPublicKey": "2EDucEDvqYfn6hdx4PbvykQFRoNgPMWX6SiVPjM8AyxM", "proofs": [ "5Dds5AFT5rFzYZZPvpf7Y1crFxwhhp4PeEvfPRgbBsnJ8xcY16P3GEcPvdcC3RzD8vFajLrCd3ETsKeCKtFgp7VF", "2F8utdPWpFXy9Cfxx1ebW96A2Ja3ghDyx5Dh7Gg7dM8uwwbRWUVQyfjhcFowvCowUqrgoueHAh4Vf6EoWgvpbCDi" ], "script": "base64:BgIiCAISAwoBCBIAEgASAwoBARIAEgASABIGCgQYEQEBEgASAFsAB2tBY3RpdmUCBmFjdGl2ZQALa0FjdGl2ZUdsb2ICFGFjdGl2ZV9hbGxfY29udHJhY3RzAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlAA1rTGFzdEludGVyZXN0Ag1sYXN0X2ludGVyZXN0ABFrVXNlckxhc3RJbnRlcmVzdAIOX2xhc3RfaW50ZXJlc3QAD2tVc2VyU1dPUExvY2tlZAIMX1NXT1BfYW1vdW50ABBrVG90YWxTV09QTG9ja2VkAhF0b3RhbF9TV09QX2Ftb3VudAAVa1VzZXJTd29wVW5sb2NrSGVpZ2h0AhNfU1dPUF91bmxvY2tfaGVpZ2h0ABBrVXNlckdTd29wTG9ja2VkAg1fR1N3b3BfYW1vdW50ABFrVG90YWxHU3dvcExvY2tlZAISdG90YWxfR1N3b3BfYW1vdW50ABJrVXNlclRvdGFsVm90ZV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A2anHV1hwu9zkpZv Full:
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 kLastInterest = "last_interest" | |
11 | 11 | ||
12 | 12 | let kUserLastInterest = "_last_interest" | |
13 | 13 | ||
14 | 14 | let kUserSWOPLocked = "_SWOP_amount" | |
15 | 15 | ||
16 | 16 | let kTotalSWOPLocked = "total_SWOP_amount" | |
17 | 17 | ||
18 | 18 | let kUserSwopUnlockHeight = "_SWOP_unlock_height" | |
19 | 19 | ||
20 | 20 | let kUserGSwopLocked = "_GSwop_amount" | |
21 | 21 | ||
22 | 22 | let kTotalGSwopLocked = "total_GSwop_amount" | |
23 | 23 | ||
24 | 24 | let kUserTotalVoteSWOP = "_user_total_vote_gSWOP" | |
25 | 25 | ||
26 | 26 | let kUserAvailableForClaim = "_user_available_for_claim" | |
27 | 27 | ||
28 | 28 | let kRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
29 | 29 | ||
30 | 30 | let kRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
31 | 31 | ||
32 | 32 | let kHeightPoolFraction = "_pool_reward_update_height" | |
33 | 33 | ||
34 | 34 | let kRewardUpdateHeight = "reward_update_height" | |
35 | 35 | ||
36 | 36 | let kRewardUpdateFirstPaginationHeight = "reward_update_height_first_pagination" | |
37 | 37 | ||
38 | 38 | let kNoVotingForNewPool = "_vote_no" | |
39 | 39 | ||
40 | 40 | let kYesVotingForNewPool = "_vote_yes" | |
41 | 41 | ||
42 | 42 | let kStatusOfVotingForNewPool = "_status" | |
43 | 43 | ||
44 | 44 | let kHeightOfPoolVotingForNewPool = "_finish_height" | |
45 | 45 | ||
46 | 46 | let activeVoteFirst = "voting_active_cell_1" | |
47 | 47 | ||
48 | 48 | let activeVoteSecond = "voting_active_cell_2" | |
49 | 49 | ||
50 | 50 | let activeVoteThird = "voting_active_cell_3" | |
51 | 51 | ||
52 | 52 | let kTempCurSum = "sum_reward_current" | |
53 | 53 | ||
54 | 54 | let kLaunchpadBoughtTickets = "_bought_tickets" | |
55 | 55 | ||
56 | 56 | let kLaunchpadSwopPerTickets = "_swop_per_ticket" | |
57 | 57 | ||
58 | 58 | let kLaunchpadActiveId = "launchpad_active_id" | |
59 | 59 | ||
60 | 60 | let kLaunchpadDuration = "_duration" | |
61 | 61 | ||
62 | 62 | let kLaunchpadStartHeight = "_start_height" | |
63 | 63 | ||
64 | 64 | let kStartHeight = "start_height" | |
65 | 65 | ||
66 | 66 | let kBasePeriod = "base_period" | |
67 | 67 | ||
68 | 68 | let kPeriodLength = "period_length" | |
69 | 69 | ||
70 | 70 | let kUserTotalStruc = "_user_total_struc" | |
71 | 71 | ||
72 | 72 | let kLauchpadFreezSwopDuration = "_freeze_swop_duration" | |
73 | 73 | ||
74 | 74 | let kSWOPid = "SWOP_id" | |
75 | 75 | ||
76 | 76 | let kAirdropFee = "airdrop_fee" | |
77 | 77 | ||
78 | 78 | let kAdminPubKey1 = "admin_pub_1" | |
79 | 79 | ||
80 | 80 | let kAdminPubKey2 = "admin_pub_2" | |
81 | 81 | ||
82 | 82 | let kAdminPubKey3 = "admin_pub_3" | |
83 | 83 | ||
84 | 84 | let kMoneyBoxPubKey = "money_box_pub_key" | |
85 | 85 | ||
86 | 86 | let kFarmingAddr = "farming_address" | |
87 | 87 | ||
88 | 88 | let kVotingAddr = "voting_address" | |
89 | 89 | ||
90 | 90 | let kVotingNewPoolAddr = "voting_new_pool_address" | |
91 | 91 | ||
92 | 92 | let kLaunchpadAddr = "launchpad_address" | |
93 | 93 | ||
94 | 94 | let kAirdropMoneyBoxAddr = "airdrop_fee_money_box" | |
95 | 95 | ||
96 | 96 | let kOraclePool = "pool_" | |
97 | 97 | ||
98 | 98 | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
99 | 99 | ||
100 | 100 | func getBase58FromOracle (key) = match getString(oracle, key) { | |
101 | 101 | case string: String => | |
102 | 102 | fromBase58String(string) | |
103 | 103 | case nothing => | |
104 | 104 | throw((key + "is empty")) | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
109 | 109 | ||
110 | 110 | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
111 | 111 | ||
112 | 112 | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
113 | 113 | ||
114 | 114 | let moneyBoxPubKey = getBase58FromOracle(kMoneyBoxPubKey) | |
115 | 115 | ||
116 | 116 | let farmingAddr = Address(getBase58FromOracle(kFarmingAddr)) | |
117 | 117 | ||
118 | 118 | let votingAddr = Address(getBase58FromOracle(kVotingAddr)) | |
119 | 119 | ||
120 | 120 | let votingNewPoolAddr = Address(getBase58FromOracle(kVotingNewPoolAddr)) | |
121 | 121 | ||
122 | 122 | let launchpadAddr = Address(getBase58FromOracle(kLaunchpadAddr)) | |
123 | 123 | ||
124 | 124 | let airdropMoneyBoxAddr = Address(getBase58FromOracle(kAirdropMoneyBoxAddr)) | |
125 | 125 | ||
126 | 126 | let lockSwopBlocksAmount = (10102 * 4) | |
127 | 127 | ||
128 | 128 | let SWOP = fromBase58String(getStringValue(farmingAddr, kSWOPid)) | |
129 | 129 | ||
130 | 130 | let scaleValue = 100000000 | |
131 | 131 | ||
132 | 132 | let totalVoteShare = 10000000000 | |
133 | 133 | ||
134 | 134 | let feeSacle6 = 1000000 | |
135 | 135 | ||
136 | 136 | let basePeriod = valueOrErrorMessage(getInteger(votingAddr, kBasePeriod), "Empty kBasePeriod at voting contract") | |
137 | 137 | ||
138 | 138 | let startHeight = valueOrErrorMessage(getInteger(votingAddr, kStartHeight), "Empty kStartHeight at voting contract") | |
139 | 139 | ||
140 | 140 | let periodLength = valueOrErrorMessage(getInteger(votingAddr, kPeriodLength), "Empty kPeriodLength at voting contract") | |
141 | 141 | ||
142 | 142 | let firstActiveVote = valueOrElse(getString(votingNewPoolAddr, activeVoteFirst), "") | |
143 | 143 | ||
144 | 144 | let secondActiveVote = valueOrElse(getString(votingNewPoolAddr, activeVoteSecond), "") | |
145 | 145 | ||
146 | 146 | let thirdActiveVote = valueOrElse(getString(votingNewPoolAddr, activeVoteThird), "") | |
147 | 147 | ||
148 | 148 | let active = valueOrElse(getBoolean(this, kActive), true) | |
149 | 149 | ||
150 | 150 | let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true) | |
151 | 151 | ||
152 | 152 | let airdropFee = getIntegerValue(oracle, kAirdropFee) | |
153 | 153 | ||
154 | 154 | let currVotingPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
155 | 155 | ||
156 | 156 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func isActive () = if (if (active) | |
160 | 160 | then activeGlob | |
161 | 161 | else false) | |
162 | 162 | then unit | |
163 | 163 | else throw("DApp is inactive at this moment") | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
167 | 167 | then unit | |
168 | 168 | else throw("Only admin can call this function") | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func getLastInterestInfo () = valueOrElse(getInteger(this, kLastInterest), 0) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func getTotalLockedInfo () = { | |
175 | 175 | let totalSwopLocked = valueOrElse(getInteger(this, kTotalSWOPLocked), 0) | |
176 | 176 | let totalGSwopLocked = valueOrElse(getInteger(this, kTotalGSwopLocked), totalSwopLocked) | |
177 | 177 | $Tuple2(totalSwopLocked, totalGSwopLocked) | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func getUserLockedInfo (user) = { | |
182 | 182 | let userSwopLocked = valueOrElse(getInteger(this, (user + kUserSWOPLocked)), 0) | |
183 | 183 | let userGSwopLocked = valueOrElse(getInteger(this, (user + kUserGSwopLocked)), userSwopLocked) | |
184 | 184 | $Tuple2(userSwopLocked, userGSwopLocked) | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getUserInterestInfo (user,lastInterest) = { | |
189 | 189 | let $t050365099 = getUserLockedInfo(user) | |
190 | 190 | let userSWOPAmount = $t050365099._1 | |
191 | 191 | let userGSwopAmount = $t050365099._2 | |
192 | 192 | let userLastInterest = valueOrElse(getInteger(this, (user + kUserLastInterest)), lastInterest) | |
193 | 193 | $Tuple3(userLastInterest, userSWOPAmount, userGSwopAmount) | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func getUserAvailableForClaim (user) = valueOrElse(getInteger(this, (user + kUserAvailableForClaim)), 0) | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func getUserTotalVoteAmountForOnePool (pool,user) = { | |
201 | 201 | let voting = valueOrElse(getInteger(votingNewPoolAddr, pool), -1) | |
202 | 202 | let heightOfVoting = valueOrElse(getInteger(votingNewPoolAddr, (toString(voting) + kHeightOfPoolVotingForNewPool)), 0) | |
203 | 203 | let statusOfVoting = valueOrElse(getBoolean(votingNewPoolAddr, (toString(voting) + kStatusOfVotingForNewPool)), true) | |
204 | 204 | let currentHeight = height | |
205 | 205 | if ((0 > voting)) | |
206 | 206 | then 0 | |
207 | 207 | else if (!(statusOfVoting)) | |
208 | 208 | then 0 | |
209 | 209 | else if ((heightOfVoting > currentHeight)) | |
210 | 210 | then (valueOrElse(getInteger(votingNewPoolAddr, (((toString(user) + "_") + toString(voting)) + kYesVotingForNewPool)), 0) + valueOrElse(getInteger(votingNewPoolAddr, (((toString(user) + "_") + toString(voting)) + kNoVotingForNewPool)), 0)) | |
211 | 211 | else 0 | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func getUserTotalVoteForNewPoolAmount (user) = { | |
216 | 216 | let listOfVoting = [getUserTotalVoteAmountForOnePool(firstActiveVote, user), getUserTotalVoteAmountForOnePool(secondActiveVote, user), getUserTotalVoteAmountForOnePool(thirdActiveVote, user)] | |
217 | 217 | max(listOfVoting) | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func getUserBlockedInLauchpad (user) = { | |
222 | 222 | let lauchpadId = toString(valueOrElse(getInteger(launchpadAddr, kLaunchpadActiveId), 0)) | |
223 | 223 | if ((lauchpadId == "0")) | |
224 | 224 | then 0 | |
225 | 225 | else { | |
226 | 226 | let lStartHeight = valueOrElse(getInteger(launchpadAddr, (lauchpadId + kLaunchpadStartHeight)), 0) | |
227 | 227 | let lDuration = valueOrElse(getInteger(launchpadAddr, (lauchpadId + kLaunchpadDuration)), 0) | |
228 | 228 | let lFreezeSwopDuration = valueOrElse(getInteger(launchpadAddr, (lauchpadId + kLauchpadFreezSwopDuration)), 0) | |
229 | 229 | let blockEndHeight = ((lStartHeight + lDuration) + lFreezeSwopDuration) | |
230 | 230 | if ((height > blockEndHeight)) | |
231 | 231 | then 0 | |
232 | 232 | else { | |
233 | 233 | let boughtTickets = valueOrElse(getInteger(launchpadAddr, (((toString(user) + "_") + lauchpadId) + kLaunchpadBoughtTickets)), 0) | |
234 | 234 | let swopPerTicket = valueOrElse(getInteger(launchpadAddr, (lauchpadId + kLaunchpadSwopPerTickets)), 0) | |
235 | 235 | (boughtTickets * swopPerTicket) | |
236 | 236 | } | |
237 | 237 | } | |
238 | 238 | } | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func getUserTotalVote (user) = if (isDefined(getString(votingAddr, (toString(user) + kUserTotalStruc)))) | |
242 | 242 | then parseIntValue(split(valueOrErrorMessage(getString(votingAddr, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_")[0]) | |
243 | 243 | else valueOrElse(getInteger(votingAddr, (toString(user) + kUserTotalVoteSWOP)), 0) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func getPoolUpdateHeight (pool) = valueOrElse(getInteger(this, (pool + kHeightPoolFraction)), 0) | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func isDefinePoolUpdateHeight (pool) = isDefined(getInteger(this, (pool + kHeightPoolFraction))) | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func getCurPoolWeight (pool) = valueOrElse(getInteger(this, (pool + kRewardPoolFractionCurrent)), 0) | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func getPrevPoolWeight (pool) = valueOrElse(getInteger(this, (pool + kRewardPoolFractionPrevious)), 0) | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func claimCalc (user) = { | |
259 | 259 | let lastInterest = getLastInterestInfo() | |
260 | 260 | let $t085248621 = getUserInterestInfo(user, lastInterest) | |
261 | 261 | let userLastInterest = $t085248621._1 | |
262 | 262 | let userSWOPLocked = $t085248621._2 | |
263 | 263 | let userGSwopAmount = $t085248621._3 | |
264 | 264 | let claimAmount = fraction(userGSwopAmount, (lastInterest - userLastInterest), scaleValue) | |
265 | 265 | let userNewInterest = lastInterest | |
266 | 266 | $Tuple2(userNewInterest, claimAmount) | |
267 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress)))) | |
271 | 271 | then unit | |
272 | 272 | else throw("DApp is not registered pool") | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | @Callable(i) | |
276 | 276 | func addPool (poolAddress) = valueOrElse(isAdminCall(i), valueOrElse(isActive(), valueOrElse(isOraclePool(poolAddress), if (isDefined(getInteger(this, (poolAddress + kRewardPoolFractionCurrent)))) | |
277 | 277 | then throw("Pool already in governance") | |
278 | 278 | else [IntegerEntry((poolAddress + kRewardPoolFractionCurrent), 0), IntegerEntry((poolAddress + kRewardPoolFractionPrevious), 0), IntegerEntry((poolAddress + kHeightPoolFraction), getIntegerValue(this, kRewardUpdateHeight))]))) | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | ||
282 | 282 | @Callable(i) | |
283 | 283 | func airDrop () = valueOrElse(isActive(), { | |
284 | 284 | let $t095209595 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
285 | 285 | let pmtAmount = $t095209595._1 | |
286 | 286 | let pmtAssetId = $t095209595._2 | |
287 | 287 | if ((pmtAssetId != SWOP)) | |
288 | 288 | then throw("Incorrect pmtAssetId") | |
289 | 289 | else { | |
290 | 290 | let airdropFeeAmount = fraction(pmtAmount, airdropFee, feeSacle6, CEILING) | |
291 | 291 | let $t097689830 = getTotalLockedInfo() | |
292 | 292 | let totalSWOPLocked = $t097689830._1 | |
293 | 293 | let totalGSwopLocked = $t097689830._2 | |
294 | 294 | let lastInterest = getLastInterestInfo() | |
295 | 295 | let interestNew = (lastInterest + fraction((pmtAmount - airdropFeeAmount), scaleValue, totalGSwopLocked)) | |
296 | 296 | [IntegerEntry(kLastInterest, interestNew), ScriptTransfer(airdropMoneyBoxAddr, airdropFeeAmount, SWOP)] | |
297 | 297 | } | |
298 | 298 | }) | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | ||
302 | 302 | @Callable(i) | |
303 | 303 | func lockSWOP () = valueOrElse(isActive(), { | |
304 | 304 | let $t01020810283 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
305 | 305 | let pmtAmount = $t01020810283._1 | |
306 | 306 | let pmtAssetId = $t01020810283._2 | |
307 | 307 | if ((pmtAssetId != SWOP)) | |
308 | 308 | then throw("Incorrect pmtAssetId") | |
309 | 309 | else { | |
310 | 310 | let user = toString(i.caller) | |
311 | 311 | let lastInterest = getLastInterestInfo() | |
312 | 312 | let $t01043410497 = getUserLockedInfo(user) | |
313 | 313 | let userSWOPLocked = $t01043410497._1 | |
314 | 314 | let userGSwopLocked = $t01043410497._2 | |
315 | 315 | let $t01050210563 = claimCalc(user) | |
316 | 316 | let userNewInterest = $t01050210563._1 | |
317 | 317 | let claimAmountAvailable = $t01050210563._2 | |
318 | 318 | let availableForClaim = getUserAvailableForClaim(user) | |
319 | 319 | let availableForClaimNew = (availableForClaim + claimAmountAvailable) | |
320 | 320 | let userSWOPLockedNew = (userSWOPLocked + pmtAmount) | |
321 | 321 | let userGSwopLockedNew = (userGSwopLocked + pmtAmount) | |
322 | 322 | let $t01081110873 = getTotalLockedInfo() | |
323 | 323 | let totalSWOPLocked = $t01081110873._1 | |
324 | 324 | let totalGSwopLocked = $t01081110873._2 | |
325 | 325 | let totalSWOPLockedNew = (totalSWOPLocked + pmtAmount) | |
326 | 326 | let totalGSwopLockedNew = (totalGSwopLocked + pmtAmount) | |
327 | 327 | [IntegerEntry((user + kUserSwopUnlockHeight), (height + lockSwopBlocksAmount)), IntegerEntry((user + kUserLastInterest), userNewInterest), IntegerEntry((user + kUserSWOPLocked), userSWOPLockedNew), IntegerEntry((user + kUserGSwopLocked), userGSwopLockedNew), IntegerEntry((user + kUserAvailableForClaim), availableForClaimNew), IntegerEntry(kTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry(kTotalGSwopLocked, totalGSwopLockedNew)] | |
328 | 328 | } | |
329 | 329 | }) | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | ||
333 | 333 | @Callable(i) | |
334 | 334 | func withdrawSWOP (withdrawAmount) = valueOrElse(isActive(), { | |
335 | 335 | let user = toString(i.caller) | |
336 | 336 | let unlockHeight = valueOrElse(getInteger(this, (user + kUserSwopUnlockHeight)), 0) | |
337 | 337 | if ((0 >= withdrawAmount)) | |
338 | 338 | then throw("withdrawAmount <= 0") | |
339 | 339 | else if ((unlockHeight > height)) | |
340 | 340 | then throw(("You can't withdraw till " + toString(unlockHeight))) | |
341 | 341 | else { | |
342 | 342 | let $t01185111913 = getTotalLockedInfo() | |
343 | 343 | let totalSWOPLocked = $t01185111913._1 | |
344 | 344 | let totalGSwopLocked = $t01185111913._2 | |
345 | 345 | let $t01191811981 = getUserLockedInfo(user) | |
346 | 346 | let userSWOPLocked = $t01191811981._1 | |
347 | 347 | let userGSwopLocked = $t01191811981._2 | |
348 | 348 | let $t01198612047 = claimCalc(user) | |
349 | 349 | let userNewInterest = $t01198612047._1 | |
350 | 350 | let claimAmountAvailable = $t01198612047._2 | |
351 | 351 | let userTotalVoteAmount = getUserTotalVote(i.caller) | |
352 | 352 | let userVoteAmountForNewPool = getUserTotalVoteForNewPoolAmount(i.caller) | |
353 | 353 | let blockedInLaunchpad = getUserBlockedInLauchpad(i.caller) | |
354 | 354 | if (if ((0 > userTotalVoteAmount)) | |
355 | 355 | then true | |
356 | 356 | else (0 > userVoteAmountForNewPool)) | |
357 | 357 | then throw("userVoteAmount < 0 || userVoteAmountForNewPool < 0") | |
358 | 358 | else { | |
359 | 359 | let availableToUnstake = (userSWOPLocked - max([userVoteAmountForNewPool, userTotalVoteAmount, blockedInLaunchpad])) | |
360 | 360 | if ((withdrawAmount > availableToUnstake)) | |
361 | 361 | then throw("withdrawAmount > availableToUnstake") | |
362 | 362 | else { | |
363 | 363 | let availableForClaim = getUserAvailableForClaim(user) | |
364 | 364 | let availableForClaimNew = (availableForClaim + claimAmountAvailable) | |
365 | 365 | let totalSWOPLockedNew = (totalSWOPLocked - withdrawAmount) | |
366 | 366 | let userSWOPAmountNew = (userSWOPLocked - withdrawAmount) | |
367 | 367 | let totalGSwopLockedNew = ((totalGSwopLocked - userGSwopLocked) + userSWOPAmountNew) | |
368 | 368 | [IntegerEntry((user + kUserLastInterest), userNewInterest), IntegerEntry((user + kUserSWOPLocked), userSWOPAmountNew), IntegerEntry((user + kUserGSwopLocked), userSWOPAmountNew), IntegerEntry((user + kUserAvailableForClaim), availableForClaimNew), IntegerEntry(kTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry(kTotalGSwopLocked, totalGSwopLockedNew), ScriptTransfer(i.caller, withdrawAmount, SWOP)] | |
369 | 369 | } | |
370 | 370 | } | |
371 | 371 | } | |
372 | 372 | }) | |
373 | 373 | ||
374 | 374 | ||
375 | 375 | ||
376 | 376 | @Callable(i) | |
377 | 377 | func claimAndWithdrawSWOP () = valueOrElse(isActive(), { | |
378 | 378 | let user = toString(i.caller) | |
379 | 379 | let availableForClaim = getUserAvailableForClaim(user) | |
380 | 380 | let $t01356613618 = claimCalc(user) | |
381 | 381 | let userNewInterest = $t01356613618._1 | |
382 | 382 | let claimAmount = $t01356613618._2 | |
383 | 383 | let userClaimAmount = (availableForClaim + claimAmount) | |
384 | 384 | if ((userClaimAmount == 0)) | |
385 | 385 | then throw("You have 0 available SWOP") | |
386 | 386 | else [IntegerEntry((user + kUserLastInterest), userNewInterest), IntegerEntry((user + kUserAvailableForClaim), 0), ScriptTransfer(i.caller, userClaimAmount, SWOP)] | |
387 | 387 | }) | |
388 | 388 | ||
389 | 389 | ||
390 | 390 | ||
391 | 391 | @Callable(i) | |
392 | 392 | func claimAndStakeSWOP () = valueOrElse(isActive(), { | |
393 | 393 | let user = toString(i.caller) | |
394 | 394 | let $t01404814110 = getTotalLockedInfo() | |
395 | 395 | let totalSWOPLocked = $t01404814110._1 | |
396 | 396 | let totalGSwopLocked = $t01404814110._2 | |
397 | 397 | let $t01411514178 = getUserLockedInfo(user) | |
398 | 398 | let userSWOPLocked = $t01411514178._1 | |
399 | 399 | let userGSwopLocked = $t01411514178._2 | |
400 | 400 | let availableForClaim = getUserAvailableForClaim(user) | |
401 | 401 | let $t01424214293 = claimCalc(user) | |
402 | 402 | let userNewInterest = $t01424214293._1 | |
403 | 403 | let claimAmount = $t01424214293._2 | |
404 | 404 | let userClaimAmount = (availableForClaim + claimAmount) | |
405 | 405 | let userSWOPLockedNew = (userSWOPLocked + userClaimAmount) | |
406 | 406 | let userGSwopLockedNew = (userGSwopLocked + (userClaimAmount * 2)) | |
407 | 407 | let totalSWOPLockedNew = (totalSWOPLocked + userClaimAmount) | |
408 | 408 | let totalGSwopLockedNew = (totalGSwopLocked + (userClaimAmount * 2)) | |
409 | 409 | if ((userClaimAmount == 0)) | |
410 | 410 | then throw("You have 0 available SWOP") | |
411 | 411 | else [IntegerEntry((user + kUserSwopUnlockHeight), (height + lockSwopBlocksAmount)), IntegerEntry((user + kUserLastInterest), userNewInterest), IntegerEntry(kTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry(kTotalGSwopLocked, totalGSwopLockedNew), IntegerEntry((user + kUserSWOPLocked), userSWOPLockedNew), IntegerEntry((user + kUserGSwopLocked), userGSwopLockedNew), IntegerEntry((user + kUserAvailableForClaim), 0)] | |
412 | 412 | }) | |
413 | 413 | ||
414 | 414 | ||
415 | 415 | ||
416 | 416 | @Callable(i) | |
417 | 417 | func lockSWOPFromFarming () = valueOrElse(isActive(), { | |
418 | 418 | let $t01522915304 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
419 | 419 | let pmtAmount = $t01522915304._1 | |
420 | 420 | let pmtAssetId = $t01522915304._2 | |
421 | 421 | if ((i.caller != farmingAddr)) | |
422 | 422 | then throw("Only farming can call this function") | |
423 | 423 | else if ((pmtAssetId != SWOP)) | |
424 | 424 | then throw("Incorrect pmtAssetId") | |
425 | 425 | else { | |
426 | 426 | let user = toString(i.originCaller) | |
427 | 427 | let lastInterest = getLastInterestInfo() | |
428 | 428 | let $t01554715610 = getUserLockedInfo(user) | |
429 | 429 | let userSWOPLocked = $t01554715610._1 | |
430 | 430 | let userGSwopLocked = $t01554715610._2 | |
431 | 431 | let $t01561515676 = claimCalc(user) | |
432 | 432 | let userNewInterest = $t01561515676._1 | |
433 | 433 | let claimAmountAvailable = $t01561515676._2 | |
434 | 434 | let availableForClaim = getUserAvailableForClaim(user) | |
435 | 435 | let availableForClaimNew = (availableForClaim + claimAmountAvailable) | |
436 | 436 | let userSWOPLockedNew = (userSWOPLocked + pmtAmount) | |
437 | 437 | let userGSwopLockedNew = (userGSwopLocked + (pmtAmount * 2)) | |
438 | 438 | let $t01592815990 = getTotalLockedInfo() | |
439 | 439 | let totalSWOPLocked = $t01592815990._1 | |
440 | 440 | let totalGSwopLocked = $t01592815990._2 | |
441 | 441 | let totalSWOPLockedNew = (totalSWOPLocked + pmtAmount) | |
442 | 442 | let totalGSwopLockedNew = (totalGSwopLocked + (pmtAmount * 2)) | |
443 | 443 | [IntegerEntry((user + kUserSwopUnlockHeight), (height + lockSwopBlocksAmount)), IntegerEntry((user + kUserLastInterest), userNewInterest), IntegerEntry((user + kUserSWOPLocked), userSWOPLockedNew), IntegerEntry((user + kUserGSwopLocked), userGSwopLockedNew), IntegerEntry((user + kUserAvailableForClaim), availableForClaimNew), IntegerEntry(kTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry(kTotalGSwopLocked, totalGSwopLockedNew)] | |
444 | 444 | } | |
445 | 445 | }) | |
446 | 446 | ||
447 | 447 | ||
448 | 448 | ||
449 | 449 | @Callable(i) | |
450 | 450 | func updateWeights (currentPools,currentRewards,rewardUpdateHeight,pagination) = valueOrElse(isActive(), { | |
451 | 451 | let amountPools = 10 | |
452 | 452 | let totalRewardUpdateHeight = valueOrElse(getInteger(this, kRewardUpdateHeight), 0) | |
453 | 453 | if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, moneyBoxPubKey], i.callerPublicKey))) | |
454 | 454 | then throw("Only admin can call this function") | |
455 | 455 | else if ((size(currentPools) > amountPools)) | |
456 | 456 | then throw(("Max amount of pool is " + toString(amountPools))) | |
457 | 457 | else if ((totalRewardUpdateHeight >= rewardUpdateHeight)) | |
458 | 458 | then throw("rewardUpdateHeight <= totalRewardUpdateHeight") | |
459 | 459 | else if ((height >= rewardUpdateHeight)) | |
460 | 460 | then throw("height >= rewardUpdateHeight") | |
461 | 461 | else if ((0 >= rewardUpdateHeight)) | |
462 | 462 | then throw("0 >= rewardUpdateHeight ") | |
463 | 463 | else { | |
464 | 464 | func sum (a,b) = (a + b) | |
465 | 465 | ||
466 | 466 | func changePreviousRewardEntry (accumulated,pool) = { | |
467 | 467 | let poolRewardUpdateHeight = getPoolUpdateHeight(pool) | |
468 | 468 | if (if (!(isDefinePoolUpdateHeight(pool))) | |
469 | 469 | then true | |
470 | 470 | else if ((rewardUpdateHeight != poolRewardUpdateHeight)) | |
471 | 471 | then (poolRewardUpdateHeight == totalRewardUpdateHeight) | |
472 | 472 | else false) | |
473 | 473 | then { | |
474 | 474 | let poolReward = getCurPoolWeight(pool) | |
475 | 475 | IntegerEntry((pool + kRewardPoolFractionPrevious), poolReward) :: accumulated | |
476 | 476 | } | |
477 | 477 | else { | |
478 | 478 | let poolReward = getPrevPoolWeight(pool) | |
479 | 479 | IntegerEntry((pool + kRewardPoolFractionPrevious), poolReward) :: accumulated | |
480 | 480 | } | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | func changeCurrentRewardEntry (accumulated,pool) = { | |
484 | 484 | let poolIndex = value(indexOf(currentPools, pool)) | |
485 | 485 | let poolReward = currentRewards[poolIndex] | |
486 | 486 | if ((0 > poolReward)) | |
487 | 487 | then throw("PoolReward < 0") | |
488 | 488 | else IntegerEntry((pool + kRewardPoolFractionCurrent), poolReward) :: accumulated | |
489 | 489 | } | |
490 | 490 | ||
491 | 491 | func changeHeightEntry (accumulated,pool) = { | |
492 | 492 | let poolHeight = rewardUpdateHeight | |
493 | 493 | let upUIntr = invoke(farmingAddr, "updatePoolInterest", [pool], nil) | |
494 | 494 | if ((upUIntr == upUIntr)) | |
495 | 495 | then IntegerEntry((pool + kHeightPoolFraction), poolHeight) :: accumulated | |
496 | 496 | else throw("Strict value is not equal to itself.") | |
497 | 497 | } | |
498 | 498 | ||
499 | 499 | func getSumReward (curTempSum,pagination) = if ((pagination == 0)) | |
500 | 500 | then if ((curTempSum > totalVoteShare)) | |
501 | 501 | then throw(((("sumRewardPrevious > totalVoteShare or sumRewardCurrent > totalVoteShare - " + toString(pagination)) + " ") + toString(curTempSum))) | |
502 | 502 | else $Tuple2([IntegerEntry(kTempCurSum, curTempSum)], [IntegerEntry(kRewardUpdateFirstPaginationHeight, rewardUpdateHeight)]) | |
503 | 503 | else if ((pagination == 1)) | |
504 | 504 | then { | |
505 | 505 | let curTempSumFromKey = valueOrElse(getInteger(this, kTempCurSum), 0) | |
506 | 506 | let rewardUpdateHeightFirstPaginationEntry = valueOrElse(getInteger(this, kRewardUpdateFirstPaginationHeight), 0) | |
507 | 507 | if (((curTempSum + curTempSumFromKey) > totalVoteShare)) | |
508 | 508 | then throw(((("sumRewardPrevious > totalVoteShare or sumRewardCurrent > totalVoteShare - " + toString(pagination)) + " ") + toString((curTempSum + curTempSumFromKey)))) | |
509 | 509 | else if ((rewardUpdateHeightFirstPaginationEntry != rewardUpdateHeight)) | |
510 | 510 | then throw("current rewardUpdateHeight != rewardUpdateHeightFirstPaginationEntry") | |
511 | 511 | else $Tuple2([IntegerEntry(kTempCurSum, (curTempSum + curTempSumFromKey))], nil) | |
512 | 512 | } | |
513 | 513 | else if ((pagination == 2)) | |
514 | 514 | then { | |
515 | 515 | let curSum = (valueOrElse(getInteger(this, kTempCurSum), 0) + curTempSum) | |
516 | 516 | let rewardUpdateHeightFirstPaginationEntry = valueOrElse(getInteger(this, kRewardUpdateFirstPaginationHeight), 0) | |
517 | 517 | if ((curSum != totalVoteShare)) | |
518 | 518 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
519 | 519 | else if ((rewardUpdateHeightFirstPaginationEntry != rewardUpdateHeight)) | |
520 | 520 | then throw("current rewardUpdateHeight != rewardUpdateHeightFirstPaginationEntry") | |
521 | 521 | else $Tuple2([IntegerEntry(kTempCurSum, curSum)], nil) | |
522 | 522 | } | |
523 | 523 | else throw("Incorrect pagination") | |
524 | 524 | ||
525 | 525 | let previousRewardEntryNew = { | |
526 | 526 | let $l = currentPools | |
527 | 527 | let $s = size($l) | |
528 | 528 | let $acc0 = nil | |
529 | 529 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
530 | 530 | then $a | |
531 | 531 | else changePreviousRewardEntry($a, $l[$i]) | |
532 | 532 | ||
533 | 533 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
534 | 534 | then $a | |
535 | 535 | else throw("List size exceeds 10") | |
536 | 536 | ||
537 | 537 | $f0_2($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) | |
538 | 538 | } | |
539 | 539 | let currentRewardEntryNew = { | |
540 | 540 | let $l = currentPools | |
541 | 541 | let $s = size($l) | |
542 | 542 | let $acc0 = nil | |
543 | 543 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
544 | 544 | then $a | |
545 | 545 | else changeCurrentRewardEntry($a, $l[$i]) | |
546 | 546 | ||
547 | 547 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
548 | 548 | then $a | |
549 | 549 | else throw("List size exceeds 10") | |
550 | 550 | ||
551 | 551 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
552 | 552 | } | |
553 | 553 | let heightEntryNewCur = { | |
554 | 554 | let $l = currentPools | |
555 | 555 | let $s = size($l) | |
556 | 556 | let $acc0 = nil | |
557 | 557 | func $f2_1 ($a,$i) = if (($i >= $s)) | |
558 | 558 | then $a | |
559 | 559 | else changeHeightEntry($a, $l[$i]) | |
560 | 560 | ||
561 | 561 | func $f2_2 ($a,$i) = if (($i >= $s)) | |
562 | 562 | then $a | |
563 | 563 | else throw("List size exceeds 10") | |
564 | 564 | ||
565 | 565 | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
566 | 566 | } | |
567 | 567 | let sumRewardCurrentTemp = { | |
568 | 568 | let $l = currentRewards | |
569 | 569 | let $s = size($l) | |
570 | 570 | let $acc0 = 0 | |
571 | 571 | func $f3_1 ($a,$i) = if (($i >= $s)) | |
572 | 572 | then $a | |
573 | 573 | else sum($a, $l[$i]) | |
574 | 574 | ||
575 | 575 | func $f3_2 ($a,$i) = if (($i >= $s)) | |
576 | 576 | then $a | |
577 | 577 | else throw("List size exceeds 10") | |
578 | 578 | ||
579 | 579 | $f3_2($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
580 | 580 | } | |
581 | 581 | let $t02101521126 = getSumReward(sumRewardCurrentTemp, pagination) | |
582 | 582 | let sumRewardCurrent = $t02101521126._1 | |
583 | 583 | let rewardUpdateHeightFirstPaginationEntry = $t02101521126._2 | |
584 | 584 | let rewardUpdateHeightEntry = if ((pagination == 2)) | |
585 | 585 | then [IntegerEntry(kRewardUpdateHeight, rewardUpdateHeight)] | |
586 | 586 | else nil | |
587 | 587 | if ((height > rewardUpdateHeight)) | |
588 | 588 | then throw("rewardUpdateHeight < height") | |
589 | 589 | else (((((previousRewardEntryNew ++ currentRewardEntryNew) ++ heightEntryNewCur) ++ sumRewardCurrent) ++ rewardUpdateHeightEntry) ++ rewardUpdateHeightFirstPaginationEntry) | |
590 | 590 | } | |
591 | 591 | }) | |
592 | 592 | ||
593 | 593 | ||
594 | 594 | ||
595 | 595 | @Callable(i) | |
596 | 596 | func shutdown () = valueOrElse(isAdminCall(i), if (!(active)) | |
597 | 597 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
598 | 598 | else suspend("Paused by admin")) | |
599 | 599 | ||
600 | 600 | ||
601 | 601 | ||
602 | 602 | @Callable(i) | |
603 | 603 | func activate () = valueOrElse(isAdminCall(i), if (active) | |
604 | 604 | then throw("DApp is already active") | |
605 | 605 | else [BooleanEntry(kActive, true), DeleteEntry(kCause)]) | |
606 | 606 | ||
607 | 607 | ||
608 | 608 | @Verifier(tx) | |
609 | 609 | func verify () = { | |
610 | 610 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
611 | 611 | then 1 | |
612 | 612 | else 0 | |
613 | 613 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
614 | 614 | then 1 | |
615 | 615 | else 0 | |
616 | 616 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
617 | 617 | then 1 | |
618 | 618 | else 0 | |
619 | 619 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
620 | 620 | } | |
621 | 621 |
github/deemru/w8io/026f985 70.13 ms ◑