Skip to content

Commit

Permalink
Hotfix/1.13.4 (#697)
Browse files Browse the repository at this point in the history
* Return false in isStETH if token strings are empty.

* Update version.
  • Loading branch information
John Grant authored Aug 17, 2021
1 parent 2d55a37 commit ecf88ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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-labs/frontend-v2",
"version": "1.13.3",
"version": "1.13.4",
"engines": {
"node": "14.x",
"npm": ">=7"
Expand Down
2 changes: 2 additions & 0 deletions src/lib/utils/balancer/lido.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { BigNumberish, Contract } from 'ethers';
import { getAddress } from 'ethers/lib/utils';

export function isStETH(tokenInAddress: string, tokenOutAddress: string) {
if (!tokenInAddress || !tokenOutAddress) return false;

return [tokenInAddress, tokenOutAddress]
.map(getAddress)
.includes(getAddress(configService.network.addresses.stETH));
Expand Down

2 comments on commit ecf88ff

@vercel
Copy link

@vercel vercel bot commented on ecf88ff Aug 17, 2021

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

app – ./

app-git-master-balancer.vercel.app
app.balancer.fi
app-balancer.vercel.app
pm2.vercel.app

@vercel
Copy link

@vercel vercel bot commented on ecf88ff Aug 17, 2021

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.