Address Details
contract
0xA02F4e8dE9A226E8f2F2fe27B9b207fC85CFEED2
- Creator
- 0xad5e83–557abf at 0x14dd90–c5ff7a
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 14,019 Transactions
- Transfers
- 67,938 Transfers
- Gas Used
- 1,220,192,837
- Last Balance Update
- 27088234
Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- ImmortalStaking
- Optimization enabled
- true
- Compiler version
- v0.7.5+commit.eb77ed08
- Optimization runs
- 200
- EVM Version
- istanbul
- Verified at
- 2021-12-31T15:40:24.977065Z
Staking.sol
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.5; library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function add32(uint32 a, uint32 b) internal pure returns (uint32) { uint32 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; assert(a == b * c + (a % b)); // There is no case in which this doesn't hold return c; } } interface IERC20 { function decimals() external view returns (uint8); /** * @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); } 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 in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly 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} */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require( success, "Address: unable to send value, recipient may have reverted" ); } /** * @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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } function _functionCallWithValue( address target, bytes memory data, uint256 weiValue, string memory errorMessage ) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }( data ); 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(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"); // solhint-disable-next-line avoid-low-level-calls (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.3._ */ 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.3._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } function addressToString(address _address) internal pure returns (string memory) { bytes32 _bytes = bytes32(uint256(_address)); bytes memory HEX = "0123456789abcdef"; bytes memory _addr = new bytes(42); _addr[0] = "0"; _addr[1] = "x"; for (uint256 i = 0; i < 20; i++) { _addr[2 + i * 2] = HEX[uint8(_bytes[i + 12] >> 4)]; _addr[3 + i * 2] = HEX[uint8(_bytes[i + 12] & 0x0f)]; } return string(_addr); } } library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transfer.selector, to, value) ); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn( token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value) ); } /** * @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' // solhint-disable-next-line max-line-length require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, value) ); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance) ); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub( value, "SafeERC20: decreased allowance below zero" ); _callOptionalReturn( token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance) ); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. 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 // solhint-disable-next-line max-line-length require( abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed" ); } } } interface IOwnable { function manager() external view returns (address); function renounceManagement() external; function pushManagement(address newOwner_) external; function pullManagement() external; } contract Ownable is IOwnable { address internal _owner; address internal _newOwner; event OwnershipPushed( address indexed previousOwner, address indexed newOwner ); event OwnershipPulled( address indexed previousOwner, address indexed newOwner ); constructor() { _owner = msg.sender; emit OwnershipPushed(address(0), _owner); } function manager() public view override returns (address) { return _owner; } modifier onlyManager() { require(_owner == msg.sender, "Ownable: caller is not the owner"); _; } function renounceManagement() public virtual override onlyManager { emit OwnershipPushed(_owner, address(0)); _owner = address(0); } function pushManagement(address newOwner_) public virtual override onlyManager { require(newOwner_ != address(0), "Ownable: new owner is the zero address"); emit OwnershipPushed(_owner, newOwner_); _newOwner = newOwner_; } function pullManagement() public virtual override { require(msg.sender == _newOwner, "Ownable: must be new owner to pull"); emit OwnershipPulled(_owner, _newOwner); _owner = _newOwner; } } interface IsIMMO { function rebase(uint256 profit_, uint256 epoch_) external returns (uint256); function circulatingSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint256); function gonsForBalance(uint256 amount) external view returns (uint256); function balanceForGons(uint256 gons) external view returns (uint256); function index() external view returns (uint256); } interface IWarmup { function retrieve(address staker_, uint256 amount_) external; } interface IDistributor { function distribute() external returns (bool); } contract ImmortalStaking is Ownable { using SafeMath for uint256; using SafeMath for uint32; using SafeERC20 for IERC20; address public immutable IMMO; address public immutable sIMMO; struct Epoch { uint256 number; uint256 distribute; uint32 length; uint32 endTime; } Epoch public epoch; address public distributor; address public locker; uint256 public totalBonus; address public warmupContract; uint256 public warmupPeriod; constructor( address _IMMO, address _sIMMO, uint32 _epochLength, uint256 _firstEpochNumber, uint32 _firstEpochTime ) { require(_IMMO != address(0)); IMMO = _IMMO; require(_sIMMO != address(0)); sIMMO = _sIMMO; epoch = Epoch({ length: _epochLength, number: _firstEpochNumber, endTime: _firstEpochTime, distribute: 0 }); } struct Claim { uint256 deposit; uint256 gons; uint256 expiry; bool lock; // prevents malicious delays } mapping(address => Claim) public warmupInfo; /** @notice stake IMMO to enter warmup @param _amount uint @return bool */ function stake(uint256 _amount, address _recipient) external returns (bool) { rebase(); IERC20(IMMO).safeTransferFrom(msg.sender, address(this), _amount); Claim memory info = warmupInfo[_recipient]; require(!info.lock, "Deposits for account are locked"); warmupInfo[_recipient] = Claim({ deposit: info.deposit.add(_amount), gons: info.gons.add(IsIMMO(sIMMO).gonsForBalance(_amount)), expiry: epoch.number.add(warmupPeriod), lock: false }); IERC20(sIMMO).safeTransfer(warmupContract, _amount); return true; } /** @notice retrieve sIMMO from warmup @param _recipient address */ function claim(address _recipient) public { Claim memory info = warmupInfo[_recipient]; if (epoch.number >= info.expiry && info.expiry != 0) { delete warmupInfo[_recipient]; IWarmup(warmupContract).retrieve( _recipient, IsIMMO(sIMMO).balanceForGons(info.gons) ); } } /** @notice forfeit sIMMO in warmup and retrieve IMMO */ function forfeit() external { Claim memory info = warmupInfo[msg.sender]; delete warmupInfo[msg.sender]; IWarmup(warmupContract).retrieve( address(this), IsIMMO(sIMMO).balanceForGons(info.gons) ); IERC20(IMMO).safeTransfer(msg.sender, info.deposit); } /** @notice prevent new deposits to address (protection from malicious activity) */ function toggleDepositLock() external { warmupInfo[msg.sender].lock = !warmupInfo[msg.sender].lock; } /** @notice redeem sIMMO for IMMO @param _amount uint @param _trigger bool */ function unstake(uint256 _amount, bool _trigger) external { if (_trigger) { rebase(); } IERC20(sIMMO).safeTransferFrom(msg.sender, address(this), _amount); IERC20(IMMO).safeTransfer(msg.sender, _amount); } /** @notice returns the sIMMO index, which tracks rebase growth @return uint */ function index() public view returns (uint256) { return IsIMMO(sIMMO).index(); } /** @notice trigger rebase if epoch over */ function rebase() public { if (epoch.endTime <= uint32(block.timestamp)) { IsIMMO(sIMMO).rebase(epoch.distribute, epoch.number); epoch.endTime = epoch.endTime.add32(epoch.length); epoch.number++; if (distributor != address(0)) { IDistributor(distributor).distribute(); } uint256 balance = contractBalance(); uint256 staked = IsIMMO(sIMMO).circulatingSupply(); if (balance <= staked) { epoch.distribute = 0; } else { epoch.distribute = balance.sub(staked); } } } /** @notice returns contract IMMO holdings, including bonuses provided @return uint */ function contractBalance() public view returns (uint256) { return IERC20(IMMO).balanceOf(address(this)).add(totalBonus); } /** @notice provide bonus to locked staking contract @param _amount uint */ function giveLockBonus(uint256 _amount) external { require(msg.sender == locker); totalBonus = totalBonus.add(_amount); IERC20(sIMMO).safeTransfer(locker, _amount); } /** @notice reclaim bonus from locked staking contract @param _amount uint */ function returnLockBonus(uint256 _amount) external { require(msg.sender == locker); totalBonus = totalBonus.sub(_amount); IERC20(sIMMO).safeTransferFrom(locker, address(this), _amount); } enum CONTRACTS { DISTRIBUTOR, WARMUP, LOCKER } /** @notice sets the contract address for LP staking @param _contract address */ function setContract(CONTRACTS _contract, address _address) external onlyManager { if (_contract == CONTRACTS.DISTRIBUTOR) { // 0 distributor = _address; } else if (_contract == CONTRACTS.WARMUP) { // 1 require( warmupContract == address(0), "Warmup cannot be set more than once" ); warmupContract = _address; } else if (_contract == CONTRACTS.LOCKER) { // 2 require(locker == address(0), "Locker cannot be set more than once"); locker = _address; } } /** * @notice set warmup period in epoch number for new stakers * @param _warmupPeriod uint */ function setWarmup(uint256 _warmupPeriod) external onlyManager { warmupPeriod = _warmupPeriod; } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_IMMO","internalType":"address"},{"type":"address","name":"_sIMMO","internalType":"address"},{"type":"uint32","name":"_epochLength","internalType":"uint32"},{"type":"uint256","name":"_firstEpochNumber","internalType":"uint256"},{"type":"uint32","name":"_firstEpochTime","internalType":"uint32"}]},{"type":"event","name":"OwnershipPulled","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"OwnershipPushed","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"IMMO","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claim","inputs":[{"type":"address","name":"_recipient","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"contractBalance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"distributor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"number","internalType":"uint256"},{"type":"uint256","name":"distribute","internalType":"uint256"},{"type":"uint32","name":"length","internalType":"uint32"},{"type":"uint32","name":"endTime","internalType":"uint32"}],"name":"epoch","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"forfeit","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"giveLockBonus","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"index","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"locker","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"manager","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pullManagement","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pushManagement","inputs":[{"type":"address","name":"newOwner_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rebase","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceManagement","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"returnLockBonus","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"sIMMO","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setContract","inputs":[{"type":"uint8","name":"_contract","internalType":"enum ImmortalStaking.CONTRACTS"},{"type":"address","name":"_address","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setWarmup","inputs":[{"type":"uint256","name":"_warmupPeriod","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"stake","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"address","name":"_recipient","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"toggleDepositLock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalBonus","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unstake","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"},{"type":"bool","name":"_trigger","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"warmupContract","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"deposit","internalType":"uint256"},{"type":"uint256","name":"gons","internalType":"uint256"},{"type":"uint256","name":"expiry","internalType":"uint256"},{"type":"bool","name":"lock","internalType":"bool"}],"name":"warmupInfo","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"warmupPeriod","inputs":[]}]
Contract Creation Code
0x60c060405234801561001057600080fd5b50604051611ac4380380611ac4833981810160405260a081101561003357600080fd5b50805160208201516040808401516060850151608090950151600080546001600160a01b031916331780825593519596949592949391926001600160a01b0392909216917fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908290a36001600160a01b0385166100af57600080fd5b6001600160601b0319606086901b166080526001600160a01b0384166100d457600080fd5b6001600160601b0319606094851b1660a0526040805160808101825283815260006020820181905263ffffffff95861692820183905292909416939094018390526002919091556003556004805464010000000090920263ffffffff60201b1963ffffffff19909316909317919091169190911790555060805160601c60a05160601c61190a6101ba6000398061043552806105d052806106af52806106d55280610a3a5280610b465280610dfc5280610e7a528061100a52806111d152806113195250806103db52806109445280610cfd5280610e3152806112b8525061190a6000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80638b7afe2e116100de578063bfe1092811610097578063deac361a11610071578063deac361a146103a4578063ed4acaa8146103ac578063f3d86e4a146103b4578063f62ae76a146103bc57610173565b8063bfe1092814610377578063c9f464ff1461037f578063d7b96d4e1461039c57610173565b80638b7afe2e146102fe5780638f077b8314610306578063900cf0cf1461030e5780639ebea88c14610342578063a8dd07dc14610367578063af14052c1461036f57610173565b806346f68ee91161013057806346f68ee91461020b578063481c6a75146102315780635a96ac0a146102395780636746f4c2146102415780637acb77571461028f578063865e6fd3146102cf57610173565b8063025de6cd1461017857806303c236701461019c578063089208d8146101bb5780631e83409a146101c35780631fa2eb32146101e95780632986c0e5146101f1575b600080fd5b6101806103d9565b604080516001600160a01b039092168252519081900360200190f35b6101b9600480360360208110156101b257600080fd5b50356103fd565b005b6101b9610461565b6101b9600480360360208110156101d957600080fd5b50356001600160a01b03166104f8565b6101806106ad565b6101f96106d1565b60408051918252519081900360200190f35b6101b96004803603602081101561022157600080fd5b50356001600160a01b031661075d565b61018061084a565b6101b9610859565b6102676004803603602081101561025757600080fd5b50356001600160a01b0316610903565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b6102bb600480360360408110156102a557600080fd5b50803590602001356001600160a01b031661092d565b604080519115158252519081900360200190f35b6101b9600480360360408110156102e557600080fd5b50803560ff1690602001356001600160a01b0316610b79565b6101f9610cf3565b6101b9610d9f565b610316610dc3565b60408051948552602085019390935263ffffffff91821684840152166060830152519081900360800190f35b6101b96004803603604081101561035857600080fd5b50803590602001351515610de1565b6101f9610e58565b6101b9610e5e565b6101806110b2565b6101b96004803603602081101561039557600080fd5b50356110c1565b610180611113565b6101f9611122565b610180611128565b6101b9611137565b6101b9600480360360208110156103d257600080fd5b50356112e1565b7f000000000000000000000000000000000000000000000000000000000000000081565b6006546001600160a01b0316331461041457600080fd5b6007546104219082611343565b60075560065461045e906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116836113a4565b50565b6000546001600160a01b031633146104ae576040805162461bcd60e51b8152602060048201819052602482015260008051602061188b833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908390a3600080546001600160a01b0319169055565b6105006117d2565b506001600160a01b0381166000908152600a602090815260409182902082516080810184528154815260018201549281019290925260028082015493830184905260039091015460ff1615156060830152549091118015906105655750604081015115155b156106a9576001600160a01b038083166000908152600a602090815260408083208381556001810184905560028101939093556003909201805460ff19169055600854848201518351637965d56d60e01b8152600481019190915292519084169363c3a2a6659387937f000000000000000000000000000000000000000000000000000000000000000090921692637965d56d92602480840193919291829003018186803b15801561061657600080fd5b505afa15801561062a573d6000803e3d6000fd5b505050506040513d602081101561064057600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039093166004840152602483019190915251604480830192600092919082900301818387803b15801561069057600080fd5b505af11580156106a4573d6000803e3d6000fd5b505050505b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632986c0e56040518163ffffffff1660e01b815260040160206040518083038186803b15801561072c57600080fd5b505afa158015610740573d6000803e3d6000fd5b505050506040513d602081101561075657600080fd5b5051905090565b6000546001600160a01b031633146107aa576040805162461bcd60e51b8152602060048201819052602482015260008051602061188b833981519152604482015290519081900360640190fd5b6001600160a01b0381166107ef5760405162461bcd60e51b81526004018080602001828103825260268152602001806118206026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba91a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b6001546001600160a01b031633146108a25760405162461bcd60e51b81526004018080602001828103825260228152602001806118696022913960400191505060405180910390fd5b600154600080546040516001600160a01b0393841693909116917faa151555690c956fc3ea32f106bb9f119b5237a061eaa8557cff3e51e3792c8d91a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b600a6020526000908152604090208054600182015460028301546003909301549192909160ff1684565b6000610937610e5e565b61096c6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330866113fb565b6109746117d2565b506001600160a01b0382166000908152600a602090815260409182902082516080810184528154815260018201549281019290925260028101549282019290925260039091015460ff161580156060830152610a17576040805162461bcd60e51b815260206004820152601f60248201527f4465706f7369747320666f72206163636f756e7420617265206c6f636b656400604482015290519081900360640190fd5b604080516080810190915281518190610a309087611343565b8152602001610ad37f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631bd39674886040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610a9c57600080fd5b505afa158015610ab0573d6000803e3d6000fd5b505050506040513d6020811015610ac657600080fd5b5051602085015190611343565b8152600954600254602090920191610aea91611343565b8152600060209182018190526001600160a01b038681168252600a8352604091829020845181559284015160018401559083015160028301556060909201516003909101805460ff1916911515919091179055600854610b6f917f000000000000000000000000000000000000000000000000000000000000000081169116866113a4565b5060019392505050565b6000546001600160a01b03163314610bc6576040805162461bcd60e51b8152602060048201819052602482015260008051602061188b833981519152604482015290519081900360640190fd5b6000826002811115610bd457fe5b1415610bfa57600580546001600160a01b0319166001600160a01b0383161790556106a9565b6001826002811115610c0857fe5b1415610c76576008546001600160a01b031615610c565760405162461bcd60e51b81526004018080602001828103825260238152602001806118466023913960400191505060405180910390fd5b600880546001600160a01b0319166001600160a01b0383161790556106a9565b6002826002811115610c8457fe5b14156106a9576006546001600160a01b031615610cd25760405162461bcd60e51b81526004018080602001828103825260238152602001806117fd6023913960400191505060405180910390fd5b600680546001600160a01b0383166001600160a01b03199091161790555050565b6000610d9a6007547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610d6857600080fd5b505afa158015610d7c573d6000803e3d6000fd5b505050506040513d6020811015610d9257600080fd5b505190611343565b905090565b336000908152600a60205260409020600301805460ff19811660ff90911615179055565b60025460035460045463ffffffff8082169164010000000090041684565b8015610def57610def610e5e565b610e246001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330856113fb565b6106a96001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633846113a4565b60075481565b60045463ffffffff42811664010000000090920416116110b0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663058ecdb46002600101546002600001546040518363ffffffff1660e01b81526004018083815260200182815260200192505050602060405180830381600087803b158015610ef057600080fd5b505af1158015610f04573d6000803e3d6000fd5b505050506040513d6020811015610f1a57600080fd5b5050600454610f3c9063ffffffff640100000000820481169181169061145b16565b6004805463ffffffff929092166401000000000267ffffffff00000000199092169190911790556002805460010190556005546001600160a01b031615610ffa57600560009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610fcd57600080fd5b505af1158015610fe1573d6000803e3d6000fd5b505050506040513d6020811015610ff757600080fd5b50505b6000611004610cf3565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316639358928b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561106157600080fd5b505afa158015611075573d6000803e3d6000fd5b505050506040513d602081101561108b57600080fd5b505190508082116110a05760006003556106a9565b6110aa82826114be565b60035550505b565b6005546001600160a01b031681565b6000546001600160a01b0316331461110e576040805162461bcd60e51b8152602060048201819052602482015260008051602061188b833981519152604482015290519081900360640190fd5b600955565b6006546001600160a01b031681565b60095481565b6008546001600160a01b031681565b61113f6117d2565b50336000818152600a602081815260408084208151608081018352815481526001820180548286019081526002840180548487015260038501805460ff8116151560608701529a8a5297875293889055908790559590915560ff1990951690925560085492518251637965d56d60e01b8152600481019190915291516001600160a01b039384169363c3a2a6659330937f000000000000000000000000000000000000000000000000000000000000000090921692637965d56d92602480840193919291829003018186803b15801561121757600080fd5b505afa15801561122b573d6000803e3d6000fd5b505050506040513d602081101561124157600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039093166004840152602483019190915251604480830192600092919082900301818387803b15801561129157600080fd5b505af11580156112a5573d6000803e3d6000fd5b5050825161045e92506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016915033906113a4565b6006546001600160a01b031633146112f857600080fd5b60075461130590826114be565b60075560065461045e906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911630846113fb565b60008282018381101561139d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526113f6908490611500565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611455908590611500565b50505050565b600082820163ffffffff808516908216101561139d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061139d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506115b1565b6060611555826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116489092919063ffffffff16565b8051909150156113f65780806020019051602081101561157457600080fd5b50516113f65760405162461bcd60e51b815260040180806020018281038252602a8152602001806118ab602a913960400191505060405180910390fd5b600081848411156116405760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116055781810151838201526020016115ed565b50505050905090810190601f1680156116325780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060611657848460008561165f565b949350505050565b606061166a856117cc565b6116bb576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116fa5780518252601f1990920191602091820191016116db565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461175c576040519150601f19603f3d011682016040523d82523d6000602084013e611761565b606091505b509150915081156117755791506116579050565b8051156117855780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156116055781810151838201526020016115ed565b3b151590565b6040518060800160405280600081526020016000815260200160008152602001600015158152509056fe4c6f636b65722063616e6e6f7420626520736574206d6f7265207468616e206f6e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735761726d75702063616e6e6f7420626520736574206d6f7265207468616e206f6e63654f776e61626c653a206d757374206265206e6577206f776e657220746f2070756c6c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212208412c36d1c6ef2205f568e55564bf0073882c5df9fdae9b0f9948d0cc5c48cef64736f6c63430007050033000000000000000000000000e685d21b7b0fc7a248a6a8e03b8db22d013aa2ee000000000000000000000000f71c475f566273cc549f597872c6432642d96def000000000000000000000000000000000000000000000000000000000000708000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000061d0b2c0
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c80638b7afe2e116100de578063bfe1092811610097578063deac361a11610071578063deac361a146103a4578063ed4acaa8146103ac578063f3d86e4a146103b4578063f62ae76a146103bc57610173565b8063bfe1092814610377578063c9f464ff1461037f578063d7b96d4e1461039c57610173565b80638b7afe2e146102fe5780638f077b8314610306578063900cf0cf1461030e5780639ebea88c14610342578063a8dd07dc14610367578063af14052c1461036f57610173565b806346f68ee91161013057806346f68ee91461020b578063481c6a75146102315780635a96ac0a146102395780636746f4c2146102415780637acb77571461028f578063865e6fd3146102cf57610173565b8063025de6cd1461017857806303c236701461019c578063089208d8146101bb5780631e83409a146101c35780631fa2eb32146101e95780632986c0e5146101f1575b600080fd5b6101806103d9565b604080516001600160a01b039092168252519081900360200190f35b6101b9600480360360208110156101b257600080fd5b50356103fd565b005b6101b9610461565b6101b9600480360360208110156101d957600080fd5b50356001600160a01b03166104f8565b6101806106ad565b6101f96106d1565b60408051918252519081900360200190f35b6101b96004803603602081101561022157600080fd5b50356001600160a01b031661075d565b61018061084a565b6101b9610859565b6102676004803603602081101561025757600080fd5b50356001600160a01b0316610903565b6040805194855260208501939093528383019190915215156060830152519081900360800190f35b6102bb600480360360408110156102a557600080fd5b50803590602001356001600160a01b031661092d565b604080519115158252519081900360200190f35b6101b9600480360360408110156102e557600080fd5b50803560ff1690602001356001600160a01b0316610b79565b6101f9610cf3565b6101b9610d9f565b610316610dc3565b60408051948552602085019390935263ffffffff91821684840152166060830152519081900360800190f35b6101b96004803603604081101561035857600080fd5b50803590602001351515610de1565b6101f9610e58565b6101b9610e5e565b6101806110b2565b6101b96004803603602081101561039557600080fd5b50356110c1565b610180611113565b6101f9611122565b610180611128565b6101b9611137565b6101b9600480360360208110156103d257600080fd5b50356112e1565b7f000000000000000000000000e685d21b7b0fc7a248a6a8e03b8db22d013aa2ee81565b6006546001600160a01b0316331461041457600080fd5b6007546104219082611343565b60075560065461045e906001600160a01b037f000000000000000000000000f71c475f566273cc549f597872c6432642d96def81169116836113a4565b50565b6000546001600160a01b031633146104ae576040805162461bcd60e51b8152602060048201819052602482015260008051602061188b833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba908390a3600080546001600160a01b0319169055565b6105006117d2565b506001600160a01b0381166000908152600a602090815260409182902082516080810184528154815260018201549281019290925260028082015493830184905260039091015460ff1615156060830152549091118015906105655750604081015115155b156106a9576001600160a01b038083166000908152600a602090815260408083208381556001810184905560028101939093556003909201805460ff19169055600854848201518351637965d56d60e01b8152600481019190915292519084169363c3a2a6659387937f000000000000000000000000f71c475f566273cc549f597872c6432642d96def90921692637965d56d92602480840193919291829003018186803b15801561061657600080fd5b505afa15801561062a573d6000803e3d6000fd5b505050506040513d602081101561064057600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039093166004840152602483019190915251604480830192600092919082900301818387803b15801561069057600080fd5b505af11580156106a4573d6000803e3d6000fd5b505050505b5050565b7f000000000000000000000000f71c475f566273cc549f597872c6432642d96def81565b60007f000000000000000000000000f71c475f566273cc549f597872c6432642d96def6001600160a01b0316632986c0e56040518163ffffffff1660e01b815260040160206040518083038186803b15801561072c57600080fd5b505afa158015610740573d6000803e3d6000fd5b505050506040513d602081101561075657600080fd5b5051905090565b6000546001600160a01b031633146107aa576040805162461bcd60e51b8152602060048201819052602482015260008051602061188b833981519152604482015290519081900360640190fd5b6001600160a01b0381166107ef5760405162461bcd60e51b81526004018080602001828103825260268152602001806118206026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917fea8258f2d9ddb679928cf34b78cf645b7feda9acc828e4dd82d014eaae270eba91a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b6001546001600160a01b031633146108a25760405162461bcd60e51b81526004018080602001828103825260228152602001806118696022913960400191505060405180910390fd5b600154600080546040516001600160a01b0393841693909116917faa151555690c956fc3ea32f106bb9f119b5237a061eaa8557cff3e51e3792c8d91a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b600a6020526000908152604090208054600182015460028301546003909301549192909160ff1684565b6000610937610e5e565b61096c6001600160a01b037f000000000000000000000000e685d21b7b0fc7a248a6a8e03b8db22d013aa2ee163330866113fb565b6109746117d2565b506001600160a01b0382166000908152600a602090815260409182902082516080810184528154815260018201549281019290925260028101549282019290925260039091015460ff161580156060830152610a17576040805162461bcd60e51b815260206004820152601f60248201527f4465706f7369747320666f72206163636f756e7420617265206c6f636b656400604482015290519081900360640190fd5b604080516080810190915281518190610a309087611343565b8152602001610ad37f000000000000000000000000f71c475f566273cc549f597872c6432642d96def6001600160a01b0316631bd39674886040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610a9c57600080fd5b505afa158015610ab0573d6000803e3d6000fd5b505050506040513d6020811015610ac657600080fd5b5051602085015190611343565b8152600954600254602090920191610aea91611343565b8152600060209182018190526001600160a01b038681168252600a8352604091829020845181559284015160018401559083015160028301556060909201516003909101805460ff1916911515919091179055600854610b6f917f000000000000000000000000f71c475f566273cc549f597872c6432642d96def81169116866113a4565b5060019392505050565b6000546001600160a01b03163314610bc6576040805162461bcd60e51b8152602060048201819052602482015260008051602061188b833981519152604482015290519081900360640190fd5b6000826002811115610bd457fe5b1415610bfa57600580546001600160a01b0319166001600160a01b0383161790556106a9565b6001826002811115610c0857fe5b1415610c76576008546001600160a01b031615610c565760405162461bcd60e51b81526004018080602001828103825260238152602001806118466023913960400191505060405180910390fd5b600880546001600160a01b0319166001600160a01b0383161790556106a9565b6002826002811115610c8457fe5b14156106a9576006546001600160a01b031615610cd25760405162461bcd60e51b81526004018080602001828103825260238152602001806117fd6023913960400191505060405180910390fd5b600680546001600160a01b0383166001600160a01b03199091161790555050565b6000610d9a6007547f000000000000000000000000e685d21b7b0fc7a248a6a8e03b8db22d013aa2ee6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610d6857600080fd5b505afa158015610d7c573d6000803e3d6000fd5b505050506040513d6020811015610d9257600080fd5b505190611343565b905090565b336000908152600a60205260409020600301805460ff19811660ff90911615179055565b60025460035460045463ffffffff8082169164010000000090041684565b8015610def57610def610e5e565b610e246001600160a01b037f000000000000000000000000f71c475f566273cc549f597872c6432642d96def163330856113fb565b6106a96001600160a01b037f000000000000000000000000e685d21b7b0fc7a248a6a8e03b8db22d013aa2ee1633846113a4565b60075481565b60045463ffffffff42811664010000000090920416116110b0577f000000000000000000000000f71c475f566273cc549f597872c6432642d96def6001600160a01b031663058ecdb46002600101546002600001546040518363ffffffff1660e01b81526004018083815260200182815260200192505050602060405180830381600087803b158015610ef057600080fd5b505af1158015610f04573d6000803e3d6000fd5b505050506040513d6020811015610f1a57600080fd5b5050600454610f3c9063ffffffff640100000000820481169181169061145b16565b6004805463ffffffff929092166401000000000267ffffffff00000000199092169190911790556002805460010190556005546001600160a01b031615610ffa57600560009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610fcd57600080fd5b505af1158015610fe1573d6000803e3d6000fd5b505050506040513d6020811015610ff757600080fd5b50505b6000611004610cf3565b905060007f000000000000000000000000f71c475f566273cc549f597872c6432642d96def6001600160a01b0316639358928b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561106157600080fd5b505afa158015611075573d6000803e3d6000fd5b505050506040513d602081101561108b57600080fd5b505190508082116110a05760006003556106a9565b6110aa82826114be565b60035550505b565b6005546001600160a01b031681565b6000546001600160a01b0316331461110e576040805162461bcd60e51b8152602060048201819052602482015260008051602061188b833981519152604482015290519081900360640190fd5b600955565b6006546001600160a01b031681565b60095481565b6008546001600160a01b031681565b61113f6117d2565b50336000818152600a602081815260408084208151608081018352815481526001820180548286019081526002840180548487015260038501805460ff8116151560608701529a8a5297875293889055908790559590915560ff1990951690925560085492518251637965d56d60e01b8152600481019190915291516001600160a01b039384169363c3a2a6659330937f000000000000000000000000f71c475f566273cc549f597872c6432642d96def90921692637965d56d92602480840193919291829003018186803b15801561121757600080fd5b505afa15801561122b573d6000803e3d6000fd5b505050506040513d602081101561124157600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039093166004840152602483019190915251604480830192600092919082900301818387803b15801561129157600080fd5b505af11580156112a5573d6000803e3d6000fd5b5050825161045e92506001600160a01b037f000000000000000000000000e685d21b7b0fc7a248a6a8e03b8db22d013aa2ee16915033906113a4565b6006546001600160a01b031633146112f857600080fd5b60075461130590826114be565b60075560065461045e906001600160a01b037f000000000000000000000000f71c475f566273cc549f597872c6432642d96def8116911630846113fb565b60008282018381101561139d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526113f6908490611500565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611455908590611500565b50505050565b600082820163ffffffff808516908216101561139d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061139d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506115b1565b6060611555826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116489092919063ffffffff16565b8051909150156113f65780806020019051602081101561157457600080fd5b50516113f65760405162461bcd60e51b815260040180806020018281038252602a8152602001806118ab602a913960400191505060405180910390fd5b600081848411156116405760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116055781810151838201526020016115ed565b50505050905090810190601f1680156116325780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060611657848460008561165f565b949350505050565b606061166a856117cc565b6116bb576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106116fa5780518252601f1990920191602091820191016116db565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461175c576040519150601f19603f3d011682016040523d82523d6000602084013e611761565b606091505b509150915081156117755791506116579050565b8051156117855780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156116055781810151838201526020016115ed565b3b151590565b6040518060800160405280600081526020016000815260200160008152602001600015158152509056fe4c6f636b65722063616e6e6f7420626520736574206d6f7265207468616e206f6e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735761726d75702063616e6e6f7420626520736574206d6f7265207468616e206f6e63654f776e61626c653a206d757374206265206e6577206f776e657220746f2070756c6c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212208412c36d1c6ef2205f568e55564bf0073882c5df9fdae9b0f9948d0cc5c48cef64736f6c63430007050033