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

Disable pool token transfers #32

Merged
merged 2 commits into from
Sep 28, 2022
Merged

Disable pool token transfers #32

merged 2 commits into from
Sep 28, 2022

Conversation

ams9198
Copy link
Contributor

@ams9198 ams9198 commented Sep 28, 2022

No description provided.

@ams9198 ams9198 marked this pull request as ready for review September 28, 2022 00:55
venables
venables previously approved these changes Sep 28, 2022
to == address(0) || from == address(0),
"Pool: transfers disabled"
);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this should call into super, though I'm not sure it matters for this implementation? https://docs.openzeppelin.com/contracts/4.x/extending-contracts#using-hooks

Always call the parent’s hook in your override using super. This will make sure all hooks in the inheritance tree are called: contracts like ERC20Pausable rely on this behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Chatted IRL, going to update this to call super in case we inherit a different ERC20 implementation in the future that has hook functionality.

venables
venables previously approved these changes Sep 28, 2022
@ams9198 ams9198 merged commit 98d5777 into circlefin:master Sep 28, 2022
@ams9198 ams9198 deleted the disableTransfers branch September 28, 2022 17:16
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.

3 participants