Overview
Max Total Supply
19,293,491.210846651066264488 beFTM
Holders
2,325 ( -0.129%)
Market
Price
$0.00 @ 0.000000 FTM
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000000000138 beFTMValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
BeefyEscrowedFantom
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin-4/contracts/utils/math/SafeMath.sol"; import "@openzeppelin-4/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin-4/contracts/security/ReentrancyGuard.sol"; import "./ISFC.sol"; import "./LockedAssetManager.sol"; interface IWrappedNative is IERC20 { function deposit() external payable; function withdraw(uint wad) external; } contract BeefyEscrowedFantom is ERC20, ReentrancyGuard, LockedAssetManager { using SafeERC20 for IERC20; using SafeMath for uint256; // Important Variables IERC20 public want; ISFC public stakingContract; uint256 public validatorID; address public validator; uint256 public oneWeek = 1 weeks; // Withdraw Variables uint256 public wrID; uint256 public withdrawalTime; uint256 public withdrawalPeriodTime = 60 * 60 * 24 * 7; bool public withdrawEnabled = false; // Validator share so that limit is never hit uint256 public validatorShare = 1000; uint256 public validatorMax = 15000; event DepositWant(uint256 tvl); event ClaimRewards(uint256 rewardsClaimed); event RecoverTokens(address token, uint256 amount); constructor( address _want, address _stakingContract, uint256 _validatorID, address _validator, address _keeper, address _rewardPool, string memory _name, string memory _symbol ) LockedAssetManager(_keeper, _rewardPool) ERC20( _name, _symbol) { validatorID = _validatorID; validator = _validator; want = IERC20(_want); stakingContract = ISFC(_stakingContract); } // helper function for depositing full balance of want function depositAll() external { uint256 _amount = want.balanceOf(msg.sender); want.safeTransferFrom(msg.sender, address(this), _amount); IWrappedNative(address(want)).withdraw(_amount); _deposit(msg.sender, _amount); } // deposit an amount of want function deposit(uint256 _amount) external { want.safeTransferFrom(msg.sender, address(this), _amount); IWrappedNative(address(want)).withdraw(_amount); _deposit(msg.sender, _amount); } // deposit unwrapped function depositNative() external payable { _deposit(msg.sender, msg.value); } // deposit 'want' and lock function _deposit(address _user, uint256 _amount) internal nonReentrant whenNotPaused { if (_amount > 0) { uint256 valAmt = _amount.mul(validatorShare).div(validatorMax); (bool sent,) = validator.call{value: valAmt}(""); require(sent, "Failed to send Ether"); uint256 remaining = _amount.sub(valAmt); stakingContract.delegate{value: remaining}(validatorID); if (validatorLockDuration() > currentLockDuration()){ if (balanceOfLocked() > 0) { stakingContract.relockStake(validatorID, lockTime(), balanceOfUnlocked()); } else { stakingContract.lockStake(validatorID, lockTime(), balanceOfUnlocked()); } } _mint(_user, _amount); emit DepositWant(balanceOfLocked()); } } // Withdraw funds, only can happen if we undelegate with penalty and after 7 day waiting period function withdraw(uint256 _shares) external { require (withdrawEnabled, "Withdraw is not enabled"); uint256 r = (balanceOfWant().mul(_shares)).div(totalSupply()); _burn(msg.sender, _shares); (bool sent,) = msg.sender.call{value: r}(""); require(sent, "Failed to send Ether"); } // timestamp at which 'want' is unlocked function currentUnlockTime() external view returns (uint256 time) { (,,time,) = stakingContract.getLockupInfo(address(this), validatorID); } // duration at which 'want' is unlocked function currentLockDuration() public view returns (uint256 time) { (,,,time) = stakingContract.getLockupInfo(address(this), validatorID); } // validators end lock time function validatorUnlockTime() public view returns (uint256 time) { (,,time,) = stakingContract.getLockupInfo(validator, validatorID); } // duration at which 'want' is unlocked function validatorLockDuration() public view returns (uint256 time) { (,,,time) = stakingContract.getLockupInfo(validator, validatorID); } // calculate how much duration we should lock function lockTime() internal view returns (uint256 time) { uint256 suggestedLockUp = validatorUnlockTime().sub(block.timestamp).sub(oneWeek); if (currentLockDuration() >= suggestedLockUp) { time = currentLockDuration(); } else { time = suggestedLockUp; } } // calculate how much 'want' is held by this contract function balanceOfWant() public view returns (uint256) { return address(this).balance; } // The amount of locked want in the staking contract function balanceOfLocked() public view returns (uint256) { return stakingContract.getLockedStake(address(this), validatorID); } // Balance of unlocked want in the staking contract function balanceOfUnlocked() public view returns (uint256) { return stakingContract.getUnlockedStake(address(this), validatorID); } // pending witdrawal request information function pendingWithdrawalRequest() public view returns (uint256 time, uint256 amount) { (,time, amount) = stakingContract.getWithdrawalRequest(address(this), validatorID, wrID); } // pending reward balance function pendingStakingRewards() external view returns (uint256) { return stakingContract.pendingRewards(address(this), validatorID); } // enable withdraw of funds function enableWithdraw() external onlyOwner { _pause(); stakingContract.unlockStake(validatorID, balanceOfLocked()); stakingContract.undelegate(validatorID, wrID, balanceOfUnlocked()); withdrawalTime = withdrawalPeriodTime.add(block.timestamp); } // withdraw all want from staking contract function withdrawFromStaking() external onlyOwner { require(block.timestamp >= withdrawalTime, "It takes 7 Days to withdraw"); stakingContract.withdraw(validatorID, wrID); wrID = wrID.add(1); withdrawEnabled = true; } // lock if we can lock and if there is a balanceOfUnlocked function lockFunds() external { require(validatorLockDuration() > currentLockDuration(), "Validator needs more lock time"); stakingContract.relockStake(validatorID, lockTime(), balanceOfUnlocked()); } // Relock stake function relockFunds() external onlyOwner { _unpause(); uint256 relockAmount = balanceOfWant(); stakingContract.delegate{value: relockAmount}(validatorID); stakingContract.relockStake(validatorID, lockTime(), balanceOfUnlocked()); withdrawEnabled = false; } // prevent any further 'want' deposits and remove approval function pause() public onlyManager { _pause(); } // allow 'want' deposits again and reinstate approval function unpause() external onlyManager { _unpause(); } // pass through rewards from the fee distributor function claimStakingReward() external onlyRewardPool { uint256 _before = balanceOfWant(); stakingContract.claimRewards(validatorID); uint256 _balance = balanceOfWant().sub(_before); IWrappedNative(address(want)).deposit{value: _balance}(); want.safeTransfer(rewardPool, _balance); emit ClaimRewards(_balance); } // recover any unknown tokens function inCaseTokensGetStuck(address _token) external onlyOwner { require(_token != address(want), "!token"); uint256 _amount = IERC20(_token).balanceOf(address(this)); IERC20(_token).safeTransfer(msg.sender, _amount); emit RecoverTokens(_token, _amount); } receive () external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @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 {ERC20PresetMinterPauser}. * * 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 Contracts guidelines: functions revert * instead 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, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } 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] + 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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This 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); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(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: * * - `account` 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 += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This 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 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 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // 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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ISFC { function delegate(uint256 toValidatorID) external payable; function relockStake(uint256 toValidatorID, uint256 lockupDuration, uint256 amount) external; function lockStake(uint256 toValidatorID, uint256 lockupDuration, uint256 amount) external; function undelegate(uint256 toValidatorID, uint256 wrID, uint256 amount) external; function unlockStake(uint256 toValidatorID, uint256 amount) external returns (uint256); function withdraw(uint256 toValidatorID, uint256 wrID) external; function claimRewards(uint256 toValidatorID) external; function getLockedStake(address delegator, uint256 toValidatorID) external view returns (uint256); function getUnlockedStake(address delegator, uint256 toValidatorID) external view returns (uint256); function pendingRewards(address delegator, uint256 toValidatorID) external view returns (uint256); function getLockupInfo(address delegator, uint256 toValidatorID) external view returns ( uint256 lockedStake, uint256 fromEpoch, uint256 endTime, uint256 duration); function getWithdrawalRequest(address delegator, uint256 toValidatorID, uint256 wrID) external view returns (uint256 epoch, uint256 time, uint256 amount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin-4/contracts/access/Ownable.sol"; import "@openzeppelin-4/contracts/security/Pausable.sol"; import "@openzeppelin-4/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin-4/contracts/utils/math/SafeMath.sol"; contract LockedAssetManager is Ownable, Pausable { using SafeERC20 for IERC20; /** * @dev Beefy Contracts: * {keeper} - Address to manage a few lower risk features of the strat. * {rewardPool} - Address for distributing locked want rewards. */ address public keeper; address public rewardPool; /** * @dev Initializes the base strategy. * @param _keeper address to use as alternative owner. * @param _rewardPool address of reward pool. */ constructor( address _keeper, address _rewardPool ) { keeper = _keeper; rewardPool = _rewardPool; } // checks that caller is either owner or keeper. modifier onlyManager() { require(msg.sender == owner() || msg.sender == keeper, "!manager"); _; } // checks that caller is the reward pool. modifier onlyRewardPool() { require(msg.sender == rewardPool, "!rewardPool"); _; } /** * @dev Updates address of the strat keeper. * @param _keeper new keeper address. */ function setKeeper(address _keeper) external onlyManager { keeper = _keeper; } /** * @dev Updates address where reward pool where want is rewarded. * @param _rewardPool new reward pool address. */ function setRewardPool(address _rewardPool) external onlyOwner { rewardPool = _rewardPool; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_want","type":"address"},{"internalType":"address","name":"_stakingContract","type":"address"},{"internalType":"uint256","name":"_validatorID","type":"uint256"},{"internalType":"address","name":"_validator","type":"address"},{"internalType":"address","name":"_keeper","type":"address"},{"internalType":"address","name":"_rewardPool","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"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":false,"internalType":"uint256","name":"rewardsClaimed","type":"uint256"}],"name":"ClaimRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tvl","type":"uint256"}],"name":"DepositWant","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RecoverTokens","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"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":[],"name":"balanceOfLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfUnlocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimStakingReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentLockDuration","outputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentUnlockTime","outputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositNative","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"enableWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseTokensGetStuck","outputs":[],"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":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oneWeek","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingStakingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingWithdrawalRequest","outputs":[{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"relockFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardPool","type":"address"}],"name":"setRewardPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"contract ISFC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"validator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"validatorID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"validatorLockDuration","outputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"validatorMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"validatorShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"validatorUnlockTime","outputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFromStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalPeriodTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wrID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405262093a80600d8190556010556011805460ff191690556103e8601255613a986013553480156200003357600080fd5b5060405162002d7738038062002d778339810160408190526200005691620002f8565b8383838381600390805190602001906200007292919062000168565b5080516200008890600490602084019062000168565b50506001600555506200009b3362000116565b6006805460ff60a01b19169055600780546001600160a01b03199081166001600160a01b039485161790915560088054821692841692909217909155600b97909755600c805488169682169690961790955550506009805485169684169690961790955550600a805490921692169190911790555062000407565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200017690620003ca565b90600052602060002090601f0160209004810192826200019a5760008555620001e5565b82601f10620001b557805160ff1916838001178555620001e5565b82800160010185558215620001e5579182015b82811115620001e5578251825591602001919060010190620001c8565b50620001f3929150620001f7565b5090565b5b80821115620001f35760008155600101620001f8565b80516001600160a01b03811681146200022657600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200025357600080fd5b81516001600160401b03808211156200027057620002706200022b565b604051601f8301601f19908116603f011681019082821181831017156200029b576200029b6200022b565b81604052838152602092508683858801011115620002b857600080fd5b600091505b83821015620002dc5785820183015181830184015290820190620002bd565b83821115620002ee5760008385830101525b9695505050505050565b600080600080600080600080610100898b0312156200031657600080fd5b62000321896200020e565b97506200033160208a016200020e565b9650604089015195506200034860608a016200020e565b94506200035860808a016200020e565b93506200036860a08a016200020e565b60c08a01519093506001600160401b03808211156200038657600080fd5b620003948c838d0162000241565b935060e08b0151915080821115620003ab57600080fd5b50620003ba8b828c0162000241565b9150509295985092959890939650565b600181811c90821680620003df57607f821691505b602082108114156200040157634e487b7160e01b600052602260045260246000fd5b50919050565b61296080620004176000396000f3fe6080604052600436106102e85760003560e01c8063715018a611610190578063b6b55f25116100dc578063def68a9c11610095578063f2fde38b1161006f578063f2fde38b1461083b578063f70cbaae1461085b578063fa9befda14610871578063ff593acd1461088657600080fd5b8063def68a9c146107e6578063ee99205c14610806578063f2072abd1461082657600080fd5b8063b6b55f251461073a578063b82b84271461075a578063c1a3d44c14610770578063db6b524614610783578063dd62ed3e1461078b578063de5f6268146107d157600080fd5b806395d89b4111610149578063aced166111610123578063aced1661146106da578063af3a8073146106fa578063afc695ce1461070f578063b33134bb1461072457600080fd5b806395d89b4114610685578063a457c2d71461069a578063a9059cbb146106ba57600080fd5b8063715018a6146105e8578063748747e6146105fd5780637540ce6f1461061d57806378238c37146106325780638456cb59146106525780638da5cb5b1461066757600080fd5b8063389eb9f91161024f5780635b872e331161020857806366666aa9116101e257806366666aa91461056757806369b9732f146105875780636bd844cd1461059d57806370a08231146105b257600080fd5b80635b872e331461051d5780635b984ff6146105335780635c975abb1461054857600080fd5b8063389eb9f914610487578063395093511461049d5780633a5381b5146104bd5780633d4d5849146104dd5780633f4ba83a146104f257806346c678431461050757600080fd5b806323b872dd116102a157806323b872dd146103d5578063267b7531146103f55780632e13a30d1461040a5780632e1a7d4d14610421578063313ce56714610441578063345513e71461045d57600080fd5b806301aabbf5146102f457806306fdde031461031c578063095ea7b31461033e57806318160ddd1461036e5780631f1fcd51146103835780632287e96a146103bb57600080fd5b366102ef57005b600080fd5b34801561030057600080fd5b5061030961089b565b6040519081526020015b60405180910390f35b34801561032857600080fd5b5061033161091c565b6040516103139190612640565b34801561034a57600080fd5b5061035e61035936600461268a565b6109ae565b6040519015158152602001610313565b34801561037a57600080fd5b50600254610309565b34801561038f57600080fd5b506009546103a3906001600160a01b031681565b6040516001600160a01b039091168152602001610313565b3480156103c757600080fd5b5060115461035e9060ff1681565b3480156103e157600080fd5b5061035e6103f03660046126b4565b6109c4565b34801561040157600080fd5b50610309610a75565b34801561041657600080fd5b5061041f610ab9565b005b34801561042d57600080fd5b5061041f61043c3660046126f0565b610bc0565b34801561044d57600080fd5b5060405160128152602001610313565b34801561046957600080fd5b50610472610cd0565b60408051928352602083019190915201610313565b34801561049357600080fd5b50610309600f5481565b3480156104a957600080fd5b5061035e6104b836600461268a565b610d5e565b3480156104c957600080fd5b50600c546103a3906001600160a01b031681565b3480156104e957600080fd5b5061041f610d9a565b3480156104fe57600080fd5b5061041f610ec8565b34801561051357600080fd5b50610309600d5481565b34801561052957600080fd5b5061030960135481565b34801561053f57600080fd5b5061041f610f11565b34801561055457600080fd5b50600654600160a01b900460ff1661035e565b34801561057357600080fd5b506008546103a3906001600160a01b031681565b34801561059357600080fd5b50610309600b5481565b3480156105a957600080fd5b50610309611060565b3480156105be57600080fd5b506103096105cd366004612709565b6001600160a01b031660009081526020819052604090205490565b3480156105f457600080fd5b5061041f6110de565b34801561060957600080fd5b5061041f610618366004612709565b611112565b34801561062957600080fd5b50610309611173565b34801561063e57600080fd5b5061041f61064d366004612709565b6111f4565b34801561065e57600080fd5b5061041f611240565b34801561067357600080fd5b506006546001600160a01b03166103a3565b34801561069157600080fd5b50610331611287565b3480156106a657600080fd5b5061035e6106b536600461268a565b611296565b3480156106c657600080fd5b5061035e6106d536600461268a565b61132f565b3480156106e657600080fd5b506007546103a3906001600160a01b031681565b34801561070657600080fd5b5061030961133c565b34801561071b57600080fd5b5061041f611378565b34801561073057600080fd5b50610309600e5481565b34801561074657600080fd5b5061041f6107553660046126f0565b6114fa565b34801561076657600080fd5b5061030960105481565b34801561077c57600080fd5b5047610309565b61041f61157d565b34801561079757600080fd5b506103096107a6366004612724565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156107dd57600080fd5b5061041f611587565b3480156107f257600080fd5b5061041f610801366004612709565b61160f565b34801561081257600080fd5b50600a546103a3906001600160a01b031681565b34801561083257600080fd5b50610309611740565b34801561084757600080fd5b5061041f610856366004612709565b61177c565b34801561086757600080fd5b5061030960125481565b34801561087d57600080fd5b5061041f611814565b34801561089257600080fd5b506103096118f9565b600a54600b54604051634b63f72360e11b815230600482015260248101919091526000916001600160a01b0316906396c7ee46906044015b608060405180830381865afa1580156108f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109149190612757565b949350505050565b60606003805461092b9061278d565b80601f01602080910402602001604051908101604052809291908181526020018280546109579061278d565b80156109a45780601f10610979576101008083540402835291602001916109a4565b820191906000526020600020905b81548152906001019060200180831161098757829003601f168201915b5050505050905090565b60006109bb33848461193d565b50600192915050565b60006109d1848484611a61565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610a5b5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610a68853385840361193d565b60019150505b9392505050565b600a54600c54600b54604051634b63f72360e11b81526001600160a01b039283166004820152602481019190915260009291909116906396c7ee46906044016108d3565b6006546001600160a01b03163314610ae35760405162461bcd60e51b8152600401610a52906127c8565b600f54421015610b355760405162461bcd60e51b815260206004820152601b60248201527f49742074616b65732037204461797320746f20776974686472617700000000006044820152606401610a52565b600a54600b54600e54604051630441a3e760e41b8152600481019290925260248201526001600160a01b039091169063441a3e7090604401600060405180830381600087803b158015610b8757600080fd5b505af1158015610b9b573d6000803e3d6000fd5b5050600e54610bae925090506001611c2f565b600e556011805460ff19166001179055565b60115460ff16610c125760405162461bcd60e51b815260206004820152601760248201527f5769746864726177206973206e6f7420656e61626c65640000000000000000006044820152606401610a52565b6000610c30610c2060025490565b610c2a4785611c3b565b90611c47565b9050610c3c3383611c53565b604051600090339083908381818185875af1925050503d8060008114610c7e576040519150601f19603f3d011682016040523d82523d6000602084013e610c83565b606091505b5050905080610ccb5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610a52565b505050565b600a54600b54600e54604051630f9380a960e11b81523060048201526024810192909252604482015260009182916001600160a01b0390911690631f27015290606401606060405180830381865afa158015610d30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5491906127fd565b9094909350915050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916109bb918590610d95908690612841565b61193d565b6006546001600160a01b03163314610dc45760405162461bcd60e51b8152600401610a52906127c8565b610dcc611da1565b600047600a54600b54604051639fa6dd3560e01b815260048101919091529192506001600160a01b031690639fa6dd359083906024016000604051808303818588803b158015610e1b57600080fd5b505af1158015610e2f573d6000803e3d6000fd5b5050600a54600b546001600160a01b03909116935063bd14d90792509050610e55611e3e565b610e5d61133c565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401600060405180830381600087803b158015610ea357600080fd5b505af1158015610eb7573d6000803e3d6000fd5b50506011805460ff19169055505050565b6006546001600160a01b0316331480610eeb57506007546001600160a01b031633145b610f075760405162461bcd60e51b8152600401610a5290612859565b610f0f611da1565b565b6006546001600160a01b03163314610f3b5760405162461bcd60e51b8152600401610a52906127c8565b610f43611e76565b600a54600b546001600160a01b0390911690631d3ac42c90610f63611740565b6040516001600160e01b031960e085901b168152600481019290925260248201526044016020604051808303816000875af1158015610fa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fca919061287b565b50600a54600b54600e546001600160a01b0390921691634f864df49190610fef61133c565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401600060405180830381600087803b15801561103557600080fd5b505af1158015611049573d6000803e3d6000fd5b505060105461105b9250905042611c2f565b600f55565b600a54600b5460405163304cf65960e11b815230600482015260248101919091526000916001600160a01b031690636099ecb2906044015b602060405180830381865afa1580156110b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d9919061287b565b905090565b6006546001600160a01b031633146111085760405162461bcd60e51b8152600401610a52906127c8565b610f0f6000611efe565b6006546001600160a01b031633148061113557506007546001600160a01b031633145b6111515760405162461bcd60e51b8152600401610a5290612859565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600a54600b54604051634b63f72360e11b815230600482015260248101919091526000916001600160a01b0316906396c7ee46906044015b608060405180830381865afa1580156111c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ec9190612757565b509392505050565b6006546001600160a01b0316331461121e5760405162461bcd60e51b8152600401610a52906127c8565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633148061126357506007546001600160a01b031633145b61127f5760405162461bcd60e51b8152600401610a5290612859565b610f0f611e76565b60606004805461092b9061278d565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156113185760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a52565b611325338585840361193d565b5060019392505050565b60006109bb338484611a61565b600a54600b54604051630931168760e11b815230600482015260248101919091526000916001600160a01b0316906312622d0e90604401611098565b6008546001600160a01b031633146113c05760405162461bcd60e51b815260206004820152600b60248201526a085c995dd85c99141bdbdb60aa1b6044820152606401610a52565b600047600a54600b54604051630962ef7960e01b815260048101919091529192506001600160a01b031690630962ef7990602401600060405180830381600087803b15801561140e57600080fd5b505af1158015611422573d6000803e3d6000fd5b505050506000611439826114334790565b90611f50565b9050600960009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561148b57600080fd5b505af115801561149f573d6000803e3d6000fd5b50506008546009546114c294506001600160a01b03908116935016905083611f5c565b6040518181527fbacfa9662d479c707dae707c358323f0c7711ef382007957dc9935e629da36b2906020015b60405180910390a15050565b600954611512906001600160a01b0316333084611fbf565b600954604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561155857600080fd5b505af115801561156c573d6000803e3d6000fd5b5050505061157a3382611ff7565b50565b610f0f3334611ff7565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156115d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f4919061287b565b600954909150611512906001600160a01b0316333084611fbf565b6006546001600160a01b031633146116395760405162461bcd60e51b8152600401610a52906127c8565b6009546001600160a01b03828116911614156116805760405162461bcd60e51b815260206004820152600660248201526510ba37b5b2b760d11b6044820152606401610a52565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156116c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116eb919061287b565b90506117016001600160a01b0383163383611f5c565b604080516001600160a01b0384168152602081018390527f645a125e23ffcd47445c706fd06c9455b6640943d3f1fd9c75211a5deca297b391016114ee565b600a54600b54604051630ce0645f60e31b815230600482015260248101919091526000916001600160a01b03169063670322f890604401611098565b6006546001600160a01b031633146117a65760405162461bcd60e51b8152600401610a52906127c8565b6001600160a01b03811661180b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a52565b61157a81611efe565b61181c61089b565b611824610a75565b116118715760405162461bcd60e51b815260206004820152601e60248201527f56616c696461746f72206e65656473206d6f7265206c6f636b2074696d6500006044820152606401610a52565b600a54600b546001600160a01b039091169063bd14d90790611891611e3e565b61189961133c565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401600060405180830381600087803b1580156118df57600080fd5b505af11580156118f3573d6000803e3d6000fd5b50505050565b600a54600c54600b54604051634b63f72360e11b81526001600160a01b039283166004820152602481019190915260009291909116906396c7ee46906044016111ab565b6001600160a01b03831661199f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a52565b6001600160a01b038216611a005760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a52565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611ac55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a52565b6001600160a01b038216611b275760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a52565b6001600160a01b03831660009081526020819052604090205481811015611b9f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a52565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611bd6908490612841565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611c2291815260200190565b60405180910390a36118f3565b6000610a6e8284612841565b6000610a6e8284612894565b6000610a6e82846128b3565b6001600160a01b038216611cb35760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a52565b6001600160a01b03821660009081526020819052604090205481811015611d275760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a52565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611d569084906128d5565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600654600160a01b900460ff16611df15760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a52565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080611e53600d54611433426114336118f9565b905080611e5e61089b565b10611e7157611e6b61089b565b91505090565b919050565b600654600160a01b900460ff1615611ec35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a52565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e213390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610a6e82846128d5565b6040516001600160a01b038316602482015260448101829052610ccb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612358565b6040516001600160a01b03808516602483015283166044820152606481018290526118f39085906323b872dd60e01b90608401611f88565b6002600554141561204a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a52565b6002600555600654600160a01b900460ff161561209c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a52565b801561234f5760006120bf601354610c2a60125485611c3b90919063ffffffff16565b600c546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114612111576040519150601f19603f3d011682016040523d82523d6000602084013e612116565b606091505b505090508061215e5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610a52565b600061216a8484611f50565b600a54600b54604051639fa6dd3560e01b815260048101919091529192506001600160a01b031690639fa6dd359083906024016000604051808303818588803b1580156121b657600080fd5b505af11580156121ca573d6000803e3d6000fd5b50505050506121d761089b565b6121df610a75565b11156123075760006121ef611740565b111561228057600a54600b546001600160a01b039091169063bd14d90790612215611e3e565b61221d61133c565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401600060405180830381600087803b15801561226357600080fd5b505af1158015612277573d6000803e3d6000fd5b50505050612307565b600a54600b546001600160a01b039091169063de67f215906122a0611e3e565b6122a861133c565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401600060405180830381600087803b1580156122ee57600080fd5b505af1158015612302573d6000803e3d6000fd5b505050505b612311858561242a565b7fcce81a73106b1f897e8c451074728c7499edae3022ffc7a29ad27f2c25b8f51361233a611740565b60405190815260200160405180910390a15050505b50506001600555565b60006123ad826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125099092919063ffffffff16565b805190915015610ccb57808060200190518101906123cb91906128ec565b610ccb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a52565b6001600160a01b0382166124805760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a52565b80600260008282546124929190612841565b90915550506001600160a01b038216600090815260208190526040812080548392906124bf908490612841565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6060610914848460008585843b6125625760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a52565b600080866001600160a01b0316858760405161257e919061290e565b60006040518083038185875af1925050503d80600081146125bb576040519150601f19603f3d011682016040523d82523d6000602084013e6125c0565b606091505b50915091506125d08282866125db565b979650505050505050565b606083156125ea575081610a6e565b8251156125fa5782518084602001fd5b8160405162461bcd60e51b8152600401610a529190612640565b60005b8381101561262f578181015183820152602001612617565b838111156118f35750506000910152565b602081526000825180602084015261265f816040850160208701612614565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611e7157600080fd5b6000806040838503121561269d57600080fd5b6126a683612673565b946020939093013593505050565b6000806000606084860312156126c957600080fd5b6126d284612673565b92506126e060208501612673565b9150604084013590509250925092565b60006020828403121561270257600080fd5b5035919050565b60006020828403121561271b57600080fd5b610a6e82612673565b6000806040838503121561273757600080fd5b61274083612673565b915061274e60208401612673565b90509250929050565b6000806000806080858703121561276d57600080fd5b505082516020840151604085015160609095015191969095509092509050565b600181811c908216806127a157607f821691505b602082108114156127c257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008060006060848603121561281257600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052601160045260246000fd5b600082198211156128545761285461282b565b500190565b60208082526008908201526710b6b0b730b3b2b960c11b604082015260600190565b60006020828403121561288d57600080fd5b5051919050565b60008160001904831182151516156128ae576128ae61282b565b500290565b6000826128d057634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156128e7576128e761282b565b500390565b6000602082840312156128fe57600080fd5b81518015158114610a6e57600080fd5b60008251612920818460208701612614565b919091019291505056fea2646970667358221220a87502226c9cb0e0ee821fbcdf45b0f671743814d2402e6dfe3a9930bc9a97a064736f6c634300080b003300000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83000000000000000000000000fc00face00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c000000000000000000000000e97a5292248c2647466222dc58563046b3e34b1800000000000000000000000010aee6b5594942433e7fc2783598c979b030ef3d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000015426565667920457363726f7765642046616e746f6d00000000000000000000000000000000000000000000000000000000000000000000000000000000000005626546544d000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102e85760003560e01c8063715018a611610190578063b6b55f25116100dc578063def68a9c11610095578063f2fde38b1161006f578063f2fde38b1461083b578063f70cbaae1461085b578063fa9befda14610871578063ff593acd1461088657600080fd5b8063def68a9c146107e6578063ee99205c14610806578063f2072abd1461082657600080fd5b8063b6b55f251461073a578063b82b84271461075a578063c1a3d44c14610770578063db6b524614610783578063dd62ed3e1461078b578063de5f6268146107d157600080fd5b806395d89b4111610149578063aced166111610123578063aced1661146106da578063af3a8073146106fa578063afc695ce1461070f578063b33134bb1461072457600080fd5b806395d89b4114610685578063a457c2d71461069a578063a9059cbb146106ba57600080fd5b8063715018a6146105e8578063748747e6146105fd5780637540ce6f1461061d57806378238c37146106325780638456cb59146106525780638da5cb5b1461066757600080fd5b8063389eb9f91161024f5780635b872e331161020857806366666aa9116101e257806366666aa91461056757806369b9732f146105875780636bd844cd1461059d57806370a08231146105b257600080fd5b80635b872e331461051d5780635b984ff6146105335780635c975abb1461054857600080fd5b8063389eb9f914610487578063395093511461049d5780633a5381b5146104bd5780633d4d5849146104dd5780633f4ba83a146104f257806346c678431461050757600080fd5b806323b872dd116102a157806323b872dd146103d5578063267b7531146103f55780632e13a30d1461040a5780632e1a7d4d14610421578063313ce56714610441578063345513e71461045d57600080fd5b806301aabbf5146102f457806306fdde031461031c578063095ea7b31461033e57806318160ddd1461036e5780631f1fcd51146103835780632287e96a146103bb57600080fd5b366102ef57005b600080fd5b34801561030057600080fd5b5061030961089b565b6040519081526020015b60405180910390f35b34801561032857600080fd5b5061033161091c565b6040516103139190612640565b34801561034a57600080fd5b5061035e61035936600461268a565b6109ae565b6040519015158152602001610313565b34801561037a57600080fd5b50600254610309565b34801561038f57600080fd5b506009546103a3906001600160a01b031681565b6040516001600160a01b039091168152602001610313565b3480156103c757600080fd5b5060115461035e9060ff1681565b3480156103e157600080fd5b5061035e6103f03660046126b4565b6109c4565b34801561040157600080fd5b50610309610a75565b34801561041657600080fd5b5061041f610ab9565b005b34801561042d57600080fd5b5061041f61043c3660046126f0565b610bc0565b34801561044d57600080fd5b5060405160128152602001610313565b34801561046957600080fd5b50610472610cd0565b60408051928352602083019190915201610313565b34801561049357600080fd5b50610309600f5481565b3480156104a957600080fd5b5061035e6104b836600461268a565b610d5e565b3480156104c957600080fd5b50600c546103a3906001600160a01b031681565b3480156104e957600080fd5b5061041f610d9a565b3480156104fe57600080fd5b5061041f610ec8565b34801561051357600080fd5b50610309600d5481565b34801561052957600080fd5b5061030960135481565b34801561053f57600080fd5b5061041f610f11565b34801561055457600080fd5b50600654600160a01b900460ff1661035e565b34801561057357600080fd5b506008546103a3906001600160a01b031681565b34801561059357600080fd5b50610309600b5481565b3480156105a957600080fd5b50610309611060565b3480156105be57600080fd5b506103096105cd366004612709565b6001600160a01b031660009081526020819052604090205490565b3480156105f457600080fd5b5061041f6110de565b34801561060957600080fd5b5061041f610618366004612709565b611112565b34801561062957600080fd5b50610309611173565b34801561063e57600080fd5b5061041f61064d366004612709565b6111f4565b34801561065e57600080fd5b5061041f611240565b34801561067357600080fd5b506006546001600160a01b03166103a3565b34801561069157600080fd5b50610331611287565b3480156106a657600080fd5b5061035e6106b536600461268a565b611296565b3480156106c657600080fd5b5061035e6106d536600461268a565b61132f565b3480156106e657600080fd5b506007546103a3906001600160a01b031681565b34801561070657600080fd5b5061030961133c565b34801561071b57600080fd5b5061041f611378565b34801561073057600080fd5b50610309600e5481565b34801561074657600080fd5b5061041f6107553660046126f0565b6114fa565b34801561076657600080fd5b5061030960105481565b34801561077c57600080fd5b5047610309565b61041f61157d565b34801561079757600080fd5b506103096107a6366004612724565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156107dd57600080fd5b5061041f611587565b3480156107f257600080fd5b5061041f610801366004612709565b61160f565b34801561081257600080fd5b50600a546103a3906001600160a01b031681565b34801561083257600080fd5b50610309611740565b34801561084757600080fd5b5061041f610856366004612709565b61177c565b34801561086757600080fd5b5061030960125481565b34801561087d57600080fd5b5061041f611814565b34801561089257600080fd5b506103096118f9565b600a54600b54604051634b63f72360e11b815230600482015260248101919091526000916001600160a01b0316906396c7ee46906044015b608060405180830381865afa1580156108f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109149190612757565b949350505050565b60606003805461092b9061278d565b80601f01602080910402602001604051908101604052809291908181526020018280546109579061278d565b80156109a45780601f10610979576101008083540402835291602001916109a4565b820191906000526020600020905b81548152906001019060200180831161098757829003601f168201915b5050505050905090565b60006109bb33848461193d565b50600192915050565b60006109d1848484611a61565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610a5b5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b610a68853385840361193d565b60019150505b9392505050565b600a54600c54600b54604051634b63f72360e11b81526001600160a01b039283166004820152602481019190915260009291909116906396c7ee46906044016108d3565b6006546001600160a01b03163314610ae35760405162461bcd60e51b8152600401610a52906127c8565b600f54421015610b355760405162461bcd60e51b815260206004820152601b60248201527f49742074616b65732037204461797320746f20776974686472617700000000006044820152606401610a52565b600a54600b54600e54604051630441a3e760e41b8152600481019290925260248201526001600160a01b039091169063441a3e7090604401600060405180830381600087803b158015610b8757600080fd5b505af1158015610b9b573d6000803e3d6000fd5b5050600e54610bae925090506001611c2f565b600e556011805460ff19166001179055565b60115460ff16610c125760405162461bcd60e51b815260206004820152601760248201527f5769746864726177206973206e6f7420656e61626c65640000000000000000006044820152606401610a52565b6000610c30610c2060025490565b610c2a4785611c3b565b90611c47565b9050610c3c3383611c53565b604051600090339083908381818185875af1925050503d8060008114610c7e576040519150601f19603f3d011682016040523d82523d6000602084013e610c83565b606091505b5050905080610ccb5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610a52565b505050565b600a54600b54600e54604051630f9380a960e11b81523060048201526024810192909252604482015260009182916001600160a01b0390911690631f27015290606401606060405180830381865afa158015610d30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5491906127fd565b9094909350915050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916109bb918590610d95908690612841565b61193d565b6006546001600160a01b03163314610dc45760405162461bcd60e51b8152600401610a52906127c8565b610dcc611da1565b600047600a54600b54604051639fa6dd3560e01b815260048101919091529192506001600160a01b031690639fa6dd359083906024016000604051808303818588803b158015610e1b57600080fd5b505af1158015610e2f573d6000803e3d6000fd5b5050600a54600b546001600160a01b03909116935063bd14d90792509050610e55611e3e565b610e5d61133c565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401600060405180830381600087803b158015610ea357600080fd5b505af1158015610eb7573d6000803e3d6000fd5b50506011805460ff19169055505050565b6006546001600160a01b0316331480610eeb57506007546001600160a01b031633145b610f075760405162461bcd60e51b8152600401610a5290612859565b610f0f611da1565b565b6006546001600160a01b03163314610f3b5760405162461bcd60e51b8152600401610a52906127c8565b610f43611e76565b600a54600b546001600160a01b0390911690631d3ac42c90610f63611740565b6040516001600160e01b031960e085901b168152600481019290925260248201526044016020604051808303816000875af1158015610fa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fca919061287b565b50600a54600b54600e546001600160a01b0390921691634f864df49190610fef61133c565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401600060405180830381600087803b15801561103557600080fd5b505af1158015611049573d6000803e3d6000fd5b505060105461105b9250905042611c2f565b600f55565b600a54600b5460405163304cf65960e11b815230600482015260248101919091526000916001600160a01b031690636099ecb2906044015b602060405180830381865afa1580156110b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d9919061287b565b905090565b6006546001600160a01b031633146111085760405162461bcd60e51b8152600401610a52906127c8565b610f0f6000611efe565b6006546001600160a01b031633148061113557506007546001600160a01b031633145b6111515760405162461bcd60e51b8152600401610a5290612859565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600a54600b54604051634b63f72360e11b815230600482015260248101919091526000916001600160a01b0316906396c7ee46906044015b608060405180830381865afa1580156111c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ec9190612757565b509392505050565b6006546001600160a01b0316331461121e5760405162461bcd60e51b8152600401610a52906127c8565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633148061126357506007546001600160a01b031633145b61127f5760405162461bcd60e51b8152600401610a5290612859565b610f0f611e76565b60606004805461092b9061278d565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156113185760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a52565b611325338585840361193d565b5060019392505050565b60006109bb338484611a61565b600a54600b54604051630931168760e11b815230600482015260248101919091526000916001600160a01b0316906312622d0e90604401611098565b6008546001600160a01b031633146113c05760405162461bcd60e51b815260206004820152600b60248201526a085c995dd85c99141bdbdb60aa1b6044820152606401610a52565b600047600a54600b54604051630962ef7960e01b815260048101919091529192506001600160a01b031690630962ef7990602401600060405180830381600087803b15801561140e57600080fd5b505af1158015611422573d6000803e3d6000fd5b505050506000611439826114334790565b90611f50565b9050600960009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561148b57600080fd5b505af115801561149f573d6000803e3d6000fd5b50506008546009546114c294506001600160a01b03908116935016905083611f5c565b6040518181527fbacfa9662d479c707dae707c358323f0c7711ef382007957dc9935e629da36b2906020015b60405180910390a15050565b600954611512906001600160a01b0316333084611fbf565b600954604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561155857600080fd5b505af115801561156c573d6000803e3d6000fd5b5050505061157a3382611ff7565b50565b610f0f3334611ff7565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156115d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115f4919061287b565b600954909150611512906001600160a01b0316333084611fbf565b6006546001600160a01b031633146116395760405162461bcd60e51b8152600401610a52906127c8565b6009546001600160a01b03828116911614156116805760405162461bcd60e51b815260206004820152600660248201526510ba37b5b2b760d11b6044820152606401610a52565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156116c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116eb919061287b565b90506117016001600160a01b0383163383611f5c565b604080516001600160a01b0384168152602081018390527f645a125e23ffcd47445c706fd06c9455b6640943d3f1fd9c75211a5deca297b391016114ee565b600a54600b54604051630ce0645f60e31b815230600482015260248101919091526000916001600160a01b03169063670322f890604401611098565b6006546001600160a01b031633146117a65760405162461bcd60e51b8152600401610a52906127c8565b6001600160a01b03811661180b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a52565b61157a81611efe565b61181c61089b565b611824610a75565b116118715760405162461bcd60e51b815260206004820152601e60248201527f56616c696461746f72206e65656473206d6f7265206c6f636b2074696d6500006044820152606401610a52565b600a54600b546001600160a01b039091169063bd14d90790611891611e3e565b61189961133c565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401600060405180830381600087803b1580156118df57600080fd5b505af11580156118f3573d6000803e3d6000fd5b50505050565b600a54600c54600b54604051634b63f72360e11b81526001600160a01b039283166004820152602481019190915260009291909116906396c7ee46906044016111ab565b6001600160a01b03831661199f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a52565b6001600160a01b038216611a005760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a52565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611ac55760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a52565b6001600160a01b038216611b275760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a52565b6001600160a01b03831660009081526020819052604090205481811015611b9f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a52565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611bd6908490612841565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611c2291815260200190565b60405180910390a36118f3565b6000610a6e8284612841565b6000610a6e8284612894565b6000610a6e82846128b3565b6001600160a01b038216611cb35760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a52565b6001600160a01b03821660009081526020819052604090205481811015611d275760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a52565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611d569084906128d5565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600654600160a01b900460ff16611df15760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a52565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080611e53600d54611433426114336118f9565b905080611e5e61089b565b10611e7157611e6b61089b565b91505090565b919050565b600654600160a01b900460ff1615611ec35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a52565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e213390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000610a6e82846128d5565b6040516001600160a01b038316602482015260448101829052610ccb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612358565b6040516001600160a01b03808516602483015283166044820152606481018290526118f39085906323b872dd60e01b90608401611f88565b6002600554141561204a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a52565b6002600555600654600160a01b900460ff161561209c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a52565b801561234f5760006120bf601354610c2a60125485611c3b90919063ffffffff16565b600c546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114612111576040519150601f19603f3d011682016040523d82523d6000602084013e612116565b606091505b505090508061215e5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610a52565b600061216a8484611f50565b600a54600b54604051639fa6dd3560e01b815260048101919091529192506001600160a01b031690639fa6dd359083906024016000604051808303818588803b1580156121b657600080fd5b505af11580156121ca573d6000803e3d6000fd5b50505050506121d761089b565b6121df610a75565b11156123075760006121ef611740565b111561228057600a54600b546001600160a01b039091169063bd14d90790612215611e3e565b61221d61133c565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401600060405180830381600087803b15801561226357600080fd5b505af1158015612277573d6000803e3d6000fd5b50505050612307565b600a54600b546001600160a01b039091169063de67f215906122a0611e3e565b6122a861133c565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401600060405180830381600087803b1580156122ee57600080fd5b505af1158015612302573d6000803e3d6000fd5b505050505b612311858561242a565b7fcce81a73106b1f897e8c451074728c7499edae3022ffc7a29ad27f2c25b8f51361233a611740565b60405190815260200160405180910390a15050505b50506001600555565b60006123ad826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125099092919063ffffffff16565b805190915015610ccb57808060200190518101906123cb91906128ec565b610ccb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610a52565b6001600160a01b0382166124805760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a52565b80600260008282546124929190612841565b90915550506001600160a01b038216600090815260208190526040812080548392906124bf908490612841565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6060610914848460008585843b6125625760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a52565b600080866001600160a01b0316858760405161257e919061290e565b60006040518083038185875af1925050503d80600081146125bb576040519150601f19603f3d011682016040523d82523d6000602084013e6125c0565b606091505b50915091506125d08282866125db565b979650505050505050565b606083156125ea575081610a6e565b8251156125fa5782518084602001fd5b8160405162461bcd60e51b8152600401610a529190612640565b60005b8381101561262f578181015183820152602001612617565b838111156118f35750506000910152565b602081526000825180602084015261265f816040850160208701612614565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611e7157600080fd5b6000806040838503121561269d57600080fd5b6126a683612673565b946020939093013593505050565b6000806000606084860312156126c957600080fd5b6126d284612673565b92506126e060208501612673565b9150604084013590509250925092565b60006020828403121561270257600080fd5b5035919050565b60006020828403121561271b57600080fd5b610a6e82612673565b6000806040838503121561273757600080fd5b61274083612673565b915061274e60208401612673565b90509250929050565b6000806000806080858703121561276d57600080fd5b505082516020840151604085015160609095015191969095509092509050565b600181811c908216806127a157607f821691505b602082108114156127c257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008060006060848603121561281257600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052601160045260246000fd5b600082198211156128545761285461282b565b500190565b60208082526008908201526710b6b0b730b3b2b960c11b604082015260600190565b60006020828403121561288d57600080fd5b5051919050565b60008160001904831182151516156128ae576128ae61282b565b500290565b6000826128d057634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156128e7576128e761282b565b500390565b6000602082840312156128fe57600080fd5b81518015158114610a6e57600080fd5b60008251612920818460208701612614565b919091019291505056fea2646970667358221220a87502226c9cb0e0ee821fbcdf45b0f671743814d2402e6dfe3a9930bc9a97a064736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83000000000000000000000000fc00face00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005c000000000000000000000000e97a5292248c2647466222dc58563046b3e34b1800000000000000000000000010aee6b5594942433e7fc2783598c979b030ef3d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000015426565667920457363726f7765642046616e746f6d00000000000000000000000000000000000000000000000000000000000000000000000000000000000005626546544d000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _want (address): 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83
Arg [1] : _stakingContract (address): 0xFC00FACE00000000000000000000000000000000
Arg [2] : _validatorID (uint256): 92
Arg [3] : _validator (address): 0xE97A5292248c2647466222Dc58563046b3E34b18
Arg [4] : _keeper (address): 0x10aee6B5594942433e7Fc2783598c979B030eF3D
Arg [5] : _rewardPool (address): 0x0000000000000000000000000000000000000000
Arg [6] : _name (string): Beefy Escrowed Fantom
Arg [7] : _symbol (string): beFTM
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000021be370d5312f44cb42ce377bc9b8a0cef1a4c83
Arg [1] : 000000000000000000000000fc00face00000000000000000000000000000000
Arg [2] : 000000000000000000000000000000000000000000000000000000000000005c
Arg [3] : 000000000000000000000000e97a5292248c2647466222dc58563046b3e34b18
Arg [4] : 00000000000000000000000010aee6b5594942433e7fc2783598c979b030ef3d
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [9] : 426565667920457363726f7765642046616e746f6d0000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [11] : 626546544d000000000000000000000000000000000000000000000000000000
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.