Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
Amount
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Set Aave Info | 11086905 | 568 days ago | IN | 0 ETH | 0.000239605218 |
Loading...
Loading
Contract Name:
YieldTool
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/*
Copyright 2024 MEST.
SPDX-License-Identifier: Apache-2.0
*/
pragma solidity 0.8.16;
import "@openzeppelin/contracts/access/Ownable.sol";
import "../intf/IAave.sol";
interface IYieldTool {
function yieldDeposit(uint256 amount) external;
function yieldWithdraw(uint256 amount) external;
function yieldBalanceOf(address owner) external returns(uint256);
function yieldToken() external returns(address);
function yieldMaxWithdrawable(address owner) external returns(uint256 amount);
}
contract YieldTool is Ownable, IYieldTool {
// for aave
address public immutable mestFactory;
address public immutable WETH;
IAavePool public aavePool;
IAaveGateway public aaveGateway;
IAToken public aWETH;
constructor(address _mestFactory, address _weth) public {
mestFactory = _mestFactory;
WETH = _weth;
}
modifier onlyFactory() {
require(msg.sender == mestFactory, "Only factory");
_;
}
// =============== eth =============
fallback() external payable {}
receive() external payable {}
// ================= owner ================
function setAaveInfo(address newPool, address newGateway) external onlyOwner {
if(address(aWETH) != address(0)) {
require(aWETH.balanceOf(mestFactory) == 0, "AToken didnt withdraw all");
// revoke allowrance
aWETH.approve(address(aaveGateway), 0);
}
aaveGateway = IAaveGateway(newGateway);
aavePool = IAavePool(newPool);
aWETH = IAToken(aavePool.getReserveData(WETH).aTokenAddress);
aWETH.approve(address(aaveGateway), type(uint256).max);
}
// ============= yield function =========
function yieldDeposit(uint256 amount) external onlyFactory {
uint256 subTotalPrice = address(this).balance;
aaveGateway.depositETH{value: subTotalPrice}(address(aavePool), mestFactory, 0);
}
function yieldWithdraw(uint256 amount) external onlyFactory {
aWETH.transferFrom(mestFactory, address(this), amount);
aaveGateway.withdrawETH(address(aavePool), amount, mestFactory);
}
function yieldBalanceOf(address owner) external returns(uint256 amount) {
return aWETH.balanceOf(owner);
}
function yieldToken() external returns(address yieldTokenAddr) {
yieldTokenAddr = address(aWETH);
}
function yieldMaxWithdrawable(address owner) external returns(uint256 amount) {
return aWETH.balanceOf(owner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}pragma solidity 0.8.16;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IAToken is IERC20 {
}
interface IAavePool {
struct ReserveConfigurationMap {
//bit 0-15: LTV
//bit 16-31: Liq. threshold
//bit 32-47: Liq. bonus
//bit 48-55: Decimals
//bit 56: reserve is active
//bit 57: reserve is frozen
//bit 58: borrowing is enabled
//bit 59: stable rate borrowing enabled
//bit 60: asset is paused
//bit 61: borrowing in isolation mode is enabled
//bit 62: siloed borrowing enabled
//bit 63: flashloaning enabled
//bit 64-79: reserve factor
//bit 80-115 borrow cap in whole tokens, borrowCap == 0 => no cap
//bit 116-151 supply cap in whole tokens, supplyCap == 0 => no cap
//bit 152-167 liquidation protocol fee
//bit 168-175 eMode category
//bit 176-211 unbacked mint cap in whole tokens, unbackedMintCap == 0 => minting disabled
//bit 212-251 debt ceiling for isolation mode with (ReserveConfiguration::DEBT_CEILING_DECIMALS) decimals
//bit 252-255 unused
uint256 data;
}
struct ReserveData {
//stores the reserve configuration
ReserveConfigurationMap configuration;
//the liquidity index. Expressed in ray
uint128 liquidityIndex;
//the current supply rate. Expressed in ray
uint128 currentLiquidityRate;
//variable borrow index. Expressed in ray
uint128 variableBorrowIndex;
//the current variable borrow rate. Expressed in ray
uint128 currentVariableBorrowRate;
//the current stable borrow rate. Expressed in ray
uint128 currentStableBorrowRate;
//timestamp of last update
uint40 lastUpdateTimestamp;
//the id of the reserve. Represents the position in the list of the active reserves
uint16 id;
//aToken address
address aTokenAddress;
//stableDebtToken address
address stableDebtTokenAddress;
//variableDebtToken address
address variableDebtTokenAddress;
//address of the interest rate strategy
address interestRateStrategyAddress;
//the current treasury balance, scaled
uint128 accruedToTreasury;
//the outstanding unbacked aTokens minted through the bridging feature
uint128 unbacked;
//the outstanding debt borrowed against this asset in isolation mode
uint128 isolationModeTotalDebt;
}
function getReserveData(address asset) external view returns (ReserveData memory);
}
interface IAaveGateway {
function withdrawETH(address, uint256 amount, address to) external;
function depositETH(address, address onBehalfOf, uint16 referralCode) external payable;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with 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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @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 amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}{
"remappings": [
"forge-std/=lib/forge-std/src/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"contracts/=contracts/",
"@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/",
"@rari-capital/solmate/src/=node_modules/@rari-capital/solmate/src/",
"@ensdomains/=node_modules/@ensdomains/",
"eth-gas-reporter/=node_modules/eth-gas-reporter/",
"hardhat/=node_modules/hardhat/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"libraries": {}
}Contract ABI
API[{"inputs":[{"internalType":"address","name":"_mestFactory","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aWETH","outputs":[{"internalType":"contract IAToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aaveGateway","outputs":[{"internalType":"contract IAaveGateway","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aavePool","outputs":[{"internalType":"contract IAavePool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mestFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPool","type":"address"},{"internalType":"address","name":"newGateway","type":"address"}],"name":"setAaveInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"yieldBalanceOf","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"yieldDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"yieldMaxWithdrawable","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yieldToken","outputs":[{"internalType":"address","name":"yieldTokenAddr","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"yieldWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60c060405234801561001057600080fd5b50604051610e12380380610e1283398101604081905261002f916100bb565b6100383361004f565b6001600160a01b039182166080521660a0526100ee565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100b657600080fd5b919050565b600080604083850312156100ce57600080fd5b6100d78361009f565b91506100e56020840161009f565b90509250929050565b60805160a051610cce6101446000396000818161022c0152610607015260008181610280015281816102cd0152818161035301528181610484015281816107200152818161079601526108460152610cce6000f3fe6080604052600436106100d55760003560e01c80638da5cb5b11610079578063ad5c464811610056578063ad5c46481461021a578063b6bd62281461024e578063d61b25ae1461026e578063f2fde38b146102a257005b80638da5cb5b146101bc5780638ecf67ea146101da578063a03e4bc3146101fa57005b8063715018a6116100b2578063715018a61461015b57806376d5de85146101705780638812ebc91461018e5780638b3102d51461018e57005b8063330a649d146100de5780634fe0c742146100fe5780636d2a583a1461013b57005b366100dc57005b005b3480156100ea57600080fd5b506100dc6100f93660046109d0565b6102c2565b34801561010a57600080fd5b5060025461011e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014757600080fd5b5060035461011e906001600160a01b031681565b34801561016757600080fd5b506100dc6103c8565b34801561017c57600080fd5b506003546001600160a01b031661011e565b34801561019a57600080fd5b506101ae6101a93660046109fe565b6103dc565b604051908152602001610132565b3480156101c857600080fd5b506000546001600160a01b031661011e565b3480156101e657600080fd5b506100dc6101f5366004610a22565b610451565b34801561020657600080fd5b5060015461011e906001600160a01b031681565b34801561022657600080fd5b5061011e7f000000000000000000000000000000000000000000000000000000000000000081565b34801561025a57600080fd5b506100dc6102693660046109d0565b610715565b34801561027a57600080fd5b5061011e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ae57600080fd5b506100dc6102bd3660046109fe565b6108ad565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461032e5760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c7920666163746f727960a01b60448201526064015b60405180910390fd5b60025460015460405163474cf53d60e01b81526001600160a01b0391821660048201527f000000000000000000000000000000000000000000000000000000000000000082166024820152600060448201524792919091169063474cf53d9083906064016000604051808303818588803b1580156103ab57600080fd5b505af11580156103bf573d6000803e3d6000fd5b50505050505050565b6103d0610926565b6103da6000610980565b565b6003546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401602060405180830381865afa158015610427573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044b9190610a5b565b92915050565b610459610926565b6003546001600160a01b0316156105c0576003546040516370a0823160e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152909116906370a0823190602401602060405180830381865afa1580156104d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f89190610a5b565b156105455760405162461bcd60e51b815260206004820152601960248201527f41546f6b656e206469646e7420776974686472617720616c6c000000000000006044820152606401610325565b60035460025460405163095ea7b360e01b81526001600160a01b0391821660048201526000602482015291169063095ea7b3906044016020604051808303816000875af115801561059a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105be9190610a74565b505b600280546001600160a01b038084166001600160a01b0319928316179092556001805492851692909116821790556040516335ea6a7560e01b81526335ea6a759061063e907f0000000000000000000000000000000000000000000000000000000000000000906004016001600160a01b0391909116815260200190565b6101e060405180830381865afa15801561065c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106809190610b75565b6101000151600380546001600160a01b0319166001600160a01b0392831690811790915560025460405163095ea7b360e01b81529216600483015260001960248301529063095ea7b3906044016020604051808303816000875af11580156106ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107109190610a74565b505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461077c5760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c7920666163746f727960a01b6044820152606401610325565b6003546040516323b872dd60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015230602483015260448201849052909116906323b872dd906064016020604051808303816000875af11580156107f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108199190610a74565b50600254600154604051630402806960e51b81526001600160a01b039182166004820152602481018490527f0000000000000000000000000000000000000000000000000000000000000000821660448201529116906380500d2090606401600060405180830381600087803b15801561089257600080fd5b505af11580156108a6573d6000803e3d6000fd5b5050505050565b6108b5610926565b6001600160a01b03811661091a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610325565b61092381610980565b50565b6000546001600160a01b031633146103da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610325565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156109e257600080fd5b5035919050565b6001600160a01b038116811461092357600080fd5b600060208284031215610a1057600080fd5b8135610a1b816109e9565b9392505050565b60008060408385031215610a3557600080fd5b8235610a40816109e9565b91506020830135610a50816109e9565b809150509250929050565b600060208284031215610a6d57600080fd5b5051919050565b600060208284031215610a8657600080fd5b81518015158114610a1b57600080fd5b6040516101e0810167ffffffffffffffff81118282101715610ac857634e487b7160e01b600052604160045260246000fd5b60405290565b600060208284031215610ae057600080fd5b6040516020810181811067ffffffffffffffff82111715610b1157634e487b7160e01b600052604160045260246000fd5b6040529151825250919050565b80516fffffffffffffffffffffffffffffffff81168114610b3e57600080fd5b919050565b805164ffffffffff81168114610b3e57600080fd5b805161ffff81168114610b3e57600080fd5b8051610b3e816109e9565b60006101e08284031215610b8857600080fd5b610b90610a96565b610b9a8484610ace565b8152610ba860208401610b1e565b6020820152610bb960408401610b1e565b6040820152610bca60608401610b1e565b6060820152610bdb60808401610b1e565b6080820152610bec60a08401610b1e565b60a0820152610bfd60c08401610b43565b60c0820152610c0e60e08401610b58565b60e0820152610100610c21818501610b6a565b90820152610120610c33848201610b6a565b90820152610140610c45848201610b6a565b90820152610160610c57848201610b6a565b90820152610180610c69848201610b1e565b908201526101a0610c7b848201610b1e565b908201526101c0610c8d848201610b1e565b90820152939250505056fea2646970667358221220e0dee37b17ec9e419db5a2ea6870d3a99303c00302266f31a450ddf24e157c1f64736f6c63430008100033000000000000000000000000599a58be6367e43e2bea28de14beaadd316d1de80000000000000000000000004200000000000000000000000000000000000006
Deployed Bytecode
0x6080604052600436106100d55760003560e01c80638da5cb5b11610079578063ad5c464811610056578063ad5c46481461021a578063b6bd62281461024e578063d61b25ae1461026e578063f2fde38b146102a257005b80638da5cb5b146101bc5780638ecf67ea146101da578063a03e4bc3146101fa57005b8063715018a6116100b2578063715018a61461015b57806376d5de85146101705780638812ebc91461018e5780638b3102d51461018e57005b8063330a649d146100de5780634fe0c742146100fe5780636d2a583a1461013b57005b366100dc57005b005b3480156100ea57600080fd5b506100dc6100f93660046109d0565b6102c2565b34801561010a57600080fd5b5060025461011e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014757600080fd5b5060035461011e906001600160a01b031681565b34801561016757600080fd5b506100dc6103c8565b34801561017c57600080fd5b506003546001600160a01b031661011e565b34801561019a57600080fd5b506101ae6101a93660046109fe565b6103dc565b604051908152602001610132565b3480156101c857600080fd5b506000546001600160a01b031661011e565b3480156101e657600080fd5b506100dc6101f5366004610a22565b610451565b34801561020657600080fd5b5060015461011e906001600160a01b031681565b34801561022657600080fd5b5061011e7f000000000000000000000000420000000000000000000000000000000000000681565b34801561025a57600080fd5b506100dc6102693660046109d0565b610715565b34801561027a57600080fd5b5061011e7f000000000000000000000000599a58be6367e43e2bea28de14beaadd316d1de881565b3480156102ae57600080fd5b506100dc6102bd3660046109fe565b6108ad565b336001600160a01b037f000000000000000000000000599a58be6367e43e2bea28de14beaadd316d1de8161461032e5760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c7920666163746f727960a01b60448201526064015b60405180910390fd5b60025460015460405163474cf53d60e01b81526001600160a01b0391821660048201527f000000000000000000000000599a58be6367e43e2bea28de14beaadd316d1de882166024820152600060448201524792919091169063474cf53d9083906064016000604051808303818588803b1580156103ab57600080fd5b505af11580156103bf573d6000803e3d6000fd5b50505050505050565b6103d0610926565b6103da6000610980565b565b6003546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401602060405180830381865afa158015610427573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044b9190610a5b565b92915050565b610459610926565b6003546001600160a01b0316156105c0576003546040516370a0823160e01b81526001600160a01b037f000000000000000000000000599a58be6367e43e2bea28de14beaadd316d1de881166004830152909116906370a0823190602401602060405180830381865afa1580156104d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f89190610a5b565b156105455760405162461bcd60e51b815260206004820152601960248201527f41546f6b656e206469646e7420776974686472617720616c6c000000000000006044820152606401610325565b60035460025460405163095ea7b360e01b81526001600160a01b0391821660048201526000602482015291169063095ea7b3906044016020604051808303816000875af115801561059a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105be9190610a74565b505b600280546001600160a01b038084166001600160a01b0319928316179092556001805492851692909116821790556040516335ea6a7560e01b81526335ea6a759061063e907f0000000000000000000000004200000000000000000000000000000000000006906004016001600160a01b0391909116815260200190565b6101e060405180830381865afa15801561065c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106809190610b75565b6101000151600380546001600160a01b0319166001600160a01b0392831690811790915560025460405163095ea7b360e01b81529216600483015260001960248301529063095ea7b3906044016020604051808303816000875af11580156106ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107109190610a74565b505050565b336001600160a01b037f000000000000000000000000599a58be6367e43e2bea28de14beaadd316d1de8161461077c5760405162461bcd60e51b815260206004820152600c60248201526b4f6e6c7920666163746f727960a01b6044820152606401610325565b6003546040516323b872dd60e01b81526001600160a01b037f000000000000000000000000599a58be6367e43e2bea28de14beaadd316d1de88116600483015230602483015260448201849052909116906323b872dd906064016020604051808303816000875af11580156107f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108199190610a74565b50600254600154604051630402806960e51b81526001600160a01b039182166004820152602481018490527f000000000000000000000000599a58be6367e43e2bea28de14beaadd316d1de8821660448201529116906380500d2090606401600060405180830381600087803b15801561089257600080fd5b505af11580156108a6573d6000803e3d6000fd5b5050505050565b6108b5610926565b6001600160a01b03811661091a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610325565b61092381610980565b50565b6000546001600160a01b031633146103da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610325565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156109e257600080fd5b5035919050565b6001600160a01b038116811461092357600080fd5b600060208284031215610a1057600080fd5b8135610a1b816109e9565b9392505050565b60008060408385031215610a3557600080fd5b8235610a40816109e9565b91506020830135610a50816109e9565b809150509250929050565b600060208284031215610a6d57600080fd5b5051919050565b600060208284031215610a8657600080fd5b81518015158114610a1b57600080fd5b6040516101e0810167ffffffffffffffff81118282101715610ac857634e487b7160e01b600052604160045260246000fd5b60405290565b600060208284031215610ae057600080fd5b6040516020810181811067ffffffffffffffff82111715610b1157634e487b7160e01b600052604160045260246000fd5b6040529151825250919050565b80516fffffffffffffffffffffffffffffffff81168114610b3e57600080fd5b919050565b805164ffffffffff81168114610b3e57600080fd5b805161ffff81168114610b3e57600080fd5b8051610b3e816109e9565b60006101e08284031215610b8857600080fd5b610b90610a96565b610b9a8484610ace565b8152610ba860208401610b1e565b6020820152610bb960408401610b1e565b6040820152610bca60608401610b1e565b6060820152610bdb60808401610b1e565b6080820152610bec60a08401610b1e565b60a0820152610bfd60c08401610b43565b60c0820152610c0e60e08401610b58565b60e0820152610100610c21818501610b6a565b90820152610120610c33848201610b6a565b90820152610140610c45848201610b6a565b90820152610160610c57848201610b6a565b90820152610180610c69848201610b1e565b908201526101a0610c7b848201610b1e565b908201526101c0610c8d848201610b1e565b90820152939250505056fea2646970667358221220e0dee37b17ec9e419db5a2ea6870d3a99303c00302266f31a450ddf24e157c1f64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000599a58be6367e43e2bea28de14beaadd316d1de80000000000000000000000004200000000000000000000000000000000000006
-----Decoded View---------------
Arg [0] : _mestFactory (address): 0x599A58BE6367E43e2BEa28DE14BEAAdd316d1de8
Arg [1] : _weth (address): 0x4200000000000000000000000000000000000006
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000599a58be6367e43e2bea28de14beaadd316d1de8
Arg [1] : 0000000000000000000000004200000000000000000000000000000000000006
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.