Skip to content

Commit

Permalink
feat(app): Display estimated order-matching fee
Browse files Browse the repository at this point in the history
  • Loading branch information
luckysori committed Jul 5, 2023
1 parent bb86063 commit dae1f5c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mobile/lib/features/trade/trade_bottom_sheet_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,15 @@ class _TradeBottomSheetTabState extends State<TradeBottomSheetTab> {
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<TradeValuesChangeNotifier, Amount>(
selector: (_, provider) =>
provider.orderMatchingFee(direction) ?? Amount.zero(),
builder: (context, fee, child) {
return Flexible(child: AmountText(amount: fee));
}),
],
)
],
Expand Down

0 comments on commit dae1f5c

Please sign in to comment.