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

Decommission Incentive Module and Reallocate Queries #877

Merged
merged 16 commits into from
Oct 24, 2024
Merged

Conversation

amityadav0
Copy link
Contributor

Description

  • Decommission Incentive Module and Reallocate Queries

  • Remove incentive store using setup handler

  • Manual testing results

    • apr

      
ay@Amits-MacBook-Pro ~ % elysd q masterchef apr 0 ueden
      apr: "0.108949742109481065"
      ay@Amits-MacBook-Pro ~ % elysd q incentive apr 0 ueden 
      apr: "0.108949742109481065"
      
    • aprs

      ay@Amits-MacBook-Pro ~ % elysd q masterchef aprs              
      eden_apr_eden: "0.108949742109481065"
      eden_apr_edenb: "0.108949742109481065"
      eden_apr_elys: "0.108949742109481065"
      eden_apr_usdc: "0.499999999999999999"
      edenb_apr_eden: "1.000000000000000000"
      edenb_apr_elys: "1.000000000000000000"
      usdc_apr_eden: "0.000000000000000000"
      usdc_apr_edenb: "0.000000000000000000"
      usdc_apr_elys: "0.000000000000000000"
      usdc_apr_usdc: "0.044725778527542140"
      ay@Amits-MacBook-Pro ~ % elysd q incentive aprs              
      eden_apr_eden: "0.108949742109481065"
      eden_apr_edenb: "0.108949742109481065"
      eden_apr_elys: "0.108949742109481065"
      eden_apr_usdc: "0.499999999999999999"
      edenb_apr_eden: "1.000000000000000000"
      edenb_apr_elys: "1.000000000000000000"
      usdc_apr_eden: "0.000000000000000000"
      usdc_apr_edenb: "0.000000000000000000"
      usdc_apr_elys: "0.000000000000000000"
      usdc_apr_usdc: "0.044725778527542140"
      
    • pool-rewards

    ay@Amits-MacBook-Pro ~ % elysd q incentive pool-rewards 2  
    pools:
    - eden_forward:
    amount: "0"
    denom: ueden
    pool_id: "2"
    reward_coins:
    - amount: "5"
    denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    rewards_usd: "0.000005149578859647"
    ay@Amits-MacBook-Pro ~ % elysd q masterchef pool-rewards 2
    pools:
    - eden_forward:
    amount: "0"
    denom: ueden
    pool_id: "2"
    reward_coins:
    - amount: "5"
    denom: ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65
    rewards_usd: "0.000005149578859647"
    

What has Changed?

What specific problem were you aiming to address, and how did you successfully resolve it? If tests were not uploaded for this pull request or if coverage decreased, please provide an explanation for the change.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

Deployment Notes

Are there any specific considerations to take into account when deploying these changes? This may include new dependencies, scripts that need to be executed, or any aspects that can only be evaluated in a deployed environment.

Screenshots and Videos

Please provide any relevant before and after screenshots by uploading them here. Additionally, demo videos can be highly beneficial in demonstrating the process.

Copy link

codecov bot commented Oct 23, 2024

Codecov Report

Attention: Patch coverage is 34.35897% with 128 lines in your changes missing coverage. Please review.

Project coverage is 34.49%. Comparing base (c13d58f) to head (9ba2590).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #877      +/-   ##
==========================================
+ Coverage   33.96%   34.49%   +0.52%     
==========================================
  Files        1094     1080      -14     
  Lines       40245    39834     -411     
==========================================
+ Hits        13670    13740      +70     
+ Misses      25343    24839     -504     
- Partials     1232     1255      +23     
Components Coverage Δ
leveragelp_transactions 83.01% <ø> (ø)
leveragelp_lifecycle 82.72% <ø> (ø)
leveragelp_keeper 85.41% <ø> (ø)
leveragelp_queries 7.64% <ø> (ø)
accountedpool_transactions 100.00% <ø> (ø)
accountedpool_lifecycle ∅ <ø> (∅)
accountedpool_queries 54.47% <ø> (ø)
amm_transactions 56.67% <ø> (ø)
amm_lifecycle 77.33% <ø> (ø)
amm_keeper 54.10% <ø> (ø)
amm_queries 20.16% <0.00%> (-0.02%) ⬇️
assetprofile_transactions 76.85% <ø> (ø)
assetprofile_lifecycle ∅ <ø> (∅)
assetprofile_keeper 86.66% <ø> (ø)
assetprofile_queries 37.18% <ø> (ø)
burner_transactions 0.00% <ø> (ø)
burner_lifecycle ∅ <ø> (∅)
burner_keeper 100.00% <ø> (ø)
burner_queries 50.31% <ø> (ø)
clock_transactions 30.76% <ø> (ø)
clock_lifecycle ∅ <ø> (∅)
clock_keeper 78.12% <ø> (ø)
clock_queries 0.00% <ø> (ø)
commitment_transactions 47.65% <ø> (ø)
commitment_lifecycle ∅ <ø> (∅)
commitment_keeper 20.16% <ø> (ø)
commitment_queries 2.51% <ø> (ø)
epochs_transactions ∅ <ø> (∅)
epochs_lifecycle 92.00% <ø> (ø)
epochs_keeper 84.61% <ø> (ø)
epochs_queries 22.72% <ø> (ø)
estaking_transactions 45.34% <ø> (ø)
estaking_lifecycle 76.14% <ø> (ø)
estaking_keeper 63.05% <ø> (ø)
estaking_queries 23.70% <ø> (ø)
incentive_transactions ∅ <ø> (∅)
incentive_lifecycle ∅ <ø> (∅)
incentive_keeper ∅ <ø> (∅)
incentive_queries ∅ <ø> (∅)
masterchef_transactions 61.71% <ø> (ø)
masterchef_lifecycle 73.21% <ø> (ø)
masterchef_keeper 90.90% <100.00%> (+0.43%) ⬆️
masterchef_queries 19.31% <24.34%> (+6.51%) ⬆️
oracle_transactions 28.44% <ø> (ø)
oracle_lifecycle 0.00% <ø> (ø)
oracle_keeper 65.85% <ø> (ø)
oracle_queries 10.19% <ø> (ø)
parameter_transactions 15.04% <ø> (ø)
parameter_lifecycle ∅ <ø> (∅)
parameter_keeper 77.77% <ø> (ø)
parameter_queries 8.16% <ø> (ø)
stablestake_transactions 72.80% <ø> (ø)
stablestake_lifecycle 78.94% <ø> (ø)
stablestake_keeper 76.00% <ø> (ø)
stablestake_queries 3.66% <ø> (ø)
tier_transactions 25.00% <ø> (ø)
tier_lifecycle 100.00% <ø> (ø)
tier_keeper 91.66% <ø> (ø)
tier_queries 6.15% <ø> (ø)
tokenomics_transactions 71.87% <ø> (ø)
tokenomics_lifecycle ∅ <ø> (∅)
tokenomics_keeper 86.66% <ø> (ø)
tokenomics_queries 56.12% <ø> (ø)
transferhook_transactions ∅ <ø> (∅)
transferhook_lifecycle ∅ <ø> (∅)
transferhook_keeper 100.00% <ø> (ø)
transferhook_queries 8.69% <ø> (ø)
tradeshield_transactions 1.19% <ø> (ø)
tradeshield_lifecycle ∅ <ø> (∅)
tradeshield_keeper 79.48% <ø> (ø)
tradeshield_queries 7.10% <ø> (ø)

@amityadav0
Copy link
Contributor Author

Adding tests now

@cosmic-vagabond cosmic-vagabond merged commit eb60389 into main Oct 24, 2024
1 of 2 checks passed
@cosmic-vagabond cosmic-vagabond deleted the decom branch October 24, 2024 02:18
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