More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 245 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 16375795 | 710 days ago | IN | 0 ETH | 0.0011713 | ||||
Harvest | 16375794 | 710 days ago | IN | 0 ETH | 0.0011916 | ||||
Emergency Withdr... | 16327559 | 717 days ago | IN | 0 ETH | 0.00073762 | ||||
Withdraw | 16327412 | 717 days ago | IN | 0 ETH | 0.00109959 | ||||
Withdraw | 16327372 | 717 days ago | IN | 0 ETH | 0.00108757 | ||||
Withdraw | 16327332 | 717 days ago | IN | 0 ETH | 0.00107955 | ||||
Withdraw | 16327320 | 717 days ago | IN | 0 ETH | 0.00114738 | ||||
Withdraw | 16327237 | 717 days ago | IN | 0 ETH | 0.00093706 | ||||
Withdraw | 16326783 | 717 days ago | IN | 0 ETH | 0.00137657 | ||||
Withdraw | 16326579 | 717 days ago | IN | 0 ETH | 0.00075308 | ||||
Withdraw | 16326353 | 717 days ago | IN | 0 ETH | 0.00075345 | ||||
Withdraw | 16304118 | 720 days ago | IN | 0 ETH | 0.00074585 | ||||
Withdraw | 16300209 | 721 days ago | IN | 0 ETH | 0.00105128 | ||||
Withdraw | 16293203 | 722 days ago | IN | 0 ETH | 0.00155711 | ||||
Withdraw | 16291902 | 722 days ago | IN | 0 ETH | 0.00181823 | ||||
Emergency Withdr... | 16291655 | 722 days ago | IN | 0 ETH | 0.00090338 | ||||
Emergency Reward... | 16291653 | 722 days ago | IN | 0 ETH | 0.00034783 | ||||
Deposit | 16288839 | 722 days ago | IN | 0 ETH | 0.00139339 | ||||
Harvest | 16288821 | 722 days ago | IN | 0 ETH | 0.00110514 | ||||
Withdraw | 16287282 | 723 days ago | IN | 0 ETH | 0.00115901 | ||||
Withdraw | 16285557 | 723 days ago | IN | 0 ETH | 0.00170519 | ||||
Harvest | 16285532 | 723 days ago | IN | 0 ETH | 0.00236203 | ||||
Withdraw | 16285450 | 723 days ago | IN | 0 ETH | 0.00178136 | ||||
Deposit | 16285161 | 723 days ago | IN | 0 ETH | 0.00241542 | ||||
Withdraw | 16285037 | 723 days ago | IN | 0 ETH | 0.00149924 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
SUKOstaking7day
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-12-14 */ // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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 { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } 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) { 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) { 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) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also SUKOed. // 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) { 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) { 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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); 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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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); 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) { require(b > 0, errorMessage); return a % b; } } abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @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 on 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} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @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/laSUKO/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); } /** * @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.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"); // 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); } } } } library SafeBEP20 { using SafeMath for uint256; using Address for address; function safeTransfer( IBEP20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IBEP20 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 * {IBEP20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IBEP20 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), "SafeBEP20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IBEP20 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( IBEP20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeBEP20: 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(IBEP20 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, "SafeBEP20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed"); } } } contract SUKOstaking7day is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeBEP20 for IBEP20; // Whether it is initialized bool public isInitialized; // Accrued token per share uint256 public accTokenPerShare; // The block number when SUKO reward ends. uint256 public bonusEndBlock; // The block number when SUKO reward starts. uint256 public startBlock; // The block number of the last pool update uint256 public lastRewardBlock; // KATSUMI tokens reward per block. uint256 public rewardPerBlock; // The precision factor uint256 public PRECISION_FACTOR; // The reward token IBEP20 public rewardToken; // The staked token IBEP20 public stakedToken; // token staked uint256 public tokenStaked; // Info of each user that stakes tokens (stakedToken) mapping(address => UserInfo) public userInfo; struct UserInfo { uint256 amount; // How many staked tokens the user has provided uint256 rewardDebt; // Reward debt } event AdminTokenRecovery(address tokenRecovered, uint256 amount); event Deposit(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 amount); event NewStartAndEndBlocks(uint256 startBlock, uint256 endBlock); event NewRewardPerBlock(uint256 rewardPerBlock); event RewardsStop(uint256 blockNumber); event Withdraw(address indexed user, uint256 amount); constructor() public {} /* * @notice Initialize the contract * @param _stakedToken: staked token address * @param _rewardToken: reward token address * @param _rewardPerBlock: reward per block (in rewardToken) * @param _startBlock: start block * @param _bonusEndBlock: end block * @param _poolLimitPerUser: pool limit per user in stakedToken (if any, else 0) * @param _admin: admin address with ownership */ function initialize( IBEP20 _stakedToken, IBEP20 _rewardToken, uint256 _rewardPerBlock, uint256 _startBlock, uint256 _bonusEndBlock ) external onlyOwner { require(!isInitialized, "Already initialized"); // Make this contract initialized isInitialized = true; stakedToken = _stakedToken; rewardToken = _rewardToken; rewardPerBlock = _rewardPerBlock; startBlock = _startBlock; bonusEndBlock = _bonusEndBlock; uint256 decimalsRewardToken = uint256(rewardToken.decimals()); require(decimalsRewardToken < 30, "Must be inferior to 30"); PRECISION_FACTOR = uint256(10**(uint256(30).sub(decimalsRewardToken))); // Set the lastRewardBlock as the startBlock lastRewardBlock = startBlock; } function modifyTimes(uint256 _startTime, uint256 _endTime, uint256 _reward) public onlyOwner { startBlock = _startTime; bonusEndBlock = _endTime; rewardPerBlock = _reward; lastRewardBlock = startBlock; } /* * @notice Deposit staked tokens and collect reward tokens (if any) * @param _amount: amount to withdraw (in rewardToken) */ function deposit(uint256 _amount) external nonReentrant { UserInfo storage user = userInfo[msg.sender]; _updatePool(); if (user.amount > 0) { uint256 pending = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); if (pending > 0) { rewardToken.safeTransfer(address(msg.sender), pending); } } if (_amount > 0) { stakedToken.safeTransferFrom(address(msg.sender), address(this), _amount); user.amount = user.amount.add(_amount); } user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR); tokenStaked+=_amount; emit Deposit(msg.sender, _amount); } function harvest() external nonReentrant { UserInfo storage user = userInfo[msg.sender]; require(user.amount > 0, "No staked amount"); _updatePool(); uint256 pending = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); require(pending > 0, "No reward to harvest"); rewardToken.safeTransfer(address(msg.sender), pending); user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR); } /* * @notice Withdraw staked tokens and collect reward tokens * @param _amount: amount to withdraw (in rewardToken) */ function withdraw(uint256 _amount) external nonReentrant { require(block.number >= bonusEndBlock, "tokens are locked"); UserInfo storage user = userInfo[msg.sender]; require(user.amount >= _amount, "Amount to withdraw too high"); _updatePool(); uint256 pending = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); if (_amount > 0) { user.amount = user.amount.sub(_amount); stakedToken.safeTransfer(address(msg.sender), _amount); } if (pending > 0) { rewardToken.safeTransfer(address(msg.sender), pending); } user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR); tokenStaked = tokenStaked.sub(_amount); emit Withdraw(msg.sender, _amount); } /* * @notice Withdraw staked tokens without caring about rewards rewards * @dev Needs to be for emergency. */ function emergencyWithdraw() external nonReentrant { require(block.number >= bonusEndBlock, "tokens are locked"); UserInfo storage user = userInfo[msg.sender]; uint256 amountToTransfer = user.amount; user.amount = 0; user.rewardDebt = 0; if (amountToTransfer > 0) { stakedToken.safeTransfer(address(msg.sender), amountToTransfer); } tokenStaked = tokenStaked.sub(amountToTransfer); emit EmergencyWithdraw(msg.sender, user.amount); } /* * @notice Stop rewards * @dev Only callable by owner. Needs to be for emergency. */ function emergencyRewardWithdraw(uint256 _amount) external onlyOwner { rewardToken.safeTransfer(address(msg.sender), _amount); } /** * @notice It allows the admin to recover wrong tokens sent to the contract * @param _tokenAddress: the address of the token to withdraw * @param _tokenAmount: the number of tokens to withdraw * @dev This function is only callable by admin. */ function recoverWrongTokens(address _tokenAddress, uint256 _tokenAmount) external onlyOwner { require(_tokenAddress != address(stakedToken), "Cannot be staked token"); require(_tokenAddress != address(rewardToken), "Cannot be reward token"); IBEP20(_tokenAddress).safeTransfer(address(msg.sender), _tokenAmount); emit AdminTokenRecovery(_tokenAddress, _tokenAmount); } /* * @notice Stop rewards * @dev Only callable by owner */ function stopReward() external onlyOwner { bonusEndBlock = block.number; } /* * @notice Update reward per block * @dev Only callable by owner. * @param _rewardPerBlock: the reward per block */ function updateRewardPerBlock(uint256 _rewardPerBlock) external onlyOwner { rewardPerBlock = _rewardPerBlock; emit NewRewardPerBlock(_rewardPerBlock); } /** * @notice It allows the admin to update start and end blocks * @dev This function is only callable by owner. * @param _startBlock: the new start block * @param _bonusEndBlock: the new end block */ function updaSUKOartAndEndBlocks(uint256 _startBlock, uint256 _bonusEndBlock) external onlyOwner { require(block.number < startBlock, "Pool has started"); require(_startBlock < _bonusEndBlock, "New startBlock must be lower than new endBlock"); require(block.number < _startBlock, "New startBlock must be higher than current block"); startBlock = _startBlock; bonusEndBlock = _bonusEndBlock; // Set the lastRewardBlock as the startBlock lastRewardBlock = startBlock; emit NewStartAndEndBlocks(_startBlock, _bonusEndBlock); } /* * @notice View function to see pending reward on frontend. * @param _user: user address * @return Pending reward for a given user */ function pendingReward(address _user) external view returns (uint256) { UserInfo storage user = userInfo[_user]; if (block.number > lastRewardBlock && tokenStaked != 0) { uint256 multiplier = _getMultiplier(lastRewardBlock, block.number); uint256 SUKOReward = multiplier.mul(rewardPerBlock); uint256 adjustedTokenPerShare = accTokenPerShare.add(SUKOReward.mul(PRECISION_FACTOR).div(tokenStaked)); return user.amount.mul(adjustedTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); } else { return user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); } } /* * @notice Update reward variables of the given pool to be up-to-date. */ function _updatePool() internal { if (block.number <= lastRewardBlock) { return; } if (tokenStaked == 0) { lastRewardBlock = block.number; return; } uint256 multiplier = _getMultiplier(lastRewardBlock, block.number); uint256 SUKOReward = multiplier.mul(rewardPerBlock); accTokenPerShare = accTokenPerShare.add(SUKOReward.mul(PRECISION_FACTOR).div(tokenStaked)); lastRewardBlock = block.number; } /* * @notice Return reward multiplier over the given _from to _to block. * @param _from: block to start * @param _to: block to finish */ function _getMultiplier(uint256 _from, uint256 _to) internal view returns (uint256) { if (_to <= bonusEndBlock) { return _to.sub(_from); } else if (_from >= bonusEndBlock) { return 0; } else { return bonusEndBlock.sub(_from); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenRecovered","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminTokenRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardPerBlock","type":"uint256"}],"name":"NewRewardPerBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"}],"name":"NewStartAndEndBlocks","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":"uint256","name":"blockNumber","type":"uint256"}],"name":"RewardsStop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"PRECISION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accTokenPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"_stakedToken","type":"address"},{"internalType":"contract IBEP20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"modifyTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverWrongTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakedToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"name":"updaSUKOartAndEndBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"updateRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600061001b61006e565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055610072565b3390565b611a8f806100816000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638da5cb5b116100de578063ccd34cd511610097578063f2fde38b11610071578063f2fde38b14610391578063f40f0f52146103b7578063f7c618c1146103dd578063fc827058146103e55761018e565b8063ccd34cd51461033f578063d13f90b414610347578063db2e21bc146103895761018e565b80638da5cb5b146102bd5780638f662915146102e15780639d0619a3146102e9578063a9f8d18114610312578063b6b55f251461031a578063cc7a262e146103375761018e565b80633f138d4b1161014b578063518f49d811610125578063518f49d81461029d578063715018a6146102a557806380dc0672146102ad5780638ae39cac146102b55761018e565b80633f138d4b146102615780634641257d1461028d57806348cd4cb1146102955761018e565b806301f8a976146101935780631959a002146101b25780631aed6553146101f15780632e1a7d4d1461020b5780633279beab14610228578063392e53cd14610245575b600080fd5b6101b0600480360360208110156101a957600080fd5b5035610408565b005b6101d8600480360360208110156101c857600080fd5b50356001600160a01b03166104a5565b6040805192835260208301919091528051918290030190f35b6101f96104be565b60408051918252519081900360200190f35b6101b06004803603602081101561022157600080fd5b50356104c4565b6101b06004803603602081101561023e57600080fd5b50356106b1565b61024d61072d565b604080519115158252519081900360200190f35b6101b06004803603604081101561027757600080fd5b506001600160a01b038135169060200135610736565b6101b06108ac565b6101f9610a04565b6101f9610a0a565b6101b0610a10565b6101b0610abc565b6101f9610b24565b6102c5610b2a565b604080516001600160a01b039092168252519081900360200190f35b6101f9610b39565b6101b0600480360360608110156102ff57600080fd5b5080359060208101359060400135610b3f565b6101f9610bb4565b6101b06004803603602081101561033057600080fd5b5035610bba565b6102c5610cfc565b6101f9610d0b565b6101b0600480360360a081101561035d57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060800135610d11565b6101b0610ee6565b6101b0600480360360208110156103a757600080fd5b50356001600160a01b0316611005565b6101f9600480360360208110156103cd57600080fd5b50356001600160a01b0316611107565b6102c56111ea565b6101b0600480360360408110156103fb57600080fd5b50803590602001356111f9565b61041061136e565b6001600160a01b0316610421610b2a565b6001600160a01b03161461046a576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b60078190556040805182815290517f0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df9181900360200190a150565b600c602052600090815260409020805460019091015482565b60045481565b6002600154141561050a576040805162461bcd60e51b815260206004820152601f6024820152600080516020611925833981519152604482015290519081900360640190fd5b600260015560045443101561055a576040805162461bcd60e51b81526020600482015260116024820152701d1bdad95b9cc8185c99481b1bd8dad959607a1b604482015290519081900360640190fd5b336000908152600c6020526040902080548211156105bf576040805162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f20686967680000000000604482015290519081900360640190fd5b6105c7611372565b60006105fc82600101546105f66008546105f060035487600001546113e390919063ffffffff16565b90611445565b906114ac565b9050821561062957815461061090846114ac565b8255600a54610629906001600160a01b03163385611509565b801561064657600954610646906001600160a01b03163383611509565b600854600354835461065d92916105f091906113e3565b6001830155600b5461066f90846114ac565b600b5560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250506001805550565b6106b961136e565b6001600160a01b03166106ca610b2a565b6001600160a01b031614610713576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b60095461072a906001600160a01b03163383611509565b50565b60025460ff1681565b61073e61136e565b6001600160a01b031661074f610b2a565b6001600160a01b031614610798576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b600a546001600160a01b03838116911614156107f4576040805162461bcd60e51b815260206004820152601660248201527521b0b73737ba1031329039ba30b5b2b2103a37b5b2b760511b604482015290519081900360640190fd5b6009546001600160a01b0383811691161415610850576040805162461bcd60e51b815260206004820152601660248201527521b0b73737ba103132903932bbb0b932103a37b5b2b760511b604482015290519081900360640190fd5b6108646001600160a01b0383163383611509565b604080516001600160a01b03841681526020810183905281517f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab78129929181900390910190a15050565b600260015414156108f2576040805162461bcd60e51b815260206004820152601f6024820152600080516020611925833981519152604482015290519081900360640190fd5b6002600155336000908152600c60205260409020805461094c576040805162461bcd60e51b815260206004820152601060248201526f139bc81cdd185ad95908185b5bdd5b9d60821b604482015290519081900360640190fd5b610954611372565b600061097d82600101546105f66008546105f060035487600001546113e390919063ffffffff16565b9050600081116109cb576040805162461bcd60e51b8152602060048201526014602482015273139bc81c995dd85c99081d1bc81a185c9d995cdd60621b604482015290519081900360640190fd5b6009546109e2906001600160a01b03163383611509565b60085460035483546109f992916105f091906113e3565b600192830155508055565b60055481565b600b5481565b610a1861136e565b6001600160a01b0316610a29610b2a565b6001600160a01b031614610a72576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610ac461136e565b6001600160a01b0316610ad5610b2a565b6001600160a01b031614610b1e576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b43600455565b60075481565b6000546001600160a01b031690565b60035481565b610b4761136e565b6001600160a01b0316610b58610b2a565b6001600160a01b031614610ba1576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b6005839055600491909155600755600655565b60065481565b60026001541415610c00576040805162461bcd60e51b815260206004820152601f6024820152600080516020611925833981519152604482015290519081900360640190fd5b6002600155336000908152600c60205260409020610c1c611372565b805415610c6d576000610c4c82600101546105f66008546105f060035487600001546113e390919063ffffffff16565b90508015610c6b57600954610c6b906001600160a01b03163383611509565b505b8115610c9a57600a54610c8b906001600160a01b0316333085611560565b8054610c9790836115c0565b81555b6008546003548254610cb192916105f091906113e3565b6001820155600b80548301905560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505060018055565b600a546001600160a01b031681565b60085481565b610d1961136e565b6001600160a01b0316610d2a610b2a565b6001600160a01b031614610d73576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b60025460ff1615610dc1576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015290519081900360640190fd5b6002805460ff19166001179055600a80546001600160a01b038088166001600160a01b03199283161790925560098054878416921691909117908190556007859055600584905560048381556040805163313ce56760e01b81529051600094939093169263313ce56792828101926020929190829003018186803b158015610e4857600080fd5b505afa158015610e5c573d6000803e3d6000fd5b505050506040513d6020811015610e7257600080fd5b505160ff169050601e8110610ec7576040805162461bcd60e51b815260206004820152601660248201527504d75737420626520696e666572696f7220746f2033360541b604482015290519081900360640190fd5b610ed2601e826114ac565b600a0a600855505060055460065550505050565b60026001541415610f2c576040805162461bcd60e51b815260206004820152601f6024820152600080516020611925833981519152604482015290519081900360640190fd5b6002600155600454431015610f7c576040805162461bcd60e51b81526020600482015260116024820152701d1bdad95b9cc8185c99481b1bd8dad959607a1b604482015290519081900360640190fd5b336000908152600c6020526040812080548282556001820192909255908015610fb657600a54610fb6906001600160a01b03163383611509565b600b54610fc390826114ac565b600b558154604080519182525133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a2505060018055565b61100d61136e565b6001600160a01b031661101e610b2a565b6001600160a01b031614611067576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b6001600160a01b0381166110ac5760405162461bcd60e51b815260040180806020018281038252602681526020018061196f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152600c60205260408120600654431180156111315750600b5415155b156111ba5760006111446006544361161a565b9050600061115d600754836113e390919063ffffffff16565b9050600061118861117f600b546105f0600854866113e390919063ffffffff16565b600354906115c0565b90506111af84600101546105f66008546105f08589600001546113e390919063ffffffff16565b9450505050506111e5565b6111e181600101546105f66008546105f060035486600001546113e390919063ffffffff16565b9150505b919050565b6009546001600160a01b031681565b61120161136e565b6001600160a01b0316611212610b2a565b6001600160a01b03161461125b576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b60055443106112a4576040805162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b604482015290519081900360640190fd5b8082106112e25760405162461bcd60e51b815260040180806020018281038252602e815260200180611995602e913960400191505060405180910390fd5b8143106113205760405162461bcd60e51b81526004018080602001828103825260308152602001806119e96030913960400191505060405180910390fd5b600582905560048190556006829055604080518381526020810183905281517f7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06929181900390910190a15050565b3390565b6006544311611380576113e1565b600b5461139057436006556113e1565b600061139e6006544361161a565b905060006113b7600754836113e390919063ffffffff16565b90506113d761117f600b546105f0600854856113e390919063ffffffff16565b6003555050436006555b565b6000826113f25750600061143f565b828202828482816113ff57fe5b041461143c5760405162461bcd60e51b8152600401808060200182810382526021815260200180611a196021913960400191505060405180910390fd5b90505b92915050565b600080821161149b576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816114a457fe5b049392505050565b600082821115611503576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261155b908490611654565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526115ba908590611654565b50505050565b60008282018381101561143c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600060045482116116365761162f82846114ac565b905061143f565b60045483106116475750600061143f565b60045461162f90846114ac565b60606116a9826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117059092919063ffffffff16565b80519091501561155b578080602001905160208110156116c857600080fd5b505161155b5760405162461bcd60e51b815260040180806020018281038252602a815260200180611945602a913960400191505060405180910390fd5b6060611714848460008561171e565b90505b9392505050565b60608247101561175f5760405162461bcd60e51b81526004018080602001828103825260268152602001806119c36026913960400191505060405180910390fd5b6117688561187a565b6117b9576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117f85780518252601f1990920191602091820191016117d9565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461185a576040519150601f19603f3d011682016040523d82523d6000602084013e61185f565b606091505b509150915061186f828286611880565b979650505050505050565b3b151590565b6060831561188f575081611717565b82511561189f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156118e95781810151838201526020016118d1565b50505050905090810190601f1680156119165780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c005361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734e6577207374617274426c6f636b206d757374206265206c6f776572207468616e206e657720656e64426c6f636b416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4e6577207374617274426c6f636b206d75737420626520686967686572207468616e2063757272656e7420626c6f636b536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220eb8665bf128db7b1618c8697b8e5712c5a7b909e5a7ac3d4cb833888645c898764736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80638da5cb5b116100de578063ccd34cd511610097578063f2fde38b11610071578063f2fde38b14610391578063f40f0f52146103b7578063f7c618c1146103dd578063fc827058146103e55761018e565b8063ccd34cd51461033f578063d13f90b414610347578063db2e21bc146103895761018e565b80638da5cb5b146102bd5780638f662915146102e15780639d0619a3146102e9578063a9f8d18114610312578063b6b55f251461031a578063cc7a262e146103375761018e565b80633f138d4b1161014b578063518f49d811610125578063518f49d81461029d578063715018a6146102a557806380dc0672146102ad5780638ae39cac146102b55761018e565b80633f138d4b146102615780634641257d1461028d57806348cd4cb1146102955761018e565b806301f8a976146101935780631959a002146101b25780631aed6553146101f15780632e1a7d4d1461020b5780633279beab14610228578063392e53cd14610245575b600080fd5b6101b0600480360360208110156101a957600080fd5b5035610408565b005b6101d8600480360360208110156101c857600080fd5b50356001600160a01b03166104a5565b6040805192835260208301919091528051918290030190f35b6101f96104be565b60408051918252519081900360200190f35b6101b06004803603602081101561022157600080fd5b50356104c4565b6101b06004803603602081101561023e57600080fd5b50356106b1565b61024d61072d565b604080519115158252519081900360200190f35b6101b06004803603604081101561027757600080fd5b506001600160a01b038135169060200135610736565b6101b06108ac565b6101f9610a04565b6101f9610a0a565b6101b0610a10565b6101b0610abc565b6101f9610b24565b6102c5610b2a565b604080516001600160a01b039092168252519081900360200190f35b6101f9610b39565b6101b0600480360360608110156102ff57600080fd5b5080359060208101359060400135610b3f565b6101f9610bb4565b6101b06004803603602081101561033057600080fd5b5035610bba565b6102c5610cfc565b6101f9610d0b565b6101b0600480360360a081101561035d57600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060800135610d11565b6101b0610ee6565b6101b0600480360360208110156103a757600080fd5b50356001600160a01b0316611005565b6101f9600480360360208110156103cd57600080fd5b50356001600160a01b0316611107565b6102c56111ea565b6101b0600480360360408110156103fb57600080fd5b50803590602001356111f9565b61041061136e565b6001600160a01b0316610421610b2a565b6001600160a01b03161461046a576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b60078190556040805182815290517f0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df9181900360200190a150565b600c602052600090815260409020805460019091015482565b60045481565b6002600154141561050a576040805162461bcd60e51b815260206004820152601f6024820152600080516020611925833981519152604482015290519081900360640190fd5b600260015560045443101561055a576040805162461bcd60e51b81526020600482015260116024820152701d1bdad95b9cc8185c99481b1bd8dad959607a1b604482015290519081900360640190fd5b336000908152600c6020526040902080548211156105bf576040805162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f20686967680000000000604482015290519081900360640190fd5b6105c7611372565b60006105fc82600101546105f66008546105f060035487600001546113e390919063ffffffff16565b90611445565b906114ac565b9050821561062957815461061090846114ac565b8255600a54610629906001600160a01b03163385611509565b801561064657600954610646906001600160a01b03163383611509565b600854600354835461065d92916105f091906113e3565b6001830155600b5461066f90846114ac565b600b5560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250506001805550565b6106b961136e565b6001600160a01b03166106ca610b2a565b6001600160a01b031614610713576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b60095461072a906001600160a01b03163383611509565b50565b60025460ff1681565b61073e61136e565b6001600160a01b031661074f610b2a565b6001600160a01b031614610798576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b600a546001600160a01b03838116911614156107f4576040805162461bcd60e51b815260206004820152601660248201527521b0b73737ba1031329039ba30b5b2b2103a37b5b2b760511b604482015290519081900360640190fd5b6009546001600160a01b0383811691161415610850576040805162461bcd60e51b815260206004820152601660248201527521b0b73737ba103132903932bbb0b932103a37b5b2b760511b604482015290519081900360640190fd5b6108646001600160a01b0383163383611509565b604080516001600160a01b03841681526020810183905281517f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab78129929181900390910190a15050565b600260015414156108f2576040805162461bcd60e51b815260206004820152601f6024820152600080516020611925833981519152604482015290519081900360640190fd5b6002600155336000908152600c60205260409020805461094c576040805162461bcd60e51b815260206004820152601060248201526f139bc81cdd185ad95908185b5bdd5b9d60821b604482015290519081900360640190fd5b610954611372565b600061097d82600101546105f66008546105f060035487600001546113e390919063ffffffff16565b9050600081116109cb576040805162461bcd60e51b8152602060048201526014602482015273139bc81c995dd85c99081d1bc81a185c9d995cdd60621b604482015290519081900360640190fd5b6009546109e2906001600160a01b03163383611509565b60085460035483546109f992916105f091906113e3565b600192830155508055565b60055481565b600b5481565b610a1861136e565b6001600160a01b0316610a29610b2a565b6001600160a01b031614610a72576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610ac461136e565b6001600160a01b0316610ad5610b2a565b6001600160a01b031614610b1e576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b43600455565b60075481565b6000546001600160a01b031690565b60035481565b610b4761136e565b6001600160a01b0316610b58610b2a565b6001600160a01b031614610ba1576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b6005839055600491909155600755600655565b60065481565b60026001541415610c00576040805162461bcd60e51b815260206004820152601f6024820152600080516020611925833981519152604482015290519081900360640190fd5b6002600155336000908152600c60205260409020610c1c611372565b805415610c6d576000610c4c82600101546105f66008546105f060035487600001546113e390919063ffffffff16565b90508015610c6b57600954610c6b906001600160a01b03163383611509565b505b8115610c9a57600a54610c8b906001600160a01b0316333085611560565b8054610c9790836115c0565b81555b6008546003548254610cb192916105f091906113e3565b6001820155600b80548301905560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505060018055565b600a546001600160a01b031681565b60085481565b610d1961136e565b6001600160a01b0316610d2a610b2a565b6001600160a01b031614610d73576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b60025460ff1615610dc1576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015290519081900360640190fd5b6002805460ff19166001179055600a80546001600160a01b038088166001600160a01b03199283161790925560098054878416921691909117908190556007859055600584905560048381556040805163313ce56760e01b81529051600094939093169263313ce56792828101926020929190829003018186803b158015610e4857600080fd5b505afa158015610e5c573d6000803e3d6000fd5b505050506040513d6020811015610e7257600080fd5b505160ff169050601e8110610ec7576040805162461bcd60e51b815260206004820152601660248201527504d75737420626520696e666572696f7220746f2033360541b604482015290519081900360640190fd5b610ed2601e826114ac565b600a0a600855505060055460065550505050565b60026001541415610f2c576040805162461bcd60e51b815260206004820152601f6024820152600080516020611925833981519152604482015290519081900360640190fd5b6002600155600454431015610f7c576040805162461bcd60e51b81526020600482015260116024820152701d1bdad95b9cc8185c99481b1bd8dad959607a1b604482015290519081900360640190fd5b336000908152600c6020526040812080548282556001820192909255908015610fb657600a54610fb6906001600160a01b03163383611509565b600b54610fc390826114ac565b600b558154604080519182525133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a2505060018055565b61100d61136e565b6001600160a01b031661101e610b2a565b6001600160a01b031614611067576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b6001600160a01b0381166110ac5760405162461bcd60e51b815260040180806020018281038252602681526020018061196f6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152600c60205260408120600654431180156111315750600b5415155b156111ba5760006111446006544361161a565b9050600061115d600754836113e390919063ffffffff16565b9050600061118861117f600b546105f0600854866113e390919063ffffffff16565b600354906115c0565b90506111af84600101546105f66008546105f08589600001546113e390919063ffffffff16565b9450505050506111e5565b6111e181600101546105f66008546105f060035486600001546113e390919063ffffffff16565b9150505b919050565b6009546001600160a01b031681565b61120161136e565b6001600160a01b0316611212610b2a565b6001600160a01b03161461125b576040805162461bcd60e51b81526020600482018190526024820152600080516020611a3a833981519152604482015290519081900360640190fd5b60055443106112a4576040805162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b604482015290519081900360640190fd5b8082106112e25760405162461bcd60e51b815260040180806020018281038252602e815260200180611995602e913960400191505060405180910390fd5b8143106113205760405162461bcd60e51b81526004018080602001828103825260308152602001806119e96030913960400191505060405180910390fd5b600582905560048190556006829055604080518381526020810183905281517f7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06929181900390910190a15050565b3390565b6006544311611380576113e1565b600b5461139057436006556113e1565b600061139e6006544361161a565b905060006113b7600754836113e390919063ffffffff16565b90506113d761117f600b546105f0600854856113e390919063ffffffff16565b6003555050436006555b565b6000826113f25750600061143f565b828202828482816113ff57fe5b041461143c5760405162461bcd60e51b8152600401808060200182810382526021815260200180611a196021913960400191505060405180910390fd5b90505b92915050565b600080821161149b576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816114a457fe5b049392505050565b600082821115611503576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261155b908490611654565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526115ba908590611654565b50505050565b60008282018381101561143c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600060045482116116365761162f82846114ac565b905061143f565b60045483106116475750600061143f565b60045461162f90846114ac565b60606116a9826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117059092919063ffffffff16565b80519091501561155b578080602001905160208110156116c857600080fd5b505161155b5760405162461bcd60e51b815260040180806020018281038252602a815260200180611945602a913960400191505060405180910390fd5b6060611714848460008561171e565b90505b9392505050565b60608247101561175f5760405162461bcd60e51b81526004018080602001828103825260268152602001806119c36026913960400191505060405180910390fd5b6117688561187a565b6117b9576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117f85780518252601f1990920191602091820191016117d9565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461185a576040519150601f19603f3d011682016040523d82523d6000602084013e61185f565b606091505b509150915061186f828286611880565b979650505050505050565b3b151590565b6060831561188f575081611717565b82511561189f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156118e95781810151838201526020016118d1565b50505050905090810190601f1680156119165780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c005361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734e6577207374617274426c6f636b206d757374206265206c6f776572207468616e206e657720656e64426c6f636b416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4e6577207374617274426c6f636b206d75737420626520686967686572207468616e2063757272656e7420626c6f636b536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220eb8665bf128db7b1618c8697b8e5712c5a7b909e5a7ac3d4cb833888645c898764736f6c634300060c0033
Deployed Bytecode Sourcemap
25549:10560:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33102:175;;;;;;;;;;;;;;;;-1:-1:-1;33102:175:0;;:::i;:::-;;26459:44;;;;;;;;;;;;;;;;-1:-1:-1;26459:44:0;-1:-1:-1;;;;;26459:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;25865:28;;;:::i;:::-;;;;;;;;;;;;;;;;30275:851;;;;;;;;;;;;;;;;-1:-1:-1;30275:851:0;;:::i;31922:142::-;;;;;;;;;;;;;;;;-1:-1:-1;31922:142:0;;:::i;25711:25::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;32354:413;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;32354:413:0;;;;;;;;:::i;29627:498::-;;;:::i;25952:25::-;;;:::i;26365:26::-;;;:::i;1619:148::-;;;:::i;32857:88::-;;;:::i;26115:29::-;;;:::i;968:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;968:87:0;;;;;;;;;;;;;;25777:31;;;:::i;28439:244::-;;;;;;;;;;;;;;;;-1:-1:-1;28439:244:0;;;;;;;;;;;;:::i;26035:30::-;;;:::i;28841:778::-;;;;;;;;;;;;;;;;-1:-1:-1;28841:778:0;;:::i;26310:25::-;;;:::i;26186:31::-;;;:::i;27562:865::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27562:865:0;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;31267:537::-;;;:::i;1922:244::-;;;;;;;;;;;;;;;;-1:-1:-1;1922:244:0;-1:-1:-1;;;;;1922:244:0;;:::i;34300:707::-;;;;;;;;;;;;;;;;-1:-1:-1;34300:707:0;-1:-1:-1;;;;;34300:707:0;;:::i;26251:25::-;;;:::i;33521:606::-;;;;;;;;;;;;;;;;-1:-1:-1;33521:606:0;;;;;;;:::i;33102:175::-;1199:12;:10;:12::i;:::-;-1:-1:-1;;;;;1188:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1188:23:0;;1180:68;;;;;-1:-1:-1;;;1180:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1180:68:0;;;;;;;;;;;;;;;33187:14:::1;:32:::0;;;33235:34:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;33102:175:::0;:::o;26459:44::-;;;;;;;;;;;;;;;;;;;:::o;25865:28::-;;;;:::o;30275:851::-;9955:1;10560:7;;:19;;10552:63;;;;;-1:-1:-1;;;10552:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10552:63:0;;;;;;;;;;;;;;;9955:1;10693:7;:18;30367:13:::1;::::0;30351:12:::1;:29;;30343:59;;;::::0;;-1:-1:-1;;;30343:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;30343:59:0;;;;;;;;;;;;;::::1;;30446:10;30413:21;30437:20:::0;;;:8:::1;:20;::::0;;;;30476:11;;:22;-1:-1:-1;30476:22:0::1;30468:62;;;::::0;;-1:-1:-1;;;30468:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;30543:13;:11;:13::i;:::-;30569:15;30587:76;30647:4;:15;;;30587:55;30625:16;;30587:33;30603:16;;30587:4;:11;;;:15;;:33;;;;:::i;:::-;:37:::0;::::1;:55::i;:::-;:59:::0;::::1;:76::i;:::-;30569:94:::0;-1:-1:-1;30680:11:0;;30676:151:::1;;30722:11:::0;;:24:::1;::::0;30738:7;30722:15:::1;:24::i;:::-;30708:38:::0;;30761:11:::1;::::0;:54:::1;::::0;-1:-1:-1;;;;;30761:11:0::1;30794:10;30807:7:::0;30761:24:::1;:54::i;:::-;30843:11:::0;;30839:98:::1;;30871:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;30871:11:0::1;30904:10;30917:7:::0;30871:24:::1;:54::i;:::-;31005:16;::::0;30983::::1;::::0;30967:11;;:55:::1;::::0;31005:16;30967:33:::1;::::0;:11;:15:::1;:33::i;:55::-;30949:15;::::0;::::1;:73:::0;31047:11:::1;::::0;:24:::1;::::0;31063:7;31047:15:::1;:24::i;:::-;31033:11;:38:::0;31089:29:::1;::::0;;;;;;;31098:10:::1;::::0;31089:29:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;9911:1:0;10872:22;;-1:-1:-1;30275:851:0:o;31922:142::-;1199:12;:10;:12::i;:::-;-1:-1:-1;;;;;1188:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1188:23:0;;1180:68;;;;;-1:-1:-1;;;1180:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1180:68:0;;;;;;;;;;;;;;;32002:11:::1;::::0;:54:::1;::::0;-1:-1:-1;;;;;32002:11:0::1;32035:10;32048:7:::0;32002:24:::1;:54::i;:::-;31922:142:::0;:::o;25711:25::-;;;;;;:::o;32354:413::-;1199:12;:10;:12::i;:::-;-1:-1:-1;;;;;1188:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1188:23:0;;1180:68;;;;;-1:-1:-1;;;1180:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1180:68:0;;;;;;;;;;;;;;;32490:11:::1;::::0;-1:-1:-1;;;;;32465:37:0;;::::1;32490:11:::0;::::1;32465:37;;32457:72;;;::::0;;-1:-1:-1;;;32457:72:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;32457:72:0;;;;;;;;;;;;;::::1;;32573:11;::::0;-1:-1:-1;;;;;32548:37:0;;::::1;32573:11:::0;::::1;32548:37;;32540:72;;;::::0;;-1:-1:-1;;;32540:72:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;32540:72:0;;;;;;;;;;;;;::::1;;32625:69;-1:-1:-1::0;;;;;32625:34:0;::::1;32668:10;32681:12:::0;32625:34:::1;:69::i;:::-;32712:47;::::0;;-1:-1:-1;;;;;32712:47:0;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;32354:413:::0;;:::o;29627:498::-;9955:1;10560:7;;:19;;10552:63;;;;;-1:-1:-1;;;10552:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10552:63:0;;;;;;;;;;;;;;;9955:1;10693:7;:18;29712:10:::1;29679:21;29703:20:::0;;;:8:::1;:20;::::0;;;;29742:11;;29734:44:::1;;;::::0;;-1:-1:-1;;;29734:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29734:44:0;;;;;;;;;;;;;::::1;;29789:13;:11;:13::i;:::-;29815:15;29833:76;29893:4;:15;;;29833:55;29871:16;;29833:33;29849:16;;29833:4;:11;;;:15;;:33;;;;:::i;:76::-;29815:94;;29938:1;29928:7;:11;29920:44;;;::::0;;-1:-1:-1;;;29920:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29920:44:0;;;;;;;;;;;;;::::1;;29977:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;29977:11:0::1;30010:10;30023:7:::0;29977:24:::1;:54::i;:::-;30098:16;::::0;30076::::1;::::0;30060:11;;:55:::1;::::0;30098:16;30060:33:::1;::::0;:11;:15:::1;:33::i;:55::-;30042:15;::::0;;::::1;:73:::0;-1:-1:-1;10872:22:0;;29627:498::o;25952:25::-;;;;:::o;26365:26::-;;;;:::o;1619:148::-;1199:12;:10;:12::i;:::-;-1:-1:-1;;;;;1188:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1188:23:0;;1180:68;;;;;-1:-1:-1;;;1180:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1180:68:0;;;;;;;;;;;;;;;1726:1:::1;1710:6:::0;;1689:40:::1;::::0;-1:-1:-1;;;;;1710:6:0;;::::1;::::0;1689:40:::1;::::0;1726:1;;1689:40:::1;1757:1;1740:19:::0;;-1:-1:-1;;;;;;1740:19:0::1;::::0;;1619:148::o;32857:88::-;1199:12;:10;:12::i;:::-;-1:-1:-1;;;;;1188:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1188:23:0;;1180:68;;;;;-1:-1:-1;;;1180:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1180:68:0;;;;;;;;;;;;;;;32925:12:::1;32909:13;:28:::0;32857:88::o;26115:29::-;;;;:::o;968:87::-;1014:7;1041:6;-1:-1:-1;;;;;1041:6:0;968:87;:::o;25777:31::-;;;;:::o;28439:244::-;1199:12;:10;:12::i;:::-;-1:-1:-1;;;;;1188:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1188:23:0;;1180:68;;;;;-1:-1:-1;;;1180:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1180:68:0;;;;;;;;;;;;;;;28543:10:::1;:23:::0;;;28577:13:::1;:24:::0;;;;28612:14:::1;:24:::0;28647:15:::1;:28:::0;28439:244::o;26035:30::-;;;;:::o;28841:778::-;9955:1;10560:7;;:19;;10552:63;;;;;-1:-1:-1;;;10552:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10552:63:0;;;;;;;;;;;;;;;9955:1;10693:7;:18;28941:10:::1;28908:21;28932:20:::0;;;:8:::1;:20;::::0;;;;28965:13:::1;:11;:13::i;:::-;28995:11:::0;;:15;28991:262:::1;;29027:15;29045:76;29105:4;:15;;;29045:55;29083:16;;29045:33;29061:16;;29045:4;:11;;;:15;;:33;;;;:::i;:76::-;29027:94:::0;-1:-1:-1;29140:11:0;;29136:106:::1;;29172:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;29172:11:0::1;29205:10;29218:7:::0;29172:24:::1;:54::i;:::-;28991:262;;29269:11:::0;;29265:184:::1;;29297:11;::::0;:73:::1;::::0;-1:-1:-1;;;;;29297:11:0::1;29334:10;29355:4;29362:7:::0;29297:28:::1;:73::i;:::-;29399:11:::0;;:24:::1;::::0;29415:7;29399:15:::1;:24::i;:::-;29385:38:::0;;29265:184:::1;29517:16;::::0;29495::::1;::::0;29479:11;;:55:::1;::::0;29517:16;29479:33:::1;::::0;:11;:15:::1;:33::i;:55::-;29461:15;::::0;::::1;:73:::0;29545:11:::1;:20:::0;;;::::1;::::0;;29583:28:::1;::::0;;;;;;;29591:10:::1;::::0;29583:28:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;9911:1:0;10872:22;;28841:778::o;26310:25::-;;;-1:-1:-1;;;;;26310:25:0;;:::o;26186:31::-;;;;:::o;27562:865::-;1199:12;:10;:12::i;:::-;-1:-1:-1;;;;;1188:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1188:23:0;;1180:68;;;;;-1:-1:-1;;;1180:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1180:68:0;;;;;;;;;;;;;;;27785:13:::1;::::0;::::1;;27784:14;27776:46;;;::::0;;-1:-1:-1;;;27776:46:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;27776:46:0;;;;;;;;;;;;;::::1;;27878:13;:20:::0;;-1:-1:-1;;27878:20:0::1;27894:4;27878:20;::::0;;27911:11:::1;:26:::0;;-1:-1:-1;;;;;27911:26:0;;::::1;-1:-1:-1::0;;;;;;27911:26:0;;::::1;;::::0;;;27948:11:::1;:26:::0;;;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;;27985:14:::1;:32:::0;;;28028:10:::1;:24:::0;;;-1:-1:-1;28063:30:0;;;28146:22:::1;::::0;;-1:-1:-1;;;28146:22:0;;;;27878:13:::1;::::0;28146:11;;;::::1;::::0;:20:::1;::::0;:22;;::::1;::::0;::::1;::::0;;;;;;;;:11;:22;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;28146:22:0;28138:31:::1;;::::0;-1:-1:-1;28210:2:0::1;28188:24:::0;::::1;28180:59;;;::::0;;-1:-1:-1;;;28180:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28180:59:0;;;;;;;;;;;;;::::1;;28284:36;28292:2;28300:19:::0;28284:15:::1;:36::i;:::-;28279:2;:42;28252:16;:70:::0;-1:-1:-1;;28407:10:0::1;::::0;28389:15:::1;:28:::0;-1:-1:-1;;;;27562:865:0:o;31267:537::-;9955:1;10560:7;;:19;;10552:63;;;;;-1:-1:-1;;;10552:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10552:63:0;;;;;;;;;;;;;;;9955:1;10693:7;:18;31353:13:::1;::::0;31337:12:::1;:29;;31329:59;;;::::0;;-1:-1:-1;;;31329:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;31329:59:0;;;;;;;;;;;;;::::1;;31434:10;31401:21;31425:20:::0;;;:8:::1;:20;::::0;;;;31483:11;;31505:15;;;-1:-1:-1;31531:15:0;::::1;:19:::0;;;;31425:20;31567;;31563:116:::1;;31604:11;::::0;:63:::1;::::0;-1:-1:-1;;;;;31604:11:0::1;31637:10;31650:16:::0;31604:24:::1;:63::i;:::-;31703:11;::::0;:33:::1;::::0;31719:16;31703:15:::1;:33::i;:::-;31689:11;:47:::0;31784:11;;31754:42:::1;::::0;;;;;;31772:10:::1;::::0;31754:42:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;9911:1:0;10872:22;;31267:537::o;1922:244::-;1199:12;:10;:12::i;:::-;-1:-1:-1;;;;;1188:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1188:23:0;;1180:68;;;;;-1:-1:-1;;;1180:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1180:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;2011:22:0;::::1;2003:73;;;;-1:-1:-1::0;;;2003:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2113:6;::::0;;2092:38:::1;::::0;-1:-1:-1;;;;;2092:38:0;;::::1;::::0;2113:6;::::1;::::0;2092:38:::1;::::0;::::1;2141:6;:17:::0;;-1:-1:-1;;;;;;2141:17:0::1;-1:-1:-1::0;;;;;2141:17:0;;;::::1;::::0;;;::::1;::::0;;1922:244::o;34300:707::-;-1:-1:-1;;;;;34405:15:0;;34361:7;34405:15;;;:8;:15;;;;;34450;;34435:12;:30;:50;;;;-1:-1:-1;34469:11:0;;:16;;34435:50;34431:569;;;34502:18;34523:45;34538:15;;34555:12;34523:14;:45::i;:::-;34502:66;;34583:18;34604:30;34619:14;;34604:10;:14;;:30;;;;:::i;:::-;34583:51;;34649:29;34698:71;34719:49;34756:11;;34719:32;34734:16;;34719:10;:14;;:32;;;;:::i;:49::-;34698:16;;;:20;:71::i;:::-;34649:120;;34791:81;34856:4;:15;;;34791:60;34834:16;;34791:38;34807:21;34791:4;:11;;;:15;;:38;;;;:::i;:81::-;34784:88;;;;;;;;34431:569;34912:76;34972:4;:15;;;34912:55;34950:16;;34912:33;34928:16;;34912:4;:11;;;:15;;:33;;;;:::i;:76::-;34905:83;;;34300:707;;;;:::o;26251:25::-;;;-1:-1:-1;;;;;26251:25:0;;:::o;33521:606::-;1199:12;:10;:12::i;:::-;-1:-1:-1;;;;;1188:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1188:23:0;;1180:68;;;;;-1:-1:-1;;;1180:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1180:68:0;;;;;;;;;;;;;;;33652:10:::1;;33637:12;:25;33629:54;;;::::0;;-1:-1:-1;;;33629:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;33629:54:0;;;;;;;;;;;;;::::1;;33716:14;33702:11;:28;33694:87;;;;-1:-1:-1::0;;;33694:87:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33815:11;33800:12;:26;33792:87;;;;-1:-1:-1::0;;;33792:87:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33892:10;:24:::0;;;33927:13:::1;:30:::0;;;34024:15:::1;:28:::0;;;34070:49:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;33521:606:::0;;:::o;105:106::-;193:10;105:106;:::o;35108:515::-;35171:15;;35155:12;:31;35151:70;;35203:7;;35151:70;35237:11;;35233:100;;35288:12;35270:15;:30;35315:7;;35233:100;35345:18;35366:45;35381:15;;35398:12;35366:14;:45::i;:::-;35345:66;;35422:18;35443:30;35458:14;;35443:10;:14;;:30;;;;:::i;:::-;35422:51;;35503:71;35524:49;35561:11;;35524:32;35539:16;;35524:10;:14;;:32;;;;:::i;35503:71::-;35484:16;:90;-1:-1:-1;;35603:12:0;35585:15;:30;35108:515;:::o;5179:220::-;5237:7;5261:6;5257:20;;-1:-1:-1;5276:1:0;5269:8;;5257:20;5300:5;;;5304:1;5300;:5;:1;5324:5;;;;;:10;5316:56;;;;-1:-1:-1;;;5316:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5390:1;-1:-1:-1;5179:220:0;;;;;:::o;5877:153::-;5935:7;5967:1;5963;:5;5955:44;;;;;-1:-1:-1;;;5955:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6021:1;6017;:5;;;;;;;5877:153;-1:-1:-1;;;5877:153:0:o;4762:158::-;4820:7;4853:1;4848;:6;;4840:49;;;;;-1:-1:-1;;;4840:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4907:5:0;;;4762:158::o;22255:211::-;22399:58;;;-1:-1:-1;;;;;22399:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22399:58:0;-1:-1:-1;;;22399:58:0;;;22372:86;;22392:5;;22372:19;:86::i;:::-;22255:211;;;:::o;22474:248::-;22645:68;;;-1:-1:-1;;;;;22645:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22645:68:0;-1:-1:-1;;;22645:68:0;;;22618:96;;22638:5;;22618:19;:96::i;:::-;22474:248;;;;:::o;4300:179::-;4358:7;4390:5;;;4414:6;;;;4406:46;;;;;-1:-1:-1;;;4406:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;35797:309;35872:7;35903:13;;35896:3;:20;35892:207;;35940:14;:3;35948:5;35940:7;:14::i;:::-;35933:21;;;;35892:207;35985:13;;35976:5;:22;35972:127;;-1:-1:-1;36022:1:0;36015:8;;35972:127;36063:13;;:24;;36081:5;36063:17;:24::i;24766:774::-;25190:23;25216:69;25244:4;25216:69;;;;;;;;;;;;;;;;;25224:5;-1:-1:-1;;;;;25216:27:0;;;:69;;;;;:::i;:::-;25300:17;;25190:95;;-1:-1:-1;25300:21:0;25296:237;;25455:10;25444:30;;;;;;;;;;;;;;;-1:-1:-1;25444:30:0;25436:85;;;;-1:-1:-1;;;25436:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17610:229;17747:12;17779:52;17801:6;17809:4;17815:1;17818:12;17779:21;:52::i;:::-;17772:59;;17610:229;;;;;;:::o;18730:571::-;18900:12;18958:5;18933:21;:30;;18925:81;;;;-1:-1:-1;;;18925:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19025:18;19036:6;19025:10;:18::i;:::-;19017:60;;;;;-1:-1:-1;;;19017:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19151:12;19165:23;19192:6;-1:-1:-1;;;;;19192:11:0;19211:5;19218:4;19192:31;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;19192:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19150:73;;;;19241:52;19259:7;19268:10;19280:12;19241:17;:52::i;:::-;19234:59;18730:571;-1:-1:-1;;;;;;;18730:571:0:o;14670:444::-;15050:20;15098:8;;;14670:444::o;21379:777::-;21529:12;21558:7;21554:595;;;-1:-1:-1;21589:10:0;21582:17;;21554:595;21703:17;;:21;21699:439;;21966:10;21960:17;22027:15;22014:10;22010:2;22006:19;21999:44;21914:148;22109:12;22102:20;;-1:-1:-1;;;22102:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://eb8665bf128db7b1618c8697b8e5712c5a7b909e5a7ac3d4cb833888645c8987
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.