-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
governance: config_v010.governance, | ||
controller: config_v010.controller, | ||
oracle: config_v010.oracle, | ||
operator, |
There was a problem hiding this comment.
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> { |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing the SetAssetRewardDistribution
msg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM great work!
This PR adds an
operator
to the config, that is able to executeSetAssetRewardDistribution
together with the governance address.