Contract 0x0f4b7bec854DbDd70FdF6Cf5038F2717B3110672

Token Contract 
 
 
Txn Hash
Method
Block
From
To
Value
0xe533c7576635da379695ebf97ce461a022691111e0c3adc6600709ea44d59ad3Approve119856982021-03-06 15:27:22642 days 18 hrs ago0x539ff8b44f0bcdf8effb875cb1f6e12382e4cda2 IN  Referral Network: REFER Token0 Ether0.0029755367.00000145
0x8297cb807fe48df6a8fd3c0f3d3c64bb2b671d9f6ce50b587a51cc75d6245620Approve119855812021-03-06 15:01:25642 days 19 hrs agoReferral Network: Deployer IN  Referral Network: REFER Token0 Ether0.0029755367.00000145
0x2f09da32d2b951ba780671e155b8e6c517b1819146116c2f480f492fc59972b9Transfer119626462021-03-03 2:35:14646 days 7 hrs agoReferral Network: Deployer IN  Referral Network: REFER Token0 Ether0.0041571280
0xde45ab494906e3214fc3959c4cfca07598f04244fd854727118e9a366915d7dbTransfer119599472021-03-02 16:35:55646 days 17 hrs agoReferral Network: Deployer IN  Referral Network: REFER Token0 Ether0.00610104165
0x8bd449888147634ff8acd18c05d69b4b0c2e5a7b843a330063417d110d41c703Transfer119593322021-03-02 14:24:12646 days 19 hrs agoReferral Network: Deployer IN  Referral Network: REFER Token0 Ether0.00535229103
0xf36e76c12dd23d7f99732c12eaf252a10c7b78f3ce46ee8421619bad8d8947640x60c06040119509092021-03-01 7:11:27648 days 3 hrs agoReferral Network: Deployer IN  Create: ReferralToken0 Ether0.0414248870
[ Download CSV Export 

OVERVIEW

Referral Network provides referrals on the blockchain, built for the game & AM (Affiliate Marketing) industry. Referral Network is the first referral marketplace for AM. The REFER token can be used to pay every individual referrers who are working day by day to earn money by making referrals.

View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ReferralToken

Compiler Version
v0.6.9+commit.3e3065ac

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license
/**
 *Submitted for verification at Etherscan.io on 2021-03-01
*/

/*

    Copyright 2021 Referral Network.
    SPDX-License-Identifier: Apache-2.0

*/

pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;


/**
 * @title SafeMath
 * @author Referral Network
 *
 * @notice Math operations with safety checks that revert on error
 */
library SafeMath {
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "MUL_ERROR");

        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "DIVIDING_ERROR");
        return a / b;
    }

    function divCeil(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 quotient = div(a, b);
        uint256 remainder = a - quotient * b;
        if (remainder > 0) {
            return quotient + 1;
        } else {
            return quotient;
        }
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SUB_ERROR");
        return a - b;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "ADD_ERROR");
        return c;
    }

    function sqrt(uint256 x) internal pure returns (uint256 y) {
        uint256 z = x / 2 + 1;
        y = x;
        while (z < y) {
            y = z;
            z = (x / z + z) / 2;
        }
    }
}


// File: contracts/token/ReferralToken.sol

/*

    Copyright 2021 Referral Network.

*/

/**
 * @title ReferralToken
 * @author Referral Network
 */
contract ReferralToken {
    using SafeMath for uint256;

    string public symbol = "REFER";
    string public name = "Referral Network";

    uint256 public decimals = 18;
    uint256 public totalSupply = 1000000 * 10**18; // 1 Million

    mapping(address => uint256) internal balances;
    mapping(address => mapping(address => uint256)) internal allowed;

    // ============ Events ============

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    // ============ Functions ============

    constructor() public {
        balances[msg.sender] = totalSupply;
    }

    /**
     * @dev transfer token for a specified address
     * @param to The address to transfer to.
     * @param amount The amount to be transferred.
     */
    function transfer(address to, uint256 amount) public returns (bool) {
        require(amount <= balances[msg.sender], "BALANCE_NOT_ENOUGH");

        balances[msg.sender] = balances[msg.sender].sub(amount);
        balances[to] = balances[to].add(amount);
        emit Transfer(msg.sender, to, amount);
        return true;
    }

    /**
     * @dev Gets the balance of the specified address.
     * @param owner The address to query the the balance of.
     * @return balance An uint256 representing the amount owned by the passed address.
     */
    function balanceOf(address owner) external view returns (uint256 balance) {
        return balances[owner];
    }

    /**
     * @dev Transfer tokens from one address to another
     * @param from address The address which you want to send tokens from
     * @param to address The address which you want to transfer to
     * @param amount uint256 the amount of tokens to be transferred
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public returns (bool) {
        require(amount <= balances[from], "BALANCE_NOT_ENOUGH");
        require(amount <= allowed[from][msg.sender], "ALLOWANCE_NOT_ENOUGH");

        balances[from] = balances[from].sub(amount);
        balances[to] = balances[to].add(amount);
        allowed[from][msg.sender] = allowed[from][msg.sender].sub(amount);
        emit Transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
     * @param spender The address which will spend the funds.
     * @param amount The amount of tokens to be spent.
     */
    function approve(address spender, uint256 amount) public returns (bool) {
        allowed[msg.sender][spender] = amount;
        emit Approval(msg.sender, spender, amount);
        return true;
    }

    /**
     * @dev Function to check the amount of tokens that an owner allowed to a spender.
     * @param owner address The address which owns the funds.
     * @param spender address The address which will spend the funds.
     * @return A uint256 specifying the amount of tokens still available for the spender.
     */
    function allowance(address owner, address spender) public view returns (uint256) {
        return allowed[owner][spender];
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60c060405260056080819052642922a322a960d91b60a09081526100269160009190610097565b506040805180820190915260108082526f526566657272616c204e6574776f726b60801b602090920191825261005e91600191610097565b50601260025569d3c21bcecceda100000060035534801561007e57600080fd5b5060035433600090815260046020526040902055610132565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100d857805160ff1916838001178555610105565b82800160010185558215610105579182015b828111156101055782518255916020019190600101906100ea565b50610111929150610115565b5090565b61012f91905b80821115610111576000815560010161011b565b90565b6107cb806101416000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce567146100fe57806370a082311461010657806395d89b4114610119578063a9059cbb14610121578063dd62ed3e1461013457610093565b806306fdde0314610098578063095ea7b3146100b657806318160ddd146100d657806323b872dd146100eb575b600080fd5b6100a0610147565b6040516100ad9190610681565b60405180910390f35b6100c96100c436600461064c565b6101d4565b6040516100ad9190610676565b6100de61023f565b6040516100ad9190610774565b6100c96100f936600461060c565b610245565b6100de6103db565b6100de6101143660046105bd565b6103e1565b6100a06103fc565b6100c961012f36600461064c565b610457565b6100de6101423660046105d8565b610527565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156101cc5780601f106101a1576101008083540402835291602001916101cc565b820191906000526020600020905b8154815290600101906020018083116101af57829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061022d908690610774565b60405180910390a35060015b92915050565b60035481565b6001600160a01b0383166000908152600460205260408120548211156102865760405162461bcd60e51b815260040161027d90610725565b60405180910390fd5b6001600160a01b03841660009081526005602090815260408083203384529091529020548211156102c95760405162461bcd60e51b815260040161027d906106d4565b6001600160a01b0384166000908152600460205260409020546102f2908363ffffffff61055216565b6001600160a01b038086166000908152600460205260408082209390935590851681522054610327908363ffffffff61057a16565b6001600160a01b03808516600090815260046020908152604080832094909455918716815260058252828120338252909152205461036b908363ffffffff61055216565b6001600160a01b0380861660008181526005602090815260408083203384529091529081902093909355915190851691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906103c9908690610774565b60405180910390a35060019392505050565b60025481565b6001600160a01b031660009081526004602052604090205490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156101cc5780601f106101a1576101008083540402835291602001916101cc565b336000908152600460205260408120548211156104865760405162461bcd60e51b815260040161027d90610725565b336000908152600460205260409020546104a6908363ffffffff61055216565b33600090815260046020526040808220929092556001600160a01b038516815220546104d8908363ffffffff61057a16565b6001600160a01b0384166000818152600460205260409081902092909255905133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061022d908690610774565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6000828211156105745760405162461bcd60e51b815260040161027d90610702565b50900390565b60008282018381101561059f5760405162461bcd60e51b815260040161027d90610751565b9392505050565b80356001600160a01b038116811461023957600080fd5b6000602082840312156105ce578081fd5b61059f83836105a6565b600080604083850312156105ea578081fd5b6105f484846105a6565b915061060384602085016105a6565b90509250929050565b600080600060608486031215610620578081fd5b833561062b8161077d565b9250602084013561063b8161077d565b929592945050506040919091013590565b6000806040838503121561065e578182fd5b61066884846105a6565b946020939093013593505050565b901515815260200190565b6000602080835283518082850152825b818110156106ad57858101830151858201604001528201610691565b818111156106be5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526014908201527308298989eae829c868abe9c9ea8be8a9c9eaa8e960631b604082015260600190565b60208082526009908201526829aaa12fa2a92927a960b91b604082015260600190565b6020808252601290820152710848298829c868abe9c9ea8be8a9c9eaa8e960731b604082015260600190565b60208082526009908201526820a2222fa2a92927a960b91b604082015260600190565b90815260200190565b6001600160a01b038116811461079257600080fd5b5056fea264697066735822122062dd2409c5dae7ce435b35ab783afc09536f070c96409bfbe3573a3ec4f6e08664736f6c63430006090033

Deployed ByteCode Sourcemap

1680:3306:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1782:39;;;:::i;:::-;;;;;;;;;;;;;;;;4311:203;;;;;;;;;:::i;:::-;;;;;;;;1865:45;;;:::i;:::-;;;;;;;;3542:519;;;;;;;;;:::i;1830:28::-;;;:::i;3132:115::-;;;;;;;;;:::i;1745:30::-;;;:::i;2564:336::-;;;;;;;;;:::i;4853:130::-;;;;;;;;;:::i;1782:39::-;;;;;;;;;;;;;;;-1:-1:-1;;1782:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;4311:203::-;4402:10;4377:4;4394:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;4394:28:0;;;;;;;;;;:37;;;4447;4377:4;;4394:28;;4447:37;;;;4425:6;;4447:37;;;;;;;;;;-1:-1:-1;4502:4:0;4311:203;;;;;:::o;1865:45::-;;;;:::o;3542:519::-;-1:-1:-1;;;;;3691:14:0;;3656:4;3691:14;;;:8;:14;;;;;;3681:24;;;3673:55;;;;-1:-1:-1;;;3673:55:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3757:13:0;;;;;;:7;:13;;;;;;;;3771:10;3757:25;;;;;;;;3747:35;;;3739:68;;;;-1:-1:-1;;;3739:68:0;;;;;;;;;-1:-1:-1;;;;;3837:14:0;;;;;;:8;:14;;;;;;:26;;3856:6;3837:26;:18;:26;:::i;:::-;-1:-1:-1;;;;;3820:14:0;;;;;;;:8;:14;;;;;;:43;;;;3889:12;;;;;;;:24;;3906:6;3889:24;:16;:24;:::i;:::-;-1:-1:-1;;;;;3874:12:0;;;;;;;:8;:12;;;;;;;;:39;;;;3952:13;;;;;:7;:13;;;;;3966:10;3952:25;;;;;;;:37;;3982:6;3952:37;:29;:37;:::i;:::-;-1:-1:-1;;;;;3924:13:0;;;;;;;:7;:13;;;;;;;;3938:10;3924:25;;;;;;;;;:65;;;;4005:26;;;;;;3924:13;4005:26;;;;4024:6;;4005:26;;;;;;;;;;-1:-1:-1;4049:4:0;3542:519;;;;;:::o;1830:28::-;;;;:::o;3132:115::-;-1:-1:-1;;;;;3224:15:0;3189;3224;;;:8;:15;;;;;;;3132:115::o;1745:30::-;;;;;;;;;;;;;;;-1:-1:-1;;1745:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2564:336;2670:10;2626:4;2661:20;;;:8;:20;;;;;;2651:30;;;2643:61;;;;-1:-1:-1;;;2643:61:0;;;;;;;;;2749:10;2740:20;;;;:8;:20;;;;;;:32;;2765:6;2740:32;:24;:32;:::i;:::-;2726:10;2717:20;;;;:8;:20;;;;;;:55;;;;-1:-1:-1;;;;;2798:12:0;;;;;;:24;;2815:6;2798:24;:16;:24;:::i;:::-;-1:-1:-1;;;;;2783:12:0;;;;;;:8;:12;;;;;;;:39;;;;2838:32;;2847:10;;2838:32;;;;2863:6;;2838:32;;4853:130;-1:-1:-1;;;;;4952:14:0;;;4925:7;4952:14;;;:7;:14;;;;;;;;:23;;;;;;;;;;;;;4853:130::o;990:137::-;1048:7;1081:1;1076;:6;;1068:28;;;;-1:-1:-1;;;1068:28:0;;;;;;;;;-1:-1:-1;1114:5:0;;;990:137::o;1135:161::-;1193:7;1225:5;;;1249:6;;;;1241:28;;;;-1:-1:-1;;;1241:28:0;;;;;;;;;1287:1;1135:161;-1:-1:-1;;;1135:161:0:o;5:130:-1:-;72:20;;-1:-1;;;;;6654:54;;7240:35;;7230:2;;7289:1;;7279:12;279:241;;383:2;371:9;362:7;358:23;354:32;351:2;;;-1:-1;;389:12;351:2;451:53;496:7;472:22;451:53;;527:366;;;648:2;636:9;627:7;623:23;619:32;616:2;;;-1:-1;;654:12;616:2;716:53;761:7;737:22;716:53;;;706:63;;824:53;869:7;806:2;849:9;845:22;824:53;;;814:63;;610:283;;;;;;900:491;;;;1038:2;1026:9;1017:7;1013:23;1009:32;1006:2;;;-1:-1;;1044:12;1006:2;85:6;72:20;97:33;124:5;97:33;;;1096:63;-1:-1;1196:2;1235:22;;72:20;97:33;72:20;97:33;;;1000:391;;1204:63;;-1:-1;;;1304:2;1343:22;;;;209:20;;1000:391;1398:366;;;1519:2;1507:9;1498:7;1494:23;1490:32;1487:2;;;-1:-1;;1525:12;1487:2;1587:53;1632:7;1608:22;1587:53;;;1577:63;1677:2;1716:22;;;;209:20;;-1:-1;;;1481:283;3646:210;6566:13;;6559:21;1836:34;;3767:2;3752:18;;3738:118;3863:310;;4010:2;;4031:17;4024:47;2027:5;6189:12;6346:6;4010:2;3999:9;3995:18;6334:19;-1:-1;6872:101;6886:6;6883:1;6880:13;6872:101;;;6953:11;;;;;6947:18;6934:11;;;6374:14;6934:11;6927:39;6901:10;;6872:101;;;6988:6;6985:1;6982:13;6979:2;;;-1:-1;6374:14;7044:6;3999:9;7035:16;;7028:27;6979:2;-1:-1;7160:7;7144:14;-1:-1;;7140:28;2185:39;;;;6374:14;2185:39;;3981:192;-1:-1;;;3981:192;4180:416;4380:2;4394:47;;;2461:2;4365:18;;;6334:19;-1:-1;;;6374:14;;;2477:43;2539:12;;;4351:245;4603:416;4803:2;4817:47;;;2790:1;4788:18;;;6334:19;-1:-1;;;6374:14;;;2805:32;2856:12;;;4774:245;5026:416;5226:2;5240:47;;;3107:2;5211:18;;;6334:19;-1:-1;;;6374:14;;;3123:41;3183:12;;;5197:245;5449:416;5649:2;5663:47;;;3434:1;5634:18;;;6334:19;-1:-1;;;6374:14;;;3449:32;3500:12;;;5620:245;5872:222;3597:37;;;5999:2;5984:18;;5970:124;7181:117;-1:-1;;;;;6654:54;;7240:35;;7230:2;;7289:1;;7279:12;7230:2;7224:74;

Swarm Source

ipfs://62dd2409c5dae7ce435b35ab783afc09536f070c96409bfbe3573a3ec4f6e086
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.