aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2019-01-11 07:40:55 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2019-01-11 07:40:55 +0800
commit841ad8757cc9ba165f9ae303877da0d4b6ffe8b0 (patch)
treef3249b05fe5300b91f4156b12d27a01c89a05437 /packages
parent127bd4bf9dd99c0520dcc4fbd5413d98e1dac65a (diff)
downloaddexon-sol-tools-841ad8757cc9ba165f9ae303877da0d4b6ffe8b0.tar
dexon-sol-tools-841ad8757cc9ba165f9ae303877da0d4b6ffe8b0.tar.gz
dexon-sol-tools-841ad8757cc9ba165f9ae303877da0d4b6ffe8b0.tar.bz2
dexon-sol-tools-841ad8757cc9ba165f9ae303877da0d4b6ffe8b0.tar.lz
dexon-sol-tools-841ad8757cc9ba165f9ae303877da0d4b6ffe8b0.tar.xz
dexon-sol-tools-841ad8757cc9ba165f9ae303877da0d4b6ffe8b0.tar.zst
dexon-sol-tools-841ad8757cc9ba165f9ae303877da0d4b6ffe8b0.zip
Add LiquidityRequestOpts type
Diffstat (limited to 'packages')
-rw-r--r--packages/asset-buyer/src/types.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/asset-buyer/src/types.ts b/packages/asset-buyer/src/types.ts
index 71822c4d7..ef63aacfe 100644
--- a/packages/asset-buyer/src/types.ts
+++ b/packages/asset-buyer/src/types.ts
@@ -75,6 +75,11 @@ export interface BuyQuoteRequestOpts {
slippagePercentage: number;
}
+/*
+ * shouldForceOrderRefresh: If set to true, new orders and state will be fetched instead of waiting for the next orderRefreshIntervalMs. Defaults to false.
+ */
+export interface LiquidityRequestOpts extends Pick<BuyQuoteRequestOpts, 'shouldForceOrderRefresh'> {}
+
/**
* ethAmount: The desired amount of eth to spend. Defaults to buyQuote.worstCaseQuoteInfo.totalEthAmount.
* takerAddress: The address to perform the buy. Defaults to the first available address from the provider.