Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 59 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 18452649 | 430 days ago | IN | 0 ETH | 0.00062876 | ||||
Deposit | 18335062 | 446 days ago | IN | 0 ETH | 0.00106492 | ||||
Withdraw | 18335052 | 446 days ago | IN | 0 ETH | 0.00071118 | ||||
Withdraw | 18239527 | 459 days ago | IN | 0 ETH | 0.00042208 | ||||
Withdraw | 18238778 | 460 days ago | IN | 0 ETH | 0.00054805 | ||||
Withdraw | 18234678 | 460 days ago | IN | 0 ETH | 0.00076267 | ||||
Withdraw | 18234147 | 460 days ago | IN | 0 ETH | 0.000869 | ||||
Withdraw | 18233307 | 460 days ago | IN | 0 ETH | 0.00080239 | ||||
Withdraw | 18233151 | 460 days ago | IN | 0 ETH | 0.0009436 | ||||
Withdraw | 18232784 | 460 days ago | IN | 0 ETH | 0.00064471 | ||||
Withdraw Presale... | 18232087 | 460 days ago | IN | 0 ETH | 0.00072549 | ||||
Deposit | 18231554 | 461 days ago | IN | 0 ETH | 0.00069334 | ||||
Deposit | 18218531 | 462 days ago | IN | 0 ETH | 0.00071166 | ||||
Deposit | 18218198 | 462 days ago | IN | 0 ETH | 0.00092816 | ||||
Deposit | 18217216 | 463 days ago | IN | 0 ETH | 0.00095388 | ||||
Deposit | 18217019 | 463 days ago | IN | 0 ETH | 0.00100125 | ||||
Deposit | 18216332 | 463 days ago | IN | 0 ETH | 0.00100005 | ||||
Deposit | 18216027 | 463 days ago | IN | 0 ETH | 0.0010645 | ||||
Deposit | 18215623 | 463 days ago | IN | 0 ETH | 0.00168383 | ||||
Deposit | 18215616 | 463 days ago | IN | 0 ETH | 0.0015885 | ||||
Deposit | 18215545 | 463 days ago | IN | 0 ETH | 0.00256992 | ||||
Deposit | 18215467 | 463 days ago | IN | 0 ETH | 0.00308561 | ||||
Deposit | 18215348 | 463 days ago | IN | 0 ETH | 0.00229631 | ||||
Deposit | 18215338 | 463 days ago | IN | 0 ETH | 0.00195126 | ||||
Deposit | 18215266 | 463 days ago | IN | 0 ETH | 0.00236069 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Dubai
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.0; /*⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⢦⡀⠉⠙⢦⡀⠀⠀⣀⣠⣤⣄⣀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⣀⡤⠤⠴⠶⠤⠤⢽⣦⡀⠀⢹⡴⠚⠁⠀⢀⣀⣈⣳⣄⠀⠀ ⠀⠀⠀⠀⠀⢠⠞⣁⡤⠴⠶⠶⣦⡄⠀⠀⠀⠀⠀⠀⠀⠶⠿⠭⠤⣄⣈⠙⠳⠀ ⠀⠀⠀⠀⢠⡿⠋⠀⠀⢀⡴⠋⠁⠀⣀⡖⠛⢳⠴⠶⡄⠀⠀⠀⠀⠀⠈⠙⢦⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⡴⠋⣠⠴⠚⠉⠉⣧⣄⣷⡀⢀⣿⡀⠈⠙⠻⡍⠙⠲⢮⣧ ⠀⠀⠀⠀⠀⠀⠀⡞⣠⠞⠁⠀⠀⠀⣰⠃⠀⣸⠉⠉⠀⠙⢦⡀⠀⠸⡄⠀⠈⠟ ⠀⠀⠀⠀⠀⠀⢸⠟⠁⠀⠀⠀⠀⢠⠏⠉⢉⡇⠀⠀⠀⠀⠀⠉⠳⣄⢷⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡾⠤⠤⢼⠀⠀⠀⠀⠀⠀⠀⠀⠘⢿⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡇⠀⠀⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠉⠉⠉⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣀⣀⣀⣻⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⣀⣀⡤⠤⠤⣿⠉⠉⠉⠘⣧⠤⢤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⢀⡤⠖⠋⠉⠀⠀⠀⠀⠀⠙⠲⠤⠤⠴⠚⠁⠀⠀⠀⠉⠉⠓⠦⣄⠀⠀⠀ ⢀⡞⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⣄⠀ ⠘⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠒⠚⠀ ____ _ _ ____ _ ___ | _ \| | | | __ ) / \ |_ _| | | | | | | | _ \ / _ \ | | | |_| | |_| | |_) / ___ \ | | |____/ \___/|____/_/ \_\___| Twitter: https://twitter.com/fraudeth_gg Telegram: http://t.me/fraudportal Website: https://fraudeth.gg Docs: https://docs.fraudeth.gg */ import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./IFraudToken.sol"; import "./IPrivatePresale.sol"; contract Dubai is Ownable { using SafeERC20 for IERC20; using SafeMath for uint256; struct UserInfo { uint256 amount; uint256 lockEndedTimestamp; uint256 rebaseEpoch; } IFraudToken public fraud; IPrivatePresale public privatePresale; uint256 public lockDuration = 60 hours; uint256 public totalStaked; uint256 public totalPresaleLocked; bool public depositsEnabled; bool public emergencyMode = false; // Info of each user. mapping(address => UserInfo) public userInfo; mapping(address => bool) public presaleClaimed; // Events event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event LogSetLockDuration(uint256 lockDuration); event LogSetDepositsEnabled(bool enabled); event WithdrawDeposit(address indexed user, uint256 amount); constructor(IFraudToken _fraud, bool _depositsEnabled) { fraud = _fraud; depositsEnabled = _depositsEnabled; } function setDepositsEnabled(bool _enabled) external onlyOwner { depositsEnabled = _enabled; emit LogSetDepositsEnabled(_enabled); } function deposit(uint256 _amount) public { require(depositsEnabled, "Deposits disabled"); require(_amount > 0, "Invalid amount"); require(emergencyMode == false, "Contract is in emergency mode, deposits not allowed"); require(_amount <= fraud.balanceOf(msg.sender), "Not enough tokens"); UserInfo storage user = userInfo[msg.sender]; user.lockEndedTimestamp = block.timestamp.add(lockDuration); user.rebaseEpoch = fraud.getCurrentEpoch(); fraud.burn(msg.sender, _amount); user.amount = user.amount.add(_amount); totalStaked = totalStaked.add(_amount); emit Deposit(msg.sender, _amount); } function withdrawPresaleUser() external { require(presaleClaimed[msg.sender] == false, "Already claimed"); uint256 fraudInDubai = privatePresale.getAllocationFraudInDubai(msg.sender); uint256 claimOpenDate = privatePresale.getClaimOpenDate(); require(claimOpenDate > 0, "Claiming not yet set"); require(block.timestamp >= claimOpenDate.add(lockDuration), "Claiming not yet opened"); uint256 currentEpoch = fraud.getCurrentEpoch(); uint256 claimOpenEpoch = privatePresale.getClaimOpenEpoch(); uint256 epochsElapsed = currentEpoch.sub(claimOpenEpoch); uint256 amountToMint = fraudInDubai; if (epochsElapsed > 10) { uint256 rebaseFactor = 1 ether; uint256 epochRebased = epochsElapsed.sub(10); for (uint256 i = 0; i < epochRebased; i++) { rebaseFactor = rebaseFactor.mul(900).div(1000); } amountToMint = fraudInDubai.mul(rebaseFactor).div(1 ether); } fraud.mint(address(msg.sender), amountToMint); presaleClaimed[msg.sender] = true; totalPresaleLocked = totalPresaleLocked.sub(fraudInDubai); emit WithdrawDeposit(msg.sender, fraudInDubai); } function withdraw(uint256 _amount) public { require(_amount > 0, "Invalid amount"); uint256 currentTimestamp = block.timestamp; UserInfo storage user = userInfo[msg.sender]; require(user.lockEndedTimestamp <= currentTimestamp || emergencyMode == true, "Still locked"); require(user.amount >= _amount, "Not enough tokens"); uint256 currentEpoch = fraud.getCurrentEpoch(); uint256 epochsElapsed = currentEpoch.sub(user.rebaseEpoch); uint256 amountToMint = _amount; if (epochsElapsed > 10) { uint256 rebaseFactor = 1 ether; uint256 epochRebased = epochsElapsed.sub(10); for (uint256 i = 0; i < epochRebased; i++) { rebaseFactor = rebaseFactor.mul(900).div(1000); } amountToMint = user.amount.mul(rebaseFactor).div(1 ether); } user.amount = user.amount.sub(_amount); totalStaked = totalStaked.sub(_amount); fraud.mint(address(msg.sender), amountToMint); emit Withdraw(msg.sender, _amount); } function getCurrentStake(address _user) external view returns(uint256){ UserInfo storage user = userInfo[_user]; uint256 currentEpoch = fraud.getCurrentEpoch(); uint256 epochsElapsed = currentEpoch.sub(user.rebaseEpoch); uint256 amountToMint = user.amount; if (epochsElapsed > 10) { uint256 rebaseFactor = 1 ether; uint256 epochRebased = epochsElapsed.sub(10); for (uint256 i = 0; i < epochRebased; i++) { rebaseFactor = rebaseFactor.mul(900).div(1000); } amountToMint = user.amount.mul(rebaseFactor).div(1 ether); } return amountToMint; } function setPresaleContract(IPrivatePresale _privatePresale) external onlyOwner { privatePresale = _privatePresale; } function setTotalPresaleLocked() external onlyOwner { totalPresaleLocked = privatePresale.getLockedInDubai(); } function dubaiTVL() external view returns (uint256) { return totalStaked.add(totalPresaleLocked); } function setLockDuration(uint256 _lockDuration) external onlyOwner { lockDuration = _lockDuration; } function toggleEmergency() external onlyOwner { emergencyMode = !emergencyMode; } modifier onlyPresale() { require(msg.sender == address(privatePresale), "Not PrivatePresale"); _; } }
// 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) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @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; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ 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"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// 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 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IPrivatePresale { function getAllocationFraudInDubai(address _user) external view returns (uint256); function getClaimOpenDate() external view returns (uint256); function getClaimOpenEpoch() external view returns (uint256); function getLockedInDubai() external view 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":"contract IFraudToken","name":"_fraud","type":"address"},{"internalType":"bool","name":"_depositsEnabled","type":"bool"}],"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":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"LogSetDepositsEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"lockDuration","type":"uint256"}],"name":"LogSetLockDuration","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":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawDeposit","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dubaiTVL","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":"getCurrentStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockDuration","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":"","type":"address"}],"name":"presaleClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privatePresale","outputs":[{"internalType":"contract IPrivatePresale","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setDepositsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockDuration","type":"uint256"}],"name":"setLockDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IPrivatePresale","name":"_privatePresale","type":"address"}],"name":"setPresaleContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTotalPresaleLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalPresaleLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","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":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockEndedTimestamp","type":"uint256"},{"internalType":"uint256","name":"rebaseEpoch","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawPresaleUser","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405262034bc06003556006805461ff001916905534801561002257600080fd5b5060405161132e38038061132e833981016040819052610041916100d1565b61004a33610081565b600180546001600160a01b0319166001600160a01b0393909316929092179091556006805460ff191691151591909117905561011c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156100e457600080fd5b82516001600160a01b03811681146100fb57600080fd5b6020840151909250801515811461011157600080fd5b809150509250929050565b6112038061012b6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b85780639f04586c1161007c5780639f04586c14610289578063a9bbd1141461029c578063b6b55f25146102af578063ba831712146102c2578063f2fde38b146102d5578063f9765bc1146102e857600080fd5b8063715018a614610238578063817b1cd2146102405780638da5cb5b1461024957806390dfb0921461026e5780639454fbdc1461028157600080fd5b80632e1a7d4d1161010a5780632e1a7d4d146101e25780633b9d6546146101f557806346ae23d5146101fd57806347d7d5d8146102055780634eb665af146102185780635392fd1c1461022b57600080fd5b806304554443146101475780630469a838146101635780630905f5601461016c5780631959a0021461018e5780632d1d2744146101d8575b600080fd5b61015060035481565b6040519081526020015b60405180910390f35b61015060055481565b60065461017e90610100900460ff1681565b604051901515815260200161015a565b6101bd61019c3660046110c7565b60076020526000908152604090208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161015a565b6101e061030b565b005b6101e06101f03660046110eb565b610330565b6101e06105ee565b6101e0610672565b6101506102133660046110c7565b610a7a565b6101e06102263660046110eb565b610b97565b60065461017e9060ff1681565b6101e0610ba4565b61015060045481565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161015a565b600254610256906001600160a01b031681565b610150610bb8565b6101e0610297366004611104565b610bd6565b6101e06102aa3660046110c7565b610c25565b6101e06102bd3660046110eb565b610c4f565b600154610256906001600160a01b031681565b6101e06102e33660046110c7565b610f56565b61017e6102f63660046110c7565b60086020526000908152604090205460ff1681565b610313610fcf565b6006805461ff001981166101009182900460ff1615909102179055565b600081116103765760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064015b60405180910390fd5b3360009081526007602052604090206001810154429190821015806103a8575060065460ff6101009091041615156001145b6103e35760405162461bcd60e51b815260206004820152600c60248201526b14dd1a5b1b081b1bd8dad95960a21b604482015260640161036d565b80548311156104285760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b604482015260640161036d565b60015460408051635cbeecf160e11b815290516000926001600160a01b03169163b97dd9e29160048083019260209291908290030181865afa158015610472573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104969190611126565b905060006104b183600201548361102990919063ffffffff16565b905084600a82111561052c57670de0b6b3a764000060006104d384600a611029565b905060005b8181101561050c576104f86103e86104f28561038461103e565b9061104a565b92508061050481611155565b9150506104d8565b50855461052790670de0b6b3a7640000906104f2908561103e565b925050505b83546105389087611029565b84556004546105479087611029565b60049081556001546040516340c10f1960e01b81523392810192909252602482018390526001600160a01b0316906340c10f1990604401600060405180830381600087803b15801561059857600080fd5b505af11580156105ac573d6000803e3d6000fd5b50506040518881523392507f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436491506020015b60405180910390a2505050505050565b6105f6610fcf565b600260009054906101000a90046001600160a01b03166001600160a01b031663501497996040518163ffffffff1660e01b8152600401602060405180830381865afa158015610649573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066d9190611126565b600555565b3360009081526008602052604090205460ff16156106c45760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015260640161036d565b600254604051631d6dc6d160e21b81523360048201526000916001600160a01b0316906375b71b4490602401602060405180830381865afa15801561070d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107319190611126565b90506000600260009054906101000a90046001600160a01b03166001600160a01b031663900080ed6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610788573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ac9190611126565b9050600081116107f55760405162461bcd60e51b815260206004820152601460248201527310db185a5b5a5b99c81b9bdd081e595d081cd95d60621b604482015260640161036d565b600354610803908290611056565b4210156108525760405162461bcd60e51b815260206004820152601760248201527f436c61696d696e67206e6f7420796574206f70656e6564000000000000000000604482015260640161036d565b60015460408051635cbeecf160e11b815290516000926001600160a01b03169163b97dd9e29160048083019260209291908290030181865afa15801561089c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c09190611126565b90506000600260009054906101000a90046001600160a01b03166001600160a01b031663bdf15f156040518163ffffffff1660e01b8152600401602060405180830381865afa158015610917573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093b9190611126565b905060006109498383611029565b905084600a8211156109ba57670de0b6b3a7640000600061096b84600a611029565b905060005b8181101561099e5761098a6103e86104f28561038461103e565b92508061099681611155565b915050610970565b506109b5670de0b6b3a76400006104f28a8561103e565b925050505b6001546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b158015610a0657600080fd5b505af1158015610a1a573d6000803e3d6000fd5b5050336000908152600860205260409020805460ff191660011790555050600554610a459087611029565b60055560405186815233907f195ddc41d185a27fe901831dcad44dd85716c95be78b1d71aa42393697966d40906020016105de565b6001600160a01b0380821660009081526007602090815260408083206001548251635cbeecf160e11b81529251949591948694919092169263b97dd9e292600480830193928290030181865afa158015610ad8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afc9190611126565b90506000610b1783600201548361102990919063ffffffff16565b8354909150600a821115610b8e57670de0b6b3a76400006000610b3b84600a611029565b905060005b81811015610b6e57610b5a6103e86104f28561038461103e565b925080610b6681611155565b915050610b40565b508554610b8990670de0b6b3a7640000906104f2908561103e565b925050505b95945050505050565b610b9f610fcf565b600355565b610bac610fcf565b610bb66000611062565b565b6000610bd160055460045461105690919063ffffffff16565b905090565b610bde610fcf565b6006805460ff19168215159081179091556040519081527f415447f74696881c5449538f07d24542d1f37bc3ffaacd1095313e14d7b9ce489060200160405180910390a150565b610c2d610fcf565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60065460ff16610c955760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d1cc8191a5cd8589b1959607a1b604482015260640161036d565b60008111610cd65760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015260640161036d565b600654610100900460ff1615610d4a5760405162461bcd60e51b815260206004820152603360248201527f436f6e747261637420697320696e20656d657267656e6379206d6f64652c2064604482015272195c1bdcda5d1cc81b9bdd08185b1b1bddd959606a1b606482015260840161036d565b6001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610d92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db69190611126565b811115610df95760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b604482015260640161036d565b336000908152600760205260409020600354610e16904290611056565b8160010181905550600160009054906101000a90046001600160a01b03166001600160a01b031663b97dd9e26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e959190611126565b6002820155600154604051632770a7eb60e21b8152336004820152602481018490526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015610ee657600080fd5b505af1158015610efa573d6000803e3d6000fd5b50508254610f0b9250905083611056565b8155600454610f1a9083611056565b60045560405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a25050565b610f5e610fcf565b6001600160a01b038116610fc35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161036d565b610fcc81611062565b50565b6000546001600160a01b03163314610bb65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161036d565b6000611035828461116e565b90505b92915050565b60006110358284611181565b60006110358284611198565b600061103582846111ba565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114610fcc57600080fd5b6000602082840312156110d957600080fd5b81356110e4816110b2565b9392505050565b6000602082840312156110fd57600080fd5b5035919050565b60006020828403121561111657600080fd5b813580151581146110e457600080fd5b60006020828403121561113857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600182016111675761116761113f565b5060010190565b818103818111156110385761103861113f565b80820281158282048414176110385761103861113f565b6000826111b557634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156110385761103861113f56fea2646970667358221220106cc6b89e830bb131091c826e0a88e4bdf510a8bae0346d084de61cd91c954264736f6c634300081300330000000000000000000000001a0120eab44157ba10d767e0f4a38a0a6452bcf90000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b85780639f04586c1161007c5780639f04586c14610289578063a9bbd1141461029c578063b6b55f25146102af578063ba831712146102c2578063f2fde38b146102d5578063f9765bc1146102e857600080fd5b8063715018a614610238578063817b1cd2146102405780638da5cb5b1461024957806390dfb0921461026e5780639454fbdc1461028157600080fd5b80632e1a7d4d1161010a5780632e1a7d4d146101e25780633b9d6546146101f557806346ae23d5146101fd57806347d7d5d8146102055780634eb665af146102185780635392fd1c1461022b57600080fd5b806304554443146101475780630469a838146101635780630905f5601461016c5780631959a0021461018e5780632d1d2744146101d8575b600080fd5b61015060035481565b6040519081526020015b60405180910390f35b61015060055481565b60065461017e90610100900460ff1681565b604051901515815260200161015a565b6101bd61019c3660046110c7565b60076020526000908152604090208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161015a565b6101e061030b565b005b6101e06101f03660046110eb565b610330565b6101e06105ee565b6101e0610672565b6101506102133660046110c7565b610a7a565b6101e06102263660046110eb565b610b97565b60065461017e9060ff1681565b6101e0610ba4565b61015060045481565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161015a565b600254610256906001600160a01b031681565b610150610bb8565b6101e0610297366004611104565b610bd6565b6101e06102aa3660046110c7565b610c25565b6101e06102bd3660046110eb565b610c4f565b600154610256906001600160a01b031681565b6101e06102e33660046110c7565b610f56565b61017e6102f63660046110c7565b60086020526000908152604090205460ff1681565b610313610fcf565b6006805461ff001981166101009182900460ff1615909102179055565b600081116103765760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b60448201526064015b60405180910390fd5b3360009081526007602052604090206001810154429190821015806103a8575060065460ff6101009091041615156001145b6103e35760405162461bcd60e51b815260206004820152600c60248201526b14dd1a5b1b081b1bd8dad95960a21b604482015260640161036d565b80548311156104285760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b604482015260640161036d565b60015460408051635cbeecf160e11b815290516000926001600160a01b03169163b97dd9e29160048083019260209291908290030181865afa158015610472573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104969190611126565b905060006104b183600201548361102990919063ffffffff16565b905084600a82111561052c57670de0b6b3a764000060006104d384600a611029565b905060005b8181101561050c576104f86103e86104f28561038461103e565b9061104a565b92508061050481611155565b9150506104d8565b50855461052790670de0b6b3a7640000906104f2908561103e565b925050505b83546105389087611029565b84556004546105479087611029565b60049081556001546040516340c10f1960e01b81523392810192909252602482018390526001600160a01b0316906340c10f1990604401600060405180830381600087803b15801561059857600080fd5b505af11580156105ac573d6000803e3d6000fd5b50506040518881523392507f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436491506020015b60405180910390a2505050505050565b6105f6610fcf565b600260009054906101000a90046001600160a01b03166001600160a01b031663501497996040518163ffffffff1660e01b8152600401602060405180830381865afa158015610649573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066d9190611126565b600555565b3360009081526008602052604090205460ff16156106c45760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b604482015260640161036d565b600254604051631d6dc6d160e21b81523360048201526000916001600160a01b0316906375b71b4490602401602060405180830381865afa15801561070d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107319190611126565b90506000600260009054906101000a90046001600160a01b03166001600160a01b031663900080ed6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610788573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ac9190611126565b9050600081116107f55760405162461bcd60e51b815260206004820152601460248201527310db185a5b5a5b99c81b9bdd081e595d081cd95d60621b604482015260640161036d565b600354610803908290611056565b4210156108525760405162461bcd60e51b815260206004820152601760248201527f436c61696d696e67206e6f7420796574206f70656e6564000000000000000000604482015260640161036d565b60015460408051635cbeecf160e11b815290516000926001600160a01b03169163b97dd9e29160048083019260209291908290030181865afa15801561089c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c09190611126565b90506000600260009054906101000a90046001600160a01b03166001600160a01b031663bdf15f156040518163ffffffff1660e01b8152600401602060405180830381865afa158015610917573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093b9190611126565b905060006109498383611029565b905084600a8211156109ba57670de0b6b3a7640000600061096b84600a611029565b905060005b8181101561099e5761098a6103e86104f28561038461103e565b92508061099681611155565b915050610970565b506109b5670de0b6b3a76400006104f28a8561103e565b925050505b6001546040516340c10f1960e01b8152336004820152602481018390526001600160a01b03909116906340c10f1990604401600060405180830381600087803b158015610a0657600080fd5b505af1158015610a1a573d6000803e3d6000fd5b5050336000908152600860205260409020805460ff191660011790555050600554610a459087611029565b60055560405186815233907f195ddc41d185a27fe901831dcad44dd85716c95be78b1d71aa42393697966d40906020016105de565b6001600160a01b0380821660009081526007602090815260408083206001548251635cbeecf160e11b81529251949591948694919092169263b97dd9e292600480830193928290030181865afa158015610ad8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afc9190611126565b90506000610b1783600201548361102990919063ffffffff16565b8354909150600a821115610b8e57670de0b6b3a76400006000610b3b84600a611029565b905060005b81811015610b6e57610b5a6103e86104f28561038461103e565b925080610b6681611155565b915050610b40565b508554610b8990670de0b6b3a7640000906104f2908561103e565b925050505b95945050505050565b610b9f610fcf565b600355565b610bac610fcf565b610bb66000611062565b565b6000610bd160055460045461105690919063ffffffff16565b905090565b610bde610fcf565b6006805460ff19168215159081179091556040519081527f415447f74696881c5449538f07d24542d1f37bc3ffaacd1095313e14d7b9ce489060200160405180910390a150565b610c2d610fcf565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60065460ff16610c955760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d1cc8191a5cd8589b1959607a1b604482015260640161036d565b60008111610cd65760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b604482015260640161036d565b600654610100900460ff1615610d4a5760405162461bcd60e51b815260206004820152603360248201527f436f6e747261637420697320696e20656d657267656e6379206d6f64652c2064604482015272195c1bdcda5d1cc81b9bdd08185b1b1bddd959606a1b606482015260840161036d565b6001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610d92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610db69190611126565b811115610df95760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b604482015260640161036d565b336000908152600760205260409020600354610e16904290611056565b8160010181905550600160009054906101000a90046001600160a01b03166001600160a01b031663b97dd9e26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e959190611126565b6002820155600154604051632770a7eb60e21b8152336004820152602481018490526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b158015610ee657600080fd5b505af1158015610efa573d6000803e3d6000fd5b50508254610f0b9250905083611056565b8155600454610f1a9083611056565b60045560405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a25050565b610f5e610fcf565b6001600160a01b038116610fc35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161036d565b610fcc81611062565b50565b6000546001600160a01b03163314610bb65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161036d565b6000611035828461116e565b90505b92915050565b60006110358284611181565b60006110358284611198565b600061103582846111ba565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114610fcc57600080fd5b6000602082840312156110d957600080fd5b81356110e4816110b2565b9392505050565b6000602082840312156110fd57600080fd5b5035919050565b60006020828403121561111657600080fd5b813580151581146110e457600080fd5b60006020828403121561113857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600182016111675761116761113f565b5060010190565b818103818111156110385761103861113f565b80820281158282048414176110385761103861113f565b6000826111b557634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156110385761103861113f56fea2646970667358221220106cc6b89e830bb131091c826e0a88e4bdf510a8bae0346d084de61cd91c954264736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001a0120eab44157ba10d767e0f4a38a0a6452bcf90000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _fraud (address): 0x1a0120eAB44157ba10D767e0F4A38a0A6452BCf9
Arg [1] : _depositsEnabled (bool): False
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001a0120eab44157ba10d767e0f4a38a0a6452bcf9
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.