More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 226 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Reward | 18335782 | 285 days ago | IN | 0 ETH | 0.00190214 | ||||
Claim Reward | 18324856 | 287 days ago | IN | 0 ETH | 0.00065833 | ||||
Claim Reward | 18310331 | 289 days ago | IN | 0 ETH | 0.00055301 | ||||
Withdraw | 18297605 | 290 days ago | IN | 0 ETH | 0.00250064 | ||||
Claim Reward | 18292544 | 291 days ago | IN | 0 ETH | 0.00151743 | ||||
Claim Reward | 18279599 | 293 days ago | IN | 0 ETH | 0.00092055 | ||||
Claim Reward | 18277152 | 293 days ago | IN | 0 ETH | 0.00059988 | ||||
Claim Reward | 18272362 | 294 days ago | IN | 0 ETH | 0.00119641 | ||||
Claim Reward | 18269731 | 294 days ago | IN | 0 ETH | 0.00067691 | ||||
Withdraw | 18260554 | 296 days ago | IN | 0 ETH | 0.0005087 | ||||
Claim Reward | 18260552 | 296 days ago | IN | 0 ETH | 0.00063231 | ||||
Claim Reward | 18259929 | 296 days ago | IN | 0 ETH | 0.00156042 | ||||
Claim Reward | 18259040 | 296 days ago | IN | 0 ETH | 0.00090496 | ||||
Claim Reward | 18253606 | 297 days ago | IN | 0 ETH | 0.0005626 | ||||
Claim Reward | 18251525 | 297 days ago | IN | 0 ETH | 0.00075022 | ||||
Claim Reward | 18250518 | 297 days ago | IN | 0 ETH | 0.00080784 | ||||
Claim Reward | 18248418 | 297 days ago | IN | 0 ETH | 0.00070731 | ||||
Claim Reward | 18247734 | 297 days ago | IN | 0 ETH | 0.00156455 | ||||
Deposit | 18247307 | 297 days ago | IN | 0 ETH | 0.00055455 | ||||
Withdraw | 18247280 | 297 days ago | IN | 0 ETH | 0.00058791 | ||||
Claim Reward | 18247275 | 297 days ago | IN | 0 ETH | 0.00074248 | ||||
Deposit | 18245294 | 298 days ago | IN | 0 ETH | 0.00050812 | ||||
Withdraw | 18245281 | 298 days ago | IN | 0 ETH | 0.00049203 | ||||
Claim Reward | 18245231 | 298 days ago | IN | 0 ETH | 0.00065916 | ||||
Claim Reward | 18243953 | 298 days ago | IN | 0 ETH | 0.0009361 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
CashBriefcase
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; /*⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢦⡀⠉⠙⢦⡀⠀⠀⣀⣠⣤⣄⣀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⣀⡤⠤⠴⠶⠤⠤⢽⣦⡀⠀⢹⡴⠚⠁⠀⢀⣀⣈⣳⣄⠀⠀ ⠀⠀⠀⠀⠀⢠⠞⣁⡤⠴⠶⠶⣦⡄⠀⠀⠀⠀⠀⠀⠀⠶⠿⠭⠤⣄⣈⠙⠳⠀ ⠀⠀⠀⠀⢠⡿⠋⠀⠀⢀⡴⠋⠁⠀⣀⡖⠛⢳⠴⠶⡄⠀⠀⠀⠀⠀⠈⠙⢦⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⡴⠋⣠⠴⠚⠉⠉⣧⣄⣷⡀⢀⣿⡀⠈⠙⠻⡍⠙⠲⢮⣧ ⠀⠀⠀⠀⠀⠀⠀⡞⣠⠞⠁⠀⠀⠀⣰⠃⠀⣸⠉⠉⠀⠙⢦⡀⠀⠸⡄⠀⠈⠟ ⠀⠀⠀⠀⠀⠀⢸⠟⠁⠀⠀⠀⠀⢠⠏⠉⢉⡇⠀⠀⠀⠀⠀⠉⠳⣄⢷⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡾⠤⠤⢼⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡇⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠉⠉⠉⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣀⣀⣀⣻⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⣀⣀⡤⠤⠤⣿⠉⠉⠉⠘⣧⠤⢤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⢀⡤⠖⠋⠉⠀⠀⠀⠀⠀⠙⠲⠤⠤⠴⠚⠁⠀⠀⠀⠉⠉⠓⠦⣄⠀⠀⠀ ⢀⡞⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⣄⠀ ⠘⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠚⠀ ____ _ ____ _ _ ____ ____ ___ _____ _____ ____ _ ____ _____ / ___| / \ / ___|| | | | | __ )| _ \|_ _| ____| ___/ ___| / \ / ___|| ____| | | / _ \ \___ \| |_| | | _ \| |_) || || _| | |_ | | / _ \ \___ \| _| | |___ / ___ \ ___) | _ | | |_) | _ < | || |___| _|| |___ / ___ \ ___) | |___ \____/_/ \_\____/|_| |_| |____/|_| \_\___|_____|_| \____/_/ \_\____/|_____| Twitter: https://twitter.com/fraudeth_gg Telegram: http://t.me/fraudportal Website: https://fraudeth.gg Docs: https://docs.fraudeth.gg */ import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./IBribeToken.sol"; import "./IFraudToken.sol"; contract CashBriefcase is Ownable, ReentrancyGuard { IBribeToken public bribe; IFraudToken public fraud; using SafeMath for uint256; mapping(address => uint256) public deposits; mapping(address => uint256) public lastClaim; mapping(address => uint256) public lastDeposit; mapping(address => uint256) public depositEpoch; uint256 public totalDeposits; bool public emergencyMode = false; event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event RewardClaimed(address indexed user, uint256 amount); constructor(address _bribe, address _fraud) { bribe = IBribeToken(_bribe); fraud = IFraudToken(_fraud); } function deposit(uint256 _amount) external { require(_amount > 0, "Invalid amount"); require(bribe.balanceOf(msg.sender) >= _amount, "Insufficient balance"); require(emergencyMode == false, "Contract is in emergency mode, deposits not allowed"); // transfer the tokens to this contract bribe.burn(msg.sender, _amount); // update the user's deposit amount and the total deposit amount deposits[msg.sender] = deposits[msg.sender].add(_amount); lastDeposit[msg.sender] = block.timestamp; totalDeposits = totalDeposits.add(_amount); emit Deposit(msg.sender, _amount); } function withdraw(uint256 _amount) external { require(deposits[msg.sender] >= _amount, "Withdrawal amount exceeds deposit"); require(block.timestamp.sub(lastDeposit[msg.sender]) > 6 hours || emergencyMode == true, "Can only withdraw if last deposit was more than 6 hours / 1 epoch"); // update the user's deposit amount and the total deposit amount if(emergencyMode == false && pendingReward(msg.sender) > 0){ claimReward(msg.sender); } deposits[msg.sender] = deposits[msg.sender].sub(_amount); totalDeposits = totalDeposits.sub(_amount); // transfer the tokens back to the user bribe.mint(msg.sender, _amount); emit Withdraw(msg.sender, _amount); } function claimReward(address user) public nonReentrant { require (msg.sender == user, "Only the user can claim their reward"); require(emergencyMode == false, "Contract is in emergency mode, reward claims not allowed"); uint256 reward = calculateReward(msg.sender); require(reward > 0, "No rewards available"); require(block.timestamp.sub(lastClaim[msg.sender]) > 1 days, "Can only claim once per day"); // require last deposit > 6h ago require(block.timestamp.sub(lastDeposit[msg.sender]) > 6 hours, "Can only claim if last deposit was more than 6 hours ago"); // decrease the fraud token balance of the contract // and increase the fraud token balance of the user fraud.transfer(msg.sender, reward); lastClaim[msg.sender] = block.timestamp; emit RewardClaimed(msg.sender, reward); } function pendingReward(address _user) public view returns (uint256) { if(block.timestamp.sub(lastClaim[_user]) < 1 days){ return 0; } if(block.timestamp.sub(lastDeposit[_user]) < 6 hours){ return 0; } if(fraud.balanceOf(address(this)) == 0){ return 0; } return calculateReward(_user); } function calculateReward(address _user) public view returns (uint256) { // for example, the user's reward is proportional to their share of the total deposits uint256 share = deposits[_user].mul(1e18).div(totalDeposits); // multiply by 1e18 to avoid division truncation uint256 reward = fraud.balanceOf(address(this)).mul(share).div(1e18); // divide by 1e18 to correct for the multiplication above return reward; } function getSharePercentage(address _user) public view returns (uint256) { if(totalDeposits == 0) return 0; uint256 sharePercentage = deposits[_user].mul(1e18).div(totalDeposits); return sharePercentage; } function toggleEmergency() external onlyOwner { emergencyMode = !emergencyMode; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.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 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // 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 generally not needed starting with Solidity 0.8, since 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 subtraction 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; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IBribeToken { function mint(address to, uint256 amount) external; function balanceOf(address who) external view returns (uint256); function burn(address to, uint256 amount) external; function transferFrom(address from, address to, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IFraudToken { function mint(address to, uint256 amount) external; function totalSupply() external view returns (uint256); function transferUnderlying(address to, uint256 value) external returns (bool); function fragmentToFraud(uint256 value) external view returns (uint256); function fraudToFragment(uint256 fraud) external view returns (uint256); function balanceOfUnderlying(address who) external view returns (uint256); function balanceOf(address who) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function getCurrentEpoch() external view returns (uint256); function transfer(address to, uint256 value) external returns (bool); function burn(address from, uint256 amount) external; function rebase( uint256 epoch, uint256 indexDelta, bool positive ) external returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_bribe","type":"address"},{"internalType":"address","name":"_fraud","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"bribe","outputs":[{"internalType":"contract IBribeToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"calculateReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fraud","outputs":[{"internalType":"contract IFraudToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getSharePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDeposits","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":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526009805460ff1916905534801561001a57600080fd5b5060405161105a38038061105a833981016040819052610039916100e3565b61004233610077565b60018055600280546001600160a01b039384166001600160a01b03199182161790915560038054929093169116179055610116565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100de57600080fd5b919050565b600080604083850312156100f657600080fd5b6100ff836100c7565b915061010d602084016100c7565b90509250929050565b610f35806101256000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063b00de069116100a2578063d279c19111610071578063d279c1911461024e578063d82e396214610261578063f2fde38b14610274578063f40f0f5214610287578063fc7e286d1461029a57600080fd5b8063b00de069146101f5578063b2a6b80014610208578063b6b55f2514610228578063ba8317121461023b57600080fd5b806337d0208c116100e957806337d0208c146101885780635c16e15e146101b3578063715018a6146101d35780637d882097146101db5780638da5cb5b146101e457600080fd5b80630905f5601461011b57806329d16ee81461013d5780632d1d27441461016b5780632e1a7d4d14610175575b600080fd5b6009546101289060ff1681565b60405190151581526020015b60405180910390f35b61015d61014b366004610e0d565b60066020526000908152604090205481565b604051908152602001610134565b6101736102ba565b005b610173610183366004610e36565b6102d6565b60025461019b906001600160a01b031681565b6040516001600160a01b039091168152602001610134565b61015d6101c1366004610e0d565b60056020526000908152604090205481565b6101736104f2565b61015d60085481565b6000546001600160a01b031661019b565b61015d610203366004610e0d565b610506565b61015d610216366004610e0d565b60076020526000908152604090205481565b610173610236366004610e36565b61055b565b60035461019b906001600160a01b031681565b61017361025c366004610e0d565b61079b565b61015d61026f366004610e0d565b610aa2565b610173610282366004610e0d565b610b6d565b61015d610295366004610e0d565b610be3565b61015d6102a8366004610e0d565b60046020526000908152604090205481565b6102c2610cda565b6009805460ff19811660ff90911615179055565b336000908152600460205260409020548111156103445760405162461bcd60e51b815260206004820152602160248201527f5769746864726177616c20616d6f756e742065786365656473206465706f73696044820152601d60fa1b60648201526084015b60405180910390fd5b3360009081526006602052604090205461546090610363904290610d34565b1180610376575060095460ff1615156001145b6103f25760405162461bcd60e51b815260206004820152604160248201527f43616e206f6e6c79207769746864726177206966206c617374206465706f736960448201527f7420776173206d6f7265207468616e203620686f757273202f20312065706f636064820152600d60fb1b608482015260a40161033b565b60095460ff1615801561040d5750600061040b33610be3565b115b1561041b5761041b3361079b565b336000908152600460205260409020546104359082610d34565b336000908152600460205260409020556008546104529082610d34565b6008556002546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b1580156104a157600080fd5b505af11580156104b5573d6000803e3d6000fd5b50506040518381523392507f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436491506020015b60405180910390a250565b6104fa610cda565b6105046000610d40565b565b600060085460000361051a57506000919050565b6008546001600160a01b03831660009081526004602052604081205490916105549161054e90670de0b6b3a7640000610d90565b90610d9c565b9392505050565b6000811161059c5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015260640161033b565b6002546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa1580156105e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106089190610e4f565b101561064d5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161033b565b60095460ff16156106bc5760405162461bcd60e51b815260206004820152603360248201527f436f6e747261637420697320696e20656d657267656e6379206d6f64652c2064604482015272195c1bdcda5d1cc81b9bdd08185b1b1bddd959606a1b606482015260840161033b565b600254604051632770a7eb60e21b8152336004820152602481018390526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561070857600080fd5b505af115801561071c573d6000803e3d6000fd5b50503360009081526004602052604090205461073b9250905082610da8565b3360009081526004602090815260408083209390935560069052204290556008546107669082610da8565b60085560405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906020016104e7565b6107a3610db4565b336001600160a01b038216146108075760405162461bcd60e51b8152602060048201526024808201527f4f6e6c792074686520757365722063616e20636c61696d2074686569722072656044820152631dd85c9960e21b606482015260840161033b565b60095460ff16156108805760405162461bcd60e51b815260206004820152603860248201527f436f6e747261637420697320696e20656d657267656e6379206d6f64652c207260448201527f657761726420636c61696d73206e6f7420616c6c6f7765640000000000000000606482015260840161033b565b600061088b33610aa2565b9050600081116108d45760405162461bcd60e51b81526020600482015260146024820152734e6f207265776172647320617661696c61626c6560601b604482015260640161033b565b3360009081526005602052604090205462015180906108f4904290610d34565b116109415760405162461bcd60e51b815260206004820152601b60248201527f43616e206f6e6c7920636c61696d206f6e636520706572206461790000000000604482015260640161033b565b3360009081526006602052604090205461546090610960904290610d34565b116109d35760405162461bcd60e51b815260206004820152603860248201527f43616e206f6e6c7920636c61696d206966206c617374206465706f736974207760448201527f6173206d6f7265207468616e203620686f7572732061676f0000000000000000606482015260840161033b565b60035460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610a24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a489190610e68565b503360008181526005602052604090819020429055517f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f724190610a8d9084815260200190565b60405180910390a250610a9f60018055565b50565b6008546001600160a01b03821660009081526004602052604081205490918291610ad9919061054e90670de0b6b3a7640000610d90565b6003546040516370a0823160e01b8152306004820152919250600091610b6591670de0b6b3a76400009161054e9186916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610b3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5f9190610e4f565b90610d90565b949350505050565b610b75610cda565b6001600160a01b038116610bda5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161033b565b610a9f81610d40565b6001600160a01b0381166000908152600560205260408120546201518090610c0c904290610d34565b1015610c1a57506000919050565b6001600160a01b03821660009081526006602052604090205461546090610c42904290610d34565b1015610c5057506000919050565b6003546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbc9190610e4f565b600003610ccb57506000919050565b610cd482610aa2565b92915050565b6000546001600160a01b031633146105045760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033b565b60006105548284610ea0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006105548284610eb3565b60006105548284610eca565b60006105548284610eec565b600260015403610e065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161033b565b6002600155565b600060208284031215610e1f57600080fd5b81356001600160a01b038116811461055457600080fd5b600060208284031215610e4857600080fd5b5035919050565b600060208284031215610e6157600080fd5b5051919050565b600060208284031215610e7a57600080fd5b8151801515811461055457600080fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610cd457610cd4610e8a565b8082028115828204841417610cd457610cd4610e8a565b600082610ee757634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610cd457610cd4610e8a56fea264697066735822122043f79dc6361f4912bc579910bca92c36f6b96e76518ef3ef633e76cd7495f70564736f6c6343000813003300000000000000000000000085acb547000531d96fd64f6d87ee4df0965e59250000000000000000000000001a0120eab44157ba10d767e0f4a38a0a6452bcf9
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063b00de069116100a2578063d279c19111610071578063d279c1911461024e578063d82e396214610261578063f2fde38b14610274578063f40f0f5214610287578063fc7e286d1461029a57600080fd5b8063b00de069146101f5578063b2a6b80014610208578063b6b55f2514610228578063ba8317121461023b57600080fd5b806337d0208c116100e957806337d0208c146101885780635c16e15e146101b3578063715018a6146101d35780637d882097146101db5780638da5cb5b146101e457600080fd5b80630905f5601461011b57806329d16ee81461013d5780632d1d27441461016b5780632e1a7d4d14610175575b600080fd5b6009546101289060ff1681565b60405190151581526020015b60405180910390f35b61015d61014b366004610e0d565b60066020526000908152604090205481565b604051908152602001610134565b6101736102ba565b005b610173610183366004610e36565b6102d6565b60025461019b906001600160a01b031681565b6040516001600160a01b039091168152602001610134565b61015d6101c1366004610e0d565b60056020526000908152604090205481565b6101736104f2565b61015d60085481565b6000546001600160a01b031661019b565b61015d610203366004610e0d565b610506565b61015d610216366004610e0d565b60076020526000908152604090205481565b610173610236366004610e36565b61055b565b60035461019b906001600160a01b031681565b61017361025c366004610e0d565b61079b565b61015d61026f366004610e0d565b610aa2565b610173610282366004610e0d565b610b6d565b61015d610295366004610e0d565b610be3565b61015d6102a8366004610e0d565b60046020526000908152604090205481565b6102c2610cda565b6009805460ff19811660ff90911615179055565b336000908152600460205260409020548111156103445760405162461bcd60e51b815260206004820152602160248201527f5769746864726177616c20616d6f756e742065786365656473206465706f73696044820152601d60fa1b60648201526084015b60405180910390fd5b3360009081526006602052604090205461546090610363904290610d34565b1180610376575060095460ff1615156001145b6103f25760405162461bcd60e51b815260206004820152604160248201527f43616e206f6e6c79207769746864726177206966206c617374206465706f736960448201527f7420776173206d6f7265207468616e203620686f757273202f20312065706f636064820152600d60fb1b608482015260a40161033b565b60095460ff1615801561040d5750600061040b33610be3565b115b1561041b5761041b3361079b565b336000908152600460205260409020546104359082610d34565b336000908152600460205260409020556008546104529082610d34565b6008556002546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b1580156104a157600080fd5b505af11580156104b5573d6000803e3d6000fd5b50506040518381523392507f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436491506020015b60405180910390a250565b6104fa610cda565b6105046000610d40565b565b600060085460000361051a57506000919050565b6008546001600160a01b03831660009081526004602052604081205490916105549161054e90670de0b6b3a7640000610d90565b90610d9c565b9392505050565b6000811161059c5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015260640161033b565b6002546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa1580156105e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106089190610e4f565b101561064d5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161033b565b60095460ff16156106bc5760405162461bcd60e51b815260206004820152603360248201527f436f6e747261637420697320696e20656d657267656e6379206d6f64652c2064604482015272195c1bdcda5d1cc81b9bdd08185b1b1bddd959606a1b606482015260840161033b565b600254604051632770a7eb60e21b8152336004820152602481018390526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801561070857600080fd5b505af115801561071c573d6000803e3d6000fd5b50503360009081526004602052604090205461073b9250905082610da8565b3360009081526004602090815260408083209390935560069052204290556008546107669082610da8565b60085560405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906020016104e7565b6107a3610db4565b336001600160a01b038216146108075760405162461bcd60e51b8152602060048201526024808201527f4f6e6c792074686520757365722063616e20636c61696d2074686569722072656044820152631dd85c9960e21b606482015260840161033b565b60095460ff16156108805760405162461bcd60e51b815260206004820152603860248201527f436f6e747261637420697320696e20656d657267656e6379206d6f64652c207260448201527f657761726420636c61696d73206e6f7420616c6c6f7765640000000000000000606482015260840161033b565b600061088b33610aa2565b9050600081116108d45760405162461bcd60e51b81526020600482015260146024820152734e6f207265776172647320617661696c61626c6560601b604482015260640161033b565b3360009081526005602052604090205462015180906108f4904290610d34565b116109415760405162461bcd60e51b815260206004820152601b60248201527f43616e206f6e6c7920636c61696d206f6e636520706572206461790000000000604482015260640161033b565b3360009081526006602052604090205461546090610960904290610d34565b116109d35760405162461bcd60e51b815260206004820152603860248201527f43616e206f6e6c7920636c61696d206966206c617374206465706f736974207760448201527f6173206d6f7265207468616e203620686f7572732061676f0000000000000000606482015260840161033b565b60035460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610a24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a489190610e68565b503360008181526005602052604090819020429055517f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f724190610a8d9084815260200190565b60405180910390a250610a9f60018055565b50565b6008546001600160a01b03821660009081526004602052604081205490918291610ad9919061054e90670de0b6b3a7640000610d90565b6003546040516370a0823160e01b8152306004820152919250600091610b6591670de0b6b3a76400009161054e9186916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610b3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5f9190610e4f565b90610d90565b949350505050565b610b75610cda565b6001600160a01b038116610bda5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161033b565b610a9f81610d40565b6001600160a01b0381166000908152600560205260408120546201518090610c0c904290610d34565b1015610c1a57506000919050565b6001600160a01b03821660009081526006602052604090205461546090610c42904290610d34565b1015610c5057506000919050565b6003546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610c98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cbc9190610e4f565b600003610ccb57506000919050565b610cd482610aa2565b92915050565b6000546001600160a01b031633146105045760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033b565b60006105548284610ea0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006105548284610eb3565b60006105548284610eca565b60006105548284610eec565b600260015403610e065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161033b565b6002600155565b600060208284031215610e1f57600080fd5b81356001600160a01b038116811461055457600080fd5b600060208284031215610e4857600080fd5b5035919050565b600060208284031215610e6157600080fd5b5051919050565b600060208284031215610e7a57600080fd5b8151801515811461055457600080fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610cd457610cd4610e8a565b8082028115828204841417610cd457610cd4610e8a565b600082610ee757634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610cd457610cd4610e8a56fea264697066735822122043f79dc6361f4912bc579910bca92c36f6b96e76518ef3ef633e76cd7495f70564736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000085acb547000531d96fd64f6d87ee4df0965e59250000000000000000000000001a0120eab44157ba10d767e0f4a38a0a6452bcf9
-----Decoded View---------------
Arg [0] : _bribe (address): 0x85aCB547000531D96FD64F6D87ee4df0965E5925
Arg [1] : _fraud (address): 0x1a0120eAB44157ba10D767e0F4A38a0A6452BCf9
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000085acb547000531d96fd64f6d87ee4df0965e5925
Arg [1] : 0000000000000000000000001a0120eab44157ba10d767e0f4a38a0a6452bcf9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.