Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(contracts): tidy up typos #1820

Closed
wants to merge 9 commits into from
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
Loading