-
Notifications
You must be signed in to change notification settings - Fork 21
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
Update release #445
base: master
Are you sure you want to change the base?
Update release #445
Conversation
* add revenue share to rewards collector * fmt * remove v2.0 migration test * update types * improve pop_array methods * remove estimate exact out for reward amounts * improve tests for rewards collector * small tidy * safety fund and revenue share use same denom * fix integration test * update schema * generate types * update deploy scripts * make distribute method configurable * tidy comments * review comments * fix ibc integration test * update types and schema * enforce rc config cannot have fee_collector_denom the same as other denoms
… 2.1.0 -> 2.1.1) (#208) * add revenue share to rewards collector * fmt * remove v2.0 migration test * update types * improve pop_array methods * remove estimate exact out for reward amounts * improve tests for rewards collector * small tidy * safety fund and revenue share use same denom * fix integration test * update schema * generate types * update deploy scripts * make distribute method configurable * tidy comments * review comments * fix ibc integration test * update types and schema * enforce rc config cannot have fee_collector_denom the same as other denoms * add neutron migration * fix migration tests for neutron rc * migration for address provider * update schema * add osmosis RC migration * fix old migration test * fix old migration test * clear old state on migration * fmt
@@ -37,6 +37,10 @@ pub enum MarsAddressType { | |||
Swapper, | |||
/// Astroport incentives contract | |||
AstroportIncentives, | |||
/// Perps contract | |||
Perps, |
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.
To be remove
return Err(ContractError::SlippageLimitExceeded { | ||
denom_in: asset_in_denom, | ||
denom_out: asset_out_denom, | ||
min_receive_minumum: min_receive_lower_limit, |
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.
typo min_receive_minumum
If we don't fix, there are 3 guys in the line waiting to fix it :D
} | ||
|
||
impl Config { | ||
pub fn validate(&self) -> Result<(), ValidationError> { | ||
decimal_param_le_one(self.safety_tax_rate, "safety_tax_rate")?; | ||
let total_tax_rate = self.safety_tax_rate + self.revenue_share_tax_rate; | ||
decimal_param_le_one(total_tax_rate, "total_tax_rate")?; |
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.
I just notice that would be nice to have validation if sum of the tax rates for 3 bucket is 100%
No description provided.