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

add device nft #12

Merged
merged 2 commits into from
Jul 18, 2024
Merged

add device nft #12

merged 2 commits into from
Jul 18, 2024

Conversation

ququzone
Copy link
Collaborator

No description provided.

@@ -356,7 +356,7 @@ contract Voter is IVoter, ERC2771Context, ReentrancyGuard {
function claimRewards(address[] memory _gauges) external {
uint256 _length = _gauges.length;
for (uint256 i = 0; i < _length; i++) {
IGauge(_gauges[i]).claimReward(_msgSender());
IRewardGauge(_gauges[i]).claimReward(_msgSender());
Copy link
Contributor

Choose a reason for hiding this comment

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

shall we move this function to a helper contract?

  1. we can delete the restriction in claimReward, which only allowed account owner and voter to claim reward
  2. keep voter contract simple

contracts/gauges/DeviceGauge.sol Show resolved Hide resolved
contracts/gauges/DeviceGauge.sol Show resolved Hide resolved
contracts/interfaces/IRewardGauge.sol Outdated Show resolved Hide resolved
@ququzone ququzone merged commit cb3de71 into main Jul 18, 2024
2 of 3 checks passed
@ququzone ququzone deleted the device-gauge branch July 18, 2024 03:45
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