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

feat: operator #2

Merged
merged 3 commits into from
Mar 28, 2024
Merged

feat: operator #2

merged 3 commits into from
Mar 28, 2024

Conversation

kerber0x
Copy link
Contributor

This PR adds an operator to the config, that is able to execute SetAssetRewardDistribution together with the governance address.

governance: config_v010.governance,
controller: config_v010.controller,
oracle: config_v010.oracle,
operator,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding the operator to the new config

}

#[inline]
pub fn asset_distribution_1() -> Vec<AssetDistribution> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

helpers for the new tests

@@ -574,3 +579,74 @@ fn claim_rewards_after_rebalancing_emissions() {
let rewards = query_rewards(deps.as_ref(), "user2", "bWHALE");
assert_eq!(rewards.rewards, Uint128::new(500000));
}

#[test]
fn test_set_asset_reward_distribution() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing the SetAssetRewardDistribution msg

Copy link
Contributor

@0xFable 0xFable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM great work!

@kerber0x kerber0x merged commit dcde68a into main Mar 28, 2024
2 checks passed
@kerber0x kerber0x deleted the feat/operator branch March 28, 2024 16:15
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