Skip to content

Commit

Permalink
chore(contracts): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fabtreb committed Sep 4, 2024
1 parent fd133db commit 3caaa65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/core/src/pkg/XGasPump.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ abstract contract XGasPump {
}

function _fillUpOrRefund(address refundTo, address recipient, uint256 amtETH) internal {
(, bool succes, string memory reason) = omniGasPump.dryFillUp(amtETH);
(, bool success, string memory reason) = omniGasPump.dryFillUp(amtETH);

if (!succes) {
if (!success) {
emit Refunded(refundTo, amtETH, reason);
payable(refundTo).transfer(amtETH);
return;
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/src/token/OmniGasPump.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ contract OmniGasPump is XAppUpgradeable, OwnableUpgradeable, PausableUpgradeable
/// @notice Max amt (in native token) that can be swapped in a single tx
uint256 public maxSwap;

/// @notice Percentage toll taken by this contract for each swap, to disencentivize spamming
/// @notice Percentage toll taken by this contract for each swap, to disincentivize spamming
uint256 public toll;

/// @notice Map recipient to total owed (sum of historical fillUps()), denominated in OMNI.
Expand Down

0 comments on commit 3caaa65

Please sign in to comment.