-
Notifications
You must be signed in to change notification settings - Fork 12
feat(validation_logic): disable auto set asset as collateral #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…eralization - Enhance protocol security and user experience by requiring explicit collateral activation - Users must now manually call set_user_use_reserve_as_collateral to enable collateral - Eliminate potential state inconsistencies and improve protocol predictability - Update all related test cases to reflect new manual collateral activation behavior - Provide users with full control over their collateral settings This improvement: - Reduces protocol complexity and potential edge cases - Improves user control and account state management - Enhances protocol reliability and safety - Slightly increases user operation steps but greatly improves protocol predictability Files modified: - sources/aave-logic/validation_logic.move: Core logic improvement - tests/aave-logic/*.move: Test case adaptations for new behavior - tests/aave-pool/*.move: Pool-related test updates - tests/aave-periphery/*.move: Periphery test updates Breaking change: Users must now explicitly enable collateral after supply/transfer/liquidation operations
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #40 +/- ##
==========================================
- Coverage 97.08% 96.89% -0.19%
==========================================
Files 16 16
Lines 514 515 +1
==========================================
Hits 499 499
- Misses 15 16 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@matchv Please fix the typescript int. test too +rebase to get rid of hte npm failed audits. |
3e5e8a6 to
7df7baa
Compare
…eral activation - Update all TypeScript integration tests to manually call setUserUseReserveAsCollateral - Ensure proper collateral setup before borrow, liquidation, and withdraw operations - Fix test failures caused by disabled auto-collateralization feature - Maintain test coverage while adapting to new security improvements Test files updated: - borrow.spec.ts: Add manual collateral activation before borrow operations - liquidation.spec.ts: Ensure collateral is properly set for liquidation scenarios - liquidation-underlying.spec.ts: Fix underlying asset liquidation tests - withdraw.spec.ts: Add collateral setup for withdrawal operations - repay.spec.ts: Update repayment test collateral handling - repay-atoken.spec.ts: Fix aToken repayment test collateral setup
- Update @eslint/plugin-kit from <0.3.4 to >=0.3.4 to fix Regular Expression Denial of Service vulnerability - Add security override in pnpm-workspace.yaml to enforce minimum secure version - Update pnpm-lock.yaml with patched dependency versions - Fix GitHub CI pipeline failure caused by security audit Security fix: - Addresses GHSA-xffm-g5w8-qvg7 vulnerability in ConfigCommentParser - Prevents potential ReDoS attacks through malicious regex patterns - Ensures development environment security compliance Files modified: - pnpm-workspace.yaml: Add security override for @eslint/plugin-kit - pnpm-lock.yaml: Update dependency lock file with secure versions This fix resolves the CI pipeline failure and ensures all dependencies meet security requirements.
a802487 to
f4b4285
Compare
The purpose is to mitigate griefing and/or DOS attacks.
Files modified:
Breaking change: Users must now explicitly enable collateral after supply/transfer/liquidation operations