ETH Price: $2,486.10 (-1.71%)

Contract

0xef945ffF5AEd7E0646bA196E50ad19a978C164eF
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deposit KAI120110652021-03-10 13:31:271270 days ago1615383087IN
0xef945ffF...978C164eF
0 ETH0.00274716120
Burn KAI116338102021-01-11 13:09:461328 days ago1610370586IN
0xef945ffF...978C164eF
0 ETH0.0014642356
Set Is End116302342021-01-11 0:00:021329 days ago1610323202IN
0xef945ffF...978C164eF
0 ETH0.0021457550
Deposit KAI116301942021-01-10 23:52:311329 days ago1610322751IN
0xef945ffF...978C164eF
0 ETH0.0040162948.825
Deposit KAI116301652021-01-10 23:45:571329 days ago1610322357IN
0xef945ffF...978C164eF
0 ETH0.0031617347
Deposit KAI116301512021-01-10 23:43:301329 days ago1610322210IN
0xef945ffF...978C164eF
0 ETH0.001821944.1000015
Deposit KAI116301322021-01-10 23:40:191329 days ago1610322019IN
0xef945ffF...978C164eF
0 ETH0.0050177961
Deposit KAI116301272021-01-10 23:39:131329 days ago1610321953IN
0xef945ffF...978C164eF
0 ETH0.0024712361
Deposit KAI116301162021-01-10 23:36:291329 days ago1610321789IN
0xef945ffF...978C164eF
0 ETH0.0050177961
Deposit KAI116300612021-01-10 23:22:501329 days ago1610320970IN
0xef945ffF...978C164eF
0 ETH0.0023098657
Deposit KAI116300362021-01-10 23:17:501329 days ago1610320670IN
0xef945ffF...978C164eF
0 ETH0.0019046247
Deposit KAI116300332021-01-10 23:17:341329 days ago1610320654IN
0xef945ffF...978C164eF
0 ETH0.0018177167
Deposit KAI116300272021-01-10 23:16:071329 days ago1610320567IN
0xef945ffF...978C164eF
0 ETH0.0026717665.94999999
Deposit KAI116300272021-01-10 23:16:071329 days ago1610320567IN
0xef945ffF...978C164eF
0 ETH0.0018177167
Deposit KAI116300202021-01-10 23:14:291329 days ago1610320469IN
0xef945ffF...978C164eF
0 ETH0.0045063567
Deposit KAI116299592021-01-10 22:59:231329 days ago1610319563IN
0xef945ffF...978C164eF
0 ETH0.0025208261
Deposit KAI116299292021-01-10 22:50:281329 days ago1610319028IN
0xef945ffF...978C164eF
0 ETH0.0041020661
Deposit KAI116299152021-01-10 22:47:241329 days ago1610318844IN
0xef945ffF...978C164eF
0 ETH0.0046894457.00000145
Deposit KAI116299082021-01-10 22:46:291329 days ago1610318789IN
0xef945ffF...978C164eF
0 ETH0.0025208261
Deposit KAI116299052021-01-10 22:45:531329 days ago1610318753IN
0xef945ffF...978C164eF
0 ETH0.0050185361
Deposit KAI116298942021-01-10 22:43:111329 days ago1610318591IN
0xef945ffF...978C164eF
0 ETH0.0025208261
Deposit KAI116298892021-01-10 22:41:471329 days ago1610318507IN
0xef945ffF...978C164eF
0 ETH0.0050170661
Deposit KAI116298762021-01-10 22:38:031329 days ago1610318283IN
0xef945ffF...978C164eF
0 ETH0.0016549361
Deposit KAI116298492021-01-10 22:33:141329 days ago1610317994IN
0xef945ffF...978C164eF
0 ETH0.0016549361
Deposit KAI116298432021-01-10 22:31:121329 days ago1610317872IN
0xef945ffF...978C164eF
0 ETH0.00437788108
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
116338102021-01-11 13:09:461328 days ago1610370586
0xef945ffF...978C164eF
0 ETH
116338102021-01-11 13:09:461328 days ago1610370586
0xef945ffF...978C164eF
0 ETH
116301942021-01-10 23:52:311329 days ago1610322751
0xef945ffF...978C164eF
0 ETH
116301652021-01-10 23:45:571329 days ago1610322357
0xef945ffF...978C164eF
0 ETH
116301512021-01-10 23:43:301329 days ago1610322210
0xef945ffF...978C164eF
0 ETH
116301322021-01-10 23:40:191329 days ago1610322019
0xef945ffF...978C164eF
0 ETH
116301272021-01-10 23:39:131329 days ago1610321953
0xef945ffF...978C164eF
0 ETH
116301162021-01-10 23:36:291329 days ago1610321789
0xef945ffF...978C164eF
0 ETH
116300612021-01-10 23:22:501329 days ago1610320970
0xef945ffF...978C164eF
0 ETH
116300362021-01-10 23:17:501329 days ago1610320670
0xef945ffF...978C164eF
0 ETH
116300332021-01-10 23:17:341329 days ago1610320654
0xef945ffF...978C164eF
0 ETH
116300272021-01-10 23:16:071329 days ago1610320567
0xef945ffF...978C164eF
0 ETH
116300272021-01-10 23:16:071329 days ago1610320567
0xef945ffF...978C164eF
0 ETH
116300202021-01-10 23:14:291329 days ago1610320469
0xef945ffF...978C164eF
0 ETH
116299592021-01-10 22:59:231329 days ago1610319563
0xef945ffF...978C164eF
0 ETH
116299292021-01-10 22:50:281329 days ago1610319028
0xef945ffF...978C164eF
0 ETH
116299152021-01-10 22:47:241329 days ago1610318844
0xef945ffF...978C164eF
0 ETH
116299082021-01-10 22:46:291329 days ago1610318789
0xef945ffF...978C164eF
0 ETH
116299052021-01-10 22:45:531329 days ago1610318753
0xef945ffF...978C164eF
0 ETH
116298942021-01-10 22:43:111329 days ago1610318591
0xef945ffF...978C164eF
0 ETH
116298892021-01-10 22:41:471329 days ago1610318507
0xef945ffF...978C164eF
0 ETH
116298762021-01-10 22:38:031329 days ago1610318283
0xef945ffF...978C164eF
0 ETH
116298492021-01-10 22:33:141329 days ago1610317994
0xef945ffF...978C164eF
0 ETH
116298432021-01-10 22:31:121329 days ago1610317872
0xef945ffF...978C164eF
0 ETH
116297772021-01-10 22:16:291329 days ago1610316989
0xef945ffF...978C164eF
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenSwapPhase2

Compiler Version
v0.5.0+commit.1d4f565a

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.5.0;
/*
 * @title: SafeMath
 * @dev: Helper contract functions to arithmatic operations safely.
 */

library SafeMath {

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        uint256 c = a - b;

        return c;
    }

}

 /*
 * @title: Token
 * @dev: Interface contract for ERC20 tokens
 */
contract Token {
    function totalSupply() public view returns (uint256 supply);

    function balanceOf(address _owner) public view returns (uint256 balance);

    function transfer(address _to, uint256 _value)
        public
        returns (bool success);

    function transferFrom(
        address _from,
        address _to,
        uint256 _value
    ) public returns (bool success);

    function approve(address _spender, uint256 _value)
        public
        returns (bool success);

    function allowance(address _owner, address _spender)
        public
        view
        returns (uint256 remaining);
    
    function burn(uint256 amount) public;

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(
        address indexed _owner,
        address indexed _spender,
        uint256 _value
    );
}


contract TokenSwapPhase2 {
    using SafeMath for uint256;

    constructor() public {
        owner = msg.sender;
        isEnd = false;
    }
    
    address constant KAI_ADDRESS = 0xD9Ec3ff1f8be459Bb9369b4E79e9Ebcf7141C093;

    address private owner;
    address[] public depositors;
    bool public isEnd;
    mapping (address => uint256) public amount;

    // Functions with this modifier can only be executed by the owner
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }
    
    function depositKAI(address _toAddress,  uint256 _amount) public {
        require(isEnd == false, "The campaign is ended");
        require(Token(KAI_ADDRESS).transferFrom(msg.sender, address(this), _amount));
        
        if (amount[_toAddress] == 0) {
            depositors.push(_toAddress);
        }
        
        amount[_toAddress] += _amount;
    }
    

    function burnKAI() public onlyOwner {
        Token(KAI_ADDRESS).burn(getBalanceKAIContract());
    }
    
    function getBalanceKAIContract() public view returns (uint256) {
        return Token(KAI_ADDRESS).balanceOf(address(this));
    }

    function setIsEnd() public onlyOwner {
        isEnd = true;
    }
    
    function getNumberDepositors() public view returns (uint256) {
        return depositors.length;
    }
    
    function emergencyWithdrawalKAI(uint256 _amount) public onlyOwner {
        Token(KAI_ADDRESS).transfer(msg.sender, _amount);
    }  
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[],"name":"setIsEnd","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"burnKAI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isEnd","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amount","type":"uint256"}],"name":"depositKAI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"emergencyWithdrawalKAI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getNumberDepositors","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"amount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getBalanceKAIContract","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"depositors","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

608060405234801561001057600080fd5b5060008054600160a060020a031916331790556002805460ff1916905561065d8061003c6000396000f3fe6080604052600436106100985763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632c6fedf7811461009d5780632e8ca99c146100b45780632fc6e8b7146100c95780635cb48ba0146100f25780638f970ea21461012b57806398aab34114610155578063b9f0bf661461017c578063dd173df1146101af578063e4b2fb79146101c4575b600080fd5b3480156100a957600080fd5b506100b261020a565b005b3480156100c057600080fd5b506100b2610230565b3480156100d557600080fd5b506100de6102d5565b604080519115158252519081900360200190f35b3480156100fe57600080fd5b506100b26004803603604081101561011557600080fd5b50600160a060020a0381351690602001356102de565b34801561013757600080fd5b506100b26004803603602081101561014e57600080fd5b5035610499565b34801561016157600080fd5b5061016a610552565b60408051918252519081900360200190f35b34801561018857600080fd5b5061016a6004803603602081101561019f57600080fd5b5035600160a060020a0316610558565b3480156101bb57600080fd5b5061016a61056a565b3480156101d057600080fd5b506101ee600480360360208110156101e757600080fd5b5035610609565b60408051600160a060020a039092168252519081900360200190f35b600054600160a060020a0316331461022157600080fd5b6002805460ff19166001179055565b600054600160a060020a0316331461024757600080fd5b73d9ec3ff1f8be459bb9369b4e79e9ebcf7141c0936342966c6861026961056a565b6040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b1580156102bb57600080fd5b505af11580156102cf573d6000803e3d6000fd5b50505050565b60025460ff1681565b60025460ff161561035057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5468652063616d706169676e20697320656e6465640000000000000000000000604482015290519081900360640190fd5b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052905173d9ec3ff1f8be459bb9369b4e79e9ebcf7141c093916323b872dd9160648083019260209291908290030181600087803b1580156103c957600080fd5b505af11580156103dd573d6000803e3d6000fd5b505050506040513d60208110156103f357600080fd5b5051151561040057600080fd5b600160a060020a0382166000908152600360205260409020541515610477576001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790555b600160a060020a03909116600090815260036020526040902080549091019055565b600054600160a060020a031633146104b057600080fd5b604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015260248101839052905173d9ec3ff1f8be459bb9369b4e79e9ebcf7141c0939163a9059cbb9160448083019260209291908290030181600087803b15801561052357600080fd5b505af1158015610537573d6000803e3d6000fd5b505050506040513d602081101561054d57600080fd5b505050565b60015490565b60036020526000908152604090205481565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173d9ec3ff1f8be459bb9369b4e79e9ebcf7141c093916370a0823191602480820192602092909190829003018186803b1580156105d857600080fd5b505afa1580156105ec573d6000803e3d6000fd5b505050506040513d602081101561060257600080fd5b5051905090565b600180548290811061061757fe5b600091825260209091200154600160a060020a031690508156fea165627a7a72305820543e811c9f130241654ce820dce738fbf2366f4c8cf22d6cf6cfbfafc3c57e890029

Deployed Bytecode

0x6080604052600436106100985763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632c6fedf7811461009d5780632e8ca99c146100b45780632fc6e8b7146100c95780635cb48ba0146100f25780638f970ea21461012b57806398aab34114610155578063b9f0bf661461017c578063dd173df1146101af578063e4b2fb79146101c4575b600080fd5b3480156100a957600080fd5b506100b261020a565b005b3480156100c057600080fd5b506100b2610230565b3480156100d557600080fd5b506100de6102d5565b604080519115158252519081900360200190f35b3480156100fe57600080fd5b506100b26004803603604081101561011557600080fd5b50600160a060020a0381351690602001356102de565b34801561013757600080fd5b506100b26004803603602081101561014e57600080fd5b5035610499565b34801561016157600080fd5b5061016a610552565b60408051918252519081900360200190f35b34801561018857600080fd5b5061016a6004803603602081101561019f57600080fd5b5035600160a060020a0316610558565b3480156101bb57600080fd5b5061016a61056a565b3480156101d057600080fd5b506101ee600480360360208110156101e757600080fd5b5035610609565b60408051600160a060020a039092168252519081900360200190f35b600054600160a060020a0316331461022157600080fd5b6002805460ff19166001179055565b600054600160a060020a0316331461024757600080fd5b73d9ec3ff1f8be459bb9369b4e79e9ebcf7141c0936342966c6861026961056a565b6040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b1580156102bb57600080fd5b505af11580156102cf573d6000803e3d6000fd5b50505050565b60025460ff1681565b60025460ff161561035057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5468652063616d706169676e20697320656e6465640000000000000000000000604482015290519081900360640190fd5b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052905173d9ec3ff1f8be459bb9369b4e79e9ebcf7141c093916323b872dd9160648083019260209291908290030181600087803b1580156103c957600080fd5b505af11580156103dd573d6000803e3d6000fd5b505050506040513d60208110156103f357600080fd5b5051151561040057600080fd5b600160a060020a0382166000908152600360205260409020541515610477576001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790555b600160a060020a03909116600090815260036020526040902080549091019055565b600054600160a060020a031633146104b057600080fd5b604080517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015260248101839052905173d9ec3ff1f8be459bb9369b4e79e9ebcf7141c0939163a9059cbb9160448083019260209291908290030181600087803b15801561052357600080fd5b505af1158015610537573d6000803e3d6000fd5b505050506040513d602081101561054d57600080fd5b505050565b60015490565b60036020526000908152604090205481565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173d9ec3ff1f8be459bb9369b4e79e9ebcf7141c093916370a0823191602480820192602092909190829003018186803b1580156105d857600080fd5b505afa1580156105ec573d6000803e3d6000fd5b505050506040513d602081101561060257600080fd5b5051905090565b600180548290811061061757fe5b600091825260209091200154600160a060020a031690508156fea165627a7a72305820543e811c9f130241654ce820dce738fbf2366f4c8cf22d6cf6cfbfafc3c57e890029

Deployed Bytecode Sourcemap

1509:1518:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2693:68;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2693:68:0;;;;;;2438:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2438:103:0;;;;1814:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1814:17:0;;;;;;;;;;;;;;;;;;;;;;2052:372;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2052:372:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2052:372:0;;;;;;;;;2889:133;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2889:133:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2889:133:0;;;2773:104;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2773:104:0;;;;;;;;;;;;;;;;;;;;1838:42;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1838:42:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1838:42:0;-1:-1:-1;;;;;1838:42:0;;;2553:132;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2553:132:0;;;;1780:27;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1780:27:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1780:27:0;;;;;;;-1:-1:-1;;;;;1780:27:0;;;;;;;;;;;;;;2693:68;2014:5;;-1:-1:-1;;;;;2014:5:0;2000:10;:19;1992:28;;;;;;2741:5;:12;;-1:-1:-1;;2741:12:0;2749:4;2741:12;;;2693:68::o;2438:103::-;2014:5;;-1:-1:-1;;;;;2014:5:0;2000:10;:19;1992:28;;;;;;1701:42;2485:23;2509;:21;:23::i;:::-;2485:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2485:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2485:48:0;;;;2438:103::o;1814:17::-;;;;;;:::o;2052:372::-;2136:5;;;;:14;2128:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2195:67;;;;;;2227:10;2195:67;;;;2247:4;2195:67;;;;;;;;;;;;1701:42;;2195:31;;:67;;;;;;;;;;;;;;-1:-1:-1;1701:42:0;2195:67;;;5:2:-1;;;;30:1;27;20:12;5:2;2195:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2195:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2195:67:0;2187:76;;;;;;;;-1:-1:-1;;;;;2288:18:0;;;;;;:6;:18;;;;;;:23;2284:83;;;2328:10;27::-1;;23:18;;;45:23;;-1:-1;2328:27:0;;;;;;;;-1:-1:-1;;2328:27:0;-1:-1:-1;;;;;2328:27:0;;;;;2284:83;-1:-1:-1;;;;;2387:18:0;;;;;;;:6;:18;;;;;:29;;;;;;;2052:372::o;2889:133::-;2014:5;;-1:-1:-1;;;;;2014:5:0;2000:10;:19;1992:28;;;;;;2966:48;;;;;;2994:10;2966:48;;;;;;;;;;;;1701:42;;2966:27;;:48;;;;;;;;;;;;;;-1:-1:-1;1701:42:0;2966:48;;;5:2:-1;;;;30:1;27;20:12;5:2;2966:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2966:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;2889:133:0:o;2773:104::-;2852:10;:17;2773:104;:::o;1838:42::-;;;;;;;;;;;;;:::o;2553:132::-;2634:43;;;;;;2671:4;2634:43;;;;;;2607:7;;1701:42;;2634:28;;:43;;;;;;;;;;;;;;;1701:42;2634:43;;;5:2:-1;;;;30:1;27;20:12;5:2;2634:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2634:43:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2634:43:0;;-1:-1:-1;2553:132:0;:::o;1780:27::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1780:27:0;;-1:-1:-1;1780:27:0;:::o

Swarm Source

bzzr://543e811c9f130241654ce820dce738fbf2366f4c8cf22d6cf6cfbfafc3c57e89

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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.