Skip to content

Commit

Permalink
✨ fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cmontecoding committed Oct 29, 2024
1 parent 2da28f3 commit ed0f2ec
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 21 deletions.
5 changes: 2 additions & 3 deletions src/AuctionFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ contract AuctionFactory {
/// @notice Starting bid amount used for all auctions
uint256 public startingBid;

/// @notice thrown when attempting to update the
/// @notice thrown when attempting to update the
/// bidBuffer or startingBid when caller is not the Kwenta pDAO
error OnlyPDAO();

Expand Down Expand Up @@ -86,8 +86,7 @@ contract AuctionFactory {
Auction(clone).initialize(
_owner, _usdc, _kwenta, startingBid, bidBuffer
);
newAuction =
new Auction(_owner, _usdc, _kwenta, startingBid, bidBuffer);
newAuction = new Auction(_owner, _usdc, _kwenta, startingBid, bidBuffer);
auctions.push(address(newAuction));

emit AuctionCreated(
Expand Down
4 changes: 2 additions & 2 deletions src/KSXVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ contract KSXVault is ERC4626, Ownable, Initializable {
address receiver
)
public
checkAuction
virtual
override
checkAuction
returns (uint256)
{
uint256 shares = super.deposit(assets, receiver);
Expand Down Expand Up @@ -279,9 +279,9 @@ contract KSXVault is ERC4626, Ownable, Initializable {
address owner
)
public
checkAuction
virtual
override
checkAuction
returns (uint256)
{
uint256 assets = previewRedeem(shares);
Expand Down
4 changes: 3 additions & 1 deletion test/KSXVault.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,9 @@ contract KSXVaultAuctionTest is KSXVaultTest {
test_isAuctionReady_next_week();
}

function testFuzzStartTime_isAuctionReady_next_week_buffer(uint128 startTime)
function testFuzzStartTime_isAuctionReady_next_week_buffer(
uint128 startTime
)
public
{
fuzzStartTime(startTime);
Expand Down
3 changes: 2 additions & 1 deletion test/utils/Bootstrap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import {
Setup
} from "script/Deploy.s.sol";
import {KSXVault} from "src/KSXVault.sol";
import {KSXVaultInternals} from "test/utils/KSXVaultInternals.sol";

import {Constants} from "test/utils/Constants.sol";
import {KSXVaultInternals} from "test/utils/KSXVaultInternals.sol";

contract Bootstrap is Test, Constants {

Expand Down
30 changes: 16 additions & 14 deletions test/utils/KSXVaultInternals.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ pragma solidity 0.8.25;

import {KSXVault} from "../../src/KSXVault.sol";

/// @dev this exposes the internal functions of the KSXVault contract for testing
contract KSXVaultInternals is KSXVault{
/// @dev this exposes the internal functions of the KSXVault contract for
/// testing
contract KSXVaultInternals is KSXVault {

constructor(
address _owner,
Expand All @@ -14,19 +15,20 @@ contract KSXVaultInternals is KSXVault{
address _auctionFactory,
uint8 _decimalOffset,
uint256 _initialStart
) KSXVault(
_owner,
_token,
_usdc,
_stakingRewards,
_auctionFactory,
_decimalOffset,
_initialStart
) {

}
)
KSXVault(
_owner,
_token,
_usdc,
_stakingRewards,
_auctionFactory,
_decimalOffset,
_initialStart
)
{}

function createAuction() public {
_createAuction();
}
}

}

0 comments on commit ed0f2ec

Please sign in to comment.