Skip to content

Commit

Permalink
add correct negation
Browse files Browse the repository at this point in the history
  • Loading branch information
danoctavian committed Oct 22, 2024
1 parent b1a15cf commit 4199418
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 @@ -230,7 +230,7 @@ contract ynEigen is IynEigen, ynBase, ReentrancyGuardUpgradeable, IynEigenEvents
}

function convertToAssets(IERC20 asset, uint256 shares) public view returns (uint256) {
if (assetIsSupported(asset)) {
if (!assetIsSupported(asset)) {
revert UnsupportedAsset(asset);
}
return assetRegistry.convertFromUnitOfAccount(asset, _convertToAssets(shares, Math.Rounding.Floor));
Expand Down

0 comments on commit 4199418

Please sign in to comment.