Skip to content

Commit

Permalink
joe v2 add missing pools
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Dec 7, 2023
1 parent 44f3c18 commit 9ab886f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adaptors/joe-v2.1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const utils = require('../utils');
const apy = async () => {
const pools = await Promise.all(
['avalanche', 'arbitrum', 'binance'].map(async (chain) => {
const apiUrl = `https://barn.traderjoexyz.com/v1/pools/${chain}?filterBy=1d&orderBy=volume&pageNum=1&pageSize=25&status=main`;
const apiUrl = `https://barn.traderjoexyz.com/v1/pools/${chain}?filterBy=1d&orderBy=volume&pageNum=1&pageSize=100&status=main`;

const pools = (await axios.get(apiUrl)).data;

Expand All @@ -23,7 +23,7 @@ const apy = async () => {
})
);

return pools.flat();
return pools.flat().filter((p) => utils.keepFinite(p));
};

module.exports = {
Expand Down

0 comments on commit 9ab886f

Please sign in to comment.