Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
grandizzy committed Feb 4, 2022
1 parent 6624a3c commit eb4ae5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/test/ERC20PerpPool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {ERC20PerpPool} from "../ERC20PerpPool.sol";
contract UserWithCollateral {
function approveAndDepositTokenAsCollateral(IERC20 token, ERC20PerpPool pool, uint256 amount) public {
token.approve(address(pool), amount);

pool.depositCollateral(amount);
}
}
Expand Down Expand Up @@ -42,7 +41,8 @@ contract ERC20PerpPoolTest is DSTest, stdCheats {

pool = new ERC20PerpPool(collateral, quote);
}
function test_deploy() public {

function testDeploy() public {
assertEq(address(collateral), address(pool.collateralToken()));
assertEq(address(quote), address(pool.quoteToken()));

Expand All @@ -54,7 +54,7 @@ contract ERC20PerpPoolTest is DSTest, stdCheats {
assertEq(block.timestamp, pool.previousRateUpdate());
}

function test_depositCollateral() public {
function testDepositCollateral() public {
alice.approveAndDepositTokenAsCollateral(collateral, pool, 50 ether);

uint256 aliceCollateral = pool.collateralBalances(address(alice));
Expand Down
6 changes: 3 additions & 3 deletions src/test/ERC20PoolFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ contract PoolFactoryTest is DSTest {
quote = new ERC20("Quote", "Q");
}

function test_deploy() public {
function testDeploy() public {
ERC20PerpPool pool = factory.deployPool(collateral, quote);

assertEq(address(collateral), address(pool.collateralToken()));
assertEq(address(quote), address(pool.quoteToken()));
}

function testFail_deploy_same_pool_twice() public {
function testFailDeploySamePoolTwice() public {
factory.deployPool(collateral, quote);
factory.deployPool(collateral, quote);
}

function test_predict_deployed_address() public {
function testPredictDeployedAddress() public {
address predictedAddress = factory.calculatePoolAddress(collateral, quote);

assert(false == factory.isPoolDeployed(ERC20PerpPool(predictedAddress)));
Expand Down

0 comments on commit eb4ae5d

Please sign in to comment.