Skip to content

Settle auctions based on remaining account value - #234

Merged
Thomas-Smets merged 1 commit into
devfrom
update/settle-auction-account-value
Jun 15, 2026
Merged

Thomas-Smets merged 1 commit into
devfrom
update/settle-auction-account-value

Conversation

@Thomas-Smets

Copy link
Copy Markdown
Member
  • _settleAuction (LiquidatorL1/L2) decides "nothing left to sell" from the Account's remaining total value (getAccountValue) instead of collateral value, and transfers the Account with any remaining assets to the Account recipient. Shared _settleUnhappyFlow helper added.
  • Liquidator fuzz tests brought to full convention: dedicated SettleAuction and SettleUnhappyFlow files, filled CalculateBidPrice, added post-cutoff getBidPrice revert, slimmed EndAuction to the wrapper surface, deduplicated the initiateLiquidation helper, plus file/test naming and Given/When/Then cleanups.

@Thomas-Smets
Thomas-Smets requested a review from j-vp June 15, 2026 09:28

@j-vp j-vp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

gtg

@Thomas-Smets
Thomas-Smets merged commit 24318d9 into dev Jun 15, 2026
1 check passed
@Thomas-Smets
Thomas-Smets deleted the update/settle-auction-account-value branch June 15, 2026 10:13
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