Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions contracts/libraries/HyperCoreLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading