Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 66 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit | 24425393 | 35 days ago | IN | 0.01361069 ETH | 0.0000074 | ||||
| Approve | 24424885 | 35 days ago | IN | 0 ETH | 0.00000491 | ||||
| Deposit | 24424864 | 35 days ago | IN | 0.05444276 ETH | 0.00001136 | ||||
| Approve | 24275522 | 56 days ago | IN | 0 ETH | 0.00000285 | ||||
| Deposit | 24248766 | 60 days ago | IN | 0.01000006 ETH | 0.0000091 | ||||
| Withdraw | 23768257 | 127 days ago | IN | 0 ETH | 0.0001998 | ||||
| Withdraw | 23760759 | 128 days ago | IN | 0 ETH | 0.0002073 | ||||
| Withdraw | 23660947 | 142 days ago | IN | 0 ETH | 0.00001012 | ||||
| Deposit | 23347898 | 186 days ago | IN | 0.00268601 ETH | 0.0000508 | ||||
| Deposit | 23332929 | 188 days ago | IN | 0.00537202 ETH | 0.00010918 | ||||
| Deposit | 23304089 | 192 days ago | IN | 0.00895338 ETH | 0.00002054 | ||||
| Deposit | 23282886 | 195 days ago | IN | 0.001343 ETH | 0.00006771 | ||||
| Deposit | 23282667 | 195 days ago | IN | 0.00089533 ETH | 0.00004051 | ||||
| Deposit | 23282650 | 195 days ago | IN | 0.00089533 ETH | 0.00003756 | ||||
| Deposit | 23174765 | 210 days ago | IN | 0.00026468 ETH | 0.00001671 | ||||
| Deposit | 23174763 | 210 days ago | IN | 0.00061759 ETH | 0.00002198 | ||||
| Withdraw | 23165858 | 211 days ago | IN | 0 ETH | 0.0002236 | ||||
| Deposit | 23153778 | 213 days ago | IN | 0.0035291 ETH | 0.00002183 | ||||
| Deposit | 23116187 | 218 days ago | IN | 0.00061759 ETH | 0.00005148 | ||||
| Deposit | 23089281 | 222 days ago | IN | 0.00088227 ETH | 0.00009166 | ||||
| Deposit | 23087439 | 222 days ago | IN | 0.00105873 ETH | 0.00001805 | ||||
| Deposit | 23038738 | 229 days ago | IN | 0.00233932 ETH | 0.00030088 | ||||
| Deposit | 23033669 | 230 days ago | IN | 0.00545842 ETH | 0.00023648 | ||||
| Deposit | 23019168 | 232 days ago | IN | 0.00116966 ETH | 0.00008273 | ||||
| Approve | 23010971 | 233 days ago | IN | 0 ETH | 0.00003421 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 24624442 | 7 days ago | 0.00079096 ETH | ||||
| Transfer | 24624442 | 7 days ago | 0.00059289 ETH | ||||
| Transfer | 24624399 | 7 days ago | 0.00096532 ETH | ||||
| Transfer | 24624399 | 7 days ago | 0.00072359 ETH | ||||
| Transfer | 24624392 | 7 days ago | 0.00093159 ETH | ||||
| Transfer | 24624392 | 7 days ago | 0.00069831 ETH | ||||
| Transfer | 24624383 | 7 days ago | 0.00090767 ETH | ||||
| Transfer | 24624383 | 7 days ago | 0.00068038 ETH | ||||
| Transfer | 24624377 | 7 days ago | 0.00080144 ETH | ||||
| Transfer | 24624377 | 7 days ago | 0.00060075 ETH | ||||
| Transfer | 24624371 | 7 days ago | 0.00103886 ETH | ||||
| Transfer | 24624371 | 7 days ago | 0.00077871 ETH | ||||
| Transfer | 24624365 | 7 days ago | 0.0010416 ETH | ||||
| Transfer | 24624365 | 7 days ago | 0.00078077 ETH | ||||
| Transfer | 24624358 | 7 days ago | 0.00104436 ETH | ||||
| Transfer | 24624358 | 7 days ago | 0.00078284 ETH | ||||
| Transfer | 24624351 | 7 days ago | 0.00097887 ETH | ||||
| Transfer | 24624351 | 7 days ago | 0.00073374 ETH | ||||
| Transfer | 24624345 | 7 days ago | 0.00083727 ETH | ||||
| Transfer | 24624345 | 7 days ago | 0.00062761 ETH | ||||
| Transfer | 24624337 | 7 days ago | 0.00090591 ETH | ||||
| Transfer | 24624337 | 7 days ago | 0.00067906 ETH | ||||
| Transfer | 24624329 | 7 days ago | 0.00084639 ETH | ||||
| Transfer | 24624329 | 7 days ago | 0.00063444 ETH | ||||
| Transfer | 24624323 | 7 days ago | 0.00093251 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
WrappedQTF
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
interface IQDT is IERC20 {
function sellTokens(uint256 amount) external;
function getPrice() external view returns (uint256);
}
contract WrappedQTF is ERC20, ReentrancyGuard {
using SafeERC20 for IERC20;
IERC20 public immutable qtf;
IQDT public immutable qdt;
address private constant QTF = 0x0FCbC31c503b4A9eD90E87f8Ff46C318a4a14260;
address private constant QDT = 0xd18475521245a127a933a4fCAF99E8c45a416F7e;
event Deposit(address indexed user, uint256 amount, uint256 ethAmount);
event Withdraw(address indexed user, uint256 amount, uint256 ethAmount);
constructor() ERC20("wrappedQTF", "wQTF") {
qtf = IERC20(QTF);
qdt = IQDT(QDT);
}
function decimals() public pure override returns (uint8) {
return 8;
}
function balance() public view returns (uint256) {
return qtf.balanceOf(address(this));
}
function extraValue() public view returns (uint256) {
return address(this).balance + qdt.balanceOf(address(this)) * qdt.getPrice();
}
function extraValuePerToken() public view returns (uint256) {
uint256 supply = totalSupply();
return supply == 0 ? 0 : extraValue() / supply;
}
function deposit(uint256 _amount) public payable nonReentrant {
require(_amount > 0, "Amount cannot be 0");
uint256 ethRequired = 0;
uint256 supply = totalSupply();
// Calculate extraValue WITHOUT the incoming msg.value
uint256 currentEthBalance = address(this).balance - msg.value;
uint256 currentExtraValue = currentEthBalance + (qdt.balanceOf(address(this)) * qdt.getPrice());
if (supply > 0) {
ethRequired = (currentExtraValue * _amount) / supply;
require(msg.value >= ethRequired, "Insufficient ETH for extra value");
// Refund excess ETH
if (msg.value > ethRequired) {
(bool success, ) = msg.sender.call{value: msg.value - ethRequired}("");
require(success, "ETH refund failed");
}
} else {
require(msg.value == 0, "First deposit should not send ETH");
}
qtf.safeTransferFrom(msg.sender, address(this), _amount);
_mint(msg.sender, _amount);
emit Deposit(msg.sender, _amount, ethRequired);
}
function withdraw(uint256 _amount) public nonReentrant {
require(_amount > 0, "Amount cannot be 0");
require(balanceOf(msg.sender) >= _amount, "Insufficient balance");
uint256 supply = totalSupply();
uint256 ethAmount = (extraValue() * _amount) / supply;
uint256 qdtAmount = (qdt.balanceOf(address(this)) * _amount) / supply;
// State changes first
_burn(msg.sender, _amount);
qtf.safeTransfer(msg.sender, _amount);
// External interactions last
if (qdtAmount > 0) {
qdt.sellTokens(qdtAmount);
}
(bool success, ) = msg.sender.call{value: ethAmount}("");
require(success, "ETH transfer failed");
emit Withdraw(msg.sender, _amount, ethAmount);
}
receive() external payable {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"extraValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extraValuePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"qdt","outputs":[{"internalType":"contract IQDT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"qtf","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60c060405234801561000f575f80fd5b506040518060400160405280600a81526020017f77726170706564515446000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f7751544600000000000000000000000000000000000000000000000000000000815250816003908161008b9190610375565b50806004908161009b9190610375565b5050506001600581905550730fcbc31c503b4a9ed90e87f8ff46c318a4a1426073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505073d18475521245a127a933a4fcaf99e8c45a416f7e73ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1681525050610444565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806101b657607f821691505b6020821081036101c9576101c8610172565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261022b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826101f0565b61023586836101f0565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61027961027461026f8461024d565b610256565b61024d565b9050919050565b5f819050919050565b6102928361025f565b6102a661029e82610280565b8484546101fc565b825550505050565b5f90565b6102ba6102ae565b6102c5818484610289565b505050565b5b818110156102e8576102dd5f826102b2565b6001810190506102cb565b5050565b601f82111561032d576102fe816101cf565b610307846101e1565b81016020851015610316578190505b61032a610322856101e1565b8301826102ca565b50505b505050565b5f82821c905092915050565b5f61034d5f1984600802610332565b1980831691505092915050565b5f610365838361033e565b9150826002028217905092915050565b61037e8261013b565b67ffffffffffffffff81111561039757610396610145565b5b6103a1825461019f565b6103ac8282856102ec565b5f60209050601f8311600181146103dd575f84156103cb578287015190505b6103d5858261035a565b86555061043c565b601f1984166103eb866101cf565b5f5b82811015610412578489015182556001820191506020850194506020810190506103ed565b8683101561042f578489015161042b601f89168261033e565b8355505b6001600288020188555050505b505050505050565b60805160a0516124316104a45f395f81816104c3015281816105e2015281816106ed015281816108b70152818161094401528181610bf10152610c7e01525f81816103ed0152818161069f01528181610aee0152610e9c01526124315ff3fe6080604052600436106100f6575f3560e01c8063437f463811610089578063a9059cbb11610058578063a9059cbb1461032d578063b69ef8a814610369578063b6b55f2514610393578063dd62ed3e146103af576100fd565b8063437f4638146102735780635276f9871461029d57806370a08231146102c757806395d89b4114610303576100fd565b806318160ddd116100c557806318160ddd146101bb57806323b872dd146101e55780632e1a7d4d14610221578063313ce56714610249576100fd565b80630131fb1e1461010157806306fdde031461012b578063095ea7b3146101555780630cef120514610191576100fd565b366100fd57005b5f80fd5b34801561010c575f80fd5b506101156103eb565b6040516101229190611a65565b60405180910390f35b348015610136575f80fd5b5061013f61040f565b60405161014c9190611aee565b60405180910390f35b348015610160575f80fd5b5061017b60048036038101906101769190611b80565b61049f565b6040516101889190611bd8565b60405180910390f35b34801561019c575f80fd5b506101a56104c1565b6040516101b29190611c11565b60405180910390f35b3480156101c6575f80fd5b506101cf6104e5565b6040516101dc9190611c39565b60405180910390f35b3480156101f0575f80fd5b5061020b60048036038101906102069190611c52565b6104ee565b6040516102189190611bd8565b60405180910390f35b34801561022c575f80fd5b5061024760048036038101906102429190611ca2565b61051c565b005b348015610254575f80fd5b5061025d610879565b60405161026a9190611ce8565b60405180910390f35b34801561027e575f80fd5b50610287610881565b6040516102949190611c39565b60405180910390f35b3480156102a8575f80fd5b506102b16108b4565b6040516102be9190611c39565b60405180910390f35b3480156102d2575f80fd5b506102ed60048036038101906102e89190611d01565b6109f4565b6040516102fa9190611c39565b60405180910390f35b34801561030e575f80fd5b50610317610a39565b6040516103249190611aee565b60405180910390f35b348015610338575f80fd5b50610353600480360381019061034e9190611b80565b610ac9565b6040516103609190611bd8565b60405180910390f35b348015610374575f80fd5b5061037d610aeb565b60405161038a9190611c39565b60405180910390f35b6103ad60048036038101906103a89190611ca2565b610b89565b005b3480156103ba575f80fd5b506103d560048036038101906103d09190611d2c565b610f4a565b6040516103e29190611c39565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b60606003805461041e90611d97565b80601f016020809104026020016040519081016040528092919081815260200182805461044a90611d97565b80156104955780601f1061046c57610100808354040283529160200191610495565b820191905f5260205f20905b81548152906001019060200180831161047857829003601f168201915b5050505050905090565b5f806104a9610fcc565b90506104b6818585610fd3565b600191505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f600254905090565b5f806104f8610fcc565b9050610505858285610fe5565b610510858585611077565b60019150509392505050565b610524611167565b5f8111610566576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055d90611e11565b60405180910390fd5b80610570336109f4565b10156105b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a890611e79565b60405180910390fd5b5f6105ba6104e5565b90505f81836105c76108b4565b6105d19190611ec4565b6105db9190611f32565b90505f82847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106399190611f71565b602060405180830381865afa158015610654573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106789190611f9e565b6106829190611ec4565b61068c9190611f32565b905061069833856111b6565b6106e333857f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166112359092919063ffffffff16565b5f811115610772577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636c11bcd3826040518263ffffffff1660e01b81526004016107449190611c39565b5f604051808303815f87803b15801561075b575f80fd5b505af115801561076d573d5f803e3d5ffd5b505050505b5f3373ffffffffffffffffffffffffffffffffffffffff168360405161079790611ff6565b5f6040518083038185875af1925050503d805f81146107d1576040519150601f19603f3d011682016040523d82523d5f602084013e6107d6565b606091505b505090508061081a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081190612054565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688685604051610862929190612072565b60405180910390a2505050506108766112b4565b50565b5f6008905090565b5f8061088b6104e5565b90505f81146108ac578061089d6108b4565b6108a79190611f32565b6108ae565b5f5b91505090565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166398d5fdca6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561091e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109429190611f9e565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161099b9190611f71565b602060405180830381865afa1580156109b6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109da9190611f9e565b6109e49190611ec4565b476109ef9190612099565b905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b606060048054610a4890611d97565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7490611d97565b8015610abf5780601f10610a9657610100808354040283529160200191610abf565b820191905f5260205f20905b815481529060010190602001808311610aa257829003601f168201915b5050505050905090565b5f80610ad3610fcc565b9050610ae0818585611077565b600191505092915050565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b459190611f71565b602060405180830381865afa158015610b60573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b849190611f9e565b905090565b610b91611167565b5f8111610bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bca90611e11565b60405180910390fd5b5f80610bdd6104e5565b90505f3447610bec91906120cc565b90505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166398d5fdca6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c58573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c7c9190611f9e565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610cd59190611f71565b602060405180830381865afa158015610cf0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d149190611f9e565b610d1e9190611ec4565b82610d299190612099565b90505f831115610e5157828582610d409190611ec4565b610d4a9190611f32565b935083341015610d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8690612149565b60405180910390fd5b83341115610e4c575f3373ffffffffffffffffffffffffffffffffffffffff168534610dbb91906120cc565b604051610dc790611ff6565b5f6040518083038185875af1925050503d805f8114610e01576040519150601f19603f3d011682016040523d82523d5f602084013e610e06565b606091505b5050905080610e4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e41906121b1565b60405180910390fd5b505b610e94565b5f3414610e93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8a9061223f565b60405180910390fd5b5b610ee13330877f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166112be909392919063ffffffff16565b610eeb3386611340565b3373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158686604051610f33929190612072565b60405180910390a250505050610f476112b4565b50565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f33905090565b610fe083838360016113bf565b505050565b5f610ff08484610f4a565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146110715781811015611062578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016110599392919061225d565b60405180910390fd5b61107084848484035f6113bf565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110e7575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016110de9190611f71565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611157575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161114e9190611f71565b60405180910390fd5b61116283838361158e565b505050565b6002600554036111ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a3906122dc565b60405180910390fd5b6002600581905550565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611226575f6040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040161121d9190611f71565b60405180910390fd5b611231825f8361158e565b5050565b6112af838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016112689291906122fa565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117a7565b505050565b6001600581905550565b61133a848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016112f393929190612321565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117a7565b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113b0575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016113a79190611f71565b60405180910390fd5b6113bb5f838361158e565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361142f575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016114269190611f71565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361149f575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016114969190611f71565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015611588578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161157f9190611c39565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115de578060025f8282546115d29190612099565b925050819055506116ac565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611667578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161165e9392919061225d565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116f3578060025f828254039250508190555061173d565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161179a9190611c39565b60405180910390a3505050565b5f6117d1828473ffffffffffffffffffffffffffffffffffffffff1661183c90919063ffffffff16565b90505f8151141580156117f55750808060200190518101906117f39190612380565b155b1561183757826040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161182e9190611f71565b60405180910390fd5b505050565b606061184983835f611851565b905092915050565b60608147101561189857306040517fcd78605900000000000000000000000000000000000000000000000000000000815260040161188f9190611f71565b60405180910390fd5b5f808573ffffffffffffffffffffffffffffffffffffffff1684866040516118c091906123e5565b5f6040518083038185875af1925050503d805f81146118fa576040519150601f19603f3d011682016040523d82523d5f602084013e6118ff565b606091505b509150915061190f86838361191a565b925050509392505050565b60608261192f5761192a826119a7565b61199f565b5f825114801561195557505f8473ffffffffffffffffffffffffffffffffffffffff163b145b1561199757836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161198e9190611f71565b60405180910390fd5b8190506119a0565b5b9392505050565b5f815111156119b95780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f611a2d611a28611a23846119eb565b611a0a565b6119eb565b9050919050565b5f611a3e82611a13565b9050919050565b5f611a4f82611a34565b9050919050565b611a5f81611a45565b82525050565b5f602082019050611a785f830184611a56565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611ac082611a7e565b611aca8185611a88565b9350611ada818560208601611a98565b611ae381611aa6565b840191505092915050565b5f6020820190508181035f830152611b068184611ab6565b905092915050565b5f80fd5b5f611b1c826119eb565b9050919050565b611b2c81611b12565b8114611b36575f80fd5b50565b5f81359050611b4781611b23565b92915050565b5f819050919050565b611b5f81611b4d565b8114611b69575f80fd5b50565b5f81359050611b7a81611b56565b92915050565b5f8060408385031215611b9657611b95611b0e565b5b5f611ba385828601611b39565b9250506020611bb485828601611b6c565b9150509250929050565b5f8115159050919050565b611bd281611bbe565b82525050565b5f602082019050611beb5f830184611bc9565b92915050565b5f611bfb82611a34565b9050919050565b611c0b81611bf1565b82525050565b5f602082019050611c245f830184611c02565b92915050565b611c3381611b4d565b82525050565b5f602082019050611c4c5f830184611c2a565b92915050565b5f805f60608486031215611c6957611c68611b0e565b5b5f611c7686828701611b39565b9350506020611c8786828701611b39565b9250506040611c9886828701611b6c565b9150509250925092565b5f60208284031215611cb757611cb6611b0e565b5b5f611cc484828501611b6c565b91505092915050565b5f60ff82169050919050565b611ce281611ccd565b82525050565b5f602082019050611cfb5f830184611cd9565b92915050565b5f60208284031215611d1657611d15611b0e565b5b5f611d2384828501611b39565b91505092915050565b5f8060408385031215611d4257611d41611b0e565b5b5f611d4f85828601611b39565b9250506020611d6085828601611b39565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680611dae57607f821691505b602082108103611dc157611dc0611d6a565b5b50919050565b7f416d6f756e742063616e6e6f74206265203000000000000000000000000000005f82015250565b5f611dfb601283611a88565b9150611e0682611dc7565b602082019050919050565b5f6020820190508181035f830152611e2881611def565b9050919050565b7f496e73756666696369656e742062616c616e63650000000000000000000000005f82015250565b5f611e63601483611a88565b9150611e6e82611e2f565b602082019050919050565b5f6020820190508181035f830152611e9081611e57565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611ece82611b4d565b9150611ed983611b4d565b9250828202611ee781611b4d565b91508282048414831517611efe57611efd611e97565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611f3c82611b4d565b9150611f4783611b4d565b925082611f5757611f56611f05565b5b828204905092915050565b611f6b81611b12565b82525050565b5f602082019050611f845f830184611f62565b92915050565b5f81519050611f9881611b56565b92915050565b5f60208284031215611fb357611fb2611b0e565b5b5f611fc084828501611f8a565b91505092915050565b5f81905092915050565b50565b5f611fe15f83611fc9565b9150611fec82611fd3565b5f82019050919050565b5f61200082611fd6565b9150819050919050565b7f455448207472616e73666572206661696c6564000000000000000000000000005f82015250565b5f61203e601383611a88565b91506120498261200a565b602082019050919050565b5f6020820190508181035f83015261206b81612032565b9050919050565b5f6040820190506120855f830185611c2a565b6120926020830184611c2a565b9392505050565b5f6120a382611b4d565b91506120ae83611b4d565b92508282019050808211156120c6576120c5611e97565b5b92915050565b5f6120d682611b4d565b91506120e183611b4d565b92508282039050818111156120f9576120f8611e97565b5b92915050565b7f496e73756666696369656e742045544820666f722065787472612076616c75655f82015250565b5f612133602083611a88565b915061213e826120ff565b602082019050919050565b5f6020820190508181035f83015261216081612127565b9050919050565b7f45544820726566756e64206661696c65640000000000000000000000000000005f82015250565b5f61219b601183611a88565b91506121a682612167565b602082019050919050565b5f6020820190508181035f8301526121c88161218f565b9050919050565b7f4669727374206465706f7369742073686f756c64206e6f742073656e642045545f8201527f4800000000000000000000000000000000000000000000000000000000000000602082015250565b5f612229602183611a88565b9150612234826121cf565b604082019050919050565b5f6020820190508181035f8301526122568161221d565b9050919050565b5f6060820190506122705f830186611f62565b61227d6020830185611c2a565b61228a6040830184611c2a565b949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f6122c6601f83611a88565b91506122d182612292565b602082019050919050565b5f6020820190508181035f8301526122f3816122ba565b9050919050565b5f60408201905061230d5f830185611f62565b61231a6020830184611c2a565b9392505050565b5f6060820190506123345f830186611f62565b6123416020830185611f62565b61234e6040830184611c2a565b949350505050565b61235f81611bbe565b8114612369575f80fd5b50565b5f8151905061237a81612356565b92915050565b5f6020828403121561239557612394611b0e565b5b5f6123a28482850161236c565b91505092915050565b5f81519050919050565b5f6123bf826123ab565b6123c98185611fc9565b93506123d9818560208601611a98565b80840191505092915050565b5f6123f082846123b5565b91508190509291505056fea264697066735822122014fea3496241c730cab1cdd5f547f8be6a02ac17b88c1b6a022ae9da59236a0064736f6c634300081a0033
Deployed Bytecode
0x6080604052600436106100f6575f3560e01c8063437f463811610089578063a9059cbb11610058578063a9059cbb1461032d578063b69ef8a814610369578063b6b55f2514610393578063dd62ed3e146103af576100fd565b8063437f4638146102735780635276f9871461029d57806370a08231146102c757806395d89b4114610303576100fd565b806318160ddd116100c557806318160ddd146101bb57806323b872dd146101e55780632e1a7d4d14610221578063313ce56714610249576100fd565b80630131fb1e1461010157806306fdde031461012b578063095ea7b3146101555780630cef120514610191576100fd565b366100fd57005b5f80fd5b34801561010c575f80fd5b506101156103eb565b6040516101229190611a65565b60405180910390f35b348015610136575f80fd5b5061013f61040f565b60405161014c9190611aee565b60405180910390f35b348015610160575f80fd5b5061017b60048036038101906101769190611b80565b61049f565b6040516101889190611bd8565b60405180910390f35b34801561019c575f80fd5b506101a56104c1565b6040516101b29190611c11565b60405180910390f35b3480156101c6575f80fd5b506101cf6104e5565b6040516101dc9190611c39565b60405180910390f35b3480156101f0575f80fd5b5061020b60048036038101906102069190611c52565b6104ee565b6040516102189190611bd8565b60405180910390f35b34801561022c575f80fd5b5061024760048036038101906102429190611ca2565b61051c565b005b348015610254575f80fd5b5061025d610879565b60405161026a9190611ce8565b60405180910390f35b34801561027e575f80fd5b50610287610881565b6040516102949190611c39565b60405180910390f35b3480156102a8575f80fd5b506102b16108b4565b6040516102be9190611c39565b60405180910390f35b3480156102d2575f80fd5b506102ed60048036038101906102e89190611d01565b6109f4565b6040516102fa9190611c39565b60405180910390f35b34801561030e575f80fd5b50610317610a39565b6040516103249190611aee565b60405180910390f35b348015610338575f80fd5b50610353600480360381019061034e9190611b80565b610ac9565b6040516103609190611bd8565b60405180910390f35b348015610374575f80fd5b5061037d610aeb565b60405161038a9190611c39565b60405180910390f35b6103ad60048036038101906103a89190611ca2565b610b89565b005b3480156103ba575f80fd5b506103d560048036038101906103d09190611d2c565b610f4a565b6040516103e29190611c39565b60405180910390f35b7f0000000000000000000000000fcbc31c503b4a9ed90e87f8ff46c318a4a1426081565b60606003805461041e90611d97565b80601f016020809104026020016040519081016040528092919081815260200182805461044a90611d97565b80156104955780601f1061046c57610100808354040283529160200191610495565b820191905f5260205f20905b81548152906001019060200180831161047857829003601f168201915b5050505050905090565b5f806104a9610fcc565b90506104b6818585610fd3565b600191505092915050565b7f000000000000000000000000d18475521245a127a933a4fcaf99e8c45a416f7e81565b5f600254905090565b5f806104f8610fcc565b9050610505858285610fe5565b610510858585611077565b60019150509392505050565b610524611167565b5f8111610566576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055d90611e11565b60405180910390fd5b80610570336109f4565b10156105b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105a890611e79565b60405180910390fd5b5f6105ba6104e5565b90505f81836105c76108b4565b6105d19190611ec4565b6105db9190611f32565b90505f82847f000000000000000000000000d18475521245a127a933a4fcaf99e8c45a416f7e73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106399190611f71565b602060405180830381865afa158015610654573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106789190611f9e565b6106829190611ec4565b61068c9190611f32565b905061069833856111b6565b6106e333857f0000000000000000000000000fcbc31c503b4a9ed90e87f8ff46c318a4a1426073ffffffffffffffffffffffffffffffffffffffff166112359092919063ffffffff16565b5f811115610772577f000000000000000000000000d18475521245a127a933a4fcaf99e8c45a416f7e73ffffffffffffffffffffffffffffffffffffffff16636c11bcd3826040518263ffffffff1660e01b81526004016107449190611c39565b5f604051808303815f87803b15801561075b575f80fd5b505af115801561076d573d5f803e3d5ffd5b505050505b5f3373ffffffffffffffffffffffffffffffffffffffff168360405161079790611ff6565b5f6040518083038185875af1925050503d805f81146107d1576040519150601f19603f3d011682016040523d82523d5f602084013e6107d6565b606091505b505090508061081a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081190612054565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688685604051610862929190612072565b60405180910390a2505050506108766112b4565b50565b5f6008905090565b5f8061088b6104e5565b90505f81146108ac578061089d6108b4565b6108a79190611f32565b6108ae565b5f5b91505090565b5f7f000000000000000000000000d18475521245a127a933a4fcaf99e8c45a416f7e73ffffffffffffffffffffffffffffffffffffffff166398d5fdca6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561091e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109429190611f9e565b7f000000000000000000000000d18475521245a127a933a4fcaf99e8c45a416f7e73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161099b9190611f71565b602060405180830381865afa1580156109b6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109da9190611f9e565b6109e49190611ec4565b476109ef9190612099565b905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b606060048054610a4890611d97565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7490611d97565b8015610abf5780601f10610a9657610100808354040283529160200191610abf565b820191905f5260205f20905b815481529060010190602001808311610aa257829003601f168201915b5050505050905090565b5f80610ad3610fcc565b9050610ae0818585611077565b600191505092915050565b5f7f0000000000000000000000000fcbc31c503b4a9ed90e87f8ff46c318a4a1426073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b459190611f71565b602060405180830381865afa158015610b60573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b849190611f9e565b905090565b610b91611167565b5f8111610bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bca90611e11565b60405180910390fd5b5f80610bdd6104e5565b90505f3447610bec91906120cc565b90505f7f000000000000000000000000d18475521245a127a933a4fcaf99e8c45a416f7e73ffffffffffffffffffffffffffffffffffffffff166398d5fdca6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c58573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c7c9190611f9e565b7f000000000000000000000000d18475521245a127a933a4fcaf99e8c45a416f7e73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610cd59190611f71565b602060405180830381865afa158015610cf0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d149190611f9e565b610d1e9190611ec4565b82610d299190612099565b90505f831115610e5157828582610d409190611ec4565b610d4a9190611f32565b935083341015610d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8690612149565b60405180910390fd5b83341115610e4c575f3373ffffffffffffffffffffffffffffffffffffffff168534610dbb91906120cc565b604051610dc790611ff6565b5f6040518083038185875af1925050503d805f8114610e01576040519150601f19603f3d011682016040523d82523d5f602084013e610e06565b606091505b5050905080610e4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e41906121b1565b60405180910390fd5b505b610e94565b5f3414610e93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8a9061223f565b60405180910390fd5b5b610ee13330877f0000000000000000000000000fcbc31c503b4a9ed90e87f8ff46c318a4a1426073ffffffffffffffffffffffffffffffffffffffff166112be909392919063ffffffff16565b610eeb3386611340565b3373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158686604051610f33929190612072565b60405180910390a250505050610f476112b4565b50565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b5f33905090565b610fe083838360016113bf565b505050565b5f610ff08484610f4a565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146110715781811015611062578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016110599392919061225d565b60405180910390fd5b61107084848484035f6113bf565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110e7575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016110de9190611f71565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611157575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161114e9190611f71565b60405180910390fd5b61116283838361158e565b505050565b6002600554036111ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a3906122dc565b60405180910390fd5b6002600581905550565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611226575f6040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260040161121d9190611f71565b60405180910390fd5b611231825f8361158e565b5050565b6112af838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016112689291906122fa565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117a7565b505050565b6001600581905550565b61133a848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016112f393929190612321565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117a7565b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113b0575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016113a79190611f71565b60405180910390fd5b6113bb5f838361158e565b5050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361142f575f6040517fe602df050000000000000000000000000000000000000000000000000000000081526004016114269190611f71565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361149f575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016114969190611f71565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015611588578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161157f9190611c39565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036115de578060025f8282546115d29190612099565b925050819055506116ac565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611667578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161165e9392919061225d565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116f3578060025f828254039250508190555061173d565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161179a9190611c39565b60405180910390a3505050565b5f6117d1828473ffffffffffffffffffffffffffffffffffffffff1661183c90919063ffffffff16565b90505f8151141580156117f55750808060200190518101906117f39190612380565b155b1561183757826040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161182e9190611f71565b60405180910390fd5b505050565b606061184983835f611851565b905092915050565b60608147101561189857306040517fcd78605900000000000000000000000000000000000000000000000000000000815260040161188f9190611f71565b60405180910390fd5b5f808573ffffffffffffffffffffffffffffffffffffffff1684866040516118c091906123e5565b5f6040518083038185875af1925050503d805f81146118fa576040519150601f19603f3d011682016040523d82523d5f602084013e6118ff565b606091505b509150915061190f86838361191a565b925050509392505050565b60608261192f5761192a826119a7565b61199f565b5f825114801561195557505f8473ffffffffffffffffffffffffffffffffffffffff163b145b1561199757836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161198e9190611f71565b60405180910390fd5b8190506119a0565b5b9392505050565b5f815111156119b95780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f611a2d611a28611a23846119eb565b611a0a565b6119eb565b9050919050565b5f611a3e82611a13565b9050919050565b5f611a4f82611a34565b9050919050565b611a5f81611a45565b82525050565b5f602082019050611a785f830184611a56565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611ac082611a7e565b611aca8185611a88565b9350611ada818560208601611a98565b611ae381611aa6565b840191505092915050565b5f6020820190508181035f830152611b068184611ab6565b905092915050565b5f80fd5b5f611b1c826119eb565b9050919050565b611b2c81611b12565b8114611b36575f80fd5b50565b5f81359050611b4781611b23565b92915050565b5f819050919050565b611b5f81611b4d565b8114611b69575f80fd5b50565b5f81359050611b7a81611b56565b92915050565b5f8060408385031215611b9657611b95611b0e565b5b5f611ba385828601611b39565b9250506020611bb485828601611b6c565b9150509250929050565b5f8115159050919050565b611bd281611bbe565b82525050565b5f602082019050611beb5f830184611bc9565b92915050565b5f611bfb82611a34565b9050919050565b611c0b81611bf1565b82525050565b5f602082019050611c245f830184611c02565b92915050565b611c3381611b4d565b82525050565b5f602082019050611c4c5f830184611c2a565b92915050565b5f805f60608486031215611c6957611c68611b0e565b5b5f611c7686828701611b39565b9350506020611c8786828701611b39565b9250506040611c9886828701611b6c565b9150509250925092565b5f60208284031215611cb757611cb6611b0e565b5b5f611cc484828501611b6c565b91505092915050565b5f60ff82169050919050565b611ce281611ccd565b82525050565b5f602082019050611cfb5f830184611cd9565b92915050565b5f60208284031215611d1657611d15611b0e565b5b5f611d2384828501611b39565b91505092915050565b5f8060408385031215611d4257611d41611b0e565b5b5f611d4f85828601611b39565b9250506020611d6085828601611b39565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680611dae57607f821691505b602082108103611dc157611dc0611d6a565b5b50919050565b7f416d6f756e742063616e6e6f74206265203000000000000000000000000000005f82015250565b5f611dfb601283611a88565b9150611e0682611dc7565b602082019050919050565b5f6020820190508181035f830152611e2881611def565b9050919050565b7f496e73756666696369656e742062616c616e63650000000000000000000000005f82015250565b5f611e63601483611a88565b9150611e6e82611e2f565b602082019050919050565b5f6020820190508181035f830152611e9081611e57565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611ece82611b4d565b9150611ed983611b4d565b9250828202611ee781611b4d565b91508282048414831517611efe57611efd611e97565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611f3c82611b4d565b9150611f4783611b4d565b925082611f5757611f56611f05565b5b828204905092915050565b611f6b81611b12565b82525050565b5f602082019050611f845f830184611f62565b92915050565b5f81519050611f9881611b56565b92915050565b5f60208284031215611fb357611fb2611b0e565b5b5f611fc084828501611f8a565b91505092915050565b5f81905092915050565b50565b5f611fe15f83611fc9565b9150611fec82611fd3565b5f82019050919050565b5f61200082611fd6565b9150819050919050565b7f455448207472616e73666572206661696c6564000000000000000000000000005f82015250565b5f61203e601383611a88565b91506120498261200a565b602082019050919050565b5f6020820190508181035f83015261206b81612032565b9050919050565b5f6040820190506120855f830185611c2a565b6120926020830184611c2a565b9392505050565b5f6120a382611b4d565b91506120ae83611b4d565b92508282019050808211156120c6576120c5611e97565b5b92915050565b5f6120d682611b4d565b91506120e183611b4d565b92508282039050818111156120f9576120f8611e97565b5b92915050565b7f496e73756666696369656e742045544820666f722065787472612076616c75655f82015250565b5f612133602083611a88565b915061213e826120ff565b602082019050919050565b5f6020820190508181035f83015261216081612127565b9050919050565b7f45544820726566756e64206661696c65640000000000000000000000000000005f82015250565b5f61219b601183611a88565b91506121a682612167565b602082019050919050565b5f6020820190508181035f8301526121c88161218f565b9050919050565b7f4669727374206465706f7369742073686f756c64206e6f742073656e642045545f8201527f4800000000000000000000000000000000000000000000000000000000000000602082015250565b5f612229602183611a88565b9150612234826121cf565b604082019050919050565b5f6020820190508181035f8301526122568161221d565b9050919050565b5f6060820190506122705f830186611f62565b61227d6020830185611c2a565b61228a6040830184611c2a565b949350505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f6122c6601f83611a88565b91506122d182612292565b602082019050919050565b5f6020820190508181035f8301526122f3816122ba565b9050919050565b5f60408201905061230d5f830185611f62565b61231a6020830184611c2a565b9392505050565b5f6060820190506123345f830186611f62565b6123416020830185611f62565b61234e6040830184611c2a565b949350505050565b61235f81611bbe565b8114612369575f80fd5b50565b5f8151905061237a81612356565b92915050565b5f6020828403121561239557612394611b0e565b5b5f6123a28482850161236c565b91505092915050565b5f81519050919050565b5f6123bf826123ab565b6123c98185611fc9565b93506123d9818560208601611a98565b80840191505092915050565b5f6123f082846123b5565b91508190509291505056fea264697066735822122014fea3496241c730cab1cdd5f547f8be6a02ac17b88c1b6a022ae9da59236a0064736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.