This commit is contained in:
owen05
2021-12-14 21:28:20 +08:00
parent 2f1d5eae4a
commit 891a3db5cf
3 changed files with 29 additions and 14 deletions

View File

@@ -19,6 +19,7 @@ contract Vesting is Storage {
using SafeERC20 for IERC20;
function claimFunds(address to) external preventReentrant onlyOwner {
require(_TOTAL_RAISED_FUNDS_ > _INITIAL_FUND_LIQUIDITY_, "FUND_NOT_ENOUGH");
uint256 vestingFunds = _TOTAL_RAISED_FUNDS_.sub(_INITIAL_FUND_LIQUIDITY_);
uint256 remainingFund = DecimalMath.mulFloor(
getRemainingRatio(block.timestamp,1),