From 3caaa659fe663aafd17d2a6ec38158cb740f9a68 Mon Sep 17 00:00:00 2001 From: fabtreb <70035807+fabtreb@users.noreply.github.com> Date: Wed, 4 Sep 2024 13:18:22 +0200 Subject: [PATCH] chore(contracts): fix typo --- contracts/core/src/pkg/XGasPump.sol | 4 ++-- contracts/core/src/token/OmniGasPump.sol | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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.