Source Code
Latest 25 from a total of 29 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Create Vault | 24722900 | 150 days ago | IN | 0 FRAX | 0.0000181 | ||||
| Create Vault | 24710500 | 151 days ago | IN | 0 FRAX | 0.00011504 | ||||
| Create Vault | 24446949 | 157 days ago | IN | 0 FRAX | 0.00022227 | ||||
| Create Vault | 24431082 | 157 days ago | IN | 0 FRAX | 0.00001339 | ||||
| Create Vault | 24339312 | 159 days ago | IN | 0 FRAX | 0.0000435 | ||||
| Create Vault | 23609331 | 176 days ago | IN | 0 FRAX | 0.0000232 | ||||
| Create Vault | 23572778 | 177 days ago | IN | 0 FRAX | 0.00023287 | ||||
| Create Vault | 23333366 | 183 days ago | IN | 0 FRAX | 0.00003073 | ||||
| Create Vault | 23333165 | 183 days ago | IN | 0 FRAX | 0.00003509 | ||||
| Create Vault | 23148436 | 187 days ago | IN | 0 FRAX | 0.00032325 | ||||
| Approve | 22932996 | 192 days ago | IN | 0 FRAX | 0.00071139 | ||||
| Transfer | 22932417 | 192 days ago | IN | 0 FRAX | 0.00050433 | ||||
| Create Vault | 22563365 | 200 days ago | IN | 0 FRAX | 0.00002105 | ||||
| Create Vault | 22103559 | 211 days ago | IN | 0 FRAX | 0.00007387 | ||||
| Create Vault | 22074292 | 212 days ago | IN | 0 FRAX | 0.00027296 | ||||
| Whitelist Protoc... | 22073523 | 212 days ago | IN | 0 FRAX | 0.00021969 | ||||
| Whitelist Protoc... | 22073519 | 212 days ago | IN | 0 FRAX | 0.00021983 | ||||
| Whitelist Protoc... | 22073514 | 212 days ago | IN | 0 FRAX | 0.00021782 | ||||
| Whitelist Protoc... | 22073509 | 212 days ago | IN | 0 FRAX | 0.00021782 | ||||
| Whitelist Protoc... | 22073505 | 212 days ago | IN | 0 FRAX | 0.00022529 | ||||
| Whitelist Protoc... | 22073488 | 212 days ago | IN | 0 FRAX | 0.00023192 | ||||
| Whitelist Protoc... | 22073481 | 212 days ago | IN | 0 FRAX | 0.00022206 | ||||
| Whitelist Protoc... | 22071472 | 212 days ago | IN | 0 FRAX | 0.00016774 | ||||
| Create Vault | 22058439 | 212 days ago | IN | 0 FRAX | 0.00011178 | ||||
| Create Vault | 22021032 | 213 days ago | IN | 0 FRAX | 0.00024163 |
Latest 17 internal transactions
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 24722900 | 150 days ago | Contract Creation | 0 FRAX | |||
| 24710500 | 151 days ago | Contract Creation | 0 FRAX | |||
| 24446949 | 157 days ago | Contract Creation | 0 FRAX | |||
| 24431082 | 157 days ago | Contract Creation | 0 FRAX | |||
| 24339312 | 159 days ago | Contract Creation | 0 FRAX | |||
| 23609331 | 176 days ago | Contract Creation | 0 FRAX | |||
| 23572778 | 177 days ago | Contract Creation | 0 FRAX | |||
| 23333366 | 183 days ago | Contract Creation | 0 FRAX | |||
| 23333165 | 183 days ago | Contract Creation | 0 FRAX | |||
| 23148436 | 187 days ago | Contract Creation | 0 FRAX | |||
| 22563365 | 200 days ago | Contract Creation | 0 FRAX | |||
| 22103559 | 211 days ago | Contract Creation | 0 FRAX | |||
| 22074292 | 212 days ago | Contract Creation | 0 FRAX | |||
| 22058439 | 212 days ago | Contract Creation | 0 FRAX | |||
| 22021032 | 213 days ago | Contract Creation | 0 FRAX | |||
| 21973306 | 214 days ago | Contract Creation | 0 FRAX | |||
| 21971971 | 214 days ago | Contract Creation | 0 FRAX |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
VaultCreator
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 832 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "./Vault.sol";
contract VaultCreator {
address public admin; // Multisig for VaultCreator
address public botAddress;
mapping(address => bool) public whitelistedProtocols;
mapping(address => address) public userToVault;
address[] public allVaults;
event AdminChanged(address indexed oldAdmin, address indexed newAdmin);
event BotAddressChanged(address indexed oldBotAddress, address indexed newBotAddress);
event ProtocolWhitelisted(address indexed protocol);
event ProtocolUnwhitelisted(address indexed protocol);
event VaultCreated(address indexed user, address indexed vaultAddress);
modifier onlyAdmin() {
require(msg.sender == admin, "VaultCreator: Not admin");
_;
}
modifier onlyBot() {
require(msg.sender == botAddress, "VaultCreator: Not bot");
_;
}
constructor(address _initialAdmin, address _initialBotAddress) {
require(_initialAdmin != address(0), "VaultCreator: Invalid admin address");
require(_initialBotAddress != address(0), "VaultCreator: Invalid bot address");
admin = _initialAdmin;
botAddress = _initialBotAddress;
emit AdminChanged(address(0), _initialAdmin);
emit BotAddressChanged(address(0), _initialBotAddress);
}
function createVault(address _userAddress) external onlyBot returns (address vaultAddress) {
require(_userAddress != address(0), "VaultCreator: Invalid user address");
require(userToVault[_userAddress] == address(0), "VaultCreator: Vault already exists for user");
Vault newVault = new Vault(_userAddress, address(this));
vaultAddress = address(newVault);
userToVault[_userAddress] = vaultAddress;
allVaults.push(vaultAddress);
emit VaultCreated(_userAddress, vaultAddress);
return vaultAddress;
}
function whitelistProtocol(address protocol) external onlyAdmin {
require(protocol != address(0), "VaultCreator: Invalid protocol address");
whitelistedProtocols[protocol] = true;
emit ProtocolWhitelisted(protocol);
}
function unwhitelistProtocol(address protocol) external onlyAdmin {
require(protocol != address(0), "VaultCreator: Invalid protocol address");
whitelistedProtocols[protocol] = false;
emit ProtocolUnwhitelisted(protocol);
}
function changeAdmin(address newAdmin) external onlyAdmin {
require(newAdmin != address(0), "VaultCreator: Invalid new admin address");
emit AdminChanged(admin, newAdmin);
admin = newAdmin;
}
function setBotAddress(address newBotAddress) external onlyAdmin {
require(newBotAddress != address(0), "VaultCreator: Invalid new bot address");
emit BotAddressChanged(botAddress, newBotAddress);
botAddress = newBotAddress;
}
function isProtocolWhitelisted(address protocol) external view returns (bool) {
return whitelistedProtocols[protocol];
}
function getVaultByUser(address user) external view returns (address) {
return userToVault[user];
}
function getAllVaultsCount() external view returns (uint256) {
return allVaults.length;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "./IVaultCreator.sol";
import { IERC20 } from "@openzeppelin/contracts/interfaces/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
contract Vault is ReentrancyGuard {
using SafeERC20 for IERC20;
address public immutable userAddress; // The primary user of this vault
IVaultCreator public immutable vaultCreator; // To check whitelisted protocols and get admin/bot addresses
event Deposited(address indexed token, address indexed user, uint256 amount);
event Withdrawn(address indexed token, address indexed recipient, uint256 amount);
event Approved(address indexed token, address indexed spender, uint256 amount);
event Yielded(address indexed targetProtocol, bytes params, string reason, address caller);
event Unyielded(address indexed targetProtocol, bytes params, address caller);
modifier onlyUser() {
require(msg.sender == userAddress, "Vault: Not user");
_;
}
modifier onlyBot() {
require(msg.sender == vaultCreator.botAddress(), "Vault: Not bot");
_;
}
modifier onlyAdmin() {
require(msg.sender == vaultCreator.admin(), "Vault: Not admin");
_;
}
modifier onlyUserOrAdmin() {
require(msg.sender == userAddress || msg.sender == vaultCreator.admin(), "Vault: Not user or admin");
_;
}
modifier onlyBotUserOrAdmin() {
address botAddr = vaultCreator.botAddress();
address adminAddr = vaultCreator.admin();
require(msg.sender == botAddr || msg.sender == userAddress || msg.sender == adminAddr, "Vault: Not authorized");
_;
}
constructor(address _userAddress, address _vaultCreatorAddress) {
require(_userAddress != address(0), "Vault: Invalid user address");
require(_vaultCreatorAddress != address(0), "Vault: Invalid vault creator address");
userAddress = _userAddress;
vaultCreator = IVaultCreator(_vaultCreatorAddress);
}
function deposit(address token, uint256 amount) external onlyUser nonReentrant {
require(token != address(0), "Vault: Invalid token address");
require(amount > 0, "Vault: Amount must be greater than 0");
IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
emit Deposited(token, msg.sender, amount);
}
function withdraw(address token, uint256 amount) external onlyUserOrAdmin nonReentrant {
require(amount > 0, "Vault: Amount must be greater than 0");
if (token == address(0)) {
require(address(this).balance >= amount, "Vault: Insufficient gas token balance");
(bool success,) = payable(msg.sender).call{ value: amount }("");
require(success, "Vault: Gas token transfer failed");
} else {
IERC20(token).safeTransfer(msg.sender, amount);
}
emit Withdrawn(token, msg.sender, amount);
}
function approveTokenForProtocol(
address token,
address protocolSpender,
uint256 amount
)
external
onlyBot
nonReentrant
{
require(token != address(0), "Vault: Invalid token address");
require(protocolSpender != address(0), "Vault: Invalid spender address");
require(vaultCreator.isProtocolWhitelisted(protocolSpender), "Vault: Protocol not whitelisted");
IERC20(token).approve(protocolSpender, amount);
emit Approved(token, protocolSpender, amount);
}
function yield(
address targetProtocol,
bytes calldata callParams,
uint256 valueToSend,
string calldata reason
)
external
payable
onlyBot
nonReentrant
{
require(targetProtocol != address(0), "Vault: Invalid target protocol");
require(vaultCreator.isProtocolWhitelisted(targetProtocol), "Vault: Protocol not whitelisted for yield");
require(address(this).balance >= valueToSend, "Vault: Insufficient gas token balance for call");
(bool success, bytes memory returnData) = targetProtocol.call{ value: valueToSend }(callParams);
require(success, _getRevertMsg(returnData, "Vault: Yield call failed"));
emit Yielded(targetProtocol, callParams, reason, msg.sender);
}
function unyield(
address targetProtocol,
bytes calldata callParams,
uint256 valueToSend
)
external
payable
onlyBotUserOrAdmin
nonReentrant
{
require(targetProtocol != address(0), "Vault: Invalid target protocol");
require(address(this).balance >= valueToSend, "Vault: Insufficient gas token balance for call");
if (msg.sender == vaultCreator.botAddress()) {
require(
vaultCreator.isProtocolWhitelisted(targetProtocol), "Vault: Protocol not whitelisted for bot unyield"
);
}
(bool success, bytes memory returnData) = targetProtocol.call{ value: valueToSend }(callParams);
require(success, _getRevertMsg(returnData, "Vault: Unyield call failed"));
emit Unyielded(targetProtocol, callParams, msg.sender);
}
function getBotAddress() external view returns (address) {
return vaultCreator.botAddress();
}
function getAdminAddress() external view returns (address) {
return vaultCreator.admin();
}
receive() external payable { }
function _getRevertMsg(bytes memory _returnData, string memory _defaultMsg) internal pure returns (string memory) {
if (_returnData.length < 68) return _defaultMsg;
assembly {
_returnData := add(_returnData, 0x04)
}
return abi.decode(_returnData, (string));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IVaultCreator {
function isProtocolWhitelisted(address protocol) external view returns (bool);
function botAddress() external view returns (address);
function admin() external view returns (address); // The admin of VaultCreator
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 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 {
/**
* @dev An operation with an ERC-20 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 Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(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.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
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.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
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.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
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 Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
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 silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
* consider using {ReentrancyGuardTransient} instead.
*
* 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;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
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
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// 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.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"remappings": [
"@openzeppelin/=lib/openzeppelin-contracts/",
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/"
],
"optimizer": {
"enabled": true,
"runs": 832
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "shanghai",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_initialAdmin","type":"address"},{"internalType":"address","name":"_initialBotAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldBotAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newBotAddress","type":"address"}],"name":"BotAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"protocol","type":"address"}],"name":"ProtocolUnwhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"protocol","type":"address"}],"name":"ProtocolWhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"vaultAddress","type":"address"}],"name":"VaultCreated","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allVaults","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"botAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"name":"createVault","outputs":[{"internalType":"address","name":"vaultAddress","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllVaultsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getVaultByUser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"protocol","type":"address"}],"name":"isProtocolWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newBotAddress","type":"address"}],"name":"setBotAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"protocol","type":"address"}],"name":"unwhitelistProtocol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userToVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"protocol","type":"address"}],"name":"whitelistProtocol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedProtocols","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561000f575f80fd5b506040516125c73803806125c783398101604081905261002e916101a4565b6001600160a01b0382166100955760405162461bcd60e51b815260206004820152602360248201527f5661756c7443726561746f723a20496e76616c69642061646d696e206164647260448201526265737360e81b60648201526084015b60405180910390fd5b6001600160a01b0381166100f55760405162461bcd60e51b815260206004820152602160248201527f5661756c7443726561746f723a20496e76616c696420626f74206164647265736044820152607360f81b606482015260840161008c565b5f80546001600160a01b03199081166001600160a01b03858116918217845560018054909316908516179091556040519091907f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f908290a36040516001600160a01b038216905f907fc65940bcd2aacf650c716b03c1cf00164d455af263e6cc29861986b39910921c908290a350506101d5565b80516001600160a01b038116811461019f575f80fd5b919050565b5f80604083850312156101b5575f80fd5b6101be83610189565b91506101cc60208401610189565b90509250929050565b6123e5806101e25f395ff3fe608060405234801561000f575f80fd5b50600436106100da575f3560e01c80639094a91e11610088578063bc721a9611610063578063bc721a96146101df578063e75622d414610207578063e8620af114610232578063f851a44014610243575f80fd5b80639094a91e1461018e5780639387bbd4146101a1578063b4bd6f46146101cc575f80fd5b8063691a2208116100b8578063691a22081461013657806384361c07146101495780638f2839701461017b575f80fd5b806313d1d3e4146100de5780632d4f40c6146100f35780634bf4f42314610106575b5f80fd5b6100f16100ec366004610949565b610255565b005b6100f1610101366004610949565b610363565b600154610119906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100f1610144366004610949565b6104a0565b61016b610157366004610949565b60026020525f908152604090205460ff1681565b604051901515815260200161012d565b6100f1610189366004610949565b6105a6565b61011961019c366004610976565b6106e1565b61016b6101af366004610949565b6001600160a01b03165f9081526002602052604090205460ff1690565b6101196101da366004610949565b610709565b6101196101ed366004610949565b60036020525f90815260409020546001600160a01b031681565b610119610215366004610949565b6001600160a01b039081165f908152600360205260409020541690565b60045460405190815260200161012d565b5f54610119906001600160a01b031681565b5f546001600160a01b031633146102b35760405162461bcd60e51b815260206004820152601760248201527f5661756c7443726561746f723a204e6f742061646d696e00000000000000000060448201526064015b60405180910390fd5b6001600160a01b0381166103185760405162461bcd60e51b815260206004820152602660248201527f5661756c7443726561746f723a20496e76616c69642070726f746f636f6c206160448201526564647265737360d01b60648201526084016102aa565b6001600160a01b0381165f81815260026020526040808220805460ff19166001179055517f5ec654392567a6e4d201b682c6ed6803d120c307fd0b8ba2cca51f73e36f43389190a250565b5f546001600160a01b031633146103bc5760405162461bcd60e51b815260206004820152601760248201527f5661756c7443726561746f723a204e6f742061646d696e00000000000000000060448201526064016102aa565b6001600160a01b0381166104385760405162461bcd60e51b815260206004820152602560248201527f5661756c7443726561746f723a20496e76616c6964206e657720626f7420616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016102aa565b6001546040516001600160a01b038084169216907fc65940bcd2aacf650c716b03c1cf00164d455af263e6cc29861986b39910921c905f90a36001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b5f546001600160a01b031633146104f95760405162461bcd60e51b815260206004820152601760248201527f5661756c7443726561746f723a204e6f742061646d696e00000000000000000060448201526064016102aa565b6001600160a01b03811661055e5760405162461bcd60e51b815260206004820152602660248201527f5661756c7443726561746f723a20496e76616c69642070726f746f636f6c206160448201526564647265737360d01b60648201526084016102aa565b6001600160a01b0381165f81815260026020526040808220805460ff19169055517f15296b0fffe1e46666ceeb89267ffe04e30fd2174376b444ed3625ff79630ac49190a250565b5f546001600160a01b031633146105ff5760405162461bcd60e51b815260206004820152601760248201527f5661756c7443726561746f723a204e6f742061646d696e00000000000000000060448201526064016102aa565b6001600160a01b03811661067b5760405162461bcd60e51b815260206004820152602760248201527f5661756c7443726561746f723a20496e76616c6964206e65772061646d696e2060448201527f616464726573730000000000000000000000000000000000000000000000000060648201526084016102aa565b5f80546040516001600160a01b03808516939216917f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f91a35f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600481815481106106f0575f80fd5b5f918252602090912001546001600160a01b0316905081565b6001545f906001600160a01b031633146107655760405162461bcd60e51b815260206004820152601560248201527f5661756c7443726561746f723a204e6f7420626f74000000000000000000000060448201526064016102aa565b6001600160a01b0382166107c65760405162461bcd60e51b815260206004820152602260248201527f5661756c7443726561746f723a20496e76616c69642075736572206164647265604482015261737360f01b60648201526084016102aa565b6001600160a01b038281165f9081526003602052604090205416156108535760405162461bcd60e51b815260206004820152602b60248201527f5661756c7443726561746f723a205661756c7420616c7265616479206578697360448201527f747320666f72207573657200000000000000000000000000000000000000000060648201526084016102aa565b5f82306040516108629061093c565b6001600160a01b03928316815291166020820152604001604051809103905ff080158015610892573d5f803e3d5ffd5b506001600160a01b038085165f81815260036020526040808220805494861673ffffffffffffffffffffffffffffffffffffffff199586168117909155600480546001810182559084527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b018054909516811790945551939550859450919290917f5d9c31ffa0fecffd7cf379989a3c7af252f0335e0d2a1320b55245912c781f5391a350919050565b611a228061098e83390190565b5f60208284031215610959575f80fd5b81356001600160a01b038116811461096f575f80fd5b9392505050565b5f60208284031215610986575f80fd5b503591905056fe60c060405234801562000010575f80fd5b5060405162001a2238038062001a2283398101604081905262000033916200012b565b60015f556001600160a01b038216620000935760405162461bcd60e51b815260206004820152601b60248201527f5661756c743a20496e76616c696420757365722061646472657373000000000060448201526064015b60405180910390fd5b6001600160a01b038116620000f75760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20496e76616c6964207661756c742063726561746f72206164646044820152637265737360e01b60648201526084016200008a565b6001600160a01b039182166080521660a05262000161565b80516001600160a01b038116811462000126575f80fd5b919050565b5f80604083850312156200013d575f80fd5b62000148836200010f565b915062000158602084016200010f565b90509250929050565b60805160a05161183d620001e55f395f81816101ae0152818161036c015281816103ef015281816105d4015281816106800152818161087501528181610a1701528181610b9b01528181610c2001528181610d6c01528181610fb2015261104001525f818161015c015281816101db0152818161048c0152611017015261183d5ff3fe608060405260043610610096575f3560e01c8063c016b70e11610066578063e4128fb31161004c578063e4128fb31461014b578063f3fef3a31461017e578063fe3a6d881461019d575f80fd5b8063c016b70e14610124578063c2fdda7d14610137575f80fd5b806347e7ef24146100a157806354d79813146100c25780637ea9ac2b146100d5578063b2e6b912146100f4575f80fd5b3661009d57005b5f80fd5b3480156100ac575f80fd5b506100c06100bb366004611486565b6101d0565b005b6100c06100d03660046114f5565b610369565b3480156100e0575f80fd5b506100c06100ef36600461154d565b610873565b3480156100ff575f80fd5b50610108610b98565b6040516001600160a01b03909116815260200160405180910390f35b6100c061013236600461158b565b610c1e565b348015610142575f80fd5b50610108610faf565b348015610156575f80fd5b506101087f000000000000000000000000000000000000000000000000000000000000000081565b348015610189575f80fd5b506100c0610198366004611486565b61100c565b3480156101a8575f80fd5b506101087f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461024d5760405162461bcd60e51b815260206004820152600f60248201527f5661756c743a204e6f742075736572000000000000000000000000000000000060448201526064015b60405180910390fd5b6102556112f2565b6001600160a01b0382166102ab5760405162461bcd60e51b815260206004820152601c60248201527f5661756c743a20496e76616c696420746f6b656e2061646472657373000000006044820152606401610244565b5f81116103065760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20416d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610244565b61031b6001600160a01b03831633308461131a565b60405181815233906001600160a01b038416907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7906020015b60405180910390a361036560015f55565b5050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ea9190611611565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015610449573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061046d9190611611565b9050336001600160a01b03831614806104ae5750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b806104c15750336001600160a01b038216145b61050d5760405162461bcd60e51b815260206004820152601560248201527f5661756c743a204e6f7420617574686f72697a656400000000000000000000006044820152606401610244565b6105156112f2565b6001600160a01b03861661056b5760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207461726765742070726f746f636f6c00006044820152606401610244565b824710156105d25760405162461bcd60e51b815260206004820152602e60248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201526d1b185b98d948199bdc8818d85b1b60921b6064820152608401610244565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106529190611611565b6001600160a01b0316330361075b576040516324e1eef560e21b81526001600160a01b0387811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639387bbd490602401602060405180830381865afa1580156106c5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106e99190611633565b61075b5760405162461bcd60e51b815260206004820152602f60248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c69737465642060448201527f666f7220626f7420756e7969656c6400000000000000000000000000000000006064820152608401610244565b5f80876001600160a01b0316858888604051610778929190611652565b5f6040518083038185875af1925050503d805f81146107b2576040519150601f19603f3d011682016040523d82523d5f602084013e6107b7565b606091505b5091509150816107fc826040518060400160405280601a81526020017f5661756c743a20556e7969656c642063616c6c206661696c656400000000000081525061139c565b9061081a5760405162461bcd60e51b81526004016102449190611683565b50876001600160a01b03167f57a958e4bb0f3c5ca1d328c43ef53e2c8fa1c35ae6325238ddf1ffd8169e1da7888833604051610858939291906116dd565b60405180910390a2505061086b60015f55565b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108cf573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108f39190611611565b6001600160a01b0316336001600160a01b0316146109445760405162461bcd60e51b815260206004820152600e60248201526d15985d5b1d0e88139bdd08189bdd60921b6044820152606401610244565b61094c6112f2565b6001600160a01b0383166109a25760405162461bcd60e51b815260206004820152601c60248201527f5661756c743a20496e76616c696420746f6b656e2061646472657373000000006044820152606401610244565b6001600160a01b0382166109f85760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207370656e646572206164647265737300006044820152606401610244565b6040516324e1eef560e21b81526001600160a01b0383811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639387bbd490602401602060405180830381865afa158015610a5c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a809190611633565b610acc5760405162461bcd60e51b815260206004820152601f60248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c6973746564006044820152606401610244565b60405163095ea7b360e01b81526001600160a01b0383811660048301526024820183905284169063095ea7b3906044016020604051808303815f875af1158015610b18573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b3c9190611633565b50816001600160a01b0316836001600160a01b03167f80da462ebfbe41cfc9bc015e7a9a3c7a2a73dbccede72d8ceb583606c27f8f9083604051610b8291815260200190565b60405180910390a3610b9360015f55565b505050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c199190611611565b905090565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c7a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9e9190611611565b6001600160a01b0316336001600160a01b031614610cef5760405162461bcd60e51b815260206004820152600e60248201526d15985d5b1d0e88139bdd08189bdd60921b6044820152606401610244565b610cf76112f2565b6001600160a01b038616610d4d5760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207461726765742070726f746f636f6c00006044820152606401610244565b6040516324e1eef560e21b81526001600160a01b0387811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639387bbd490602401602060405180830381865afa158015610db1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dd59190611633565b610e475760405162461bcd60e51b815260206004820152602960248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c69737465642060448201527f666f72207969656c6400000000000000000000000000000000000000000000006064820152608401610244565b82471015610eae5760405162461bcd60e51b815260206004820152602e60248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201526d1b185b98d948199bdc8818d85b1b60921b6064820152608401610244565b5f80876001600160a01b0316858888604051610ecb929190611652565b5f6040518083038185875af1925050503d805f8114610f05576040519150601f19603f3d011682016040523d82523d5f602084013e610f0a565b606091505b509150915081610f4f826040518060400160405280601881526020017f5661756c743a205969656c642063616c6c206661696c6564000000000000000081525061139c565b90610f6d5760405162461bcd60e51b81526004016102449190611683565b50876001600160a01b03167f8f19e6e133625f31c4ebd7c1c984dcdddac5793155aa96461bfe84eabab0086a8888878733604051610858959493929190611709565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf5573d5f803e3d5ffd5b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110d357507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa15801561109a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110be9190611611565b6001600160a01b0316336001600160a01b0316145b61111f5760405162461bcd60e51b815260206004820152601860248201527f5661756c743a204e6f742075736572206f722061646d696e00000000000000006044820152606401610244565b6111276112f2565b5f81116111825760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20416d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610244565b6001600160a01b0382166112a157804710156112065760405162461bcd60e51b815260206004820152602560248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201527f6c616e63650000000000000000000000000000000000000000000000000000006064820152608401610244565b6040515f90339083908381818185875af1925050503d805f8114611245576040519150601f19603f3d011682016040523d82523d5f602084013e61124a565b606091505b505090508061129b5760405162461bcd60e51b815260206004820181905260248201527f5661756c743a2047617320746f6b656e207472616e73666572206661696c65646044820152606401610244565b506112b5565b6112b56001600160a01b03831633836113d2565b60405181815233906001600160a01b038416907fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb90602001610354565b60025f540361131457604051633ee5aeb560e01b815260040160405180910390fd5b60025f55565b6040516001600160a01b0384811660248301528381166044830152606482018390526113969186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611403565b50505050565b60606044835110156113af5750806113cc565b600483019250828060200190518101906113c9919061175f565b90505b92915050565b6040516001600160a01b03838116602483015260448201839052610b9391859182169063a9059cbb9060640161134f565b5f8060205f8451602086015f885af180611422576040513d5f823e3d81fd5b50505f513d91508115611439578060011415611446565b6001600160a01b0384163b155b1561139657604051635274afe760e01b81526001600160a01b0385166004820152602401610244565b6001600160a01b0381168114611483575f80fd5b50565b5f8060408385031215611497575f80fd5b82356114a28161146f565b946020939093013593505050565b5f8083601f8401126114c0575f80fd5b50813567ffffffffffffffff8111156114d7575f80fd5b6020830191508360208285010111156114ee575f80fd5b9250929050565b5f805f8060608587031215611508575f80fd5b84356115138161146f565b9350602085013567ffffffffffffffff81111561152e575f80fd5b61153a878288016114b0565b9598909750949560400135949350505050565b5f805f6060848603121561155f575f80fd5b833561156a8161146f565b9250602084013561157a8161146f565b929592945050506040919091013590565b5f805f805f80608087890312156115a0575f80fd5b86356115ab8161146f565b9550602087013567ffffffffffffffff808211156115c7575f80fd5b6115d38a838b016114b0565b90975095506040890135945060608901359150808211156115f2575f80fd5b506115ff89828a016114b0565b979a9699509497509295939492505050565b5f60208284031215611621575f80fd5b815161162c8161146f565b9392505050565b5f60208284031215611643575f80fd5b8151801515811461162c575f80fd5b818382375f9101908152919050565b5f5b8381101561167b578181015183820152602001611663565b50505f910152565b602081525f82518060208401526116a1816040850160208701611661565b601f01601f19169190910160400192915050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b604081525f6116f06040830185876116b5565b90506001600160a01b0383166020830152949350505050565b606081525f61171c6060830187896116b5565b828103602084015261172f8186886116b5565b9150506001600160a01b03831660408301529695505050505050565b634e487b7160e01b5f52604160045260245ffd5b5f6020828403121561176f575f80fd5b815167ffffffffffffffff80821115611786575f80fd5b818401915084601f830112611799575f80fd5b8151818111156117ab576117ab61174b565b604051601f8201601f19908116603f011681019083821181831017156117d3576117d361174b565b816040528281528760208487010111156117eb575f80fd5b6117fc836020830160208801611661565b97965050505050505056fea2646970667358221220373dd486bd28ffc5bf34778e25697c7ddcee383ebfdc6b294404879d46b054e864736f6c63430008140033a26469706673582212203d5f7f79ff1aa9e9bc9db39d6b278cc600f9a775019c2f69b5f6b0db033a683464736f6c6343000814003300000000000000000000000098c41750f292ac7730f50ea8e9f24dd0cfed2957000000000000000000000000c305fd3a7a078865d95ddc707dac414da1700126
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100da575f3560e01c80639094a91e11610088578063bc721a9611610063578063bc721a96146101df578063e75622d414610207578063e8620af114610232578063f851a44014610243575f80fd5b80639094a91e1461018e5780639387bbd4146101a1578063b4bd6f46146101cc575f80fd5b8063691a2208116100b8578063691a22081461013657806384361c07146101495780638f2839701461017b575f80fd5b806313d1d3e4146100de5780632d4f40c6146100f35780634bf4f42314610106575b5f80fd5b6100f16100ec366004610949565b610255565b005b6100f1610101366004610949565b610363565b600154610119906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100f1610144366004610949565b6104a0565b61016b610157366004610949565b60026020525f908152604090205460ff1681565b604051901515815260200161012d565b6100f1610189366004610949565b6105a6565b61011961019c366004610976565b6106e1565b61016b6101af366004610949565b6001600160a01b03165f9081526002602052604090205460ff1690565b6101196101da366004610949565b610709565b6101196101ed366004610949565b60036020525f90815260409020546001600160a01b031681565b610119610215366004610949565b6001600160a01b039081165f908152600360205260409020541690565b60045460405190815260200161012d565b5f54610119906001600160a01b031681565b5f546001600160a01b031633146102b35760405162461bcd60e51b815260206004820152601760248201527f5661756c7443726561746f723a204e6f742061646d696e00000000000000000060448201526064015b60405180910390fd5b6001600160a01b0381166103185760405162461bcd60e51b815260206004820152602660248201527f5661756c7443726561746f723a20496e76616c69642070726f746f636f6c206160448201526564647265737360d01b60648201526084016102aa565b6001600160a01b0381165f81815260026020526040808220805460ff19166001179055517f5ec654392567a6e4d201b682c6ed6803d120c307fd0b8ba2cca51f73e36f43389190a250565b5f546001600160a01b031633146103bc5760405162461bcd60e51b815260206004820152601760248201527f5661756c7443726561746f723a204e6f742061646d696e00000000000000000060448201526064016102aa565b6001600160a01b0381166104385760405162461bcd60e51b815260206004820152602560248201527f5661756c7443726561746f723a20496e76616c6964206e657720626f7420616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016102aa565b6001546040516001600160a01b038084169216907fc65940bcd2aacf650c716b03c1cf00164d455af263e6cc29861986b39910921c905f90a36001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b5f546001600160a01b031633146104f95760405162461bcd60e51b815260206004820152601760248201527f5661756c7443726561746f723a204e6f742061646d696e00000000000000000060448201526064016102aa565b6001600160a01b03811661055e5760405162461bcd60e51b815260206004820152602660248201527f5661756c7443726561746f723a20496e76616c69642070726f746f636f6c206160448201526564647265737360d01b60648201526084016102aa565b6001600160a01b0381165f81815260026020526040808220805460ff19169055517f15296b0fffe1e46666ceeb89267ffe04e30fd2174376b444ed3625ff79630ac49190a250565b5f546001600160a01b031633146105ff5760405162461bcd60e51b815260206004820152601760248201527f5661756c7443726561746f723a204e6f742061646d696e00000000000000000060448201526064016102aa565b6001600160a01b03811661067b5760405162461bcd60e51b815260206004820152602760248201527f5661756c7443726561746f723a20496e76616c6964206e65772061646d696e2060448201527f616464726573730000000000000000000000000000000000000000000000000060648201526084016102aa565b5f80546040516001600160a01b03808516939216917f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f91a35f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600481815481106106f0575f80fd5b5f918252602090912001546001600160a01b0316905081565b6001545f906001600160a01b031633146107655760405162461bcd60e51b815260206004820152601560248201527f5661756c7443726561746f723a204e6f7420626f74000000000000000000000060448201526064016102aa565b6001600160a01b0382166107c65760405162461bcd60e51b815260206004820152602260248201527f5661756c7443726561746f723a20496e76616c69642075736572206164647265604482015261737360f01b60648201526084016102aa565b6001600160a01b038281165f9081526003602052604090205416156108535760405162461bcd60e51b815260206004820152602b60248201527f5661756c7443726561746f723a205661756c7420616c7265616479206578697360448201527f747320666f72207573657200000000000000000000000000000000000000000060648201526084016102aa565b5f82306040516108629061093c565b6001600160a01b03928316815291166020820152604001604051809103905ff080158015610892573d5f803e3d5ffd5b506001600160a01b038085165f81815260036020526040808220805494861673ffffffffffffffffffffffffffffffffffffffff199586168117909155600480546001810182559084527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b018054909516811790945551939550859450919290917f5d9c31ffa0fecffd7cf379989a3c7af252f0335e0d2a1320b55245912c781f5391a350919050565b611a228061098e83390190565b5f60208284031215610959575f80fd5b81356001600160a01b038116811461096f575f80fd5b9392505050565b5f60208284031215610986575f80fd5b503591905056fe60c060405234801562000010575f80fd5b5060405162001a2238038062001a2283398101604081905262000033916200012b565b60015f556001600160a01b038216620000935760405162461bcd60e51b815260206004820152601b60248201527f5661756c743a20496e76616c696420757365722061646472657373000000000060448201526064015b60405180910390fd5b6001600160a01b038116620000f75760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20496e76616c6964207661756c742063726561746f72206164646044820152637265737360e01b60648201526084016200008a565b6001600160a01b039182166080521660a05262000161565b80516001600160a01b038116811462000126575f80fd5b919050565b5f80604083850312156200013d575f80fd5b62000148836200010f565b915062000158602084016200010f565b90509250929050565b60805160a05161183d620001e55f395f81816101ae0152818161036c015281816103ef015281816105d4015281816106800152818161087501528181610a1701528181610b9b01528181610c2001528181610d6c01528181610fb2015261104001525f818161015c015281816101db0152818161048c0152611017015261183d5ff3fe608060405260043610610096575f3560e01c8063c016b70e11610066578063e4128fb31161004c578063e4128fb31461014b578063f3fef3a31461017e578063fe3a6d881461019d575f80fd5b8063c016b70e14610124578063c2fdda7d14610137575f80fd5b806347e7ef24146100a157806354d79813146100c25780637ea9ac2b146100d5578063b2e6b912146100f4575f80fd5b3661009d57005b5f80fd5b3480156100ac575f80fd5b506100c06100bb366004611486565b6101d0565b005b6100c06100d03660046114f5565b610369565b3480156100e0575f80fd5b506100c06100ef36600461154d565b610873565b3480156100ff575f80fd5b50610108610b98565b6040516001600160a01b03909116815260200160405180910390f35b6100c061013236600461158b565b610c1e565b348015610142575f80fd5b50610108610faf565b348015610156575f80fd5b506101087f000000000000000000000000000000000000000000000000000000000000000081565b348015610189575f80fd5b506100c0610198366004611486565b61100c565b3480156101a8575f80fd5b506101087f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461024d5760405162461bcd60e51b815260206004820152600f60248201527f5661756c743a204e6f742075736572000000000000000000000000000000000060448201526064015b60405180910390fd5b6102556112f2565b6001600160a01b0382166102ab5760405162461bcd60e51b815260206004820152601c60248201527f5661756c743a20496e76616c696420746f6b656e2061646472657373000000006044820152606401610244565b5f81116103065760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20416d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610244565b61031b6001600160a01b03831633308461131a565b60405181815233906001600160a01b038416907f8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7906020015b60405180910390a361036560015f55565b5050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103ea9190611611565b90505f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015610449573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061046d9190611611565b9050336001600160a01b03831614806104ae5750336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016145b806104c15750336001600160a01b038216145b61050d5760405162461bcd60e51b815260206004820152601560248201527f5661756c743a204e6f7420617574686f72697a656400000000000000000000006044820152606401610244565b6105156112f2565b6001600160a01b03861661056b5760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207461726765742070726f746f636f6c00006044820152606401610244565b824710156105d25760405162461bcd60e51b815260206004820152602e60248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201526d1b185b98d948199bdc8818d85b1b60921b6064820152608401610244565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106529190611611565b6001600160a01b0316330361075b576040516324e1eef560e21b81526001600160a01b0387811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639387bbd490602401602060405180830381865afa1580156106c5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106e99190611633565b61075b5760405162461bcd60e51b815260206004820152602f60248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c69737465642060448201527f666f7220626f7420756e7969656c6400000000000000000000000000000000006064820152608401610244565b5f80876001600160a01b0316858888604051610778929190611652565b5f6040518083038185875af1925050503d805f81146107b2576040519150601f19603f3d011682016040523d82523d5f602084013e6107b7565b606091505b5091509150816107fc826040518060400160405280601a81526020017f5661756c743a20556e7969656c642063616c6c206661696c656400000000000081525061139c565b9061081a5760405162461bcd60e51b81526004016102449190611683565b50876001600160a01b03167f57a958e4bb0f3c5ca1d328c43ef53e2c8fa1c35ae6325238ddf1ffd8169e1da7888833604051610858939291906116dd565b60405180910390a2505061086b60015f55565b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa1580156108cf573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108f39190611611565b6001600160a01b0316336001600160a01b0316146109445760405162461bcd60e51b815260206004820152600e60248201526d15985d5b1d0e88139bdd08189bdd60921b6044820152606401610244565b61094c6112f2565b6001600160a01b0383166109a25760405162461bcd60e51b815260206004820152601c60248201527f5661756c743a20496e76616c696420746f6b656e2061646472657373000000006044820152606401610244565b6001600160a01b0382166109f85760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207370656e646572206164647265737300006044820152606401610244565b6040516324e1eef560e21b81526001600160a01b0383811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639387bbd490602401602060405180830381865afa158015610a5c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a809190611633565b610acc5760405162461bcd60e51b815260206004820152601f60248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c6973746564006044820152606401610244565b60405163095ea7b360e01b81526001600160a01b0383811660048301526024820183905284169063095ea7b3906044016020604051808303815f875af1158015610b18573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b3c9190611633565b50816001600160a01b0316836001600160a01b03167f80da462ebfbe41cfc9bc015e7a9a3c7a2a73dbccede72d8ceb583606c27f8f9083604051610b8291815260200190565b60405180910390a3610b9360015f55565b505050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c199190611611565b905090565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c7a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c9e9190611611565b6001600160a01b0316336001600160a01b031614610cef5760405162461bcd60e51b815260206004820152600e60248201526d15985d5b1d0e88139bdd08189bdd60921b6044820152606401610244565b610cf76112f2565b6001600160a01b038616610d4d5760405162461bcd60e51b815260206004820152601e60248201527f5661756c743a20496e76616c6964207461726765742070726f746f636f6c00006044820152606401610244565b6040516324e1eef560e21b81526001600160a01b0387811660048301527f00000000000000000000000000000000000000000000000000000000000000001690639387bbd490602401602060405180830381865afa158015610db1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dd59190611633565b610e475760405162461bcd60e51b815260206004820152602960248201527f5661756c743a2050726f746f636f6c206e6f742077686974656c69737465642060448201527f666f72207969656c6400000000000000000000000000000000000000000000006064820152608401610244565b82471015610eae5760405162461bcd60e51b815260206004820152602e60248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201526d1b185b98d948199bdc8818d85b1b60921b6064820152608401610244565b5f80876001600160a01b0316858888604051610ecb929190611652565b5f6040518083038185875af1925050503d805f8114610f05576040519150601f19603f3d011682016040523d82523d5f602084013e610f0a565b606091505b509150915081610f4f826040518060400160405280601881526020017f5661756c743a205969656c642063616c6c206661696c6564000000000000000081525061139c565b90610f6d5760405162461bcd60e51b81526004016102449190611683565b50876001600160a01b03167f8f19e6e133625f31c4ebd7c1c984dcdddac5793155aa96461bfe84eabab0086a8888878733604051610858959493929190611709565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634bf4f4236040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bf5573d5f803e3d5ffd5b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110d357507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa15801561109a573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110be9190611611565b6001600160a01b0316336001600160a01b0316145b61111f5760405162461bcd60e51b815260206004820152601860248201527f5661756c743a204e6f742075736572206f722061646d696e00000000000000006044820152606401610244565b6111276112f2565b5f81116111825760405162461bcd60e51b8152602060048201526024808201527f5661756c743a20416d6f756e74206d75737420626520677265617465722074686044820152630616e20360e41b6064820152608401610244565b6001600160a01b0382166112a157804710156112065760405162461bcd60e51b815260206004820152602560248201527f5661756c743a20496e73756666696369656e742067617320746f6b656e20626160448201527f6c616e63650000000000000000000000000000000000000000000000000000006064820152608401610244565b6040515f90339083908381818185875af1925050503d805f8114611245576040519150601f19603f3d011682016040523d82523d5f602084013e61124a565b606091505b505090508061129b5760405162461bcd60e51b815260206004820181905260248201527f5661756c743a2047617320746f6b656e207472616e73666572206661696c65646044820152606401610244565b506112b5565b6112b56001600160a01b03831633836113d2565b60405181815233906001600160a01b038416907fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb90602001610354565b60025f540361131457604051633ee5aeb560e01b815260040160405180910390fd5b60025f55565b6040516001600160a01b0384811660248301528381166044830152606482018390526113969186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611403565b50505050565b60606044835110156113af5750806113cc565b600483019250828060200190518101906113c9919061175f565b90505b92915050565b6040516001600160a01b03838116602483015260448201839052610b9391859182169063a9059cbb9060640161134f565b5f8060205f8451602086015f885af180611422576040513d5f823e3d81fd5b50505f513d91508115611439578060011415611446565b6001600160a01b0384163b155b1561139657604051635274afe760e01b81526001600160a01b0385166004820152602401610244565b6001600160a01b0381168114611483575f80fd5b50565b5f8060408385031215611497575f80fd5b82356114a28161146f565b946020939093013593505050565b5f8083601f8401126114c0575f80fd5b50813567ffffffffffffffff8111156114d7575f80fd5b6020830191508360208285010111156114ee575f80fd5b9250929050565b5f805f8060608587031215611508575f80fd5b84356115138161146f565b9350602085013567ffffffffffffffff81111561152e575f80fd5b61153a878288016114b0565b9598909750949560400135949350505050565b5f805f6060848603121561155f575f80fd5b833561156a8161146f565b9250602084013561157a8161146f565b929592945050506040919091013590565b5f805f805f80608087890312156115a0575f80fd5b86356115ab8161146f565b9550602087013567ffffffffffffffff808211156115c7575f80fd5b6115d38a838b016114b0565b90975095506040890135945060608901359150808211156115f2575f80fd5b506115ff89828a016114b0565b979a9699509497509295939492505050565b5f60208284031215611621575f80fd5b815161162c8161146f565b9392505050565b5f60208284031215611643575f80fd5b8151801515811461162c575f80fd5b818382375f9101908152919050565b5f5b8381101561167b578181015183820152602001611663565b50505f910152565b602081525f82518060208401526116a1816040850160208701611661565b601f01601f19169190910160400192915050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b604081525f6116f06040830185876116b5565b90506001600160a01b0383166020830152949350505050565b606081525f61171c6060830187896116b5565b828103602084015261172f8186886116b5565b9150506001600160a01b03831660408301529695505050505050565b634e487b7160e01b5f52604160045260245ffd5b5f6020828403121561176f575f80fd5b815167ffffffffffffffff80821115611786575f80fd5b818401915084601f830112611799575f80fd5b8151818111156117ab576117ab61174b565b604051601f8201601f19908116603f011681019083821181831017156117d3576117d361174b565b816040528281528760208487010111156117eb575f80fd5b6117fc836020830160208801611661565b97965050505050505056fea2646970667358221220373dd486bd28ffc5bf34778e25697c7ddcee383ebfdc6b294404879d46b054e864736f6c63430008140033a26469706673582212203d5f7f79ff1aa9e9bc9db39d6b278cc600f9a775019c2f69b5f6b0db033a683464736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000098c41750f292ac7730f50ea8e9f24dd0cfed2957000000000000000000000000c305fd3a7a078865d95ddc707dac414da1700126
-----Decoded View---------------
Arg [0] : _initialAdmin (address): 0x98c41750F292AC7730F50eA8e9f24dd0CfEd2957
Arg [1] : _initialBotAddress (address): 0xC305fD3a7a078865d95Ddc707dAc414Da1700126
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000098c41750f292ac7730f50ea8e9f24dd0cfed2957
Arg [1] : 000000000000000000000000c305fd3a7a078865d95ddc707dac414da1700126
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in FRAX
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.