mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-25 04:49:36 +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,
|
|
),
|
|
);
|