Skip to content

Commit

Permalink
docs: added comments suggesting users to use selfPermitERC721IfNecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
chefburger committed Jul 15, 2024
1 parent 2414b0d commit 4b9b8d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interfaces/ISelfPermitERC721.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ interface ISelfPermitERC721 {

/// @notice Permits this contract to spend a given token from `msg.sender`
/// @dev The `owner` is always msg.sender and the `spender` is always address(this).
/// Please always use selfPermitERC721IfNecessary if possible prevent calls from failing due to a frontrun of a call to #selfPermitERC721.
/// For details check https://github.com/pancakeswap/pancake-v4-periphery/pull/62#discussion_r1675410282
/// @param token The address of the token spent
/// @param tokenId The token ID of the token spent
/// @param deadline A timestamp, the current blocktime must be less than or equal to this timestamp
Expand Down

0 comments on commit 4b9b8d4

Please sign in to comment.