mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
CWA-169 | added trades to exchange trade store in router
This commit is contained in:
parent
a6fae62917
commit
d7d03b4d2f
2 changed files with 4 additions and 2 deletions
|
@ -418,7 +418,9 @@ class Router {
|
||||||
return MultiProvider(providers: [
|
return MultiProvider(providers: [
|
||||||
ProxyProvider<SettingsStore, ExchangeTradeStore>(
|
ProxyProvider<SettingsStore, ExchangeTradeStore>(
|
||||||
update: (_, settingsStore, __) => ExchangeTradeStore(
|
update: (_, settingsStore, __) => ExchangeTradeStore(
|
||||||
trade: settings.arguments as Trade, walletStore: walletStore),
|
trade: settings.arguments as Trade,
|
||||||
|
walletStore: walletStore,
|
||||||
|
trades: trades),
|
||||||
)
|
)
|
||||||
], child: TradeDetailsPage());
|
], child: TradeDetailsPage());
|
||||||
});
|
});
|
||||||
|
|
|
@ -206,7 +206,7 @@ class MorphTokenExchangeProvider extends ExchangeProvider {
|
||||||
final state = TradeState.deserialize(raw: status.toLowerCase());
|
final state = TradeState.deserialize(raw: status.toLowerCase());
|
||||||
|
|
||||||
String amount = "";
|
String amount = "";
|
||||||
for (final trade in trades.values.toList()) {
|
for (final trade in trades.values) {
|
||||||
if (trade.id == id) {
|
if (trade.id == id) {
|
||||||
amount = trade.amount;
|
amount = trade.amount;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue