diff --git a/contracts/core/src/pkg/XGasPump.sol b/contracts/core/src/pkg/XGasPump.sol index b43c1703b..42a527e77 100644 --- a/contracts/core/src/pkg/XGasPump.sol +++ b/contracts/core/src/pkg/XGasPump.sol @@ -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; diff --git a/contracts/core/src/token/OmniGasPump.sol b/contracts/core/src/token/OmniGasPump.sol index 685b1bc6a..1ee474c2c 100644 --- a/contracts/core/src/token/OmniGasPump.sol +++ b/contracts/core/src/token/OmniGasPump.sol @@ -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.