```\nFile: src\Tranche.sol\n    function redeemWithYT(address from, address to, uint256 pyAmount) external nonReentrant returns (uint256) {\n// rest of code\n        accruedInTarget += _computeAccruedInterestInTarget(\n            _gscales.maxscale,\n            _lscale,\n// rest of code\n            _yt.balanceOf(from)\n        );\n..\n        uint256 sharesRedeemed = pyAmount.divWadDown(_gscales.maxscale);\n// rest of code\n        _target.safeTransfer(address(adapter), sharesRedeemed + accruedInTarget);\n        (uint256 amountWithdrawn, ) = adapter.prefundedRedeem(to);\n// rest of code\n        return amountWithdrawn;\n    }\n```\n