File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,14 @@ import {VotingPowerToken} from "./VotingPowerToken.sol";
3131import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol " ;
3232import {IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol " ;
3333import {ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol " ;
34+ import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol " ;
3435
3536/**
3637 * @title FairFund
3738 * @author Aditya Bhattad
3839 * @notice This is the main FairFund contract that will be used for deployment and keeping track of all the funding vaults.
3940 */
40- contract FairFund is Ownable {
41+ contract FairFund is Ownable , ReentrancyGuard {
4142 // Errors //
4243 error FairFund__CannotBeAZeroAddress ();
4344 error FairFund__TallyDateCannotBeInThePast ();
@@ -125,7 +126,7 @@ contract FairFund is Ownable {
125126 * @param recepient The address to receive the withdrawn fees
126127 * @param token The address of the token to withdraw
127128 */
128- function withdrawPlatformFee (address recepient , address token ) external onlyOwner {
129+ function withdrawPlatformFee (address recepient , address token ) external onlyOwner nonReentrant {
129130 if (recepient == address (0 ) || token == address (0 )) {
130131 revert FairFund__CannotBeAZeroAddress ();
131132 }
You can’t perform that action at this time.
0 commit comments