Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisKaizer committed Apr 17, 2019
1 parent bd15809 commit 5eb2b41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Token Smart contract is a subject to independent third-party technological audit

Token Parameter | Value
------------ | -------------
Token name | Roobee
Symbol | Roobee
Token name | ROOBEE
Symbol | ROOBEE
Decimals | 18
Max token amount to issue | 5 400 000 000
Freeze tokens | yes
Expand Down
8 changes: 4 additions & 4 deletions contracts/Roobee.sol
Original file line number Diff line number Diff line change
Expand Up @@ -333,22 +333,22 @@ contract RoobeeToken is ERC20Burnable, ERC20Mintable {
}

function transfer(address to, uint256 value) public returns (bool) {
getAvailableBalance(msg.sender).sub(value);
require(getAvailableBalance(msg.sender) >= value);
return super.transfer(to, value);
}

function transferFrom(address from, address to, uint256 value) public returns (bool) {
getAvailableBalance(from).sub(value);
require(getAvailableBalance(msg.sender) >= value);
return super.transferFrom(from, to, value);
}

function burn(uint256 value) public {
getAvailableBalance(msg.sender).sub(value);
require(getAvailableBalance(msg.sender) >= value);
super.burn(value);
}

function burnFrom(address from, uint256 value) public {
getAvailableBalance(from).sub(value);
require(getAvailableBalance(msg.sender) >= value);
super.burnFrom(from, value);
}

Expand Down

0 comments on commit 5eb2b41

Please sign in to comment.