Source Code
Latest 25 from a total of 302 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Claim Rewards | 24437903 | 40 days ago | IN | 0 ETH | 0.00068978 | ||||
| Claim Rewards | 24437901 | 40 days ago | IN | 0 ETH | 0.00091742 | ||||
| Claim Rewards | 22194709 | 354 days ago | IN | 0 ETH | 0.00020615 | ||||
| Claim Rewards | 18161244 | 918 days ago | IN | 0 ETH | 0.00157346 | ||||
| Stake Many | 17482814 | 1013 days ago | IN | 0 ETH | 0.04420384 | ||||
| Claim Rewards | 17341749 | 1033 days ago | IN | 0 ETH | 0.01171655 | ||||
| Claim Rewards | 17253519 | 1045 days ago | IN | 0 ETH | 0.00291914 | ||||
| Claim Rewards | 17253517 | 1045 days ago | IN | 0 ETH | 0.00379276 | ||||
| Unstake | 16761819 | 1115 days ago | IN | 0 ETH | 0.00192441 | ||||
| Stake | 16761810 | 1115 days ago | IN | 0 ETH | 0.00366654 | ||||
| Stake Many | 16761580 | 1115 days ago | IN | 0 ETH | 0.01501305 | ||||
| Unstake | 16761449 | 1115 days ago | IN | 0 ETH | 0.00238196 | ||||
| Claim Rewards | 16761446 | 1115 days ago | IN | 0 ETH | 0.00149489 | ||||
| Unstake Many | 16759320 | 1115 days ago | IN | 0 ETH | 0.01950669 | ||||
| Claim Rewards | 16757854 | 1115 days ago | IN | 0 ETH | 0.00982914 | ||||
| Claim Rewards | 16746798 | 1117 days ago | IN | 0 ETH | 0.00247028 | ||||
| Claim Rewards | 16746795 | 1117 days ago | IN | 0 ETH | 0.00236244 | ||||
| Claim Rewards | 16744157 | 1117 days ago | IN | 0 ETH | 0.00485982 | ||||
| Claim Rewards | 16744155 | 1117 days ago | IN | 0 ETH | 0.00819677 | ||||
| Stake Many | 16744154 | 1117 days ago | IN | 0 ETH | 0.01288953 | ||||
| Claim Rewards | 16567621 | 1142 days ago | IN | 0 ETH | 0.00385259 | ||||
| Claim Rewards | 16567617 | 1142 days ago | IN | 0 ETH | 0.00512511 | ||||
| Stake | 16550352 | 1144 days ago | IN | 0 ETH | 0.00394425 | ||||
| Claim Rewards | 16542354 | 1145 days ago | IN | 0 ETH | 0.00350979 | ||||
| Stake | 16542350 | 1145 days ago | IN | 0 ETH | 0.00637082 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 14007525 | 1529 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
IMDStaking
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 100000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/interfaces/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/ICollegeCredit.sol";
import "./CollegeCredit.sol";
contract IMDStaking is Ownable {
event Staked(address indexed user, address indexed token, uint256[] tokenIds, uint256 timestamp);
event Unstaked(address indexed user, address indexed token, uint256[] tokenIds, uint256 timestamp);
event ClaimDividend(address indexed user, address indexed token, uint256 amount);
struct StakedToken {
uint256 stakeTimestamp;
uint256 nextToken;
address owner;
}
struct StakableTokenAttributes {
/**
* The minimum yield per period.
*/
uint256 minYield;
/**
* The maximum yield per period.
*/
uint256 maxYield;
/**
* The amount that yield increases per period.
*/
uint256 step;
/**
* The amount of time needed to earn 1 yield.
*/
uint256 yieldPeriod;
/**
* A mapping from token ids to information about that token's staking.
*/
mapping(uint256 => StakedToken) stakedTokens;
/**
* A mapping from the user's address to their root staked token
*/
mapping(address => uint256) firstStaked;
/**
* A mapping of modifiers to rewards for each staker's
* address.
*/
mapping(address => int256) rewardModifier;
}
/**
* The reward token (college credit) to be issued to stakers.
*/
ICollegeCredit public rewardToken;
/**
* A mapping of token addresses to staking configurations.
*/
mapping(address => StakableTokenAttributes) public stakableTokenAttributes;
/**
* The constructor for the staking contract, builds the initial reward token and stakable token.
* @param _token the first stakable token address.
* @param _minYield the minimum yield for the stakable token.
* @param _maxYield the maximum yield for the stakable token.
* @param _step the amount yield increases per yield period.
* @param _yieldPeriod the length (in seconds) of a yield period (the amount of period after which a yield is calculated)
*/
constructor(
address _token,
uint256 _minYield,
uint256 _maxYield,
uint256 _step,
uint256 _yieldPeriod
) {
_addStakableToken(_token, _minYield, _maxYield, _step, _yieldPeriod);
rewardToken = new CollegeCredit();
}
/**
* Mints the reward token to an account.
* @dev owner only.
* @param _recipient the recipient of the minted tokens.
* @param _amount the amount of tokens to mint.
*/
function mintRewardToken(address _recipient, uint256 _amount)
external
onlyOwner
{
rewardToken.mint(_recipient, _amount);
}
/**
* Adds a new token that can be staked in the contract.
* @param _token the first stakable token address.
* @param _minYield the minimum yield for the stakable token.
* @param _maxYield the maximum yield for the stakable token.
* @param _step the amount yield increases per yield period.
* @param _yieldPeriod the length (in seconds) of a yield period (the amount of period after which a yield is calculated).
* @dev owner only, doesn't allow adding already staked tokens.
*/
function addStakableToken(
address _token,
uint256 _minYield,
uint256 _maxYield,
uint256 _step,
uint256 _yieldPeriod
) external onlyOwner {
require(!_isStakable(_token), "Already exists");
_addStakableToken(_token, _minYield, _maxYield, _step, _yieldPeriod);
}
/**
* Stakes a given token id from a given contract.
* @param _token the address of the stakable token.
* @param _tokenId the id of the token to stake.
* @dev the contract must be approved to transfer that token first.
* the address must be a stakable token.
*/
function stake(address _token, uint256 _tokenId) external {
require(_isStakable(_token), "Not stakable");
uint256[] memory tokenIds = new uint256[](1);
tokenIds[0] = _tokenId;
_bulkStakeFor(msg.sender, _token, tokenIds);
emit Staked(msg.sender, _token, tokenIds, block.timestamp);
}
/**
* Stakes a given token id from a given contract.
* @param _token the address of the stakable token.
* @param _tokenIds the ids of the tokens to stake.
* @dev the contract must be approved to transfer that token first.
* the address must be a stakable token.
*/
function stakeMany(address _token, uint256[] calldata _tokenIds) external {
require(_isStakable(_token), "Not stakable");
_bulkStakeFor(msg.sender, _token, _tokenIds);
emit Staked(msg.sender, _token, _tokenIds, block.timestamp);
}
/**
* Unstakes a given token held by the calling user.
* @param _token the address of the token contract that the token belongs to.
* @param _tokenId the id of the token to unstake.
* @dev reverts if the token is not owned by the caller.
*/
function unstake(address _token, uint256 _tokenId) external {
require(_isStakable(_token), "Not stakable");
require(
stakableTokenAttributes[_token].stakedTokens[_tokenId].owner ==
msg.sender,
"Not owner"
);
uint256[] memory tokenIds = new uint256[](1);
tokenIds[0] = _tokenId;
_unstake(_token, _tokenId);
emit Unstaked(msg.sender, _token, tokenIds, block.timestamp);
}
/**
* Unstakes the given tokens held by the calling user.
* @param _token the address of the token contract that the tokens belong to.
* @param _tokenIds the ids of the tokens to unstake.
* @dev reverts if the token(s) are not owned by the caller.
*/
function unstakeMany(address _token, uint256[] calldata _tokenIds)
external
{
require(_isStakable(_token), "Not stakable");
for (uint256 i = 0; i < _tokenIds.length; i++) {
require(
stakableTokenAttributes[_token]
.stakedTokens[_tokenIds[i]]
.owner == msg.sender,
"Not owner"
);
_unstake(_token, _tokenIds[i]);
}
emit Unstaked(msg.sender, _token, _tokenIds, block.timestamp);
}
/**
* Claims the rewards for the caller.
* @param _token the token for which we are claiming rewards.
*/
function claimRewards(address _token) external {
require(_isStakable(_token), "Not stakable");
uint256 dividend = _withdrawRewards(msg.sender, _token);
emit ClaimDividend(msg.sender, _token, dividend);
}
/**
* Gets the College Credit dividend of the provided user.
* @param _user the user whose dividend we are checking.
* @param _token the token in which we are checking.
*/
function dividendOf(address _user, address _token)
external
view
returns (uint256)
{
require(_isStakable(_token), "Not stakable");
return _dividendOf(_user, _token);
}
/**
* Unstakes a given token held by the calling user AND withdraws all dividends.
* @param _token the address of the token contract that the token belongs to.
* @param _tokenId the id of the token to unstake.
* @dev reverts if the token is not owned by the caller.
*/
function unstakeAndClaimRewards(address _token, uint256 _tokenId) external {
require(_isStakable(_token), "Not stakable");
require(
stakableTokenAttributes[_token].stakedTokens[_tokenId].owner ==
msg.sender,
"Not owner"
);
uint256 dividend = _withdrawRewards(msg.sender, _token);
_unstake(_token, _tokenId);
uint256[] memory tokenIds = new uint256[](1);
tokenIds[0] = _tokenId;
emit ClaimDividend(msg.sender, _token, dividend);
emit Unstaked(msg.sender, _token, tokenIds, block.timestamp);
}
/**
* Unstakes the given tokens held by the calling user AND withdraws all dividends.
* @param _token the address of the token contract that the token belongs to.
* @param _tokenIds the ids of the tokens to unstake.
* @dev reverts if the tokens are not owned by the caller.
*/
function unstakeManyAndClaimRewards(
address _token,
uint256[] calldata _tokenIds
) external {
require(_isStakable(_token), "Not stakable");
for (uint256 i = 0; i < _tokenIds.length; i++) {
require(
stakableTokenAttributes[_token]
.stakedTokens[_tokenIds[i]]
.owner == msg.sender,
"Not owner"
);
_unstake(_token, _tokenIds[i]);
}
uint256 dividend = _withdrawRewards(msg.sender, _token);
emit ClaimDividend(msg.sender, _token, dividend);
emit Unstaked(msg.sender, _token, _tokenIds, block.timestamp);
}
/**
* Gets the total amount of tokens staked for the given user in the given contract.
* @param _user the user whose stakes are being counted.
* @param _token the address of the contract whose staked tokens we are skimming.
* @dev reverts if called on an invalid token address.
*/
function totalStakedFor(address _user, address _token)
external
view
returns (uint256)
{
require(_isStakable(_token), "Not stakable");
return _totalStaked(_user, _token);
}
/**
* Gets the total amount staked for a given token address.
* @param _token the address to get the amount staked from.
*/
function totalStaked(address _token) external view returns (uint256) {
require(_isStakable(_token), "Not stakable");
return _totalStaked(_token);
}
/**
* Gets all of the token ids that a user has staked from a given contract.
* @param _user the user whose token ids are being analyzed.
* @param _token the address of the token contract being analyzed.
* @return an array of token ids staked by that user.
* @dev reverts if called on an invalid token address.
*/
function stakedTokenIds(address _user, address _token)
external
view
returns (uint256[] memory)
{
require(_isStakable(_token), "Not stakable");
return _stakedTokenIds(_user, _token);
}
// --------------- INTERNAL FUNCTIONS -----------------
/**
* Gets the total amount staked for a given token address.
* @param _token the address to get the amount staked from.
*/
function _totalStaked(address _token) internal view returns (uint256) {
return IERC721(_token).balanceOf(address(this));
}
/**
* @return if the given token address is stakable.
* @param _token the address to a token to query for stakability.
* @dev does not check if is ERC721, that is up to the user.
*/
function _isStakable(address _token) internal view returns (bool) {
return stakableTokenAttributes[_token].maxYield != 0;
}
/**
* Adds a given token to the list of stakable tokens.
* @param _token the first stakable token address.
* @param _minYield the minimum yield for the stakable token.
* @param _maxYield the maximum yield for the stakable token.
* @param _step the amount yield increases per yield period.
* @param _yieldPeriod the length (in seconds) of a yield period (the amount of period after which a yield is calculated).
* @dev checks constraints to ensure _isStakable works as well as other logic. Does not check if is already stakable.
*/
function _addStakableToken(
address _token,
uint256 _minYield,
uint256 _maxYield,
uint256 _step,
uint256 _yieldPeriod
) internal {
require(_maxYield > 0, "Invalid max");
require(_minYield > 0, "Invalid min");
require(_yieldPeriod >= 1 minutes, "Invalid period");
stakableTokenAttributes[_token].maxYield = _maxYield;
stakableTokenAttributes[_token].minYield = _minYield;
stakableTokenAttributes[_token].step = _step;
stakableTokenAttributes[_token].yieldPeriod = _yieldPeriod;
}
/**
* Stakes the given token ids from a given contract.
* @param _user the user from which to transfer the token.
* @param _token the address of the stakable token.
* @param _tokenIds the ids of the tokens to stake.
* @dev the contract must be approved to transfer that token first.
* the address must be a stakable token.
*/
function _bulkStakeFor(
address _user,
address _token,
uint256[] memory _tokenIds
) internal {
uint256 lastStaked = _lastStaked(_user, _token);
for (uint256 i = 0; i < _tokenIds.length; i++) {
IERC721(_token).transferFrom(_user, address(this), _tokenIds[i]);
StakedToken memory token;
token.owner = _user;
token.stakeTimestamp = block.timestamp;
if (lastStaked == 0)
stakableTokenAttributes[_token].firstStaked[_user] = _tokenIds[i];
else
stakableTokenAttributes[_token]
.stakedTokens[lastStaked]
.nextToken = _tokenIds[i];
lastStaked = _tokenIds[i];
stakableTokenAttributes[_token].stakedTokens[_tokenIds[i]] = token;
}
}
/**
* Retrieves the dividend owed on a particular token with a given timestamp.
* @param _tokenAttributes the attributes of the token provided.
* @param _timestamp the timestamp at which the token was staked.
* @return the dividend owed for that specific token.
*/
function _tokenDividend(
StakableTokenAttributes storage _tokenAttributes,
uint256 _timestamp
) internal view returns (uint256) {
if (_timestamp == 0) return 0;
uint256 periods = (block.timestamp - _timestamp) /
_tokenAttributes.yieldPeriod;
uint256 dividend = 0;
uint256 i = 0;
for (i; i < periods; i++) {
uint256 uncappedYield = _tokenAttributes.minYield +
i *
_tokenAttributes.step;
if (uncappedYield > _tokenAttributes.maxYield) {
dividend += _tokenAttributes.maxYield;
i++;
break;
}
dividend += uncappedYield;
}
dividend += (periods - i) * _tokenAttributes.maxYield;
return dividend;
}
/**
* Gets the total amount of tokens staked for the given user in the given contract.
* @param _user the user whose stakes are being counted.
* @param _token the address of the contract whose staked tokens we are skimming.
* @dev does not check if the token address is stakable.
*/
function _totalStaked(address _user, address _token)
internal
view
returns (uint256)
{
uint256 tokenCount = 0;
uint256 nextToken = stakableTokenAttributes[_token].firstStaked[_user];
if (nextToken == 0) return 0;
while (nextToken != 0) {
tokenCount++;
nextToken = stakableTokenAttributes[_token]
.stakedTokens[nextToken]
.nextToken;
}
return tokenCount;
}
/**
* Gets the last token ID staked by the user.
* @param _user the user whose last stake is being found.
* @param _token the address of the contract whose staked tokens we are skimming.
* @dev does not check if the token address is stakable.
*/
function _lastStaked(address _user, address _token)
internal
view
returns (uint256)
{
uint256 nextToken = stakableTokenAttributes[_token].firstStaked[_user];
if (nextToken == 0) return 0;
while (
stakableTokenAttributes[_token].stakedTokens[nextToken].nextToken !=
0
) {
nextToken = stakableTokenAttributes[_token]
.stakedTokens[nextToken]
.nextToken;
}
return nextToken;
}
/**
* Gets the token before the given token id owned by the user.
* @param _user the user staked tokens are being traversed.
* @param _token the address of the contract whose staked tokens we are skimming.
* @param _tokenId the id of the token whose precedent we are looking for
* @dev does not check if the token address is stakable. throws if not found
*/
function _tokenBefore(
address _user,
address _token,
uint256 _tokenId
) internal view returns (uint256) {
uint256 nextToken = stakableTokenAttributes[_token].firstStaked[_user];
require(nextToken != 0, "None staked");
if (nextToken == _tokenId) return 0;
while (nextToken != 0) {
uint256 next = stakableTokenAttributes[_token]
.stakedTokens[nextToken]
.nextToken;
if (next == _tokenId) return nextToken;
nextToken = next;
}
revert("Token not found");
}
/**
* Gets all of the token ids that a user has staked from a given contract.
* @param _user the user whose token ids are being analyzed.
* @param _token the address of the token contract being analyzed.
* @return an array of token ids staked by that user.
* @dev does not check if the token address is stakable.
*/
function _stakedTokenIds(address _user, address _token)
internal
view
returns (uint256[] memory)
{
uint256 numStaked = _totalStaked(_user, _token);
uint256[] memory tokenIds = new uint256[](numStaked);
if (numStaked == 0) return tokenIds;
uint256 nextToken = stakableTokenAttributes[_token].firstStaked[_user];
uint256 index = 0;
while (nextToken != 0) {
tokenIds[index] = nextToken;
nextToken = stakableTokenAttributes[_token]
.stakedTokens[nextToken]
.nextToken;
index++;
}
return tokenIds;
}
/**
* Gets the College Credit dividend of the provided user.
* @param _user the user whose dividend we are checking.
* @param _token the token whose dividends we are checking.
*/
function _dividendOf(address _user, address _token)
internal
view
returns (uint256)
{
uint256 dividend = 0;
uint256 nextToken = stakableTokenAttributes[_token].firstStaked[_user];
while (nextToken != 0) {
dividend += _tokenDividend(
stakableTokenAttributes[_token],
stakableTokenAttributes[_token]
.stakedTokens[nextToken]
.stakeTimestamp
);
nextToken = stakableTokenAttributes[_token]
.stakedTokens[nextToken]
.nextToken;
}
int256 resultantDividend = int256(dividend) +
stakableTokenAttributes[_token].rewardModifier[_user];
require(resultantDividend >= 0, "Underflow");
return uint256(resultantDividend);
}
/**
* Unstakes a given token id.
* @param _token the address of the token contract that the token belongs to.
* @param _tokenId the id of the token to unstake.
* @dev does not check permissions.
*/
function _unstake(address _token, uint256 _tokenId) internal {
address owner = stakableTokenAttributes[_token]
.stakedTokens[_tokenId]
.owner;
// will fail to get dividend if not staked or bad token contract
uint256 dividend = _tokenDividend(
stakableTokenAttributes[_token],
stakableTokenAttributes[_token]
.stakedTokens[_tokenId]
.stakeTimestamp
);
stakableTokenAttributes[_token].rewardModifier[owner] += int256(
dividend
);
// remove link in chain
uint256 tokenBefore = _tokenBefore(owner, _token, _tokenId);
if (tokenBefore == 0)
stakableTokenAttributes[_token].firstStaked[
owner
] = stakableTokenAttributes[_token]
.stakedTokens[_tokenId]
.nextToken;
else
stakableTokenAttributes[_token]
.stakedTokens[tokenBefore]
.nextToken = stakableTokenAttributes[_token]
.stakedTokens[_tokenId]
.nextToken;
delete stakableTokenAttributes[_token].stakedTokens[_tokenId];
IERC721(_token).safeTransferFrom(address(this), owner, _tokenId);
}
/**
* Claims the dividend for the user.
* @param _user the user whose rewards are being withdrawn.
* @param _token the token from which rewards are being withdrawn.
* @dev does not check is the user has permission to withdraw. Reverts on zero dividend.
* @return dividend
*/
function _withdrawRewards(address _user, address _token) internal returns (uint256) {
uint256 dividend = _dividendOf(_user, _token);
require(dividend > 0, "Zero dividend");
stakableTokenAttributes[_token].rewardModifier[_user] -= int256(
dividend
);
rewardToken.mint(_user, dividend);
return dividend;
}
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}pragma solidity ^0.8.7;
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface ICollegeCredit is IERC20 {
function mint(address recipient, uint256 amount) external;
}pragma solidity ^0.8.7;
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/ICollegeCredit.sol";
contract CollegeCredit is ERC20, Ownable, ICollegeCredit {
constructor() ERC20("College Credit", "CREDIT") {}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function mint(address recipient, uint256 amount) override external onlyOwner {
_mint(recipient, amount);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}{
"optimizer": {
"enabled": true,
"runs": 100000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_minYield","type":"uint256"},{"internalType":"uint256","name":"_maxYield","type":"uint256"},{"internalType":"uint256","name":"_step","type":"uint256"},{"internalType":"uint256","name":"_yieldPeriod","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimDividend","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_minYield","type":"uint256"},{"internalType":"uint256","name":"_maxYield","type":"uint256"},{"internalType":"uint256","name":"_step","type":"uint256"},{"internalType":"uint256","name":"_yieldPeriod","type":"uint256"}],"name":"addStakableToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"dividendOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract ICollegeCredit","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakableTokenAttributes","outputs":[{"internalType":"uint256","name":"minYield","type":"uint256"},{"internalType":"uint256","name":"maxYield","type":"uint256"},{"internalType":"uint256","name":"step","type":"uint256"},{"internalType":"uint256","name":"yieldPeriod","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"stakeMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"stakedTokenIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"name":"totalStakedFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"unstakeAndClaimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"unstakeMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"unstakeManyAndClaimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162003e0338038062003e03833981016040819052620000349162000200565b6200003f33620000a6565b6200004e8585858585620000f6565b6040516200005c90620001f2565b604051809103906000f08015801562000079573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b039290921691909117905550620002579350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600083116200013a5760405162461bcd60e51b815260206004820152600b60248201526a092dcecc2d8d2c840dac2f60ab1b60448201526064015b60405180910390fd5b600084116200017a5760405162461bcd60e51b815260206004820152600b60248201526a24b73b30b634b21036b4b760a91b604482015260640162000131565b603c811015620001be5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a59081c195c9a5bd960921b604482015260640162000131565b6001600160a01b03909416600090815260026020819052604090912060018101939093559282559181019190915560030155565b6111a68062002c5d83390190565b600080600080600060a086880312156200021957600080fd5b85516001600160a01b03811681146200023157600080fd5b602087015160408801516060890151608090990151929a91995097965090945092505050565b6129f680620002676000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c8063adc9772e116100b2578063e3f3be9a11610081578063f2fde38b11610066578063f2fde38b1461029b578063f5a097cd146102ae578063f7c618c11461030557600080fd5b8063e3f3be9a14610275578063ef5cfb8c1461028857600080fd5b8063adc9772e14610229578063c2a672e01461023c578063cb83bcd61461024f578063db2ee2b01461026257600080fd5b806365d8dded116101095780638da5cb5b116100ee5780638da5cb5b146101c45780639bfd8d6114610203578063ac613b5c1461021657600080fd5b806365d8dded1461019c578063715018a6146101bc57600080fd5b80631ddec53b1461013b5780632cc205d91461015057806359a6318e146101765780636382226314610189575b600080fd5b61014e610149366004612641565b610325565b005b61016361015e36600461255e565b61044f565b6040519081526020015b60405180910390f35b61014e610184366004612591565b6104f1565b61014e610197366004612591565b61062c565b6101af6101aa36600461255e565b610835565b60405161016d9190612736565b61014e6108d8565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161016d565b610163610211366004612543565b610965565b61014e610224366004612617565b6109fd565b61014e610237366004612617565b610c5a565b61014e61024a366004612617565b610d95565b61016361025d36600461255e565b610f6f565b61014e610270366004612617565b611008565b61014e610283366004612591565b611119565b61014e610296366004612543565b61138b565b61014e6102a9366004612543565b611493565b6102e56102bc366004612543565b600260208190526000918252604090912080546001820154928201546003909201549092919084565b60408051948552602085019390935291830152606082015260800161016d565b6001546101de9073ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff85166000908152600260205260409020600101541561043b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f416c72656164792065786973747300000000000000000000000000000000000060448201526064016103a2565b61044885858585856115c3565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600260205260408120600101546104de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b6104e88383611743565b90505b92915050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260026020526040902060010154610580576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b6105be33848484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506117ea92505050565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff752a939103beaf268d907b1cab602d9e6f52edf202affc66e4b827f88bf893f84844260405161061f939291906126d7565b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600260205260409020600101546106bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b60005b818110156107d35773ffffffffffffffffffffffffffffffffffffffff84166000908152600260205260408120339160049091019085858581811061070557610705612962565b602090810292909201358352508101919091526040016000206002015473ffffffffffffffffffffffffffffffffffffffff161461079f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e6572000000000000000000000000000000000000000000000060448201526064016103a2565b6107c1848484848181106107b5576107b5612962565b90506020020135611ad3565b806107cb816128fa565b9150506106be565b508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fdec3ad218e2690b4b59999cfa8ef0cad67e1e92a232954e9e3a358f5e9fa98dc84844260405161061f939291906126d7565b60606108688273ffffffffffffffffffffffffffffffffffffffff16600090815260026020526040902060010154151590565b6108ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b6104e88383611d00565b60005473ffffffffffffffffffffffffffffffffffffffff163314610959576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a2565b6109636000611e1e565b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600260205260408120600101546109f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b6104eb82611e93565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020526040902060010154610a8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b73ffffffffffffffffffffffffffffffffffffffff82811660009081526002602081815260408084208685526004019091529091200154163314610b2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e6572000000000000000000000000000000000000000000000060448201526064016103a2565b6000610b383384611f33565b9050610b448383611ad3565b604080516001808252818301909252600091602080830190803683370190505090508281600081518110610b7a57610b7a612962565b6020026020010181815250508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f789b051f922a2c31369bf315f70ac999ae79364971fbc9a8f094bac1e2ffa8af84604051610be591815260200190565b60405180910390a38373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fdec3ad218e2690b4b59999cfa8ef0cad67e1e92a232954e9e3a358f5e9fa98dc8342604051610c4c929190612749565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020526040902060010154610ce9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b604080516001808252818301909252600091602080830190803683370190505090508181600081518110610d1f57610d1f612962565b602002602001018181525050610d363384836117ea565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff752a939103beaf268d907b1cab602d9e6f52edf202affc66e4b827f88bf893f834260405161061f929190612749565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020526040902060010154610e24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b73ffffffffffffffffffffffffffffffffffffffff82811660009081526002602081815260408084208685526004019091529091200154163314610ec4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e6572000000000000000000000000000000000000000000000060448201526064016103a2565b604080516001808252818301909252600091602080830190803683370190505090508181600081518110610efa57610efa612962565b602002602001018181525050610f108383611ad3565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fdec3ad218e2690b4b59999cfa8ef0cad67e1e92a232954e9e3a358f5e9fa98dc834260405161061f929190612749565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040812060010154610ffe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b6104e8838361208d565b60005473ffffffffffffffffffffffffffffffffffffffff163314611089576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a2565b6001546040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b1580156110fd57600080fd5b505af1158015611111573d6000803e3d6000fd5b505050505050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600260205260409020600101546111a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b60005b818110156112b45773ffffffffffffffffffffffffffffffffffffffff8416600090815260026020526040812033916004909101908585858181106111f2576111f2612962565b602090810292909201358352508101919091526040016000206002015473ffffffffffffffffffffffffffffffffffffffff161461128c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e6572000000000000000000000000000000000000000000000060448201526064016103a2565b6112a2848484848181106107b5576107b5612962565b806112ac816128fa565b9150506111ab565b5060006112c13385611f33565b90508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f789b051f922a2c31369bf315f70ac999ae79364971fbc9a8f094bac1e2ffa8af8360405161132291815260200190565b60405180910390a38373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fdec3ad218e2690b4b59999cfa8ef0cad67e1e92a232954e9e3a358f5e9fa98dc858542604051610c4c939291906126d7565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604090206001015461141a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b60006114263383611f33565b90508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f789b051f922a2c31369bf315f70ac999ae79364971fbc9a8f094bac1e2ffa8af8360405161148791815260200190565b60405180910390a35050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a2565b73ffffffffffffffffffffffffffffffffffffffff81166115b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103a2565b6115c081611e1e565b50565b6000831161162d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f496e76616c6964206d617800000000000000000000000000000000000000000060448201526064016103a2565b60008411611697576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f496e76616c6964206d696e00000000000000000000000000000000000000000060448201526064016103a2565b603c811015611702576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420706572696f6400000000000000000000000000000000000060448201526064016103a2565b73ffffffffffffffffffffffffffffffffffffffff909416600090815260026020819052604090912060018101939093559282559181019190915560030155565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526002602090815260408083209386168352600590930190529081205481908061178e576000925050506104eb565b80156117e2578161179e816128fa565b73ffffffffffffffffffffffffffffffffffffffff8616600090815260026020908152604080832095835260049095019052929092206001015491925061178e9050565b509392505050565b60006117f68484612214565b905060005b8251811015610448578373ffffffffffffffffffffffffffffffffffffffff166323b872dd863086858151811061183457611834612962565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff93841660048201529290911660248301526044820152606401600060405180830381600087803b1580156118b357600080fd5b505af11580156118c7573d6000803e3d6000fd5b5050505061190560405180606001604052806000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b73ffffffffffffffffffffffffffffffffffffffff86166040820152428152826119835783828151811061193b5761193b612962565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff8088166000908152600284526040808220928b1682526005909201909352909120556119d8565b83828151811061199557611995612962565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff8716600090815260028352604080822087835260040190935291909120600101555b8382815181106119ea576119ea612962565b6020026020010151925080600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004016000868581518110611a4b57611a4b612962565b60200260200101518152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050508080611acb906128fa565b9150506117fb565b73ffffffffffffffffffffffffffffffffffffffff82811660009081526002602081815260408084208685526004810190925283209182015491549190931692611b1c916122d5565b73ffffffffffffffffffffffffffffffffffffffff808616600090815260026020908152604080832093871683526006909301905290812080549293508392909190611b6990849061276b565b9091555060009050611b7c8386866123ab565b905080611bcf5773ffffffffffffffffffffffffffffffffffffffff8086166000908152600260209081526040808320888452600481018352818420600101549488168452600501909152902055611c15565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260026020908152604080832087845260040180835281842060019081015486865291909352922001555b73ffffffffffffffffffffffffffffffffffffffff85811660008181526002602081815260408084208a8552600490810190925280842084815560018101949094559290910180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590517f42842e0e0000000000000000000000000000000000000000000000000000000081523091810191909152918516602483015260448201869052906342842e0e90606401600060405180830381600087803b158015611ce157600080fd5b505af1158015611cf5573d6000803e3d6000fd5b505050505050505050565b60606000611d0e8484611743565b905060008167ffffffffffffffff811115611d2b57611d2b612991565b604051908082528060200260200182016040528015611d54578160200160208202803683370190505b50905081611d655791506104eb9050565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260026020908152604080832093891683526005909301905290812054905b8115611e135781838281518110611db957611db9612962565b60209081029190910181019190915273ffffffffffffffffffffffffffffffffffffffff87166000908152600282526040808220948252600490940190915291909120600101549080611e0b816128fa565b915050611da0565b509095945050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015611efb57600080fd5b505afa158015611f0f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104eb9190612683565b600080611f40848461208d565b905060008111611fac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f5a65726f206469766964656e640000000000000000000000000000000000000060448201526064016103a2565b73ffffffffffffffffffffffffffffffffffffffff80841660009081526002602090815260408083209388168352600690930190529081208054839290611ff490849061286f565b90915550506001546040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b15801561206d57600080fd5b505af1158015612081573d6000803e3d6000fd5b50929695505050505050565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526002602090815260408083209386168352600590930190529081205481905b801561215b5773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320848452600481019092529091205461210f91906122d5565b61211990836127df565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083209483526004909401905291909120600101549091506120c9565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526002602090815260408083209389168352600690930190529081205461219e908461276b565b9050600081121561220b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f556e646572666c6f77000000000000000000000000000000000000000000000060448201526064016103a2565b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600260209081526040808320938616835260059093019052908120548061225c5760009150506104eb565b5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600260209081526040808320848452600401909152902060010154156104e85773ffffffffffffffffffffffffffffffffffffffff8316600090815260026020908152604080832093835260049093019052206001015461225d565b6000816122e4575060006104eb565b60038301546000906122f684426128e3565b61230091906127f7565b90506000805b8281101561237e5760008660020154826123209190612832565b875461232c91906127df565b9050866001015481111561235e57600187015461234990846127df565b925081612355816128fa565b9250505061237e565b61236881846127df565b9250508080612376906128fa565b915050612306565b600186015461238d82856128e3565b6123979190612832565b6123a190836127df565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600260209081526040808320938716835260059093019052908120548061244b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4e6f6e65207374616b656400000000000000000000000000000000000000000060448201526064016103a2565b8281141561245d576000915050612513565b80156124b15773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320848452600401909152902060010154838114156124aa57509050612513565b905061245d565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f546f6b656e206e6f7420666f756e64000000000000000000000000000000000060448201526064016103a2565b9392505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461253e57600080fd5b919050565b60006020828403121561255557600080fd5b6104e88261251a565b6000806040838503121561257157600080fd5b61257a8361251a565b91506125886020840161251a565b90509250929050565b6000806000604084860312156125a657600080fd5b6125af8461251a565b9250602084013567ffffffffffffffff808211156125cc57600080fd5b818601915086601f8301126125e057600080fd5b8135818111156125ef57600080fd5b8760208260051b850101111561260457600080fd5b6020830194508093505050509250925092565b6000806040838503121561262a57600080fd5b6126338361251a565b946020939093013593505050565b600080600080600060a0868803121561265957600080fd5b6126628661251a565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561269557600080fd5b5051919050565b600081518084526020808501945080840160005b838110156126cc578151875295820195908201906001016126b0565b509495945050505050565b6040815282604082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84111561271057600080fd5b8360051b8086606085013760009083016060019081526020909201929092529392505050565b6020815260006104e8602083018461269c565b60408152600061275c604083018561269c565b90508260208301529392505050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038413811516156127a5576127a5612933565b827f80000000000000000000000000000000000000000000000000000000000000000384128116156127d9576127d9612933565b50500190565b600082198211156127f2576127f2612933565b500190565b60008261282d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561286a5761286a612933565b500290565b6000808312837f8000000000000000000000000000000000000000000000000000000000000000018312811516156128a9576128a9612933565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156128dd576128dd612933565b50500390565b6000828210156128f5576128f5612933565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561292c5761292c612933565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea26469706673582212204261395a66a440df2b48ca5faea48eeaa42ea3ded94df2edbf0643aa18bb706264736f6c6343000807003360806040523480156200001157600080fd5b50604080518082018252600e81526d10dbdb1b1959d94810dc99591a5d60921b60208083019182528351808501909452600684526510d49151125560d21b9084015281519192916200006691600391620000f5565b5080516200007c906004906020840190620000f5565b50505062000099620000936200009f60201b60201c565b620000a3565b620001d8565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000103906200019b565b90600052602060002090601f01602090048101928262000127576000855562000172565b82601f106200014257805160ff191683800117855562000172565b8280016001018555821562000172579182015b828111156200017257825182559160200191906001019062000155565b506200018092915062000184565b5090565b5b8082111562000180576000815560010162000185565b600181811c90821680620001b057607f821691505b60208210811415620001d257634e487b7160e01b600052602260045260246000fd5b50919050565b610fbe80620001e86000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d714610205578063a9059cbb14610218578063dd62ed3e1461022b578063f2fde38b1461027157600080fd5b806370a0823114610197578063715018a6146101cd5780638da5cb5b146101d557806395d89b41146101fd57600080fd5b806323b872dd116100d357806323b872dd1461014d578063313ce56714610160578063395093511461016f57806340c10f191461018257600080fd5b806306fdde03146100fa578063095ea7b31461011857806318160ddd1461013b575b600080fd5b610102610284565b60405161010f9190610e82565b60405180910390f35b61012b610126366004610e58565b610316565b604051901515815260200161010f565b6002545b60405190815260200161010f565b61012b61015b366004610e1c565b61032c565b6040516012815260200161010f565b61012b61017d366004610e58565b610417565b610195610190366004610e58565b610460565b005b61013f6101a5366004610dc7565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6101956104ef565b60055460405173ffffffffffffffffffffffffffffffffffffffff909116815260200161010f565b61010261057c565b61012b610213366004610e58565b61058b565b61012b610226366004610e58565b610663565b61013f610239366004610de9565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b61019561027f366004610dc7565b610670565b60606003805461029390610f34565b80601f01602080910402602001604051908101604052809291908181526020018280546102bf90610f34565b801561030c5780601f106102e15761010080835404028352916020019161030c565b820191906000526020600020905b8154815290600101906020018083116102ef57829003601f168201915b5050505050905090565b60006103233384846107a0565b50600192915050565b6000610339848484610953565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600160209081526040808320338452909152902054828110156103ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61040c85338584036107a0565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909161032391859061045b908690610ef5565b6107a0565b60055473ffffffffffffffffffffffffffffffffffffffff1633146104e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f6565b6104eb8282610c07565b5050565b60055473ffffffffffffffffffffffffffffffffffffffff163314610570576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f6565b61057a6000610d27565b565b60606004805461029390610f34565b33600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091528120548281101561064c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016103f6565b61065933858584036107a0565b5060019392505050565b6000610323338484610953565b60055473ffffffffffffffffffffffffffffffffffffffff1633146106f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103f6565b73ffffffffffffffffffffffffffffffffffffffff8116610794576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103f6565b61079d81610d27565b50565b73ffffffffffffffffffffffffffffffffffffffff8316610842576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016103f6565b73ffffffffffffffffffffffffffffffffffffffff82166108e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016103f6565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166109f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016103f6565b73ffffffffffffffffffffffffffffffffffffffff8216610a99576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016103f6565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610b4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016103f6565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290610b93908490610ef5565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610bf991815260200190565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff8216610c84576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103f6565b8060026000828254610c969190610ef5565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290610cd0908490610ef5565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610dc257600080fd5b919050565b600060208284031215610dd957600080fd5b610de282610d9e565b9392505050565b60008060408385031215610dfc57600080fd5b610e0583610d9e565b9150610e1360208401610d9e565b90509250929050565b600080600060608486031215610e3157600080fd5b610e3a84610d9e565b9250610e4860208501610d9e565b9150604084013590509250925092565b60008060408385031215610e6b57600080fd5b610e7483610d9e565b946020939093013593505050565b600060208083528351808285015260005b81811015610eaf57858101830151858201604001528201610e93565b81811115610ec1576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b60008219821115610f2f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b500190565b600181811c90821680610f4857607f821691505b60208210811415610f82577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b5091905056fea2646970667358221220d4f2fe78f326920fae5e2085b67d2c57c875d6334b508e12b6b0c38810b6d79564736f6c634300080700330000000000000000000000001103ce6136306fedcc56fe7236b9e52f0c109d490000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000002b5e3af16b18800000000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000000000000000000000000000000000000000093a80
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101365760003560e01c8063adc9772e116100b2578063e3f3be9a11610081578063f2fde38b11610066578063f2fde38b1461029b578063f5a097cd146102ae578063f7c618c11461030557600080fd5b8063e3f3be9a14610275578063ef5cfb8c1461028857600080fd5b8063adc9772e14610229578063c2a672e01461023c578063cb83bcd61461024f578063db2ee2b01461026257600080fd5b806365d8dded116101095780638da5cb5b116100ee5780638da5cb5b146101c45780639bfd8d6114610203578063ac613b5c1461021657600080fd5b806365d8dded1461019c578063715018a6146101bc57600080fd5b80631ddec53b1461013b5780632cc205d91461015057806359a6318e146101765780636382226314610189575b600080fd5b61014e610149366004612641565b610325565b005b61016361015e36600461255e565b61044f565b6040519081526020015b60405180910390f35b61014e610184366004612591565b6104f1565b61014e610197366004612591565b61062c565b6101af6101aa36600461255e565b610835565b60405161016d9190612736565b61014e6108d8565b60005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161016d565b610163610211366004612543565b610965565b61014e610224366004612617565b6109fd565b61014e610237366004612617565b610c5a565b61014e61024a366004612617565b610d95565b61016361025d36600461255e565b610f6f565b61014e610270366004612617565b611008565b61014e610283366004612591565b611119565b61014e610296366004612543565b61138b565b61014e6102a9366004612543565b611493565b6102e56102bc366004612543565b600260208190526000918252604090912080546001820154928201546003909201549092919084565b60408051948552602085019390935291830152606082015260800161016d565b6001546101de9073ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff85166000908152600260205260409020600101541561043b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f416c72656164792065786973747300000000000000000000000000000000000060448201526064016103a2565b61044885858585856115c3565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600260205260408120600101546104de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b6104e88383611743565b90505b92915050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260026020526040902060010154610580576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b6105be33848484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506117ea92505050565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff752a939103beaf268d907b1cab602d9e6f52edf202affc66e4b827f88bf893f84844260405161061f939291906126d7565b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600260205260409020600101546106bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b60005b818110156107d35773ffffffffffffffffffffffffffffffffffffffff84166000908152600260205260408120339160049091019085858581811061070557610705612962565b602090810292909201358352508101919091526040016000206002015473ffffffffffffffffffffffffffffffffffffffff161461079f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e6572000000000000000000000000000000000000000000000060448201526064016103a2565b6107c1848484848181106107b5576107b5612962565b90506020020135611ad3565b806107cb816128fa565b9150506106be565b508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fdec3ad218e2690b4b59999cfa8ef0cad67e1e92a232954e9e3a358f5e9fa98dc84844260405161061f939291906126d7565b60606108688273ffffffffffffffffffffffffffffffffffffffff16600090815260026020526040902060010154151590565b6108ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b6104e88383611d00565b60005473ffffffffffffffffffffffffffffffffffffffff163314610959576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a2565b6109636000611e1e565b565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600260205260408120600101546109f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b6104eb82611e93565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020526040902060010154610a8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b73ffffffffffffffffffffffffffffffffffffffff82811660009081526002602081815260408084208685526004019091529091200154163314610b2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e6572000000000000000000000000000000000000000000000060448201526064016103a2565b6000610b383384611f33565b9050610b448383611ad3565b604080516001808252818301909252600091602080830190803683370190505090508281600081518110610b7a57610b7a612962565b6020026020010181815250508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f789b051f922a2c31369bf315f70ac999ae79364971fbc9a8f094bac1e2ffa8af84604051610be591815260200190565b60405180910390a38373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fdec3ad218e2690b4b59999cfa8ef0cad67e1e92a232954e9e3a358f5e9fa98dc8342604051610c4c929190612749565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020526040902060010154610ce9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b604080516001808252818301909252600091602080830190803683370190505090508181600081518110610d1f57610d1f612962565b602002602001018181525050610d363384836117ea565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff752a939103beaf268d907b1cab602d9e6f52edf202affc66e4b827f88bf893f834260405161061f929190612749565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020526040902060010154610e24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b73ffffffffffffffffffffffffffffffffffffffff82811660009081526002602081815260408084208685526004019091529091200154163314610ec4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e6572000000000000000000000000000000000000000000000060448201526064016103a2565b604080516001808252818301909252600091602080830190803683370190505090508181600081518110610efa57610efa612962565b602002602001018181525050610f108383611ad3565b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fdec3ad218e2690b4b59999cfa8ef0cad67e1e92a232954e9e3a358f5e9fa98dc834260405161061f929190612749565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040812060010154610ffe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b6104e8838361208d565b60005473ffffffffffffffffffffffffffffffffffffffff163314611089576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a2565b6001546040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b1580156110fd57600080fd5b505af1158015611111573d6000803e3d6000fd5b505050505050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600260205260409020600101546111a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b60005b818110156112b45773ffffffffffffffffffffffffffffffffffffffff8416600090815260026020526040812033916004909101908585858181106111f2576111f2612962565b602090810292909201358352508101919091526040016000206002015473ffffffffffffffffffffffffffffffffffffffff161461128c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f74206f776e6572000000000000000000000000000000000000000000000060448201526064016103a2565b6112a2848484848181106107b5576107b5612962565b806112ac816128fa565b9150506111ab565b5060006112c13385611f33565b90508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f789b051f922a2c31369bf315f70ac999ae79364971fbc9a8f094bac1e2ffa8af8360405161132291815260200190565b60405180910390a38373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fdec3ad218e2690b4b59999cfa8ef0cad67e1e92a232954e9e3a358f5e9fa98dc858542604051610c4c939291906126d7565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604090206001015461141a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4e6f74207374616b61626c65000000000000000000000000000000000000000060448201526064016103a2565b60006114263383611f33565b90508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f789b051f922a2c31369bf315f70ac999ae79364971fbc9a8f094bac1e2ffa8af8360405161148791815260200190565b60405180910390a35050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103a2565b73ffffffffffffffffffffffffffffffffffffffff81166115b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016103a2565b6115c081611e1e565b50565b6000831161162d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f496e76616c6964206d617800000000000000000000000000000000000000000060448201526064016103a2565b60008411611697576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f496e76616c6964206d696e00000000000000000000000000000000000000000060448201526064016103a2565b603c811015611702576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420706572696f6400000000000000000000000000000000000060448201526064016103a2565b73ffffffffffffffffffffffffffffffffffffffff909416600090815260026020819052604090912060018101939093559282559181019190915560030155565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526002602090815260408083209386168352600590930190529081205481908061178e576000925050506104eb565b80156117e2578161179e816128fa565b73ffffffffffffffffffffffffffffffffffffffff8616600090815260026020908152604080832095835260049095019052929092206001015491925061178e9050565b509392505050565b60006117f68484612214565b905060005b8251811015610448578373ffffffffffffffffffffffffffffffffffffffff166323b872dd863086858151811061183457611834612962565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff93841660048201529290911660248301526044820152606401600060405180830381600087803b1580156118b357600080fd5b505af11580156118c7573d6000803e3d6000fd5b5050505061190560405180606001604052806000815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b73ffffffffffffffffffffffffffffffffffffffff86166040820152428152826119835783828151811061193b5761193b612962565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff8088166000908152600284526040808220928b1682526005909201909352909120556119d8565b83828151811061199557611995612962565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff8716600090815260028352604080822087835260040190935291909120600101555b8382815181106119ea576119ea612962565b6020026020010151925080600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206004016000868581518110611a4b57611a4b612962565b60200260200101518152602001908152602001600020600082015181600001556020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050508080611acb906128fa565b9150506117fb565b73ffffffffffffffffffffffffffffffffffffffff82811660009081526002602081815260408084208685526004810190925283209182015491549190931692611b1c916122d5565b73ffffffffffffffffffffffffffffffffffffffff808616600090815260026020908152604080832093871683526006909301905290812080549293508392909190611b6990849061276b565b9091555060009050611b7c8386866123ab565b905080611bcf5773ffffffffffffffffffffffffffffffffffffffff8086166000908152600260209081526040808320888452600481018352818420600101549488168452600501909152902055611c15565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260026020908152604080832087845260040180835281842060019081015486865291909352922001555b73ffffffffffffffffffffffffffffffffffffffff85811660008181526002602081815260408084208a8552600490810190925280842084815560018101949094559290910180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905590517f42842e0e0000000000000000000000000000000000000000000000000000000081523091810191909152918516602483015260448201869052906342842e0e90606401600060405180830381600087803b158015611ce157600080fd5b505af1158015611cf5573d6000803e3d6000fd5b505050505050505050565b60606000611d0e8484611743565b905060008167ffffffffffffffff811115611d2b57611d2b612991565b604051908082528060200260200182016040528015611d54578160200160208202803683370190505b50905081611d655791506104eb9050565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260026020908152604080832093891683526005909301905290812054905b8115611e135781838281518110611db957611db9612962565b60209081029190910181019190915273ffffffffffffffffffffffffffffffffffffffff87166000908152600282526040808220948252600490940190915291909120600101549080611e0b816128fa565b915050611da0565b509095945050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8316906370a082319060240160206040518083038186803b158015611efb57600080fd5b505afa158015611f0f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104eb9190612683565b600080611f40848461208d565b905060008111611fac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f5a65726f206469766964656e640000000000000000000000000000000000000060448201526064016103a2565b73ffffffffffffffffffffffffffffffffffffffff80841660009081526002602090815260408083209388168352600690930190529081208054839290611ff490849061286f565b90915550506001546040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff868116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b15801561206d57600080fd5b505af1158015612081573d6000803e3d6000fd5b50929695505050505050565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526002602090815260408083209386168352600590930190529081205481905b801561215b5773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320848452600481019092529091205461210f91906122d5565b61211990836127df565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083209483526004909401905291909120600101549091506120c9565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526002602090815260408083209389168352600690930190529081205461219e908461276b565b9050600081121561220b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f556e646572666c6f77000000000000000000000000000000000000000000000060448201526064016103a2565b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff8082166000908152600260209081526040808320938616835260059093019052908120548061225c5760009150506104eb565b5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600260209081526040808320848452600401909152902060010154156104e85773ffffffffffffffffffffffffffffffffffffffff8316600090815260026020908152604080832093835260049093019052206001015461225d565b6000816122e4575060006104eb565b60038301546000906122f684426128e3565b61230091906127f7565b90506000805b8281101561237e5760008660020154826123209190612832565b875461232c91906127df565b9050866001015481111561235e57600187015461234990846127df565b925081612355816128fa565b9250505061237e565b61236881846127df565b9250508080612376906128fa565b915050612306565b600186015461238d82856128e3565b6123979190612832565b6123a190836127df565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600260209081526040808320938716835260059093019052908120548061244b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4e6f6e65207374616b656400000000000000000000000000000000000000000060448201526064016103a2565b8281141561245d576000915050612513565b80156124b15773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320848452600401909152902060010154838114156124aa57509050612513565b905061245d565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f546f6b656e206e6f7420666f756e64000000000000000000000000000000000060448201526064016103a2565b9392505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461253e57600080fd5b919050565b60006020828403121561255557600080fd5b6104e88261251a565b6000806040838503121561257157600080fd5b61257a8361251a565b91506125886020840161251a565b90509250929050565b6000806000604084860312156125a657600080fd5b6125af8461251a565b9250602084013567ffffffffffffffff808211156125cc57600080fd5b818601915086601f8301126125e057600080fd5b8135818111156125ef57600080fd5b8760208260051b850101111561260457600080fd5b6020830194508093505050509250925092565b6000806040838503121561262a57600080fd5b6126338361251a565b946020939093013593505050565b600080600080600060a0868803121561265957600080fd5b6126628661251a565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561269557600080fd5b5051919050565b600081518084526020808501945080840160005b838110156126cc578151875295820195908201906001016126b0565b509495945050505050565b6040815282604082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84111561271057600080fd5b8360051b8086606085013760009083016060019081526020909201929092529392505050565b6020815260006104e8602083018461269c565b60408152600061275c604083018561269c565b90508260208301529392505050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038413811516156127a5576127a5612933565b827f80000000000000000000000000000000000000000000000000000000000000000384128116156127d9576127d9612933565b50500190565b600082198211156127f2576127f2612933565b500190565b60008261282d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561286a5761286a612933565b500290565b6000808312837f8000000000000000000000000000000000000000000000000000000000000000018312811516156128a9576128a9612933565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156128dd576128dd612933565b50500390565b6000828210156128f5576128f5612933565b500390565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561292c5761292c612933565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea26469706673582212204261395a66a440df2b48ca5faea48eeaa42ea3ded94df2edbf0643aa18bb706264736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001103ce6136306fedcc56fe7236b9e52f0c109d490000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000002b5e3af16b18800000000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000000000000000000000000000000000000000093a80
-----Decoded View---------------
Arg [0] : _token (address): 0x1103ce6136306FEDcC56FE7236B9e52F0C109D49
Arg [1] : _minYield (uint256): 10000000000000000000
Arg [2] : _maxYield (uint256): 50000000000000000000
Arg [3] : _step (uint256): 10000000000000000000
Arg [4] : _yieldPeriod (uint256): 604800
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000001103ce6136306fedcc56fe7236b9e52f0c109d49
Arg [1] : 0000000000000000000000000000000000000000000000008ac7230489e80000
Arg [2] : 000000000000000000000000000000000000000000000002b5e3af16b1880000
Arg [3] : 0000000000000000000000000000000000000000000000008ac7230489e80000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000093a80
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
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.