Skip to content

Commit

Permalink
adjust convertToAssets
Browse files Browse the repository at this point in the history
  • Loading branch information
danoctavian committed Oct 22, 2024
1 parent 7f4c1a6 commit b1a15cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ynEIGEN/ynEigen.sol
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ contract ynEigen is IynEigen, ynBase, ReentrancyGuardUpgradeable, IynEigenEvents
}

function previewRedeem(uint256 shares) external view returns (uint256) {
return convertToAssets(IERC20(address(0)), shares);
return _convertToAssets(shares, Math.Rounding.Floor);
}

function convertToAssets(IERC20 asset, uint256 shares) public view returns (uint256) {
Expand Down

0 comments on commit b1a15cf

Please sign in to comment.