Skip to content

Commit

Permalink
docs(permit2): update warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Sep 15, 2023
1 parent e6da407 commit 77c967a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions contracts/BaseBundler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ abstract contract BaseBundler is BaseSelfMulticall, BaseCallbackReceiver {
}

/// @notice Transfers the minimum between the given `amount` and the bundler's balance of native asset from the
/// bundler
/// to `recipient`.
/// bundler to `recipient`.
function transferNative(address recipient, uint256 amount) external payable {
require(recipient != address(0), ErrorsLib.ZERO_ADDRESS);
require(recipient != address(this), ErrorsLib.BUNDLER_ADDRESS);
Expand Down
7 changes: 3 additions & 4 deletions contracts/Permit2Bundler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ abstract contract Permit2Bundler is BaseBundler {
/* ACTIONS */

/// @notice Approves the given `amount` of `asset` from sender to be spent by this contract via Permit2 with the
/// given
/// `deadline` & EIP712 `signature`.
/// Should only be called via the bundler's `multicall` function.
/// given `deadline` & EIP-712 `signature`.
/// @notice Warning: should only be called via the bundler's `multicall` function.
function approve2(address asset, uint256 amount, uint256 deadline, Signature calldata signature) external payable {
require(amount != 0, ErrorsLib.ZERO_AMOUNT);

Expand All @@ -30,7 +29,7 @@ abstract contract Permit2Bundler is BaseBundler {

/// @notice Transfers the given `amount` of `asset` from sender to this contract via ERC20 transfer with Permit2
/// fallback.
/// Should only be called via the bundler's `multicall` function.
/// @notice Warning: should only be called via the bundler's `multicall` function.
function transferFrom2(address asset, uint256 amount) external payable {
require(amount != 0, ErrorsLib.ZERO_AMOUNT);

Expand Down

0 comments on commit 77c967a

Please sign in to comment.