tx · BnPQP9ridg9HH8p8BfqaBVUwGn8GQtxKP2AUugyiH7bB 3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT: -0.01400000 Waves 2021.09.15 12:15 [1703953] smart account 3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT > SELF 0.00000000 Waves
{ "type": 13, "id": "BnPQP9ridg9HH8p8BfqaBVUwGn8GQtxKP2AUugyiH7bB", "fee": 1400000, "feeAssetId": null, "timestamp": 1631697345669, "version": 2, "chainId": 84, "sender": "3MsxHxruYWoddB4HRiPBYAWtMXMtCF1V9XT", "senderPublicKey": "3ijdmxaYrpDFsKVbQH2kvB7i6JzHj9bep9bGWiQPra2D", "proofs": [ "4cckFeKZKoXLRsFxk8HLoakjxR9K62b1vpDfqtNkwfuX1hY8vvXSTe4dtpYEknTTCRjAWcSjkFwZxjGEHDzwFvbo", "VsVTdAxmy4cBaMiFviVZHkzC9z9HUk9ruw5RgX3ztEqjEK9skTF8FT4GPmx7gxSip2iGoFAW1SkNXFzVqwkt4FB" ], "script": "base64:AAIFAAAAAAAAE+AIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgUKAwgYARIFCgMICAESBAoCCAESAwoBCBIAEgAaEgoCYTESDGFkbWluUHViS2V5MRoSCgJhMhIMYWRtaW5QdWJLZXkyGhIKAmEzEgxhZG1pblB1YktleTMaEAoCYTQSCmFkbVN0YWtpbmcaGgoCYTUSFGtleVNoYXJlVG9rZW5zTG9ja2VkGhEKAmE2EgtrU2hhcmVMaW1pdBoPCgJhNxIJa2V5QWN0aXZlGg4KAmE4EghrZXlDYXVzZRoiCgJhORIca2V5UmV3YXJkUG9vbEZyYWN0aW9uQ3VycmVudBojCgJiMRIda2V5UmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMaGwoCYjISFWtleUhlaWdodFBvb2xGcmFjdGlvbhojCgJiMxIda2V5VG90YWxSZXdhcmRQZXJCbG9ja0N1cnJlbnQaJAoCYjQSHmtleVRvdGFsUm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AwgFAAAAAng3AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACeDcAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAJhMwYJAAH0AAAAAwgFAAAAAng3AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACeDcAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAJhNAMFAAAAAnkxBQAAAAJ5MgcEAAAAAnkzAwkAAfQAAAADCAUAAAACeDcAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ4NwAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmExAAAAAAAAAAABAAAAAAAAAAAABAAAAAJ5NAMJAAH0AAAAAwgFAAAAAng3AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACeDcAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAJhMgAAAAAAAAAAAQAAAAAAAAAAAAQAAAACeTUDCQAB9AAAAAMIBQAAAAJ4NwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAng3AAAABnByb29mcwAAAAAAAAAAAgUAAAACYTMAAAAAAAAAAAEAAAAAAAAAAAAJAABnAAAAAgkAAGQAAAACCQAAZAAAAAIFAAAAAnkzBQAAAAJ5NAUAAAACeTUAAAAAAAAAAALaaPfB", "height": 1703953, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G6JKKDtnrXWZggHs1qNV2tDtSqLCijYZuh9Cc1XsvHNU Next: Fte7wojy8nEuiZ6HfL4AenCu4ErHt6wVBmV7X7Szsy9Z Diff:
Old | New | Differences | |
---|---|---|---|
594 | 594 | ||
595 | 595 | ||
596 | 596 | @Callable(i) | |
597 | - | func egg0 (pool,users,migrationHeight) = if (if ((pool | |
598 | - | then | |
599 | - | else | |
597 | + | func egg0 (pool,users,migrationHeight) = if (if ((pool != "3Mx6wBFzPJG2hUWNLy2mei8ZHbtmRZ6JJTG")) | |
598 | + | then (pool != "3Mrwe8BMFXLVdGcBhdf3T9YNUnrUEMHkDA8") | |
599 | + | else false) | |
600 | 600 | then throw() | |
601 | 601 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, admStaking], i.callerPublicKey))) | |
602 | 602 | then throw("Only admin can call this function") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'GFmKZ2naZFRoCvNbwKAQVGmLb1uBeWGDgFabdGBuZiuy' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'GmJXRyhRA79g8yUGgKBAVdnFfQFDMjQG98b1MmLDh5kk' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'CFhbV6h41hVjbGHudGtS3fYUv7QAKRxFQzKNtx4B5PqP' | |
9 | 9 | ||
10 | 10 | let admStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
11 | 11 | ||
12 | 12 | let keyShareTokensLocked = "_total_share_tokens_locked" | |
13 | 13 | ||
14 | 14 | let kShareLimit = "share_limit_on_first_harvest" | |
15 | 15 | ||
16 | 16 | let keyActive = "active" | |
17 | 17 | ||
18 | 18 | let keyCause = "shutdown_cause" | |
19 | 19 | ||
20 | 20 | let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
21 | 21 | ||
22 | 22 | let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
23 | 23 | ||
24 | 24 | let keyHeightPoolFraction = "_pool_reward_update_height" | |
25 | 25 | ||
26 | 26 | let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current" | |
27 | 27 | ||
28 | 28 | let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous" | |
29 | 29 | ||
30 | 30 | let keyRewardUpdateHeight = "reward_update_height" | |
31 | 31 | ||
32 | 32 | let keyLastInterest = "_last_interest" | |
33 | 33 | ||
34 | 34 | let keyLastInterestHeight = "_last_interest_height" | |
35 | 35 | ||
36 | 36 | let keyUserShareTokensLocked = "_share_tokens_locked" | |
37 | 37 | ||
38 | 38 | let keyUserLastInterest = "_last_interest" | |
39 | 39 | ||
40 | 40 | let keySWOPid = "SWOP_id" | |
41 | 41 | ||
42 | 42 | let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount" | |
43 | 43 | ||
44 | 44 | let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount" | |
45 | 45 | ||
46 | 46 | let keyAvailableSWOP = "_available_SWOP" | |
47 | 47 | ||
48 | 48 | let keyFarmingStartHeight = "farming_start_height" | |
49 | 49 | ||
50 | 50 | let keyAPY = "apy" | |
51 | 51 | ||
52 | 52 | let kPreviousTotalVoteSWOP = "previous_total_vote_SWOP" | |
53 | 53 | ||
54 | 54 | let keySwopYearEmission = "swop_year_emission" | |
55 | 55 | ||
56 | 56 | let keyBalancecpmmA = "A_asset_balance" | |
57 | 57 | ||
58 | 58 | let keyBalancecpmmB = "B_asset_balance" | |
59 | 59 | ||
60 | 60 | let kHarvestPoolActiveVoteStrucVoting = "_harvest_pool_activeVote_struc" | |
61 | 61 | ||
62 | 62 | let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_activeVote_struc" | |
63 | 63 | ||
64 | 64 | let keyLimitShareFirstHarvest = "share_limit_on_first_harvest" | |
65 | 65 | ||
66 | 66 | let keyAssetIdA = "A_asset_id" | |
67 | 67 | ||
68 | 68 | let keyAssetIdB = "B_asset_id" | |
69 | 69 | ||
70 | 70 | let keyFirstHarvestHeight = "first_harvest_height" | |
71 | 71 | ||
72 | 72 | let keyfirstHarvestCpmm = "first_harvest" | |
73 | 73 | ||
74 | 74 | let keyTempPrevSum = "sum_reward_previous" | |
75 | 75 | ||
76 | 76 | let keyTempCurSum = "sum_reward_current" | |
77 | 77 | ||
78 | 78 | let governanceAddress = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU') | |
79 | 79 | ||
80 | 80 | let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
81 | 81 | ||
82 | 82 | let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ') | |
83 | 83 | ||
84 | 84 | let adminIncreaseInterestAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
85 | 85 | ||
86 | 86 | let oneWeekInBlock = 10106 | |
87 | 87 | ||
88 | 88 | let totalVoteShare = 10000000000 | |
89 | 89 | ||
90 | 90 | let scaleValue1 = 10 | |
91 | 91 | ||
92 | 92 | let scaleValue3 = 1000 | |
93 | 93 | ||
94 | 94 | let scaleValue5 = 100000 | |
95 | 95 | ||
96 | 96 | let scaleValue6 = 1000000 | |
97 | 97 | ||
98 | 98 | let scaleValue8 = 100000000 | |
99 | 99 | ||
100 | 100 | let scaleValue11 = 100000000000 | |
101 | 101 | ||
102 | 102 | func strAssetIdA (pool) = getStringValue(pool, keyAssetIdA) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func strAssetIdB (pool) = getStringValue(pool, keyAssetIdB) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func assetIdA (pool) = if ((strAssetIdA(pool) == "WAVES")) | |
109 | 109 | then unit | |
110 | 110 | else fromBase58String(strAssetIdA(pool)) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func assetIdB (pool) = if ((strAssetIdB(pool) == "WAVES")) | |
114 | 114 | then unit | |
115 | 115 | else fromBase58String(strAssetIdB(pool)) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | let kBasePeriod = "base_period" | |
119 | 119 | ||
120 | 120 | let kPeriodLength = "period_length" | |
121 | 121 | ||
122 | 122 | let kStartHeight = "start_height" | |
123 | 123 | ||
124 | 124 | let kFirstHarvestHeight = "first_harvest_height" | |
125 | 125 | ||
126 | 126 | let kDurationFullVotePower = "duration_full_vote_power" | |
127 | 127 | ||
128 | 128 | let kMinVotePower = "min_vote_power" | |
129 | 129 | ||
130 | 130 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
131 | 131 | ||
132 | 132 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
133 | 133 | ||
134 | 134 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
135 | 135 | ||
136 | 136 | let durationFullVotePower = valueOrErrorMessage(getInteger(votingAddress, kDurationFullVotePower), "Empty kDurationFullVotePower") | |
137 | 137 | ||
138 | 138 | let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower") | |
139 | 139 | ||
140 | 140 | let isActive = getBooleanValue(this, keyActive) | |
141 | 141 | ||
142 | 142 | let currPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
143 | 143 | ||
144 | 144 | func getLimitToken (pool) = valueOrElse(getIntegerValue(pool, keyLimitShareFirstHarvest), 0) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | let APY = getIntegerValue(this, keyAPY) | |
148 | 148 | ||
149 | 149 | let SwopYearEmission = getIntegerValue(this, keySwopYearEmission) | |
150 | 150 | ||
151 | 151 | func assetNameA (pool) = match assetIdA(pool) { | |
152 | 152 | case id: ByteVector => | |
153 | 153 | value(assetInfo(id)).name | |
154 | 154 | case waves: Unit => | |
155 | 155 | "WAVES" | |
156 | 156 | case _ => | |
157 | 157 | throw("Match error") | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func assetNameB (pool) = match assetIdB(pool) { | |
162 | 162 | case id: ByteVector => | |
163 | 163 | value(assetInfo(id)).name | |
164 | 164 | case waves: Unit => | |
165 | 165 | "WAVES" | |
166 | 166 | case _ => | |
167 | 167 | throw("Match error") | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | let SWOP = fromBase58String(getStringValue(this, keySWOPid)) | |
172 | 172 | ||
173 | 173 | func isFirstHarvest (pool) = valueOrElse(getBoolean(pool, keyfirstHarvestCpmm), false) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func getHeightFirstHarvest (pool) = valueOrElse(getInteger(pool, keyFirstHarvestHeight), 0) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func getBalanceA (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmA), ("No data on the key: " + keyBalancecpmmA)) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB)) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func getShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimit), ("No data on the key: " + kShareLimit)) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked)) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func accountBalance (assetId) = match assetId { | |
195 | 195 | case id: ByteVector => | |
196 | 196 | assetBalance(this, id) | |
197 | 197 | case waves: Unit => | |
198 | 198 | wavesBalance(this).available | |
199 | 199 | case _ => | |
200 | 200 | throw("Match error") | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func getAssetInfo (assetId) = match assetId { | |
205 | 205 | case id: ByteVector => | |
206 | 206 | let stringId = toBase58String(id) | |
207 | 207 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
208 | 208 | $Tuple3(stringId, info.name, info.decimals) | |
209 | 209 | case waves: Unit => | |
210 | 210 | $Tuple3("WAVES", "WAVES", 8) | |
211 | 211 | case _ => | |
212 | 212 | throw("Match error") | |
213 | 213 | } | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func calcScaleValue (assetId1,assetId2) = { | |
217 | 217 | let assetId1Decimals = value(assetInfo(assetId1)).decimals | |
218 | 218 | let assetId2Decimals = value(assetInfo(assetId2)).decimals | |
219 | 219 | let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8) | |
220 | 220 | pow(10, 0, scaleDigits, 0, 0, FLOOR) | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + user) + keyAvailableSWOP)), 0) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func rewardInfo (pool) = { | |
228 | 228 | let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress))) | |
229 | 229 | let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress))) | |
230 | 230 | let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress))) | |
231 | 231 | let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress))) | |
232 | 232 | let poolRewardUpdateHeight = valueOrElse(getInteger(governanceAddress, (pool + keyHeightPoolFraction)), 0) | |
233 | 233 | let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress))) | |
234 | 234 | let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare) | |
235 | 235 | let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare) | |
236 | 236 | if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent)) | |
237 | 237 | then true | |
238 | 238 | else (rewardPoolPrevious > totalRewardPerBlockPrevious)) | |
239 | 239 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
240 | 240 | else $Tuple4(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight) | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func getLastInterestInfo (pool) = { | |
245 | 245 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
246 | 246 | let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height) | |
247 | 247 | $Tuple2(lastInterestHeight, lastInterest) | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func getUserInterestInfo (pool,userAddrStr) = { | |
252 | 252 | let userLastInterest = getInteger(this, (((pool + "_") + userAddrStr) + keyUserLastInterest)) | |
253 | 253 | let userShare = getInteger(this, (((pool + "_") + userAddrStr) + keyUserShareTokensLocked)) | |
254 | 254 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
255 | 255 | let userLastInterestValue = match userLastInterest { | |
256 | 256 | case userLastInterest: Int => | |
257 | 257 | userLastInterest | |
258 | 258 | case _ => | |
259 | 259 | lastInterest | |
260 | 260 | } | |
261 | 261 | let userShareTokensAmount = match userShare { | |
262 | 262 | case userShare: Int => | |
263 | 263 | userShare | |
264 | 264 | case _ => | |
265 | 265 | 0 | |
266 | 266 | } | |
267 | 267 | $Tuple2(userLastInterestValue, userShareTokensAmount) | |
268 | 268 | } | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func calcInterest (lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue,h) = if ((shareTokenLocked == 0)) | |
272 | 272 | then 0 | |
273 | 273 | else if ((poolRewardUpdateHeight != 0)) | |
274 | 274 | then if (if ((rewardUpdateHeight > h)) | |
275 | 275 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
276 | 276 | else false) | |
277 | 277 | then { | |
278 | 278 | let reward = (previousRewardPerBlock * (h - lastInterestHeight)) | |
279 | 279 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
280 | 280 | } | |
281 | 281 | else if (if ((h > rewardUpdateHeight)) | |
282 | 282 | then (rewardUpdateHeight != poolRewardUpdateHeight) | |
283 | 283 | else false) | |
284 | 284 | then { | |
285 | 285 | let reward = (previousRewardPerBlock * (h - lastInterestHeight)) | |
286 | 286 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
287 | 287 | } | |
288 | 288 | else if (if (if ((h > rewardUpdateHeight)) | |
289 | 289 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
290 | 290 | else false) | |
291 | 291 | then (lastInterestHeight > rewardUpdateHeight) | |
292 | 292 | else false) | |
293 | 293 | then { | |
294 | 294 | let reward = (currentRewardPerBlock * (h - lastInterestHeight)) | |
295 | 295 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
296 | 296 | } | |
297 | 297 | else { | |
298 | 298 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
299 | 299 | let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked)) | |
300 | 300 | let reward = (currentRewardPerBlock * (h - rewardUpdateHeight)) | |
301 | 301 | (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked)) | |
302 | 302 | } | |
303 | 303 | else if ((rewardUpdateHeight > h)) | |
304 | 304 | then { | |
305 | 305 | let reward = (previousRewardPerBlock * (h - lastInterestHeight)) | |
306 | 306 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
307 | 307 | } | |
308 | 308 | else if ((lastInterestHeight > rewardUpdateHeight)) | |
309 | 309 | then { | |
310 | 310 | let reward = (currentRewardPerBlock * (h - lastInterestHeight)) | |
311 | 311 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
312 | 312 | } | |
313 | 313 | else { | |
314 | 314 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
315 | 315 | let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked)) | |
316 | 316 | let reward = (currentRewardPerBlock * (h - rewardUpdateHeight)) | |
317 | 317 | (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked)) | |
318 | 318 | } | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | func claimCalc (pool,userAddrStr,h) = { | |
322 | 322 | let shareAssetId = getShareAssetId(pool) | |
323 | 323 | let scaleValue = calcScaleValue(SWOP, shareAssetId) | |
324 | 324 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
325 | 325 | let $t01309613161 = getLastInterestInfo(pool) | |
326 | 326 | let lastInterestHeight = $t01309613161._1 | |
327 | 327 | let lastInterest = $t01309613161._2 | |
328 | 328 | let $t01316613278 = rewardInfo(pool) | |
329 | 329 | let currentRewardPerBlock = $t01316613278._1 | |
330 | 330 | let rewardUpdateHeight = $t01316613278._2 | |
331 | 331 | let previousRewardPerBlock = $t01316613278._3 | |
332 | 332 | let poolRewardUpdateHeight = $t01316613278._4 | |
333 | 333 | let $t01328313367 = getUserInterestInfo(pool, userAddrStr) | |
334 | 334 | let userLastInterest = $t01328313367._1 | |
335 | 335 | let userShareTokensAmount = $t01328313367._2 | |
336 | 336 | let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, scaleValue, h) | |
337 | 337 | let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue) | |
338 | 338 | let userNewInterest = currentInterest | |
339 | 339 | $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount) | |
340 | 340 | } | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | func claimCalcForMigration (pool,userAddrStr,h) = { | |
344 | 344 | let shareAssetId = getShareAssetId(pool) | |
345 | 345 | let scaleValue = calcScaleValue(SWOP, shareAssetId) | |
346 | 346 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
347 | 347 | let $t01409014155 = getLastInterestInfo(pool) | |
348 | 348 | let lastInterestHeight = $t01409014155._1 | |
349 | 349 | let lastInterest = $t01409014155._2 | |
350 | 350 | let $t01416014272 = rewardInfo(pool) | |
351 | 351 | let currentRewardPerBlock = $t01416014272._1 | |
352 | 352 | let rewardUpdateHeight = $t01416014272._2 | |
353 | 353 | let previousRewardPerBlock = $t01416014272._3 | |
354 | 354 | let poolRewardUpdateHeight = $t01416014272._4 | |
355 | 355 | let $t01427714361 = getUserInterestInfo(pool, userAddrStr) | |
356 | 356 | let userLastInterest = $t01427714361._1 | |
357 | 357 | let userShareTokensAmount = $t01427714361._2 | |
358 | 358 | let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, scaleValue, h) | |
359 | 359 | let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue) | |
360 | 360 | let userNewInterest = currentInterest | |
361 | 361 | $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount) | |
362 | 362 | } | |
363 | 363 | ||
364 | 364 | ||
365 | 365 | func calculateProtocolReward (pool) = { | |
366 | 366 | let $t01486514930 = getLastInterestInfo(pool) | |
367 | 367 | let lastInterestHeight = $t01486514930._1 | |
368 | 368 | let lastInterest = $t01486514930._2 | |
369 | 369 | let $t01493515046 = rewardInfo(pool) | |
370 | 370 | let currentRewardPerBlock = $t01493515046._1 | |
371 | 371 | let rewardUpdateHeight = $t01493515046._2 | |
372 | 372 | let previousRewardPerBlock = $t01493515046._3 | |
373 | 373 | let poolRewardUpdateHeight = $t01493515046._4 | |
374 | 374 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
375 | 375 | if (if ((shareTokenLocked == 0)) | |
376 | 376 | then (poolRewardUpdateHeight == 0) | |
377 | 377 | else false) | |
378 | 378 | then if ((rewardUpdateHeight > height)) | |
379 | 379 | then { | |
380 | 380 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
381 | 381 | reward | |
382 | 382 | } | |
383 | 383 | else if ((lastInterestHeight > rewardUpdateHeight)) | |
384 | 384 | then { | |
385 | 385 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
386 | 386 | reward | |
387 | 387 | } | |
388 | 388 | else { | |
389 | 389 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
390 | 390 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
391 | 391 | (reward + rewardAfterLastInterestBeforeReawardUpdate) | |
392 | 392 | } | |
393 | 393 | else if (if ((shareTokenLocked == 0)) | |
394 | 394 | then (poolRewardUpdateHeight != 0) | |
395 | 395 | else false) | |
396 | 396 | then if (if ((rewardUpdateHeight > height)) | |
397 | 397 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
398 | 398 | else false) | |
399 | 399 | then { | |
400 | 400 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
401 | 401 | reward | |
402 | 402 | } | |
403 | 403 | else if (if ((height > rewardUpdateHeight)) | |
404 | 404 | then (rewardUpdateHeight != poolRewardUpdateHeight) | |
405 | 405 | else false) | |
406 | 406 | then { | |
407 | 407 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
408 | 408 | reward | |
409 | 409 | } | |
410 | 410 | else if (if (if ((height > rewardUpdateHeight)) | |
411 | 411 | then (rewardUpdateHeight == poolRewardUpdateHeight) | |
412 | 412 | else false) | |
413 | 413 | then (lastInterestHeight > rewardUpdateHeight) | |
414 | 414 | else false) | |
415 | 415 | then { | |
416 | 416 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
417 | 417 | reward | |
418 | 418 | } | |
419 | 419 | else { | |
420 | 420 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
421 | 421 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
422 | 422 | (reward + rewardAfterLastInterestBeforeReawardUpdate) | |
423 | 423 | } | |
424 | 424 | else 0 | |
425 | 425 | } | |
426 | 426 | ||
427 | 427 | ||
428 | 428 | func checkPmtAssetIdCorrect (pool,pmtAssetId) = { | |
429 | 429 | let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
430 | 430 | if ((pmtAssetId == poolShareAssetId)) | |
431 | 431 | then true | |
432 | 432 | else false | |
433 | 433 | } | |
434 | 434 | ||
435 | 435 | ||
436 | 436 | func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + user) + keyUserSWOPClaimedAmount)), 0) | |
437 | 437 | ||
438 | 438 | ||
439 | 439 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
440 | 440 | ||
441 | 441 | ||
442 | 442 | @Callable(i) | |
443 | 443 | func init (earlyLP) = if (isDefined(getString(this, keySWOPid))) | |
444 | 444 | then throw("SWOP already initialized") | |
445 | 445 | else { | |
446 | 446 | let initAmount = 100000000000000 | |
447 | 447 | let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true) | |
448 | 448 | let SWOPid = calculateAssetId(SWOPissue) | |
449 | 449 | [BooleanEntry(keyActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))] | |
450 | 450 | } | |
451 | 451 | ||
452 | 452 | ||
453 | 453 | ||
454 | 454 | @Callable(i) | |
455 | 455 | func initPoolShareFarming (pool) = if ((i.caller != this)) | |
456 | 456 | then throw("Only the DApp itself can call this function") | |
457 | 457 | else { | |
458 | 458 | let $t01801618119 = rewardInfo(pool) | |
459 | 459 | let currentReward = $t01801618119._1 | |
460 | 460 | let rewardUpdateHeight = $t01801618119._2 | |
461 | 461 | let previousRewardPerBlock = $t01801618119._3 | |
462 | 462 | let poolRewardUpdateHeight = $t01801618119._4 | |
463 | 463 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)] | |
464 | 464 | } | |
465 | 465 | ||
466 | 466 | ||
467 | 467 | ||
468 | 468 | @Callable(i) | |
469 | 469 | func updatePoolInterest (pool) = if ((i.caller != wallet)) | |
470 | 470 | then throw("Only the Admin itself can call this function") | |
471 | 471 | else if (!(isActive)) | |
472 | 472 | then throw("DApp is inactive at this moment") | |
473 | 473 | else { | |
474 | 474 | let $t01852818664 = claimCalc(pool, toString(adminIncreaseInterestAddress), height) | |
475 | 475 | let userNewInterest = $t01852818664._1 | |
476 | 476 | let currentInterest = $t01852818664._2 | |
477 | 477 | let claimAmount = $t01852818664._3 | |
478 | 478 | let userShareTokensAmount = $t01852818664._4 | |
479 | 479 | let $t01866918772 = rewardInfo(pool) | |
480 | 480 | let currentReward = $t01866918772._1 | |
481 | 481 | let rewardUpdateHeight = $t01866918772._2 | |
482 | 482 | let previousRewardPerBlock = $t01866918772._3 | |
483 | 483 | let poolRewardUpdateHeight = $t01866918772._4 | |
484 | 484 | [IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)] | |
485 | 485 | } | |
486 | 486 | ||
487 | 487 | ||
488 | 488 | ||
489 | 489 | @Callable(i) | |
490 | 490 | func lockShareTokens (pool) = { | |
491 | 491 | let userAddrStr = toString(i.caller) | |
492 | 492 | let $t01900619081 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
493 | 493 | let pmtAmount = $t01900619081._1 | |
494 | 494 | let pmtAssetId = $t01900619081._2 | |
495 | 495 | let $t01908619159 = getAssetInfo(pmtAssetId) | |
496 | 496 | let pmtStrAssetId = $t01908619159._1 | |
497 | 497 | let pmtAssetName = $t01908619159._2 | |
498 | 498 | let pmtDecimals = $t01908619159._3 | |
499 | 499 | let $t01916419280 = claimCalc(pool, toString(i.caller), height) | |
500 | 500 | let userNewInterest = $t01916419280._1 | |
501 | 501 | let currentInterest = $t01916419280._2 | |
502 | 502 | let claimAmount = $t01916419280._3 | |
503 | 503 | let userShareTokensAmount = $t01916419280._4 | |
504 | 504 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
505 | 505 | let availableFundsNew = (userAvailableSWOP(pool, toString(i.caller)) + claimAmount) | |
506 | 506 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
507 | 507 | let totalShareAmountNew = (totalShareAmount + pmtAmount) | |
508 | 508 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, toString(i.caller)) | |
509 | 509 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
510 | 510 | let baseEntry = [IntegerEntry((((pool + "_") + userAddrStr) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + userAddrStr) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + userAddrStr) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + userAddrStr) + keyUserSWOPLastClaimedAmount), claimAmount), IntegerEntry((((pool + "_") + userAddrStr) + keyAvailableSWOP), availableFundsNew)] | |
511 | 511 | if (if ((pool == "3Mx6wBFzPJG2hUWNLy2mei8ZHbtmRZ6JJTG")) | |
512 | 512 | then true | |
513 | 513 | else (pool == "3Mrwe8BMFXLVdGcBhdf3T9YNUnrUEMHkDA8")) | |
514 | 514 | then throw() | |
515 | 515 | else if ((0 >= pmtAmount)) | |
516 | 516 | then throw("You can't lock token") | |
517 | 517 | else if (!(isActive)) | |
518 | 518 | then throw("DApp is inactive at this moment") | |
519 | 519 | else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId))) | |
520 | 520 | then throw("Incorrect pmtAssetId") | |
521 | 521 | else if (if (isFirstHarvest(Address(fromBase58String(pool)))) | |
522 | 522 | then (getHeightFirstHarvest(Address(fromBase58String(pool))) > height) | |
523 | 523 | else false) | |
524 | 524 | then { | |
525 | 525 | let harvestPeriod = ((((getHeightFirstHarvest(Address(fromBase58String(pool))) - startHeight) + 1) / periodLength) - 1) | |
526 | 526 | let amountOfVoting = split(getStringValue(votingAddress, (((userAddrStr + "_") + pool) + "_user_pool_struc")), "_") | |
527 | 527 | let amountPoolStract = split(getStringValue(votingAddress, (pool + "_pool_struc")), "_") | |
528 | 528 | let amountActiveVoteUserPoolStract = split(valueOrElse(getString(votingAddress, (((userAddrStr + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), ""), "_") | |
529 | 529 | let amountPoolActiveVoteStract = split(valueOrElse(getString(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), ""), "_") | |
530 | 530 | let userShareTokenLocked = userShareTokensAmount | |
531 | 531 | let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2])) | |
532 | 532 | then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0) | |
533 | 533 | else valueOrElse(parseInt(amountOfVoting[1]), 0) | |
534 | 534 | let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2])) | |
535 | 535 | then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0) | |
536 | 536 | else valueOrElse(parseInt(amountPoolStract[1]), 0) | |
537 | 537 | let protocolReward = calculateProtocolReward(pool) | |
538 | 538 | if ((userPoolActiveVote != 0)) | |
539 | 539 | then { | |
540 | 540 | let limitShareToken = getShareLimitToken(addressFromStringValue(pool)) | |
541 | 541 | let shareToken = (fraction(limitShareToken, userPoolActiveVote, poolActiveVote) - userShareTokenLocked) | |
542 | 542 | if (if ((size(amountActiveVoteUserPoolStract) > 1)) | |
543 | 543 | then (valueOrElse(parseInt(amountActiveVoteUserPoolStract[1]), 0) >= harvestPeriod) | |
544 | 544 | else false) | |
545 | 545 | then throw("You can't share token") | |
546 | 546 | else if ((pmtAmount > limitShareToken)) | |
547 | 547 | then throw(("You can't share token more than " + toString(limitShareToken))) | |
548 | 548 | else if ((shareToken > 0)) | |
549 | 549 | then if ((fraction(99, (accountBalance(pmtAssetId) + pmtAmount), 100) > totalShareAmountNew)) | |
550 | 550 | then throw("Balance of share-token is greater than totalAmount") | |
551 | 551 | else if ((totalShareAmount == 0)) | |
552 | 552 | then (baseEntry ++ [Reissue(SWOP, protocolReward, true), ScriptTransfer(wallet, protocolReward, SWOP)]) | |
553 | 553 | else if ((shareToken >= pmtAmount)) | |
554 | 554 | then baseEntry | |
555 | 555 | else throw(("Your maximum share token is " + toString(shareToken))) | |
556 | 556 | else throw("You can't share token") | |
557 | 557 | } | |
558 | 558 | else throw("Your amount of token less than 0") | |
559 | 559 | } | |
560 | 560 | else baseEntry | |
561 | 561 | } | |
562 | 562 | ||
563 | 563 | ||
564 | 564 | ||
565 | 565 | @Callable(i) | |
566 | 566 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = { | |
567 | 567 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
568 | 568 | let $t02381523931 = claimCalc(pool, toString(i.caller), height) | |
569 | 569 | let userNewInterest = $t02381523931._1 | |
570 | 570 | let currentInterest = $t02381523931._2 | |
571 | 571 | let claimAmount = $t02381523931._3 | |
572 | 572 | let userShareTokensAmount = $t02381523931._4 | |
573 | 573 | let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount) | |
574 | 574 | let availableFundsNew = (userAvailableSWOP(pool, toString(i.caller)) + claimAmount) | |
575 | 575 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
576 | 576 | let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount) | |
577 | 577 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, toString(i.caller)) | |
578 | 578 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
579 | 579 | if (if ((pool == "3Mx6wBFzPJG2hUWNLy2mei8ZHbtmRZ6JJTG")) | |
580 | 580 | then true | |
581 | 581 | else (pool == "3Mrwe8BMFXLVdGcBhdf3T9YNUnrUEMHkDA8")) | |
582 | 582 | then throw() | |
583 | 583 | else if ((shareTokensWithdrawAmount > userShareTokensAmount)) | |
584 | 584 | then throw("Withdraw amount more then user locked amount") | |
585 | 585 | else if (!(isActive)) | |
586 | 586 | then throw("DApp is inactive at this moment") | |
587 | 587 | else if ((shareTokensWithdrawAmount > userShareTokensAmount)) | |
588 | 588 | then throw("Withdraw amount more then user locked amount") | |
589 | 589 | else if ((fraction(99, (accountBalance(shareTokensId) - shareTokensWithdrawAmount), 100) > totalShareAmountNew)) | |
590 | 590 | then throw("Balance of share-token is greater than totalAmount") | |
591 | 591 | else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)] | |
592 | 592 | } | |
593 | 593 | ||
594 | 594 | ||
595 | 595 | ||
596 | 596 | @Callable(i) | |
597 | - | func egg0 (pool,users,migrationHeight) = if (if ((pool | |
598 | - | then | |
599 | - | else | |
597 | + | func egg0 (pool,users,migrationHeight) = if (if ((pool != "3Mx6wBFzPJG2hUWNLy2mei8ZHbtmRZ6JJTG")) | |
598 | + | then (pool != "3Mrwe8BMFXLVdGcBhdf3T9YNUnrUEMHkDA8") | |
599 | + | else false) | |
600 | 600 | then throw() | |
601 | 601 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, admStaking], i.callerPublicKey))) | |
602 | 602 | then throw("Only admin can call this function") | |
603 | 603 | else { | |
604 | 604 | func updateUser (accum,u) = { | |
605 | 605 | let r = invoke(this, "egg1", [pool, u, migrationHeight], nil) | |
606 | 606 | if ((r == r)) | |
607 | 607 | then accum | |
608 | 608 | else throw("Strict value is not equal to itself.") | |
609 | 609 | } | |
610 | 610 | ||
611 | 611 | let $list2639726428 = users | |
612 | 612 | let $size2639726428 = size($list2639726428) | |
613 | 613 | let $acc02639726428 = nil | |
614 | 614 | if (($size2639726428 == 0)) | |
615 | 615 | then $acc02639726428 | |
616 | 616 | else { | |
617 | 617 | let $acc12639726428 = updateUser($acc02639726428, $list2639726428[0]) | |
618 | 618 | if (($size2639726428 == 1)) | |
619 | 619 | then $acc12639726428 | |
620 | 620 | else { | |
621 | 621 | let $acc22639726428 = updateUser($acc12639726428, $list2639726428[1]) | |
622 | 622 | if (($size2639726428 == 2)) | |
623 | 623 | then $acc22639726428 | |
624 | 624 | else { | |
625 | 625 | let $acc32639726428 = updateUser($acc22639726428, $list2639726428[2]) | |
626 | 626 | if (($size2639726428 == 3)) | |
627 | 627 | then $acc32639726428 | |
628 | 628 | else { | |
629 | 629 | let $acc42639726428 = updateUser($acc32639726428, $list2639726428[3]) | |
630 | 630 | if (($size2639726428 == 4)) | |
631 | 631 | then $acc42639726428 | |
632 | 632 | else { | |
633 | 633 | let $acc52639726428 = updateUser($acc42639726428, $list2639726428[4]) | |
634 | 634 | if (($size2639726428 == 5)) | |
635 | 635 | then $acc52639726428 | |
636 | 636 | else { | |
637 | 637 | let $acc62639726428 = updateUser($acc52639726428, $list2639726428[5]) | |
638 | 638 | if (($size2639726428 == 6)) | |
639 | 639 | then $acc62639726428 | |
640 | 640 | else { | |
641 | 641 | let $acc72639726428 = updateUser($acc62639726428, $list2639726428[6]) | |
642 | 642 | if (($size2639726428 == 7)) | |
643 | 643 | then $acc72639726428 | |
644 | 644 | else { | |
645 | 645 | let $acc82639726428 = updateUser($acc72639726428, $list2639726428[7]) | |
646 | 646 | if (($size2639726428 == 8)) | |
647 | 647 | then $acc82639726428 | |
648 | 648 | else { | |
649 | 649 | let $acc92639726428 = updateUser($acc82639726428, $list2639726428[8]) | |
650 | 650 | if (($size2639726428 == 9)) | |
651 | 651 | then $acc92639726428 | |
652 | 652 | else { | |
653 | 653 | let $acc102639726428 = updateUser($acc92639726428, $list2639726428[9]) | |
654 | 654 | if (($size2639726428 == 10)) | |
655 | 655 | then $acc102639726428 | |
656 | 656 | else { | |
657 | 657 | let $acc112639726428 = updateUser($acc102639726428, $list2639726428[10]) | |
658 | 658 | if (($size2639726428 == 11)) | |
659 | 659 | then $acc112639726428 | |
660 | 660 | else { | |
661 | 661 | let $acc122639726428 = updateUser($acc112639726428, $list2639726428[11]) | |
662 | 662 | if (($size2639726428 == 12)) | |
663 | 663 | then $acc122639726428 | |
664 | 664 | else { | |
665 | 665 | let $acc132639726428 = updateUser($acc122639726428, $list2639726428[12]) | |
666 | 666 | throw("List size exceed 12") | |
667 | 667 | } | |
668 | 668 | } | |
669 | 669 | } | |
670 | 670 | } | |
671 | 671 | } | |
672 | 672 | } | |
673 | 673 | } | |
674 | 674 | } | |
675 | 675 | } | |
676 | 676 | } | |
677 | 677 | } | |
678 | 678 | } | |
679 | 679 | } | |
680 | 680 | } | |
681 | 681 | ||
682 | 682 | ||
683 | 683 | ||
684 | 684 | @Callable(i) | |
685 | 685 | func egg1 (pool,u,migrationHeight) = if ((i.caller != this)) | |
686 | 686 | then throw("Only contract itself can invoke this function") | |
687 | 687 | else { | |
688 | 688 | let shareTokenMultiplyer = 1000 | |
689 | 689 | let $t02663926751 = claimCalc(pool, u, migrationHeight) | |
690 | 690 | let userNewInterest = $t02663926751._1 | |
691 | 691 | let currentInterest = $t02663926751._2 | |
692 | 692 | let claimAmount = $t02663926751._3 | |
693 | 693 | let userShareTokensAmount = $t02663926751._4 | |
694 | 694 | let availableFundsNew = (userAvailableSWOP(pool, u) + claimAmount) | |
695 | 695 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, u) | |
696 | 696 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
697 | 697 | let userShareTokensAmountNew = (userShareTokensAmount * shareTokenMultiplyer) | |
698 | 698 | let totalAmountNewShareTokenLocked = valueOrElse(getInteger(this, ((pool + "_") + "tansl")), 0) | |
699 | 699 | [IntegerEntry((((pool + "_") + u) + keyUserLastInterest), 0), IntegerEntry((((pool + "_") + u) + keyUserShareTokensLocked), userShareTokensAmountNew), IntegerEntry((((pool + "_") + u) + keyAvailableSWOP), availableFundsNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), IntegerEntry(((pool + "_") + "tansl"), (totalAmountNewShareTokenLocked + userShareTokensAmountNew))] | |
700 | 700 | } | |
701 | 701 | ||
702 | 702 | ||
703 | 703 | ||
704 | 704 | @Callable(i) | |
705 | 705 | func updateTotalShareTokensLocked (pool,migrationHeight) = if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, admStaking], i.callerPublicKey))) | |
706 | 706 | then throw("Only admin can call this function") | |
707 | 707 | else { | |
708 | 708 | let shareTokenMultiplyer = 1000 | |
709 | 709 | let totalAmountShareTokensLockedBefore = (getIntegerValue(this, (pool + keyShareTokensLocked)) * 1000) | |
710 | 710 | let totalAmountShareTokensLockedNew = getIntegerValue(this, ((pool + "_") + "tansl")) | |
711 | 711 | if ((totalAmountShareTokensLockedBefore != totalAmountShareTokensLockedNew)) | |
712 | 712 | then throw("New total amount share tockens != old total amount") | |
713 | 713 | else [IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), migrationHeight), IntegerEntry((pool + keyShareTokensLocked), totalAmountShareTokensLockedNew), DeleteEntry(((pool + "_") + "tansl"))] | |
714 | 714 | } | |
715 | 715 | ||
716 | 716 | ||
717 | 717 | ||
718 | 718 | @Callable(i) | |
719 | 719 | func claim (pool) = { | |
720 | 720 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
721 | 721 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
722 | 722 | let $t02881528880 = getLastInterestInfo(pool) | |
723 | 723 | let lastInterestHeight = $t02881528880._1 | |
724 | 724 | let lastInterest = $t02881528880._2 | |
725 | 725 | let $t02888528997 = rewardInfo(pool) | |
726 | 726 | let currentRewardPerBlock = $t02888528997._1 | |
727 | 727 | let rewardUpdateHeight = $t02888528997._2 | |
728 | 728 | let previousRewardPerBlock = $t02888528997._3 | |
729 | 729 | let poolRewardUpdateHeight = $t02888528997._4 | |
730 | 730 | let $t02900229118 = claimCalc(pool, toString(i.caller), height) | |
731 | 731 | let userNewInterest = $t02900229118._1 | |
732 | 732 | let currentInterest = $t02900229118._2 | |
733 | 733 | let claimAmount = $t02900229118._3 | |
734 | 734 | let userShareTokensAmount = $t02900229118._4 | |
735 | 735 | let availableFund = (userAvailableSWOP(pool, toString(i.caller)) + claimAmount) | |
736 | 736 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, toString(i.caller)) | |
737 | 737 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
738 | 738 | if (if ((pool == "3Mx6wBFzPJG2hUWNLy2mei8ZHbtmRZ6JJTG")) | |
739 | 739 | then true | |
740 | 740 | else (pool == "3Mrwe8BMFXLVdGcBhdf3T9YNUnrUEMHkDA8")) | |
741 | 741 | then throw() | |
742 | 742 | else if ((availableFund == 0)) | |
743 | 743 | then throw("You have 0 available SWOP") | |
744 | 744 | else if (!(isActive)) | |
745 | 745 | then throw("DApp is inactive at this moment") | |
746 | 746 | else if ((availableFund == 0)) | |
747 | 747 | then throw("You have 0 available SWOP") | |
748 | 748 | else if ((fraction(99, accountBalance(shareTokensId), 100) > shareTokenLocked)) | |
749 | 749 | then throw("Balance of share-token is greater than totalAmount") | |
750 | 750 | else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), Reissue(SWOP, availableFund, true), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, availableFund, SWOP)] | |
751 | 751 | } | |
752 | 752 | ||
753 | 753 | ||
754 | 754 | ||
755 | 755 | @Callable(i) | |
756 | 756 | func shutdown () = if (!(isActive)) | |
757 | 757 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
758 | 758 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
759 | 759 | then throw("Only admin can call this function") | |
760 | 760 | else suspend("Paused by admin") | |
761 | 761 | ||
762 | 762 | ||
763 | 763 | ||
764 | 764 | @Callable(i) | |
765 | 765 | func activate () = if (isActive) | |
766 | 766 | then throw("DApp is already active") | |
767 | 767 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))) | |
768 | 768 | then throw("Only admin can call this function") | |
769 | 769 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
770 | 770 | ||
771 | 771 | ||
772 | 772 | @Verifier(tx) | |
773 | 773 | func verify () = match tx { | |
774 | 774 | case inv: InvokeScriptTransaction => | |
775 | 775 | let callEgg1 = if ((inv.dApp == this)) | |
776 | 776 | then (inv.function == "egg1") | |
777 | 777 | else false | |
778 | 778 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
779 | 779 | then true | |
780 | 780 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
781 | 781 | then true | |
782 | 782 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
783 | 783 | then true | |
784 | 784 | else sigVerify(tx.bodyBytes, tx.proofs[0], admStaking) | |
785 | 785 | if (callEgg1) | |
786 | 786 | then signedByAdmin | |
787 | 787 | else false | |
788 | 788 | case _ => | |
789 | 789 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
790 | 790 | then 1 | |
791 | 791 | else 0 | |
792 | 792 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
793 | 793 | then 1 | |
794 | 794 | else 0 | |
795 | 795 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
796 | 796 | then 1 | |
797 | 797 | else 0 | |
798 | 798 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
799 | 799 | } | |
800 | 800 |
github/deemru/w8io/169f3d6 81.91 ms ◑