Skip to content

DCA sell function#342

Open
Divljo31 wants to merge 2 commits into
masterfrom
feat/dca-sell
Open

DCA sell function#342
Divljo31 wants to merge 2 commits into
masterfrom
feat/dca-sell

Conversation

@Divljo31

Copy link
Copy Markdown
Member

Large sell-intent TWAP orders stall with DCA.TradeLimitReached: the
per-trade min_amount_out floor is frozen at setup, then the order's own
price impact breaches it and every slice fails until the schedule
terminates.

This adds a DcaSell order type that builds the sell as a DCA Sell with
min_amount_out = 0 — the same shape the DCA product has shipped for years.
Per-trade protection then comes from the pallet's adaptive oracle slippage
limit (recomputed each block from the schedule's slippage), which tracks
the market instead of a stale floor.

@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 87580ad

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@galacticcouncil/sdk-next Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Divljo31
Divljo31 temporarily deployed to upgrade-ui-master July 17, 2026 08:52 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown

🧚 Live preview: galacticcouncil/hydration-ui#3968

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.

1 participant