More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 470 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit KAI | 12011065 | 1270 days ago | IN | 0 ETH | 0.00274716 | ||||
Burn KAI | 11633810 | 1328 days ago | IN | 0 ETH | 0.00146423 | ||||
Set Is End | 11630234 | 1329 days ago | IN | 0 ETH | 0.00214575 | ||||
Deposit KAI | 11630194 | 1329 days ago | IN | 0 ETH | 0.00401629 | ||||
Deposit KAI | 11630165 | 1329 days ago | IN | 0 ETH | 0.00316173 | ||||
Deposit KAI | 11630151 | 1329 days ago | IN | 0 ETH | 0.0018219 | ||||
Deposit KAI | 11630132 | 1329 days ago | IN | 0 ETH | 0.00501779 | ||||
Deposit KAI | 11630127 | 1329 days ago | IN | 0 ETH | 0.00247123 | ||||
Deposit KAI | 11630116 | 1329 days ago | IN | 0 ETH | 0.00501779 | ||||
Deposit KAI | 11630061 | 1329 days ago | IN | 0 ETH | 0.00230986 | ||||
Deposit KAI | 11630036 | 1329 days ago | IN | 0 ETH | 0.00190462 | ||||
Deposit KAI | 11630033 | 1329 days ago | IN | 0 ETH | 0.00181771 | ||||
Deposit KAI | 11630027 | 1329 days ago | IN | 0 ETH | 0.00267176 | ||||
Deposit KAI | 11630027 | 1329 days ago | IN | 0 ETH | 0.00181771 | ||||
Deposit KAI | 11630020 | 1329 days ago | IN | 0 ETH | 0.00450635 | ||||
Deposit KAI | 11629959 | 1329 days ago | IN | 0 ETH | 0.00252082 | ||||
Deposit KAI | 11629929 | 1329 days ago | IN | 0 ETH | 0.00410206 | ||||
Deposit KAI | 11629915 | 1329 days ago | IN | 0 ETH | 0.00468944 | ||||
Deposit KAI | 11629908 | 1329 days ago | IN | 0 ETH | 0.00252082 | ||||
Deposit KAI | 11629905 | 1329 days ago | IN | 0 ETH | 0.00501853 | ||||
Deposit KAI | 11629894 | 1329 days ago | IN | 0 ETH | 0.00252082 | ||||
Deposit KAI | 11629889 | 1329 days ago | IN | 0 ETH | 0.00501706 | ||||
Deposit KAI | 11629876 | 1329 days ago | IN | 0 ETH | 0.00165493 | ||||
Deposit KAI | 11629849 | 1329 days ago | IN | 0 ETH | 0.00165493 | ||||
Deposit KAI | 11629843 | 1329 days ago | IN | 0 ETH | 0.00437788 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
11633810 | 1328 days ago | 0 ETH | |||||
11633810 | 1328 days ago | 0 ETH | |||||
11630194 | 1329 days ago | 0 ETH | |||||
11630165 | 1329 days ago | 0 ETH | |||||
11630151 | 1329 days ago | 0 ETH | |||||
11630132 | 1329 days ago | 0 ETH | |||||
11630127 | 1329 days ago | 0 ETH | |||||
11630116 | 1329 days ago | 0 ETH | |||||
11630061 | 1329 days ago | 0 ETH | |||||
11630036 | 1329 days ago | 0 ETH | |||||
11630033 | 1329 days ago | 0 ETH | |||||
11630027 | 1329 days ago | 0 ETH | |||||
11630027 | 1329 days ago | 0 ETH | |||||
11630020 | 1329 days ago | 0 ETH | |||||
11629959 | 1329 days ago | 0 ETH | |||||
11629929 | 1329 days ago | 0 ETH | |||||
11629915 | 1329 days ago | 0 ETH | |||||
11629908 | 1329 days ago | 0 ETH | |||||
11629905 | 1329 days ago | 0 ETH | |||||
11629894 | 1329 days ago | 0 ETH | |||||
11629889 | 1329 days ago | 0 ETH | |||||
11629876 | 1329 days ago | 0 ETH | |||||
11629849 | 1329 days ago | 0 ETH | |||||
11629843 | 1329 days ago | 0 ETH | |||||
11629777 | 1329 days ago | 0 ETH |
Loading...
Loading
Contract Name:
TokenSwapPhase2
Compiler Version
v0.5.0+commit.1d4f565a
Contract Source Code (Solidity)
/** *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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.001991 | 100 | $0.199 |
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.