Skip to content

Commit bb342b3

Browse files
misc: Remove all warnings from the code
1 parent 0202e7e commit bb342b3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

foundry.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ via_ir = false
77
runs = 256
88
gas_reports = ["ATokenVault"]
99
isolate = true
10+
ignored_warnings_from = ["lib/", "node_modules/"] # Ignore warnings from dependencies
1011

1112
[fuzz]
1213
max_test_rejects = 65536

test/mocks/MockAToken.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ contract MockAToken is ERC20 {
1111
_underlyingAsset = underlyingAsset;
1212
}
1313

14-
function mint(address caller, address onBehalfOf, uint256 amount, uint256 index) external returns (bool) {
14+
function mint(address /* caller */, address onBehalfOf, uint256 amount, uint256 /* index */) external returns (bool) {
1515
_mint(onBehalfOf, amount);
1616
return true;
1717
}
1818

19-
function burn(address from, address receiverOfUnderlying, uint256 amount, uint256 index) external {
19+
function burn(address from, address receiverOfUnderlying, uint256 amount, uint256 /* index */) external {
2020
_burn(from, amount);
2121
if (receiverOfUnderlying != address(this)) {
2222
ERC20(_underlyingAsset).transfer(receiverOfUnderlying, amount);

test/mocks/MockAavePool.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ contract MockAavePool {
7171
ERC20(_asset).transfer(address(aToken), _amount);
7272
}
7373

74-
function withdraw(address _asset, uint256 _amount, address _receiver) public returns (uint256) {
74+
function withdraw(address /* _asset */, uint256 _amount, address _receiver) public returns (uint256) {
7575
aToken.burn(msg.sender, _receiver, _amount, 0);
7676
return _amount;
7777
}

0 commit comments

Comments
 (0)