Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix perpetual revenue distribution #1030

Merged
merged 4 commits into from
Dec 4, 2024
Merged

fix perpetual revenue distribution #1030

merged 4 commits into from
Dec 4, 2024

Conversation

avkr003
Copy link
Contributor

@avkr003 avkr003 commented Dec 4, 2024

  1. Take 10% of borrow interest payment and put in borrow interest payment fund address
    2/ Take the remaining 90% in another address. Now funds in this address will be used to distribute 60% LPs, 25% to stakers, rest 15% among protocol revenue and provider (3:1)

@avkr003 avkr003 requested review from amityadav0 and cosmic-vagabond and removed request for amityadav0 December 4, 2024 14:33
x/perpetual/client/cli/tx_update_params.go Outdated Show resolved Hide resolved
Co-authored-by: Amit Yadav <amy29981@gmail.com>
@avkr003 avkr003 enabled auto-merge (squash) December 4, 2024 18:10
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 35.89744% with 75 lines in your changes missing coverage. Please review.

Project coverage is 44.11%. Comparing base (de52bd9) to head (51afd32).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1030      +/-   ##
==========================================
- Coverage   44.16%   44.11%   -0.05%     
==========================================
  Files         929      930       +1     
  Lines       35227    35250      +23     
==========================================
- Hits        15558    15552       -6     
- Misses      18384    18413      +29     
  Partials     1285     1285              
Components Coverage Δ
leveragelp_transactions 80.06% <ø> (ø)
leveragelp_lifecycle 82.72% <ø> (ø)
leveragelp_keeper 85.41% <ø> (ø)
leveragelp_queries 8.94% <ø> (ø)
accountedpool_transactions 100.00% <ø> (ø)
accountedpool_lifecycle ∅ <ø> (∅)
accountedpool_queries 65.04% <ø> (ø)
amm_transactions 73.33% <ø> (ø)
amm_lifecycle 90.66% <ø> (ø)
amm_keeper 58.00% <ø> (ø)
amm_queries 44.31% <ø> (ø)
assetprofile_transactions 76.85% <ø> (ø)
assetprofile_lifecycle ∅ <ø> (∅)
assetprofile_keeper 80.00% <ø> (ø)
assetprofile_queries 60.00% <ø> (ø)
burner_transactions 0.00% <ø> (ø)
burner_lifecycle ∅ <ø> (∅)
burner_keeper 100.00% <ø> (ø)
burner_queries 62.01% <ø> (ø)
commitment_transactions 78.64% <ø> (ø)
commitment_lifecycle ∅ <ø> (∅)
commitment_keeper 86.17% <ø> (ø)
commitment_queries 32.46% <ø> (ø)
epochs_transactions ∅ <ø> (∅)
epochs_lifecycle 92.00% <ø> (ø)
epochs_keeper 84.61% <ø> (ø)
epochs_queries 26.78% <ø> (ø)
estaking_transactions 68.93% <ø> (ø)
estaking_lifecycle 85.95% <ø> (ø)
estaking_keeper 75.98% <ø> (ø)
estaking_queries 33.54% <ø> (ø)
incentive_transactions ∅ <ø> (∅)
incentive_lifecycle ∅ <ø> (∅)
incentive_keeper ∅ <ø> (∅)
incentive_queries ∅ <ø> (∅)
masterchef_transactions 86.85% <ø> (ø)
masterchef_lifecycle 75.09% <100.00%> (-0.93%) ⬇️
masterchef_keeper 100.00% <ø> (ø)
masterchef_queries 25.81% <ø> (ø)
oracle_transactions 27.27% <ø> (ø)
oracle_lifecycle 30.00% <ø> (ø)
oracle_keeper 61.11% <ø> (ø)
oracle_queries 12.73% <ø> (ø)
parameter_transactions 18.86% <ø> (ø)
parameter_lifecycle ∅ <ø> (∅)
parameter_keeper 75.00% <ø> (ø)
parameter_queries 57.14% <ø> (ø)
stablestake_transactions 83.20% <ø> (ø)
stablestake_lifecycle 100.00% <ø> (ø)
stablestake_keeper 90.47% <ø> (ø)
stablestake_queries 100.00% <ø> (ø)
perpetual_transactions 82.43% <ø> (ø)
perpetual_lifecycle 90.90% <ø> (ø)
perpetual_keeper 62.38% <82.35%> (+1.25%) ⬆️
perpetual_queries 61.32% <ø> (ø)
tier_transactions 25.00% <ø> (ø)
tier_lifecycle 100.00% <ø> (ø)
tier_keeper 90.90% <ø> (ø)
tier_queries 4.84% <ø> (ø)
tokenomics_transactions 71.87% <ø> (ø)
tokenomics_lifecycle ∅ <ø> (∅)
tokenomics_keeper 80.00% <ø> (ø)
tokenomics_queries 69.60% <ø> (ø)
transferhook_transactions ∅ <ø> (∅)
transferhook_lifecycle ∅ <ø> (∅)
transferhook_keeper 100.00% <ø> (ø)
transferhook_queries 11.11% <ø> (ø)
tradeshield_transactions 75.54% <ø> (ø)
tradeshield_lifecycle ∅ <ø> (∅)
tradeshield_keeper 90.90% <ø> (ø)
tradeshield_queries 21.55% <ø> (ø)

@avkr003 avkr003 merged commit 7ca556f into main Dec 4, 2024
72 of 75 checks passed
@avkr003 avkr003 deleted the avkr003/perpRevenue branch December 4, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants