Skip to content

Commit

Permalink
fix: weth call withdraw
Browse files Browse the repository at this point in the history
  • Loading branch information
DiRaiks committed Dec 6, 2024
1 parent 8d6b255 commit d4250c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/0.8.25/vaults/Dashboard.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {OwnableUpgradeable} from "contracts/openzeppelin/5.0.2/upgradeable/acces
import {VaultHub} from "./VaultHub.sol";

interface IWeth {
function withdraw(uint256) external;
function withdraw(uint) external;
function deposit() external payable;
}

Expand Down Expand Up @@ -220,7 +220,7 @@ contract Dashboard is AccessControlEnumerable {
* @param _wethAmount Amount of wrapped ether to fund the staking vault with
*/
function fundByWeth(uint256 _wethAmount) external virtual onlyRole(DEFAULT_ADMIN_ROLE) {
IWeth(weth).withdraw{value: _wethAmount}();
IWeth(weth).withdraw(_wethAmount);
_fund();
}

Expand Down

0 comments on commit d4250c1

Please sign in to comment.