Skip to content

Commit

Permalink
add inline comments for unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
trmid committed Mar 18, 2024
1 parent 94b0c03 commit 611404a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PrizeVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ contract PrizeVault is TwabERC20, Claimable, IERC4626, ILiquidationSource, Ownab
/// @dev Any latent balance of assets in the prize vault will be swept in with the deposit as a part of
/// the "dust collection strategy". This means that the max deposit must account for the latent balance
/// by subtracting it from the max deposit available otherwise.
function maxDeposit(address) public view returns (uint256) {
function maxDeposit(address /* receiver */) public view returns (uint256) {
uint256 _totalSupply = totalSupply();
uint256 totalDebt_ = _totalDebt(_totalSupply);
if (totalAssets() < totalDebt_) return 0;
Expand Down Expand Up @@ -657,7 +657,7 @@ contract PrizeVault is TwabERC20, Claimable, IERC4626, ILiquidationSource, Ownab
/// @dev Emits a `TransferYieldOut` event
/// @dev Supports the liquidation of either assets or prize vault shares.
function transferTokensOut(
address,
address /* sender */,
address _receiver,
address _tokenOut,
uint256 _amountOut
Expand Down Expand Up @@ -703,7 +703,7 @@ contract PrizeVault is TwabERC20, Claimable, IERC4626, ILiquidationSource, Ownab
function verifyTokensIn(
address _tokenIn,
uint256 _amountIn,
bytes calldata
bytes calldata /* transferTokensOutData */
) external onlyLiquidationPair {
address _prizeToken = address(prizePool.prizeToken());
if (_tokenIn != _prizeToken) {
Expand All @@ -714,7 +714,7 @@ contract PrizeVault is TwabERC20, Claimable, IERC4626, ILiquidationSource, Ownab
}

/// @inheritdoc ILiquidationSource
function targetOf(address) external view returns (address) {
function targetOf(address /* tokenIn */) external view returns (address) {
return address(prizePool);
}

Expand Down

0 comments on commit 611404a

Please sign in to comment.