-
Notifications
You must be signed in to change notification settings - Fork 5
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: setClaimRecipient
#99
base: v2
Are you sure you want to change the base?
Conversation
LCOV of commit
|
e635cb7
to
60b0d42
Compare
4c1d530
to
2c7cfc7
Compare
455c2f3
to
5d3aa3e
Compare
2c7cfc7
to
afbf5fc
Compare
src/WrappedMToken.sol
Outdated
uint256(_getFromRegistrar(keccak256(abi.encode(CLAIM_OVERRIDE_RECIPIENT_KEY_PREFIX, account_)))) | ||
) | ||
); | ||
(_accounts[account_].hasClaimRecipient) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider adding this logic here [suggestion, can lead to cleaner message for user]
address claimOverrideRecipient_ = claimRecipientFor(account_);
address claimRecipient_ = claimOverrideRecipient_ == address(0) ? account_ : claimOverrideRecipient_;```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, let's confirm the order once again whether the governance has first priority, then owner of account, then default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Governance does not have first priority because:
- it would allow governance to retroactively steal unclaimed yield
- it costs more gas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, let's confirm order of setting claimant with product/Greg once again
430773c
to
d3acb5a
Compare
5d3aa3e
to
3e9989e
Compare
d3acb5a
to
7d256ec
Compare
3e9989e
to
9946c9f
Compare
7d256ec
to
8d7134c
Compare
ce4261b
to
07f4299
Compare
8d7134c
to
2c9338d
Compare
07f4299
to
d25d55a
Compare
2c9338d
to
dfb97c4
Compare
d25d55a
to
448d79c
Compare
dfb97c4
to
72915e7
Compare
448d79c
to
0c2e70a
Compare
72915e7
to
d9b89fd
Compare
0c2e70a
to
af7448e
Compare
d9b89fd
to
c1d9903
Compare
99fe3ce
to
be37ff9
Compare
be37ff9
to
a044c21
Compare
No description provided.