Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inline comments for unused variables #89

Merged
merged 1 commit into from Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/PrizeVault.sol
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