Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-chain authored Jun 17, 2022
1 parent 6c4adec commit c86c2ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/DGOV.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ contract DGOV is ERC20, IDGOV, GovernanceOwnable {
}

// Check if supply is locked function, this will be called by the transfer function
function _checkIfLockedPart(address account, uint256 amountTransfer)
function _checkIfUnlockedPart(address account, uint256 amountTransfer)
internal
view
returns (bool)
Expand All @@ -123,7 +123,7 @@ contract DGOV is ERC20, IDGOV, GovernanceOwnable {
override(ERC20, IDGOV)
returns (bool)
{
require(_checkIfLockedPart(msg.sender, _amount), "insufficient supply");
require(_checkIfUnlockedPart(msg.sender, _amount), "insufficient supply");
_transfer(msg.sender, _to, _amount);
return true;
}
Expand All @@ -141,7 +141,7 @@ contract DGOV is ERC20, IDGOV, GovernanceOwnable {
"not available"
);
require(
_checkIfLockedPart(msg.sender, _amount) == true,
_checkIfUnlockedPart(msg.sender, _amount) == true,
"insufficient supply"
);
transfer(_to, _amount);
Expand Down

0 comments on commit c86c2ec

Please sign in to comment.