aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-11-13 12:34:33 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-11-13 12:50:28 +0800
commit49a9345bf4435bb51999527df2b7ee8bbf195743 (patch)
treedbaefe0a0bf5a1e33ba5fd5e7a2df642ed300c85 /packages/instant/src/containers
parentd73faf1b81cf08a3793f0207819e163b322b4433 (diff)
downloaddexon-sol-tools-49a9345bf4435bb51999527df2b7ee8bbf195743.tar
dexon-sol-tools-49a9345bf4435bb51999527df2b7ee8bbf195743.tar.gz
dexon-sol-tools-49a9345bf4435bb51999527df2b7ee8bbf195743.tar.bz2
dexon-sol-tools-49a9345bf4435bb51999527df2b7ee8bbf195743.tar.lz
dexon-sol-tools-49a9345bf4435bb51999527df2b7ee8bbf195743.tar.xz
dexon-sol-tools-49a9345bf4435bb51999527df2b7ee8bbf195743.tar.zst
dexon-sol-tools-49a9345bf4435bb51999527df2b7ee8bbf195743.zip
feat(instant): calculate per unit eth amount to populate OrderDetails component
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/latest_buy_quote_order_details.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/containers/latest_buy_quote_order_details.ts b/packages/instant/src/containers/latest_buy_quote_order_details.ts
index 2b59ed3ae..2413e90aa 100644
--- a/packages/instant/src/containers/latest_buy_quote_order_details.ts
+++ b/packages/instant/src/containers/latest_buy_quote_order_details.ts
@@ -14,6 +14,7 @@ export interface LatestBuyQuoteOrderDetailsProps {}
interface ConnectedState {
buyQuoteInfo?: BuyQuoteInfo;
+ selectedAssetAmount?: BigNumber;
ethUsdPrice?: BigNumber;
isLoading: boolean;
}
@@ -21,6 +22,7 @@ interface ConnectedState {
const mapStateToProps = (state: State, _ownProps: LatestBuyQuoteOrderDetailsProps): ConnectedState => ({
// use the worst case quote info
buyQuoteInfo: oc(state).latestBuyQuote.worstCaseQuoteInfo(),
+ selectedAssetAmount: state.selectedAssetAmount,
ethUsdPrice: state.ethUsdPrice,
isLoading: state.quoteRequestState === AsyncProcessState.Pending,
});