Contract Overview
Balance:
0 MATIC
MATIC Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash |
Method
|
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x32304fbf2c61a04d96142cfa2508ba7acb9600d68670d5857720b2d656845279 | 0x60806040 | 35346267 | 142 days 3 hrs ago | Davos Protocol: Deployer | IN | Create: CerosYieldConverterStrategy | 0 MATIC | 0.833720508491 |
[ Download CSV Export ]
Contract Name:
CerosYieldConverterStrategy
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../MasterVault/interfaces/IMasterVault.sol"; import "../ceros/interfaces/ISwapPool.sol"; import "../MasterVault/interfaces/IWETH.sol"; import "../ceros/interfaces/ICertToken.sol"; import "../ceros/interfaces/ICerosRouter.sol"; import "./BaseStrategy.sol"; contract CerosYieldConverterStrategy is BaseStrategy { ICerosRouter private _ceRouter; ICertToken private _certToken; IMasterVault public vault; address private _swapPool; event SwapPoolChanged(address swapPool); event CeRouterChanged(address ceRouter); /// @dev initialize function - Constructor for Upgradable contract, can be only called once during deployment /// @param destination Address of the ceros router contract /// @param feeRecipient Address of the fee recipient /// @param underlyingToken Address of the underlying token(wMatic) /// @param certToekn Address of aMATICc token /// @param masterVault Address of the masterVault contract /// @param swapPool Address of swapPool contract function initialize( address destination, address feeRecipient, address underlyingToken, address certToekn, address masterVault, address swapPool ) public initializer { __BaseStrategy_init(destination, feeRecipient, underlyingToken); _ceRouter = ICerosRouter(destination); _certToken = ICertToken(certToekn); _swapPool = swapPool; vault = IMasterVault(masterVault); underlying.approve(address(destination), type(uint256).max); underlying.approve(address(vault), type(uint256).max); _certToken.approve(_swapPool, type(uint256).max); } /** * Modifiers */ modifier onlyVault() { require(msg.sender == address(vault), "!vault"); _; } /// @dev deposits the given amount of underlying tokens into ceros /// @param amount amount of underlying tokens function deposit(uint256 amount) external onlyVault returns(uint256 value) { require(amount <= underlying.balanceOf(address(this)), "insufficient balance"); return _deposit(amount); } /// @dev internal function to deposit the given amount of underlying tokens into ceros /// @param amount amount of underlying tokens function _deposit(uint256 amount) internal returns (uint256 value) { require(!depositPaused, "deposits are paused"); require(amount > 0, "invalid amount"); _beforeDeposit(amount); (, bool enoughLiquidity) = ISwapPool(_swapPool).getAmountOut(true, amount, false); // (amount * ratio) / 1e18 if (enoughLiquidity) { return _ceRouter.depositWMatic(amount); } } /// @dev withdraws the given amount of underlying tokens from ceros and transfers to masterVault /// @param amount amount of underlying tokens function withdraw(uint256 amount) onlyVault external returns(uint256 value) { return _withdraw(amount); } /// @dev internal function to withdraw the given amount of underlying tokens from ceros /// and transfers to masterVault /// @param amount amount of underlying tokens /// @return value - returns the amount of underlying tokens withdrawn from ceros function _withdraw(uint256 amount) internal returns (uint256 value) { require(amount > 0, "invalid amount"); uint256 wethBalance = underlying.balanceOf(address(this)); if(amount < wethBalance) { underlying.transfer(address(vault), amount); return amount; } (uint256 amountOut, bool enoughLiquidity) = ISwapPool(_swapPool).getAmountOut(false, ((amount - wethBalance) * _certToken.ratio()) / 1e18, false); // (amount * ratio) / 1e18 if (enoughLiquidity) { value = _ceRouter.withdrawWithSlippage(address(this), amount - wethBalance, amountOut); require(value >= amountOut, "invalid out amount"); uint256 withdrawAmount = wethBalance + value; if (amount < withdrawAmount) { // transfer extra funds to feeRecipient underlying.transfer(feeRecipient, withdrawAmount - amount); } else { amount = withdrawAmount; } underlying.transfer(address(vault), amount); return amount; } } receive() external payable { require(msg.sender == address(underlying)); // only accept ETH from the WETH contract } function canDeposit(uint256 amount) public view returns(bool) { (,bool enoughLiquidity) = ISwapPool(_swapPool).getAmountOut(true, amount, false); return enoughLiquidity; } /// @dev claims yeild from ceros in aMATICc and transfers to feeRecipient function harvest() external onlyStrategist { _harvestTo(feeRecipient); } /// @dev claims yeild from ceros in aMATICc, converts them to wMATIC and transfers them to feeRecipient function harvestAndSwap() external onlyStrategist { uint256 yield = _harvestTo(address(this)); (uint256 amountOut, bool enoughLiquidity) = ISwapPool(_swapPool).getAmountOut(false, yield, true); if (enoughLiquidity && amountOut > 0) { amountOut = ISwapPool(_swapPool).swap(false, yield, address(this)); underlying.transfer(feeRecipient, amountOut); } } /// @dev internal function to claim yeild from ceros in aMATICc and transfers to desired address function _harvestTo(address to) private returns(uint256 yield) { yield = _ceRouter.getYieldFor(address(this)); if(yield > 0) { yield = _ceRouter.claim(to); // TODO: handle: reverts if no yield } uint256 profit = _ceRouter.getProfitFor(address(this)); if(profit > 0) { yield += profit; _ceRouter.claimProfit(to); } } /// @dev only owner can change swap pool address /// @param swapPool new swap pool address function changeSwapPool(address swapPool) external onlyOwner { require(swapPool != address(0)); _certToken.approve(_swapPool, 0); _swapPool = swapPool; _certToken.approve(_swapPool, type(uint256).max); emit SwapPoolChanged(swapPool); } /// @dev only owner can change ceRouter /// @param ceRouter new ceros router address function changeCeRouter(address ceRouter) external onlyOwner { require(ceRouter != address(0)); underlying.approve(address(_ceRouter), 0); destination = ceRouter; _ceRouter = ICerosRouter(ceRouter); underlying.approve(address(_ceRouter), type(uint256).max); emit CeRouterChanged(ceRouter); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // import "./IERC4626Upgradeable.sol"; interface IMasterVault { event DepositFeeChanged(uint256 newDepositFee); event MaxDepositFeeChanged(uint256 newMaxDepositFee); event WithdrawalFeeChanged(uint256 newWithdrawalFee); event MaxWithdrawalFeeChanged(uint256 newMaxWithdrawalFee); event ProviderChanged(address provider); event RouterChanged(address ceRouter); event ManagerAdded(address newManager); event ManagerRemoved(address manager); event FeeReceiverChanged(address feeReceiver); event WaitingPoolChanged(address waitingPool); event WaitingPoolCapChanged(uint256 cap); event StrategyAllocationChanged(address strategy, uint256 allocation); event SwapPoolChanged(address swapPool); event StrategyAdded(address strategy, uint256 allocation); event StrategyMigrated(address oldStrategy, address newStrategy, uint256 newAllocation); event DepositedToStrategy(address strategy, uint256 amount); event WithdrawnFromStrategy(address strategy, uint256 value); function withdrawETH(address account, uint256 amount) external returns (uint256); function depositETH() external payable returns (uint256); function feeReceiver() external returns (address payable); function withdrawalFee() external view returns (uint256); function strategyParams(address strategy) external view returns(bool active, uint256 allocation, uint256 debt); }
// SPDX-License-Identifier: Unliscensed pragma solidity ^0.8.0; interface ISwapPool { function swap( bool nativeToCeros, uint256 amountIn, address receiver ) external returns (uint256 amountOut); function getAmountOut( bool nativeToCeros, uint amountIn, bool isExcludedFromFee) external view returns(uint amountOut, bool enoughLiquidity); function unstakeFee() external view returns (uint24 unstakeFee); function stakeFee() external view returns (uint24 stakeFee); function FEE_MAX() external view returns (uint24 feeMax); }
// SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; pragma solidity ^0.8.0; interface IWETH is IERC20 { function deposit() external payable; function withdraw(uint256 wad) external; }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface ICertToken is IERC20 { function burn(address account, uint256 amount) external; function mint(address account, uint256 amount) external; function balanceWithRewardsOf(address account) external returns (uint256); function isRebasing() external returns (bool); function ratio() external view returns (uint256); }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.0; interface ICerosRouter { /** * Events */ event Deposit( address indexed account, address indexed token, uint256 amount, uint256 profit ); event Claim( address indexed recipient, address indexed token, uint256 amount ); event Withdrawal( address indexed owner, address indexed recipient, address indexed token, uint256 amount ); event ChangeVault(address vault); event ChangeDex(address dex); event ChangeDexFactory(address factory); event ChangeSwapPool(address pool); event ChangeDao(address dao); event ChangeCeToken(address ceToken); event ChangeCeTokenJoin(address ceTokenJoin); event ChangeCertToken(address certToken); event ChangeCollateralToken(address collateralToken); event ChangeProvider(address provider); event ChangePairFee(uint24 fee); /** * Methods */ /** * Deposit */ // in MATIC function deposit() external payable returns (uint256); function depositWMatic(uint256 amount) external returns (uint256); // // in aMATICc // function depositAMATICcFrom(address owner, uint256 amount) // external // returns (uint256); // function depositAMATICc(uint256 amount) external returns (uint256); /** * Claim */ // claim in aMATICc function claim(address recipient) external returns (uint256); function claimProfit(address recipient) external; function getProfitFor(address account) external view returns (uint256); function getYieldFor(address account) external view returns(uint256); /** * Withdrawal */ // MATIC // function withdraw(address recipient, uint256 amount) // external // returns (uint256); // MATIC // function withdrawFor(address recipient, uint256 amount) // external // returns (uint256); // MATIC function withdrawWithSlippage( address recipient, uint256 amount, uint256 slippage ) external returns (uint256); // // aMATICc // function withdrawAMATICc(address recipient, uint256 amount) // external // returns (uint256); }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "../MasterVault/interfaces/IWETH.sol"; import "./IBaseStrategy.sol"; abstract contract BaseStrategy is IBaseStrategy, OwnableUpgradeable, PausableUpgradeable, ReentrancyGuardUpgradeable { address public strategist; address public destination; address public feeRecipient; IWETH public underlying; bool public depositPaused; event UpdatedStrategist(address strategist); event UpdatedFeeRecipient(address feeRecipient); event UpdatedPerformanceFee(uint256 performanceFee); function __BaseStrategy_init( address destinationAddr, address feeRecipientAddr, address underlyingToken ) internal initializer { __Ownable_init(); __Pausable_init(); __ReentrancyGuard_init(); strategist = msg.sender; destination = destinationAddr; feeRecipient = feeRecipientAddr; underlying = IWETH(underlyingToken); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyStrategist() { require(msg.sender == strategist); _; } function _beforeDeposit(uint256 amount) internal virtual returns (bool) { } function balanceOfWant() public view returns(uint256) { return underlying.balanceOf(address(this)); } function balanceOfPool() public view returns(uint256) { return underlying.balanceOf(address(destination)); } function balanceOf() public view returns(uint256) { return underlying.balanceOf(address(this)) + underlying.balanceOf(address(destination)); } function pause() external onlyStrategist { depositPaused = true; } function unpause() external onlyStrategist { depositPaused = false; } function setStrategist(address newStrategist) external onlyOwner { require(newStrategist != address(0)); strategist = newStrategist; emit UpdatedStrategist(newStrategist); } function setFeeRecipient(address newFeeRecipient) external onlyOwner { require(newFeeRecipient != address(0)); feeRecipient = newFeeRecipient; emit UpdatedFeeRecipient(newFeeRecipient); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // 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; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IBaseStrategy { // to deposit funds to a destination contract function deposit(uint256 amount) external returns(uint256); // to withdraw funds from the destination contract function withdraw(uint256 amount) external returns(uint256); // claim or collect rewards functions function harvest() external; // disable deposit function pause() external; // enable deposit function unpause() external; // calculate the total underlying token in the strategy contract and destination contract function balanceOf() external view returns(uint256); // calculate the total amount of tokens in the strategy contract function balanceOfWant() external view returns(uint256); // calculate the total amount of tokens in the destination contract function balanceOfPool() external view returns(uint256); // set the recipient address of the collected fee function setFeeRecipient(address newFeeRecipient) external; function canDeposit(uint256 amount) external view returns(bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"ceRouter","type":"address"}],"name":"CeRouterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"swapPool","type":"address"}],"name":"SwapPoolChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeRecipient","type":"address"}],"name":"UpdatedFeeRecipient","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"performanceFee","type":"uint256"}],"name":"UpdatedPerformanceFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"strategist","type":"address"}],"name":"UpdatedStrategist","type":"event"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"canDeposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ceRouter","type":"address"}],"name":"changeCeRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"swapPool","type":"address"}],"name":"changeSwapPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"destination","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvestAndSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"address","name":"underlyingToken","type":"address"},{"internalType":"address","name":"certToekn","type":"address"},{"internalType":"address","name":"masterVault","type":"address"},{"internalType":"address","name":"swapPool","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeRecipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newStrategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"contract IMasterVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b50611e04806100206000396000f3fe60806040526004361061015a5760003560e01c8063715018a6116100c1578063b6b55f251161007a578063b6b55f2514610397578063c1a3d44c146103b7578063c7b9d530146103cc578063cc2a9a5b146103ec578063e74b981b1461040c578063f2fde38b1461042c578063fbfa77cf1461044c57600080fd5b8063715018a6146102fa578063722713f71461030f5780638456cb59146103245780638da5cb5b146103395780638e24d82e14610357578063b269681d1461037757600080fd5b80633f4ba83a116101135780633f4ba83a146102585780634641257d1461026d5780634690484014610282578063588fbd9c146102a25780635c975abb146102c25780636f307dc3146102da57600080fd5b806302befd241461017d5780630fbd7808146101b357806311588086146101c85780631fe4a686146101eb5780632e1a7d4d1461021857806339443b8e1461023857600080fd5b366101785760cc546001600160a01b0316331461017657600080fd5b005b600080fd5b34801561018957600080fd5b5060cc5461019e90600160a01b900460ff1681565b60405190151581526020015b60405180910390f35b3480156101bf57600080fd5b5061017661046c565b3480156101d457600080fd5b506101dd610621565b6040519081526020016101aa565b3480156101f757600080fd5b5060c95461020b906001600160a01b031681565b6040516101aa9190611b0b565b34801561022457600080fd5b506101dd610233366004611b1f565b61069f565b34801561024457600080fd5b5061019e610253366004611b1f565b6106e6565b34801561026457600080fd5b5061017661076d565b34801561027957600080fd5b50610176610793565b34801561028e57600080fd5b5060cb5461020b906001600160a01b031681565b3480156102ae57600080fd5b506101766102bd366004611b4f565b6107c2565b3480156102ce57600080fd5b5060655460ff1661019e565b3480156102e657600080fd5b5060cc5461020b906001600160a01b031681565b34801561030657600080fd5b5061017661091e565b34801561031b57600080fd5b506101dd610932565b34801561033057600080fd5b50610176610a26565b34801561034557600080fd5b506033546001600160a01b031661020b565b34801561036357600080fd5b50610176610372366004611b4f565b610a52565b34801561038357600080fd5b5060ca5461020b906001600160a01b031681565b3480156103a357600080fd5b506101dd6103b2366004611b1f565b610bb1565b3480156103c357600080fd5b506101dd610c9e565b3480156103d857600080fd5b506101766103e7366004611b4f565b610ccf565b3480156103f857600080fd5b50610176610407366004611b6a565b610d35565b34801561041857600080fd5b50610176610427366004611b4f565b610fb6565b34801561043857600080fd5b50610176610447366004611b4f565b61101c565b34801561045857600080fd5b5060cf5461020b906001600160a01b031681565b60c9546001600160a01b0316331461048357600080fd5b600061048e30611092565b60d054604051631b427eb960e01b8152600060048201819052602482018490526001604483015292935082916001600160a01b031690631b427eb9906064016040805180830381865afa1580156104e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050d9190611bee565b9150915080801561051e5750600082115b1561061c5760d054604051630b6adc0760e31b815260006004820152602481018590523060448201526001600160a01b0390911690635b56e038906064016020604051808303816000875af115801561057b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059f9190611c1a565b60cc5460cb5460405163a9059cbb60e01b81529294506001600160a01b039182169263a9059cbb926105d79216908690600401611c33565b6020604051808303816000875af11580156105f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061a9190611c4c565b505b505050565b60cc5460ca546040516370a0823160e01b81526000926001600160a01b03908116926370a08231926106599290911690600401611b0b565b602060405180830381865afa158015610676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069a9190611c1a565b905090565b60cf546000906001600160a01b031633146106d55760405162461bcd60e51b81526004016106cc90611c67565b60405180910390fd5b6106de82611270565b90505b919050565b60d054604051631b427eb960e01b815260016004820152602481018390526000604482018190529182916001600160a01b0390911690631b427eb9906064016040805180830381865afa158015610741573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107659190611bee565b949350505050565b60c9546001600160a01b0316331461078457600080fd5b60cc805460ff60a01b19169055565b60c9546001600160a01b031633146107aa57600080fd5b60cb546107bf906001600160a01b0316611092565b50565b6107ca6116b2565b6001600160a01b0381166107dd57600080fd5b60ce5460d05460405163095ea7b360e01b81526001600160a01b039283169263095ea7b39261081492911690600090600401611c33565b6020604051808303816000875af1158015610833573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108579190611c4c565b5060d080546001600160a01b0319166001600160a01b0383811691821790925560ce5460405163095ea7b360e01b815292169163095ea7b3916108a09160001990600401611c33565b6020604051808303816000875af11580156108bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e39190611c4c565b507f686f89a6ecbf2a3d59b997474f0c3924243521154529f47be3cbd9fd8859b8e6816040516109139190611b0b565b60405180910390a150565b6109266116b2565b610930600061170c565b565b60cc5460ca546040516370a0823160e01b81526000926001600160a01b03908116926370a082319261096a9290911690600401611b0b565b602060405180830381865afa158015610987573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ab9190611c1a565b60cc546040516370a0823160e01b81526001600160a01b03909116906370a08231906109db903090600401611b0b565b602060405180830381865afa1580156109f8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1c9190611c1a565b61069a9190611c9d565b60c9546001600160a01b03163314610a3d57600080fd5b60cc805460ff60a01b1916600160a01b179055565b610a5a6116b2565b6001600160a01b038116610a6d57600080fd5b60cc5460cd5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b392610aa492911690600090600401611c33565b6020604051808303816000875af1158015610ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae79190611c4c565b5060ca80546001600160a01b038084166001600160a01b0319928316811790935560cd8054909216831790915560cc5460405163095ea7b360e01b815291169163095ea7b391610b3e919060001990600401611c33565b6020604051808303816000875af1158015610b5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b819190611c4c565b507f2ee12b52d6c5300e2ce18ef982edc70927e62efd6f08b73f649da334022bb1ec816040516109139190611b0b565b60cf546000906001600160a01b03163314610bde5760405162461bcd60e51b81526004016106cc90611c67565b60cc546040516370a0823160e01b81526001600160a01b03909116906370a0823190610c0e903090600401611b0b565b602060405180830381865afa158015610c2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4f9190611c1a565b821115610c955760405162461bcd60e51b8152602060048201526014602482015273696e73756666696369656e742062616c616e636560601b60448201526064016106cc565b6106de8261175e565b60cc546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610659903090600401611b0b565b610cd76116b2565b6001600160a01b038116610cea57600080fd5b60c980546001600160a01b0319166001600160a01b0383161790556040517f352ececae6d7d1e6d26bcf2c549dfd55be1637e9b22dc0cf3b71ddb36097a6b490610913908390611b0b565b600054610100900460ff1615808015610d555750600054600160ff909116105b80610d6f5750303b158015610d6f575060005460ff166001145b610d8b5760405162461bcd60e51b81526004016106cc90611cb5565b6000805460ff191660011790558015610dae576000805461ff0019166101001790555b610db98787876118cb565b60cd80546001600160a01b03199081166001600160a01b038a81169190911790925560ce8054821687841617905560d08054821685841617905560cf805490911685831617905560cc5460405163095ea7b360e01b815291169063095ea7b390610e2b908a9060001990600401611c33565b6020604051808303816000875af1158015610e4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6e9190611c4c565b5060cc5460cf5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b392610ea79291169060001990600401611c33565b6020604051808303816000875af1158015610ec6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eea9190611c4c565b5060ce5460d05460405163095ea7b360e01b81526001600160a01b039283169263095ea7b392610f239291169060001990600401611c33565b6020604051808303816000875af1158015610f42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f669190611c4c565b508015610fad576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b610fbe6116b2565b6001600160a01b038116610fd157600080fd5b60cb80546001600160a01b0319166001600160a01b0383161790556040517fbf5406678e9fe702eaea01d92d3b62ac5be0a14e1802562e2a428364d30d1b1190610913908390611b0b565b6110246116b2565b6001600160a01b0381166110895760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106cc565b6107bf8161170c565b60cd5460405163223888c160e01b81526000916001600160a01b03169063223888c1906110c3903090600401611b0b565b602060405180830381865afa1580156110e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111049190611c1a565b905080156111825760cd54604051630f41a04d60e11b81526001600160a01b0390911690631e83409a9061113c908590600401611b0b565b6020604051808303816000875af115801561115b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117f9190611c1a565b90505b60cd54604051632b1e119f60e21b81526000916001600160a01b03169063ac78467c906111b3903090600401611b0b565b602060405180830381865afa1580156111d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f49190611c1a565b9050801561126a576112068183611c9d565b60cd54604051636055a27b60e11b81529193506001600160a01b03169063c0ab44f690611237908690600401611b0b565b600060405180830381600087803b15801561125157600080fd5b505af1158015611265573d6000803e3d6000fd5b505050505b50919050565b60008082116112915760405162461bcd60e51b81526004016106cc90611d03565b60cc546040516370a0823160e01b81526000916001600160a01b0316906370a08231906112c2903090600401611b0b565b602060405180830381865afa1580156112df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113039190611c1a565b90508083101561138e5760cc5460cf5460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb92611343929116908790600401611c33565b6020604051808303816000875af1158015611362573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113869190611c4c565b509192915050565b60d05460ce54604080516371ca337d60e01b8152905160009384936001600160a01b0391821693631b427eb9938693670de0b6b3a76400009316916371ca337d9160048083019260209291908290030181865afa1580156113f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114179190611c1a565b611421888b611d2b565b61142b9190611d42565b6114359190611d61565b6040516001600160e01b031960e085901b16815291151560048301526024820152600060448201526064016040805180830381865afa15801561147c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a09190611bee565b9150915080156116aa5760cd546001600160a01b031663ab43c3df306114c68689611d2b565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604481018590526064016020604051808303816000875af1158015611518573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153c9190611c1a565b9350818410156115835760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a59081bdd5d08185b5bdd5b9d60721b60448201526064016106cc565b600061158f8585611c9d565b9050808610156116225760cc5460cb546001600160a01b039182169163a9059cbb91166115bc8985611d2b565b6040518363ffffffff1660e01b81526004016115d9929190611c33565b6020604051808303816000875af11580156115f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161c9190611c4c565b50611626565b8095505b60cc5460cf5460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb9261165c929116908a90600401611c33565b6020604051808303816000875af115801561167b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169f9190611c4c565b509495945050505050565b505050919050565b6033546001600160a01b031633146109305760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106cc565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60cc54600090600160a01b900460ff16156117b15760405162461bcd60e51b815260206004820152601360248201527219195c1bdcda5d1cc8185c99481c185d5cd959606a1b60448201526064016106cc565b600082116117d15760405162461bcd60e51b81526004016106cc90611d03565b60d054604051631b427eb960e01b81526001600482015260248101849052600060448201819052916001600160a01b031690631b427eb9906064016040805180830381865afa158015611828573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184c9190611bee565b915050801561126a5760cd54604051636552b2a160e11b8152600481018590526001600160a01b039091169063caa56542906024016020604051808303816000875af11580156118a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c49190611c1a565b9392505050565b600054610100900460ff16158080156118eb5750600054600160ff909116105b806119055750303b158015611905575060005460ff166001145b6119215760405162461bcd60e51b81526004016106cc90611cb5565b6000805460ff191660011790558015611944576000805461ff0019166101001790555b61194c6119ed565b611954611a1c565b61195c611a4b565b60c98054336001600160a01b03199182161790915560ca805482166001600160a01b038781169190911790915560cb8054831686831617905560cc8054909216908416179055801561061a576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150505050565b600054610100900460ff16611a145760405162461bcd60e51b81526004016106cc90611d83565b610930611a7a565b600054610100900460ff16611a435760405162461bcd60e51b81526004016106cc90611d83565b610930611aaa565b600054610100900460ff16611a725760405162461bcd60e51b81526004016106cc90611d83565b610930611add565b600054610100900460ff16611aa15760405162461bcd60e51b81526004016106cc90611d83565b6109303361170c565b600054610100900460ff16611ad15760405162461bcd60e51b81526004016106cc90611d83565b6065805460ff19169055565b600054610100900460ff16611b045760405162461bcd60e51b81526004016106cc90611d83565b6001609755565b6001600160a01b0391909116815260200190565b600060208284031215611b3157600080fd5b5035919050565b80356001600160a01b03811681146106e157600080fd5b600060208284031215611b6157600080fd5b6118c482611b38565b60008060008060008060c08789031215611b8357600080fd5b611b8c87611b38565b9550611b9a60208801611b38565b9450611ba860408801611b38565b9350611bb660608801611b38565b9250611bc460808801611b38565b9150611bd260a08801611b38565b90509295509295509295565b805180151581146106e157600080fd5b60008060408385031215611c0157600080fd5b82519150611c1160208401611bde565b90509250929050565b600060208284031215611c2c57600080fd5b5051919050565b6001600160a01b03929092168252602082015260400190565b600060208284031215611c5e57600080fd5b6118c482611bde565b602080825260069082015265085d985d5b1d60d21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611cb057611cb0611c87565b500190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252600e908201526d1a5b9d985b1a5908185b5bdd5b9d60921b604082015260600190565b600082821015611d3d57611d3d611c87565b500390565b6000816000190483118215151615611d5c57611d5c611c87565b500290565b600082611d7e57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220799df1f1ce119ee7b1e5c9ba3a76b47617a9ac98154590c37f6618e1eb5892c264736f6c634300080f0033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.