Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 11 from a total of 11 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 11160856 | 1516 days ago | IN | 0 ETH | 0.00026742 | ||||
Set Airdrop Supp... | 11158138 | 1517 days ago | IN | 0 ETH | 0.0028676 | ||||
Set Airdrop Supp... | 11067930 | 1530 days ago | IN | 0 ETH | 0.00235466 | ||||
Set Airdrop Supp... | 11067930 | 1530 days ago | IN | 0 ETH | 0.00235466 | ||||
Set Airdrop Supp... | 11067929 | 1530 days ago | IN | 0 ETH | 0.002354 | ||||
Set Airdrop Supp... | 11067857 | 1530 days ago | IN | 0 ETH | 0.00235466 | ||||
Set Airdrop Supp... | 11067820 | 1530 days ago | IN | 0 ETH | 0.00235466 | ||||
Set Airdrop Supp... | 11067817 | 1530 days ago | IN | 0 ETH | 0.00235466 | ||||
Set Airdrop Supp... | 11067816 | 1530 days ago | IN | 0 ETH | 0.00235466 | ||||
Set Airdrop Supp... | 11067812 | 1530 days ago | IN | 0 ETH | 0.00235466 | ||||
Set Airdrop Supp... | 11067283 | 1530 days ago | IN | 0 ETH | 0.00253761 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DONDIAirdrop
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-15 */ /* * Author : Christopher D. */ pragma solidity 0.5.17; library SafeMath { function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } } interface IERC20 { function mint(address account, uint amount) external; } contract DONDIAirdrop { using SafeMath for uint256; mapping(address => uint256) public supplies; IERC20 public dondi = IERC20(0x45Ed25A237B6AB95cE69aF7555CF8D7A2FfEE67c); //need replace address public gov; event Airdropped(address indexed user_, uint256 value_); constructor() public { gov = msg.sender; } modifier onlyGov() { require(msg.sender == gov, "require gov!"); _; } function setAirdropSupply(address pool, uint256 initSupply) external onlyGov { supplies[pool] = initSupply; } function transferOwnership(address owner) external onlyGov { gov = owner; } function getRemainAirdrop(address pool) external view returns (uint256) { return supplies[pool]; } function airdrop(uint256 value) external { require(supplies[msg.sender] > 0, "Unable to call!"); require(value > 0, "Unable to airdrop 0!"); require(supplies[msg.sender] >= value, "Unable to airdrop!"); dondi.mint(msg.sender, value); supplies[msg.sender] = supplies[msg.sender].sub(value); emit Airdropped(msg.sender, value); } function airdropAll() external { uint256 value = supplies[msg.sender]; require(value > 0, "Unable to call!"); dondi.mint(msg.sender, value); supplies[msg.sender] = 0; emit Airdropped(msg.sender, value); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user_","type":"address"},{"indexed":false,"internalType":"uint256","name":"value_","type":"uint256"}],"name":"Airdropped","type":"event"},{"constant":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"airdrop","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"airdropAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"dondi","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"getRemainAirdrop","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"initSupply","type":"uint256"}],"name":"setAirdropSupply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supplies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600180546001600160a01b0319167345ed25a237b6ab95ce69af7555cf8d7a2ffee67c17905534801561003657600080fd5b50600280546001600160a01b0319163317905561069f806100586000396000f3fe608060405234801561001057600080fd5b50600436106100875760003560e01c806397dc4a131161005b57806397dc4a131461011e578063cc42adab1461013b578063f2fde38b14610161578063f86450fb1461018757610087565b80625b31f71461008c57806312d43a51146100ba578063274cee31146100de578063660c507514610116575b600080fd5b6100b8600480360360408110156100a257600080fd5b506001600160a01b03813516906020013561018f565b005b6100c26101f9565b604080516001600160a01b039092168252519081900360200190f35b610104600480360360208110156100f457600080fd5b50356001600160a01b0316610208565b60408051918252519081900360200190f35b6100b861021a565b6100b86004803603602081101561013457600080fd5b5035610322565b6101046004803603602081101561015157600080fd5b50356001600160a01b03166104f0565b6100b86004803603602081101561017757600080fd5b50356001600160a01b031661050b565b6100c261057b565b6002546001600160a01b031633146101dd576040805162461bcd60e51b815260206004820152600c60248201526b7265717569726520676f762160a01b604482015290519081900360640190fd5b6001600160a01b03909116600090815260208190526040902055565b6002546001600160a01b031681565b60006020819052908152604090205481565b336000908152602081905260409020548061026e576040805162461bcd60e51b815260206004820152600f60248201526e556e61626c6520746f2063616c6c2160881b604482015290519081900360640190fd5b600154604080516340c10f1960e01b81523360048201526024810184905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b1580156102c157600080fd5b505af11580156102d5573d6000803e3d6000fd5b50503360008181526020818152604080832092909255815186815291519294507f7bd6d4be1decdc27a9ed9c7ccdf5bb7cc38e31b3647b958c6b37162a2296c0fa9350908290030190a250565b33600090815260208190526040902054610375576040805162461bcd60e51b815260206004820152600f60248201526e556e61626c6520746f2063616c6c2160881b604482015290519081900360640190fd5b600081116103c1576040805162461bcd60e51b8152602060048201526014602482015273556e61626c6520746f2061697264726f7020302160601b604482015290519081900360640190fd5b3360009081526020819052604090205481111561041a576040805162461bcd60e51b8152602060048201526012602482015271556e61626c6520746f2061697264726f702160701b604482015290519081900360640190fd5b600154604080516340c10f1960e01b81523360048201526024810184905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b15801561046d57600080fd5b505af1158015610481573d6000803e3d6000fd5b5050336000908152602081905260409020546104a6925090508263ffffffff61058a16565b3360008181526020818152604091829020939093558051848152905191927f7bd6d4be1decdc27a9ed9c7ccdf5bb7cc38e31b3647b958c6b37162a2296c0fa92918290030190a250565b6001600160a01b031660009081526020819052604090205490565b6002546001600160a01b03163314610559576040805162461bcd60e51b815260206004820152600c60248201526b7265717569726520676f762160a01b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b60006105cc83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506105d3565b9392505050565b600081848411156106625760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561062757818101518382015260200161060f565b50505050905090810190601f1680156106545780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fea265627a7a723158203b652f4ae4de6dae07f167fbc9006cd80dd1bad0cf3c1e90029cd40daf1e339b64736f6c63430005110032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100875760003560e01c806397dc4a131161005b57806397dc4a131461011e578063cc42adab1461013b578063f2fde38b14610161578063f86450fb1461018757610087565b80625b31f71461008c57806312d43a51146100ba578063274cee31146100de578063660c507514610116575b600080fd5b6100b8600480360360408110156100a257600080fd5b506001600160a01b03813516906020013561018f565b005b6100c26101f9565b604080516001600160a01b039092168252519081900360200190f35b610104600480360360208110156100f457600080fd5b50356001600160a01b0316610208565b60408051918252519081900360200190f35b6100b861021a565b6100b86004803603602081101561013457600080fd5b5035610322565b6101046004803603602081101561015157600080fd5b50356001600160a01b03166104f0565b6100b86004803603602081101561017757600080fd5b50356001600160a01b031661050b565b6100c261057b565b6002546001600160a01b031633146101dd576040805162461bcd60e51b815260206004820152600c60248201526b7265717569726520676f762160a01b604482015290519081900360640190fd5b6001600160a01b03909116600090815260208190526040902055565b6002546001600160a01b031681565b60006020819052908152604090205481565b336000908152602081905260409020548061026e576040805162461bcd60e51b815260206004820152600f60248201526e556e61626c6520746f2063616c6c2160881b604482015290519081900360640190fd5b600154604080516340c10f1960e01b81523360048201526024810184905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b1580156102c157600080fd5b505af11580156102d5573d6000803e3d6000fd5b50503360008181526020818152604080832092909255815186815291519294507f7bd6d4be1decdc27a9ed9c7ccdf5bb7cc38e31b3647b958c6b37162a2296c0fa9350908290030190a250565b33600090815260208190526040902054610375576040805162461bcd60e51b815260206004820152600f60248201526e556e61626c6520746f2063616c6c2160881b604482015290519081900360640190fd5b600081116103c1576040805162461bcd60e51b8152602060048201526014602482015273556e61626c6520746f2061697264726f7020302160601b604482015290519081900360640190fd5b3360009081526020819052604090205481111561041a576040805162461bcd60e51b8152602060048201526012602482015271556e61626c6520746f2061697264726f702160701b604482015290519081900360640190fd5b600154604080516340c10f1960e01b81523360048201526024810184905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b15801561046d57600080fd5b505af1158015610481573d6000803e3d6000fd5b5050336000908152602081905260409020546104a6925090508263ffffffff61058a16565b3360008181526020818152604091829020939093558051848152905191927f7bd6d4be1decdc27a9ed9c7ccdf5bb7cc38e31b3647b958c6b37162a2296c0fa92918290030190a250565b6001600160a01b031660009081526020819052604090205490565b6002546001600160a01b03163314610559576040805162461bcd60e51b815260206004820152600c60248201526b7265717569726520676f762160a01b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b60006105cc83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506105d3565b9392505050565b600081848411156106625760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561062757818101518382015260200161060f565b50505050905090810190601f1680156106545780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fea265627a7a723158203b652f4ae4de6dae07f167fbc9006cd80dd1bad0cf3c1e90029cd40daf1e339b64736f6c63430005110032
Deployed Bytecode Sourcemap
511:1589:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;511:1589:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;995:146;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;995:146:0;;;;;;;;:::i;:::-;;721:18;;;:::i;:::-;;;;-1:-1:-1;;;;;721:18:0;;;;;;;;;;;;;;575:43;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;575:43:0;-1:-1:-1;;;;;575:43:0;;:::i;:::-;;;;;;;;;;;;;;;;1829:268;;;:::i;1421:400::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1421:400:0;;:::i;1269:144::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1269:144:0;-1:-1:-1;;;;;1269:144:0;;:::i;1149:112::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1149:112:0;-1:-1:-1;;;;;1149:112:0;;:::i;625:72::-;;;:::i;995:146::-;947:3;;-1:-1:-1;;;;;947:3:0;933:10;:17;925:42;;;;;-1:-1:-1;;;925:42:0;;;;;;;;;;;;-1:-1:-1;;;925:42:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;1106:14:0;;;:8;:14;;;;;;;;;;:27;995:146::o;721:18::-;;;-1:-1:-1;;;;;721:18:0;;:::o;575:43::-;;;;;;;;;;;;;;:::o;1829:268::-;1910:10;1885:13;1901:20;;;;;;;;;;;1940:9;1932:37;;;;;-1:-1:-1;;;1932:37:0;;;;;;;;;;;;-1:-1:-1;;;1932:37:0;;;;;;;;;;;;;;;1980:5;;:29;;;-1:-1:-1;;;1980:29:0;;1991:10;1980:29;;;;;;;;;;;;-1:-1:-1;;;;;1980:5:0;;;;:10;;:29;;;;;:5;;:29;;;;;;;;:5;;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;1980:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;2029:10:0;2043:1;2020:20;;;;;;;;;;;:24;;;;2060:29;;;;;;;2029:10;;-1:-1:-1;2060:29:0;;-1:-1:-1;2060:29:0;;;;;;;1829:268;:::o;1421:400::-;1504:10;1518:1;1495:20;;;;;;;;;;;1487:52;;;;;-1:-1:-1;;;1487:52:0;;;;;;;;;;;;-1:-1:-1;;;1487:52:0;;;;;;;;;;;;;;;1566:1;1558:5;:9;1550:42;;;;;-1:-1:-1;;;1550:42:0;;;;;;;;;;;;-1:-1:-1;;;1550:42:0;;;;;;;;;;;;;;;1620:10;1611:8;:20;;;;;;;;;;;:29;-1:-1:-1;1611:29:0;1603:60;;;;;-1:-1:-1;;;1603:60:0;;;;;;;;;;;;-1:-1:-1;;;1603:60:0;;;;;;;;;;;;;;;1674:5;;:29;;;-1:-1:-1;;;1674:29:0;;1685:10;1674:29;;;;;;;;;;;;-1:-1:-1;;;;;1674:5:0;;;;:10;;:29;;;;;:5;;:29;;;;;;;;:5;;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;1674:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;1746:10:0;1737:8;:20;;;;;;;;;;;:31;;-1:-1:-1;1737:20:0;-1:-1:-1;1762:5:0;1737:31;:24;:31;:::i;:::-;1723:10;1714:8;:20;;;;;;;;;;;;:54;;;;1784:29;;;;;;;1723:10;;1784:29;;;;;;;;;1421:400;:::o;1269:144::-;-1:-1:-1;;;;;1391:14:0;1359:7;1391:14;;;;;;;;;;;;1269:144::o;1149:112::-;947:3;;-1:-1:-1;;;;;947:3:0;933:10;:17;925:42;;;;;-1:-1:-1;;;925:42:0;;;;;;;;;;;;-1:-1:-1;;;925:42:0;;;;;;;;;;;;;;;1242:3;:11;;-1:-1:-1;;;;;;1242:11:0;-1:-1:-1;;;;;1242:11:0;;;;;;;;;;1149:112::o;625:72::-;;;-1:-1:-1;;;;;625:72:0;;:::o;88:136::-;146:7;173:43;177:1;180;173:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;166:50;88:136;-1:-1:-1;;;88:136:0:o;230:190::-;316:7;352:12;344:6;;;;336:29;;;;-1:-1:-1;;;336:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;336:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;388:5:0;;;230:190::o
Swarm Source
bzzr://3b652f4ae4de6dae07f167fbc9006cd80dd1bad0cf3c1e90029cd40daf1e339b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.