aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-31 04:59:42 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-31 04:59:42 +0800
commit4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b (patch)
treeebe61b499946e94993f0d9b15c9ec00f937335d4
parent971a4087d20d011adcef22555a49dc8600b55559 (diff)
downloaddexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar.gz
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar.bz2
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar.lz
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar.xz
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.tar.zst
dexon-sol-tools-4f2bc29744b4daac08d4bc642fba63a0d8a8ca4b.zip
Remove cancel check
-rw-r--r--packages/website/ts/blockchain.ts7
-rw-r--r--packages/website/ts/components/fill_order.tsx5
2 files changed, 0 insertions, 12 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index baf8002cd..0ff4c4953 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -403,13 +403,6 @@ export class Blockchain {
// takerAddress,
// );
}
- public async validateCancelOrderThrowIfInvalidAsync(
- order: Order,
- cancelTakerTokenAmount: BigNumber,
- ): Promise<void> {
- // we can use OrderValidationUtils here
- // await this._contractWrappers.exchange.validateCancelOrderThrowIfInvalidAsync(order, cancelTakerTokenAmount);
- }
public isValidAddress(address: string): boolean {
const lowercaseAddress = address.toLowerCase();
return Web3Wrapper.isAddress(lowercaseAddress);
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx
index f24d065f4..95f2039b3 100644
--- a/packages/website/ts/components/fill_order.tsx
+++ b/packages/website/ts/components/fill_order.tsx
@@ -606,11 +606,6 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> {
const orderHash = orderHashUtils.getOrderHashHex(signedOrder);
const unavailableTakerAmount = await this.props.blockchain.getUnavailableTakerAmountAsync(orderHash);
const availableTakerTokenAmount = takerTokenAmount.minus(unavailableTakerAmount);
- try {
- await this.props.blockchain.validateCancelOrderThrowIfInvalidAsync(signedOrder, availableTakerTokenAmount);
- } catch (err) {
- globalErrMsg = utils.zeroExErrToHumanReadableErrMsg(err.message, parsedOrder.signedOrder.takerAddress);
- }
if (!_.isEmpty(globalErrMsg)) {
this.setState({
isCancelling: false,