More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,094 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Emergency Withdr... | 20569012 | 57 days ago | IN | 0 ETH | 0.00006142 | ||||
Emergency Withdr... | 20569009 | 57 days ago | IN | 0 ETH | 0.00006278 | ||||
Emergency Withdr... | 19522232 | 203 days ago | IN | 0 ETH | 0.00116636 | ||||
Withdraw | 14384889 | 947 days ago | IN | 0 ETH | 0.00093958 | ||||
Claim | 14384889 | 947 days ago | IN | 0 ETH | 0.00109618 | ||||
Withdraw | 14006186 | 1005 days ago | IN | 0 ETH | 0.0128509 | ||||
Withdraw | 13971246 | 1011 days ago | IN | 0 ETH | 0.00924433 | ||||
Withdraw | 13914757 | 1020 days ago | IN | 0 ETH | 0.00546711 | ||||
Withdraw | 13617491 | 1066 days ago | IN | 0 ETH | 0.00516388 | ||||
Withdraw | 13450217 | 1093 days ago | IN | 0 ETH | 0.00412811 | ||||
Withdraw | 13442011 | 1094 days ago | IN | 0 ETH | 0.00467358 | ||||
Withdraw | 13318209 | 1113 days ago | IN | 0 ETH | 0.00351162 | ||||
Withdraw | 13251765 | 1124 days ago | IN | 0 ETH | 0.00374187 | ||||
Withdraw | 13223454 | 1128 days ago | IN | 0 ETH | 0.0019284 | ||||
Withdraw | 13207643 | 1130 days ago | IN | 0 ETH | 0.00214454 | ||||
Withdraw | 13202896 | 1131 days ago | IN | 0 ETH | 0.00391846 | ||||
Withdraw | 13191469 | 1133 days ago | IN | 0 ETH | 0.00499523 | ||||
Withdraw | 13191090 | 1133 days ago | IN | 0 ETH | 0.00583327 | ||||
Claim | 13186826 | 1134 days ago | IN | 0 ETH | 0.003927 | ||||
Emergency Withdr... | 13186721 | 1134 days ago | IN | 0 ETH | 0.00744409 | ||||
Withdraw | 13165294 | 1137 days ago | IN | 0 ETH | 0.00371228 | ||||
Withdraw | 13161133 | 1138 days ago | IN | 0 ETH | 0.00316541 | ||||
Withdraw | 13161133 | 1138 days ago | IN | 0 ETH | 0.00555705 | ||||
Withdraw | 13120127 | 1144 days ago | IN | 0 ETH | 0.00379132 | ||||
Withdraw | 13060631 | 1153 days ago | IN | 0 ETH | 0.00171636 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
14384889 | 947 days ago | 0.00002545 ETH | ||||
14006186 | 1005 days ago | 0.00018711 ETH | ||||
13971246 | 1011 days ago | 0.00000669 ETH | ||||
13442011 | 1094 days ago | 0.00001956 ETH | ||||
13251765 | 1124 days ago | 0.00006952 ETH | ||||
13207643 | 1130 days ago | 0.00002127 ETH | ||||
13191469 | 1133 days ago | 0.00031167 ETH | ||||
13191090 | 1133 days ago | 0.00002436 ETH | ||||
13161133 | 1138 days ago | 0.00022358 ETH | ||||
13120127 | 1144 days ago | 0.00003985 ETH | ||||
13014786 | 1160 days ago | 0.0000957 ETH | ||||
13006486 | 1161 days ago | 0.00007425 ETH | ||||
12875484 | 1182 days ago | 0.00000454 ETH | ||||
12766350 | 1199 days ago | 0.00001607 ETH | ||||
12616792 | 1222 days ago | 0.00000095 ETH | ||||
12550718 | 1233 days ago | 0.00000318 ETH | ||||
12538651 | 1234 days ago | 0.00000454 ETH | ||||
12474458 | 1244 days ago | 0.00000861 ETH | ||||
12445344 | 1249 days ago | 0.00001402 ETH | ||||
12445190 | 1249 days ago | 0.00001561 ETH | ||||
12415106 | 1254 days ago | 0.00004584 ETH | ||||
12403297 | 1255 days ago | 0.0000386 ETH | ||||
12401428 | 1256 days ago | 0.00000565 ETH | ||||
12399686 | 1256 days ago | 0.00000957 ETH | ||||
12397263 | 1256 days ago | 0.00001415 ETH |
Loading...
Loading
Contract Name:
StakingDexm
Compiler Version
v0.7.0+commit.9e61f92b
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /** * DexMex Staking Pool * ,-. ,--' ~.). ,' `. ; (((__ __))) ; ( (#) ( (#) | \_/___\_/| ," ,-' `__". ( ( ._ ____`.)--._ _ `._ `-.`-' \(`-' _ `-. _,-' `-/`. ,') `.`._)) ,' `. `. ,',' ; .' . `--' / ). `. ; ; `- 1ucky / ' ) ; \ ') ,' \ ,' ; \ `~~~' ,' `. _,' `. ,--' `-._________,--' * */ pragma solidity ^0.7.0; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./IDexm.sol"; contract StakingDexm is Ownable, ReentrancyGuard { using SafeMath for uint256; address public DEXM; mapping(address => UserInfo) public userInfo; uint256 accETHPerShare; uint256 public totalRewards; constructor(address dexmex) { DEXM = dexmex; } struct UserInfo { uint256 amount; uint256 rewardDebt; } receive() external payable { totalRewards = totalRewards.add(msg.value); _updatePool(msg.value); } function deposit(uint256 amount) public nonReentrant { UserInfo storage user = userInfo[msg.sender]; if (user.amount > 0) { uint256 pending = user.amount.mul(accETHPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeETHTransfer(msg.sender, pending); } } IDexm(DEXM).transferFrom(address(msg.sender), address(this), amount); user.amount = user.amount.add(amount); user.rewardDebt = user.amount.mul(accETHPerShare).div(1e12); emit Deposit(msg.sender, amount); } function withdraw(uint256 amount) public nonReentrant { UserInfo storage user = userInfo[msg.sender]; require(user.amount >= amount, "withdraw too much"); uint256 pending = user.amount.mul(accETHPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeETHTransfer(msg.sender, pending); } if (amount > 0) { user.amount = user.amount.sub(amount); IDexm(DEXM).transfer(msg.sender, amount); } user.rewardDebt = user.amount.mul(accETHPerShare).div(1e12); emit Withdraw(msg.sender, amount); } function claim() public nonReentrant { if (userInfo[msg.sender].amount == 0) { return; } UserInfo storage user = userInfo[msg.sender]; uint256 pending = user.amount.mul(accETHPerShare).div(1e12).sub(user.rewardDebt); if (pending > 0) { safeETHTransfer(msg.sender, pending); } user.rewardDebt = user.amount.mul(accETHPerShare).div(1e12); } function emergencyWithdraw() public { UserInfo storage user = userInfo[msg.sender]; uint256 amount = user.amount; user.amount = 0; user.rewardDebt = 0; IDexm(DEXM).transfer(msg.sender, amount); emit EmergencyWithdraw(msg.sender, amount); } function _updatePool(uint256 reward) internal { uint256 totalDeposits = IDexm(DEXM).balanceOf(address(this)); if (totalDeposits == 0) { return; } accETHPerShare = accETHPerShare.add(reward.mul(1e12).div(totalDeposits)); } function safeETHTransfer(address to, uint256 amount) internal { uint256 remain = address(this).balance; if (remain < amount) { amount = remain; } payable(to).transfer(amount); } event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 amount); }
pragma solidity ^0.7.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IDexm is IERC20 { function transfer(address to, uint256 amount) external override returns (bool); function transferFrom(address from, address to, uint256 amount) external override returns (bool); function balanceOf(address account) external view override returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../GSN/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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { _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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"dexmex","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","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"},{"inputs":[],"name":"DEXM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalRewards","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":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516116a03803806116a08339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600061005461014060201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001808190555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610148565b600033905090565b611549806101576000396000f3fe6080604052600436106100955760003560e01c806385e068681161005957806385e06868146101c55780638da5cb5b14610206578063b6b55f2514610247578063db2e21bc14610282578063f2fde38b14610299576100c0565b80630e15561a146100c55780631959a002146100f05780632e1a7d4d1461015c5780634e71d92d14610197578063715018a6146101ae576100c0565b366100c0576100af346005546102ea90919063ffffffff16565b6005819055506100be34610372565b005b600080fd5b3480156100d157600080fd5b506100da610492565b6040518082815260200191505060405180910390f35b3480156100fc57600080fd5b5061013f6004803603602081101561011357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610498565b604051808381526020018281526020019250505060405180910390f35b34801561016857600080fd5b506101956004803603602081101561017f57600080fd5b81019080803590602001909291905050506104bc565b005b3480156101a357600080fd5b506101ac6107e2565b005b3480156101ba57600080fd5b506101c3610998565b005b3480156101d157600080fd5b506101da610b1e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561021257600080fd5b5061021b610b44565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561025357600080fd5b506102806004803603602081101561026a57600080fd5b8101908080359060200190929190505050610b6d565b005b34801561028e57600080fd5b50610297610e3b565b005b3480156102a557600080fd5b506102e8600480360360208110156102bc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fbc565b005b600080828401905083811015610368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156103fd57600080fd5b505afa158015610411573d6000803e3d6000fd5b505050506040513d602081101561042757600080fd5b810190808051906020019092919050505090506000811415610449575061048f565b6104876104768261046864e8d4a51000866111c790919063ffffffff16565b61124d90919063ffffffff16565b6004546102ea90919063ffffffff16565b600481905550505b50565b60055481565b60036020528060005260406000206000915090508060000154908060010154905082565b60026001541415610535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905081816000015410156105fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f776974686472617720746f6f206d75636800000000000000000000000000000081525060200191505060405180910390fd5b6000610642826001015461063464e8d4a5100061062660045487600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b61129790919063ffffffff16565b905060008111156106585761065733826112e1565b5b60008311156107505761067883836000015461129790919063ffffffff16565b8260000181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561071357600080fd5b505af1158015610727573d6000803e3d6000fd5b505050506040513d602081101561073d57600080fd5b8101908080519060200190929190505050505b61078064e8d4a5100061077260045485600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b82600101819055503373ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364846040518082815260200191505060405180910390a250506001808190555050565b6002600154141561085b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015414156108b35761098f565b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600061093e826001015461093064e8d4a5100061092260045487600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b61129790919063ffffffff16565b905060008111156109545761095333826112e1565b5b61098464e8d4a5100061097660045485600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b826001018190555050505b60018081905550565b6109a061133e565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a60576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026001541415610be6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001541115610c9e576000610c868260010154610c7864e8d4a51000610c6a60045487600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b61129790919063ffffffff16565b90506000811115610c9c57610c9b33826112e1565b5b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610d4f57600080fd5b505af1158015610d63573d6000803e3d6000fd5b505050506040513d6020811015610d7957600080fd5b810190808051906020019092919050505050610da28282600001546102ea90919063ffffffff16565b8160000181905550610dda64e8d4a51000610dcc60045484600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b81600101819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c836040518082815260200191505060405180910390a2506001808190555050565b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015490506000826000018190555060008260010181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610f2e57600080fd5b505af1158015610f42573d6000803e3d6000fd5b505050506040513d6020811015610f5857600080fd5b8101908080519060200190929190505050503373ffffffffffffffffffffffffffffffffffffffff167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695826040518082815260200191505060405180910390a25050565b610fc461133e565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611084576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561110a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806114cd6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808314156111da5760009050611247565b60008284029050828482816111eb57fe5b0414611242576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806114f36021913960400191505060405180910390fd5b809150505b92915050565b600061128f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611346565b905092915050565b60006112d983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061140c565b905092915050565b6000479050818110156112f2578091505b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611338573d6000803e3d6000fd5b50505050565b600033905090565b600080831182906113f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113b757808201518184015260208101905061139c565b50505050905090810190601f1680156113e45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816113fe57fe5b049050809150509392505050565b60008383111582906114b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561147e578082015181840152602081019050611463565b50505050905090810190601f1680156114ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838503905080915050939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220d11a97cf72e071ae0a17ff1635d3c9a1f80b103db2852ff47990a878e303a21264736f6c634300070000330000000000000000000000000020d80229877b495d2bf3269a4c13f6f1e1b9d3
Deployed Bytecode
0x6080604052600436106100955760003560e01c806385e068681161005957806385e06868146101c55780638da5cb5b14610206578063b6b55f2514610247578063db2e21bc14610282578063f2fde38b14610299576100c0565b80630e15561a146100c55780631959a002146100f05780632e1a7d4d1461015c5780634e71d92d14610197578063715018a6146101ae576100c0565b366100c0576100af346005546102ea90919063ffffffff16565b6005819055506100be34610372565b005b600080fd5b3480156100d157600080fd5b506100da610492565b6040518082815260200191505060405180910390f35b3480156100fc57600080fd5b5061013f6004803603602081101561011357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610498565b604051808381526020018281526020019250505060405180910390f35b34801561016857600080fd5b506101956004803603602081101561017f57600080fd5b81019080803590602001909291905050506104bc565b005b3480156101a357600080fd5b506101ac6107e2565b005b3480156101ba57600080fd5b506101c3610998565b005b3480156101d157600080fd5b506101da610b1e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561021257600080fd5b5061021b610b44565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561025357600080fd5b506102806004803603602081101561026a57600080fd5b8101908080359060200190929190505050610b6d565b005b34801561028e57600080fd5b50610297610e3b565b005b3480156102a557600080fd5b506102e8600480360360208110156102bc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fbc565b005b600080828401905083811015610368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156103fd57600080fd5b505afa158015610411573d6000803e3d6000fd5b505050506040513d602081101561042757600080fd5b810190808051906020019092919050505090506000811415610449575061048f565b6104876104768261046864e8d4a51000866111c790919063ffffffff16565b61124d90919063ffffffff16565b6004546102ea90919063ffffffff16565b600481905550505b50565b60055481565b60036020528060005260406000206000915090508060000154908060010154905082565b60026001541415610535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905081816000015410156105fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f776974686472617720746f6f206d75636800000000000000000000000000000081525060200191505060405180910390fd5b6000610642826001015461063464e8d4a5100061062660045487600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b61129790919063ffffffff16565b905060008111156106585761065733826112e1565b5b60008311156107505761067883836000015461129790919063ffffffff16565b8260000181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561071357600080fd5b505af1158015610727573d6000803e3d6000fd5b505050506040513d602081101561073d57600080fd5b8101908080519060200190929190505050505b61078064e8d4a5100061077260045485600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b82600101819055503373ffffffffffffffffffffffffffffffffffffffff167f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364846040518082815260200191505060405180910390a250506001808190555050565b6002600154141561085b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015414156108b35761098f565b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600061093e826001015461093064e8d4a5100061092260045487600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b61129790919063ffffffff16565b905060008111156109545761095333826112e1565b5b61098464e8d4a5100061097660045485600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b826001018190555050505b60018081905550565b6109a061133e565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a60576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026001541415610be6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001541115610c9e576000610c868260010154610c7864e8d4a51000610c6a60045487600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b61129790919063ffffffff16565b90506000811115610c9c57610c9b33826112e1565b5b505b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610d4f57600080fd5b505af1158015610d63573d6000803e3d6000fd5b505050506040513d6020811015610d7957600080fd5b810190808051906020019092919050505050610da28282600001546102ea90919063ffffffff16565b8160000181905550610dda64e8d4a51000610dcc60045484600001546111c790919063ffffffff16565b61124d90919063ffffffff16565b81600101819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c836040518082815260200191505060405180910390a2506001808190555050565b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015490506000826000018190555060008260010181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610f2e57600080fd5b505af1158015610f42573d6000803e3d6000fd5b505050506040513d6020811015610f5857600080fd5b8101908080519060200190929190505050503373ffffffffffffffffffffffffffffffffffffffff167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695826040518082815260200191505060405180910390a25050565b610fc461133e565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611084576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561110a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806114cd6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000808314156111da5760009050611247565b60008284029050828482816111eb57fe5b0414611242576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806114f36021913960400191505060405180910390fd5b809150505b92915050565b600061128f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611346565b905092915050565b60006112d983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061140c565b905092915050565b6000479050818110156112f2578091505b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611338573d6000803e3d6000fd5b50505050565b600033905090565b600080831182906113f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113b757808201518184015260208101905061139c565b50505050905090810190601f1680156113e45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816113fe57fe5b049050809150509392505050565b60008383111582906114b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561147e578082015181840152602081019050611463565b50505050905090810190601f1680156114ab5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838503905080915050939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a2646970667358221220d11a97cf72e071ae0a17ff1635d3c9a1f80b103db2852ff47990a878e303a21264736f6c63430007000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000020d80229877b495d2bf3269a4c13f6f1e1b9d3
-----Decoded View---------------
Arg [0] : dexmex (address): 0x0020d80229877b495D2bf3269a4c13f6f1e1B9D3
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000020d80229877b495d2bf3269a4c13f6f1e1b9d3
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.