Skip to content

Commit

Permalink
Added clarification about the maxAmount usage
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
hanzel98 and McOso authored Feb 20, 2025
1 parent 63af391 commit 1b81fca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/enforcers/ERC20StreamingEnforcer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { ModeCode } from "../utils/Types.sol";
* if an attempted transfer exceeds what remains unlocked.
*
* @dev This caveat enforcer only works when the execution is in single mode (`ModeCode.Single`).
* @dev To enable an 'infinite' token stream, set `maxAmount` to type(uint256).max
*/
contract ERC20StreamingEnforcer is CaveatEnforcer {
using ExecutionLib for bytes;
Expand Down

0 comments on commit 1b81fca

Please sign in to comment.