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(EIP2612): add permitAndDepositToAndDelegate #249

Merged
merged 5 commits into from
Nov 2, 2021

Conversation

PierrickGT
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Nov 1, 2021

uint8 v;
bytes32 r;
bytes32 s;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

DRY

Just make a 'Signature' struct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done: 1bbaf51

bytes32 _r,
bytes32 _s,
PermitSignature calldata _permitSignature,
DelegateSignature calldata _delegateSignature,
address _prizePool,
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems to me both the _token and _ticket can be pulled from the PrizePool itself. It would add a few thousand gas, but make it a much simpler interface

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done: 769cfda

@PierrickGT PierrickGT merged commit f233c6f into master Nov 2, 2021
@PierrickGT PierrickGT deleted the pool-1824-add-deposittoanddelegate-to branch November 2, 2021 16:49
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