ERC-20
Overview
Max Total Supply
547.836958473251226826 yYFL
Holders
884
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000889471968277 yYFLValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
yYFL
Compiler Version
v0.6.6+commit.6c089d02
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.6.6; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/GSN/Context.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./interfaces/IYFLPurchaser.sol"; import "./interfaces/IyYFL.sol"; contract yYFL is IyYFL, ERC20, ReentrancyGuard { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; uint256 public constant override MAX_OPERATIONS = 10; IERC20 public immutable override YFL; uint256 public override blocksForNoWithdrawalFee; uint256 public override earlyWithdrawalFeePercent = 10000; // 1% mapping(address => uint256) public override earlyWithdrawalFeeExpiry; address public override treasury; uint256 public override treasuryEarlyWithdrawalFeeShare = 800000; // 80% address public override yflPurchaser; mapping(address => uint256) public override voteLockAmount; mapping(address => uint256) public override voteLockExpiry; mapping(address => bool) public override hasActiveProposal; mapping(uint256 => Proposal) public override proposals; uint256 public override proposalCount; uint256 public override votingPeriodBlocks; uint256 public override minYflForProposal = 1e17; // 0.1 YFL uint256 public override quorumPercent = 200000; // 20% uint256 public override voteThresholdPercent = 500000; // 50% uint256 public override executionPeriodBlocks; modifier onlyThis() { require(msg.sender == address(this), "yYFL: FORBIDDEN"); _; } constructor( address _yfl, address _treasury, uint256 _blocksForNoWithdrawalFee, uint256 _votingPeriodBlocks, uint256 _executionPeriodBlocks ) public ERC20("YFLink Staking Share", "yYFL") { require(_yfl != address(0) && _treasury != address(0), "yYFL: ZERO_ADDRESS"); _setupDecimals(ERC20(_yfl).decimals()); YFL = IERC20(_yfl); treasury = _treasury; blocksForNoWithdrawalFee = _blocksForNoWithdrawalFee; votingPeriodBlocks = _votingPeriodBlocks; executionPeriodBlocks = _executionPeriodBlocks; } function stake(uint256 amount) external override nonReentrant { require(amount > 0, "yYFL: ZERO"); uint256 shares = totalSupply() == 0 ? amount : (amount.mul(totalSupply())).div(YFL.balanceOf(address(this))); YFL.safeTransferFrom(msg.sender, address(this), amount); _mint(msg.sender, shares); earlyWithdrawalFeeExpiry[msg.sender] = blocksForNoWithdrawalFee.add(block.number); } function convertTokensToYfl(address[] calldata tokens, uint256[] calldata amounts) external override nonReentrant { require(yflPurchaser != address(0), "yYFL: INVALID_YFL_PURCHASER"); require(tokens.length == amounts.length, "yYFL: ARITY_MISMATCH"); for (uint256 i = 0; i < tokens.length; i++) { require(tokens[i] != address(YFL), "yYFL: ALREADY_CONVERTED"); IERC20 token = IERC20(tokens[i]); token.safeTransfer(yflPurchaser, amounts[i]); } uint256 yflBalanceBefore = YFL.balanceOf(address(this)); IYFLPurchaser(yflPurchaser).purchaseYfl(tokens); require(YFL.balanceOf(address(this)) > yflBalanceBefore, "yYFL: NO_YFL_PURCHASED"); } function withdraw(uint256 shares) external override nonReentrant { require(shares > 0, "yYFL: ZERO"); _checkVoteExpiry(); require(shares <= balanceOf(msg.sender).sub(voteLockAmount[msg.sender]), "yYFL: INSUFFICIENT_BALANCE"); uint256 yflAmount = (YFL.balanceOf(address(this))).mul(shares).div(totalSupply()); _burn(msg.sender, shares); if (block.number < earlyWithdrawalFeeExpiry[msg.sender]) { uint256 feeAmount = yflAmount.mul(earlyWithdrawalFeePercent) / 1000000; YFL.safeTransfer(treasury, feeAmount.mul(treasuryEarlyWithdrawalFeeShare) / 1000000); yflAmount = yflAmount.sub(feeAmount); } YFL.safeTransfer(msg.sender, yflAmount); } function getPricePerFullShare() external view override returns (uint256) { return YFL.balanceOf(address(this)).mul(1e18).div(totalSupply()); } function getStakeYflValue(address staker) external view override returns (uint256) { return (YFL.balanceOf(address(this)).mul(balanceOf(staker))).div(totalSupply()); } function propose( address[] memory targets, uint256[] memory values, string[] memory signatures, bytes[] memory calldatas, string memory description ) public override nonReentrant returns (uint256 id) { require(!hasActiveProposal[msg.sender], "yYFL: HAS_ACTIVE_PROPOSAL"); require( targets.length == values.length && targets.length == signatures.length && targets.length == calldatas.length, "yYFL: ARITY_MISMATCH" ); require(targets.length != 0, "yYFL: NO_ACTIONS"); require(targets.length <= MAX_OPERATIONS, "yYFL: TOO_MANY_ACTIONS"); require( (YFL.balanceOf(address(this)).mul(balanceOf(msg.sender))).div(totalSupply()) >= minYflForProposal, "yYFL: INSUFFICIENT_YFL_FOR_PROPOSAL" ); uint256 endBlock = votingPeriodBlocks.add(block.number); id = proposalCount; proposals[id] = Proposal({ proposer: msg.sender, endBlock: endBlock, targets: targets, values: values, signatures: signatures, calldatas: calldatas, totalForVotes: 0, totalAgainstVotes: 0, quorumVotes: YFL.balanceOf(address(this)).mul(quorumPercent) / 1000000, executed: false }); hasActiveProposal[msg.sender] = true; proposalCount = proposalCount.add(1); emit ProposalCreated( id, msg.sender, targets, values, signatures, calldatas, block.number, endBlock, description ); } function _checkVoteExpiry() private { if (block.number >= voteLockExpiry[msg.sender]) { voteLockExpiry[msg.sender] = 0; voteLockAmount[msg.sender] = 0; } } function vote( uint256 id, bool support, uint256 voteAmount ) external override nonReentrant { Proposal storage proposal = proposals[id]; require(proposal.proposer != address(0), "yYFL: INVALID_PROPOSAL_ID"); require(block.number < proposal.endBlock, "yYFL: VOTING_ENDED"); require(voteAmount > 0, "yYFL: ZERO"); require(voteAmount <= balanceOf(msg.sender), "yYFL: INSUFFICIENT_BALANCE"); _checkVoteExpiry(); require(voteAmount >= voteLockAmount[msg.sender], "yYFL: SMALLER_VOTE"); if ( (support && voteAmount == proposal.forVotes[msg.sender]) || (!support && voteAmount == proposal.againstVotes[msg.sender]) ) { revert("yYFL: SAME_VOTE"); } if (voteAmount > voteLockAmount[msg.sender]) { voteLockAmount[msg.sender] = voteAmount; } voteLockExpiry[msg.sender] = proposal.endBlock > voteLockExpiry[msg.sender] ? proposal.endBlock : voteLockExpiry[msg.sender]; if (support) { proposal.totalForVotes = proposal.totalForVotes.add(voteAmount).sub(proposal.forVotes[msg.sender]); proposal.forVotes[msg.sender] = voteAmount; // remove opposite votes proposal.totalAgainstVotes = proposal.totalAgainstVotes.sub(proposal.againstVotes[msg.sender]); proposal.againstVotes[msg.sender] = 0; } else { proposal.totalAgainstVotes = proposal.totalAgainstVotes.add(voteAmount).sub( proposal.againstVotes[msg.sender] ); proposal.againstVotes[msg.sender] = voteAmount; // remove opposite votes proposal.totalForVotes = proposal.totalForVotes.sub(proposal.forVotes[msg.sender]); proposal.forVotes[msg.sender] = 0; } emit VoteCast(msg.sender, id, support, voteAmount); } function executeProposal(uint256 id) external payable override nonReentrant { Proposal storage proposal = proposals[id]; require(!proposal.executed, "yYFL: PROPOSAL_ALREADY_EXECUTED"); { // check if proposal passed require(proposal.proposer != address(0), "yYFL: INVALID_PROPOSAL_ID"); require(block.number >= proposal.endBlock, "yYFL: PROPOSAL_IN_VOTING"); hasActiveProposal[proposal.proposer] = false; uint256 totalVotes = proposal.totalForVotes.add(proposal.totalAgainstVotes); if ( totalVotes < proposal.quorumVotes || proposal.totalForVotes < totalVotes.mul(voteThresholdPercent) / 1000000 || block.number >= proposal.endBlock.add(executionPeriodBlocks) // execution period ended ) { return; } } bool success = true; uint256 remainingValue = msg.value; for (uint256 i = 0; i < proposal.targets.length; i++) { if (proposal.values[i] > 0) { require(remainingValue >= proposal.values[i], "yYFL: INSUFFICIENT_ETH"); remainingValue = remainingValue - proposal.values[i]; } (success, ) = proposal.targets[i].call{value: proposal.values[i]}( abi.encodePacked(bytes4(keccak256(bytes(proposal.signatures[i]))), proposal.calldatas[i]) ); if (!success) break; } proposal.executed = true; emit ProposalExecuted(id, success); } function getVotes(uint256 proposalId, address voter) external view override returns (bool support, uint256 voteAmount) { support = proposals[proposalId].forVotes[voter] > 0; voteAmount = support ? proposals[proposalId].forVotes[voter] : proposals[proposalId].againstVotes[voter]; } function getProposalCalls(uint256 proposalId) external view override returns ( address[] memory targets, uint256[] memory values, string[] memory signatures, bytes[] memory calldatas ) { targets = proposals[proposalId].targets; values = proposals[proposalId].values; signatures = proposals[proposalId].signatures; calldatas = proposals[proposalId].calldatas; } // SETTERS function setTreasury(address _treasury) external override onlyThis { treasury = _treasury; } function setTreasuryEarlyWithdrawalFeeShare(uint256 _treasuryEarlyWithdrawalFeeShare) external override onlyThis { require(_treasuryEarlyWithdrawalFeeShare <= 1000000); treasuryEarlyWithdrawalFeeShare = _treasuryEarlyWithdrawalFeeShare; } function setYflPurchaser(address _yflPurchaser) external override onlyThis { require(_yflPurchaser != address(0)); yflPurchaser = _yflPurchaser; } function setBlocksForNoWithdrawalFee(uint256 _blocksForNoWithdrawalFee) external override onlyThis { // max 60 days require(_blocksForNoWithdrawalFee <= 345600); blocksForNoWithdrawalFee = _blocksForNoWithdrawalFee; } function setEarlyWithdrawalFeePercent(uint256 _earlyWithdrawalFeePercent) external override onlyThis { // max 100% require(_earlyWithdrawalFeePercent <= 1000000); earlyWithdrawalFeePercent = _earlyWithdrawalFeePercent; } function setVotingPeriodBlocks(uint256 _votingPeriodBlocks) external override onlyThis { // min 8 hours, max 2 weeks require(_votingPeriodBlocks >= 1920 && _votingPeriodBlocks <= 80640); votingPeriodBlocks = _votingPeriodBlocks; } function setMinYflForProposal(uint256 _minYflForProposal) external override onlyThis { // min 0.01 YFL, max 520 YFL (1% of total supply) require(_minYflForProposal >= 1e16 && _minYflForProposal <= 520 * (1e18)); minYflForProposal = _minYflForProposal; } function setQuorumPercent(uint256 _quorumPercent) external override onlyThis { // min 10%, max 33% require(_quorumPercent >= 100000 && _quorumPercent <= 330000); quorumPercent = _quorumPercent; } function setVoteThresholdPercent(uint256 _voteThresholdPercent) external override onlyThis { // min 50%, max 66% require(_voteThresholdPercent >= 500000 && _voteThresholdPercent <= 660000); voteThresholdPercent = _voteThresholdPercent; } function setExecutionPeriodBlocks(uint256 _executionPeriodBlocks) external override onlyThis { // min 8 hours, max 30 days require(_executionPeriodBlocks >= 1920 && _executionPeriodBlocks <= 172800); executionPeriodBlocks = _executionPeriodBlocks; } // ERC20 functions (overridden to add modifiers) function transfer(address recipient, uint256 amount) public override nonReentrant returns (bool) { super.transfer(recipient, amount); } function approve(address spender, uint256 amount) public override nonReentrant returns (bool) { super.approve(spender, amount); } function transferFrom( address sender, address recipient, uint256 amount ) public override nonReentrant returns (bool) { super.transferFrom(sender, recipient, amount); } function increaseAllowance(address spender, uint256 addedValue) public override nonReentrant returns (bool) { super.increaseAllowance(spender, addedValue); } function decreaseAllowance(address spender, uint256 subtractedValue) public override nonReentrant returns (bool) { super.decreaseAllowance(spender, subtractedValue); } }
pragma solidity 0.6.6; interface IYFLPurchaser { function purchaseYfl(address[] calldata tokens) external; }
pragma solidity 0.6.6; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IyYFL { // Event emitted when a new proposal is created event ProposalCreated( uint256 id, address indexed proposer, address[] targets, uint256[] values, string[] signatures, bytes[] calldatas, uint256 startBlock, uint256 endBlock, string description ); // Event emitted when a vote has been cast on a proposal event VoteCast(address indexed voter, uint256 proposalId, bool support, uint256 votes); // Event emitted when a proposal has been executed // Success=true if all actions were executed successfully // Success=false if not all actions were executed successfully (executeProposal will not revert) event ProposalExecuted(uint256 id, bool success); // Maximum number of actions that can be included in a proposal function MAX_OPERATIONS() external pure returns (uint256); // https://etherscan.io/token/0x28cb7e841ee97947a86B06fA4090C8451f64c0be function YFL() external pure returns (IERC20); struct Proposal { // Address that created the proposal address proposer; // Number of votes in support of the proposal by a particular address mapping(address => uint256) forVotes; // Number of votes against the proposal by a particular address mapping(address => uint256) againstVotes; // Total number of votes in support of the proposal uint256 totalForVotes; // Total number of votes against the proposal uint256 totalAgainstVotes; // Number of votes in support of a proposal required for a quorum to be reached and for a vote to succeed uint256 quorumVotes; // Block at which voting ends: votes must be cast prior to this block uint256 endBlock; // Ordered list of target addresses for calls to be made on address[] targets; // Ordered list of ETH values (i.e. msg.value) to be passed to the calls to be made uint256[] values; // Ordered list of function signatures to be called string[] signatures; // Ordered list of calldata to be passed to each call bytes[] calldatas; // Flag marking whether the proposal has been executed bool executed; } // Number of blocks after staking when the early withdrawal fee stops applying function blocksForNoWithdrawalFee() external view returns (uint256); // Fee for withdrawing before blocksForNoWithdrawalFee have passed, divide by 1,000,000 to get decimal form function earlyWithdrawalFeePercent() external view returns (uint256); function earlyWithdrawalFeeExpiry(address) external view returns (uint256); function treasury() external view returns (address); // Share of early withdrawal fee that goes to treasury (remainder goes to governance), // divide by 1,000,000 to get decimal form function treasuryEarlyWithdrawalFeeShare() external view returns (uint256); // Smart contract that exchanges ERC20 tokens for YFL function yflPurchaser() external view returns (address); // Amount of an address's stake that is locked for voting function voteLockAmount(address) external view returns (uint256); // Block number when an address's vote-locked amount will be unlock function voteLockExpiry(address) external view returns (uint256); function hasActiveProposal(address) external view returns (bool); function proposals(uint256 id) external view returns ( address proposer, uint256 totalForVotes, uint256 totalAgainstVotes, uint256 quorumVotes, uint256 endBlock, bool executed ); // Number of proposals created, used as the id for the next proposal function proposalCount() external view returns (uint256); // Length of voting period in blocks function votingPeriodBlocks() external view returns (uint256); function minYflForProposal() external view returns (uint256); // Need to divide by 1,000,000 function quorumPercent() external view returns (uint256); // Need to divide by 1,000,000 function voteThresholdPercent() external view returns (uint256); // Number of blocks after voting ends where proposals are allowed to be executed function executionPeriodBlocks() external view returns (uint256); function stake(uint256 amount) external; // call this to swap token revenue to YFL for YFL stakers function convertTokensToYfl(address[] calldata tokens, uint256[] calldata amounts) external; function withdraw(uint256 shares) external; function getPricePerFullShare() external view returns (uint256); function getStakeYflValue(address staker) external view returns (uint256); function propose( address[] calldata targets, uint256[] calldata values, string[] calldata signatures, bytes[] calldata calldatas, string calldata description ) external returns (uint256 id); function vote( uint256 id, bool support, uint256 voteAmount ) external; function executeProposal(uint256 id) external payable; function getVotes(uint256 proposalId, address voter) external view returns (bool support, uint256 voteAmount); function getProposalCalls(uint256 proposalId) external view returns ( address[] memory targets, uint256[] memory values, string[] memory signatures, bytes[] memory calldatas ); function setTreasury(address) external; function setTreasuryEarlyWithdrawalFeeShare(uint256) external; function setYflPurchaser(address) external; function setBlocksForNoWithdrawalFee(uint256) external; function setEarlyWithdrawalFeePercent(uint256) external; function setVotingPeriodBlocks(uint256) external; function setMinYflForProposal(uint256) external; function setQuorumPercent(uint256) external; function setVoteThresholdPercent(uint256) external; function setExecutionPeriodBlocks(uint256) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "../../GSN/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.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 guidelines: functions revert instead * of 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 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view 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 {_setupDecimals} is * called. * * 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 returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view 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); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); 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].add(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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(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 * * - `to` 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 = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(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); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(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 Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @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 to 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 { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.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 pragma solidity ^0.6.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": { "": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_yfl","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_blocksForNoWithdrawalFee","type":"uint256"},{"internalType":"uint256","name":"_votingPeriodBlocks","type":"uint256"},{"internalType":"uint256","name":"_executionPeriodBlocks","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"address","name":"proposer","type":"address"},{"indexed":false,"internalType":"address[]","name":"targets","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"},{"indexed":false,"internalType":"string[]","name":"signatures","type":"string[]"},{"indexed":false,"internalType":"bytes[]","name":"calldatas","type":"bytes[]"},{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"},{"indexed":false,"internalType":"string","name":"description","type":"string"}],"name":"ProposalCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"}],"name":"ProposalExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"uint256","name":"proposalId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"support","type":"bool"},{"indexed":false,"internalType":"uint256","name":"votes","type":"uint256"}],"name":"VoteCast","type":"event"},{"inputs":[],"name":"MAX_OPERATIONS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YFL","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blocksForNoWithdrawalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"convertTokensToYfl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"earlyWithdrawalFeeExpiry","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyWithdrawalFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"executeProposal","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"executionPeriodBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"}],"name":"getProposalCalls","outputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"string[]","name":"signatures","type":"string[]"},{"internalType":"bytes[]","name":"calldatas","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getStakeYflValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"proposalId","type":"uint256"},{"internalType":"address","name":"voter","type":"address"}],"name":"getVotes","outputs":[{"internalType":"bool","name":"support","type":"bool"},{"internalType":"uint256","name":"voteAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasActiveProposal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minYflForProposal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proposalCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"proposals","outputs":[{"internalType":"address","name":"proposer","type":"address"},{"internalType":"uint256","name":"totalForVotes","type":"uint256"},{"internalType":"uint256","name":"totalAgainstVotes","type":"uint256"},{"internalType":"uint256","name":"quorumVotes","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"bool","name":"executed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"string[]","name":"signatures","type":"string[]"},{"internalType":"bytes[]","name":"calldatas","type":"bytes[]"},{"internalType":"string","name":"description","type":"string"}],"name":"propose","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"quorumPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blocksForNoWithdrawalFee","type":"uint256"}],"name":"setBlocksForNoWithdrawalFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_earlyWithdrawalFeePercent","type":"uint256"}],"name":"setEarlyWithdrawalFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_executionPeriodBlocks","type":"uint256"}],"name":"setExecutionPeriodBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minYflForProposal","type":"uint256"}],"name":"setMinYflForProposal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quorumPercent","type":"uint256"}],"name":"setQuorumPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_treasuryEarlyWithdrawalFeeShare","type":"uint256"}],"name":"setTreasuryEarlyWithdrawalFeeShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_voteThresholdPercent","type":"uint256"}],"name":"setVoteThresholdPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_votingPeriodBlocks","type":"uint256"}],"name":"setVotingPeriodBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_yflPurchaser","type":"address"}],"name":"setYflPurchaser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryEarlyWithdrawalFeeShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"support","type":"bool"},{"internalType":"uint256","name":"voteAmount","type":"uint256"}],"name":"vote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"voteLockAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"voteLockExpiry","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"voteThresholdPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votingPeriodBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yflPurchaser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a0604052612710600855620c3500600b5567016345785d8a000060135562030d406014556207a1206015553480156200003857600080fd5b50604051620041d7380380620041d78339810160408190526200005b91620002d4565b604080518082018252601481527f59464c696e6b205374616b696e672053686172650000000000000000000000006020808301918252835180850190945260048452631e56519360e21b908401528151919291620000bc9160039162000211565b508051620000d290600490602084019062000211565b50506005805460ff191660121790555060016006556001600160a01b038516158015906200010857506001600160a01b03841615155b620001305760405162461bcd60e51b8152600401620001279062000352565b60405180910390fd5b620001b8856001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200016e57600080fd5b505afa15801562000183573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a9919062000328565b6001600160e01b03620001fb16565b60609490941b6001600160601b031916608052600a80546001600160a01b0319166001600160a01b0394909416939093179092556007556012556016556200037e565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200025457805160ff191683800117855562000284565b8280016001018555821562000284579182015b828111156200028457825182559160200191906001019062000267565b506200029292915062000296565b5090565b620002b391905b808211156200029257600081556001016200029d565b90565b80516001600160a01b0381168114620002ce57600080fd5b92915050565b600080600080600060a08688031215620002ec578081fd5b620002f88787620002b6565b9450620003098760208801620002b6565b6040870151606088015160809098015196999198509695945092505050565b6000602082840312156200033a578081fd5b815160ff811681146200034b578182fd5b9392505050565b6020808252601290820152717959464c3a205a45524f5f4144445245535360701b604082015260600190565b60805160601c613e04620003d360003980610e555280610f925280610fe2528061118252806112ca52806113c052806114c2528061193852806119c95280611a7c5280611bac528061206e5250613e046000f3fe6080604052600436106102ae5760003560e01c806384db62f411610175578063b83577c5116100dc578063dabee55411610095578063e91b2f251161006f578063e91b2f2514610807578063f0f4426014610827578063f81cbd2614610847578063ffafe4ad1461085c576102ae565b8063dabee554146107bd578063dd62ed3e146107d2578063e7113b6a146107f2576102ae565b8063b83577c51461071e578063b902421f14610733578063c934774014610748578063d46a5d7e14610768578063da35c66414610788578063da95691a1461079d576102ae565b8063a457c2d71161012e578063a457c2d714610674578063a4803b3314610694578063a694fc3a146106a9578063a7eea296146106c9578063a9059cbb146106e9578063b24b7ffd14610709576102ae565b806384db62f4146105af57806387be686a146105cf57806394924e55146105ef57806395d89b411461060f5780639f69053514610624578063a388133a14610654576102ae565b8063313ce5671161021957806368197360116101d257806368197360146104f75780636d6b086f1461052557806370a082311461054557806377c7b8fc14610565578063797294ac1461057a578063809c84b21461059a576102ae565b8063313ce5671461044957806338e440841461046b578063395093511461048057806357b223ba146104a05780635dc2803a146104c057806361d027b3146104d5576102ae565b80630f2049dd1161026b5780630f2049dd1461039f57806318160ddd146103bf57806323b872dd146103d4578063253fe18a146103f457806328a7878b146104095780632e1a7d4d14610429576102ae565b8063013cf08b146102b357806306fdde03146102ee578063089275ff14610310578063095ea7b31461033d5780630c9f441f1461036a5780630d61b5191461038c575b600080fd5b3480156102bf57600080fd5b506102d36102ce36600461323c565b61087c565b6040516102e5969594939291906134ab565b60405180910390f35b3480156102fa57600080fd5b506103036108be565b6040516102e591906135a0565b34801561031c57600080fd5b5061033061032b36600461303b565b610955565b6040516102e59190613be3565b34801561034957600080fd5b5061035d6103583660046130c1565b610967565b6040516102e59190613585565b34801561037657600080fd5b5061038a61038536600461323c565b6109b0565b005b61038a61039a36600461323c565b6109e4565b3480156103ab57600080fd5b506103306103ba36600461303b565b610d19565b3480156103cb57600080fd5b50610330610d2b565b3480156103e057600080fd5b5061035d6103ef366004613081565b610d31565b34801561040057600080fd5b50610330610d73565b34801561041557600080fd5b5061038a61042436600461323c565b610d79565b34801561043557600080fd5b5061038a61044436600461323c565b610dad565b34801561045557600080fd5b5061045e611018565b6040516102e59190613c95565b34801561047757600080fd5b50610330611021565b34801561048c57600080fd5b5061035d61049b3660046130c1565b611027565b3480156104ac57600080fd5b5061038a6104bb36600461323c565b61105b565b3480156104cc57600080fd5b5061033061109d565b3480156104e157600080fd5b506104ea6110a2565b6040516102e5919061345a565b34801561050357600080fd5b5061051761051236600461326c565b6110b1565b6040516102e5929190613590565b34801561053157600080fd5b5061033061054036600461303b565b61113a565b34801561055157600080fd5b5061033061056036600461303b565b61114c565b34801561057157600080fd5b50610330611167565b34801561058657600080fd5b5061038a61059536600461323c565b6111d1565b3480156105a657600080fd5b50610330611214565b3480156105bb57600080fd5b5061038a6105ca36600461323c565b61121a565b3480156105db57600080fd5b5061038a6105ea3660046130eb565b61124e565b3480156105fb57600080fd5b5061038a61060a36600461323c565b611571565b34801561061b57600080fd5b506103036115b3565b34801561063057600080fd5b5061064461063f36600461323c565b611614565b6040516102e5949392919061352e565b34801561066057600080fd5b5061038a61066f36600461323c565b6118bf565b34801561068057600080fd5b5061035d61068f3660046130c1565b611902565b3480156106a057600080fd5b506104ea611936565b3480156106b557600080fd5b5061038a6106c436600461323c565b61195a565b3480156106d557600080fd5b5061038a6106e436600461323c565b611ae0565b3480156106f557600080fd5b5061035d6107043660046130c1565b611b2d565b34801561071557600080fd5b50610330611b61565b34801561072a57600080fd5b506104ea611b67565b34801561073f57600080fd5b50610330611b76565b34801561075457600080fd5b5061033061076336600461303b565b611b7c565b34801561077457600080fd5b5061038a61078336600461328f565b611be7565b34801561079457600080fd5b50610330611f09565b3480156107a957600080fd5b506103306107b8366004613154565b611f0f565b3480156107c957600080fd5b5061033061224d565b3480156107de57600080fd5b506103306107ed366004613056565b612253565b3480156107fe57600080fd5b5061033061227e565b34801561081357600080fd5b5061038a61082236600461303b565b612284565b34801561083357600080fd5b5061038a61084236600461303b565b6122d8565b34801561085357600080fd5b50610330612319565b34801561086857600080fd5b5061035d61087736600461303b565b61231f565b601060205260009081526040902080546003820154600483015460058401546006850154600b909501546001600160a01b039094169492939192909160ff1686565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561094a5780601f1061091f5761010080835404028352916020019161094a565b820191906000526020600020905b81548152906001019060200180831161092d57829003601f168201915b505050505090505b90565b600e6020526000908152604090205481565b6000600260065414156109955760405162461bcd60e51b815260040161098c90613add565b60405180910390fd5b60026006556109a48383612334565b50600160065592915050565b3330146109cf5760405162461bcd60e51b815260040161098c90613b14565b620f42408111156109df57600080fd5b600b55565b60026006541415610a075760405162461bcd60e51b815260040161098c90613add565b60026006556000818152601060205260409020600b81015460ff1615610a3f5760405162461bcd60e51b815260040161098c906138b3565b80546001600160a01b0316610a665760405162461bcd60e51b815260040161098c9061392b565b8060060154431015610a8a5760405162461bcd60e51b815260040161098c906137ad565b80546001600160a01b03166000908152600f60205260408120805460ff1916905560048201546003830154610ac49163ffffffff61235116565b90508160050154811080610afb5750620f4240610aec6015548361237d90919063ffffffff16565b81610af357fe5b048260030154105b80610b1c57506016546006830154610b189163ffffffff61235116565b4310155b15610b28575050610d11565b5060013460005b6007840154811015610cc3576000846008018281548110610b4c57fe5b90600052602060002001541115610bb557836008018181548110610b6c57fe5b9060005260206000200154821015610b965760405162461bcd60e51b815260040161098c9061361a565b836008018181548110610ba557fe5b9060005260206000200154820391505b836007018181548110610bc457fe5b6000918252602090912001546008850180546001600160a01b039092169183908110610bec57fe5b9060005260206000200154856009018381548110610c0657fe5b90600052602060002001604051610c1d919061344e565b604051809103902086600a018481548110610c3457fe5b90600052602060002001604051602001610c4f929190613416565b60408051601f1981840301815290829052610c6991613432565b60006040518083038185875af1925050503d8060008114610ca6576040519150601f19603f3d011682016040523d82523d6000602084013e610cab565b606091505b50508093505082610cbb57610cc3565b600101610b2f565b50600b8301805460ff191660011790556040517f948f4a9cd986f1118c3fbd459f7a22b23c0693e1ca3ef06a6a8be5aa7d39cc0390610d059086908590613c6f565b60405180910390a15050505b506001600655565b60096020526000908152604090205481565b60025490565b600060026006541415610d565760405162461bcd60e51b815260040161098c90613add565b6002600655610d668484846123b7565b5060016006559392505050565b60085481565b333014610d985760405162461bcd60e51b815260040161098c90613b14565b620f4240811115610da857600080fd5b600855565b60026006541415610dd05760405162461bcd60e51b815260040161098c90613add565b600260065580610df25760405162461bcd60e51b815260040161098c906135f6565b610dfa612444565b336000818152600d6020526040902054610e2391610e179061114c565b9063ffffffff61247a16565b811115610e425760405162461bcd60e51b815260040161098c906137e4565b6000610f07610e4f610d2b565b610efb847f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610e9f919061345a565b60206040518083038186803b158015610eb757600080fd5b505afa158015610ecb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eef9190613254565b9063ffffffff61237d16565b9063ffffffff6124bc16565b9050610f1333836124fe565b33600090815260096020526040902054431015610fd5576000620f4240610f456008548461237d90919063ffffffff16565b81610f4c57fe5b049050610fc1600a60009054906101000a90046001600160a01b0316620f4240610f81600b548561237d90919063ffffffff16565b81610f8857fe5b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169291900463ffffffff6125ec16565b610fd1828263ffffffff61247a16565b9150505b61100f6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016338363ffffffff6125ec16565b50506001600655565b60055460ff1690565b60075481565b60006002600654141561104c5760405162461bcd60e51b815260040161098c90613add565b60026006556109a48383612647565b33301461107a5760405162461bcd60e51b815260040161098c90613b14565b610780811015801561108f57506202a3008111155b61109857600080fd5b601655565b600a81565b600a546001600160a01b031681565b60008281526010602090815260408083206001600160a01b03851684526001019091528120541515908161110a5760008481526010602090815260408083206001600160a01b0387168452600201909152902054611131565b60008481526010602090815260408083206001600160a01b03871684526001019091529020545b90509250929050565b600d6020526000908152604090205481565b6001600160a01b031660009081526020819052604090205490565b60006111cc611174610d2b565b610efb670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610e9f919061345a565b905090565b3330146111f05760405162461bcd60e51b815260040161098c90613b14565b620186a081101580156112065750620509108111155b61120f57600080fd5b601455565b60155481565b3330146112395760405162461bcd60e51b815260040161098c90613b14565b6205460081111561124957600080fd5b600755565b600260065414156112715760405162461bcd60e51b815260040161098c90613add565b6002600655600c546001600160a01b031661129e5760405162461bcd60e51b815260040161098c90613776565b8281146112bd5760405162461bcd60e51b815260040161098c906136ef565b60005b838110156113a5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168585838181106112fe57fe5b9050602002016020810190611313919061303b565b6001600160a01b0316141561133a5760405162461bcd60e51b815260040161098c90613845565b600085858381811061134857fe5b905060200201602081019061135d919061303b565b600c5490915061139c906001600160a01b031685858581811061137c57fe5b90506020020135836001600160a01b03166125ec9092919063ffffffff16565b506001016112c0565b506040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906113f590309060040161345a565b60206040518083038186803b15801561140d57600080fd5b505afa158015611421573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114459190613254565b600c54604051635168f14160e01b81529192506001600160a01b031690635168f1419061147890889088906004016134e0565b600060405180830381600087803b15801561149257600080fd5b505af11580156114a6573d6000803e3d6000fd5b50506040516370a0823160e01b81528392506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691506370a08231906114f890309060040161345a565b60206040518083038186803b15801561151057600080fd5b505afa158015611524573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115489190613254565b116115655760405162461bcd60e51b815260040161098c90613746565b50506001600655505050565b3330146115905760405162461bcd60e51b815260040161098c90613b14565b61078081101580156115a5575062013b008111155b6115ae57600080fd5b601255565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561094a5780601f1061091f5761010080835404028352916020019161094a565b6060806060806010600086815260200190815260200160002060070180548060200260200160405190810160405280929190818152602001828054801561168457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611666575b50505050509350601060008681526020019081526020016000206008018054806020026020016040519081016040528092919081815260200182805480156116eb57602002820191906000526020600020905b8154815260200190600101908083116116d7575b505050600088815260106020908152604080832060090180548251818502810185019093528083529699509095909450925084015b828210156117cb5760008481526020908190208301805460408051601f60026000196101006001871615020190941693909304928301859004850281018501909152818152928301828280156117b75780601f1061178c576101008083540402835291602001916117b7565b820191906000526020600020905b81548152906001019060200180831161179a57829003601f168201915b505050505081526020019060010190611720565b50505050915060106000868152602001908152602001600020600a01805480602002602001604051908101604052809291908181526020016000905b828210156118b25760008481526020908190208301805460408051601f600260001961010060018716150201909416939093049283018590048502810185019091528181529283018282801561189e5780601f106118735761010080835404028352916020019161189e565b820191906000526020600020905b81548152906001019060200180831161188157829003601f168201915b505050505081526020019060010190611807565b5050505090509193509193565b3330146118de5760405162461bcd60e51b815260040161098c90613b14565b6207a12081101580156118f45750620a12208111155b6118fd57600080fd5b601555565b6000600260065414156119275760405162461bcd60e51b815260040161098c90613add565b60026006556109a4838361269b565b7f000000000000000000000000000000000000000000000000000000000000000081565b6002600654141561197d5760405162461bcd60e51b815260040161098c90613add565b60026006558061199f5760405162461bcd60e51b815260040161098c906135f6565b60006119a9610d2b565b15611a6b576040516370a0823160e01b8152611a66906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906119fe90309060040161345a565b60206040518083038186803b158015611a1657600080fd5b505afa158015611a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a4e9190613254565b610efb611a59610d2b565b859063ffffffff61237d16565b611a6d565b815b9050611aaa6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633308563ffffffff61270916565b611ab43382612730565b600754611ac7904363ffffffff61235116565b3360009081526009602052604090205550506001600655565b333014611aff5760405162461bcd60e51b815260040161098c90613b14565b662386f26fc100008110158015611b1f5750681c30731cec032000008111155b611b2857600080fd5b601355565b600060026006541415611b525760405162461bcd60e51b815260040161098c90613add565b60026006556109a483836127f0565b60125481565b600c546001600160a01b031681565b600b5481565b6000611be1611b89610d2b565b610efb611b958561114c565b6040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190610e9f90309060040161345a565b92915050565b60026006541415611c0a5760405162461bcd60e51b815260040161098c90613add565b6002600655600083815260106020526040902080546001600160a01b0316611c445760405162461bcd60e51b815260040161098c9061392b565b80600601544310611c675760405162461bcd60e51b815260040161098c906136c3565b60008211611c875760405162461bcd60e51b815260040161098c906135f6565b611c903361114c565b821115611caf5760405162461bcd60e51b815260040161098c906137e4565b611cb7612444565b336000908152600d6020526040902054821015611ce65760405162461bcd60e51b815260040161098c90613b3d565b828015611d03575033600090815260018201602052604090205482145b80611d27575082158015611d27575033600090815260028201602052604090205482145b15611d445760405162461bcd60e51b815260040161098c9061371d565b336000908152600d6020526040902054821115611d6e57336000908152600d602052604090208290555b336000908152600e6020526040902054600682015411611d9d57336000908152600e6020526040902054611da3565b80600601545b336000908152600e60205260409020558215611e3b573360009081526001820160205260409020546003820154611de59190610e17908563ffffffff61235116565b60038201553360009081526001820160209081526040808320859055600284019091529020546004820154611e1f9163ffffffff61247a16565b6004820155336000908152600282016020526040812055611eb9565b3360009081526002820160205260409020546004820154611e679190610e17908563ffffffff61235116565b60048201553360009081526002820160209081526040808320859055600184019091529020546003820154611ea19163ffffffff61247a16565b60038201553360009081526001820160205260408120555b336001600160a01b03167f877856338e13f63d0c36822ff0ef736b80934cd90574a3a5bc9262c39d217c46858585604051611ef693929190613c7f565b60405180910390a2505060016006555050565b60115481565b600060026006541415611f345760405162461bcd60e51b815260040161098c90613add565b6002600655336000908152600f602052604090205460ff1615611f695760405162461bcd60e51b815260040161098c9061387c565b84518651148015611f7b575083518651145b8015611f88575082518651145b611fa45760405162461bcd60e51b815260040161098c906136ef565b8551611fc25760405162461bcd60e51b815260040161098c9061381b565b600a86511115611fe45760405162461bcd60e51b815260040161098c906139a3565b601354611ffe611ff2610d2b565b610efb611b953361114c565b101561201c5760405162461bcd60e51b815260040161098c90613b69565b601254600090612032904363ffffffff61235116565b90506011549150604051806101400160405280336001600160a01b031681526020016000815260200160008152602001620f42406120b86014547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610e9f919061345a565b816120bf57fe5b048152602080820184905260408083018b905260608084018b905260808085018b905260a08086018b9052600060c09096018690528886526010855294839020865181546001600160a01b0319166001600160a01b0390911617815586850151600382015592860151600484015590850151600583015584015160068201559183015180516121549260078501920190612bb0565b5060c08201518051612170916008840191602090910190612c15565b5060e0820151805161218c916009840191602090910190612c5c565b5061010082015180516121a991600a840191602090910190612cb5565b506101209190910151600b909101805491151560ff19928316179055336000908152600f60205260409020805490911660019081179091556011546121f39163ffffffff61235116565b60115560405133907f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e0906122369085908b908b908b908b9043908a908d90613bec565b60405180910390a250600160065595945050505050565b60165481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60135481565b3330146122a35760405162461bcd60e51b815260040161098c90613b14565b6001600160a01b0381166122b657600080fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b3330146122f75760405162461bcd60e51b815260040161098c90613b14565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60145481565b600f6020526000908152604090205460ff1681565b6000612348612341612804565b8484612808565b50600192915050565b6000828201838110156123765760405162461bcd60e51b815260040161098c9061368c565b9392505050565b60008261238c57506000611be1565b8282028284828161239957fe5b04146123765760405162461bcd60e51b815260040161098c906138ea565b60006123c48484846128bc565b61243a846123d0612804565b61243585604051806060016040528060288152602001613d82602891396001600160a01b038a1660009081526001602052604081209061240e612804565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6129dd16565b612808565b5060019392505050565b336000908152600e6020526040902054431061247857336000908152600e60209081526040808320839055600d9091528120555b565b600061237683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506129dd565b600061237683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612a09565b6001600160a01b0382166125245760405162461bcd60e51b815260040161098c90613962565b61253082600083612642565b61257381604051806060016040528060228152602001613d3a602291396001600160a01b038516600090815260208190526040902054919063ffffffff6129dd16565b6001600160a01b03831660009081526020819052604090205560025461259f908263ffffffff61247a16565b6002556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906125e0908590613be3565b60405180910390a35050565b6126428363a9059cbb60e01b848460405160240161260b929190613492565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612a40565b505050565b6000612348612654612804565b846124358560016000612665612804565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61235116565b60006123486126a8612804565b8461243585604051806060016040528060258152602001613daa60259139600160006126d2612804565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6129dd16565b61272a846323b872dd60e01b85858560405160240161260b9392919061346e565b50505050565b6001600160a01b0382166127565760405162461bcd60e51b815260040161098c90613bac565b61276260008383612642565b600254612775908263ffffffff61235116565b6002556001600160a01b0382166000908152602081905260409020546127a1908263ffffffff61235116565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906125e0908590613be3565b60006123486127fd612804565b84846128bc565b3390565b6001600160a01b03831661282e5760405162461bcd60e51b815260040161098c90613a18565b6001600160a01b0382166128545760405162461bcd60e51b815260040161098c9061364a565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906128af908590613be3565b60405180910390a3505050565b6001600160a01b0383166128e25760405162461bcd60e51b815260040161098c906139d3565b6001600160a01b0382166129085760405162461bcd60e51b815260040161098c906135b3565b612913838383612642565b61295681604051806060016040528060268152602001613d5c602691396001600160a01b038616600090815260208190526040902054919063ffffffff6129dd16565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461298b908263ffffffff61235116565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906128af908590613be3565b60008184841115612a015760405162461bcd60e51b815260040161098c91906135a0565b505050900390565b60008183612a2a5760405162461bcd60e51b815260040161098c91906135a0565b506000838581612a3657fe5b0495945050505050565b6060612a95826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612acf9092919063ffffffff16565b8051909150156126425780806020019051810190612ab39190613220565b6126425760405162461bcd60e51b815260040161098c90613a93565b6060612ade8484600085612ae6565b949350505050565b6060612af185612baa565b612b0d5760405162461bcd60e51b815260040161098c90613a5c565b60006060866001600160a01b03168587604051612b2a9190613432565b60006040518083038185875af1925050503d8060008114612b67576040519150601f19603f3d011682016040523d82523d6000602084013e612b6c565b606091505b50915091508115612b80579150612ade9050565b805115612b905780518082602001fd5b8360405162461bcd60e51b815260040161098c91906135a0565b3b151590565b828054828255906000526020600020908101928215612c05579160200282015b82811115612c0557825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612bd0565b50612c11929150612d0e565b5090565b828054828255906000526020600020908101928215612c50579160200282015b82811115612c50578251825591602001919060010190612c35565b50612c11929150612d32565b828054828255906000526020600020908101928215612ca9579160200282015b82811115612ca95782518051612c99918491602090910190612d4c565b5091602001919060010190612c7c565b50612c11929150612db9565b828054828255906000526020600020908101928215612d02579160200282015b82811115612d025782518051612cf2918491602090910190612d4c565b5091602001919060010190612cd5565b50612c11929150612ddc565b61095291905b80821115612c115780546001600160a01b0319168155600101612d14565b61095291905b80821115612c115760008155600101612d38565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612d8d57805160ff1916838001178555612c50565b82800160010185558215612c505791820182811115612c50578251825591602001919060010190612c35565b61095291905b80821115612c11576000612dd38282612dff565b50600101612dbf565b61095291905b80821115612c11576000612df68282612dff565b50600101612de2565b50805460018160011615610100020316600290046000825580601f10612e255750612e43565b601f016020900490600052602060002090810190612e439190612d32565b50565b80356001600160a01b0381168114611be157600080fd5b60008083601f840112612e6e578182fd5b50813567ffffffffffffffff811115612e85578182fd5b6020830191508360208083028501011115612e9f57600080fd5b9250929050565b600082601f830112612eb6578081fd5b8135612ec9612ec482613cca565b613ca3565b818152915060208083019084810181840286018201871015612eea57600080fd5b60005b84811015612f1157612eff8883612e46565b84529282019290820190600101612eed565b505050505092915050565b600082601f830112612f2c578081fd5b8135612f3a612ec482613cca565b818152915060208083019084810160005b84811015612f1157612f62888484358a0101612fd2565b84529282019290820190600101612f4b565b600082601f830112612f84578081fd5b8135612f92612ec482613cca565b818152915060208083019084810181840286018201871015612fb357600080fd5b60005b84811015612f1157813584529282019290820190600101612fb6565b600082601f830112612fe2578081fd5b813567ffffffffffffffff811115612ff8578182fd5b61300b601f8201601f1916602001613ca3565b915080825283602082850101111561302257600080fd5b8060208401602084013760009082016020015292915050565b60006020828403121561304c578081fd5b6123768383612e46565b60008060408385031215613068578081fd5b6130728484612e46565b91506111318460208501612e46565b600080600060608486031215613095578081fd5b83356130a081613d16565b925060208401356130b081613d16565b929592945050506040919091013590565b600080604083850312156130d3578182fd5b6130dd8484612e46565b946020939093013593505050565b60008060008060408587031215613100578081fd5b843567ffffffffffffffff80821115613117578283fd5b61312388838901612e5d565b9096509450602087013591508082111561313b578283fd5b5061314887828801612e5d565b95989497509550505050565b600080600080600060a0868803121561316b578081fd5b853567ffffffffffffffff80821115613182578283fd5b61318e89838a01612ea6565b965060208801359150808211156131a3578283fd5b6131af89838a01612f74565b955060408801359150808211156131c4578283fd5b6131d089838a01612f1c565b945060608801359150808211156131e5578283fd5b6131f189838a01612f1c565b93506080880135915080821115613206578283fd5b5061321388828901612fd2565b9150509295509295909350565b600060208284031215613231578081fd5b815161237681613d2b565b60006020828403121561324d578081fd5b5035919050565b600060208284031215613265578081fd5b5051919050565b6000806040838503121561327e578182fd5b823591506111318460208501612e46565b6000806000606084860312156132a3578081fd5b8335925060208401356130b081613d2b565b6000815180845260208085019450808401835b838110156132ed5781516001600160a01b0316875295820195908201906001016132c8565b509495945050505050565b6000815180845260208085018081965082840281019150828601855b8581101561333e57828403895261332c84835161337a565b98850198935090840190600101613314565b5091979650505050505050565b6000815180845260208085019450808401835b838110156132ed5781518752958201959082019060010161335e565b60008151808452613392816020860160208601613cea565b601f01601f19169290920160200192915050565b600081546001808216600081146133c457600181146133db5761340d565b60ff198316865260028304607f168601935061340d565b600283048560005260208060002060005b838110156134055781548a8201529085019082016133ec565b505050860193505b50505092915050565b6001600160e01b0319831681526000612ade60048301846133a6565b60008251613444818460208701613cea565b9190910192915050565b600061237682846133a6565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039690961686526020860194909452604085019290925260608401526080830152151560a082015260c00190565b60208082528181018390526000908460408401835b86811015613523578284016001600160a01b036135128286612e46565b1683529250908301906001016134f5565b509695505050505050565b60006080825261354160808301876132b5565b8281036020840152613553818761334b565b838103604085015261356581876132f8565b915050828103606084015261357a81856132f8565b979650505050505050565b901515815260200190565b9115158252602082015260400190565b600060208252612376602083018461337a565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252600a90820152697959464c3a205a45524f60b01b604082015260600190565b6020808252601690820152750f2b28c987440929ca6aa8c8c9286928a9ca8be8aa8960531b604082015260600190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601290820152711e5651930e881593d5125391d7d15391115160721b604082015260600190565b6020808252601490820152730f2b28c98744082a492a8b2be9a92a69a82a886960631b604082015260600190565b6020808252600f908201526e7959464c3a2053414d455f564f544560881b604082015260600190565b6020808252601690820152751e5651930e881393d7d6519317d4155490d21054d15160521b604082015260600190565b6020808252601b908201527f7959464c3a20494e56414c49445f59464c5f5055524348415345520000000000604082015260600190565b60208082526018908201527f7959464c3a2050524f504f53414c5f494e5f564f54494e470000000000000000604082015260600190565b6020808252601a908201527f7959464c3a20494e53554646494349454e545f42414c414e4345000000000000604082015260600190565b60208082526010908201526f7959464c3a204e4f5f414354494f4e5360801b604082015260600190565b60208082526017908201527f7959464c3a20414c52454144595f434f4e564552544544000000000000000000604082015260600190565b60208082526019908201527f7959464c3a204841535f4143544956455f50524f504f53414c00000000000000604082015260600190565b6020808252601f908201527f7959464c3a2050524f504f53414c5f414c52454144595f455845435554454400604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526019908201527f7959464c3a20494e56414c49445f50524f504f53414c5f494400000000000000604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252601690820152757959464c3a20544f4f5f4d414e595f414354494f4e5360501b604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600f908201526e3caca3261d102327a92124a22222a760891b604082015260600190565b6020808252601290820152717959464c3a20534d414c4c45525f564f544560701b604082015260600190565b60208082526023908201527f7959464c3a20494e53554646494349454e545f59464c5f464f525f50524f504f60408201526214d05360ea1b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60006101008a8352806020840152613c068184018b6132b5565b8381036040850152613c18818b61334b565b9150508281036060840152613c2d81896132f8565b8381036080850152613c3f81896132f8565b9150508560a08401528460c084015282810360e0840152613c60818561337a565b9b9a5050505050505050505050565b9182521515602082015260400190565b9283529015156020830152604082015260600190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715613cc257600080fd5b604052919050565b600067ffffffffffffffff821115613ce0578081fd5b5060209081020190565b60005b83811015613d05578181015183820152602001613ced565b8381111561272a5750506000910152565b6001600160a01b0381168114612e4357600080fd5b8015158114612e4357600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212203d46f17c966bf2c20ba9acd9abe92398e925beefa7420f9490bf0f19bcd2aa5b64736f6c6343000606003300000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be000000000000000000000000e69a81b96fbf5cb6cae95d2ce5323eff2ba0eae4000000000000000000000000000000000000000000000000000000000002a30000000000000000000000000000000000000000000000000000000000000043800000000000000000000000000000000000000000000000000000000000004380
Deployed Bytecode
0x6080604052600436106102ae5760003560e01c806384db62f411610175578063b83577c5116100dc578063dabee55411610095578063e91b2f251161006f578063e91b2f2514610807578063f0f4426014610827578063f81cbd2614610847578063ffafe4ad1461085c576102ae565b8063dabee554146107bd578063dd62ed3e146107d2578063e7113b6a146107f2576102ae565b8063b83577c51461071e578063b902421f14610733578063c934774014610748578063d46a5d7e14610768578063da35c66414610788578063da95691a1461079d576102ae565b8063a457c2d71161012e578063a457c2d714610674578063a4803b3314610694578063a694fc3a146106a9578063a7eea296146106c9578063a9059cbb146106e9578063b24b7ffd14610709576102ae565b806384db62f4146105af57806387be686a146105cf57806394924e55146105ef57806395d89b411461060f5780639f69053514610624578063a388133a14610654576102ae565b8063313ce5671161021957806368197360116101d257806368197360146104f75780636d6b086f1461052557806370a082311461054557806377c7b8fc14610565578063797294ac1461057a578063809c84b21461059a576102ae565b8063313ce5671461044957806338e440841461046b578063395093511461048057806357b223ba146104a05780635dc2803a146104c057806361d027b3146104d5576102ae565b80630f2049dd1161026b5780630f2049dd1461039f57806318160ddd146103bf57806323b872dd146103d4578063253fe18a146103f457806328a7878b146104095780632e1a7d4d14610429576102ae565b8063013cf08b146102b357806306fdde03146102ee578063089275ff14610310578063095ea7b31461033d5780630c9f441f1461036a5780630d61b5191461038c575b600080fd5b3480156102bf57600080fd5b506102d36102ce36600461323c565b61087c565b6040516102e5969594939291906134ab565b60405180910390f35b3480156102fa57600080fd5b506103036108be565b6040516102e591906135a0565b34801561031c57600080fd5b5061033061032b36600461303b565b610955565b6040516102e59190613be3565b34801561034957600080fd5b5061035d6103583660046130c1565b610967565b6040516102e59190613585565b34801561037657600080fd5b5061038a61038536600461323c565b6109b0565b005b61038a61039a36600461323c565b6109e4565b3480156103ab57600080fd5b506103306103ba36600461303b565b610d19565b3480156103cb57600080fd5b50610330610d2b565b3480156103e057600080fd5b5061035d6103ef366004613081565b610d31565b34801561040057600080fd5b50610330610d73565b34801561041557600080fd5b5061038a61042436600461323c565b610d79565b34801561043557600080fd5b5061038a61044436600461323c565b610dad565b34801561045557600080fd5b5061045e611018565b6040516102e59190613c95565b34801561047757600080fd5b50610330611021565b34801561048c57600080fd5b5061035d61049b3660046130c1565b611027565b3480156104ac57600080fd5b5061038a6104bb36600461323c565b61105b565b3480156104cc57600080fd5b5061033061109d565b3480156104e157600080fd5b506104ea6110a2565b6040516102e5919061345a565b34801561050357600080fd5b5061051761051236600461326c565b6110b1565b6040516102e5929190613590565b34801561053157600080fd5b5061033061054036600461303b565b61113a565b34801561055157600080fd5b5061033061056036600461303b565b61114c565b34801561057157600080fd5b50610330611167565b34801561058657600080fd5b5061038a61059536600461323c565b6111d1565b3480156105a657600080fd5b50610330611214565b3480156105bb57600080fd5b5061038a6105ca36600461323c565b61121a565b3480156105db57600080fd5b5061038a6105ea3660046130eb565b61124e565b3480156105fb57600080fd5b5061038a61060a36600461323c565b611571565b34801561061b57600080fd5b506103036115b3565b34801561063057600080fd5b5061064461063f36600461323c565b611614565b6040516102e5949392919061352e565b34801561066057600080fd5b5061038a61066f36600461323c565b6118bf565b34801561068057600080fd5b5061035d61068f3660046130c1565b611902565b3480156106a057600080fd5b506104ea611936565b3480156106b557600080fd5b5061038a6106c436600461323c565b61195a565b3480156106d557600080fd5b5061038a6106e436600461323c565b611ae0565b3480156106f557600080fd5b5061035d6107043660046130c1565b611b2d565b34801561071557600080fd5b50610330611b61565b34801561072a57600080fd5b506104ea611b67565b34801561073f57600080fd5b50610330611b76565b34801561075457600080fd5b5061033061076336600461303b565b611b7c565b34801561077457600080fd5b5061038a61078336600461328f565b611be7565b34801561079457600080fd5b50610330611f09565b3480156107a957600080fd5b506103306107b8366004613154565b611f0f565b3480156107c957600080fd5b5061033061224d565b3480156107de57600080fd5b506103306107ed366004613056565b612253565b3480156107fe57600080fd5b5061033061227e565b34801561081357600080fd5b5061038a61082236600461303b565b612284565b34801561083357600080fd5b5061038a61084236600461303b565b6122d8565b34801561085357600080fd5b50610330612319565b34801561086857600080fd5b5061035d61087736600461303b565b61231f565b601060205260009081526040902080546003820154600483015460058401546006850154600b909501546001600160a01b039094169492939192909160ff1686565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561094a5780601f1061091f5761010080835404028352916020019161094a565b820191906000526020600020905b81548152906001019060200180831161092d57829003601f168201915b505050505090505b90565b600e6020526000908152604090205481565b6000600260065414156109955760405162461bcd60e51b815260040161098c90613add565b60405180910390fd5b60026006556109a48383612334565b50600160065592915050565b3330146109cf5760405162461bcd60e51b815260040161098c90613b14565b620f42408111156109df57600080fd5b600b55565b60026006541415610a075760405162461bcd60e51b815260040161098c90613add565b60026006556000818152601060205260409020600b81015460ff1615610a3f5760405162461bcd60e51b815260040161098c906138b3565b80546001600160a01b0316610a665760405162461bcd60e51b815260040161098c9061392b565b8060060154431015610a8a5760405162461bcd60e51b815260040161098c906137ad565b80546001600160a01b03166000908152600f60205260408120805460ff1916905560048201546003830154610ac49163ffffffff61235116565b90508160050154811080610afb5750620f4240610aec6015548361237d90919063ffffffff16565b81610af357fe5b048260030154105b80610b1c57506016546006830154610b189163ffffffff61235116565b4310155b15610b28575050610d11565b5060013460005b6007840154811015610cc3576000846008018281548110610b4c57fe5b90600052602060002001541115610bb557836008018181548110610b6c57fe5b9060005260206000200154821015610b965760405162461bcd60e51b815260040161098c9061361a565b836008018181548110610ba557fe5b9060005260206000200154820391505b836007018181548110610bc457fe5b6000918252602090912001546008850180546001600160a01b039092169183908110610bec57fe5b9060005260206000200154856009018381548110610c0657fe5b90600052602060002001604051610c1d919061344e565b604051809103902086600a018481548110610c3457fe5b90600052602060002001604051602001610c4f929190613416565b60408051601f1981840301815290829052610c6991613432565b60006040518083038185875af1925050503d8060008114610ca6576040519150601f19603f3d011682016040523d82523d6000602084013e610cab565b606091505b50508093505082610cbb57610cc3565b600101610b2f565b50600b8301805460ff191660011790556040517f948f4a9cd986f1118c3fbd459f7a22b23c0693e1ca3ef06a6a8be5aa7d39cc0390610d059086908590613c6f565b60405180910390a15050505b506001600655565b60096020526000908152604090205481565b60025490565b600060026006541415610d565760405162461bcd60e51b815260040161098c90613add565b6002600655610d668484846123b7565b5060016006559392505050565b60085481565b333014610d985760405162461bcd60e51b815260040161098c90613b14565b620f4240811115610da857600080fd5b600855565b60026006541415610dd05760405162461bcd60e51b815260040161098c90613add565b600260065580610df25760405162461bcd60e51b815260040161098c906135f6565b610dfa612444565b336000818152600d6020526040902054610e2391610e179061114c565b9063ffffffff61247a16565b811115610e425760405162461bcd60e51b815260040161098c906137e4565b6000610f07610e4f610d2b565b610efb847f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610e9f919061345a565b60206040518083038186803b158015610eb757600080fd5b505afa158015610ecb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eef9190613254565b9063ffffffff61237d16565b9063ffffffff6124bc16565b9050610f1333836124fe565b33600090815260096020526040902054431015610fd5576000620f4240610f456008548461237d90919063ffffffff16565b81610f4c57fe5b049050610fc1600a60009054906101000a90046001600160a01b0316620f4240610f81600b548561237d90919063ffffffff16565b81610f8857fe5b6001600160a01b037f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be169291900463ffffffff6125ec16565b610fd1828263ffffffff61247a16565b9150505b61100f6001600160a01b037f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be16338363ffffffff6125ec16565b50506001600655565b60055460ff1690565b60075481565b60006002600654141561104c5760405162461bcd60e51b815260040161098c90613add565b60026006556109a48383612647565b33301461107a5760405162461bcd60e51b815260040161098c90613b14565b610780811015801561108f57506202a3008111155b61109857600080fd5b601655565b600a81565b600a546001600160a01b031681565b60008281526010602090815260408083206001600160a01b03851684526001019091528120541515908161110a5760008481526010602090815260408083206001600160a01b0387168452600201909152902054611131565b60008481526010602090815260408083206001600160a01b03871684526001019091529020545b90509250929050565b600d6020526000908152604090205481565b6001600160a01b031660009081526020819052604090205490565b60006111cc611174610d2b565b610efb670de0b6b3a76400007f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610e9f919061345a565b905090565b3330146111f05760405162461bcd60e51b815260040161098c90613b14565b620186a081101580156112065750620509108111155b61120f57600080fd5b601455565b60155481565b3330146112395760405162461bcd60e51b815260040161098c90613b14565b6205460081111561124957600080fd5b600755565b600260065414156112715760405162461bcd60e51b815260040161098c90613add565b6002600655600c546001600160a01b031661129e5760405162461bcd60e51b815260040161098c90613776565b8281146112bd5760405162461bcd60e51b815260040161098c906136ef565b60005b838110156113a5577f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be6001600160a01b03168585838181106112fe57fe5b9050602002016020810190611313919061303b565b6001600160a01b0316141561133a5760405162461bcd60e51b815260040161098c90613845565b600085858381811061134857fe5b905060200201602081019061135d919061303b565b600c5490915061139c906001600160a01b031685858581811061137c57fe5b90506020020135836001600160a01b03166125ec9092919063ffffffff16565b506001016112c0565b506040516370a0823160e01b81526000906001600160a01b037f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be16906370a08231906113f590309060040161345a565b60206040518083038186803b15801561140d57600080fd5b505afa158015611421573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114459190613254565b600c54604051635168f14160e01b81529192506001600160a01b031690635168f1419061147890889088906004016134e0565b600060405180830381600087803b15801561149257600080fd5b505af11580156114a6573d6000803e3d6000fd5b50506040516370a0823160e01b81528392506001600160a01b037f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be1691506370a08231906114f890309060040161345a565b60206040518083038186803b15801561151057600080fd5b505afa158015611524573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115489190613254565b116115655760405162461bcd60e51b815260040161098c90613746565b50506001600655505050565b3330146115905760405162461bcd60e51b815260040161098c90613b14565b61078081101580156115a5575062013b008111155b6115ae57600080fd5b601255565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561094a5780601f1061091f5761010080835404028352916020019161094a565b6060806060806010600086815260200190815260200160002060070180548060200260200160405190810160405280929190818152602001828054801561168457602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611666575b50505050509350601060008681526020019081526020016000206008018054806020026020016040519081016040528092919081815260200182805480156116eb57602002820191906000526020600020905b8154815260200190600101908083116116d7575b505050600088815260106020908152604080832060090180548251818502810185019093528083529699509095909450925084015b828210156117cb5760008481526020908190208301805460408051601f60026000196101006001871615020190941693909304928301859004850281018501909152818152928301828280156117b75780601f1061178c576101008083540402835291602001916117b7565b820191906000526020600020905b81548152906001019060200180831161179a57829003601f168201915b505050505081526020019060010190611720565b50505050915060106000868152602001908152602001600020600a01805480602002602001604051908101604052809291908181526020016000905b828210156118b25760008481526020908190208301805460408051601f600260001961010060018716150201909416939093049283018590048502810185019091528181529283018282801561189e5780601f106118735761010080835404028352916020019161189e565b820191906000526020600020905b81548152906001019060200180831161188157829003601f168201915b505050505081526020019060010190611807565b5050505090509193509193565b3330146118de5760405162461bcd60e51b815260040161098c90613b14565b6207a12081101580156118f45750620a12208111155b6118fd57600080fd5b601555565b6000600260065414156119275760405162461bcd60e51b815260040161098c90613add565b60026006556109a4838361269b565b7f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be81565b6002600654141561197d5760405162461bcd60e51b815260040161098c90613add565b60026006558061199f5760405162461bcd60e51b815260040161098c906135f6565b60006119a9610d2b565b15611a6b576040516370a0823160e01b8152611a66906001600160a01b037f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be16906370a08231906119fe90309060040161345a565b60206040518083038186803b158015611a1657600080fd5b505afa158015611a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a4e9190613254565b610efb611a59610d2b565b859063ffffffff61237d16565b611a6d565b815b9050611aaa6001600160a01b037f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be1633308563ffffffff61270916565b611ab43382612730565b600754611ac7904363ffffffff61235116565b3360009081526009602052604090205550506001600655565b333014611aff5760405162461bcd60e51b815260040161098c90613b14565b662386f26fc100008110158015611b1f5750681c30731cec032000008111155b611b2857600080fd5b601355565b600060026006541415611b525760405162461bcd60e51b815260040161098c90613add565b60026006556109a483836127f0565b60125481565b600c546001600160a01b031681565b600b5481565b6000611be1611b89610d2b565b610efb611b958561114c565b6040516370a0823160e01b81526001600160a01b037f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be16906370a0823190610e9f90309060040161345a565b92915050565b60026006541415611c0a5760405162461bcd60e51b815260040161098c90613add565b6002600655600083815260106020526040902080546001600160a01b0316611c445760405162461bcd60e51b815260040161098c9061392b565b80600601544310611c675760405162461bcd60e51b815260040161098c906136c3565b60008211611c875760405162461bcd60e51b815260040161098c906135f6565b611c903361114c565b821115611caf5760405162461bcd60e51b815260040161098c906137e4565b611cb7612444565b336000908152600d6020526040902054821015611ce65760405162461bcd60e51b815260040161098c90613b3d565b828015611d03575033600090815260018201602052604090205482145b80611d27575082158015611d27575033600090815260028201602052604090205482145b15611d445760405162461bcd60e51b815260040161098c9061371d565b336000908152600d6020526040902054821115611d6e57336000908152600d602052604090208290555b336000908152600e6020526040902054600682015411611d9d57336000908152600e6020526040902054611da3565b80600601545b336000908152600e60205260409020558215611e3b573360009081526001820160205260409020546003820154611de59190610e17908563ffffffff61235116565b60038201553360009081526001820160209081526040808320859055600284019091529020546004820154611e1f9163ffffffff61247a16565b6004820155336000908152600282016020526040812055611eb9565b3360009081526002820160205260409020546004820154611e679190610e17908563ffffffff61235116565b60048201553360009081526002820160209081526040808320859055600184019091529020546003820154611ea19163ffffffff61247a16565b60038201553360009081526001820160205260408120555b336001600160a01b03167f877856338e13f63d0c36822ff0ef736b80934cd90574a3a5bc9262c39d217c46858585604051611ef693929190613c7f565b60405180910390a2505060016006555050565b60115481565b600060026006541415611f345760405162461bcd60e51b815260040161098c90613add565b6002600655336000908152600f602052604090205460ff1615611f695760405162461bcd60e51b815260040161098c9061387c565b84518651148015611f7b575083518651145b8015611f88575082518651145b611fa45760405162461bcd60e51b815260040161098c906136ef565b8551611fc25760405162461bcd60e51b815260040161098c9061381b565b600a86511115611fe45760405162461bcd60e51b815260040161098c906139a3565b601354611ffe611ff2610d2b565b610efb611b953361114c565b101561201c5760405162461bcd60e51b815260040161098c90613b69565b601254600090612032904363ffffffff61235116565b90506011549150604051806101400160405280336001600160a01b031681526020016000815260200160008152602001620f42406120b86014547f00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401610e9f919061345a565b816120bf57fe5b048152602080820184905260408083018b905260608084018b905260808085018b905260a08086018b9052600060c09096018690528886526010855294839020865181546001600160a01b0319166001600160a01b0390911617815586850151600382015592860151600484015590850151600583015584015160068201559183015180516121549260078501920190612bb0565b5060c08201518051612170916008840191602090910190612c15565b5060e0820151805161218c916009840191602090910190612c5c565b5061010082015180516121a991600a840191602090910190612cb5565b506101209190910151600b909101805491151560ff19928316179055336000908152600f60205260409020805490911660019081179091556011546121f39163ffffffff61235116565b60115560405133907f7d84a6263ae0d98d3329bd7b46bb4e8d6f98cd35a7adb45c274c8b7fd5ebd5e0906122369085908b908b908b908b9043908a908d90613bec565b60405180910390a250600160065595945050505050565b60165481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60135481565b3330146122a35760405162461bcd60e51b815260040161098c90613b14565b6001600160a01b0381166122b657600080fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b3330146122f75760405162461bcd60e51b815260040161098c90613b14565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60145481565b600f6020526000908152604090205460ff1681565b6000612348612341612804565b8484612808565b50600192915050565b6000828201838110156123765760405162461bcd60e51b815260040161098c9061368c565b9392505050565b60008261238c57506000611be1565b8282028284828161239957fe5b04146123765760405162461bcd60e51b815260040161098c906138ea565b60006123c48484846128bc565b61243a846123d0612804565b61243585604051806060016040528060288152602001613d82602891396001600160a01b038a1660009081526001602052604081209061240e612804565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6129dd16565b612808565b5060019392505050565b336000908152600e6020526040902054431061247857336000908152600e60209081526040808320839055600d9091528120555b565b600061237683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506129dd565b600061237683836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612a09565b6001600160a01b0382166125245760405162461bcd60e51b815260040161098c90613962565b61253082600083612642565b61257381604051806060016040528060228152602001613d3a602291396001600160a01b038516600090815260208190526040902054919063ffffffff6129dd16565b6001600160a01b03831660009081526020819052604090205560025461259f908263ffffffff61247a16565b6002556040516000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906125e0908590613be3565b60405180910390a35050565b6126428363a9059cbb60e01b848460405160240161260b929190613492565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612a40565b505050565b6000612348612654612804565b846124358560016000612665612804565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61235116565b60006123486126a8612804565b8461243585604051806060016040528060258152602001613daa60259139600160006126d2612804565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6129dd16565b61272a846323b872dd60e01b85858560405160240161260b9392919061346e565b50505050565b6001600160a01b0382166127565760405162461bcd60e51b815260040161098c90613bac565b61276260008383612642565b600254612775908263ffffffff61235116565b6002556001600160a01b0382166000908152602081905260409020546127a1908263ffffffff61235116565b6001600160a01b0383166000818152602081905260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906125e0908590613be3565b60006123486127fd612804565b84846128bc565b3390565b6001600160a01b03831661282e5760405162461bcd60e51b815260040161098c90613a18565b6001600160a01b0382166128545760405162461bcd60e51b815260040161098c9061364a565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906128af908590613be3565b60405180910390a3505050565b6001600160a01b0383166128e25760405162461bcd60e51b815260040161098c906139d3565b6001600160a01b0382166129085760405162461bcd60e51b815260040161098c906135b3565b612913838383612642565b61295681604051806060016040528060268152602001613d5c602691396001600160a01b038616600090815260208190526040902054919063ffffffff6129dd16565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461298b908263ffffffff61235116565b6001600160a01b0380841660008181526020819052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906128af908590613be3565b60008184841115612a015760405162461bcd60e51b815260040161098c91906135a0565b505050900390565b60008183612a2a5760405162461bcd60e51b815260040161098c91906135a0565b506000838581612a3657fe5b0495945050505050565b6060612a95826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612acf9092919063ffffffff16565b8051909150156126425780806020019051810190612ab39190613220565b6126425760405162461bcd60e51b815260040161098c90613a93565b6060612ade8484600085612ae6565b949350505050565b6060612af185612baa565b612b0d5760405162461bcd60e51b815260040161098c90613a5c565b60006060866001600160a01b03168587604051612b2a9190613432565b60006040518083038185875af1925050503d8060008114612b67576040519150601f19603f3d011682016040523d82523d6000602084013e612b6c565b606091505b50915091508115612b80579150612ade9050565b805115612b905780518082602001fd5b8360405162461bcd60e51b815260040161098c91906135a0565b3b151590565b828054828255906000526020600020908101928215612c05579160200282015b82811115612c0557825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612bd0565b50612c11929150612d0e565b5090565b828054828255906000526020600020908101928215612c50579160200282015b82811115612c50578251825591602001919060010190612c35565b50612c11929150612d32565b828054828255906000526020600020908101928215612ca9579160200282015b82811115612ca95782518051612c99918491602090910190612d4c565b5091602001919060010190612c7c565b50612c11929150612db9565b828054828255906000526020600020908101928215612d02579160200282015b82811115612d025782518051612cf2918491602090910190612d4c565b5091602001919060010190612cd5565b50612c11929150612ddc565b61095291905b80821115612c115780546001600160a01b0319168155600101612d14565b61095291905b80821115612c115760008155600101612d38565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10612d8d57805160ff1916838001178555612c50565b82800160010185558215612c505791820182811115612c50578251825591602001919060010190612c35565b61095291905b80821115612c11576000612dd38282612dff565b50600101612dbf565b61095291905b80821115612c11576000612df68282612dff565b50600101612de2565b50805460018160011615610100020316600290046000825580601f10612e255750612e43565b601f016020900490600052602060002090810190612e439190612d32565b50565b80356001600160a01b0381168114611be157600080fd5b60008083601f840112612e6e578182fd5b50813567ffffffffffffffff811115612e85578182fd5b6020830191508360208083028501011115612e9f57600080fd5b9250929050565b600082601f830112612eb6578081fd5b8135612ec9612ec482613cca565b613ca3565b818152915060208083019084810181840286018201871015612eea57600080fd5b60005b84811015612f1157612eff8883612e46565b84529282019290820190600101612eed565b505050505092915050565b600082601f830112612f2c578081fd5b8135612f3a612ec482613cca565b818152915060208083019084810160005b84811015612f1157612f62888484358a0101612fd2565b84529282019290820190600101612f4b565b600082601f830112612f84578081fd5b8135612f92612ec482613cca565b818152915060208083019084810181840286018201871015612fb357600080fd5b60005b84811015612f1157813584529282019290820190600101612fb6565b600082601f830112612fe2578081fd5b813567ffffffffffffffff811115612ff8578182fd5b61300b601f8201601f1916602001613ca3565b915080825283602082850101111561302257600080fd5b8060208401602084013760009082016020015292915050565b60006020828403121561304c578081fd5b6123768383612e46565b60008060408385031215613068578081fd5b6130728484612e46565b91506111318460208501612e46565b600080600060608486031215613095578081fd5b83356130a081613d16565b925060208401356130b081613d16565b929592945050506040919091013590565b600080604083850312156130d3578182fd5b6130dd8484612e46565b946020939093013593505050565b60008060008060408587031215613100578081fd5b843567ffffffffffffffff80821115613117578283fd5b61312388838901612e5d565b9096509450602087013591508082111561313b578283fd5b5061314887828801612e5d565b95989497509550505050565b600080600080600060a0868803121561316b578081fd5b853567ffffffffffffffff80821115613182578283fd5b61318e89838a01612ea6565b965060208801359150808211156131a3578283fd5b6131af89838a01612f74565b955060408801359150808211156131c4578283fd5b6131d089838a01612f1c565b945060608801359150808211156131e5578283fd5b6131f189838a01612f1c565b93506080880135915080821115613206578283fd5b5061321388828901612fd2565b9150509295509295909350565b600060208284031215613231578081fd5b815161237681613d2b565b60006020828403121561324d578081fd5b5035919050565b600060208284031215613265578081fd5b5051919050565b6000806040838503121561327e578182fd5b823591506111318460208501612e46565b6000806000606084860312156132a3578081fd5b8335925060208401356130b081613d2b565b6000815180845260208085019450808401835b838110156132ed5781516001600160a01b0316875295820195908201906001016132c8565b509495945050505050565b6000815180845260208085018081965082840281019150828601855b8581101561333e57828403895261332c84835161337a565b98850198935090840190600101613314565b5091979650505050505050565b6000815180845260208085019450808401835b838110156132ed5781518752958201959082019060010161335e565b60008151808452613392816020860160208601613cea565b601f01601f19169290920160200192915050565b600081546001808216600081146133c457600181146133db5761340d565b60ff198316865260028304607f168601935061340d565b600283048560005260208060002060005b838110156134055781548a8201529085019082016133ec565b505050860193505b50505092915050565b6001600160e01b0319831681526000612ade60048301846133a6565b60008251613444818460208701613cea565b9190910192915050565b600061237682846133a6565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039690961686526020860194909452604085019290925260608401526080830152151560a082015260c00190565b60208082528181018390526000908460408401835b86811015613523578284016001600160a01b036135128286612e46565b1683529250908301906001016134f5565b509695505050505050565b60006080825261354160808301876132b5565b8281036020840152613553818761334b565b838103604085015261356581876132f8565b915050828103606084015261357a81856132f8565b979650505050505050565b901515815260200190565b9115158252602082015260400190565b600060208252612376602083018461337a565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252600a90820152697959464c3a205a45524f60b01b604082015260600190565b6020808252601690820152750f2b28c987440929ca6aa8c8c9286928a9ca8be8aa8960531b604082015260600190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601290820152711e5651930e881593d5125391d7d15391115160721b604082015260600190565b6020808252601490820152730f2b28c98744082a492a8b2be9a92a69a82a886960631b604082015260600190565b6020808252600f908201526e7959464c3a2053414d455f564f544560881b604082015260600190565b6020808252601690820152751e5651930e881393d7d6519317d4155490d21054d15160521b604082015260600190565b6020808252601b908201527f7959464c3a20494e56414c49445f59464c5f5055524348415345520000000000604082015260600190565b60208082526018908201527f7959464c3a2050524f504f53414c5f494e5f564f54494e470000000000000000604082015260600190565b6020808252601a908201527f7959464c3a20494e53554646494349454e545f42414c414e4345000000000000604082015260600190565b60208082526010908201526f7959464c3a204e4f5f414354494f4e5360801b604082015260600190565b60208082526017908201527f7959464c3a20414c52454144595f434f4e564552544544000000000000000000604082015260600190565b60208082526019908201527f7959464c3a204841535f4143544956455f50524f504f53414c00000000000000604082015260600190565b6020808252601f908201527f7959464c3a2050524f504f53414c5f414c52454144595f455845435554454400604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526019908201527f7959464c3a20494e56414c49445f50524f504f53414c5f494400000000000000604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252601690820152757959464c3a20544f4f5f4d414e595f414354494f4e5360501b604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600f908201526e3caca3261d102327a92124a22222a760891b604082015260600190565b6020808252601290820152717959464c3a20534d414c4c45525f564f544560701b604082015260600190565b60208082526023908201527f7959464c3a20494e53554646494349454e545f59464c5f464f525f50524f504f60408201526214d05360ea1b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60006101008a8352806020840152613c068184018b6132b5565b8381036040850152613c18818b61334b565b9150508281036060840152613c2d81896132f8565b8381036080850152613c3f81896132f8565b9150508560a08401528460c084015282810360e0840152613c60818561337a565b9b9a5050505050505050505050565b9182521515602082015260400190565b9283529015156020830152604082015260600190565b60ff91909116815260200190565b60405181810167ffffffffffffffff81118282101715613cc257600080fd5b604052919050565b600067ffffffffffffffff821115613ce0578081fd5b5060209081020190565b60005b83811015613d05578181015183820152602001613ced565b8381111561272a5750506000910152565b6001600160a01b0381168114612e4357600080fd5b8015158114612e4357600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212203d46f17c966bf2c20ba9acd9abe92398e925beefa7420f9490bf0f19bcd2aa5b64736f6c63430006060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be000000000000000000000000e69a81b96fbf5cb6cae95d2ce5323eff2ba0eae4000000000000000000000000000000000000000000000000000000000002a30000000000000000000000000000000000000000000000000000000000000043800000000000000000000000000000000000000000000000000000000000004380
-----Decoded View---------------
Arg [0] : _yfl (address): 0x28cb7e841ee97947a86B06fA4090C8451f64c0be
Arg [1] : _treasury (address): 0xE69A81b96FBF5Cb6CAe95d2cE5323Eff2bA0EAE4
Arg [2] : _blocksForNoWithdrawalFee (uint256): 172800
Arg [3] : _votingPeriodBlocks (uint256): 17280
Arg [4] : _executionPeriodBlocks (uint256): 17280
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000028cb7e841ee97947a86b06fa4090c8451f64c0be
Arg [1] : 000000000000000000000000e69a81b96fbf5cb6cae95d2ce5323eff2ba0eae4
Arg [2] : 000000000000000000000000000000000000000000000000000000000002a300
Arg [3] : 0000000000000000000000000000000000000000000000000000000000004380
Arg [4] : 0000000000000000000000000000000000000000000000000000000000004380
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.