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

Magnet release 0.7.1 #120

Merged
merged 32 commits into from
Jul 10, 2024
Merged

Magnet release 0.7.1 #120

merged 32 commits into from
Jul 10, 2024

Conversation

Acaishiba
Copy link
Contributor

Update to 0.7.1

toints and others added 30 commits June 14, 2024 15:51
…istrative Interfaces

1. Change the parameters from #[pallet::constant] to #[pallet::storage]

2. Add the functionality to initialize parameters in GenesisConfig

3. Add configuration interfaces:

```
    set_system_ratio
    set_treasury_ratio
    set_operation_ratio
    set_min_liquidation_threshold
    set_profit_distribution_cycle
```

4. Add the ensure_root_or_admin function to check if the caller has sufficient permissions
perf: add configuration parameters and administrative interface
- Added boundary checks for the following parameters:
  - SystemRatio, TreasuryRatio, and OperationRatio: Ensure the sum is <= 100%.
  - MinLiquidationThreshold: Ensure it is greater than ExistentialDeposit.
  - ProfitDistributionCycle: Ensure it is greater than 1.
Fixed: Add boundary checks for ratio and threshold parameters
fixed: fixed MinLiquidationThreshold must be greater than ExistentialDeposit error in mock
fixed: fixed ratio sum > 100%
Merge pull request #98 from Magport/Magnet-release-0.7.0
sulijia and others added 2 commits July 5, 2024 17:36
perf: Modifications to Configuration Parameters and Addition of Administrative Interfaces
@Acaishiba Acaishiba requested review from sulijia and wd30130 July 10, 2024 04:31
@sulijia sulijia merged commit 009b358 into main Jul 10, 2024
2 checks passed
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.

4 participants