aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/contracts/test/Mintable.sol
blob: 34c9eb85897b099071fb62d97c7c90865b0ba017 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pragma solidity ^0.4.11;

import "./../tokens/UnlimitedAllowanceToken.sol";
import "./../lib/SafeMath.sol";

/*
 * Mintable
 * Base contract that creates a mintable UnlimitedAllowanceToken
 */
contract Mintable is UnlimitedAllowanceToken, SafeMath {
    function mint(uint _value) 
        public
    {
        require(_value <= 100000000000000000000);
        balances[msg.sender] = safeAdd(_value, balances[msg.sender]);
        totalSupply = safeAdd(totalSupply, _value);
    }
}