Skip to content

Commit

Permalink
Replace test vector beefy token that was EOLd
Browse files Browse the repository at this point in the history
  • Loading branch information
staltz committed Apr 30, 2024
1 parent 77ba33d commit 2065846
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions src/api/beefy/__tests__/beefy-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('beefy-api', () => {
NetworkName.Ethereum,
false, // skipCache
false, // includeInactiveVaults
testConfig.contractsEthereum.usdcWethSushiSwapV2LPToken.toUpperCase(),
testConfig.contractsEthereum.conicEthLPToken.toUpperCase(),
);
expect(vaultsForEthereumToken.length).to.equal(1);
expect({
Expand All @@ -48,21 +48,21 @@ describe('beefy-api', () => {

// Compare the rest of the values:
chain: 'ethereum',
depositERC20Symbol: 'ETH-USDC LP',
depositERC20Address: '0x397ff1542f962076d0bfe58ea045ffa2d347aca0',
depositERC20Symbol: 'cncETH',
depositERC20Address: '0x58649ec8add732ea710731b5cb37c99529a394d3',
depositERC20Decimals: 18n,
depositFeeBasisPoints: 0n,
network: 'ethereum',
vaultContractAddress: '0x61f96ca5c79c9753c93244c73f1d4b4a90c1ac8c',
vaultID: 'sushi-mainnet-usdc-weth',
vaultName: 'ETH-USDC LP',
vaultERC20Symbol: 'mooSushiETH-USDC',
vaultERC20Address: '0x61f96ca5c79c9753c93244c73f1d4b4a90c1ac8c',
withdrawFeeBasisPoints: 10n,
vaultContractAddress: '0xaf5bf2d152e6a16095588d3438b55edc2bb28343',
vaultID: 'conic-eth',
vaultName: 'ETH LP',
vaultERC20Symbol: 'mooConicETH',
vaultERC20Address: '0xaf5bf2d152e6a16095588d3438b55edc2bb28343',
withdrawFeeBasisPoints: 0n,
isActive: true,
});
expect(vaultsForEthereumToken[0].apy).to.be.greaterThan(0.001);
expect(vaultsForEthereumToken[0].apy).to.be.lessThan(0.2);
expect(vaultsForEthereumToken[0].apy).to.be.greaterThan(0.01);
expect(vaultsForEthereumToken[0].apy).to.be.lessThan(0.5);

const vaultsForPolygonToken = await BeefyAPI.getFilteredBeefyVaults(
NetworkName.Polygon,
Expand All @@ -74,7 +74,7 @@ describe('beefy-api', () => {
}).timeout(7500);

it('Should get specific Beefy vault data', async () => {
const vaultID = 'sushi-mainnet-usdc-weth';
const vaultID = 'conic-eth';
const vault = await BeefyAPI.getBeefyVaultForID(
vaultID,
NetworkName.Ethereum,
Expand Down
2 changes: 1 addition & 1 deletion src/test/setup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const getTestERC20Addresses = (networkName: NetworkName): string[] => {
testConfig.contractsEthereum.weth9,
testConfig.contractsEthereum.rail,
testConfig.contractsEthereum.usdc,
testConfig.contractsEthereum.usdcWethSushiSwapV2LPToken,
testConfig.contractsEthereum.conicEthLPToken,
testConfig.contractsEthereum.crvUSDCWBTCWETH,
testConfig.contractsEthereum.mooConvexTriCryptoUSDC,
];
Expand Down
2 changes: 1 addition & 1 deletion src/test/test-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export let testConfig = {
rail: '0xe76C6c83af64e4C60245D8C7dE953DF673a7A33D',
usdc: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
// LP tokens
usdcWethSushiSwapV2LPToken: '0x397ff1542f962076d0bfe58ea045ffa2d347aca0',
conicEthLPToken: '0x58649Ec8adD732ea710731b5Cb37c99529A394d3',
// Vault tokens
crvUSDCWBTCWETH: '0x7F86Bf177Dd4F3494b841a37e810A34dD56c829B',
mooConvexTriCryptoUSDC: '0xD1BeaD7CadcCC6b6a715A6272c39F1EC54F6EC99',
Expand Down

0 comments on commit 2065846

Please sign in to comment.