Skip to content

Commit

Permalink
is there a problem occifer?
Browse files Browse the repository at this point in the history
  • Loading branch information
preston4896 committed Feb 20, 2025
1 parent 4192df7 commit 3a854a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions evm/contracts/bases/FeeManagerBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ abstract contract FeeManagerBase {

// 1356a63b
error BP_Not_Valid();
// 1a72054d
error Insuccifient_Funds();
// 9bb42d4b
error Insufficient_Funds();
// c40a532b
error Withdrawal_Failed();

Expand All @@ -27,7 +27,7 @@ abstract contract FeeManagerBase {

function withdraw(address beneficiary, uint256 amount) public virtual {
if (amount > address(this).balance) {
revert Insuccifient_Funds();
revert Insufficient_Funds();
}

_refund(beneficiary, amount);
Expand All @@ -41,7 +41,7 @@ abstract contract FeeManagerBase {
uint256 gasAfter = gasleft();
txFee = ((gasBefore - gasAfter) * tx.gasprice * _feeBP) / MAX_BP;
if (msg.value < txFee) {
revert Insuccifient_Funds();
revert Insufficient_Funds();
}
} else {
_;
Expand Down

0 comments on commit 3a854a3

Please sign in to comment.