Skip to content

Commit

Permalink
allowance checked already performed
Browse files Browse the repository at this point in the history
  • Loading branch information
freemanzMrojo committed Aug 26, 2024
1 parent 28bce97 commit 7a099fd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion contracts/core/StakeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ abstract contract StakeManager is IStakeManager {
/// Deposit a fixed amount of VTHO approved by the sender, to the specified account
function depositAmountTo(address account, uint256 amount) external {
uint256 allowance = VTHO_TOKEN_CONTRACT.allowance(msg.sender, address(this));
require(allowance > 0, "allowance is 0");
require(amount <= allowance, "amount to deposit > allowance");
_depositAmountTo(account, amount);
}
Expand Down

0 comments on commit 7a099fd

Please sign in to comment.