Contract 0xE0d3c699e8d5a32E9e360cAEA4a222698D708E70

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb62080116222c7836bc051f10864d30fbaeaf44478d5449f23dd69ee89d826f8Transfer Ownersh...98492892021-08-08 9:22:3880 days 3 hrs agoAlita: Deployer IN  0xe0d3c699e8d5a32e9e360caea4a222698d708e700 BNB0.00015411
0x279ffe1a235014881ca12dc6f234c84f5180050e176795bfbd01169a5c16eca40x6080604098402542021-08-08 1:43:5480 days 11 hrs agoAlita: Deployer IN  Contract Creation0 BNB0.001992245
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xC057C6c2dfB25c9a613052dCEa73e21b50F7F838

Contract Name:
Staking

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at BscScan.com on 2021-08-08
*/

// File: @pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

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);
}

// File: @pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol


pragma solidity >=0.4.0;

/*
 * @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;
    }
}

// File: @pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol


pragma solidity >=0.4.0;


/**
 * @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;
    }
}

// File: contracts/Staking.sol


pragma solidity 0.6.12;

// import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol";


// SyrupBar with Governance.
contract Staking is Ownable{
    address public alita; // swap token

    constructor(
        address _alita
    ) public {
        alita = _alita;
    }

    // just in case if not have enough CAKEs.
    function safeTransfer(address _to, uint256 _amount) public onlyOwner {
        uint256 aliBal = IBEP20(alita).balanceOf(address(this));
        if (_amount > aliBal) {
            IBEP20(alita).transfer(_to, aliBal);
        } else {
            IBEP20(alita).transfer(_to, _amount);
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_alita","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"alita","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"safeTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161062b38038061062b8339818101604052602081101561003357600080fd5b5051600061003f6100ae565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100b2565b3390565b61056a806100c16000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c80638da5cb5b116100505780638da5cb5b146100a2578063ac947e2d146100c6578063f2fde38b146100ce57610067565b8063423f6cef1461006c578063715018a61461009a575b600080fd5b6100986004803603604081101561008257600080fd5b506001600160a01b0381351690602001356100f4565b005b610098610308565b6100aa6103c9565b604080516001600160a01b039092168252519081900360200190f35b6100aa6103d8565b610098600480360360208110156100e457600080fd5b50356001600160a01b03166103e7565b6100fc61045d565b6000546001600160a01b0390811691161461015e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156101c257600080fd5b505afa1580156101d6573d6000803e3d6000fd5b505050506040513d60208110156101ec57600080fd5b5051905080821115610280576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561024e57600080fd5b505af1158015610262573d6000803e3d6000fd5b505050506040513d602081101561027857600080fd5b506103039050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156102d657600080fd5b505af11580156102ea573d6000803e3d6000fd5b505050506040513d602081101561030057600080fd5b50505b505050565b61031061045d565b6000546001600160a01b03908116911614610372576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000546001600160a01b031690565b6001546001600160a01b031681565b6103ef61045d565b6000546001600160a01b03908116911614610451576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61045a81610461565b50565b3390565b6001600160a01b0381166104a65760405162461bcd60e51b815260040180806020018281038252602681526020018061050f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691909117905556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220fa5d4903c32776f5d7496e41c451b767a26361ac2009d8d62c6857d91d3a87c064736f6c634300060c0033000000000000000000000000d5c4a01e213e659e82316dab553954ef428dca4c

Deployed ByteCode Sourcemap

7130:525:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7346:306;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;7346:306:0;;;;;;;;:::i;:::-;;6211:140;;;:::i;5569:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;5569:79:0;;;;;;;;;;;;;;7164:20;;;:::i;6506:109::-;;;;;;;;;;;;;;;;-1:-1:-1;6506:109:0;-1:-1:-1;;;;;6506:109:0;;:::i;7346:306::-;5791:12;:10;:12::i;:::-;5781:6;;-1:-1:-1;;;;;5781:6:0;;;:22;;;5773:67;;;;;-1:-1:-1;;;5773:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7450:5:::1;::::0;7443:38:::1;::::0;;;;;7475:4:::1;7443:38;::::0;::::1;::::0;;;7426:14:::1;::::0;-1:-1:-1;;;;;7450:5:0::1;::::0;7443:23:::1;::::0;:38;;;;;::::1;::::0;;;;;;;;7450:5;7443:38;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;7443:38:0;;-1:-1:-1;7496:16:0;;::::1;7492:153;;;7536:5;::::0;7529:35:::1;::::0;;-1:-1:-1;;;7529:35:0;;-1:-1:-1;;;;;7529:35:0;;::::1;;::::0;::::1;::::0;;;;;;;;;7536:5;;;::::1;::::0;7529:22:::1;::::0;:35;;;;;::::1;::::0;;;;;;;;7536:5:::1;::::0;7529:35;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;7492:153:0::1;::::0;-1:-1:-1;7492:153:0::1;;7604:5;::::0;7597:36:::1;::::0;;-1:-1:-1;;;7597:36:0;;-1:-1:-1;;;;;7597:36:0;;::::1;;::::0;::::1;::::0;;;;;;;;;7604:5;;;::::1;::::0;7597:22:::1;::::0;:36;;;;;::::1;::::0;;;;;;;;7604:5:::1;::::0;7597:36;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;7492:153:0::1;5851:1;7346:306:::0;;:::o;6211:140::-;5791:12;:10;:12::i;:::-;5781:6;;-1:-1:-1;;;;;5781:6:0;;;:22;;;5773:67;;;;;-1:-1:-1;;;5773:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6310:1:::1;6294:6:::0;;6273:40:::1;::::0;-1:-1:-1;;;;;6294:6:0;;::::1;::::0;6273:40:::1;::::0;6310:1;;6273:40:::1;6341:1;6324:19:::0;;-1:-1:-1;;6324:19:0::1;::::0;;6211:140::o;5569:79::-;5607:7;5634:6;-1:-1:-1;;;;;5634:6:0;5569:79;:::o;7164:20::-;;;-1:-1:-1;;;;;7164:20:0;;:::o;6506:109::-;5791:12;:10;:12::i;:::-;5781:6;;-1:-1:-1;;;;;5781:6:0;;;:22;;;5773:67;;;;;-1:-1:-1;;;5773:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6579:28:::1;6598:8;6579:18;:28::i;:::-;6506:109:::0;:::o;4121:98::-;4201:10;4121:98;:::o;6721:229::-;-1:-1:-1;;;;;6795:22:0;;6787:73;;;;-1:-1:-1;;;6787:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6897:6;;;6876:38;;-1:-1:-1;;;;;6876:38:0;;;;6897:6;;;6876:38;;;6925:6;:17;;-1:-1:-1;;6925:17:0;-1:-1:-1;;;;;6925:17:0;;;;;;;;;;6721:229::o

Swarm Source

ipfs://fa5d4903c32776f5d7496e41c451b767a26361ac2009d8d62c6857d91d3a87c0
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.