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

feat: make Transfer.sol a library and improve usage #649

Merged
merged 8 commits into from
Aug 27, 2024

Conversation

ilpepepig
Copy link

No description provided.

@@ -275,13 +280,13 @@ contract DonationVotingOffchain is CoreBaseStrategy, RecipientsExtension {
if (tokens[i] == NATIVE) {
totalNativeAmount += _amounts[i];
} else {
SafeTransferLib.safeTransferFrom(tokens[i], _sender, address(this), _amounts[i]);
tokens[i].safeTransferFrom(_sender, address(this), _amounts[i]);

Choose a reason for hiding this comment

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

Same q here, and we can remove the SafeTransferLib

@ilpepepig ilpepepig requested a review from 0xOneTony August 26, 2024 13:09
@0xOneTony 0xOneTony marked this pull request as ready for review August 26, 2024 13:19
@0xOneTony 0xOneTony merged commit d4ab757 into v2.1 Aug 27, 2024
1 check passed
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.

4 participants