From 987280beadb3be212cb1d7ecb335886813868f99 Mon Sep 17 00:00:00 2001 From: Faisal Usmani Date: Mon, 20 Jul 2026 14:38:59 -0600 Subject: [PATCH] N-01: Dead Code Signed-off-by: Faisal Usmani --- contracts/libraries/HyperCoreLib.sol | 9 --------- 1 file changed, 9 deletions(-) diff --git a/contracts/libraries/HyperCoreLib.sol b/contracts/libraries/HyperCoreLib.sol index 4d7fea021..10a4923e5 100644 --- a/contracts/libraries/HyperCoreLib.sol +++ b/contracts/libraries/HyperCoreLib.sol @@ -382,15 +382,6 @@ library HyperCoreLib { return address(uint160(BASE_ASSET_BRIDGE_ADDRESS_UINT256 + erc20CoreIndex)); } - /** - * @notice Converts an asset bridge address to a core index id - * @param assetBridgeAddress The asset bridge address to convert - * @return erc20CoreIndex The core token index id - */ - function toTokenId(address assetBridgeAddress) internal pure returns (uint64) { - return SafeCast.toUint64(uint160(assetBridgeAddress) - BASE_ASSET_BRIDGE_ADDRESS_UINT256); - } - /** * @notice Returns an amount to send on HyperEVM to receive AT LEAST the minimumCoreReceiveAmount on HyperCore * @param minimumCoreReceiveAmount The minimum amount desired to receive on HyperCore