ETH Price: $2,221.17 (+5.63%)

Contract

0xFa7B8Dc58fC1Adf1e34bB714b88c40F3f967fF82
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Emergency Withdr...136139582021-11-14 12:22:331206 days ago1636892553IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0043180895.89769124
Emergency Withdr...135085302021-10-28 22:56:421223 days ago1635461802IN
0xFa7B8Dc5...3f967fF82
0 ETH0.00865132192.13219519
Withdraw134429152021-10-18 16:34:371233 days ago1634574877IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0063190878.66109118
Emergency Withdr...134429082021-10-18 16:32:351233 days ago1634574755IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0035248478.28115298
Emergency Withdr...134428762021-10-18 16:26:571233 days ago1634574417IN
0xFa7B8Dc5...3f967fF82
0 ETH0.00645441143.34216186
Emergency Withdr...134423562021-10-18 14:28:151233 days ago1634567295IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0031524163.7779537
Emergency Withdr...134423372021-10-18 14:25:111233 days ago1634567111IN
0xFa7B8Dc5...3f967fF82
0 ETH0.003728372.49566675
Emergency Withdr...134418122021-10-18 12:28:051233 days ago1634560085IN
0xFa7B8Dc5...3f967fF82
0 ETH0.003123260.72961952
Emergency Withdr...134418102021-10-18 12:27:551233 days ago1634560075IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0032793466.34585678
Emergency Withdr...134417282021-10-18 12:07:071233 days ago1634558827IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0030756862.22546749
Emergency Withdr...134416512021-10-18 11:50:531234 days ago1634557853IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0031166863.05508146
Emergency Withdr...134411142021-10-18 9:51:581234 days ago1634550718IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0029099558.8725988
Emergency Withdr...134410872021-10-18 9:47:131234 days ago1634550433IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0031272663.26918498
Emergency Withdr...134407672021-10-18 8:32:281234 days ago1634545948IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0033143567.05423766
Emergency Withdr...134402712021-10-18 6:39:501234 days ago1634539190IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0029588459.8617408
Emergency Withdr...134402382021-10-18 6:31:431234 days ago1634538703IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0036872974.59937981
Emergency Withdr...134401602021-10-18 6:12:571234 days ago1634537577IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0027576845.87888455
Emergency Withdr...134401542021-10-18 6:12:081234 days ago1634537528IN
0xFa7B8Dc5...3f967fF82
0 ETH0.002653553.68431433
Deposit134401062021-10-18 6:02:051234 days ago1634536925IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0032928751.79104648
Emergency Withdr...134399672021-10-18 5:31:501234 days ago1634535110IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0028919158.50763672
Emergency Withdr...134398722021-10-18 5:09:321234 days ago1634533772IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0029750266.07055418
Emergency Withdr...134398672021-10-18 5:08:211234 days ago1634533701IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0036394173.63059631
Emergency Withdr...134398482021-10-18 5:03:541234 days ago1634533434IN
0xFa7B8Dc5...3f967fF82
0 ETH0.003050361.71212488
Withdraw134398432021-10-18 5:02:461234 days ago1634533366IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0048203660.00484793
Emergency Withdr...134396992021-10-18 4:30:031234 days ago1634531403IN
0xFa7B8Dc5...3f967fF82
0 ETH0.0028044556.73824566
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SimbaStake

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-10-17
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.9;



// Part: OpenZeppelin/[email protected]/Address

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// Part: OpenZeppelin/[email protected]/Context

/*
 * @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 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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// Part: OpenZeppelin/[email protected]/IERC20

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

// Part: OpenZeppelin/[email protected]/SafeMath

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

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

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// Part: OpenZeppelin/[email protected]/Ownable

/**
 * @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.
 */
abstract 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() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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 virtual onlyOwner {
        _setOwner(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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// Part: OpenZeppelin/[email protected]/SafeERC20

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: SimbaStake.sol

// Enter the Serengeti

//SimbaStake has been built with safety and security in mind. However, there are inherent risks when interacting with any decentralized-finance smart contracts. Our team has vigorously reviewed it's smart contracts to identify potential vulnerabilities in the platform prior to launch. 
//Even so, the possibility of losing some or all of your funds is non-zero. Please exercise caution and work within your own risk framework when it comes to interacting with the platform.

contract SimbaStake is Ownable {

    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    struct UserInfo {
        uint256 amount;
        uint256 rewardDebt;
    }

    struct PoolInfo {
        IERC20 stake;              
        uint256 allocPoint;         
        uint256 lastTimeStamp;      
        uint256 accSimbaPerShare;
        uint256 totalStaked;        
        uint16 depositFeeBP;
    }
    
    IERC20 immutable public simba;

    address public simbaTreasury;
    address public Governance;
    address public devAddress;

    uint256 public simbaPerSecond;
    uint256 public totalAllocPoint = 0;
    uint256 public startTime;
    uint256 public emissionCheckpoint;
    uint256 public halvingTime= 15768000; //seconds
    uint256 public halvingCount=0;

    PoolInfo[] public poolInfo;

    mapping (uint256 => mapping (address => UserInfo)) public userInfo;

    constructor(
        IERC20 _simba,
        address _simbaTreasury,
        address _Governance,
        address _devAddress,
        uint256 _simbaPerSecond,
        uint256 _startTime) public {
        simba = _simba;
        simbaTreasury = _simbaTreasury;
        Governance= _Governance;
        devAddress= _devAddress;
        simbaPerSecond = _simbaPerSecond;
        startTime = _startTime;
        emissionCheckpoint=_startTime.add(halvingTime);
    }

    function add(uint256 _allocPoint, IERC20 _stake, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner {
        require(_depositFeeBP <= 500, "add: invalid deposit fee basis points"); // 5% max possible
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastTimeStamp = block.timestamp > startTime ? block.timestamp : startTime;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            stake: _stake,
            allocPoint: _allocPoint,
            lastTimeStamp: lastTimeStamp,
            accSimbaPerShare: 0,
            totalStaked: 0,
            depositFeeBP: _depositFeeBP
        }));
    }

    function deposit(uint256 _pid, uint256 _amount) external {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if(_amount > 0) {
            if(pool.depositFeeBP > 0){
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                uint256 coreFee = depositFee.div(4);
                uint256 treasuryFee = depositFee.sub(coreFee);   
                user.amount = user.amount.add(_amount).sub(depositFee);
                pool.totalStaked = pool.totalStaked.add(_amount).sub(depositFee);
                pool.stake.safeTransferFrom(address(msg.sender), address(this), _amount);
                pool.stake.safeTransfer(simbaTreasury, treasuryFee);
                pool.stake.safeTransfer(devAddress,coreFee);
            }else{
                user.amount = user.amount.add(_amount);
                pool.totalStaked= pool.totalStaked.add(_amount);
                pool.stake.safeTransferFrom(address(msg.sender), address(this), _amount);
            }
            
        }
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accSimbaPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeSimbaTransfer(msg.sender, pending);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accSimbaPerShare).div(1e12);
    }

    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, bool _withUpdate) external onlyOwner {
        require(_depositFeeBP <= 500, "set: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
    }

    function claimAndStakeAll(uint256 _pid) external{
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        require(user.amount > 0);
        uint256 pending = user.amount.mul(pool.accSimbaPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            depositLight(pending);
        }
        user.rewardDebt = user.amount.mul(pool.accSimbaPerShare).div(1e12);
    }

    function withdraw(uint256 _pid, uint256 _amount) external {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: no good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accSimbaPerShare).div(1e12).sub(user.rewardDebt);
        
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.totalStaked=pool.totalStaked.sub(_amount);
            user.rewardDebt = user.amount.mul(pool.accSimbaPerShare).div(1e12);
            pool.stake.safeTransfer(address(msg.sender), _amount);
            if(pending > 0) {
                safeSimbaTransfer(msg.sender, pending);
            }
        }else{
            user.rewardDebt = user.amount.mul(pool.accSimbaPerShare).div(1e12);
            if(pending > 0) {
                safeSimbaTransfer(msg.sender, pending);
            }
        }
    }

    function emergencyWithdraw(uint256 _pid) external {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.totalStaked=pool.totalStaked.sub(amount);
        pool.stake.safeTransfer(address(msg.sender), amount);
    }
    
    function updateRewardPerSecond() external onlyOwner {
        require(block.timestamp > emissionCheckpoint,"you cannot halve emissions yet");
        require(halvingCount<6);
        massUpdatePools();
        simbaPerSecond =  simbaPerSecond.div(2);
        emissionCheckpoint=emissionCheckpoint.add(halvingTime);
        halvingCount=halvingCount.add(1);
    }
    
    function simbaRewards(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accSimbaPerShare = pool.accSimbaPerShare;
        uint256 stakeSupply = pool.totalStaked;
        if (block.timestamp > pool.lastTimeStamp && stakeSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastTimeStamp, block.timestamp);
            uint256 simbaReward = multiplier.mul(simbaPerSecond).mul(pool.allocPoint);
            accSimbaPerShare = accSimbaPerShare.add(simbaReward.mul(1e12).div(stakeSupply.mul(totalAllocPoint)));
        }
        return user.amount.mul(accSimbaPerShare).div(1e12).sub(user.rewardDebt);
    }

    function changeDev(address _devAddress) external {
        require(msg.sender==devAddress,"you must be a shadowy super coder");
        devAddress=_devAddress;
    }

    function changeGovernance(address _Governance) external {
        require(msg.sender==Governance,"you must control Simba Governance");
        Governance=_Governance;
    }

    function changeTreasury(address _simbaTreasury) external {
        require(msg.sender==Governance,"you must control Simba Governance");
        simbaTreasury=_simbaTreasury;
    }

    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastTimeStamp) {
            return;
        }
        uint256 stakeSupply = pool.totalStaked;
        if (stakeSupply == 0 || pool.allocPoint == 0) {
            pool.lastTimeStamp = block.timestamp;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastTimeStamp, block.timestamp);
        uint256 simbaReward = multiplier.mul(simbaPerSecond).mul(pool.allocPoint);

        pool.accSimbaPerShare = pool.accSimbaPerShare.add(simbaReward.mul(1e12).div(stakeSupply.mul(totalAllocPoint)));
        pool.lastTimeStamp = block.timestamp;
    }

    function safeSimbaTransfer(address _to, uint256 _amount) internal {
        uint256 simbaBal = simba.balanceOf(address(this));
        if (_amount > simbaBal) {
            require(simba.transfer(_to, simbaBal));
        } else {
            require(simba.transfer(_to, _amount));
        }
    }

    function depositLight(uint256 _amount) internal {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[0][msg.sender];
        user.amount = user.amount.add(_amount);
        pool.totalStaked= pool.totalStaked.add(_amount);
    }

    function getMultiplier(uint256 _from, uint256 _to) internal pure returns (uint256) {
        return _to.sub(_from);
    }

}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_simba","type":"address"},{"internalType":"address","name":"_simbaTreasury","type":"address"},{"internalType":"address","name":"_Governance","type":"address"},{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"uint256","name":"_simbaPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"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":"Governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_stake","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"}],"name":"changeDev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_Governance","type":"address"}],"name":"changeGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_simbaTreasury","type":"address"}],"name":"changeTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"claimAndStakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emissionCheckpoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"halvingCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"halvingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"stake","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastTimeStamp","type":"uint256"},{"internalType":"uint256","name":"accSimbaPerShare","type":"uint256"},{"internalType":"uint256","name":"totalStaked","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"simba","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"simbaPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"simbaRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"simbaTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateRewardPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a0604052600060055562f099c060085560006009553480156200002257600080fd5b5060405162001c1c38038062001c1c833981016040819052620000459162000145565b6200005033620000c7565b6001600160a01b03868116608052600180546001600160a01b0319908116888416179091556002805482168784161790556003805490911691851691909117905560048290556006819055600854620000b790829062000117602090811b6200111d17901c565b60075550620001e8945050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000620001258284620001c1565b9392505050565b6001600160a01b03811681146200014257600080fd5b50565b60008060008060008060c087890312156200015f57600080fd5b86516200016c816200012c565b60208801519096506200017f816200012c565b604088015190955062000192816200012c565b6060880151909450620001a5816200012c565b809350506080870151915060a087015190509295509295509295565b60008219821115620001e357634e487b7160e01b600052601160045260246000fd5b500190565b608051611a0362000219600039600081816102e7015281816111e001528181611292015261133e0152611a036000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806378e97925116100f957806399572d6f11610097578063e2bbb15811610071578063e2bbb158146103f7578063ed36b5b21461040a578063f2fde38b14610412578063fc84d9131461042557600080fd5b806399572d6f146103be578063b14f2a39146103d1578063d9638422146103e457600080fd5b806388a8c95c116100d357806388a8c95c146103405780638da5cb5b1461035357806393f1a40b1461036457806394539112146103ab57600080fd5b806378e979251461031157806379f0dea51461031a57806384e82a331461032d57600080fd5b8063441a3e70116101665780635b4ea0f3116101405780635b4ea0f3146102c7578063630b5ba1146102da5780636eb4d2e7146102e2578063715018a61461030957600080fd5b8063441a3e701461028c57806351eb05a6146102a15780635312ea8e146102b457600080fd5b806322eb9363116101a257806322eb93631461023c57806326ae8afa1461024557806335fd44371461024e5780633ad10ef61461026157600080fd5b80631526fe27146101c957806317caf6f11461021c5780631886eac214610233575b600080fd5b6101dc6101d73660046116af565b61042e565b604080516001600160a01b0390971687526020870195909552938501929092526060840152608083015261ffff1660a082015260c0015b60405180910390f35b61022560055481565b604051908152602001610213565b61022560045481565b61022560085481565b61022560075481565b61022561025c3660046116dd565b610482565b600354610274906001600160a01b031681565b6040516001600160a01b039091168152602001610213565b61029f61029a36600461170d565b61059c565b005b61029f6102af3660046116af565b610706565b61029f6102c23660046116af565b6107cc565b600154610274906001600160a01b031681565b61029f61084a565b6102747f000000000000000000000000000000000000000000000000000000000000000081565b61029f610875565b61022560065481565b61029f6103283660046116af565b6108ab565b61029f61033b366004611754565b610964565b61029f61034e3660046117a5565b610b83565b6000546001600160a01b0316610274565b6103966103723660046116dd565b600b6020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610213565b600254610274906001600160a01b031681565b61029f6103cc3660046117a5565b610c09565b61029f6103df3660046117a5565b610c55565b61029f6103f23660046117c2565b610ca1565b61029f61040536600461170d565b610df4565b61029f610fba565b61029f6104203660046117a5565b611082565b61022560095481565b600a818154811061043e57600080fd5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909261ffff1686565b600080600a8481548110610498576104986117ef565b60009182526020808320878452600b825260408085206001600160a01b038916865290925292206003600690920290920190810154600482015460028301549294509091421180156104e957508015155b156105635760006104fe856002015442611130565b90506000610525866001015461051f6004548561113c90919063ffffffff16565b9061113c565b905061055e6105576105426005548661113c90919063ffffffff16565b6105518464e8d4a5100061113c565b90611148565b859061111d565b935050505b610591836001015461058b64e8d4a5100061055186886000015461113c90919063ffffffff16565b90611154565b979650505050505050565b6000600a83815481106105b1576105b16117ef565b60009182526020808320868452600b8252604080852033865290925292208054600690920290920192508311156106235760405162461bcd60e51b81526020600482015260116024820152701dda5d1a191c985dce881b9bc819dbdbd9607a1b60448201526064015b60405180910390fd5b61062c84610706565b600061065a826001015461058b64e8d4a510006105518760030154876000015461113c90919063ffffffff16565b905083156106cf57815461066e9085611154565b8255600483015461067f9085611154565b60048401556003830154825461069f9164e8d4a51000916105519161113c565b600183015582546106ba906001600160a01b03163386611160565b80156106ca576106ca33826111c8565b6106ff565b600383015482546106ea9164e8d4a51000916105519161113c565b600183015580156106ff576106ff33826111c8565b5050505050565b6000600a828154811061071b5761071b6117ef565b906000526020600020906006020190508060020154421161073a575050565b600481015480158061074e57506001820154155b1561075e57504260029091015550565b600061076e836002015442611130565b9050600061078f846001015461051f6004548561113c90919063ffffffff16565b90506107b76107ac6105426005548661113c90919063ffffffff16565b60038601549061111d565b60038501555050426002909201919091555050565b6000600a82815481106107e1576107e16117ef565b60009182526020808320858452600b82526040808520338652909252908320805484825560018201949094556006929092020160048101549093509091906108299082611154565b60048401558254610844906001600160a01b03163383611160565b50505050565b600a5460005b818110156108715761086181610706565b61086a8161181b565b9050610850565b5050565b6000546001600160a01b0316331461089f5760405162461bcd60e51b815260040161061a90611836565b6108a9600061136d565b565b6000600a82815481106108c0576108c06117ef565b60009182526020808320858452600b825260408085203386529092529220600690910290910191506108f183610706565b80546108fc57600080fd5b600061092a826001015461058b64e8d4a510006105518760030154876000015461113c90919063ffffffff16565b9050801561093b5761093b816113bd565b600383015482546109569164e8d4a51000916105519161113c565b826001018190555050505050565b6000546001600160a01b0316331461098e5760405162461bcd60e51b815260040161061a90611836565b6101f48261ffff1611156109f25760405162461bcd60e51b815260206004820152602560248201527f6164643a20696e76616c6964206465706f7369742066656520626173697320706044820152646f696e747360d81b606482015260840161061a565b8015610a0057610a0061084a565b60006006544211610a1357600654610a15565b425b600554909150610a25908661111d565b6005556040805160c0810182526001600160a01b039586168152602081019687529081019182526000606082018181526080830182815261ffff96871660a08501908152600a8054600181018255945293517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8600690940293840180546001600160a01b031916919099161790975596517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a982015591517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2aa83015594517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ab82015592517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ac8401555091517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ad909101805461ffff191691909216179055565b6003546001600160a01b03163314610be75760405162461bcd60e51b815260206004820152602160248201527f796f75206d757374206265206120736861646f777920737570657220636f64656044820152603960f91b606482015260840161061a565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b03163314610c335760405162461bcd60e51b815260040161061a9061186b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b03163314610c7f5760405162461bcd60e51b815260040161061a9061186b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610ccb5760405162461bcd60e51b815260040161061a90611836565b6101f48261ffff161115610d2f5760405162461bcd60e51b815260206004820152602560248201527f7365743a20696e76616c6964206465706f7369742066656520626173697320706044820152646f696e747360d81b606482015260840161061a565b8015610d3d57610d3d61084a565b610d8083610d7a600a8781548110610d5757610d576117ef565b90600052602060002090600602016001015460055461115490919063ffffffff16565b9061111d565b60058190555082600a8581548110610d9a57610d9a6117ef565b90600052602060002090600602016001018190555081600a8581548110610dc357610dc36117ef565b906000526020600020906006020160050160006101000a81548161ffff021916908361ffff16021790555050505050565b6000600a8381548110610e0957610e096117ef565b60009182526020808320868452600b82526040808520338652909252922060069091029091019150610e3a84610706565b8215610f4b57600582015461ffff1615610f12576005820154600090610e6d906127109061055190879061ffff1661113c565b90506000610e7c826004611148565b90506000610e8a8383611154565b8454909150610e9f90849061058b908961111d565b84556004850154610eb690849061058b908961111d565b60048601558454610ed2906001600160a01b031633308961143d565b6001548554610eee916001600160a01b03918216911683611160565b6003548554610f0a916001600160a01b03918216911684611160565b505050610f4b565b8054610f1e908461111d565b81556004820154610f2f908461111d565b60048301558154610f4b906001600160a01b031633308661143d565b805415610f94576000610f80826001015461058b64e8d4a510006105518760030154876000015461113c90919063ffffffff16565b90508015610f9257610f9233826111c8565b505b60038201548154610faf9164e8d4a51000916105519161113c565b600190910155505050565b6000546001600160a01b03163314610fe45760405162461bcd60e51b815260040161061a90611836565b60075442116110355760405162461bcd60e51b815260206004820152601e60248201527f796f752063616e6e6f742068616c766520656d697373696f6e73207965740000604482015260640161061a565b60066009541061104457600080fd5b61104c61084a565b60045461105a906002611148565b60045560085460075461106c9161111d565b60075560095461107d90600161111d565b600955565b6000546001600160a01b031633146110ac5760405162461bcd60e51b815260040161061a90611836565b6001600160a01b0381166111115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161061a565b61111a8161136d565b50565b600061112982846118ac565b9392505050565b60006111298284611154565b600061112982846118c4565b600061112982846118e3565b60006111298284611905565b6040516001600160a01b0383166024820152604481018290526111c390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611475565b505050565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561122a57600080fd5b505afa15801561123e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611262919061191c565b9050808211156113185760405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044015b602060405180830381600087803b1580156112d757600080fd5b505af11580156112eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130f9190611935565b6111c357600080fd5b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016112bd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000600a6000815481106113d3576113d36117ef565b600091825260208083203384527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f76909152604090922080546006909202909201925061141f908461111d565b81556004820154611430908461111d565b8260040181905550505050565b6040516001600160a01b03808516602483015283166044820152606481018290526108449085906323b872dd60e01b9060840161118c565b60006114ca826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115479092919063ffffffff16565b8051909150156111c357808060200190518101906114e89190611935565b6111c35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161061a565b6060611556848460008561155e565b949350505050565b6060824710156115bf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161061a565b843b61160d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161061a565b600080866001600160a01b03168587604051611629919061197e565b60006040518083038185875af1925050503d8060008114611666576040519150601f19603f3d011682016040523d82523d6000602084013e61166b565b606091505b509150915061059182828660608315611685575081611129565b8251156116955782518084602001fd5b8160405162461bcd60e51b815260040161061a919061199a565b6000602082840312156116c157600080fd5b5035919050565b6001600160a01b038116811461111a57600080fd5b600080604083850312156116f057600080fd5b823591506020830135611702816116c8565b809150509250929050565b6000806040838503121561172057600080fd5b50508035926020909101359150565b803561ffff8116811461174157600080fd5b919050565b801515811461111a57600080fd5b6000806000806080858703121561176a57600080fd5b84359350602085013561177c816116c8565b925061178a6040860161172f565b9150606085013561179a81611746565b939692955090935050565b6000602082840312156117b757600080fd5b8135611129816116c8565b600080600080608085870312156117d857600080fd5b843593506020850135925061178a6040860161172f565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561182f5761182f611805565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f796f75206d75737420636f6e74726f6c2053696d626120476f7665726e616e636040820152606560f81b606082015260800190565b600082198211156118bf576118bf611805565b500190565b60008160001904831182151516156118de576118de611805565b500290565b60008261190057634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561191757611917611805565b500390565b60006020828403121561192e57600080fd5b5051919050565b60006020828403121561194757600080fd5b815161112981611746565b60005b8381101561196d578181015183820152602001611955565b838111156108445750506000910152565b60008251611990818460208701611952565b9190910192915050565b60208152600082518060208401526119b9816040850160208701611952565b601f01601f1916919091016040019291505056fea2646970667358221220cc1c19d0a34b84a3079b662183a341fbe0707f75ee60e13da0c656b928d6cd8664736f6c63430008090033000000000000000000000000cc72961e7ba4a8f7982594b0b661d3f02dcf239f000000000000000000000000e45267806eed3a04780c1da84797d78798ef88780000000000000000000000009ca2bfb7fef9d1f3ef34ebf508ccd55ac6a0e4b6000000000000000000000000989be974f2e680226faa7a36e83c8f1a70bedd2300000000000000000000000000000000000000000000000014d1120d7b16000000000000000000000000000000000000000000000000000000000000616cce18

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806378e97925116100f957806399572d6f11610097578063e2bbb15811610071578063e2bbb158146103f7578063ed36b5b21461040a578063f2fde38b14610412578063fc84d9131461042557600080fd5b806399572d6f146103be578063b14f2a39146103d1578063d9638422146103e457600080fd5b806388a8c95c116100d357806388a8c95c146103405780638da5cb5b1461035357806393f1a40b1461036457806394539112146103ab57600080fd5b806378e979251461031157806379f0dea51461031a57806384e82a331461032d57600080fd5b8063441a3e70116101665780635b4ea0f3116101405780635b4ea0f3146102c7578063630b5ba1146102da5780636eb4d2e7146102e2578063715018a61461030957600080fd5b8063441a3e701461028c57806351eb05a6146102a15780635312ea8e146102b457600080fd5b806322eb9363116101a257806322eb93631461023c57806326ae8afa1461024557806335fd44371461024e5780633ad10ef61461026157600080fd5b80631526fe27146101c957806317caf6f11461021c5780631886eac214610233575b600080fd5b6101dc6101d73660046116af565b61042e565b604080516001600160a01b0390971687526020870195909552938501929092526060840152608083015261ffff1660a082015260c0015b60405180910390f35b61022560055481565b604051908152602001610213565b61022560045481565b61022560085481565b61022560075481565b61022561025c3660046116dd565b610482565b600354610274906001600160a01b031681565b6040516001600160a01b039091168152602001610213565b61029f61029a36600461170d565b61059c565b005b61029f6102af3660046116af565b610706565b61029f6102c23660046116af565b6107cc565b600154610274906001600160a01b031681565b61029f61084a565b6102747f000000000000000000000000cc72961e7ba4a8f7982594b0b661d3f02dcf239f81565b61029f610875565b61022560065481565b61029f6103283660046116af565b6108ab565b61029f61033b366004611754565b610964565b61029f61034e3660046117a5565b610b83565b6000546001600160a01b0316610274565b6103966103723660046116dd565b600b6020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610213565b600254610274906001600160a01b031681565b61029f6103cc3660046117a5565b610c09565b61029f6103df3660046117a5565b610c55565b61029f6103f23660046117c2565b610ca1565b61029f61040536600461170d565b610df4565b61029f610fba565b61029f6104203660046117a5565b611082565b61022560095481565b600a818154811061043e57600080fd5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909261ffff1686565b600080600a8481548110610498576104986117ef565b60009182526020808320878452600b825260408085206001600160a01b038916865290925292206003600690920290920190810154600482015460028301549294509091421180156104e957508015155b156105635760006104fe856002015442611130565b90506000610525866001015461051f6004548561113c90919063ffffffff16565b9061113c565b905061055e6105576105426005548661113c90919063ffffffff16565b6105518464e8d4a5100061113c565b90611148565b859061111d565b935050505b610591836001015461058b64e8d4a5100061055186886000015461113c90919063ffffffff16565b90611154565b979650505050505050565b6000600a83815481106105b1576105b16117ef565b60009182526020808320868452600b8252604080852033865290925292208054600690920290920192508311156106235760405162461bcd60e51b81526020600482015260116024820152701dda5d1a191c985dce881b9bc819dbdbd9607a1b60448201526064015b60405180910390fd5b61062c84610706565b600061065a826001015461058b64e8d4a510006105518760030154876000015461113c90919063ffffffff16565b905083156106cf57815461066e9085611154565b8255600483015461067f9085611154565b60048401556003830154825461069f9164e8d4a51000916105519161113c565b600183015582546106ba906001600160a01b03163386611160565b80156106ca576106ca33826111c8565b6106ff565b600383015482546106ea9164e8d4a51000916105519161113c565b600183015580156106ff576106ff33826111c8565b5050505050565b6000600a828154811061071b5761071b6117ef565b906000526020600020906006020190508060020154421161073a575050565b600481015480158061074e57506001820154155b1561075e57504260029091015550565b600061076e836002015442611130565b9050600061078f846001015461051f6004548561113c90919063ffffffff16565b90506107b76107ac6105426005548661113c90919063ffffffff16565b60038601549061111d565b60038501555050426002909201919091555050565b6000600a82815481106107e1576107e16117ef565b60009182526020808320858452600b82526040808520338652909252908320805484825560018201949094556006929092020160048101549093509091906108299082611154565b60048401558254610844906001600160a01b03163383611160565b50505050565b600a5460005b818110156108715761086181610706565b61086a8161181b565b9050610850565b5050565b6000546001600160a01b0316331461089f5760405162461bcd60e51b815260040161061a90611836565b6108a9600061136d565b565b6000600a82815481106108c0576108c06117ef565b60009182526020808320858452600b825260408085203386529092529220600690910290910191506108f183610706565b80546108fc57600080fd5b600061092a826001015461058b64e8d4a510006105518760030154876000015461113c90919063ffffffff16565b9050801561093b5761093b816113bd565b600383015482546109569164e8d4a51000916105519161113c565b826001018190555050505050565b6000546001600160a01b0316331461098e5760405162461bcd60e51b815260040161061a90611836565b6101f48261ffff1611156109f25760405162461bcd60e51b815260206004820152602560248201527f6164643a20696e76616c6964206465706f7369742066656520626173697320706044820152646f696e747360d81b606482015260840161061a565b8015610a0057610a0061084a565b60006006544211610a1357600654610a15565b425b600554909150610a25908661111d565b6005556040805160c0810182526001600160a01b039586168152602081019687529081019182526000606082018181526080830182815261ffff96871660a08501908152600a8054600181018255945293517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8600690940293840180546001600160a01b031916919099161790975596517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a982015591517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2aa83015594517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ab82015592517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ac8401555091517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ad909101805461ffff191691909216179055565b6003546001600160a01b03163314610be75760405162461bcd60e51b815260206004820152602160248201527f796f75206d757374206265206120736861646f777920737570657220636f64656044820152603960f91b606482015260840161061a565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b03163314610c335760405162461bcd60e51b815260040161061a9061186b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b03163314610c7f5760405162461bcd60e51b815260040161061a9061186b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610ccb5760405162461bcd60e51b815260040161061a90611836565b6101f48261ffff161115610d2f5760405162461bcd60e51b815260206004820152602560248201527f7365743a20696e76616c6964206465706f7369742066656520626173697320706044820152646f696e747360d81b606482015260840161061a565b8015610d3d57610d3d61084a565b610d8083610d7a600a8781548110610d5757610d576117ef565b90600052602060002090600602016001015460055461115490919063ffffffff16565b9061111d565b60058190555082600a8581548110610d9a57610d9a6117ef565b90600052602060002090600602016001018190555081600a8581548110610dc357610dc36117ef565b906000526020600020906006020160050160006101000a81548161ffff021916908361ffff16021790555050505050565b6000600a8381548110610e0957610e096117ef565b60009182526020808320868452600b82526040808520338652909252922060069091029091019150610e3a84610706565b8215610f4b57600582015461ffff1615610f12576005820154600090610e6d906127109061055190879061ffff1661113c565b90506000610e7c826004611148565b90506000610e8a8383611154565b8454909150610e9f90849061058b908961111d565b84556004850154610eb690849061058b908961111d565b60048601558454610ed2906001600160a01b031633308961143d565b6001548554610eee916001600160a01b03918216911683611160565b6003548554610f0a916001600160a01b03918216911684611160565b505050610f4b565b8054610f1e908461111d565b81556004820154610f2f908461111d565b60048301558154610f4b906001600160a01b031633308661143d565b805415610f94576000610f80826001015461058b64e8d4a510006105518760030154876000015461113c90919063ffffffff16565b90508015610f9257610f9233826111c8565b505b60038201548154610faf9164e8d4a51000916105519161113c565b600190910155505050565b6000546001600160a01b03163314610fe45760405162461bcd60e51b815260040161061a90611836565b60075442116110355760405162461bcd60e51b815260206004820152601e60248201527f796f752063616e6e6f742068616c766520656d697373696f6e73207965740000604482015260640161061a565b60066009541061104457600080fd5b61104c61084a565b60045461105a906002611148565b60045560085460075461106c9161111d565b60075560095461107d90600161111d565b600955565b6000546001600160a01b031633146110ac5760405162461bcd60e51b815260040161061a90611836565b6001600160a01b0381166111115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161061a565b61111a8161136d565b50565b600061112982846118ac565b9392505050565b60006111298284611154565b600061112982846118c4565b600061112982846118e3565b60006111298284611905565b6040516001600160a01b0383166024820152604481018290526111c390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611475565b505050565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000cc72961e7ba4a8f7982594b0b661d3f02dcf239f6001600160a01b0316906370a082319060240160206040518083038186803b15801561122a57600080fd5b505afa15801561123e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611262919061191c565b9050808211156113185760405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390527f000000000000000000000000cc72961e7ba4a8f7982594b0b661d3f02dcf239f169063a9059cbb906044015b602060405180830381600087803b1580156112d757600080fd5b505af11580156112eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061130f9190611935565b6111c357600080fd5b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490527f000000000000000000000000cc72961e7ba4a8f7982594b0b661d3f02dcf239f169063a9059cbb906044016112bd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000600a6000815481106113d3576113d36117ef565b600091825260208083203384527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f76909152604090922080546006909202909201925061141f908461111d565b81556004820154611430908461111d565b8260040181905550505050565b6040516001600160a01b03808516602483015283166044820152606481018290526108449085906323b872dd60e01b9060840161118c565b60006114ca826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115479092919063ffffffff16565b8051909150156111c357808060200190518101906114e89190611935565b6111c35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161061a565b6060611556848460008561155e565b949350505050565b6060824710156115bf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161061a565b843b61160d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161061a565b600080866001600160a01b03168587604051611629919061197e565b60006040518083038185875af1925050503d8060008114611666576040519150601f19603f3d011682016040523d82523d6000602084013e61166b565b606091505b509150915061059182828660608315611685575081611129565b8251156116955782518084602001fd5b8160405162461bcd60e51b815260040161061a919061199a565b6000602082840312156116c157600080fd5b5035919050565b6001600160a01b038116811461111a57600080fd5b600080604083850312156116f057600080fd5b823591506020830135611702816116c8565b809150509250929050565b6000806040838503121561172057600080fd5b50508035926020909101359150565b803561ffff8116811461174157600080fd5b919050565b801515811461111a57600080fd5b6000806000806080858703121561176a57600080fd5b84359350602085013561177c816116c8565b925061178a6040860161172f565b9150606085013561179a81611746565b939692955090935050565b6000602082840312156117b757600080fd5b8135611129816116c8565b600080600080608085870312156117d857600080fd5b843593506020850135925061178a6040860161172f565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561182f5761182f611805565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f796f75206d75737420636f6e74726f6c2053696d626120476f7665726e616e636040820152606560f81b606082015260800190565b600082198211156118bf576118bf611805565b500190565b60008160001904831182151516156118de576118de611805565b500290565b60008261190057634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561191757611917611805565b500390565b60006020828403121561192e57600080fd5b5051919050565b60006020828403121561194757600080fd5b815161112981611746565b60005b8381101561196d578181015183820152602001611955565b838111156108445750506000910152565b60008251611990818460208701611952565b9190910192915050565b60208152600082518060208401526119b9816040850160208701611952565b601f01601f1916919091016040019291505056fea2646970667358221220cc1c19d0a34b84a3079b662183a341fbe0707f75ee60e13da0c656b928d6cd8664736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000cc72961e7ba4a8f7982594b0b661d3f02dcf239f000000000000000000000000e45267806eed3a04780c1da84797d78798ef88780000000000000000000000009ca2bfb7fef9d1f3ef34ebf508ccd55ac6a0e4b6000000000000000000000000989be974f2e680226faa7a36e83c8f1a70bedd2300000000000000000000000000000000000000000000000014d1120d7b16000000000000000000000000000000000000000000000000000000000000616cce18

-----Decoded View---------------
Arg [0] : _simba (address): 0xCC72961E7ba4a8F7982594B0B661d3f02dcF239f
Arg [1] : _simbaTreasury (address): 0xe45267806EeD3a04780C1Da84797D78798EF8878
Arg [2] : _Governance (address): 0x9cA2bFB7fef9d1f3EF34EBf508CCD55aC6A0e4B6
Arg [3] : _devAddress (address): 0x989BE974F2E680226faA7a36E83c8f1a70BeDD23
Arg [4] : _simbaPerSecond (uint256): 1500000000000000000
Arg [5] : _startTime (uint256): 1634520600

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000cc72961e7ba4a8f7982594b0b661d3f02dcf239f
Arg [1] : 000000000000000000000000e45267806eed3a04780c1da84797d78798ef8878
Arg [2] : 0000000000000000000000009ca2bfb7fef9d1f3ef34ebf508ccd55ac6a0e4b6
Arg [3] : 000000000000000000000000989be974f2e680226faa7a36e83c8f1a70bedd23
Arg [4] : 00000000000000000000000000000000000000000000000014d1120d7b160000
Arg [5] : 00000000000000000000000000000000000000000000000000000000616cce18


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.