Overview
FTM Balance
0 FTM
FTM Value
$0.00More Info
Private Name Tags
ContractCreator:
Sponsored
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60e06040 | 2553185 | 1121 days ago | IN | Create: HegicStakingWBTC | 0 FTM | 0.00151248 |
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
2553185 | 1121 days ago | Contract Creation | 0 FTM |
Loading...
Loading
Contract Name:
HegicStakingWBTC
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at ftmscan.com on 2021-03-03 */ // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.6.12; // Part: IHegicStaking interface IHegicStaking { event Claim(address indexed acount, uint amount); event Profit(uint amount); function claimProfit() external returns (uint profit); function buy(uint amount) external; function sell(uint amount) external; function profitOf(address account) external view returns (uint); } // Part: OpenZeppelin/[email protected]/Address /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // Part: OpenZeppelin/[email protected]/Context /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } function _msgSender() internal view 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; } } // Part: OpenZeppelin/[email protected]/IERC20 /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // Part: OpenZeppelin/[email protected]/SafeMath /** * @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) { // Solidity only automatically asserts when dividing by 0 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; } } // Part: IHegicStakingERC20 interface IHegicStakingERC20 is IHegicStaking { function sendProfit(uint amount) external; } // Part: OpenZeppelin/[email protected]/ERC20 /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20MinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // Part: OpenZeppelin/[email protected]/SafeERC20 /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } 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' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // Part: HegicStaking abstract contract HegicStaking is ERC20, IHegicStaking { using SafeERC20 for IERC20; using SafeMath for uint; IERC20 public immutable HEGIC; uint public constant MAX_SUPPLY = 1500; uint public constant LOT_PRICE = 888_000e18; uint internal constant ACCURACY = 1e30; address payable public immutable FALLBACK_RECIPIENT; uint public totalProfit = 0; mapping(address => uint) internal lastProfit; mapping(address => uint) internal savedProfit; uint256 public lockupPeriod = 1 days; mapping(address => uint256) public lastBoughtTimestamp; mapping(address => bool) public _revertTransfersInLockUpPeriod; constructor(ERC20 _token, string memory name, string memory short) public ERC20(name, short) { HEGIC = _token; _setupDecimals(0); FALLBACK_RECIPIENT = msg.sender; } function claimProfit() external override returns (uint profit) { profit = saveProfit(msg.sender); require(profit > 0, "Zero profit"); savedProfit[msg.sender] = 0; _transferProfit(profit); emit Claim(msg.sender, profit); } function buy(uint amount) external override { lastBoughtTimestamp[msg.sender] = block.timestamp; require(amount > 0, "Amount is zero"); require(totalSupply() + amount <= MAX_SUPPLY); _mint(msg.sender, amount); HEGIC.safeTransferFrom(msg.sender, address(this), amount.mul(LOT_PRICE)); } function sell(uint amount) external override lockupFree { _burn(msg.sender, amount); HEGIC.safeTransfer(msg.sender, amount.mul(LOT_PRICE)); } /** * @notice Used for ... */ function revertTransfersInLockUpPeriod(bool value) external { _revertTransfersInLockUpPeriod[msg.sender] = value; } function profitOf(address account) external view override returns (uint) { return savedProfit[account].add(getUnsaved(account)); } function getUnsaved(address account) internal view returns (uint profit) { return totalProfit.sub(lastProfit[account]).mul(balanceOf(account)).div(ACCURACY); } function saveProfit(address account) internal returns (uint profit) { uint unsaved = getUnsaved(account); lastProfit[account] = totalProfit; profit = savedProfit[account].add(unsaved); savedProfit[account] = profit; } function _beforeTokenTransfer(address from, address to, uint256) internal override { if (from != address(0)) saveProfit(from); if (to != address(0)) saveProfit(to); if ( lastBoughtTimestamp[from].add(lockupPeriod) > block.timestamp && lastBoughtTimestamp[from] > lastBoughtTimestamp[to] ) { require( !_revertTransfersInLockUpPeriod[to], "the recipient does not accept blocked funds" ); lastBoughtTimestamp[to] = lastBoughtTimestamp[from]; } } function _transferProfit(uint amount) internal virtual; modifier lockupFree { require( lastBoughtTimestamp[msg.sender].add(lockupPeriod) <= block.timestamp, "Action suspended due to lockup" ); _; } } // File: HegicStakingWBTC.sol contract HegicStakingWBTC is HegicStaking, IHegicStakingERC20 { using SafeERC20 for IERC20; using SafeMath for uint; IERC20 public immutable WBTC; constructor(ERC20 _token, ERC20 wbtc) public HegicStaking(_token, "HEGIC WBTC Staking lot", "hlWBTC") { WBTC = wbtc; } function sendProfit(uint amount) external override { uint _totalSupply = totalSupply(); if (_totalSupply > 0) { totalProfit += amount.mul(ACCURACY) / _totalSupply; WBTC.safeTransferFrom(msg.sender, address(this), amount); emit Profit(amount); } else { WBTC.safeTransferFrom(msg.sender, FALLBACK_RECIPIENT, amount); } } function _transferProfit(uint amount) internal override { WBTC.safeTransfer(msg.sender, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract ERC20","name":"_token","type":"address"},{"internalType":"contract ERC20","name":"wbtc","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"acount","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Profit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"FALLBACK_RECIPIENT","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HEGIC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WBTC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_revertTransfersInLockUpPeriod","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimProfit","outputs":[{"internalType":"uint256","name":"profit","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastBoughtTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockupPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"profitOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"revertTransfersInLockUpPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sendProfit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalProfit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040526000600655620151806009553480156200001d57600080fd5b5060405162001af738038062001af7833981810160405260408110156200004357600080fd5b508051602091820151604080518082018252601681527f48454749432057425443205374616b696e67206c6f740000000000000000000081860190815282518084019093526006835265686c5742544360d01b95830195909552805193949293859391929183918391620000bb916003919062000136565b508051620000d190600490602084019062000136565b50506005805460ff19166012179055506001600160601b0319606084901b16608052620000ff600062000120565b50505033606090811b60a0521b6001600160601b03191660c05250620001d2565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200017957805160ff1916838001178555620001a9565b82800160010185558215620001a9579182015b82811115620001a95782518255916020019190600101906200018c565b50620001b7929150620001bb565b5090565b5b80821115620001b75760008155600101620001bc565b60805160601c60a05160601c60c05160601c6118d162000226600039806106dd528061077d52806107f252806112cf5250806105a0528061081552508061085b5280610a0c5280610b0052506118d16000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80635fc0d2dd116100de578063a673729111610097578063dd62ed3e11610071578063dd62ed3e14610489578063e4849b32146104b7578063ee947a7c146104d4578063f011a7af146104dc5761018e565b8063a67372911461041a578063a9059cbb14610440578063d96a094a1461046c5761018e565b80635fc0d2dd1461039357806370a08231146103b057806371e395a8146103d657806386001519146103de57806395d89b41146103e6578063a457c2d7146103ee5761018e565b8063313ce5671161014b5780633f40406c116101255780633f40406c146103375780634dede3de1461035d5780634ed37f021461036557806354198ce91461036d5761018e565b8063313ce567146102e557806332cb6b0c14610303578063395093511461030b5761018e565b806306fdde0314610193578063095ea7b31461021057806318160ddd146102505780631b0163731461026a57806323b872dd1461028e5780632ba59175146102c4575b600080fd5b61019b6104e4565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d55781810151838201526020016101bd565b50505050905090810190601f1680156102025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61023c6004803603604081101561022657600080fd5b506001600160a01b03813516906020013561057a565b604080519115158252519081900360200190f35b610258610598565b60408051918252519081900360200190f35b61027261059e565b604080516001600160a01b039092168252519081900360200190f35b61023c600480360360608110156102a457600080fd5b506001600160a01b038135811691602081013590911690604001356105c2565b6102e3600480360360208110156102da57600080fd5b50351515610649565b005b6102ed610669565b6040805160ff9092168252519081900360200190f35b610258610672565b61023c6004803603604081101561032157600080fd5b506001600160a01b038135169060200135610678565b61023c6004803603602081101561034d57600080fd5b50356001600160a01b03166106c6565b6102726106db565b6102586106ff565b6102586004803603602081101561038357600080fd5b50356001600160a01b031661070d565b6102e3600480360360208110156103a957600080fd5b503561073a565b610258600480360360208110156103c657600080fd5b50356001600160a01b031661083e565b610272610859565b61025861087d565b61019b610883565b61023c6004803603604081101561040457600080fd5b506001600160a01b0381351690602001356108e4565b6102586004803603602081101561043057600080fd5b50356001600160a01b031661094c565b61023c6004803603604081101561045657600080fd5b506001600160a01b03813516906020013561095e565b6102e36004803603602081101561048257600080fd5b5035610972565b6102586004803603604081101561049f57600080fd5b506001600160a01b0381358116916020013516610a37565b6102e3600480360360208110156104cd57600080fd5b5035610a62565b610258610b27565b610258610b2d565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105705780601f1061054557610100808354040283529160200191610570565b820191906000526020600020905b81548152906001019060200180831161055357829003601f168201915b5050505050905090565b600061058e610587610bcf565b8484610bd3565b5060015b92915050565b60025490565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006105cf848484610cbf565b61063f846105db610bcf565b61063a85604051806060016040528060288152602001611790602891396001600160a01b038a16600090815260016020526040812090610619610bcf565b6001600160a01b031681526020810191909152604001600020549190610e1a565b610bd3565b5060019392505050565b336000908152600b60205260409020805460ff1916911515919091179055565b60055460ff1690565b6105dc81565b600061058e610685610bcf565b8461063a8560016000610696610bcf565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610eb1565b600b6020526000908152604090205460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b69bc0a9392c65c3b00000081565b600061059261071b83610f12565b6001600160a01b03841660009081526008602052604090205490610eb1565b6000610744610598565b905080156107e55780610764836c0c9f2c9cd04674edea40000000610f62565b8161076b57fe5b600680549290910490910190556107ad7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316333085610fbb565b6040805183815290517f357d905f1831209797df4d55d79c5c5bf1d9f7311c976afd05e13d881eab9bc89181900360200190a161083a565b61083a6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016337f000000000000000000000000000000000000000000000000000000000000000085610fbb565b5050565b6001600160a01b031660009081526020819052604090205490565b7f000000000000000000000000000000000000000000000000000000000000000081565b60065481565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105705780601f1061054557610100808354040283529160200191610570565b600061058e6108f1610bcf565b8461063a85604051806060016040528060258152602001611877602591396001600061091b610bcf565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610e1a565b600a6020526000908152604090205481565b600061058e61096b610bcf565b8484610cbf565b336000908152600a60205260409020429055806109c7576040805162461bcd60e51b815260206004820152600e60248201526d416d6f756e74206973207a65726f60901b604482015290519081900360640190fd5b6105dc816109d3610598565b0111156109df57600080fd5b6109e9338261101b565b610a343330610a028469bc0a9392c65c3b000000610f62565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016929190610fbb565b50565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600954336000908152600a60205260409020544291610a819190610eb1565b1115610ad4576040805162461bcd60e51b815260206004820152601e60248201527f416374696f6e2073757370656e6465642064756520746f206c6f636b75700000604482015290519081900360640190fd5b610ade338261110b565b610a3433610af68369bc0a9392c65c3b000000610f62565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190611207565b60095481565b6000610b383361125e565b905060008111610b7d576040805162461bcd60e51b815260206004820152600b60248201526a16995c9bc81c1c9bd99a5d60aa1b604482015290519081900360640190fd5b33600090815260086020526040812055610b96816112c2565b60408051828152905133917f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4919081900360200190a290565b3390565b6001600160a01b038316610c185760405162461bcd60e51b81526004018080602001828103825260248152602001806118296024913960400191505060405180910390fd5b6001600160a01b038216610c5d5760405162461bcd60e51b81526004018080602001828103825260228152602001806117276022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610d045760405162461bcd60e51b81526004018080602001828103825260258152602001806118046025913960400191505060405180910390fd5b6001600160a01b038216610d495760405162461bcd60e51b81526004018080602001828103825260238152602001806116e26023913960400191505060405180910390fd5b610d548383836112f6565b610d9181604051806060016040528060268152602001611749602691396001600160a01b0386166000908152602081905260409020549190610e1a565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610dc09082610eb1565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610ea95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e6e578181015183820152602001610e56565b50505050905090810190601f168015610e9b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f0b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60006105926c0c9f2c9cd04674edea40000000610f5c610f318561083e565b6001600160a01b038616600090815260076020526040902054600654610f5691611404565b90610f62565b90611446565b600082610f7157506000610592565b82820282848281610f7e57fe5b0414610f0b5760405162461bcd60e51b815260040180806020018281038252602181526020018061176f6021913960400191505060405180910390fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611015908590611488565b50505050565b6001600160a01b038216611076576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611082600083836112f6565b60025461108f9082610eb1565b6002556001600160a01b0382166000908152602081905260409020546110b59082610eb1565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166111505760405162461bcd60e51b81526004018080602001828103825260218152602001806117b86021913960400191505060405180910390fd5b61115c826000836112f6565b61119981604051806060016040528060228152602001611705602291396001600160a01b0385166000908152602081905260409020549190610e1a565b6001600160a01b0383166000908152602081905260409020556002546111bf9082611404565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611259908490611488565b505050565b60008061126a83610f12565b6006546001600160a01b03851660009081526007602090815260408083209390935560089052205490915061129f9082610eb1565b6001600160a01b0390931660009081526008602052604090208390555090919050565b610a346001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383611207565b6001600160a01b038316156113105761130e8361125e565b505b6001600160a01b0382161561132a576113288261125e565b505b6009546001600160a01b0384166000908152600a602052604090205442916113529190610eb1565b11801561137f57506001600160a01b038083166000908152600a6020526040808220549286168252902054115b15611259576001600160a01b0382166000908152600b602052604090205460ff16156113dc5760405162461bcd60e51b815260040180806020018281038252602b8152602001806117d9602b913960400191505060405180910390fd5b6001600160a01b038084166000908152600a6020526040808220549285168252902055505050565b6000610f0b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e1a565b6000610f0b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611640565b61149a826001600160a01b03166116a5565b6114eb576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106115295780518252601f19909201916020918201910161150a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461158b576040519150601f19603f3d011682016040523d82523d6000602084013e611590565b606091505b5091509150816115e7576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156110155780806020019051602081101561160357600080fd5b50516110155760405162461bcd60e51b815260040180806020018281038252602a81526020018061184d602a913960400191505060405180910390fd5b6000818361168f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610e6e578181015183820152602001610e56565b50600083858161169b57fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906116d957508115155b94935050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737374686520726563697069656e7420646f6573206e6f742061636365707420626c6f636b65642066756e647345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b7c12bee3eb8ff6185272e396221e57b25a3df1b58e72cee018baa190c57a8f164736f6c634300060c003300000000000000000000000044b26e839eb3572c5e959f994804a5de66600349000000000000000000000000321162cd933e2be498cd2267a90534a804051b11
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80635fc0d2dd116100de578063a673729111610097578063dd62ed3e11610071578063dd62ed3e14610489578063e4849b32146104b7578063ee947a7c146104d4578063f011a7af146104dc5761018e565b8063a67372911461041a578063a9059cbb14610440578063d96a094a1461046c5761018e565b80635fc0d2dd1461039357806370a08231146103b057806371e395a8146103d657806386001519146103de57806395d89b41146103e6578063a457c2d7146103ee5761018e565b8063313ce5671161014b5780633f40406c116101255780633f40406c146103375780634dede3de1461035d5780634ed37f021461036557806354198ce91461036d5761018e565b8063313ce567146102e557806332cb6b0c14610303578063395093511461030b5761018e565b806306fdde0314610193578063095ea7b31461021057806318160ddd146102505780631b0163731461026a57806323b872dd1461028e5780632ba59175146102c4575b600080fd5b61019b6104e4565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101d55781810151838201526020016101bd565b50505050905090810190601f1680156102025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61023c6004803603604081101561022657600080fd5b506001600160a01b03813516906020013561057a565b604080519115158252519081900360200190f35b610258610598565b60408051918252519081900360200190f35b61027261059e565b604080516001600160a01b039092168252519081900360200190f35b61023c600480360360608110156102a457600080fd5b506001600160a01b038135811691602081013590911690604001356105c2565b6102e3600480360360208110156102da57600080fd5b50351515610649565b005b6102ed610669565b6040805160ff9092168252519081900360200190f35b610258610672565b61023c6004803603604081101561032157600080fd5b506001600160a01b038135169060200135610678565b61023c6004803603602081101561034d57600080fd5b50356001600160a01b03166106c6565b6102726106db565b6102586106ff565b6102586004803603602081101561038357600080fd5b50356001600160a01b031661070d565b6102e3600480360360208110156103a957600080fd5b503561073a565b610258600480360360208110156103c657600080fd5b50356001600160a01b031661083e565b610272610859565b61025861087d565b61019b610883565b61023c6004803603604081101561040457600080fd5b506001600160a01b0381351690602001356108e4565b6102586004803603602081101561043057600080fd5b50356001600160a01b031661094c565b61023c6004803603604081101561045657600080fd5b506001600160a01b03813516906020013561095e565b6102e36004803603602081101561048257600080fd5b5035610972565b6102586004803603604081101561049f57600080fd5b506001600160a01b0381358116916020013516610a37565b6102e3600480360360208110156104cd57600080fd5b5035610a62565b610258610b27565b610258610b2d565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105705780601f1061054557610100808354040283529160200191610570565b820191906000526020600020905b81548152906001019060200180831161055357829003601f168201915b5050505050905090565b600061058e610587610bcf565b8484610bd3565b5060015b92915050565b60025490565b7f00000000000000000000000043a411ea16c10431ad9726a9470717f64c3398b481565b60006105cf848484610cbf565b61063f846105db610bcf565b61063a85604051806060016040528060288152602001611790602891396001600160a01b038a16600090815260016020526040812090610619610bcf565b6001600160a01b031681526020810191909152604001600020549190610e1a565b610bd3565b5060019392505050565b336000908152600b60205260409020805460ff1916911515919091179055565b60055460ff1690565b6105dc81565b600061058e610685610bcf565b8461063a8560016000610696610bcf565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490610eb1565b600b6020526000908152604090205460ff1681565b7f000000000000000000000000321162cd933e2be498cd2267a90534a804051b1181565b69bc0a9392c65c3b00000081565b600061059261071b83610f12565b6001600160a01b03841660009081526008602052604090205490610eb1565b6000610744610598565b905080156107e55780610764836c0c9f2c9cd04674edea40000000610f62565b8161076b57fe5b600680549290910490910190556107ad7f000000000000000000000000321162cd933e2be498cd2267a90534a804051b116001600160a01b0316333085610fbb565b6040805183815290517f357d905f1831209797df4d55d79c5c5bf1d9f7311c976afd05e13d881eab9bc89181900360200190a161083a565b61083a6001600160a01b037f000000000000000000000000321162cd933e2be498cd2267a90534a804051b1116337f00000000000000000000000043a411ea16c10431ad9726a9470717f64c3398b485610fbb565b5050565b6001600160a01b031660009081526020819052604090205490565b7f00000000000000000000000044b26e839eb3572c5e959f994804a5de6660034981565b60065481565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105705780601f1061054557610100808354040283529160200191610570565b600061058e6108f1610bcf565b8461063a85604051806060016040528060258152602001611877602591396001600061091b610bcf565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190610e1a565b600a6020526000908152604090205481565b600061058e61096b610bcf565b8484610cbf565b336000908152600a60205260409020429055806109c7576040805162461bcd60e51b815260206004820152600e60248201526d416d6f756e74206973207a65726f60901b604482015290519081900360640190fd5b6105dc816109d3610598565b0111156109df57600080fd5b6109e9338261101b565b610a343330610a028469bc0a9392c65c3b000000610f62565b6001600160a01b037f00000000000000000000000044b26e839eb3572c5e959f994804a5de6660034916929190610fbb565b50565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600954336000908152600a60205260409020544291610a819190610eb1565b1115610ad4576040805162461bcd60e51b815260206004820152601e60248201527f416374696f6e2073757370656e6465642064756520746f206c6f636b75700000604482015290519081900360640190fd5b610ade338261110b565b610a3433610af68369bc0a9392c65c3b000000610f62565b6001600160a01b037f00000000000000000000000044b26e839eb3572c5e959f994804a5de66600349169190611207565b60095481565b6000610b383361125e565b905060008111610b7d576040805162461bcd60e51b815260206004820152600b60248201526a16995c9bc81c1c9bd99a5d60aa1b604482015290519081900360640190fd5b33600090815260086020526040812055610b96816112c2565b60408051828152905133917f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4919081900360200190a290565b3390565b6001600160a01b038316610c185760405162461bcd60e51b81526004018080602001828103825260248152602001806118296024913960400191505060405180910390fd5b6001600160a01b038216610c5d5760405162461bcd60e51b81526004018080602001828103825260228152602001806117276022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316610d045760405162461bcd60e51b81526004018080602001828103825260258152602001806118046025913960400191505060405180910390fd5b6001600160a01b038216610d495760405162461bcd60e51b81526004018080602001828103825260238152602001806116e26023913960400191505060405180910390fd5b610d548383836112f6565b610d9181604051806060016040528060268152602001611749602691396001600160a01b0386166000908152602081905260409020549190610e1a565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610dc09082610eb1565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115610ea95760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e6e578181015183820152602001610e56565b50505050905090810190601f168015610e9b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610f0b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60006105926c0c9f2c9cd04674edea40000000610f5c610f318561083e565b6001600160a01b038616600090815260076020526040902054600654610f5691611404565b90610f62565b90611446565b600082610f7157506000610592565b82820282848281610f7e57fe5b0414610f0b5760405162461bcd60e51b815260040180806020018281038252602181526020018061176f6021913960400191505060405180910390fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611015908590611488565b50505050565b6001600160a01b038216611076576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611082600083836112f6565b60025461108f9082610eb1565b6002556001600160a01b0382166000908152602081905260409020546110b59082610eb1565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b0382166111505760405162461bcd60e51b81526004018080602001828103825260218152602001806117b86021913960400191505060405180910390fd5b61115c826000836112f6565b61119981604051806060016040528060228152602001611705602291396001600160a01b0385166000908152602081905260409020549190610e1a565b6001600160a01b0383166000908152602081905260409020556002546111bf9082611404565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611259908490611488565b505050565b60008061126a83610f12565b6006546001600160a01b03851660009081526007602090815260408083209390935560089052205490915061129f9082610eb1565b6001600160a01b0390931660009081526008602052604090208390555090919050565b610a346001600160a01b037f000000000000000000000000321162cd933e2be498cd2267a90534a804051b11163383611207565b6001600160a01b038316156113105761130e8361125e565b505b6001600160a01b0382161561132a576113288261125e565b505b6009546001600160a01b0384166000908152600a602052604090205442916113529190610eb1565b11801561137f57506001600160a01b038083166000908152600a6020526040808220549286168252902054115b15611259576001600160a01b0382166000908152600b602052604090205460ff16156113dc5760405162461bcd60e51b815260040180806020018281038252602b8152602001806117d9602b913960400191505060405180910390fd5b6001600160a01b038084166000908152600a6020526040808220549285168252902055505050565b6000610f0b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610e1a565b6000610f0b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611640565b61149a826001600160a01b03166116a5565b6114eb576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106115295780518252601f19909201916020918201910161150a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461158b576040519150601f19603f3d011682016040523d82523d6000602084013e611590565b606091505b5091509150816115e7576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156110155780806020019051602081101561160357600080fd5b50516110155760405162461bcd60e51b815260040180806020018281038252602a81526020018061184d602a913960400191505060405180910390fd5b6000818361168f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610e6e578181015183820152602001610e56565b50600083858161169b57fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906116d957508115155b94935050505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737374686520726563697069656e7420646f6573206e6f742061636365707420626c6f636b65642066756e647345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b7c12bee3eb8ff6185272e396221e57b25a3df1b58e72cee018baa190c57a8f164736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000044b26e839eb3572c5e959f994804a5de66600349000000000000000000000000321162cd933e2be498cd2267a90534a804051b11
-----Decoded View---------------
Arg [0] : _token (address): 0x44B26E839eB3572c5E959F994804A5De66600349
Arg [1] : wbtc (address): 0x321162Cd933E2Be498Cd2267a90534A804051b11
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000044b26e839eb3572c5e959f994804a5de66600349
Arg [1] : 000000000000000000000000321162cd933e2be498cd2267a90534a804051b11
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.