This commit is contained in:
owen05
2021-04-09 20:07:39 +08:00
parent 85ba335233
commit 805f639c3a
10 changed files with 106 additions and 25 deletions

View File

@@ -136,6 +136,7 @@ contract FeeDistributor {
}
}
contract StakeVault is Ownable {
using SafeERC20 for IERC20;
@@ -144,6 +145,8 @@ contract StakeVault is Ownable {
uint256 amount,
address to
) external onlyOwner {
IERC20(token).safeTransfer(to, amount);
if (amount > 0) {
IERC20(token).safeTransfer(to, amount);
}
}
}