Skip to content

Commit 6e5a295

Browse files
committed
fix: check shares are not zero when creating a thaw request (TRST-R14)
1 parent 151e63a commit 6e5a295

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/horizon/contracts/staking/HorizonStaking.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,7 @@ contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain {
10151015
uint64 _thawingUntil,
10161016
uint256 _thawingNonce
10171017
) private returns (bytes32) {
1018+
require(_shares != 0, HorizonStakingInvalidZeroShares());
10181019
LinkedList.List storage thawRequestList = _getThawRequestList(
10191020
_requestType,
10201021
_serviceProvider,

0 commit comments

Comments
 (0)