Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been partially verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- bbtCNV
- Optimization enabled
- false
- Compiler version
- v0.8.7+commit.e28d00a7
- EVM Version
- london
- Verified at
- 2026-04-22T01:58:47.761493Z
bbtCNV.sol
// SPDX-License-Identifier: WTFPL
pragma solidity >=0.8.0;
/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
/*///////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address indexed owner, address indexed spender, uint256 amount);
/*///////////////////////////////////////////////////////////////
METADATA STORAGE
//////////////////////////////////////////////////////////////*/
string public name;
string public symbol;
uint8 public immutable decimals;
/*///////////////////////////////////////////////////////////////
ERC20 STORAGE
//////////////////////////////////////////////////////////////*/
uint256 public totalSupply;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
/*///////////////////////////////////////////////////////////////
EIP-2612 STORAGE
//////////////////////////////////////////////////////////////*/
bytes32 public constant PERMIT_TYPEHASH =
keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
uint256 internal immutable INITIAL_CHAIN_ID;
bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;
mapping(address => uint256) public nonces;
/*///////////////////////////////////////////////////////////////
CONSTRUCTOR
//////////////////////////////////////////////////////////////*/
constructor(
string memory _name,
string memory _symbol,
uint8 _decimals
) {
name = _name;
symbol = _symbol;
decimals = _decimals;
INITIAL_CHAIN_ID = block.chainid;
INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
}
/*///////////////////////////////////////////////////////////////
ERC20 LOGIC
//////////////////////////////////////////////////////////////*/
function approve(address spender, uint256 amount) public virtual returns (bool) {
allowance[msg.sender][spender] = amount;
emit Approval(msg.sender, spender, amount);
return true;
}
function transfer(address to, uint256 amount) public virtual returns (bool) {
balanceOf[msg.sender] -= amount;
// Cannot overflow because the sum of all user
// balances can't exceed the max uint256 value.
unchecked {
balanceOf[to] += amount;
}
emit Transfer(msg.sender, to, amount);
return true;
}
function transferFrom(
address from,
address to,
uint256 amount
) public virtual returns (bool) {
uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.
if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;
balanceOf[from] -= amount;
// Cannot overflow because the sum of all user
// balances can't exceed the max uint256 value.
unchecked {
balanceOf[to] += amount;
}
emit Transfer(from, to, amount);
return true;
}
/*///////////////////////////////////////////////////////////////
EIP-2612 LOGIC
//////////////////////////////////////////////////////////////*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public virtual {
require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");
// Unchecked because the only math done is incrementing
// the owner's nonce which cannot realistically overflow.
unchecked {
bytes32 digest = keccak256(
abi.encodePacked(
"\x19\x01",
DOMAIN_SEPARATOR(),
keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
)
);
address recoveredAddress = ecrecover(digest, v, r, s);
require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");
allowance[recoveredAddress][spender] = value;
}
emit Approval(owner, spender, value);
}
function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
}
function computeDomainSeparator() internal view virtual returns (bytes32) {
return
keccak256(
abi.encode(
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
keccak256(bytes(name)),
keccak256("1"),
block.chainid,
address(this)
)
);
}
/*///////////////////////////////////////////////////////////////
INTERNAL MINT/BURN LOGIC
//////////////////////////////////////////////////////////////*/
function _mint(address to, uint256 amount) internal virtual {
totalSupply += amount;
// Cannot overflow because the sum of all user
// balances can't exceed the max uint256 value.
unchecked {
balanceOf[to] += amount;
}
emit Transfer(address(0), to, amount);
}
function _burn(address from, uint256 amount) internal virtual {
balanceOf[from] -= amount;
// Cannot underflow because a user's balance
// will never be larger than the total supply.
unchecked {
totalSupply -= amount;
}
emit Transfer(from, address(0), amount);
}
}
/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @author Modified from Gnosis (https://github.com/gnosis/gp-v2-contracts/blob/main/src/contracts/libraries/GPv2SafeERC20.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
library SafeTransferLib {
/*///////////////////////////////////////////////////////////////
ETH OPERATIONS
//////////////////////////////////////////////////////////////*/
function safeTransferETH(address to, uint256 amount) internal {
bool callStatus;
assembly {
// Transfer the ETH and store if it succeeded or not.
callStatus := call(gas(), to, amount, 0, 0, 0, 0)
}
require(callStatus, "ETH_TRANSFER_FAILED");
}
/*///////////////////////////////////////////////////////////////
ERC20 OPERATIONS
//////////////////////////////////////////////////////////////*/
function safeTransferFrom(
ERC20 token,
address from,
address to,
uint256 amount
) internal {
bool callStatus;
assembly {
// Get a pointer to some free memory.
let freeMemoryPointer := mload(0x40)
// Write the abi-encoded calldata to memory piece by piece:
mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) // Begin with the function selector.
mstore(add(freeMemoryPointer, 4), and(from, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "from" argument.
mstore(add(freeMemoryPointer, 36), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "to" argument.
mstore(add(freeMemoryPointer, 68), amount) // Finally append the "amount" argument. No mask as it's a full 32 byte value.
// Call the token and store if it succeeded or not.
// We use 100 because the calldata length is 4 + 32 * 3.
callStatus := call(gas(), token, 0, freeMemoryPointer, 100, 0, 0)
}
require(didLastOptionalReturnCallSucceed(callStatus), "TRANSFER_FROM_FAILED");
}
function safeTransfer(
ERC20 token,
address to,
uint256 amount
) internal {
bool callStatus;
assembly {
// Get a pointer to some free memory.
let freeMemoryPointer := mload(0x40)
// Write the abi-encoded calldata to memory piece by piece:
mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) // Begin with the function selector.
mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "to" argument.
mstore(add(freeMemoryPointer, 36), amount) // Finally append the "amount" argument. No mask as it's a full 32 byte value.
// Call the token and store if it succeeded or not.
// We use 68 because the calldata length is 4 + 32 * 2.
callStatus := call(gas(), token, 0, freeMemoryPointer, 68, 0, 0)
}
require(didLastOptionalReturnCallSucceed(callStatus), "TRANSFER_FAILED");
}
function safeApprove(
ERC20 token,
address to,
uint256 amount
) internal {
bool callStatus;
assembly {
// Get a pointer to some free memory.
let freeMemoryPointer := mload(0x40)
// Write the abi-encoded calldata to memory piece by piece:
mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) // Begin with the function selector.
mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "to" argument.
mstore(add(freeMemoryPointer, 36), amount) // Finally append the "amount" argument. No mask as it's a full 32 byte value.
// Call the token and store if it succeeded or not.
// We use 68 because the calldata length is 4 + 32 * 2.
callStatus := call(gas(), token, 0, freeMemoryPointer, 68, 0, 0)
}
require(didLastOptionalReturnCallSucceed(callStatus), "APPROVE_FAILED");
}
/*///////////////////////////////////////////////////////////////
INTERNAL HELPER LOGIC
//////////////////////////////////////////////////////////////*/
function didLastOptionalReturnCallSucceed(bool callStatus) private pure returns (bool success) {
assembly {
// Get how many bytes the call returned.
let returnDataSize := returndatasize()
// If the call reverted:
if iszero(callStatus) {
// Copy the revert message into memory.
returndatacopy(0, 0, returnDataSize)
// Revert with the same message.
revert(0, returnDataSize)
}
switch returnDataSize
case 32 {
// Copy the return data into memory.
returndatacopy(0, 0, returnDataSize)
// Set success to whether it returned true.
success := iszero(iszero(mload(0)))
}
case 0 {
// There was no return data.
success := 1
}
default {
// It returned some malformed input.
success := 0
}
}
}
}
/**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leafs & pre-images are assumed to be sorted.
*
* _Available since v4.4._
*/
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = _efficientHash(computedHash, proofElement);
} else {
// Hash(current element of the proof + current computed hash)
computedHash = _efficientHash(proofElement, computedHash);
}
}
return computedHash;
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
interface ICNV {
function mint(address to, uint256 amount) external returns (uint256);
function totalSupply() external view returns (uint256);
}
/// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi)
contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
using SafeTransferLib for ERC20;
/* ---------------------------------------------------------------------- */
/* IMMUTABLE STATE */
/* ---------------------------------------------------------------------- */
/// @notice FRAX tokenIn address
ERC20 public immutable FRAX = ERC20(0x853d955aCEf822Db058eb8505911ED77F175b99e);
/// @notice DAI tokenIn address
ERC20 public immutable DAI = ERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F);
/// @notice Error related to amount
string constant AMOUNT_ERROR = "!AMOUNT";
/// @notice Error related to token address
string constant TOKEN_IN_ERROR = "!TOKEN_IN";
/* ---------------------------------------------------------------------- */
/* MUTABLE STATE */
/* ---------------------------------------------------------------------- */
/// @notice Address that is recipient of raised funds + access control
address public treasury = 0x226e7AF139a0F34c6771DeB252F9988876ac1Ced;
/// @notice Returns the current merkle root being used
bytes32 public merkleRoot;
/// @notice Returns an array of all merkle roots used
bytes32[] public roots;
/// @notice Returns the current pCNV price in DAI/FRAX
uint256 public rate;
/// @notice Returns the total amount of pCNV that has cumulatively been minted
uint256 public totalMinted;
/// @notice Returns if pCNV are redeemable for CNV
// bool public redeemable;
/// @notice Returns whether transfers are paused
bool public transfersPaused;
/* ---------------------------------------------------------------------- */
/* STRUCTURED STATE */
/* ---------------------------------------------------------------------- */
/// @notice Structure of Participant vesting storage
struct Participant {
uint256 purchased; // amount (in total) of pCNV that user has purchased
uint256 redeemed; // amount (in total) of pCNV that user has redeemed
}
/// @notice maps an account to vesting storage
/// address - account to check
/// returns Participant - Structured vesting storage
mapping(address => Participant) public participants;
/// @notice amount of DAI/FRAX user has spent for a specific root
/// bytes32 - merkle root
/// address - account to check
/// returns uint256 - amount in DAI/FRAX (denominated in ether) spent purchasing pCNV
mapping(bytes32 => mapping(address => uint256)) public spentAmounts;
/* ---------------------------------------------------------------------- */
/* EVENTS */
/* ---------------------------------------------------------------------- */
/// @notice Emitted when treasury changes treasury address
/// @param treasury address of new treasury
event TreasurySet(address treasury);
/// @notice Emitted when a new round is set by treasury
/// @param merkleRoot new merkle root
/// @param rate new price of pCNV in DAI/FRAX
event NewRound(bytes32 merkleRoot, uint256 rate);
/// @notice Emitted when maxSupply of pCNV is burned or minted to target
/// @param target target to which to mint pCNV or burn if target = address(0)
/// @param amount amount of pCNV minted to target or burned
/// @param totalMinted amount of pCNV minted to target or burned
event Managed(address target, uint256 amount, uint256 totalMinted);
/// @notice Emitted when pCNV minted via "mint()" or "mintWithPermit"
/// @param depositedFrom address from which DAI/FRAX was deposited
/// @param mintedTo address to which pCNV were minted to
/// @param amount amount of pCNV minted
/// @param deposited amount of DAI/FRAX deposited
/// @param totalMinted total amount of pCNV minted so far
event Minted(
address indexed depositedFrom,
address indexed mintedTo,
uint256 amount,
uint256 deposited,
uint256 totalMinted
);
/* ---------------------------------------------------------------------- */
/* MODIFIERS */
/* ---------------------------------------------------------------------- */
/// @notice only allows Concave treasury
modifier onlyConcave() {
require(msg.sender == treasury, "!CONCAVE");
_;
}
/* ---------------------------------------------------------------------- */
/* ONLY CONCAVE */
/* ---------------------------------------------------------------------- */
/// @notice Set a new treasury address if treasury
function setTreasury(
address _treasury
) external onlyConcave {
treasury = _treasury;
emit TreasurySet(_treasury);
}
/// @notice Update merkle root and rate
/// @param _merkleRoot root of merkle tree
/// @param _rate price of pCNV in DAI/FRAX
function setRound(
bytes32 _merkleRoot,
uint256 _rate
) external onlyConcave {
// push new root to array of all roots - for viewing
roots.push(_merkleRoot);
// update merkle root
merkleRoot = _merkleRoot;
// update rate
rate = _rate;
emit NewRound(merkleRoot,rate);
}
/// @notice Reduce an "amount" of available supply of pCNV or mint it to "target"
/// @param target address to which to mint; if address(0), will burn
/// @param amount to reduce from max supply or mint to "target"
function manage(
address target,
uint256 amount
) external onlyConcave {
totalMinted += amount;
// mint target amount
_mint(target, amount);
emit Managed(target, amount, totalMinted);
}
/// @notice Allows Concave to pause transfers in the event of a bug
/// @param paused if transfers should be paused or not
function setTransfersPaused(bool paused) external onlyConcave {
transfersPaused = paused;
}
/* ---------------------------------------------------------------------- */
/* PUBLIC LOGIC */
/* ---------------------------------------------------------------------- */
/// @notice mint pCNV by providing merkle proof and depositing DAI/FRAX
/// @param to whitelisted address pCNV will be minted to
/// @param tokenIn address of tokenIn user wishes to deposit (DAI/FRAX)
/// @param maxAmount max amount of DAI/FRAX sender can deposit for pCNV, to verify merkle proof
/// @param amountIn amount of DAI/FRAX sender wishes to deposit for pCNV
/// @param proof merkle proof to prove "to" and "maxAmount" are in merkle tree
function mint(
address to,
address tokenIn,
uint256 maxAmount,
uint256 amountIn,
bytes32[] calldata proof
) external returns (uint256 amountOut) {
return _purchase(msg.sender, to, tokenIn, maxAmount, amountIn, proof);
}
/// @notice mint pCNV by providing merkle proof and depositing DAI; uses EIP-2612 permit to save a transaction
/// @param to whitelisted address pCNV will be minted to
/// @param tokenIn address of tokenIn user wishes to deposit (DAI)
/// @param maxAmount max amount of DAI sender can deposit for pCNV, to verify merkle proof
/// @param amountIn amount of DAI sender wishes to deposit for pCNV
/// @param proof merkle proof to prove "to" and "maxAmount" are in merkle tree
/// @param permitDeadline EIP-2612 : time when permit is no longer valid
/// @param v EIP-2612 : part of EIP-2612 signature
/// @param r EIP-2612 : part of EIP-2612 signature
/// @param s EIP-2612 : part of EIP-2612 signature
function mintWithPermit(
address to,
address tokenIn,
uint256 maxAmount,
uint256 amountIn,
bytes32[] calldata proof,
uint256 permitDeadline,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountOut) {
// Make sure payment tokenIn is DAI
require(tokenIn == address(DAI), TOKEN_IN_ERROR);
// Approve tokens for spender - https://eips.ethereum.org/EIPS/eip-2612
ERC20(tokenIn).permit(msg.sender, address(this), amountIn, permitDeadline, v, r, s);
// allow sender to mint for "to"
return _purchase(msg.sender, to, tokenIn, maxAmount, amountIn, proof);
}
/// @notice transfer "amount" of tokens from msg.sender to "to"
/// @dev calls "_beforeTransfer" to update vesting storage for "from" and "to"
/// @param to address tokens are being sent to
/// @param amount number of tokens being transfered
function transfer(
address to,
uint256 amount
) public virtual override returns (bool) {
require(!transfersPaused,"PAUSED");
// default ERC20 transfer
return super.transfer(to, amount);
}
/// @notice transfer "amount" of tokens from "from" to "to"
/// @dev calls "_beforeTransfer" to update vesting storage for "from" and "to"
/// @param from address tokens are being transfered from
/// @param to address tokens are being sent to
/// @param amount number of tokens being transfered
function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
require(!transfersPaused,"PAUSED");
// default ERC20 transfer
return super.transferFrom(from, to, amount);
}
/* ---------------------------------------------------------------------- */
/* INTERNAL LOGIC */
/* ---------------------------------------------------------------------- */
/// @notice Deposits FRAX/DAI for pCNV if merkle proof exists in specified round
/// @param sender address sending transaction
/// @param to whitelisted address purchased pCNV will be sent to
/// @param tokenIn address of tokenIn user wishes to deposit
/// @param maxAmount max amount of DAI/FRAX sender can deposit for pCNV
/// @param amountIn amount of DAI/FRAX sender wishes to deposit for pCNV
/// @param proof merkle proof to prove address and amount are in tree
function _purchase(
address sender,
address to,
address tokenIn,
uint256 maxAmount,
uint256 amountIn,
bytes32[] calldata proof
) internal returns(uint256 amountOut) {
// Make sure payment tokenIn is either DAI or FRAX
require(tokenIn == address(DAI) || tokenIn == address(FRAX), TOKEN_IN_ERROR);
// Require merkle proof with `to` and `maxAmount` to be successfully verified
require(MerkleProof.verify(proof, merkleRoot, keccak256(abi.encodePacked(to, maxAmount))), "!PROOF");
// Verify amount claimed by user does not surpass "maxAmount"
uint256 newAmount = spentAmounts[merkleRoot][to] + amountIn; // save gas
require(newAmount <= maxAmount, AMOUNT_ERROR);
spentAmounts[merkleRoot][to] = newAmount;
// Calculate rate of pCNV that should be returned for "amountIn"
amountOut = amountIn * 1e18 / rate;
// Interface storage for participant
Participant storage participant = participants[to];
// Increase participant.purchased to account for newly purchased tokens
participant.purchased += amountOut;
// Increase totalMinted to account for newly minted supply
totalMinted += amountOut;
// Transfer amountIn*ratio of tokenIn to treasury address
ERC20(tokenIn).safeTransferFrom(sender, treasury, amountIn);
// Mint tokens to address after pulling
_mint(to, amountOut);
emit Minted(sender, to, amountOut, amountIn, totalMinted);
}
/// @notice Rescues accidentally sent tokens and ETH
/// @param token address of token to rescue, if address(0) rescue ETH
function rescue(address token) external onlyConcave {
if (token == address(0)) payable(treasury).transfer( address(this).balance );
else ERC20(token).transfer(treasury, ERC20(token).balanceOf(address(this)));
}
}
// © 2022 WTFPL – Do What the Fuck You Want to Public License.
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":false},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"london","compilationTarget":{"bbtCNV.sol":"bbtCNV"}}
Contract ABI
[{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Managed","inputs":[{"type":"address","name":"target","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"totalMinted","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Minted","inputs":[{"type":"address","name":"depositedFrom","internalType":"address","indexed":true},{"type":"address","name":"mintedTo","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"deposited","internalType":"uint256","indexed":false},{"type":"uint256","name":"totalMinted","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"NewRound","inputs":[{"type":"bytes32","name":"merkleRoot","internalType":"bytes32","indexed":false},{"type":"uint256","name":"rate","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"TreasurySet","inputs":[{"type":"address","name":"treasury","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract ERC20"}],"name":"DAI","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_SEPARATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract ERC20"}],"name":"FRAX","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"PERMIT_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"manage","inputs":[{"type":"address","name":"target","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"merkleRoot","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"}],"name":"mint","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"address","name":"tokenIn","internalType":"address"},{"type":"uint256","name":"maxAmount","internalType":"uint256"},{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"bytes32[]","name":"proof","internalType":"bytes32[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"}],"name":"mintWithPermit","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"address","name":"tokenIn","internalType":"address"},{"type":"uint256","name":"maxAmount","internalType":"uint256"},{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"bytes32[]","name":"proof","internalType":"bytes32[]"},{"type":"uint256","name":"permitDeadline","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"purchased","internalType":"uint256"},{"type":"uint256","name":"redeemed","internalType":"uint256"}],"name":"participants","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"permit","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"rate","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescue","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"roots","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRound","inputs":[{"type":"bytes32","name":"_merkleRoot","internalType":"bytes32"},{"type":"uint256","name":"_rate","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTransfersPaused","inputs":[{"type":"bool","name":"paused","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTreasury","inputs":[{"type":"address","name":"_treasury","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"spentAmounts","inputs":[{"type":"bytes32","name":"","internalType":"bytes32"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalMinted","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfersPaused","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"treasury","inputs":[]}]
Contract Creation Code
0x61012060405273853d955acef822db058eb8505911ed77f175b99e73ffffffffffffffffffffffffffffffffffffffff1660e09073ffffffffffffffffffffffffffffffffffffffff1660601b815250736b175474e89094c44da98b954eedeac495271d0f73ffffffffffffffffffffffffffffffffffffffff166101009073ffffffffffffffffffffffffffffffffffffffff1660601b81525073226e7af139a0f34c6771deb252f9988876ac1ced600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000fc57600080fd5b506040518060400160405280601b81526020017f436f6e636176652050726573616c6520546f6b656e20284242542900000000008152506040518060400160405280600681526020017f626274434e560000000000000000000000000000000000000000000000000000815250601282600090805190602001906200018392919062000266565b5081600190805190602001906200019c92919062000266565b508060ff1660808160ff1660f81b815250504660a08181525050620001c6620001d660201b60201c565b60c0818152505050505062000517565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516200020a9190620003d4565b60405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc646306040516020016200024b959493929190620003ed565b60405160208183030381529060405280519060200120905090565b8280546200027490620004b2565b90600052602060002090601f016020900481019282620002985760008555620002e4565b82601f10620002b357805160ff1916838001178555620002e4565b82800160010185558215620002e4579182015b82811115620002e3578251825591602001919060010190620002c6565b5b509050620002f39190620002f7565b5090565b5b8082111562000312576000816000905550600101620002f8565b5090565b62000321816200046a565b82525050565b62000332816200047e565b82525050565b600081546200034781620004b2565b6200035381866200045f565b945060018216600081146200037157600181146200038357620003ba565b60ff19831686528186019350620003ba565b6200038e856200044a565b60005b83811015620003b25781548189015260018201915060208101905062000391565b838801955050505b50505092915050565b620003ce81620004a8565b82525050565b6000620003e2828462000338565b915081905092915050565b600060a08201905062000404600083018862000327565b62000413602083018762000327565b62000422604083018662000327565b620004316060830185620003c3565b62000440608083018462000316565b9695505050505050565b60008190508160005260206000209050919050565b600081905092915050565b6000620004778262000488565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006002820490506001821680620004cb57607f821691505b60208210811415620004e257620004e1620004e8565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60805160f81c60a05160c05160e05160601c6101005160601c6131e26200057a60003960008181610f1701528181611467015261193e0152600081816110de015261199301526000610adb01526000610aa701526000610a8101526131e26000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806361d027b311610104578063a9059cbb116100a2578063d505accf11610071578063d505accf14610598578063dd62ed3e146105b4578063e0bab4c4146105e4578063f0f4426014610602576101da565b8063a9059cbb146104ea578063b0e4556f1461051a578063c2b40ae414610538578063c89380fd14610568576101da565b8063839006f2116100de578063839006f21461046257806395d89b411461047e57806396fb8b101461049c578063a2309ff8146104cc576101da565b806361d027b3146103e457806370a08231146104025780637ecebe0014610432576101da565b806323b872dd1161017c578063313ce5671161014b578063313ce5671461036e5780633644e5151461038c57806344e46dff146103aa5780634563f30a146103c6576101da565b806323b872dd146102e45780632c4e722e146103145780632eb4a7ab1461033257806330adf81f14610350576101da565b80630b0eee30116101b85780630b0eee301461025e5780630cf5e1561461027a578063103a34721461029657806318160ddd146102c6576101da565b806306fdde03146101df578063095ea7b3146101fd57806309e69ede1461022d575b600080fd5b6101e761061e565b6040516101f49190612ad8565b60405180910390f35b61021760048036038101906102129190612441565b6106ac565b6040516102249190612965565b60405180910390f35b6102476004803603810190610242919061215a565b61079e565b604051610255929190612bd5565b60405180910390f35b61027860048036038101906102739190612441565b6107c2565b005b610294600480360381019061028f919061251b565b6108b6565b005b6102b060048036038101906102ab91906124db565b6109be565b6040516102bd9190612bba565b60405180910390f35b6102ce6109e3565b6040516102db9190612bba565b60405180910390f35b6102fe60048036038101906102f991906121c7565b6109e9565b60405161030b9190612965565b60405180910390f35b61031c610a4f565b6040516103299190612bba565b60405180910390f35b61033a610a55565b6040516103479190612980565b60405180910390f35b610358610a5b565b6040516103659190612980565b60405180910390f35b610376610a7f565b6040516103839190612c35565b60405180910390f35b610394610aa3565b6040516103a19190612980565b60405180910390f35b6103c460048036038101906103bf9190612481565b610b00565b005b6103ce610bad565b6040516103db9190612965565b60405180910390f35b6103ec610bc0565b6040516103f9919061287b565b60405180910390f35b61041c6004803603810190610417919061215a565b610be6565b6040516104299190612bba565b60405180910390f35b61044c6004803603810190610447919061215a565b610bfe565b6040516104599190612bba565b60405180910390f35b61047c6004803603810190610477919061215a565b610c16565b005b610486610e85565b6040516104939190612ad8565b60405180910390f35b6104b660048036038101906104b191906122b4565b610f13565b6040516104c39190612bba565b60405180910390f35b6104d4611072565b6040516104e19190612bba565b60405180910390f35b61050460048036038101906104ff9190612441565b611078565b6040516105119190612965565b60405180910390f35b6105226110dc565b60405161052f9190612abd565b60405180910390f35b610552600480360381019061054d919061255b565b611100565b60405161055f9190612980565b60405180910390f35b610582600480360381019061057d919061221a565b611124565b60405161058f9190612bba565b60405180910390f35b6105b260048036038101906105ad919061239f565b611141565b005b6105ce60048036038101906105c99190612187565b611440565b6040516105db9190612bba565b60405180910390f35b6105ec611465565b6040516105f99190612abd565b60405180910390f35b61061c6004803603810190610617919061215a565b611489565b005b6000805461062b90612e74565b80601f016020809104026020016040519081016040528092919081815260200182805461065790612e74565b80156106a45780601f10610679576101008083540402835291602001916106a4565b820191906000526020600020905b81548152906001019060200180831161068757829003601f168201915b505050505081565b600081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161078c9190612bba565b60405180910390a36001905092915050565b600c6020528060005260406000206000915090508060000154908060010154905082565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084990612b5a565b60405180910390fd5b80600a60008282546108649190612c97565b925050819055506108758282611594565b7fc5c33ab5e6467a87a001b77efc45aa27f6890b08565b99b7101becae3d82320e8282600a546040516108aa9392919061292e565b60405180910390a15050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610946576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093d90612b5a565b60405180910390fd5b600882908060018154018082558091505060019003906000526020600020016000909190919091505581600781905550806009819055507fc9714d3f318877e8200732d0c1e80981c397cbde2518a4b32c68d9ba1eab3b506007546009546040516109b2929190612a4f565b60405180910390a15050565b600d602052816000526040600020602052806000526040600020600091509150505481565b60025481565b6000600b60009054906101000a900460ff1615610a3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3290612afa565b60405180910390fd5b610a46848484611664565b90509392505050565b60095481565b60075481565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000004614610ad957610ad46118ae565b610afb565b7f00000000000000000000000000000000000000000000000000000000000000005b905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8790612b5a565b60405180910390fd5b80600b60006101000a81548160ff02191690831515021790555050565b600b60009054906101000a900460ff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915090505481565b60056020528060005260406000206000915090505481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9d90612b5a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d4957600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610d43573d6000803e3d6000fd5b50610e82565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610dc1919061287b565b60206040518083038186803b158015610dd957600080fd5b505afa158015610ded573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e119190612588565b6040518363ffffffff1660e01b8152600401610e2e929190612905565b602060405180830381600087803b158015610e4857600080fd5b505af1158015610e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8091906124ae565b505b50565b60018054610e9290612e74565b80601f0160208091040260200160405190810160405280929190818152602001828054610ebe90612e74565b8015610f0b5780601f10610ee057610100808354040283529160200191610f0b565b820191906000526020600020905b815481529060010190602001808311610eee57829003601f168201915b505050505081565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16146040518060400160405280600981526020017f21544f4b454e5f494e000000000000000000000000000000000000000000000081525090610fdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd29190612ad8565b60405180910390fd5b508973ffffffffffffffffffffffffffffffffffffffff1663d505accf33308b898989896040518863ffffffff1660e01b81526004016110219796959493929190612896565b600060405180830381600087803b15801561103b57600080fd5b505af115801561104f573d6000803e3d6000fd5b50505050611062338c8c8c8c8c8c61193a565b90509a9950505050505050505050565b600a5481565b6000600b60009054906101000a900460ff16156110ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c190612afa565b60405180910390fd5b6110d48383611dae565b905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6008818154811061111057600080fd5b906000526020600020016000915090505481565b60006111353388888888888861193a565b90509695505050505050565b42841015611184576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117b90612b9a565b60405180910390fd5b600061118e610aa3565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9898989600560008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600101919050558a6040516020016112169695949392919061299b565b6040516020818303038152906040528051906020012060405160200161123d929190612844565b60405160208183030381529060405280519060200120905060006001828686866040516000815260200160405260405161127a9493929190612a78565b6020604051602081039080840390855afa15801561129c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415801561131057508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61134f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134690612b7a565b60405180910390fd5b86600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258760405161142f9190612bba565b60405180910390a350505050505050565b6004602052816000526040600020602052806000526040600020600091509150505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151090612b5a565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3c864541ef71378c6229510ed90f376565ee42d9c5e0904a984a9e863e6db44f81604051611589919061287b565b60405180910390a150565b80600260008282546115a69190612c97565b9250508190555080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116589190612bba565b60405180910390a35050565b600080600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461179a5782816117199190612d78565b600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b82600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117e99190612d78565b9250508190555082600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161189a9190612bba565b60405180910390a360019150509392505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516118e0919061282d565b60405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6463060405160200161191f9594939291906129fc565b60405160208183030381529060405280519060200120905090565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614806119e157507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16145b6040518060400160405280600981526020017f21544f4b454e5f494e000000000000000000000000000000000000000000000081525090611a58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4f9190612ad8565b60405180910390fd5b50611acf838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506007548988604051602001611ab4929190612801565b60405160208183030381529060405280519060200120611ec2565b611b0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0590612b1a565b60405180910390fd5b600084600d6000600754815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611b6e9190612c97565b9050858111156040518060400160405280600781526020017f21414d4f554e540000000000000000000000000000000000000000000000000081525090611beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be29190612ad8565b60405180910390fd5b5080600d6000600754815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954670de0b6b3a764000086611c5a9190612d1e565b611c649190612ced565b91506000600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905082816000016000828254611cbd9190612c97565b9250508190555082600a6000828254611cd69190612c97565b92505081905550611d2c8a600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16888b73ffffffffffffffffffffffffffffffffffffffff16611ed9909392919063ffffffff16565b611d368984611594565b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167f68c721f9a38584842eb66945b43c95066397ce5f2576fcc0588471c85d209d0c8589600a54604051611d9993929190612bfe565b60405180910390a35050979650505050505050565b600081600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dff9190612d78565b9250508190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611eb09190612bba565b60405180910390a36001905092915050565b600082611ecf8584611f9c565b1490509392505050565b60006040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015273ffffffffffffffffffffffffffffffffffffffff8416602482015282604482015260008060648360008a5af1915050611f5681612011565b611f95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8c90612b3a565b60405180910390fd5b5050505050565b60008082905060005b8451811015612006576000858281518110611fc357611fc2612fb4565b5b60200260200101519050808311611fe557611fde838261205a565b9250611ff2565b611fef818461205a565b92505b508080611ffe90612ea6565b915050611fa5565b508091505092915050565b60003d8261202357806000803e806000fd5b806020811461203d576000811461204e5760009250612053565b816000803e60005115159250612053565b600192505b5050919050565b600082600052816020526040600020905092915050565b60008135905061208081613139565b92915050565b60008083601f84011261209c5761209b612fe8565b5b8235905067ffffffffffffffff8111156120b9576120b8612fe3565b5b6020830191508360208202830111156120d5576120d4612fed565b5b9250929050565b6000813590506120eb81613150565b92915050565b60008151905061210081613150565b92915050565b60008135905061211581613167565b92915050565b60008135905061212a8161317e565b92915050565b60008151905061213f8161317e565b92915050565b60008135905061215481613195565b92915050565b6000602082840312156121705761216f612ff7565b5b600061217e84828501612071565b91505092915050565b6000806040838503121561219e5761219d612ff7565b5b60006121ac85828601612071565b92505060206121bd85828601612071565b9150509250929050565b6000806000606084860312156121e0576121df612ff7565b5b60006121ee86828701612071565b93505060206121ff86828701612071565b92505060406122108682870161211b565b9150509250925092565b60008060008060008060a0878903121561223757612236612ff7565b5b600061224589828a01612071565b965050602061225689828a01612071565b955050604061226789828a0161211b565b945050606061227889828a0161211b565b935050608087013567ffffffffffffffff81111561229957612298612ff2565b5b6122a589828a01612086565b92509250509295509295509295565b6000806000806000806000806000806101208b8d0312156122d8576122d7612ff7565b5b60006122e68d828e01612071565b9a505060206122f78d828e01612071565b99505060406123088d828e0161211b565b98505060606123198d828e0161211b565b97505060808b013567ffffffffffffffff81111561233a57612339612ff2565b5b6123468d828e01612086565b965096505060a06123598d828e0161211b565b94505060c061236a8d828e01612145565b93505060e061237b8d828e01612106565b92505061010061238d8d828e01612106565b9150509295989b9194979a5092959850565b600080600080600080600060e0888a0312156123be576123bd612ff7565b5b60006123cc8a828b01612071565b97505060206123dd8a828b01612071565b96505060406123ee8a828b0161211b565b95505060606123ff8a828b0161211b565b94505060806124108a828b01612145565b93505060a06124218a828b01612106565b92505060c06124328a828b01612106565b91505092959891949750929550565b6000806040838503121561245857612457612ff7565b5b600061246685828601612071565b92505060206124778582860161211b565b9150509250929050565b60006020828403121561249757612496612ff7565b5b60006124a5848285016120dc565b91505092915050565b6000602082840312156124c4576124c3612ff7565b5b60006124d2848285016120f1565b91505092915050565b600080604083850312156124f2576124f1612ff7565b5b600061250085828601612106565b925050602061251185828601612071565b9150509250929050565b6000806040838503121561253257612531612ff7565b5b600061254085828601612106565b92505060206125518582860161211b565b9150509250929050565b60006020828403121561257157612570612ff7565b5b600061257f8482850161211b565b91505092915050565b60006020828403121561259e5761259d612ff7565b5b60006125ac84828501612130565b91505092915050565b6125be81612dac565b82525050565b6125d56125d082612dac565b612eef565b82525050565b6125e481612dbe565b82525050565b6125f381612dca565b82525050565b61260a61260582612dca565b612f01565b82525050565b6000815461261d81612e74565b6126278186612c70565b94506001821660008114612642576001811461265357612686565b60ff19831686528186019350612686565b61265c85612c50565b60005b8381101561267e5781548189015260018201915060208101905061265f565b838801955050505b50505092915050565b61269881612e0b565b82525050565b60006126a982612c65565b6126b38185612c7b565b93506126c3818560208601612e41565b6126cc81612ffc565b840191505092915050565b60006126e4600683612c7b565b91506126ef8261301a565b602082019050919050565b6000612707600283612c8c565b915061271282613043565b600282019050919050565b600061272a600683612c7b565b91506127358261306c565b602082019050919050565b600061274d601483612c7b565b915061275882613095565b602082019050919050565b6000612770600883612c7b565b915061277b826130be565b602082019050919050565b6000612793600e83612c7b565b915061279e826130e7565b602082019050919050565b60006127b6601783612c7b565b91506127c182613110565b602082019050919050565b6127d581612df4565b82525050565b6127ec6127e782612df4565b612f1d565b82525050565b6127fb81612dfe565b82525050565b600061280d82856125c4565b60148201915061281d82846127db565b6020820191508190509392505050565b60006128398284612610565b915081905092915050565b600061284f826126fa565b915061285b82856125f9565b60208201915061286b82846125f9565b6020820191508190509392505050565b600060208201905061289060008301846125b5565b92915050565b600060e0820190506128ab600083018a6125b5565b6128b860208301896125b5565b6128c560408301886127cc565b6128d260608301876127cc565b6128df60808301866127f2565b6128ec60a08301856125ea565b6128f960c08301846125ea565b98975050505050505050565b600060408201905061291a60008301856125b5565b61292760208301846127cc565b9392505050565b600060608201905061294360008301866125b5565b61295060208301856127cc565b61295d60408301846127cc565b949350505050565b600060208201905061297a60008301846125db565b92915050565b600060208201905061299560008301846125ea565b92915050565b600060c0820190506129b060008301896125ea565b6129bd60208301886125b5565b6129ca60408301876125b5565b6129d760608301866127cc565b6129e460808301856127cc565b6129f160a08301846127cc565b979650505050505050565b600060a082019050612a1160008301886125ea565b612a1e60208301876125ea565b612a2b60408301866125ea565b612a3860608301856127cc565b612a4560808301846125b5565b9695505050505050565b6000604082019050612a6460008301856125ea565b612a7160208301846127cc565b9392505050565b6000608082019050612a8d60008301876125ea565b612a9a60208301866127f2565b612aa760408301856125ea565b612ab460608301846125ea565b95945050505050565b6000602082019050612ad2600083018461268f565b92915050565b60006020820190508181036000830152612af2818461269e565b905092915050565b60006020820190508181036000830152612b13816126d7565b9050919050565b60006020820190508181036000830152612b338161271d565b9050919050565b60006020820190508181036000830152612b5381612740565b9050919050565b60006020820190508181036000830152612b7381612763565b9050919050565b60006020820190508181036000830152612b9381612786565b9050919050565b60006020820190508181036000830152612bb3816127a9565b9050919050565b6000602082019050612bcf60008301846127cc565b92915050565b6000604082019050612bea60008301856127cc565b612bf760208301846127cc565b9392505050565b6000606082019050612c1360008301866127cc565b612c2060208301856127cc565b612c2d60408301846127cc565b949350505050565b6000602082019050612c4a60008301846127f2565b92915050565b60008190508160005260206000209050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612ca282612df4565b9150612cad83612df4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612ce257612ce1612f27565b5b828201905092915050565b6000612cf882612df4565b9150612d0383612df4565b925082612d1357612d12612f56565b5b828204905092915050565b6000612d2982612df4565b9150612d3483612df4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612d6d57612d6c612f27565b5b828202905092915050565b6000612d8382612df4565b9150612d8e83612df4565b925082821015612da157612da0612f27565b5b828203905092915050565b6000612db782612dd4565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000612e1682612e1d565b9050919050565b6000612e2882612e2f565b9050919050565b6000612e3a82612dd4565b9050919050565b60005b83811015612e5f578082015181840152602081019050612e44565b83811115612e6e576000848401525b50505050565b60006002820490506001821680612e8c57607f821691505b60208210811415612ea057612e9f612f85565b5b50919050565b6000612eb182612df4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612ee457612ee3612f27565b5b600182019050919050565b6000612efa82612f0b565b9050919050565b6000819050919050565b6000612f168261300d565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f5041555345440000000000000000000000000000000000000000000000000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f2150524f4f460000000000000000000000000000000000000000000000000000600082015250565b7f5452414e534645525f46524f4d5f4641494c4544000000000000000000000000600082015250565b7f21434f4e43415645000000000000000000000000000000000000000000000000600082015250565b7f494e56414c49445f5349474e4552000000000000000000000000000000000000600082015250565b7f5045524d49545f444541444c494e455f45585049524544000000000000000000600082015250565b61314281612dac565b811461314d57600080fd5b50565b61315981612dbe565b811461316457600080fd5b50565b61317081612dca565b811461317b57600080fd5b50565b61318781612df4565b811461319257600080fd5b50565b61319e81612dfe565b81146131a957600080fd5b5056fea26469706673582212206dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c64736f6c63430008070033
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806361d027b311610104578063a9059cbb116100a2578063d505accf11610071578063d505accf14610598578063dd62ed3e146105b4578063e0bab4c4146105e4578063f0f4426014610602576101da565b8063a9059cbb146104ea578063b0e4556f1461051a578063c2b40ae414610538578063c89380fd14610568576101da565b8063839006f2116100de578063839006f21461046257806395d89b411461047e57806396fb8b101461049c578063a2309ff8146104cc576101da565b806361d027b3146103e457806370a08231146104025780637ecebe0014610432576101da565b806323b872dd1161017c578063313ce5671161014b578063313ce5671461036e5780633644e5151461038c57806344e46dff146103aa5780634563f30a146103c6576101da565b806323b872dd146102e45780632c4e722e146103145780632eb4a7ab1461033257806330adf81f14610350576101da565b80630b0eee30116101b85780630b0eee301461025e5780630cf5e1561461027a578063103a34721461029657806318160ddd146102c6576101da565b806306fdde03146101df578063095ea7b3146101fd57806309e69ede1461022d575b600080fd5b6101e761061e565b6040516101f49190612ad8565b60405180910390f35b61021760048036038101906102129190612441565b6106ac565b6040516102249190612965565b60405180910390f35b6102476004803603810190610242919061215a565b61079e565b604051610255929190612bd5565b60405180910390f35b61027860048036038101906102739190612441565b6107c2565b005b610294600480360381019061028f919061251b565b6108b6565b005b6102b060048036038101906102ab91906124db565b6109be565b6040516102bd9190612bba565b60405180910390f35b6102ce6109e3565b6040516102db9190612bba565b60405180910390f35b6102fe60048036038101906102f991906121c7565b6109e9565b60405161030b9190612965565b60405180910390f35b61031c610a4f565b6040516103299190612bba565b60405180910390f35b61033a610a55565b6040516103479190612980565b60405180910390f35b610358610a5b565b6040516103659190612980565b60405180910390f35b610376610a7f565b6040516103839190612c35565b60405180910390f35b610394610aa3565b6040516103a19190612980565b60405180910390f35b6103c460048036038101906103bf9190612481565b610b00565b005b6103ce610bad565b6040516103db9190612965565b60405180910390f35b6103ec610bc0565b6040516103f9919061287b565b60405180910390f35b61041c6004803603810190610417919061215a565b610be6565b6040516104299190612bba565b60405180910390f35b61044c6004803603810190610447919061215a565b610bfe565b6040516104599190612bba565b60405180910390f35b61047c6004803603810190610477919061215a565b610c16565b005b610486610e85565b6040516104939190612ad8565b60405180910390f35b6104b660048036038101906104b191906122b4565b610f13565b6040516104c39190612bba565b60405180910390f35b6104d4611072565b6040516104e19190612bba565b60405180910390f35b61050460048036038101906104ff9190612441565b611078565b6040516105119190612965565b60405180910390f35b6105226110dc565b60405161052f9190612abd565b60405180910390f35b610552600480360381019061054d919061255b565b611100565b60405161055f9190612980565b60405180910390f35b610582600480360381019061057d919061221a565b611124565b60405161058f9190612bba565b60405180910390f35b6105b260048036038101906105ad919061239f565b611141565b005b6105ce60048036038101906105c99190612187565b611440565b6040516105db9190612bba565b60405180910390f35b6105ec611465565b6040516105f99190612abd565b60405180910390f35b61061c6004803603810190610617919061215a565b611489565b005b6000805461062b90612e74565b80601f016020809104026020016040519081016040528092919081815260200182805461065790612e74565b80156106a45780601f10610679576101008083540402835291602001916106a4565b820191906000526020600020905b81548152906001019060200180831161068757829003601f168201915b505050505081565b600081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161078c9190612bba565b60405180910390a36001905092915050565b600c6020528060005260406000206000915090508060000154908060010154905082565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084990612b5a565b60405180910390fd5b80600a60008282546108649190612c97565b925050819055506108758282611594565b7fc5c33ab5e6467a87a001b77efc45aa27f6890b08565b99b7101becae3d82320e8282600a546040516108aa9392919061292e565b60405180910390a15050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610946576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093d90612b5a565b60405180910390fd5b600882908060018154018082558091505060019003906000526020600020016000909190919091505581600781905550806009819055507fc9714d3f318877e8200732d0c1e80981c397cbde2518a4b32c68d9ba1eab3b506007546009546040516109b2929190612a4f565b60405180910390a15050565b600d602052816000526040600020602052806000526040600020600091509150505481565b60025481565b6000600b60009054906101000a900460ff1615610a3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3290612afa565b60405180910390fd5b610a46848484611664565b90509392505050565b60095481565b60075481565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b7f000000000000000000000000000000000000000000000000000000000000001281565b60007f00000000000000000000000000000000000000000000000000000000000000014614610ad957610ad46118ae565b610afb565b7fcb81026912554fbc7fae772c56a86d9c6d281c43ba476b2fc42f89348cba7f515b905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8790612b5a565b60405180910390fd5b80600b60006101000a81548160ff02191690831515021790555050565b600b60009054906101000a900460ff1681565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915090505481565b60056020528060005260406000206000915090505481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ca6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9d90612b5a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d4957600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610d43573d6000803e3d6000fd5b50610e82565b8073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610dc1919061287b565b60206040518083038186803b158015610dd957600080fd5b505afa158015610ded573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e119190612588565b6040518363ffffffff1660e01b8152600401610e2e929190612905565b602060405180830381600087803b158015610e4857600080fd5b505af1158015610e5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8091906124ae565b505b50565b60018054610e9290612e74565b80601f0160208091040260200160405190810160405280929190818152602001828054610ebe90612e74565b8015610f0b5780601f10610ee057610100808354040283529160200191610f0b565b820191906000526020600020905b815481529060010190602001808311610eee57829003601f168201915b505050505081565b60007f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16146040518060400160405280600981526020017f21544f4b454e5f494e000000000000000000000000000000000000000000000081525090610fdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd29190612ad8565b60405180910390fd5b508973ffffffffffffffffffffffffffffffffffffffff1663d505accf33308b898989896040518863ffffffff1660e01b81526004016110219796959493929190612896565b600060405180830381600087803b15801561103b57600080fd5b505af115801561104f573d6000803e3d6000fd5b50505050611062338c8c8c8c8c8c61193a565b90509a9950505050505050505050565b600a5481565b6000600b60009054906101000a900460ff16156110ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c190612afa565b60405180910390fd5b6110d48383611dae565b905092915050565b7f000000000000000000000000853d955acef822db058eb8505911ed77f175b99e81565b6008818154811061111057600080fd5b906000526020600020016000915090505481565b60006111353388888888888861193a565b90509695505050505050565b42841015611184576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117b90612b9a565b60405180910390fd5b600061118e610aa3565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9898989600560008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600101919050558a6040516020016112169695949392919061299b565b6040516020818303038152906040528051906020012060405160200161123d929190612844565b60405160208183030381529060405280519060200120905060006001828686866040516000815260200160405260405161127a9493929190612a78565b6020604051602081039080840390855afa15801561129c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415801561131057508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61134f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134690612b7a565b60405180910390fd5b86600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258760405161142f9190612bba565b60405180910390a350505050505050565b6004602052816000526040600020602052806000526040600020600091509150505481565b7f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f81565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611519576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151090612b5a565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3c864541ef71378c6229510ed90f376565ee42d9c5e0904a984a9e863e6db44f81604051611589919061287b565b60405180910390a150565b80600260008282546115a69190612c97565b9250508190555080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116589190612bba565b60405180910390a35050565b600080600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461179a5782816117199190612d78565b600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b82600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117e99190612d78565b9250508190555082600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161189a9190612bba565b60405180910390a360019150509392505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516118e0919061282d565b60405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6463060405160200161191f9594939291906129fc565b60405160208183030381529060405280519060200120905090565b60007f0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614806119e157507f000000000000000000000000853d955acef822db058eb8505911ed77f175b99e73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16145b6040518060400160405280600981526020017f21544f4b454e5f494e000000000000000000000000000000000000000000000081525090611a58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4f9190612ad8565b60405180910390fd5b50611acf838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506007548988604051602001611ab4929190612801565b60405160208183030381529060405280519060200120611ec2565b611b0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0590612b1a565b60405180910390fd5b600084600d6000600754815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611b6e9190612c97565b9050858111156040518060400160405280600781526020017f21414d4f554e540000000000000000000000000000000000000000000000000081525090611beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be29190612ad8565b60405180910390fd5b5080600d6000600754815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600954670de0b6b3a764000086611c5a9190612d1e565b611c649190612ced565b91506000600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905082816000016000828254611cbd9190612c97565b9250508190555082600a6000828254611cd69190612c97565b92505081905550611d2c8a600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16888b73ffffffffffffffffffffffffffffffffffffffff16611ed9909392919063ffffffff16565b611d368984611594565b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167f68c721f9a38584842eb66945b43c95066397ce5f2576fcc0588471c85d209d0c8589600a54604051611d9993929190612bfe565b60405180910390a35050979650505050505050565b600081600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dff9190612d78565b9250508190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611eb09190612bba565b60405180910390a36001905092915050565b600082611ecf8584611f9c565b1490509392505050565b60006040517f23b872dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015273ffffffffffffffffffffffffffffffffffffffff8416602482015282604482015260008060648360008a5af1915050611f5681612011565b611f95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8c90612b3a565b60405180910390fd5b5050505050565b60008082905060005b8451811015612006576000858281518110611fc357611fc2612fb4565b5b60200260200101519050808311611fe557611fde838261205a565b9250611ff2565b611fef818461205a565b92505b508080611ffe90612ea6565b915050611fa5565b508091505092915050565b60003d8261202357806000803e806000fd5b806020811461203d576000811461204e5760009250612053565b816000803e60005115159250612053565b600192505b5050919050565b600082600052816020526040600020905092915050565b60008135905061208081613139565b92915050565b60008083601f84011261209c5761209b612fe8565b5b8235905067ffffffffffffffff8111156120b9576120b8612fe3565b5b6020830191508360208202830111156120d5576120d4612fed565b5b9250929050565b6000813590506120eb81613150565b92915050565b60008151905061210081613150565b92915050565b60008135905061211581613167565b92915050565b60008135905061212a8161317e565b92915050565b60008151905061213f8161317e565b92915050565b60008135905061215481613195565b92915050565b6000602082840312156121705761216f612ff7565b5b600061217e84828501612071565b91505092915050565b6000806040838503121561219e5761219d612ff7565b5b60006121ac85828601612071565b92505060206121bd85828601612071565b9150509250929050565b6000806000606084860312156121e0576121df612ff7565b5b60006121ee86828701612071565b93505060206121ff86828701612071565b92505060406122108682870161211b565b9150509250925092565b60008060008060008060a0878903121561223757612236612ff7565b5b600061224589828a01612071565b965050602061225689828a01612071565b955050604061226789828a0161211b565b945050606061227889828a0161211b565b935050608087013567ffffffffffffffff81111561229957612298612ff2565b5b6122a589828a01612086565b92509250509295509295509295565b6000806000806000806000806000806101208b8d0312156122d8576122d7612ff7565b5b60006122e68d828e01612071565b9a505060206122f78d828e01612071565b99505060406123088d828e0161211b565b98505060606123198d828e0161211b565b97505060808b013567ffffffffffffffff81111561233a57612339612ff2565b5b6123468d828e01612086565b965096505060a06123598d828e0161211b565b94505060c061236a8d828e01612145565b93505060e061237b8d828e01612106565b92505061010061238d8d828e01612106565b9150509295989b9194979a5092959850565b600080600080600080600060e0888a0312156123be576123bd612ff7565b5b60006123cc8a828b01612071565b97505060206123dd8a828b01612071565b96505060406123ee8a828b0161211b565b95505060606123ff8a828b0161211b565b94505060806124108a828b01612145565b93505060a06124218a828b01612106565b92505060c06124328a828b01612106565b91505092959891949750929550565b6000806040838503121561245857612457612ff7565b5b600061246685828601612071565b92505060206124778582860161211b565b9150509250929050565b60006020828403121561249757612496612ff7565b5b60006124a5848285016120dc565b91505092915050565b6000602082840312156124c4576124c3612ff7565b5b60006124d2848285016120f1565b91505092915050565b600080604083850312156124f2576124f1612ff7565b5b600061250085828601612106565b925050602061251185828601612071565b9150509250929050565b6000806040838503121561253257612531612ff7565b5b600061254085828601612106565b92505060206125518582860161211b565b9150509250929050565b60006020828403121561257157612570612ff7565b5b600061257f8482850161211b565b91505092915050565b60006020828403121561259e5761259d612ff7565b5b60006125ac84828501612130565b91505092915050565b6125be81612dac565b82525050565b6125d56125d082612dac565b612eef565b82525050565b6125e481612dbe565b82525050565b6125f381612dca565b82525050565b61260a61260582612dca565b612f01565b82525050565b6000815461261d81612e74565b6126278186612c70565b94506001821660008114612642576001811461265357612686565b60ff19831686528186019350612686565b61265c85612c50565b60005b8381101561267e5781548189015260018201915060208101905061265f565b838801955050505b50505092915050565b61269881612e0b565b82525050565b60006126a982612c65565b6126b38185612c7b565b93506126c3818560208601612e41565b6126cc81612ffc565b840191505092915050565b60006126e4600683612c7b565b91506126ef8261301a565b602082019050919050565b6000612707600283612c8c565b915061271282613043565b600282019050919050565b600061272a600683612c7b565b91506127358261306c565b602082019050919050565b600061274d601483612c7b565b915061275882613095565b602082019050919050565b6000612770600883612c7b565b915061277b826130be565b602082019050919050565b6000612793600e83612c7b565b915061279e826130e7565b602082019050919050565b60006127b6601783612c7b565b91506127c182613110565b602082019050919050565b6127d581612df4565b82525050565b6127ec6127e782612df4565b612f1d565b82525050565b6127fb81612dfe565b82525050565b600061280d82856125c4565b60148201915061281d82846127db565b6020820191508190509392505050565b60006128398284612610565b915081905092915050565b600061284f826126fa565b915061285b82856125f9565b60208201915061286b82846125f9565b6020820191508190509392505050565b600060208201905061289060008301846125b5565b92915050565b600060e0820190506128ab600083018a6125b5565b6128b860208301896125b5565b6128c560408301886127cc565b6128d260608301876127cc565b6128df60808301866127f2565b6128ec60a08301856125ea565b6128f960c08301846125ea565b98975050505050505050565b600060408201905061291a60008301856125b5565b61292760208301846127cc565b9392505050565b600060608201905061294360008301866125b5565b61295060208301856127cc565b61295d60408301846127cc565b949350505050565b600060208201905061297a60008301846125db565b92915050565b600060208201905061299560008301846125ea565b92915050565b600060c0820190506129b060008301896125ea565b6129bd60208301886125b5565b6129ca60408301876125b5565b6129d760608301866127cc565b6129e460808301856127cc565b6129f160a08301846127cc565b979650505050505050565b600060a082019050612a1160008301886125ea565b612a1e60208301876125ea565b612a2b60408301866125ea565b612a3860608301856127cc565b612a4560808301846125b5565b9695505050505050565b6000604082019050612a6460008301856125ea565b612a7160208301846127cc565b9392505050565b6000608082019050612a8d60008301876125ea565b612a9a60208301866127f2565b612aa760408301856125ea565b612ab460608301846125ea565b95945050505050565b6000602082019050612ad2600083018461268f565b92915050565b60006020820190508181036000830152612af2818461269e565b905092915050565b60006020820190508181036000830152612b13816126d7565b9050919050565b60006020820190508181036000830152612b338161271d565b9050919050565b60006020820190508181036000830152612b5381612740565b9050919050565b60006020820190508181036000830152612b7381612763565b9050919050565b60006020820190508181036000830152612b9381612786565b9050919050565b60006020820190508181036000830152612bb3816127a9565b9050919050565b6000602082019050612bcf60008301846127cc565b92915050565b6000604082019050612bea60008301856127cc565b612bf760208301846127cc565b9392505050565b6000606082019050612c1360008301866127cc565b612c2060208301856127cc565b612c2d60408301846127cc565b949350505050565b6000602082019050612c4a60008301846127f2565b92915050565b60008190508160005260206000209050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000612ca282612df4565b9150612cad83612df4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612ce257612ce1612f27565b5b828201905092915050565b6000612cf882612df4565b9150612d0383612df4565b925082612d1357612d12612f56565b5b828204905092915050565b6000612d2982612df4565b9150612d3483612df4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612d6d57612d6c612f27565b5b828202905092915050565b6000612d8382612df4565b9150612d8e83612df4565b925082821015612da157612da0612f27565b5b828203905092915050565b6000612db782612dd4565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000612e1682612e1d565b9050919050565b6000612e2882612e2f565b9050919050565b6000612e3a82612dd4565b9050919050565b60005b83811015612e5f578082015181840152602081019050612e44565b83811115612e6e576000848401525b50505050565b60006002820490506001821680612e8c57607f821691505b60208210811415612ea057612e9f612f85565b5b50919050565b6000612eb182612df4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612ee457612ee3612f27565b5b600182019050919050565b6000612efa82612f0b565b9050919050565b6000819050919050565b6000612f168261300d565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f5041555345440000000000000000000000000000000000000000000000000000600082015250565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b7f2150524f4f460000000000000000000000000000000000000000000000000000600082015250565b7f5452414e534645525f46524f4d5f4641494c4544000000000000000000000000600082015250565b7f21434f4e43415645000000000000000000000000000000000000000000000000600082015250565b7f494e56414c49445f5349474e4552000000000000000000000000000000000000600082015250565b7f5045524d49545f444541444c494e455f45585049524544000000000000000000600082015250565b61314281612dac565b811461314d57600080fd5b50565b61315981612dbe565b811461316457600080fd5b50565b61317081612dca565b811461317b57600080fd5b50565b61318781612df4565b811461319257600080fd5b50565b61319e81612dfe565b81146131a957600080fd5b5056fea26469706673582212206dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c64736f6c63430008070033