Skip to content

Commit

Permalink
fix: Fix conf
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Jul 9, 2024
1 parent 7c5df97 commit f014277
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion lib/ui/views/pool_list/components/pool_details_front.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ class PoolDetailsFrontState extends ConsumerState<PoolDetailsFront>
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
PoolDetailsInfoHeader(pool: widget.pool),
PoolDetailsInfoHeader(
pool: widget.pool,
displayPoolFarmAvailable: true,
),
const SizedBox(height: 20),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ class PoolDetailsInfoHeader extends ConsumerWidget {
const PoolDetailsInfoHeader({
super.key,
required this.pool,
this.displayPoolFarmAvailable = false,
});

final DexPool? pool;
final bool displayPoolFarmAvailable;

@override
Widget build(
Expand Down Expand Up @@ -85,8 +87,9 @@ class PoolDetailsInfoHeader extends ConsumerWidget {
LiquidityFavoriteIcon(
isFavorite: pool!.isFavorite,
),
if (contextAddresses.aeETHUCOPoolAddress.toUpperCase() ==
pool!.poolAddress.toUpperCase())
if (displayPoolFarmAvailable &&
contextAddresses.aeETHUCOPoolAddress.toUpperCase() ==
pool!.poolAddress.toUpperCase())
const PoolFarmAvailable(),
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/views/util/components/pool_farm_available.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class PoolFarmAvailableState extends State<PoolFarmAvailable> {
aeETHUCOPoolAddress:
'0000818EF23676779DAE1C97072BB99A3E0DD1C31BAD3787422798DBE3F777F74A43',
aeETHUCOFarmLegacyAddress:
'000041e393250ddc2178453b673ffdaf69642f35c2cb6339fd0bfa861a281407bed6',
'0000208A670B5590939174D65F88140C05DDDBA63C0C920582E12162B22F3985E510',
aeETHUCOFarmLockAddress:
'0000B1C0BE9DF305D33B457957B117108CB36B65ACF850C7B982BFB393581F339128'
);
Expand Down

0 comments on commit f014277

Please sign in to comment.