Skip to content

Conversation

@ksamarin90
Copy link
Contributor

No description provided.

@ksamarin90 ksamarin90 requested a review from orlicekm September 18, 2025 12:25
@ksamarin90 ksamarin90 self-assigned this Sep 18, 2025
* 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 {
Copy link
Contributor Author

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)");
Copy link
Contributor Author

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.

@orlicekm
Copy link

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 :)

},
"YelayStaking": {
"implementation": "0x7fc74Dc0b8755f17BaFCaF92DfeD7Fd2cC5Cabf5",
"implementation": "0x3D79fBbF918327968e75dD0F5b1D25ac65c8dfA2",

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

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?

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?

@ksamarin90 ksamarin90 merged commit f36bb98 into main Sep 19, 2025
2 checks passed
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.

3 participants