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

[NO-2648] [L-2 Jan Audit] Check return value of transferFrom #503

Merged
merged 4 commits into from Jan 25, 2023

Conversation

amiecorso
Copy link
Collaborator

@amiecorso amiecorso commented Jan 24, 2023

See Jira ticket, which also links to audit report, for more details.

Checks the return value of transferFrom since unsafe implementations of ERC20 sometimes return false instead of reverting if a transfer fails. In this case, we should revert.

@swarmia
Copy link

swarmia bot commented Jan 24, 2023

@@ -1119,6 +1119,7 @@ contract Market is
from: 0,
to: countOfRemovalsAllocated
});
bool successfulTransfer;
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

IE - isTransferSuccessful

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

haha I actually thought about this while I was naming the variable, but apparently not that hard. supported nit

@amiecorso amiecorso merged commit 6a74176 into master Jan 25, 2023
@amiecorso amiecorso deleted the amie-check-transferfrom-return branch January 25, 2023 00:15
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.

None yet

2 participants