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

Vulnerability fix #24

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Vulnerability fix #24

merged 1 commit into from
Jul 25, 2024

Conversation

0xjuaan
Copy link
Contributor

@0xjuaan 0xjuaan commented Jul 25, 2024

Fixed the reentrancy vulnerability described in #23

Fixed by setting loans[_loanId].borrower to address(0) before transferring collateral to the lender.

Fixed the vulnerability described in Polymarket#23

Fixed by setting `loans[_loanId].borrower` to `address(0)` before transferring collateral to the lender.
@mshrieve mshrieve merged commit 6037f0e into Polymarket:main Jul 25, 2024
1 check passed
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