Skip to content

Commit

Permalink
fix: undo change
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Jun 17, 2024
1 parent 8012b65 commit f3c4888
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/L1YearnEscrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,12 @@ contract L1YearnEscrow is L1Escrow {
uint256 balance = originToken.balanceOf(address(this));
uint256 _minimumBuffer = $.minimumBuffer;
if (balance > _minimumBuffer) {
uint256 toDeposit;
unchecked {
toDeposit = balance - _minimumBuffer;
IVault(_vaultAddress).deposit(
balance - _minimumBuffer,
address(this)
);
}
IVault(_vaultAddress).deposit(toDeposit, address(this));
}
}

Expand Down

0 comments on commit f3c4888

Please sign in to comment.