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

Reduce vulnerabilities with Loans contract init race conditions #34

Merged
merged 1 commit into from
Jul 26, 2019

Conversation

matthewjablack
Copy link
Contributor

Description

This PR reduces vulnerabilities with Loans contract init race conditions.

setSales is used to set the Loans contract address after deployment. This PR this can only be called by the original deployer, and can only be called once.

Similar to: #30

Submission Checklist 📝

  • Add check to ensure setSales can only be called by deployer and only called once
  • Add tests to ensure setSales can't be called twice.

@matthewjablack matthewjablack merged commit c095946 into master Jul 26, 2019
@matthewjablack matthewjablack deleted the 6.22-loans-init-race-condition branch July 26, 2019 20:42
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.

1 participant