tx · BhiKn1rU8tGwnMf4j9J28FyFtXCz9tJtxYNi9kWvQCm1 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC: -0.01400000 Waves 2021.05.11 17:54 [1521168] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves
{ "type": 13, "id": "BhiKn1rU8tGwnMf4j9J28FyFtXCz9tJtxYNi9kWvQCm1", "fee": 1400000, "feeAssetId": null, "timestamp": 1620744879928, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "4f9HUqVHKfp41p8cJqxXKnfNVdoCBTZZHc6W3sbF2Qc1L6XhgeDY5Er3nDRfwrAyR43KMhbSKrYvcJvG6M6HcWL9" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAABTAAAAAAxhZG1pblB1YktleTEBAAAAILoJ1zuJWaTRXaD/8bsz0KrhOWkPy+K9kdY77k9eqOATAAAAAAxhZG1pblB1YktleTIBAAAAIMKRRJmz0rC0DSKlkVi9iLyhN7sIy//djOaU71sWDn5AAAAAAAxhZG1pblB1YktleTMBAAAAII4eFy54sQc79EhOejMoYHYod/yZ5ZIwoyDCz6ir6Q5VAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAHGtleVJld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCAAAAHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkAAAAAB1rZXlSZXdhcmRQb29sRnJhY3Rpb25QcmV2aW91cwIAAAAeX3ByZXZpb3VzX3Bvb2xfZnJhY3Rpb25fcmV3YXJkAAAAAB1rZXlUb3RhbFJld2FyZFBlckJsb2NrQ3VycmVudAIA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AwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MQAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkyU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAADGFkbWluUHViS2V5MgAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkzU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAo0cBSw=", "height": 1521168, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E1NMK6kGvMJGTUusiXB2JpnSzvSb3PzRTovg4VhC8t96 Next: H1fhd1bnPKjeFfcEYuV7SzERCB3MGEZNxrpEurPGQEeh Diff:
Old | New | Differences | |
---|---|---|---|
266 | 266 | let shareAssetId = getShareAssetId(pool) | |
267 | 267 | let scaleValue = calcScaleValue(SWOP, shareAssetId) | |
268 | 268 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
269 | - | let $ | |
270 | - | let lastInterestHeight = $ | |
271 | - | let lastInterest = $ | |
272 | - | let $ | |
273 | - | let currentRewardPerBlock = $ | |
274 | - | let rewardUpdateHeight = $ | |
275 | - | let previousRewardPerBlock = $ | |
276 | - | let $ | |
277 | - | let userLastInterest = $ | |
278 | - | let userShareTokensAmount = $ | |
269 | + | let $t01087710942 = getLastInterestInfo(pool) | |
270 | + | let lastInterestHeight = $t01087710942._1 | |
271 | + | let lastInterest = $t01087710942._2 | |
272 | + | let $t01094711035 = rewardInfo(pool) | |
273 | + | let currentRewardPerBlock = $t01094711035._1 | |
274 | + | let rewardUpdateHeight = $t01094711035._2 | |
275 | + | let previousRewardPerBlock = $t01094711035._3 | |
276 | + | let $t01104011119 = getUserInterestInfo(pool, caller) | |
277 | + | let userLastInterest = $t01104011119._1 | |
278 | + | let userShareTokensAmount = $t01104011119._2 | |
279 | 279 | let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount) | |
280 | 280 | let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue) | |
281 | 281 | let userNewInterest = currentInterest | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func calculateProtocolReward (pool) = { | |
287 | - | let $ | |
288 | - | let lastInterestHeight = $ | |
289 | - | let lastInterest = $ | |
290 | - | let $ | |
291 | - | let currentRewardPerBlock = $ | |
292 | - | let rewardUpdateHeight = $ | |
293 | - | let previousRewardPerBlock = $ | |
287 | + | let $t01187411939 = getLastInterestInfo(pool) | |
288 | + | let lastInterestHeight = $t01187411939._1 | |
289 | + | let lastInterest = $t01187411939._2 | |
290 | + | let $t01194512033 = rewardInfo(pool) | |
291 | + | let currentRewardPerBlock = $t01194512033._1 | |
292 | + | let rewardUpdateHeight = $t01194512033._2 | |
293 | + | let previousRewardPerBlock = $t01194512033._3 | |
294 | 294 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
295 | 295 | if ((shareTokenLocked == 0)) | |
296 | 296 | then 0 | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | @Callable(i) | |
327 | - | func init (earlyLP) = if (isDefined(getString(this, keySWOPid))) | |
327 | + | func init (earlyLP) = if (isDefined(getString(this, "keySWOPid"))) | |
328 | 328 | then throw("SWOP already initialized") | |
329 | 329 | else { | |
330 | 330 | let initAmount = 100000000000000 | |
339 | 339 | func initPoolShareFarming (pool) = if ((i.caller != this)) | |
340 | 340 | then throw("Only the DApp itself can call this function") | |
341 | 341 | else { | |
342 | - | let $ | |
343 | - | let currentReward = $ | |
344 | - | let rewardUpdateHeight = $ | |
345 | - | let previousRewardPerBlock = $ | |
342 | + | let $t01410714187 = rewardInfo(pool) | |
343 | + | let currentReward = $t01410714187._1 | |
344 | + | let rewardUpdateHeight = $t01410714187._2 | |
345 | + | let previousRewardPerBlock = $t01410714187._3 | |
346 | 346 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)] | |
347 | 347 | } | |
348 | 348 | ||
352 | 352 | func updatePoolInterest (pool) = if ((i.caller != wallet)) | |
353 | 353 | then throw("Only the Admin itself can call this function") | |
354 | 354 | else { | |
355 | - | let $t01410614226 = claimCalc(pool, adminIncreaseInterestAddress, 0) | |
356 | - | let userNewInterest = $t01410614226._1 | |
357 | - | let currentInterest = $t01410614226._2 | |
358 | - | let claimAmount = $t01410614226._3 | |
359 | - | let userShareTokensAmount = $t01410614226._4 | |
360 | - | [IntegerEntry((pool + keyLastInterest), userNewInterest)] | |
355 | + | let $t01457814698 = claimCalc(pool, adminIncreaseInterestAddress, 0) | |
356 | + | let userNewInterest = $t01457814698._1 | |
357 | + | let currentInterest = $t01457814698._2 | |
358 | + | let claimAmount = $t01457814698._3 | |
359 | + | let userShareTokensAmount = $t01457814698._4 | |
360 | + | let $t01470314783 = rewardInfo(pool) | |
361 | + | let currentReward = $t01470314783._1 | |
362 | + | let rewardUpdateHeight = $t01470314783._2 | |
363 | + | let previousRewardPerBlock = $t01470314783._3 | |
364 | + | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)] | |
361 | 365 | } | |
362 | 366 | ||
363 | 367 | ||
364 | 368 | ||
365 | 369 | @Callable(i) | |
366 | 370 | func lockShareTokens (pool) = { | |
367 | - | let $ | |
368 | - | let pmtAmount = $ | |
369 | - | let pmtAssetId = $ | |
370 | - | let $ | |
371 | - | let pmtStrAssetId = $ | |
372 | - | let pmtAssetName = $ | |
373 | - | let pmtDecimals = $ | |
374 | - | let $ | |
375 | - | let userNewInterest = $ | |
376 | - | let currentInterest = $ | |
377 | - | let claimAmount = $ | |
378 | - | let userShareTokensAmount = $ | |
371 | + | let $t01503015105 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
372 | + | let pmtAmount = $t01503015105._1 | |
373 | + | let pmtAssetId = $t01503015105._2 | |
374 | + | let $t01511015183 = getAssetInfo(pmtAssetId) | |
375 | + | let pmtStrAssetId = $t01511015183._1 | |
376 | + | let pmtAssetName = $t01511015183._2 | |
377 | + | let pmtDecimals = $t01511015183._3 | |
378 | + | let $t01518815296 = claimCalc(pool, i.caller, pmtAmount) | |
379 | + | let userNewInterest = $t01518815296._1 | |
380 | + | let currentInterest = $t01518815296._2 | |
381 | + | let claimAmount = $t01518815296._3 | |
382 | + | let userShareTokensAmount = $t01518815296._4 | |
379 | 383 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
380 | 384 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
381 | 385 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
408 | 412 | let shareToken = (fraction(getTotalShareTokenLocked(pool), userPoolActiveVote, poolActiveVote) - userShareTokenLocked) | |
409 | 413 | if ((shareToken > 0)) | |
410 | 414 | then if ((totalShareAmountNew >= shareToken)) | |
411 | - | then | |
415 | + | then baseEntry | |
412 | 416 | else throw(("You maximum share token is " + toString(shareToken))) | |
413 | 417 | else throw("You can't share token") | |
414 | 418 | } | |
422 | 426 | @Callable(i) | |
423 | 427 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = { | |
424 | 428 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
425 | - | let $ | |
426 | - | let userNewInterest = $ | |
427 | - | let currentInterest = $ | |
428 | - | let claimAmount = $ | |
429 | - | let userShareTokensAmount = $ | |
429 | + | let $t01883218932 = claimCalc(pool, i.caller, 1) | |
430 | + | let userNewInterest = $t01883218932._1 | |
431 | + | let currentInterest = $t01883218932._2 | |
432 | + | let claimAmount = $t01883218932._3 | |
433 | + | let userShareTokensAmount = $t01883218932._4 | |
430 | 434 | let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount) | |
431 | 435 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
432 | 436 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
443 | 447 | @Callable(i) | |
444 | 448 | func claim (pool) = { | |
445 | 449 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
446 | - | let $ | |
447 | - | let lastInterestHeight = $ | |
448 | - | let lastInterest = $ | |
449 | - | let $ | |
450 | - | let currentRewardPerBlock = $ | |
451 | - | let rewardUpdateHeight = $ | |
452 | - | let previousRewardPerBlock = $ | |
453 | - | let $ | |
454 | - | let userNewInterest = $ | |
455 | - | let currentInterest = $ | |
456 | - | let claimAmount = $ | |
457 | - | let userShareTokensAmount = $ | |
450 | + | let $t02042520490 = getLastInterestInfo(pool) | |
451 | + | let lastInterestHeight = $t02042520490._1 | |
452 | + | let lastInterest = $t02042520490._2 | |
453 | + | let $t02049520584 = rewardInfo(pool) | |
454 | + | let currentRewardPerBlock = $t02049520584._1 | |
455 | + | let rewardUpdateHeight = $t02049520584._2 | |
456 | + | let previousRewardPerBlock = $t02049520584._3 | |
457 | + | let $t02058920689 = claimCalc(pool, i.caller, 1) | |
458 | + | let userNewInterest = $t02058920689._1 | |
459 | + | let currentInterest = $t02058920689._2 | |
460 | + | let claimAmount = $t02058920689._3 | |
461 | + | let userShareTokensAmount = $t02058920689._4 | |
458 | 462 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
459 | 463 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
460 | 464 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
467 | 471 | @Verifier(tx) | |
468 | 472 | func verify () = match tx { | |
469 | 473 | case _ => | |
470 | - | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
474 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
475 | + | then 1 | |
476 | + | else 0 | |
477 | + | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
478 | + | then 1 | |
479 | + | else 0 | |
480 | + | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
481 | + | then 1 | |
482 | + | else 0 | |
483 | + | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
471 | 484 | } | |
472 | 485 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
9 | 9 | ||
10 | 10 | let keyShareTokensLocked = "_total_share_tokens_locked" | |
11 | 11 | ||
12 | 12 | let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
13 | 13 | ||
14 | 14 | let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
15 | 15 | ||
16 | 16 | let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current" | |
17 | 17 | ||
18 | 18 | let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous" | |
19 | 19 | ||
20 | 20 | let keyRewardUpdateHeight = "reward_update_height" | |
21 | 21 | ||
22 | 22 | let keyLastInterest = "_last_interest" | |
23 | 23 | ||
24 | 24 | let keyLastInterestHeight = "_last_interest_height" | |
25 | 25 | ||
26 | 26 | let keyUserShareTokensLocked = "_share_tokens_locked" | |
27 | 27 | ||
28 | 28 | let keyUserLastInterest = "_last_interest" | |
29 | 29 | ||
30 | 30 | let keySWOPid = "SWOP_id" | |
31 | 31 | ||
32 | 32 | let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount" | |
33 | 33 | ||
34 | 34 | let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount" | |
35 | 35 | ||
36 | 36 | let keyAvailableSWOP = "_available_SWOP" | |
37 | 37 | ||
38 | 38 | let keyFarmingStartHeight = "farming_start_height" | |
39 | 39 | ||
40 | 40 | let keyAPY = "apy" | |
41 | 41 | ||
42 | 42 | let kPreviousTotalVoteSWOP = "previous_total_vote_SWOP" | |
43 | 43 | ||
44 | 44 | let keySwopYearEmission = "swop_year_emission" | |
45 | 45 | ||
46 | 46 | let keyBalancecpmmA = "A_asset_balance" | |
47 | 47 | ||
48 | 48 | let keyBalancecpmmB = "B_asset_balance" | |
49 | 49 | ||
50 | 50 | let kHarvestPoolActiveVoteStrucVoting = "_harvest_pool_activeVote_struc" | |
51 | 51 | ||
52 | 52 | let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_ActiveVote_struc" | |
53 | 53 | ||
54 | 54 | let keyLimitShareFirstHarvest = "share_limit_on_first_harvest" | |
55 | 55 | ||
56 | 56 | let keyAssetIdA = "A_asset_id" | |
57 | 57 | ||
58 | 58 | let keyAssetIdB = "B_asset_id" | |
59 | 59 | ||
60 | 60 | let keyFirstHarvestHeight = "first_harvest_height" | |
61 | 61 | ||
62 | 62 | let keyfirstHarvestCpmm = "first_harvest" | |
63 | 63 | ||
64 | 64 | let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
65 | 65 | ||
66 | 66 | let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
67 | 67 | ||
68 | 68 | let votingAddress = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN') | |
69 | 69 | ||
70 | 70 | let swopUsdnAddress = Address(base58'3N4kooq5242vPtJzBDrmukK6ptrjRRjEBWi') | |
71 | 71 | ||
72 | 72 | let wavesUsdnAddress = Address(base58'3MxtJmAsKsfof4X28MJPBtvRUyz1PbCnbhF') | |
73 | 73 | ||
74 | 74 | let adminIncreaseInterestAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
75 | 75 | ||
76 | 76 | let oneWeekInBlock = 10106 | |
77 | 77 | ||
78 | 78 | let totalVoteShare = 10000000000 | |
79 | 79 | ||
80 | 80 | let scaleValue1 = 10 | |
81 | 81 | ||
82 | 82 | let scaleValue3 = 1000 | |
83 | 83 | ||
84 | 84 | let scaleValue5 = 100000 | |
85 | 85 | ||
86 | 86 | let scaleValue6 = 1000000 | |
87 | 87 | ||
88 | 88 | let scaleValue8 = 100000000 | |
89 | 89 | ||
90 | 90 | let scaleValue11 = 100000000000 | |
91 | 91 | ||
92 | 92 | func strAssetIdA (pool) = getStringValue(pool, keyAssetIdA) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func strAssetIdB (pool) = getStringValue(pool, keyAssetIdB) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func assetIdA (pool) = if ((strAssetIdA(pool) == "WAVES")) | |
99 | 99 | then unit | |
100 | 100 | else fromBase58String(strAssetIdA(pool)) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func assetIdB (pool) = if ((strAssetIdB(pool) == "WAVES")) | |
104 | 104 | then unit | |
105 | 105 | else fromBase58String(strAssetIdB(pool)) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let kBasePeriod = "base_period" | |
109 | 109 | ||
110 | 110 | let kPeriodLength = "period_length" | |
111 | 111 | ||
112 | 112 | let kStartHeight = "start_height" | |
113 | 113 | ||
114 | 114 | let kFirstHarvestHeight = "first_harvest_height" | |
115 | 115 | ||
116 | 116 | let kDurationFullVotePower = "duration_full_vote_power" | |
117 | 117 | ||
118 | 118 | let kMinVotePower = "min_vote_power" | |
119 | 119 | ||
120 | 120 | let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod") | |
121 | 121 | ||
122 | 122 | let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight") | |
123 | 123 | ||
124 | 124 | let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength") | |
125 | 125 | ||
126 | 126 | let durationFullVotePower = valueOrErrorMessage(getInteger(votingAddress, kDurationFullVotePower), "Empty kDurationFullVotePower") | |
127 | 127 | ||
128 | 128 | let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower") | |
129 | 129 | ||
130 | 130 | let currPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
131 | 131 | ||
132 | 132 | func getLimitToken (pool) = valueOrElse(getIntegerValue(pool, keyLimitShareFirstHarvest), 0) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | let APY = getIntegerValue(this, keyAPY) | |
136 | 136 | ||
137 | 137 | let SwopYearEmission = getIntegerValue(this, keySwopYearEmission) | |
138 | 138 | ||
139 | 139 | func assetNameA (pool) = match assetIdA(pool) { | |
140 | 140 | case id: ByteVector => | |
141 | 141 | value(assetInfo(id)).name | |
142 | 142 | case waves: Unit => | |
143 | 143 | "WAVES" | |
144 | 144 | case _ => | |
145 | 145 | throw("Match error") | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func assetNameB (pool) = match assetIdB(pool) { | |
150 | 150 | case id: ByteVector => | |
151 | 151 | value(assetInfo(id)).name | |
152 | 152 | case waves: Unit => | |
153 | 153 | "WAVES" | |
154 | 154 | case _ => | |
155 | 155 | throw("Match error") | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | let SWOP = fromBase58String(getStringValue(this, keySWOPid)) | |
160 | 160 | ||
161 | 161 | func isFirstHarvest (pool) = valueOrElse(getBoolean(pool, keyfirstHarvestCpmm), false) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func getHeightFirstHarvest (pool) = valueOrElse(getInteger(pool, keyFirstHarvestHeight), 0) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func getBalanceA (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmA), ("No data on the key: " + keyBalancecpmmA)) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB)) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked)) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func getAssetInfo (assetId) = match assetId { | |
180 | 180 | case id: ByteVector => | |
181 | 181 | let stringId = toBase58String(id) | |
182 | 182 | let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist")) | |
183 | 183 | $Tuple3(stringId, info.name, info.decimals) | |
184 | 184 | case waves: Unit => | |
185 | 185 | $Tuple3("WAVES", "WAVES", 8) | |
186 | 186 | case _ => | |
187 | 187 | throw("Match error") | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func calcScaleValue (assetId1,assetId2) = { | |
192 | 192 | let assetId1Decimals = value(assetInfo(assetId1)).decimals | |
193 | 193 | let assetId2Decimals = value(assetInfo(assetId2)).decimals | |
194 | 194 | let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8) | |
195 | 195 | pow(10, 0, scaleDigits, 0, 0, HALFDOWN) | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func rewardInfo (pool) = { | |
203 | 203 | let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress))) | |
204 | 204 | let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress))) | |
205 | 205 | let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress))) | |
206 | 206 | let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress))) | |
207 | 207 | let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress))) | |
208 | 208 | let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare) | |
209 | 209 | let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare) | |
210 | 210 | if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent)) | |
211 | 211 | then true | |
212 | 212 | else (rewardPoolPrevious > totalRewardPerBlockPrevious)) | |
213 | 213 | then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious") | |
214 | 214 | else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious) | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | func getLastInterestInfo (pool) = { | |
219 | 219 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
220 | 220 | let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height) | |
221 | 221 | $Tuple2(lastInterestHeight, lastInterest) | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func getUserInterestInfo (pool,userAddress) = { | |
226 | 226 | let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest)) | |
227 | 227 | let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked)) | |
228 | 228 | let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest)) | |
229 | 229 | let userLastInterestValue = match userLastInterest { | |
230 | 230 | case userLastInterest: Int => | |
231 | 231 | userLastInterest | |
232 | 232 | case _ => | |
233 | 233 | lastInterest | |
234 | 234 | } | |
235 | 235 | let userShareTokensAmount = match userShare { | |
236 | 236 | case userShare: Int => | |
237 | 237 | userShare | |
238 | 238 | case _ => | |
239 | 239 | 0 | |
240 | 240 | } | |
241 | 241 | $Tuple2(userLastInterestValue, userShareTokensAmount) | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0)) | |
246 | 246 | then 0 | |
247 | 247 | else if ((rewardUpdateHeight > height)) | |
248 | 248 | then { | |
249 | 249 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
250 | 250 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
251 | 251 | } | |
252 | 252 | else if ((lastInterestHeight > rewardUpdateHeight)) | |
253 | 253 | then { | |
254 | 254 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
255 | 255 | (lastInterest + fraction(reward, scaleValue, shareTokenLocked)) | |
256 | 256 | } | |
257 | 257 | else { | |
258 | 258 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
259 | 259 | let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked)) | |
260 | 260 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
261 | 261 | (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked)) | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func claimCalc (pool,caller,pmtAmount) = { | |
266 | 266 | let shareAssetId = getShareAssetId(pool) | |
267 | 267 | let scaleValue = calcScaleValue(SWOP, shareAssetId) | |
268 | 268 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
269 | - | let $ | |
270 | - | let lastInterestHeight = $ | |
271 | - | let lastInterest = $ | |
272 | - | let $ | |
273 | - | let currentRewardPerBlock = $ | |
274 | - | let rewardUpdateHeight = $ | |
275 | - | let previousRewardPerBlock = $ | |
276 | - | let $ | |
277 | - | let userLastInterest = $ | |
278 | - | let userShareTokensAmount = $ | |
269 | + | let $t01087710942 = getLastInterestInfo(pool) | |
270 | + | let lastInterestHeight = $t01087710942._1 | |
271 | + | let lastInterest = $t01087710942._2 | |
272 | + | let $t01094711035 = rewardInfo(pool) | |
273 | + | let currentRewardPerBlock = $t01094711035._1 | |
274 | + | let rewardUpdateHeight = $t01094711035._2 | |
275 | + | let previousRewardPerBlock = $t01094711035._3 | |
276 | + | let $t01104011119 = getUserInterestInfo(pool, caller) | |
277 | + | let userLastInterest = $t01104011119._1 | |
278 | + | let userShareTokensAmount = $t01104011119._2 | |
279 | 279 | let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount) | |
280 | 280 | let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue) | |
281 | 281 | let userNewInterest = currentInterest | |
282 | 282 | $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount) | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func calculateProtocolReward (pool) = { | |
287 | - | let $ | |
288 | - | let lastInterestHeight = $ | |
289 | - | let lastInterest = $ | |
290 | - | let $ | |
291 | - | let currentRewardPerBlock = $ | |
292 | - | let rewardUpdateHeight = $ | |
293 | - | let previousRewardPerBlock = $ | |
287 | + | let $t01187411939 = getLastInterestInfo(pool) | |
288 | + | let lastInterestHeight = $t01187411939._1 | |
289 | + | let lastInterest = $t01187411939._2 | |
290 | + | let $t01194512033 = rewardInfo(pool) | |
291 | + | let currentRewardPerBlock = $t01194512033._1 | |
292 | + | let rewardUpdateHeight = $t01194512033._2 | |
293 | + | let previousRewardPerBlock = $t01194512033._3 | |
294 | 294 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
295 | 295 | if ((shareTokenLocked == 0)) | |
296 | 296 | then 0 | |
297 | 297 | else if ((rewardUpdateHeight > height)) | |
298 | 298 | then { | |
299 | 299 | let reward = (previousRewardPerBlock * (height - lastInterestHeight)) | |
300 | 300 | reward | |
301 | 301 | } | |
302 | 302 | else if ((lastInterestHeight > rewardUpdateHeight)) | |
303 | 303 | then { | |
304 | 304 | let reward = (currentRewardPerBlock * (height - lastInterestHeight)) | |
305 | 305 | reward | |
306 | 306 | } | |
307 | 307 | else { | |
308 | 308 | let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight)) | |
309 | 309 | let reward = (currentRewardPerBlock * (height - rewardUpdateHeight)) | |
310 | 310 | (reward + rewardAfterLastInterestBeforeReawardUpdate) | |
311 | 311 | } | |
312 | 312 | } | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | func checkPmtAssetIdCorrect (pool,pmtAssetId) = { | |
316 | 316 | let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
317 | 317 | if ((pmtAssetId == poolShareAssetId)) | |
318 | 318 | then true | |
319 | 319 | else false | |
320 | 320 | } | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0) | |
324 | 324 | ||
325 | 325 | ||
326 | 326 | @Callable(i) | |
327 | - | func init (earlyLP) = if (isDefined(getString(this, keySWOPid))) | |
327 | + | func init (earlyLP) = if (isDefined(getString(this, "keySWOPid"))) | |
328 | 328 | then throw("SWOP already initialized") | |
329 | 329 | else { | |
330 | 330 | let initAmount = 100000000000000 | |
331 | 331 | let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true) | |
332 | 332 | let SWOPid = calculateAssetId(SWOPissue) | |
333 | 333 | [Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))] | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | ||
338 | 338 | @Callable(i) | |
339 | 339 | func initPoolShareFarming (pool) = if ((i.caller != this)) | |
340 | 340 | then throw("Only the DApp itself can call this function") | |
341 | 341 | else { | |
342 | - | let $ | |
343 | - | let currentReward = $ | |
344 | - | let rewardUpdateHeight = $ | |
345 | - | let previousRewardPerBlock = $ | |
342 | + | let $t01410714187 = rewardInfo(pool) | |
343 | + | let currentReward = $t01410714187._1 | |
344 | + | let rewardUpdateHeight = $t01410714187._2 | |
345 | + | let previousRewardPerBlock = $t01410714187._3 | |
346 | 346 | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)] | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | ||
351 | 351 | @Callable(i) | |
352 | 352 | func updatePoolInterest (pool) = if ((i.caller != wallet)) | |
353 | 353 | then throw("Only the Admin itself can call this function") | |
354 | 354 | else { | |
355 | - | let $t01410614226 = claimCalc(pool, adminIncreaseInterestAddress, 0) | |
356 | - | let userNewInterest = $t01410614226._1 | |
357 | - | let currentInterest = $t01410614226._2 | |
358 | - | let claimAmount = $t01410614226._3 | |
359 | - | let userShareTokensAmount = $t01410614226._4 | |
360 | - | [IntegerEntry((pool + keyLastInterest), userNewInterest)] | |
355 | + | let $t01457814698 = claimCalc(pool, adminIncreaseInterestAddress, 0) | |
356 | + | let userNewInterest = $t01457814698._1 | |
357 | + | let currentInterest = $t01457814698._2 | |
358 | + | let claimAmount = $t01457814698._3 | |
359 | + | let userShareTokensAmount = $t01457814698._4 | |
360 | + | let $t01470314783 = rewardInfo(pool) | |
361 | + | let currentReward = $t01470314783._1 | |
362 | + | let rewardUpdateHeight = $t01470314783._2 | |
363 | + | let previousRewardPerBlock = $t01470314783._3 | |
364 | + | [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)] | |
361 | 365 | } | |
362 | 366 | ||
363 | 367 | ||
364 | 368 | ||
365 | 369 | @Callable(i) | |
366 | 370 | func lockShareTokens (pool) = { | |
367 | - | let $ | |
368 | - | let pmtAmount = $ | |
369 | - | let pmtAssetId = $ | |
370 | - | let $ | |
371 | - | let pmtStrAssetId = $ | |
372 | - | let pmtAssetName = $ | |
373 | - | let pmtDecimals = $ | |
374 | - | let $ | |
375 | - | let userNewInterest = $ | |
376 | - | let currentInterest = $ | |
377 | - | let claimAmount = $ | |
378 | - | let userShareTokensAmount = $ | |
371 | + | let $t01503015105 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
372 | + | let pmtAmount = $t01503015105._1 | |
373 | + | let pmtAssetId = $t01503015105._2 | |
374 | + | let $t01511015183 = getAssetInfo(pmtAssetId) | |
375 | + | let pmtStrAssetId = $t01511015183._1 | |
376 | + | let pmtAssetName = $t01511015183._2 | |
377 | + | let pmtDecimals = $t01511015183._3 | |
378 | + | let $t01518815296 = claimCalc(pool, i.caller, pmtAmount) | |
379 | + | let userNewInterest = $t01518815296._1 | |
380 | + | let currentInterest = $t01518815296._2 | |
381 | + | let claimAmount = $t01518815296._3 | |
382 | + | let userShareTokensAmount = $t01518815296._4 | |
379 | 383 | let userShareAmountNew = (userShareTokensAmount + pmtAmount) | |
380 | 384 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
381 | 385 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
382 | 386 | let totalShareAmountNew = (totalShareAmount + pmtAmount) | |
383 | 387 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
384 | 388 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
385 | 389 | let baseEntry = [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew)] | |
386 | 390 | if ((0 >= pmtAmount)) | |
387 | 391 | then throw("You can't lock token") | |
388 | 392 | else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId))) | |
389 | 393 | then throw("Incorrect pmtAssetId") | |
390 | 394 | else if (if (isFirstHarvest(Address(fromBase58String(pool)))) | |
391 | 395 | then (height > (getHeightFirstHarvest(Address(fromBase58String(pool))) * periodLength)) | |
392 | 396 | else false) | |
393 | 397 | then { | |
394 | 398 | let amountOfVoting = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_user_pool_struc")), "_") | |
395 | 399 | let amountPoolStract = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_pool_struc")), "_") | |
396 | 400 | let amountActiveVoteUserPoolStract = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), "_") | |
397 | 401 | let amountPoolActiveVoteStract = split(getStringValue(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), "_") | |
398 | 402 | let userShareTokenLocked = userShareTokensAmount | |
399 | 403 | let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2])) | |
400 | 404 | then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0) | |
401 | 405 | else valueOrElse(parseInt(amountOfVoting[0]), 0) | |
402 | 406 | let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2])) | |
403 | 407 | then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0) | |
404 | 408 | else valueOrElse(parseInt(amountPoolStract[0]), 0) | |
405 | 409 | let protocolReward = calculateProtocolReward(pool) | |
406 | 410 | if ((parseInt(amountOfVoting[1]) != 0)) | |
407 | 411 | then { | |
408 | 412 | let shareToken = (fraction(getTotalShareTokenLocked(pool), userPoolActiveVote, poolActiveVote) - userShareTokenLocked) | |
409 | 413 | if ((shareToken > 0)) | |
410 | 414 | then if ((totalShareAmountNew >= shareToken)) | |
411 | - | then | |
415 | + | then baseEntry | |
412 | 416 | else throw(("You maximum share token is " + toString(shareToken))) | |
413 | 417 | else throw("You can't share token") | |
414 | 418 | } | |
415 | 419 | else throw("Your amount of token less than 0") | |
416 | 420 | } | |
417 | 421 | else baseEntry | |
418 | 422 | } | |
419 | 423 | ||
420 | 424 | ||
421 | 425 | ||
422 | 426 | @Callable(i) | |
423 | 427 | func withdrawShareTokens (pool,shareTokensWithdrawAmount) = { | |
424 | 428 | let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id")) | |
425 | - | let $ | |
426 | - | let userNewInterest = $ | |
427 | - | let currentInterest = $ | |
428 | - | let claimAmount = $ | |
429 | - | let userShareTokensAmount = $ | |
429 | + | let $t01883218932 = claimCalc(pool, i.caller, 1) | |
430 | + | let userNewInterest = $t01883218932._1 | |
431 | + | let currentInterest = $t01883218932._2 | |
432 | + | let claimAmount = $t01883218932._3 | |
433 | + | let userShareTokensAmount = $t01883218932._4 | |
430 | 434 | let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount) | |
431 | 435 | let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
432 | 436 | let totalShareAmount = getTotalShareTokenLocked(pool) | |
433 | 437 | let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount) | |
434 | 438 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
435 | 439 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
436 | 440 | if ((shareTokensWithdrawAmount > userShareTokensAmount)) | |
437 | 441 | then throw("Withdraw amount more then user locked amount") | |
438 | 442 | 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)] | |
439 | 443 | } | |
440 | 444 | ||
441 | 445 | ||
442 | 446 | ||
443 | 447 | @Callable(i) | |
444 | 448 | func claim (pool) = { | |
445 | 449 | let shareTokenLocked = getTotalShareTokenLocked(pool) | |
446 | - | let $ | |
447 | - | let lastInterestHeight = $ | |
448 | - | let lastInterest = $ | |
449 | - | let $ | |
450 | - | let currentRewardPerBlock = $ | |
451 | - | let rewardUpdateHeight = $ | |
452 | - | let previousRewardPerBlock = $ | |
453 | - | let $ | |
454 | - | let userNewInterest = $ | |
455 | - | let currentInterest = $ | |
456 | - | let claimAmount = $ | |
457 | - | let userShareTokensAmount = $ | |
450 | + | let $t02042520490 = getLastInterestInfo(pool) | |
451 | + | let lastInterestHeight = $t02042520490._1 | |
452 | + | let lastInterest = $t02042520490._2 | |
453 | + | let $t02049520584 = rewardInfo(pool) | |
454 | + | let currentRewardPerBlock = $t02049520584._1 | |
455 | + | let rewardUpdateHeight = $t02049520584._2 | |
456 | + | let previousRewardPerBlock = $t02049520584._3 | |
457 | + | let $t02058920689 = claimCalc(pool, i.caller, 1) | |
458 | + | let userNewInterest = $t02058920689._1 | |
459 | + | let currentInterest = $t02058920689._2 | |
460 | + | let claimAmount = $t02058920689._3 | |
461 | + | let userShareTokensAmount = $t02058920689._4 | |
458 | 462 | let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount) | |
459 | 463 | let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller) | |
460 | 464 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
461 | 465 | if ((availableFund == 0)) | |
462 | 466 | then throw("You have 0 available SWOP") | |
463 | 467 | else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, availableFund, SWOP)] | |
464 | 468 | } | |
465 | 469 | ||
466 | 470 | ||
467 | 471 | @Verifier(tx) | |
468 | 472 | func verify () = match tx { | |
469 | 473 | case _ => | |
470 | - | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
474 | + | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
475 | + | then 1 | |
476 | + | else 0 | |
477 | + | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
478 | + | then 1 | |
479 | + | else 0 | |
480 | + | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
481 | + | then 1 | |
482 | + | else 0 | |
483 | + | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
471 | 484 | } | |
472 | 485 |
github/deemru/w8io/026f985 70.96 ms ◑