Skip to content

Commit

Permalink
Add Aura Arbitrum Pools
Browse files Browse the repository at this point in the history
  • Loading branch information
MirthFutures committed Aug 9, 2023
1 parent 7b67bc3 commit 7d96af0
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 4 deletions.
80 changes: 80 additions & 0 deletions packages/address-book/address-book/arbitrum/tokens/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,19 @@ const _tokens = {
logoURI: '',
documentation: 'https://ethereum.org/en/developers/docs/',
},
bbaaWETHV2: {
name: 'Balancer Aave WETH Linear Pool',
symbol: 'bbaaWETHV2',
address: '0xaD28940024117B442a9EFB6D0f25C8B59e1c950B',
chainId: 42161,
decimals: 18,
website: 'https://weth.io/',
description:
'Balancer Boosted Aave ETH. Ether or ETH is the native currency built on the Ethereum blockchain.',
bridge: 'arbitrum-canonical',
logoURI: '',
documentation: 'https://ethereum.org/en/developers/docs/',
},
rETH: {
name: 'Rocket Pool ETH',
symbol: 'rETH',
Expand Down Expand Up @@ -892,6 +905,20 @@ const _tokens = {
'Balancer linear pool that consist of 50/50 USDT and wrapped Aave Interest Bearing USDT.',
bridge: 'native',
},
bbaaUSDTV2: {
name: 'Balancer Aave USDT Linear Pool',
symbol: 'bbaaUSDTV2',
address: '0xc46be4B8Bb6B5A3d3120660efae9C5416318ED40',
chainId: 42161,
decimals: 18,
logoURI:
'https://tokens.pancakeswap.finance/images/0x4988a896b1227218e4A686fdE5EabdcAbd91571f.svg',
website: 'https://app.balancer.fi/#/',
documentation: 'https://docs.balancer.fi/products/balancer-pools/boosted-pools',
description:
'Balancer linear pool that consist of 50/50 USDT and wrapped Aave Interest Bearing USDT.',
bridge: 'native',
},
aaUSDC: {
name: 'Aave USDC',
symbol: 'aaUSDC',
Expand Down Expand Up @@ -932,6 +959,20 @@ const _tokens = {
'Balancer linear pool that consist of 50/50 USDC and wrapped Aave Interest Bearing USDC.',
bridge: 'arbitrum-canonical',
},
bbaaUSDCV2: {
name: 'Balancer Aave USDC Linear Pool',
symbol: 'bbaaUSDCV2',
address: '0xbD724Eb087d4cc0f61a5fED1fFFaF937937E14DE',
chainId: 42161,
decimals: 18,
logoURI:
'https://tokens.pancakeswap.finance/images/0x4988a896b1227218e4A686fdE5EabdcAbd91571f.svg',
website: 'https://app.balancer.fi/#/',
documentation: 'https://docs.balancer.fi/products/balancer-pools/boosted-pools',
description:
'Balancer linear pool that consist of 50/50 USDC and wrapped Aave Interest Bearing USDC.',
bridge: 'arbitrum-canonical',
},
aaDAI: {
name: 'Aave DAI',
symbol: 'aaDAI',
Expand Down Expand Up @@ -972,6 +1013,20 @@ const _tokens = {
'Balancer linear pool that consist of 50/50 DAI and wrapped Aave Interest Bearing DAI.',
bridge: 'dai',
},
bbaaDAIV2: {
name: 'Balancer Aave DAI Linear Pool',
symbol: 'bbaaDAIV2',
address: '0x6CB787a419c3e6Ee2e9FF365856c29CD10659113',
chainId: 42161,
decimals: 18,
logoURI:
'https://tokens.pancakeswap.finance/images/0x4988a896b1227218e4A686fdE5EabdcAbd91571f.svg',
website: 'https://app.balancer.fi/#/',
documentation: 'https://docs.balancer.fi/products/balancer-pools/boosted-pools',
description:
'Balancer linear pool that consist of 50/50 DAI and wrapped Aave Interest Bearing DAI.',
bridge: 'dai',
},
bbaaUSD: {
name: 'Balancer Aave Stable Composable Pool',
symbol: 'bbaaUSD',
Expand All @@ -985,6 +1040,31 @@ const _tokens = {
description:
'Balancer composable pool that consist of bbaUSDT, bbaUSDC, and bbaDAI. bbTokens are Aave boosted linear pools.',
},
bbaaUSDV2: {
name: 'Balancer Aave Stable Composable Pool',
symbol: 'bbaaUSDV2',
address: '0xc6EeE8cb7643eC2F05F46d569e9eC8EF8b41b389',
chainId: 42161,
decimals: 18,
logoURI:
'https://tokens.pancakeswap.finance/images/0x4988a896b1227218e4A686fdE5EabdcAbd91571f.svg',
website: 'https://app.balancer.fi/#/',
documentation: 'https://docs.balancer.fi/products/balancer-pools/boosted-pools',
description:
'Balancer composable pool that consist of bbaUSDT, bbaUSDC, and bbaDAI. bbTokens are Aave boosted linear pools.',
},
auraBAL: {
name: 'Aura Staked BAL BPT',
symbol: 'auraBAL',
address: '0x223738a747383d6F9f827d95964e4d8E8AC754cE',
chainId: 42161,
decimals: 18,
website: 'https://aura.finance/',
description: "auraBAL is Aura's liquid staking locked BAL (80 BAL / 20 ETH) BPT",
bridge: 'layer-zero',
logoURI: '',
documentation: 'https://docs.aura.finance/aura/what-is-aura/for-usdbal-stakers',
},
} as const;

export const tokens: ConstRecord<typeof _tokens, Token> = _tokens;
5 changes: 1 addition & 4 deletions src/api/stats/common/balancer/getAuraApys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,7 @@ const getComposableAaveYield = async (
params.chainId
);
supplyRateCalls.push(dataProvider.read.getReserveData([t.address as `0x${string}`]));

if (tokens.length > 1) {
tokenQtyCalls.push(balVault.read.getPoolTokens([t.poolId as `0x${string}`]));
}
tokenQtyCalls.push(balVault.read.getPoolTokens([t.poolId as `0x${string}`]));
});

const [supplyRateResults, tokenQtyResults] = await Promise.all([
Expand Down
238 changes: 238 additions & 0 deletions src/data/arbitrum/auraLpPools.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,242 @@
[
{
"name": "aura-dola-usdc",
"address": "0x8bc65Eed474D1A00555825c91FeAb6A8255C2107",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"gauge": "0xAc7025Dec5E216025C76414f6ac1976227c20Ff0",
"vaultPoolId": "0x8bc65eed474d1a00555825c91feab6a8255c2107000000000000000000000453",
"composable": true,
"bptIndex": 1,
"decimals": "1e18",
"rewards": [
{
"rewardGauge": "0x11A3317F7A08F4f247b19914beeCc817B0F033CC",
"oracleId": "ARB",
"decimals": "1e18"
}
],
"tokens": [
{
"oracle": "tokens",
"oracleId": "DOLA",
"decimals": "1e18"
},
{
"oracleId": "BPTToken"
},
{
"oracle": "tokens",
"oracleId": "USDC",
"decimals": "1e6"
}
]
},
{
"name": "aura-aurabal-wsteth",
"address": "0xc7FA3A3527435720f0e2a4c1378335324dd4F9b3",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"gauge": "0x1597010ffE2e25a584D9705C1e48585BbfE56fC0",
"vaultPoolId": "0xc7fa3a3527435720f0e2a4c1378335324dd4f9b3000200000000000000000459",
"lsUrl": "https://eth-api.lido.fi/v1/protocol/steth/apr/sma",
"lsIndex": 1,
"dataPath": "$.data.smaApr",
"balancerChargesFee": true,
"decimals": "1e18",
"rewards": [
{
"rewardGauge": "0x7Ee4Dc875Dbd5f8f864E7E3EE93Af862316bb3E0",
"oracleId": "ARB",
"decimals": "1e18"
}
],
"tokens": [
{
"oracle": "tokens",
"oracleId": "auraBAL",
"decimals": "1e18"
},
{
"oracle": "tokens",
"oracleId": "wstETH",
"decimals": "1e18"
}
]
},
{
"name": "aura-bbaaUSD-v2",
"address": "0xc6EeE8cb7643eC2F05F46d569e9eC8EF8b41b389",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"gauge": "0x237c47c7A0c4236049B872A6972Cfc0729B0D362",
"vaultPoolId": "0xc6eee8cb7643ec2f05f46d569e9ec8ef8b41b389000000000000000000000475",
"decimals": "1e18",
"chainId": 42161,
"beefyFee": 0.095,
"composable": true,
"balancerChargesFee": true,
"includesComposableAaveTokens": true,
"bbIndex": 3,
"bbPoolId": "0xc6eee8cb7643ec2f05f46d569e9ec8ef8b41b389000000000000000000000475",
"bptIndex": 3,
"rewards": [
{
"rewardGauge": "0xA1e0995d95367Dd20A01992A6a0BC0de96dF628C",
"oracleId": "ARB",
"decimals": "1e18"
}
],
"tokens": [
{
"oracle": "tokens",
"oracleId": "bbaaDAIV2",
"decimals": "1e18"
},
{
"oracle": "tokens",
"oracleId": "bbaaUSDCV2",
"decimals": "1e18"
},
{
"oracle": "tokens",
"oracleId": "bbaaUSDTV2",
"decimals": "1e18"
},
{
"oracleId": "BPTToken"
}
],
"aaveUnderlying": [
{
"address": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
"index": 0,
"bbIndex": 0,
"poolId": "0x6cb787a419c3e6ee2e9ff365856c29cd10659113000000000000000000000474"
},
{
"address": "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
"index": 0,
"bbIndex": 0,
"poolId": "0xbd724eb087d4cc0f61a5fed1fffaf937937e14de000000000000000000000473"
},
{
"address": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
"index": 0,
"bbIndex": 0,
"poolId": "0xc46be4b8bb6b5a3d3120660efae9c5416318ed40000000000000000000000472"
}
]
},
{
"name": "aura-wsteth-bbaweth-v2",
"address": "0x45C4D1376943Ab28802B995aCfFC04903Eb5223f",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"gauge": "0x10dCf485EA947faf9A9B819A2d3207323d0c72Ca",
"vaultPoolId": "0x45c4d1376943ab28802b995acffc04903eb5223f000000000000000000000470",
"includesComposableAaveTokens": true,
"lsUrl": "https://eth-api.lido.fi/v1/protocol/steth/apr/sma",
"dataPath": "$.data.smaApr",
"balancerChargesFee": true,
"composable": true,
"bptIndex": 0,
"bbIndex": 1,
"bbPoolId": "0xad28940024117b442a9efb6d0f25c8b59e1c950b00000000000000000000046f",
"lsIndex": 0,
"cmpIndex": 1,
"composableSplit": true,
"decimals": "1e18",
"rewards": [
{
"rewardGauge": "0xF92742849BCE8fB77349FB0EB851d94686628c93",
"oracleId": "ARB",
"decimals": "1e18"
}
],
"tokens": [
{
"oracleId": "BPTToken"
},
{
"oracle": "tokens",
"oracleId": "wstETH",
"decimals": "1e18"
},
{
"oracle": "tokens",
"oracleId": "bbaaWETHV2",
"decimals": "1e18"
}
],
"aaveUnderlying": [
{
"address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
"index": 0,
"bbIndex": 0,
"poolId": "0xad28940024117b442a9efb6d0f25c8b59e1c950b00000000000000000000046f"
}
]
},
{
"name": "aura-reth-bbaweth-v2",
"address": "0xbe0f30217be1e981add883848d0773a86d2d2cd4",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"gauge": "0x644C71365877E2947d77043473848F74e9D72f68",
"vaultPoolId": "0xbe0f30217be1e981add883848d0773a86d2d2cd4000000000000000000000471",
"includesComposableAaveTokens": true,
"lsUrl": "https://api.rocketpool.net/api/apr",
"dataPath": "$.yearlyAPR",
"balancerChargesFee": true,
"composable": true,
"bptIndex": 1,
"bbIndex": 0,
"bbPoolId": "0xad28940024117b442a9efb6d0f25c8b59e1c950b00000000000000000000046f",
"lsIndex": 1,
"cmpIndex": 0,
"composableSplit": true,
"decimals": "1e18",
"rewards": [
{
"rewardGauge": "0xd1A559D60f608217176A167372477ba9b3cA4C18",
"oracleId": "ARB",
"decimals": "1e18"
}
],
"tokens": [
{
"oracle": "tokens",
"oracleId": "bbaaWETHV2",
"decimals": "1e18"
},
{
"oracleId": "BPTToken"
},
{
"oracle": "tokens",
"oracleId": "rETH",
"decimals": "1e18"
}
],
"aaveUnderlying": [
{
"address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
"index": 0,
"bbIndex": 0,
"poolId": "0xad28940024117b442a9efb6d0f25c8b59e1c950b00000000000000000000046f"
}
]
},
{
"name": "balancer-tbtc-weth",
"address": "0xc9f52540976385a84bf416903e1ca3983c539e34",
"vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"gauge": "0x9626e4d2b444f386fd63181f65dfeb8d141e1824",
"vaultPoolId": "0xc9f52540976385a84bf416903e1ca3983c539e34000200000000000000000434",
"decimals": "1e18",
"rewards": [
{
"rewardGauge": "0x48DfE3A8436FED9B4e712aF93Ffa26E3e1091527",
"oracleId": "ARB",
"decimals": "1e18"
}
],
"tokens": [
{
"oracle": "tokens",
Expand All @@ -28,6 +259,13 @@
"composable": true,
"bptIndex": 1,
"decimals": "1e18",
"rewards": [
{
"rewardGauge": "0x17705667E39cDCD861559D8d84f8D76259818350",
"oracleId": "ARB",
"decimals": "1e18"
}
],
"tokens": [
{
"oracle": "tokens",
Expand Down
Loading

0 comments on commit 7d96af0

Please sign in to comment.