Skip to content

Commit 9e49d83

Browse files
feat: error reporting
1 parent 8a893c1 commit 9e49d83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Util/FeeFlowControllerUtil.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ contract FeeFlowControllerUtil is EVCUtil, ReentrancyGuard {
3232
) external nonReentrant returns (uint256) {
3333
uint256 paymentAmount = FeeFlowController(feeFlowController).getPrice();
3434

35+
if (paymentAmount > maxPaymentTokenAmount) {
36+
revert FeeFlowController.MaxPaymentTokenAmountExceeded();
37+
}
38+
3539
if (paymentAmount > 0) {
3640
SafeERC20.safeTransferFrom(paymentToken, _msgSender(), address(this), paymentAmount);
3741
}

0 commit comments

Comments
 (0)