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

Switch saveApprove to safeIncreaseAllowance #220

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

asselstine
Copy link
Contributor

@asselstine asselstine commented Oct 14, 2021

@linear
Copy link

linear bot commented Oct 14, 2021

@PierrickGT PierrickGT self-assigned this Oct 14, 2021
@@ -59,7 +59,7 @@ contract EIP2612PermitAndDeposit {
address _to
) internal {
IERC20(_token).safeTransferFrom(_owner, address(this), _amount);
IERC20(_token).safeApprove(_prizePool, _amount);
IERC20(_token).safeIncreaseAllowance(_prizePool, _amount);
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 Author

Choose a reason for hiding this comment

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

If you look at the impl it appears to have the same effect

@asselstine
Copy link
Contributor Author

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