Skip to content

Commit

Permalink
fix: Remove unnecessary balanceOf (gas)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximebrugel committed Nov 30, 2021
1 parent 7653dfd commit 0f5a8db
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contracts/NestedBuybacker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ contract NestedBuybacker is Ownable {
if (feeSplitter.getAmountDue(address(this), _sellToken) > 0) {
claimFees(_sellToken);
}

uint256 balance = _sellToken.balanceOf(address(this));
ExchangeHelpers.fillQuote(_sellToken, _swapTarget, _swapCallData);
trigger();
emit BuybackTriggered(_sellToken);
Expand Down

0 comments on commit 0f5a8db

Please sign in to comment.