diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e114b9f..f5308f4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # backend +## 1.20.6 + +### Patch Changes + +- 0cb9214: adding Aave lUSD and crvUSD APRs +- 1c9aa5b: use default rpc url for fetching svEth APR data +- a0d5b42: use subgraph deployment if for zkevm +- dd3e100: Enable sdBal stable pool. + ## 1.20.5 ### Patch Changes diff --git a/config/mainnet.ts b/config/mainnet.ts index 793c1738..bc9e378e 100644 --- a/config/mainnet.ts +++ b/config/mainnet.ts @@ -8,6 +8,8 @@ const underlyingTokens = { USDT: '0xdac17f958d2ee523a2206206994597c13d831ec7', DAI: '0x6b175474e89094c44da98b954eedeac495271d0f', wETH: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', + crvUSD: '0xf939e0a03fb07f59a73314e73794be0e57ac1b4e', + LUSD: '0x5f98805a4e8be255a32880fdec7f6728c6568ba0', }; export default { @@ -173,6 +175,20 @@ export default { stataEthWETH: '0x03928473f25bb2da6bc880b07ecbadc636822264', }, }, + crvUSD: { + underlyingAssetAddress: underlyingTokens.crvUSD, + aTokenAddress: '0xb82fa9f31612989525992fcfbb09ab22eff5c85a', + wrappedTokens: { + stataEthcrvUSD: '0x848107491e029afde0ac543779c7790382f15929', + }, + }, + LUSD: { + underlyingAssetAddress: underlyingTokens.LUSD, + aTokenAddress: '0x3fe6a295459fae07df8a0cecc36f37160fe86aa9', + wrappedTokens: { + stataEthLUSD: '0xdbf5e36569798d1e39ee9d7b1c61a7409a74f23a', + }, + }, }, }, }, diff --git a/config/zkevm.ts b/config/zkevm.ts index 802e2a6a..ea948a5f 100644 --- a/config/zkevm.ts +++ b/config/zkevm.ts @@ -12,7 +12,9 @@ export default { }, subgraphs: { startDate: '2023-05-17', - balancer: [`https://api.studio.thegraph.com/query/24660/balancer-polygon-zk-v2/version/latest`], + balancer: [ + `https://gateway-arbitrum.network.thegraph.com/api/${env.THEGRAPH_API_KEY_BALANCER}/deployments/id/QmVNcphdNjTCaJ4ammPtFzRyD4gmyNBomKcVFZ98RADpS1`, + ], beetsBar: 'https://', blocks: 'https://api.studio.thegraph.com/query/48427/bleu-polygon-zkevm-blocks/version/latest', gauge: `https://api.studio.thegraph.com/query/24660/balancer-gauges-polygon-zk/version/latest`, diff --git a/modules/pool/lib/apr-data-sources/yb-apr-handlers/sources/sv-eth.ts b/modules/pool/lib/apr-data-sources/yb-apr-handlers/sources/sv-eth.ts index 62ef79bd..8b20ca4f 100644 --- a/modules/pool/lib/apr-data-sources/yb-apr-handlers/sources/sv-eth.ts +++ b/modules/pool/lib/apr-data-sources/yb-apr-handlers/sources/sv-eth.ts @@ -1,10 +1,11 @@ import { createPublicClient, formatEther, http, parseAbi } from 'viem'; import { mainnet } from 'viem/chains'; import type { AprHandler } from '../'; +import config from '../../../../../../config/mainnet'; const client = createPublicClient({ chain: mainnet, - transport: http('https://rpc.eth.gateway.fm'), + transport: http(config.rpcUrl), }); const distributor = '0xc93ab6aca2c14422a65a31010ac2b4baa86a21b3' as `0x${string}`; diff --git a/modules/sor/sorV2/lib/static.ts b/modules/sor/sorV2/lib/static.ts index 8c4e56c9..6bfdafd8 100644 --- a/modules/sor/sorV2/lib/static.ts +++ b/modules/sor/sorV2/lib/static.ts @@ -39,7 +39,12 @@ export async function sorGetPathsWithPools( case 'STABLE': // Since we allowed all the pools, we started getting BAL#322 errors // Enabling pools one by one until we find the issue - if (prismaPool.id === '0x3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249') { + if ( + [ + '0x3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249', // auraBal/8020 + '0x2d011adf89f0576c9b722c28269fcb5d50c2d17900020000000000000000024d', // sdBal/8020 + ].includes(prismaPool.id) + ) { basePools.push(StablePool.fromPrismaPool(prismaPool)); } break; diff --git a/package.json b/package.json index 4739e5ec..da6c4691 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "backend", - "version": "1.20.5", + "version": "1.20.6", "description": "Backend service for Beethoven X and Balancer", "repository": "https://github.com/balancer/backend", "author": "Beethoven X",