PendlePrincipalToken

YT implements core logic and PT is controlled by YT.

burnByYT

burnByYT function allows YT to burn certain PT of user.
/// --- pendle-core-v2-public/contracts/core/YieldContracts/PendlePrincipalToken.sol --- /** * @dev only callable by the YT correspond to this PT */ function burnByYT(address user, uint256 amount) external onlyYT { _burn(user, amount); }

mintByYT

burnByYT function allows YT to mint certain PT to user.
/// --- pendle-core-v2-public/contracts/core/YieldContracts/PendlePrincipalToken.sol --- /** * @dev only callable by the YT correspond to this PT */ function mintByYT(address user, uint256 amount) external onlyYT { _mint(user, amount); }