Skip to content

Commit

Permalink
Add check for failed kyc on transfer staked
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptITAustria committed Jan 3, 2025
1 parent 7096826 commit 160791b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -959,10 +959,12 @@ contract PoolFactory3 is Initializable, AccessControlEnumerableUpgradeable {
uint256 amount
) external {

require(msg.sender == nodeLicenseAddress, "41");

require(poolsCreatedViaFactory[pool], "23");

require(!failedKyc[from] && !failedKyc[to], "38");

require(msg.sender == nodeLicenseAddress, "41");

StakingPool3 stakingPool = StakingPool3(pool);
stakingPool.transferStakedKeys(from, to, amount);

Expand Down

0 comments on commit 160791b

Please sign in to comment.