Skip to content
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

ON_HOLD: position can not be liquidated #7

Closed
wants to merge 1 commit into from

Conversation

zhoujia6139
Copy link
Contributor

@zhoujia6139 zhoujia6139 commented Aug 24, 2022

Security Checklist

  • 1. Re-Entrancy
  • 2. Arithmetic Over/Under Flows
  • 3. Unexpected Ether
  • 4. Delegatecall
  • 5. Default Visibilities
  • 6. Entropy Illusion
  • 7. External Contract Referencing
  • 8. Short Address/Parameter Attack (off chain)
  • 9. Unchecked CALL Return Values
  • 10. Race Conditions / Front Running
  • 11. Denial Of Service (DOS)
  • 12. Block Timestamp Manipulation
  • 13. Constructors with Care
  • 14. Uninitialized Storage Pointers
  • 15. Floating Points and Precision
  • 16. Tx.Origin Authentication
  • 17. Address.isContract Re-Entrancy via Constructor

⚠️ NOTES ⚠️

Make sure to think about each of these exploits in this PR.

.scaledBalanceOf(params.user);
if (pTokenAmount > pTokenBalance) {
vars.liquidationProtocolFeeAmount = pTokenBalance.rayMul(index);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

so we are saying:


a.rayMul(x).rayDiv(x) > a

is possible right

Copy link
Contributor Author

@zhoujia6139 zhoujia6139 Aug 26, 2022

Choose a reason for hiding this comment

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

a.rayMul(x).rayDiv(x) == a if x > 1

@GopherJ
Copy link
Contributor

GopherJ commented Sep 14, 2022

FYI: aave/aave-v3-core#709

@ivansolomonoff ivansolomonoff changed the title fix: position can not be liquidated ON_HOLD: position can not be liquidated Oct 4, 2022
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