Name a constant
This commit is contained in:
		@@ -18,6 +18,8 @@ import {constants} from '../utils/constants';
 | 
			
		||||
import {OrderFilledCancelledLazyStore} from '../stores/order_filled_cancelled_lazy_store';
 | 
			
		||||
import {BalanceAndProxyAllowanceLazyStore} from '../stores/balance_proxy_allowance_lazy_store';
 | 
			
		||||
 | 
			
		||||
const ACCEPTABLE_RELATIVE_ROUNDING_ERROR = 0.0001;
 | 
			
		||||
 | 
			
		||||
export class OrderStateUtils {
 | 
			
		||||
    private balanceAndProxyAllowanceLazyStore: BalanceAndProxyAllowanceLazyStore;
 | 
			
		||||
    private orderFilledCancelledLazyStore: OrderFilledCancelledLazyStore;
 | 
			
		||||
@@ -118,7 +120,7 @@ export class OrderStateUtils {
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        const minFillableTakerTokenAmountWithinNoRoundingErrorRange = signedOrder.takerTokenAmount
 | 
			
		||||
                                                                           .times(1000)
 | 
			
		||||
                                                                      .dividedBy(ACCEPTABLE_RELATIVE_ROUNDING_ERROR)
 | 
			
		||||
                                                                      .dividedBy(signedOrder.makerTokenAmount);
 | 
			
		||||
        if (orderRelevantState.remainingFillableTakerTokenAmount
 | 
			
		||||
            .lessThan(minFillableTakerTokenAmountWithinNoRoundingErrorRange)) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user