Skip to content

Commit

Permalink
Merge pull request #969 from balancer/v3-canary
Browse files Browse the repository at this point in the history
publish to prod
  • Loading branch information
franzns committed Sep 24, 2024
2 parents 469f24b + 3db7478 commit 37b4121
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 16 additions & 0 deletions config/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const underlyingTokens = {
USDT: '0xdac17f958d2ee523a2206206994597c13d831ec7',
DAI: '0x6b175474e89094c44da98b954eedeac495271d0f',
wETH: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
crvUSD: '0xf939e0a03fb07f59a73314e73794be0e57ac1b4e',
LUSD: '0x5f98805a4e8be255a32880fdec7f6728c6568ba0',
};

export default <NetworkData>{
Expand Down Expand Up @@ -173,6 +175,20 @@ export default <NetworkData>{
stataEthWETH: '0x03928473f25bb2da6bc880b07ecbadc636822264',
},
},
crvUSD: {
underlyingAssetAddress: underlyingTokens.crvUSD,
aTokenAddress: '0xb82fa9f31612989525992fcfbb09ab22eff5c85a',
wrappedTokens: {
stataEthcrvUSD: '0x848107491e029afde0ac543779c7790382f15929',
},
},
LUSD: {
underlyingAssetAddress: underlyingTokens.LUSD,
aTokenAddress: '0x3fe6a295459fae07df8a0cecc36f37160fe86aa9',
wrappedTokens: {
stataEthLUSD: '0xdbf5e36569798d1e39ee9d7b1c61a7409a74f23a',
},
},
},
},
},
Expand Down
4 changes: 3 additions & 1 deletion config/zkevm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default <NetworkData>{
},
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`,
Expand Down
Original file line number Diff line number Diff line change
@@ -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}`;
Expand Down
7 changes: 6 additions & 1 deletion modules/sor/sorV2/lib/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 37b4121

Please sign in to comment.