- Contract name:
- stVLXMinter
- Optimization enabled
- false
- Compiler version
- v0.8.21+commit.d9974bed
- EVM Version
- default
- Verified at
- 2023-11-21T08:23:53.287178Z
Constructor Arguments
0000000000000000000000003557371afed82dd683de278924bd0e1a790a3c49
Arg [0] (address) : 0x3557371afed82dd683de278924bd0e1a790a3c49
Contract source code
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.4;
// ERC20 interface
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function mint(address to, uint256 amount) external;
function transferOwnership(address newOwner) external;
}
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
/**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
}
/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
/*//////////////////////////////////////////////////////////////
ETH OPERATIONS
//////////////////////////////////////////////////////////////*/
function safeTransferETH(address to, uint256 amount) internal {
bool success;
assembly {
// Transfer the ETH and store if it succeeded or not.
success := call(gas(), to, amount, 0, 0, 0, 0)
}
require(success, "ETH_TRANSFER_FAILED");
}
/*//////////////////////////////////////////////////////////////
ERC20 OPERATIONS
//////////////////////////////////////////////////////////////*/
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 amount
) internal {
bool success;
assembly {
// Get a pointer to some free memory.
let freeMemoryPointer := mload(0x40)
// Write the abi-encoded calldata into memory, beginning with the function selector.
mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.
success := and(
// Set success to whether the call reverted, if not we check it either
// returned exactly 1 (can't just be non-zero data), or had no return data.
or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
// We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
// We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
// Counterintuitively, this call must be positioned second to the or() call in the
// surrounding and() call or else returndatasize() will be zero during the computation.
call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
)
}
require(success, "TRANSFER_FROM_FAILED");
}
function safeTransfer(
IERC20 token,
address to,
uint256 amount
) internal {
bool success;
assembly {
// Get a pointer to some free memory.
let freeMemoryPointer := mload(0x40)
// Write the abi-encoded calldata into memory, beginning with the function selector.
mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.
success := and(
// Set success to whether the call reverted, if not we check it either
// returned exactly 1 (can't just be non-zero data), or had no return data.
or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
// We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
// We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
// Counterintuitively, this call must be positioned second to the or() call in the
// surrounding and() call or else returndatasize() will be zero during the computation.
call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
)
}
require(success, "TRANSFER_FAILED");
}
function safeApprove(
IERC20 token,
address to,
uint256 amount
) internal {
bool success;
assembly {
// Get a pointer to some free memory.
let freeMemoryPointer := mload(0x40)
// Write the abi-encoded calldata into memory, beginning with the function selector.
mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.
success := and(
// Set success to whether the call reverted, if not we check it either
// returned exactly 1 (can't just be non-zero data), or had no return data.
or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
// We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
// We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
// Counterintuitively, this call must be positioned second to the or() call in the
// surrounding and() call or else returndatasize() will be zero during the computation.
call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
)
}
require(success, "APPROVE_FAILED");
}
}
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// BaseMinter
abstract contract BaseMinter is Ownable, ReentrancyGuard {
using SafeMath for uint256;
uint256 public depositFee = 0; // possible fee to cover bridging costs
uint256 public constant MAX_DEPOSIT_FEE = 500; // max deposit fee 500bp (5%)
uint256 public constant FEE_DENOMINATOR = 10000; // fee denominator for basis points
// Staking token
IERC20 public stakingToken;
constructor(address _stakingToken) {
stakingToken = IERC20(_stakingToken);
}
event UpdateDepositFee(uint256 _depositFee);
event TransferStakingTokenOwnership(address indexed _newOwner);
event Mint(address indexed caller, address indexed receiver, uint256 amount);
function previewDeposit(uint256 amount) public view virtual returns (uint256) {
uint256 feeAmount = amount.mul(depositFee).div(FEE_DENOMINATOR);
uint256 netAmount = amount.sub(feeAmount);
return netAmount;
}
function updateDepositFee(uint256 newFee) public onlyOwner {
require(newFee <= MAX_DEPOSIT_FEE, ">MaxFee");
depositFee = newFee;
emit UpdateDepositFee(newFee);
}
function transferStakingTokenOwnership(address newOwner) public onlyOwner {
stakingToken.transferOwnership(newOwner);
emit TransferStakingTokenOwnership(newOwner);
}
function mint(uint256 amount, address receiver) public onlyOwner {
stakingToken.mint(receiver, amount);
emit Mint(address(msg.sender), receiver, amount);
}
}
// NativeMinter contract accepts network coin as a base token for liquid staking
contract NativeMinter is BaseMinter {
constructor(address _stakingToken) BaseMinter(_stakingToken) {
}
event Deposit(address indexed caller, address indexed receiver, uint256 amount);
event Withdraw(address indexed caller, address indexed receiver, uint256 amount);
function deposit(address receiver) public payable virtual nonReentrant {
require(msg.value > 0, "ZeroDeposit");
uint256 mintAmount = previewDeposit(msg.value);
require(mintAmount > 0, "ZeroMintAmount");
stakingToken.mint(receiver, mintAmount);
emit Deposit(address(msg.sender), receiver, msg.value);
}
function withdraw(address receiver) public onlyOwner {
uint256 availableBalance = address(this).balance;
require(availableBalance > 0, "ZeroWithdraw");
SafeTransferLib.safeTransferETH(receiver, availableBalance);
emit Withdraw(address(msg.sender), receiver, availableBalance);
}
}
// ERC20Minter contract accepts ERC20 token as a base token for liduid staking
contract ERC20Minter is BaseMinter {
using SafeTransferLib for IERC20;
// Base token
IERC20 public baseToken;
constructor(address _baseToken, address _stakingToken) BaseMinter(_stakingToken) {
baseToken = IERC20(_baseToken);
// this contract can spend baseToken
baseToken.approve(address(this), type(uint256).max);
}
event Deposit(address indexed caller, address indexed receiver, uint256 amount);
event Withdraw(address indexed caller, address indexed receiver, uint256 amount);
function deposit(uint256 amount, address receiver) public virtual nonReentrant {
require(amount > 0, "ZeroDeposit");
uint256 mintAmount = previewDeposit(amount);
require(mintAmount > 0, "ZeroMintAmount");
baseToken.safeTransferFrom(address(msg.sender), address(this), amount);
stakingToken.mint(receiver, mintAmount);
emit Deposit(address(msg.sender), receiver, amount);
}
function withdraw(address receiver) public onlyOwner {
uint256 availableBalance = baseToken.balanceOf(address(this));
require(availableBalance > 0, "ZeroWithdraw");
baseToken.safeTransferFrom(address(this), receiver, availableBalance);
emit Withdraw(address(msg.sender), receiver, availableBalance);
}
}
contract stVLXMinter is NativeMinter {
constructor(address _stakingToken) NativeMinter(_stakingToken) {
}
}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_stakingToken","internalType":"address"}]},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true},{"type":"address","name":"receiver","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Mint","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true},{"type":"address","name":"receiver","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"TransferStakingTokenOwnership","inputs":[{"type":"address","name":"_newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"UpdateDepositFee","inputs":[{"type":"uint256","name":"_depositFee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"caller","internalType":"address","indexed":true},{"type":"address","name":"receiver","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"FEE_DENOMINATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_DEPOSIT_FEE","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"deposit","inputs":[{"type":"address","name":"receiver","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"depositFee","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"address","name":"receiver","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"previewDeposit","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"stakingToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferStakingTokenOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateDepositFee","inputs":[{"type":"uint256","name":"newFee","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"address","name":"receiver","internalType":"address"}]}]
Contract Creation Code
0x608060405260006002553480156200001657600080fd5b50604051620016e9380380620016e983398181016040528101906200003c9190620001e5565b80806200005e62000052620000af60201b60201c565b620000b760201b60201c565b6001808190555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505062000217565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001ad8262000180565b9050919050565b620001bf81620001a0565b8114620001cb57600080fd5b50565b600081519050620001df81620001b4565b92915050565b600060208284031215620001fe57620001fd6200017b565b5b60006200020e84828501620001ce565b91505092915050565b6114c280620002276000396000f3fe6080604052600436106100c25760003560e01c806394bf804d1161007f578063d73792a911610059578063d73792a91461022e578063ef8b30f714610259578063f2fde38b14610296578063f340fa01146102bf576100c2565b806394bf804d146101b1578063c6d87dd5146101da578063d692546014610205576100c2565b8063017def57146100c757806351cff8d9146100f057806367a5279314610119578063715018a61461014457806372f702f31461015b5780638da5cb5b14610186575b600080fd5b3480156100d357600080fd5b506100ee60048036038101906100e99190610dd2565b6102db565b005b3480156100fc57600080fd5b5061011760048036038101906101129190610e5d565b6103dd565b005b34801561012557600080fd5b5061012e610514565b60405161013b9190610e99565b60405180910390f35b34801561015057600080fd5b5061015961051a565b005b34801561016757600080fd5b506101706105a2565b60405161017d9190610f13565b60405180910390f35b34801561019257600080fd5b5061019b6105c8565b6040516101a89190610f3d565b60405180910390f35b3480156101bd57600080fd5b506101d860048036038101906101d39190610f58565b6105f1565b005b3480156101e657600080fd5b506101ef610765565b6040516101fc9190610e99565b60405180910390f35b34801561021157600080fd5b5061022c60048036038101906102279190610e5d565b61076b565b005b34801561023a57600080fd5b506102436108ba565b6040516102509190610e99565b60405180910390f35b34801561026557600080fd5b50610280600480360381019061027b9190610dd2565b6108c0565b60405161028d9190610e99565b60405180910390f35b3480156102a257600080fd5b506102bd60048036038101906102b89190610e5d565b61090f565b005b6102d960048036038101906102d49190610e5d565b610a06565b005b6102e3610ba1565b73ffffffffffffffffffffffffffffffffffffffff166103016105c8565b73ffffffffffffffffffffffffffffffffffffffff1614610357576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034e90610ff5565b60405180910390fd5b6101f481111561039c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039390611061565b60405180910390fd5b806002819055507f721c401ac1df6aa6d76f66c40109ef145b3789fc067202fd5e3194ea0c2a4985816040516103d29190610e99565b60405180910390a150565b6103e5610ba1565b73ffffffffffffffffffffffffffffffffffffffff166104036105c8565b73ffffffffffffffffffffffffffffffffffffffff1614610459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045090610ff5565b60405180910390fd5b6000479050600081116104a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610498906110cd565b60405180910390fd5b6104ab8282610ba9565b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb836040516105089190610e99565b60405180910390a35050565b60025481565b610522610ba1565b73ffffffffffffffffffffffffffffffffffffffff166105406105c8565b73ffffffffffffffffffffffffffffffffffffffff1614610596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058d90610ff5565b60405180910390fd5b6105a06000610bfc565b565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6105f9610ba1565b73ffffffffffffffffffffffffffffffffffffffff166106176105c8565b73ffffffffffffffffffffffffffffffffffffffff161461066d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066490610ff5565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1982846040518363ffffffff1660e01b81526004016106ca9291906110ed565b600060405180830381600087803b1580156106e457600080fd5b505af11580156106f8573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8846040516107599190610e99565b60405180910390a35050565b6101f481565b610773610ba1565b73ffffffffffffffffffffffffffffffffffffffff166107916105c8565b73ffffffffffffffffffffffffffffffffffffffff16146107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de90610ff5565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b826040518263ffffffff1660e01b81526004016108429190610f3d565b600060405180830381600087803b15801561085c57600080fd5b505af1158015610870573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff167f398f34f5549656902b9a0238f99c6dd158ec5e7a6b1513a62348df24a757756e60405160405180910390a250565b61271081565b6000806108ec6127106108de60025486610cc090919063ffffffff16565b610d0290919063ffffffff16565b905060006109038285610d1890919063ffffffff16565b90508092505050919050565b610917610ba1565b73ffffffffffffffffffffffffffffffffffffffff166109356105c8565b73ffffffffffffffffffffffffffffffffffffffff161461098b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098290610ff5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f190611188565b60405180910390fd5b610a0381610bfc565b50565b610a0e610d3f565b60003411610a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a48906111f4565b60405180910390fd5b6000610a5c346108c0565b905060008111610aa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9890611260565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401610afe9291906110ed565b600060405180830381600087803b158015610b1857600080fd5b505af1158015610b2c573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f6234604051610b8d9190610e99565b60405180910390a350610b9e610d8e565b50565b600033905090565b600080600080600085875af1905080610bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bee906112cc565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808303610cd25760009050610cfc565b8183610cde919061131b565b9050818382610ced919061138c565b14610cfb57610cfa6113bd565b5b5b92915050565b60008183610d10919061138c565b905092915050565b600082821115610d2b57610d2a6113bd565b5b8183610d3791906113ec565b905092915050565b600260015403610d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7b9061146c565b60405180910390fd5b6002600181905550565b60018081905550565b600080fd5b6000819050919050565b610daf81610d9c565b8114610dba57600080fd5b50565b600081359050610dcc81610da6565b92915050565b600060208284031215610de857610de7610d97565b5b6000610df684828501610dbd565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610e2a82610dff565b9050919050565b610e3a81610e1f565b8114610e4557600080fd5b50565b600081359050610e5781610e31565b92915050565b600060208284031215610e7357610e72610d97565b5b6000610e8184828501610e48565b91505092915050565b610e9381610d9c565b82525050565b6000602082019050610eae6000830184610e8a565b92915050565b6000819050919050565b6000610ed9610ed4610ecf84610dff565b610eb4565b610dff565b9050919050565b6000610eeb82610ebe565b9050919050565b6000610efd82610ee0565b9050919050565b610f0d81610ef2565b82525050565b6000602082019050610f286000830184610f04565b92915050565b610f3781610e1f565b82525050565b6000602082019050610f526000830184610f2e565b92915050565b60008060408385031215610f6f57610f6e610d97565b5b6000610f7d85828601610dbd565b9250506020610f8e85828601610e48565b9150509250929050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610fdf602083610f98565b9150610fea82610fa9565b602082019050919050565b6000602082019050818103600083015261100e81610fd2565b9050919050565b7f3e4d617846656500000000000000000000000000000000000000000000000000600082015250565b600061104b600783610f98565b915061105682611015565b602082019050919050565b6000602082019050818103600083015261107a8161103e565b9050919050565b7f5a65726f57697468647261770000000000000000000000000000000000000000600082015250565b60006110b7600c83610f98565b91506110c282611081565b602082019050919050565b600060208201905081810360008301526110e6816110aa565b9050919050565b60006040820190506111026000830185610f2e565b61110f6020830184610e8a565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611172602683610f98565b915061117d82611116565b604082019050919050565b600060208201905081810360008301526111a181611165565b9050919050565b7f5a65726f4465706f736974000000000000000000000000000000000000000000600082015250565b60006111de600b83610f98565b91506111e9826111a8565b602082019050919050565b6000602082019050818103600083015261120d816111d1565b9050919050565b7f5a65726f4d696e74416d6f756e74000000000000000000000000000000000000600082015250565b600061124a600e83610f98565b915061125582611214565b602082019050919050565b600060208201905081810360008301526112798161123d565b9050919050565b7f4554485f5452414e534645525f4641494c454400000000000000000000000000600082015250565b60006112b6601383610f98565b91506112c182611280565b602082019050919050565b600060208201905081810360008301526112e5816112a9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061132682610d9c565b915061133183610d9c565b925082820261133f81610d9c565b91508282048414831517611356576113556112ec565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061139782610d9c565b91506113a283610d9c565b9250826113b2576113b161135d565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b60006113f782610d9c565b915061140283610d9c565b925082820390508181111561141a576114196112ec565b5b92915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611456601f83610f98565b915061146182611420565b602082019050919050565b6000602082019050818103600083015261148581611449565b905091905056fea2646970667358221220742f3c1df8124b3464864aa092483a8035cf134d34264598d4d75798be32bb3d64736f6c634300081500330000000000000000000000003557371afed82dd683de278924bd0e1a790a3c49
Deployed ByteCode
0x6080604052600436106100c25760003560e01c806394bf804d1161007f578063d73792a911610059578063d73792a91461022e578063ef8b30f714610259578063f2fde38b14610296578063f340fa01146102bf576100c2565b806394bf804d146101b1578063c6d87dd5146101da578063d692546014610205576100c2565b8063017def57146100c757806351cff8d9146100f057806367a5279314610119578063715018a61461014457806372f702f31461015b5780638da5cb5b14610186575b600080fd5b3480156100d357600080fd5b506100ee60048036038101906100e99190610dd2565b6102db565b005b3480156100fc57600080fd5b5061011760048036038101906101129190610e5d565b6103dd565b005b34801561012557600080fd5b5061012e610514565b60405161013b9190610e99565b60405180910390f35b34801561015057600080fd5b5061015961051a565b005b34801561016757600080fd5b506101706105a2565b60405161017d9190610f13565b60405180910390f35b34801561019257600080fd5b5061019b6105c8565b6040516101a89190610f3d565b60405180910390f35b3480156101bd57600080fd5b506101d860048036038101906101d39190610f58565b6105f1565b005b3480156101e657600080fd5b506101ef610765565b6040516101fc9190610e99565b60405180910390f35b34801561021157600080fd5b5061022c60048036038101906102279190610e5d565b61076b565b005b34801561023a57600080fd5b506102436108ba565b6040516102509190610e99565b60405180910390f35b34801561026557600080fd5b50610280600480360381019061027b9190610dd2565b6108c0565b60405161028d9190610e99565b60405180910390f35b3480156102a257600080fd5b506102bd60048036038101906102b89190610e5d565b61090f565b005b6102d960048036038101906102d49190610e5d565b610a06565b005b6102e3610ba1565b73ffffffffffffffffffffffffffffffffffffffff166103016105c8565b73ffffffffffffffffffffffffffffffffffffffff1614610357576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034e90610ff5565b60405180910390fd5b6101f481111561039c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039390611061565b60405180910390fd5b806002819055507f721c401ac1df6aa6d76f66c40109ef145b3789fc067202fd5e3194ea0c2a4985816040516103d29190610e99565b60405180910390a150565b6103e5610ba1565b73ffffffffffffffffffffffffffffffffffffffff166104036105c8565b73ffffffffffffffffffffffffffffffffffffffff1614610459576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045090610ff5565b60405180910390fd5b6000479050600081116104a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610498906110cd565b60405180910390fd5b6104ab8282610ba9565b8173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb836040516105089190610e99565b60405180910390a35050565b60025481565b610522610ba1565b73ffffffffffffffffffffffffffffffffffffffff166105406105c8565b73ffffffffffffffffffffffffffffffffffffffff1614610596576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058d90610ff5565b60405180910390fd5b6105a06000610bfc565b565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6105f9610ba1565b73ffffffffffffffffffffffffffffffffffffffff166106176105c8565b73ffffffffffffffffffffffffffffffffffffffff161461066d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066490610ff5565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1982846040518363ffffffff1660e01b81526004016106ca9291906110ed565b600060405180830381600087803b1580156106e457600080fd5b505af11580156106f8573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8846040516107599190610e99565b60405180910390a35050565b6101f481565b610773610ba1565b73ffffffffffffffffffffffffffffffffffffffff166107916105c8565b73ffffffffffffffffffffffffffffffffffffffff16146107e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107de90610ff5565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b826040518263ffffffff1660e01b81526004016108429190610f3d565b600060405180830381600087803b15801561085c57600080fd5b505af1158015610870573d6000803e3d6000fd5b505050508073ffffffffffffffffffffffffffffffffffffffff167f398f34f5549656902b9a0238f99c6dd158ec5e7a6b1513a62348df24a757756e60405160405180910390a250565b61271081565b6000806108ec6127106108de60025486610cc090919063ffffffff16565b610d0290919063ffffffff16565b905060006109038285610d1890919063ffffffff16565b90508092505050919050565b610917610ba1565b73ffffffffffffffffffffffffffffffffffffffff166109356105c8565b73ffffffffffffffffffffffffffffffffffffffff161461098b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098290610ff5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f190611188565b60405180910390fd5b610a0381610bfc565b50565b610a0e610d3f565b60003411610a51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a48906111f4565b60405180910390fd5b6000610a5c346108c0565b905060008111610aa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9890611260565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1983836040518363ffffffff1660e01b8152600401610afe9291906110ed565b600060405180830381600087803b158015610b1857600080fd5b505af1158015610b2c573d6000803e3d6000fd5b505050508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f6234604051610b8d9190610e99565b60405180910390a350610b9e610d8e565b50565b600033905090565b600080600080600085875af1905080610bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bee906112cc565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808303610cd25760009050610cfc565b8183610cde919061131b565b9050818382610ced919061138c565b14610cfb57610cfa6113bd565b5b5b92915050565b60008183610d10919061138c565b905092915050565b600082821115610d2b57610d2a6113bd565b5b8183610d3791906113ec565b905092915050565b600260015403610d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7b9061146c565b60405180910390fd5b6002600181905550565b60018081905550565b600080fd5b6000819050919050565b610daf81610d9c565b8114610dba57600080fd5b50565b600081359050610dcc81610da6565b92915050565b600060208284031215610de857610de7610d97565b5b6000610df684828501610dbd565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610e2a82610dff565b9050919050565b610e3a81610e1f565b8114610e4557600080fd5b50565b600081359050610e5781610e31565b92915050565b600060208284031215610e7357610e72610d97565b5b6000610e8184828501610e48565b91505092915050565b610e9381610d9c565b82525050565b6000602082019050610eae6000830184610e8a565b92915050565b6000819050919050565b6000610ed9610ed4610ecf84610dff565b610eb4565b610dff565b9050919050565b6000610eeb82610ebe565b9050919050565b6000610efd82610ee0565b9050919050565b610f0d81610ef2565b82525050565b6000602082019050610f286000830184610f04565b92915050565b610f3781610e1f565b82525050565b6000602082019050610f526000830184610f2e565b92915050565b60008060408385031215610f6f57610f6e610d97565b5b6000610f7d85828601610dbd565b9250506020610f8e85828601610e48565b9150509250929050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610fdf602083610f98565b9150610fea82610fa9565b602082019050919050565b6000602082019050818103600083015261100e81610fd2565b9050919050565b7f3e4d617846656500000000000000000000000000000000000000000000000000600082015250565b600061104b600783610f98565b915061105682611015565b602082019050919050565b6000602082019050818103600083015261107a8161103e565b9050919050565b7f5a65726f57697468647261770000000000000000000000000000000000000000600082015250565b60006110b7600c83610f98565b91506110c282611081565b602082019050919050565b600060208201905081810360008301526110e6816110aa565b9050919050565b60006040820190506111026000830185610f2e565b61110f6020830184610e8a565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611172602683610f98565b915061117d82611116565b604082019050919050565b600060208201905081810360008301526111a181611165565b9050919050565b7f5a65726f4465706f736974000000000000000000000000000000000000000000600082015250565b60006111de600b83610f98565b91506111e9826111a8565b602082019050919050565b6000602082019050818103600083015261120d816111d1565b9050919050565b7f5a65726f4d696e74416d6f756e74000000000000000000000000000000000000600082015250565b600061124a600e83610f98565b915061125582611214565b602082019050919050565b600060208201905081810360008301526112798161123d565b9050919050565b7f4554485f5452414e534645525f4641494c454400000000000000000000000000600082015250565b60006112b6601383610f98565b91506112c182611280565b602082019050919050565b600060208201905081810360008301526112e5816112a9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061132682610d9c565b915061133183610d9c565b925082820261133f81610d9c565b91508282048414831517611356576113556112ec565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061139782610d9c565b91506113a283610d9c565b9250826113b2576113b161135d565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b60006113f782610d9c565b915061140283610d9c565b925082820390508181111561141a576114196112ec565b5b92915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611456601f83610f98565b915061146182611420565b602082019050919050565b6000602082019050818103600083015261148581611449565b905091905056fea2646970667358221220742f3c1df8124b3464864aa092483a8035cf134d34264598d4d75798be32bb3d64736f6c63430008150033