Skip to content

Commit 9fdde4d

Browse files
committed
prices
1 parent d618552 commit 9fdde4d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/services/PriceService.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,11 @@ const fetchers = {
224224
}).then(x => x.json()).then(res => {
225225
if(!res.data) return null;
226226

227-
let data = res.data.filter(x => x.symbol.indexOf('-eusd') === -1);
228-
data = res.data.filter(x => x.symbol.indexOf('-cusd') === -1 || x.symbol === 'stablecarbon-cusd-eos');
229-
data = res.data.filter(x => x.symbol.indexOf('-tlos') === -1);
227+
let data = res.data.filter(x => x.symbol.indexOf('-eos') === x.symbol.length - 4);
228+
229+
// let data = res.data.filter(x => x.symbol.indexOf('-eusd') === -1);
230+
// data = res.data.filter(x => x.symbol.indexOf('-cusd') === -1 || x.symbol === 'stablecarbon-cusd-eos');
231+
// data = res.data.filter(x => x.symbol.indexOf('-tlos') === -1);
230232
data = data.map(({change, contract, currency:symbol, last:price}) => ({
231233
contract, symbol, price, chainId:PRICE_NETS.EOS_MAINNET.replace('prices:eos:', '')
232234
}))

0 commit comments

Comments
 (0)