Skip to content

Commit

Permalink
Add silent revert erc20 callout
Browse files Browse the repository at this point in the history
  • Loading branch information
ilikesymmetry committed Oct 16, 2024
1 parent 1ef6d0d commit d70c6a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SpendPermissionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ contract SpendPermissionManager is EIP712 {
///
/// @param spendPermission Details of the spend permission.
///
/// @return currentPeriod Currently active period with spend (struct).
/// @return currentPeriod Currently active period with cumulative spend (struct).
function getCurrentPeriod(SpendPermission memory spendPermission) public view returns (PeriodSpend memory) {
// check current timestamp is within spend permission time range
uint48 currentTimestamp = uint48(block.timestamp);
Expand Down Expand Up @@ -326,6 +326,8 @@ contract SpendPermissionManager is EIP712 {

/// @notice Transfer assets from an account to a recipient.
///
/// @dev Assumes ERC-20 contract will revert if transfer fails. If silently fails, spend still marked as used.
///
/// @param token Address of the token contract.
/// @param account Address of the user account.
/// @param recipient Address of the token recipient.
Expand Down

0 comments on commit d70c6a7

Please sign in to comment.