From dae1f5c1bce56c8baf9e00657fcc5cfec4cfe3cb Mon Sep 17 00:00:00 2001 From: Lucas Soriano del Pino Date: Wed, 5 Jul 2023 23:20:45 +1000 Subject: [PATCH] feat(app): Display estimated order-matching fee --- mobile/lib/features/trade/trade_bottom_sheet_tab.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mobile/lib/features/trade/trade_bottom_sheet_tab.dart b/mobile/lib/features/trade/trade_bottom_sheet_tab.dart index e7b641d39..40e950a51 100644 --- a/mobile/lib/features/trade/trade_bottom_sheet_tab.dart +++ b/mobile/lib/features/trade/trade_bottom_sheet_tab.dart @@ -283,6 +283,15 @@ class _TradeBottomSheetTabState extends State { builder: (context, liquidationPrice, child) { return Flexible(child: FiatText(amount: liquidationPrice)); }), + const SizedBox(width: 20), + const Flexible(child: Text("Estimated fee:")), + const SizedBox(width: 5), + Selector( + selector: (_, provider) => + provider.orderMatchingFee(direction) ?? Amount.zero(), + builder: (context, fee, child) { + return Flexible(child: AmountText(amount: fee)); + }), ], ) ],