Source Code
Latest 25 from a total of 4,286 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Exit | 421716739 | 10 days ago | IN | 0 ETH | 0.00000165 | ||||
| Get Reward | 421716621 | 10 days ago | IN | 0 ETH | 0.00000177 | ||||
| Get Reward | 419646438 | 16 days ago | IN | 0 ETH | 0.00000211 | ||||
| Exit | 419211642 | 17 days ago | IN | 0 ETH | 0.00000132 | ||||
| Get Reward | 417921588 | 21 days ago | IN | 0 ETH | 0.00000105 | ||||
| Exit | 417758918 | 21 days ago | IN | 0 ETH | 0.00000065 | ||||
| Exit | 417269014 | 22 days ago | IN | 0 ETH | 0.00000082 | ||||
| Exit | 412823493 | 35 days ago | IN | 0 ETH | 0.00000132 | ||||
| Get Reward | 412331155 | 37 days ago | IN | 0 ETH | 0.00000111 | ||||
| Exit | 410696337 | 41 days ago | IN | 0 ETH | 0.00000116 | ||||
| Exit | 405711485 | 56 days ago | IN | 0 ETH | 0.00000078 | ||||
| Exit | 395678976 | 85 days ago | IN | 0 ETH | 0.00000126 | ||||
| Exit | 388459050 | 106 days ago | IN | 0 ETH | 0.00000212 | ||||
| Exit | 382893769 | 122 days ago | IN | 0 ETH | 0.00000678 | ||||
| Exit | 379784560 | 131 days ago | IN | 0 ETH | 0.00000073 | ||||
| Exit | 379349732 | 132 days ago | IN | 0 ETH | 0.00000083 | ||||
| Exit | 378813525 | 134 days ago | IN | 0 ETH | 0.00000066 | ||||
| Exit | 374991431 | 145 days ago | IN | 0 ETH | 0.00000084 | ||||
| Exit | 359033793 | 191 days ago | IN | 0 ETH | 0.00001375 | ||||
| Withdraw | 358562469 | 192 days ago | IN | 0 ETH | 0.00000641 | ||||
| Get Reward | 358562384 | 192 days ago | IN | 0 ETH | 0.00000848 | ||||
| Exit | 358278799 | 193 days ago | IN | 0 ETH | 0.00000182 | ||||
| Exit | 358274527 | 193 days ago | IN | 0 ETH | 0.00000106 | ||||
| Exit | 357966982 | 194 days ago | IN | 0 ETH | 0.00000238 | ||||
| Exit | 355159531 | 202 days ago | IN | 0 ETH | 0.00000069 |
Latest 1 internal transaction
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 228709698 | 570 days ago | Contract Creation | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
FluidLendingStakingRewards
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 10000000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import { IERC20Permit } from "@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol";
import { Owned } from "solmate/src/auth/Owned.sol";
// Adapted from https://github.com/Uniswap/liquidity-staker/blob/master/contracts/StakingRewards.sol
contract FluidLendingStakingRewards is Owned, ReentrancyGuard {
using SafeERC20 for IERC20;
IERC20 public immutable rewardsToken; // should be INST or any ERC20
IERC20 public immutable stakingToken; // should be fToken
/* ========== STATE VARIABLES ========== */
// Owned and ReentranyGuard storage variables before
uint40 internal _periodFinish;
uint40 public lastUpdateTime;
uint40 internal _rewardsDuration; // e.g. 60 days
uint136 internal _rewardRate;
// ------------------------------ next slot
uint128 public rewardPerTokenStored;
uint128 internal _totalSupply;
// ------------------------------ next slot
uint40 public nextRewardsDuration; // e.g. 60 days
uint216 public nextRewards;
// ------------------------------ next slot
mapping(address => uint256) public userRewardPerTokenPaid;
mapping(address => uint256) public rewards;
mapping(address => uint256) internal _balances;
/* ========== CONSTRUCTOR ========== */
constructor(address owner_, IERC20 rewardsToken_, IERC20 stakingToken_, uint40 rewardsDuration_) Owned(owner_) {
require(address(rewardsToken_) != address(0), "Invalid params");
require(address(stakingToken_) != address(0), "Invalid params");
require(owner_ != address(0), "Invalid params"); // Owned does not have a zero check for owner_
require(rewardsDuration_ > 0, "Invalid params");
rewardsToken = rewardsToken_;
stakingToken = stakingToken_;
_rewardsDuration = rewardsDuration_;
}
/* ========== VIEWS ========== */
function nextPeriodFinish() public view returns (uint256) {
if (nextRewardsDuration == 0) {
return 0;
}
return _periodFinish + nextRewardsDuration;
}
function nextRewardRate() public view returns (uint256) {
if (nextRewards == 0) {
return 0;
}
return nextRewards / nextRewardsDuration;
}
function periodFinish() public view returns (uint256) {
if (block.timestamp <= _periodFinish || nextRewardsDuration == 0) {
return _periodFinish;
}
return nextPeriodFinish();
}
function rewardRate() public view returns (uint256) {
if (block.timestamp <= _periodFinish || nextRewardsDuration == 0) {
return _rewardRate;
}
return nextRewardRate();
}
function rewardsDuration() public view returns (uint256) {
if (block.timestamp <= _periodFinish || nextRewardsDuration == 0) {
return _rewardsDuration;
}
return nextRewardsDuration;
}
function totalSupply() public view returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view returns (uint256) {
return _balances[account];
}
/// @notice gets last time where rewards accrue, also considering already queued next rewards
function lastTimeRewardApplicable() public view returns (uint256) {
if (block.timestamp <= _periodFinish) {
return block.timestamp;
}
if (nextRewardsDuration == 0) {
return _periodFinish;
}
// check if block.timestamp is within next rewards duration
uint256 nextPeriodFinish_ = nextPeriodFinish();
if (block.timestamp <= nextPeriodFinish_) {
return block.timestamp;
}
return nextPeriodFinish_;
}
/// @notice gets reward amount per token, also considering automatic transition to queued next rewards
function rewardPerToken() public view returns (uint256 rewardPerToken_) {
if (_totalSupply == 0) {
return rewardPerTokenStored;
}
// reward per token for current rewards
// get lastTimeRewardApplicable for storage vars (without next queued rewards as returned by view methods)
uint256 lastTimeRewardApplicable_ = block.timestamp < _periodFinish ? block.timestamp : _periodFinish;
rewardPerToken_ = (((lastTimeRewardApplicable_ - lastUpdateTime) * _rewardRate * 1e18) / _totalSupply);
if (block.timestamp > _periodFinish && nextRewardsDuration > 0) {
// previous rewards ended and next rewards queued, take into account accrued rewards:
// check if block.timestamp is within next rewards duration
rewardPerToken_ += (((lastTimeRewardApplicable() - _periodFinish) * nextRewardRate() * 1e18) /
_totalSupply);
}
rewardPerToken_ += rewardPerTokenStored;
}
/// @notice gets earned reward amount for an `account`, also considering automatic transition to queued next rewards
function earned(address account) public view returns (uint256) {
return (_balances[account] * (rewardPerToken() - userRewardPerTokenPaid[account])) / 1e18 + rewards[account];
}
/// @notice gets reward amount for current duration, also considering automatic transition to queued next rewards
function getRewardForDuration() public view returns (uint256) {
return rewardRate() * rewardsDuration();
}
/* ========== MUTATIVE FUNCTIONS ========== */
function stakeWithPermit(
uint256 amount,
uint deadline,
uint8 v,
bytes32 r,
bytes32 s
) external nonReentrant updateReward(msg.sender) {
require(amount > 0, "Cannot stake 0");
// permit
IERC20Permit(address(stakingToken)).permit(msg.sender, address(this), amount, deadline, v, r, s);
stakingToken.safeTransferFrom(msg.sender, address(this), amount);
_totalSupply = _totalSupply + uint128(amount);
_balances[msg.sender] = _balances[msg.sender] + amount;
emit Staked(msg.sender, amount);
}
function stake(uint256 amount) external nonReentrant updateReward(msg.sender) {
require(amount > 0, "Cannot stake 0");
stakingToken.safeTransferFrom(msg.sender, address(this), amount);
_totalSupply = _totalSupply + uint128(amount);
_balances[msg.sender] = _balances[msg.sender] + amount;
emit Staked(msg.sender, amount);
}
function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) {
require(amount > 0, "Cannot withdraw 0");
_totalSupply = _totalSupply - uint128(amount);
_balances[msg.sender] = _balances[msg.sender] - amount;
stakingToken.safeTransfer(msg.sender, amount);
emit Withdrawn(msg.sender, amount);
}
function getReward() public nonReentrant updateReward(msg.sender) {
uint256 reward = rewards[msg.sender];
if (reward > 0) {
rewards[msg.sender] = 0;
rewardsToken.safeTransfer(msg.sender, reward);
emit RewardPaid(msg.sender, reward);
}
}
function exit() external {
withdraw(_balances[msg.sender]);
getReward();
}
/// @notice updates rewards until current block.timestamp or `periodFinish`. Transitions to next rewards
/// if previous rewards ended and next ones were queued.
function updateRewards() public nonReentrant updateReward(address(0)) {}
/* ========== RESTRICTED FUNCTIONS ========== */
/// @notice queues next rewards that will be transitioned to automatically after current rewards reach `periodFinish`.
function queueNextRewardAmount(uint216 nextReward_, uint40 nextDuration_) external onlyOwner {
require(block.timestamp < _periodFinish, "Previous duration already ended");
require(nextDuration_ > 0 && nextReward_ > 0, "Invalid params");
// must not already be queued
require(nextRewardsDuration == 0, "Already queued next rewards");
// Ensure the provided reward amount is not more than the balance in the contract.
// This keeps the reward rate in the right range, preventing overflows due to
// very high values of rewardRate in the earned and rewardsPerToken functions;
// Reward + nextReward must be less than 2^256 / 10^18 to avoid overflow.
uint256 balance_ = rewardsToken.balanceOf(address(this));
uint256 remainingCurrentReward_ = (_periodFinish - block.timestamp) * _rewardRate;
uint256 requiredBalance_ = remainingCurrentReward_ + nextReward_;
require(requiredBalance_ <= balance_, "Provided reward too high");
nextRewards = nextReward_;
nextRewardsDuration = nextDuration_;
emit NextRewardQueued(nextReward_, nextDuration_);
}
/// @notice add new rewards and update reward duration AFTER a reward period has ended.
function notifyRewardAmountWithDuration(
uint256 reward_,
uint40 newDuration_
) external onlyOwner updateReward(address(0)) {
require(block.timestamp > _periodFinish, "Previous duration not ended");
// @dev nextRewardsDuration == 0 should not be needed because if there are next rewards queued and block.timestamp > periodFinish,
// then updateReward(address(0)) would automatically transition to the queued rewards and set nextRewardsDuration == 0.
// Adding the check here anyway to be safe as gas optimization on an Admin Method is not necessary.
require(nextRewardsDuration == 0, "Already queued next rewards");
require(newDuration_ > 0, "Invalid params");
_rewardsDuration = newDuration_;
notifyRewardAmount(reward_);
}
/// @notice add new rewards or top-up adding to current rewards, adjusting rewardRate going forward for leftover + newReward
/// until block.timestamp + duration
function notifyRewardAmount(uint256 reward_) public onlyOwner updateReward(address(0)) {
require(nextRewardsDuration == 0, "Already queued next rewards");
if (block.timestamp >= _periodFinish) {
_rewardRate = uint136(reward_ / _rewardsDuration);
} else {
uint256 remaining_ = _periodFinish - block.timestamp;
uint256 leftover_ = remaining_ * _rewardRate;
_rewardRate = uint136((reward_ + leftover_) / _rewardsDuration);
}
// Ensure the provided reward amount is not more than the balance in the contract.
// This keeps the reward rate in the right range, preventing overflows due to
// very high values of rewardRate in the earned and rewardsPerToken functions;
// Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
uint256 balance_ = rewardsToken.balanceOf(address(this));
require(_rewardRate <= balance_ / _rewardsDuration, "Provided reward too high");
lastUpdateTime = uint40(block.timestamp);
_periodFinish = uint40(block.timestamp + _rewardsDuration);
emit RewardAdded(reward_);
}
/// @notice Spell allows owner aka governance to do any arbitrary call
/// @param target_ Address to which the call needs to be delegated
/// @param data_ Data to execute at the delegated address
function spell(address target_, bytes memory data_) external onlyOwner returns (bytes memory response_) {
assembly {
let succeeded := delegatecall(gas(), target_, add(data_, 0x20), mload(data_), 0, 0)
let size := returndatasize()
response_ := mload(0x40)
mstore(0x40, add(response_, and(add(add(size, 0x20), 0x1f), not(0x1f))))
mstore(response_, size)
returndatacopy(add(response_, 0x20), 0, size)
switch iszero(succeeded)
case 1 {
// throw if delegatecall failed
returndatacopy(0x00, 0x00, size)
revert(0x00, size)
}
}
}
/* ========== MODIFIERS ========== */
modifier updateReward(address account) {
// get lastTimeRewardApplicable for storage vars (without next queued rewards as returned by view methods)
uint256 lastTimeRewardApplicable_ = block.timestamp < _periodFinish ? block.timestamp : _periodFinish;
// get reward per Token for storage vars (without next queued rewards as returned by view methods)
uint256 rewardPerToken_;
if (_totalSupply > 0) {
rewardPerToken_ =
rewardPerTokenStored +
(((lastTimeRewardApplicable_ - lastUpdateTime) * _rewardRate * 1e18) / _totalSupply);
}
rewardPerTokenStored = uint128(rewardPerToken_);
lastUpdateTime = uint40(lastTimeRewardApplicable_);
if (block.timestamp > _periodFinish && nextRewardsDuration > 0) {
// previous rewards ended, and new rewards were queued -> start new rewards.
// previous rewards fully distributed until `periodFinish` by updating `rewardPerTokenStored`
// according to `rewardRate` that was valid until period finish, with calls above.
// transition to new rewards
_rewardRate = uint136(nextRewards / nextRewardsDuration);
_rewardsDuration = nextRewardsDuration;
// new rewards started right at periodFinish
_periodFinish = uint40(_periodFinish + _rewardsDuration);
emit RewardAdded(nextRewards);
// reset next rewards storage vars
nextRewards = 0;
nextRewardsDuration = 0;
// update rewardPerTokenStored again to go until current block.timestamp now
// can use normal view methods here as next rewards storage vars have just been set to 0
rewardPerTokenStored = uint128(rewardPerToken());
lastUpdateTime = uint40(lastTimeRewardApplicable());
}
if (account != address(0)) {
rewards[account] = earned(account);
userRewardPerTokenPaid[account] = rewardPerTokenStored;
}
_;
}
/* ========== EVENTS ========== */
event RewardAdded(uint256 reward);
event Staked(address indexed user, uint256 amount);
event Withdrawn(address indexed user, uint256 amount);
event RewardPaid(address indexed user, uint256 reward);
event NextRewardQueued(uint256 reward, uint256 duration);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @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() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @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 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.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));
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @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");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or 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 {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;
/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
/*//////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
event OwnershipTransferred(address indexed user, address indexed newOwner);
/*//////////////////////////////////////////////////////////////
OWNERSHIP STORAGE
//////////////////////////////////////////////////////////////*/
address public owner;
modifier onlyOwner() virtual {
require(msg.sender == owner, "UNAUTHORIZED");
_;
}
/*//////////////////////////////////////////////////////////////
CONSTRUCTOR
//////////////////////////////////////////////////////////////*/
constructor(address _owner) {
owner = _owner;
emit OwnershipTransferred(address(0), _owner);
}
/*//////////////////////////////////////////////////////////////
OWNERSHIP LOGIC
//////////////////////////////////////////////////////////////*/
function transferOwnership(address newOwner) public virtual onlyOwner {
owner = newOwner;
emit OwnershipTransferred(msg.sender, newOwner);
}
}{
"optimizer": {
"enabled": true,
"runs": 10000000
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"contract IERC20","name":"rewardsToken_","type":"address"},{"internalType":"contract IERC20","name":"stakingToken_","type":"address"},{"internalType":"uint40","name":"rewardsDuration_","type":"uint40"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"NextRewardQueued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextPeriodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextRewards","outputs":[{"internalType":"uint216","name":"","type":"uint216"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextRewardsDuration","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward_","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward_","type":"uint256"},{"internalType":"uint40","name":"newDuration_","type":"uint40"}],"name":"notifyRewardAmountWithDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint216","name":"nextReward_","type":"uint216"},{"internalType":"uint40","name":"nextDuration_","type":"uint40"}],"name":"queueNextRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"rewardPerToken_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_","type":"address"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"spell","outputs":[{"internalType":"bytes","name":"response_","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"stakeWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"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":"updateRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60c06040523480156200001157600080fd5b50604051620044993803806200449983398101604081905262000034916200020a565b600080546001600160a01b0319166001600160a01b03861690811782556040518692907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180556001600160a01b038316620000ce5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c696420706172616d7360901b60448201526064015b60405180910390fd5b6001600160a01b038216620001175760405162461bcd60e51b815260206004820152600e60248201526d496e76616c696420706172616d7360901b6044820152606401620000c5565b6001600160a01b038416620001605760405162461bcd60e51b815260206004820152600e60248201526d496e76616c696420706172616d7360901b6044820152606401620000c5565b60008164ffffffffff1611620001aa5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c696420706172616d7360901b6044820152606401620000c5565b6001600160a01b03928316608052911660a0526002805464ffffffffff9092166a01000000000000000000000264ffffffffff60501b19909216919091179055506200027b565b6001600160a01b03811681146200020757600080fd5b50565b600080600080608085870312156200022157600080fd5b84516200022e81620001f1565b60208601519094506200024181620001f1565b60408601519093506200025481620001f1565b606086015190925064ffffffffff811681146200027057600080fd5b939692955090935050565b60805160a0516141c7620002d26000396000818161035f01528181610ae4015281816128ee015281816135c2015261364d01526000818161048a0152818161120201528181611e510152612c0d01526141c76000f3fe608060405234801561001057600080fd5b50600436106101e45760003560e01c80637b0a47ee1161010f578063c8f33c91116100a2578063e9fad8ee11610071578063e9fad8ee146104e9578063ebe2b12b146104f1578063ecd9ba82146104f9578063f2fde38b1461050c57600080fd5b8063c8f33c9114610463578063cd3daf9d1461047d578063d1af0c7d14610485578063df136d65146104ac57600080fd5b8063a694fc3a116100de578063a694fc3a146103f6578063aa0d9c4c14610409578063c1b432551461041c578063c7acb01f1461044357600080fd5b80637b0a47ee146103a657806380faa57d146103ae5780638b876347146103b65780638da5cb5b146103d657600080fd5b80633ce36915116101875780634d5dce99116101565780634d5dce99146102c057806370a082311461031c578063715fda7b1461035257806372f702f31461035a57600080fd5b80633ce36915146102955780633d18b912146102a85780633e158b0c146102b05780633fc5e436146102b857600080fd5b80631c1f78eb116101c35780631c1f78eb1461025d5780632e1a7d4d14610265578063386a95251461027a5780633c6b16ab1461028257600080fd5b80628cc262146101e95780630700037d1461020f57806318160ddd1461022f575b600080fd5b6101fc6101f7366004613d33565b61051f565b6040519081526020015b60405180910390f35b6101fc61021d366004613d33565b60066020526000908152604090205481565b60035470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff166101fc565b6101fc6105b6565b610278610273366004613d55565b6105d7565b005b6101fc610b65565b610278610290366004613d55565b610bb6565b6102786102a3366004613d83565b611404565b610278611a22565b610278611ed2565b6101fc6122e1565b6004546102f0906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681565b6040517affffffffffffffffffffffffffffffffffffffffffffffffffffff9091168152602001610206565b6101fc61032a366004613d33565b73ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b6101fc612320565b6103817f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610206565b6101fc6123b5565b6101fc612411565b6101fc6103c4366004613d33565b60056020526000908152604090205481565b6000546103819073ffffffffffffffffffffffffffffffffffffffff1681565b610278610404366004613d55565b612467565b610278610417366004613daf565b6129de565b60045461042d9064ffffffffff1681565b60405164ffffffffff9091168152602001610206565b610456610451366004613e2a565b612dfd565b6040516102069190613f78565b60025461042d9065010000000000900464ffffffffff1681565b6101fc612ecb565b6103817f000000000000000000000000000000000000000000000000000000000000000081565b6003546104c8906fffffffffffffffffffffffffffffffff1681565b6040516fffffffffffffffffffffffffffffffff9091168152602001610206565b61027861309e565b6101fc6130bf565b610278610507366004613f8b565b6130fc565b61027861051a366004613d33565b613753565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660209081526040808320546005909252822054670de0b6b3a764000090610562612ecb565b61056c9190614009565b73ffffffffffffffffffffffffffffffffffffffff851660009081526007602052604090205461059c919061401c565b6105a69190614062565b6105b09190614076565b92915050565b60006105c0610b65565b6105c86123b5565b6105d2919061401c565b905090565b6105df613844565b600254339060009064ffffffffff1642106106035760025464ffffffffff16610605565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16156106f0576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff16906106a89065010000000000900464ffffffffff1685614009565b6106b2919061401c565b6106c490670de0b6b3a764000061401c565b6106ce9190614062565b6003546106ed91906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff8316811790935591821691161742118015610787575060045464ffffffffff1615155b15610967576004546107c79064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff90931692909217939093179182905561085c92908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a160006004556108fb612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055610944612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff8316156109da5761098c8361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b60008411610a49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f74207769746864726177203000000000000000000000000000000060448201526064015b60405180910390fd5b600354610a7d90859070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff166140e8565b600380546fffffffffffffffffffffffffffffffff92831670010000000000000000000000000000000002921691909117905533600090815260076020526040902054610acb908590614009565b33600081815260076020526040902091909155610b20907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690866138b7565b60405184815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2505050610b6260018055565b50565b60025460009064ffffffffff1642111580610b87575060045464ffffffffff16155b15610ba857506002546a0100000000000000000000900464ffffffffff1690565b5060045464ffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610a40565b600254600090819064ffffffffff164210610c5b5760025464ffffffffff16610c5d565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615610d48576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff1690610d009065010000000000900464ffffffffff1685614009565b610d0a919061401c565b610d1c90670de0b6b3a764000061401c565b610d269190614062565b600354610d4591906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff8316811790935591821691161742118015610ddf575060045464ffffffffff1615155b15610fbf57600454610e1f9064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff909316929092179390931791829055610eb492908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a16000600455610f53612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055610f9c612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff83161561103257610fe48361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b60045464ffffffffff16156110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f416c726561647920717565756564206e657874207265776172647300000000006044820152606401610a40565b60025464ffffffffff164210611114576002546110d5906a0100000000000000000000900464ffffffffff1685614062565b6002600f6101000a81548170ffffffffffffffffffffffffffffffffff021916908370ffffffffffffffffffffffffffffffffff1602179055506111d1565b60025460009061112c90429064ffffffffff16614009565b600254909150600090611165906f01000000000000000000000000000000900470ffffffffffffffffffffffffffffffffff168361401c565b6002549091506a0100000000000000000000900464ffffffffff1661118a8288614076565b6111949190614062565b6002600f6101000a81548170ffffffffffffffffffffffffffffffffff021916908370ffffffffffffffffffffffffffffffffff16021790555050505b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa15801561125e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112829190614111565b6002549091506112a7906a0100000000000000000000900464ffffffffff1682614062565b6002546f01000000000000000000000000000000900470ffffffffffffffffffffffffffffffffff161115611338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f76696465642072657761726420746f6f206869676800000000000000006044820152606401610a40565b6002805464ffffffffff4281811665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff9093169290921792839055611393926a010000000000000000000090041690614076565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff929092169190911790556040518581527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d906020015b60405180910390a15050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610a40565b600254600090819064ffffffffff1642106114a95760025464ffffffffff166114ab565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615611596576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff169061154e9065010000000000900464ffffffffff1685614009565b611558919061401c565b61156a90670de0b6b3a764000061401c565b6115749190614062565b60035461159391906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff831681179093559182169116174211801561162d575060045464ffffffffff1615155b1561180d5760045461166d9064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff90931692909217939093179182905561170292908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a160006004556117a1612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff929092169190911790556117ea612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff831615611880576118328361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b60025464ffffffffff1642116118f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f50726576696f7573206475726174696f6e206e6f7420656e64656400000000006044820152606401610a40565b60045464ffffffffff1615611963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f416c726561647920717565756564206e657874207265776172647300000000006044820152606401610a40565b60008464ffffffffff16116119d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420706172616d730000000000000000000000000000000000006044820152606401610a40565b600280547fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff166a010000000000000000000064ffffffffff871602179055611a1b85610bb6565b5050505050565b611a2a613844565b600254339060009064ffffffffff164210611a4e5760025464ffffffffff16611a50565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615611b3b576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff1690611af39065010000000000900464ffffffffff1685614009565b611afd919061401c565b611b0f90670de0b6b3a764000061401c565b611b199190614062565b600354611b3891906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff8316811790935591821691161742118015611bd2575060045464ffffffffff1615155b15611db257600454611c129064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff909316929092179390931791829055611ca792908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a16000600455611d46612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055611d8f612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff831615611e2557611dd78361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b336000908152600660205260409020548015611ec35733600081815260066020526040812055611e8d907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690836138b7565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b50505050611ed060018055565b565b611eda613844565b600254600090819064ffffffffff164210611efe5760025464ffffffffff16611f00565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615611feb576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff1690611fa39065010000000000900464ffffffffff1685614009565b611fad919061401c565b611fbf90670de0b6b3a764000061401c565b611fc99190614062565b600354611fe891906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff8316811790935591821691161742118015612082575060045464ffffffffff1615155b15612262576004546120c29064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff90931692909217939093179182905561215792908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a160006004556121f6612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff9290921691909117905561223f612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff8316156122d5576122878361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b505050611ed060018055565b60045460009064ffffffffff1681036122fa5750600090565b6004546002546123149164ffffffffff90811691166140c3565b64ffffffffff16905090565b6004546000906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681036123585750600090565b6004546123939064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff16905090565b60025460009064ffffffffff16421115806123d7575060045464ffffffffff16155b1561240957506002546f01000000000000000000000000000000900470ffffffffffffffffffffffffffffffffff1690565b6105d2612320565b60025460009064ffffffffff16421161242957504290565b60045464ffffffffff16600003612448575060025464ffffffffff1690565b60006124526122e1565b9050804211612462574291505090565b919050565b61246f613844565b600254339060009064ffffffffff1642106124935760025464ffffffffff16612495565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615612580576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff16906125389065010000000000900464ffffffffff1685614009565b612542919061401c565b61255490670de0b6b3a764000061401c565b61255e9190614062565b60035461257d91906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff8316811790935591821691161742118015612617575060045464ffffffffff1615155b156127f7576004546126579064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff9093169290921793909317918290556126ec92908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1600060045561278b612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff929092169190911790556127d4612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff83161561286a5761281c8361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b600084116128d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610a40565b61291673ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016333087613990565b60035461294a90859070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1661412a565b600380546fffffffffffffffffffffffffffffffff92831670010000000000000000000000000000000002921691909117905533600090815260076020526040902054612998908590614076565b33600081815260076020526040908190209290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90610b4e9087815260200190565b60005473ffffffffffffffffffffffffffffffffffffffff163314612a5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610a40565b60025464ffffffffff164210612ad1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f50726576696f7573206475726174696f6e20616c726561647920656e646564006044820152606401610a40565b60008164ffffffffff16118015612b0557506000827affffffffffffffffffffffffffffffffffffffffffffffffffffff16115b612b6b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420706172616d730000000000000000000000000000000000006044820152606401610a40565b60045464ffffffffff1615612bdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f416c726561647920717565756564206e657874207265776172647300000000006044820152606401610a40565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015612c69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8d9190614111565b60025490915060009070ffffffffffffffffffffffffffffffffff6f0100000000000000000000000000000082041690612ccf90429064ffffffffff16614009565b612cd9919061401c565b90506000612d047affffffffffffffffffffffffffffffffffffffffffffffffffffff861683614076565b905082811115612d70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f76696465642072657761726420746f6f206869676800000000000000006044820152606401610a40565b64ffffffffff84167affffffffffffffffffffffffffffffffffffffffffffffffffffff86166501000000000081027fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001682176004556040805191825260208201929092527f1f6864585aff6172b9e61fd517190576e478963013921dff17824a9b8ff101d891016113f5565b60005460609073ffffffffffffffffffffffffffffffffffffffff163314612e81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610a40565b600080835160208501865af43d6040519250601f19601f6020830101168301604052808352806000602085013e811560018103612ec257816000803e816000fd5b50505092915050565b60035460009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff168103612f1657506003546fffffffffffffffffffffffffffffffff1690565b60025460009064ffffffffff164210612f385760025464ffffffffff16612f3a565b425b60035460025491925070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff1690612fab9065010000000000900464ffffffffff1684614009565b612fb5919061401c565b612fc790670de0b6b3a764000061401c565b612fd19190614062565b60025490925064ffffffffff1642118015612ff4575060045464ffffffffff1615155b156130795760035470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1661302a612320565b60025464ffffffffff1661303c612411565b6130469190614009565b613050919061401c565b61306290670de0b6b3a764000061401c565b61306c9190614062565b6130769083614076565b91505b600354613098906fffffffffffffffffffffffffffffffff1683614076565b91505090565b336000908152600760205260409020546130b7906105d7565b611ed0611a22565b60025460009064ffffffffff16421115806130e1575060045464ffffffffff16155b156130f4575060025464ffffffffff1690565b6105d26122e1565b613104613844565b600254339060009064ffffffffff1642106131285760025464ffffffffff1661312a565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615613215576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff16906131cd9065010000000000900464ffffffffff1685614009565b6131d7919061401c565b6131e990670de0b6b3a764000061401c565b6131f39190614062565b60035461321291906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff83168117909355918216911617421180156132ac575060045464ffffffffff1615155b1561348c576004546132ec9064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff90931692909217939093179182905561338192908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a16000600455613420612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055613469612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff8316156134ff576134b18361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b60008811613569576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610a40565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018990526064810188905260ff8716608482015260a4810186905260c481018590527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063d505accf9060e401600060405180830381600087803b15801561361b57600080fd5b505af115801561362f573d6000803e3d6000fd5b5061367792505073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016905033308b613990565b6003546136ab90899070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1661412a565b600380546fffffffffffffffffffffffffffffffff928316700100000000000000000000000000000000029216919091179055336000908152600760205260409020546136f9908990614076565b33600081815260076020526040908190209290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9061373f908b815260200190565b60405180910390a2505050611a1b60018055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146137d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610a40565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6002600154036138b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a40565b6002600155565b60405173ffffffffffffffffffffffffffffffffffffffff831660248201526044810182905261398b9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526139f4565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526139ee9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401613909565b50505050565b6000613a56826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613b009092919063ffffffff16565b80519091501561398b5780806020019051810190613a749190614153565b61398b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610a40565b6060613b0f8484600085613b17565b949350505050565b606082471015613ba9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610a40565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613bd29190614175565b60006040518083038185875af1925050503d8060008114613c0f576040519150601f19603f3d011682016040523d82523d6000602084013e613c14565b606091505b5091509150613c2587838387613c30565b979650505050505050565b60608315613cc6578251600003613cbf5773ffffffffffffffffffffffffffffffffffffffff85163b613cbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a40565b5081613b0f565b613b0f8383815115613cdb5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a409190613f78565b803573ffffffffffffffffffffffffffffffffffffffff8116811461246257600080fd5b600060208284031215613d4557600080fd5b613d4e82613d0f565b9392505050565b600060208284031215613d6757600080fd5b5035919050565b803564ffffffffff8116811461246257600080fd5b60008060408385031215613d9657600080fd5b82359150613da660208401613d6e565b90509250929050565b60008060408385031215613dc257600080fd5b82357affffffffffffffffffffffffffffffffffffffffffffffffffffff81168114613ded57600080fd5b9150613da660208401613d6e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060408385031215613e3d57600080fd5b613e4683613d0f565b9150602083013567ffffffffffffffff80821115613e6357600080fd5b818501915085601f830112613e7757600080fd5b813581811115613e8957613e89613dfb565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613ecf57613ecf613dfb565b81604052828152886020848701011115613ee857600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60005b83811015613f25578181015183820152602001613f0d565b50506000910152565b60008151808452613f46816020860160208601613f0a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000613d4e6020830184613f2e565b600080600080600060a08688031215613fa357600080fd5b8535945060208601359350604086013560ff81168114613fc257600080fd5b94979396509394606081013594506080013592915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156105b0576105b0613fda565b80820281158282048414176105b0576105b0613fda565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261407157614071614033565b500490565b808201808211156105b0576105b0613fda565b60007affffffffffffffffffffffffffffffffffffffffffffffffffffff808416806140b7576140b7614033565b92169190910492915050565b64ffffffffff8181168382160190808211156140e1576140e1613fda565b5092915050565b6fffffffffffffffffffffffffffffffff8281168282160390808211156140e1576140e1613fda565b60006020828403121561412357600080fd5b5051919050565b6fffffffffffffffffffffffffffffffff8181168382160190808211156140e1576140e1613fda565b60006020828403121561416557600080fd5b81518015158114613d4e57600080fd5b60008251614187818460208701613f0a565b919091019291505056fea26469706673582212207ad43e67d21c608c02caa7156bc21103d8ef4606ca7877eb968eb11ec5fdcf3b64736f6c634300081500330000000000000000000000004f6f977acdd1177dcd81ab83074855ecb9c2d49e000000000000000000000000912ce59144191c1204e64559fe8253a0e49e65480000000000000000000000001a996cb54bb95462040408c06122d45d6cdb6096000000000000000000000000000000000000000000000000000000000002a300
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e45760003560e01c80637b0a47ee1161010f578063c8f33c91116100a2578063e9fad8ee11610071578063e9fad8ee146104e9578063ebe2b12b146104f1578063ecd9ba82146104f9578063f2fde38b1461050c57600080fd5b8063c8f33c9114610463578063cd3daf9d1461047d578063d1af0c7d14610485578063df136d65146104ac57600080fd5b8063a694fc3a116100de578063a694fc3a146103f6578063aa0d9c4c14610409578063c1b432551461041c578063c7acb01f1461044357600080fd5b80637b0a47ee146103a657806380faa57d146103ae5780638b876347146103b65780638da5cb5b146103d657600080fd5b80633ce36915116101875780634d5dce99116101565780634d5dce99146102c057806370a082311461031c578063715fda7b1461035257806372f702f31461035a57600080fd5b80633ce36915146102955780633d18b912146102a85780633e158b0c146102b05780633fc5e436146102b857600080fd5b80631c1f78eb116101c35780631c1f78eb1461025d5780632e1a7d4d14610265578063386a95251461027a5780633c6b16ab1461028257600080fd5b80628cc262146101e95780630700037d1461020f57806318160ddd1461022f575b600080fd5b6101fc6101f7366004613d33565b61051f565b6040519081526020015b60405180910390f35b6101fc61021d366004613d33565b60066020526000908152604090205481565b60035470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff166101fc565b6101fc6105b6565b610278610273366004613d55565b6105d7565b005b6101fc610b65565b610278610290366004613d55565b610bb6565b6102786102a3366004613d83565b611404565b610278611a22565b610278611ed2565b6101fc6122e1565b6004546102f0906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681565b6040517affffffffffffffffffffffffffffffffffffffffffffffffffffff9091168152602001610206565b6101fc61032a366004613d33565b73ffffffffffffffffffffffffffffffffffffffff1660009081526007602052604090205490565b6101fc612320565b6103817f0000000000000000000000001a996cb54bb95462040408c06122d45d6cdb609681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610206565b6101fc6123b5565b6101fc612411565b6101fc6103c4366004613d33565b60056020526000908152604090205481565b6000546103819073ffffffffffffffffffffffffffffffffffffffff1681565b610278610404366004613d55565b612467565b610278610417366004613daf565b6129de565b60045461042d9064ffffffffff1681565b60405164ffffffffff9091168152602001610206565b610456610451366004613e2a565b612dfd565b6040516102069190613f78565b60025461042d9065010000000000900464ffffffffff1681565b6101fc612ecb565b6103817f000000000000000000000000912ce59144191c1204e64559fe8253a0e49e654881565b6003546104c8906fffffffffffffffffffffffffffffffff1681565b6040516fffffffffffffffffffffffffffffffff9091168152602001610206565b61027861309e565b6101fc6130bf565b610278610507366004613f8b565b6130fc565b61027861051a366004613d33565b613753565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600660209081526040808320546005909252822054670de0b6b3a764000090610562612ecb565b61056c9190614009565b73ffffffffffffffffffffffffffffffffffffffff851660009081526007602052604090205461059c919061401c565b6105a69190614062565b6105b09190614076565b92915050565b60006105c0610b65565b6105c86123b5565b6105d2919061401c565b905090565b6105df613844565b600254339060009064ffffffffff1642106106035760025464ffffffffff16610605565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16156106f0576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff16906106a89065010000000000900464ffffffffff1685614009565b6106b2919061401c565b6106c490670de0b6b3a764000061401c565b6106ce9190614062565b6003546106ed91906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff8316811790935591821691161742118015610787575060045464ffffffffff1615155b15610967576004546107c79064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff90931692909217939093179182905561085c92908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a160006004556108fb612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055610944612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff8316156109da5761098c8361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b60008411610a49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f43616e6e6f74207769746864726177203000000000000000000000000000000060448201526064015b60405180910390fd5b600354610a7d90859070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff166140e8565b600380546fffffffffffffffffffffffffffffffff92831670010000000000000000000000000000000002921691909117905533600090815260076020526040902054610acb908590614009565b33600081815260076020526040902091909155610b20907f0000000000000000000000001a996cb54bb95462040408c06122d45d6cdb609673ffffffffffffffffffffffffffffffffffffffff1690866138b7565b60405184815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a2505050610b6260018055565b50565b60025460009064ffffffffff1642111580610b87575060045464ffffffffff16155b15610ba857506002546a0100000000000000000000900464ffffffffff1690565b5060045464ffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610a40565b600254600090819064ffffffffff164210610c5b5760025464ffffffffff16610c5d565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615610d48576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff1690610d009065010000000000900464ffffffffff1685614009565b610d0a919061401c565b610d1c90670de0b6b3a764000061401c565b610d269190614062565b600354610d4591906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff8316811790935591821691161742118015610ddf575060045464ffffffffff1615155b15610fbf57600454610e1f9064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff909316929092179390931791829055610eb492908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a16000600455610f53612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055610f9c612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff83161561103257610fe48361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b60045464ffffffffff16156110a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f416c726561647920717565756564206e657874207265776172647300000000006044820152606401610a40565b60025464ffffffffff164210611114576002546110d5906a0100000000000000000000900464ffffffffff1685614062565b6002600f6101000a81548170ffffffffffffffffffffffffffffffffff021916908370ffffffffffffffffffffffffffffffffff1602179055506111d1565b60025460009061112c90429064ffffffffff16614009565b600254909150600090611165906f01000000000000000000000000000000900470ffffffffffffffffffffffffffffffffff168361401c565b6002549091506a0100000000000000000000900464ffffffffff1661118a8288614076565b6111949190614062565b6002600f6101000a81548170ffffffffffffffffffffffffffffffffff021916908370ffffffffffffffffffffffffffffffffff16021790555050505b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000912ce59144191c1204e64559fe8253a0e49e654873ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa15801561125e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112829190614111565b6002549091506112a7906a0100000000000000000000900464ffffffffff1682614062565b6002546f01000000000000000000000000000000900470ffffffffffffffffffffffffffffffffff161115611338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f76696465642072657761726420746f6f206869676800000000000000006044820152606401610a40565b6002805464ffffffffff4281811665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff9093169290921792839055611393926a010000000000000000000090041690614076565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff929092169190911790556040518581527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d906020015b60405180910390a15050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610a40565b600254600090819064ffffffffff1642106114a95760025464ffffffffff166114ab565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615611596576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff169061154e9065010000000000900464ffffffffff1685614009565b611558919061401c565b61156a90670de0b6b3a764000061401c565b6115749190614062565b60035461159391906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff831681179093559182169116174211801561162d575060045464ffffffffff1615155b1561180d5760045461166d9064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff90931692909217939093179182905561170292908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a160006004556117a1612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff929092169190911790556117ea612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff831615611880576118328361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b60025464ffffffffff1642116118f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f50726576696f7573206475726174696f6e206e6f7420656e64656400000000006044820152606401610a40565b60045464ffffffffff1615611963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f416c726561647920717565756564206e657874207265776172647300000000006044820152606401610a40565b60008464ffffffffff16116119d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420706172616d730000000000000000000000000000000000006044820152606401610a40565b600280547fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff166a010000000000000000000064ffffffffff871602179055611a1b85610bb6565b5050505050565b611a2a613844565b600254339060009064ffffffffff164210611a4e5760025464ffffffffff16611a50565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615611b3b576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff1690611af39065010000000000900464ffffffffff1685614009565b611afd919061401c565b611b0f90670de0b6b3a764000061401c565b611b199190614062565b600354611b3891906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff8316811790935591821691161742118015611bd2575060045464ffffffffff1615155b15611db257600454611c129064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff909316929092179390931791829055611ca792908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a16000600455611d46612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055611d8f612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff831615611e2557611dd78361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b336000908152600660205260409020548015611ec35733600081815260066020526040812055611e8d907f000000000000000000000000912ce59144191c1204e64559fe8253a0e49e654873ffffffffffffffffffffffffffffffffffffffff1690836138b7565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b50505050611ed060018055565b565b611eda613844565b600254600090819064ffffffffff164210611efe5760025464ffffffffff16611f00565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615611feb576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff1690611fa39065010000000000900464ffffffffff1685614009565b611fad919061401c565b611fbf90670de0b6b3a764000061401c565b611fc99190614062565b600354611fe891906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff8316811790935591821691161742118015612082575060045464ffffffffff1615155b15612262576004546120c29064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff90931692909217939093179182905561215792908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a160006004556121f6612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff9290921691909117905561223f612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff8316156122d5576122878361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b505050611ed060018055565b60045460009064ffffffffff1681036122fa5750600090565b6004546002546123149164ffffffffff90811691166140c3565b64ffffffffff16905090565b6004546000906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681036123585750600090565b6004546123939064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b7affffffffffffffffffffffffffffffffffffffffffffffffffffff16905090565b60025460009064ffffffffff16421115806123d7575060045464ffffffffff16155b1561240957506002546f01000000000000000000000000000000900470ffffffffffffffffffffffffffffffffff1690565b6105d2612320565b60025460009064ffffffffff16421161242957504290565b60045464ffffffffff16600003612448575060025464ffffffffff1690565b60006124526122e1565b9050804211612462574291505090565b919050565b61246f613844565b600254339060009064ffffffffff1642106124935760025464ffffffffff16612495565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615612580576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff16906125389065010000000000900464ffffffffff1685614009565b612542919061401c565b61255490670de0b6b3a764000061401c565b61255e9190614062565b60035461257d91906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff8316811790935591821691161742118015612617575060045464ffffffffff1615155b156127f7576004546126579064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff9093169290921793909317918290556126ec92908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1600060045561278b612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff929092169190911790556127d4612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff83161561286a5761281c8361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b600084116128d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610a40565b61291673ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000001a996cb54bb95462040408c06122d45d6cdb609616333087613990565b60035461294a90859070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1661412a565b600380546fffffffffffffffffffffffffffffffff92831670010000000000000000000000000000000002921691909117905533600090815260076020526040902054612998908590614076565b33600081815260076020526040908190209290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d90610b4e9087815260200190565b60005473ffffffffffffffffffffffffffffffffffffffff163314612a5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610a40565b60025464ffffffffff164210612ad1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f50726576696f7573206475726174696f6e20616c726561647920656e646564006044820152606401610a40565b60008164ffffffffff16118015612b0557506000827affffffffffffffffffffffffffffffffffffffffffffffffffffff16115b612b6b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420706172616d730000000000000000000000000000000000006044820152606401610a40565b60045464ffffffffff1615612bdc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f416c726561647920717565756564206e657874207265776172647300000000006044820152606401610a40565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000912ce59144191c1204e64559fe8253a0e49e654873ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015612c69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8d9190614111565b60025490915060009070ffffffffffffffffffffffffffffffffff6f0100000000000000000000000000000082041690612ccf90429064ffffffffff16614009565b612cd9919061401c565b90506000612d047affffffffffffffffffffffffffffffffffffffffffffffffffffff861683614076565b905082811115612d70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f50726f76696465642072657761726420746f6f206869676800000000000000006044820152606401610a40565b64ffffffffff84167affffffffffffffffffffffffffffffffffffffffffffffffffffff86166501000000000081027fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001682176004556040805191825260208201929092527f1f6864585aff6172b9e61fd517190576e478963013921dff17824a9b8ff101d891016113f5565b60005460609073ffffffffffffffffffffffffffffffffffffffff163314612e81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610a40565b600080835160208501865af43d6040519250601f19601f6020830101168301604052808352806000602085013e811560018103612ec257816000803e816000fd5b50505092915050565b60035460009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff168103612f1657506003546fffffffffffffffffffffffffffffffff1690565b60025460009064ffffffffff164210612f385760025464ffffffffff16612f3a565b425b60035460025491925070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff1690612fab9065010000000000900464ffffffffff1684614009565b612fb5919061401c565b612fc790670de0b6b3a764000061401c565b612fd19190614062565b60025490925064ffffffffff1642118015612ff4575060045464ffffffffff1615155b156130795760035470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1661302a612320565b60025464ffffffffff1661303c612411565b6130469190614009565b613050919061401c565b61306290670de0b6b3a764000061401c565b61306c9190614062565b6130769083614076565b91505b600354613098906fffffffffffffffffffffffffffffffff1683614076565b91505090565b336000908152600760205260409020546130b7906105d7565b611ed0611a22565b60025460009064ffffffffff16421115806130e1575060045464ffffffffff16155b156130f4575060025464ffffffffff1690565b6105d26122e1565b613104613844565b600254339060009064ffffffffff1642106131285760025464ffffffffff1661312a565b425b60035490915060009070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1615613215576003546002547001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16906f01000000000000000000000000000000810470ffffffffffffffffffffffffffffffffff16906131cd9065010000000000900464ffffffffff1685614009565b6131d7919061401c565b6131e990670de0b6b3a764000061401c565b6131f39190614062565b60035461321291906fffffffffffffffffffffffffffffffff16614076565b90505b600380546fffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffffffffffff000000000000000000000000000000009091161790556002805464ffffffffff80851665010000000000027fffffffffffffffffffffffffffffffffffffffffffff0000000000ffffffffff83168117909355918216911617421180156132ac575060045464ffffffffff1615155b1561348c576004546132ec9064ffffffffff8116906501000000000090047affffffffffffffffffffffffffffffffffffffffffffffffffffff16614089565b600280546004546a010000000000000000000064ffffffffff91821681027fffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffff70ffffffffffffffffffffffffffffffffff969096166f01000000000000000000000000000000029590951669ffffffffffffffffffff90931692909217939093179182905561338192908204811691166140c3565b600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000001664ffffffffff92909216919091179055600454604051650100000000009091047affffffffffffffffffffffffffffffffffffffffffffffffffffff1681527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a16000600455613420612ecb565b600380547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055613469612411565b600260056101000a81548164ffffffffff021916908364ffffffffff1602179055505b73ffffffffffffffffffffffffffffffffffffffff8316156134ff576134b18361051f565b73ffffffffffffffffffffffffffffffffffffffff841660009081526006602090815260408083209390935560035460059091529190206fffffffffffffffffffffffffffffffff90911690555b60008811613569576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f43616e6e6f74207374616b6520300000000000000000000000000000000000006044820152606401610a40565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018990526064810188905260ff8716608482015260a4810186905260c481018590527f0000000000000000000000001a996cb54bb95462040408c06122d45d6cdb609673ffffffffffffffffffffffffffffffffffffffff169063d505accf9060e401600060405180830381600087803b15801561361b57600080fd5b505af115801561362f573d6000803e3d6000fd5b5061367792505073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000001a996cb54bb95462040408c06122d45d6cdb609616905033308b613990565b6003546136ab90899070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1661412a565b600380546fffffffffffffffffffffffffffffffff928316700100000000000000000000000000000000029216919091179055336000908152600760205260409020546136f9908990614076565b33600081815260076020526040908190209290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9061373f908b815260200190565b60405180910390a2505050611a1b60018055565b60005473ffffffffffffffffffffffffffffffffffffffff1633146137d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610a40565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b6002600154036138b0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a40565b6002600155565b60405173ffffffffffffffffffffffffffffffffffffffff831660248201526044810182905261398b9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526139f4565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526139ee9085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401613909565b50505050565b6000613a56826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613b009092919063ffffffff16565b80519091501561398b5780806020019051810190613a749190614153565b61398b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610a40565b6060613b0f8484600085613b17565b949350505050565b606082471015613ba9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610a40565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613bd29190614175565b60006040518083038185875af1925050503d8060008114613c0f576040519150601f19603f3d011682016040523d82523d6000602084013e613c14565b606091505b5091509150613c2587838387613c30565b979650505050505050565b60608315613cc6578251600003613cbf5773ffffffffffffffffffffffffffffffffffffffff85163b613cbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610a40565b5081613b0f565b613b0f8383815115613cdb5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a409190613f78565b803573ffffffffffffffffffffffffffffffffffffffff8116811461246257600080fd5b600060208284031215613d4557600080fd5b613d4e82613d0f565b9392505050565b600060208284031215613d6757600080fd5b5035919050565b803564ffffffffff8116811461246257600080fd5b60008060408385031215613d9657600080fd5b82359150613da660208401613d6e565b90509250929050565b60008060408385031215613dc257600080fd5b82357affffffffffffffffffffffffffffffffffffffffffffffffffffff81168114613ded57600080fd5b9150613da660208401613d6e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060408385031215613e3d57600080fd5b613e4683613d0f565b9150602083013567ffffffffffffffff80821115613e6357600080fd5b818501915085601f830112613e7757600080fd5b813581811115613e8957613e89613dfb565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908382118183101715613ecf57613ecf613dfb565b81604052828152886020848701011115613ee857600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60005b83811015613f25578181015183820152602001613f0d565b50506000910152565b60008151808452613f46816020860160208601613f0a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000613d4e6020830184613f2e565b600080600080600060a08688031215613fa357600080fd5b8535945060208601359350604086013560ff81168114613fc257600080fd5b94979396509394606081013594506080013592915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156105b0576105b0613fda565b80820281158282048414176105b0576105b0613fda565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261407157614071614033565b500490565b808201808211156105b0576105b0613fda565b60007affffffffffffffffffffffffffffffffffffffffffffffffffffff808416806140b7576140b7614033565b92169190910492915050565b64ffffffffff8181168382160190808211156140e1576140e1613fda565b5092915050565b6fffffffffffffffffffffffffffffffff8281168282160390808211156140e1576140e1613fda565b60006020828403121561412357600080fd5b5051919050565b6fffffffffffffffffffffffffffffffff8181168382160190808211156140e1576140e1613fda565b60006020828403121561416557600080fd5b81518015158114613d4e57600080fd5b60008251614187818460208701613f0a565b919091019291505056fea26469706673582212207ad43e67d21c608c02caa7156bc21103d8ef4606ca7877eb968eb11ec5fdcf3b64736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004f6f977acdd1177dcd81ab83074855ecb9c2d49e000000000000000000000000912ce59144191c1204e64559fe8253a0e49e65480000000000000000000000001a996cb54bb95462040408c06122d45d6cdb6096000000000000000000000000000000000000000000000000000000000002a300
-----Decoded View---------------
Arg [0] : owner_ (address): 0x4F6F977aCDD1177DCD81aB83074855EcB9C2D49e
Arg [1] : rewardsToken_ (address): 0x912CE59144191C1204E64559FE8253a0e49E6548
Arg [2] : stakingToken_ (address): 0x1A996cb54bb95462040408C06122D45D6Cdb6096
Arg [3] : rewardsDuration_ (uint40): 172800
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000004f6f977acdd1177dcd81ab83074855ecb9c2d49e
Arg [1] : 000000000000000000000000912ce59144191c1204e64559fe8253a0e49e6548
Arg [2] : 0000000000000000000000001a996cb54bb95462040408c06122d45d6cdb6096
Arg [3] : 000000000000000000000000000000000000000000000000000000000002a300
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$16.14
Net Worth in ETH
0.005749
Token Allocations
ARB
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ARB | 100.00% | $0.165406 | 97.5838 | $16.14 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.