Skip to content

Commit

Permalink
✨ forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Flocqst committed Jun 6, 2024
1 parent 940b9a1 commit e73f438
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
12 changes: 7 additions & 5 deletions src/KSXVault.sol
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.25;

import { ERC4626 } from "@openzeppelin/contracts/token/ERC20/extensions/ERC4626.sol";
import { ERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {ERC4626} from
"@openzeppelin/contracts/token/ERC20/extensions/ERC4626.sol";
import {ERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

/// @title Kwenta Example Contract
/// @notice KSX ERC4626 Vault
/// @author Flocqst ([email protected])
contract KSXVault is ERC4626 {
constructor(address _token) ERC4626(IERC20(_token)) ERC20("KSX Vault", "KSX") {

}
constructor(address _token)
ERC4626(IERC20(_token))
ERC20("KSX Vault", "KSX")
{}
}
14 changes: 7 additions & 7 deletions test/KSXVault.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
pragma solidity 0.8.25;

import {Test} from "forge-std/Test.sol";
import { KSXVault } from "../src/KSXVault.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {KSXVault} from "../src/KSXVault.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract KSXVaultTest is Test {
function setUp() public {

}
function setUp() public {}
}

contract MockERC20 is ERC20 {
constructor (string memory name_, string memory symbol_) ERC20(name_, symbol_) {}
constructor(string memory name_, string memory symbol_)
ERC20(name_, symbol_)
{}

function mint(address to, uint256 amount) external {
_mint(to, amount);
}
}
}

0 comments on commit e73f438

Please sign in to comment.