Permalink
Browse files

Add onlyAllowedAmount modifer on transferFrom function to prevent tok…

…en lock bypass
  • Loading branch information...
AMO-Project committed Apr 24, 2018
1 parent c3a00e2 commit 2ccc5698a63d602a037522d0afcdc9ee5090964f
Showing with 2 additions and 1 deletion.
  1. +2 −1 contracts/AMOCoin.sol
@@ -24,7 +24,7 @@ contract AMOCoin is StandardToken, BurnableToken, Ownable {

// Enable transfer after token sale is completed
bool public transferEnabled = false;

// Accounts to be locked for certain period
mapping(address => uint256) private lockedAccounts;

@@ -154,6 +154,7 @@ contract AMOCoin is StandardToken, BurnableToken, Ownable {
public
onlyWhenTransferAllowed
onlyValidDestination(to)
onlyAllowedAmount(from, value)
returns (bool)
{
return super.transferFrom(from, to, value);

0 comments on commit 2ccc569

Please sign in to comment.