File tree Expand file tree Collapse file tree 1 file changed +18
-19
lines changed
lib/services/exchange/nanswap Expand file tree Collapse file tree 1 file changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -138,24 +138,23 @@ class NanswapExchange extends Exchange {
138138 }
139139
140140 return ExchangeResponse (
141- value:
142- response.value!
143- .where ((e) => filter.contains (e.id))
144- .map (
145- (e) => Currency (
146- exchangeName: exchangeName,
147- ticker: e.id,
148- name: e.name,
149- network: e.network,
150- image: e.image,
151- isFiat: false ,
152- rateType: SupportedRateType .estimated,
153- isStackCoin: AppConfig .isStackCoin (e.id),
154- tokenContract: null ,
155- isAvailable: true ,
156- ),
157- )
158- .toList (),
141+ value: response.value!
142+ .where ((e) => filter.contains (e.id))
143+ .map (
144+ (e) => Currency (
145+ exchangeName: exchangeName,
146+ ticker: e.id,
147+ name: e.name,
148+ network: e.network,
149+ image: e.image,
150+ isFiat: false ,
151+ rateType: SupportedRateType .estimated,
152+ isStackCoin: AppConfig .isStackCoin (e.id),
153+ tokenContract: null ,
154+ isAvailable: true ,
155+ ),
156+ )
157+ .toList (),
159158 );
160159 } on ExchangeException catch (e) {
161160 return ExchangeResponse (exception: e);
@@ -391,7 +390,7 @@ class NanswapExchange extends Exchange {
391390 uuid: trade.uuid,
392391 tradeId: t.id,
393392 rateType: trade.rateType,
394- direction: trade.rateType ,
393+ direction: trade.direction ,
395394 timestamp: trade.timestamp,
396395 updatedAt: DateTime .now (),
397396 payInCurrency: t.from,
You can’t perform that action at this time.
0 commit comments