Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrowDom committed May 9, 2023
1 parent 5ff199d commit bd38222
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion contracts/contracts/strategies/ConvexEthMetaStrategy.sol
Expand Up @@ -148,7 +148,6 @@ contract ConvexEthMetaStrategy is InitializableAbstractStrategy {
uint256(1e18) - MAX_SLIPPAGE
);

uint256 balance = oeth.balanceOf(address(this));
// Do the deposit to Curve ETH pool
uint256 lpDeposited = curvePool.add_liquidity{ value: _wethAmount }(
_amounts,
Expand Down
16 changes: 3 additions & 13 deletions contracts/test/strategies/oeth-metapool.fork-test.js
Expand Up @@ -106,7 +106,6 @@ forkOnlyDescribe("ForkTest: OETH Curve Metapool Strategy", function () {
const {
josh,
weth,
oeth,
oethHarvester,
oethDripper,
oethVault,
Expand All @@ -121,31 +120,22 @@ forkOnlyDescribe("ForkTest: OETH Curve Metapool Strategy", function () {
.transfer(ConvexEthMetaStrategy.address, oethUnits("1000"));

const wethBefore = await weth.balanceOf(oethDripper.address);
const totalSupply = await oeth.totalSupply();

// prettier-ignore
await oethHarvester
.connect(josh)
["harvestAndSwap(address)"](ConvexEthMetaStrategy.address);
.connect(josh)["harvestAndSwap(address)"](ConvexEthMetaStrategy.address);

const wethDiff = (await weth.balanceOf(oethDripper.address)).sub(
wethBefore
);
await oethVault.connect(josh).rebase();
const totalSupplyDiff = (await oeth.totalSupply()).sub(totalSupply);

await expect(wethDiff).to.be.gte(oethUnits("0.3"));
});
});

async function mintTest(fixture, user, asset, amount = "3") {
const {
oethVault,
oeth,
weth,
cvxRewardStakerAddress,
ConvexEthMetaStrategy,
cvxRewardPool,
} = fixture;
const { oethVault, oeth, ConvexEthMetaStrategy, cvxRewardPool } = fixture;

const unitAmount = await units(amount, asset);

Expand Down

0 comments on commit bd38222

Please sign in to comment.