Skip to content

Commit

Permalink
changed name of maxDeposit argument
Browse files Browse the repository at this point in the history
  • Loading branch information
lsqrl committed Dec 19, 2023
1 parent 689bd72 commit c917594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Vault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ contract Vault is IVault, ERC4626, ERC20Permit {
return ERC4626.deposit(_assets, receiver);
}

function maxDeposit(address dummy) public view override(IERC4626, ERC4626) returns (uint256) {
function maxDeposit(address addr) public view override(IERC4626, ERC4626) returns (uint256) {
if (isLocked) return 0;
return super.maxDeposit(dummy);
return super.maxDeposit(addr);
}

function maxMint(address) public view override(IERC4626, ERC4626) returns (uint256) {
Expand Down

0 comments on commit c917594

Please sign in to comment.