mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-06 04:17:42 +00:00
9 lines
355 B
Dart
9 lines
355 B
Dart
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:stackwallet/providers/exchange/current_exchange_name_state_provider.dart';
|
|
import 'package:stackwallet/services/exchange/exchange.dart';
|
|
|
|
final exchangeProvider = Provider<Exchange>(
|
|
(ref) => Exchange.fromName(
|
|
ref.watch(currentExchangeNameStateProvider.state).state,
|
|
),
|
|
);
|