interface I_P1Funder {

    /**
     * @notice Calculates the signed funding amount that has accumulated over a period of time.
     *
     * @param  timeDelta  Number of seconds over which to calculate the accumulated funding amount.
     * @return            True if the funding rate is positive, and false otherwise.
     * @return            The funding amount as a unitless rate, represented as a fixed-point number
     *                    with 18 decimals.
     */
    function getFunding(
        uint256 timeDelta
    )
        external
        view
        returns (bool, uint256);
}
/**
 * @title I_P1Funder
 * @author dYdX
 *
 * @notice Interface for an oracle providing the funding rate for a perpetual market.
 */
function getFunding(
        uint256 timeDelta
    )
        external
        view
        returns (bool, uint256);
/**
 * @notice Calculates the signed funding amount that has accumulated over a period of time.
 *
 * @param  timeDelta  Number of seconds over which to calculate the accumulated funding amount.
 * @return            True if the funding rate is positive, and false otherwise.
 * @return            The funding amount as a unitless rate, represented as a fixed-point number
 *                    with 18 decimals.
 */