Skip to content

Commit

Permalink
Use max apy for pendle-eqb
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-monk committed Oct 3, 2024
1 parent 32fec61 commit 94ae721
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/stats/common/getMellowVeloApys.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const getMellowVeloApys = async (chainId, pools) => {
const rewardsInUsd = rewardRates[i].times(31536000).times(price).div('1e18');
const apy = rewardsInUsd.div(totalStakedInUsd);
apys.push(apy);
// console.log(pool.name, 'apy', apy.toString(10))
// console.log(pool.name, 'tvl', totalStakedInUsd.toString(10), 'apy', apy.toString(10))
}

return getApyBreakdown(pools.map((p, i) => ({ vaultId: p.name, vault: apys[i] })));
Expand Down
2 changes: 1 addition & 1 deletion src/api/stats/ethereum/getEquilibriaApys.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function getEquilibriaApys() {
return getApyBreakdown(
pools.map((p, i) => ({
vaultId: p.name.replace('pendle-', 'pendle-eqb-'),
vault: eqbApys[p.address] || pendleApys[i],
vault: BigNumber.max(eqbApys[p.address] || 0, pendleApys[i]),
trading: tradingApys[p.address.toLowerCase()],
}))
);
Expand Down
22 changes: 21 additions & 1 deletion src/data/ethereum/pendlePools.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
[
{
"name": "pendle-lbtc-27mar25",
"address": "0x70B70Ac0445C3eF04E314DFdA6caafd825428221",
"eqbGauge": "0xAfD39D1eE745b3A8963dd73a94cF055A19346B20",
"oracle": "tokens",
"oracleId": "WBTC",
"decimals": "1e8",
"chainId": 1,
"beefyFee": 0.095
},
{
"name": "pendle-pumpbtc-26dec24",
"address": "0xf8208fB52BA80075aF09840A683143C22DC5B4dd",
"eqbGauge": "0x64A0a11543dD212DC5245cB6094d94820c62B55F",
"oracle": "tokens",
"oracleId": "WBTC",
"decimals": "1e8",
"chainId": 1,
"beefyFee": 0.095
},
{
"name": "pendle-solvbtc.bbn-26dec24",
"address": "0xeb4d3057738b9ed930f451be473c1ccc42988384",
Expand All @@ -20,7 +40,7 @@
"beefyFee": 0.095
},
{
"name": "pendle-lbtc-26dec24",
"name": "pendle-lbtc-corn-26dec24",
"address": "0xCaE62858DB831272A03768f5844cbe1B40bB381f",
"eqbGauge": "0x08cef7aF62CDC92246515a81E87cC7DA633cC8B6",
"oracle": "tokens",
Expand Down

0 comments on commit 94ae721

Please sign in to comment.