Skip to content

Commit

Permalink
Merge pull request #3792 from balancer/release-1.115.0
Browse files Browse the repository at this point in the history
Release 1.115.0 (DM)
  • Loading branch information
agualis committed Jul 24, 2023
2 parents e2aab16 + 58f58a3 commit f755397
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@balancer/frontend-v2",
"version": "1.114.36",
"version": "1.115.0",
"engines": {
"node": "=16",
"npm": ">=8"
Expand Down
7 changes: 7 additions & 0 deletions src/lib/config/arbitrum/pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ const pools: Pools = {
'0x45c4d1376943ab28802b995acffc04903eb5223f000000000000000000000470', // wstETH-bb-a-WETH
'0xc6eee8cb7643ec2f05f46d569e9ec8ef8b41b389000000000000000000000475', // bb-a-USD
'0x3fd4954a851ead144c2ff72b1f5a38ea5976bd54000000000000000000000480', // ankreth/wsteth
'0x9cebf13bb702f253abf1579294694a1edad00eaa000000000000000000000486', // bb-a-usdc/bb-a-usdc.e
'0x4a2f6ae7f3e5d715689530873ec35593dc28951b000000000000000000000481', // reth/cbeth/wseth
'0xa8af146d79ac0bb981e4e0d8b788ec5711b1d5d000000000000000000000047b', // dai+/usd+
'0xd6d20527c7b0669989ee082b9d3a1c63af742290000000000000000000000483', // dola/usd+
],
},
Investment: {
Expand Down Expand Up @@ -256,6 +260,9 @@ const pools: Pools = {
'0xbe0f30217be1e981add883848d0773a86d2d2cd4000000000000000000000471', // rETH-bb-a-WETH
'0x45c4d1376943ab28802b995acffc04903eb5223f000000000000000000000470', // wstETH-bb-a-WETH
'0xc6eee8cb7643ec2f05f46d569e9ec8ef8b41b389000000000000000000000475', // bb-a-USD
'0xa8af146d79ac0bb981e4e0d8b788ec5711b1d5d000000000000000000000047b', // dai+/usd+
'0xd6d20527c7b0669989ee082b9d3a1c63af742290000000000000000000000483', // dola/usd+
'0x9cebf13bb702f253abf1579294694a1edad00eaa000000000000000000000486', // bb-a-usdc/bb-a-usdc.e
],
Deprecated: {
// '0x178e029173417b1f9c8bc16dcec6f697bc323746000200000000000000000158': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ export class ExactInExitHandler implements ExitPoolHandler {

if (!sdkPool) throw new Error('Failed to find pool: ' + this.pool.value.id);
if (!tokenOut)
throw new Error('Could not find exit token in pool tokens list.');
throw new Error(
'Could not find exit token in pool tokens list: ' +
amountsOut[0].address +
' allTokens: ' +
JSON.stringify(Object.keys(tokenInfo))
);

const isSingleTokenExit = amountsOut.length === 1;
const evmBptIn = parseFixed(bptIn, 18).toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ export class ExactOutExitHandler implements ExitPoolHandler {

if (!sdkPool) throw new Error('Failed to find pool: ' + this.pool.value.id);
if (!tokenOut)
throw new Error('Could not find exit token in pool tokens list.');
throw new Error(
'Could not find exit token in pool tokens list: ' +
amountsOut[0].address +
' allTokens: ' +
JSON.stringify(Object.keys(tokenInfo))
);

const tokenOutAddress = formatAddressForSor(tokenOut.address);
const nativeAssetExit = isSameAddress(tokenOutAddress, POOLS.ZeroAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getTimestampSecondsFromNow } from '@/composables/useTime';
import { POOLS } from '@/constants/pools';
import { NATIVE_ASSET_ADDRESS } from '@/constants/tokens';
import { fetchPoolsForSor, hasFetchedPoolsForSor } from '@/lib/balancer.sdk';
import { bnum, isSameAddress } from '@/lib/utils';
import { bnum, isSameAddress, selectByAddress } from '@/lib/utils';
import { Pool } from '@/services/pool/types';
import { BalancerSDK, SwapInfo } from '@balancer-labs/sdk';
import { TransactionResponse } from '@ethersproject/abstract-provider';
Expand Down Expand Up @@ -56,7 +56,7 @@ export class SwapJoinHandler implements JoinPoolHandler {
throw new Error('Missing amounts to join with.');

const amountIn = amountsIn[0];
const tokenIn = tokensIn[amountIn.address];
const tokenIn = selectByAddress(tokensIn, amountIn.address);
if (!tokenIn) throw new Error('Missing critical token metadata.');
if (!amountIn.value || bnum(amountIn.value).eq(0))
return { bptOut: '0', priceImpact: 0 };
Expand Down

1 comment on commit f755397

@vercel
Copy link

@vercel vercel bot commented on f755397 Jul 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.