aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-08-15 11:03:31 +0800
committerJacob Evans <jacob@dekz.net>2018-08-16 09:12:35 +0800
commit88c99396a2d1b880bffb21ef19507d02b474ba9b (patch)
tree8b8b72f1945a7d85f11af14f16338a059cc9f900 /packages/website/ts/utils
parent622509c508272790e3e69c09cf1a1f9696815147 (diff)
downloaddexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar
dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.gz
dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.bz2
dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.lz
dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.xz
dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.tar.zst
dexon-sol-tools-88c99396a2d1b880bffb21ef19507d02b474ba9b.zip
Rename OrderAlreadyCancelledOrFilled -> OrderCancelled.
Remove try catch of throwing errors in favour of returning the Errors in a OrderValidationResult
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r--packages/website/ts/utils/utils.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index 39bbd404c..32b07473c 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -247,12 +247,9 @@ export const utils = {
} = {
[ExchangeContractErrs.OrderFillExpired]: 'This order has expired',
[ExchangeContractErrs.OrderCancelExpired]: 'This order has expired',
- [ExchangeContractErrs.OrderCancelAmountZero]: "Order cancel amount can't be 0",
- [ExchangeContractErrs.OrderAlreadyCancelledOrFilled]:
- 'This order has already been completely filled or cancelled',
+ [ExchangeContractErrs.OrderCancelled]: 'This order has been cancelled',
[ExchangeContractErrs.OrderFillAmountZero]: "Order fill amount can't be 0",
- [ExchangeContractErrs.OrderRemainingFillAmountZero]:
- 'This order has already been completely filled or cancelled',
+ [ExchangeContractErrs.OrderRemainingFillAmountZero]: 'This order has already been completely filled',
[ExchangeContractErrs.OrderFillRoundingError]:
'Rounding error will occur when filling this order. Please try filling a different amount.',
[ExchangeContractErrs.InsufficientTakerBalance]: