Skip to content

Commit

Permalink
added cold storage optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
sarangparikh22 committed Oct 3, 2022
1 parent 86e9a40 commit 88f6a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/TridentRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ contract TridentRouter is ITridentRouter, SelfPermit, Multicall {
bento.transfer(token, address(this), recipient, shares);
} else {
uint256 amount = IERC20(token).balanceOf(address(this));
token == USE_NATIVE ? recipient.safeTransferETH(address(this).balance) : token.safeTransfer(recipient, amount);
token == USE_NATIVE ? recipient.safeTransferETH(address(this).balance - 1) : token.safeTransfer(recipient, amount - 1);
}
}

Expand Down

0 comments on commit 88f6a61

Please sign in to comment.