More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 186 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 20371808 | 3 days ago | IN | 0 ETH | 0.00058298 | ||||
Deposit | 20341590 | 7 days ago | IN | 0 ETH | 0.00253352 | ||||
Deposit | 20338690 | 8 days ago | IN | 0 ETH | 0.00097658 | ||||
Deposit | 20292508 | 14 days ago | IN | 0 ETH | 0.00119135 | ||||
Set Reward Rate | 20282045 | 16 days ago | IN | 0 ETH | 0.00033646 | ||||
Claim | 20279355 | 16 days ago | IN | 0 ETH | 0.00043012 | ||||
Deposit | 20272557 | 17 days ago | IN | 0 ETH | 0.00090891 | ||||
Claim | 20271839 | 17 days ago | IN | 0 ETH | 0.00051832 | ||||
Withdraw All | 20271820 | 17 days ago | IN | 0 ETH | 0.0005725 | ||||
Deposit | 20266127 | 18 days ago | IN | 0 ETH | 0.00058868 | ||||
Deposit | 20266109 | 18 days ago | IN | 0 ETH | 0.00055347 | ||||
Deposit | 20261889 | 18 days ago | IN | 0 ETH | 0.0003406 | ||||
Withdraw All | 20258934 | 19 days ago | IN | 0 ETH | 0.00022088 | ||||
Withdraw All | 20258929 | 19 days ago | IN | 0 ETH | 0.00025957 | ||||
Claim | 20258927 | 19 days ago | IN | 0 ETH | 0.00020909 | ||||
Deposit | 20255025 | 19 days ago | IN | 0 ETH | 0.00075089 | ||||
Deposit | 20251025 | 20 days ago | IN | 0 ETH | 0.00021364 | ||||
Deposit | 20251021 | 20 days ago | IN | 0 ETH | 0.00026946 | ||||
Deposit | 20249604 | 20 days ago | IN | 0 ETH | 0.00062133 | ||||
Deposit | 20249594 | 20 days ago | IN | 0 ETH | 0.00053757 | ||||
Deposit | 20248386 | 20 days ago | IN | 0 ETH | 0.00098023 | ||||
Deposit | 20248251 | 20 days ago | IN | 0 ETH | 0.00089417 | ||||
Set Reward Rate | 20247775 | 20 days ago | IN | 0 ETH | 0.00022268 | ||||
Deposit | 20247736 | 20 days ago | IN | 0 ETH | 0.00057264 | ||||
Claim | 20247706 | 20 days ago | IN | 0 ETH | 0.00065501 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Staking
Compiler Version
v0.8.25+commit.b61c2a91
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-05-03 */ // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.1; /** * @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; } } contract Staking 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; IERC20 public immutable rewardToken; IERC20 public immutable dividendToken; address public feeRecipient; uint256 public penaltyFee = 1000; uint256 public constant MAX_FEE = 10000; uint256 public constant FEE_LIMIT = 5000; // 50% 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 _rewardToken, address _dividendToken) { stakingToken = IERC20(_stakingToken); rewardToken = IERC20(_rewardToken); dividendToken = IERC20(_dividendToken); 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, "!available"); endTime = _time; } function restartPeriod(uint256 _minutes) external onlyOwner { require (block.timestamp > endTime, "!expired"); 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, "expired"); 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); 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, "!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 withdrawAll() external { UserInfo storage user = userInfo[msg.sender]; withdraw(user.amount); } function withdrawPenalty() external onlyOwner { uint sendAmount = collectedPenalty; uint curBal = stakingToken.balanceOf(address(this)); require (curBal > totalSupply, "!collected penalties"); if (collectedPenalty > curBal.sub(totalSupply)) sendAmount = curBal.sub(totalSupply); stakingToken.safeTransfer(feeRecipient, sendAmount); collectedPenalty -= sendAmount; } function claim() public nonReentrant updateReward updateUserList { UserInfo storage user = userInfo[msg.sender]; require (block.timestamp.sub(user.claimedAt) >= rewardCycle, "!available still"); uint256 claimedAmount = _safeTransferRewards(msg.sender, user.pendingRewards); _safeTransferDividends(msg.sender, claimedAmount); user.pendingRewards = user.pendingRewards.sub(claimedAmount); 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 reflectedAmount = dividendToken.balanceOf(address(this)); uint dividendAmount = 0; if (curTotalReward > 0) { dividendAmount = reflectedAmount.mul(available).div(curTotalReward); } return (available, dividendAmount); } function _safeTransferRewards(address to, uint256 amount) internal returns (uint256) { uint256 _bal = rewardToken.balanceOf(address(this)); if (address(rewardToken) == address(stakingToken)) { require (_bal.sub(totalSupply) > 0, "!enough rewards"); if (amount > _bal.sub(totalSupply)) amount = _bal.sub(totalSupply); } else { require (_bal > 0, "!rewards"); if (amount > _bal) amount = _bal; } if (amount > totalReward) amount = totalReward; rewardToken.safeTransfer(to, amount); return amount; } function _safeTransferDividends(address _to, uint256 _rewardAmount) internal returns (uint256) { uint reflectedAmount = dividendToken.balanceOf(address(this)); if (reflectedAmount == 0 || totalReward == 0) return 0; require (_rewardAmount <= totalReward, "invalid reward amount"); uint dividendAmount = reflectedAmount.mul(_rewardAmount).div(totalReward); if (dividendAmount > 0) { dividendToken.safeTransfer(_to, dividendAmount); } return dividendAmount; } 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(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_dividendToken","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":"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":"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":"dividendToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","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":"rewardToken","outputs":[{"internalType":"contract IERC20","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"},{"inputs":[],"name":"withdrawPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040526103e86008556402540be40060095562015180600b55348015610025575f80fd5b5060405161240638038061240683398101604081905261004491610126565b61004d336100a8565b5f805460ff60a01b19169055600180556001600160a01b0380841660805282811660a052811660c052600780546001600160a01b0319163317905542600281905561009c9063bbf81e006100f7565b600a5550610185915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f6101028284610166565b90505b92915050565b80516001600160a01b0381168114610121575f80fd5b919050565b5f805f60608486031215610138575f80fd5b6101418461010b565b925061014f6020850161010b565b915061015d6040850161010b565b90509250925092565b8082018082111561010557634e487b7160e01b5f52601160045260245ffd5b60805160a05160c0516121fc61020a5f395f818161026101528181610c32015281816119870152611a7f01525f81816104bd0152818161179001528181611827015261193701525f81816103ce015281816106790152818161076d01528181610a0e015281816112f801528181611370015281816113bb01526117fd01526121fc5ff3fe608060405234801561000f575f80fd5b5060043610610213575f3560e01c8063715018a61161011f578063b0b84374116100a9578063ccb98ffc11610079578063ccb98ffc14610476578063d2890a0114610489578063e74b981b14610492578063f2fde38b146104a5578063f7c618c1146104b8575f80fd5b8063b0b8437414610448578063b6b55f2514610451578063bc063e1a14610464578063c8f33c911461046d575f80fd5b80637b0a47ee116100ef5780637b0a47ee1461040c5780638456cb5914610415578063853828b61461041d5780638da5cb5b146104255780639e447fc614610435575f80fd5b8063715018a6146103c157806372f702f3146103c9578063750142e6146103f05780637646c038146103f9575f80fd5b80633197cbb6116101a0578063402914f511610170578063402914f51461035957806346904840146103815780634e71d92d146103945780635c975abb1461039c5780636ee010ae146103b8575f80fd5b80633197cbb614610336578063326bb80d1461033f5780633dc10ad4146103485780633f4ba83a14610351575f80fd5b806318160ddd116101e657806318160ddd1461029b5780631959a002146102a45780631a1ce2fc1461030857806322c28011146103105780632e1a7d4d14610323575f80fd5b806307973ccf146102175780630e0f785f1461023257806310c4f434146102475780631582358e1461025c575b5f80fd5b61021f6104df565b6040519081526020015b60405180910390f35b61023a6104ef565b6040516102299190611fa4565b61025a610255366004611ff0565b6105c9565b005b6102837f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610229565b61021f60045481565b6102e06102b2366004612007565b600c6020525f9081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a001610229565b61025a610636565b61025a61031e366004611ff0565b6107b0565b61025a610331366004611ff0565b6107ea565b61021f600a5481565b61021f60065481565b61021f60085481565b61025a610b12565b61036c610367366004612007565b610b45565b60408051928352602083019190915201610229565b600754610283906001600160a01b031681565b61025a610cc5565b5f54600160a01b900460ff166040519015158152602001610229565b61021f600b5481565b61025a610f15565b6102837f000000000000000000000000000000000000000000000000000000000000000081565b61021f60055481565b61025a610407366004611ff0565b610f47565b61021f60095481565b61025a610fcb565b61025a610ffc565b5f546001600160a01b0316610283565b61025a610443366004611ff0565b611018565b61021f61138881565b61025a61045f366004611ff0565b611152565b61021f61271081565b61021f60025481565b61025a610484366004611ff0565b61147d565b61021f60035481565b61025a6104a0366004612007565b6114e7565b61025a6104b3366004612007565b611532565b6102837f000000000000000000000000000000000000000000000000000000000000000081565b5f6104ea600d6115c9565b905090565b5f546060906001600160a01b031633146105245760405162461bcd60e51b815260040161051b9061202d565b60405180910390fd5b5f61052f600d6115c9565b67ffffffffffffffff81111561054757610547612062565b604051908082528060200260200182016040528015610570578160200160208202803683370190505b5090505f5b61057f600d6115c9565b8110156105c357610591600d826115d8565b8282815181106105a3576105a3612076565b6001600160a01b0390921660209283029190910190910152600101610575565b50905090565b5f546001600160a01b031633146105f25760405162461bcd60e51b815260040161051b9061202d565b61138881106106315760405162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015260640161051b565b600855565b5f546001600160a01b0316331461065f5760405162461bcd60e51b815260040161051b9061202d565b6006546040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156106c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ea919061208a565b905060045481116107345760405162461bcd60e51b815260206004820152601460248201527321636f6c6c65637465642070656e616c7469657360601b604482015260640161051b565b6004546107429082906115ea565b600654111561075c576004546107599082906115ea565b91505b600754610796906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169116846115f5565b8160065f8282546107a791906120b5565b90915550505050565b5f546001600160a01b031633146107d95760405162461bcd60e51b815260040161051b9061202d565b6107e481603c61165d565b600b5550565b60026001540361080c5760405162461bcd60e51b815260040161051b906120c8565b6002600155335f908152600c60205260409020600454156108ad575f61084060025461083a42600a54611668565b906115ea565b90505f6108586009548361165d90919063ffffffff16565b905061087b6108726009548461165d90919063ffffffff16565b6005549061167d565b6005556004546108a79061089e906108988464e8d4a5100061165d565b90611688565b6003549061167d565b60035550505b6108b942600a54611668565b600255600181015460035482545f926108e292909161083a9164e8d4a51000916108989161165d565b60028301549091506108f4908261167d565b6002830155335f908152600c6020526040812060085490910361096357600a544210156109635760405162461bcd60e51b815260206004820152601860248201527f596f752063616e6e6f7420776974686472617720796574210000000000000000604482015260640161051b565b5f84118015610973575080548411155b6109a95760405162461bcd60e51b815260206004820152600760248201526608585b5bdd5b9d60ca1b604482015260640161051b565b5f806008541180156109bc5750600a5442105b156109df576109dc6127106108986008548861165d90919063ffffffff16565b90505b8060065f8282546109f091906120ff565b90915550610a35905033610a0487846115ea565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691906115f5565b8154610a4190866115ea565b8255426003830155600454610a5690866115ea565b60045560405185815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a25050335f908152600c6020526040902054151580610abd5750335f908152600c602052604090206002015415155b15610ad057610acb33611693565b610ad9565b610ad9336116b5565b6003548254610af29164e8d4a51000916108989161165d565b600183015560048201545f03610b09574260048301555b50506001805550565b5f546001600160a01b03163314610b3b5760405162461bcd60e51b815260040161051b9061202d565b610b436116d4565b565b6001600160a01b0381165f908152600c6020526040812080548291908203610b745760020154935f9350915050565b60035460055460045415610be1575f610b9560025461083a42600a54611668565b90505f610bad6009548361165d90919063ffffffff16565b9050610bb981846120ff565b9250610bdc61089e60045461089864e8d4a510008561165d90919063ffffffff16565b935050505b8254600284015460018501545f91610c1091610c0a9061083a64e8d4a51000610898888b61165d565b9061167d565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610c77573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b919061208a565b90505f8415610cb557610cb285610898848661165d565b90505b9199919850909650505050505050565b600260015403610ce75760405162461bcd60e51b815260040161051b906120c8565b6002600155335f908152600c6020526040902060045415610d6a575f610d1560025461083a42600a54611668565b90505f610d2d6009548361165d90919063ffffffff16565b9050610d476108726009548461165d90919063ffffffff16565b600555600454610d649061089e906108988464e8d4a5100061165d565b60035550505b610d7642600a54611668565b600255600181015460035482545f92610d9f92909161083a9164e8d4a51000916108989161165d565b6002830154909150610db1908261167d565b6002830155335f908152600c60205260409020600b546004820154610dd79042906115ea565b1015610e185760405162461bcd60e51b815260206004820152601060248201526f08585d985a5b18589b19481cdd1a5b1b60821b604482015260640161051b565b5f610e2733836002015461176f565b9050610e333382611966565b506002820154610e4390826115ea565b6002830155426004830155600554610e5b90826115ea565b60055560405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a25050335f908152600c6020526040902054151580610ec15750335f908152600c602052604090206002015415155b15610ed457610ecf33611693565b610edd565b610edd336116b5565b6003548254610ef69164e8d4a51000916108989161165d565b600183015560048201545f03610f0d574260048301555b505060018055565b5f546001600160a01b03163314610f3e5760405162461bcd60e51b815260040161051b9061202d565b610b435f611aae565b5f546001600160a01b03163314610f705760405162461bcd60e51b815260040161051b9061202d565b600a544211610fac5760405162461bcd60e51b815260206004820152600860248201526708595e1c1a5c995960c21b604482015260640161051b565b610fc1610fba82603c61165d565b429061167d565b600a555042600255565b5f546001600160a01b03163314610ff45760405162461bcd60e51b815260040161051b9061202d565b610b43611afd565b335f908152600c602052604090208054611015906107ea565b50565b5f546001600160a01b031633146110415760405162461bcd60e51b815260040161051b9061202d565b42600a541161107c5760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b604482015260640161051b565b5f81116110e05760405162461bcd60e51b815260206004820152602c60248201527f5265776172647320706572207365636f6e642073686f756c642062652067726560448201526b61746572207468616e20302160a01b606482015260840161051b565b60045415611149575f6110fe600254426115ea90919063ffffffff16565b90505f6111166009548361165d90919063ffffffff16565b600554909150611126908261167d565b6005556004546111439061089e906108988464e8d4a5100061165d565b60035550505b42600255600955565b6002600154036111745760405162461bcd60e51b815260040161051b906120c8565b60026001555f54600160a01b900460ff16156111c55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161051b565b335f908152600c6020526040902060045415611243575f6111ee60025461083a42600a54611668565b90505f6112066009548361165d90919063ffffffff16565b90506112206108726009548461165d90919063ffffffff16565b60055560045461123d9061089e906108988464e8d4a5100061165d565b60035550505b61124f42600a54611668565b600255600181015460035482545f9261127892909161083a9164e8d4a51000916108989161165d565b600283015490915061128a908261167d565b6002830155600a5442106112ca5760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b604482015260640161051b565b335f908152600c602052604080822090516370a0823160e01b81523060048201529091906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561133d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611361919061208a565b90506113986001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333088611b83565b6040516370a0823160e01b81523060048201526114249082906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611400573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061083a919061208a565b8254909550611433908661167d565b8255426003830155600454611448908661167d565b60045560405185815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90602001610a87565b5f546001600160a01b031633146114a65760405162461bcd60e51b815260040161051b9061202d565b8042106114e25760405162461bcd60e51b815260206004820152600a60248201526921617661696c61626c6560b01b604482015260640161051b565b600a55565b5f546001600160a01b031633146115105760405162461bcd60e51b815260040161051b9061202d565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b5f546001600160a01b0316331461155b5760405162461bcd60e51b815260040161051b9061202d565b6001600160a01b0381166115c05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161051b565b61101581611aae565b5f6115d2825490565b92915050565b5f6115e38383611bc1565b9392505050565b5f6115e382846120b5565b6040516001600160a01b03831660248201526044810182905261165890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611be7565b505050565b5f6115e38284612112565b5f81831061167657816115e3565b5090919050565b5f6115e382846120ff565b5f6115e38284612129565b61169e600d82611cb8565b15155f03611015576116b1600d82611cd9565b5050565b6116c0600d82611cb8565b1515600103611015576116b1600d82611ced565b5f54600160a01b900460ff166117235760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161051b565b5f805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040516370a0823160e01b81523060048201525f9081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156117d5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117f9919061208a565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316036118d4575f61186a600454836115ea90919063ffffffff16565b116118a95760405162461bcd60e51b815260206004820152600f60248201526e21656e6f756768207265776172647360881b604482015260640161051b565b6004546118b79082906115ea565b8311156118cf576004546118cc9082906115ea565b92505b61191a565b5f811161190e5760405162461bcd60e51b8152602060048201526008602482015267217265776172647360c01b604482015260640161051b565b8083111561191a578092505b60055483111561192a5760055492505b61195e6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001685856115f5565b509092915050565b6040516370a0823160e01b81523060048201525f9081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156119cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119f0919061208a565b90508015806119ff5750600554155b15611a0d575f9150506115d2565b600554831115611a575760405162461bcd60e51b81526020600482015260156024820152741a5b9d985b1a59081c995dd85c9908185b5bdd5b9d605a1b604482015260640161051b565b6005545f90611a6a90610898848761165d565b90508015611aa657611aa66001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001686836115f5565b949350505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f54600160a01b900460ff1615611b495760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161051b565b5f805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117523390565b6040516001600160a01b0380851660248301528316604482015260648101829052611bbb9085906323b872dd60e01b90608401611621565b50505050565b5f825f018281548110611bd657611bd6612076565b905f5260205f200154905092915050565b5f611c3b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d019092919063ffffffff16565b8051909150156116585780806020019051810190611c599190612148565b6116585760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161051b565b6001600160a01b0381165f90815260018301602052604081205415156115e3565b5f6115e3836001600160a01b038416611d0f565b5f6115e3836001600160a01b038416611d5b565b6060611aa684845f85611e3e565b5f818152600183016020526040812054611d5457508154600181810184555f8481526020808220909301849055845484825282860190935260409020919091556115d2565b505f6115d2565b5f8181526001830160205260408120548015611e35575f611d7d6001836120b5565b85549091505f90611d90906001906120b5565b9050818114611def575f865f018281548110611dae57611dae612076565b905f5260205f200154905080875f018481548110611dce57611dce612076565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080611e0057611e00612167565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f9055600193505050506115d2565b5f9150506115d2565b606082471015611e9f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161051b565b6001600160a01b0385163b611ef65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161051b565b5f80866001600160a01b03168587604051611f11919061217b565b5f6040518083038185875af1925050503d805f8114611f4b576040519150601f19603f3d011682016040523d82523d5f602084013e611f50565b606091505b5091509150611f60828286611f6b565b979650505050505050565b60608315611f7a5750816115e3565b825115611f8a5782518084602001fd5b8160405162461bcd60e51b815260040161051b9190612191565b602080825282518282018190525f9190848201906040850190845b81811015611fe45783516001600160a01b031683529284019291840191600101611fbf565b50909695505050505050565b5f60208284031215612000575f80fd5b5035919050565b5f60208284031215612017575f80fd5b81356001600160a01b03811681146115e3575f80fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561209a575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156115d2576115d26120a1565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b808201808211156115d2576115d26120a1565b80820281158282048414176115d2576115d26120a1565b5f8261214357634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215612158575f80fd5b815180151581146115e3575f80fd5b634e487b7160e01b5f52603160045260245ffd5b5f82518060208501845e5f920191825250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f8301168401019150509291505056fea26469706673582212203be666fa77acd54d46ead865280856db8952837550d36813e1f42c0c722d12b864736f6c6343000819003300000000000000000000000064d93cf499054170f4c211f91f867f902afaece600000000000000000000000064d93cf499054170f4c211f91f867f902afaece6000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610213575f3560e01c8063715018a61161011f578063b0b84374116100a9578063ccb98ffc11610079578063ccb98ffc14610476578063d2890a0114610489578063e74b981b14610492578063f2fde38b146104a5578063f7c618c1146104b8575f80fd5b8063b0b8437414610448578063b6b55f2514610451578063bc063e1a14610464578063c8f33c911461046d575f80fd5b80637b0a47ee116100ef5780637b0a47ee1461040c5780638456cb5914610415578063853828b61461041d5780638da5cb5b146104255780639e447fc614610435575f80fd5b8063715018a6146103c157806372f702f3146103c9578063750142e6146103f05780637646c038146103f9575f80fd5b80633197cbb6116101a0578063402914f511610170578063402914f51461035957806346904840146103815780634e71d92d146103945780635c975abb1461039c5780636ee010ae146103b8575f80fd5b80633197cbb614610336578063326bb80d1461033f5780633dc10ad4146103485780633f4ba83a14610351575f80fd5b806318160ddd116101e657806318160ddd1461029b5780631959a002146102a45780631a1ce2fc1461030857806322c28011146103105780632e1a7d4d14610323575f80fd5b806307973ccf146102175780630e0f785f1461023257806310c4f434146102475780631582358e1461025c575b5f80fd5b61021f6104df565b6040519081526020015b60405180910390f35b61023a6104ef565b6040516102299190611fa4565b61025a610255366004611ff0565b6105c9565b005b6102837f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6040516001600160a01b039091168152602001610229565b61021f60045481565b6102e06102b2366004612007565b600c6020525f9081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a001610229565b61025a610636565b61025a61031e366004611ff0565b6107b0565b61025a610331366004611ff0565b6107ea565b61021f600a5481565b61021f60065481565b61021f60085481565b61025a610b12565b61036c610367366004612007565b610b45565b60408051928352602083019190915201610229565b600754610283906001600160a01b031681565b61025a610cc5565b5f54600160a01b900460ff166040519015158152602001610229565b61021f600b5481565b61025a610f15565b6102837f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece681565b61021f60055481565b61025a610407366004611ff0565b610f47565b61021f60095481565b61025a610fcb565b61025a610ffc565b5f546001600160a01b0316610283565b61025a610443366004611ff0565b611018565b61021f61138881565b61025a61045f366004611ff0565b611152565b61021f61271081565b61021f60025481565b61025a610484366004611ff0565b61147d565b61021f60035481565b61025a6104a0366004612007565b6114e7565b61025a6104b3366004612007565b611532565b6102837f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece681565b5f6104ea600d6115c9565b905090565b5f546060906001600160a01b031633146105245760405162461bcd60e51b815260040161051b9061202d565b60405180910390fd5b5f61052f600d6115c9565b67ffffffffffffffff81111561054757610547612062565b604051908082528060200260200182016040528015610570578160200160208202803683370190505b5090505f5b61057f600d6115c9565b8110156105c357610591600d826115d8565b8282815181106105a3576105a3612076565b6001600160a01b0390921660209283029190910190910152600101610575565b50905090565b5f546001600160a01b031633146105f25760405162461bcd60e51b815260040161051b9061202d565b61138881106106315760405162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015260640161051b565b600855565b5f546001600160a01b0316331461065f5760405162461bcd60e51b815260040161051b9061202d565b6006546040516370a0823160e01b81523060048201525f907f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece66001600160a01b0316906370a0823190602401602060405180830381865afa1580156106c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106ea919061208a565b905060045481116107345760405162461bcd60e51b815260206004820152601460248201527321636f6c6c65637465642070656e616c7469657360601b604482015260640161051b565b6004546107429082906115ea565b600654111561075c576004546107599082906115ea565b91505b600754610796906001600160a01b037f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece681169116846115f5565b8160065f8282546107a791906120b5565b90915550505050565b5f546001600160a01b031633146107d95760405162461bcd60e51b815260040161051b9061202d565b6107e481603c61165d565b600b5550565b60026001540361080c5760405162461bcd60e51b815260040161051b906120c8565b6002600155335f908152600c60205260409020600454156108ad575f61084060025461083a42600a54611668565b906115ea565b90505f6108586009548361165d90919063ffffffff16565b905061087b6108726009548461165d90919063ffffffff16565b6005549061167d565b6005556004546108a79061089e906108988464e8d4a5100061165d565b90611688565b6003549061167d565b60035550505b6108b942600a54611668565b600255600181015460035482545f926108e292909161083a9164e8d4a51000916108989161165d565b60028301549091506108f4908261167d565b6002830155335f908152600c6020526040812060085490910361096357600a544210156109635760405162461bcd60e51b815260206004820152601860248201527f596f752063616e6e6f7420776974686472617720796574210000000000000000604482015260640161051b565b5f84118015610973575080548411155b6109a95760405162461bcd60e51b815260206004820152600760248201526608585b5bdd5b9d60ca1b604482015260640161051b565b5f806008541180156109bc5750600a5442105b156109df576109dc6127106108986008548861165d90919063ffffffff16565b90505b8060065f8282546109f091906120ff565b90915550610a35905033610a0487846115ea565b6001600160a01b037f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece61691906115f5565b8154610a4190866115ea565b8255426003830155600454610a5690866115ea565b60045560405185815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a25050335f908152600c6020526040902054151580610abd5750335f908152600c602052604090206002015415155b15610ad057610acb33611693565b610ad9565b610ad9336116b5565b6003548254610af29164e8d4a51000916108989161165d565b600183015560048201545f03610b09574260048301555b50506001805550565b5f546001600160a01b03163314610b3b5760405162461bcd60e51b815260040161051b9061202d565b610b436116d4565b565b6001600160a01b0381165f908152600c6020526040812080548291908203610b745760020154935f9350915050565b60035460055460045415610be1575f610b9560025461083a42600a54611668565b90505f610bad6009548361165d90919063ffffffff16565b9050610bb981846120ff565b9250610bdc61089e60045461089864e8d4a510008561165d90919063ffffffff16565b935050505b8254600284015460018501545f91610c1091610c0a9061083a64e8d4a51000610898888b61165d565b9061167d565b6040516370a0823160e01b81523060048201529091505f906001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216906370a0823190602401602060405180830381865afa158015610c77573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9b919061208a565b90505f8415610cb557610cb285610898848661165d565b90505b9199919850909650505050505050565b600260015403610ce75760405162461bcd60e51b815260040161051b906120c8565b6002600155335f908152600c6020526040902060045415610d6a575f610d1560025461083a42600a54611668565b90505f610d2d6009548361165d90919063ffffffff16565b9050610d476108726009548461165d90919063ffffffff16565b600555600454610d649061089e906108988464e8d4a5100061165d565b60035550505b610d7642600a54611668565b600255600181015460035482545f92610d9f92909161083a9164e8d4a51000916108989161165d565b6002830154909150610db1908261167d565b6002830155335f908152600c60205260409020600b546004820154610dd79042906115ea565b1015610e185760405162461bcd60e51b815260206004820152601060248201526f08585d985a5b18589b19481cdd1a5b1b60821b604482015260640161051b565b5f610e2733836002015461176f565b9050610e333382611966565b506002820154610e4390826115ea565b6002830155426004830155600554610e5b90826115ea565b60055560405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a25050335f908152600c6020526040902054151580610ec15750335f908152600c602052604090206002015415155b15610ed457610ecf33611693565b610edd565b610edd336116b5565b6003548254610ef69164e8d4a51000916108989161165d565b600183015560048201545f03610f0d574260048301555b505060018055565b5f546001600160a01b03163314610f3e5760405162461bcd60e51b815260040161051b9061202d565b610b435f611aae565b5f546001600160a01b03163314610f705760405162461bcd60e51b815260040161051b9061202d565b600a544211610fac5760405162461bcd60e51b815260206004820152600860248201526708595e1c1a5c995960c21b604482015260640161051b565b610fc1610fba82603c61165d565b429061167d565b600a555042600255565b5f546001600160a01b03163314610ff45760405162461bcd60e51b815260040161051b9061202d565b610b43611afd565b335f908152600c602052604090208054611015906107ea565b50565b5f546001600160a01b031633146110415760405162461bcd60e51b815260040161051b9061202d565b42600a541161107c5760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b604482015260640161051b565b5f81116110e05760405162461bcd60e51b815260206004820152602c60248201527f5265776172647320706572207365636f6e642073686f756c642062652067726560448201526b61746572207468616e20302160a01b606482015260840161051b565b60045415611149575f6110fe600254426115ea90919063ffffffff16565b90505f6111166009548361165d90919063ffffffff16565b600554909150611126908261167d565b6005556004546111439061089e906108988464e8d4a5100061165d565b60035550505b42600255600955565b6002600154036111745760405162461bcd60e51b815260040161051b906120c8565b60026001555f54600160a01b900460ff16156111c55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161051b565b335f908152600c6020526040902060045415611243575f6111ee60025461083a42600a54611668565b90505f6112066009548361165d90919063ffffffff16565b90506112206108726009548461165d90919063ffffffff16565b60055560045461123d9061089e906108988464e8d4a5100061165d565b60035550505b61124f42600a54611668565b600255600181015460035482545f9261127892909161083a9164e8d4a51000916108989161165d565b600283015490915061128a908261167d565b6002830155600a5442106112ca5760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b604482015260640161051b565b335f908152600c602052604080822090516370a0823160e01b81523060048201529091906001600160a01b037f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece616906370a0823190602401602060405180830381865afa15801561133d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611361919061208a565b90506113986001600160a01b037f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece616333088611b83565b6040516370a0823160e01b81523060048201526114249082906001600160a01b037f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece616906370a0823190602401602060405180830381865afa158015611400573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061083a919061208a565b8254909550611433908661167d565b8255426003830155600454611448908661167d565b60045560405185815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90602001610a87565b5f546001600160a01b031633146114a65760405162461bcd60e51b815260040161051b9061202d565b8042106114e25760405162461bcd60e51b815260206004820152600a60248201526921617661696c61626c6560b01b604482015260640161051b565b600a55565b5f546001600160a01b031633146115105760405162461bcd60e51b815260040161051b9061202d565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b5f546001600160a01b0316331461155b5760405162461bcd60e51b815260040161051b9061202d565b6001600160a01b0381166115c05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161051b565b61101581611aae565b5f6115d2825490565b92915050565b5f6115e38383611bc1565b9392505050565b5f6115e382846120b5565b6040516001600160a01b03831660248201526044810182905261165890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611be7565b505050565b5f6115e38284612112565b5f81831061167657816115e3565b5090919050565b5f6115e382846120ff565b5f6115e38284612129565b61169e600d82611cb8565b15155f03611015576116b1600d82611cd9565b5050565b6116c0600d82611cb8565b1515600103611015576116b1600d82611ced565b5f54600160a01b900460ff166117235760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161051b565b5f805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040516370a0823160e01b81523060048201525f9081906001600160a01b037f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece616906370a0823190602401602060405180830381865afa1580156117d5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117f9919061208a565b90507f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece66001600160a01b03167f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece66001600160a01b0316036118d4575f61186a600454836115ea90919063ffffffff16565b116118a95760405162461bcd60e51b815260206004820152600f60248201526e21656e6f756768207265776172647360881b604482015260640161051b565b6004546118b79082906115ea565b8311156118cf576004546118cc9082906115ea565b92505b61191a565b5f811161190e5760405162461bcd60e51b8152602060048201526008602482015267217265776172647360c01b604482015260640161051b565b8083111561191a578092505b60055483111561192a5760055492505b61195e6001600160a01b037f00000000000000000000000064d93cf499054170f4c211f91f867f902afaece61685856115f5565b509092915050565b6040516370a0823160e01b81523060048201525f9081906001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216906370a0823190602401602060405180830381865afa1580156119cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906119f0919061208a565b90508015806119ff5750600554155b15611a0d575f9150506115d2565b600554831115611a575760405162461bcd60e51b81526020600482015260156024820152741a5b9d985b1a59081c995dd85c9908185b5bdd5b9d605a1b604482015260640161051b565b6005545f90611a6a90610898848761165d565b90508015611aa657611aa66001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21686836115f5565b949350505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f54600160a01b900460ff1615611b495760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161051b565b5f805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117523390565b6040516001600160a01b0380851660248301528316604482015260648101829052611bbb9085906323b872dd60e01b90608401611621565b50505050565b5f825f018281548110611bd657611bd6612076565b905f5260205f200154905092915050565b5f611c3b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d019092919063ffffffff16565b8051909150156116585780806020019051810190611c599190612148565b6116585760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161051b565b6001600160a01b0381165f90815260018301602052604081205415156115e3565b5f6115e3836001600160a01b038416611d0f565b5f6115e3836001600160a01b038416611d5b565b6060611aa684845f85611e3e565b5f818152600183016020526040812054611d5457508154600181810184555f8481526020808220909301849055845484825282860190935260409020919091556115d2565b505f6115d2565b5f8181526001830160205260408120548015611e35575f611d7d6001836120b5565b85549091505f90611d90906001906120b5565b9050818114611def575f865f018281548110611dae57611dae612076565b905f5260205f200154905080875f018481548110611dce57611dce612076565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080611e0057611e00612167565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f9055600193505050506115d2565b5f9150506115d2565b606082471015611e9f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161051b565b6001600160a01b0385163b611ef65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161051b565b5f80866001600160a01b03168587604051611f11919061217b565b5f6040518083038185875af1925050503d805f8114611f4b576040519150601f19603f3d011682016040523d82523d5f602084013e611f50565b606091505b5091509150611f60828286611f6b565b979650505050505050565b60608315611f7a5750816115e3565b825115611f8a5782518084602001fd5b8160405162461bcd60e51b815260040161051b9190612191565b602080825282518282018190525f9190848201906040850190845b81811015611fe45783516001600160a01b031683529284019291840191600101611fbf565b50909695505050505050565b5f60208284031215612000575f80fd5b5035919050565b5f60208284031215612017575f80fd5b81356001600160a01b03811681146115e3575f80fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52604160045260245ffd5b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561209a575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156115d2576115d26120a1565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b808201808211156115d2576115d26120a1565b80820281158282048414176115d2576115d26120a1565b5f8261214357634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215612158575f80fd5b815180151581146115e3575f80fd5b634e487b7160e01b5f52603160045260245ffd5b5f82518060208501845e5f920191825250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f8301168401019150509291505056fea26469706673582212203be666fa77acd54d46ead865280856db8952837550d36813e1f42c0c722d12b864736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000064d93cf499054170f4c211f91f867f902afaece600000000000000000000000064d93cf499054170f4c211f91f867f902afaece6000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x64d93cF499054170f4C211F91F867f902aFaEcE6
Arg [1] : _rewardToken (address): 0x64d93cF499054170f4C211F91F867f902aFaEcE6
Arg [2] : _dividendToken (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000064d93cf499054170f4c211f91f867f902afaece6
Arg [1] : 00000000000000000000000064d93cf499054170f4c211f91f867f902afaece6
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode Sourcemap
57433:9941:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66855:90;;;:::i;:::-;;;160:25:1;;;148:2;133:18;66855:90:0;;;;;;;;66953:272;;;:::i;:::-;;;;;;;:::i;66280:145::-;;;;;;:::i;:::-;;:::i;:::-;;58055:37;;;;;;;;-1:-1:-1;;;;;1222:32:1;;;1204:51;;1192:2;1177:18;58055:37:0;1044:217:1;57864:26:0;;;;;;58409:44;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1816:25:1;;;1872:2;1857:18;;1850:34;;;;1900:18;;;1893:34;;;;1958:2;1943:18;;1936:34;2001:3;1986:19;;1979:35;1803:3;1788:19;58409:44:0;1557:463:1;62319:436:0;;;:::i;60504:127::-;;;;;;:::i;:::-;;:::i;61262:912::-;;;;;;:::i;:::-;;:::i;58334:22::-;;;;;;57930:31;;;;;;58133:32;;;;;;67304:67;;;:::i;63369:1032::-;;;;;;:::i;:::-;;:::i;:::-;;;;2199:25:1;;;2255:2;2240:18;;2233:34;;;;2172:18;63369:1032:0;2025:248:1;58099:27:0;;;;;-1:-1:-1;;;;;58099:27:0;;;62763:598;;;:::i;7046:86::-;7093:4;7117:7;-1:-1:-1;;;7117:7:0;;;;7046:86;;2651:14:1;;2644:22;2626:41;;2614:2;2599:18;7046:86:0;2486:187:1;58363:37:0;;;;;;5178:103;;;:::i;57970:36::-;;;;;57897:26;;;;;;60262:234;;;;;;:::i;:::-;;:::i;58272:53::-;;;;;;67233:63;;;:::i;62182:129::-;;;:::i;4527:87::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;4527:87;;65589:683;;;;;;:::i;:::-;;:::i;58218:40::-;;58254:4;58218:40;;60639:615;;;;;;:::i;:::-;;:::i;58172:39::-;;58206:5;58172:39;;57795:29;;;;;;60108:146;;;;;;:::i;:::-;;:::i;57831:26::-;;;;;;66433:108;;;;;;:::i;:::-;;:::i;5436:201::-;;;;;;:::i;:::-;;:::i;58013:35::-;;;;;66855:90;66899:4;66923:14;:5;:12;:14::i;:::-;66916:21;;66855:90;:::o;66953:272::-;4573:7;4600:6;67006:16;;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;;;;;;;;;67035:21:::1;67073:14;:5;:12;:14::i;:::-;67059:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;67059:29:0::1;;67035:53;;67106:9;67101:93;67125:14;:5;:12;:14::i;:::-;67121:1;:18;67101:93;;;67171:11;:5;67180:1:::0;67171:8:::1;:11::i;:::-;67161:4;67166:1;67161:7;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;67161:21:0;;::::1;:7;::::0;;::::1;::::0;;;;;;;:21;67141:3:::1;;67101:93;;;-1:-1:-1::0;67213:4:0;-1:-1:-1;66953:272:0;:::o;66280:145::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;58254:4:::1;66355;:16;66347:40;;;::::0;-1:-1:-1;;;66347:40:0;;3505:2:1;66347:40:0::1;::::0;::::1;3487:21:1::0;3544:2;3524:18;;;3517:30;-1:-1:-1;;;3563:18:1;;;3556:41;3614:18;;66347:40:0::1;3303:335:1::0;66347:40:0::1;66400:10;:17:::0;66280:145::o;62319:436::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;62394:16:::1;::::0;62435:37:::1;::::0;-1:-1:-1;;;62435:37:0;;62466:4:::1;62435:37;::::0;::::1;1204:51:1::0;62376:15:0::1;::::0;62435:12:::1;-1:-1:-1::0;;;;;62435:22:0::1;::::0;::::1;::::0;1177:18:1;;62435:37:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62421:51;;62503:11;;62494:6;:20;62485:54;;;::::0;-1:-1:-1;;;62485:54:0;;4034:2:1;62485:54:0::1;::::0;::::1;4016:21:1::0;4073:2;4053:18;;;4046:30;-1:-1:-1;;;4092:18:1;;;4085:50;4152:18;;62485:54:0::1;3832:344:1::0;62485:54:0::1;62594:11;::::0;62583:23:::1;::::0;:6;;:10:::1;:23::i;:::-;62564:16;;:42;62560:84;;;62632:11;::::0;62621:23:::1;::::0;:6;;:10:::1;:23::i;:::-;62608:36;;62560:84;62681:12;::::0;62655:51:::1;::::0;-1:-1:-1;;;;;62655:12:0::1;:25:::0;::::1;::::0;62681:12:::1;62695:10:::0;62655:25:::1;:51::i;:::-;62737:10;62717:16;;:30;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;;;62319:436:0:o;60504:127::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;60595:28:::1;:13:::0;60613:9:::1;60595:17;:28::i;:::-;60581:11;:42:::0;-1:-1:-1;60504:127:0:o;61262:912::-;1778:1;2376:7;;:19;2368:63;;;;-1:-1:-1;;;2368:63:0;;;;;;;:::i;:::-;1778:1;2509:7;:18;58949:10:::1;58916:21;58940:20:::0;;;:8:::1;:20;::::0;;;;58977:11:::1;::::0;:15;58973:332:::1;;59009:18;59030:54;59069:14;;59030:34;59039:15;59056:7;;59030:8;:34::i;:::-;:38:::0;::::1;:54::i;:::-;59009:75;;59099:14;59116:26;59131:10;;59116;:14;;:26;;;;:::i;:::-;59099:43;;59171;59187:26;59202:10;;59187;:14;;:26;;;;:::i;:::-;59171:11;::::0;;:15:::1;:43::i;:::-;59157:11;:57:::0;59280:11:::1;::::0;59243:50:::1;::::0;59259:33:::1;::::0;:16:::1;:6:::0;59270:4:::1;59259:10;:16::i;:::-;:20:::0;::::1;:33::i;:::-;59243:11;::::0;;:15:::1;:50::i;:::-;59229:11;:64:::0;-1:-1:-1;;58973:332:0::1;59332:34;59341:15;59358:7;;59332:8;:34::i;:::-;59315:14;:51:::0;59448:15:::1;::::0;::::1;::::0;59421:11:::1;::::0;59405;;59387:15:::1;::::0;59405:59:::1;::::0;59448:15;;59405:38:::1;::::0;59438:4:::1;::::0;59405:28:::1;::::0;:15:::1;:28::i;:59::-;59497:19;::::0;::::1;::::0;59387:77;;-1:-1:-1;59497:32:0::1;::::0;59387:77;59497:23:::1;:32::i;:::-;59475:19;::::0;::::1;:54:::0;61389:10:::3;61356:21;61380:20:::0;;;:8:::3;:20;::::0;;;;61417:10:::3;::::0;61380:20;;61417:15;61413:111:::3;;61476:7;;61457:15;:26;;61449:63;;;::::0;-1:-1:-1;;;61449:63:0;;5008:2:1;61449:63:0::3;::::0;::::3;4990:21:1::0;5047:2;5027:18;;;5020:30;5086:26;5066:18;;;5059:54;5130:18;;61449:63:0::3;4806:348:1::0;61449:63:0::3;61551:1;61542:6;:10;:35;;;;-1:-1:-1::0;61556:11:0;;:21;-1:-1:-1;61556:21:0::3;61542:35;61534:55;;;::::0;-1:-1:-1;;;61534:55:0;;5361:2:1;61534:55:0::3;::::0;::::3;5343:21:1::0;5400:1;5380:18;;;5373:29;-1:-1:-1;;;5418:18:1;;;5411:37;5465:18;;61534:55:0::3;5159:330:1::0;61534:55:0::3;61602:17;61651:1:::0;61638:10:::3;;:14;:43;;;;;61674:7;;61656:15;:25;61638:43;61634:123;;;61710:35;58206:5;61710:22;61721:10;;61710:6;:10;;:22;;;;:::i;:35::-;61698:47;;61634:123;61880:9;61860:16;;:29;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;61900:69:0::3;::::0;-1:-1:-1;61934:10:0::3;61947:21;:6:::0;61958:9;61947:10:::3;:21::i;:::-;-1:-1:-1::0;;;;;61900:12:0::3;:25;::::0;:69;:25:::3;:69::i;:::-;62004:11:::0;;:23:::3;::::0;62020:6;62004:15:::3;:23::i;:::-;61990:37:::0;;62057:15:::3;62038:16;::::0;::::3;:34:::0;62097:11:::3;::::0;:23:::3;::::0;62113:6;62097:15:::3;:23::i;:::-;62083:11;:37:::0;62138:28:::3;::::0;160:25:1;;;62147:10:0::3;::::0;62138:28:::3;::::0;148:2:1;133:18;62138:28:0::3;;;;;;;;-1:-1:-1::0;;58734:10:0::2;58755:1;58725:20:::0;;;:8:::2;:20;::::0;;;;:27;:31;;;:74:::2;;-1:-1:-1::0;58769:10:0::2;58798:1;58760:20:::0;;;:8:::2;:20;::::0;;;;:35:::2;;::::0;:39;;58725:74:::2;58721:146;;;58801:27;58817:10;58801:15;:27::i;:::-;58721:146;;;58844:23;58856:10;58844:11;:23::i;:::-;59606:11:::1;::::0;59590;;:38:::1;::::0;59623:4:::1;::::0;59590:28:::1;::::0;:15:::1;:28::i;:38::-;59572:15;::::0;::::1;:56:::0;59643:14:::1;::::0;::::1;::::0;59661:1:::1;59643:19:::0;59639:57:::1;;59681:15;59664:14;::::0;::::1;:32:::0;59639:57:::1;-1:-1:-1::0;;1734:1:0;2688:22;;-1:-1:-1;61262:912:0:o;67304:67::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;67353:10:::1;:8;:10::i;:::-;67304:67::o:0;63369:1032::-;-1:-1:-1;;;;;63479:15:0;;63426:7;63479:15;;;:8;:15;;;;;63509:11;;63426:7;;63479:15;63509:16;;63505:53;;63535:19;;;;63556:1;;-1:-1:-1;63369:1032:0;-1:-1:-1;;63369:1032:0:o;63505:53::-;63594:11;;63641;;63667;;:15;63663:302;;63699:18;63720:54;63759:14;;63720:34;63729:15;63746:7;;63720:8;:34::i;:54::-;63699:75;;63789:14;63806:26;63821:10;;63806;:14;;:26;;;;:::i;:::-;63789:43;-1:-1:-1;63847:24:0;63789:43;63847:24;;:::i;:::-;;;63903:50;63919:33;63940:11;;63919:16;63930:4;63919:6;:10;;:16;;;;:::i;63903:50::-;63886:67;;63684:281;;63663:302;63989:11;;64090:19;;;;64069:15;;;;63975:11;;64028:82;;:57;;:36;64059:4;64028:26;63989:11;64039:14;64028:10;:26::i;:57::-;:61;;:82::i;:::-;64146:38;;-1:-1:-1;;;64146:38:0;;64178:4;64146:38;;;1204:51:1;64011:99:0;;-1:-1:-1;64123:20:0;;-1:-1:-1;;;;;64146:13:0;:23;;;;1177:18:1;;64146:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;64123:61;-1:-1:-1;64195:19:0;64233:18;;64229:118;;64285:50;64320:14;64285:30;:15;64305:9;64285:19;:30::i;:50::-;64268:67;;64229:118;64367:9;;64378:14;;-1:-1:-1;63369:1032:0;;-1:-1:-1;;;;;;;63369:1032:0:o;62763:598::-;1778:1;2376:7;;:19;2368:63;;;;-1:-1:-1;;;2368:63:0;;;;;;;:::i;:::-;1778:1;2509:7;:18;58949:10:::1;58916:21;58940:20:::0;;;:8:::1;:20;::::0;;;;58977:11:::1;::::0;:15;58973:332:::1;;59009:18;59030:54;59069:14;;59030:34;59039:15;59056:7;;59030:8;:34::i;:54::-;59009:75;;59099:14;59116:26;59131:10;;59116;:14;;:26;;;;:::i;:::-;59099:43;;59171;59187:26;59202:10;;59187;:14;;:26;;;;:::i;59171:43::-;59157:11;:57:::0;59280:11:::1;::::0;59243:50:::1;::::0;59259:33:::1;::::0;:16:::1;:6:::0;59270:4:::1;59259:10;:16::i;59243:50::-;59229:11;:64:::0;-1:-1:-1;;58973:332:0::1;59332:34;59341:15;59358:7;;59332:8;:34::i;:::-;59315:14;:51:::0;59448:15:::1;::::0;::::1;::::0;59421:11:::1;::::0;59405;;59387:15:::1;::::0;59405:59:::1;::::0;59448:15;;59405:38:::1;::::0;59438:4:::1;::::0;59405:28:::1;::::0;:15:::1;:28::i;:59::-;59497:19;::::0;::::1;::::0;59387:77;;-1:-1:-1;59497:32:0::1;::::0;59387:77;59497:23:::1;:32::i;:::-;59475:19;::::0;::::1;:54:::0;62872:10:::3;62839:21;62863:20:::0;;;:8:::3;:20;::::0;;;;62944:11:::3;::::0;62925:14:::3;::::0;::::3;::::0;62905:35:::3;::::0;:15:::3;::::0;:19:::3;:35::i;:::-;:50;;62896:80;;;::::0;-1:-1:-1;;;62896:80:0;;5826:2:1;62896:80:0::3;::::0;::::3;5808:21:1::0;5865:2;5845:18;;;5838:30;-1:-1:-1;;;5884:18:1;;;5877:46;5940:18;;62896:80:0::3;5624:340:1::0;62896:80:0::3;62997:21;63021:53;63042:10;63054:4;:19;;;63021:20;:53::i;:::-;62997:77;;63085:49;63108:10;63120:13;63085:22;:49::i;:::-;-1:-1:-1::0;63167:19:0::3;::::0;::::3;::::0;:38:::3;::::0;63191:13;63167:23:::3;:38::i;:::-;63145:19;::::0;::::3;:60:::0;63233:15:::3;63216:14;::::0;::::3;:32:::0;63273:11:::3;::::0;:30:::3;::::0;63289:13;63273:15:::3;:30::i;:::-;63259:11;:44:::0;63321:32:::3;::::0;160:25:1;;;63327:10:0::3;::::0;63321:32:::3;::::0;148:2:1;133:18;63321:32:0::3;;;;;;;-1:-1:-1::0;;58734:10:0::2;58755:1;58725:20:::0;;;:8:::2;:20;::::0;;;;:27;:31;;;:74:::2;;-1:-1:-1::0;58769:10:0::2;58798:1;58760:20:::0;;;:8:::2;:20;::::0;;;;:35:::2;;::::0;:39;;58725:74:::2;58721:146;;;58801:27;58817:10;58801:15;:27::i;:::-;58721:146;;;58844:23;58856:10;58844:11;:23::i;:::-;59606:11:::1;::::0;59590;;:38:::1;::::0;59623:4:::1;::::0;59590:28:::1;::::0;:15:::1;:28::i;:38::-;59572:15;::::0;::::1;:56:::0;59643:14:::1;::::0;::::1;::::0;59661:1:::1;59643:19:::0;59639:57:::1;;59681:15;59664:14;::::0;::::1;:32:::0;59639:57:::1;-1:-1:-1::0;;1734:1:0;2688:22;;62763:598::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;60262:234::-:0;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;60360:7:::1;;60342:15;:25;60333:47;;;::::0;-1:-1:-1;;;60333:47:0;;6171:2:1;60333:47:0::1;::::0;::::1;6153:21:1::0;6210:1;6190:18;;;6183:29;-1:-1:-1;;;6228:18:1;;;6221:38;6276:18;;60333:47:0::1;5969:331:1::0;60333:47:0::1;60401:44;60421:23;:8:::0;60434:9:::1;60421:12;:23::i;:::-;60401:15;::::0;:19:::1;:44::i;:::-;60391:7;:54:::0;-1:-1:-1;60473:15:0::1;60456:14;:32:::0;60262:234::o;67233:63::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;67280:8:::1;:6;:8::i;62182:129::-:0;62258:10;62225:21;62249:20;;;:8;:20;;;;;62291:11;;62282:21;;:8;:21::i;:::-;62214:97;62182:129::o;65589:683::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;65682:15:::1;65672:7;;:25;65663:46;;;::::0;-1:-1:-1;;;65663:46:0;;6507:2:1;65663:46:0::1;::::0;::::1;6489:21:1::0;6546:1;6526:18;;;6519:29;-1:-1:-1;;;6564:18:1;;;6557:37;6611:18;;65663:46:0::1;6305:330:1::0;65663:46:0::1;65743:1;65729:11;:15;65720:73;;;::::0;-1:-1:-1;;;65720:73:0;;6842:2:1;65720:73:0::1;::::0;::::1;6824:21:1::0;6881:2;6861:18;;;6854:30;6920:34;6900:18;;;6893:62;-1:-1:-1;;;6971:18:1;;;6964:42;7023:19;;65720:73:0::1;6640:408:1::0;65720:73:0::1;65894:11;::::0;:15;65890:297:::1;;65926:18;65947:35;65967:14;;65947:15;:19;;:35;;;;:::i;:::-;65926:56;;65997:14;66014:26;66029:10;;66014;:14;;:26;;;;:::i;:::-;66069:11;::::0;65997:43;;-1:-1:-1;66069:23:0::1;::::0;65997:43;66069:15:::1;:23::i;:::-;66055:11;:37:::0;66158:11:::1;::::0;66121:50:::1;::::0;66137:33:::1;::::0;:16:::1;:6:::0;66148:4:::1;66137:10;:16::i;66121:50::-;66107:11;:64:::0;-1:-1:-1;;65890:297:0::1;66214:15;66197:14;:32:::0;66240:10:::1;:24:::0;65589:683::o;60639:615::-;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;;7255:2:1;7363:38:0::1;::::0;::::1;7237:21:1::0;7294:2;7274:18;;;7267:30;-1:-1:-1;;;7313:18:1;;;7306:46;7369:18;;7363:38:0::1;7053:340:1::0;7363:38:0::1;58949:10:::2;58916:21;58940:20:::0;;;:8:::2;:20;::::0;;;;58977:11:::2;::::0;:15;58973:332:::2;;59009:18;59030:54;59069:14;;59030:34;59039:15;59056:7;;59030:8;:34::i;:54::-;59009:75;;59099:14;59116:26;59131:10;;59116;:14;;:26;;;;:::i;:::-;59099:43;;59171;59187:26;59202:10;;59187;:14;;:26;;;;:::i;59171:43::-;59157:11;:57:::0;59280:11:::2;::::0;59243:50:::2;::::0;59259:33:::2;::::0;:16:::2;:6:::0;59270:4:::2;59259:10;:16::i;59243:50::-;59229:11;:64:::0;-1:-1:-1;;58973:332:0::2;59332:34;59341:15;59358:7;;59332:8;:34::i;:::-;59315:14;:51:::0;59448:15:::2;::::0;::::2;::::0;59421:11:::2;::::0;59405;;59387:15:::2;::::0;59405:59:::2;::::0;59448:15;;59405:38:::2;::::0;59438:4:::2;::::0;59405:28:::2;::::0;:15:::2;:28::i;:59::-;59497:19;::::0;::::2;::::0;59387:77;;-1:-1:-1;59497:32:0::2;::::0;59387:77;59497:23:::2;:32::i;:::-;59475:19;::::0;::::2;:54:::0;60774:7:::4;::::0;60756:15:::4;:25;60747:46;;;::::0;-1:-1:-1;;;60747:46:0;;6507:2:1;60747:46:0::4;::::0;::::4;6489:21:1::0;6546:1;6526:18;;;6519:29;-1:-1:-1;;;6564:18:1;;;6557:37;6611:18;;60747:46:0::4;6305:330:1::0;60747:46:0::4;60839:10;60806:21;60830:20:::0;;;:8:::4;:20;::::0;;;;;60877:37;;-1:-1:-1;;;60877:37:0;;60908:4:::4;60877:37;::::0;::::4;1204:51:1::0;60830:20:0;;60806:21;-1:-1:-1;;;;;60877:12:0::4;:22;::::0;::::4;::::0;1177:18:1;;60877:37:0::4;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60863:51:::0;-1:-1:-1;60925:64:0::4;-1:-1:-1::0;;;;;60925:12:0::4;:29;60955:10;60975:4;60982:6:::0;60925:29:::4;:64::i;:::-;61009:37;::::0;-1:-1:-1;;;61009:37:0;;61040:4:::4;61009:37;::::0;::::4;1204:51:1::0;61009:49:0::4;::::0;61051:6;;-1:-1:-1;;;;;61009:12:0::4;:22;::::0;::::4;::::0;1177:18:1;;61009:37:0::4;;;;;;;;;;;;;;;;;::::0;::::4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:49::-;61085:11:::0;;61000:58;;-1:-1:-1;61085:23:0::4;::::0;61000:58;61085:15:::4;:23::i;:::-;61071:37:::0;;61138:15:::4;61119:16;::::0;::::4;:34:::0;61178:11:::4;::::0;:23:::4;::::0;61194:6;61178:15:::4;:23::i;:::-;61164:11;:37:::0;61219:27:::4;::::0;160:25:1;;;61227:10:0::4;::::0;61219:27:::4;::::0;148:2:1;133:18;61219:27:0::4;14:177:1::0;60108:146:0;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;60200:5:::1;60182:15;:23;60173:47;;;::::0;-1:-1:-1;;;60173:47:0;;7600:2:1;60173:47:0::1;::::0;::::1;7582:21:1::0;7639:2;7619:18;;;7612:30;-1:-1:-1;;;7658:18:1;;;7651:40;7708:18;;60173:47:0::1;7398:334:1::0;60173:47:0::1;60231:7;:15:::0;60108:146::o;66433:108::-;4573:7;4600:6;-1:-1:-1;;;;;4600:6:0;3409:10;4747:23;4739:68;;;;-1:-1:-1;;;4739:68:0;;;;;;;:::i;:::-;66508:12:::1;:25:::0;;-1:-1:-1;;;;;;66508:25:0::1;-1:-1:-1::0;;;;;66508:25:0;;;::::1;::::0;;;::::1;::::0;;66433: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;;7939:2:1;5517:73:0::1;::::0;::::1;7921:21:1::0;7978:2;7958:18;;;7951:30;8017:34;7997:18;;;7990:62;-1:-1:-1;;;8068:18:1;;;8061:36;8114:19;;5517:73:0::1;7737:402:1::0;5517:73:0::1;5601:28;5620:8;5601:18;:28::i;53553:117::-:0;53616:7;53643:19;53651:3;49037:18;;48954:109;53643:19;53636:26;53553:117;-1:-1:-1;;53553:117:0:o;54024:158::-;54098:7;54149:22;54153:3;54165:5;54149:3;:22::i;:::-;54141:31;54024:158;-1:-1:-1;;;54024:158:0:o;39960:98::-;40018:7;40045:5;40049:1;40045;:5;:::i;33504:211::-;33648:58;;-1:-1:-1;;;;;8336:32:1;;33648:58:0;;;8318:51:1;8385:18;;;8378:34;;;33621:86:0;;33641:5;;-1:-1:-1;;;33671:23:0;8291: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;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;39579:98::-;39637:7;39664:5;39668:1;39664;:5;:::i;40716:98::-;40774:7;40801:5;40805:1;40801;:5;:::i;66701:146::-;66765:21;:5;66780;66765:14;:21::i;:::-;:30;;66790:5;66765:30;66761:79;;66812:16;:5;66822;66812:9;:16::i;:::-;;66701:146;:::o;66549:144::-;66609:21;:5;66624;66609:14;:21::i;:::-;:29;;66634:4;66609:29;66605:81;;66655:19;:5;66668;66655:12;:19::i;8105:120::-;7093:4;7117:7;-1:-1:-1;;;7117:7:0;;;;7641:41;;;;-1:-1:-1;;;7641:41:0;;9020:2:1;7641:41:0;;;9002:21:1;9059:2;9039:18;;;9032:30;-1:-1:-1;;;9078:18:1;;;9071:50;9138:18;;7641:41:0;8818: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;;;;;1222:32:1;;;1204:51;;1192:2;1177:18;8195:22:0::1;;;;;;;8105:120::o:0;64413:616::-;64524:36;;-1:-1:-1;;;64524:36:0;;64554:4;64524:36;;;1204:51:1;64489:7:0;;;;-1:-1:-1;;;;;64524:11:0;:21;;;;1177:18:1;;64524:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;64509:51;;64607:12;-1:-1:-1;;;;;64575:45:0;64583:11;-1:-1:-1;;;;;64575:45:0;;64571:323;;64670:1;64646:21;64655:11;;64646:4;:8;;:21;;;;:::i;:::-;:25;64637:54;;;;-1:-1:-1;;;64637:54:0;;9369:2:1;64637:54:0;;;9351:21:1;9408:2;9388:18;;;9381:30;-1:-1:-1;;;9427:18:1;;;9420:45;9482:18;;64637:54:0;9167:339:1;64637:54:0;64728:11;;64719:21;;:4;;:8;:21::i;:::-;64710:6;:30;64706:66;;;64760:11;;64751:21;;:4;;:8;:21::i;:::-;64742:30;;64706:66;64571:323;;;64821:1;64814:4;:8;64805:30;;;;-1:-1:-1;;;64805:30:0;;9713:2:1;64805:30:0;;;9695:21:1;9752:1;9732:18;;;9725:29;-1:-1:-1;;;9770:18:1;;;9763:38;9818:18;;64805:30:0;9511:331:1;64805:30:0;64863:4;64854:6;:13;64850:32;;;64878:4;64869:13;;64850:32;64917:11;;64908:6;:20;64904:46;;;64939:11;;64930:20;;64904:46;64961:36;-1:-1:-1;;;;;64961:11:0;:24;64986:2;64990:6;64961:24;:36::i;:::-;-1:-1:-1;65015:6:0;;64413:616;-1:-1:-1;;64413:616:0:o;65037:540::-;65166:38;;-1:-1:-1;;;65166:38:0;;65198:4;65166:38;;;1204:51:1;65123:7:0;;;;-1:-1:-1;;;;;65166:13:0;:23;;;;1177:18:1;;65166:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65143:61;-1:-1:-1;65219:20:0;;;:40;;-1:-1:-1;65243:11:0;;:16;65219:40;65215:54;;;65268:1;65261:8;;;;;65215:54;65306:11;;65289:13;:28;;65280:63;;;;-1:-1:-1;;;65280:63:0;;10049:2:1;65280:63:0;;;10031:21:1;10088:2;10068:18;;;10061:30;-1:-1:-1;;;10107:18:1;;;10100:51;10168:18;;65280:63:0;9847:345:1;65280:63:0;65417:11;;65356:19;;65378:51;;:34;:15;65398:13;65378:19;:34::i;:51::-;65356:73;-1:-1:-1;65444:18:0;;65440:98;;65479:47;-1:-1:-1;;;;;65479:13:0;:26;65506:3;65511:14;65479:26;:47::i;:::-;65555:14;65037:540;-1:-1:-1;;;;65037:540: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;;7255:2:1;7363:38:0;;;7237:21:1;7294:2;7274:18;;;7267:30;-1:-1:-1;;;7313:18:1;;;7306:46;7369:18;;7363:38:0;7053: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;;;;;10455:15:1;;;33894:68:0;;;10437:34:1;10507:15;;10487:18;;;10480:43;10539:18;;;10532:34;;;33867:96:0;;33887:5;;-1:-1:-1;;;33917:27:0;10372:18:1;;33894:68:0;10197:375:1;33867:96:0;33723:248;;;;:::o;49417:120::-;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;;11061:2:1;36689:85:0;;;11043:21:1;11100:2;11080:18;;;11073:30;11139:34;11119:18;;;11112:62;-1:-1:-1;;;11190:18:1;;;11183:40;11240:19;;36689:85:0;10859: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;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;;11604:2:1;29690:81:0;;;11586:21:1;11643:2;11623:18;;;11616:30;11682:34;11662:18;;;11655:62;-1:-1:-1;;;11733:18:1;;;11726:36;11779:19;;29690:81:0;11402:402:1;29690:81:0;-1:-1:-1;;;;;25925:19:0;;;29782:60;;;;-1:-1:-1;;;29782:60:0;;12011:2:1;29782:60:0;;;11993:21:1;12050:2;12030:18;;;12023:30;12089:31;12069:18;;;12062:59;12138:18;;29782:60:0;11809: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;1266:286::-;1325:6;1378:2;1366:9;1357:7;1353:23;1349:32;1346:52;;;1394:1;1391;1384:12;1346:52;1420:23;;-1:-1:-1;;;;;1472:31:1;;1462:42;;1452:70;;1518:1;1515;1508:12;2678:356;2880:2;2862:21;;;2899:18;;;2892:30;2958:34;2953:2;2938:18;;2931:62;3025:2;3010:18;;2678:356::o;3039:127::-;3100:10;3095:3;3091:20;3088:1;3081:31;3131:4;3128:1;3121:15;3155:4;3152:1;3145:15;3171:127;3232:10;3227:3;3223:20;3220:1;3213:31;3263:4;3260:1;3253:15;3287:4;3284:1;3277:15;3643:184;3713:6;3766:2;3754:9;3745:7;3741:23;3737:32;3734:52;;;3782:1;3779;3772:12;3734:52;-1:-1:-1;3805:16:1;;3643:184;-1:-1:-1;3643:184:1:o;4181:127::-;4242:10;4237:3;4233:20;4230:1;4223:31;4273:4;4270:1;4263:15;4297:4;4294:1;4287:15;4313:128;4380:9;;;4401:11;;;4398:37;;;4415:18;;:::i;4446:355::-;4648:2;4630:21;;;4687:2;4667:18;;;4660:30;4726:33;4721:2;4706:18;;4699:61;4792:2;4777:18;;4446:355::o;5494:125::-;5559:9;;;5580:10;;;5577:36;;;5593:18;;:::i;8423:168::-;8496:9;;;8527;;8544:15;;;8538:22;;8524:37;8514:71;;8565:18;;:::i;8596:217::-;8636:1;8662;8652:132;;8706:10;8701:3;8697:20;8694:1;8687:31;8741:4;8738:1;8731:15;8769:4;8766:1;8759:15;8652:132;-1:-1:-1;8798:9:1;;8596:217::o;10577:277::-;10644:6;10697:2;10685:9;10676:7;10672:23;10668:32;10665:52;;;10713:1;10710;10703:12;10665:52;10745:9;10739:16;10798:5;10791:13;10784:21;10777:5;10774:32;10764:60;;10820:1;10817;10810:12;11270:127;11331:10;11326:3;11322:20;11319:1;11312:31;11362:4;11359:1;11352:15;11386:4;11383:1;11376:15;12167:301;12296:3;12334:6;12328:13;12380:6;12373:4;12365:6;12361:17;12356:3;12350:37;12442:1;12406:16;;12431:13;;;-1:-1:-1;12406:16:1;12167:301;-1:-1:-1;12167:301:1:o;12473:418::-;12622:2;12611:9;12604:21;12585:4;12654:6;12648:13;12697:6;12692:2;12681:9;12677:18;12670:34;12756:6;12751:2;12743:6;12739:15;12734:2;12723:9;12719:18;12713:50;12812:1;12807:2;12798:6;12787:9;12783:22;12779:31;12772:42;12882:2;12875;12871:7;12866:2;12858:6;12854:15;12850:29;12839:9;12835:45;12831:54;12823:62;;;12473:418;;;;:::o
Swarm Source
ipfs://3be666fa77acd54d46ead865280856db8952837550d36813e1f42c0c722d12b8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.