More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 394 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw All | 20573612 | 2 days ago | IN | 0 ETH | 0.00094351 | ||||
Claim | 19871609 | 100 days ago | IN | 0 ETH | 0.001977 | ||||
Withdraw All | 19748212 | 117 days ago | IN | 0 ETH | 0.00131763 | ||||
Claim | 19706643 | 123 days ago | IN | 0 ETH | 0.00128757 | ||||
Withdraw All | 19706637 | 123 days ago | IN | 0 ETH | 0.00121475 | ||||
Claim | 19684797 | 126 days ago | IN | 0 ETH | 0.00212046 | ||||
Withdraw All | 19684789 | 126 days ago | IN | 0 ETH | 0.00232794 | ||||
Withdraw All | 19465878 | 157 days ago | IN | 0 ETH | 0.0053147 | ||||
Claim | 19410048 | 164 days ago | IN | 0 ETH | 0.00689496 | ||||
Withdraw All | 19410046 | 164 days ago | IN | 0 ETH | 0.0065937 | ||||
Claim | 19111850 | 206 days ago | IN | 0 ETH | 0.00212583 | ||||
Withdraw All | 19072837 | 212 days ago | IN | 0 ETH | 0.0037337 | ||||
Claim | 19044494 | 216 days ago | IN | 0 ETH | 0.00297044 | ||||
Withdraw All | 19044491 | 216 days ago | IN | 0 ETH | 0.00500828 | ||||
Claim | 19044483 | 216 days ago | IN | 0 ETH | 0.00261863 | ||||
Deposit | 19044476 | 216 days ago | IN | 0 ETH | 0.00085269 | ||||
Deposit | 19044466 | 216 days ago | IN | 0 ETH | 0.00085187 | ||||
Deposit | 19044462 | 216 days ago | IN | 0 ETH | 0.00085867 | ||||
Deposit | 19044455 | 216 days ago | IN | 0 ETH | 0.00102683 | ||||
Withdraw All | 19044416 | 216 days ago | IN | 0 ETH | 0.0008155 | ||||
Withdraw All | 19044411 | 216 days ago | IN | 0 ETH | 0.0052693 | ||||
Claim | 19044377 | 216 days ago | IN | 0 ETH | 0.00306966 | ||||
Withdraw All | 19007544 | 221 days ago | IN | 0 ETH | 0.0041326 | ||||
Claim | 19007541 | 221 days ago | IN | 0 ETH | 0.00367741 | ||||
Withdraw All | 18941728 | 230 days ago | IN | 0 ETH | 0.0061308 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
19871609 | 100 days ago | 0.00930285 ETH | ||||
19706643 | 123 days ago | 0.00278787 ETH | ||||
19684797 | 126 days ago | 0.00091744 ETH | ||||
19410048 | 164 days ago | 0.01105755 ETH | ||||
19111850 | 206 days ago | 0.00307446 ETH | ||||
19044494 | 216 days ago | 0.00115751 ETH | ||||
19044483 | 216 days ago | 0.01523931 ETH | ||||
19044377 | 216 days ago | 0.03238076 ETH | ||||
19007541 | 221 days ago | 0.00031764 ETH | ||||
18884248 | 238 days ago | 0.00601055 ETH | ||||
18864358 | 241 days ago | 0.01260553 ETH | ||||
18833686 | 245 days ago | 0.00307422 ETH | ||||
18784868 | 252 days ago | 0.00223169 ETH | ||||
18779693 | 253 days ago | 0.01007057 ETH | ||||
18772366 | 254 days ago | 0.0094409 ETH | ||||
18742734 | 258 days ago | 0.00104433 ETH | ||||
18647019 | 271 days ago | 0.00281724 ETH | ||||
18612826 | 276 days ago | 0.0079808 ETH | ||||
18556262 | 284 days ago | 0.00764669 ETH | ||||
18509330 | 291 days ago | 0.00198026 ETH | ||||
18484373 | 294 days ago | 0.01752732 ETH | ||||
18472573 | 296 days ago | 0.0480005 ETH | ||||
18463924 | 297 days ago | 0.01183447 ETH | ||||
18439765 | 300 days ago | 0.00241156 ETH | ||||
18359021 | 312 days ago | 0.00208824 ETH |
Loading...
Loading
Contract Name:
VenomStaking
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)Audit Report
/** *Submitted for verification at Etherscan.io on 2023-05-29 */ // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity 0.8.17; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File @openzeppelin/contracts/utils/[email protected] /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/access/[email protected] /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File @openzeppelin/contracts/security/[email protected] /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File @openzeppelin/contracts/token/ERC20/[email protected] /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, 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); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/token/ERC20/[email protected] /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File @openzeppelin/contracts/utils/[email protected] /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File @openzeppelin/contracts/utils/math/[email protected] // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File @openzeppelin/contracts/utils/math/[email protected] /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } } // File @openzeppelin/contracts/utils/structs/[email protected] /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } } interface IVenom { function updateRewardsMultiplier() external; function claim() external; } interface IVenomRewarder { function transferRewards(address, address, uint) external returns (uint); } contract VenomStaking is Ownable, Pausable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; using EnumerableSet for EnumerableSet.AddressSet; struct UserInfo { uint256 amount; uint256 rewardDebt; uint256 pendingRewards; uint256 depositedAt; uint256 claimedAt; } uint256 public lastUpdateTime; uint256 public accPerShare; uint256 public totalSupply; uint256 public totalReward; uint256 public collectedPenalty; IERC20 public immutable stakingToken; IVenomRewarder public immutable rewarder; address public feeRecipient; uint256 public penaltyFee = 1500; uint256 public constant MAX_FEE = 10000; uint256 public constant FEE_LIMIT = 2000; // 20% max fee uint256 public rewardRate = uint256(0.00000001 ether); uint256 public endTime; uint256 public rewardCycle = 24 hours; mapping(address => UserInfo) public userInfo; EnumerableSet.AddressSet users; event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); event Claim(address indexed user, uint256 amount); modifier updateUserList { _; if (userInfo[msg.sender].amount > 0 || userInfo[msg.sender].pendingRewards > 0) _checkOrAddUser(msg.sender); else _removeUser(msg.sender); } modifier updateReward { UserInfo storage user = userInfo[msg.sender]; if (totalSupply > 0) { uint256 multiplier = Math.min(block.timestamp, endTime).sub(lastUpdateTime); uint256 reward = multiplier.mul(rewardRate); totalReward = totalReward.add(multiplier.mul(rewardRate)); accPerShare = accPerShare.add(reward.mul(1e12).div(totalSupply)); } lastUpdateTime = Math.min(block.timestamp, endTime); uint256 pending = user.amount.mul(accPerShare).div(1e12).sub(user.rewardDebt); user.pendingRewards = user.pendingRewards.add(pending); _; user.rewardDebt = user.amount.mul(accPerShare).div(1e12); if (user.claimedAt == 0) user.claimedAt = block.timestamp; } constructor(address _stakingToken, address _rewarder) { stakingToken = IERC20(_stakingToken); rewarder = IVenomRewarder(_rewarder); feeRecipient = msg.sender; lastUpdateTime = block.timestamp; endTime = block.timestamp.add(36500 days); // In default, 100 years } function setEndTime(uint256 _time) external onlyOwner { require (block.timestamp < _time, "Error: Time already expired"); endTime = _time; } function restartPeriod(uint256 _minutes) external onlyOwner { require (block.timestamp > endTime, "Error: Staking pool has ended"); endTime = block.timestamp.add(_minutes.mul(1 minutes)); lastUpdateTime = block.timestamp; } function setRewardCycle(uint256 _cycleMinutes) external onlyOwner { rewardCycle = _cycleMinutes.mul(1 minutes); } function deposit(uint256 amount) external nonReentrant whenNotPaused updateReward updateUserList { require (block.timestamp < endTime, "Error: Staking pool has ended"); UserInfo storage user = userInfo[msg.sender]; uint before = stakingToken.balanceOf(address(this)); stakingToken.safeTransferFrom(msg.sender, address(this), amount); amount = stakingToken.balanceOf(address(this)).sub(before); user.amount = user.amount.add(amount); user.depositedAt = block.timestamp; totalSupply = totalSupply.add(amount); IVenom(0x804ea14b08dEc488e5B0bC408f23EEf107fE3717).updateRewardsMultiplier(); emit Deposit(msg.sender, amount); } function withdraw( uint256 amount) public nonReentrant updateReward updateUserList { UserInfo storage user = userInfo[msg.sender]; if (penaltyFee == 0) { require(block.timestamp >= endTime, "You cannot withdraw yet!"); } require(amount > 0 && user.amount >= amount, "Error: Exceeded withdraw Amount"); uint256 feeAmount = 0; if (penaltyFee > 0 && block.timestamp < endTime) { feeAmount = amount.mul(penaltyFee).div(MAX_FEE); } if (feeAmount > 0) stakingToken.safeTransfer(feeRecipient, feeAmount); // collectedPenalty += feeAmount; stakingToken.safeTransfer(address(msg.sender), amount.sub(feeAmount)); user.amount = user.amount.sub(amount); user.depositedAt = block.timestamp; totalSupply = totalSupply.sub(amount); emit Withdraw(msg.sender, amount); } function UpdateRewardsMultiplier() external onlyOwner { IVenom(0x804ea14b08dEc488e5B0bC408f23EEf107fE3717).updateRewardsMultiplier(); } function ClaimUserDividends() external onlyOwner { IVenom(0x804ea14b08dEc488e5B0bC408f23EEf107fE3717).claim(); } function withdrawAll() external { UserInfo storage user = userInfo[msg.sender]; withdraw(user.amount); } function claim() public nonReentrant updateReward updateUserList { UserInfo storage user = userInfo[msg.sender]; require (block.timestamp.sub(user.claimedAt) >= rewardCycle, "Error: ClaimWait hasnt Passed"); uint claimedAmount = user.pendingRewards; rewarder.transferRewards(address(stakingToken), msg.sender, claimedAmount); _safeTransferDividends(msg.sender, user.pendingRewards); user.pendingRewards = 0; user.claimedAt = block.timestamp; totalReward = totalReward.sub(claimedAmount); emit Claim(msg.sender, claimedAmount); } function claimable(address _user) external view returns (uint256, uint256) { UserInfo storage user = userInfo[_user]; if (user.amount == 0) return (user.pendingRewards, 0); uint256 curAccPerShare = accPerShare; uint256 curTotalReward = totalReward; if (totalSupply > 0) { uint256 multiplier = Math.min(block.timestamp, endTime).sub(lastUpdateTime); uint256 reward = multiplier.mul(rewardRate); curTotalReward += reward; curAccPerShare = accPerShare.add(reward.mul(1e12).div(totalSupply)); } uint amount = user.amount; uint available = amount.mul(curAccPerShare).div(1e12).sub(user.rewardDebt).add(user.pendingRewards); uint dividendAmount = address(this).balance; uint dividendReward = 0; if (curTotalReward > 0) { dividendReward = dividendAmount.mul(available).div(curTotalReward); } return (available, dividendReward); } function _safeTransferDividends(address _to, uint256 _rewardAmount) internal returns (uint256) { uint dividendAmount = address(this).balance; if (dividendAmount == 0 || totalReward == 0) return 0; require (_rewardAmount <= totalReward, "invalid reward amount"); uint dividendReward = dividendAmount.mul(_rewardAmount).div(totalReward); if (dividendReward > 0) { payable(_to).call{value: dividendReward, gas: 3000}(""); } return dividendReward; } function setRewardRate(uint256 _rewardRate) external onlyOwner { require (endTime > block.timestamp, "expired"); require (_rewardRate > 0, "Rewards per second should be greater than 0!"); // Update pool infos with old reward rate before setting new one first if (totalSupply > 0) { uint256 multiplier = block.timestamp.sub(lastUpdateTime); uint256 reward = multiplier.mul(rewardRate); totalReward = totalReward.add(reward); accPerShare = accPerShare.add(reward.mul(1e12).div(totalSupply)); } lastUpdateTime = block.timestamp; rewardRate = _rewardRate; } function setPenaltyFee(uint256 _fee) external onlyOwner { require(_fee < FEE_LIMIT, "invalid fee"); penaltyFee = _fee; } function setFeeRecipient(address _recipient) external onlyOwner { feeRecipient = _recipient; } function _removeUser(address _user) internal { if (users.contains(_user) == true) { users.remove(_user); } } function _checkOrAddUser(address _user) internal { if (users.contains(_user) == false) { users.add(_user); } } function userCount() external view returns (uint) { return users.length(); } function userList() external view onlyOwner returns (address[] memory) { address[] memory list = new address[](users.length()); for (uint256 i = 0; i < users.length(); i++) { list[i] = users.at(i); } return list; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } receive() external payable {} }
Contract Security Audit
- InterFi Network - June 3rd, 2023 - Security Audit Report
[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewarder","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","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":"ClaimUserDividends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"FEE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UpdateRewardsMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"accPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectedPenalty","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":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"penaltyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minutes","type":"uint256"}],"name":"restartPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardCycle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewarder","outputs":[{"internalType":"contract IVenomRewarder","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"setEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setPenaltyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cycleMinutes","type":"uint256"}],"name":"setRewardCycle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardRate","type":"uint256"}],"name":"setRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"pendingRewards","type":"uint256"},{"internalType":"uint256","name":"depositedAt","type":"uint256"},{"internalType":"uint256","name":"claimedAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"userList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040526105dc6008556402540be40060095562015180600b553480156200002757600080fd5b50604051620024b5380380620024b58339810160408190526200004a916200013f565b6200005533620000bb565b6000805460ff60a01b19169055600180556001600160a01b03828116608052811660a05260078054336001600160a01b0319909116179055426002819055620000af9063bbf81e006200010b602090811b6200186917901c565b600a5550620001999050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600062000119828462000177565b90505b92915050565b80516001600160a01b03811681146200013a57600080fd5b919050565b600080604083850312156200015357600080fd5b6200015e8362000122565b91506200016e6020840162000122565b90509250929050565b808201808211156200011c57634e487b7160e01b600052601160045260246000fd5b60805160a0516122c5620001f06000396000818161063d0152610e9701526000818161049301528181610a6901528181610aaa01528181610e62015281816115140152818161158e01526115d901526122c56000f3fe6080604052600436106102135760003560e01c8063750142e611610118578063b0b84374116100a0578063ccb98ffc1161006f578063ccb98ffc146105f5578063d2890a0114610615578063dcc3e06e1461062b578063e74b981b1461065f578063f2fde38b1461067f57600080fd5b8063b0b8437414610593578063b6b55f25146105a9578063bc063e1a146105c9578063c8f33c91146105df57600080fd5b80638456cb59116100e75780638456cb5914610516578063853828b61461052b5780638da5cb5b146105405780639e447fc61461055e5780639f6947171461057e57600080fd5b8063750142e6146104b55780637646c038146104cb5780637b0a47ee146104eb578063829aaabb1461050157600080fd5b80633dc10ad41161019b5780634e71d92d1161016a5780634e71d92d146104175780635c975abb1461042c5780636ee010ae14610456578063715018a61461046c57806372f702f31461048157600080fd5b80633dc10ad41461037f5780633f4ba83a14610395578063402914f5146103aa57806346904840146103df57600080fd5b80631959a002116101e25780631959a002146102a157806322c28011146103135780632e1a7d4d146103335780633197cbb614610353578063326bb80d1461036957600080fd5b806307973ccf1461021f5780630e0f785f1461024757806310c4f4341461026957806318160ddd1461028b57600080fd5b3661021a57005b600080fd5b34801561022b57600080fd5b5061023461069f565b6040519081526020015b60405180910390f35b34801561025357600080fd5b5061025c6106b0565b60405161023e9190612016565b34801561027557600080fd5b50610289610284366004612063565b610797565b005b34801561029757600080fd5b5061023460045481565b3480156102ad57600080fd5b506102eb6102bc36600461207c565b600c60205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a00161023e565b34801561031f57600080fd5b5061028961032e366004612063565b610805565b34801561033f57600080fd5b5061028961034e366004612063565b610840565b34801561035f57600080fd5b50610234600a5481565b34801561037557600080fd5b5061023460065481565b34801561038b57600080fd5b5061023460085481565b3480156103a157600080fd5b50610289610bb1565b3480156103b657600080fd5b506103ca6103c536600461207c565b610be5565b6040805192835260208301919091520161023e565b3480156103eb57600080fd5b506007546103ff906001600160a01b031681565b6040516001600160a01b03909116815260200161023e565b34801561042357600080fd5b50610289610ce1565b34801561043857600080fd5b50600054600160a01b900460ff16604051901515815260200161023e565b34801561046257600080fd5b50610234600b5481565b34801561047857600080fd5b50610289610feb565b34801561048d57600080fd5b506103ff7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104c157600080fd5b5061023460055481565b3480156104d757600080fd5b506102896104e6366004612063565b61101f565b3480156104f757600080fd5b5061023460095481565b34801561050d57600080fd5b506102896110b9565b34801561052257600080fd5b5061028961114c565b34801561053757600080fd5b5061028961117e565b34801561054c57600080fd5b506000546001600160a01b03166103ff565b34801561056a57600080fd5b50610289610579366004612063565b61119b565b34801561058a57600080fd5b506102896112d9565b34801561059f57600080fd5b506102346107d081565b3480156105b557600080fd5b506102896105c4366004612063565b611352565b3480156105d557600080fd5b5061023461271081565b3480156105eb57600080fd5b5061023460025481565b34801561060157600080fd5b50610289610610366004612063565b611707565b34801561062157600080fd5b5061023460035481565b34801561063757600080fd5b506103ff7f000000000000000000000000000000000000000000000000000000000000000081565b34801561066b57600080fd5b5061028961067a36600461207c565b611785565b34801561068b57600080fd5b5061028961069a36600461207c565b6117d1565b60006106ab600d61187e565b905090565b6000546060906001600160a01b031633146106e65760405162461bcd60e51b81526004016106dd906120a5565b60405180910390fd5b60006106f2600d61187e565b67ffffffffffffffff81111561070a5761070a6120da565b604051908082528060200260200182016040528015610733578160200160208202803683370190505b50905060005b610743600d61187e565b81101561079157610755600d82611888565b828281518110610767576107676120f0565b6001600160a01b0390921660209283029190910190910152806107898161211c565b915050610739565b50905090565b6000546001600160a01b031633146107c15760405162461bcd60e51b81526004016106dd906120a5565b6107d081106108005760405162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b60448201526064016106dd565b600855565b6000546001600160a01b0316331461082f5760405162461bcd60e51b81526004016106dd906120a5565b61083a81603c611894565b600b5550565b6002600154036108625760405162461bcd60e51b81526004016106dd90612135565b6002600155336000908152600c602052604090206004541561090657600061089860025461089242600a546118a0565b906118b6565b905060006108b16009548361189490919063ffffffff16565b90506108d46108cb6009548461189490919063ffffffff16565b60055490611869565b600555600454610900906108f7906108f18464e8d4a51000611894565b906118c2565b60035490611869565b60035550505b61091242600a546118a0565b6002556001810154600354825460009261093c9290916108929164e8d4a51000916108f191611894565b600283015490915061094e9082611869565b6002830155336000908152600c602052604081206008549091036109be57600a544210156109be5760405162461bcd60e51b815260206004820152601860248201527f596f752063616e6e6f742077697468647261772079657421000000000000000060448201526064016106dd565b6000841180156109cf575080548411155b610a1b5760405162461bcd60e51b815260206004820152601f60248201527f4572726f723a20457863656564656420776974686472617720416d6f756e740060448201526064016106dd565b600080600854118015610a2f5750600a5442105b15610a5257610a4f6127106108f16008548861189490919063ffffffff16565b90505b8015610a9257600754610a92906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116836118ce565b610ad133610aa087846118b6565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691906118ce565b8154610add90866118b6565b8255426003830155600454610af290866118b6565b60045560405185815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a25050336000908152600c6020526040902054151580610b5b5750336000908152600c602052604090206002015415155b15610b6e57610b6933611936565b610b77565b610b7733611959565b6003548254610b909164e8d4a51000916108f191611894565b60018301556004820154600003610ba8574260048301555b50506001805550565b6000546001600160a01b03163314610bdb5760405162461bcd60e51b81526004016106dd906120a5565b610be3611978565b565b6001600160a01b0381166000908152600c6020526040812080548291908203610c1657600201549360009350915050565b60035460055460045415610c85576000610c3860025461089242600a546118a0565b90506000610c516009548361189490919063ffffffff16565b9050610c5d818461216c565b9250610c806108f76004546108f164e8d4a510008561189490919063ffffffff16565b935050505b825460028401546001850154600091610cb591610caf9061089264e8d4a510006108f1888b611894565b90611869565b90504760008415610cd157610cce856108f18486611894565b90505b9199919850909650505050505050565b600260015403610d035760405162461bcd60e51b81526004016106dd90612135565b6002600155336000908152600c6020526040902060045415610d89576000610d3360025461089242600a546118a0565b90506000610d4c6009548361189490919063ffffffff16565b9050610d666108cb6009548461189490919063ffffffff16565b600555600454610d83906108f7906108f18464e8d4a51000611894565b60035550505b610d9542600a546118a0565b60025560018101546003548254600092610dbf9290916108929164e8d4a51000916108f191611894565b6002830154909150610dd19082611869565b6002830155336000908152600c60205260409020600b546004820154610df89042906118b6565b1015610e465760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a20436c61696d57616974206861736e742050617373656400000060448201526064016106dd565b600281015460405163611c537960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152336024830152604482018390527f0000000000000000000000000000000000000000000000000000000000000000169063611c5379906064016020604051808303816000875af1158015610ee0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f04919061217f565b50610f13338360020154611a15565b5060006002830155426004830155600554610f2e90826118b6565b60055560405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a25050336000908152600c6020526040902054151580610f965750336000908152600c602052604090206002015415155b15610fa957610fa433611936565b610fb2565b610fb233611959565b6003548254610fcb9164e8d4a51000916108f191611894565b60018301556004820154600003610fe3574260048301555b505060018055565b6000546001600160a01b031633146110155760405162461bcd60e51b81526004016106dd906120a5565b610be36000611af9565b6000546001600160a01b031633146110495760405162461bcd60e51b81526004016106dd906120a5565b600a54421161109a5760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a205374616b696e6720706f6f6c2068617320656e64656400000060448201526064016106dd565b6110af6110a882603c611894565b4290611869565b600a555042600255565b6000546001600160a01b031633146110e35760405162461bcd60e51b81526004016106dd906120a5565b73804ea14b08dec488e5b0bc408f23eef107fe37176001600160a01b031663945647746040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561113257600080fd5b505af1158015611146573d6000803e3d6000fd5b50505050565b6000546001600160a01b031633146111765760405162461bcd60e51b81526004016106dd906120a5565b610be3611b49565b336000908152600c60205260409020805461119890610840565b50565b6000546001600160a01b031633146111c55760405162461bcd60e51b81526004016106dd906120a5565b42600a54116112005760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b60448201526064016106dd565b600081116112655760405162461bcd60e51b815260206004820152602c60248201527f5265776172647320706572207365636f6e642073686f756c642062652067726560448201526b61746572207468616e20302160a01b60648201526084016106dd565b600454156112d0576000611284600254426118b690919063ffffffff16565b9050600061129d6009548361189490919063ffffffff16565b6005549091506112ad9082611869565b6005556004546112ca906108f7906108f18464e8d4a51000611894565b60035550505b42600255600955565b6000546001600160a01b031633146113035760405162461bcd60e51b81526004016106dd906120a5565b73804ea14b08dec488e5b0bc408f23eef107fe37176001600160a01b0316634e71d92d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561113257600080fd5b6002600154036113745760405162461bcd60e51b81526004016106dd90612135565b6002600155600054600160a01b900460ff16156113c65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106dd565b336000908152600c60205260409020600454156114475760006113f160025461089242600a546118a0565b9050600061140a6009548361189490919063ffffffff16565b90506114246108cb6009548461189490919063ffffffff16565b600555600454611441906108f7906108f18464e8d4a51000611894565b60035550505b61145342600a546118a0565b6002556001810154600354825460009261147d9290916108929164e8d4a51000916108f191611894565b600283015490915061148f9082611869565b6002830155600a5442106114e55760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a205374616b696e6720706f6f6c2068617320656e64656400000060448201526064016106dd565b336000908152600c602052604080822090516370a0823160e01b81523060048201529091906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561155b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157f919061217f565b90506115b66001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333088611bd1565b6040516370a0823160e01b81523060048201526116449082906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611620573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610892919061217f565b82549095506116539086611869565b82554260038301556004546116689086611869565b60048190555073804ea14b08dec488e5b0bc408f23eef107fe37176001600160a01b031663945647746040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156116bd57600080fd5b505af11580156116d1573d6000803e3d6000fd5b50506040518781523392507fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9150602001610b23565b6000546001600160a01b031633146117315760405162461bcd60e51b81526004016106dd906120a5565b8042106117805760405162461bcd60e51b815260206004820152601b60248201527f4572726f723a2054696d6520616c72656164792065787069726564000000000060448201526064016106dd565b600a55565b6000546001600160a01b031633146117af5760405162461bcd60e51b81526004016106dd906120a5565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146117fb5760405162461bcd60e51b81526004016106dd906120a5565b6001600160a01b0381166118605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106dd565b61119881611af9565b6000611875828461216c565b90505b92915050565b6000611878825490565b60006118758383611c09565b60006118758284612198565b60008183106118af5781611875565b5090919050565b600061187582846121af565b600061187582846121c2565b6040516001600160a01b03831660248201526044810182905261193190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611c33565b505050565b611941600d82611d05565b151560000361119857611955600d82611d27565b5050565b611964600d82611d05565b151560010361119857611955600d82611d3c565b600054600160a01b900460ff166119c85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016106dd565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600047801580611a255750600554155b15611a34576000915050611878565b600554831115611a7e5760405162461bcd60e51b81526020600482015260156024820152741a5b9d985b1a59081c995dd85c9908185b5bdd5b9d605a1b60448201526064016106dd565b600554600090611a92906108f18487611894565b90508015611af1576040516001600160a01b03861690610bb89083906000818181858888f193505050503d8060008114611ae8576040519150601f19603f3d011682016040523d82523d6000602084013e611aed565b606091505b5050505b949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff1615611b965760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106dd565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119f83390565b6040516001600160a01b03808516602483015283166044820152606481018290526111469085906323b872dd60e01b906084016118fa565b6000826000018281548110611c2057611c206120f0565b9060005260206000200154905092915050565b6000611c88826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d519092919063ffffffff16565b8051909150156119315780806020019051810190611ca691906121e4565b6119315760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106dd565b6001600160a01b03811660009081526001830160205260408120541515611875565b6000611875836001600160a01b038416611d6a565b6000611875836001600160a01b038416611db9565b6060611d608484600085611eac565b90505b9392505050565b6000818152600183016020526040812054611db157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611878565b506000611878565b60008181526001830160205260408120548015611ea2576000611ddd6001836121af565b8554909150600090611df1906001906121af565b9050818114611e56576000866000018281548110611e1157611e116120f0565b9060005260206000200154905080876000018481548110611e3457611e346120f0565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e6757611e67612206565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611878565b6000915050611878565b606082471015611f0d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106dd565b6001600160a01b0385163b611f645760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106dd565b600080866001600160a01b03168587604051611f809190612240565b60006040518083038185875af1925050503d8060008114611fbd576040519150601f19603f3d011682016040523d82523d6000602084013e611fc2565b606091505b5091509150611fd2828286611fdd565b979650505050505050565b60608315611fec575081611d63565b825115611ffc5782518084602001fd5b8160405162461bcd60e51b81526004016106dd919061225c565b6020808252825182820181905260009190848201906040850190845b818110156120575783516001600160a01b031683529284019291840191600101612032565b50909695505050505050565b60006020828403121561207557600080fd5b5035919050565b60006020828403121561208e57600080fd5b81356001600160a01b0381168114611d6357600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161212e5761212e612106565b5060010190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8082018082111561187857611878612106565b60006020828403121561219157600080fd5b5051919050565b808202811582820484141761187857611878612106565b8181038181111561187857611878612106565b6000826121df57634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156121f657600080fd5b81518015158114611d6357600080fd5b634e487b7160e01b600052603160045260246000fd5b60005b8381101561223757818101518382015260200161221f565b50506000910152565b6000825161225281846020870161221c565b9190910192915050565b602081526000825180602084015261227b81604085016020870161221c565b601f01601f1916919091016040019291505056fea2646970667358221220104813a4b241b1096446e145c75aea7aac33cd6950d9e96acc5bd18c0578b6c564736f6c63430008110033000000000000000000000000804ea14b08dec488e5b0bc408f23eef107fe3717000000000000000000000000ad45fe74bbeb7d7eb36f98f44085d8a53ef1aeac
Deployed Bytecode
0x6080604052600436106102135760003560e01c8063750142e611610118578063b0b84374116100a0578063ccb98ffc1161006f578063ccb98ffc146105f5578063d2890a0114610615578063dcc3e06e1461062b578063e74b981b1461065f578063f2fde38b1461067f57600080fd5b8063b0b8437414610593578063b6b55f25146105a9578063bc063e1a146105c9578063c8f33c91146105df57600080fd5b80638456cb59116100e75780638456cb5914610516578063853828b61461052b5780638da5cb5b146105405780639e447fc61461055e5780639f6947171461057e57600080fd5b8063750142e6146104b55780637646c038146104cb5780637b0a47ee146104eb578063829aaabb1461050157600080fd5b80633dc10ad41161019b5780634e71d92d1161016a5780634e71d92d146104175780635c975abb1461042c5780636ee010ae14610456578063715018a61461046c57806372f702f31461048157600080fd5b80633dc10ad41461037f5780633f4ba83a14610395578063402914f5146103aa57806346904840146103df57600080fd5b80631959a002116101e25780631959a002146102a157806322c28011146103135780632e1a7d4d146103335780633197cbb614610353578063326bb80d1461036957600080fd5b806307973ccf1461021f5780630e0f785f1461024757806310c4f4341461026957806318160ddd1461028b57600080fd5b3661021a57005b600080fd5b34801561022b57600080fd5b5061023461069f565b6040519081526020015b60405180910390f35b34801561025357600080fd5b5061025c6106b0565b60405161023e9190612016565b34801561027557600080fd5b50610289610284366004612063565b610797565b005b34801561029757600080fd5b5061023460045481565b3480156102ad57600080fd5b506102eb6102bc36600461207c565b600c60205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a00161023e565b34801561031f57600080fd5b5061028961032e366004612063565b610805565b34801561033f57600080fd5b5061028961034e366004612063565b610840565b34801561035f57600080fd5b50610234600a5481565b34801561037557600080fd5b5061023460065481565b34801561038b57600080fd5b5061023460085481565b3480156103a157600080fd5b50610289610bb1565b3480156103b657600080fd5b506103ca6103c536600461207c565b610be5565b6040805192835260208301919091520161023e565b3480156103eb57600080fd5b506007546103ff906001600160a01b031681565b6040516001600160a01b03909116815260200161023e565b34801561042357600080fd5b50610289610ce1565b34801561043857600080fd5b50600054600160a01b900460ff16604051901515815260200161023e565b34801561046257600080fd5b50610234600b5481565b34801561047857600080fd5b50610289610feb565b34801561048d57600080fd5b506103ff7f000000000000000000000000804ea14b08dec488e5b0bc408f23eef107fe371781565b3480156104c157600080fd5b5061023460055481565b3480156104d757600080fd5b506102896104e6366004612063565b61101f565b3480156104f757600080fd5b5061023460095481565b34801561050d57600080fd5b506102896110b9565b34801561052257600080fd5b5061028961114c565b34801561053757600080fd5b5061028961117e565b34801561054c57600080fd5b506000546001600160a01b03166103ff565b34801561056a57600080fd5b50610289610579366004612063565b61119b565b34801561058a57600080fd5b506102896112d9565b34801561059f57600080fd5b506102346107d081565b3480156105b557600080fd5b506102896105c4366004612063565b611352565b3480156105d557600080fd5b5061023461271081565b3480156105eb57600080fd5b5061023460025481565b34801561060157600080fd5b50610289610610366004612063565b611707565b34801561062157600080fd5b5061023460035481565b34801561063757600080fd5b506103ff7f000000000000000000000000ad45fe74bbeb7d7eb36f98f44085d8a53ef1aeac81565b34801561066b57600080fd5b5061028961067a36600461207c565b611785565b34801561068b57600080fd5b5061028961069a36600461207c565b6117d1565b60006106ab600d61187e565b905090565b6000546060906001600160a01b031633146106e65760405162461bcd60e51b81526004016106dd906120a5565b60405180910390fd5b60006106f2600d61187e565b67ffffffffffffffff81111561070a5761070a6120da565b604051908082528060200260200182016040528015610733578160200160208202803683370190505b50905060005b610743600d61187e565b81101561079157610755600d82611888565b828281518110610767576107676120f0565b6001600160a01b0390921660209283029190910190910152806107898161211c565b915050610739565b50905090565b6000546001600160a01b031633146107c15760405162461bcd60e51b81526004016106dd906120a5565b6107d081106108005760405162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b60448201526064016106dd565b600855565b6000546001600160a01b0316331461082f5760405162461bcd60e51b81526004016106dd906120a5565b61083a81603c611894565b600b5550565b6002600154036108625760405162461bcd60e51b81526004016106dd90612135565b6002600155336000908152600c602052604090206004541561090657600061089860025461089242600a546118a0565b906118b6565b905060006108b16009548361189490919063ffffffff16565b90506108d46108cb6009548461189490919063ffffffff16565b60055490611869565b600555600454610900906108f7906108f18464e8d4a51000611894565b906118c2565b60035490611869565b60035550505b61091242600a546118a0565b6002556001810154600354825460009261093c9290916108929164e8d4a51000916108f191611894565b600283015490915061094e9082611869565b6002830155336000908152600c602052604081206008549091036109be57600a544210156109be5760405162461bcd60e51b815260206004820152601860248201527f596f752063616e6e6f742077697468647261772079657421000000000000000060448201526064016106dd565b6000841180156109cf575080548411155b610a1b5760405162461bcd60e51b815260206004820152601f60248201527f4572726f723a20457863656564656420776974686472617720416d6f756e740060448201526064016106dd565b600080600854118015610a2f5750600a5442105b15610a5257610a4f6127106108f16008548861189490919063ffffffff16565b90505b8015610a9257600754610a92906001600160a01b037f000000000000000000000000804ea14b08dec488e5b0bc408f23eef107fe371781169116836118ce565b610ad133610aa087846118b6565b6001600160a01b037f000000000000000000000000804ea14b08dec488e5b0bc408f23eef107fe37171691906118ce565b8154610add90866118b6565b8255426003830155600454610af290866118b6565b60045560405185815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a25050336000908152600c6020526040902054151580610b5b5750336000908152600c602052604090206002015415155b15610b6e57610b6933611936565b610b77565b610b7733611959565b6003548254610b909164e8d4a51000916108f191611894565b60018301556004820154600003610ba8574260048301555b50506001805550565b6000546001600160a01b03163314610bdb5760405162461bcd60e51b81526004016106dd906120a5565b610be3611978565b565b6001600160a01b0381166000908152600c6020526040812080548291908203610c1657600201549360009350915050565b60035460055460045415610c85576000610c3860025461089242600a546118a0565b90506000610c516009548361189490919063ffffffff16565b9050610c5d818461216c565b9250610c806108f76004546108f164e8d4a510008561189490919063ffffffff16565b935050505b825460028401546001850154600091610cb591610caf9061089264e8d4a510006108f1888b611894565b90611869565b90504760008415610cd157610cce856108f18486611894565b90505b9199919850909650505050505050565b600260015403610d035760405162461bcd60e51b81526004016106dd90612135565b6002600155336000908152600c6020526040902060045415610d89576000610d3360025461089242600a546118a0565b90506000610d4c6009548361189490919063ffffffff16565b9050610d666108cb6009548461189490919063ffffffff16565b600555600454610d83906108f7906108f18464e8d4a51000611894565b60035550505b610d9542600a546118a0565b60025560018101546003548254600092610dbf9290916108929164e8d4a51000916108f191611894565b6002830154909150610dd19082611869565b6002830155336000908152600c60205260409020600b546004820154610df89042906118b6565b1015610e465760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a20436c61696d57616974206861736e742050617373656400000060448201526064016106dd565b600281015460405163611c537960e01b81526001600160a01b037f000000000000000000000000804ea14b08dec488e5b0bc408f23eef107fe371781166004830152336024830152604482018390527f000000000000000000000000ad45fe74bbeb7d7eb36f98f44085d8a53ef1aeac169063611c5379906064016020604051808303816000875af1158015610ee0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f04919061217f565b50610f13338360020154611a15565b5060006002830155426004830155600554610f2e90826118b6565b60055560405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a25050336000908152600c6020526040902054151580610f965750336000908152600c602052604090206002015415155b15610fa957610fa433611936565b610fb2565b610fb233611959565b6003548254610fcb9164e8d4a51000916108f191611894565b60018301556004820154600003610fe3574260048301555b505060018055565b6000546001600160a01b031633146110155760405162461bcd60e51b81526004016106dd906120a5565b610be36000611af9565b6000546001600160a01b031633146110495760405162461bcd60e51b81526004016106dd906120a5565b600a54421161109a5760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a205374616b696e6720706f6f6c2068617320656e64656400000060448201526064016106dd565b6110af6110a882603c611894565b4290611869565b600a555042600255565b6000546001600160a01b031633146110e35760405162461bcd60e51b81526004016106dd906120a5565b73804ea14b08dec488e5b0bc408f23eef107fe37176001600160a01b031663945647746040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561113257600080fd5b505af1158015611146573d6000803e3d6000fd5b50505050565b6000546001600160a01b031633146111765760405162461bcd60e51b81526004016106dd906120a5565b610be3611b49565b336000908152600c60205260409020805461119890610840565b50565b6000546001600160a01b031633146111c55760405162461bcd60e51b81526004016106dd906120a5565b42600a54116112005760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b60448201526064016106dd565b600081116112655760405162461bcd60e51b815260206004820152602c60248201527f5265776172647320706572207365636f6e642073686f756c642062652067726560448201526b61746572207468616e20302160a01b60648201526084016106dd565b600454156112d0576000611284600254426118b690919063ffffffff16565b9050600061129d6009548361189490919063ffffffff16565b6005549091506112ad9082611869565b6005556004546112ca906108f7906108f18464e8d4a51000611894565b60035550505b42600255600955565b6000546001600160a01b031633146113035760405162461bcd60e51b81526004016106dd906120a5565b73804ea14b08dec488e5b0bc408f23eef107fe37176001600160a01b0316634e71d92d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561113257600080fd5b6002600154036113745760405162461bcd60e51b81526004016106dd90612135565b6002600155600054600160a01b900460ff16156113c65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106dd565b336000908152600c60205260409020600454156114475760006113f160025461089242600a546118a0565b9050600061140a6009548361189490919063ffffffff16565b90506114246108cb6009548461189490919063ffffffff16565b600555600454611441906108f7906108f18464e8d4a51000611894565b60035550505b61145342600a546118a0565b6002556001810154600354825460009261147d9290916108929164e8d4a51000916108f191611894565b600283015490915061148f9082611869565b6002830155600a5442106114e55760405162461bcd60e51b815260206004820152601d60248201527f4572726f723a205374616b696e6720706f6f6c2068617320656e64656400000060448201526064016106dd565b336000908152600c602052604080822090516370a0823160e01b81523060048201529091906001600160a01b037f000000000000000000000000804ea14b08dec488e5b0bc408f23eef107fe371716906370a0823190602401602060405180830381865afa15801561155b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157f919061217f565b90506115b66001600160a01b037f000000000000000000000000804ea14b08dec488e5b0bc408f23eef107fe371716333088611bd1565b6040516370a0823160e01b81523060048201526116449082906001600160a01b037f000000000000000000000000804ea14b08dec488e5b0bc408f23eef107fe371716906370a0823190602401602060405180830381865afa158015611620573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610892919061217f565b82549095506116539086611869565b82554260038301556004546116689086611869565b60048190555073804ea14b08dec488e5b0bc408f23eef107fe37176001600160a01b031663945647746040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156116bd57600080fd5b505af11580156116d1573d6000803e3d6000fd5b50506040518781523392507fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9150602001610b23565b6000546001600160a01b031633146117315760405162461bcd60e51b81526004016106dd906120a5565b8042106117805760405162461bcd60e51b815260206004820152601b60248201527f4572726f723a2054696d6520616c72656164792065787069726564000000000060448201526064016106dd565b600a55565b6000546001600160a01b031633146117af5760405162461bcd60e51b81526004016106dd906120a5565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146117fb5760405162461bcd60e51b81526004016106dd906120a5565b6001600160a01b0381166118605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106dd565b61119881611af9565b6000611875828461216c565b90505b92915050565b6000611878825490565b60006118758383611c09565b60006118758284612198565b60008183106118af5781611875565b5090919050565b600061187582846121af565b600061187582846121c2565b6040516001600160a01b03831660248201526044810182905261193190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611c33565b505050565b611941600d82611d05565b151560000361119857611955600d82611d27565b5050565b611964600d82611d05565b151560010361119857611955600d82611d3c565b600054600160a01b900460ff166119c85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016106dd565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600047801580611a255750600554155b15611a34576000915050611878565b600554831115611a7e5760405162461bcd60e51b81526020600482015260156024820152741a5b9d985b1a59081c995dd85c9908185b5bdd5b9d605a1b60448201526064016106dd565b600554600090611a92906108f18487611894565b90508015611af1576040516001600160a01b03861690610bb89083906000818181858888f193505050503d8060008114611ae8576040519150601f19603f3d011682016040523d82523d6000602084013e611aed565b606091505b5050505b949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff1615611b965760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106dd565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586119f83390565b6040516001600160a01b03808516602483015283166044820152606481018290526111469085906323b872dd60e01b906084016118fa565b6000826000018281548110611c2057611c206120f0565b9060005260206000200154905092915050565b6000611c88826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d519092919063ffffffff16565b8051909150156119315780806020019051810190611ca691906121e4565b6119315760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106dd565b6001600160a01b03811660009081526001830160205260408120541515611875565b6000611875836001600160a01b038416611d6a565b6000611875836001600160a01b038416611db9565b6060611d608484600085611eac565b90505b9392505050565b6000818152600183016020526040812054611db157508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611878565b506000611878565b60008181526001830160205260408120548015611ea2576000611ddd6001836121af565b8554909150600090611df1906001906121af565b9050818114611e56576000866000018281548110611e1157611e116120f0565b9060005260206000200154905080876000018481548110611e3457611e346120f0565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e6757611e67612206565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611878565b6000915050611878565b606082471015611f0d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106dd565b6001600160a01b0385163b611f645760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106dd565b600080866001600160a01b03168587604051611f809190612240565b60006040518083038185875af1925050503d8060008114611fbd576040519150601f19603f3d011682016040523d82523d6000602084013e611fc2565b606091505b5091509150611fd2828286611fdd565b979650505050505050565b60608315611fec575081611d63565b825115611ffc5782518084602001fd5b8160405162461bcd60e51b81526004016106dd919061225c565b6020808252825182820181905260009190848201906040850190845b818110156120575783516001600160a01b031683529284019291840191600101612032565b50909695505050505050565b60006020828403121561207557600080fd5b5035919050565b60006020828403121561208e57600080fd5b81356001600160a01b0381168114611d6357600080fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161212e5761212e612106565b5060010190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8082018082111561187857611878612106565b60006020828403121561219157600080fd5b5051919050565b808202811582820484141761187857611878612106565b8181038181111561187857611878612106565b6000826121df57634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156121f657600080fd5b81518015158114611d6357600080fd5b634e487b7160e01b600052603160045260246000fd5b60005b8381101561223757818101518382015260200161221f565b50506000910152565b6000825161225281846020870161221c565b9190910192915050565b602081526000825180602084015261227b81604085016020870161221c565b601f01601f1916919091016040019291505056fea2646970667358221220104813a4b241b1096446e145c75aea7aac33cd6950d9e96acc5bd18c0578b6c564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000804ea14b08dec488e5b0bc408f23eef107fe3717000000000000000000000000ad45fe74bbeb7d7eb36f98f44085d8a53ef1aeac
-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x804ea14b08dEc488e5B0bC408f23EEf107fE3717
Arg [1] : _rewarder (address): 0xAd45fE74bBeB7d7Eb36F98f44085D8a53Ef1aEac
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000804ea14b08dec488e5b0bc408f23eef107fe3717
Arg [1] : 000000000000000000000000ad45fe74bbeb7d7eb36f98f44085d8a53ef1aeac
Deployed Bytecode Sourcemap
57652:9291:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66387:90;;;;;;;;;;;;;:::i;:::-;;;160:25:1;;;148:2;133:18;66387:90:0;;;;;;;;66485:272;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;65812:145::-;;;;;;;;;;-1:-1:-1;65812:145:0;;;;;:::i;:::-;;:::i;:::-;;58090:26;;;;;;;;;;;;;;;;58604:44;;;;;;;;;;-1:-1:-1;58604:44:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1594:25:1;;;1650:2;1635:18;;1628:34;;;;1678:18;;;1671:34;;;;1736:2;1721:18;;1714:34;1779:3;1764:19;;1757:35;1581:3;1566:19;58604:44:0;1335:463:1;60663:127:0;;;;;;;;;;-1:-1:-1;60663:127:0;;;;;:::i;:::-;;:::i;61540:936::-;;;;;;;;;;-1:-1:-1;61540:936:0;;;;;:::i;:::-;;:::i;58529:22::-;;;;;;;;;;;;;;;;58156:31;;;;;;;;;;;;;;;;58320:32;;;;;;;;;;;;;;;;66836:67;;;;;;;;;;;;;:::i;63556:1013::-;;;;;;;;;;-1:-1:-1;63556:1013:0;;;;;:::i;:::-;;:::i;:::-;;;;1977:25:1;;;2033:2;2018:18;;2011:34;;;;1950:18;63556:1013:0;1803:248:1;58286:27:0;;;;;;;;;;-1:-1:-1;58286:27:0;;;;-1:-1:-1;;;;;58286:27:0;;;;;;-1:-1:-1;;;;;2220:32:1;;;2202:51;;2190:2;2175:18;58286:27:0;2056:203:1;62920:628:0;;;;;;;;;;;;;:::i;7046:86::-;;;;;;;;;;-1:-1:-1;7093:4:0;7117:7;-1:-1:-1;;;7117:7:0;;;;7046:86;;2429:14:1;;2422:22;2404:41;;2392:2;2377:18;7046:86:0;2264:187:1;58558:37:0;;;;;;;;;;;;;;;;5178:103;;;;;;;;;;;;;:::i;58196:36::-;;;;;;;;;;;;;;;58123:26;;;;;;;;;;;;;;;;60400:255;;;;;;;;;;-1:-1:-1;60400:255:0;;;;;:::i;:::-;;:::i;58467:53::-;;;;;;;;;;;;;;;;62484:149;;;;;;;;;;;;;:::i;66765:63::-;;;;;;;;;;;;;:::i;62783:129::-;;;;;;;;;;;;;:::i;4527:87::-;;;;;;;;;;-1:-1:-1;4573:7:0;4600:6;-1:-1:-1;;;;;4600:6:0;4527:87;;65125:679;;;;;;;;;;-1:-1:-1;65125:679:0;;;;;:::i;:::-;;:::i;62641:126::-;;;;;;;;;;;;;:::i;58405:40::-;;;;;;;;;;;;58441:4;58405:40;;60798:734;;;;;;;;;;-1:-1:-1;60798:734:0;;;;;:::i;:::-;;:::i;58359:39::-;;;;;;;;;;;;58393:5;58359:39;;58021:29;;;;;;;;;;;;;;;;60229:163;;;;;;;;;;-1:-1:-1;60229:163:0;;;;;:::i;:::-;;:::i;58057:26::-;;;;;;;;;;;;;;;;58239:40;;;;;;;;;;;;;;;65965:108;;;;;;;;;;-1:-1:-1;65965:108:0;;;;;:::i;:::-;;:::i;5436:201::-;;;;;;;;;;-1:-1:-1;5436:201:0;;;;;:::i;:::-;;:::i;66387:90::-;66431:4;66455:14;:5;:12;:14::i;:::-;66448:21;;66387:90;:::o;66485:272::-;4573:7;4600:6;66538:16;;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;;;;;;;;;66567:21:::1;66605:14;:5;:12;:14::i;:::-;66591:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;66591:29:0::1;;66567:53;;66638:9;66633:93;66657:14;:5;:12;:14::i;:::-;66653:1;:18;66633:93;;;66703:11;:5;66712:1:::0;66703:8:::1;:11::i;:::-;66693:4;66698:1;66693:7;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;66693:21:0;;::::1;:7;::::0;;::::1;::::0;;;;;;;:21;66673:3;::::1;::::0;::::1;:::i;:::-;;;;66633:93;;;-1:-1:-1::0;66745:4:0;-1:-1:-1;66485:272:0;:::o;65812:145::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;58441:4:::1;65887;:16;65879:40;;;::::0;-1:-1:-1;;;65879:40:0;;4008:2:1;65879:40:0::1;::::0;::::1;3990:21:1::0;4047:2;4027:18;;;4020:30;-1:-1:-1;;;4066:18:1;;;4059:41;4117:18;;65879:40:0::1;3806:335:1::0;65879:40:0::1;65932:10;:17:::0;65812:145::o;60663:127::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;60754:28:::1;:13:::0;60772:9:::1;60754:17;:28::i;:::-;60740:11;:42:::0;-1:-1:-1;60663:127:0:o;61540:936::-;1778:1;2376:7;;:19;2368:63;;;;-1:-1:-1;;;2368:63:0;;;;;;;:::i;:::-;1778:1;2509:7;:18;59144:10:::1;59111:21;59135:20:::0;;;:8:::1;:20;::::0;;;;59172:11:::1;::::0;:15;59168:332:::1;;59204:18;59225:54;59264:14;;59225:34;59234:15;59251:7;;59225:8;:34::i;:::-;:38:::0;::::1;:54::i;:::-;59204:75;;59294:14;59311:26;59326:10;;59311;:14;;:26;;;;:::i;:::-;59294:43;;59366;59382:26;59397:10;;59382;:14;;:26;;;;:::i;:::-;59366:11;::::0;;:15:::1;:43::i;:::-;59352:11;:57:::0;59475:11:::1;::::0;59438:50:::1;::::0;59454:33:::1;::::0;:16:::1;:6:::0;59465:4:::1;59454:10;:16::i;:::-;:20:::0;::::1;:33::i;:::-;59438:11;::::0;;:15:::1;:50::i;:::-;59424:11;:64:::0;-1:-1:-1;;59168:332:0::1;59527:34;59536:15;59553:7;;59527:8;:34::i;:::-;59510:14;:51:::0;59643:15:::1;::::0;::::1;::::0;59616:11:::1;::::0;59600;;59582:15:::1;::::0;59600:59:::1;::::0;59643:15;;59600:38:::1;::::0;59633:4:::1;::::0;59600:28:::1;::::0;:15:::1;:28::i;:59::-;59692:19;::::0;::::1;::::0;59582:77;;-1:-1:-1;59692:32:0::1;::::0;59582:77;59692:23:::1;:32::i;:::-;59670:19;::::0;::::1;:54:::0;61667:10:::3;61634:21;61658:20:::0;;;:8:::3;:20;::::0;;;;61695:10:::3;::::0;61658:20;;61695:15;61691:111:::3;;61754:7;;61735:15;:26;;61727:63;;;::::0;-1:-1:-1;;;61727:63:0;;4708:2:1;61727:63:0::3;::::0;::::3;4690:21:1::0;4747:2;4727:18;;;4720:30;4786:26;4766:18;;;4759:54;4830:18;;61727:63:0::3;4506:348:1::0;61727:63:0::3;61829:1;61820:6;:10;:35;;;;-1:-1:-1::0;61834:11:0;;:21;-1:-1:-1;61834:21:0::3;61820:35;61812:79;;;::::0;-1:-1:-1;;;61812:79:0;;5061:2:1;61812:79:0::3;::::0;::::3;5043:21:1::0;5100:2;5080:18;;;5073:30;5139:33;5119:18;;;5112:61;5190:18;;61812:79:0::3;4859:355:1::0;61812:79:0::3;61904:17;61953:1:::0;61940:10:::3;;:14;:43;;;;;61976:7;;61958:15;:25;61940:43;61936:123;;;62012:35;58393:5;62012:22;62023:10;;62012:6;:10;;:22;;;;:::i;:35::-;62000:47;;61936:123;62083:13:::0;;62079:69:::3;;62124:12;::::0;62098:50:::3;::::0;-1:-1:-1;;;;;62098:12:0::3;:25:::0;::::3;::::0;62124:12:::3;62138:9:::0;62098:25:::3;:50::i;:::-;62202:69;62236:10;62249:21;:6:::0;62260:9;62249:10:::3;:21::i;:::-;-1:-1:-1::0;;;;;62202:12:0::3;:25;::::0;:69;:25:::3;:69::i;:::-;62306:11:::0;;:23:::3;::::0;62322:6;62306:15:::3;:23::i;:::-;62292:37:::0;;62359:15:::3;62340:16;::::0;::::3;:34:::0;62399:11:::3;::::0;:23:::3;::::0;62415:6;62399:15:::3;:23::i;:::-;62385:11;:37:::0;62440:28:::3;::::0;160:25:1;;;62449:10:0::3;::::0;62440:28:::3;::::0;148:2:1;133:18;62440:28:0::3;;;;;;;;-1:-1:-1::0;;58929:10:0::2;58950:1;58920:20:::0;;;:8:::2;:20;::::0;;;;:27;:31;;;:74:::2;;-1:-1:-1::0;58964:10:0::2;58993:1;58955:20:::0;;;:8:::2;:20;::::0;;;;:35:::2;;::::0;:39;;58920:74:::2;58916:146;;;58996:27;59012:10;58996:15;:27::i;:::-;58916:146;;;59039:23;59051:10;59039:11;:23::i;:::-;59801:11:::1;::::0;59785;;:38:::1;::::0;59818:4:::1;::::0;59785:28:::1;::::0;:15:::1;:28::i;:38::-;59767:15;::::0;::::1;:56:::0;59838:14:::1;::::0;::::1;::::0;59856:1:::1;59838:19:::0;59834:57:::1;;59876:15;59859:14;::::0;::::1;:32:::0;59834:57:::1;-1:-1:-1::0;;1734:1:0;2688:22;;-1:-1:-1;61540:936:0:o;66836:67::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;66885:10:::1;:8;:10::i;:::-;66836:67::o:0;63556:1013::-;-1:-1:-1;;;;;63666:15:0;;63613:7;63666:15;;;:8;:15;;;;;63696:11;;63613:7;;63666:15;63696:16;;63692:53;;63722:19;;;;63743:1;;-1:-1:-1;63556:1013:0;-1:-1:-1;;63556:1013:0:o;63692:53::-;63781:11;;63828;;63854;;:15;63850:302;;63886:18;63907:54;63946:14;;63907:34;63916:15;63933:7;;63907:8;:34::i;:54::-;63886:75;;63976:14;63993:26;64008:10;;63993;:14;;:26;;;;:::i;:::-;63976:43;-1:-1:-1;64034:24:0;63976:43;64034:24;;:::i;:::-;;;64090:50;64106:33;64127:11;;64106:16;64117:4;64106:6;:10;;:16;;;;:::i;64090:50::-;64073:67;;63871:281;;63850:302;64176:11;;64277:19;;;;64256:15;;;;64162:11;;64215:82;;:57;;:36;64246:4;64215:26;64176:11;64226:14;64215:10;:26::i;:57::-;:61;;:82::i;:::-;64198:99;-1:-1:-1;64332:21:0;64310:19;64402:18;;64398:117;;64454:49;64488:14;64454:29;:14;64473:9;64454:18;:29::i;:49::-;64437:66;;64398:117;64535:9;;64546:14;;-1:-1:-1;63556:1013:0;;-1:-1:-1;;;;;;;63556:1013:0:o;62920:628::-;1778:1;2376:7;;:19;2368:63;;;;-1:-1:-1;;;2368:63:0;;;;;;;:::i;:::-;1778:1;2509:7;:18;59144:10:::1;59111:21;59135:20:::0;;;:8:::1;:20;::::0;;;;59172:11:::1;::::0;:15;59168:332:::1;;59204:18;59225:54;59264:14;;59225:34;59234:15;59251:7;;59225:8;:34::i;:54::-;59204:75;;59294:14;59311:26;59326:10;;59311;:14;;:26;;;;:::i;:::-;59294:43;;59366;59382:26;59397:10;;59382;:14;;:26;;;;:::i;59366:43::-;59352:11;:57:::0;59475:11:::1;::::0;59438:50:::1;::::0;59454:33:::1;::::0;:16:::1;:6:::0;59465:4:::1;59454:10;:16::i;59438:50::-;59424:11;:64:::0;-1:-1:-1;;59168:332:0::1;59527:34;59536:15;59553:7;;59527:8;:34::i;:::-;59510:14;:51:::0;59643:15:::1;::::0;::::1;::::0;59616:11:::1;::::0;59600;;59582:15:::1;::::0;59600:59:::1;::::0;59643:15;;59600:38:::1;::::0;59633:4:::1;::::0;59600:28:::1;::::0;:15:::1;:28::i;:59::-;59692:19;::::0;::::1;::::0;59582:77;;-1:-1:-1;59692:32:0::1;::::0;59582:77;59692:23:::1;:32::i;:::-;59670:19;::::0;::::1;:54:::0;63029:10:::3;62996:21;63020:20:::0;;;:8:::3;:20;::::0;;;;63101:11:::3;::::0;63082:14:::3;::::0;::::3;::::0;63062:35:::3;::::0;:15:::3;::::0;:19:::3;:35::i;:::-;:50;;63053:93;;;::::0;-1:-1:-1;;;63053:93:0;;5551:2:1;63053:93:0::3;::::0;::::3;5533:21:1::0;5590:2;5570:18;;;5563:30;5629:31;5609:18;;;5602:59;5678:18;;63053:93:0::3;5349:353:1::0;63053:93:0::3;63188:19;::::0;::::3;::::0;63218:74:::3;::::0;-1:-1:-1;;;63218:74:0;;-1:-1:-1;;;;;63251:12:0::3;5965:15:1::0;;63218:74:0::3;::::0;::::3;5947:34:1::0;63266:10:0::3;5997:18:1::0;;;5990:43;6049:18;;;6042:34;;;63218:8:0::3;:24;::::0;::::3;::::0;5882:18:1;;63218:74:0::3;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;63303:55;63326:10;63338:4;:19;;;63303:22;:55::i;:::-;-1:-1:-1::0;63391:1:0::3;63369:19;::::0;::::3;:23:::0;63420:15:::3;63403:14;::::0;::::3;:32:::0;63460:11:::3;::::0;:30:::3;::::0;63476:13;63460:15:::3;:30::i;:::-;63446:11;:44:::0;63508:32:::3;::::0;160:25:1;;;63514:10:0::3;::::0;63508:32:::3;::::0;148:2:1;133:18;63508:32:0::3;;;;;;;-1:-1:-1::0;;58929:10:0::2;58950:1;58920:20:::0;;;:8:::2;:20;::::0;;;;:27;:31;;;:74:::2;;-1:-1:-1::0;58964:10:0::2;58993:1;58955:20:::0;;;:8:::2;:20;::::0;;;;:35:::2;;::::0;:39;;58920:74:::2;58916:146;;;58996:27;59012:10;58996:15;:27::i;:::-;58916:146;;;59039:23;59051:10;59039:11;:23::i;:::-;59801:11:::1;::::0;59785;;:38:::1;::::0;59818:4:::1;::::0;59785:28:::1;::::0;:15:::1;:28::i;:38::-;59767:15;::::0;::::1;:56:::0;59838:14:::1;::::0;::::1;::::0;59856:1:::1;59838:19:::0;59834:57:::1;;59876:15;59859:14;::::0;::::1;:32:::0;59834:57:::1;-1:-1:-1::0;;1734:1:0;2688:22;;62920:628::o;5178:103::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;5243:30:::1;5270:1;5243:18;:30::i;60400:255::-:0;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;60498:7:::1;;60480:15;:25;60471:68;;;::::0;-1:-1:-1;;;60471:68:0;;6478:2:1;60471:68:0::1;::::0;::::1;6460:21:1::0;6517:2;6497:18;;;6490:30;6556:31;6536:18;;;6529:59;6605:18;;60471:68:0::1;6276:353:1::0;60471:68:0::1;60560:44;60580:23;:8:::0;60593:9:::1;60580:12;:23::i;:::-;60560:15;::::0;:19:::1;:44::i;:::-;60550:7;:54:::0;-1:-1:-1;60632:15:0::1;60615:14;:32:::0;60400:255::o;62484:149::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;62556:42:::1;-1:-1:-1::0;;;;;62549:74:0::1;;:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;62484:149::o:0;66765:63::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;66812:8:::1;:6;:8::i;62783:129::-:0;62859:10;62826:21;62850:20;;;:8;:20;;;;;62892:11;;62883:21;;:8;:21::i;:::-;62815:97;62783:129::o;65125:679::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;65218:15:::1;65208:7;;:25;65199:46;;;::::0;-1:-1:-1;;;65199:46:0;;6836:2:1;65199:46:0::1;::::0;::::1;6818:21:1::0;6875:1;6855:18;;;6848:29;-1:-1:-1;;;6893:18:1;;;6886:37;6940:18;;65199:46:0::1;6634:330:1::0;65199:46:0::1;65279:1;65265:11;:15;65256:73;;;::::0;-1:-1:-1;;;65256:73:0;;7171:2:1;65256:73:0::1;::::0;::::1;7153:21:1::0;7210:2;7190:18;;;7183:30;7249:34;7229:18;;;7222:62;-1:-1:-1;;;7300:18:1;;;7293:42;7352:19;;65256:73:0::1;6969:408:1::0;65256:73:0::1;65426:11;::::0;:15;65422:297:::1;;65458:18;65479:35;65499:14;;65479:15;:19;;:35;;;;:::i;:::-;65458:56;;65529:14;65546:26;65561:10;;65546;:14;;:26;;;;:::i;:::-;65601:11;::::0;65529:43;;-1:-1:-1;65601:23:0::1;::::0;65529:43;65601:15:::1;:23::i;:::-;65587:11;:37:::0;65690:11:::1;::::0;65653:50:::1;::::0;65669:33:::1;::::0;:16:::1;:6:::0;65680:4:::1;65669:10;:16::i;65653:50::-;65639:11;:64:::0;-1:-1:-1;;65422:297:0::1;65746:15;65729:14;:32:::0;65772:10:::1;:24:::0;65125:679::o;62641:126::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;62708:42:::1;-1:-1:-1::0;;;;;62701:56:0::1;;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;60798:734:::0;1778:1;2376:7;;:19;2368:63;;;;-1:-1:-1;;;2368:63:0;;;;;;;:::i;:::-;1778:1;2509:7;:18;7093:4;7117:7;-1:-1:-1;;;7117:7:0;;;;7371:9:::1;7363:38;;;::::0;-1:-1:-1;;;7363:38:0;;7584:2:1;7363:38:0::1;::::0;::::1;7566:21:1::0;7623:2;7603:18;;;7596:30;-1:-1:-1;;;7642:18:1;;;7635:46;7698:18;;7363:38:0::1;7382:340:1::0;7363:38:0::1;59144:10:::2;59111:21;59135:20:::0;;;:8:::2;:20;::::0;;;;59172:11:::2;::::0;:15;59168:332:::2;;59204:18;59225:54;59264:14;;59225:34;59234:15;59251:7;;59225:8;:34::i;:54::-;59204:75;;59294:14;59311:26;59326:10;;59311;:14;;:26;;;;:::i;:::-;59294:43;;59366;59382:26;59397:10;;59382;:14;;:26;;;;:::i;59366:43::-;59352:11;:57:::0;59475:11:::2;::::0;59438:50:::2;::::0;59454:33:::2;::::0;:16:::2;:6:::0;59465:4:::2;59454:10;:16::i;59438:50::-;59424:11;:64:::0;-1:-1:-1;;59168:332:0::2;59527:34;59536:15;59553:7;;59527:8;:34::i;:::-;59510:14;:51:::0;59643:15:::2;::::0;::::2;::::0;59616:11:::2;::::0;59600;;59582:15:::2;::::0;59600:59:::2;::::0;59643:15;;59600:38:::2;::::0;59633:4:::2;::::0;59600:28:::2;::::0;:15:::2;:28::i;:59::-;59692:19;::::0;::::2;::::0;59582:77;;-1:-1:-1;59692:32:0::2;::::0;59582:77;59692:23:::2;:32::i;:::-;59670:19;::::0;::::2;:54:::0;60933:7:::4;::::0;60915:15:::4;:25;60906:68;;;::::0;-1:-1:-1;;;60906:68:0;;6478:2:1;60906:68:0::4;::::0;::::4;6460:21:1::0;6517:2;6497:18;;;6490:30;6556:31;6536:18;;;6529:59;6605:18;;60906:68:0::4;6276:353:1::0;60906:68:0::4;61020:10;60987:21;61011:20:::0;;;:8:::4;:20;::::0;;;;;61066:37;;-1:-1:-1;;;61066:37:0;;61097:4:::4;61066:37;::::0;::::4;2202:51:1::0;61011:20:0;;60987:21;-1:-1:-1;;;;;61066:12:0::4;:22;::::0;::::4;::::0;2175:18:1;;61066:37:0::4;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61052:51:::0;-1:-1:-1;61114:64:0::4;-1:-1:-1::0;;;;;61114:12:0::4;:29;61144:10;61164:4;61171:6:::0;61114:29:::4;:64::i;:::-;61198:37;::::0;-1:-1:-1;;;61198:37:0;;61229:4:::4;61198:37;::::0;::::4;2202:51:1::0;61198:49:0::4;::::0;61240:6;;-1:-1:-1;;;;;61198:12:0::4;:22;::::0;::::4;::::0;2175:18:1;;61198:37:0::4;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:49::-;61274:11:::0;;61189:58;;-1:-1:-1;61274:23:0::4;::::0;61189:58;61274:15:::4;:23::i;:::-;61260:37:::0;;61327:15:::4;61308:16;::::0;::::4;:34:::0;61367:11:::4;::::0;:23:::4;::::0;61383:6;61367:15:::4;:23::i;:::-;61353:11;:37;;;;61410:42;-1:-1:-1::0;;;;;61403:74:0::4;;:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;::::0;::::4;;;;;-1:-1:-1::0;;61497:27:0::4;::::0;160:25:1;;;61505:10:0::4;::::0;-1:-1:-1;61497:27:0::4;::::0;-1:-1:-1;148:2:1;133:18;61497:27:0::4;14:177:1::0;60229:163:0;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;60321:5:::1;60303:15;:23;60294:64;;;::::0;-1:-1:-1;;;60294:64:0;;7929:2:1;60294:64:0::1;::::0;::::1;7911:21:1::0;7968:2;7948:18;;;7941:30;8007:29;7987:18;;;7980:57;8054:18;;60294:64:0::1;7727:351:1::0;60294:64:0::1;60369:7;:15:::0;60229:163::o;65965:108::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;66040:12:::1;:25:::0;;-1:-1:-1;;;;;;66040:25:0::1;-1:-1:-1::0;;;;;66040:25:0;;;::::1;::::0;;;::::1;::::0;;65965:108::o;5436:201::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;5525:22:0;::::1;5517:73;;;::::0;-1:-1:-1;;;5517:73:0;;8285:2:1;5517:73:0::1;::::0;::::1;8267:21:1::0;8324:2;8304:18;;;8297:30;8363:34;8343:18;;;8336:62;-1:-1:-1;;;8414:18:1;;;8407:36;8460:19;;5517:73:0::1;8083:402:1::0;5517:73:0::1;5601:28;5620:8;5601:18;:28::i;39579:98::-:0;39637:7;39664:5;39668:1;39664;:5;:::i;:::-;39657:12;;39579:98;;;;;:::o;53553:117::-;53616:7;53643:19;53651:3;49037:18;;48954:109;54024:158;54098:7;54149:22;54153:3;54165:5;54149:3;:22::i;40317:98::-;40375:7;40402:5;40406:1;40402;:5;:::i;44155:106::-;44213:7;44244:1;44240;:5;:13;;44252:1;44240:13;;;-1:-1:-1;44248:1:0;;44155:106;-1:-1:-1;44155:106:0:o;39960:98::-;40018:7;40045:5;40049:1;40045;:5;:::i;40716:98::-;40774:7;40801:5;40805:1;40801;:5;:::i;33504:211::-;33648:58;;-1:-1:-1;;;;;9210:32:1;;33648:58:0;;;9192:51:1;9259:18;;;9252:34;;;33621:86:0;;33641:5;;-1:-1:-1;;;33671:23:0;9165:18:1;;33648:58:0;;;;-1:-1:-1;;33648:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;33648:58:0;-1:-1:-1;;;;;;33648:58:0;;;;;;;;;;33621:19;:86::i;:::-;33504:211;;;:::o;66233:146::-;66297:21;:5;66312;66297:14;:21::i;:::-;:30;;66322:5;66297:30;66293:79;;66344:16;:5;66354;66344:9;:16::i;:::-;;66233:146;:::o;66081:144::-;66141:21;:5;66156;66141:14;:21::i;:::-;:29;;66166:4;66141:29;66137:81;;66187:19;:5;66200;66187:12;:19::i;8105:120::-;7093:4;7117:7;-1:-1:-1;;;7117:7:0;;;;7641:41;;;;-1:-1:-1;;;7641:41:0;;9499:2:1;7641:41:0;;;9481:21:1;9538:2;9518:18;;;9511:30;-1:-1:-1;;;9557:18:1;;;9550:50;9617:18;;7641:41:0;9297:344:1;7641:41:0;8174:5:::1;8164:15:::0;;-1:-1:-1;;;;8164:15:0::1;::::0;;8195:22:::1;3409:10:::0;8204:12:::1;8195:22;::::0;-1:-1:-1;;;;;2220:32:1;;;2202:51;;2190:2;2175:18;8195:22:0::1;;;;;;;8105:120::o:0;64577:536::-;64663:7;64705:21;64741:19;;;:39;;-1:-1:-1;64764:11:0;;:16;64741:39;64737:53;;;64789:1;64782:8;;;;;64737:53;64827:11;;64810:13;:28;;64801:63;;;;-1:-1:-1;;;64801:63:0;;9848:2:1;64801:63:0;;;9830:21:1;9887:2;9867:18;;;9860:30;-1:-1:-1;;;9906:18:1;;;9899:51;9967:18;;64801:63:0;9646:345:1;64801:63:0;64945:11;;64885:19;;64907:50;;:33;:14;64926:13;64907:18;:33::i;:50::-;64885:72;-1:-1:-1;64972:18:0;;64968:106;;65007:55;;-1:-1:-1;;;;;65007:17:0;;;65053:4;;65032:14;;65007:55;;;;65032:14;65007:17;65053:4;65007:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64968:106;65091:14;64577:536;-1:-1:-1;;;;64577:536:0:o;5797:191::-;5871:16;5890:6;;-1:-1:-1;;;;;5907:17:0;;;-1:-1:-1;;;;;;5907:17:0;;;;;;5940:40;;5890:6;;;;;;;5940:40;;5871:16;5940:40;5860:128;5797:191;:::o;7846:118::-;7093:4;7117:7;-1:-1:-1;;;7117:7:0;;;;7371:9;7363:38;;;;-1:-1:-1;;;7363:38:0;;7584:2:1;7363:38:0;;;7566:21:1;7623:2;7603:18;;;7596:30;-1:-1:-1;;;7642:18:1;;;7635:46;7698:18;;7363:38:0;7382:340:1;7363:38:0;7906:7:::1;:14:::0;;-1:-1:-1;;;;7906:14:0::1;-1:-1:-1::0;;;7906:14:0::1;::::0;;7936:20:::1;7943:12;3409:10:::0;;3329:98;33723:248;33894:68;;-1:-1:-1;;;;;5965:15:1;;;33894:68:0;;;5947:34:1;6017:15;;5997:18;;;5990:43;6049:18;;;6042:34;;;33867:96:0;;33887:5;;-1:-1:-1;;;33917:27:0;5882:18:1;;33894:68:0;5707:375:1;49417:120:0;49484:7;49511:3;:11;;49523:5;49511:18;;;;;;;;:::i;:::-;;;;;;;;;49504:25;;49417:120;;;;:::o;36077:716::-;36501:23;36527:69;36555:4;36527:69;;;;;;;;;;;;;;;;;36535:5;-1:-1:-1;;;;;36527:27:0;;;:69;;;;;:::i;:::-;36611:17;;36501:95;;-1:-1:-1;36611:21:0;36607:179;;36708:10;36697:30;;;;;;;;;;;;:::i;:::-;36689:85;;;;-1:-1:-1;;;36689:85:0;;10690:2:1;36689:85:0;;;10672:21:1;10729:2;10709:18;;;10702:30;10768:34;10748:18;;;10741:62;-1:-1:-1;;;10819:18:1;;;10812:40;10869:19;;36689:85:0;10488:406:1;53300:167:0;-1:-1:-1;;;;;53434:23:0;;53380:4;48836:19;;;:12;;;:19;;;;;;:24;;53404:55;48739:129;52728:152;52798:4;52822:50;52827:3;-1:-1:-1;;;;;52847:23:0;;52822:4;:50::i;53056:158::-;53129:4;53153:53;53161:3;-1:-1:-1;;;;;53181:23:0;;53153:7;:53::i;28375:229::-;28512:12;28544:52;28566:6;28574:4;28580:1;28583:12;28544:21;:52::i;:::-;28537:59;;28375:229;;;;;;:::o;46643:414::-;46706:4;48836:19;;;:12;;;:19;;;;;;46723:327;;-1:-1:-1;46766:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;46949:18;;46927:19;;;:12;;;:19;;;;;;:40;;;;46982:11;;46723:327;-1:-1:-1;47033:5:0;47026:12;;47233:1420;47299:4;47438:19;;;:12;;;:19;;;;;;47474:15;;47470:1176;;47849:21;47873:14;47886:1;47873:10;:14;:::i;:::-;47922:18;;47849:38;;-1:-1:-1;47902:17:0;;47922:22;;47943:1;;47922:22;:::i;:::-;47902:42;;47978:13;47965:9;:26;47961:405;;48012:17;48032:3;:11;;48044:9;48032:22;;;;;;;;:::i;:::-;;;;;;;;;48012:42;;48186:9;48157:3;:11;;48169:13;48157:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;48271:23;;;:12;;;:23;;;;;:36;;;47961:405;48447:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;48542:3;:12;;:19;48555:5;48542:19;;;;;;;;;;;48535:26;;;48585:4;48578:11;;;;;;;47470:1176;48629:5;48622:12;;;;;29495:510;29665:12;29723:5;29698:21;:30;;29690:81;;;;-1:-1:-1;;;29690:81:0;;11233:2:1;29690:81:0;;;11215:21:1;11272:2;11252:18;;;11245:30;11311:34;11291:18;;;11284:62;-1:-1:-1;;;11362:18:1;;;11355:36;11408:19;;29690:81:0;11031:402:1;29690:81:0;-1:-1:-1;;;;;25925:19:0;;;29782:60;;;;-1:-1:-1;;;29782:60:0;;11640:2:1;29782:60:0;;;11622:21:1;11679:2;11659:18;;;11652:30;11718:31;11698:18;;;11691:59;11767:18;;29782:60:0;11438:353:1;29782:60:0;29856:12;29870:23;29897:6;-1:-1:-1;;;;;29897:11:0;29916:5;29923:4;29897:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29855:73;;;;29946:51;29963:7;29972:10;29984:12;29946:16;:51::i;:::-;29939:58;29495:510;-1:-1:-1;;;;;;;29495:510:0:o;32181:712::-;32331:12;32360:7;32356:530;;;-1:-1:-1;32391:10:0;32384:17;;32356:530;32505:17;;:21;32501:374;;32703:10;32697:17;32764:15;32751:10;32747:2;32743:19;32736:44;32501:374;32846:12;32839:20;;-1:-1:-1;;;32839:20:0;;;;;;;;:::i;196:658:1:-;367:2;419:21;;;489:13;;392:18;;;511:22;;;338:4;;367:2;590:15;;;;564:2;549:18;;;338:4;633:195;647:6;644:1;641:13;633:195;;;712:13;;-1:-1:-1;;;;;708:39:1;696:52;;803:15;;;;768:12;;;;744:1;662:9;633:195;;;-1:-1:-1;845:3:1;;196:658;-1:-1:-1;;;;;;196:658:1:o;859:180::-;918:6;971:2;959:9;950:7;946:23;942:32;939:52;;;987:1;984;977:12;939:52;-1:-1:-1;1010:23:1;;859:180;-1:-1:-1;859:180:1:o;1044:286::-;1103:6;1156:2;1144:9;1135:7;1131:23;1127:32;1124:52;;;1172:1;1169;1162:12;1124:52;1198:23;;-1:-1:-1;;;;;1250:31:1;;1240:42;;1230:70;;1296:1;1293;1286:12;2909:356;3111:2;3093:21;;;3130:18;;;3123:30;3189:34;3184:2;3169:18;;3162:62;3256:2;3241:18;;2909:356::o;3270:127::-;3331:10;3326:3;3322:20;3319:1;3312:31;3362:4;3359:1;3352:15;3386:4;3383:1;3376:15;3402:127;3463:10;3458:3;3454:20;3451:1;3444:31;3494:4;3491:1;3484:15;3518:4;3515:1;3508:15;3534:127;3595:10;3590:3;3586:20;3583:1;3576:31;3626:4;3623:1;3616:15;3650:4;3647:1;3640:15;3666:135;3705:3;3726:17;;;3723:43;;3746:18;;:::i;:::-;-1:-1:-1;3793:1:1;3782:13;;3666:135::o;4146:355::-;4348:2;4330:21;;;4387:2;4367:18;;;4360:30;4426:33;4421:2;4406:18;;4399:61;4492:2;4477:18;;4146:355::o;5219:125::-;5284:9;;;5305:10;;;5302:36;;;5318:18;;:::i;6087:184::-;6157:6;6210:2;6198:9;6189:7;6185:23;6181:32;6178:52;;;6226:1;6223;6216:12;6178:52;-1:-1:-1;6249:16:1;;6087:184;-1:-1:-1;6087:184:1:o;8490:168::-;8563:9;;;8594;;8611:15;;;8605:22;;8591:37;8581:71;;8632:18;;:::i;8663:128::-;8730:9;;;8751:11;;;8748:37;;;8765:18;;:::i;8796:217::-;8836:1;8862;8852:132;;8906:10;8901:3;8897:20;8894:1;8887:31;8941:4;8938:1;8931:15;8969:4;8966:1;8959:15;8852:132;-1:-1:-1;8998:9:1;;8796:217::o;10206:277::-;10273:6;10326:2;10314:9;10305:7;10301:23;10297:32;10294:52;;;10342:1;10339;10332:12;10294:52;10374:9;10368:16;10427:5;10420:13;10413:21;10406:5;10403:32;10393:60;;10449:1;10446;10439:12;10899:127;10960:10;10955:3;10951:20;10948:1;10941:31;10991:4;10988:1;10981:15;11015:4;11012:1;11005:15;11796:250;11881:1;11891:113;11905:6;11902:1;11899:13;11891:113;;;11981:11;;;11975:18;11962:11;;;11955:39;11927:2;11920:10;11891:113;;;-1:-1:-1;;12038:1:1;12020:16;;12013:27;11796:250::o;12051:287::-;12180:3;12218:6;12212:13;12234:66;12293:6;12288:3;12281:4;12273:6;12269:17;12234:66;:::i;:::-;12316:16;;;;;12051:287;-1:-1:-1;;12051:287:1:o;12343:396::-;12492:2;12481:9;12474:21;12455:4;12524:6;12518:13;12567:6;12562:2;12551:9;12547:18;12540:34;12583:79;12655:6;12650:2;12639:9;12635:18;12630:2;12622:6;12618:15;12583:79;:::i;:::-;12723:2;12702:15;-1:-1:-1;;12698:29:1;12683:45;;;;12730:2;12679:54;;12343:396;-1:-1:-1;;12343:396:1:o
Swarm Source
ipfs://104813a4b241b1096446e145c75aea7aac33cd6950d9e96acc5bd18c0578b6c5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,673.13 | 0.0649 | $173.37 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.