Skip to content

Conversation

@baroooo
Copy link

@baroooo baroooo commented Nov 18, 2025

fixes 6.10) swapCollateralForStable Event Indistinguishable From Liquidations by emitting a rebalance event

Copy link

@philbow61 philbow61 left a comment

Choose a reason for hiding this comment

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

LGTM

require(
totalBoldDeposits >= MIN_BOLD_AFTER_REBALANCE, "Total Bold deposits must be >= MIN_BOLD_AFTER_REBALANCE"
);
emit RebalanceExecuted(amountCollIn, amountStableOut);
Copy link

@philbow61 philbow61 Nov 19, 2025

Choose a reason for hiding this comment

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

nit: maybe we can rename from stable to debt here to be more consistent
🤔

Copy link
Author

Choose a reason for hiding this comment

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

I decided to keep it like this because calling Rebalance from stable to debt in a function that swaps collateral to stable did not feel right

@baroooo baroooo merged commit 2e56b66 into feat/mento-v3-dev Nov 20, 2025
7 checks passed
@baroooo baroooo deleted the chore/add-event-for-rebalances branch November 20, 2025 07:46
nvtaveras added a commit that referenced this pull request Nov 25, 2025
### Description

First iteration of fixes that came up as a result of the Chainsecurity audit. Some issues are still pending and will be fixed in a future PR.

List of fixes included:
- **5.1** - Batch Manager Is Not Deleted in kickFromBatch #20 
- **5.2** - Incorrect StabilityPool Interface #23 
- **5.3** - Rebalances Are Partially Allowed During Shutdown #24 
- **5.5** - Swapping Collateral Does Not Accrue Interest #19 
- **6.1** - Insufficient Check in SystemParams #25 
- **6.2** - LiquidityStrategy Cannot Be Changed mento-protocol/mento-core#642
- **6.5** - Missing Sanity Checks #26 
- **6.6** - Redistribution Penalty Must Be Smaller Than MCR #27 
- **6.8** - Whitepaper Deviations mento-protocol/whitepaper#3
- **6.9** - minDebt Bounds Do Not Allow Configuring Low-Value Currencies Correctly #28 
- **6.10** - swapCollateralForStable Event Indistinguishable From Liquidations #29
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