Skip to content

Commit

Permalink
✨ prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
Flocqst committed Oct 28, 2024
1 parent fb5b902 commit 0cea36b
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions test/utils/Bootstrap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
pragma solidity 0.8.25;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import {IStakingRewardsV2} from "@token/interfaces/IStakingRewardsV2.sol";
import {Test} from "lib/forge-std/src/Test.sol";
import {console2} from "lib/forge-std/src/console2.sol";
import {
Expand All @@ -11,7 +13,6 @@ import {
} from "script/Deploy.s.sol";
import {KSXVault} from "src/KSXVault.sol";
import {Constants} from "test/utils/Constants.sol";
import {IStakingRewardsV2} from "@token/interfaces/IStakingRewardsV2.sol";

contract Bootstrap is Test, Constants {

Expand All @@ -31,13 +32,20 @@ contract Bootstrap is Test, Constants {
address constant alice = address(0xAAAA);
address constant bob = address(0xBBBB);

function initializeLocal(address _token, address _stakingRewards, uint8 _decimalsOffset) internal {
function initializeLocal(
address _token,
address _stakingRewards,
uint8 _decimalsOffset
)
internal
{
BootstrapLocal bootstrap = new BootstrapLocal();
(address ksxVaultAddress) = bootstrap.init(_token, _stakingRewards, _decimalsOffset);
(address ksxVaultAddress) =
bootstrap.init(_token, _stakingRewards, _decimalsOffset);

decimalsOffset = _decimalsOffset;
TOKEN = IERC20(_token);
STAKING_REWARDS= IStakingRewardsV2(_stakingRewards);
STAKING_REWARDS = IStakingRewardsV2(_stakingRewards);
ksxVault = KSXVault(ksxVaultAddress);
}

Expand All @@ -53,7 +61,8 @@ contract BootstrapLocal is Setup {
public
returns (address)
{
(KSXVault ksxvault) = Setup.deploySystem(_token, _stakingRewards, _decimalsOffset);
(KSXVault ksxvault) =
Setup.deploySystem(_token, _stakingRewards, _decimalsOffset);

return (address(ksxvault));
}
Expand Down

0 comments on commit 0cea36b

Please sign in to comment.