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

Fixes Issue #138 - Potential token transfer from unrelated account #139

Merged
merged 1 commit into from
Sep 4, 2022

Conversation

heyaibi
Copy link
Contributor

@heyaibi heyaibi commented Sep 3, 2022

  • Refactored the function addReassurance on the CoverReassurance contract to pull tokens from msg.sender instead of an arbitrary account.
  • Refactored the addCoverInternal function to pull tokens the Cover contract before calling addReassurance
  • Fixed failing tests

- Refactored the function `addReassurance` on the CoverReassurance contract to pull tokens from `msg.sender` instead of an arbitrary account.
- Refactored the `addCoverInternal` function to pull tokens the Cover contract before calling `addReassurance`
- Fixed failing tests
@heyaibi heyaibi merged commit 4392243 into rc2/audit-complete Sep 4, 2022
@heyaibi heyaibi deleted the fix/add-reassurance-front-run-attack branch September 4, 2022 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OZ] M-02 Potential token transfer from unrelated account
2 participants