Skip to content

Commit

Permalink
add srcUSD+
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi committed Nov 13, 2024
1 parent 00bd725 commit cdd3fc3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/adaptors/crvusd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const sdk = require('@defillama/sdk');
const abiFactory = require('./abiFactory.json');
const abiControllers = require('./abiControllers.json');
const abiPolicies = require('./abiPolicies.json');
const { getERC4626Info } = require('../utils');

const factory = '0xC9332fdCB1C491Dcc683bAe86Fe3cb70360738BC';
const crvUsd = '0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E';
Expand Down Expand Up @@ -150,7 +151,16 @@ const apy = async () => {
};
});

return pools.filter(
const scrvusd = await getERC4626Info("0x0655977FEb2f289A4aB78af67BAB0d17aAb84367", "ethereum")

return pools.concat([{
symbol: "scrvUSD",
pool: scrvusd.pool,
project: 'crvusd',
chain: 'ethereum',
tvlUsd: scrvusd.tvl / 1e18,
apyBase: scrvusd.apyBase
}]).filter(
(i) => i.pool !== '0x136e783846ef68C8Bd00a3369F787dF8d683a696'
);
};
Expand Down

0 comments on commit cdd3fc3

Please sign in to comment.