Skip to content

Commit 0cf1826

Browse files
committed
remove sendTokensStrict function
1 parent 23e327b commit 0cf1826

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

contracts/libs/TokensHelper.sol

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,6 @@ library TokensHelper {
6161
_sendTokens(tokenAddr_, to_, sentAmount_);
6262
}
6363

64-
/**
65-
* @notice A function to send the exact amount of tokens to the provided address.
66-
* @dev Reverts if balance is insufficient.
67-
* @param tokenAddr_ The token address (`ETH_ADDR` for native ETH).
68-
* @param to_ The recipient address.
69-
* @param amount_ The requested amount to send.
70-
*/
71-
function sendTokensStrict(address tokenAddr_, address to_, uint256 amount_) internal {
72-
uint256 currentBalance_ = getSelfBalance(tokenAddr_);
73-
require(currentBalance_ >= amount_, NotEnoughTokens(tokenAddr_, amount_, currentBalance_));
74-
75-
_sendTokens(tokenAddr_, to_, amount_);
76-
}
77-
7864
/**
7965
* @notice A function to retrieve the balance of this contract for the provided token.
8066
* @param tokenAddr_ The token address (`ETH_ADDR` for native ETH).

0 commit comments

Comments
 (0)