Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 848 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 22654373 | 160 days ago | IN | 0 ETH | 0.00043811 | ||||
| Withdraw | 22435088 | 190 days ago | IN | 0 ETH | 0.00016943 | ||||
| Withdraw | 21859419 | 271 days ago | IN | 0 ETH | 0.00038037 | ||||
| Withdraw | 21829946 | 275 days ago | IN | 0 ETH | 0.00040208 | ||||
| Claim | 21829944 | 275 days ago | IN | 0 ETH | 0.00027654 | ||||
| Claim | 21829940 | 275 days ago | IN | 0 ETH | 0.00033634 | ||||
| Withdraw | 21643454 | 301 days ago | IN | 0 ETH | 0.00131982 | ||||
| Claim | 21643449 | 301 days ago | IN | 0 ETH | 0.00113546 | ||||
| Claim | 21616022 | 305 days ago | IN | 0 ETH | 0.00109781 | ||||
| Withdraw | 21576140 | 310 days ago | IN | 0 ETH | 0.00079494 | ||||
| Withdraw | 21428269 | 331 days ago | IN | 0 ETH | 0.00131661 | ||||
| Claim | 21428176 | 331 days ago | IN | 0 ETH | 0.00117506 | ||||
| Claim | 21276080 | 352 days ago | IN | 0 ETH | 0.000647 | ||||
| Withdraw | 21158286 | 369 days ago | IN | 0 ETH | 0.00236224 | ||||
| Claim | 21158134 | 369 days ago | IN | 0 ETH | 0.00227912 | ||||
| Withdraw | 21140613 | 371 days ago | IN | 0 ETH | 0.00126998 | ||||
| Claim | 21140607 | 371 days ago | IN | 0 ETH | 0.00062014 | ||||
| Withdraw | 20460675 | 466 days ago | IN | 0 ETH | 0.01827218 | ||||
| Withdraw | 20410366 | 473 days ago | IN | 0 ETH | 0.00050045 | ||||
| Withdraw | 20409982 | 473 days ago | IN | 0 ETH | 0.00051092 | ||||
| Claim | 20409980 | 473 days ago | IN | 0 ETH | 0.00036684 | ||||
| Withdraw | 20407477 | 473 days ago | IN | 0 ETH | 0.00049056 | ||||
| Claim | 20407454 | 473 days ago | IN | 0 ETH | 0.00030416 | ||||
| Withdraw | 20384137 | 477 days ago | IN | 0 ETH | 0.00112605 | ||||
| Claim | 20384127 | 477 days ago | IN | 0 ETH | 0.00100786 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
PawFlexibleStake
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
//import "hardhat/console.sol";
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
* @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);
}
/*
* @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/Ownable.sol
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() {
_setOwner(_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 {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol
/**
* @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 make it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
// File: @openzeppelin/contracts/utils/Address.sol
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) private pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File: "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* 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}.
*
* 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 default value returned by this function, unless
* it's 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, allowance(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 = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* 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;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_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;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_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;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_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 Updates `owner` s allowance for `spender` based on spent `amount`.
*
* 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 {}
}
/// @title Dividend-Paying Token
/// @author Roger Wu (https://github.com/roger-wu)
/// @dev A mintable ERC20 token that allows anyone to pay and distribute ether
/// to token holders as dividends and allows token holders to withdraw their dividends.
/// Reference: the source code of PoWH3D: https://etherscan.io/address/0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe#code
contract DividendStakingToken is ERC20 {
constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {}
function _transfer(address from, address to, uint256 value) internal virtual override {
require(false, "Cant transfer dividend token");
super._transfer(from, to, value);
}
function _mint(address account, uint256 value) internal override {
super._mint(account, value);
}
function _burn(address account, uint256 value) internal override {
super._burn(account, value);
}
function _setDividendBalance(address account, uint256 newBalance) internal {
uint256 currentBalance = balanceOf(account);
if(newBalance > currentBalance) {
uint256 mintAmount = newBalance - currentBalance;
_mint(account, mintAmount);
} else if(newBalance < currentBalance) {
uint256 burnAmount = currentBalance - newBalance;
_burn(account, burnAmount);
}
}
}
interface IwPAWFlexibleStaking {
function stakingAmount(address _user) external view returns (uint256);
function isStakable(address _user) external view returns (bool);
function forceWithdraw(address _user) external;
}
contract PawFlexibleStake is Ownable, ReentrancyGuard, DividendStakingToken {
using SafeERC20 for IERC20Metadata;
// apy
uint256 public apy;
// Accrued token per share
uint256 public accTokenPerShare;
uint256 public totalStaked;
// The block number of the last pool update
uint256 public lastRewardTimeStamp;
// The precision factor
uint256 public PRECISION_FACTOR = uint256(10**12);
// The reward token
IERC20Metadata public wPAWToken;
// The staked token
IERC20Metadata public PAWToken;
// WPAW Staking
address public WPAWStaking;
// Info of each user that stakes tokens (PAWToken)
mapping(address => UserInfo) public userInfo;
struct UserInfo {
uint256 amount; // How many staked tokens the user has provided
uint256 rewardDebt; // Reward debt
}
event Deposit(address indexed user, uint256 amount);
event EmergencyWithdraw(address indexed user, uint256 amount);
event NewAPY(uint256 apy);
event TokenRecovery(address indexed token, uint256 amount);
event Withdraw(address indexed user, uint256 amount);
event Claim(address indexed user, uint256 amount);
/**
* @notice Constructor
*/
constructor() DividendStakingToken("Paw Stake Tracker", "stPAWflex") {
PAWToken = IERC20Metadata(0xDc63269eA166b70d4780b3A11F5C825C2b761B01); //PAW
wPAWToken = IERC20Metadata(0xFF9E32AaF15953EC3F69FE899D220A705ce06dD0); //wPAW
// Set the lastRewardTimeStamp as the current timestamp
lastRewardTimeStamp = block.timestamp;
apy = 3; // 3%
}
/*
* @notice Deposit staked tokens and collect reward tokens (if any)
* @param _amount: amount to withdraw (in wPAWToken)
*/
function deposit(uint256 _amount) external nonReentrant {
UserInfo storage user = userInfo[msg.sender];
_updatePool();
if (user.amount > 0) {
uint256 pending = (user.amount * accTokenPerShare) / PRECISION_FACTOR - user.rewardDebt;
if (pending > 0) {
wPAWToken.safeTransfer(address(msg.sender), pending);
}
}
if (_amount > 0) {
totalStaked += _amount;
user.amount += _amount;
_setDividendBalance(msg.sender, user.amount);
PAWToken.safeTransferFrom(address(msg.sender), address(this), _amount);
}
user.rewardDebt = (user.amount * accTokenPerShare) / PRECISION_FACTOR;
emit Deposit(msg.sender, _amount);
}
/*
* @notice Withdraw staked tokens and collect reward tokens
* @param _amount: amount to withdraw (in wPAWToken)
*/
function withdraw(uint256 _amount) external nonReentrant {
UserInfo storage user = userInfo[msg.sender];
require(user.amount >= _amount, "Amount to withdraw too high");
_updatePool();
uint256 pending = (user.amount * accTokenPerShare) / PRECISION_FACTOR - user.rewardDebt;
if (_amount > 0) {
totalStaked -= _amount;
user.amount -= _amount;
_setDividendBalance(msg.sender, user.amount);
PAWToken.safeTransfer(address(msg.sender), _amount);
}
if (pending > 0) {
wPAWToken.safeTransfer(address(msg.sender), pending);
}
user.rewardDebt = (user.amount * accTokenPerShare) / PRECISION_FACTOR;
if(user.amount == 0 && WPAWStaking != address(0)){
if(IwPAWFlexibleStaking(WPAWStaking).stakingAmount(msg.sender) > 0
&& !IwPAWFlexibleStaking(WPAWStaking).isStakable(msg.sender))
{
IwPAWFlexibleStaking(WPAWStaking).forceWithdraw(msg.sender);
}
}
emit Withdraw(msg.sender, _amount);
}
/*
* @notice Collect reward tokens
*/
function claim() external nonReentrant {
UserInfo storage user = userInfo[msg.sender];
_updatePool();
uint256 pending = (user.amount * accTokenPerShare) / PRECISION_FACTOR - user.rewardDebt;
require (pending > 0, "No reward to claim");
wPAWToken.safeTransfer(address(msg.sender), pending);
user.rewardDebt = (user.amount * accTokenPerShare) / PRECISION_FACTOR;
emit Claim(msg.sender, pending);
}
/*
* @notice Withdraw staked tokens without caring about rewards rewards
* @dev Needs to be for emergency.
*/
function emergencyWithdraw() external nonReentrant {
UserInfo storage user = userInfo[msg.sender];
uint256 amountToTransfer = user.amount;
uint256 pending = (user.amount * accTokenPerShare) / PRECISION_FACTOR - user.rewardDebt;
if(pending > 0){
rewardTreasure += pending;
_updatePool();
}
user.amount = 0;
user.rewardDebt = 0;
totalStaked -= amountToTransfer;
if (amountToTransfer > 0) {
PAWToken.safeTransfer(address(msg.sender), amountToTransfer);
}
_setDividendBalance(msg.sender, user.amount);
if(user.amount == 0 && WPAWStaking != address(0)){
if(IwPAWFlexibleStaking(WPAWStaking).stakingAmount(msg.sender) > 0
&& !IwPAWFlexibleStaking(WPAWStaking).isStakable(msg.sender))
{
IwPAWFlexibleStaking(WPAWStaking).forceWithdraw(msg.sender);
}
}
emit EmergencyWithdraw(msg.sender, user.amount);
}
/*
* @notice Stop rewards, withdraw all reward
* @dev Only callable by owner. Needs to be for emergency.
*/
function emergencyRewardWithdraw(uint256 _amount) external onlyOwner {
require(_amount <= rewardTreasure, "Exceed withdrawable amount");
wPAWToken.safeTransfer(address(msg.sender), _amount);
rewardTreasure -= _amount;
}
/**
* @notice Allows the owner to recover tokens sent to the contract by mistake
* @param _token: token address
* @dev Callable by owner
*/
function recoverToken(address _token) external onlyOwner {
require(_token != address(PAWToken), "Operations: Cannot recover staked token");
require(_token != address(wPAWToken), "Operations: Cannot recover reward token");
uint256 balance = IERC20Metadata(_token).balanceOf(address(this));
require(balance != 0, "Operations: Cannot recover zero balance");
IERC20Metadata(_token).safeTransfer(address(msg.sender), balance);
emit TokenRecovery(_token, balance);
}
/*
* @notice Update APY
* @dev Only callable by owner. Change APY.
*/
function updateNewAPY(uint256 _newAPY) external onlyOwner {
_updatePool();
apy = _newAPY;
emit NewAPY(_newAPY);
}
/*
* @notice Set WPAW staking contract
* @dev Only callable by owner. Change APY.
*/
function setWPAWStakingContract(address _wPAWStaking) external onlyOwner {
WPAWStaking = _wPAWStaking;
}
/*
* @notice View function to see pending reward on frontend.
* @param _user: user address
* @return Pending reward for a given user
*/
function pendingReward(address _user) external view returns (uint256) {
UserInfo storage user = userInfo[_user];
if (block.timestamp > lastRewardTimeStamp && totalStaked != 0) {
uint256 multiplier = block.timestamp - lastRewardTimeStamp;
uint256 estimatedReward = multiplier * (((totalStaked * apy)/100) / (365 days));
if(estimatedReward > rewardTreasure){
estimatedReward = rewardTreasure;
}
uint256 adjustedTokenPerShare = accTokenPerShare + (estimatedReward * PRECISION_FACTOR) / totalStaked;
return (user.amount * adjustedTokenPerShare) / PRECISION_FACTOR - user.rewardDebt;
} else {
return (user.amount * accTokenPerShare) / PRECISION_FACTOR - user.rewardDebt;
}
}
/*
* @notice Update reward variables of the given pool to be up-to-date.
*/
function _updatePool() internal {
if (block.timestamp <= lastRewardTimeStamp) {
return;
}
if (totalStaked == 0) {
lastRewardTimeStamp = block.timestamp;
return;
}
uint256 multiplier = block.timestamp - lastRewardTimeStamp;
uint256 estimatedReward = multiplier * (((totalStaked * apy)/100) / (365 days));
uint256 realReward = _allocateReward(estimatedReward);
accTokenPerShare += (realReward * PRECISION_FACTOR) / totalStaked;
lastRewardTimeStamp = block.timestamp;
}
uint256 public rewardTreasure;
uint256 public rewardAllocated;
function addRewardTreasure(uint256 _amount) external nonReentrant{
require( _amount > 0 , "err _amount=0");
uint256 oldBalance = wPAWToken.balanceOf(address(this));
wPAWToken.safeTransferFrom(msg.sender, address(this), _amount);
uint256 newBalance = wPAWToken.balanceOf(address(this));
uint256 realAmount = newBalance - oldBalance;
rewardTreasure += realAmount;
_updatePool();
}
function _allocateReward(uint256 amount ) internal returns(uint256){
uint256 allocatedAmount = amount;
if( amount >= rewardTreasure ){
allocatedAmount = rewardTreasure;
}
rewardTreasure -= allocatedAmount;
rewardAllocated += allocatedAmount;
return allocatedAmount;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"apy","type":"uint256"}],"name":"NewAPY","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":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"PAWToken","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WPAWStaking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accTokenPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addRewardTreasure","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"apy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastRewardTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardAllocated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTreasure","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wPAWStaking","type":"address"}],"name":"setWPAWStakingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAPY","type":"uint256"}],"name":"updateNewAPY","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wPAWToken","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405264e8d4a51000600b553480156200001a57600080fd5b50604051806040016040528060118152602001702830bb9029ba30b5b2902a3930b1b5b2b960791b815250604051806040016040528060098152602001680e6e8a082aeccd8caf60bb1b8152508181620000836200007d6200010e60201b60201c565b62000112565b6001805581516200009c90600590602085019062000162565b508051620000b290600690602084019062000162565b5050600d80546001600160a01b031990811673dc63269ea166b70d4780b3a11f5c825c2b761b0117909155600c805490911673ff9e32aaf15953ec3f69fe899d220a705ce06dd0179055505042600a5550600360075562000245565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001709062000208565b90600052602060002090601f016020900481019282620001945760008555620001df565b82601f10620001af57805160ff1916838001178555620001df565b82800160010185558215620001df579182015b82811115620001df578251825591602001919060010190620001c2565b50620001ed929150620001f1565b5090565b5b80821115620001ed5760008155600101620001f2565b600181811c908216806200021d57607f821691505b602082108114156200023f57634e487b7160e01b600052602260045260246000fd5b50919050565b61214b80620002556000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c8063817b1cd211610125578063b6b55f25116100ad578063dbda80ca1161007c578063dbda80ca1461044f578063dd62ed3e14610462578063f2fde38b14610475578063f40f0f5214610488578063f4afdca11461049b57600080fd5b8063b6b55f2514610418578063b82adc211461042b578063ccd34cd51461043e578063db2e21bc1461044757600080fd5b80638f662915116100f45780638f662915146103ce57806395d89b41146103d75780639be65a60146103df578063a457c2d7146103f2578063a9059cbb1461040557600080fd5b8063817b1cd214610380578063828ac8cd14610389578063873187a3146103925780638da5cb5b146103bd57600080fd5b8063313ce567116101a85780633bcfc4b8116101775780633bcfc4b81461032b5780634e71d92d1461033457806362ca19621461033c57806370a082311461034f578063715018a61461037857600080fd5b8063313ce567146102ed5780633279beab146102fc578063356c72841461030f578063395093511461031857600080fd5b806318160ddd116101e457806318160ddd146102835780631959a0021461028b57806323b872dd146102c75780632e1a7d4d146102da57600080fd5b806306fdde0314610216578063086801eb14610234578063095ea7b3146102495780631063c0c41461026c575b600080fd5b61021e6104ae565b60405161022b9190611f8f565b60405180910390f35b610247610242366004611f41565b610540565b005b61025c610257366004611ef5565b6106fb565b604051901515815260200161022b565b61027560105481565b60405190815260200161022b565b600454610275565b6102b2610299366004611e6b565b600f602052600090815260409020805460019091015482565b6040805192835260208301919091520161022b565b61025c6102d5366004611eb9565b610713565b6102476102e8366004611f41565b610739565b6040516012815260200161022b565b61024761030a366004611f41565b610a54565b610275600a5481565b61025c610326366004611ef5565b610b01565b61027560075481565b610247610b23565b61024761034a366004611e6b565b610c4f565b61027561035d366004611e6b565b6001600160a01b031660009081526002602052604090205490565b610247610c9b565b61027560095481565b61027560115481565b600d546103a5906001600160a01b031681565b6040516001600160a01b03909116815260200161022b565b6000546001600160a01b03166103a5565b61027560085481565b61021e610cd1565b6102476103ed366004611e6b565b610ce0565b61025c610400366004611ef5565b610f1a565b61025c610413366004611ef5565b610fa0565b610247610426366004611f41565b610fae565b600c546103a5906001600160a01b031681565b610275600b5481565b6102476110f3565b61024761045d366004611f41565b611386565b610275610470366004611e86565b6113f3565b610247610483366004611e6b565b61141e565b610275610496366004611e6b565b6114b9565b600e546103a5906001600160a01b031681565b6060600580546104bd906120ca565b80601f01602080910402602001604051908101604052809291908181526020018280546104e9906120ca565b80156105365780601f1061050b57610100808354040283529160200191610536565b820191906000526020600020905b81548152906001019060200180831161051957829003601f168201915b5050505050905090565b6002600154141561056c5760405162461bcd60e51b815260040161056390611ff7565b60405180910390fd5b6002600155806105ae5760405162461bcd60e51b815260206004820152600d60248201526c0657272205f616d6f756e743d3609c1b6044820152606401610563565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156105f257600080fd5b505afa158015610606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062a9190611f5a565b600c54909150610645906001600160a01b03163330856115d5565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561068957600080fd5b505afa15801561069d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c19190611f5a565b905060006106cf8383612087565b905080601060008282546106e3919061202e565b909155506106f19050611646565b5050600180555050565b6000336107098185856116f0565b5060019392505050565b600033610721858285611814565b61072c858585611888565b60019150505b9392505050565b6002600154141561075c5760405162461bcd60e51b815260040161056390611ff7565b6002600155336000908152600f6020526040902080548211156107c15760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f206869676800000000006044820152606401610563565b6107c9611646565b60008160010154600b5460085484600001546107e59190612068565b6107ef9190612046565b6107f99190612087565b905082156108555782600960008282546108139190612087565b909155505081548390839060009061082c908490612087565b9091555050815461083e9033906118d5565b600d54610855906001600160a01b0316338561192e565b801561087257600c54610872906001600160a01b0316338361192e565b600b5460085483546108849190612068565b61088e9190612046565b600183015581541580156108ac5750600e546001600160a01b031615155b15610a1557600e5460405163747bd8f760e11b81523360048201526000916001600160a01b03169063e8f7b1ee9060240160206040518083038186803b1580156108f557600080fd5b505afa158015610909573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092d9190611f5a565b1180156109b25750600e546040516389f6e00d60e01b81523360048201526001600160a01b03909116906389f6e00d9060240160206040518083038186803b15801561097857600080fd5b505afa15801561098c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b09190611f1f565b155b15610a1557600e546040516344179f0b60e11b81523360048201526001600160a01b039091169063882f3e1690602401600060405180830381600087803b1580156109fc57600080fd5b505af1158015610a10573d6000803e3d6000fd5b505050505b60405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a250506001805550565b6000546001600160a01b03163314610a7e5760405162461bcd60e51b815260040161056390611fc2565b601054811115610ad05760405162461bcd60e51b815260206004820152601a60248201527f45786365656420776974686472617761626c6520616d6f756e740000000000006044820152606401610563565b600c54610ae7906001600160a01b0316338361192e565b8060106000828254610af99190612087565b909155505050565b600033610709818585610b1483836113f3565b610b1e919061202e565b6116f0565b60026001541415610b465760405162461bcd60e51b815260040161056390611ff7565b6002600155336000908152600f60205260409020610b62611646565b60008160010154600b546008548460000154610b7e9190612068565b610b889190612046565b610b929190612087565b905060008111610bd95760405162461bcd60e51b81526020600482015260126024820152714e6f2072657761726420746f20636c61696d60701b6044820152606401610563565b600c54610bf0906001600160a01b0316338361192e565b600b546008548354610c029190612068565b610c0c9190612046565b600183015560405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4906020015b60405180910390a2505060018055565b6000546001600160a01b03163314610c795760405162461bcd60e51b815260040161056390611fc2565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610cc55760405162461bcd60e51b815260040161056390611fc2565b610ccf600061195e565b565b6060600680546104bd906120ca565b6000546001600160a01b03163314610d0a5760405162461bcd60e51b815260040161056390611fc2565b600d546001600160a01b0382811691161415610d785760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207374616b6560448201526632103a37b5b2b760c91b6064820152608401610563565b600c546001600160a01b0382811691161415610de65760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f76657220726577617260448201526632103a37b5b2b760c91b6064820152608401610563565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610e2857600080fd5b505afa158015610e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e609190611f5a565b905080610ebf5760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207a65726f2060448201526662616c616e636560c81b6064820152608401610563565b610ed36001600160a01b038316338361192e565b816001600160a01b03167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e9882604051610f0e91815260200190565b60405180910390a25050565b60003381610f2882866113f3565b905083811015610f885760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610563565b610f9582868684036116f0565b506001949350505050565b600033610709818585611888565b60026001541415610fd15760405162461bcd60e51b815260040161056390611ff7565b6002600155336000908152600f60205260409020610fed611646565b8054156110455760008160010154600b5460085484600001546110109190612068565b61101a9190612046565b6110249190612087565b9050801561104357600c54611043906001600160a01b0316338361192e565b505b81156110a057816009600082825461105d919061202e565b909155505080548290829060009061107690849061202e565b909155505080546110889033906118d5565b600d546110a0906001600160a01b03163330856115d5565b600b5460085482546110b29190612068565b6110bc9190612046565b600182015560405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90602001610c3f565b600260015414156111165760405162461bcd60e51b815260040161056390611ff7565b60026001908155336000908152600f60205260408120805492810154600b54600854929493926111469085612068565b6111509190612046565b61115a9190612087565b90508015611182578060106000828254611174919061202e565b909155506111829050611646565b600080845560018401819055600980548492906111a0908490612087565b909155505081156111c257600d546111c2906001600160a01b0316338461192e565b6111d03384600001546118d5565b82541580156111e95750600e546001600160a01b031615155b1561135257600e5460405163747bd8f760e11b81523360048201526000916001600160a01b03169063e8f7b1ee9060240160206040518083038186803b15801561123257600080fd5b505afa158015611246573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126a9190611f5a565b1180156112ef5750600e546040516389f6e00d60e01b81523360048201526001600160a01b03909116906389f6e00d9060240160206040518083038186803b1580156112b557600080fd5b505afa1580156112c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ed9190611f1f565b155b1561135257600e546040516344179f0b60e11b81523360048201526001600160a01b039091169063882f3e1690602401600060405180830381600087803b15801561133957600080fd5b505af115801561134d573d6000803e3d6000fd5b505050505b825460405190815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969590602001610a43565b6000546001600160a01b031633146113b05760405162461bcd60e51b815260040161056390611fc2565b6113b8611646565b60078190556040518181527fdf6a785a3f6f4690f12091be4b76d03b768c8f82a8d1612aac2f53cb2b7a9cad9060200160405180910390a150565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000546001600160a01b031633146114485760405162461bcd60e51b815260040161056390611fc2565b6001600160a01b0381166114ad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610563565b6114b68161195e565b50565b6001600160a01b0381166000908152600f60205260408120600a54421180156114e3575060095415155b156115a4576000600a54426114f89190612087565b905060006301e1338060646007546009546115139190612068565b61151d9190612046565b6115279190612046565b6115319083612068565b905060105481111561154257506010545b6000600954600b54836115559190612068565b61155f9190612046565b60085461156c919061202e565b90508360010154600b548286600001546115869190612068565b6115909190612046565b61159a9190612087565b9695505050505050565b6001810154600b5460085483546115bb9190612068565b6115c59190612046565b6107329190612087565b50919050565b6040516001600160a01b03808516602483015283166044820152606481018290526116409085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526119ae565b50505050565b600a54421161165157565b60095461165e5742600a55565b6000600a544261166e9190612087565b905060006301e1338060646007546009546116899190612068565b6116939190612046565b61169d9190612046565b6116a79083612068565b905060006116b482611a80565b9050600954600b54826116c79190612068565b6116d19190612046565b600860008282546116e2919061202e565b909155505042600a55505050565b6001600160a01b0383166117525760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610563565b6001600160a01b0382166117b35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610563565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061182084846113f3565b90506000198114611640578181101561187b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610563565b61164084848484036116f0565b60405162461bcd60e51b815260206004820152601c60248201527f43616e74207472616e73666572206469766964656e6420746f6b656e000000006044820152606401610563565b505050565b6001600160a01b0382166000908152600260205260409020548082111561190e5760006119028284612087565b90506116408482611aca565b808210156118d05760006119228383612087565b90506116408482611ad8565b6040516001600160a01b0383166024820152604481018290526118d090849063a9059cbb60e01b90606401611609565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611a03826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ae29092919063ffffffff16565b8051909150156118d05780806020019051810190611a219190611f1f565b6118d05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610563565b60105460009082908110611a9357506010545b8060106000828254611aa59190612087565b925050819055508060116000828254611abe919061202e565b90915550909392505050565b611ad48282611af9565b5050565b611ad48282611bba565b6060611af18484600085611cee565b949350505050565b6001600160a01b038216611b4f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610563565b8060046000828254611b61919061202e565b90915550506001600160a01b0382166000818152600260209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216611c1a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610563565b6001600160a01b03821660009081526002602052604090205481811015611c8e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610563565b6001600160a01b03831660008181526002602090815260408083208686039055600480548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b606082471015611d4f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610563565b843b611d9d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610563565b600080866001600160a01b03168587604051611db99190611f73565b60006040518083038185875af1925050503d8060008114611df6576040519150601f19603f3d011682016040523d82523d6000602084013e611dfb565b606091505b5091509150611e0b828286611e16565b979650505050505050565b60608315611e25575081610732565b825115611e355782518084602001fd5b8160405162461bcd60e51b81526004016105639190611f8f565b80356001600160a01b0381168114611e6657600080fd5b919050565b600060208284031215611e7d57600080fd5b61073282611e4f565b60008060408385031215611e9957600080fd5b611ea283611e4f565b9150611eb060208401611e4f565b90509250929050565b600080600060608486031215611ece57600080fd5b611ed784611e4f565b9250611ee560208501611e4f565b9150604084013590509250925092565b60008060408385031215611f0857600080fd5b611f1183611e4f565b946020939093013593505050565b600060208284031215611f3157600080fd5b8151801515811461073257600080fd5b600060208284031215611f5357600080fd5b5035919050565b600060208284031215611f6c57600080fd5b5051919050565b60008251611f8581846020870161209e565b9190910192915050565b6020815260008251806020840152611fae81604085016020870161209e565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115612041576120416120ff565b500190565b60008261206357634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612082576120826120ff565b500290565b600082821015612099576120996120ff565b500390565b60005b838110156120b95781810151838201526020016120a1565b838111156116405750506000910152565b600181811c908216806120de57607f821691505b602082108114156115cf57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fdfea264697066735822122007d6de7bea4d142f0387b6148fe9cddd2ba1743d4e1f8561764614864040ea0064736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102115760003560e01c8063817b1cd211610125578063b6b55f25116100ad578063dbda80ca1161007c578063dbda80ca1461044f578063dd62ed3e14610462578063f2fde38b14610475578063f40f0f5214610488578063f4afdca11461049b57600080fd5b8063b6b55f2514610418578063b82adc211461042b578063ccd34cd51461043e578063db2e21bc1461044757600080fd5b80638f662915116100f45780638f662915146103ce57806395d89b41146103d75780639be65a60146103df578063a457c2d7146103f2578063a9059cbb1461040557600080fd5b8063817b1cd214610380578063828ac8cd14610389578063873187a3146103925780638da5cb5b146103bd57600080fd5b8063313ce567116101a85780633bcfc4b8116101775780633bcfc4b81461032b5780634e71d92d1461033457806362ca19621461033c57806370a082311461034f578063715018a61461037857600080fd5b8063313ce567146102ed5780633279beab146102fc578063356c72841461030f578063395093511461031857600080fd5b806318160ddd116101e457806318160ddd146102835780631959a0021461028b57806323b872dd146102c75780632e1a7d4d146102da57600080fd5b806306fdde0314610216578063086801eb14610234578063095ea7b3146102495780631063c0c41461026c575b600080fd5b61021e6104ae565b60405161022b9190611f8f565b60405180910390f35b610247610242366004611f41565b610540565b005b61025c610257366004611ef5565b6106fb565b604051901515815260200161022b565b61027560105481565b60405190815260200161022b565b600454610275565b6102b2610299366004611e6b565b600f602052600090815260409020805460019091015482565b6040805192835260208301919091520161022b565b61025c6102d5366004611eb9565b610713565b6102476102e8366004611f41565b610739565b6040516012815260200161022b565b61024761030a366004611f41565b610a54565b610275600a5481565b61025c610326366004611ef5565b610b01565b61027560075481565b610247610b23565b61024761034a366004611e6b565b610c4f565b61027561035d366004611e6b565b6001600160a01b031660009081526002602052604090205490565b610247610c9b565b61027560095481565b61027560115481565b600d546103a5906001600160a01b031681565b6040516001600160a01b03909116815260200161022b565b6000546001600160a01b03166103a5565b61027560085481565b61021e610cd1565b6102476103ed366004611e6b565b610ce0565b61025c610400366004611ef5565b610f1a565b61025c610413366004611ef5565b610fa0565b610247610426366004611f41565b610fae565b600c546103a5906001600160a01b031681565b610275600b5481565b6102476110f3565b61024761045d366004611f41565b611386565b610275610470366004611e86565b6113f3565b610247610483366004611e6b565b61141e565b610275610496366004611e6b565b6114b9565b600e546103a5906001600160a01b031681565b6060600580546104bd906120ca565b80601f01602080910402602001604051908101604052809291908181526020018280546104e9906120ca565b80156105365780601f1061050b57610100808354040283529160200191610536565b820191906000526020600020905b81548152906001019060200180831161051957829003601f168201915b5050505050905090565b6002600154141561056c5760405162461bcd60e51b815260040161056390611ff7565b60405180910390fd5b6002600155806105ae5760405162461bcd60e51b815260206004820152600d60248201526c0657272205f616d6f756e743d3609c1b6044820152606401610563565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156105f257600080fd5b505afa158015610606573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062a9190611f5a565b600c54909150610645906001600160a01b03163330856115d5565b600c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561068957600080fd5b505afa15801561069d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c19190611f5a565b905060006106cf8383612087565b905080601060008282546106e3919061202e565b909155506106f19050611646565b5050600180555050565b6000336107098185856116f0565b5060019392505050565b600033610721858285611814565b61072c858585611888565b60019150505b9392505050565b6002600154141561075c5760405162461bcd60e51b815260040161056390611ff7565b6002600155336000908152600f6020526040902080548211156107c15760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f206869676800000000006044820152606401610563565b6107c9611646565b60008160010154600b5460085484600001546107e59190612068565b6107ef9190612046565b6107f99190612087565b905082156108555782600960008282546108139190612087565b909155505081548390839060009061082c908490612087565b9091555050815461083e9033906118d5565b600d54610855906001600160a01b0316338561192e565b801561087257600c54610872906001600160a01b0316338361192e565b600b5460085483546108849190612068565b61088e9190612046565b600183015581541580156108ac5750600e546001600160a01b031615155b15610a1557600e5460405163747bd8f760e11b81523360048201526000916001600160a01b03169063e8f7b1ee9060240160206040518083038186803b1580156108f557600080fd5b505afa158015610909573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092d9190611f5a565b1180156109b25750600e546040516389f6e00d60e01b81523360048201526001600160a01b03909116906389f6e00d9060240160206040518083038186803b15801561097857600080fd5b505afa15801561098c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b09190611f1f565b155b15610a1557600e546040516344179f0b60e11b81523360048201526001600160a01b039091169063882f3e1690602401600060405180830381600087803b1580156109fc57600080fd5b505af1158015610a10573d6000803e3d6000fd5b505050505b60405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a250506001805550565b6000546001600160a01b03163314610a7e5760405162461bcd60e51b815260040161056390611fc2565b601054811115610ad05760405162461bcd60e51b815260206004820152601a60248201527f45786365656420776974686472617761626c6520616d6f756e740000000000006044820152606401610563565b600c54610ae7906001600160a01b0316338361192e565b8060106000828254610af99190612087565b909155505050565b600033610709818585610b1483836113f3565b610b1e919061202e565b6116f0565b60026001541415610b465760405162461bcd60e51b815260040161056390611ff7565b6002600155336000908152600f60205260409020610b62611646565b60008160010154600b546008548460000154610b7e9190612068565b610b889190612046565b610b929190612087565b905060008111610bd95760405162461bcd60e51b81526020600482015260126024820152714e6f2072657761726420746f20636c61696d60701b6044820152606401610563565b600c54610bf0906001600160a01b0316338361192e565b600b546008548354610c029190612068565b610c0c9190612046565b600183015560405181815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4906020015b60405180910390a2505060018055565b6000546001600160a01b03163314610c795760405162461bcd60e51b815260040161056390611fc2565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610cc55760405162461bcd60e51b815260040161056390611fc2565b610ccf600061195e565b565b6060600680546104bd906120ca565b6000546001600160a01b03163314610d0a5760405162461bcd60e51b815260040161056390611fc2565b600d546001600160a01b0382811691161415610d785760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207374616b6560448201526632103a37b5b2b760c91b6064820152608401610563565b600c546001600160a01b0382811691161415610de65760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f76657220726577617260448201526632103a37b5b2b760c91b6064820152608401610563565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610e2857600080fd5b505afa158015610e3c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e609190611f5a565b905080610ebf5760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207a65726f2060448201526662616c616e636560c81b6064820152608401610563565b610ed36001600160a01b038316338361192e565b816001600160a01b03167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e9882604051610f0e91815260200190565b60405180910390a25050565b60003381610f2882866113f3565b905083811015610f885760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610563565b610f9582868684036116f0565b506001949350505050565b600033610709818585611888565b60026001541415610fd15760405162461bcd60e51b815260040161056390611ff7565b6002600155336000908152600f60205260409020610fed611646565b8054156110455760008160010154600b5460085484600001546110109190612068565b61101a9190612046565b6110249190612087565b9050801561104357600c54611043906001600160a01b0316338361192e565b505b81156110a057816009600082825461105d919061202e565b909155505080548290829060009061107690849061202e565b909155505080546110889033906118d5565b600d546110a0906001600160a01b03163330856115d5565b600b5460085482546110b29190612068565b6110bc9190612046565b600182015560405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90602001610c3f565b600260015414156111165760405162461bcd60e51b815260040161056390611ff7565b60026001908155336000908152600f60205260408120805492810154600b54600854929493926111469085612068565b6111509190612046565b61115a9190612087565b90508015611182578060106000828254611174919061202e565b909155506111829050611646565b600080845560018401819055600980548492906111a0908490612087565b909155505081156111c257600d546111c2906001600160a01b0316338461192e565b6111d03384600001546118d5565b82541580156111e95750600e546001600160a01b031615155b1561135257600e5460405163747bd8f760e11b81523360048201526000916001600160a01b03169063e8f7b1ee9060240160206040518083038186803b15801561123257600080fd5b505afa158015611246573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126a9190611f5a565b1180156112ef5750600e546040516389f6e00d60e01b81523360048201526001600160a01b03909116906389f6e00d9060240160206040518083038186803b1580156112b557600080fd5b505afa1580156112c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ed9190611f1f565b155b1561135257600e546040516344179f0b60e11b81523360048201526001600160a01b039091169063882f3e1690602401600060405180830381600087803b15801561133957600080fd5b505af115801561134d573d6000803e3d6000fd5b505050505b825460405190815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969590602001610a43565b6000546001600160a01b031633146113b05760405162461bcd60e51b815260040161056390611fc2565b6113b8611646565b60078190556040518181527fdf6a785a3f6f4690f12091be4b76d03b768c8f82a8d1612aac2f53cb2b7a9cad9060200160405180910390a150565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000546001600160a01b031633146114485760405162461bcd60e51b815260040161056390611fc2565b6001600160a01b0381166114ad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610563565b6114b68161195e565b50565b6001600160a01b0381166000908152600f60205260408120600a54421180156114e3575060095415155b156115a4576000600a54426114f89190612087565b905060006301e1338060646007546009546115139190612068565b61151d9190612046565b6115279190612046565b6115319083612068565b905060105481111561154257506010545b6000600954600b54836115559190612068565b61155f9190612046565b60085461156c919061202e565b90508360010154600b548286600001546115869190612068565b6115909190612046565b61159a9190612087565b9695505050505050565b6001810154600b5460085483546115bb9190612068565b6115c59190612046565b6107329190612087565b50919050565b6040516001600160a01b03808516602483015283166044820152606481018290526116409085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526119ae565b50505050565b600a54421161165157565b60095461165e5742600a55565b6000600a544261166e9190612087565b905060006301e1338060646007546009546116899190612068565b6116939190612046565b61169d9190612046565b6116a79083612068565b905060006116b482611a80565b9050600954600b54826116c79190612068565b6116d19190612046565b600860008282546116e2919061202e565b909155505042600a55505050565b6001600160a01b0383166117525760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610563565b6001600160a01b0382166117b35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610563565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061182084846113f3565b90506000198114611640578181101561187b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610563565b61164084848484036116f0565b60405162461bcd60e51b815260206004820152601c60248201527f43616e74207472616e73666572206469766964656e6420746f6b656e000000006044820152606401610563565b505050565b6001600160a01b0382166000908152600260205260409020548082111561190e5760006119028284612087565b90506116408482611aca565b808210156118d05760006119228383612087565b90506116408482611ad8565b6040516001600160a01b0383166024820152604481018290526118d090849063a9059cbb60e01b90606401611609565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611a03826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ae29092919063ffffffff16565b8051909150156118d05780806020019051810190611a219190611f1f565b6118d05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610563565b60105460009082908110611a9357506010545b8060106000828254611aa59190612087565b925050819055508060116000828254611abe919061202e565b90915550909392505050565b611ad48282611af9565b5050565b611ad48282611bba565b6060611af18484600085611cee565b949350505050565b6001600160a01b038216611b4f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610563565b8060046000828254611b61919061202e565b90915550506001600160a01b0382166000818152600260209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216611c1a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610563565b6001600160a01b03821660009081526002602052604090205481811015611c8e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610563565b6001600160a01b03831660008181526002602090815260408083208686039055600480548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b606082471015611d4f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610563565b843b611d9d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610563565b600080866001600160a01b03168587604051611db99190611f73565b60006040518083038185875af1925050503d8060008114611df6576040519150601f19603f3d011682016040523d82523d6000602084013e611dfb565b606091505b5091509150611e0b828286611e16565b979650505050505050565b60608315611e25575081610732565b825115611e355782518084602001fd5b8160405162461bcd60e51b81526004016105639190611f8f565b80356001600160a01b0381168114611e6657600080fd5b919050565b600060208284031215611e7d57600080fd5b61073282611e4f565b60008060408385031215611e9957600080fd5b611ea283611e4f565b9150611eb060208401611e4f565b90509250929050565b600080600060608486031215611ece57600080fd5b611ed784611e4f565b9250611ee560208501611e4f565b9150604084013590509250925092565b60008060408385031215611f0857600080fd5b611f1183611e4f565b946020939093013593505050565b600060208284031215611f3157600080fd5b8151801515811461073257600080fd5b600060208284031215611f5357600080fd5b5035919050565b600060208284031215611f6c57600080fd5b5051919050565b60008251611f8581846020870161209e565b9190910192915050565b6020815260008251806020840152611fae81604085016020870161209e565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115612041576120416120ff565b500190565b60008261206357634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612082576120826120ff565b500290565b600082821015612099576120996120ff565b500390565b60005b838110156120b95781810151838201526020016120a1565b838111156116405750506000910152565b600181811c908216806120de57607f821691505b602082108114156115cf57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fdfea264697066735822122007d6de7bea4d142f0387b6148fe9cddd2ba1743d4e1f8561764614864040ea0064736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.