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: rolling dca #983

Merged
merged 5 commits into from
Jan 20, 2025
Merged

feat: rolling dca #983

merged 5 commits into from
Jan 20, 2025

Conversation

mrq1911
Copy link
Member

@mrq1911 mrq1911 commented Jan 7, 2025

No description provided.

@mrq1911 mrq1911 requested review from jak-pan and dmoka January 7, 2025 13:00
Copy link

github-actions bot commented Jan 7, 2025

Crate versions that have not been updated:

  • runtime-integration-tests: v1.30.1
  • pallet-dca: v1.8.0

Runtime version has not been increased.

pallets/dca/src/lib.rs Show resolved Hide resolved
pallets/dca/src/types.rs Show resolved Hide resolved
@mrq1911 mrq1911 marked this pull request as ready for review January 8, 2025 17:02
@@ -914,6 +923,10 @@ impl<T: Config> Pallet<T> {
schedule: &Schedule<T::AccountId, T::AssetId, BlockNumberFor<T>>,
amount_to_unreserve: Balance,
) -> DispatchResult {
if schedule.is_rolling() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would also adjust the README, describing this rolling kind of schedules.

Copy link
Contributor

@dmoka dmoka left a comment

Choose a reason for hiding this comment

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

Please adjsut README first, apart from that LGTM, good to go.

# Conflicts:
#	Cargo.lock
#	integration-tests/Cargo.toml
#	pallets/dca/Cargo.toml
#	runtime/hydradx/Cargo.toml
#	runtime/hydradx/src/lib.rs
@mrq1911 mrq1911 merged commit 9ff87be into master Jan 20, 2025
4 of 5 checks passed
@vgantchev vgantchev deleted the rolling_dca branch January 23, 2025 10:59
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