Skip to content

Commit

Permalink
remove unused imports, refactor var def to better place
Browse files Browse the repository at this point in the history
  • Loading branch information
sosaucily committed Jul 15, 2024
1 parent 0af23f8 commit 24f144c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/DLCManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ contract DLCManager is
// During a withdrawal, a burn should have already happened
revert UnderCollateralized(newValueLocked, dlc.valueMinted);
}
uint256 amountToMint = newValueLocked - dlc.valueMinted;

uint256 amountToLockDiff;
if (newValueLocked > dlc.valueLocked) {
Expand All @@ -354,7 +355,6 @@ contract DLCManager is
revert DepositTooSmall(amountToLockDiff, minimumDeposit);
}

uint256 amountToMint = newValueLocked - dlc.valueMinted;
dlc.fundingTxId = btcTxId;
dlc.wdTxId = "";
dlc.status = DLCLink.DLCStatus.FUNDED;
Expand Down
2 changes: 0 additions & 2 deletions test/DLCManager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const hardhat = require('hardhat');
const crypto = require('crypto');

const { getSignatures, setSigners } = require('./utils');
const { get } = require('http');
const exp = require('constants');

async function whitelistAddress(dlcManager, user) {
await dlcManager.whitelistAddress(user.address);
Expand Down

0 comments on commit 24f144c

Please sign in to comment.