Skip to content

Commit

Permalink
fix(app): Show 4 decimal places on next funding rate
Browse files Browse the repository at this point in the history
It is very unlikely that the absolute funding rate will be below
0.0001, so 4 decimal places should be informational enough.
  • Loading branch information
luckysori committed Aug 7, 2024
1 parent ffd8cd2 commit f30f609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile/lib/features/trade/trade_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class FundingRateWidget extends StatelessWidget {
style: DefaultTextStyle.of(context).style,
children: [
TextSpan(
text: " ${(rate!.rate.abs() * 100).toStringAsFixed(2)}% ",
text: " ${(rate!.rate.abs() * 100).toStringAsFixed(4)}% ",
style: const TextStyle(fontWeight: FontWeight.bold),
),
TextSpan(
Expand Down

0 comments on commit f30f609

Please sign in to comment.