Skip to content

Commit

Permalink
fix: rm unused balance query
Browse files Browse the repository at this point in the history
  • Loading branch information
wei3erHase committed May 10, 2024
1 parent 179d724 commit 3264c37
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/contracts/BPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ contract BPool is BBronze, BToken, BMath {
Record storage inRecord = _records[address(tokenIn)];
Record storage outRecord = _records[address(tokenOut)];

uint256 tokenInBalance = IERC20(tokenIn).balanceOf(address(this));
uint256 tokenOutBalance = IERC20(tokenOut).balanceOf(address(this));

require(tokenAmountOut <= bmul(tokenOutBalance, MAX_OUT_RATIO), 'ERR_MAX_OUT_RATIO');
Expand Down

0 comments on commit 3264c37

Please sign in to comment.