Skip to content

Commit e443724

Browse files
authored
Merge pull request #37 from liquid-labs-inc/audit/spell-fix
spell fixes for remediations
2 parents e105c8e + 6d0856b commit e443724

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

contracts/clob/ICLOBManager.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface ICLOBManager {
3838
function maxNumOrders() external view returns (uint256);
3939
function operatorApprovals(address account, address operator) external view returns (bool);
4040
function allowedOperators(address operator) external view returns (bool);
41-
function isMarket(address marekt) external view returns (bool);
41+
function isMarket(address market) external view returns (bool);
4242
function getMarketAddress(address quoteToken, address baseToken, ConfigParams memory params)
4343
external
4444
view

contracts/launchpad/Launchpad.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ contract Launchpad is Ownable, ReentrancyGuard, ILaunchpad {
5555
/// @dev sig: 0xc7022a01
5656
error MissingCredits();
5757
/// @dev sig: 0x291d2f2b
58-
error BondingIncative();
58+
error BondingInactive();
5959
/// @dev sig: 0x9c8d2cd2
6060
error InvalidRecipient();
6161
/// @dev sig: 0x6f156a5e
@@ -219,7 +219,7 @@ contract Launchpad is Ownable, ReentrancyGuard, ILaunchpad {
219219
LaunchData memory data = launches[token];
220220

221221
if (!data.active) {
222-
revert BondingIncative();
222+
revert BondingInactive();
223223
}
224224

225225
uint256 nextAmountSold = data.baseSoldFromCurve + amountOutBase;
@@ -308,7 +308,7 @@ contract Launchpad is Ownable, ReentrancyGuard, ILaunchpad {
308308
LaunchData memory data = launches[token];
309309

310310
if (!data.active) {
311-
revert BondingIncative();
311+
revert BondingInactive();
312312
}
313313

314314
uint256 nextAmountSold = data.baseSoldFromCurve - amountInBase;

test/launchpad/Launchpad.t.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ contract LaunchpadTest is ApproxCurveVaryingStepsTest {
9393
launchpad.buy(address(token), address(this), launchpad.BONDING_SUPPLY(), 80_000e18);
9494

9595
// Try buying/selling a token thats already graduated
96-
vm.expectRevert(abi.encodeWithSelector(Launchpad.BondingIncative.selector));
96+
vm.expectRevert(abi.encodeWithSelector(Launchpad.BondingInactive.selector));
9797
launchpad.buy(address(token), address(this), 0, 0);
98-
vm.expectRevert(abi.encodeWithSelector(Launchpad.BondingIncative.selector));
98+
vm.expectRevert(abi.encodeWithSelector(Launchpad.BondingInactive.selector));
9999
launchpad.sell(address(token), address(this), 0, 0);
100100

101101
// Try buying/selling a token that doesnt exist yet
102-
vm.expectRevert(abi.encodeWithSelector(Launchpad.BondingIncative.selector));
102+
vm.expectRevert(abi.encodeWithSelector(Launchpad.BondingInactive.selector));
103103
launchpad.buy(address(1), address(this), 0, 0);
104-
vm.expectRevert(abi.encodeWithSelector(Launchpad.BondingIncative.selector));
104+
vm.expectRevert(abi.encodeWithSelector(Launchpad.BondingInactive.selector));
105105
launchpad.sell(address(1), address(this), 0, 0);
106106
}
107107

0 commit comments

Comments
 (0)