How to use the @0x/order-utils.orderCalculationUtils.willOrderExpire function in @0x/order-utils

To help you get started, we’ve selected a few @0x/order-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 0xProject / 0x-monorepo / packages / asset-swapper / src / utils / order_prune_utils.ts View on Github external
const result = _.filter(signedOrders, order => {
            return (
                orderCalculationUtils.isOpenOrder(order) &&
                !orderCalculationUtils.willOrderExpire(order, expiryBufferMs / constants.ONE_SECOND_MS) &&
                ((permittedOrderFeeTypes.has(OrderPrunerPermittedFeeTypes.NoFees) &&
                    order.takerFee.eq(constants.ZERO_AMOUNT)) ||
                    (permittedOrderFeeTypes.has(OrderPrunerPermittedFeeTypes.TakerDenominatedTakerFee) &&
                        utils.isOrderTakerFeePayableWithTakerAsset(order)) ||
                    (permittedOrderFeeTypes.has(OrderPrunerPermittedFeeTypes.MakerDenominatedTakerFee) &&
                        utils.isOrderTakerFeePayableWithMakerAsset(order)))
            );
        });
        return result;
github 0xProject / 0x-monorepo / packages / asset-buyer / src / utils / order_provider_response_processor.ts View on Github external
const result = _.filter(orders, order => {
        return (
            orderCalculationUtils.isOpenOrder(order) &&
            !orderCalculationUtils.willOrderExpire(order, expiryBufferSeconds)
        );
    });
    return result;
github 0xProject / 0x-monorepo / packages / asset-swapper / src / utils / order_provider_response_processor.ts View on Github external
const result = _.filter(orders, order => {
        return (
            orderCalculationUtils.isOpenOrder(order) &&
            !orderCalculationUtils.willOrderExpire(order, expiryBufferMs / constants.ONE_SECOND_MS)
        );
    });
    return result;
github 0xProject / 0x-monorepo / packages / asset-buyer / src / utils / order_provider_response_processor.ts View on Github external
const result = _.filter(orders, order => {
        return (
            orderCalculationUtils.isOpenOrder(order) &&
            !orderCalculationUtils.willOrderExpire(order, expiryBufferMs / constants.ONE_SECOND_MS)
        );
    });
    return result;