diff options
author | Jacob Evans <jacob@dekz.net> | 2017-11-13 08:37:03 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2017-11-13 08:37:03 +0800 |
commit | 32246fd26bc71b09818491d513a380a8bd85fdec (patch) | |
tree | 5d5e3e3b7431be2d2758c61df260be2b0bed5627 | |
parent | 42e3ab91a794f61d65008d969b3d48080b5035d7 (diff) | |
download | dexon-sol-tools-32246fd26bc71b09818491d513a380a8bd85fdec.tar dexon-sol-tools-32246fd26bc71b09818491d513a380a8bd85fdec.tar.gz dexon-sol-tools-32246fd26bc71b09818491d513a380a8bd85fdec.tar.bz2 dexon-sol-tools-32246fd26bc71b09818491d513a380a8bd85fdec.tar.lz dexon-sol-tools-32246fd26bc71b09818491d513a380a8bd85fdec.tar.xz dexon-sol-tools-32246fd26bc71b09818491d513a380a8bd85fdec.tar.zst dexon-sol-tools-32246fd26bc71b09818491d513a380a8bd85fdec.zip |
remove comments
-rw-r--r-- | src/utils/order_state_utils.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/utils/order_state_utils.ts b/src/utils/order_state_utils.ts index 7c10a5480..36a4b68d6 100644 --- a/src/utils/order_state_utils.ts +++ b/src/utils/order_state_utils.ts @@ -65,12 +65,9 @@ export class OrderStateUtils { const totalMakerTokenAmount = signedOrder.makerTokenAmount; const totalTakerTokenAmount = signedOrder.takerTokenAmount; const remainingTakerTokenAmount = totalTakerTokenAmount.minus(unavailableTakerTokenAmount); - // 200 in order, 100 unavailable = 100 remaning, 0.5 remaining in taker proportion const remainingMakerTokenAmount = remainingTakerTokenAmount.times(totalMakerTokenAmount) .dividedToIntegerBy(totalTakerTokenAmount); - // min allowance, balance in account of maker const fillableMakerTokenAmount = BigNumber.min([makerProxyAllowance, makerBalance]); - // min ^, remaining order maker token amount const remainingFillableMakerTokenAmount = BigNumber.min(fillableMakerTokenAmount, remainingMakerTokenAmount); // TODO: Handle edge case where maker token is ZRX with fee const orderRelevantState = { |