Skip to content

fix: min collateral out on forceFreeFunds - #3

Merged
johnnyonline merged 3 commits into
masterfrom
add-min-coll-out
Nov 12, 2026
Merged

johnnyonline merged 3 commits into
masterfrom
add-min-coll-out

Conversation

@johnnyonline

@johnnyonline johnnyonline commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Context: a Lender redemption walks at most 1,000 Troves and only auctions what it freed, but still burns all the shares, so the rest is lost

Added:

  • forceFreeFunds / forceFreeFundsInKind: _minOut --> _minBorrowOut, plus a new _minCollateralOut. If an auction was kicked, require its initial_amount >= _minCollateralOut
  • ExitRouter.redeem: new _minCollateralOut[] (one per strategy). It caches each strategy's DutchDesk nonce before the redeem, then requires any kicked auction's initial_amount >= its min

@johnnyonline
johnnyonline merged commit 96389e2 into master Nov 12, 2026
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.

2 participants