Skip to content

Support ERC20 in RewardDistributor - #44

Merged
gzeoneth merged 10 commits into
mainfrom
erc20-rd
Jun 17, 2026
Merged

Support ERC20 in RewardDistributor#44
gzeoneth merged 10 commits into
mainfrom
erc20-rd

Conversation

@godzillaba

Copy link
Copy Markdown
Contributor

No description provided.

@godzillaba
godzillaba requested a review from gzeoneth March 21, 2025 19:33
@godzillaba
godzillaba marked this pull request as ready for review March 21, 2025 19:34

@gzeoneth gzeoneth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, I think we should add an onlyOwner rescue function that allow arbitrary call (except to the token contract, or send eth in the token=0 case) to save fund that are mistakenly sent to this contract, as I can see that might happen due to people not realizing each reward distributor only accept a specific token.

Comment thread src/RewardDistributor.sol
@godzillaba
godzillaba requested a review from gzeoneth April 18, 2025 18:31
@gzeoneth gzeoneth closed this Jun 16, 2026
@godzillaba godzillaba reopened this Jun 16, 2026
@godzillaba godzillaba closed this Jun 16, 2026
@godzillaba godzillaba reopened this Jun 16, 2026
@godzillaba

Copy link
Copy Markdown
Contributor Author

#58 covers the rescue comment

@gzeoneth gzeoneth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@gzeoneth
gzeoneth merged commit 7895784 into main Jun 17, 2026
13 of 14 checks passed
@gzeoneth
gzeoneth deleted the erc20-rd branch June 17, 2026 11:03
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.

2 participants