Skip to content

Commit

Permalink
Add Rootstock CLMS
Browse files Browse the repository at this point in the history
  • Loading branch information
MirthFutures committed Sep 30, 2024
1 parent 92b75d0 commit 4b121d9
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const beefyfinance = {
rewardPool: '0x0000000000000000000000000000000000000000',
treasury: treasuryMultisig,
beefyFeeRecipient: '0x02Ae4716B9D5d48Db1445814b0eDE39f5c28264B',
multicall: '0x3B60F7f25b09E71356cdFFC6475c222A466a2AC9',
multicall: '0x5Eb5CcF31F73ECBa126846fd264538576e01F89b',
bifiMaxiStrategy: '0x0000000000000000000000000000000000000000',
voter: '0x5e1caC103F943Cd84A1E92dAde4145664ebf692A',
beefyFeeConfig: '0xfc69704cC3cAac545cC7577009Ea4AA04F1a61Eb',
Expand Down
2 changes: 1 addition & 1 deletion src/api/stats/rootstock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const getRootstockApys = async () => {
}

const end = Date.now();
console.log(`> [APY] Sei finished updating in ${(end - start) / 1000}s`);
console.log(`> [APY] Rootstock finished updating in ${(end - start) / 1000}s`);

return {
apys,
Expand Down
7 changes: 3 additions & 4 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ const CELO_RPC = process.env.CELO_RPC || 'https://forno.celo.org';
const MOONRIVER_RPC = process.env.MOONRIVER_RPC || 'https://rpc.api.moonriver.moonbeam.network';
const CRONOS_RPC = process.env.CRONOS_RPC || 'https://cronos.blockpi.network/v1/rpc/public';
const AURORA_RPC =
process.env.AURORA_RPC ||
'https://mainnet.aurora.dev/Fon6fPMs5rCdJc4mxX4kiSK1vsKdzc3D8k6UF8aruek';
process.env.AURORA_RPC || 'https://mainnet.aurora.dev/Fon6fPMs5rCdJc4mxX4kiSK1vsKdzc3D8k6UF8aruek';
const FUSE_RPC = process.env.FUSE_RPC || 'https://rpc.fuse.io';
const METIS_RPC = process.env.METIS_RPC || 'https://andromeda.metis.io/?owner=1088';
const MOONBEAM_RPC = process.env.MOONBEAM_RPC || 'https://rpc.api.moonbeam.network';
Expand All @@ -64,7 +63,7 @@ const MODE_RPC = process.env.MODE_RPC || 'https://mode.drpc.org';
const MANTA_RPC = process.env.MANTA_RPC || 'https://manta-pacific.drpc.org';
const REAL_RPC = process.env.REAL_RPC || 'https://real.drpc.org';
const SEI_RPC = process.env.SEI_RPC || 'https://evm-rpc.sei-apis.com';
const ROOTSTOCK_RPC = process.env.ROOTSTOCK_RPC || 'https://public-node.rsk.co';
const ROOTSTOCK_RPC = process.env.ROOTSTOCK_RPC || 'https://rootstock-mainnet.public.blastapi.io';

const BSC_CHAIN_ID = ChainId.bsc;
const HECO_CHAIN_ID = ChainId.heco;
Expand Down Expand Up @@ -238,7 +237,7 @@ const MULTICHAIN_ENDPOINTS: Partial<Record<ApiChain, string>> = {
manta: MANTA_VAULTS_ENDPOINT,
real: REAL_VAULTS_ENDPOINT,
sei: SEI_VAULTS_ENDPOINT,
// rootstock: ROOTSTOCK_VAULTS_ENDPOINT,
// rootstock: ROOTSTOCK_VAULTS_ENDPOINT,
} as const;

const EXCLUDED_IDS_FROM_TVL = ['venus-wbnb'];
Expand Down
96 changes: 96 additions & 0 deletions src/data/rootstock/beefyCowVaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,102 @@
"rewardPool": {
"address": "0xd9BcDF03D03D1F36d2B6dAf6b30b9eE6C014F610",
"oracleId": "uniswap-cow-rootstock-eths-wrbtc-rp"
},
"vault": {
"address": "0xfcdCDb71FF7D0711F8F9A36032Aa3a77A659055D",
"oracleId": "uniswap-cow-rootstock-eths-wrbtc-vault"
}
},
{
"address": "0xc35Ce6b18Eb792F97991e5ee3439A965FF99396A",
"lpAddress": "0xD2Ffe51aB4E622a411abBe634832a19D919E9c55",
"tokens": ["0x542fDA317318eBF1d3DEAf76E0b632741A7e677d", "0xef213441A85dF4d7ACbDaE0Cf78004e1E486bB96"],
"tokenOracleIds": ["WBTC", "USDT"],
"decimals": [18, 18],
"oracleId": "uniswap-cow-rootstock-wrbtc-rusdt",
"rewardPool": {
"address": "0xccA0a5E330d7640d2599B4F0aC6067d658d46688",
"oracleId": "uniswap-cow-rootstock-wrbtc-rusdt-rp"
},
"vault": {
"address": "0x70B212EBe2bde9812ad63BA1AedD5179B4B3082E",
"oracleId": "uniswap-cow-rootstock-wrbtc-rusdt-vault"
}
},
{
"address": "0xc517fcde06661b001af97273a3599D5454703732",
"lpAddress": "0x3151d3093797412642685ad16e74a83859F2011C",
"tokens": ["0xe700691dA7b9851F2F35f8b8182c69c53CcaD9Db", "0xef213441A85dF4d7ACbDaE0Cf78004e1E486bB96"],
"tokenOracleIds": ["DOC", "USDT"],
"decimals": [18, 18],
"oracleId": "uniswap-cow-rootstock-doc-rusdt",
"rewardPool": {
"address": "0x716D2dD531d826eb3fa1f1fFcFdd7102217a3199",
"oracleId": "uniswap-cow-rootstock-doc-rusdt-rp"
},
"vault": {
"address": "0x70B212EBe2bde9812ad63BA1AedD5179B4B3082E",
"oracleId": "uniswap-cow-rootstock-doc-rusdt-vault"
}
},
{
"address": "0x411564724f8FE3fc0308A52c462847e0807c56A4",
"lpAddress": "0x022650756421F2e636d4138054331CBFafB55D9E",
"tokens": ["0x2AcC95758f8b5F583470ba265EB685a8F45fC9D5", "0xef213441A85dF4d7ACbDaE0Cf78004e1E486bB96"],
"tokenOracleIds": ["RIF", "USDT"],
"decimals": [18, 18],
"oracleId": "uniswap-cow-rootstock-rif-rusdt",
"rewardPool": {
"address": "0x82e9dB204D8243538E04958FdAEDFaF21B58D014",
"oracleId": "uniswap-cow-rootstock-rif-rusdt-rp"
}
},
{
"address": "0x5e273560B9DBde75d90EA9340a61f8798C57dCD4",
"lpAddress": "0x6699C20948585B9307024Ae5D940aa6cFd87403D",
"tokens": ["0xe700691dA7b9851F2F35f8b8182c69c53CcaD9Db", "0xef213441A85dF4d7ACbDaE0Cf78004e1E486bB96"],
"tokenOracleIds": ["DOC", "USDT"],
"decimals": [18, 18],
"oracleId": "sushi-cow-rootstock-doc-rusdt",
"rewardPool": {
"address": "0xE055CCfC930E4b702D92dB85EdcEC99c9E441d76",
"oracleId": "sushi-cow-rootstock-doc-rusdt-rp"
},
"vault": {
"address": "0x41c8fDc1f2EB272CB51c224D4C68F277c3C7878B",
"oracleId": "sushi-cow-rootstock-doc-rusdt-vault"
}
},
{
"address": "0xB77db1F96578b04d963a5bA063CfF17CEf55fB1B",
"lpAddress": "0x926D6832eA10672231b251D329BaDaaDe5E6BDb7",
"tokens": ["0x542fDA317318eBF1d3DEAf76E0b632741A7e677d", "0xef213441A85dF4d7ACbDaE0Cf78004e1E486bB96"],
"tokenOracleIds": ["WBTC", "USDT"],
"decimals": [18, 18],
"oracleId": "sushi-cow-rootstock-wrbtc-rusdt",
"rewardPool": {
"address": "0xC007B460999b33D237D89Eed29266191CE4b393E",
"oracleId": "sushi-cow-rootstock-wrbtc-rusdt-rp"
},
"vault": {
"address": "0xe7D3015A4f647F14CDD9c8c95a41FD5ad65cEF7c",
"oracleId": "sushi-cow-rootstock-wrbtc-rusdt-vault"
}
},
{
"address": "0x2ca732484427FC2dB0eAd8EeDEb97869A422845d",
"lpAddress": "0xD29CB356D84Cd9F7f00D44aedea841292cb0f1ED",
"tokens": ["0x1D931Bf8656d795E50eF6D639562C5bD8Ac2B78f", "0x542fDA317318eBF1d3DEAf76E0b632741A7e677d"],
"tokenOracleIds": ["WETH", "WBTC"],
"decimals": [18, 18],
"oracleId": "sushi-cow-rootstock-eths-wrbtc",
"rewardPool": {
"address": "0x0fE958d31C0Aa613A0b08901fB26a7761C5B14f4",
"oracleId": "sushi-cow-rootstock-eths-wrbtc-rp"
},
"vault": {
"address": "0xACA6fEDb6885A455961500A9A2871F4a209669d9",
"oracleId": "sushi-cow-rootstock-eths-wrbtc-vault"
}
}
]

0 comments on commit 4b121d9

Please sign in to comment.