Skip to content

Commit

Permalink
Remove reaper vaults prices
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-monk committed Oct 14, 2024
1 parent 205c5fb commit de8037c
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 371 deletions.
3 changes: 0 additions & 3 deletions src/api/stats/getAmmPrices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ import lynexPools from '../../data/linea/lynexVolatilePools.json';
import nilePools from '../../data/linea/nileVolatilePools.json';
import raPools from '../../data/fraxtal/raPools.json';
import velodromeModePools from '../../data/mode/velodromeModePools.json';
import { fetchVaultPrices } from '../../utils/fetchVaultPrices';
import { addressBookByChainId } from '../../../packages/address-book/src/address-book';
import { sleep } from '../../utils/time';
import { isFiniteNumber } from '../../utils/number';
Expand Down Expand Up @@ -505,11 +504,9 @@ async function performUpdateAmmPrices() {
const linearPoolPrice = ammPrices.then(async ({ tokenPrices }): Promise<Record<string, number>> => {
const jbrlTokenPrice = await fetchJbrlPrice();
const yVaultPrices = await fetchyVaultPrices(tokenPrices);
const vaultPrices = await fetchVaultPrices(tokenPrices);
const wrappedAavePrices = await fetchWrappedAavePrices(tokenPrices);
const prices = {
...tokenPrices,
...vaultPrices,
...wrappedAavePrices,
...jbrlTokenPrice,
...yVaultPrices,
Expand Down
125 changes: 0 additions & 125 deletions src/data/optimism/beethovenxLinearPools.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,130 +48,5 @@
"decimals": "1e18"
}
]
},
{
"name": "bbrfaWETH",
"address": "0xDD89C7cd0613C1557B2DaAC6Ae663282900204f1",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"vaultPoolId": "0xdd89c7cd0613c1557b2daac6ae663282900204f100000000000000000000003e",
"decimals": "1e18",
"chainId": 10,
"composable": true,
"bptIndex": 1,
"tokens": [
{
"oracle": "tokens",
"oracleId": "ETH",
"decimals": "1e18"
},
{
"oracleId": "BPTToken"
},
{
"oracle": "tokens",
"oracleId": "rfaWETH",
"decimals": "1e18"
}
]
},
{
"name": "bbrfaUSDC",
"address": "0xba7834bb3cd2DB888E6A06Fb45E82b4225Cd0C71",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"vaultPoolId": "0xba7834bb3cd2db888e6a06fb45e82b4225cd0c71000000000000000000000043",
"decimals": "1e18",
"chainId": 10,
"composable": true,
"bptIndex": 2,
"tokens": [
{
"oracle": "tokens",
"oracleId": "rfaUSDC",
"decimals": "1e18"
},
{
"oracle": "tokens",
"oracleId": "opUSDCe",
"decimals": "1e6"
},
{
"oracleId": "BPTToken"
}
]
},
{
"name": "bbrfaUSDT",
"address": "0x9253d7e1B42fa01eDE2c53f3A21b3B4d13239cD4",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"vaultPoolId": "0x9253d7e1b42fa01ede2c53f3a21b3b4d13239cd4000000000000000000000042",
"decimals": "1e18",
"chainId": 10,
"composable": true,
"bptIndex": 1,
"tokens": [
{
"oracle": "tokens",
"oracleId": "rfaUSDT",
"decimals": "1e18"
},
{
"oracleId": "BPTToken"
},
{
"oracle": "tokens",
"oracleId": "USDT",
"decimals": "1e6"
}
]
},
{
"name": "bbrfaDAI",
"address": "0x888a6195D42a95e80D81e1c506172772a80b80Bc",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"vaultPoolId": "0x888a6195d42a95e80d81e1c506172772a80b80bc000000000000000000000044",
"decimals": "1e18",
"chainId": 10,
"composable": true,
"bptIndex": 1,
"tokens": [
{
"oracle": "tokens",
"oracleId": "rfaDAI",
"decimals": "1e18"
},
{
"oracleId": "BPTToken"
},
{
"oracle": "tokens",
"oracleId": "DAI",
"decimals": "1e18"
}
]
},
{
"name": "bbrfaWBTC",
"address": "0xA1a77E5d7D769BFBB790a08EC976dc738bF795B9",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"vaultPoolId": "0xa1a77e5d7d769bfbb790a08ec976dc738bf795b9000000000000000000000047",
"decimals": "1e18",
"chainId": 10,
"composable": true,
"bptIndex": 2,
"tokens": [
{
"oracle": "tokens",
"oracleId": "rfaWBTC",
"decimals": "1e18"
},
{
"oracle": "tokens",
"oracleId": "WBTC",
"decimals": "1e8"
},
{
"oracleId": "BPTToken"
}
]
}
]
146 changes: 0 additions & 146 deletions src/data/optimism/beethovenxLpPools.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,152 +124,6 @@
}
]
},
{
"name": "beets-its-mai-life",
"address": "0x1F131EC1175f023ee1534B16FA8aB237c00e2381",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"gauge": "0x1bc536D34897603f562d94601d16F67b4d497eBC",
"vaultPoolId": "0x1f131ec1175f023ee1534b16fa8ab237c00e238100000000000000000000004a",
"decimals": "1e18",
"composable": true,
"bptIndex": 0,
"rewards": [
{
"stream": "0xeCc205dfa8300cEd05955c9aEA930f1A7Ab8DAeb",
"token": "0xFE8B128bA8C78aabC59d4c64cEE7fF28e9379921",
"oracleId": "BAL"
},
{
"stream": "0xeCc205dfa8300cEd05955c9aEA930f1A7Ab8DAeb",
"token": "0x97513e975a7fA9072c72C92d8000B0dB90b163c5",
"oracleId": "BEETS"
},
{
"stream": "0xeCc205dfa8300cEd05955c9aEA930f1A7Ab8DAeb",
"token": "0x4200000000000000000000000000000000000042",
"oracleId": "OP"
},
{
"stream": "0xeCc205dfa8300cEd05955c9aEA930f1A7Ab8DAeb",
"token": "0x3F56e0c36d275367b8C502090EDF38289b3dEa0d",
"oracleId": "QI"
}
],
"tokens": [
{
"oracleId": "BPTToken"
},
{
"oracle": "tokens",
"oracleId": "bbrfaUSD",
"decimals": "1e18"
},
{
"oracle": "tokens",
"oracleId": "oMAI",
"decimals": "1e18"
}
]
},
{
"name": "beets-yellow-submarine",
"address": "0x981Fb05B738e981aC532a99e77170ECb4Bc27AEF",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"gauge": "0xbd54c9dbd7B4D82c80759790f8c566C3DeAaD6a5",
"vaultPoolId": "0x981fb05b738e981ac532a99e77170ecb4bc27aef00010000000000000000004b",
"decimals": "1e18",
"lidoUrl": "https://eth-api.lido.fi/v1/protocol/steth/apr/sma",
"lsIndex": 0,
"rewards": [
{
"stream": "0x23D6352Ff0EeC97E37726461EF63C7A8116C12b0",
"token": "0xFE8B128bA8C78aabC59d4c64cEE7fF28e9379921",
"oracleId": "BAL"
},
{
"stream": "0x23D6352Ff0EeC97E37726461EF63C7A8116C12b0",
"token": "0x97513e975a7fA9072c72C92d8000B0dB90b163c5",
"oracleId": "BEETS"
},
{
"stream": "0x23D6352Ff0EeC97E37726461EF63C7A8116C12b0",
"token": "0x4200000000000000000000000000000000000042",
"oracleId": "OP"
},
{
"stream": "0x23D6352Ff0EeC97E37726461EF63C7A8116C12b0",
"token": "0xFdb794692724153d1488CcdBE0C56c252596735F",
"oracleId": "LDO"
}
],
"tokens": [
{
"oracle": "tokens",
"oracleId": "wstETH",
"decimals": "1e18"
},
{
"oracle": "tokens",
"oracleId": "bbrfaUSD",
"decimals": "1e18"
},
{
"oracle": "tokens",
"oracleId": "bbrfaWBTC",
"decimals": "1e18"
}
]
},
{
"name": "beets-lido-shuffle",
"address": "0xde45F101250f2ca1c0f8adFC172576d10c12072D",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"gauge": "0x950FdBEE03900487Ebc3aC54daf4C988E7C02678",
"vaultPoolId": "0xde45f101250f2ca1c0f8adfc172576d10c12072d00000000000000000000003f",
"lidoUrl": "https://eth-api.lido.fi/v1/protocol/steth/apr/sma",
"lsIndex": 0,
"balancerChargesFee": true,
"decimals": "1e18",
"composable": true,
"bptIndex": 2,
"rewards": [
{
"stream": "0x49478499Dd1bA1b8A763dDc747661898C0f7C269",
"token": "0xFE8B128bA8C78aabC59d4c64cEE7fF28e9379921",
"oracleId": "BAL"
},
{
"stream": "0x49478499Dd1bA1b8A763dDc747661898C0f7C269",
"token": "0x97513e975a7fA9072c72C92d8000B0dB90b163c5",
"oracleId": "BEETS"
},
{
"stream": "0x49478499Dd1bA1b8A763dDc747661898C0f7C269",
"token": "0x4200000000000000000000000000000000000042",
"oracleId": "OP"
},
{
"stream": "0x49478499Dd1bA1b8A763dDc747661898C0f7C269",
"token": "0xFdb794692724153d1488CcdBE0C56c252596735F",
"oracleId": "LDO"
}
],
"tokens": [
{
"oracle": "tokens",
"oracleId": "wstETH",
"decimals": "1e18"
},
{
"oracle": "tokens",
"oracleId": "bbrfaWETH",
"decimals": "1e18"
},
{
"oracleId": "BPTToken"
}
]
},
{
"name": "beets-lennons-long",
"address": "0x5028497af0c9a54ea8C6D42a054c0341B9fc6168",
Expand Down
32 changes: 0 additions & 32 deletions src/data/optimism/beethovenxSteadyBeets.json

This file was deleted.

3 changes: 1 addition & 2 deletions src/utils/fetchBalancerStablePoolPrices.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import getBalancerPrices from '../api/stats/common/balancer/getBalancerPrices';
import beetsPools from '../data/optimism/beethovenxSteadyBeets.json';
import bbaUSD from '../data/ethereum/bbaUSD.json';
import bbamUSD from '../data/matic/bbamUSD.json';
import bbaaUSD from '../data/arbitrum/bbaaUSD.json';
Expand All @@ -9,7 +8,7 @@ import balancerPolyLinearPools from '../data/matic/balancerLinearPools.json';
import balancerArbLinearPools from '../data/arbitrum/balancerLinearPools.json';
import balancerBaseLinearPools from '../data/base/balancerLinearPools.json';

const stablePoolPools = [...beetsPools, ...bbaUSD, ...bbamUSD, ...bbaaUSD];
const stablePoolPools = [...bbaUSD, ...bbamUSD, ...bbaaUSD];
const linearPoolPools = [
...beetsLinearPools,
...balancerLinearPools,
Expand Down
Loading

0 comments on commit de8037c

Please sign in to comment.