Contract Overview
Balance:
0 BNB
Token:
My Name Tag:
Not Available
Txn Hash |
Block
|
From
|
To
|
Value | [Txn Fee] | ||
---|---|---|---|---|---|---|---|
0xf8ffde9104d64a70806e4b8dafa6900932223cad8f82e1dc7239bd7008d00a77 | 6549642 | 2 days 11 hrs ago | 0x26b7cf0179c6816c75d878819ed7f3c35ed48602 | IN | 0x27fc3fb0f73d1a7ec922607b7505a2cea06485d6 | 0 BNB | 0.0004572 |
0x2f434976f3e27055278f382e7c958bd65440e7ca79db2482e4c46c5aa7a59e3c | 6549638 | 2 days 11 hrs ago | 0x26b7cf0179c6816c75d878819ed7f3c35ed48602 | IN | 0x27fc3fb0f73d1a7ec922607b7505a2cea06485d6 | 0 BNB | 0.0005912 |
0x0a36f8712a7511953d0e570014b3f02afb96d5aa35263f62909dd418ba11e541 | 6549632 | 2 days 11 hrs ago | 0x26b7cf0179c6816c75d878819ed7f3c35ed48602 | IN | 0x27fc3fb0f73d1a7ec922607b7505a2cea06485d6 | 1 BNB | 0.00077932 |
0xe5382dff86c637b6873b3d20e22e53d1addd29e79e3d5ed63c6134523b176948 | 6549603 | 2 days 12 hrs ago | 0x26b7cf0179c6816c75d878819ed7f3c35ed48602 | IN | Contract Creation | 0 BNB | 0.00511188 |
[ Download CSV Export ]
Latest 3 internal transactions
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0xf8ffde9104d64a70806e4b8dafa6900932223cad8f82e1dc7239bd7008d00a77 | 6549642 | 2 days 11 hrs ago | 0x27fc3fb0f73d1a7ec922607b7505a2cea06485d6 | 0x26b7cf0179c6816c75d878819ed7f3c35ed48602 | 0 BNB | ||
0x2f434976f3e27055278f382e7c958bd65440e7ca79db2482e4c46c5aa7a59e3c | 6549638 | 2 days 11 hrs ago | 0x27fc3fb0f73d1a7ec922607b7505a2cea06485d6 | 0x26b7cf0179c6816c75d878819ed7f3c35ed48602 | 1 BNB | ||
0x0a36f8712a7511953d0e570014b3f02afb96d5aa35263f62909dd418ba11e541 | 6549632 | 2 days 11 hrs ago | 0x27fc3fb0f73d1a7ec922607b7505a2cea06485d6 | 0x74a9a5c519dc21295be43a39a9ba34ce63a96756 | 0 BNB |
[ Download CSV Export ]
Contract Name:
Sale
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at BscScan.com on 2021-02-23 */ pragma solidity ^0.5.16; interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address _owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } contract Sale { address tokenAddress = 0x74a9a5c519Dc21295be43a39a9ba34Ce63A96756; IBEP20 pooh = IBEP20(tokenAddress); address owner = 0x26b7cF0179c6816c75D878819ed7f3C35ED48602; uint256 rate = 100000; function buyToken() public payable { require(msg.value > 0, "No BNB sent"); pooh.transfer(msg.sender, (msg.value * rate)); } function getPayment() public { require(msg.sender == owner); msg.sender.transfer(address(this).balance); } function changeRate(uint256 _amt) public { require(msg.sender == owner, "Not the contract owner"); rate = _amt; } }
[{"constant":false,"inputs":[],"name":"buyToken","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"changeRate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getPayment","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600080546001600160a01b03199081167374a9a5c519dc21295be43a39a9ba34ce63a9675617918290556001805482166001600160a01b039390931692909217909155600280549091167326b7cf0179c6816c75d878819ed7f3c35ed48602179055620186a060035534801561007957600080fd5b50610223806100896000396000f3fe6080604052600436106100345760003560e01c806374e7493b14610039578063a482171914610065578063bb328a7d1461006d575b600080fd5b34801561004557600080fd5b506100636004803603602081101561005c57600080fd5b5035610082565b005b6100636100df565b34801561007957600080fd5b506100636101a8565b6002546001600160a01b031633146100da576040805162461bcd60e51b81526020600482015260166024820152752737ba103a34329031b7b73a3930b1ba1037bbb732b960511b604482015290519081900360640190fd5b600355565b60003411610122576040805162461bcd60e51b815260206004820152600b60248201526a139bc8109390881cd95b9d60aa1b604482015290519081900360640190fd5b6001546003546040805163a9059cbb60e01b8152336004820152349092026024830152516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b15801561017a57600080fd5b505af115801561018e573d6000803e3d6000fd5b505050506040513d60208110156101a457600080fd5b5050565b6002546001600160a01b031633146101bf57600080fd5b60405133904780156108fc02916000818181858888f193505050501580156101eb573d6000803e3d6000fd5b5056fea265627a7a72315820cb9edb31d0d7251c73f71f42a896fcf1c860eceddd34423fe4159b1eff2d417064736f6c63430005110032
Deployed ByteCode Sourcemap
11309:684:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11848:136;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11848:136:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11848:136:0;;:::i;:::-;;11548:147;;;:::i;11707:129::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11707:129:0;;;:::i;11848:136::-;11922:5;;-1:-1:-1;;;;;11922:5:0;11908:10;:19;11900:54;;;;;-1:-1:-1;;;11900:54:0;;;;;;;;;;;;-1:-1:-1;;;11900:54:0;;;;;;;;;;;;;;;11965:4;:11;11848:136::o;11548:147::-;11614:1;11602:9;:13;11594:37;;;;;-1:-1:-1;;;11594:37:0;;;;;;;;;;;;-1:-1:-1;;;11594:37:0;;;;;;;;;;;;;;;11642:4;;11681;;11642:45;;;-1:-1:-1;;;11642:45:0;;11656:10;11642:45;;;;11669:9;:16;;;11642:45;;;;;-1:-1:-1;;;;;11642:4:0;;;;:13;;:45;;;;;;;;;;;;;;;:4;;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;11642:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11642:45:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;11548:147:0:o;11707:129::-;11769:5;;-1:-1:-1;;;;;11769:5:0;11755:10;:19;11747:28;;;;;;11786:42;;:10;;11806:21;11786:42;;;;;;;;;11806:21;11786:10;:42;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11786:42:0;11707:129::o
Swarm Source
bzzr://cb9edb31d0d7251c73f71f42a896fcf1c860eceddd34423fe4159b1eff2d4170
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|