mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-27 05:49:21 +00:00
10 lines
355 B
Dart
10 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,
|
||
|
),
|
||
|
);
|