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

Audit - Medium 01 #4

Open
Kogaroshi opened this issue Mar 31, 2023 · 0 comments
Open

Audit - Medium 01 #4

Kogaroshi opened this issue Mar 31, 2023 · 0 comments

Comments

@Kogaroshi
Copy link
Contributor

The current way the rented amount is updated during liquidation introduces a DOS type of attack.
Since this method frees all stkAAVE held by the Pod, we want to set back to 0 the rented amount by the Pod instead.
In the same logic, in the freeStkAave() method, in the case were all the Pod balance must be pulled, we also want to add an extra check to reset the Pod's rented amount back to 0.

See fix : #3

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

No branches or pull requests

1 participant