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

Update release #445

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Update release #445

wants to merge 5 commits into from

Conversation

markonmars
Copy link
Collaborator

@markonmars markonmars commented Feb 20, 2025

No description provided.

markonmars and others added 4 commits February 20, 2025 19:45
* 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,
Copy link
Collaborator

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,
Copy link
Collaborator

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")?;
Copy link
Collaborator

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%

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