-
Notifications
You must be signed in to change notification settings - Fork 0
rm transfer user #2
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
Conversation
| * At unstake all sYLAY is burned. The maturing process of sYLAY restarts. | ||
| */ | ||
| contract YelayStaking is ReentrancyGuardUpgradeable, YelayOwnable, IYelayStaking, EIP712 { | ||
| contract YelayStaking is ReentrancyGuardUpgradeable, YelayOwnable, IYelayStaking { |
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.
Since EIP712 does not define any storage variables or storage gaps, it can be safely removed from the inheritance chain.
| /// @notice Account YLAY locked balance. subset of balances | ||
| mapping(address => uint256) public locked; | ||
|
|
||
| bytes32 private constant _TRANSFER_USER_TYPEHASH = keccak256("TransferUser(address from, uint256 deadline)"); |
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.
constant, not a storage - can be removed.
|
Overall, nice work! It seems like the implementation addreses are swapped. Other than that, I wrote a few suggestions to remove some redundant parts that appeared after the feature was removed :) |
deployment/mainnet.json
Outdated
| }, | ||
| "YelayStaking": { | ||
| "implementation": "0x7fc74Dc0b8755f17BaFCaF92DfeD7Fd2cC5Cabf5", | ||
| "implementation": "0x3D79fBbF918327968e75dD0F5b1D25ac65c8dfA2", |
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.
Addresses are swapped, this one is sYLAY, and sYLAYs one is YelayStaking
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.
Can UserTransferred be removed as well?
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.
Can _userExists function be removed as well?
No description provided.