Skip to content

Conversation

@rashtrakoff
Copy link
Collaborator

This will be useful for integration of DYTM into Morpho Vault V2.

rashtrakoff and others added 30 commits December 25, 2025 23:30
… tests

- Added error for in-kind withdrawals during liquidation in IOffice.sol.
- Updated CollateralLiquidationParams struct to include inKind boolean.
- Modified liquidation logic in CommonFunctions to handle in-kind withdrawals when liquidity is insufficient.
- Adjusted tests in Office_liquidate to cover scenarios for in-kind liquidation, including partial and complete liquidations with bad debt.
- Updated expected asset repayment calculations to account for liquidation bonuses.
- Enhanced test coverage for various liquidation scenarios, ensuring correct behavior when liquidity is insufficient.
…d contracts

- Refactor liquidation bonus percentage handling in SimpleMarketConfig to support per-collateral and debt asset relationships.
- Modify IMarketConfig interface to include parameters for account, collateral and debt asset in liquidation bonus calculation.
- Update Office contract to utilize new liquidation bonus logic during liquidation processes.
- Enhance test cases in Office_liquidate to validate new liquidation bonus calculations and ensure correct asset repayments.
- Remove deprecated liquidation bonus percentage parameter from market creation and migration functions.
- Only allows approvals to a user account (basically addresses).
- Anyone can invoke this function on behalf of an account but the allowance will only be considered based on the owner of the account. The allowances set by non-owners will be active if/when they own the account.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Refactored tests for Registry_transferFrom to clarify allowance behavior and error handling

- Updated test descriptions to specify that allowance amounts should not change when transferring tokens.
- Clarified expected outcomes for various scenarios, including transfers with zero amounts and insufficient balances.
- Ensured consistency in error messages related to insufficient balance and allowance.
- Enhanced readability and maintainability of test cases by organizing them logically.
…egarding delegation call behavior and transient storage implications
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
rashtrakoff and others added 30 commits January 5, 2026 12:48
Interest Accrual related fixes [Additional Fixes]
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…gator

`_getQuote` overflow audit issue fix
…teral and liquidate functions for execution control
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Allow setting operators by non-account owners.
…check-fix

Check that caller is delegatee during `transferFrom` call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants