Skip to content

rm transfer user#2

Merged
ksamarin90 merged 3 commits intomainfrom
feat/rm-transfer-user
Sep 19, 2025
Merged

rm transfer user#2
ksamarin90 merged 3 commits intomainfrom
feat/rm-transfer-user

Conversation

@ksamarin90
Copy link
Copy Markdown
Contributor

No description provided.

@ksamarin90 ksamarin90 requested a review from orlicekm September 18, 2025 12:25
@ksamarin90 ksamarin90 self-assigned this Sep 18, 2025
Comment thread src/YelayStaking.sol
* 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
Copy Markdown
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.

Comment thread src/YelayStaking.sol
/// @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
Copy Markdown
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
Copy Markdown

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

Comment thread deployment/mainnet.json Outdated
},
"YelayStaking": {
"implementation": "0x7fc74Dc0b8755f17BaFCaF92DfeD7Fd2cC5Cabf5",
"implementation": "0x3D79fBbF918327968e75dD0F5b1D25ac65c8dfA2",
Copy link
Copy Markdown

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

Comment thread src/interfaces/IsYLAY.sol
Copy link
Copy Markdown

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?

Comment thread src/sYLAY.sol
Copy link
Copy Markdown

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.

2 participants